Archive for April, 2009

The Stressed Listener

Thursday, April 16, 2009 1:43 1 Comment

One of the most hillarious code segments I have come across in recent times..

public class StressedListener implements PeopleListener {
Stack<Toffee> myToffees;
public void doListen(Person someone) {
try{
someone.wontShutUp();
} catch (OMGCantStandItException ex) {
while(someone.isMouthMoving()) {
someone.feed(myToffees.pop());
}
} finally {
self.enjoyPeaceAndQuiet();
}
}
}

This was posted under category: Technical

The End-of-Line Story

Sunday, April 5, 2009 2:02 2 Comments

I got the answer to a mystery that existed with me since very long. When one creates a file in an editor in windows and opens it in unix in vim, the editor shows weird ^M characters at the end of each line.
I read this today. Now I know what that ^M actually stands for. [...]

This was posted under category: Linux, Technical, Windows Tags: , , , ,