php code

save arrays into database

i’ve known this for a while but forgot to share it. there is a very easy way you can store array into database as a string. then you can grab the string from the database and convert it back into an array. code example: you should get

multimedia · pc tips

record streaming audio and more

ever wondered how you can grab streaming audio and convert it to mp3? or how to convert .rm to .mp3? well here’s my way of doing it. you need the wonderful softwere Total Recorder. it allows you to record anything that is played by your sound card. ^_^ download: the version i have is 4.1b… Continue reading record streaming audio and more

plug

new theme "pure"

omg thank you beccary SOOOOOOOOOOO MUCH for making me this theme. i worked hard to put it up as soon as i got it 🙂 i love it so much. my mind has been on programming forever. no brain cell left for graphic. this is great for a change. YAY 🙂 click here if you… Continue reading new theme "pure"

non php code

return to top link without bookmark

i saw this on leslie’s site. i never thought of it before. the conventional way to do a “return to top” link is create a bookmark with: at the top of the page and then use: to link it. well there’s an easier way. this only works if you want to return to the very… Continue reading return to top link without bookmark

love n family

congratulations andy!

today’s andy’s last day at his old job – auto technician for iowa city toyota shop. monday he’s gonna start a new desk job as a customer service for toyota financial (headquarter) with a pay raise and lots more benefits. i’m so proud of him ^_^ welcome to cubicle life XP. you get wonderful deals… Continue reading congratulations andy!

php code

separate template from code

when you do serious coding, it’s always a good idea to separate your layout design (template) from your logic code. i’m at the beginning stage rebuilding dmb. one thing i want to do very badly is to get rid of all templates in the database. every time i load a template right now it causes… Continue reading separate template from code

geeky · personal

new plan for dmb

thanks shi for being so sweet and supporting. maybe i’m being too pessimistic on dmb’s coding. yes it is inefficient but it’s still curable. if i re-plan the whole thing from database design to layout design (javascript, css) with all my knowledge i can probably improve its performance by 200%. and shi told me another… Continue reading new plan for dmb

geeky · personal

critical mass

when a codebase gets so large and unmanageable, that it’s impossible to work with. Of a software product, describes a condition of the software such that fixing one bug introduces one plus epsilon bugs. When software achieves critical mass, it can never be fixed; it can only be discarded and rewritten. yes that’s how i… Continue reading critical mass

geeky

multi-page form submission trick

someone asked on my board how to use an email script for a long form that expands into multiple pages. leslie gave me an idea which i played and got it working. it’s very cool 🙂 You basically just make *fake* pages with javascript and div layers. the script is from alexking and i put… Continue reading multi-page form submission trick