Monthly Archives: April 2006

2.0.1 to 2.0.2 patchfile

Sometimes us unix folk like to have a patchfile to upgrade our software (especially scripts) so I made one for upgrading my wordpress installation from 2.0.1 to 2.0.2. ~/my_wp_webroot $ patch -p1 < WordPress_2.0.1_to_2.0.2.patch

On the note of arrays… Building large MSQL inserts with php, the easy way

$cols[0] = “title”; $vals[0] = “”CodeWord: Apoalyptik””; $cols[1] = “url”; $vals[1] = “”http://blog.apokalyptik.com/””; $cols[2] = “feed_url” $vals[2] = “”http://blog.apokalyptik.com/?feed=rss2″”; $query=”INSERT INTO weblogs (“.implode(“,”, $cols).”) VALUES(“.implode(“,”, $vals).”)”;

This might be of use to someone

I’ve been writing PHP for a long time now. And one of the things that I see quite often is that people just dont get multidimensional arrays, and how to effectively store data in them for looping. Allow me to lead by example. $store['fruit']['apple']=3; $store['fruit']['orange']=1; $store['berries']['blueberries']=100; $store['berries']['strawberries']=100; $store['fruit']['mango']=5; foreach ( $store as $type => $val [...]

Link Blogging 04.26.06

Eye-Fi — Frickin cool! CleverSafe (Slashdot Article) — About time someone thought “hey, parity, back, WHOA!”… Patent Trolls — ICK ACK FOO BAR GRRR Order of the stick — I havent played D&D for, must be 10 years now… and I still find this strip funny on a regular basis… (though if you’ve never played [...]

Blogging some links and comments

Freespire? worth thinking about. From what I’ve been told by people who’ve used it it’s a really nice OS. I wouldn’t run any servers with it, but I might give it a good try for an oldish desktop which could use a faster browser (I dont actually know if linspire browses faster than, say, XP, [...]

The shawshank redemption

On Sunday I got (sort of) a day(ish) alone at home while My wife was visiting the central valley. So I dusted off my tried and true favorite alone-time movie: The Shawshank Redemption. I dont know whnat it is about this movie, but somehow I identify with it on a very deep and moving level. [...]

Apache is hurt

My baby girl kitty is hurt. We dont know what happened to her but she’s definately hurt her shoulder. She isnt purring anymore, and she doesnt want to eat (or presumably drink) hopefully she’s feeling a little better tomorrow. We’re going to keep a close eyhe on her tonight and tomorrow, and keep her quarantined [...]

Digital images have fingerprints (news to me, didnt know they had fingers, or hands…)

Whoa! Digital photographic fingerprints! Neat! Who’d have thought that the forces of entropy were *against* the idea of anonymnity Entropy 1, Privacy 0! I wonder how long it’ll take for them to adapt this to digital video as well. Theoretically you would also see a uniform variation even when the background image was changing. Like [...]

Saw Silent Hill tonight

I thought the movie was VERY good. There were parts which were a bit too gory… but it was a horror movie. All in all it’s the best horror movie I’ve seen in a long time. I recommend it. What I dont recommend is going and seeing the movie with the 8 people who randomly [...]

The brain is an amazing thing

It’s really amazing, when you stop to think about it. Try this little experiment: Go for a drive and spot all the traffic signs that you can find. First, notice how long after you looked at each sign it took for your brain to realize it was a traffic sign. I bet that each recognition [...]