Re: [BangPypers] Auto Login to Website and Capturing more details

2011-12-22 Thread Noufal Ibrahim
Nikunj Badjatya writes: > Hi All, > > I am trying to use Python power in my daily life. > Do you have Airtel Broadband Connection ? YES / NO ? In either case..read > on. ! > I am trying to write a script which will automatically login to Airtel page > https://ebpp.airtelworld.com/cares/wps/myport

Re: [BangPypers] Reading registry keys

2011-12-22 Thread Noufal Ibrahim
Nitin Kumar writes: > Hi All, > > I am in learning phase to handle registry keys and manipulate it. > I guess we can use winreg as well as win32com for the same purpose. > > can anyone please tell me the difference in their usage. winreg is a part of the standard library on windows that allows y

Re: [BangPypers] Python's stdin buffer size

2011-12-21 Thread Noufal Ibrahim
Amit Sethi writes: > Hi , I am trying to read in a large message piped to a python script. > The message would have something like 1000 words . How can one > increase the buffer size of sys.stdin in python. What's the problem with just a body = sys.stdin.read() and then processing bod

Re: [BangPypers] procmail and python

2011-12-21 Thread Noufal Ibrahim
Amit Sethi writes: > I think I should mention that i am fetching mail from gmail. Is there > an encryption that google uses . Also the mails are being received > fine on mutt. Yes but if you're fetching them, then you've gotten that part working. How are you fetching your emails? fetchmail? --

Re: [BangPypers] procmail and python

2011-12-21 Thread Noufal Ibrahim
Amit Sethi writes: > Has anybody here used some kind of python script with procmail . I > want to set up a script that looks at a certain words in a mail and > forwards it to users. However I am not able to understand how can I > read the message in python script. > > The documentation suggests s

Re: [BangPypers] colored o/p

2011-12-20 Thread Noufal Ibrahim
Nitin Kumar writes: > Hi All, > > I am trying to format o/p (colored bold string) on console. say IDLE or > python command prompt using python modules. You *can* use curses (or the newly released blessings[1]) library. There are also a few recipes on activestate to do this. I remember using on

Re: [BangPypers] Baypiggies

2011-12-16 Thread Noufal Ibrahim
It's been too long since we even *had* a user group meeting. Why the apathy? Venkatraman S writes: > So i am vising bay area and turned up for the baypiggies group meeting > yesterday. There was a talk on whats 'pythonic'. > > What was interesting was, of the 20people who turned up, around 5

Re: [BangPypers] Commenting code regions and indentation (Emacs, Python)

2011-12-08 Thread Noufal Ibrahim
Vikas BN writes: > Hi All, > >   I use Emacs for my editing and python-mode.el specifically for > python editing. The mode that's *not* part of Emacs. Correct? >   However, I want to change the default behaviour of commenting > regions in Emacs. >   Currently, when I select a region and hit M-

Re: [BangPypers] virtual-python & easy_install doubt

2011-12-07 Thread Noufal Ibrahim
Ashutosh Narayan writes: > Yes, virtualenv is an extension of virtual-python. I can try that as well. > But again my concern is why easy_install is not picking up the virtual > environment that I have set to. Any pointers ? [...] I don't think anyone uses virtual-python anymore. You should use

Re: [BangPypers] ElementTree object instance evaluates to False?

2011-12-05 Thread Noufal Ibrahim
Vikas BN writes: [...] > Anyone else encountered this or even have any insights regarding > this behaviour? I'm using Python2.7.2 on Linux > if that matters. ElementTree's `Element` objects behave this way. The "booleanness" is not conformant to the rest of Python. I don't know if or w

Re: [BangPypers] Weird Try..Except Error

2011-11-25 Thread Noufal Ibrahim
writes: [...] > I checked the comma and spacing and didn't find any problem. Python 3's "except" statement is different[1] You should say except ImportError as err_msg Also, your error message is misleading. Best let the import error propagate. The traceback will be more useful in f

Re: [BangPypers] "continue" in "try..except"

2011-11-21 Thread Noufal Ibrahim
writes: > Hey Philippe, Thanks exactly what I wanted. My main() is calling > other scripts written in powershell(.PS1) using subprocess.call(). > Will this mechanism work in that case also ? I mean will this resume > the execution from the same place where it left off as desired ? I didn't know

Re: [BangPypers] [pythonpune] Re: To use Pinax or just Django

2011-11-21 Thread Noufal Ibrahim
Vineet Naik writes: > Hi Noufal, > > What do you mean by "it's too hard to mix and match". I've done only one non trivial project with Django and my impression was that you are bound to do everything the Django way. You cannot select the ORM, templating engine etc. and expect the rest of the thi

