Tagged: Code

Octopoda – MapReduce for Human Beings in Python 0

Octopoda – MapReduce for Human Beings in Python

I have been wanting to learn MapReduce for a long time. I never got a requirement where I could use it. Last few weeks I have dabbling with huge datasets. It was time and as usual I started with wikipedia. There are huge systems and frameworks built on the concept of MapReduce. They...

Deployment of PHP or Python Applications using Mercurial and Fabfile 3

Deployment of PHP or Python Applications using Mercurial and Fabfile

Deployments are usually very painful. We generally write scripts to make it automated as much as possible. I wanted my method to be as easy as running single line on command prompt from anywhere in the world. I didn’t want to worry about anything. At last with some experimentation I have found my...

The Bad Code Offset 7

The Bad Code Offset

All of us at one time or the other written bad code. Now we cant go back and correct it, but we can offset it by buying “The Bad Code Offset“, just like how big companies buy “carbon offset”. The money spent on buying “The Bad Code Offset” is sent to these five...

Logging uncaught exception (redirecting from sysout to logger) 0

Logging uncaught exception (redirecting from sysout to logger)

Uncaught exceptions in Java are handled by the System. The JVM usually logs the exception into the System.err and then shuts down. But in case of web applications its different. It logs the printstack trace to server console and then continues. Even though most of the time System.err is redirected to a file...