Archive for 2009|Yearly archive page

For bookmarking purposes

In Uncategorized on April 5, 2009 at 18:18

When you want to print the time from inside the kernel, you cant use gettimeofday or clock_gettime. You have to use getnstimeofday. This is because we can’t link the librt library when compiling. I think.


Star Wars on the Terminal

In Uncategorized on March 1, 2009 at 20:14

So, like the geek you are, you spend most of your time on the Terminal, hacking away at your code. Now and again, you feel the urge to watch a movie. But you have to fire up a whole new app for that! Fear not! For now, you can watch a movie from your beloved command line!

Just telnet to, and enjoy Star Wars IV: A New Hope in ASCII goodness! Thats right, the entire movie is rendered in ASCII text.

The first one to sit through the entire text movie wins the “Best Geek” award 😐

PS. For all you non-geeks out there:

1. What are you doing on this blog?

2. Copy and paste the following “code” into your Terminal/Command Line:


The Rhino Party

In Uncategorized on January 16, 2009 at 20:02

Apparently, there is (was?) a party in Canada which has named itself the “Rhinoceros Party of Canada”. Their main promise is a “a promise to keep none of our promises.”

Some of their other promises include:

Providing higher education by building taller schools

Ending crime by abolishing all laws

Adopting the British system of driving on the left; this was to be gradually phased in over five years with large trucks and tractors first, then buses, eventually including small cars and bicycles last

Despite such great propaganda, they never won a seat in parliament. I wonder why? I would have voted for them…

(via The IIM Thalleh, and Wikipedia)

Join and split pdfs on the Mac

In Uncategorized on January 2, 2009 at 08:41

Just another one of the Mac’s awesome semi-hidden features: OS X has Python script that merges pdfs from the command line.

Located at “/System/Library/Automator/Combine PDF Pages.action/Contents/Resources”, the script takes the pdf file names as input and produces a merged document!

Usage: ./ –o <file> <inputfile1> <inputfile2> [–append] [–shuffle] [–preview] [–verbose]

Macs rule! 😀

(I remember reading somewhere that UNIX has a similar script. Can anyone confirm/locate it?)

The Girl Effect

In Uncategorized on January 2, 2009 at 03:09

More here