[BangPypers] Code Review Request: Django-secure-login

2014-02-25 Thread Shabda Raaj
I just released a new version of django-secure-login and I would like to get some feedback. This app claims to add various checks around login and registration, and I would like to make sure I am not making any obvious mistakes, which actually degrade security. On github: https://github.com/agili

Re: [BangPypers] [JOB] Knowlarity is looking for a fullstack developers

2013-12-03 Thread Shabda Raaj
I would never classify myself as a "Ninja/Guru/Rockstar", but I would willingly classify myself as a Full stack developer. I started my web dev learning by coding html/js, learnt photoshop, moved to Python, learnt enough DBs to get by. Learnt some more JS. I am a full stack developer. I'm not a

[BangPypers] What are you using for developing desktop GUIs?

2013-09-26 Thread Shabda Raaj
I am building my first desktop app with Python and I would like to get recommendation on what toolkit to use. I am planning to use either PyGTK or PyQT. (Are there anything else I should consider.) I see a lot of outdated, unmaintained tutorials about these. I am looking for modern, opinionated t

[BangPypers] Python "Wat"s

2013-09-12 Thread Shabda Raaj
> whole qx business than Python programmers are with os and subprocess. That because subprocess and os module have a very bad api. I prefer using envoy whenevr I can. https://github.com/kennethreitz/envoy -- Thanks, Shabda Agiliq.com - Building Amazing Apps agiliq.com/blog/ | github.com/agiliq

[BangPypers] Do you pin your requirements.txt ?

2013-09-12 Thread Shabda Raaj
Curious how many people are doing/not doing it. (We pin our requirements.txt). -- Thanks, Shabda Agiliq.com - Building Amazing Apps agiliq.com/blog/ | github.com/agiliq US: +13152854388 | IN: +919949997612 | Skype: shabda.raaj Our Android Apps

Re: [BangPypers] Favorite tips/techniques

2013-09-10 Thread Shabda Raaj
> I personally like to use IPython. > To see all variables, constants, modules. Ipython is amazing. To see a library code, I jsut tab-out lib_name.__file__ and then !vim paste_the_file_path Going to add something like anand's pyvi to ipy_user_conf.py. Ipython with treat anything after bang(!)

Re: [BangPypers] Favorite tips/techniques

2013-09-10 Thread Shabda Raaj
Another tip: Its common to write decorators which clober the docstring and other meta data. If you use functools.wrap this metadata is preserved. http://docs.python.org/2/library/functools.html https://github.com/django/django/blob/master/django/contrib/auth/decorators.py#L19 On Tue, Sep 10, 2

Re: [BangPypers] Should equality (__eq__) be dependent on the typeof object?

2013-09-09 Thread Shabda Raaj
being, date.__eq__ should only care about the date components, it shouldn't even care about the time components. However datetime.__eq__ should care about the time components. However you want the __eq__ to be symmetric, so my argument doesn't work) On Tue, Sep 10, 2013 at 11:30 AM

Re: [BangPypers] Should equality (__eq__) be dependent on the typeof object?

2013-09-09 Thread Shabda Raaj
> I'd expect it to be False. There will be a small amount of time between the two invocations and the time will change Ok, that makes sense. Should have written a better test case. What about this. >>> datetime.datetime(2013, 1, 1) == datetime.date(2013, 1, 1) False >>> datetime.datetime.today()

[BangPypers] Should equality (__eq__) be dependent on the typeof object?

2013-09-09 Thread Shabda Raaj
Eg: See this: http://nbviewer.ipython.org/5151306 I was expecting datetime.date.today() == datetime.datetime.today() to give me a True. (It is false). For example this works as I expect: http://nbviewer.ipython.org/5151398 However looks like __eq__ is doing a isinstance check - I would expect

Re: [BangPypers] Python "Wat"s

2013-09-09 Thread Shabda Raaj
> A variable is either local or global. It is decided at the compile time. Erm, compile? Python's scoping rules are , erm, interesting: http://me.veekun.com/blog/2011/04/24/gotcha-python-scoping-closures/ The mnemonic for scoping is LEGB: http://stackoverflow.com/questions/291978/short-descrip

Re: [BangPypers] Favorite tips/techniques

