Skip to main content

Posts

Showing posts from August, 2012

Mamata Declares Herself to be Maoist : Anonymous...or is It?

I am sure most of you who is reading this post already know what happened on 14th August. 14th August night at 07:00 P.M IST aitmc.org (the official website of All India Trinamul Congress) was hacked (Wait I didn't say by who/whom). On Aitmc's site there is a place where the chairperson (Mamata Banerjee) expresses her views. On 14th night a new message appeared from the CM which went like below. " I AM A MAOIST at heart and always have been, It always pained me to speak and act against the ideology that I myself loved so much. I also appologize to the people whom I have hurt, The artist who tried to speak the truth, the writers who saw the right thing and every and any person who tried to tell me I was going in the wrong direction, I am at your feet asking you to forgive me for the misguided acts I have done In life " Well there were more but you get the point. The full statement can be seen in the below screenshot A full dump  can be seen here  htt

Testing In Python...and my Two cents

The only lesson I have learned in mys past one and half of years of experience in testing is that the easier I make writing and running tests for my programs, the faster I can produce bug-free software. Being a developer and also being a tester can do wonders I think. Never before this thought would have crossed my mind while coding. That is why I start most projects nowadays with two pre-baked files:  main.py  and  tests.py . With this setup and tools like  Nose , testing code in Python for me is nearly pain free. Recently however, I notice one aspect of the  unittest  package in Python's standard libary drives me absolutely crazy: Why is there no simple method to run a single test case from within an interactive python shell? As developers, this is important because if we are going to make writing tests an integral part of our development workflow, one needs some way to actually run the damn test without dropping out of our Python sessions and breaking out of our