Codeception

Musings & ramblings of a Pythonista

New set of Developer Tools in Firefox

My friends at work were using Google Chrome for Debugging web pages saying that Chrome's Developer Tools are superior to Firefox. But starting with the new Aurora update Firefox Developer Tools looks way cooler with the new Page Inspector, Style Editor and Scratchpad.

The all new Right Click -> Inspect Element feature lets you select any HTML element and see the HTML code or Styles associated with it in clean ...

Continue Reading...

Custom Authentication for Google App Engine apps

Google App Engine

Google App Engine is a widely used and most popular PaaS solution provided by Google. App Engine provides the developer with a wide range of apis which can be used to develop web applications using any WSGI compliant Frameworks (Webapp, Tipfy, Django, Bottle, Tornado etc.). One of the apis App Engine provides is the users api, which most of the developers confuses for an api which provides user creation, authentication ...

Continue Reading...

Fix Parallels Desktop on Mac OSX Lion

Parallels Desktop

Most of the Parallels Desktop 6 users are experiencing an issue not finding the virtual machine windows after upgrading to Mac OSX Lion. This might be caused by the Desktop (inwhich Parallels to run on) being set to None during upgrade. Mission Control to blame? But this can be fixed very easily. Follow these steps,

  1. Create a Dock Icon for Parallels Desktop if not
  2. Launch Parallels Desktop
  3. Right click the ...

Continue Reading...

A commandline mapper

Python provides a builtin map function which applies a method over a list of entities. This function comes handy in a lot of situations as in

# find the square of all integers in a list
# Eg: 
#   input: [1, 2, 3, 4]
#   return: [1, 4, 9, 16]
map(lambda x: x*x, list_of_integers)

Similar functionality can be achieved in linux commandline using a combination of unix pipe | and xargs command. For ...

Continue Reading...