Tags
My Project
08 Friday Feb 2013
08 Friday Feb 2013
Tags
23 Wednesday Jan 2013
Posted in Uncategorized
These days a lot of people have to relocate to a different state in India because of work and they tend to take their vehicles with them. Traffic sleuths are always looking for a out of state vehicles to slap a huge fine and most people tend to bribe their way out because seriously who wants to get involved in matters concerning RTO and pay the whole road tax when they are actually for a short term period in another city, but all these vows can be avoided, a lesson I learnt the very hard way. It so happened that I moved to Pune and I didnt know about the correct procedure, I got caught a couple of times and then I couldnt take it anymore so I decided to get my vehicle registered in Maharashtra(as suggested by a dalal whom I met at Pune RTO). Re-registering a vehicle is not actually required but those dalal(read bastards) would say its better to get it registered to churn out more money from your pockets. The right thing to do here is just pay the road tax for another state, this sounds crazy as you are not going to stay permanently in another state but what most people don’t know is that there is a provision to get a refund if the stay is for a short time and the refund is calculated for the number of months stayed. So all you have to do is to get a NOC(no objection certificate) which is required so that the RTO knows that their are no pending cases on that vehicle or if the vehicle actually belongs to you. Getting a NOC is fairly easy, all you have to do is to go to the RTO where you vehicle is registered and they will tender the NOC in a day or two without any charges. Next when you arrive in another city then within a month pay the road tax. The papers that you need for paying the road tax are as follows
Well and thats all their is to it. You can get everything done in a days time just keep in mind not to contact any dalals in between or you will have to pay extra and it might take more time and a lot of headaches. Also if you dont pay the road tax within a month when the NOC was tendered then the RTO will charge you extra for the months you have stayed in another city. So no re-registration is required all you have to do is to pay the road tax.
22 Tuesday Jan 2013
Posted in photos
This gallery contains 7 photos.
11 Tuesday Dec 2012
Posted in Uncategorized
07 Friday Dec 2012
Posted in Uncategorized
This post is part of the Powerful Python series where I talk about features of the Python language that make the programmer’s job easier. The Powerful Python page contains links to more articles as well as a list of future articles.
Namespaces are a fundamental idea in Python and can be very helpful in structuring and organizing your code (especially if you have a large enough project).
07 Friday Dec 2012
Posted in Programming
Tags
LEGB rule, python, python scopes, python scoping rule, scoping in python, understanding python scopes
Actually, a concise rule for Python Scope resolution, from Learning Python, 3rd. Ed.. (These rules are specific to variable names, not attributes. If you reference it without a period, these rules apply)
LEGB Rule.
L. Local. (Names assigned in any way within a function (def or lambda), and not declared global in that function.
E. Enclosing function locals. (Name in the local scope of any and all enclosing functions (def orlambda), form inner to outer.
G. Global (module). Names assigned at the top-level of a module file, or declared global in a def within the file.
B. Built-in (Python). Names preassigned in the built-in names module : open,range,SyntaxError,…
So, in the case of
code1
class Foo:
code2
def spam.....
code3
for code4..:
code5
x()
The for loop does not have it’s own namespace. It would look in the LEGB order,
L : local, in the current def.
E : Enclosed function, any enclosing functions(if def spam was in another def)
G : Global. Were there any declared globally in the module?
B : Any builtin x() in Python.
source- stackoverflow
06 Thursday Dec 2012
Posted in Linux
Tags
Read, heard and ever wondered what a tty is. Well it stands for teletype and it is a command used in the shell. Basically it gives information about the terminal that a user is currently at. TTY has historic significance as they were used in the first computers which were TeleType terminals and these were essentially remote controlled typewriters. When you enter the command ‘tty’ in the shell without the quotes you will receive a response ‘dev/pts/1′ or some other number which essentially tells you that you are using device /pts/1.
25 Sunday Nov 2012
Posted in Uncategorized
This was a problem that my sister was facing when she tried to clean and tune up her laptop(girls shouldn’t mess with their laptop). Anyway after trying to optimize her laptop what happened was Windows Aero theme vanished and reverted back to that ugly 1998 windows classic theme. If you are facing the same problem and “Windows Color” scheme is not showing Windows 7 Basic and Windows & Standard options and it is just showing that Windows Classic theme then you need to follow these steps.
23 Friday Nov 2012
Posted in Programming
To convert a string into python dictionary is not at all difficult all you have to do is to
import ast
a_string=u"{1: 'FA-1', 2: 'FA-2', 3: 'SA-1', 4: 'FA-3', 5: 'FA-4', 6: 'SA-2'}"
a_python_dictionary=ast.literal_eval(a_string)
11 Sunday Nov 2012
Posted in photos