Chocolate Luuuv

An experiment with a microwave and some extra cake batter. Tasted way better than it looks. That light coloured strata at the bottom is a yogurt layer. 


So instead of writing a novel for november, i’ve committed to finishing some projects & posts that have been sitting around. Or killing them. Usually, there’s just one or two little details holding much of it back. Like with PDFize - It’s been done for a while, but I knew I had a few hours of tweaking the readme, making sure everything worked as advertised, and trying it out in 1.3. It’s still not as ‘complete’ as I would like, but at least it’s out there and can maybe help someone now. Ideally, when I find time, i’d like to finish up a helper to complement it.


i saw beck on this list, and my mind automatically went to this.

believe it or not, i don’t google my name with any regularity - i admit I actively resist the impulse, so it’s been a long time (at least a year, if not more, though I don’t doubt the AI’s at google could tell you to within the minute).

Setting up my new page got me wondering, so I caved.

Overall, no big surprises on page one. page 2 there was an interesting find - i’m listed on cnet, in the windows category no less.  Since it’s there, I figure might as well fix it up, have it point to the latest version, and list it in the right categories. It’s frustrating that there’s no clear link how to claim my profile, and no link to contact anyone specifically about that. Just that I haven’t made a publisher profile. I went and wasted time making a regular user account but can’t find the path to claim my profile.

I’ll try via twitter and update with any results.

I Got Cake in My Wordpress

Decided to open the code for the expozine this year. Basically redid it all. year to year, it was a find/replace type job, of some of my earliest php - it wasn’t partiularly pretty.  

Anyhoo, it’s Wordpress driving the pages & posts, and a CakePHP (1.3) app handling exhibitors, registration and sponsors.  

We’re using the Wordpress plugin WPML for the multilingual side of things.

I’m putting it up here mainly in case it helps anyone else get wordpress & cake playing together.

Uses some .htaccess rewrites to route things to wordpress install in webroot, and in the functions.php of the expozine theme, you’ll see we just fetch the fragments we need from cake to display sponsors & exhibitors. 

Why not use the custom post types/taxonomy in wordpress? 

On the surface, it looked like custom post types would be fine. But at the time, I couldn’t find any clear answers that I could do what I needed to, including making it bilingual ( one of my biggest gripes with wp - the docs/codex - eg: sometime I search for a problem, and you find stuff from WP 1.5. I feel like they should have a docs tzar :) ).

WPML wasn’t clear at the time (it’s been updated the last few months I think). I didn’t have the time to go down that rabbit hole. And it’s pretty some simple relational data, and form validation. Getting that portion of the site up fast was the motivation.

So the old pages from the site were thrown into cake pages, and Wordpress was added after. 

If I have to do this again, I think i would move the cake install to a subdomain, and just install wp on www. That should be the simpler solution. Just in this case, I started with the cake driven side. Or, who knows - i may have reason to dive further into wp, in which case, might just go with custom post types. I’ve since learnt what I want to do can pretty much be done all in wp.

So, if you are interested in this topic, or looking for some help, check out the full readme. Any feedback on the solution is welcome as well. 



paying off a lost bet. 12 rousettes. though one got lost in transit.


trying out posterous > flickr

Use && to Chain Shell Commands Together

I bounce between 2 versions of cakephp - some projects are still on 1.2. 

I use a git checkout of the project. Sick of always having to cd ~/Sites/cake and then git co cakephp1.X, even with completion.

Simple solution. In most shells, you can chain commands together using &&, so it’s simple enough to make an alias to combine the commands. takes 1 min. You can apply this to all sorts of everyday tasks.

So, open your .bashrc (or wherever you prefer to put your shell aliases) and add (for example)

alias cake12='cd ~/Sites/cake && git co cakephp1.2 && cd -'
alias cake13='cd ~/Sites/cake && git co cakephp1.3 && cd -'

Breaking this example down: switch to cakephp directory, checkout version X, and the cd - takes us back to the previous directory.