You know you envy my home server on a fridge
October 27th, 2009How to fix the WordPress prepended linebreaks error
October 26th, 2009A while ago I noticed that the RSS feed for MyPieceOfTheInter(.)net stopped working. Strict XML parsers like those in Google Chrome and Internet Explorer refused to parse the RSS feed. Looking around different places, I found that a lot of weirdness was happening.
Viewing the source of the homepage reveled that there were unexpected linebreaks at the top of the document.
New and improved! The previous post on one line!
October 20th, 2009This following bash code outputs the puzzlebot facebook email from my previous post with no extra output. This is one of those “just for fun things” that non-CS people don’t understand.
echo -e "#include <stdio.h>\nint main(int argc, char ** args){printf(\"%d@facebook.com\\\n\", 0xFACEB00C>>2); return 0;}" > fbmail.c; g++ fbmail.c -o fbmail; ./fbmail; rm fbmail.c fbmail
http://facebook.com/puzzles
October 20th, 2009I had a preliminary interview with a woman at Facebook yesterday. We scheduled another interview for Thursday, which will have more technical kinds of questions. I asked her what i should be doing in the interum,and she suggested that I check out http://facebook.com/puzzles. The page had brushed past my radar in the past, but I didn’t give it a serious look until now. The page has a bunch of programming puzzles for anyone to do. Even the submission email address is a puzzle.
Submissions should be sent via email to the address: {0xFACEB00C>>2 in decimal}@facebook.com
Since one can easily find the email with a quick Google search, I thought I’d show how to find it. The puzzle page is Unix-centric, so for this task I logged into an Ubuntu virtual machine that lives on my home network.
In ViM, here’s the simple program:
Ewww gross in the sink
October 14th, 2009ick. look what I found in the kitchen sink this morning. Currently the thing is still in the sink, but mashed under a paper towel.

