Skip to content

Instantly share code, notes, and snippets.

becomingGuru / gist:4979541
Created Feb 18, 2013
How Arindam Chaudhuri made a fortune off the aspirations—and insecurities—of India's middle classes. By SIDDHARTHA DEB
View gist:4979541
Sweet Smell of Success
How Arindam Chaudhuri made a fortune off the aspirations—and insecurities—of India’s middle classes
Published :1 February 2011
A PHENOMENALLY WEALTHY INDIAN who excites hostility and suspicion is an unusual creature, a fish that has managed to muddy the waters it swims in. The glow of admiration lighting up the rich and the successful disperses before it reaches him, hinting that things have gone wrong somewhere. It suggests that beneath the sleek coating of luxury, deep
under the sheen of power, there is a failure barely sensed by the man who owns that failure along with his expensive accoutrements. This was Arindam Chaudhuri’s situation when I first met him in 2007. He had achieved great wealth and prominence, partly by projecting an image of himself as wealthy and prominent. Yet somewhere along the way he had also created the opposite effect, which—in spite of his best efforts—had given him a reputation as a fraud, scamster and Johnny-come-lately.
becomingGuru /
Created Nov 17, 2012 — forked from javan/
My Sublime Text 2 setup
View ph
302 745 2095
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0yVPIfiCJWVipZAriF4nWSEvNaWxMK1Ruz7sqz86eT/vp9hvZRWPVNoT4N56JTyZbfYoSGfIhf0N1AUkDzsMTcXezL8WJ67c8Yr+29mFZ36iA7eVHNbeyCH3UGgNRV+Sqhu0i+Q8DKt4F77BMXBxGikE2Z8nLU2lPqZcYrUvjTbx5RuWH1o7/GFt9Tof7jNjsMRwy5FoKaZ+BK6vwm0hTGPuC2bHeQCNABUxmPhZGkGYngSbDxOP3+xdCRTpmmOEChZN3r0UXFC3re1tKoenNldxYPSw5l7z4SlhjY0UTVUFx6txZh/k3O2DQe19Ei3ZxiU6LeLhbbd0L4RK6KU/Pw==
becomingGuru /
Created Jan 9, 2012
How do you dynamically import a method from a module in the syspath, which you have as a string.
def get_method_from_file(full_path=['credit', 'syndloan', 'importer', 'sql', 'sql', 'loanDealSql']):
if len(full_path) == 1:
return map(__import__,[full_path[0]])[0]
return getattr(get_method_from_file(full_path[:-1]),full_path[-1])
becomingGuru /
Created Jan 2, 2012
Create Test Cases Dynamically, in Python.
import unittest2 as unittest
def get_verify_mtd(sum_tuple, sum_value):
def test1(self):
return test1
def create_test_case_class():
sumlist = range(20,30,2)
sum1_list = [20]*5
becomingGuru /
Created Dec 5, 2011 — forked from mikeyk/
A redis backend for Django Sessions, tested on Django 1.3+
from django.contrib.sessions.backends.base import SessionBase, CreateError
from django.conf import settings
from django.utils.encoding import force_unicode
import redis
class SessionStore(SessionBase):
""" Redis store for sessions"""
def __init__(self, session_key=None):
self.redis = redis.Redis(
def get_form(self, request, obj=None):
form = super(WapSiteAdmin,self).get_form(request, obj)
pl = Platform.objects.get(id=obj.platform_type_id)
rev_alert=WapSite.objects.filter(,pub_share__gt= str(obj.pub_share)).count()
if rev_alert !=0:
rev_msg='<b style ="color:red;">Please check the rev share ,publisher has got sites running on rev share greater then this</b>'
rev_msg='<b>Please select the rev_share</b>'
messege = 'Click here to get filter info'