Tagged: Code

4

Instgram for Crowdsourcing Postbox Locations

Update: Its become an all India postbox data collection project. Now we use the tag #openpostboxindia. The source code is open sourced and can be used for any type of photo and location based data collection using Instagram and Twitter. I have been using instagram a lot. If you follow me on instagram...

0

pyg2fa : Python Library for using Google Authenticator with your Web App

I have been using Google two factor authentication for a while. It’s probably the reason why I login using my Google id on every possible site I use. I can use a simple mobile app to generate time-sensitive one-time password (OTP) along with my regular password to login. Google authenticator mobile app allows...

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...