python interpreter vs lisp interpreter

I recently remember reading python is not similar enough to lisp, because the intrepreter doesn’t give you the internal data structure but strings. While this was a theoretical idea at the moment ran across today.

>>>from django_auth_ldap.config import LDAPSearch

I am basically poking around this django_auth_ldap module to figure out how to get it to work with my django app. right now it’s throwing an operation error: need to perform bind before this operation(cn lookup).

Here i import this class and test some functionality of this django_auth_ldap module and see how it works for me..

At this point, am sick of searching for the error message on google and getting meaningless results that don’t solve my problem..Also nobody currently on the #django irc channel seem to know or are interested.

Time to Read the source. Ok let me see where’s the codebase in my unix directory structure..(Yeah, i don’t follow one single way of getting packages installed, just do whatever works.. i know bad practice yada yada… but hey, am lazy and haven’t crossed the tipping point to find this behaviour more work than the recommended best practice :-))

>>> LDAPSearch.__file__
Traceback (most recent call last):
File "", line 1, in
AttributeError: type object 'LDAPSearch' has no attribute '__file__'

Uh.. oh LDAPSearch is a class not a module

>>> help(LDAPSearch)

>>> LDAPSearch.__module__

Ok, i can get the module using this let me see… if i can get the file from it too.

Traceback (most recent call last):
File "", line 1, in
AttributeError: 'str' object has no attribute '__file__'

Oh.. crap… the .__module__ returns a string and not a module object.. If only..

Well.. this probably won’t work.. still it’s only a couple of keystrokes away… No point trusting when you can test easily(empircist)

>>> eval(LDAPSearch.__module__).__file__
Traceback (most recent call last):
File "", line 1, in
File "", line 1, in
NameError: name 'django_auth_ldap' is not defined

Ah…. now i want python to be more like lisp*… i don’t want just the module name as string i want the module object to be accessible….

*– even though i don’t know lisp :-P

Easiest and hardest classes to teach

This explains a great deal about, why I enjoyed differential equations better and hated stats courses. I always have trouble ignoring ambiguity and focussing on the method to get results. Sigh..fancy, my life would have been better otherwise.(note:it’s just a fantasy, I have no way of testing it.) My guide would have called it global vs local..textsuperscript{8}
Anyway, finally learning to focus on what I can do? And let everything else be dealt with as they come.:-)
ihbarfrac{partial}{partial t}left|Psi(t)right>=Hleft|Psi(t)right>



Am a fucking introvert
that means, i don’t want more interaction,
that means, if you’re a stranger, stop making irrelevant comments,
that means, unless we have met, stick to the business we are discussing,
fucking stop the extraneous comments, taunting,teasing etc..
Stranger —
that means, i don’t know your base rates of comments/patterns,

that means, anything you say is a new dataset, that requires a lot of processing,to get to the truth of,
that means, stick to the point, and don’t bullshit, lest i think you’re a salesman.
that means, if you don’t know what you are talking about, fucking learn, do your basic research,
that means, expect me to have done the basic research already and have formed a fucking opinion on the topic.

It does not mean, i like to sit in a corner and just think,
It does not mean, i hate people,
It does not mean, i think implicit is better than explicit,
It does not mean, i hate interacting with people,
It just means, i like to have a upper limit of my people interactions.:-)

Not Normal

Alright. am not normal. Go ahead sue me. Not normal if there’s an objective study of whatever measure you want to try am either very low or very high. A statistical outlier. And by your subjective definition no way… infact just knowing your subjective definition of normal, makes me wanna become an outlier, just for the sake of freaking you out.. But guess what, i can pretend to be normal. If you want to talk about normal go and read the wikipedia page. After that think about how the concept fits into whatever topic you were trying to use normal adjective about. Then come we’ll discuss whether or not the normality concept is useful in that context.

It takes effort on my part to do so. Because
1. To figure out a boundary condition of your subjective idea of normal
2. To convince myself that i believe in that or to make sure my actions are consistent with those beliefs.

Do notice how much effort and work that looks like? That’s why i am a loner. To be anything other than that, i’ll have to follow those 2 steps. I really find that too costly and more importantly unhealthy in any reasonably long timespan. Not to mention meaningless and not even a break-even ROI.

P.S: Sometimes i really wish i had Asperger’s Syndrome. Then i have a good excuse for not being polite and civil to annoying people. Not to mention i might have some savant skill.

P.P.S: For all you extroverts, who want to chirp in with a smart comment, when strangers are having a discussion, piss off. Unless of course, you want me to make your world weirder by confusing the crap out of you. Just shut up and go away, i don’t enjoy out of context comments from strangers and might bite you one day for commenting.

gedit vs vim

I have been using gedit over the recent months over vim. Main reason being the Ctrl+O and the default open file window that gives a visual view of the list of files present in the current folder. somehow that window seems so familiar and am reluctant to switch to hitting :!ls ./ But perhaps, it’s time for me shift. the search and replace on gedit is just bloody annoying.. it’s the biggest thing that draws me to move my hand to the mouse. In contrast hitting :s///gc sustains a state of keyboarding flow… the gedit window doesn’t exactly force me to use the mouse but tabbing through the options and strong habit make me reach for the mouse…Time to man up and learn the Ctrl+O equivalent in vim or configure it in vimrc.

Also the keyboard shortcut to select a couple of lines and comment seems easier with gedit… perhaps it’s just am more used to it by now.. ….

Update: 12-May-2013
Hmm, more than a year later, i can’t remember the last time i reached for gedit.. Been on vim full time now… learnt enough customizations and tricks on vim…. Only mouse reaching is to copy paste from other windows(mostly browsers.. darn web2.0 and newer ideas of bringing desktop app style to websites…) it’s almost impossible to navigate websites without mouse.. the kb-tabbing works but the focus/highlighter is just not very visible in most colour templates for the websites… I really ought to get used to vimperator to navigate web apps or perhaps uzbl.. browser.

Update: 29-May-2013
On a whim(rather lazy mindset, no pun intended) opened up gedit to edit a latex file. Immediately missed the column-wise select (in visual mode) and delete option from vim.. Damn…I guess am a convert now..


It’s amazing how much you see your master’s thesis guide in your behaviour long after you graduate.. .Perhaps even more amazing is the fact that you see that despite mostly trying to avoid him during your graduation years…. Or perhaps, even more amazing is how big of a fight you had over what what issue(in this case global vs local) and how exactly that’s what makes you remember him/her..