Birthday cakes for programmers
int i=4;
while (i--)
/* 0100010 */
printf("%s%s\n",
"Happy birthday"
,i-1? " to you":
" dear Aki" );
/*TODO:use a
fork()*/
As you can see in the picture, the zeros and ones were replaced by candles on the cake. (Can you figure out how old the birthday boy is?)
Tools & Techniques
I got the original inspiration for this cake when I read the "Surprise for a programmer on Birthday" question on Stack Overflow. Sadly, that question has been deleted because too many people hate fun. However, you can see a shadow of its former glory on the Stack Printer archive site.

Once I had the code written and laid out, I was trying to think how I could ice the cake neatly enough to keep it legible. Then I remembered that some shops sell cakes with your photo on them. Could I draw an image of the code in a paint program and e-mail it to them? A call to my local Dairy Queen made me happy. Turns out they have edible paper and edible ink, and they just print it in a regular ink jet printer, how cool is that?
So all I had to do was draw the code, right? Not so fast, buddy! I wanted to make it look like an old dot-matrix printout, so I searched for a free dot-matrix font. There are a few of them, but they're all proportional instead of monospaced. Well, after much fruitless searching and head scratching I discovered Inkscape's vertical text orientation. With that, I could use the dot-matrix font I found, and force it to be monospaced. I had to type the text in columns instead of the usual lines - weird, but achievable. After that, I just added the green bars and I was done.
If you want to adapt my design for a friend's cake, you can download my SVG file and the font, then edit it in Inkscape.
Prior Art


Chantastic and team made this internationalized XML cake, along with a Spring XML cake, a SQL cake, and a UML cake. The UML cake looks like they figured out the edible paper trick before I did.




Update: My birthday cake
Aki returned the favour by designing a gamer cake for me. The cake itself looked like an old VT100 terminal, but he rigged up an LCD projector to display the screen contents on the surface of the cake. Then he wrote an interactive fiction piece about me at the office on my birthday. I've never played a text-adventure game with a room full of people watching before; it's a little distracting. When the little game finished, it triggered an animation of Conway's Game of Life that segued into "Happy Birthday Don". All in all, very impressive, Aki.
Labels: code
4 Comments:
i stumbled across this while looking for the remaining cake ideas. that was MY question!!! i think it's awesome that people are still making "coded" cakes. YAY! oh, this is tania (penelope) btw.
Hey, @Tania, thanks for saying hello.
This comment has been removed by a blog administrator.
This comment has been removed by a blog administrator.
Post a Comment
Subscribe to Post Comments [Atom]
<< Home