Skip to main content

Posts

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

Building Blocks of My First Native App

A few months back when I was at the NASSCOM Tech-Unique (yes the second version of the It-NIketan where I had to deliver a speech last time) it seemed the event mostly centered about how Mobile Web is emerging and how we should embrace it. In the discussion there we several interesting points raised and people started dragging PhoneGap in. While this was a very interesting topic, it disturbed me for certain reasons. I raised my worries, and unfortunately the speakers or the panel couldn't come to any solutions. So I am still at a loss for the cons of this method. Nevertheless I decided to put my mind out on the matter. I consider myself well-versed in web development, and I was excited about the features that PhoneGap brings to web apps. Going the HTML5 web app route seemed like the most sane route. Pros You don't have to learn any new languages if you're already a decent web developer It's very quick to prototype Though we didn't end up using it,...

Anonymous Defaces BJP Site in Protest

A day after messing with servers maintained by Reliance Communications, Anonymous, an international hacker collective, defaced two websites belonging to BJP on Sunday. Through its Twitter account (@opindia_back) it announced that www.mumbaibjp.org  and www.bjpmp.org.in  were  hacked  by the group. After the hacking, the group posted a message to web users, asking them to organize protests against "web censorship" in India on June 9. While the message was displayed on the homepage of  www.mumbaibjp.org , on www.bjpmp.org.in  it was inserted as a page at  bjpmp.org.in/ads/anon.html . On Mumbai BJP website the message was accompanied by a catchy tune embedded through a  YouTube  link. "Today they took away your right to use a few websites... day after tomorrow they will take away your freedom of speech and no one will be there to speak for you. Speak Now or Never," the message read. The hackers said that people should print out or buy  Guy...

Anonymous India Releases Reliance’s Site Block List; Calls For On-Ground Protest On June 9th 2012

I just found out this story. And keeping in mind how only one site is sharing this thought of sharing it through my blog. Go through the post. And do give your views about it. Anonymous Operation India (AnonOps India) has accused Reliance (Communications) of going beyond the mandate given to it by courts and the government and blocking sites without authorization. In an Internet Relay Chat (IRC) based press conference hosted at anonops.com, anonymous Anonymous Operation India members said that they hacked into Reliance’s servers and obtained a list of all government blocked websites, as well as links to sites that have been blocked by Reliance, including links to search results and blogs on a Satish Seth.  The speaker also accused the media of maintaining silence and not covering leaks of lists of websites, and accused the ISP of unblocking websites only to block them again. They said that they hacked into BIGCinema, and shared documents with ticket s...

Back To Rails: Sorting a Rails log by SQL Duration

This is something I just stumbled upon. And here's what I did to it. Rails’ ActiveRecord logger writes log files like: Post Load (735.8ms) SELECT  posts .* FROM  posts  where post.title = 'rkship' You may want to know the longest SQL queries for performance optimsation purposes, and general troubleshooting(my case). To list recent queries in order of duration, with longest queries shown last, I used this: head -10000 development.log | grep '([0-9.]+ms)' | sed 's/. (([[:digit:].]+)ms. /\1ms &/g' | sort -n (The sed expression was a little more work than I’d bargained for as sed regular expressions are always lazy; even with GNU/Posix extensions, non-lazy just doesn’t exist.)

April Fool and Google Part 2: A Round Up of ALL of Google’s April Fools Jokes

Ok....this post I think will contain all of the pranks I could find  for today. After my last post here http://rkrants.blogspot.com/2012/04/april-fool-and-google-my-favorite.html Last Time I reported Only a handful of the pranks.. Understandable, as it was only the morning. After that I stumbled upon more of them Which I am gonna round up here. Now staring with the list. The very first one is obviously our favourite Google Maps Quest The above is their official video. In a post in Google Plus they say about it as follows  Today  + Google Maps  announced Google Maps 8-bit for NES. With #8bitmaps , you can do everything you'd normally do in Maps—search for famous landmarks and sites around the world, get directions and even use Street View. Just in time for April Fool's Day, Google has introduced Google Maps Quest, a retro 8-bit version of its mapping tool that is... totally awesome. In a characteristically whimsical video, availabl...