2013-09-09 Thread Shabda Raaj
Real programmers pipe /dev/urandom :) Let me preempt the xkcd: http://xkcd.com/378/ On Tue, Sep 10, 2013 at 10:47 AM, Anand Chitipothu wrote: > > On Tue, Sep 10, 2013 at 10:45 AM, Noufal Ibrahim > wrote: > >> Anand Chitipothu writes: >> >> [...] >> >> > I use it very often. Here is my random-

Re: [BangPypers] Favorite tips/techniques

2013-09-09 Thread Shabda Raaj
igits) for x in range(N)) On Tue, Sep 10, 2013 at 10:18 AM, Anand Chitipothu wrote: > > On Tue, Sep 10, 2013 at 10:09 AM, Noufal Ibrahim > wrote: > >> Shabda Raaj writes: >> >> >> I generally like to use attributes instead of keys. >> > >

[BangPypers] Python "Wat"s

2013-09-09 Thread Shabda Raaj
This is a popular talk on quircks of ruby/js https://www.destroyallsoftware.com/talks/wat What are the quircks/unexpected behavior you find in Python? (Aka Python "wats"). -- Thanks, Shabda Agiliq.com - Building Amazing Apps agiliq.com/blog/ | github.com/agiliq US: +13152854388 | IN: +91994999

[BangPypers] Favorite tips/techniques

2013-09-09 Thread Shabda Raaj
> I generally like to use attributes instead of keys. If you are parsing json, aren't you limited to using keys? The bunch pattern can fix this, but its not widely known/used, so I don't use it as frequently as I would like. -- Thanks, Shabda Agiliq.com - Building Amazing Apps agiliq.com/blog/

[BangPypers] Favorite tips/techniques

2013-09-09 Thread Shabda Raaj
http://code.activestate.com/recipes/52308-the-simple-but-handy-collector-of-a-bunch-of-named/ With api responses after you have parsed the json, you start doing things like: api_response["attribute"] I would much prefer to do api_response.attribute Which the bunch pattern can enable. I don't u

[BangPypers] [Announce] Django Mason - A component manager for Django

2013-05-21 Thread Shabda Raaj
Tldr: github.com/agiliq/mason Details: We are working on a component manager for Django. Inspired by Yeoman/Bower/Bootsrap generator. django-mason.py lets you pick and choose the components you need and configures them for you so you can start your project easy and clean. This is very early pr

[BangPypers] Announce - Django Graphos

2013-04-28 Thread Shabda Raaj
Hello, I would like to announce our new app: Django-graphos. https://github.com/agiliq/django-graphos This is meant to make working with Django charting really easy. You can mix and match Data source charting APIs. * Python Nested lists * CSV Files * MongoDB * Redis * Django ORM ### Charting A

[BangPypers] What is the output of this python program?

2013-04-06 Thread Shabda Raaj
I saw this Java question on SO and ported to Python. http://stackoverflow.com/questions/15182496/why-does-this-code-print-hello-world Here is the searcher function: https://github.com/shabda/search-seed-for-word/blob/master/searcher.py It tries to find the seeds using brute force. Is there a wa

[BangPypers] What is the output of this python program?

2013-04-04 Thread Shabda Raaj
Something I found interesting. (Please try answering before running in the interpretor). https://gist.github.com/shabda/5317134 -- import random import string def random_word_from_seed(seed, len): random.seed(seed) letters = string.ascii_lowercase return ''.join([random.choice(lette

[BangPypers] [Announce] Django Parsley - client side validations for Django

2013-03-04 Thread Shabda Raaj
Hello, I would like to announce a new Django app: https://github.com/agiliq/Django-parsley This app make is trivially easy to get client side form validations (In addition to server side which django provides anyway). If you use this, I would love to get some feedback on how easy it was to use,

[BangPypers] Summary of the July Python Hyderabad Meetup.

2012-07-14 Thread Shabda Raaj
We had the Python July Hyderabad Meetup at Lamakaan. 5 people Turned up. Mohsin from Bank of America Rakesh from Mutual Mobile Uday from Mutual Mobile Akshar from Agiliq Shabda from Agiliq We had an interesting discussion about SL4A. I demoed the Python for IOS app. http://itunes.apple.com/us/ap

[BangPypers] Starting a Python User Group in Hyderabad

2012-05-12 Thread Shabda Raaj
Hi BangPypers, We are starting a Python Hyderabad User/Meetup group. We are having on on coming Saturday, May 19. A lot of Python people from Bangalore maybe knowing people in Hyderabad, so maybe you can join or suggest people who may be interested. Please RSVP at: https://groups.google.com/for