Re: [BangPypers] [pythonpune] Re: To use Pinax or just Django

2011-11-20 Thread Noufal Ibrahim
I wouldn't recommend Django either. My experience is that it's too hard to mix and match and prefer a lighter framework like flask. On 11/21/11, Ramdas S wrote: > I wo > > On Mon, Nov 21, 2011 at 6:35 AM, B.Nanda Kishore > wrote: >> I also suggest using Pinax as a reference sake only. I had to u

Re: [BangPypers] "continue" in "try..except"

2011-11-20 Thread Noufal Ibrahim
writes: > Hi , > > Please look at the below code snippet: > > {{{ > > if __name__ == "__main__": > try: > main() > except KeyboardInterrupt: [...] KeyboardInterrupt is an exception that SIGINT(2) is translated into by the interpreter. If you want to handle a ctrl C, use the sig

Re: [BangPypers] Hello // Intro

2011-11-18 Thread Noufal Ibrahim
bhuvan thaker writes: > Hello Everyone, > > I came across your group via Python.org. > I have a query regarding application development. // I do not have a > technology/engineering background and hence this questions. > > Please advice.. > > + What programming language is most suitable for web 2

Re: [BangPypers] Import Error

2011-11-13 Thread Noufal Ibrahim
Subhodip Biswas writes: > Hi all, > > I am trying to install lxml in my windows box with jython 2.5.2. I can > see a lxml egg folder in site packages under jython installation > directory. > However if I try to import lxml the following thing happens : load_dynamic is something used to load shar

[BangPypers] Fwd: Panel at PyCon US 2012 about the international Python community

2011-11-11 Thread Noufal Ibrahim
Is anyone from here planning to attend the PyCon in the US this year? This would be a nice forum to get some visibility and attention. Mike Müller writes: > Hi PyCon India organizers, > > I submitted a proposal for a panel discussion at PyCon US 2012 in March 2012 > in Santa Clara, CA (http:/

[BangPypers] Pony mode

2011-11-10 Thread Noufal Ibrahim
If you're using Emacs and work with Django, you might find Pony mode[1] useful. It seems to be quite feature rich. Footnotes: [1] https://github.com/davidmiller/pony-mode -- ~noufal http://nibrahim.net.in Gentlemen, I want you to know that I am not always right, but I am never wrong. -Samu

Re: [BangPypers] Seeks Professional Guidance ?

2011-11-09 Thread Noufal Ibrahim
vishnu prasad writes: > Hi to all Greetings from vishnu prasad gaddam, am working in call > centre i would like to continue my carrer in open source especially in > python language can u tell me python is related to web development how > it is suppose to explore with django frame work ?is there

Re: [BangPypers] [chennaipy 1126] [XPost][Slightly OT] Could you share your experiences about Python Freelance programming, from a programmer's perspective

2011-11-03 Thread Noufal Ibrahim
Senthil Kumaran writes: [...] > I can understand your situation. One possible suggestion is to pay > well and hire smart students based upon their academic and project > strengths and let them start new on whichever technologies you are > using. The problem is that most academic and offical pr

Re: [BangPypers] [chennaipy 1126] [XPost][Slightly OT] Could you share your experiences about Python Freelance programming, from a programmer's perspective

2011-10-31 Thread Noufal Ibrahim
Vishal writes: > Hello Everyone, > > I have a friend, who's finished his education and looking for work. He > asked me about freelance programming and I had nothing to share with > him. Thought of getting to know this mode of professional > programming. I wouldn't recommend it for a fresher. It

Re: [BangPypers] [OT] Git training course

2011-10-20 Thread Noufal Ibrahim
Hello everyone, There are few more seats left for the course. If anyone here uses git or is interested in starting, do sign up and join us this weekend. The registration link is at http://git-training.doattend.com/ Thanks. Noufal Ibrahim writes: > Hello every

Re: [BangPypers] File operations

2011-10-19 Thread Noufal Ibrahim
Shashidhar Paragonda writes: > Hello Noufal I have tried your solution but i get invalid syntax for this > line *with open() > *I am using python 2.3.5 what could be the problem. You could simply use f = open("file.txt","r") instead. The with statement was added only later. 2.3.5

Re: [BangPypers] File operations

2011-10-19 Thread Noufal Ibrahim
Shashidhar Paragonda writes: > Dear Noufal, > > Thanks for your reply > I did in this way is it efficient way to achieve the same requirement Doesn't seem so to me. You're going over the lines of the file once without and two times within for each of those iterations. You should use a set or a

Re: [BangPypers] File operations

2011-10-19 Thread Noufal Ibrahim
Shashidhar Paragonda writes: > Dear Python hackers, > > I have a text file and the contents are like : > > #( > #resultToExportToCurveDistDialog ' ->' > #off) > > like same structure many lines exi

Re: [BangPypers] Abstract base class in Djangi forms

2011-10-18 Thread Noufal Ibrahim
Asif Jamadar writes: > How can I use abstraction of base class in django forms? In models we > need to set "abstract=True" so that we can access the base class > fields, similarly what concept I should follow to use abstraction in > django forms. I might be off on this since it's been a while

Re: [BangPypers] Interesting library

2011-10-17 Thread Noufal Ibrahim
Anand Balachandran Pillai writes: > On Tue, Oct 11, 2011 at 5:06 PM, Ashutosh Narayan < > aashutoshnara...@gmail.com> wrote: > >> Hi, >> >> Came across this interesting library for sys-ad stuffs. >> >> http://docs.fabfile.org/en/1.2.2/index.html >> > > Isn't paramiko enough for most remote script

Re: [BangPypers] Please update venue details

2011-10-17 Thread Noufal Ibrahim
vishnu prasad writes: > Hi to all > > when and where the venue details of this user group will conduct please > update ? [...] Nothing decided yet. -- ~noufal http://nibrahim.net.in Smoking is the leading cause of statistics. ___ BangPypers maili

Re: [BangPypers] Read barcode input

2011-10-13 Thread Noufal Ibrahim
Asif Jamadar writes: >>From the scanner. [...] This is not something django specific is it? My understanding is that 1. You'll have to configure your device to work with whatever OS your web client is running on. Not the machine where the Django app is running. 2. You'll have to read

Re: [BangPypers] webmail server

2011-10-12 Thread Noufal Ibrahim
Kenneth Gonsalves writes: [...] > that is my problem - the default for roundcube is mysql, and am unable > to configure it for postgresql without spending time on understanding > how installing drivers for PHP works. And I do not want to spend that > time for a one-off thing like this. If it's

Re: [BangPypers] webmail server

2011-10-12 Thread Noufal Ibrahim
Kenneth Gonsalves writes: > On Wed, 2011-10-12 at 18:01 +0530, Baishampayan Ghose wrote: >> Lamson - http://lamsonproject.org/ > > sorry - wrong question - I meant webmail client - like openwebmail. There was posterity[1] but it's no longer maintained. There are http://www.squirrelmail.org/ a

Re: [BangPypers] Interesting library

2011-10-11 Thread Noufal Ibrahim
It does solve a problem but it's got it's own limitations which are sometimes annoying. "s|s" writes: > Great starting point for writing a remote app installer. > > On Tue, Oct 11, 2011 at 5:06 PM, Ashutosh Narayan > wrote: >> Hi, >> >> Came across this interesting library for sys-ad stuffs. >

[BangPypers] PyCon tutorial submission deadlines

2011-10-10 Thread Noufal Ibrahim
Hello everyone, There's 2 days left for the tutorial submission deadline for PyCon this year. It's a really great conference that's completely community driven and something worth attending if you're a pythonista. Accepted instructors receive an honorarium for their tut

Re: [BangPypers] An interesting post on "the next web app language"

2011-10-08 Thread Noufal Ibrahim
Sriram Narayanan writes: > http://seldo.com/weblog/2011/08/11/php_needs_to_die_what_will_replace_it [...] Thanks for the article. He does make some interesting points. I'm reminded though of Ian Bicking's old article on PHP http://blog.ianbicking.org/2008/01/12/what-php-deployment-gets-right/

Re: [BangPypers] When and where the user group meet will be held ?

2011-10-08 Thread Noufal Ibrahim
vishnu prasad writes: > When and where the user group meet held in bangalore ? They're discussed and decided on this list. If you're a member, you'll know. > what about the cost of the registration fees ? There is none. [...] -- ~noufal http://nibrahim.net.in Parting is such sweet sorrow

Re: [BangPypers] [OT] Git training course

2011-10-07 Thread Noufal Ibrahim
Kenneth Gonsalves writes: [...] > I see some repos on bitbucket - you maintain them with hg-git? (a good > topic that you could add) No. I can use basic hg (which is what I did to get those repositories). They were basically just bug fixes and things to send back to the original authors. Tha

Re: [BangPypers] [OT] Git training course

2011-10-07 Thread Noufal Ibrahim
Kenneth Gonsalves writes: > On Fri, 2011-10-07 at 13:59 +0530, Noufal Ibrahim wrote: [...] > if you were to include something on mercurial, it would no longer be > OT Arguably but I don't use hg. -- ~noufal http://nibrahim.net.in I distinctly remember forgetting that.

[BangPypers] [OT] Git training course

2011-10-07 Thread Noufal Ibrahim
Hello everyone, This is OT for the list but a lot of people expressed interest in this when I spoke to them at PyCon in Pune. I am offering a training on git on the 22nd and 23rd of October in Bangalore. The details are at http://nibrahim.net.in/2011/10/07/git_training.

Re: [BangPypers] Python3's Most Wanted!

2011-10-05 Thread Noufal Ibrahim
chetan giridhar writes: > No, don't think so! Need to find another venue depending on number of > people. [...] I think we can find a venue. It's not *too* hard. The problem is people to fill the place. -- ~noufal http://nibrahim.net.in Gentlemen, I want you to know that I am not always rig

Re: [BangPypers] Python3's Most Wanted!

2011-10-05 Thread Noufal Ibrahim
chetan giridhar writes: > No, don't think so! Need to find another venue depending on number of > people. > > On Wed, Oct 5, 2011 at 12:42 PM, Anand Balachandran Pillai < > abpil...@gmail.com> wrote: > >> Hi Chetan, >> >> On Wed, Oct 5, 2011 at 11:09 AM, chetan giridhar > >wrote: >> >> > Hi Anand

[BangPypers] PyPy and Python3 (was: About pypy and bangpypers)

2011-10-03 Thread Noufal Ibrahim
One of the large problems which PyPy and other implementations are facing is Python 3 support[1]. If we can organise around this, I think it'd be a worthwhile goal and something good would come out of it. Opinions? Footnotes: [1] http://pypy.org/py3donate.html -- ~noufal http://nibrahim.ne

Re: [BangPypers] Python 3.2 and Django

2011-09-29 Thread Noufal Ibrahim
Hussain Bohra writes: > Thanks Mr. Gora and Mr. Sreekanth ... Let me identify if any other > MVC framework I can use along with python 3.2. [...] Is there some real need to use Python 3.2? Most frameworks and libraries support only the 2.x series. -- ~noufal http://nibrahim.net.in I don't

Re: [BangPypers] About pypy and bangpypers

2011-09-26 Thread Noufal Ibrahim
kracekumar ramaraju writes: [...] > I don't have any experience, but willing to spend time. > >1. First lets start playing with PyPy and spend quite significant time >with it. >2. Then hands on we can try running small apps or snippets in PyPy. [...] I was thinking of something mo

Re: [BangPypers] About pypy and bangpypers

2011-09-26 Thread Noufal Ibrahim
Question is how do we go about it? Is there anyone on this list who has some experience with PyPy willing to talk about it? Or do we make out an agenda and plan? I'd hate to spend a few hours simply talking/hearing about what I've read on the net. -- ~noufal http://nibrahim.net.in Some bachel

Re: [BangPypers] Creating windows installer

2011-09-25 Thread Noufal Ibrahim
Shashidhar Paragonda writes: > Hello Python hackers, > >I want to create windows installer (one) file which is > combination of, Python v.2.4.4, Zope v2.8.11, Postgresql v8.1.x, and some > Python dependency packages and Zope dependency packages. >With inclusion of

Re: [BangPypers] About pypy and bangpypers

2011-09-25 Thread Noufal Ibrahim
So, now that PyCon is over, shall me make plans for this? -- ~noufal http://nibrahim.net.in I'll give you a definite maybe. -Samuel Goldwyn ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] About pypy and bangpypers

2011-09-14 Thread Noufal Ibrahim
Ramakrishna Reddy writes: > On Wed, Sep 14, 2011 at 8:21 PM, Sriram Narayanan wrote: > >> >> I'm asking because I'm interested. I'd like to see how I can package >> pypy for Belenix someday, and I want to pair with various python >> programmers and understand how people think about a platform wh

Re: [BangPypers] List guidelines

2011-09-14 Thread Noufal Ibrahim
Anand Balachandran Pillai writes: [...] > If we get to a stage where we are really swamped by non-Pythonic > JOB posting robots, we can incrementally take a better stand. > No need for worrying about hypothetical scenarios now. > Show some flexibility. [...] Fair enough. I don't think w

Re: [BangPypers] About pypy and bangpypers

2011-09-14 Thread Noufal Ibrahim
Sriram Narayanan writes: > On 9/14/11, Noufal Ibrahim wrote: > >> >> I was hoping to resurrect this after PyCon India this weekend. I'm eager >> to get it going. >> > > Sounds good. I'll begin preparation for the meetup. For me, getting > pypy

Re: [BangPypers] About pypy and bangpypers

2011-09-14 Thread Noufal Ibrahim
Sriram Narayanan writes: > All: > > Some weeks ago, there was some discussion of a meetup to figure out > what we could do with pypy. Have any list members conducted any > investigations on that ? > > I'm asking because I'm interested. I'd like to see how I can package > pypy for Belenix someday,

Re: [BangPypers] List guidelines

2011-09-14 Thread Noufal Ibrahim
Senthil Kumaran writes: > On Wed, Sep 14, 2011 at 9:26 PM, Noufal Ibrahim wrote: > >> Am I the only one who thinks this is backward? > > No, definitely not. But you seem to be giving undue importance to this > discussion by creating hypothetical scenarios. I think, w

Re: [BangPypers] List guidelines

2011-09-14 Thread Noufal Ibrahim
Umar Shah writes: [...] > People who are interested in just python jobs as most of guys here > would be cant easily filter out non python ones. [...] So, random headhunters/recruiters are free to use this list to post for any job postings but the onus is on the list members to filter out the P

Re: [BangPypers] List guidelines

2011-09-14 Thread Noufal Ibrahim
Senthil Kumaran writes: [...] > My recollection from history is, it needs to be prefixed with [JOB] > and jobs are not considered spam by many. I think, prefixing with JOB > can help also people to filter them to spam folder, if they prefer it > that way. So, job postings not at all related to

Re: [BangPypers] List guidelines

2011-09-14 Thread Noufal Ibrahim
Senthil Kumaran writes: > On Wed, Sep 14, 2011 at 06:10:14PM +0530, Noufal Ibrahim wrote: >> What is the official stance of the list owners on this kind of post? It >> would be good to know and state it so that this kind of thing is avoided >> again. > > If there is a

[BangPypers] List guidelines (was: [JOB] - Yahoo!)

2011-09-14 Thread Noufal Ibrahim
This is obviously dividing the list into camps and that's not healthy. What is the official stance of the list owners on this kind of post? It would be good to know and state it so that this kind of thing is avoided again. I hear from others (BRUG, BarCamp Bangalore) that first time posters who

Re: [BangPypers] [JOB] - Yahoo!

2011-09-13 Thread Noufal Ibrahim
Sriram Narayanan writes: [...] > It appears to me that Anand Pillai was fine with such a post, and > you're not, and there's some clarity needed on what's acceptable and > what's not, and the rationale for what ever consensus we arrive at. [...] I don't agree with Anand on this matter. I'll

Re: [BangPypers] [JOB] - Yahoo!

2011-09-13 Thread Noufal Ibrahim
Perhaps I'm being more vocal about this than is appropriate. I hold generally unpopular opinions about the relationship between corporate entities and free software/open source communities. That's probably where the bile comes from. -- ~noufal http://nibrahim.net.in Honk if you are against noi

Re: [BangPypers] [JOB] - Yahoo!

2011-09-13 Thread Noufal Ibrahim
Sriram Narayanan writes: [...] > I feel that poking fun at any company's business is in extremely > disgusting taste. This was done once about Thoughtworks (the company I > work with) on this very mailing list. Agreed but that is a separate issue. However, that doesn't address the issue of

Re: [BangPypers] [JOB] - Yahoo!

2011-09-13 Thread Noufal Ibrahim
Anand Balachandran Pillai writes: [...] > Cut the heat. IMHO it was a problem with the wording of the posting by > the OP. If he had been more diplomatic and sugar-coated his posting, > most of you would have remained silent. Not me. I might have worded my response differently but unless he w

Re: [BangPypers] [JOB] - Yahoo!

2011-09-13 Thread Noufal Ibrahim
Senthil Kumaran writes: [...] > I agree that the email was misdirected and I had no issues with your > first question how it it was related with Python. Would have waited > for the OP to answer. But that does not mean that we talk about > business and ridicule a company. That IMO does not mak

Re: [BangPypers] [JOB] - Yahoo!

2011-09-13 Thread Noufal Ibrahim
Senthil Kumaran writes: > Guys, > > Let's keep it technical, they seem to look for perl guys and perhaps a > python developers are useful for them too. Of course, any good > company would think that good python programmers can be good (any > language) programmers too. AFAIK, Y! is one such. Sor

Re: [BangPypers] [JOB] - Yahoo!

2011-09-12 Thread Noufal Ibrahim
Lokesh, This post has nothing to do with Python. Why are you sending it to a Python list? Lokesh L writes: > Hi, >   > I would like to introduce myself as Lokesh from Talent Acquisation - Yahoo! >   > Yahoo! is the premier digital media company. We deliver your world, your way > by creating

Re: [BangPypers] setuptools and distutils confusion

2011-08-23 Thread Noufal Ibrahim
Gopalakrishnan Subramani writes: > setuptools is for the users who use a package produced by someone. > disutils is for users who produce the package. Not really. distutils is the packaging system provided by the standard library. setuptools is an extension of distutils which provides automati

Re: [BangPypers] setuptools and distutils confusion

2011-08-23 Thread Noufal Ibrahim
Amit Sethi writes: > Hi all, > I am really confused as to how setuptools and distutils work. > Basically what i want to achieve is be able to install packages in my > local environment and not globally ( just a preference ) . I know I > can use virtualenv and distribute but i just want to do some

Re: [BangPypers] Language Parsing and output generation

2011-08-22 Thread Noufal Ibrahim
Gopalakrishnan Subramani writes: > Source language IO is very limited and it has functions to map to IO and UI. > As a total, they have around 100+ function. > > Those can be easily done in Lua. [...] For a project in one of my earlier companies, I used SPARK[1] to write a little parser for a l

Re: [BangPypers] Create Better Python community

2011-08-19 Thread Noufal Ibrahim
Anand Chitipothu writes: >> Since Noufal is out this week-end, how about next Sat or Sun ? >> We can all do a bit of reading up of PyPy this week-end, >> discuss in the mailing list over next week, arrive (hopefully) >> at a common problem of interest to talk on or hack on next >> week-end. > > N

Re: [BangPypers] Create Better Python community

2011-08-19 Thread Noufal Ibrahim
Anand Chitipothu writes: [...] > +1. > > I think it is a good idea. I'm interested in working on PyPy or core > Python bugs. +1 for PyPy. I know nothing about it but would love to dive in. If there's a bunch of people interested, it would be awesome. [...] -- ~noufal http://nibrahim.net.in

Re: [BangPypers] Create Better Python community

2011-08-19 Thread Noufal Ibrahim
Anand Chitipothu writes: [...] > Why don't we meet this weekend and discuss this? [...] I'm out of town. :) -- ~noufal http://nibrahim.net.in A little pain never hurt anyone. ___ BangPypers mailing list BangPypers@python.org http://mail.python.or

Re: [BangPypers] Create Better Python community

2011-08-19 Thread Noufal Ibrahim
Anand Balachandran Pillai writes: > On Fri, Aug 19, 2011 at 12:15 PM, Kenneth Gonsalves wrote: [...] >> on several occasions we had 2 >> > > I dont call that a user group meeting. That is definitely > apathy though better than no meeting any day. Exactly. It keeps it going which is something

Re: [BangPypers] Create Better Python community

2011-08-18 Thread Noufal Ibrahim
Kenneth Gonsalves writes: [...] > chennaipy meets on the 4th Saturday of every month, this is fixed. > Attendance varies from 2 to 15. So the question is not 'shall we > meet?' but 'are you attending'. This has been going on since 2006 > with some breaks now and then. A fixed date without att

Re: [BangPypers] Create Better Python community

2011-08-18 Thread Noufal Ibrahim
Anand Balachandran Pillai writes: [...] > We need to poll people here on top 2 pain points/issues that > prevent them from attending such meets. > > For me - it is mostly the distance to center of the city. > > Maybe we should have more hackdays. Something the IPSS > should think about pretty so

Re: [BangPypers] Create Better Python community

2011-08-13 Thread Noufal Ibrahim
kracekumar ramaraju writes: > Things you could do to improve diversity in the Python > community. (Quoting without permission from a thoughtful post on the > Python diversity list; s/Python/Your project/ to suit your taste.) [...] It would be nice to just have python user group meetings in Bang

Re: [BangPypers] how to write Operating System in python

2011-08-11 Thread Noufal Ibrahim
vikas ruhil writes: > I am looking towards to write an operating system in Python? How i can > write kernel and kernel calls on Debian Linux ! any body can help > reagrd this !! [...] I mailed a while ago about choosing the right tool for a given task (as opposed to seeing everything as a nail)

Re: [BangPypers] PyPy outperforms C in microbenchmark

2011-08-04 Thread Noufal Ibrahim
Senthil Kumaran writes: > On Wed, Aug 03, 2011 at 03:05:47PM -0600, Gopalakrishnan Subramani wrote: >> Based on my understanding, I may not need PyPy for general programming and >> small websites experiments as of now. > > Just try it! Install pypy and symlink your /usr/local/bin/python to > pyp

Re: [BangPypers] PyPy outperforms C in microbenchmark

2011-08-03 Thread Noufal Ibrahim
Anand Balachandran Pillai writes: > On Wed, Aug 3, 2011 at 12:50 PM, Noufal Ibrahim wrote: > >> >> PyPy outperforms C in a little benchmark capitalising on gcc's inability >> to optimise across files. >> >> >> http://morepypy.blogspot.com/

[BangPypers] PyPy outperforms C in microbenchmark

2011-08-03 Thread Noufal Ibrahim
PyPy outperforms C in a little benchmark capitalising on gcc's inability to optimise across files. http://morepypy.blogspot.com/2011/08/pypy-is-faster-than-c-again-string.html -- ~noufal http://nibrahim.net.in Of course I can keep secrets. It's the people I tell them to that can't keep them.

Re: [BangPypers] Python Game Programming Challenge 13 (September 2011) is coming!

2011-08-02 Thread Noufal Ibrahim
Senthil Kumaran writes: > Let me know if anyone is interested in this. > > Noufal, if cannot do the game during pycon, I think this would be good > idea.. [...] Sounds like fun but this month won't work for me. -- ~noufal http://nibrahim.net.in I tripped over a hole that was sticking up out

Re: [BangPypers] if not with comparision statement in python

2011-08-01 Thread Noufal Ibrahim
Anand Balachandran Pillai writes: [...] > 1. List comp > > >>> sum([x*x for x in range(10)]) > 285 > > 2. Map > > >>> sum(map(lambda x: x*x, range(10))) > 285 > > 3. Reduce > > >>> reduce(lambda x,y: x + y*y, range(10)) > 285 A quote from Guido "filter(P, S) is almost always written c

Re: [BangPypers] Map vs List comprehensions

2011-08-01 Thread Noufal Ibrahim
Anand Balachandran Pillai writes: [...] > Maybe I should have rephrased it like this. > > - If using anonymous functions, prefer list comps over map. > - If using built-in functions (C functions), prefer map over list comps. > - If using pythonic user functions, there is nothing much to choos

Re: [BangPypers] parsing xml

2011-08-01 Thread Noufal Ibrahim
Anand Balachandran Pillai writes: > On Mon, Aug 1, 2011 at 6:08 AM, Anand Chitipothu wrote: [...] > It is more subtler than that. > > List comprehensions are faster than map functions when > the latter needs to invoke a user-defined function call or a lambda. > > Maps score over list comprehens

Re: [BangPypers] parsing xml

2011-07-31 Thread Noufal Ibrahim
Venkatraman S writes: [...] > A regex is the simplest IMHO, because you need not know the syntax of the > minidom parser. Oh come on. This sounds like doing it the wrong way because you're not going to spend time reading the docs and then using performance as a cover for the laziness. [...]

Re: [BangPypers] parsing xml

2011-07-31 Thread Noufal Ibrahim
Dhananjay Nene writes: [...] > re.search("\s*(\d+)\s*",data).group(1) > > would appear to be the most succinct and quite fast. Adjust for whitespace > as and if necessary. Whitespace (including newlines), mixed cases etc. [...] > As far as optimisation goes - I can see at least 3 options >

Re: [BangPypers] parsing xml

2011-07-31 Thread Noufal Ibrahim
Anand Balachandran Pillai writes: > On Fri, Jul 29, 2011 at 4:41 PM, Venkatraman S wrote: [...] > To be fair here, I think what he is saying is that Kenneth's problem > (getting at the particular value) can be solved by using an aptly > written regular expression which might be the fastest - n

Re: [BangPypers] if not with comparision statement in python

2011-07-30 Thread Noufal Ibrahim
Asif Jamadar writes: > What if I have two lists for both minimum and maximum values > > Minimum Maximum > 0 10 > 1120 > 2130 > 3140 > > > Now how should I check if actual result is not laying between above ranges > > if not minimum<=act

Re: [BangPypers] if not with comparision statement in python

2011-07-30 Thread Noufal Ibrahim
Asif Jamadar writes: > if not minimum<=actual_result and not maximum>=actual_result: > > > How to check if actual result is not laying between minimum value and maximum > value. > > how should I represent the above statement in python? > > Any suggestions? [...] The following will check for r

Re: [BangPypers] Python Game developers

2011-07-29 Thread Noufal Ibrahim
Senthil Kumaran writes: > On Fri, Jul 29, 2011 at 05:58:18PM +0530, Noufal Ibrahim wrote: >> Are there any people on this list who are into developing games in >> Python? If there are atleast 3 or 4, it'd be swell if we could get > > Using pygame and pyglet? Yes. > &

[BangPypers] Python Game developers

2011-07-29 Thread Noufal Ibrahim
Are there any people on this list who are into developing games in Python? If there are atleast 3 or 4, it'd be swell if we could get together at PyCon India and write one. We could discuss the overall direction beforehand and then get our hands dirty at the conference and release ver 0.1 along wi

Re: [BangPypers] parsing xml

2011-07-29 Thread Noufal Ibrahim
Venkatraman S writes: [...] > Read my replies properly. Read my assumptions properly w.r.t the xml > structure and the requested value in the xml. Read the link that you > have pasted again. If possible, read the comments in the link > shared(from esr) again. Once done, think twice and tell me

Re: [BangPypers] parsing xml

2011-07-29 Thread Noufal Ibrahim
Venkatraman S writes: > n Fri, Jul 29, 2011 at 12:20 PM, Noufal Ibrahim wrote: > >> I agree and I try my best to do the same thing. However, I differentiate >> between micro optimsations like rewriting parts in C and XML and top >> level optimisations like good d

Re: [BangPypers] parsing xml

2011-07-28 Thread Noufal Ibrahim
Venkatraman S writes: > On Fri, Jul 29, 2011 at 11:31 AM, Noufal Ibrahim wrote: > >> > I am a speed-maniac and crave for speed; so if the assumption is >> > valid, i can vouch for the fact that regexp would be faster and neater >> > solution. I have done some

Re: [BangPypers] parsing xml

2011-07-28 Thread Noufal Ibrahim
Venkatraman S writes: [...] > Sigh! Again, guys, i am referring to regexp when all you need is some > number within a tag! If the content of that tag was text, i would > have never suggested this solution. [...] And I'm telling you that even a slight change to the tag - an extra space, a newli

Re: [BangPypers] parsing xml

2011-07-28 Thread Noufal Ibrahim
Venkatraman S writes: [...] > Well, i have clearly mentioned my assumptions - i.e, when you treat > the XML as a 'string' and do not want to retrieve anything else in a > 'structured manner'. If the data is structured, it makes sense to exploit that structure and use a proper solution. > I a

Re: [BangPypers] Python and Employment

2011-07-15 Thread Noufal Ibrahim
kunal ghosh writes: [...] > I am sure, a lot of you must be reviewing prospective candidates (and > their resume s). What would you suggest, as an employer / hiring > manager / candidate with past experience , to prospective candidates, > to bring out (and highlight) their FOSS experience in t

Re: [BangPypers] [OT] language fanaticism

2011-07-15 Thread Noufal Ibrahim
Dhananjay Nene writes: [...] > I suspect it all boils down to whether I value my time and my > customer's money over or under my preferred language. Once thats > clear - the path ahead also is. This brings in another variable which is the customer (and therefore money). That can alter the stake

Re: [BangPypers] Python and Employment

2011-07-15 Thread Noufal Ibrahim
kunal ghosh writes: > Hi all, > > I read a lot of emails in this list and others, posting job offerings. > They all list, "years of experience" required by a candidate to be > considered for the job. > > But what is the metric to measure this experience. If it indirectly > means , "corporate expe

Re: [BangPypers] Opening in Noida

2011-07-15 Thread Noufal Ibrahim
Sibtey Mehdi writes: > Hi, > > We are recruiting python developers having more than 2 years of experience, > Interested candidates can send their resume to me at sibt...@brickred.com > > for more info - http://www.brickred.com/ If it is in Noida, you should consider posting to the http://mail.py

Re: [BangPypers] [OT] language fanaticism

2011-07-13 Thread Noufal Ibrahim
Baishampayan Ghose writes: [...] > I don't understand how Django apps can automatically guarantee a > certain level of security while PHP applications can't. Are you trying > to indicate that each and every Django app that you've built is free > from any security hole? Some languages and frame

Re: [BangPypers] [OT] language fanaticism

2011-07-13 Thread Noufal Ibrahim
Sidu Ponnappa writes: >> many bitter experiences - security is a nightmare for php apps. Take a >> look at the number of security updates wordpress has per *month* - more >> than django has had in 6 *years*. > That is based on strong correlation between PHP applications and poor > engineering. >

Re: [BangPypers] [OT] language fanaticism

2011-07-13 Thread Noufal Ibrahim
Kenneth Gonsalves writes: [...] > django - I like to sleep at night. I use apps written in all sorts of > languages, but never have and never will use a php app - unless it is > set up and supported by someone else and is running on a system for > which I am in no way responsible. To each his

<    1   2   3   4   5   6   7   8   9   10   >