From murugadoss2884 at gmail.com Tue Jun 1 02:33:36 2010 From: murugadoss2884 at gmail.com (murugadoss) Date: Tue, 1 Jun 2010 09:33:36 +0900 Subject: [BangPypers] time in seconds and milliseconds Message-ID: Hi, how to represent the time in seconds and milliseconds ?A function similar to gettimeofday() in c. gettimeofday(&tv, NULL) Thanks for all ur support. -- Thanks & Regards V.Murugadoss From pradeep at btbytes.com Tue Jun 1 03:19:35 2010 From: pradeep at btbytes.com (Pradeep Gowda) Date: Mon, 31 May 2010 21:19:35 -0400 Subject: [BangPypers] time in seconds and milliseconds In-Reply-To: References: Message-ID: On Mon, May 31, 2010 at 8:33 PM, murugadoss wrote: > how to represent the time in seconds and milliseconds ?A function similar to > gettimeofday() in c. > > gettimeofday(&tv, NULL) http://docs.python.org/library/time.html Which functions have you YOU tried so far? Your attempts at getting other people give you the answers is not gaining you any friends on this list. Let's see some effort from your side. From murugadoss2884 at gmail.com Tue Jun 1 04:37:50 2010 From: murugadoss2884 at gmail.com (murugadoss) Date: Tue, 1 Jun 2010 11:37:50 +0900 Subject: [BangPypers] time in seconds and milliseconds In-Reply-To: References: Message-ID: It is done. Thank u -- Thanks & Regards V.Murugadoss On Tue, Jun 1, 2010 at 10:19 AM, Pradeep Gowda wrote: > On Mon, May 31, 2010 at 8:33 PM, murugadoss > wrote: > > how to represent the time in seconds and milliseconds ?A function similar > to > > gettimeofday() in c. > > > > gettimeofday(&tv, NULL) > > http://docs.python.org/library/time.html > Which functions have you YOU tried so far? > > Your attempts at getting other people give you the answers is not > gaining you any friends on this list. > > Let's see some effort from your side. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From murugadoss2884 at gmail.com Tue Jun 1 07:01:01 2010 From: murugadoss2884 at gmail.com (murugadoss) Date: Tue, 1 Jun 2010 14:01:01 +0900 Subject: [BangPypers] sending binary files over socket Message-ID: hi, I need to pack and send a binary file over socket. The binary file is already existing. Do i need to unpack and read the file and then pack it once again using struct.pack or i can directly send the binary file. Since the binary file is very big,reading and packing is little difficult in my case. Is there any way, i can append the file with the message and send. As of now i am trying to read file,each byte and pack it. If any one can help me.please send me some information. -- Thanks & Regards V.Murugadoss From rmathews at gmail.com Tue Jun 1 08:58:43 2010 From: rmathews at gmail.com (Roshan Mathews) Date: Tue, 1 Jun 2010 12:28:43 +0530 Subject: [BangPypers] sending binary files over socket In-Reply-To: References: Message-ID: On Tue, Jun 1, 2010 at 10:31, murugadoss wrote: > I need to pack and send a binary file over socket. The binary file is > already existing. > Define a protocol, using http://code.google.com/p/protobuf/ That's one way. Roshan Mathews From srinivas_thatiparthy at akebonosoft.com Tue Jun 1 09:10:17 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Tue, 1 Jun 2010 12:40:17 +0530 Subject: [BangPypers] Pygments help Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D833AE@astserver3.akebonosoft.com> I am playing around with Pygments 1.3.1 source .I have a couple of questions. 1.Pygments docs says use python 2.4 or above.(from Pygments-1.3.1/docs/build/installation.html) ;there are lots of print statements in source but in 3.0 it has a become a function,so how does it work in 3.0 ? 2.I have installed it from source (well,i have windows xp) by running python setup.py install and when i looked for docs to invoke on a file say Test.cs there is a pygmentize file to invoke it.It looks like a *nix file.How to invoke Pygments in windows? Thanks&Regards, Srinivas Reddy Thatiparthy, Mobile:9393099772, From noufal at gmail.com Tue Jun 1 09:16:56 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 1 Jun 2010 12:46:56 +0530 Subject: [BangPypers] Pygments help In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D833AE@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D833AE@astserver3.akebonosoft.com> Message-ID: On Tue, Jun 1, 2010 at 12:40 PM, Srinivas Reddy Thatiparthy wrote: > I am playing around with Pygments 1.3.1 source .I have a couple of questions. > 1.Pygments docs says use python 2.4 or above.(from Pygments-1.3.1/docs/build/installation.html) ;there are lots of print statements in source but in 3.0 it has a become a function,so how does it work in 3.0 ? 3.x is not backward compatible so unless your package has been ported to 3.x, there is a strong chance that it won't work. When they say 2.4 and above, they probably mean 2.x where x>4. > 2.I have installed it from source (well,i have windows xp) by running python setup.py install and when i looked for docs to invoke on a file say Test.cs there is ?a pygmentize file to invoke it.It looks like a *nix file.How to invoke Pygments ?in windows? Can't help you here since I don't have XP handy but I recollect that the easy_install and other such scripts had a .exe extension. Also, if you name your files with a .py, the installer takes care of the necessary registry entries to automatically run them with a double click. -- ~noufal http://nibrahim.net.in From ardsrk at gmail.com Tue Jun 1 09:18:43 2010 From: ardsrk at gmail.com (Arvind Jamuna Dixit) Date: Tue, 1 Jun 2010 12:48:43 +0530 Subject: [BangPypers] Pygments help In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D833AE@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D833AE@astserver3.akebonosoft.com> Message-ID: On Tue, Jun 1, 2010 at 12:40 PM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > I have installed it from source (well,i have windows xp) by running python > setup.py install and when i looked for docs to invoke on a file say Test.cs > there is a pygmentize file to invoke it.It looks like a *nix file.How to > invoke Pygments in windows? > "pygmentize" is just a normal python script. You should have no problems running it under windows. -- Arvind From murugadoss2884 at gmail.com Tue Jun 1 09:27:42 2010 From: murugadoss2884 at gmail.com (murugadoss) Date: Tue, 1 Jun 2010 16:27:42 +0900 Subject: [BangPypers] binary file unpacking Message-ID: Hi, I am trying to unpack a binary file, rfile = open(filename,'rb') print "file Size", os.path.getsize(filename) text = rfile.read() print "Text", text while(text != 'EOF'): text = struct.unpack("!c",text) Message = Message + struct.pack("!c",text) text = rfile.read() Output: file Size 112 Text ? }v/?+1h? w#?'??CF ?V Error: error: unpack requires a string argument of length 1 Can anyone please tell me, the way to unpack the binay data from the file. If the questions is very basic.I kindly apologize for it. I am not able to get through it Kindly help me -- Thanks & Regards V.Murugadoss From noufal at gmail.com Tue Jun 1 09:34:35 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 1 Jun 2010 13:04:35 +0530 Subject: [BangPypers] binary file unpacking In-Reply-To: References: Message-ID: On Tue, Jun 1, 2010 at 12:57 PM, murugadoss wrote: [..] > Can anyone please tell me, the way to unpack the binay data from the file. It would depend on what is in the file. You need to know exactly what's in there and how it's packed to 'unpack' it. If a file has, for example, a 4 byte header, you can unpack it into four one byte characters or a single four byte integer. -- ~noufal http://nibrahim.net.in From srinivas_thatiparthy at akebonosoft.com Tue Jun 1 10:21:17 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Tue, 1 Jun 2010 13:51:17 +0530 Subject: [BangPypers] Pygments help References: <4EF2BF691B890546B2694C99A2852F0C01D833AE@astserver3.akebonosoft.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D833AF@astserver3.akebonosoft.com> >"pygmentize" is just a normal python script. You should have no problems >running it under windows. Well, it's a shell script with no extension , i opened it in an editor ,it contains python code.see the below code. #here goes the path to python interpreter,actually i overriden that data,so lost it... import sys, pygments.cmdline try: sys.exit(pygments.cmdline.main(sys.argv)) except KeyboardInterrupt: sys.exit(1) so i changed this to ... import sys, pygments.cmdline if __name__=="__main__": try: sys.exit(pygments.cmdline.main(sys.argv)) except KeyboardInterrupt: sys.exit(1) and put the extension of the file to .py and tried to invoke it with the command line options given , i got errors then included the __init__.py file in that directory with no data.Still, i get TypeError.Is this a PATH problem? or Am i doing anything wrong? Well , i don't have internet to search ,otherwise i would have searched. :( -- Srini T _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From srinivas_thatiparthy at akebonosoft.com Tue Jun 1 11:12:13 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Tue, 1 Jun 2010 14:42:13 +0530 Subject: [BangPypers] Pygments help References: <4EF2BF691B890546B2694C99A2852F0C01D833AE@astserver3.akebonosoft.com> <4EF2BF691B890546B2694C99A2852F0C01D833AF@astserver3.akebonosoft.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D833B2@astserver3.akebonosoft.com> Oops,my bad! My version of python is 3.0.I didn't notice it and un-installed it and Pygments working nice on 2.6. Thanks&Regards, Srinivas Reddy Thatiparthy, Mobile:9393099772, From srinivas_thatiparthy at akebonosoft.com Wed Jun 2 07:29:59 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Wed, 2 Jun 2010 10:59:59 +0530 Subject: [BangPypers] What are the best python books , you have read. Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D833B3@astserver3.akebonosoft.com> What are the best python books you have read? should be at least on par with python cookbook. TIA for suggestions. Thanks&Regards, Srinivas Reddy Thatiparthy, Mobile:9393099772, From rahulcssjce at gmail.com Wed Jun 2 07:54:12 2010 From: rahulcssjce at gmail.com (Rahul) Date: Wed, 2 Jun 2010 11:24:12 +0530 Subject: [BangPypers] What are the best python books , you have read. In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D833B3@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D833B3@astserver3.akebonosoft.com> Message-ID: Dive into python is a really good book. On Wed, Jun 2, 2010 at 10:59 AM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > What are the best python books you have read? should be at least on par > with python cookbook. > TIA for suggestions. > > Thanks&Regards, > Srinivas Reddy Thatiparthy, > Mobile:9393099772, > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, Rahul C S From brijithp at gmail.com Wed Jun 2 07:58:21 2010 From: brijithp at gmail.com (BR!j!TH) Date: Wed, 2 Jun 2010 11:28:21 +0530 Subject: [BangPypers] What are the best python books , you have read. In-Reply-To: References: <4EF2BF691B890546B2694C99A2852F0C01D833B3@astserver3.akebonosoft.com> Message-ID: Check out this http://docs.python.org/index.html On 2 June 2010 11:24, Rahul wrote: > Dive into python is a really good book. > > On Wed, Jun 2, 2010 at 10:59 AM, Srinivas Reddy Thatiparthy < > srinivas_thatiparthy at akebonosoft.com> wrote: > > > What are the best python books you have read? should be at least on par > > with python cookbook. > > TIA for suggestions. > > > > Thanks&Regards, > > Srinivas Reddy Thatiparthy, > > Mobile:9393099772, > > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Regards, > Rahul C S > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From srinivas_thatiparthy at akebonosoft.com Wed Jun 2 08:00:03 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Wed, 2 Jun 2010 11:30:03 +0530 Subject: [BangPypers] What are the best python books , you have read. References: <4EF2BF691B890546B2694C99A2852F0C01D833B3@astserver3.akebonosoft.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D833B5@astserver3.akebonosoft.com> Ah! I never checked out that link. thanks!! Thanks&Regards, Srinivas Reddy Thatiparthy, Mobile:9393099772, -----Original Message----- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.org on behalf of BR!j!TH Sent: Wed 6/2/2010 11:28 AM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] What are the best python books , you have read. Check out this http://docs.python.org/index.html On 2 June 2010 11:24, Rahul wrote: > Dive into python is a really good book. > > On Wed, Jun 2, 2010 at 10:59 AM, Srinivas Reddy Thatiparthy < > srinivas_thatiparthy at akebonosoft.com> wrote: > > > What are the best python books you have read? should be at least on par > > with python cookbook. > > TIA for suggestions. > > > > Thanks&Regards, > > Srinivas Reddy Thatiparthy, > > Mobile:9393099772, > > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Regards, > Rahul C S > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From ankur at thinklabs.in Wed Jun 2 08:09:27 2010 From: ankur at thinklabs.in (Ankur Gupta) Date: Wed, 2 Jun 2010 11:39:27 +0530 Subject: [BangPypers] What are the best python books , you have read. In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D833B5@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D833B3@astserver3.akebonosoft.com> <4EF2BF691B890546B2694C99A2852F0C01D833B5@astserver3.akebonosoft.com> Message-ID: Python Essential Reference is my pick On Wed, Jun 2, 2010 at 11:30 AM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > Ah! I never checked out that link. > thanks!! > > Thanks&Regards, > Srinivas Reddy Thatiparthy, > Mobile:9393099772, > > > > -----Original Message----- > From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.orgon behalf of BR!j!TH > Sent: Wed 6/2/2010 11:28 AM > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] What are the best python books , you have read. > > Check out this http://docs.python.org/index.html > > On 2 June 2010 11:24, Rahul wrote: > > > Dive into python is a really good book. > > > > On Wed, Jun 2, 2010 at 10:59 AM, Srinivas Reddy Thatiparthy < > > srinivas_thatiparthy at akebonosoft.com> wrote: > > > > > What are the best python books you have read? should be at least on > par > > > with python cookbook. > > > TIA for suggestions. > > > > > > Thanks&Regards, > > > Srinivas Reddy Thatiparthy, > > > Mobile:9393099772, > > > > > > > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > -- > > Regards, > > Rahul C S > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > From sudheer.s at sudheer.net Wed Jun 2 10:11:14 2010 From: sudheer.s at sudheer.net (Sudheer Satyanarayana) Date: Wed, 02 Jun 2010 13:41:14 +0530 Subject: [BangPypers] What are the best python books , you have read. In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D833B3@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D833B3@astserver3.akebonosoft.com> Message-ID: <4C061222.50704@sudheer.net> On 06/02/2010 10:59 AM, Srinivas Reddy Thatiparthy wrote: > What are the best python books you have read? should be at least on par with python cookbook. > TIA for suggestions. > Beginning Python: From Novice to Professional by Magnus Lie Hetland is a good introductory book on Python. The book covers wide variety of topics and doesn't assume that the reader already has programming experience. You can download the TOC from the publisher's site http://apress.com/book/downloadfile/4119 I haven't read Python Cookbook. Therefore, I'm unable to make comparisons. Recently, I downloaded and watched a video from PyCon called "Internet programming with Python". The video is available at http://python.mirocommunity.org/video/1623/pycon-2010-introduction-to-int The presenter Wesley Chun teaches various network programming topics to his audience. The video is amazing. He's also written a book on Python - Core Python Programming. Although, I haven't read the book, I believe it will be excellent. -- With warm regards, Sudheer. S Tech stuff: http://techchorus.net Business: http://binaryvibes.co.in From lawgon at au-kbc.org Wed Jun 2 10:14:21 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 2 Jun 2010 13:44:21 +0530 Subject: [BangPypers] What are the best python books , you have read. In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D833B3@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D833B3@astserver3.akebonosoft.com> Message-ID: <201006021344.21426.lawgon@au-kbc.org> On Wednesday 02 June 2010 10:59:59 Srinivas Reddy Thatiparthy wrote: > What are the best python books you have read? should be at least on par > with python cookbook. TIA for suggestions. > python in a nutshell -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From aadisriram at gmail.com Wed Jun 2 10:50:49 2010 From: aadisriram at gmail.com (AADITYA SRIRAM) Date: Wed, 2 Jun 2010 14:20:49 +0530 Subject: [BangPypers] What are the best python books , you have read. In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D833B3@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D833B3@astserver3.akebonosoft.com> Message-ID: head first programming !! pretty good book for basics ! On Wed, Jun 2, 2010 at 10:59 AM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > What are the best python books you have read? should be at least on par > with python cookbook. > TIA for suggestions. > > Thanks&Regards, > Srinivas Reddy Thatiparthy, > Mobile:9393099772, > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From aadisriram at gmail.com Wed Jun 2 10:52:02 2010 From: aadisriram at gmail.com (AADITYA SRIRAM) Date: Wed, 2 Jun 2010 14:22:02 +0530 Subject: [BangPypers] PyPDF to read hindi Message-ID: Hi guys, i am writing a small program to convert pdf to text files(i know its easy and lame but need to start somewhere !!), anyway i am not bale to rip the hindi text in readable form :( can anyone please help ? Its working fine with english text . From srinivas_thatiparthy at akebonosoft.com Wed Jun 2 11:50:19 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Wed, 2 Jun 2010 15:20:19 +0530 Subject: [BangPypers] PyPDF to read hindi References: Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D833B6@astserver3.akebonosoft.com> Hindhi is a unicode text , your input data should be treated as Unicode instead of ASCII and last but not the least the encoding format in editor should be set to unicode ,otherwise you see garbled text. This is my guess , i have never worked with unicode in python.If i am wrong please correct me. Thanks&Regards, Srinivas Reddy Thatiparthy, Mobile:9393099772, -----Original Message----- From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.org on behalf of AADITYA SRIRAM Sent: Wed 6/2/2010 2:22 PM To: bangpypers at python.org Subject: [BangPypers] PyPDF to read hindi Hi guys, i am writing a small program to convert pdf to text files(i know its easy and lame but need to start somewhere !!), anyway i am not bale to rip the hindi text in readable form :( can anyone please help ? Its working fine with english text . _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From raj.amal at gmail.com Wed Jun 2 11:58:19 2010 From: raj.amal at gmail.com (Amal) Date: Wed, 2 Jun 2010 02:58:19 -0700 Subject: [BangPypers] PyPDF to read hindi In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D833B6@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D833B6@astserver3.akebonosoft.com> Message-ID: Hi Aaditya, Actually reading hindi text is not as simple as reading english text. Most of the Hindi PDFs don't have standard encoding. And Encoding is value given to each Unicode code point. And each encoding corresponds to font representation. So a PDF takes the encoding, maps it to a font using a Font map and then renders the font. It does not know what character it is. So For reading most of hindi PDFs, we have to know the encoding to character mapping. I worked in my previous company with Dainik Bhaskar, and other hindi newspaper PDFs and faced the same problem. So a generic hindi PDF to text is not possible. But if u know a specific encoding, then u u might be able to write a specific Hindi PDF to text. Amal. On Wed, Jun 2, 2010 at 2:50 AM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > Hindhi is a unicode text , your input data should be treated as Unicode > instead of > ASCII and last but not the least the encoding format in editor should be > set to unicode ,otherwise you see garbled text. > > > This is my guess , i have never worked with unicode in python.If i am wrong > please correct me. > > Thanks&Regards, > Srinivas Reddy Thatiparthy, > Mobile:9393099772, > > > > -----Original Message----- > From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.orgon behalf of AADITYA SRIRAM > Sent: Wed 6/2/2010 2:22 PM > To: bangpypers at python.org > Subject: [BangPypers] PyPDF to read hindi > > Hi guys, i am writing a small program to convert pdf to text files(i know > its easy and lame but need to start somewhere !!), anyway i am not bale to > rip the hindi text in readable form :( can anyone please help ? Its working > fine with english text . > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > From rahul.jha at assortedtrails.com Wed Jun 2 11:59:26 2010 From: rahul.jha at assortedtrails.com (Rahul Jha) Date: Wed, 2 Jun 2010 15:29:26 +0530 Subject: [BangPypers] What are the best python books , you have read. In-Reply-To: References: <4EF2BF691B890546B2694C99A2852F0C01D833B3@astserver3.akebonosoft.com> Message-ID: I found Text Processing in Python(http://gnosis.cx/TPiP/) to be a really good read and quite enlightening on specific aspects of the language. On Wed, Jun 2, 2010 at 3:27 PM, Rahul Jha wrote: > I found Text Processing in Python(http://gnosis.cx/TPiP/) to be a really > good read and quite enlightening on specific aspects of the language. > > > On Wed, Jun 2, 2010 at 2:20 PM, AADITYA SRIRAM wrote: > >> head first programming !! pretty good book for basics ! >> >> On Wed, Jun 2, 2010 at 10:59 AM, Srinivas Reddy Thatiparthy < >> srinivas_thatiparthy at akebonosoft.com> wrote: >> >> > What are the best python books you have read? should be at least on par >> > with python cookbook. >> > TIA for suggestions. >> > >> > Thanks&Regards, >> > Srinivas Reddy Thatiparthy, >> > Mobile:9393099772, >> > >> > >> > _______________________________________________ >> > BangPypers mailing list >> > BangPypers at python.org >> > http://mail.python.org/mailman/listinfo/bangpypers >> > >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > > -- > http://assortedtrails.com/ > -- http://assortedtrails.com/ From guruprevails at gmail.com Wed Jun 2 14:54:05 2010 From: guruprevails at gmail.com (Dattatreya Sharma) Date: Wed, 2 Jun 2010 18:24:05 +0530 Subject: [BangPypers] Trying to connect with people who are into Python for convex optimization Message-ID: Dear Python Members, We are a training organization in Machine Learning, we are looking for guest faculties who has worked in Convex Optimization using Python. Interested candidates please touch base with us. -Thanks Dattatreya P Sharma On Wed, Jun 2, 2010 at 3:29 PM, Rahul Jha wrote: > I found Text Processing in Python(http://gnosis.cx/TPiP/) to be a really > good read and quite enlightening on specific aspects of the language. > > On Wed, Jun 2, 2010 at 3:27 PM, Rahul Jha > wrote: > > > I found Text Processing in Python(http://gnosis.cx/TPiP/) to be a really > > good read and quite enlightening on specific aspects of the language. > > > > > > On Wed, Jun 2, 2010 at 2:20 PM, AADITYA SRIRAM >wrote: > > > >> head first programming !! pretty good book for basics ! > >> > >> On Wed, Jun 2, 2010 at 10:59 AM, Srinivas Reddy Thatiparthy < > >> srinivas_thatiparthy at akebonosoft.com> wrote: > >> > >> > What are the best python books you have read? should be at least on > par > >> > with python cookbook. > >> > TIA for suggestions. > >> > > >> > Thanks&Regards, > >> > Srinivas Reddy Thatiparthy, > >> > Mobile:9393099772, > >> > > >> > > >> > _______________________________________________ > >> > BangPypers mailing list > >> > BangPypers at python.org > >> > http://mail.python.org/mailman/listinfo/bangpypers > >> > > >> _______________________________________________ > >> BangPypers mailing list > >> BangPypers at python.org > >> http://mail.python.org/mailman/listinfo/bangpypers > >> > > > > > > > > -- > > http://assortedtrails.com/ > > > > > > -- > http://assortedtrails.com/ > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Thanks, Dattatreya P Sharma Zombie ( Founder - GuRu Prevails.com) +91 9972952810 From aadisriram at gmail.com Wed Jun 2 18:27:52 2010 From: aadisriram at gmail.com (AADITYA SRIRAM) Date: Wed, 2 Jun 2010 21:57:52 +0530 Subject: [BangPypers] PyPDF to read hindi In-Reply-To: References: <4EF2BF691B890546B2694C99A2852F0C01D833B6@astserver3.akebonosoft.com> Message-ID: HI Raj, Your reply makes me believe i can finally work ahead with the project, here is the code i am using, and the pdf file i am using for the test purpose is this http://pib.nic.in/archieve/railbudget/rbudget2010/RBspeechHin.pdf, how do i find out the encoding in the file ? My code is : *import pyPdf* *from BeautifulSoup import BeautifulSoup* *f=open('conv.txt','w')* *pdf = pyPdf.PdfFileReader(open("RBspeechHin.pdf", "rb"))* *#for page in pdf.pages:* *c=pdf.getPage(1).extractText()* *soup=BeautifulSoup(c)* *soup.originalEncoding* *print BeautifulSoup(c).prettify()* *f.write(soup)* * * i was working with some html program before this and used BF for encoding, so tried my luck here too and it din't work :( if u can help me for just the pdf mentioned above also it will suffice, i will try learning from that :) * * *Cheers,* Aaditya* * On Wed, Jun 2, 2010 at 3:28 PM, Amal wrote: > Hi Aaditya, > Actually reading hindi text is not as simple as reading english text. Most > of the Hindi PDFs don't have standard encoding. > > And Encoding is value given to each Unicode code point. > And each encoding corresponds to font representation. > So a PDF takes the encoding, maps it to a font using a Font map and then > renders the font. It does not know what character it is. > So For reading most of hindi PDFs, we have to know the encoding to > character > mapping. > > I worked in my previous company with Dainik Bhaskar, and other hindi > newspaper PDFs and faced the same problem. > So a generic hindi PDF to text is not possible. > > But if u know a specific encoding, then u u might be able to write a > specific Hindi PDF to text. > > Amal. > > On Wed, Jun 2, 2010 at 2:50 AM, Srinivas Reddy Thatiparthy < > srinivas_thatiparthy at akebonosoft.com> wrote: > > > Hindhi is a unicode text , your input data should be treated as Unicode > > instead of > > ASCII and last but not the least the encoding format in editor should be > > set to unicode ,otherwise you see garbled text. > > > > > > This is my guess , i have never worked with unicode in python.If i am > wrong > > please correct me. > > > > Thanks&Regards, > > Srinivas Reddy Thatiparthy, > > Mobile:9393099772, > > > > > > > > -----Original Message----- > > From: bangpypers-bounces+srinivas_thatiparthy=akebonosoft.com at python.orgon > behalf of AADITYA SRIRAM > > Sent: Wed 6/2/2010 2:22 PM > > To: bangpypers at python.org > > Subject: [BangPypers] PyPDF to read hindi > > > > Hi guys, i am writing a small program to convert pdf to text files(i know > > its easy and lame but need to start somewhere !!), anyway i am not bale > to > > rip the hindi text in readable form :( can anyone please help ? Its > working > > fine with english text . > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From kadambari.devarajan at gmail.com Thu Jun 3 03:27:38 2010 From: kadambari.devarajan at gmail.com (Kadambari Devarajan) Date: Wed, 2 Jun 2010 18:27:38 -0700 Subject: [BangPypers] [X-post] The InfoLadies of Bangladesh In-Reply-To: References: Message-ID: Hi everyone, I apologize for the cross-posting. I read this really interesting piece about some women in rural Bangladesh on the DevChix list : http://southasia.oneworld.net/fromthegrassroots/info-ladies-make-life-easier-in-bangladesh/. They bring information and "answers" to questions ranging from health care to pesticides to family planning, to villages in Bangladesh on netbooks, and travel to villages systematically on their bicycles. To the impoverished (in more ways than one - think "information") villagers, they're superheroes and lifesavers. I wish we had more such programs like these in India. I think I know what I can do when am back there. Using FOSS for such a program in India would be fantastic. Just thought it was worth sharing! Cheers, KD. ---------- Forwarded message ---------- From: Victoria Wang Date: Fri, May 28, 2010 at 6:53 PM Subject: [devchix] The InfoLadies of Bangladesh To: Devchix Uplifting story of the day: In rural Bangladesh, where most are plagued by poverty and natural disasters, information is a life-saver. These women who bike to rural villages, bringing information in a netbook, are pretty much superheroes. http://southasia.oneworld.net/fromthegrassroots/info-ladies-make-life-easier-in-bangladesh/ -- You received this message because you are subscribed to the Google Groups "devchix" group. To post to this group, send email to devchix at googlegroups.com. To unsubscribe from this group, send email to devchix+unsubscribe at googlegroups.com . For more options, visit this group at http://groups.google.com/group/devchix?hl=en. -- Webpage - http://kadambari.devarajan.googlepages.com Weblog - http://kadambarid.livejournal.com From murugadoss2884 at gmail.com Thu Jun 3 08:01:15 2010 From: murugadoss2884 at gmail.com (murugadoss) Date: Thu, 3 Jun 2010 15:01:15 +0900 Subject: [BangPypers] Accessing string from thread Message-ID: Hi all, I am trying to access the packed string from one thread to another. I am giving the brief view of what i am trying to do, Thread1:(file name : Thread1.py) 1.I have a two global variables string =' ' Teststring = "I am written for testing" 2. i am packing the string using struct.pack method, temp = ' ' for i in range(len(Teststring)): string = temp + struct.pack("!s",Teststring[i]) temp = string string = string.lstrip() print "Test string Lenght",len(Teststring),len(string) Thread 2:(Filename: Thread2.py) I am trying to print the length of the string print "Test string Lenght",len(Thread1.Teststring),len(Thread1.string) output: Thread1: Test string Lenght 24 24 Thread2: Test string Lenght 24 1 can anyone please tell me the reason, why i am not able to get correct string length in thread2. -- Thanks & Regards V.Murugadoss From jinsthomas at gmail.com Thu Jun 3 09:45:12 2010 From: jinsthomas at gmail.com (Jins Thomas) Date: Thu, 3 Jun 2010 13:15:12 +0530 Subject: [BangPypers] Regarding web framework in Python In-Reply-To: <3e3294b71001291102o1d782db8kdcac086ea6c6ec61@mail.gmail.com> References: <3e3294b71001291102o1d782db8kdcac086ea6c6ec61@mail.gmail.com> Message-ID: On Sat, Jan 30, 2010 at 12:32 AM, Pradeep Gowda wrote: > On Fri, Jan 29, 2010 at 3:47 AM, Jins Thomas wrote: > > Hi All, > > > > Would like to ask one suggestion from bangpypers. > > > > I have a oracle database in Unix and need to create a web based GUI to > > execute some queries/scripts (via buttons) and save that in csv either > in > > Unix or in windows. I was thinking of using Django framework. Btw i'm > > relatively new in python. Woud anybody please suggest whether Django is > a > > good candidate for this. I succesfully installed Django and worked with > some > > sample codes. Is there any similar framework which is more reccomondable > > than Django. Atleast this time i want to get this done with python. Many > > times i wanted to do things in python for some reason or other reason i > was > > forced to use some other technology. I have some doubts like > > > > 1. Django sample webserver cannot be used when it's mission critical? > Will > > this django framework supports apache or tomcat servers. > > > > 2. Certain query results i would like to display in graphs. I had mailed > > before asking suggestion for creating charts/bar/pie graphs with python > and > > got a good number of suggestions like pychart, pygoogle chart open flash > > etc. I was just thinking how difficult is to integrate these stuffs in > > Django framework. Also couldn't actually finalize a good framework to use > > for creating this graphs. I'm absolutely in confusion which'll be better > to > > use. Would anybody suggest what's the usual thought process in taking > > decisions like this. > > Django is an overkill for something like this. > > web.py is what you should be looking at. If you already are programming > in python, web.py will give you the web library without trying to introduce > new concepts on URL dispatch, ORM etc., > > Web.py has a very decent db api for most common db operations > You can fall back to raw SQL with ease. > Hi all, I asked some doubts on this topic around 6 months back. Later that project itself got delayed. Now it's again back. I should apologize that mean time i had planned to ramp myself in python, but didnt work out. One reason of escapism: work load !! Current requirement is like we are planning to build such an application which should have 1. (Web) client gui which can connect to a database, run some perl scripts at the back end, gives back the results in the gui (results can be some tabular inputs, paragraphs, charts, schematic diagrams etc.) 2. It should have some drag and drop facility and connect the objects to configure some rule sets, saveas options etc. Basically there are some quite a bit debates happening whether it should be a web gui, or a thick client (which connects to the database). Would some body please advice when free on 1. Whether web.py itself is the good option for building this kind of framework. 2 . How easy would it be to build such an application in python (Currently i should rate my python skills to be almost beginner level) 3. I was looking for some frameworks like vaadin in a python, does anybody knows about such a framework. 4. For all this frameworks, we need apache like webserver right. I found web.py's independent sample webserver, Is it advisable to use such a webserver to avoid other third party installations. 5. What's your opinion on Web client vs Thick client for such an application. If it's thick client, architects here are forcing to use TCL/Tk to build. But my feel is it's lacking look and feel. Many thanks for the patience to read this. Regards Jins Thomas > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From gora at srijan.in Thu Jun 3 09:57:20 2010 From: gora at srijan.in (Gora Mohanty) Date: Thu, 3 Jun 2010 13:27:20 +0530 Subject: [BangPypers] Regarding web framework in Python In-Reply-To: References: <3e3294b71001291102o1d782db8kdcac086ea6c6ec61@mail.gmail.com> Message-ID: <20100603132720.69413680@ibis> On Thu, 3 Jun 2010 13:15:12 +0530 Jins Thomas wrote: [...] > Current requirement is like we are planning to build such an > application which should have > > 1. (Web) client gui which can connect to a database, run some > perl scripts at the back end, gives back the results in the gui > (results can be some tabular inputs, paragraphs, charts, > schematic diagrams etc.) I would definitely recommend Django over something like web.py. Django is quite easy to get into in terms of basics, and you can explore further features as needed. With web.py, I would suspect that you would eventually end up writing your own framework. If you want to run Perl scripts, you could consider looking at Catalyst, a Perl web framework (never used it myself, but have heard many good things about it). > 2. It should have some drag and drop facility and connect the > objects to configure some rule sets, saveas options etc. Drag and drop should probably be a front-end task, say jQuery driven. Others can be done. > Basically there are some quite a bit debates happening whether it > should be a web gui, or a thick client (which connects to the > database). > > Would some body please advice when free on > > 1. Whether web.py itself is the good option for building this > kind of framework. > > 2 . How easy would it be to build such an application in python > (Currently i should rate my python skills to be almost beginner > level) > > 3. I was looking for some frameworks like vaadin in a python, > does anybody knows about such a framework. Not sure what vaadin is, but as mentioned above, I would go with Django. > 4. For all this frameworks, we need apache like webserver right. > I found web.py's independent sample webserver, Is it advisable to > use such a webserver to avoid other third party installations. You can run Django through Apache, or other web servers. > 5. What's your opinion on Web client vs Thick client for such an > application. If it's thick client, architects here are forcing > to use TCL/Tk to build. But my feel is it's lacking look and feel. [...] Ack! Tcl/Tk in this day and age? Regards, Gora From noufal at gmail.com Thu Jun 3 09:59:37 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 3 Jun 2010 13:29:37 +0530 Subject: [BangPypers] Regarding web framework in Python In-Reply-To: References: <3e3294b71001291102o1d782db8kdcac086ea6c6ec61@mail.gmail.com> Message-ID: On Thu, Jun 3, 2010 at 1:15 PM, Jins Thomas wrote:[..] > Would some body please advice when free on > > 1. ?Whether web.py itself is the good option for building this kind of > framework. web.py is nice an it has it's own niche. You should really spend a while evaluating the options before you start. web.py is very small and understandable. The amount of magic is minimal. It's a "library" rather than a framework. Those are the plus points. The downsides are that it doesn't give you things like the automatic admin interface etc. which Django does. The amount of work you'll have to do is a little more (but you're compensated by increased control). > 2 . How easy would it be to ?build such an application in python (Currently > i should rate my python skills to be almost beginner level) You should learn Python to atleast an intermediate level if you're doing such a project professionally. Otherwise, you'll end up hurting yourself. OTOH, if this is a project you can afford to make mistakes on and which can take a little time, it's a decent learning endeavour. > 3. ?I was looking for some frameworks like vaadin in a python, does anybody > knows about such a framework. > > 4. For all this frameworks, we need apache like webserver right. I found > web.py's independent sample webserver, Is it advisable to use such a > webserver to avoid other third party installations. You'll need a *real* webserver to deploy. The inbuilt ones (like the cherryPy like thing with web.py, paste with pylons, cherryPy with TG etc.) can't really scale all that well. They might work for a small app with a few users but anything *real* and you're best moving to a real webserver (apache, lighttpd, nginx etc.) > 5. What's your opinion on Web client vs Thick client for such an > application. If it's thick client, architects here ?are forcing to use > TCL/Tk to build. But my feel is it's lacking look and feel. With thick clients, you can probably avoid Javascript/CSS work neither of which I'm personally very fond of (but that's just my opinion). However, you have to write clients for every supported platform, people have to install them etc. Look and feel are not necessarily a problem. It needs to get the job done and should do it well. A fancy web based app with bells and whistles that's not fast and responsive is much worse than a simple command line program that gets the job done. A more genuine problem with Tk (when I last used it) is that has an almost PHP like way of getting out of control but maybe that's a GUI thing in general. One thing that occurs to me is to build your app as a web service and then write a thick/thin client that interacts with it. Basically, decouple the front and back ends. Then you can try out different approaches and see what works. Good luck. -- ~noufal http://nibrahim.net.in From pradeep at btbytes.com Thu Jun 3 15:00:27 2010 From: pradeep at btbytes.com (Pradeep Gowda) Date: Thu, 3 Jun 2010 09:00:27 -0400 Subject: [BangPypers] Regarding web framework in Python In-Reply-To: <20100603132720.69413680@ibis> References: <3e3294b71001291102o1d782db8kdcac086ea6c6ec61@mail.gmail.com> <20100603132720.69413680@ibis> Message-ID: On Thu, Jun 3, 2010 at 3:57 AM, Gora Mohanty wrote: > On Thu, 3 Jun 2010 13:15:12 +0530 > Jins Thomas wrote: > [...] >> Current requirement is like we are planning to build such an >> application which should have >> >> 1. ?(Web) client gui ?which can connect to a database, run some >> perl scripts at the back end, gives back the results in the gui >> (results can be some tabular inputs, paragraphs, charts, >> schematic diagrams etc.) > > I would definitely recommend Django over something like web.py. > Django is quite easy to get into in terms of basics, and you > can explore further features as needed. With web.py, I would > suspect that you would eventually end up writing your own framework. > > If you want to run Perl scripts, you could consider looking at > Catalyst, a Perl web framework (never used it myself, but have > heard many good things about it). > >> 2. It should have some drag and drop facility and connect the >> objects ?to configure some rule sets, saveas options etc. > > Drag and drop should probably be a front-end task, say jQuery > driven. Others can be done. > >> Basically there are some quite a bit debates happening whether it >> should be a web gui, or a thick client (which connects to the >> database). >> >> Would some body please advice when free on >> >> 1. ?Whether web.py itself is the good option for building this >> kind of framework. >> >> 2 . How easy would it be to ?build such an application in python >> (Currently i should rate my python skills to be almost beginner >> level) >> >> 3. ?I was looking for some frameworks like vaadin in a python, >> does anybody knows about such a framework. > > Not sure what vaadin is, but as mentioned above, I would go with > Django. > >> 4. For all this frameworks, we need apache like webserver right. >> I found web.py's independent sample webserver, Is it advisable to >> use such a webserver to avoid other third party installations. > > You can run Django through Apache, or other web servers. > >> 5. What's your opinion on Web client vs Thick client for such an >> application. If it's thick client, architects here ?are forcing >> to use TCL/Tk to build. But my feel is it's lacking look and feel. > [...] > > Ack! Tcl/Tk in this day and age? > Django is a framework, web.py is a library. The OP is a beginner and he is not sure what exactly his final solution will look like. So, it is better to start with a library and add features as you go. With django, you get a bunch of design decisions made for you, which may or may not suite your requirements. Django is not a panacea for every web development project. Vaadin is a RIA framework much like GWT. Google would have told you that. From pradeep at btbytes.com Thu Jun 3 15:15:52 2010 From: pradeep at btbytes.com (Pradeep Gowda) Date: Thu, 3 Jun 2010 09:15:52 -0400 Subject: [BangPypers] Regarding web framework in Python In-Reply-To: References: <3e3294b71001291102o1d782db8kdcac086ea6c6ec61@mail.gmail.com> Message-ID: On Thu, Jun 3, 2010 at 3:45 AM, Jins Thomas wrote: > On Sat, Jan 30, 2010 at 12:32 AM, Pradeep Gowda wrote: > >> On Fri, Jan 29, 2010 at 3:47 AM, Jins Thomas wrote: >> > Hi All, >> > >> > Would like to ask one suggestion from bangpypers. >> > >> > I have a oracle ?database in Unix and need to create a web based GUI to >> > execute some queries/scripts ?(via buttons) and save that in csv either >> in >> > Unix or in windows. I was thinking of using Django framework. Btw i'm >> > relatively new in python. ?Woud anybody please suggest whether Django is >> a >> > good candidate for this. I succesfully installed Django and worked with >> some >> > sample codes. Is there any similar framework which is more ?reccomondable >> > than Django. Atleast this time i want to get this done with python. Many >> > times i wanted to do things in python for some reason or other reason i >> was >> > forced to use some other technology. ?I have some doubts like >> > >> > 1. Django sample webserver cannot be used when it's mission critical? >> ?Will >> > this django framework supports apache or tomcat servers. >> > >> > 2. Certain query results i would like to display in graphs. I had mailed >> > before asking suggestion for creating charts/bar/pie graphs with python >> and >> > got a good number of suggestions like pychart, pygoogle chart open flash >> > etc. I was just thinking how difficult is to integrate these stuffs in >> > Django framework. Also couldn't actually finalize a good framework to use >> > for creating this graphs. I'm absolutely in confusion which'll be better >> to >> > use. Would anybody suggest what's the usual thought process in taking >> > decisions like this. >> >> Django is an overkill for something like this. >> >> web.py is what you should be looking at. If you already are programming >> in python, web.py will give you the web library without trying to introduce >> new concepts on URL dispatch, ORM etc., >> >> Web.py has a very decent db api for most common db operations >> You can fall back to raw SQL with ease. >> > > Hi all, > > I asked some doubts on this topic around 6 months back. Later that project > itself got delayed. Now it's again back. > > I should apologize that mean time i had planned to ramp myself in python, > but didnt work out. One reason of escapism: ?work load !! > > Current requirement is like we are planning to build such an application > which should have > > 1. ?(Web) client gui ?which can connect to a database, run some perl scripts > at the back end, gives back the results in the gui (results can be some > tabular inputs, paragraphs, charts, schematic diagrams etc.) > > 2. It should have some drag and drop facility and connect the objects ?to > configure some rule sets, saveas options etc. > > Basically there are some quite a bit debates happening whether it should be > a web gui, or a thick client (which connects to the database). > > Would some body please advice when free on > > 1. ?Whether web.py itself is the good option for building this kind of > framework. > > 2 . How easy would it be to ?build such an application in python (Currently > i should rate my python skills to be almost beginner level) > > 3. ?I was looking for some frameworks like vaadin in a python, does anybody > knows about such a framework. > > 4. For all this frameworks, we need apache like webserver right. I found > web.py's independent sample webserver, Is it advisable to use such a > webserver to avoid other third party installations. > > 5. What's your opinion on Web client vs Thick client for such an > application. If it's thick client, architects here ?are forcing to use > TCL/Tk to build. But my feel is it's lacking look and feel. > > Many thanks for the patience to read this. Looks like you and many in your team desire a desktop like behaviour.. So, as Noufal suggested it is better to create web services which query the backend(perl scripts, database etc.,) and provide data to clients in json/xml format. It is easier to code drag and drop like behaviour in a desktop widget than in a web app, especially if you are not a javascript/ajax expert already. It appears you may be building an app for in house use, may be even something to do with sys administration and reporting. In which case, the look and feel of tcl/tk, which has improved by leaps and bounds in 8.5, should not be a huge concern. However, If you want to have near-native UI look and feel and also have a modern widget toolkit, take a look at PyQt or wxPython. To answer your other questions in particular order, * web.py can be run with apache using mod_wsgi and mod_python and of course mod_proxy. * The equivalent of vaadin would be Pyjamas, which is a port of GWT to python. When you are a beginner, it is easy to succumb to advice by experts on the internet. So, let your own experiments guide what suits you best. Remember, Simple is better than complex; esp when you are a beginner ;) happy hacking, +PG From lawgon at au-kbc.org Thu Jun 3 19:19:59 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 3 Jun 2010 22:49:59 +0530 Subject: [BangPypers] python for management studies Message-ID: <201006032249.59597.lawgon@au-kbc.org> hi, I have been commissioned to create and implement a course (compulsory with 2 credits for first semester) on computer programming for business managers for MBA's in a new B school that is starting up. I envisage something like the nltk tutorial. Ideas and suggestions please. I will, of course, develop the course in a mercurial repo, but that is the future. The idea is that this should become a standard cp-101 for business schools. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From pradeep at btbytes.com Thu Jun 3 19:34:01 2010 From: pradeep at btbytes.com (Pradeep Gowda) Date: Thu, 3 Jun 2010 13:34:01 -0400 Subject: [BangPypers] python for management studies In-Reply-To: <201006032249.59597.lawgon@au-kbc.org> References: <201006032249.59597.lawgon@au-kbc.org> Message-ID: On Thu, Jun 3, 2010 at 1:19 PM, Kenneth Gonsalves wrote: > hi, > > I have been commissioned to create and implement a course (compulsory with 2 > credits for first semester) on computer programming for business managers for > MBA's in a new B school that is starting up. I envisage something like the > nltk tutorial. Ideas and suggestions please. I will, of course, develop the > course in a mercurial repo, but that is the future. The idea is that this > should become a standard cp-101 for business schools. Very interesting development kenneth. Is this the NLTK tutorial you are talking about: http://nltk.googlecode.com/svn/trunk/doc/book/ch01.html Putting up the course in a hg repo is a good idea. Consider using something like Sphinx (reStructuredText + publishing friendly tweaks) for writing the text. Using Sphinx will make it very easy to publish the online version as PDF for offline reading/textbook publishing with no additional effort. Eg: http://flask.pocoo.org/docs/ and "published" book from the same source: http://flask.pocoo.org/docs/flask-docs.pdf +PG From pradeep at btbytes.com Thu Jun 3 19:41:22 2010 From: pradeep at btbytes.com (Pradeep Gowda) Date: Thu, 3 Jun 2010 13:41:22 -0400 Subject: [BangPypers] python for management studies In-Reply-To: References: <201006032249.59597.lawgon@au-kbc.org> Message-ID: On Thu, Jun 3, 2010 at 1:34 PM, Pradeep Gowda wrote: > On Thu, Jun 3, 2010 at 1:19 PM, Kenneth Gonsalves wrote: >> hi, >> >> I have been commissioned to create and implement a course (compulsory with 2 >> credits for first semester) on computer programming for business managers for >> MBA's in a new B school that is starting up. I envisage something like the >> nltk tutorial. Ideas and suggestions please. I will, of course, develop the >> course in a mercurial repo, but that is the future. The idea is that this >> should become a standard cp-101 for business schools. > > Very interesting development kenneth. > Is this the NLTK tutorial you are talking about: > http://nltk.googlecode.com/svn/trunk/doc/book/ch01.html > > Putting up the course in a hg repo is a good idea. > Consider using something like Sphinx (reStructuredText + publishing > friendly tweaks) for writing the text. > > Using Sphinx will make it very easy to publish the online version as > PDF for offline reading/textbook publishing with no additional effort. > Eg: http://flask.pocoo.org/docs/ and "published" book from the same > source: http://flask.pocoo.org/docs/flask-docs.pdf > The link to the aforementioned Sphinx website: http://sphinx.pocoo.org/ From noufal at gmail.com Thu Jun 3 19:50:35 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 3 Jun 2010 23:20:35 +0530 Subject: [BangPypers] python for management studies In-Reply-To: <201006032249.59597.lawgon@au-kbc.org> References: <201006032249.59597.lawgon@au-kbc.org> Message-ID: On Thu, Jun 3, 2010 at 10:49 PM, Kenneth Gonsalves wrote: > > hi, > > I have been commissioned to create and implement a course (compulsory with 2 > credits for first semester) on computer programming for business managers for > MBA's in a new B school that is starting up. I envisage something like the > nltk tutorial. Ideas and suggestions please. I will, of course, develop the > course in a mercurial repo, but that is the future. The idea is that this > should become a standard cp-101 for business schools. What's the intention of the course? The structure of the course would depend on that methinks. Is it to - Give the students some programming skills so that they can use them if needed for their actual work. - Appreciate the finer subtleties of what goes on during programming so that they can become better managers/decision makers. The latter would be considerably harder and it wouldn't really be CP-101. For the former, I think a basic language introduction (say 1/4th of the course) followed by intense exercise driven training on 'useful' things would be nice. Similar to Zed Shaw's "Learn Python the hard way" (http://learnpythonthehardway.org/). The exercises should be complex enough to force the people to make some design decisions so that they learn to "program". Too often, fibonacci number programs are considered good examples and that totally cripples someone trying to study the language. -- ~noufal http://nibrahim.net.in From venkat83 at gmail.com Thu Jun 3 20:35:45 2010 From: venkat83 at gmail.com (Venkatraman S) Date: Fri, 4 Jun 2010 00:05:45 +0530 Subject: [BangPypers] python for management studies In-Reply-To: References: <201006032249.59597.lawgon@au-kbc.org> Message-ID: On Thu, Jun 3, 2010 at 11:20 PM, Noufal Ibrahim wrote: > What's the intention of the course? The structure of the course would > depend on that methinks. Is it to > - Give the students some programming skills so that they can use them > if needed for their actual work. > - Appreciate the finer subtleties of what goes on during programming > so that they can become better managers/decision makers. > > The latter would be considerably harder and it wouldn't really be CP-101. > > For the former, I think a basic language introduction (say 1/4th of > the course) followed by intense exercise driven training on 'useful' > things would be nice. Similar to Zed Shaw's "Learn Python the hard > way" (http://learnpythonthehardway.org/). The exercises should be > complex enough to force the people to make some design decisions so > that they learn to "program". Too often, fibonacci number programs are > considered good examples and that totally cripples someone trying to > study the language. > I dont think they need either. Rather ,IMHO, they need a framework for specifying business rules(workflow engine) and writing macros without much programming knowledge. And *if* at all they are to be made aware of programming, i think, designing a work flow/business process engine would be a good exercise. @kg : This endeavor looks interesting. All the Best. -V- http://twitter.com/venkasub From vid at svaksha.com Fri Jun 4 04:46:57 2010 From: vid at svaksha.com (=?UTF-8?B?IOCkuOCljeCkteCkleCljeCktyA=?=) Date: Fri, 4 Jun 2010 08:31:57 +0545 Subject: [BangPypers] [IndiChix] [X-post] The InfoLadies of Bangladesh In-Reply-To: References: Message-ID: hi, On Thu, Jun 3, 2010 at 07:12, Kadambari Devarajan wrote: > > I wish we had more such programs like these in India. I think I know what I > can do when am back there. Using FOSS for such a program in India would be Fwiw, something like this, tailored to city dwellers needs, would be good for urban spaces too. Bangalore has CIS-India, but afaik, they concentrate on research and policy-making and dont have any programs like this night school[0] which teaches libre software to kids just like FAT[1] at Delhi does. I find the latter particularly interesting as its target group is specific --women and technology (and not only libre software). IIRC, Gayatri Buragohain of FAT is on the Indichix list and it would be great if she piped in her thoughts. [0] http://slumdweller.wikispaces.com/ [1] http://www.fat-net.org/ -- thanks and regards, vid || http://svaksha.com From lawgon at au-kbc.org Fri Jun 4 05:04:52 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 4 Jun 2010 08:34:52 +0530 Subject: [BangPypers] python for management studies In-Reply-To: References: <201006032249.59597.lawgon@au-kbc.org> Message-ID: <201006040834.52926.lawgon@au-kbc.org> On Thursday 03 June 2010 23:04:01 Pradeep Gowda wrote: > > I have been commissioned to create and implement a course (compulsory > > with 2 credits for first semester) on computer programming for business > > managers for MBA's in a new B school that is starting up. I envisage > > something like the nltk tutorial. Ideas and suggestions please. I will, > > of course, develop the course in a mercurial repo, but that is the > > future. The idea is that this should become a standard cp-101 for > > business schools. > > Very interesting development kenneth. > Is this the NLTK tutorial you are talking about: > http://nltk.googlecode.com/svn/trunk/doc/book/ch01.html thats the one - when I was learning nltk, it also helped me brush up my python skills > > Putting up the course in a hg repo is a good idea. > Consider using something like Sphinx (reStructuredText + publishing > friendly tweaks) for writing the text. > > Using Sphinx will make it very easy to publish the online version as > PDF for offline reading/textbook publishing with no additional effort. > Eg: http://flask.pocoo.org/docs/ and "published" book from the same > source: http://flask.pocoo.org/docs/flask-docs.pdf > thanks for the suggestion - obviously a python course should be structured using python tools - think I will set this up and invite you guys to make the book with me. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From siddharta.lists at gmail.com Fri Jun 4 05:07:07 2010 From: siddharta.lists at gmail.com (Siddharta G) Date: Fri, 4 Jun 2010 08:37:07 +0530 Subject: [BangPypers] python for management studies In-Reply-To: References: <201006032249.59597.lawgon@au-kbc.org> Message-ID: On Fri, Jun 4, 2010 at 12:05 AM, Venkatraman S wrote: > On Thu, Jun 3, 2010 at 11:20 PM, Noufal Ibrahim wrote: > > > What's the intention of the course? The structure of the course would > > depend on that methinks. Is it to > > - Give the students some programming skills so that they can use them > > if needed for their actual work. > > - Appreciate the finer subtleties of what goes on during programming > > so that they can become better managers/decision makers. > > > > The latter would be considerably harder and it wouldn't really be CP-101. > > > > For the former, I think a basic language introduction (say 1/4th of > > the course) followed by intense exercise driven training on 'useful' > > things would be nice. Similar to Zed Shaw's "Learn Python the hard > > way" (http://learnpythonthehardway.org/). The exercises should be > > complex enough to force the people to make some design decisions so > > that they learn to "program". Too often, fibonacci number programs are > > considered good examples and that totally cripples someone trying to > > study the language. > > > Agree with Noufal. The course should be tailored to how we expect them to use it later on. The goal shouldn't be to make them programmers. I would think it should focus on helping them solve bits and pieces problems that they might encounter later on. For most MBA programs, that would probably be quants - statistics, probability, simulation, forecasting, modeling. -- Siddharta Govindaraj http://twitter.com/silvercatalyst From lawgon at au-kbc.org Fri Jun 4 05:39:18 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 4 Jun 2010 09:09:18 +0530 Subject: [BangPypers] python for management studies In-Reply-To: References: <201006032249.59597.lawgon@au-kbc.org> Message-ID: <201006040909.18957.lawgon@au-kbc.org> On Friday 04 June 2010 08:37:07 Siddharta G wrote: > Agree with Noufal. The course should be tailored to how we expect them to > use it later on. > > The goal shouldn't be to make them programmers. I would think it should > focus on helping them solve bits and pieces problems that they might > encounter later on. > > For most MBA programs, that would probably be quants - statistics, > probability, simulation, forecasting, modeling. > yes - these people are identifying areas where scripting can help out. They will provide a set of problems and the way to solve them. We have to integrate this with python -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From orsenthil at gmail.com Fri Jun 4 06:46:20 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Fri, 4 Jun 2010 10:16:20 +0530 Subject: [BangPypers] python for management studies In-Reply-To: <201006032249.59597.lawgon@au-kbc.org> References: <201006032249.59597.lawgon@au-kbc.org> Message-ID: <20100604044620.GA4308@remy> On Thu, Jun 03, 2010 at 10:49:59PM +0530, Kenneth Gonsalves wrote: > I have been commissioned to create and implement a course (compulsory with 2 > credits for first semester) on computer programming for business managers for > MBA's in a new B school that is starting up. I envisage something like the Here is my suggestion: 1. Introduce the basics and standard library. This cannot be overlooked. 2. Introduce how to install external packages and how to it works along with the interpreter. 3. Choose Problems in their Domain and solve it using python. 4. Repeat 3. :) I understand the difficult and the challenging part for you will be point 3. Putting effort on the same will definitely be beneficial in the long run (IMHO). -- Senthil Lieberman's Law: Everybody lies, but it doesn't matter since nobody listens. From murugadoss2884 at gmail.com Fri Jun 4 07:57:37 2010 From: murugadoss2884 at gmail.com (murugadoss) Date: Fri, 4 Jun 2010 14:57:37 +0900 Subject: [BangPypers] ReadError: opening tar file Message-ID: Hello, I am trying to extract a tar file. while doing this i check the valid tar file using is_tarfile( ). It is working fine in a 32-bit linux machine with python 2.5.4 version and when i try it out in a 64-bit linux pc, i end up saying file is invalid(false). This machine was using python 2.4 and now i have upgraded to 2.5.4 version and I am using python 2.5.4. I went through the library file, tarfile.py and found in is_tarfile(), is opening the tarfile using tarfile.open. >>>tar = /root/testtar.tar.gz >>> import tarfile >>> tarfile.is_tarfile(tar) False >>> tarfile.open(tar) Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.5/tarfile.py", line 1153, in open raise ReadError("file could not be opened successfully") tarfile.ReadError: file could not be opened successfully Can anyone please help me -- Thanks & Regards V.Murugadoss From noufal at gmail.com Fri Jun 4 08:07:49 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 4 Jun 2010 11:37:49 +0530 Subject: [BangPypers] python for management studies In-Reply-To: <20100604044620.GA4308@remy> References: <201006032249.59597.lawgon@au-kbc.org> <20100604044620.GA4308@remy> Message-ID: On Fri, Jun 4, 2010 at 10:16 AM, Senthil Kumaran wrote: > > On Thu, Jun 03, 2010 at 10:49:59PM +0530, Kenneth Gonsalves wrote: > > I have been commissioned to create and implement a course (compulsory with 2 > > credits for first semester) on computer programming for business managers for > > MBA's in a new B school that is starting up. I envisage something like the > > Here is my suggestion: > > 1. Introduce the basics and standard library. This cannot be > overlooked. > 2. Introduce how to install external packages and how to it works > along with the interpreter. > 3. Choose Problems in their Domain and solve it using python. > 4. Repeat 3. :) > > I understand the difficult and the challenging part for you will be > point 3. Putting effort on the same will definitely be beneficial in > the long run (IMHO). If the exercises are needed, putting it up on bitbucket or github would be nice. There are lots of domain experts here who'll have *something* to contribute to parts of the course. You (ie. Kenneth) can do the overall editing and structuring and it should be ready quite quickly. -- ~noufal http://nibrahim.net.in From fslash8 at gmail.com Fri Jun 4 08:43:42 2010 From: fslash8 at gmail.com (Shiv Shankar) Date: Fri, 4 Jun 2010 12:13:42 +0530 Subject: [BangPypers] 2D plotting libraries. Message-ID: Hello, I have a finite 2 dimensional plane. I have a set of co-ordinates, which is basically the movement of an object. The co-ordinates are derived from a set of equations considering various factors. After a set of initial research and tryouts i *quickly *decided on using * pygame* to plot the co-ordinates on a 2D plane. Has any one in here implemented this sort of a program ? Which library did you use ? if possible could you explain why you chose the particular library. -- shiv From venkat83 at gmail.com Fri Jun 4 09:02:10 2010 From: venkat83 at gmail.com (Venkatraman S) Date: Fri, 4 Jun 2010 12:32:10 +0530 Subject: [BangPypers] python for management studies In-Reply-To: References: <201006032249.59597.lawgon@au-kbc.org> <20100604044620.GA4308@remy> Message-ID: I would recommend starting with http://alpha.djangogenerator.com/ to get a feel of an 'application'. -V- http://twitter.com/venkasub From lawgon at au-kbc.org Fri Jun 4 09:05:02 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 4 Jun 2010 12:35:02 +0530 Subject: [BangPypers] 2D plotting libraries. In-Reply-To: References: Message-ID: <201006041235.02493.lawgon@au-kbc.org> On Friday 04 June 2010 12:13:42 Shiv Shankar wrote: > Has any one in here implemented this sort of a program ? Which library did > you use ? if possible could you explain why you chose the particular > library. > just started the same thing yesterday! -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From noufal at gmail.com Fri Jun 4 09:08:45 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 4 Jun 2010 12:38:45 +0530 Subject: [BangPypers] 2D plotting libraries. In-Reply-To: References: Message-ID: On Fri, Jun 4, 2010 at 12:13 PM, Shiv Shankar wrote: > Hello, > > I have a finite 2 dimensional plane. I have a set of co-ordinates, which is > basically the movement of an object. > The co-ordinates are derived from a set of equations considering various > factors. > After a set of initial research and tryouts i *quickly *decided on using * > pygame* to plot the co-ordinates on a 2D plane. PyGame is better if you want to animate rather than to plot. It has an animation loop inside which you can update sprites and things. If you want to see your object move as per your equations, it's pretty easy to do. I have an example program here which you can customise. http://github.com/nibrahim/Devious-machinations/blob/master/tutorials/positioning_sprites.py You'll have to change the update method of the Ball to set the x and y based on your equations rather than just x+=2, y+=0.5 which I've done. > Has any one in here implemented this sort of a program ? Which library did > you use ? if possible could you explain why you chose the particular > library. If I wanted to plot, I'd write the program to dump out the X and Y coordinates in plain text and pipe that through Gnuplot after some massaging to do the plot. If you want to stuff the whole thing in Python, you simply use a Tkinter canvas. It has some simple primitives to draw points at x and y positions. Should be doable in 10 or 15 lines of code. -- ~noufal http://nibrahim.net.in From anandology at gmail.com Fri Jun 4 09:15:20 2010 From: anandology at gmail.com (Anand Chitipothu) Date: Fri, 4 Jun 2010 12:45:20 +0530 Subject: [BangPypers] 2D plotting libraries. In-Reply-To: References: Message-ID: 2010/6/4 Shiv Shankar : > Hello, > > I have a finite 2 dimensional plane. I have a set of co-ordinates, which is > basically the movement of an object. > The co-ordinates are derived from a set of equations considering various > factors. > After a set of initial research and tryouts i *quickly *decided on using * > pygame* to plot the co-ordinates on a 2D plane. > > Has any one in here implemented this sort of a program ? Which library did > you use ? if possible could you explain why you chose the particular > library. If that is not an animation, you can use Python Imaging Library to render the graph as an image. Here is a sample code for rendering sparklines. http://github.com/aaronsw/watchdog/blob/master/utils/simplegraphs.py Anand From noufal at gmail.com Fri Jun 4 09:17:49 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 4 Jun 2010 12:47:49 +0530 Subject: [BangPypers] python for management studies In-Reply-To: References: <201006032249.59597.lawgon@au-kbc.org> <20100604044620.GA4308@remy> Message-ID: On Fri, Jun 4, 2010 at 12:32 PM, Venkatraman S wrote: > I would recommend starting with http://alpha.djangogenerator.com/ to get a > feel of an 'application'. It might be just me but I think this is an *extremely* bad idea. I just tried the site and it looks like a nice point and click wizard to create an "application template" which people can customise into an application. The world has enough people who consider programming mostly a matter of point and click who don't know what's going on. I would be completely against using any of these tools for an introductory programming course. I'd teach language basics, the standard library (like Senthil pointed out) so that they don't reinvent the wheel poorly and then have them solve *hard* problems which are relevant to their area of work. Getting an application up and running with a few clicks of a mouse has the same effect as eating junk food. Your appetite goes away, you can claim that you've eaten something but there's close to zero nourishment. -- ~noufal http://nibrahim.net.in From srinivas_thatiparthy at akebonosoft.com Fri Jun 4 09:18:48 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Fri, 4 Jun 2010 12:48:48 +0530 Subject: [BangPypers] python for management studies References: <201006032249.59597.lawgon@au-kbc.org> <20100604044620.GA4308@remy> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D833BC@astserver3.akebonosoft.com> >Getting an application up and running with a few >clicks of a mouse has the same effect as eating junk food. Your >appetite goes away, you can claim that you've eaten something but >there's close to zero nourishment. I love this analogy.gr8. +1 for all of your points. Regards, Srini T. --The real failure is failing to try for success. From venkat83 at gmail.com Fri Jun 4 09:25:19 2010 From: venkat83 at gmail.com (Venkatraman S) Date: Fri, 4 Jun 2010 12:55:19 +0530 Subject: [BangPypers] python for management studies In-Reply-To: References: <201006032249.59597.lawgon@au-kbc.org> <20100604044620.GA4308@remy> Message-ID: On Fri, Jun 4, 2010 at 12:47 PM, Noufal Ibrahim wrote: > On Fri, Jun 4, 2010 at 12:32 PM, Venkatraman S wrote: > > I would recommend starting with http://alpha.djangogenerator.com/ to get > a > > feel of an 'application'. > > It might be just me but I think this is an *extremely* bad idea. > > I just tried the site and it looks like a nice point and click wizard > to create an "application template" which people can customise into > an application. > > The world has enough people who consider programming mostly a matter > of point and click who don't know what's going on. I would be > completely against using any of these tools for an introductory > programming course. I'd teach language basics, the standard library > (like Senthil pointed out) so that they don't reinvent the wheel > poorly and then have them solve *hard* problems which are relevant to > their area of work. Getting an application up and running with a few > clicks of a mouse has the same effect as eating junk food. Your > appetite goes away, you can claim that you've eaten something but > there's close to zero nourishment. > The point is : the audience is MBA students. And i have had experience coaching around 40+students who had ZERO experience with programing and taught them Python. They were HIGHLY skeptical to program. I had to really motivate them a lot to get them onto Python. I partly succeeded. Now the entire org, which was using Java, runs on Python. Do NOT expect MBA grads to *program* - they are decision makers, they need language as a *tool* to augment their daily work - hence Macros. I can include some verbiage here reg the MBA mentality in India et al. but thats cliched! DjangoGenerator is cool to understand what an 'application'-'relation' looks like. I have been using this to get 2 persons to understand the concept of a 'web application'. This tool is not a 'pseudo' programmer. Will you stop using Pinax for the same reasons? -V From abpillai at gmail.com Fri Jun 4 09:31:51 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 4 Jun 2010 13:01:51 +0530 Subject: [BangPypers] 2D plotting libraries. In-Reply-To: References: Message-ID: On Fri, Jun 4, 2010 at 12:13 PM, Shiv Shankar wrote: > Hello, > > I have a finite 2 dimensional plane. I have a set of co-ordinates, which is > basically the movement of an object. > The co-ordinates are derived from a set of equations considering various > factors. > After a set of initial research and tryouts i *quickly *decided on using * > pygame* to plot the co-ordinates on a 2D plane. > > Wrong choice. When a software exists which is the perhaps the most powerful plotting program *ever* written, choosing a gaming library for this demonstrates poor choice, unless there is a specific reason for that - like for example, if you are already familiar with Pygame or SDL. I am talking about "gnuplot" here. The commands are pretty intuitive. It gives you an interactive prompt, like python. For example, here is how to plot a curve for the function (3*x*x - 8*x) over x range of -50:50 and y-range of -10:100 gnuplot> plot [-30:30] [-10:500] (3*x*x - 8*x) You can also do 3-d plots. Here is the 3d plot of a complex function in 2d plane. gnuplot> splot [-30:30] [-10:500] (3*x*x - 8*x + y*y) Has any one in here implemented this sort of a program ? Which library did > you use ? if possible could you explain why you chose the particular > library. Gnuplot is its own "programming language", but if you want a Python interface, try gnuplot.py. http://gnuplot-py.sourceforge.net/ > > > -- shiv > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From orsenthil at gmail.com Fri Jun 4 09:34:07 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Fri, 4 Jun 2010 13:04:07 +0530 Subject: [BangPypers] python for management studies In-Reply-To: References: <201006032249.59597.lawgon@au-kbc.org> <20100604044620.GA4308@remy> Message-ID: <20100604073407.GA12378@remy> On Fri, Jun 04, 2010 at 12:55:19PM +0530, Venkatraman S wrote: > > Do NOT expect MBA grads to *program* - they are decision makers, they need Be whatever, even if you are president of a company and *want* to write a small program to move files around or add your salary, you better know the basics before knowing macros. Otherwise, you will create a lot of problem for yourself and others. No wanting to write and delegating it to others is different matter altogether, we are not talking about that. -- Senthil He walks as if balancing the family tree on his nose. From vinayakh at gmail.com Fri Jun 4 09:45:38 2010 From: vinayakh at gmail.com (Vinayak Hegde) Date: Fri, 4 Jun 2010 13:15:38 +0530 Subject: [BangPypers] 2D plotting libraries. In-Reply-To: References: Message-ID: How about mathplotlib ? I haven't used it (yet but am planning to play with it for visualisation). What are the other good visualisation libraries for python. -- Vinayak On Fri, Jun 4, 2010 at 1:01 PM, Anand Balachandran Pillai wrote: > On Fri, Jun 4, 2010 at 12:13 PM, Shiv Shankar wrote: > >> Hello, >> >> I have a finite 2 dimensional plane. I have a set of co-ordinates, which is >> basically the movement of an object. >> The co-ordinates are derived from a set of equations considering various >> factors. >> After a set of initial research and tryouts i *quickly *decided on using * >> pygame* to plot the co-ordinates on a 2D plane. >> >> > ?Wrong choice. When a software exists which is the perhaps the most > powerful plotting program *ever* written, choosing a gaming library > for this demonstrates poor choice, unless there is a specific reason > ?for that - like for example, if you are already familiar with Pygame or > ?SDL. > > I am talking about "gnuplot" here. > > The commands are pretty intuitive. It gives you an interactive > prompt, like python. For example, here is how to plot > a curve for the function (3*x*x - 8*x) over x range of -50:50 > and y-range of -10:100 > > gnuplot> plot [-30:30] [-10:500] (3*x*x - 8*x) > > You can also do 3-d plots. > Here is the 3d plot of a complex function in 2d plane. > > gnuplot> splot [-30:30] [-10:500] (3*x*x - 8*x + y*y) > > Has any one in here implemented this sort of a program ? Which library did >> you use ? if possible could you explain why you chose the particular >> library. > > > ?Gnuplot is its own "programming language", but if you want a Python > ?interface, try gnuplot.py. > > ?http://gnuplot-py.sourceforge.net/ > > > >> >> >> -- shiv >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > > -- > --Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From abpillai at gmail.com Fri Jun 4 10:10:19 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 4 Jun 2010 13:40:19 +0530 Subject: [BangPypers] 2D plotting libraries. In-Reply-To: References: Message-ID: On Fri, Jun 4, 2010 at 1:15 PM, Vinayak Hegde wrote: > How about mathplotlib ? I haven't used it (yet but am planning to play > with it for visualisation). What are the other good visualisation > libraries for python. > You mean matplotlib. It is a Python library meant for plotting and not a separate application like gnuplot. I haven't used it yet, but I understand there is some initial learning involved. Not sure if it is amenable for a rookie. > > -- Vinayak > > On Fri, Jun 4, 2010 at 1:01 PM, Anand Balachandran Pillai > wrote: > > On Fri, Jun 4, 2010 at 12:13 PM, Shiv Shankar wrote: > > > >> Hello, > >> > >> I have a finite 2 dimensional plane. I have a set of co-ordinates, which > is > >> basically the movement of an object. > >> The co-ordinates are derived from a set of equations considering various > >> factors. > >> After a set of initial research and tryouts i *quickly *decided on using > * > >> pygame* to plot the co-ordinates on a 2D plane. > >> > >> > > Wrong choice. When a software exists which is the perhaps the most > > powerful plotting program *ever* written, choosing a gaming library > > for this demonstrates poor choice, unless there is a specific reason > > for that - like for example, if you are already familiar with Pygame or > > SDL. > > > > I am talking about "gnuplot" here. > > > > The commands are pretty intuitive. It gives you an interactive > > prompt, like python. For example, here is how to plot > > a curve for the function (3*x*x - 8*x) over x range of -50:50 > > and y-range of -10:100 > > > > gnuplot> plot [-30:30] [-10:500] (3*x*x - 8*x) > > > > You can also do 3-d plots. > > Here is the 3d plot of a complex function in 2d plane. > > > > gnuplot> splot [-30:30] [-10:500] (3*x*x - 8*x + y*y) > > > > Has any one in here implemented this sort of a program ? Which library > did > >> you use ? if possible could you explain why you chose the particular > >> library. > > > > > > Gnuplot is its own "programming language", but if you want a Python > > interface, try gnuplot.py. > > > > http://gnuplot-py.sourceforge.net/ > > > > > > > >> > >> > >> -- shiv > >> _______________________________________________ > >> BangPypers mailing list > >> BangPypers at python.org > >> http://mail.python.org/mailman/listinfo/bangpypers > >> > > > > > > > > -- > > --Anand > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From kushaldas at gmail.com Fri Jun 4 10:16:44 2010 From: kushaldas at gmail.com (Kushal Das) Date: Fri, 4 Jun 2010 13:46:44 +0530 Subject: [BangPypers] 2D plotting libraries. In-Reply-To: References: Message-ID: On Fri, Jun 4, 2010 at 1:40 PM, Anand Balachandran Pillai wrote: > > You mean matplotlib. It is a Python library meant for plotting > and not a separate application like gnuplot. I haven't used it yet, but > I understand there is some initial learning involved. Not sure if > it is amenable for a rookie. > It is easy to learn, there are many examples given in the site [1]. [1] http://matplotlib.sourceforge.net/gallery.html [2] http://matplotlib.sf.net/examples/index.html Kushal -- http://fedoraproject.org http://kushaldas.in From noufal at gmail.com Fri Jun 4 11:16:53 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 4 Jun 2010 14:46:53 +0530 Subject: [BangPypers] python for management studies In-Reply-To: References: <201006032249.59597.lawgon@au-kbc.org> <20100604044620.GA4308@remy> Message-ID: On Fri, Jun 4, 2010 at 12:55 PM, Venkatraman S wrote: [..] > Do NOT expect MBA grads to *program* - they are decision makers, they need > language as a *tool* to augment their daily work - hence Macros. I can > include some verbiage here reg the MBA mentality in India et al. but thats > cliched! Which is why I asked Kenneth about the intention of the course. It depends on that really. > DjangoGenerator is cool to understand what an 'application'-'relation' looks > like. I have been using this to get 2 persons to understand the concept of a > 'web application'. This tool is not a 'pseudo' programmer. > > Will you stop using Pinax for the same reasons? No but I wouldn't use it to teach a CP-101 course. -- ~noufal http://nibrahim.net.in From fslash8 at gmail.com Fri Jun 4 11:27:06 2010 From: fslash8 at gmail.com (Shiv Shankar) Date: Fri, 4 Jun 2010 14:57:06 +0530 Subject: [BangPypers] 2D plotting libraries. In-Reply-To: References: Message-ID: > Wrong choice. When a software exists which is the perhaps the most > powerful plotting program *ever* written, choosing a gaming library > for this demonstrates poor choice, unless there is a specific reason > for that - like for example, if you are already familiar with Pygame or > SDL. > Its a strategical game anyways. But that no way justifies my choice for the library. Ill try out GNUplot. Does GNUPlot have something like py2app in pygame ? From abpillai at gmail.com Fri Jun 4 11:44:10 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 4 Jun 2010 15:14:10 +0530 Subject: [BangPypers] 2D plotting libraries. In-Reply-To: References: Message-ID: On Fri, Jun 4, 2010 at 2:57 PM, Shiv Shankar wrote: > > Wrong choice. When a software exists which is the perhaps the most > > powerful plotting program *ever* written, choosing a gaming library > > for this demonstrates poor choice, unless there is a specific reason > > for that - like for example, if you are already familiar with Pygame or > > SDL. > > > > Its a strategical game anyways. But that no way justifies my choice for the > library. Ill try out GNUplot. > Does GNUPlot have something like py2app in pygame ? > Well, I might have misunderstood you. I thought you wanted to plot the output of your program separately, not tied to your main application. Looks like you want the plotting to be done "in" the app. Then matplotlib is a better choice, since it is a library and can be used directly in code. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From noufal at gmail.com Fri Jun 4 11:46:09 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 4 Jun 2010 15:16:09 +0530 Subject: [BangPypers] 2D plotting libraries. In-Reply-To: References: Message-ID: On Fri, Jun 4, 2010 at 2:57 PM, Shiv Shankar wrote: [/..] > Its a strategical game anyways. This changes things. What kind of app are you trying to make? -- ~noufal http://nibrahim.net.in From murugadoss2884 at gmail.com Fri Jun 4 12:18:56 2010 From: murugadoss2884 at gmail.com (murugadoss) Date: Fri, 4 Jun 2010 19:18:56 +0900 Subject: [BangPypers] ReadError: opening tar file In-Reply-To: References: Message-ID: Further, on debug i got to know in tarfile.py (library file) function open( ) (Line 1147) where it is return the file attributes is failing, I am not able to make out the exact reason, why it is failing in 64-bit M/c , but the same is working in 32-bit M/c I have attached the part code with the mail, File: tarfile.py Line:1147 if mode in ("r", "r:*"): # Find out which *open() is appropriate for opening the file. for comptype in cls.OPEN_METH: func = getattr(cls, cls.OPEN_METH[comptype]) print "func",func if fileobj is not None: saved_pos = fileobj.tell() try: print "func1",func(name, "r", fileobj) return func(name, "r", fileobj) except (ReadError, CompressionError): if fileobj is not None: fileobj.seek(saved_pos) continue raise ReadError("file could not be opened successfully") I have added few prints for debugging, please ignore it. output : tarfile.is_tarfile(tar) func > func1 func > func1 func > func1 False As u can see, the "func(name, "r", fileobj)", is returning none. The same test output in 32bit Mc: tarfile.is_tarfile(tar) func > func1 True Any information on this will be very useful. If i am wrong. Please correct me Thank u -- Thanks & Regards V.Murugadoss On Fri, Jun 4, 2010 at 2:57 PM, murugadoss wrote: > Hello, > > I am trying to extract a tar file. while doing this i check the valid tar > file using is_tarfile( ). > It is working fine in a 32-bit linux machine with python 2.5.4 version and > when i try it out in a 64-bit linux pc, i end up saying file is > invalid(false). This machine was using python 2.4 and now i have upgraded to > 2.5.4 version and I am using python 2.5.4. > > I went through the library file, tarfile.py and found in is_tarfile(), is > opening the tarfile using tarfile.open. > >>>tar = /root/testtar.tar.gz > >>> import tarfile > >>> tarfile.is_tarfile(tar) > False > >>> tarfile.open(tar) > Traceback (most recent call last): > File "", line 1, in > File "/usr/local/lib/python2.5/tarfile.py", line 1153, in open > raise ReadError("file could not be opened successfully") > tarfile.ReadError: file could not be opened successfully > > Can anyone please help me > > -- > Thanks & Regards > V.Murugadoss > From fslash8 at gmail.com Fri Jun 4 12:22:16 2010 From: fslash8 at gmail.com (Shiv Shankar) Date: Fri, 4 Jun 2010 15:52:16 +0530 Subject: [BangPypers] 2D plotting libraries. In-Reply-To: References: Message-ID: > This changes things. What kind of app are you trying to make? > War game, every one writes their own strategies to derive movement based on a intercommunication between objects. Objects are bots and one teams bot kills the others. Still in the drawing board. From orsenthil at gmail.com Fri Jun 4 12:26:02 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Fri, 4 Jun 2010 15:56:02 +0530 Subject: [BangPypers] ReadError: opening tar file In-Reply-To: References: Message-ID: <20100604102601.GA20453@remy> On Fri, Jun 04, 2010 at 07:18:56PM +0900, murugadoss wrote: > Further, on debug i got to know in tarfile.py (library file) function open( On man, you went too far. > > >>>tar = /root/testtar.tar.gz Is this is a tarfile? Answer is No. -- Senthil From lawgon at au-kbc.org Fri Jun 4 12:28:32 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 4 Jun 2010 15:58:32 +0530 Subject: [BangPypers] python for management studies In-Reply-To: References: <201006032249.59597.lawgon@au-kbc.org> Message-ID: <201006041558.32163.lawgon@au-kbc.org> On Friday 04 June 2010 14:46:53 Noufal Ibrahim wrote: > On Fri, Jun 4, 2010 at 12:55 PM, Venkatraman S wrote: > [..] > > > Do NOT expect MBA grads to program - they are decision makers, they need > > language as a tool to augment their daily work - hence Macros. I can > > include some verbiage here reg the MBA mentality in India et al. but > > thats cliched! > > Which is why I asked Kenneth about the intention of the course. It > depends on that really. > as a non-IT person and a non-programmer I have found that the ability to script some things gives me an immense sense of empowerment - I would like to share that sense with students of a B school that is taking utmost efforts to see that everything they do in IT is open source. I am inspired by the guys like the nltk guy, the bioperl guy, the gnumed guy (lead programmer is an active surgeon) and many others. One defect of the geeks in India is that most of the geeks are from IT backgrounds, unlike in the west where many a poet of yesterday is a geek of today. (Did you know that as many as 4 django core devels chat among themselves in ancient greek?) also this being a non-elite B school, the snooty know_it_all air will probably be absent in the students. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From noufal at gmail.com Fri Jun 4 12:30:23 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 4 Jun 2010 16:00:23 +0530 Subject: [BangPypers] 2D plotting libraries. In-Reply-To: References: Message-ID: On Fri, Jun 4, 2010 at 3:52 PM, Shiv Shankar wrote: >> This changes things. What kind of app are you trying to make? >> > > War game, every one writes their own strategies to derive movement based on > a intercommunication between objects. Objects are bots and one teams bot > kills the others. Still in the drawing board. The user specified strategies control movement? If that's the case, you simply have to use the graphics library you're using for your game. I don't think you'll be able to use gnuplot/matplotlib/PIL etc. -- ~noufal http://nibrahim.net.in From noufal at gmail.com Fri Jun 4 12:33:53 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 4 Jun 2010 16:03:53 +0530 Subject: [BangPypers] python for management studies In-Reply-To: <201006041558.32163.lawgon@au-kbc.org> References: <201006032249.59597.lawgon@au-kbc.org> <201006041558.32163.lawgon@au-kbc.org> Message-ID: On Fri, Jun 4, 2010 at 3:58 PM, Kenneth Gonsalves wrote: [..] >> Which is why I asked Kenneth about the intention of the course. It >> depends on that really. >> > > as a non-IT person and a non-programmer I have found that the ability to > script some things gives me an immense sense of empowerment - I would like to > share that sense with students of a B school that is taking utmost efforts to > see that everything they do in IT is open source. I think you should focus on exercises then which are relevant to their work. Perhaps some form of project planning, some kinds of calculations, simple tools to make their daily things go easier, meeting minute keepers/schedulers, todo list managers etc. Some information on good practices like version control might be good too although that wanders away from "programming" and moves into "software development". -- ~noufal http://nibrahim.net.in From abpillai at gmail.com Fri Jun 4 12:35:47 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 4 Jun 2010 16:05:47 +0530 Subject: [BangPypers] ReadError: opening tar file In-Reply-To: References: Message-ID: On Fri, Jun 4, 2010 at 11:27 AM, murugadoss wrote: > Hello, > > I am trying to extract a tar file. while doing this i check the valid tar > file using is_tarfile( ). > It is working fine in a 32-bit linux machine with python 2.5.4 version and > when i try it out in a 64-bit linux pc, i end up saying file is > invalid(false). This machine was using python 2.4 and now i have upgraded > to > 2.5.4 version and I am using python 2.5.4. > > I went through the library file, tarfile.py and found in is_tarfile(), is > opening the tarfile using tarfile.open. > >>>tar = /root/testtar.tar.gz > >>> import tarfile > >>> tarfile.is_tarfile(tar) > False > >>> tarfile.open(tar) > Traceback (most recent call last): > File "", line 1, in > File "/usr/local/lib/python2.5/tarfile.py", line 1153, in open > raise ReadError("file could not be opened successfully") > tarfile.ReadError: file could not be opened successfully > I have a test tar file named f.tar.gz. >>> import tarfile >>> tarfile.open('f.tar.gz') >>> tarfile.is_tarfile('f.tar.gz') True and for you, >>>tar = /root/testtar.tar.gz >>> import tarfile >>> tarfile.is_tarfile(tar) False So your "tar file" is not a real tar file. No wonder it is failing to open. Does it take rocket science to figure this out ? > > Can anyone please help me > Yes, only you can help yourself now. Spend time learning! > > -- > Thanks & Regards > V.Murugadoss > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From lawgon at au-kbc.org Fri Jun 4 12:45:36 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 4 Jun 2010 16:15:36 +0530 Subject: [BangPypers] 2D plotting libraries. In-Reply-To: References: Message-ID: <201006041615.36674.lawgon@au-kbc.org> On Friday 04 June 2010 15:52:16 Shiv Shankar wrote: > > This changes things. What kind of app are you trying to make? > > War game, every one writes their own strategies to derive movement based on > a intercommunication between objects. Objects are bots and one teams bot > kills the others. Still in the drawing board. > strange - this is what I am doing! -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From murugadoss2884 at gmail.com Fri Jun 4 12:45:29 2010 From: murugadoss2884 at gmail.com (murugadoss) Date: Fri, 4 Jun 2010 19:45:29 +0900 Subject: [BangPypers] ReadError: opening tar file In-Reply-To: References: Message-ID: Thank for the reply. The tar file is not corrupted, i am using the same file in 32-bit m/c and able to extract it. I have attached this output also with the mail. I am getting this problem only in 64-bit m/c. output from 32-bit m/c: tarfile.is_tarfile(tar) func > func1 True For reference i have tested the same in different systems. -- Thanks & Regards V.Murugadoss On Fri, Jun 4, 2010 at 7:35 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > On Fri, Jun 4, 2010 at 11:27 AM, murugadoss >wrote: > > > Hello, > > > > I am trying to extract a tar file. while doing this i check the valid tar > > file using is_tarfile( ). > > It is working fine in a 32-bit linux machine with python 2.5.4 version > and > > when i try it out in a 64-bit linux pc, i end up saying file is > > invalid(false). This machine was using python 2.4 and now i have upgraded > > to > > 2.5.4 version and I am using python 2.5.4. > > > > I went through the library file, tarfile.py and found in is_tarfile(), is > > opening the tarfile using tarfile.open. > > >>>tar = /root/testtar.tar.gz > > >>> import tarfile > > >>> tarfile.is_tarfile(tar) > > False > > >>> tarfile.open(tar) > > Traceback (most recent call last): > > File "", line 1, in > > File "/usr/local/lib/python2.5/tarfile.py", line 1153, in open > > raise ReadError("file could not be opened successfully") > > tarfile.ReadError: file could not be opened successfully > > > > I have a test tar file named f.tar.gz. > > >>> import tarfile > >>> tarfile.open('f.tar.gz') > > >>> tarfile.is_tarfile('f.tar.gz') > True > > and for you, > > >>>tar = /root/testtar.tar.gz > >>> import tarfile > >>> tarfile.is_tarfile(tar) > False > > So your "tar file" is not a real tar file. No wonder it is failing > to open. Does it take rocket science to figure this out ? > > > > > > Can anyone please help me > > > > Yes, only you can help yourself now. Spend time learning! > > > > > > -- > > Thanks & Regards > > V.Murugadoss > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > --Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From fslash8 at gmail.com Fri Jun 4 12:54:16 2010 From: fslash8 at gmail.com (Shiv Shankar) Date: Fri, 4 Jun 2010 16:24:16 +0530 Subject: [BangPypers] 2D plotting libraries. In-Reply-To: References: Message-ID: > If that's the case, you simply have to use the graphics library you're > using for your game. I don't think you'll be able to use > gnuplot/matplotlib/PIL etc. > > I guess so. I have/still use PIL to automate compressing my photos to different resolutions for various uploads. Never used gnuplot and matplotlib, since its recommended I would try it out sometime. (a little/much off topic) strange - this is what I am doing! Kenneth - how are you communicating between nodes ? I have watch towers which watch on nodes and act as mutual communication points. From abpillai at gmail.com Fri Jun 4 12:55:36 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 4 Jun 2010 16:25:36 +0530 Subject: [BangPypers] ReadError: opening tar file In-Reply-To: References: Message-ID: On Fri, Jun 4, 2010 at 4:15 PM, murugadoss wrote: > Thank for the reply. > The tar file is not corrupted, i am using the same file in 32-bit m/c and > able to extract it. I have attached this output also with the mail. > I am getting this problem only in 64-bit m/c. > And what is this whole exercise aimed at ? Why are you trying to open a tar file using Python first in a 32-bit and then on a 64-bit machine ? Can we have some background ? Otherwise this looks like a pretty weird exercise to me. Tar files are platform agnostic. Otherwise, you would have a nightmare opening tar files downloaded from the internet. A tar file created in 32 bit Linux should open in 64 bit Linux and vice-verza. Most probably the file got corrupted when you copied (or downloaded ?) it to the 32 bit machine. Try this on ur machines - they should print the same value. >>> import binascii >>> data = open(tar, 'rb').read() >>> binascii.crc32(data) Also, try an md5 checksum. >>> import hashlib >>> m=hashlib.md5() >>> m.update(data) >>> m.hexdigest() '5b603d8b5dbf6004d802efc4dedac68c' > > -- --Anand From venkat83 at gmail.com Fri Jun 4 12:56:39 2010 From: venkat83 at gmail.com (Venkatraman S) Date: Fri, 4 Jun 2010 16:26:39 +0530 Subject: [BangPypers] python for management studies In-Reply-To: References: <201006032249.59597.lawgon@au-kbc.org> <201006041558.32163.lawgon@au-kbc.org> Message-ID: On Fri, Jun 4, 2010 at 4:03 PM, Noufal Ibrahim wrote: > Some information on good practices like version control might be good > too although that wanders away from "programming" and moves into > "software development". > > Not exactly. This is the point that i exactly was trying to make - dont let them *feel* that they are *programming*. For eg. version control can be used for documents too. Why not teach them that? or atleast inspire them to use version control to keep track of the changes? See the change in attitude? What i would teach them: - a simple form with sqlite3 backend - CRUD. - charting and plotting - workflows - regular expressions -V- http://twitter.com/venkasub From abpillai at gmail.com Fri Jun 4 12:56:57 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 4 Jun 2010 16:26:57 +0530 Subject: [BangPypers] 2D plotting libraries. In-Reply-To: <201006041615.36674.lawgon@au-kbc.org> References: <201006041615.36674.lawgon@au-kbc.org> Message-ID: On Fri, Jun 4, 2010 at 4:15 PM, Kenneth Gonsalves wrote: > On Friday 04 June 2010 15:52:16 Shiv Shankar wrote: > > > This changes things. What kind of app are you trying to make? > > > > War game, every one writes their own strategies to derive movement based > on > > a intercommunication between objects. Objects are bots and one teams bot > > kills the others. Still in the drawing board. > > > > strange - this is what I am doing! > Wow - is game programming so popular now a days ? I never tried it myself. -- > Regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From lawgon at au-kbc.org Fri Jun 4 13:06:43 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 4 Jun 2010 16:36:43 +0530 Subject: [BangPypers] 2D plotting libraries. In-Reply-To: References: Message-ID: <201006041636.43710.lawgon@au-kbc.org> On Friday 04 June 2010 16:24:16 Shiv Shankar wrote: > Kenneth - how are you communicating between nodes ? I have watch towers > which watch on nodes and act as mutual communication points. > havent reached that stage yet - what has happened is that my favourite game used to be xconq - but it no longer runs on modern systems and is not maintained, so I am developing a clone. I just started learning pygame yesterday for this purpose. Just a mite surprised that some one else is doing this too. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From lawgon at au-kbc.org Fri Jun 4 13:07:42 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 4 Jun 2010 16:37:42 +0530 Subject: [BangPypers] 2D plotting libraries. In-Reply-To: References: <201006041615.36674.lawgon@au-kbc.org> Message-ID: <201006041637.42325.lawgon@au-kbc.org> On Friday 04 June 2010 16:26:57 Anand Balachandran Pillai wrote: > > strange - this is what I am doing! > > Wow - is game programming so popular now a days ? > I never tried it myself. > don't - it is addictive, your wife and kid will never see you again ;-) -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From murugadoss2884 at gmail.com Fri Jun 4 13:25:37 2010 From: murugadoss2884 at gmail.com (murugadoss) Date: Fri, 4 Jun 2010 20:25:37 +0900 Subject: [BangPypers] ReadError: opening tar file In-Reply-To: References: Message-ID: It is for collecting the binary data from the client system. wherein the binary data is sent in tar.gz format. The exact task is to collect the data, untar and do the processing. Initially the program is written in the 32-bit linux pc. It is completely working here. Today, i loaded the same program in the server pc (which is a 64-bit x86 pc), i end up with issue. The crc check and md5 check are same in the both the p*c.* * * *for 32-bit pc*: tarfile.is_tarfile(tar) comptype gz func > func1 True >>> import binascii >>> data = open(tar,'rb').read() >>> binascii.crc32(data) 1270541744 >>> import hashlib >>> m=hashlib.md5() >>> m.update(data) >>> m.hexdigest() '2763563634899e9d1447731ed465f6a5' >>> *64-bit pc:* * * >>>tarfile.is_tarfile(tar) func > func1 func > func1 func > func1 False >>> import binascii >>> data = open(tar,'rb').read() >>> binascii.crc32(data) 1270541744 >>> import hashlib >>> m=hashlib.md5() >>> m.update(data) >>> m.hexdigest() '2763563634899e9d1447731ed465f6a5 Do GCC version may affect in any way ?? Thanks for the reply -- Thanks & Regards V.Murugadoss On Fri, Jun 4, 2010 at 7:55 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > On Fri, Jun 4, 2010 at 4:15 PM, murugadoss > wrote: > > > Thank for the reply. > > The tar file is not corrupted, i am using the same file in 32-bit m/c and > > able to extract it. I have attached this output also with the mail. > > I am getting this problem only in 64-bit m/c. > > > > And what is this whole exercise aimed at ? Why are you > trying to open a tar file using Python first in a 32-bit and then > on a 64-bit machine ? Can we have some background ? Otherwise > this looks like a pretty weird exercise to me. > > Tar files are platform agnostic. Otherwise, you would > have a nightmare opening tar files downloaded from the internet. > A tar file created in 32 bit Linux should open in 64 bit Linux > and vice-verza. > > Most probably the file got corrupted when you copied (or > downloaded ?) it to the 32 bit machine. Try this on ur > machines - they should print the same value. > > >>> import binascii > >>> data = open(tar, 'rb').read() > >>> binascii.crc32(data) > > Also, try an md5 checksum. > > >>> import hashlib > >>> m=hashlib.md5() > >>> m.update(data) > >>> m.hexdigest() > '5b603d8b5dbf6004d802efc4dedac68c' > > > > > > > -- > --Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From noufal at gmail.com Fri Jun 4 13:28:50 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 4 Jun 2010 16:58:50 +0530 Subject: [BangPypers] 2D plotting libraries. In-Reply-To: References: <201006041615.36674.lawgon@au-kbc.org> Message-ID: I enjoy it quite a bit. The whole ode thing I've prepared for the pycon in Singapore is an attempt. With the libraries available, independant games are more feasible than ever. On 6/4/10, Anand Balachandran Pillai wrote: > On Fri, Jun 4, 2010 at 4:15 PM, Kenneth Gonsalves wrote: > >> On Friday 04 June 2010 15:52:16 Shiv Shankar wrote: >> > > This changes things. What kind of app are you trying to make? >> > >> > War game, every one writes their own strategies to derive movement based >> on >> > a intercommunication between objects. Objects are bots and one teams bot >> > kills the others. Still in the drawing board. >> > >> >> strange - this is what I am doing! >> > > Wow - is game programming so popular now a days ? > I never tried it myself. > > -- >> Regards >> Kenneth Gonsalves >> Senior Associate >> NRC-FOSS at AU-KBC >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > > -- > --Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ~noufal http://nibrahim.net.in From noufal at gmail.com Fri Jun 4 14:14:59 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 4 Jun 2010 17:44:59 +0530 Subject: [BangPypers] ReadError: opening tar file In-Reply-To: References: Message-ID: On Fri, Jun 4, 2010 at 4:55 PM, murugadoss wrote: [..] > Initially the program is written in the 32-bit linux pc. It is completely > working here. Today, i loaded the same program in the server pc (which is a > 64-bit x86 pc), i end up with issue. [..] This is weird. Can you manually untar your file? Does your Python program have sufficient privileges to read the file? I see that it's in /root -- ~noufal http://nibrahim.net.in From abpillai at gmail.com Fri Jun 4 14:46:22 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 4 Jun 2010 18:16:22 +0530 Subject: [BangPypers] ReadError: opening tar file In-Reply-To: References: Message-ID: On Fri, Jun 4, 2010 at 5:44 PM, Noufal Ibrahim wrote: > On Fri, Jun 4, 2010 at 4:55 PM, murugadoss > wrote: > [..] > > Initially the program is written in the 32-bit linux pc. It is completely > > working here. Today, i loaded the same program in the server pc (which is > a > > 64-bit x86 pc), i end up with issue. > [..] > > This is weird. Can you manually untar your file? Does your Python > program have sufficient privileges to read the file? I see that it's > in /root > Well, that is getting to the raw basics. If it turns out to be that you didn't have permission to read the file in the first place..., nothing more to say - you managed to waste the time of whoever replied to this thread. > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From abpillai at gmail.com Fri Jun 4 14:51:50 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 4 Jun 2010 18:21:50 +0530 Subject: [BangPypers] ReadError: opening tar file In-Reply-To: References: Message-ID: On Fri, Jun 4, 2010 at 6:16 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > > > On Fri, Jun 4, 2010 at 5:44 PM, Noufal Ibrahim wrote: > >> On Fri, Jun 4, 2010 at 4:55 PM, murugadoss >> wrote: >> [..] >> > Initially the program is written in the 32-bit linux pc. It is >> completely >> > working here. Today, i loaded the same program in the server pc (which >> is a >> > 64-bit x86 pc), i end up with issue. >> [..] >> >> This is weird. Can you manually untar your file? Does your Python >> program have sufficient privileges to read the file? I see that it's >> in /root >> > At least that doesn't seem to be the case. I simulated that condition, and here is the result. >>> import tarfile >>> tarfile.open('/root/test.tar.gz', 'r:*') Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python2.5/tarfile.py", line 1139, in open return func(name, "r", fileobj) File "/usr/lib64/python2.5/tarfile.py", line 1200, in gzopen fileobj = file(name, mode + "b") IOError: [Errno 13] Permission denied: '/root/test.tar.gz' So that raises a different error not ReadError. > Well, that is getting to the raw basics. If it turns out to be that you > didn't > have permission to read the file in the first place..., nothing more > to say - you managed to waste the time of whoever replied to this thread. > > > > >> >> -- >> >> ~noufal >> http://nibrahim.net.in >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > > -- > --Anand > > > > -- --Anand From noufal at gmail.com Fri Jun 4 14:51:58 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 4 Jun 2010 18:21:58 +0530 Subject: [BangPypers] ReadError: opening tar file In-Reply-To: References: Message-ID: On Fri, Jun 4, 2010 at 6:16 PM, Anand Balachandran Pillai wrote: [..] > ?Well, that is getting to the raw basics. If it turns out to be that you > didn't > ?have permission to read the file in the first place..., nothing more > ?to say - you managed to waste the time of whoever replied to this thread. Unlikely. I just tried is_tarfile'ing a valid tarball with 000 permissions and it throws an IOError (which makes more sense as well). -- ~noufal http://nibrahim.net.in From praveen.python.plone at gmail.com Fri Jun 4 15:14:04 2010 From: praveen.python.plone at gmail.com (Praveen Kumar) Date: Fri, 4 Jun 2010 18:44:04 +0530 Subject: [BangPypers] ReadError: opening tar file In-Reply-To: References: Message-ID: I doubt it whether V.Murugadoss has file itself correct? Is he able to extract the file with other compression program. On Fri, Jun 4, 2010 at 6:21 PM, Noufal Ibrahim wrote: > On Fri, Jun 4, 2010 at 6:16 PM, Anand Balachandran Pillai > wrote: > [..] > > Well, that is getting to the raw basics. If it turns out to be that you > > didn't > > have permission to read the file in the first place..., nothing more > > to say - you managed to waste the time of whoever replied to this > thread. > > > Unlikely. I just tried is_tarfile'ing a valid tarball with 000 > permissions and it throws an IOError (which makes more sense as well). > > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Praveen Kumar +91 9620621342 http://praveensunsetpoint.wordpress.com Bangalore From fslash8 at gmail.com Fri Jun 4 15:19:28 2010 From: fslash8 at gmail.com (Shiv Shankar) Date: Fri, 4 Jun 2010 18:49:28 +0530 Subject: [BangPypers] 2D plotting libraries. In-Reply-To: References: <201006041615.36674.lawgon@au-kbc.org> Message-ID: > Wow - is game programming so popular now a days ? > I never tried it myself. > When has game programing lost its popularity ? The whole ode thing I've prepared for the > pycon in Singapore is an attempt. What was it ? From noufal at gmail.com Fri Jun 4 15:22:46 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 4 Jun 2010 18:52:46 +0530 Subject: [BangPypers] 2D plotting libraries. In-Reply-To: References: <201006041615.36674.lawgon@au-kbc.org> Message-ID: On Fri, Jun 4, 2010 at 6:49 PM, Shiv Shankar wrote: > ?The whole ode thing I've prepared for the >> pycon in Singapore is an attempt. http://github.com/nibrahim/Devious-machinations Let me see how well it's received. If it's good, I'll present it here at the local BangPypers meetings if there's sufficient interest. It's a simple game that ties up a physics engine (ODE) and a graphics library (PyGame). A "clone" of the famous TIM (http://en.wikipedia.org/wiki/The_Incredible_Machine) -- ~noufal http://nibrahim.net.in From rahul8590 at gmail.com Fri Jun 4 15:30:26 2010 From: rahul8590 at gmail.com (Rahul R) Date: Fri, 4 Jun 2010 17:30:26 +0400 Subject: [BangPypers] 2D plotting libraries. In-Reply-To: References: <201006041615.36674.lawgon@au-kbc.org> Message-ID: On Fri, Jun 4, 2010 at 5:22 PM, Noufal Ibrahim wrote: > On Fri, Jun 4, 2010 at 6:49 PM, Shiv Shankar wrote: > > > The whole ode thing I've prepared for the > >> pycon in Singapore is an attempt. > > http://github.com/nibrahim/Devious-machinations > > Let me see how well it's received. If it's good, I'll present it here > at the local BangPypers meetings if there's sufficient interest. > It's a simple game that ties up a physics engine (ODE) and a graphics > library (PyGame). A "clone" of the famous TIM > (http://en.wikipedia.org/wiki/The_Incredible_Machine) > > -- > ~noufal > http://nibrahim.net.in > _________________________ > I would love to see that . besides there is one more game engine called panda3D built by carniege mellon univ students , i liked it . > ______________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From fslash8 at gmail.com Fri Jun 4 15:41:44 2010 From: fslash8 at gmail.com (Shiv Shankar) Date: Fri, 4 Jun 2010 19:11:44 +0530 Subject: [BangPypers] 2D plotting libraries. In-Reply-To: References: <201006041615.36674.lawgon@au-kbc.org> Message-ID: > > http://github.com/nibrahim/Devious-machinations > > Let me see how well it's received. If it's good, I'll present it here > at the local BangPypers meetings if there's sufficient interest. > It's a simple game that ties up a physics engine (ODE) and a graphics > library (PyGame). A "clone" of the famous TIM > Nice. From sridhar.ratna at gmail.com Sun Jun 6 21:37:48 2010 From: sridhar.ratna at gmail.com (Sridhar Ratnakumar) Date: Sun, 6 Jun 2010 12:37:48 -0700 Subject: [BangPypers] ReadError: opening tar file In-Reply-To: References: Message-ID: Hi Murugadoss, Try Python 2.5.5 (the latest 2.5 release), and if this problem still occurs, please report a bug at bugs.python.org with full steps to reproduce, including the original tarfile as an attachment. C:\Python25\Lib\tarfile.py is a pure Python module; so if you are inclined, you may debug the problem yourself. Note that before the `ReadError` is raised, three open methods (taropen, gzopen, bz2open) are called .. and these in turn raise a fine-grained exception that may give a hint as to what the cause of the problem is. -srid On Fri, Jun 4, 2010 at 3:45 AM, murugadoss wrote: > Thank for the reply. > The tar file is not corrupted, i am using the same file in 32-bit m/c and > able to extract it. I have attached this output also with the mail. > I am getting this problem only in 64-bit m/c. > > output from 32-bit m/c: > tarfile.is_tarfile(tar) > func > > func1 > True > > For reference i have tested the same in different systems. > -- > Thanks & Regards > V.Murugadoss > > > On Fri, Jun 4, 2010 at 7:35 PM, Anand Balachandran Pillai < > abpillai at gmail.com> wrote: > >> On Fri, Jun 4, 2010 at 11:27 AM, murugadoss > >wrote: >> >> > Hello, >> > >> > I am trying to extract a tar file. while doing this i check the valid tar >> > file using is_tarfile( ). >> > It is working fine in a 32-bit linux machine with python 2.5.4 version >> and >> > when i try it out in a 64-bit linux pc, i end up saying file is >> > invalid(false). This machine was using python 2.4 and now i have upgraded >> > to >> > 2.5.4 version and I am using python 2.5.4. >> > >> > I went through the library file, tarfile.py and found in is_tarfile(), is >> > opening the tarfile using tarfile.open. >> > >>>tar = /root/testtar.tar.gz >> > >>> import tarfile >> > >>> tarfile.is_tarfile(tar) >> > False >> > >>> tarfile.open(tar) >> > Traceback (most recent call last): >> > ?File "", line 1, in >> > ?File "/usr/local/lib/python2.5/tarfile.py", line 1153, in open >> > ? ?raise ReadError("file could not be opened successfully") >> > tarfile.ReadError: file could not be opened successfully >> > >> >> I have a test tar file named f.tar.gz. >> >> >>> import tarfile >> >>> tarfile.open('f.tar.gz') >> >> >>> tarfile.is_tarfile('f.tar.gz') >> True >> >> and for you, >> >> >>>tar = /root/testtar.tar.gz >> >>> import tarfile >> >>> tarfile.is_tarfile(tar) >> False >> >> So your "tar file" is not a real tar file. No wonder it is failing >> to open. Does it take rocket science to figure this out ? >> >> >> > >> > Can anyone please help me >> > >> >> Yes, only you can help yourself now. Spend time learning! >> >> >> > >> > -- >> > Thanks & Regards >> > V.Murugadoss >> > _______________________________________________ >> > BangPypers mailing list >> > BangPypers at python.org >> > http://mail.python.org/mailman/listinfo/bangpypers >> > >> >> >> >> -- >> --Anand >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From sridhar.ratna at gmail.com Sun Jun 6 21:42:40 2010 From: sridhar.ratna at gmail.com (Sridhar Ratnakumar) Date: Sun, 6 Jun 2010 12:42:40 -0700 Subject: [BangPypers] What are the best python books , you have read. In-Reply-To: <201006021344.21426.lawgon@au-kbc.org> References: <4EF2BF691B890546B2694C99A2852F0C01D833B3@astserver3.akebonosoft.com> <201006021344.21426.lawgon@au-kbc.org> Message-ID: On Wed, Jun 2, 2010 at 1:14 AM, Kenneth Gonsalves wrote: > On Wednesday 02 June 2010 10:59:59 Srinivas Reddy Thatiparthy wrote: >> What are the best python books you have read? should be at least ?on par >> ?with python cookbook. TIA for suggestions. > > python in a nutshell Same here. Also I recently bought dabeaz's Python Essential Reference which is much better compared to docs.python.org. Eg: dabeaz explains the warnings module throughly (in tutorial fashion), whereas docs.python.org looks like a reference documentation. -srid From murugadoss2884 at gmail.com Mon Jun 7 03:10:04 2010 From: murugadoss2884 at gmail.com (murugadoss) Date: Mon, 7 Jun 2010 10:10:04 +0900 Subject: [BangPypers] ReadError: opening tar file In-Reply-To: References: Message-ID: Hi, Good Morning. 1. This is regarding installing python in 64-bit linux pc. one of the issue, which we were talking earlier. It was recommended to install python with 32-bit gcc compiler in 64-bit m/c. step: while installing python in 64-bit m/c, try using export CC='gcc -m32' ./configure --prefix = "installing directory" ; make ; make install 2. coming to extracting tarfile : I am able to extract a *.tar file using tarfile.extractall( ) .The same when i try extracting *.tar.gz,check tarfile.is_tarfile( ) returning false. On debugging, i found in ../lib/tarfile.py + 1148 (open function) where it checks the file type and returns the file attributes is failing. Exactly telling " *return func(name, "r", fileobj)* " This line is failing or returning none. This happens only in 64-bit linux m/c. It is working in 32-bit linux and windows m/c. 3.on other Method, i open the file using tarfile.open(*.tar.gz,"r:gz"). I am getting an error as "ImportError: No module named zlib". >>import tarfile >>tarfile.open("*.tar.gz","r:gz") ImportError: No module named zlib complete error text ill post, once i reach office. 4. currently i am using, os.path.isfile("*.tar.gz") os.system("tar -C [some directory] -xvf *.tar.gz") Any input on these issues will be very helpful. Thank u. -- Thanks & Regards V.Murugadoss On Mon, Jun 7, 2010 at 4:37 AM, Sridhar Ratnakumar wrote: > Hi Murugadoss, > > Try Python 2.5.5 (the latest 2.5 release), and if this problem still > occurs, please report a bug at bugs.python.org with full steps to > reproduce, including the original tarfile as an attachment. > > C:\Python25\Lib\tarfile.py is a pure Python module; so if you are > inclined, you may debug the problem yourself. Note that before the > `ReadError` is raised, three open methods (taropen, gzopen, bz2open) > are called .. and these in turn raise a fine-grained exception that > may give a hint as to what the cause of the problem is. > > -srid > > On Fri, Jun 4, 2010 at 3:45 AM, murugadoss > wrote: > > Thank for the reply. > > The tar file is not corrupted, i am using the same file in 32-bit m/c and > > able to extract it. I have attached this output also with the mail. > > I am getting this problem only in 64-bit m/c. > > > > output from 32-bit m/c: > > tarfile.is_tarfile(tar) > > func > > > func1 > > True > > > > For reference i have tested the same in different systems. > > -- > > Thanks & Regards > > V.Murugadoss > > > > > > On Fri, Jun 4, 2010 at 7:35 PM, Anand Balachandran Pillai < > > abpillai at gmail.com> wrote: > > > >> On Fri, Jun 4, 2010 at 11:27 AM, murugadoss >> >wrote: > >> > >> > Hello, > >> > > >> > I am trying to extract a tar file. while doing this i check the valid > tar > >> > file using is_tarfile( ). > >> > It is working fine in a 32-bit linux machine with python 2.5.4 version > >> and > >> > when i try it out in a 64-bit linux pc, i end up saying file is > >> > invalid(false). This machine was using python 2.4 and now i have > upgraded > >> > to > >> > 2.5.4 version and I am using python 2.5.4. > >> > > >> > I went through the library file, tarfile.py and found in is_tarfile(), > is > >> > opening the tarfile using tarfile.open. > >> > >>>tar = /root/testtar.tar.gz > >> > >>> import tarfile > >> > >>> tarfile.is_tarfile(tar) > >> > False > >> > >>> tarfile.open(tar) > >> > Traceback (most recent call last): > >> > File "", line 1, in > >> > File "/usr/local/lib/python2.5/tarfile.py", line 1153, in open > >> > raise ReadError("file could not be opened successfully") > >> > tarfile.ReadError: file could not be opened successfully > >> > > >> > >> I have a test tar file named f.tar.gz. > >> > >> >>> import tarfile > >> >>> tarfile.open('f.tar.gz') > >> > >> >>> tarfile.is_tarfile('f.tar.gz') > >> True > >> > >> and for you, > >> > >> >>>tar = /root/testtar.tar.gz > >> >>> import tarfile > >> >>> tarfile.is_tarfile(tar) > >> False > >> > >> So your "tar file" is not a real tar file. No wonder it is failing > >> to open. Does it take rocket science to figure this out ? > >> > >> > >> > > >> > Can anyone please help me > >> > > >> > >> Yes, only you can help yourself now. Spend time learning! > >> > >> > >> > > >> > -- > >> > Thanks & Regards > >> > V.Murugadoss > >> > _______________________________________________ > >> > BangPypers mailing list > >> > BangPypers at python.org > >> > http://mail.python.org/mailman/listinfo/bangpypers > >> > > >> > >> > >> > >> -- > >> --Anand > >> _______________________________________________ > >> BangPypers mailing list > >> BangPypers at python.org > >> http://mail.python.org/mailman/listinfo/bangpypers > >> > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From karikrishni at gmail.com Mon Jun 7 07:51:59 2010 From: karikrishni at gmail.com (Gopalakrishnan S) Date: Mon, 7 Jun 2010 11:21:59 +0530 Subject: [BangPypers] Regarding web framework in Python In-Reply-To: References: <3e3294b71001291102o1d782db8kdcac086ea6c6ec61@mail.gmail.com> Message-ID: TCL/TK is good option for development but it is very old but currently maintained framework. I would rather prefer using *wxPython*. When considering the timeline to develop application browser based web application vs window based think applicatiion, window based application takes more time to develop and deliver. And other critical thing to mention is Web framework has undergone series of innovation in the past 6 years which is not happened with thick client based model. If you want to run some background tasks and get the result asynchronously, you could use celery which is good for tasks management and scheduler. You can use it with RabbitMq (Popular message queue). I tried running the celery with tens of thousands of background tasks It works well. http://pypi.python.org/pypi/celery www.rabbitmq.com You can also use redis or mysql as a backend if you particularly don't like rabbitmq. celery itself uses django for its ORM and integrate well with django. Django ORM shall be removed soon from celery and it will be using sqlalchemy in next releases. If you choose to be web browser based client, you can consider using jQuery. You will take advantage of huge user community and nice documentation and couple of books already available. web.py is tiny framework with decent amount of community members. If you don't have any memory constrain or philosophy towards web framework choice, then you can go far django. I personally prefer Pylons framework with mako and sqlalchemy but pylons required steep learning curve for beginners. But it is really decent framework for hacks. There is nothing called small framework. It depends on what are the features are provided by the other framework. I use mod_wsgi with paster instances for application needs and nginx for load balancing. On Thu, Jun 3, 2010 at 1:15 PM, Jins Thomas wrote: > On Sat, Jan 30, 2010 at 12:32 AM, Pradeep Gowda > wrote: > > > On Fri, Jan 29, 2010 at 3:47 AM, Jins Thomas > wrote: > > > Hi All, > > > > > > Would like to ask one suggestion from bangpypers. > > > > > > I have a oracle database in Unix and need to create a web based GUI to > > > execute some queries/scripts (via buttons) and save that in csv either > > in > > > Unix or in windows. I was thinking of using Django framework. Btw i'm > > > relatively new in python. Woud anybody please suggest whether Django > is > > a > > > good candidate for this. I succesfully installed Django and worked with > > some > > > sample codes. Is there any similar framework which is more > reccomondable > > > than Django. Atleast this time i want to get this done with python. > Many > > > times i wanted to do things in python for some reason or other reason i > > was > > > forced to use some other technology. I have some doubts like > > > > > > 1. Django sample webserver cannot be used when it's mission critical? > > Will > > > this django framework supports apache or tomcat servers. > > > > > > 2. Certain query results i would like to display in graphs. I had > mailed > > > before asking suggestion for creating charts/bar/pie graphs with python > > and > > > got a good number of suggestions like pychart, pygoogle chart open > flash > > > etc. I was just thinking how difficult is to integrate these stuffs in > > > Django framework. Also couldn't actually finalize a good framework to > use > > > for creating this graphs. I'm absolutely in confusion which'll be > better > > to > > > use. Would anybody suggest what's the usual thought process in taking > > > decisions like this. > > > > Django is an overkill for something like this. > > > > web.py is what you should be looking at. If you already are programming > > in python, web.py will give you the web library without trying to > introduce > > new concepts on URL dispatch, ORM etc., > > > > Web.py has a very decent db api for most common db operations > > You can fall back to raw SQL with ease. > > > > Hi all, > > I asked some doubts on this topic around 6 months back. Later that project > itself got delayed. Now it's again back. > > I should apologize that mean time i had planned to ramp myself in python, > but didnt work out. One reason of escapism: work load !! > > Current requirement is like we are planning to build such an application > which should have > > 1. (Web) client gui which can connect to a database, run some perl > scripts > at the back end, gives back the results in the gui (results can be some > tabular inputs, paragraphs, charts, schematic diagrams etc.) > > 2. It should have some drag and drop facility and connect the objects to > configure some rule sets, saveas options etc. > > Basically there are some quite a bit debates happening whether it should be > a web gui, or a thick client (which connects to the database). > > Would some body please advice when free on > > 1. Whether web.py itself is the good option for building this kind of > framework. > > 2 . How easy would it be to build such an application in python (Currently > i should rate my python skills to be almost beginner level) > > 3. I was looking for some frameworks like vaadin in a python, does anybody > knows about such a framework. > > 4. For all this frameworks, we need apache like webserver right. I found > web.py's independent sample webserver, Is it advisable to use such a > webserver to avoid other third party installations. > > 5. What's your opinion on Web client vs Thick client for such an > application. If it's thick client, architects here are forcing to use > TCL/Tk to build. But my feel is it's lacking look and feel. > > Many thanks for the patience to read this. > > > Regards > Jins Thomas > > > > > > > > > > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From mbaiju at zeomega.com Mon Jun 7 07:52:05 2010 From: mbaiju at zeomega.com (Baiju M) Date: Mon, 7 Jun 2010 11:22:05 +0530 Subject: [BangPypers] ReadError: opening tar file In-Reply-To: References: Message-ID: On Mon, Jun 7, 2010 at 6:40 AM, murugadoss wrote: > Hi, > Good Morning. > > 1. > This is regarding installing python in 64-bit linux pc. one of the issue, > which we were talking earlier. It was recommended to install python with > 32-bit gcc compiler in 64-bit m/c. > step: > while installing python in 64-bit m/c, try using > export CC='gcc -m32' > ./configure --prefix = "installing directory" ; make ; make install > > 2. > coming to extracting tarfile : > I am able to extract a *.tar file using tarfile.extractall( ) .The same when > i try extracting *.tar.gz,check tarfile.is_tarfile( ) returning false. On > debugging, i found in ../lib/tarfile.py + 1148 (open function) where it > checks the file type and returns the file attributes is failing. Exactly > telling " *return func(name, "r", fileobj)* " This line is failing or > returning none. This happens only in 64-bit linux m/c. It is working in > 32-bit linux and windows m/c. > > 3.on other Method, > i open the file using tarfile.open(*.tar.gz,"r:gz"). I am getting an error > as "ImportError: No module named zlib". > >>>import tarfile >>>tarfile.open("*.tar.gz","r:gz") > ImportError: No module named zlib You should have "zlib" development libraries installed before installing Python. In Ubuntu/Debian: apt-get install zlib1g-dev Fedora/RHEL/CentOS: yum install zlib-devel Regards, Baiju M From lawgon at au-kbc.org Mon Jun 7 08:02:09 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Mon, 7 Jun 2010 11:32:09 +0530 Subject: [BangPypers] Regarding web framework in Python In-Reply-To: References: Message-ID: <201006071132.09765.lawgon@au-kbc.org> On Monday 07 June 2010 11:21:59 Gopalakrishnan S wrote: > TCL/TK is good option for development but it is very old but currently > maintained framework. I would rather prefer using *wxPython*. > have you looked at dabo? -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From vsapre80 at gmail.com Mon Jun 7 08:51:28 2010 From: vsapre80 at gmail.com (Vishal) Date: Mon, 7 Jun 2010 12:21:28 +0530 Subject: [BangPypers] Regarding web framework in Python In-Reply-To: <201006071132.09765.lawgon@au-kbc.org> References: <201006071132.09765.lawgon@au-kbc.org> Message-ID: For the back-end, I would say start with CherryPy. Personally, I have found it very intuitive to work with. And contrary to popular belief, the CherryPy web server has very decent performance. It ranks with the very best of Python wsgi web servers (http://nichol.as/benchmark-of-python-web-servers). Move to apache when you have to. For thick client, I would suggest look at the Enthought python distribution, and its Traits/TraitsUI packages. Its a very intuitive way of creating applications. Given you have WxPython on your system, TraitsUI can create visualizations/change notifications very easily for you. Also added advantage is that the client that you create is both a command line utility and a GUI (if you want to draw it on screen). Enjoy, Vishal Sapre On Mon, Jun 7, 2010 at 11:32 AM, Kenneth Gonsalves wrote: > On Monday 07 June 2010 11:21:59 Gopalakrishnan S wrote: > > TCL/TK is good option for development but it is very old but currently > > maintained framework. I would rather prefer using *wxPython*. > > > > have you looked at dabo? > -- > Regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Thanks and best regards, Vishal Sapre --- "So say...Day by day, in every way, I am getting better, better and better !!!" "A Strong and Positive attitude creates more miracles than anything else. Because...Life is 10% how you make it, and 90% how you take it" "Diamond is another piece of coal that did well under pressure? "May we do good and not evil. May we find forgiveness for ourself and forgive others. May we share freely, never taking more than we give." From sridhar.ratna at gmail.com Tue Jun 8 06:02:06 2010 From: sridhar.ratna at gmail.com (Sridhar Ratnakumar) Date: Mon, 7 Jun 2010 21:02:06 -0700 Subject: [BangPypers] ReadError: opening tar file In-Reply-To: References: Message-ID: On Sun, Jun 6, 2010 at 6:10 PM, murugadoss wrote: > 1. > This is regarding installing python in 64-bit linux pc. one of the issue, > which we were talking earlier. It was recommended to install python with > 32-bit gcc compiler in 64-bit m/c. > step: > while installing python in 64-bit m/c, try using > export CC='gcc -m32' > ./configure --prefix = "installing directory" ; make ; make install Alternatively, you can directly get the pre-compiled binaries for Linux 64-bit from ActiveState (where I work): http://www.activestate.com/activepython/downloads > 2. > coming to extracting tarfile : > I am able to extract a *.tar file using tarfile.extractall( ) .The same when > i try extracting *.tar.gz,check tarfile.is_tarfile( ) returning false. On > debugging, i found in ../lib/tarfile.py + 1148 (open function) where it > checks the file type and returns the file attributes is failing. Ok. > Exactly > telling " *return func(name, "r", fileobj)* " This line is failing [...] If it is failing, put a `print` statement in the next `except` block and print the exception msg. Something like: try: return func(name, "r", fileobj) except (ReadError, CompressionError), e: print e if fileobj is not None: fileobj.seek(saved_pos) continue >[...] or returning none. No. What is the clear is that at least one of the calls to `func(name, "r", fileobj)` is not returning at all, thus raising an exception. Otherwise, you will not get this error you mentioned earlier: `tarfile.ReadError: file could not be opened successfully`. So find out the exception message raised by `func(name, "r", fileobj)` for one of the open calls. > 3.on other Method, > i open the file using tarfile.open(*.tar.gz,"r:gz"). I am getting an error > as "ImportError: No module named zlib". > >>>import tarfile >>>tarfile.open("*.tar.gz","r:gz") > ImportError: No module named zlib You must not have built Python with zlib. -srid From abpillai at gmail.com Tue Jun 8 08:34:38 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 8 Jun 2010 12:04:38 +0530 Subject: [BangPypers] ReadError: opening tar file In-Reply-To: References: Message-ID: On Mon, Jun 7, 2010 at 11:22 AM, Baiju M wrote: > On Mon, Jun 7, 2010 at 6:40 AM, murugadoss > wrote: > > Hi, > > Good Morning. > > > > 1. > > This is regarding installing python in 64-bit linux pc. one of the issue, > > which we were talking earlier. It was recommended to install python with > > 32-bit gcc compiler in 64-bit m/c. > > step: > > while installing python in 64-bit m/c, try using > > export CC='gcc -m32' > > ./configure --prefix = "installing directory" ; make ; make install > > > > 2. > > coming to extracting tarfile : > > I am able to extract a *.tar file using tarfile.extractall( ) .The same > when > > i try extracting *.tar.gz,check tarfile.is_tarfile( ) returning false. On > > debugging, i found in ../lib/tarfile.py + 1148 (open function) where it > > checks the file type and returns the file attributes is failing. Exactly > > telling " *return func(name, "r", fileobj)* " This line is failing or > > returning none. This happens only in 64-bit linux m/c. It is working in > > 32-bit linux and windows m/c. > > > > 3.on other Method, > > i open the file using tarfile.open(*.tar.gz,"r:gz"). I am getting an > error > > as "ImportError: No module named zlib". > > > >>>import tarfile > >>>tarfile.open("*.tar.gz","r:gz") > > ImportError: No module named zlib > > You should have "zlib" development libraries installed before installing > Python. > > This is why your Python is unable to read tar.gz files. No other mystery in this. I agree that the error message could be more descriptive. In this case looks like the tarfile module is masking the original error message which is a failure to import zlib module. -- --Anand From orsenthil at gmail.com Tue Jun 8 10:47:34 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Tue, 8 Jun 2010 14:17:34 +0530 Subject: [BangPypers] ReadError: opening tar file In-Reply-To: References: Message-ID: <20100608084734.GA11815@remy> On Tue, Jun 08, 2010 at 12:04:38PM +0530, Anand Balachandran Pillai wrote: > > >>>import tarfile > > >>>tarfile.open("*.tar.gz","r:gz") > > > ImportError: No module named zlib > > I agree that the error message could be more > descriptive. In this case looks like the tarfile module is masking > the original error message which is a failure to import zlib module. Really? ImportError: No module named zlib is fine enough to say that you don't have zlib installed. (I am talking in general and not for OP's purpose). What could be a better error message here? -- Senthil From abpillai at gmail.com Tue Jun 8 10:56:18 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 8 Jun 2010 14:26:18 +0530 Subject: [BangPypers] ReadError: opening tar file In-Reply-To: <20100608084734.GA11815@remy> References: <20100608084734.GA11815@remy> Message-ID: On Tue, Jun 8, 2010 at 2:17 PM, Senthil Kumaran wrote: > On Tue, Jun 08, 2010 at 12:04:38PM +0530, Anand Balachandran Pillai wrote: > > > >>>import tarfile > > > >>>tarfile.open("*.tar.gz","r:gz") > > > > ImportError: No module named zlib > > > > I agree that the error message could be more > > descriptive. In this case looks like the tarfile module is masking > > the original error message which is a failure to import zlib module. > > Really? ImportError: No module named zlib is fine enough to say that > you don't have zlib installed. (I am talking in general and not for > OP's purpose). What could be a better error message here? > Please read the entire thread. You joined the thread later. Refer to the first message by OP and you will understand what I am talking here. > > -- > Senthil > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > Regards, -- --Anand From orsenthil at gmail.com Tue Jun 8 16:22:20 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Tue, 8 Jun 2010 19:52:20 +0530 Subject: [BangPypers] ReadError: opening tar file In-Reply-To: References: <20100608084734.GA11815@remy> Message-ID: <20100608142220.GA28120@remy> On Tue, Jun 08, 2010 at 02:26:18PM +0530, Anand Balachandran Pillai wrote: > On Tue, Jun 8, 2010 at 2:17 PM, Senthil Kumaran wrote: > > > On Tue, Jun 08, 2010 at 12:04:38PM +0530, Anand Balachandran Pillai wrote: > > > > >>>import tarfile > > > > >>>tarfile.open("*.tar.gz","r:gz") > > > > > ImportError: No module named zlib > > > > > > I agree that the error message could be more > > > descriptive. In this case looks like the tarfile module is masking > > > the original error message which is a failure to import zlib module. > > > > Really? ImportError: No module named zlib is fine enough to say that > > you don't have zlib installed. (I am talking in general and not for > > OP's purpose). What could be a better error message here? > > > > Please read the entire thread. You joined the thread later. > Refer to the first message by OP and you will understand what > I am talking here. Okay, I get what you are referring to. Namely, the ReadError which was raising initially when doing just a tarfile.open() could have thrown in a Exception about zlib. Sridhar did mention it in passing, but we did not see any Exception in the Traceback. Yes, I think, those fine-grained exception in the traceback should help, it is not already present. -- Senthil Deus criou poucas cabecas perfeitas. As restantes cobriu com cabelo. From kadambari.devarajan at gmail.com Wed Jun 9 05:38:04 2010 From: kadambari.devarajan at gmail.com (Kadambari Devarajan) Date: Tue, 8 Jun 2010 23:38:04 -0400 Subject: [BangPypers] [X-Post] [ANN] Invitation to Sage Days 25, India Message-ID: Sage Days 25 - An Invitation What is 'Sage Days'? Sage Days is a confluence of present and prospective SAGE Users and Developers. It is an opportunity to come together to share ideas, brainstorm and hack on Sage. Sage Days 25 is the 25th version of Sage Days, and is being organized in Mumbai, India. In order to cater to an Indian audience and scenario, this version has been tweaked slightly. Sage Days 25 has beginner level tutorials, in addition to the usual talks and sprints, to help new users get started with Sage and help promote the use of Sage in India. What is Sage? Sage is a free, open-source mathematics software system licensed under the GPL. It combines the power of numerous existing open-source packages into a common Python-based interface. It's mission is to create a "viable free open source alternative to Magma, Maple, Mathematica and Matlab". Sage has tools for a broad range of mathematical areas like Linear Algebra, Calculus, Symbolic Math, Plotting, Rings & Groups, Graph Theory, Number Theory and Cryptography. Essentially, "it can do anything from mapping a 12-dimensional object to calculating rainfall patterns under global warming" - as Science Daily puts it . Eager to get started? Start here. [#1] Apart from being feature rich, it's usability is one of it's greatest strengths. Sage Notebook, a web-interface for all the math you'll ever want to do, is really the killer feature! As the Sage Marketing page says, "The SAGE GUI surely works on your computer box, because it just runs in Firefox!". Try it Now! [#2] Why should you attend? Sage Days 25 is being attended by the creator and lead developer of Sage, Prof. William Stein. It will also be attended by other developers of Sage. This would be a great opportunity to meet and interact with them! The conference will be attended by a plethora of enthusiastic people from all over the country who use Sage or are interested in doing so. The conference will also see the presence of many mathematicians interested in software. Who knows, you may run into someone you'd want to collaborate with, for your future work! This event will be a great learning experience, if you are even remotely interested in math and software for it! When and Where? Venue: IIT-Bombay, Mumbai, India Dates: August 9-12, 2010 Tentative Schedule: http://fossee.in/sage_days/schedule/ Register Here: http://fossee.in/sage_days/registration/register/ [#1] http://www.sagemath.org/tour.html [#2] http://www.sagenb.org/ For more information, contact the FOSSEE team, from http://fossee.in. Cheers, Kadambari Devarajan (KD) -- Webpage - http://kadambari.devarajan.googlepages.com Weblog - http://kadambarid.livejournal.com From lawgon at au-kbc.org Wed Jun 9 08:03:04 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 9 Jun 2010 11:33:04 +0530 Subject: [BangPypers] sending sms through the web Message-ID: <201006091133.04768.lawgon@au-kbc.org> hi, for a golf tournament, there is a thing called the 'draw' - which is the starting time and composition of the groups (usually 3 or 4 in a group) of players who are playing. This is automated, and when finalised each person should get an sms telling him who he is playing with and his starting time and place. We are subscribed to a service which sends these smss, but at present are manually entering these in the website. The site requires login and has two text areas - one for the list of mobile numbers and the other for the message to be sent. I recall reading about some tools that can automate the login and fill in the relevant details - any suggestions? I would google for this, but my brain is not working and I cannot think of a starting point. (since the whole software is in python, I would like have a pythonisable tool) -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From venkat83 at gmail.com Wed Jun 9 08:09:48 2010 From: venkat83 at gmail.com (Venkatraman S) Date: Wed, 9 Jun 2010 11:39:48 +0530 Subject: [BangPypers] sending sms through the web In-Reply-To: <201006091133.04768.lawgon@au-kbc.org> References: <201006091133.04768.lawgon@au-kbc.org> Message-ID: On Wed, Jun 9, 2010 at 11:33 AM, Kenneth Gonsalves wrote: > The site requires login and has > two text areas - one for the list of mobile numbers and the other for the > message to be sent. I recall reading about some tools that can automate the > login and fill in the relevant details - any suggestions? I would google > for > this, but my brain is not working and I cannot think of a starting point. > (since the whole software is in python, I would like have a pythonisable > tool) > I guess you are asking about a software which fills the form? Is there any api/webservice which we can call to send an sms (india specific and also worldwide)? -V- http://twitter.com/venkasub From anand.shashwat at gmail.com Wed Jun 9 08:35:32 2010 From: anand.shashwat at gmail.com (Shashwat Anand) Date: Wed, 9 Jun 2010 12:05:32 +0530 Subject: [BangPypers] sending sms through the web In-Reply-To: References: <201006091133.04768.lawgon@au-kbc.org> Message-ID: I used 'mechanize' to write a script which automatically login to SPOJ website and download submitted solution.. Not sure if it can fill the form too. On Wed, Jun 9, 2010 at 11:39 AM, Venkatraman S wrote: > On Wed, Jun 9, 2010 at 11:33 AM, Kenneth Gonsalves >wrote: > > > The site requires login and has > > two text areas - one for the list of mobile numbers and the other for the > > message to be sent. I recall reading about some tools that can automate > the > > login and fill in the relevant details - any suggestions? I would google > > for > > this, but my brain is not working and I cannot think of a starting point. > > (since the whole software is in python, I would like have a pythonisable > > tool) > > > > I guess you are asking about a software which fills the form? > > Is there any api/webservice which we can call to send an sms (india > specific > and also worldwide)? > > -V- > http://twitter.com/venkasub > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From lawgon at au-kbc.org Wed Jun 9 08:43:20 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 9 Jun 2010 12:13:20 +0530 Subject: [BangPypers] sending sms through the web In-Reply-To: References: <201006091133.04768.lawgon@au-kbc.org> Message-ID: <201006091213.20527.lawgon@au-kbc.org> On Wednesday 09 June 2010 11:39:48 Venkatraman S wrote: > > this, but my brain is not working and I cannot think of a starting point. > > (since the whole software is in python, I would like have a pythonisable > > tool) > > I guess you are asking about a software which fills the form? > > Is there any api/webservice which we can call to send an sms (india > specific and also worldwide)? > my club has been using 160by2.com for the past few years with a lot of success -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From me at elvis.co.in Wed Jun 9 08:43:13 2010 From: me at elvis.co.in (Elvis Joel D'Souza) Date: Wed, 9 Jun 2010 12:13:13 +0530 Subject: [BangPypers] sending sms through the web In-Reply-To: References: <201006091133.04768.lawgon@au-kbc.org> Message-ID: On Wed, Jun 9, 2010 at 12:05 PM, Shashwat Anand wrote: > I used 'mechanize' to write a script which automatically login to SPOJ > website and download submitted solution.. Not sure if it can fill the form > too. > > On Wed, Jun 9, 2010 at 11:39 AM, Venkatraman S wrote: > > > On Wed, Jun 9, 2010 at 11:33 AM, Kenneth Gonsalves > >wrote: > > > > > The site requires login and has > > > two text areas - one for the list of mobile numbers and the other for > the > > > message to be sent. I recall reading about some tools that can automate > > the > > > login and fill in the relevant details - any suggestions? I would > google > > > for > > > this, but my brain is not working and I cannot think of a starting > point. > > > (since the whole software is in python, I would like have a > pythonisable > > > tool) > > > > > > > I guess you are asking about a software which fills the form? > > > > Is there any api/webservice which we can call to send an sms (india > > specific > > and also worldwide)? > I was a part of a team that automated delivery of my college' Test Scores through SMS to students We used a webservice by SMSGupshup for sending SMSs website: http://enterprise.smsgupshup.com/ All you have to do, is an API (REST) call. So programming language does not matter. urllib will do the job just fine Quoting their website: API Support - Scalable SMPP support - Simple HTTP/HTTPS APIs - Up to 1 million messages via single API call - Delivery reports and keyword responses via HTTP API > > > > -V- > > http://twitter.com/venkasub > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Elvis Joel D'Souza Mangalore/Bangalore, India From lawgon at au-kbc.org Wed Jun 9 08:58:38 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 9 Jun 2010 12:28:38 +0530 Subject: [BangPypers] sending sms through the web In-Reply-To: References: <201006091133.04768.lawgon@au-kbc.org> Message-ID: <201006091228.38359.lawgon@au-kbc.org> On Wednesday 09 June 2010 12:13:13 Elvis Joel D'Souza wrote: > > > Is there any api/webservice which we can call to send an sms (india > > > specific > > > and also worldwide)? > > I was a part of a team that automated delivery of my college' Test Scores > through SMS to students > We used a webservice by SMSGupshup for sending SMSs > > website: http://enterprise.smsgupshup.com/ > > All you have to do, is an API (REST) call. > So programming language does not matter. urllib will do the job just fine > > Quoting their website: > API Support > I have asked our service if they have an api support - waiting for an answer - but in the event that they do not have one, I would like to be ready. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From kausikram at gmail.com Wed Jun 9 09:10:15 2010 From: kausikram at gmail.com (kausikram krishnasayee) Date: Wed, 9 Jun 2010 12:40:15 +0530 Subject: [BangPypers] sending sms through the web In-Reply-To: <201006091228.38359.lawgon@au-kbc.org> References: <201006091133.04768.lawgon@au-kbc.org> <201006091228.38359.lawgon@au-kbc.org> Message-ID: > > I have asked our service if they have an api support - waiting for an > answer - > but in the event that they do not have one, I would like to be ready. fake the login process :) do a urllib call to the login page submit with the username and password. there will be a redirect issued after a cookie is being set. most of the times the cookie will contain a sessionid. capture that session id string along. next do a call to the sms submit form with the required number and message. but in this url call, add the "Cookie: sessionid:blah." string as header. the server assumes authentication after looking at the sessionid and sends of the message. have done similar python wrappers for other sms services and it works like a charm 99% of the time .. -- Kausikram Krishnasayee Company: http://silverstripesoftware.com | Webpage: kausikram.net | Blog: blog.kausikram.net | Twitter: http://twitter.com/kausikram | Email: kausikram at gmail.com | Mobile: +91 9884246490 From lawgon at au-kbc.org Wed Jun 9 10:03:53 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 9 Jun 2010 13:33:53 +0530 Subject: [BangPypers] sending sms through the web In-Reply-To: References: <201006091133.04768.lawgon@au-kbc.org> <201006091228.38359.lawgon@au-kbc.org> Message-ID: <201006091333.53080.lawgon@au-kbc.org> On Wednesday 09 June 2010 12:40:15 kausikram krishnasayee wrote: > I have asked our service if they have an api support - waiting for an > > > answer - > > but in the event that they do not have one, I would like to be ready. > > fake the login process :) > urllib2 has some features which I am trying out - have sent a few smss, nothing reached my phone yet! -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From zubin.mithra at gmail.com Wed Jun 9 11:13:39 2010 From: zubin.mithra at gmail.com (Zubin Mithra) Date: Wed, 9 Jun 2010 14:43:39 +0530 Subject: [BangPypers] 2to3 conversion Message-ID: Hey everyone, I got this traceback while running 2to3 on a file.( http://paste.pocoo.org/show/223468/). The file can be viewed here at (http://paste.pocoo.org/show/223469/). Any clue on how to resolve the problem? Thanks in advance, Zubin From orsenthil at gmail.com Wed Jun 9 11:35:38 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Wed, 9 Jun 2010 15:05:38 +0530 Subject: [BangPypers] 2to3 conversion In-Reply-To: References: Message-ID: <20100609093538.GA11330@remy> On Wed, Jun 09, 2010 at 02:43:39PM +0530, Zubin Mithra wrote: > Hey everyone, > > I got this traceback while running 2to3 on a file.( > http://paste.pocoo.org/show/223468/). > > The file can be viewed here at (http://paste.pocoo.org/show/223469/). > I see, you are not running 2to3 on the file, but you are using 2to3 apis in this util module to covert the other files. UnicodeDecodeError: 'utf8' codec can't decode bytes in position 232-234: invalid data This means that the points where this Exception is raised in the file, it is not getting decoded to a proper unicode character using utf-8 encoding. You might have manually see where this is happening and either use a different encoding for converting. This link gives some more information: http://wiki.python.org/moin/UnicodeDecodeError -- Senthil From lgp171188 at gmail.com Wed Jun 9 12:44:06 2010 From: lgp171188 at gmail.com (L. Guruprasad) Date: Wed, 09 Jun 2010 16:14:06 +0530 Subject: [BangPypers] Enabling code completion features in eric python IDE Message-ID: <4C0F7076.9080301@gmail.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I have installed eric4 python IDE (version 4.4.4a) to try it. I am unable to get any form of code autocompletion like is available with an IDE like NetBeans, Eclipse or like the IntelliSense feature found with Microsoft's Visual Studio environment. Yeah there are options for autocompletion given, but I can't find out how to get them to work. For example if I type: a = [1,2,3] a. I wanted to get all the possible completions when I type a. and pause, like I would get with a bpython or ipython for example. How do I go about getting this done? Thank you. Regards, Guruprasad -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwPcHAACgkQ39Y4kDBGzYY5mgCgseckZNcpLev/NDxW7NSiklDe g6wAoK0nlY13aUGtc/3YaWv6JM4YVr/X =DSol -----END PGP SIGNATURE----- From vnbang2003 at yahoo.com Wed Jun 9 13:05:22 2010 From: vnbang2003 at yahoo.com (vijay) Date: Wed, 9 Jun 2010 16:35:22 +0530 (IST) Subject: [BangPypers] Enabling code completion features in eric python IDE In-Reply-To: <4C0F7076.9080301@gmail.com> Message-ID: <571354.59636.qm@web95310.mail.in2.yahoo.com> Hi , ??? In Eric editor go to setting select autocompletion (in editor it subtab). ??? click auto Completion check box. with regard'svijay --- On Wed, 9/6/10, L. Guruprasad wrote: From: L. Guruprasad Subject: [BangPypers] Enabling code completion features in eric python IDE To: bangpypers at python.org Date: Wednesday, 9 June, 2010, 4:14 PM -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I have installed eric4 python IDE (version 4.4.4a) to try it. I am unable to get any form of code autocompletion like is available with an IDE like NetBeans, Eclipse or like the IntelliSense feature found with Microsoft's Visual Studio environment. Yeah there are options for autocompletion given, but I can't find out how to get them to work. For example if I type: a = [1,2,3] a. I wanted to get all the possible completions when I type a. and pause, like I would get with a bpython or ipython for example. How do I go about getting this done? Thank you. Regards, Guruprasad -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwPcHAACgkQ39Y4kDBGzYY5mgCgseckZNcpLev/NDxW7NSiklDe g6wAoK0nlY13aUGtc/3YaWv6JM4YVr/X =DSol -----END PGP SIGNATURE----- -----Inline Attachment Follows----- _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From lgp171188 at gmail.com Wed Jun 9 13:28:16 2010 From: lgp171188 at gmail.com (Guruprasad) Date: Wed, 9 Jun 2010 16:58:16 +0530 Subject: [BangPypers] Enabling code completion features in eric python IDE In-Reply-To: <571354.59636.qm@web95310.mail.in2.yahoo.com> References: <4C0F7076.9080301@gmail.com> <571354.59636.qm@web95310.mail.in2.yahoo.com> Message-ID: Hi, On Wed, Jun 9, 2010 at 4:35 PM, vijay wrote: > Hi , > ??? In Eric editor go to setting select autocompletion (in editor it subtab). > ??? click auto Completion check box. > I have enabled 'autocompletion' in the Editor section of the configuration dialog. I have even selected the Python APIs for the IDE and compiled them using the UI. But the code completion feature doesn't seem to work at all. Regards, Guruprasad From lawgon at au-kbc.org Wed Jun 9 13:38:05 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 9 Jun 2010 17:08:05 +0530 Subject: [BangPypers] Enabling code completion features in eric python IDE In-Reply-To: References: <4C0F7076.9080301@gmail.com> <571354.59636.qm@web95310.mail.in2.yahoo.com> Message-ID: <201006091708.05915.lawgon@au-kbc.org> On Wednesday 09 June 2010 16:58:16 Guruprasad wrote: > On Wed, Jun 9, 2010 at 4:35 PM, vijay wrote: > > Hi , > > In Eric editor go to setting select autocompletion (in editor it > > subtab). click auto Completion check box. > > I have enabled 'autocompletion' in the Editor section of the > configuration dialog. I have even selected the Python APIs for the IDE > and compiled them using the UI. But the code completion feature > doesn't seem to work at all. > I have noticed that too -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From withsmile_vss at yahoo.com Wed Jun 9 13:41:32 2010 From: withsmile_vss at yahoo.com (senthil kumar v s) Date: Wed, 9 Jun 2010 04:41:32 -0700 (PDT) Subject: [BangPypers] sending sms through the web In-Reply-To: <201006091228.38359.lawgon@au-kbc.org> References: <201006091133.04768.lawgon@au-kbc.org> <201006091228.38359.lawgon@au-kbc.org> Message-ID: <373792.42601.qm@web57501.mail.re1.yahoo.com> Folks, in case if u r going for webservice.. i hve used a rest based api provided by ericsson lab..which works perfect across nations. but for commercial purpose ,i m not sure abt their quota..or clause of usage.. for more info: https://labs.ericsson.com/apis/sms-send-and-receive/documentation Regards, Senthil VS Bangalore ________________________________ From: Kenneth Gonsalves To: Bangalore Python Users Group - India Sent: Wed, June 9, 2010 12:28:38 PM Subject: Re: [BangPypers] sending sms through the web On Wednesday 09 June 2010 12:13:13 Elvis Joel D'Souza wrote: > > > Is there any api/webservice which we can call to send an sms (india > > > specific > > > and also worldwide)? > > I was a part of a team that automated delivery of my college' Test Scores > through SMS to students > We used a webservice by SMSGupshup for sending SMSs > > website: http://enterprise.smsgupshup.com/ > > All you have to do, is an API (REST) call. > So programming language does not matter. urllib will do the job just fine > > Quoting their website: > API Support > I have asked our service if they have an api support - waiting for an answer - but in the event that they do not have one, I would like to be ready. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From lawgon at au-kbc.org Wed Jun 9 14:05:51 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 9 Jun 2010 17:35:51 +0530 Subject: [BangPypers] sending sms through the web In-Reply-To: <373792.42601.qm@web57501.mail.re1.yahoo.com> References: <201006091133.04768.lawgon@au-kbc.org> <201006091228.38359.lawgon@au-kbc.org> <373792.42601.qm@web57501.mail.re1.yahoo.com> Message-ID: <201006091735.51487.lawgon@au-kbc.org> On Wednesday 09 June 2010 17:11:32 senthil kumar v s wrote: > in case if u r going for webservice.. > i hve used a rest based api provided by ericsson lab..which works perfect > across nations. but for commercial purpose ,i m not sure abt their > quota..or clause of usage.. > > for more info: > https://labs.ericsson.com/apis/sms-send-and-receive/documentation > thanks, but this is not what I want (btw, just curious, did you send this mail by sms?) -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From madhav.bnk at gmail.com Thu Jun 10 04:42:56 2010 From: madhav.bnk at gmail.com (B.Nanda Kishore) Date: Thu, 10 Jun 2010 08:12:56 +0530 Subject: [BangPypers] sending sms through the web In-Reply-To: <201006091735.51487.lawgon@au-kbc.org> References: <201006091133.04768.lawgon@au-kbc.org> <201006091228.38359.lawgon@au-kbc.org> <373792.42601.qm@web57501.mail.re1.yahoo.com> <201006091735.51487.lawgon@au-kbc.org> Message-ID: I would recommend checking out Kannel Regards, Nandakishore On Wed, Jun 9, 2010 at 5:35 PM, Kenneth Gonsalves wrote: > On Wednesday 09 June 2010 17:11:32 senthil kumar v s wrote: > > in case if u r going for webservice.. > > i hve used a rest based api provided by ericsson lab..which works perfect > > across nations. but for commercial purpose ,i m not sure abt their > > quota..or clause of usage.. > > > > for more info: > > https://labs.ericsson.com/apis/sms-send-and-receive/documentation > > > > thanks, but this is not what I want (btw, just curious, did you send this > mail > by sms?) > -- > Regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From lawgon at au-kbc.org Thu Jun 10 07:11:13 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 10 Jun 2010 10:41:13 +0530 Subject: [BangPypers] sending sms through the web In-Reply-To: <201006091228.38359.lawgon@au-kbc.org> References: <201006091133.04768.lawgon@au-kbc.org> <201006091228.38359.lawgon@au-kbc.org> Message-ID: <201006101041.13525.lawgon@au-kbc.org> On Wednesday 09 June 2010 12:28:38 Kenneth Gonsalves wrote: > > Quoting their website: > > API Support > > > > I have asked our service if they have an api support - waiting for an > answer - but in the event that they do not have one, I would like to be > ready. > I got a reply - they have a paid service which has an api -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From zubin.mithra at gmail.com Fri Jun 11 21:25:25 2010 From: zubin.mithra at gmail.com (Zubin Mithra) Date: Sat, 12 Jun 2010 00:55:25 +0530 Subject: [BangPypers] 2to3 fixers Message-ID: Hey everyone, I just discovered that the following construct does not work in Py3k. >>> string.maketrans('-', '_') However, the following works, >>> str.maketrans('-', '_') When i try to convert a python module containing the above construct, it does not get modified in a way such that it could run on Python 3.0 I`m trying to automate the conversion of making the module Py3k compatible and so I guess i`m left with two options. 1. replace string.maketrans() with a function which is compatible in both Python 2.x and 3.0 ; as of now I`m unaware of such a construct. 2. write a fixer for doing this which I could use. I could`nt find any good tutorials out there on writing fixers, i`d be grateful if you could point me to any. Thankx in advance, cheers zubin From orsenthil at gmail.com Sat Jun 12 01:46:55 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Sat, 12 Jun 2010 05:16:55 +0530 Subject: [BangPypers] 2to3 fixers In-Reply-To: References: Message-ID: <20100611234655.GA12051@remy> On Sat, Jun 12, 2010 at 12:55:25AM +0530, Zubin Mithra wrote: > I just discovered that the following construct does not work in Py3k. > > >>> string.maketrans('-', '_') > > > When i try to convert a python module containing the above construct, > it does not get modified in a way such that it could run on Python 3.0 That is because, string is unicode in py3k and maketrans is for former 8bit string. Actually, its got to do with semantics, that is why 2to3 can't help you here. BTW, you might this example helpful for your understanding. http://uthcode.sarovar.org/pycon2010/strings.html#string-translate-method-and-maketrans-function > 2. write a fixer for doing this which I could use. I could`nt find any > good tutorials out there on writing fixers, i`d be grateful if you > could point me to any. 2to3 is a context free source to source translation tool. It is very comprehensive. It requires a good skills in Compilers if you were to write something more than that. -- Senthil From noufal at gmail.com Mon Jun 14 05:53:12 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 14 Jun 2010 09:23:12 +0530 Subject: [BangPypers] PyCon India 2010 CFP open! Message-ID: Hello everyone, We've been working towards the second PyCon in India and are now soliciting proposals and papers for the conference. The official announcement follows. IT would be great if you could help spread the word as well as submit proposals for talks you're interested in. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Pycon India 2010 is happening in Bangalore, India at MS Ramaiah Institute of Technology from Sep 25-26 2010. The conference is in its second run after a very successful first edition last year. We are again expecting a tremendous response from the Python community of India for this year's edition. We are inviting proposals from interested speakers to fill our presentation tracks. We invite proposals on all aspects of the Python language at all levels. First time speakers are invited. Pycon India being a complete community conference, we welcome contribution from everyone to make the conference a success. For finding out more about the conference proposals, visit the following URL. http://in.pycon.org/2010/cfp Please submit your proposals by 31st of July. Accepted proposals will be announced on 31st of August. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Thanks -- ~noufal http://nibrahim.net.in From abpillai at gmail.com Mon Jun 14 06:20:38 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 14 Jun 2010 09:50:38 +0530 Subject: [BangPypers] PyCon India 2010 CFP open! In-Reply-To: References: Message-ID: Hi folks, Go ahead and participate in Pycon India by submitting a talk. For details on the CFP go here - http://in.pycon.org/2010/cfp For a sample talk proposal go here - http://in.pycon.org/2010/cfp/example1 For submitting the proposal - http://in.pycon.org/2010/talks/submit Thanks --Anand On Mon, Jun 14, 2010 at 9:23 AM, Noufal Ibrahim wrote: > Hello everyone, > We've been working towards the second PyCon in India and are now > soliciting proposals and papers for the conference. > > The official announcement follows. IT would be great if you could help > spread the word as well as submit proposals for talks you're interested in. > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Pycon India 2010 is happening in Bangalore, India at MS Ramaiah Institute > of > Technology from Sep 25-26 2010. > > The conference is in its second run after a very successful first edition > last year. We are again expecting a tremendous response from the Python > community of India for this year's edition. > > We are inviting proposals from interested speakers to fill our presentation > tracks. We invite proposals on all aspects of the Python language at all > levels. > > First time speakers are invited. Pycon India being a complete community > conference, we welcome contribution from everyone to make the conference a > success. > > For finding out more about the conference proposals, visit the following > URL. > > http://in.pycon.org/2010/cfp > > Please submit your proposals by 31st of July. Accepted proposals will be > announced on 31st of August. > > > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Thanks > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From srinivas_thatiparthy at akebonosoft.com Mon Jun 14 06:19:57 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Mon, 14 Jun 2010 09:49:57 +0530 Subject: [BangPypers] PyCon India 2010 CFP open! References: Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D833CD@astserver3.akebonosoft.com> Way to go folks , can't wait to meet you all there.. Regards, Srini T. --The real failure is failing to try for success. From noufal at gmail.com Mon Jun 14 06:27:36 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 14 Jun 2010 09:57:36 +0530 Subject: [BangPypers] PyCon India 2010 CFP open! In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D833CD@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D833CD@astserver3.akebonosoft.com> Message-ID: On Mon, Jun 14, 2010 at 9:49 AM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > Way to go folks , can't wait to meet you all there.. > > Thanks Srini. Do help spread the word and get more proposals. A conference is only as good as the talks presented. From srinivas_thatiparthy at akebonosoft.com Mon Jun 14 07:32:21 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Mon, 14 Jun 2010 11:02:21 +0530 Subject: [BangPypers] PyCon India 2010 CFP open! References: <4EF2BF691B890546B2694C99A2852F0C01D833CD@astserver3.akebonosoft.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D833CF@astserver3.akebonosoft.com> > Thanks Srini. Do help spread the word and get more proposals. A conference >is only as good as the talks presented. Yes, i did ,Sent mail to all of my friends. Regards, Srini T. From noufal at gmail.com Mon Jun 14 07:41:44 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 14 Jun 2010 11:11:44 +0530 Subject: [BangPypers] PyCon India 2010 CFP open! In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D833CF@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D833CD@astserver3.akebonosoft.com> <4EF2BF691B890546B2694C99A2852F0C01D833CF@astserver3.akebonosoft.com> Message-ID: On Mon, Jun 14, 2010 at 11:02 AM, Srinivas Reddy Thatiparthy wrote: >> Thanks Srini. Do help spread the word and get more proposals. A conference >>is only as good as the talks presented. > > > Yes, i did ,Sent mail to all of my friends. Cool! Thanks. :) -- ~noufal http://nibrahim.net.in From abpillai at gmail.com Mon Jun 14 07:58:35 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 14 Jun 2010 11:28:35 +0530 Subject: [BangPypers] PyCon India 2010 CFP open! In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D833CF@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D833CD@astserver3.akebonosoft.com> <4EF2BF691B890546B2694C99A2852F0C01D833CF@astserver3.akebonosoft.com> Message-ID: On Mon, Jun 14, 2010 at 11:02 AM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > > Thanks Srini. Do help spread the word and get more proposals. A > conference > >is only as good as the talks presented. > > > Yes, i did ,Sent mail to all of my friends. > Thanks. I request those who talked in Pycon India 2009 and part of this list to submit a talk again for this year's Pycon. It could even be a continuation of last year's topic if you are not getting new ideas. As long as the material is fresh, it will be considered. This doesn't mean that new speakers shouldn't submit - we want to position our conference as open and inviting to new speakers. So if you have never given a talk in a conference but has the spark and ideas to write up a proposal, go to http://in.pycon.org/2010/cfp and submit a talk. > Regards, > Srini T. > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > Regards, -- --Anand From madhuri.vio at gmail.com Mon Jun 14 08:18:15 2010 From: madhuri.vio at gmail.com (madhuri vio) Date: Mon, 14 Jun 2010 11:48:15 +0530 Subject: [BangPypers] file handling Message-ID: a = open("human","rb") print a.readlines() this is the code i have written to read a text file but i am unable to .. i get a very weird output... "PK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<^\xc62\x0c'\x00\x00\x00'\x00\x00\x00\x08\x00\x00\x00mimetypeapplication/vnd.oasis.opendocument.textPK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1a\x00\x00\x00Configurations2/statusbar/PK\x03\x04\x14\x00\x08\x00\x08\x00\xd6+\xce<\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\x00\x00\x00Configurations2/accelerator/current.xml\x03\x00PK\x07\x08\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00PK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x00\x00\x00Configurations2/floater/PK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<\x00\x00\x00\x00\x00 i am unable to proceed -- madhuri :) From abpillai at gmail.com Mon Jun 14 08:21:36 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 14 Jun 2010 11:51:36 +0530 Subject: [BangPypers] file handling In-Reply-To: References: Message-ID: On Mon, Jun 14, 2010 at 11:48 AM, madhuri vio wrote: > a = open("human","rb") > print a.readlines() > > > > this is the code i have > written to read a text file but i am unable to .. > i get a very weird output... > > "PK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<^\xc62\x0c'\x00\x00\x00'\x00\x00\x00\x08\x00\x00\x00mimetypeapplication/vnd.oasis.opendocument.textPK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1a\x00\x00\x00Configurations2/statusbar/PK\x03\x04\x14\x00\x08\x00\x08\x00\xd6+\xce<\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\x00\x00\x00Configurations2/accelerator/current.xml\x03\x00PK\x07\x08\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00PK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x00\x00\x00Configurations2/floater/PK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<\x00\x00\x00\x00\x00 > Text file ? Looks like a zip file to me (pkzip) with its "PK" signature. Are you sure you are opening a text file here ? > > i am unable to proceed > -- > madhuri :) > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From supreet.sethi at gmail.com Mon Jun 14 11:48:14 2010 From: supreet.sethi at gmail.com (Supreet Sethi) Date: Mon, 14 Jun 2010 10:48:14 +0100 Subject: [BangPypers] file handling In-Reply-To: References: Message-ID: <1276508894.2900.22.camel@shakti> On Mon, 2010-06-14 at 11:48 +0530, madhuri vio wrote: > a = open("human","rb") > print a.readlines() > > > > this is the code i have > written to read a text file but i am unable to .. > i get a very weird output... > "PK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<^\xc62\x0c'\x00\x00\x00'\x00\x00\x00\x08\x00\x00\x00mimetypeapplication/vnd.oasis.opendocument.textPK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1a\x00\x00\x00Configurations2/statusbar/PK\x03\x04\x14\x00\x08\x00\x08\x00\xd6+\xce<\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\x00\x00\x00Configurations2/accelerator/current.xml\x03\x00PK\x07\x08\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00PK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x00\x00\x00Configurations2/floater/PK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<\x00\x00\x00\x00\x00 > > i am unable to proceed You could try open via this sequence >> import zipfile >> z = zipfile.ZipFile("") >> z.infolist() See if it helps >> help(z) for further reference on interactive python shell. -- Supreet Sethi Ph UK: +447859172473 Ph IN: +919811143517 Ph Skype: d_j_i_n_n Profile: http://www.google.com/profiles/supreet.sethi Twt: http://twitter.com/djinn From madhuri.vio at gmail.com Mon Jun 14 15:53:05 2010 From: madhuri.vio at gmail.com (madhuri vio) Date: Mon, 14 Jun 2010 19:23:05 +0530 Subject: [BangPypers] biopython Message-ID: i cudnt run this!!!!!! and this was the error occured for seq_record in SeqIO.parse("ls_MTbH37Rv. fasta","fasta"): ... print seq_record.id ... print repr(seq_record.seq) ... print len(seq_record) ... Traceback (most recent call last): File "", line 1, in File "/var/lib/python-support/python2.6/Bio/SeqIO/__init__.py", line 342, in parse raise TypeError("Need a file handle, not a string (i.e. not a filename)") TypeError: Need a file handle, not a string (i.e. not a filename) how do i handle this??? i am waiting for the reply -- madhuri :) From madhuri.vio at gmail.com Mon Jun 14 16:02:33 2010 From: madhuri.vio at gmail.com (madhuri vio) Date: Mon, 14 Jun 2010 19:32:33 +0530 Subject: [BangPypers] biopython Message-ID: i have tried this still unable to get an output from Bio import Seq from Bio import SeqIO from Bio import SeqRecord for seq_record in SeqIO.read("ls_MTbH37Rv.fasta", "fasta"): print seq_record.id print repr(seq_record.seq) print len(seq_record) python bio.py Traceback (most recent call last): File "bio.py", line 10, in for seq_record in SeqIO.read("ls_MTbH37Rv.fasta", "fasta"): File "/var/lib/python-support/python2.6/Bio/SeqIO/__init__.py", line 433, in read iterator = parse(handle, format, alphabet) File "/var/lib/python-support/python2.6/Bio/SeqIO/__init__.py", line 342, in parse raise TypeError("Need a file handle, not a string (i.e. not a filename)") TypeError: Need a file handle, not a string (i.e. not a filename) -- madhuri :) From lgp171188 at gmail.com Mon Jun 14 16:06:34 2010 From: lgp171188 at gmail.com (Guruprasad) Date: Mon, 14 Jun 2010 19:36:34 +0530 Subject: [BangPypers] biopython In-Reply-To: References: Message-ID: Hi, On Mon, Jun 14, 2010 at 7:32 PM, madhuri vio wrote: > i have tried this still unable to get an output > TypeError: Need a file handle, not a string (i.e. not a filename) Isn't this error kind of obvious of what is going wrong? I haven't used any of these stuff but I think passing a file handle of the file as an argument instead of a string in whichever line number the error is referring to should solve the problem. Also avoid posting duplicate mails to the list or cross-posting. Regards, Guruprasad From vikas.bn at gmail.com Mon Jun 14 16:36:57 2010 From: vikas.bn at gmail.com (Vikas BN) Date: Mon, 14 Jun 2010 20:06:57 +0530 Subject: [BangPypers] Live update of cmdline output on browser? Message-ID: Hi All, I'm writing a django-based web app. One of the components involve executing a cmd-line script on the server. This script takes quite a bit of time (anywhere between a minute to about 20minutes) and is quite verbose. Is there a way to 'tail' the output of this script to the browser? I searched on the internet, but apparently my skills in that area seem to have fallen short in this case :( TIA, Vikas From noufal at gmail.com Mon Jun 14 17:23:32 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 14 Jun 2010 20:53:32 +0530 Subject: [BangPypers] Live update of cmdline output on browser? In-Reply-To: References: Message-ID: On Mon, Jun 14, 2010 at 8:06 PM, Vikas BN wrote: [..] > ?Is there a way to 'tail' the output of this script to the browser? I > searched on the > ?internet, but apparently my skills in that area seem to have fallen short > in this case :( Not Python specific but Ajax term (http://antony.lesuisse.org/software/ajaxterm/) and it's predecessor anyterm implement web based terminals. You might be able to steal some ideas from there. As far as I know, they implement a simple polling mechanism with something like exponential back off to read back new data on the remote process. -- ~noufal http://nibrahim.net.in From madhuri.vio at gmail.com Mon Jun 14 17:45:50 2010 From: madhuri.vio at gmail.com (madhuri vio) Date: Mon, 14 Jun 2010 21:15:50 +0530 Subject: [BangPypers] biopython Message-ID: i am still waiting for some help..... -- madhuri :) From noufal at gmail.com Mon Jun 14 17:51:41 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 14 Jun 2010 21:21:41 +0530 Subject: [BangPypers] biopython In-Reply-To: References: Message-ID: On Mon, Jun 14, 2010 at 9:15 PM, madhuri vio wrote: > i am still waiting for some help..... 1. Read http://www.catb.org/~esr/faqs/smart-questions.html#urgent first and then read the entire article. This is volunteer mailing list. 2. Don't cross post (i.e. post to multiple lists in the same email). 3. Don't start threads which don't mean anything. "biopython" is hardly a descriptive subject and this thread just says that you're waiting for help (which doesn't obligate anyone to help you). Your original question was something trivial to which there was a reply. Did you try that? What error did you see? Why did it happen? Did you try to solve the problem? What hurdle did you hit? -- ~noufal http://nibrahim.net.in From madhuri.vio at gmail.com Mon Jun 14 19:30:22 2010 From: madhuri.vio at gmail.com (madhuri vio) Date: Mon, 14 Jun 2010 23:00:22 +0530 Subject: [BangPypers] BangPypers Digest, Vol 34, Issue 27 In-Reply-To: References: Message-ID: how do i give it in the f orm of a file handle???? instead of a string??? i dint get that..cud u clear it for me? On Mon, Jun 14, 2010 at 9:21 PM, wrote: > Send BangPypers mailing list submissions to > bangpypers at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/bangpypers > or, via email, send a message with subject or body 'help' to > bangpypers-request at python.org > > You can reach the person managing the list at > bangpypers-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of BangPypers digest..." > > > Today's Topics: > > 1. Re: file handling (Supreet Sethi) > 2. biopython (madhuri vio) > 3. biopython (madhuri vio) > 4. Re: biopython (Guruprasad) > 5. Live update of cmdline output on browser? (Vikas BN) > 6. Re: Live update of cmdline output on browser? (Noufal Ibrahim) > 7. biopython (madhuri vio) > 8. Re: biopython (Noufal Ibrahim) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 14 Jun 2010 10:48:14 +0100 > From: Supreet Sethi > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] file handling > Message-ID: <1276508894.2900.22.camel at shakti> > Content-Type: text/plain; charset="UTF-8" > > On Mon, 2010-06-14 at 11:48 +0530, madhuri vio wrote: > > a = open("human","rb") > > print a.readlines() > > > > > > > > this is the code i have > > written to read a text file but i am unable to .. > > i get a very weird output... > > > "PK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<^\xc62\x0c'\x00\x00\x00'\x00\x00\x00\x08\x00\x00\x00mimetypeapplication/vnd.oasis.opendocument.textPK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1a\x00\x00\x00Configurations2/statusbar/PK\x03\x04\x14\x00\x08\x00\x08\x00\xd6+\xce<\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\x00\x00\x00Configurations2/accelerator/current.xml\x03\x00PK\x07\x08\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00PK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x00\x00\x00Configurations2/floater/PK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<\x00\x00\x00\x00\x00 > > > > i am unable to proceed > > You could try open via this sequence > > >> import zipfile > >> z = zipfile.ZipFile("") > >> z.infolist() > > See if it helps > > >> help(z) for further reference on interactive python shell. > > > > -- > Supreet Sethi > Ph UK: +447859172473 > Ph IN: +919811143517 > Ph Skype: d_j_i_n_n > Profile: http://www.google.com/profiles/supreet.sethi > Twt: http://twitter.com/djinn > > > > > ------------------------------ > > Message: 2 > Date: Mon, 14 Jun 2010 19:23:05 +0530 > From: madhuri vio > To: bangpypers at python.org > Subject: [BangPypers] biopython > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > i cudnt run this!!!!!! > > and this was the error occured > > for seq_record in SeqIO.parse("ls_MTbH37Rv. > fasta","fasta"): > ... print seq_record.id > ... print repr(seq_record.seq) > ... print len(seq_record) > ... > Traceback (most recent call last): > File "", line 1, in > File "/var/lib/python-support/python2.6/Bio/SeqIO/__init__.py", line 342, > in parse > raise TypeError("Need a file handle, not a string (i.e. not a > filename)") > TypeError: Need a file handle, not a string (i.e. not a filename) > > how do i handle this??? > i am waiting for the reply > -- > madhuri :) > > > ------------------------------ > > Message: 3 > Date: Mon, 14 Jun 2010 19:32:33 +0530 > From: madhuri vio > To: pythonlist , bangpypers at python.org > Subject: [BangPypers] biopython > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > i have tried this still unable to get an output > > from Bio import Seq > from Bio import SeqIO > from Bio import SeqRecord > > for seq_record in SeqIO.read("ls_MTbH37Rv.fasta", "fasta"): > print seq_record.id > print repr(seq_record.seq) > print len(seq_record) > > python bio.py > Traceback (most recent call last): > File "bio.py", line 10, in > for seq_record in SeqIO.read("ls_MTbH37Rv.fasta", "fasta"): > File "/var/lib/python-support/python2.6/Bio/SeqIO/__init__.py", line 433, > in read > iterator = parse(handle, format, alphabet) > File "/var/lib/python-support/python2.6/Bio/SeqIO/__init__.py", line 342, > in parse > raise TypeError("Need a file handle, not a string (i.e. not a > filename)") > TypeError: Need a file handle, not a string (i.e. not a filename) > -- > madhuri :) > > > ------------------------------ > > Message: 4 > Date: Mon, 14 Jun 2010 19:36:34 +0530 > From: Guruprasad > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] biopython > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > Hi, > > On Mon, Jun 14, 2010 at 7:32 PM, madhuri vio > wrote: > > i have tried this still unable to get an output > > TypeError: Need a file handle, not a string (i.e. not a filename) > > Isn't this error kind of obvious of what is going wrong? I haven't > used any of these stuff but I think passing a file handle of the file > as an argument instead of a string in whichever line number the error > is referring to should solve the problem. Also avoid posting duplicate > mails to the list or cross-posting. > > Regards, > Guruprasad > > > ------------------------------ > > Message: 5 > Date: Mon, 14 Jun 2010 20:06:57 +0530 > From: Vikas BN > To: Bangalore Python Users Group - India > Subject: [BangPypers] Live update of cmdline output on browser? > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > Hi All, > > I'm writing a django-based web app. One of the components involve > executing > a cmd-line script on the server. This script takes quite a bit of time > (anywhere > between a minute to about 20minutes) and is quite verbose. > > Is there a way to 'tail' the output of this script to the browser? I > searched on the > internet, but apparently my skills in that area seem to have fallen short > in this case :( > > TIA, > Vikas > > > ------------------------------ > > Message: 6 > Date: Mon, 14 Jun 2010 20:53:32 +0530 > From: Noufal Ibrahim > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] Live update of cmdline output on browser? > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > On Mon, Jun 14, 2010 at 8:06 PM, Vikas BN wrote: > [..] > > ?Is there a way to 'tail' the output of this script to the browser? I > > searched on the > > ?internet, but apparently my skills in that area seem to have fallen > short > > in this case :( > > Not Python specific but Ajax term > (http://antony.lesuisse.org/software/ajaxterm/) and it's predecessor > anyterm implement web based terminals. You might be able to steal some > ideas from there. As far as I know, they implement a simple polling > mechanism with something like exponential back off to read back new > data on the remote process. > > > -- > ~noufal > http://nibrahim.net.in > > > ------------------------------ > > Message: 7 > Date: Mon, 14 Jun 2010 21:15:50 +0530 > From: madhuri vio > To: pythonlist , bangpypers at python.org > Subject: [BangPypers] biopython > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > i am still waiting for some help..... > -- > madhuri :) > > > ------------------------------ > > Message: 8 > Date: Mon, 14 Jun 2010 21:21:41 +0530 > From: Noufal Ibrahim > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] biopython > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > On Mon, Jun 14, 2010 at 9:15 PM, madhuri vio > wrote: > > i am still waiting for some help..... > > 1. Read http://www.catb.org/~esr/faqs/smart-questions.html#urgent > first and then read the entire article. This is volunteer mailing > list. > 2. Don't cross post (i.e. post to multiple lists in the same email). > 3. Don't start threads which don't mean anything. "biopython" is > hardly a descriptive subject and this thread just says that you're > waiting for help (which doesn't obligate anyone to help you). > > Your original question was something trivial to which there was a > reply. Did you try that? What error did you see? Why did it happen? > Did you try to solve the problem? What hurdle did you hit? > > > -- > ~noufal > http://nibrahim.net.in > > > ------------------------------ > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > > End of BangPypers Digest, Vol 34, Issue 27 > ****************************************** > -- madhuri :) From lawgon at au-kbc.org Tue Jun 15 03:31:00 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Tue, 15 Jun 2010 07:01:00 +0530 Subject: [BangPypers] biopython In-Reply-To: References: Message-ID: <201006150701.00977.lawgon@au-kbc.org> On Monday 14 June 2010 19:32:33 madhuri vio wrote: > i have tried this still unable to get an output > > from Bio import Seq > from Bio import SeqIO > from Bio import SeqRecord > > for seq_record in SeqIO.read("ls_MTbH37Rv.fasta", "fasta"): > print seq_record.id > print repr(seq_record.seq) > print len(seq_record) > > python bio.py > Traceback (most recent call last): > File "bio.py", line 10, in > for seq_record in SeqIO.read("ls_MTbH37Rv.fasta", "fasta"): > File "/var/lib/python-support/python2.6/Bio/SeqIO/__init__.py", line 433, > in read > iterator = parse(handle, format, alphabet) > File "/var/lib/python-support/python2.6/Bio/SeqIO/__init__.py", line 342, > in parse > raise TypeError("Need a file handle, not a string (i.e. not a > filename)") > TypeError: Need a file handle, not a string (i.e. not a filename) > this is a file name: 'ls_MTbH37Rv.fasta' - you have to open the file first before doing anything with it -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From me at elvis.co.in Tue Jun 15 03:38:21 2010 From: me at elvis.co.in (Elvis Joel D'Souza) Date: Tue, 15 Jun 2010 07:08:21 +0530 Subject: [BangPypers] Live update of cmdline output on browser? In-Reply-To: References: Message-ID: On Mon, Jun 14, 2010 at 8:53 PM, Noufal Ibrahim wrote: > On Mon, Jun 14, 2010 at 8:06 PM, Vikas BN wrote: > [..] > > Is there a way to 'tail' the output of this script to the browser? I > > searched on the > > internet, but apparently my skills in that area seem to have fallen > short > > in this case :( > > Not Python specific but Ajax term > (http://antony.lesuisse.org/software/ajaxterm/) and it's predecessor > anyterm implement web based terminals. You might be able to steal some > ideas from there. As far as I know, they implement a simple polling > mechanism with something like exponential back off to read back new > data on the remote process. > Comet Programming is a solution for Server PUSH (wherein client tells the server, "Send me data as and when you have to") Unfortunately, you'll need a separate server for handling such requests... Here are some pointers: You can use Orbited (written in Python). Check out http://orbited.org/ This page has links to tutorials in case you want to use it with django/rails... As an alternative for Orbited, you can use StreamHub p.s. Since your requirement includes predictable requests (20 minute delay), you can just have a simple polling mechanism or -- even better -- use what Noufal suggested > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Elvis Joel D'Souza Mangalore/Bangalore, India From vikas.bn at gmail.com Tue Jun 15 04:21:26 2010 From: vikas.bn at gmail.com (Vikas BN) Date: Tue, 15 Jun 2010 07:51:26 +0530 Subject: [BangPypers] Live update of cmdline output on browser? In-Reply-To: References: Message-ID: Thanks all, I'll see how this goes and report back! On Tue, Jun 15, 2010 at 7:08 AM, Elvis Joel D'Souza wrote: > On Mon, Jun 14, 2010 at 8:53 PM, Noufal Ibrahim wrote: > > > On Mon, Jun 14, 2010 at 8:06 PM, Vikas BN wrote: > > [..] > > > Is there a way to 'tail' the output of this script to the browser? I > > > searched on the > > > internet, but apparently my skills in that area seem to have fallen > > short > > > in this case :( > > > > Not Python specific but Ajax term > > (http://antony.lesuisse.org/software/ajaxterm/) and it's predecessor > > anyterm implement web based terminals. You might be able to steal some > > ideas from there. As far as I know, they implement a simple polling > > mechanism with something like exponential back off to read back new > > data on the remote process. > > > > > Comet Programming > is > a solution for Server PUSH (wherein client tells the server, > "Send me data as and when you have to") > > Unfortunately, you'll need a separate server for handling such requests... > > Here are some pointers: > > You can use Orbited (written in Python). Check out http://orbited.org/ > This page has links to tutorials in > case > you want to use it with django/rails... > > As an alternative for Orbited, you can use StreamHub< > http://www.stream-hub.com/> > > p.s. Since your requirement includes predictable requests (20 minute > delay), > you can just > have a simple polling mechanism or -- even better -- use what Noufal > suggested > > > > > > > > -- > > ~noufal > > http://nibrahim.net.in > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Elvis Joel D'Souza > Mangalore/Bangalore, India > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From sridhar.ratna at gmail.com Tue Jun 15 04:53:43 2010 From: sridhar.ratna at gmail.com (Sridhar Ratnakumar) Date: Mon, 14 Jun 2010 19:53:43 -0700 Subject: [BangPypers] file handling In-Reply-To: <1276508894.2900.22.camel@shakti> References: <1276508894.2900.22.camel@shakti> Message-ID: On Mon, Jun 14, 2010 at 2:48 AM, Supreet Sethi wrote: > On Mon, 2010-06-14 at 11:48 +0530, madhuri vio wrote: >> a = open("human","rb") >> print a.readlines() >> >> this is the code i have >> written to read a text file but i am unable to .. >> i get a very weird output... >> "PK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<^\xc62\x0c'\x00\x00\x00'\x00\x00\x00\x08\x00\x00\x00mimetypeapplication/vnd.oasis.opendocument.textPK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1a\x00\x00\x00Configurations2/statusbar/PK\x03\x04\x14\x00\x08\x00\x08\x00\xd6+\xce<\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\x00\x00\x00Configurations2/accelerator/current.xml\x03\x00PK\x07\x08\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00PK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x00\x00\x00Configurations2/floater/PK\x03\x04\x14\x00\x00\x00\x00\x00\xd6+\xce<\x00\x00\x00\x00\x00 > > You could try open via this sequence >>> import zipfile >>> z = zipfile.ZipFile("") >>> z.infolist() > > See if it helps Actually, this looks like a word processing document (ODT). Note the embedded mimetype "application/vnd.oasis.opendocument.text". Try using this library: http://odfpy.forge.osor.eu/ -srid From srinivas_thatiparthy at akebonosoft.com Tue Jun 15 06:16:14 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Tue, 15 Jun 2010 09:46:14 +0530 Subject: [BangPypers] biopython References: Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D833D1@astserver3.akebonosoft.com> >i am still waiting for some help..... You seem to be posting question after question with out even trying to solve them( i can count 10 in three or four days on varying topics) in Bangpypers and comp.lang.python,literally spamming these lists.You better learn basics first , grab a book of "Learning Python by Mark Lutz" or point your browser to www://docs.python.org. Seriously, nobody will spoon feed you in the mailing lists. Regards, Srini T. --The real failure is failing to try for success. From orsenthil at gmail.com Tue Jun 15 06:58:18 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Tue, 15 Jun 2010 10:28:18 +0530 Subject: [BangPypers] biopython In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D833D1@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D833D1@astserver3.akebonosoft.com> Message-ID: <20100615045818.GA3896@remy> On Tue, Jun 15, 2010 at 09:46:14AM +0530, Srinivas Reddy Thatiparthy wrote: > point your browser to www://docs.python.org. > Just a fun nit-pick. Seems to be a fun protocol to me. :) -- Senthil ? muito simples ser s?bio. Basta pensar em uma coisa est?pida e n?o fal?-la. --Sam Levenson From jeffjosejeff at gmail.com Tue Jun 15 07:45:24 2010 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Tue, 15 Jun 2010 11:15:24 +0530 Subject: [BangPypers] biopython In-Reply-To: <20100615045818.GA3896@remy> References: <4EF2BF691B890546B2694C99A2852F0C01D833D1@astserver3.akebonosoft.com> <20100615045818.GA3896@remy> Message-ID: *I'm still waiting* to get that page open. On Tue, Jun 15, 2010 at 10:28 AM, Senthil Kumaran wrote: > On Tue, Jun 15, 2010 at 09:46:14AM +0530, Srinivas Reddy Thatiparthy wrote: > > point your browser to www://docs.python.org. > > > > Just a fun nit-pick. Seems to be a fun protocol to me. :) > > -- > Senthil > > ? muito simples ser s?bio. Basta pensar em uma coisa est?pida e n?o > fal?-la. > --Sam Levenson > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > From srinivas_thatiparthy at akebonosoft.com Tue Jun 15 07:46:35 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Tue, 15 Jun 2010 11:16:35 +0530 Subject: [BangPypers] biopython References: <4EF2BF691B890546B2694C99A2852F0C01D833D1@astserver3.akebonosoft.com><20100615045818.GA3896@remy> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D833D2@astserver3.akebonosoft.com> Haha... We don't have internet(usually), i manually typed it thinking something else. it usually happens with us programmers. Regards, Srini T. --The real failure is failing to try for success. From rahul8590 at gmail.com Tue Jun 15 09:15:27 2010 From: rahul8590 at gmail.com (Rahul R) Date: Tue, 15 Jun 2010 11:15:27 +0400 Subject: [BangPypers] python with c bindings Message-ID: well recently i learned about handling shell scripts inside c files . well i was wondering since python is also scripting language can i bind the python script inside a "C" file and then run it.well on the front it may look like normal compilation of c program, but in the backend i guess the python script is being executed. From kunal.t2 at gmail.com Tue Jun 15 09:24:19 2010 From: kunal.t2 at gmail.com (kunal ghosh) Date: Tue, 15 Jun 2010 12:54:19 +0530 Subject: [BangPypers] python with c bindings In-Reply-To: References: Message-ID: On Tue, Jun 15, 2010 at 12:45 PM, Rahul R wrote: > well recently i learned about handling shell scripts inside c files . well > i was wondering since python is also scripting language can i bind the > python script inside a "C" file and then run it.well on the front it may > look like normal compilation of c program, but in the backend i guess the > python script is being executed. > you can #include in your c program and then call the python modules in a python script as explained here http://www.linuxjournal.com/article/8497 -- regards ------- Kunal Ghosh Dept of Computer Sc. & Engineering. Sir MVIT Bangalore,India Blog:kunalghosh.wordpress.com Website:www.kunalghosh.net46.net From rahul8590 at gmail.com Tue Jun 15 15:11:15 2010 From: rahul8590 at gmail.com (Rahul R) Date: Tue, 15 Jun 2010 17:11:15 +0400 Subject: [BangPypers] python with c bindings In-Reply-To: References: Message-ID: On Tue, Jun 15, 2010 at 11:24 AM, kunal ghosh wrote: > On Tue, Jun 15, 2010 at 12:45 PM, Rahul R wrote: > > > well recently i learned about handling shell scripts inside c files . > well > > i was wondering since python is also scripting language can i bind the > > python script inside a "C" file and then run it.well on the front it may > > look like normal compilation of c program, but in the backend i guess the > > python script is being executed. > > > > you can #include > in your c program and then call the python modules in a python script > as explained here http://www.linuxjournal.com/article/8497 > i rather prefer running it as a script binding into a "C" (if thats possible , well that certainly works for sh scripts i dont know whether that works for python ) From anandology at gmail.com Tue Jun 15 15:38:10 2010 From: anandology at gmail.com (Anand Chitipothu) Date: Tue, 15 Jun 2010 19:08:10 +0530 Subject: [BangPypers] python with c bindings In-Reply-To: References: Message-ID: 2010/6/15 Rahul R : > On Tue, Jun 15, 2010 at 11:24 AM, kunal ghosh wrote: > >> On Tue, Jun 15, 2010 at 12:45 PM, Rahul R wrote: >> >> > well recently i learned about handling shell scripts inside c files . >> well >> > i ?was wondering since python is also scripting language can i bind the >> > python script inside a "C" file and then run it.well on the front it may >> > look like normal compilation of c program, but in the backend i guess the >> > python script is being executed. >> > >> >> you can #include >> in your c program and then call the python modules in a python script >> as explained here http://www.linuxjournal.com/article/8497 >> > > > i rather prefer running it as a script binding into a "C" (if thats possible > , well that certainly works for sh scripts i dont know whether that works > for python ) Make the python script executable and run it just like the shell script. You can make a python script executable by adding the following in the first line. #! /usr/bin/env python And you need to chmod it. $ chmod +x your-script.py Anand From noufal at gmail.com Tue Jun 15 16:03:19 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 15 Jun 2010 22:03:19 +0800 Subject: [BangPypers] python with c bindings In-Reply-To: References: Message-ID: On Tue, Jun 15, 2010 at 9:11 PM, Rahul R wrote: [..] > i rather prefer running it as a script binding into a "C" (if thats possible > , well that certainly works for sh scripts i dont know whether that works > for python ) I'm not sure what you mean by "binding". But is possible to embed a Python interpreter into your compiled C application so that it can execute scripts. It's often used to provide "scriptability". Perhaps you can elaborate a little on how you'd do it in shell. I'm not exactly sure what you want to accomplish. -- ~noufal http://nibrahim.net.in From rahul8590 at gmail.com Tue Jun 15 18:12:04 2010 From: rahul8590 at gmail.com (Rahul R) Date: Tue, 15 Jun 2010 20:12:04 +0400 Subject: [BangPypers] python with c bindings In-Reply-To: References: Message-ID: On Tue, Jun 15, 2010 at 6:03 PM, Noufal Ibrahim wrote: > On Tue, Jun 15, 2010 at 9:11 PM, Rahul R wrote: > [..] > > i rather prefer running it as a script binding into a "C" (if thats > possible > > , well that certainly works for sh scripts i dont know whether that works > > for python ) > > I'm not sure what you mean by "binding". But is possible to embed a > Python interpreter into your compiled C application so that it can > execute scripts. It's often used to provide "scriptability". > > well thats wat exactly i wanted .. to embed the python interpreter into C app . Can u throw some light on it .. on how to go about doing so. I apologise for not being articulate since , i did know the right jargon to express it. From rmathews at gmail.com Wed Jun 16 03:49:11 2010 From: rmathews at gmail.com (Roshan Mathews) Date: Wed, 16 Jun 2010 07:19:11 +0530 Subject: [BangPypers] python with c bindings In-Reply-To: References: Message-ID: On Tue, Jun 15, 2010 at 21:42, Rahul R wrote: > I apologise for not being articulate since , i did know the right jargon to > express it. Can you please say what you meant by "handling shell scripts inside c files"? -- http://roshan.mathews.in/ From noufal at gmail.com Wed Jun 16 08:12:31 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 16 Jun 2010 11:42:31 +0530 Subject: [BangPypers] python with c bindings In-Reply-To: References: Message-ID: On Tue, Jun 15, 2010 at 9:42 PM, Rahul R wrote: > On Tue, Jun 15, 2010 at 6:03 PM, Noufal Ibrahim wrote: > >> On Tue, Jun 15, 2010 at 9:11 PM, Rahul R wrote: >> [..] >> > i rather prefer running it as a script binding into a "C" (if thats >> possible >> > , well that certainly works for sh scripts i dont know whether that works >> > for python ) >> >> I'm not sure what you mean by "binding". But is possible to embed a >> Python interpreter into your compiled C application so that it can >> execute scripts. It's often used to provide "scriptability". >> >> > well thats wat exactly i wanted .. to embed the python interpreter into C > app . > Can u throw some light on it .. on how to go about doing so. http://docs.python.org/release/2.5.2/ext/embedding.html Try that? -- ~noufal http://nibrahim.net.in From hnsri49 at gmail.com Wed Jun 16 09:59:16 2010 From: hnsri49 at gmail.com (srinivas hn) Date: Wed, 16 Jun 2010 13:59:16 +0600 Subject: [BangPypers] Using PyRTF with Dynamic HTML Message-ID: Hi, I have been using the PyRTF fro the rtf generation.I am facing problem in using the table structure when i am using the Dynamic Html . I am trying to define the table cells as dynamic but am not succeded in it.If somebody knows the solution please help me out. Srinivas HN ph-9986229891 From abpillai at gmail.com Wed Jun 16 10:02:06 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 16 Jun 2010 13:32:06 +0530 Subject: [BangPypers] Using PyRTF with Dynamic HTML In-Reply-To: References: Message-ID: On Wed, Jun 16, 2010 at 1:29 PM, srinivas hn wrote: > Hi, > > I have been using the PyRTF fro the rtf generation.I am facing problem in > using the table structure when i am using the Dynamic Html . I am trying to > define the table cells as dynamic but am not succeded in it.If somebody > knows the solution please help me out. > See here: http://www.catb.org/~esr/faqs/smart-questions.html > > Srinivas HN > ph-9986229891 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From noufal at gmail.com Thu Jun 17 09:54:24 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 17 Jun 2010 13:24:24 +0530 Subject: [BangPypers] [OT] PyCon India 2010 meeting Message-ID: Hello everyone, I've had a few emails from folks on this list who wanted to help out with the PyCon we're working towards but I don't have all the emails. We're having a face to face meeting this weekend at the following venue Venue : Indian Coffee House, Church Street, Brigade Gardens Time : 1730 Date : 19 June 2010 Agenda : PyCon India 2010 Everyone interested in helping with the conference (and heaven knows we need more people) are welcome. Thanks. -- ~noufal http://nibrahim.net.in From srinivas_thatiparthy at akebonosoft.com Thu Jun 17 10:22:58 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Thu, 17 Jun 2010 13:52:58 +0530 Subject: [BangPypers] duck typing -A random thought Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D833DD@astserver3.akebonosoft.com> is it just because of duck typing we don't require a concept of interfaces(like in Java and C#) in python? i think so.what you say? Regards, Srini T. --The real failure is failing to try for success. From mbaiju at zeomega.com Thu Jun 17 10:49:12 2010 From: mbaiju at zeomega.com (Baiju M) Date: Thu, 17 Jun 2010 14:19:12 +0530 Subject: [BangPypers] duck typing -A random thought In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D833DD@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D833DD@astserver3.akebonosoft.com> Message-ID: On Thu, Jun 17, 2010 at 1:52 PM, Srinivas Reddy Thatiparthy wrote: > is it just because of duck typing we don't require a concept of interfaces(like in Java and C#) in python? i think so.what you say? If you want interfaces you may use this third party module: http://pypi.python.org/pypi/zope.interface and optionally: http://pypi.python.org/pypi/zope.component I have written an entire book about that: http://muthukadan.net/docs/zca.html http://www.lulu.com/content/1561045 Regards, Baiju M From noufal at gmail.com Thu Jun 17 10:58:20 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 17 Jun 2010 14:28:20 +0530 Subject: [BangPypers] duck typing -A random thought In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D833DD@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D833DD@astserver3.akebonosoft.com> Message-ID: On Thu, Jun 17, 2010 at 1:52 PM, Srinivas Reddy Thatiparthy wrote: > is it just because of duck typing we don't require a concept of interfaces(like in Java and C#) in python? i think so.what you say? It's not that you don't "require" it. As Baiju said, the Zope thing does it quite well. However, because of duck typing (and introspection), it's possible to achieve similar results in different ways. I really like the way the py.test hook system works, for example, as an extension mechanism. -- ~noufal http://nibrahim.net.in From srinivas_thatiparthy at akebonosoft.com Thu Jun 17 12:20:33 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Thu, 17 Jun 2010 15:50:33 +0530 Subject: [BangPypers] duck typing -A random thought References: <4EF2BF691B890546B2694C99A2852F0C01D833DD@astserver3.akebonosoft.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D833DE@astserver3.akebonosoft.com> I am really enjoying your book.Thanks a lot for writing it. :) Regards, Srini T. --The real failure is failing to try for success. From orsenthil at gmail.com Thu Jun 17 15:44:51 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Thu, 17 Jun 2010 19:14:51 +0530 Subject: [BangPypers] duck typing -A random thought In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D833DD@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D833DD@astserver3.akebonosoft.com> Message-ID: <20100617134451.GA2903@remy> On Thu, Jun 17, 2010 at 01:52:58PM +0530, Srinivas Reddy Thatiparthy wrote: > is it just because of duck typing we don't require a concept of > interfaces(like in Java and C#) in python? i think so.what you say? Conceptually they are bit different. I am assuming you meant Dynamic typing (wherein Duck typing a sub-concept) and then Interfaces. You can positively argue that Dynamically typed languages may not need Interfaces. But that has not really been a strong case. Like zope.interface example over which you can define your class blueprint. Well, I have used it (as twisted uses it) but I don't know the specific requirements for it (and I believe that you can work without it though in a not-so-structured way). Also, with respect to duck-typing where 'hasattr' plays a important role, there seems to have been concerns that it is limited and much deeper object inspection techniques are required, like deeper information from issubclass and isinstance methods. For those reasons, Abstract Base classes, which kind of provide some Interfaces have come in Python. http://docs.python.org/glossary.html#term-abstract-base-class The last para was from my theoretical understanding, I am yet to write programs/projects which would need those concepts. -- Senthil Here I am in 53 B.C. and all I want is a dill pickle!! From srinivas_thatiparthy at akebonosoft.com Thu Jun 17 16:16:29 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Thu, 17 Jun 2010 19:46:29 +0530 Subject: [BangPypers] duck typing -A random thought References: <4EF2BF691B890546B2694C99A2852F0C01D833DD@astserver3.akebonosoft.com> <20100617134451.GA2903@remy> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D833DF@astserver3.akebonosoft.com> Dear Senthil, +sys.maxint for the sheer effort you took for me to write. :) Regards, Srini T. --The real failure is failing to try for success. From lawgon at au-kbc.org Fri Jun 18 02:23:52 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 18 Jun 2010 05:53:52 +0530 Subject: [BangPypers] Indian Python Software Society Message-ID: <201006180553.52369.lawgon@au-kbc.org> hi, as most of you may know, an all India society by the above name has been registered mainly for the purpose of conducting the annual pycon india conference and also to promote python in India. A separate mailing list has been created to discuss the affairs of the society. It is here: http://mail.python.org/mailman/listinfo/ipss further information about the society may be obtained here: http://wiki.python.org/moin/CategoryIndianPythonSoftwareSociety anyone interested is welcome to join the mailing list -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From lorddaemon at gmail.com Fri Jun 18 07:55:49 2010 From: lorddaemon at gmail.com (Dark Seid) Date: Fri, 18 Jun 2010 11:25:49 +0530 Subject: [BangPypers] duck typing -A random thought In-Reply-To: <4EF2BF691B890546B2694C99A2852F0C01D833DD@astserver3.akebonosoft.com> References: <4EF2BF691B890546B2694C99A2852F0C01D833DD@astserver3.akebonosoft.com> Message-ID: Well, actually your interface does exist (if my object exposes the same set of methods as an instance of String, then it is a String), it's just not possible to explicitly call it out like you do in, say, Java. The concept of an interface exists in all OO languages I've used, even when there was no keyword 'interface'. Cheers, Sidu. C42 Engineering http://blog.sidu.in On Thu, Jun 17, 2010 at 1:52 PM, Srinivas Reddy Thatiparthy < srinivas_thatiparthy at akebonosoft.com> wrote: > is it just because of duck typing we don't require a concept of > interfaces(like in Java and C#) in python? i think so.what you say? > > > > > Regards, > Srini T. > --The real failure is failing to try for success. > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From srinivas_thatiparthy at akebonosoft.com Fri Jun 18 08:12:10 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Fri, 18 Jun 2010 11:42:10 +0530 Subject: [BangPypers] duck typing -A random thought References: <4EF2BF691B890546B2694C99A2852F0C01D833DD@astserver3.akebonosoft.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D833E0@astserver3.akebonosoft.com> >>Well, actually your interface does exist (if my object exposes the same set of methods as an instance of String, then it is a String), This is what i am referring ,duck typing. >>The concept of an interface exists in all OO languages I've used, even when there was no keyword 'interface'. In my question , i meant 'Interface' as a keyword and functionality as in java and c# (statically typed languages). I think, the concept of interfaces exists in all languages ,for example in c you expose your functions in header files,i think it is also a kind of interface. From srinivas_thatiparthy at akebonosoft.com Fri Jun 18 08:35:53 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Fri, 18 Jun 2010 12:05:53 +0530 Subject: [BangPypers] duck typing -A random thought References: <4EF2BF691B890546B2694C99A2852F0C01D833DD@astserver3.akebonosoft.com> <4EF2BF691B890546B2694C99A2852F0C01D833E0@astserver3.akebonosoft.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D833E1@astserver3.akebonosoft.com> FYI, http://stackoverflow.com/questions/3062701/why-dont-we-require-interfaces-in-dynamic-languages A good discussion though, thanks for all who answered. Regards, Srini T. --The real failure is failing to try for success. From orsenthil at gmail.com Fri Jun 18 17:23:07 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Fri, 18 Jun 2010 20:53:07 +0530 Subject: [BangPypers] Indian Python Software Society Message-ID: <20100618152307.GA8628@remy> On Fri, Jun 18, 2010 at 05:53:52AM +0530, Kenneth Gonsalves wrote: > further information about the society may be obtained here: > http://wiki.python.org/moin/CategoryIndianPythonSoftwareSociety Quite a Legal Document!. Congrats and Kudos to you, Kenneth for setting this up. I see that it was set with a very long term goal in mind. Most of us would not have envisioned such a thing. -- Senthil From lawgon at au-kbc.org Sat Jun 19 12:18:56 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Sat, 19 Jun 2010 15:48:56 +0530 Subject: [BangPypers] Indian Python Software Society In-Reply-To: <20100618152307.GA8628@remy> References: <20100618152307.GA8628@remy> Message-ID: <201006191548.56595.lawgon@au-kbc.org> On Friday 18 June 2010 20:53:07 Senthil Kumaran wrote: > > further information about the society may be obtained here: > > http://wiki.python.org/moin/CategoryIndianPythonSoftwareSociety > > Quite a Legal Document!. Congrats and Kudos to you, Kenneth for > setting this up. I see that it was set with a very long term goal in > mind. Most of us would not have envisioned such a thing. > thanks - actually I was hugely thrilled that my draft went through without a *single* carp - until I discovered that no one had read it! Anyway the drafting was based on about 30 years of experience in fighting attempts to subvert societies - I must sometime blog my experience in preventing a society being taken over by the CIA. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From noufal at gmail.com Sat Jun 19 12:22:00 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 19 Jun 2010 15:52:00 +0530 Subject: [BangPypers] Indian Python Software Society In-Reply-To: <201006191548.56595.lawgon@au-kbc.org> References: <20100618152307.GA8628@remy> <201006191548.56595.lawgon@au-kbc.org> Message-ID: On Sat, Jun 19, 2010 at 3:48 PM, Kenneth Gonsalves wrote: > On Friday 18 June 2010 20:53:07 Senthil Kumaran wrote: >> > further information about the society may be obtained here: >> > http://wiki.python.org/moin/CategoryIndianPythonSoftwareSociety >> >> Quite a Legal Document!. Congrats and Kudos to you, Kenneth for >> setting this up. I see that it was set with a very long term goal in >> mind. Most of us would not have envisioned such a thing. >> > > thanks - actually I was hugely thrilled that my draft went through without a > *single* carp - until I discovered that no one had read it! Anyway the > drafting was based on about 30 years of experience in fighting attempts to > subvert societies - I must sometime blog my experience in preventing a society > being taken over by the CIA. Well, I've got to hand it to you. There's no one else in the group who can actually do legalese. I skimmed over the docs once but the legal wording flew over my head. Thanks for all the work. -- ~noufal http://nibrahim.net.in From vid at svaksha.com Sat Jun 19 13:56:12 2010 From: vid at svaksha.com (=?UTF-8?B?IOCkuOCljeCkteCkleCljeCktyA=?=) Date: Sat, 19 Jun 2010 17:41:12 +0545 Subject: [BangPypers] Indian Python Software Society In-Reply-To: <201006191548.56595.lawgon@au-kbc.org> References: <20100618152307.GA8628@remy> <201006191548.56595.lawgon@au-kbc.org> Message-ID: On Sat, Jun 19, 2010 at 16:03, Kenneth Gonsalves wrote: > > thanks - actually I was hugely thrilled that my draft went through without a > *single* carp - until I discovered that no one had read it! No one? Heh. are you kidding ......Atleast the folks who signed the documents must have read it before affixing their signatures !? > Anyway the > drafting was based on about 30 years of experience in fighting attempts to > subvert societies - I must sometime blog my experience in preventing a society > being taken over by the CIA. The CIA is a long shot. In India, you will find people who will fall to the lowest depths (read, cyber-stalking) in the name of "women + foss". -- peace, vid || http://svaksha.com From zubin.mithra at gmail.com Sat Jun 19 17:26:36 2010 From: zubin.mithra at gmail.com (Zubin Mithra) Date: Sat, 19 Jun 2010 20:56:36 +0530 Subject: [BangPypers] missing something Message-ID: Hi everyone, I think I`m missing something very basic or have a very basic concept understood the wrong way, so I`d like to have some help here. http://paste.pocoo.org/show/227288/ The problem is that the second call to _Mixin2to3.run_2to3() does not work. How do I address the issue? Thanks in advance, zubin From lawgon at au-kbc.org Sun Jun 20 06:48:42 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Sun, 20 Jun 2010 10:18:42 +0530 Subject: [BangPypers] Indian Python Software Society In-Reply-To: References: <20100618152307.GA8628@remy> <201006191548.56595.lawgon@au-kbc.org> Message-ID: <201006201018.42536.lawgon@au-kbc.org> On Saturday 19 June 2010 17:26:12 ?????? wrote: > > thanks - actually I was hugely thrilled that my draft went through > > without a single carp - until I discovered that no one had read it! > > No one? Heh. are you kidding ......Atleast the folks who signed the > documents must have read it before affixing their signatures !? > they did not (except possibly Kaushik who did the formatting so may glanced at the content -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From supr.e.etsethi at gmail.com Sun Jun 20 12:39:15 2010 From: supr.e.etsethi at gmail.com (s|s) Date: Sun, 20 Jun 2010 11:39:15 +0100 Subject: [BangPypers] Indian Python Software Society In-Reply-To: <201006201018.42536.lawgon@au-kbc.org> References: <20100618152307.GA8628@remy> <201006191548.56595.lawgon@au-kbc.org> <201006201018.42536.lawgon@au-kbc.org> Message-ID: I went through the aims of the society. Although, I can see, as primarily a Python language society, it intends to promote use of python in schools and universities and informal streams. I would have still preferred a slightly wider definition some what including open source paradigm in it. Just a suggestion -- Supreet Sethi Ph UK: +447859172473 Ph IN: +919811143517 Ph Skype: d_j_i_n_n Profile: http://www.google.com/profiles/supreet.sethi Twt: http://twitter.com/djinn From noufal at gmail.com Sun Jun 20 12:53:25 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 20 Jun 2010 16:23:25 +0530 Subject: [BangPypers] Indian Python Software Society In-Reply-To: References: <20100618152307.GA8628@remy> <201006191548.56595.lawgon@au-kbc.org> <201006201018.42536.lawgon@au-kbc.org> Message-ID: On Sun, Jun 20, 2010 at 4:09 PM, s|s wrote: > I went through the aims of the society. Although, I can see, as > primarily a Python language society, it intends to promote use of > python in schools and universities and informal streams. ?I would have > still ?preferred a slightly wider definition some what including open > source paradigm in it. I think it was framed with an explicit desire not to be a FOSS thing. It's to promote the language (in proprietary or free applications). -- ~noufal http://nibrahim.net.in From supr.e.etsethi at gmail.com Sun Jun 20 14:54:40 2010 From: supr.e.etsethi at gmail.com (s|s) Date: Sun, 20 Jun 2010 13:54:40 +0100 Subject: [BangPypers] Indian Python Software Society In-Reply-To: References: <20100618152307.GA8628@remy> <201006191548.56595.lawgon@au-kbc.org> <201006201018.42536.lawgon@au-kbc.org> Message-ID: Understandably you are taking a sceptical point of view of FOSS can be mutually exclusive from Python as a discourse or as a language. Interestingly I am taking a more pragmatist point that Python may not fulfill all the requirements of a language user in all situations. In those marginal cases what are we as a group going to do. Are we going to promote c/python as a glue language, java, .net . Let me tell you, I am not taking a far fetched situation. A sufficiently complex application spills over into several languages and platforms. -- Supreet Sethi Ph UK: +447859172473 Ph IN: +919811143517 Ph Skype: d_j_i_n_n Profile: http://www.google.com/profiles/supreet.sethi Twt: http://twitter.com/djinn From noufal at gmail.com Sun Jun 20 15:30:14 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 20 Jun 2010 19:00:14 +0530 Subject: [BangPypers] Indian Python Software Society In-Reply-To: References: <20100618152307.GA8628@remy> <201006191548.56595.lawgon@au-kbc.org> <201006201018.42536.lawgon@au-kbc.org> Message-ID: I'm afraid I don't understand your point. I'm not sceptical about free software. I support it quite strongly and do what I can for it. However, when conducting a Python conference or promoting the language itself, I'm okay with non free software written in Python. I'm okay with non free IDEs for example if they're for Python. The society was created to promote the language and the the conference. Not free software. The overlap of the communities is a pleasant coincidence. On 6/20/10, s|s wrote: > Understandably you are taking a sceptical point of view of FOSS can be > mutually exclusive from Python as a discourse or as a language. > Interestingly I am taking a more pragmatist point that Python may not > fulfill all the requirements of a language user in all situations. In > those marginal cases what are we as a group going to do. > > Are we going to promote c/python as a glue language, java, .net . Let > me tell you, I am not taking a far fetched situation. A sufficiently > complex application spills over into several languages and platforms. > > > -- > Supreet Sethi > Ph UK: +447859172473 > Ph IN: +919811143517 > Ph Skype: d_j_i_n_n > Profile: http://www.google.com/profiles/supreet.sethi > Twt: http://twitter.com/djinn > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ~noufal http://nibrahim.net.in From supr.e.etsethi at gmail.com Sun Jun 20 16:15:53 2010 From: supr.e.etsethi at gmail.com (s|s) Date: Sun, 20 Jun 2010 15:15:53 +0100 Subject: [BangPypers] Indian Python Software Society In-Reply-To: References: <20100618152307.GA8628@remy> <201006191548.56595.lawgon@au-kbc.org> <201006201018.42536.lawgon@au-kbc.org> Message-ID: For any community with long term vision, it was my humble suggestion to keep it slightly open in its targeted goals especially related to education. Secondly having cross-talk with different communities is not pleasant coincidence but an absolute requirement. -- Supreet Sethi Ph UK: +447859172473 Ph IN: +919811143517 Ph Skype: d_j_i_n_n Profile: http://www.google.com/profiles/supreet.sethi Twt: http://twitter.com/djinn From vid at svaksha.com Sun Jun 20 16:42:10 2010 From: vid at svaksha.com (=?UTF-8?B?IOCkuOCljeCkteCkleCljeCktyA=?=) Date: Sun, 20 Jun 2010 20:27:10 +0545 Subject: [BangPypers] Indian Python Software Society In-Reply-To: References: <20100618152307.GA8628@remy> <201006191548.56595.lawgon@au-kbc.org> <201006201018.42536.lawgon@au-kbc.org> Message-ID: On Sun, Jun 20, 2010 at 20:00, s|s wrote: > For any community with long term vision, it was my humble suggestion > to keep it slightly open in its targeted goals especially related to > education. Secondly having cross-talk with different communities is > not pleasant coincidence but an absolute requirement. It would be easier to understand if you elaborated on the "cross-talk with different communities" bit, a wee bit more. -- peace, vid || http://svaksha.com From noufal at gmail.com Sun Jun 20 17:14:02 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 20 Jun 2010 20:44:02 +0530 Subject: [BangPypers] June meet up Message-ID: It would be a pity if the group meetings didn't take place. We had a good run the past few months. Is anyone game next weekend? We could do what Arvind last suggested or I could rehash my apac talk. Or anything else. -- ~noufal http://nibrahim.net.in From nitin.nitp at gmail.com Sun Jun 20 19:27:20 2010 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Sun, 20 Jun 2010 22:57:20 +0530 Subject: [BangPypers] June meet up In-Reply-To: References: Message-ID: hi Noufal, Can you please send me some mail which expalins pycon and other things in more detail, which i can attach to the mail i am supposed to send to my company higher authority. Thanks in advance. Nitin K On Sun, Jun 20, 2010 at 8:44 PM, Noufal Ibrahim wrote: > It would be a pity if the group meetings didn't take place. We had a > good run the past few months. Is anyone game next weekend? We could do > what Arvind last suggested or I could rehash my apac talk. Or anything > else. > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Nitin K From supr.e.etsethi at gmail.com Sun Jun 20 19:33:13 2010 From: supr.e.etsethi at gmail.com (s|s) Date: Sun, 20 Jun 2010 18:33:13 +0100 Subject: [BangPypers] Indian Python Software Society In-Reply-To: References: <20100618152307.GA8628@remy> <201006191548.56595.lawgon@au-kbc.org> <201006201018.42536.lawgon@au-kbc.org> Message-ID: Python only forms part of rubrik of technology stack that everyone of us uses. Linux, Windows, S60, MacOSX mostly form the underlying operating system. Bunch of libraries form another bit important piece. C/Java/.net form another piece of the puzzle by providing module interfaces. There are frameworks and interfaces. All these things do not exist in isolated forms. They are in constant flux. Sometimes even competing languages like ruby become critical to solutions being built. In this context, "only python" initiative presents an unclear if not inappropriate picture to students. Pushing them to think of technology for technologies sake instead of technology for finding solutions. This will only happen if other pieces also become part of knowledge base being imparted to the someone willing to learn. -- Supreet Sethi Ph UK: +447859172473 Ph IN: +919811143517 Ph Skype: d_j_i_n_n Profile: http://www.google.com/profiles/supreet.sethi Twt: http://twitter.com/djinn From abpillai at gmail.com Sun Jun 20 19:45:18 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Sun, 20 Jun 2010 23:15:18 +0530 Subject: [BangPypers] Indian Python Software Society In-Reply-To: References: <20100618152307.GA8628@remy> <201006191548.56595.lawgon@au-kbc.org> <201006201018.42536.lawgon@au-kbc.org> Message-ID: On Sun, Jun 20, 2010 at 11:03 PM, s|s wrote: > Python only forms part of rubrik of technology stack that everyone of > us uses. Linux, Windows, S60, MacOSX mostly form the underlying > operating system. Bunch of libraries form another bit important piece. > C/Java/.net form another piece of the puzzle by providing module > interfaces. There are frameworks and interfaces. All these things do > not exist in isolated forms. They are in constant flux. Sometimes even > competing languages like ruby become critical to solutions being > built. In this context, "only python" initiative presents an unclear > if not inappropriate picture to students. Pushing them to think of > technology for technologies sake instead of technology for finding > solutions. This will only happen if other pieces also become part of > knowledge base being imparted to the someone willing to learn. > What else do you expect a society whose name is "Indian Python Software Society" to promote apart from Python ? When we say Python, we mean all aspects of Python, not just the core Python language. It involves the entire ecosystem around Python including libraries, third party modules, extensions, alternate implementations (such as IronPython, PyPy etc), packaging etc etc. However it clearly does not involve something which happens to be open "like" Python but is not Python - like Ruby for example. There are ruby interest groups for doing that. It does not make sense for a Python interest society to try and do something more than its mandate of spreading interest and awareness and sharing knowledge about Python. In fact, that itself is quite a challenge to do, so we are not planning to set lofty goals such as the ones you are mentioning here. We do Python and we are Python. > > > -- > Supreet Sethi > Ph UK: +447859172473 > Ph IN: +919811143517 > Ph Skype: d_j_i_n_n > Profile: http://www.google.com/profiles/supreet.sethi > Twt: http://twitter.com/djinn > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From nitin.nitp at gmail.com Sun Jun 20 19:58:28 2010 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Sun, 20 Jun 2010 23:28:28 +0530 Subject: [BangPypers] Indian Python Software Society In-Reply-To: References: <20100618152307.GA8628@remy> <201006191548.56595.lawgon@au-kbc.org> <201006201018.42536.lawgon@au-kbc.org> Message-ID: I want to present some good features from pywinauto and sikuli (which are being developed from python.) that can be used for many of our automation efforts Can i do that? On Sun, Jun 20, 2010 at 11:03 PM, s|s wrote: > Python only forms part of rubrik of technology stack that everyone of > us uses. Linux, Windows, S60, MacOSX mostly form the underlying > operating system. Bunch of libraries form another bit important piece. > C/Java/.net form another piece of the puzzle by providing module > interfaces. There are frameworks and interfaces. All these things do > not exist in isolated forms. They are in constant flux. Sometimes even > competing languages like ruby become critical to solutions being > built. In this context, "only python" initiative presents an unclear > if not inappropriate picture to students. Pushing them to think of > technology for technologies sake instead of technology for finding > solutions. This will only happen if other pieces also become part of > knowledge base being imparted to the someone willing to learn. > > > -- > Supreet Sethi > Ph UK: +447859172473 > Ph IN: +919811143517 > Ph Skype: d_j_i_n_n > Profile: http://www.google.com/profiles/supreet.sethi > Twt: http://twitter.com/djinn > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Nitin K From vid at svaksha.com Mon Jun 21 05:23:46 2010 From: vid at svaksha.com (=?UTF-8?B?IOCkuOCljeCkteCkleCljeCktyA=?=) Date: Mon, 21 Jun 2010 09:08:46 +0545 Subject: [BangPypers] Indian Python Software Society In-Reply-To: References: <20100618152307.GA8628@remy> <201006191548.56595.lawgon@au-kbc.org> <201006201018.42536.lawgon@au-kbc.org> Message-ID: On Sun, Jun 20, 2010 at 23:18, s|s wrote: > Python only forms part of rubrik of technology stack that everyone of > us uses. Linux, Windows, S60, MacOSX mostly form the underlying > operating system. Bunch of libraries form another bit important piece. > C/Java/.net form another piece of the puzzle by providing module > interfaces. There are frameworks and interfaces. All these things do > not exist in isolated forms. They are in constant flux. Sometimes even > competing languages like ruby become critical to solutions being > built. In this context, "only python" initiative presents an unclear > if not inappropriate picture to students. Pushing them to think of > technology for technologies sake instead of technology for finding > solutions. This will only happen if other pieces also become part of > knowledge base being imparted to the someone willing to learn. Right, but isnt that inter-pollination better suited to a generic Linux conference (commercially oriented or even a floss'y one, ala linux.conf.au) instead of a language specific one!? -- peace, vid || http://svaksha.com From lawgon at au-kbc.org Mon Jun 21 05:40:41 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Mon, 21 Jun 2010 09:10:41 +0530 Subject: [BangPypers] Indian Python Software Society In-Reply-To: References: <20100618152307.GA8628@remy> Message-ID: <201006210910.41961.lawgon@au-kbc.org> On Sunday 20 June 2010 23:03:13 s|s wrote: > In this context, "only python" initiative > this is not an 'only python' initiative. We are not telling people to only use python - I do not think a single member of this list only uses python. We use python, like python and are organising to meet other people who use python and like python. And we want to promote python. If you look at the posts on this list you will find many discussions on interaction between python and other languages - for example a recent thread on embedding python in C or was it embedding C in python? -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From fslash8 at gmail.com Mon Jun 21 06:17:58 2010 From: fslash8 at gmail.com (Shiv Shankar) Date: Mon, 21 Jun 2010 09:47:58 +0530 Subject: [BangPypers] Indian Python Software Society In-Reply-To: References: <20100618152307.GA8628@remy> <201006191548.56595.lawgon@au-kbc.org> <201006201018.42536.lawgon@au-kbc.org> Message-ID: Great initiative from who ever it is. To run pycon efficiently we do need a transparent governing organization driven by a community. From ardsrk at gmail.com Mon Jun 21 08:06:49 2010 From: ardsrk at gmail.com (Arvind Jamuna Dixit) Date: Mon, 21 Jun 2010 11:36:49 +0530 Subject: [BangPypers] June meet up In-Reply-To: References: Message-ID: This weekend ( June 26th or June 27th ) is fine for me. I would like to hear your apac talk and the whole apac experience. On Sun, Jun 20, 2010 at 8:44 PM, Noufal Ibrahim wrote: > It would be a pity if the group meetings didn't take place. We had a > good run the past few months. Is anyone game next weekend? We could do > what Arvind last suggested or I could rehash my apac talk. Or anything > else. > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Arvind From noufal at gmail.com Mon Jun 21 12:50:13 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 21 Jun 2010 16:20:13 +0530 Subject: [BangPypers] [X-post] : PyCon India artwork Message-ID: Hello everyone, Sorry about the cross posting. We're falling short in our publicity department and to that end require some good artwork to brand the conference. There are 3 things which we need. 1. A logo. We have some from last year which we can recycle but I'd like that to be a last resort - http://wiki.python.org/moin/PyConIndiaLogos 2. Some badges and an ad banner - Three similar themed ones for "I Support PYCon India", "I am speaking at PyCon India" and "I am attending PyCon India". We have one submission at http://wiki.python.org/moin/PyConIndia2010/Badges but I'm sure we can get some more. 3. T-shirt design - This will probably depend on the logo since it will have to be there on the T but neverthless... I'm sure we have a lot of budding digital artists here who can do a good job on this. The name fo the artist will of course be prominently mentioned and you'll get really good bragging rights. :) For something like the conference we're working on to succeed,we need volunteers for all things. Do help you where you can. Every little bit counts. Thanks -- ~noufal http://nibrahim.net.in From noufal at gmail.com Mon Jun 21 18:33:00 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 21 Jun 2010 22:03:00 +0530 Subject: [BangPypers] [X-post] : PyCon India artwork In-Reply-To: References: Message-ID: We have one more badge and it looks quite nice. Keep them coming! :) On Mon, Jun 21, 2010 at 4:20 PM, Noufal Ibrahim wrote: > Hello everyone, > ? ?Sorry about the cross posting. > > ? ?We're falling short in our publicity department and to that end > require some good artwork to brand the conference. > > ? ?There are 3 things which we need. > > ? ?1. A logo. We have some from last year which we can recycle but > I'd like that to be a last resort - > http://wiki.python.org/moin/PyConIndiaLogos > > ? ?2. Some badges and an ad banner - Three similar themed ones for "I > Support PYCon India", "I am speaking at PyCon India" and "I am > attending PyCon India". We have one submission at > http://wiki.python.org/moin/PyConIndia2010/Badges but I'm sure we can > get some more. > > ? ?3. T-shirt design - This will probably depend on the logo since it > will have to be there on the T but neverthless... > > ? ?I'm sure we have a lot of budding digital artists here who can do > a good job on this. The name fo the artist will of course be > prominently mentioned and you'll get really good bragging rights. :) > > ? ?For something like the conference we're working on to succeed,we > need volunteers for all things. Do help you where you can. Every > little bit counts. > > Thanks > > -- > ~noufal > http://nibrahim.net.in > -- ~noufal http://nibrahim.net.in From nitin.nitp at gmail.com Mon Jun 21 20:31:17 2010 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Tue, 22 Jun 2010 00:01:17 +0530 Subject: [BangPypers] [X-post] : PyCon India artwork In-Reply-To: References: Message-ID: hi Noufal, i wrote 2 mails, but couldn't get any response from you. are you getting my mails or not?? Nitin K On Mon, Jun 21, 2010 at 10:03 PM, Noufal Ibrahim wrote: > We have one more badge and it looks quite nice. Keep them coming! :) > > On Mon, Jun 21, 2010 at 4:20 PM, Noufal Ibrahim wrote: > > Hello everyone, > > Sorry about the cross posting. > > > > We're falling short in our publicity department and to that end > > require some good artwork to brand the conference. > > > > There are 3 things which we need. > > > > 1. A logo. We have some from last year which we can recycle but > > I'd like that to be a last resort - > > http://wiki.python.org/moin/PyConIndiaLogos > > > > 2. Some badges and an ad banner - Three similar themed ones for "I > > Support PYCon India", "I am speaking at PyCon India" and "I am > > attending PyCon India". We have one submission at > > http://wiki.python.org/moin/PyConIndia2010/Badges but I'm sure we can > > get some more. > > > > 3. T-shirt design - This will probably depend on the logo since it > > will have to be there on the T but neverthless... > > > > I'm sure we have a lot of budding digital artists here who can do > > a good job on this. The name fo the artist will of course be > > prominently mentioned and you'll get really good bragging rights. :) > > > > For something like the conference we're working on to succeed,we > > need volunteers for all things. Do help you where you can. Every > > little bit counts. > > > > Thanks > > > > -- > > ~noufal > > http://nibrahim.net.in > > > > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Nitin K From kpguy at rediffmail.com Tue Jun 22 04:23:43 2010 From: kpguy at rediffmail.com (Vikram ) Date: 22 Jun 2010 02:23:43 -0000 Subject: [BangPypers] =?utf-8?q?list_to_dictionary_problem?= Message-ID: <20100622022343.16000.qmail@f6mail-145-187.rediffmail.com> Suppose i have this list: >>> a = [['cat',2],['cat',5],['cat',9],['dog',6]] >>> a [['cat', 2], ['cat', 5], ['cat', 9], ['dog', 6]] Now, there is a nice way to obtain the value 9. >>> z = dict(a) >>> z {'dog': 6, 'cat': 9} Is there any elegant way to extract the value 2? (Value corresponding to the first occurence of 'cat' in the 2-D list). Thanks, Vikram From orsenthil at gmail.com Tue Jun 22 05:13:08 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Tue, 22 Jun 2010 08:43:08 +0530 Subject: [BangPypers] list to dictionary problem In-Reply-To: <20100622022343.16000.qmail@f6mail-145-187.rediffmail.com> References: <20100622022343.16000.qmail@f6mail-145-187.rediffmail.com> Message-ID: <20100622031308.GB3390@remy> On Tue, Jun 22, 2010 at 02:23:43AM -0000, Vikram wrote: > Suppose i have this list: > > >>> a = [['cat',2],['cat',5],['cat',9],['dog',6]] > >>> a > [['cat', 2], ['cat', 5], ['cat', 9], ['dog', 6]] > > Now, there is a nice way to obtain the value 9. This is using the side effect of dict creation. Not a nice way. :) The rule is that last value with the same key will be over-written. If you use it any of your larger applications, the next person who is going to read your code will likely be frustrated. > >>> z = dict(a) > >>> z > {'dog': 6, 'cat': 9} > > Is there any elegant way to extract the value 2? (Value corresponding to the first occurence of 'cat' in the 2-D list Nope, it is not elegant. The best way is to be explicit. Loop over list, create a dict with the value as the list of values the original list and then deal with the list value as you would like to. First element is "elegantly" [0] and the last element is "nicely" [-1]. :) -- Senthil We don't understand the software, and sometimes we don't understand the hardware, but we can *___see* the blinking lights! From orsenthil at gmail.com Tue Jun 22 05:35:49 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Tue, 22 Jun 2010 09:05:49 +0530 Subject: [BangPypers] missing something In-Reply-To: References: Message-ID: On Sat, Jun 19, 2010 at 8:56 PM, Zubin Mithra wrote: > Hi everyone, > > I think I`m missing something very basic or have a very basic concept > understood the wrong way, so I`d like to have some help here. Before, the real important thing, it would help to analyze these: What will happen in this snippet: class C: def a(self, a): print a def a(self, a, b=None): print a, b obj = C() obj.a(10) obj.a(10,20) And in this snippet: class C: def a(self, a, b=None): print a, b def a(self, a): print a obj = C() obj.a(10) obj.a(10,20) You will see that second one fails and the last method in the definition is taken as the signature all the times. ( I am trying to find a reference explanation, but i can't get), which also leads to The real important thing. :) These are not a good ways of doing in Python. In Python, all member functions are effectively 'virtual'. The last I saw these kind of methods were when studying C++ about virtual methods. You might just want to define a single method with the variable parameters set to a default, if you want to have any flexibility in invocation. -- Senthil From noufal at gmail.com Tue Jun 22 06:06:46 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 22 Jun 2010 09:36:46 +0530 Subject: [BangPypers] [X-post] : PyCon India artwork In-Reply-To: References: Message-ID: On Mon, Jun 21, 2010 at 10:03 PM, Noufal Ibrahim wrote: > We have one more badge and it looks quite nice. Keep them coming! :) A few more have come in and I've received a logo as well. I've added an extra page to hold logos and other non-badge artwork (the division is arbitrary) http://wiki.python.org/moin/PyConIndia2010/Artwork It would be nice if we could have a few logos. We need some "branding". Something we can scale down and use as the twitter pic and stuff like that. Thanks. -- ~noufal http://nibrahim.net.in From srinivas_thatiparthy at akebonosoft.com Tue Jun 22 06:26:46 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Tue, 22 Jun 2010 09:56:46 +0530 Subject: [BangPypers] missing something References: Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D833EE@astserver3.akebonosoft.com> Here goes my 2 cents, What you are trying to do is "method overloading" ,in static language terms. This doesn't exist in python.I am not sure about this..but probably python finds function objects with method name. If anybody clarifies on this topic,it's worth while to learn. anybody? Regards, Srini T. --Every day is a school day for me From srinivas_thatiparthy at akebonosoft.com Tue Jun 22 06:40:53 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Tue, 22 Jun 2010 10:10:53 +0530 Subject: [BangPypers] missing something References: <4EF2BF691B890546B2694C99A2852F0C01D833EE@astserver3.akebonosoft.com> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D833F0@astserver3.akebonosoft.com> A small correction, >>I am not sure about this..but probably python finds function objects with method name * and with out including method parameters.* Regards, Srini T. --Every day is a school day for me From ideamonk at gmail.com Tue Jun 22 07:43:40 2010 From: ideamonk at gmail.com (Abhishek Mishra) Date: Tue, 22 Jun 2010 11:13:40 +0530 Subject: [BangPypers] June meet up In-Reply-To: References: Message-ID: +1 for the apac talk, I and a friend would definitely be interested. On Mon, Jun 21, 2010 at 11:36 AM, Arvind Jamuna Dixit wrote: > This weekend ( June 26th or June 27th ) is fine for me. > I would like to hear your apac talk and the whole apac experience. > > On Sun, Jun 20, 2010 at 8:44 PM, Noufal Ibrahim wrote: > > From nitin.nitp at gmail.com Tue Jun 22 10:54:14 2010 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Tue, 22 Jun 2010 14:24:14 +0530 Subject: [BangPypers] list to dictionary problem In-Reply-To: <20100622031308.GB3390@remy> References: <20100622022343.16000.qmail@f6mail-145-187.rediffmail.com> <20100622031308.GB3390@remy> Message-ID: for such things, always try to prefer tuple ex: >>> cache= (('cat',2),('cat',5),('cat',9),('dog',6)) >>> for x,y in cache: print (x,y) cat 2 cat 5 cat 9 dog 6 On Tue, Jun 22, 2010 at 8:43 AM, Senthil Kumaran wrote: > On Tue, Jun 22, 2010 at 02:23:43AM -0000, Vikram wrote: > > Suppose i have this list: > > > > >>> a = [['cat',2],['cat',5],['cat',9],['dog',6]] > > >>> a > > [['cat', 2], ['cat', 5], ['cat', 9], ['dog', 6]] > > > > Now, there is a nice way to obtain the value 9. > > This is using the side effect of dict creation. Not a nice way. :) > The rule is that last value with the same key will be over-written. If > you use it any of your larger applications, the next person who is > going to read your code will likely be frustrated. > > > >>> z = dict(a) > > >>> z > > {'dog': 6, 'cat': 9} > > > > Is there any elegant way to extract the value 2? (Value corresponding to > the first occurence of 'cat' in the 2-D list > > Nope, it is not elegant. > The best way is to be explicit. Loop over list, create a dict with the > value as the list of values the original list and then deal with the > list value as you would like to. First element is "elegantly" [0] and > the last element is "nicely" [-1]. :) > > -- > Senthil > > We don't understand the software, and sometimes we don't understand the > hardware, but we can *___ see* the blinking lights! > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Nitin K From jeffjosejeff at gmail.com Wed Jun 23 04:12:56 2010 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Wed, 23 Jun 2010 07:42:56 +0530 Subject: [BangPypers] list to dictionary problem In-Reply-To: References: <20100622022343.16000.qmail@f6mail-145-187.rediffmail.com> <20100622031308.GB3390@remy> Message-ID: 2 methods spring to my mind, first one is what Nitin Kumar has already mentioned. Looping over a list of tuples. Make sure you have a sorted list first. a.sort() for key, value in a: if key == "cat": break # now value is 2 The second method is a little fancy, mentioning it here for the sake of completeness. # Note, I havent tested this code, but it should work. import itertools a.sort() # this is necessary, and anyway for a tuple sort() sorts it by first element groups = itertools.groupby(a, key = lambda x: x[0]) # now groups would look something like this # [("cat", ), ("dog", )] # now loop through "groups", and when you hit "cat", extract the first item out of for key, iterator in groups: if key == "cat": break firstValue = list(iterator)[0] now iterator will yield values of "cat", starting with 2, 5, 9, 6 On Tue, Jun 22, 2010 at 2:24 PM, Nitin Kumar wrote: > for such things, always try to prefer tuple > > ex: > > >>> cache= (('cat',2),('cat',5),('cat',9),('dog',6)) > >>> for x,y in cache: > print (x,y) > > cat 2 > cat 5 > cat 9 > dog 6 > > On Tue, Jun 22, 2010 at 8:43 AM, Senthil Kumaran >wrote: > > > On Tue, Jun 22, 2010 at 02:23:43AM -0000, Vikram wrote: > > > Suppose i have this list: > > > > > > >>> a = [['cat',2],['cat',5],['cat',9],['dog',6]] > > > >>> a > > > [['cat', 2], ['cat', 5], ['cat', 9], ['dog', 6]] > > > > > > Now, there is a nice way to obtain the value 9. > > > > This is using the side effect of dict creation. Not a nice way. :) > > The rule is that last value with the same key will be over-written. If > > you use it any of your larger applications, the next person who is > > going to read your code will likely be frustrated. > > > > > >>> z = dict(a) > > > >>> z > > > {'dog': 6, 'cat': 9} > > > > > > Is there any elegant way to extract the value 2? (Value corresponding > to > > the first occurence of 'cat' in the 2-D list > > > > Nope, it is not elegant. > > The best way is to be explicit. Loop over list, create a dict with the > > value as the list of values the original list and then deal with the > > list value as you would like to. First element is "elegantly" [0] and > > the last element is "nicely" [-1]. :) > > > > -- > > Senthil > > > > We don't understand the software, and sometimes we don't understand the > > hardware, but we can *___ see* the blinking lights! > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Nitin K > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From noufal at gmail.com Wed Jun 23 08:27:24 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 23 Jun 2010 11:57:24 +0530 Subject: [BangPypers] list to dictionary problem In-Reply-To: <20100622022343.16000.qmail@f6mail-145-187.rediffmail.com> References: <20100622022343.16000.qmail@f6mail-145-187.rediffmail.com> Message-ID: On Tue, Jun 22, 2010 at 7:53 AM, Vikram wrote: > Suppose i have this list: > >>>> a = [['cat',2],['cat',5],['cat',9],['dog',6]] >>>> a > [['cat', 2], ['cat', 5], ['cat', 9], ['dog', 6]] > > Now, there is a nice way to obtain the value 9. > >>>> z = dict(a) >>>> z > {'dog': 6, 'cat': 9} > > Is there any elegant way to extract the value 2? (Value corresponding to the first occurence of 'cat' in the 2-D list). I don't know about elegant/nice but the first thing that occured to me was x = [['cat', 2], ['cat', 5], ['cat', 9], ['dog', 6]] [t[1] for t in x if t[0] == 'cat'][-1] # Last value (no error checking) (t[1] for t in x if t[0] == 'cat').next() # First value. You can use a genexp for the latter since we can stop as soon as we see one item. For the former, you'll have to go through the whole list anyway. I mtimed the former against the dict approach and got roughly the same speed (there was some 0.01 sec. difference). The first is a little wasteful though. You make an entire list and then throw it away. -- ~noufal http://nibrahim.net.in From pranny at gmail.com Wed Jun 23 08:41:47 2010 From: pranny at gmail.com (Pranav Prakash) Date: Wed, 23 Jun 2010 12:11:47 +0530 Subject: [BangPypers] Facebook Event for PyCon India 2010 Message-ID: Hi, I believe it would be great if the admins could create a Facebook event for PyCon India 2010. This would cause more people to know about the event. -- Pranav Prakash "This life is more than ordinary" http://twitter.com/pranavprakash From srinivas_thatiparthy at akebonosoft.com Wed Jun 23 08:49:05 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Wed, 23 Jun 2010 12:19:05 +0530 Subject: [BangPypers] Facebook Event for PyCon India 2010 References: Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D833FF@astserver3.akebonosoft.com> +1 for this... Regards, Srini T. --The real failure is failing to try for success. From orsenthil at gmail.com Wed Jun 23 09:27:42 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Wed, 23 Jun 2010 12:57:42 +0530 Subject: [BangPypers] Facebook Event for PyCon India 2010 In-Reply-To: References: Message-ID: On Wed, Jun 23, 2010 at 12:11 PM, Pranav Prakash wrote: > Hi, > > I believe it would be great if the admins could create a Facebook event for > PyCon India 2010. This would cause more people to know about the event. If you are interested, you go ahead and create this one. Share with others so that they can join in. -- Senthil From noufal at gmail.com Wed Jun 23 09:30:12 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 23 Jun 2010 13:00:12 +0530 Subject: [BangPypers] Facebook Event for PyCon India 2010 In-Reply-To: References: Message-ID: On Wed, Jun 23, 2010 at 12:57 PM, Senthil Kumaran wrote: > On Wed, Jun 23, 2010 at 12:11 PM, Pranav Prakash wrote: >> Hi, >> >> I believe it would be great if the admins could create a Facebook event for >> PyCon India 2010. This would cause more people to know about the event. > > If you are interested, you go ahead and create this one. ?Share with > others so that they can join in. It has been done. http://www.facebook.com/event.php?eid=137812032902811 Please spread the word. Thanks Pranav. -- ~noufal http://nibrahim.net.in From noufal at gmail.com Wed Jun 23 18:29:27 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Wed, 23 Jun 2010 21:59:27 +0530 Subject: [BangPypers] [X-post] : PyCon India artwork In-Reply-To: References: Message-ID: I've uploaded some more that I got to the Badges page (from the same chap who designed the runner up logos last year). I think we can use one of them now. http://wiki.python.org/moin/PyConIndia2010/Badges I personally like the last set since they're somewhat compact and would fit on a sidebar, in a blog post. Also, the "speaker" pun really hits me right there. Any comments? If not, we'll move the set to the official site and put some HTML snippets to include them and link back so that we can get some traffic. We need some logos now. The one up there is good but competition is always a good thing. We can use the one we select as the twitter picture and on all our branding stuff. This is my last X-post. Follow up discussions will only be there on inpycon. Sorry about that and thanks for the patience. On Tue, Jun 22, 2010 at 9:36 AM, Noufal Ibrahim wrote: > On Mon, Jun 21, 2010 at 10:03 PM, Noufal Ibrahim wrote: >> We have one more badge and it looks quite nice. Keep them coming! :) > > A few more have come in and I've received a logo as well. > > I've added an extra page to hold logos and other non-badge artwork > (the division is arbitrary) > http://wiki.python.org/moin/PyConIndia2010/Artwork > > It would be nice if we could have a few logos. We need some > "branding". Something we can scale down and use as the twitter pic and > stuff like that. > > Thanks. > > > -- > ~noufal > http://nibrahim.net.in > -- ~noufal http://nibrahim.net.in From noufal at gmail.com Thu Jun 24 07:19:56 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 24 Jun 2010 10:49:56 +0530 Subject: [BangPypers] June meet up In-Reply-To: References: Message-ID: On Tue, Jun 22, 2010 at 11:13 AM, Abhishek Mishra wrote: > +1 for the apac talk, I and a friend would definitely be interested. That's 3 people including me. Anyone else? What about the venue? We could ask TW but I'd prefer doing it somewhere else this time. Suggestions/ideas? -- ~noufal http://nibrahim.net.in From ardsrk at gmail.com Thu Jun 24 07:47:39 2010 From: ardsrk at gmail.com (Arvind Jamuna Dixit) Date: Thu, 24 Jun 2010 11:17:39 +0530 Subject: [BangPypers] June meet up In-Reply-To: References: Message-ID: On Thu, Jun 24, 2010 at 10:49 AM, Noufal Ibrahim wrote: > What about the venue? We could ask TW but I'd prefer doing it > somewhere else this time. > Saju on this mailing list offered to host meetups at NSRCEL, IIM-B. That could be one option. Any specific reasons for having the meetup elsewhere? -- Arvind From noufal at gmail.com Thu Jun 24 07:48:49 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 24 Jun 2010 11:18:49 +0530 Subject: [BangPypers] June meet up In-Reply-To: References: Message-ID: On Thu, Jun 24, 2010 at 11:17 AM, Arvind Jamuna Dixit wrote: > On Thu, Jun 24, 2010 at 10:49 AM, Noufal Ibrahim wrote: > >> What about the venue? We could ask TW but I'd prefer doing it >> somewhere else this time. >> > > Saju on this mailing list offered to host meetups at NSRCEL, IIM-B. > > That could be one option. Any specific reasons for having the meetup > elsewhere? Variety. No *real* reason. -- ~noufal http://nibrahim.net.in From ardsrk at gmail.com Thu Jun 24 07:55:05 2010 From: ardsrk at gmail.com (Arvind Jamuna Dixit) Date: Thu, 24 Jun 2010 11:25:05 +0530 Subject: [BangPypers] June meet up In-Reply-To: References: Message-ID: On Thu, Jun 24, 2010 at 11:18 AM, Noufal Ibrahim wrote: > Variety. No *real* reason. > In that case we could ask Saju and have the meetup at NSRCEL, IIM-B. How about this Sunday (June 27th) at 15:00? -- Arvind From noufal at gmail.com Thu Jun 24 08:04:07 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 24 Jun 2010 11:34:07 +0530 Subject: [BangPypers] June meet up In-Reply-To: References: Message-ID: On Thu, Jun 24, 2010 at 11:25 AM, Arvind Jamuna Dixit wrote: > On Thu, Jun 24, 2010 at 11:18 AM, Noufal Ibrahim wrote: > >> Variety. No *real* reason. >> > > In that case we could ask Saju and have the meetup at NSRCEL, IIM-B. > > How about this Sunday (June 27th) at 15:00? Fine by me. Any other opinions/suggestions? -- ~noufal http://nibrahim.net.in From fslash8 at gmail.com Thu Jun 24 08:46:32 2010 From: fslash8 at gmail.com (Shiv Shankar) Date: Thu, 24 Jun 2010 12:16:32 +0530 Subject: [BangPypers] June meet up In-Reply-To: References: Message-ID: I'd like to hear it too. -- shiv From rahul8590 at gmail.com Thu Jun 24 10:10:16 2010 From: rahul8590 at gmail.com (Rahul R) Date: Thu, 24 Jun 2010 13:40:16 +0530 Subject: [BangPypers] June meet up In-Reply-To: References: Message-ID: On Thu, Jun 24, 2010 at 10:49 AM, Noufal Ibrahim wrote: > On Tue, Jun 22, 2010 at 11:13 AM, Abhishek Mishra > wrote: > > +1 for the apac talk, I and a friend would definitely be interested. > > That's 3 people including me. Anyone else? > > What about the venue? We could ask TW but I'd prefer doing it > somewhere else this time. > > Suggestions/ideas? > > well i an newbie and have recently joined the community , can i come too ? From noufal at gmail.com Thu Jun 24 10:19:27 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 24 Jun 2010 13:49:27 +0530 Subject: [BangPypers] June meet up In-Reply-To: References: Message-ID: On Thu, Jun 24, 2010 at 1:40 PM, Rahul R wrote: > On Thu, Jun 24, 2010 at 10:49 AM, Noufal Ibrahim wrote: > >> On Tue, Jun 22, 2010 at 11:13 AM, Abhishek Mishra >> wrote: >> > +1 for the apac talk, I and a friend would definitely be interested. >> >> That's 3 people including me. Anyone else? >> >> What about the venue? We could ask TW but I'd prefer doing it >> somewhere else this time. >> >> Suggestions/ideas? >> >> > well i an newbie and have recently joined the community , can i come too ? Sure. -- ~noufal http://nibrahim.net.in From noufal at gmail.com Thu Jun 24 13:53:46 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 24 Jun 2010 17:23:46 +0530 Subject: [BangPypers] June meet up In-Reply-To: <4C231DBE.5030901@sudheer.net> References: <4C231DBE.5030901@sudheer.net> Message-ID: Okay. I think we're confirmed. The guys from NSRCEL called me and told me that they have the room from 1500 to 1730. Venue : NSRCEL, IIM Bangalore, http://maps.google.com/maps/ms?msa=0&msid=107073075285608556525.000469271b87949e641cd&iwloc=0004692720f74c73e0a21 Time : 1530 Date : Sunday, 27 June 2010 On Thu, Jun 24, 2010 at 2:26 PM, Sudheer Satyanarayana wrote: > >> That's 3 people including me. Anyone else? >> >> > > I'm interested to join. > > Can you please tell me the exact location? > > > -- > With warm regards, > Sudheer. S > Personal home page - http://sudheer.net | Tech Chorus - > http://techchorus.net > Web and IT services - http://binaryvibes.co.in > -- ~noufal http://nibrahim.net.in From venkat83 at gmail.com Thu Jun 24 14:06:32 2010 From: venkat83 at gmail.com (Venkatraman S) Date: Thu, 24 Jun 2010 17:36:32 +0530 Subject: [BangPypers] June meet up In-Reply-To: References: <4C231DBE.5030901@sudheer.net> Message-ID: On Thu, Jun 24, 2010 at 5:23 PM, Noufal Ibrahim wrote: > Okay. I think we're confirmed. The guys from NSRCEL called me and told > me that they have the room from 1500 to 1730. > > Venue : NSRCEL, IIM Bangalore, > > http://maps.google.com/maps/ms?msa=0&msid=107073075285608556525.000469271b87949e641cd&iwloc=0004692720f74c73e0a21 > Time : 1530 > Date : Sunday, 27 June 2010 > Whats the apac talk about? slides? -V From noufal at gmail.com Thu Jun 24 15:03:26 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 24 Jun 2010 18:33:26 +0530 Subject: [BangPypers] June meet up In-Reply-To: References: <4C231DBE.5030901@sudheer.net> Message-ID: Using Py ode in games. The slides are not online. Mostly code walk through. On 6/24/10, Venkatraman S wrote: > On Thu, Jun 24, 2010 at 5:23 PM, Noufal Ibrahim wrote: > >> Okay. I think we're confirmed. The guys from NSRCEL called me and told >> me that they have the room from 1500 to 1730. >> >> Venue : NSRCEL, IIM Bangalore, >> >> http://maps.google.com/maps/ms?msa=0&msid=107073075285608556525.000469271b87949e641cd&iwloc=0004692720f74c73e0a21 >> Time : 1530 >> Date : Sunday, 27 June 2010 >> > > Whats the apac talk about? slides? > > -V > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ~noufal http://nibrahim.net.in From abpillai at gmail.com Thu Jun 24 15:40:13 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 24 Jun 2010 19:10:13 +0530 Subject: [BangPypers] Facebook Event for PyCon India 2010 In-Reply-To: References: Message-ID: On Wed, Jun 23, 2010 at 1:00 PM, Noufal Ibrahim wrote: > On Wed, Jun 23, 2010 at 12:57 PM, Senthil Kumaran > wrote: > > On Wed, Jun 23, 2010 at 12:11 PM, Pranav Prakash > wrote: > >> Hi, > >> > >> I believe it would be great if the admins could create a Facebook event > for > >> PyCon India 2010. This would cause more people to know about the event. > > > > If you are interested, you go ahead and create this one. Share with > > others so that they can join in. > > > It has been done. http://www.facebook.com/event.php?eid=137812032902811 > Hmmm. "You must login to see this page". I deleted my FB account a month back. Is there a way to make this link public for anyone to see ? > > Please spread the word. > > Thanks Pranav. > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From kausikram at gmail.com Thu Jun 24 20:58:05 2010 From: kausikram at gmail.com (kausikram krishnasayee) Date: Fri, 25 Jun 2010 00:28:05 +0530 Subject: [BangPypers] Indian Python Software Society In-Reply-To: <201006201018.42536.lawgon@au-kbc.org> References: <20100618152307.GA8628@remy> <201006191548.56595.lawgon@au-kbc.org> <201006201018.42536.lawgon@au-kbc.org> Message-ID: > > they did not (except possibly Kaushik who did the formatting so may glanced > at > the content ah yes, after point 9 i started concentration on the whitespaces and wiki format and not the content. -- Kausikram Krishnasayee Company: http://silverstripesoftware.com | Webpage: kausikram.net | Blog: blog.kausikram.net | Twitter: http://twitter.com/kausikram | Email: kausikram at gmail.com | Mobile: +91 9884246490 From kpguy at rediffmail.com Thu Jun 24 21:48:48 2010 From: kpguy at rediffmail.com (Vikram ) Date: 24 Jun 2010 19:48:48 -0000 Subject: [BangPypers] =?utf-8?q?sorting_of_list?= In-Reply-To: Message-ID: <1277394805.S.8737.49802.F.H.Tk5vdWZhbCBJYnJhaGltAFJlOiBbQmFuZ1B5cGVyc10gSnVuZSBtZWV0IHVw.f6-144-158.1277408928.32965@webmail.rediffmail.com> Suppose i have this: ------ >>> z1 = [[34,44,'1011'],[40,60,'1011'],[50,50,'1013'],[40,20,'1011'],[10,30,'1013']] >>> z1 [[34, 44, '1011'], [40, 60, '1011'], [50, 50, '1013'], [40, 20, '1011'], [10, 30, '1013']] >>> for i in z1: print i [34, 44, '1011'] [40, 60, '1011'] [50, 50, '1013'] [40, 20, '1011'] [10, 30, '1013'] >>> ---- how do i sort the nested list z1 so as to obtain: bla = [[34,44,'1011'],[40,20,'1011'],[40,60,'1011'],[10,30,'1013'],[50,50,'1013']] From navin.kabra at gmail.com Fri Jun 25 04:07:50 2010 From: navin.kabra at gmail.com (Navin Kabra) Date: Fri, 25 Jun 2010 07:37:50 +0530 Subject: [BangPypers] sorting of list In-Reply-To: <1277394805.S.8737.49802.F.H.Tk5vdWZhbCBJYnJhaGltAFJlOiBbQmFuZ1B5cGVyc10gSnVuZSBtZWV0IHVw.f6-144-158.1277408928.32965@webmail.rediffmail.com> References: <1277394805.S.8737.49802.F.H.Tk5vdWZhbCBJYnJhaGltAFJlOiBbQmFuZ1B5cGVyc10gSnVuZSBtZWV0IHVw.f6-144-158.1277408928.32965@webmail.rediffmail.com> Message-ID: On Fri, Jun 25, 2010 at 1:18 AM, Vikram wrote: > Suppose i have this: > >>> z1 = > [[34,44,'1011'],[40,60,'1011'],[50,50,'1013'],[40,20,'1011'],[10,30,'1013']] > how do i sort the nested list z1 so as to obtain: > bla = > [[34,44,'1011'],[40,20,'1011'],[40,60,'1011'],[10,30,'1013'],[50,50,'1013']] > It appears that you want to sort by the 3rd, then 1st and then 2nd element of each sublist. This is how you could do it: z1.sort(key=lambda x: (x[2],x[0],x[1])) print z1 OR sorted(z1,key=lambda x: (x[2],x[0],x[1])) From lawgon at au-kbc.org Fri Jun 25 04:52:26 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 25 Jun 2010 08:22:26 +0530 Subject: [BangPypers] designing programs Message-ID: <201006250822.27014.lawgon@au-kbc.org> hi, what tools do people use when designing software? I tried dia once or twice but found it rather cumbersome -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From noufal at gmail.com Fri Jun 25 05:04:37 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 25 Jun 2010 08:34:37 +0530 Subject: [BangPypers] designing programs In-Reply-To: <201006250822.27014.lawgon@au-kbc.org> References: <201006250822.27014.lawgon@au-kbc.org> Message-ID: Nothing beats a clean white sheet of paper and a nice pen for me. No enforced structure. No barriers. Once I start, I use org mode to keep a log/track. I also find that writing documentation before the program is fully done clears things in my head. On 6/25/10, Kenneth Gonsalves wrote: > hi, > > what tools do people use when designing software? I tried dia once or twice > but found it rather cumbersome > -- > Regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ~noufal http://nibrahim.net.in From rmathews at gmail.com Fri Jun 25 05:05:23 2010 From: rmathews at gmail.com (Roshan Mathews) Date: Fri, 25 Jun 2010 08:35:23 +0530 Subject: [BangPypers] designing programs In-Reply-To: <201006250822.27014.lawgon@au-kbc.org> References: <201006250822.27014.lawgon@au-kbc.org> Message-ID: On Fri, Jun 25, 2010 at 08:22, Kenneth Gonsalves wrote: > what tools do people use when designing software? I tried dia once or twice > but found it rather cumbersome > UI? http://www.balsamiq.com/products/mockups is popular. I prefer paper/whiteboard. Nothing beats having a designer do it for you. -- http://roshan.mathews.in/ From lawgon at au-kbc.org Fri Jun 25 05:33:58 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 25 Jun 2010 09:03:58 +0530 Subject: [BangPypers] designing programs In-Reply-To: References: <201006250822.27014.lawgon@au-kbc.org> Message-ID: <201006250903.58366.lawgon@au-kbc.org> On Friday 25 June 2010 08:35:23 Roshan Mathews wrote: > On Fri, Jun 25, 2010 at 08:22, Kenneth Gonsalves wrote: > > what tools do people use when designing software? I tried dia once or > > twice but found it rather cumbersome > > UI? http://www.balsamiq.com/products/mockups is popular. I prefer > paper/whiteboard. Nothing beats having a designer do it for you. > what do you mean by 'having a designer do it for you'? -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From rmathews at gmail.com Fri Jun 25 06:04:42 2010 From: rmathews at gmail.com (Roshan Mathews) Date: Fri, 25 Jun 2010 09:34:42 +0530 Subject: [BangPypers] designing programs In-Reply-To: <201006250903.58366.lawgon@au-kbc.org> References: <201006250822.27014.lawgon@au-kbc.org> <201006250903.58366.lawgon@au-kbc.org> Message-ID: On Fri, Jun 25, 2010 at 09:03, Kenneth Gonsalves wrote: >> UI? ?http://www.balsamiq.com/products/mockups is popular. ?I prefer >> paper/whiteboard. ?Nothing beats having a designer do it for you. > what do you mean by 'having a designer do it for you'? > There are people who do UI design. Pay/hire them ... maybe I should have started that sentence with a "But...". -- http://roshan.mathews.in/ From lawgon at au-kbc.org Fri Jun 25 07:22:47 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 25 Jun 2010 10:52:47 +0530 Subject: [BangPypers] designing programs In-Reply-To: References: <201006250822.27014.lawgon@au-kbc.org> <201006250903.58366.lawgon@au-kbc.org> Message-ID: <201006251052.47333.lawgon@au-kbc.org> On Friday 25 June 2010 09:34:42 Roshan Mathews wrote: > On Fri, Jun 25, 2010 at 09:03, Kenneth Gonsalves wrote: > >> UI? http://www.balsamiq.com/products/mockups is popular. I prefer > >> paper/whiteboard. Nothing beats having a designer do it for you. > > > > what do you mean by 'having a designer do it for you'? > > There are people who do UI design. Pay/hire them ... maybe I should > have started that sentence with a "But...". > I am not talking of ui design - I am talking about program design. I do not know what the technical word for it is but what I mean is that when a program has to do something one has to sketch out the data structures and functions that are needed to get the thing done with the least possible effort. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From me at elvis.co.in Fri Jun 25 07:27:00 2010 From: me at elvis.co.in (Elvis Joel D'Souza) Date: Fri, 25 Jun 2010 10:57:00 +0530 Subject: [BangPypers] designing programs In-Reply-To: <201006251052.47333.lawgon@au-kbc.org> References: <201006250822.27014.lawgon@au-kbc.org> <201006250903.58366.lawgon@au-kbc.org> <201006251052.47333.lawgon@au-kbc.org> Message-ID: On Fri, Jun 25, 2010 at 10:52 AM, Kenneth Gonsalves wrote: > On Friday 25 June 2010 09:34:42 Roshan Mathews wrote: > > On Fri, Jun 25, 2010 at 09:03, Kenneth Gonsalves > wrote: > > >> UI? http://www.balsamiq.com/products/mockups is popular. I prefer > > >> paper/whiteboard. Nothing beats having a designer do it for you. > > > > > > what do you mean by 'having a designer do it for you'? > > > > There are people who do UI design. Pay/hire them ... maybe I should > > have started that sentence with a "But...". > > > > I am not talking of ui design - I am talking about program design. I do not > know what the technical word for it is but what I mean is that when a > program > has to do something one has to sketch out the data structures and functions > that are needed to get the thing done with the least possible effort. > I think you are referring to Design Patterns Head First Design Patterns can help... http://oreilly.com/catalog/9780596007126 > -- > Regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Elvis Joel D'Souza | me at elvis.co.in Mangalore/Bangalore, India From orsenthil at gmail.com Fri Jun 25 07:31:34 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Fri, 25 Jun 2010 11:01:34 +0530 Subject: [BangPypers] designing programs In-Reply-To: <201006251052.47333.lawgon@au-kbc.org> References: <201006250822.27014.lawgon@au-kbc.org> <201006250903.58366.lawgon@au-kbc.org> <201006251052.47333.lawgon@au-kbc.org> Message-ID: <20100625053134.GB7017@remy> On Fri, Jun 25, 2010 at 10:52:47AM +0530, Kenneth Gonsalves wrote: > I am not talking of ui design - I am talking about program design. I do not > know what the technical word for it is but what I mean is that when a program > has to do something one has to sketch out the data structures and functions > that are needed to get the thing done with the least possible effort. This is an interesting question. Here are my thoughts on it. - If you can identify the design pattern that your program might fall into, it would be best. Most often by reading and modelling after the existing ones or using libraries we tend to use the design patterns. So adopting the pattern might be a second or a later step. - Write the Problem Definition in English/Native language. - Write the Answer in English/Native language.If the Answer is more than one step. Write down in to distinct points. If there are any interactions, note it down. - Give function names for your answers and draw the connection. While using python, it is not necessary to settle on the parameters in the first shot, you come back to it later. - Make the first small program which does something and then improve it to do something more. You can do it all in any editor or in piece of paper. HTH, -- Senthil From lawgon at au-kbc.org Fri Jun 25 07:34:31 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 25 Jun 2010 11:04:31 +0530 Subject: [BangPypers] designing programs In-Reply-To: References: <201006250822.27014.lawgon@au-kbc.org> <201006251052.47333.lawgon@au-kbc.org> Message-ID: <201006251104.31817.lawgon@au-kbc.org> On Friday 25 June 2010 10:57:00 Elvis Joel D'Souza wrote: > > program > > has to do something one has to sketch out the data structures and > > functions that are needed to get the thing done with the least possible > > effort. > > I think you are referring to Design Patterns > Head First Design Patterns can help... > http://oreilly.com/catalog/9780596007126 > I am not referring to Design Patterns - I think flow charting is the word I am looking for -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From benignbala at gmail.com Fri Jun 25 07:39:01 2010 From: benignbala at gmail.com (Balachandran Sivakumar) Date: Fri, 25 Jun 2010 11:09:01 +0530 Subject: [BangPypers] designing programs In-Reply-To: <201006251104.31817.lawgon@au-kbc.org> References: <201006250822.27014.lawgon@au-kbc.org> <201006251052.47333.lawgon@au-kbc.org> <201006251104.31817.lawgon@au-kbc.org> Message-ID: Hi, On Fri, Jun 25, 2010 at 11:04 AM, Kenneth Gonsalves wrote: >> > > I am not referring to Design Patterns - I think flow charting is the word I am > looking for You can use UML with its Sequence Diagrams and State machine diagrams etc. to design/model systems. There are tools like BoUML and Umrello in GNU/Linux for that. Thanks -- Thank you Balachandran Sivakumar Arise Awake and stop not till the goal is reached. Mail: benignbala at gmail.com Blog: http://benignbala.wordpress.com/ From lawgon at au-kbc.org Fri Jun 25 07:47:29 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 25 Jun 2010 11:17:29 +0530 Subject: [BangPypers] designing programs In-Reply-To: <20100625053134.GB7017@remy> References: <201006250822.27014.lawgon@au-kbc.org> <201006251052.47333.lawgon@au-kbc.org> <20100625053134.GB7017@remy> Message-ID: <201006251117.29133.lawgon@au-kbc.org> On Friday 25 June 2010 11:01:34 Senthil Kumaran wrote: > > I am not talking of ui design - I am talking about program design. I do > > not know what the technical word for it is but what I mean is that when > > a program has to do something one has to sketch out the data structures > > and functions that are needed to get the thing done with the least > > possible effort. > > This is an interesting question. Here are my thoughts on it. > > - If you can identify the design pattern that your program might fall > into, it would be best. Most often by reading and modelling after > the existing ones or using libraries we tend to use the design > patterns. So adopting the pattern might be a second or a later step. > > - Write the Problem Definition in English/Native language. > > - Write the Answer in English/Native language.If the Answer is more > than one step. Write down in to distinct points. If there are any > interactions, note it down. > > - Give function names for your answers and draw the connection. While > using python, it is not necessary to settle on the parameters in > the first shot, you come back to it later. > > - Make the first small program which does something and then improve > it to do something more. > > You can do it all in any editor or in piece of paper. > I must confess that my workflow at present is like this: 1. take a small piece of the problem 2. think about it - play games, go for walks and do anything to postpone starting work on it. 3. write comments on the steps to solve the piece 4. fill in the code and get it to work 5. keep testing it and fixing 6. go to the next piece and repeat the above (and make sure it works with the first piece) 7. modify or rewrite the first piece to fit with the second and so on with small additions as we go on. for one particular very complicated program, I modelled the whole workflow in dia - and found that the code worked perfectly on the first try. But I found dia a bit cumbersome, so I am looking for an alternative. I tried freemind, but that is good for talks, articles etc, does not really fit for programming. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From lawgon at au-kbc.org Fri Jun 25 07:48:38 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 25 Jun 2010 11:18:38 +0530 Subject: [BangPypers] designing programs In-Reply-To: References: <201006250822.27014.lawgon@au-kbc.org> <201006251104.31817.lawgon@au-kbc.org> Message-ID: <201006251118.38349.lawgon@au-kbc.org> On Friday 25 June 2010 11:09:01 Balachandran Sivakumar wrote: > > I am not referring to Design Patterns - I think flow charting is the word > > I am looking for > > You can use UML with its Sequence Diagrams and State machine > diagrams etc. to design/model systems. There are tools like BoUML and > Umrello in GNU/Linux for that. Thanks > ouch - I do not have time or the energy to learn a new language -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From thinrhino at gmail.com Fri Jun 25 07:47:43 2010 From: thinrhino at gmail.com (ThinRhino) Date: Fri, 25 Jun 2010 11:17:43 +0530 Subject: [BangPypers] designing programs In-Reply-To: <201006251052.47333.lawgon@au-kbc.org> References: <201006250822.27014.lawgon@au-kbc.org> <201006250903.58366.lawgon@au-kbc.org> <201006251052.47333.lawgon@au-kbc.org> Message-ID: On 25 June 2010 10:52, Kenneth Gonsalves wrote: > > I am not talking of ui design - I am talking about program design. I do not > know what the technical word for it is but what I mean is that when a > program > has to do something one has to sketch out the data structures and functions > that are needed to get the thing done with the least possible effort. > UML is wht I guess u r looking out for. -- Ships are safe in the harbour But that is not what ships are built for From rmathews at gmail.com Fri Jun 25 07:52:34 2010 From: rmathews at gmail.com (Roshan Mathews) Date: Fri, 25 Jun 2010 11:22:34 +0530 Subject: [BangPypers] designing programs In-Reply-To: <201006251117.29133.lawgon@au-kbc.org> References: <201006250822.27014.lawgon@au-kbc.org> <201006251052.47333.lawgon@au-kbc.org> <20100625053134.GB7017@remy> <201006251117.29133.lawgon@au-kbc.org> Message-ID: On Fri, Jun 25, 2010 at 11:17, Kenneth Gonsalves wrote: > for one particular very complicated program, I modelled the whole workflow in > dia - and found that the code worked perfectly on the first try. But I found > dia a bit cumbersome, so I am looking for an alternative. I tried freemind, > but that is good for talks, articles etc, does not really fit for programming. > Can you show what that (the dia workflow design) looked like? I just go with plain text brain dumps ... so I guess a mind-mapping tool might be the equivalent thing if you're a visual person. Why do you feel freemind isn't a good fit for this purpose? -- http://roshan.mathews.in/ From abpillai at gmail.com Fri Jun 25 08:04:15 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 25 Jun 2010 11:34:15 +0530 Subject: [BangPypers] designing programs In-Reply-To: <201006250822.27014.lawgon@au-kbc.org> References: <201006250822.27014.lawgon@au-kbc.org> Message-ID: On Fri, Jun 25, 2010 at 8:22 AM, Kenneth Gonsalves wrote: > hi, > > what tools do people use when designing software? I tried dia once or twice > but found it rather cumbersome > For me it is almost always a long walk, with just the ideas floating inside my head. After the end of it, I will have it sorted out mostly. Dia/UML ? That is for enterprise or team software. If this is about designing your own stuff as a 1 man army, all you need as tools is a pencil and paper. > -- > Regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From steve at lonetwin.net Fri Jun 25 08:08:46 2010 From: steve at lonetwin.net (steve) Date: Fri, 25 Jun 2010 11:38:46 +0530 Subject: [BangPypers] designing programs In-Reply-To: <201006251104.31817.lawgon@au-kbc.org> References: <201006250822.27014.lawgon@au-kbc.org> <201006251052.47333.lawgon@au-kbc.org> <201006251104.31817.lawgon@au-kbc.org> Message-ID: <4C2447EE.1080101@lonetwin.net> On 06/25/2010 11:04 AM, Kenneth Gonsalves wrote: > On Friday 25 June 2010 10:57:00 Elvis Joel D'Souza wrote: >> > program >> > has to do something one has to sketch out the data structures and >> > functions that are needed to get the thing done with the least possible >> > effort. >> >> I think you are referring to Design Patterns >> Head First Design Patterns can help... >> http://oreilly.com/catalog/9780596007126 >> > > I am not referring to Design Patterns - I think flow charting is the word I am > looking for Like Noufal said, nothing beats pen and paper. What I usually do is: a. Draw boxes -- Start from the most high-level components that you can identify and draw separate boxes for each one. Connect them up with lines to describe relationships. Then start with each individual box on a new piece of paper and break it down the same way. b. Sometimes it helps to draw a mind map[1]. There are of course mind mapping software too. Google for those. c. Once i reach a point where drawing boxes and maps doesn't make things any clearer and the only thing that will clarify it further is code, I make a skeletal file+class+methods -- if possible, I also write test cases (with the skeletal classes/functions returning dummy data so that tests pass). d. I start coding :). The problem with trying to create a complete and authoritative design using formal tools is, the design just gets obsolete almost as soon as you start coding, since updating the design to reflect changes introduced by reality (as opposed to abstract ideas, which is what one works with during design) is painful, nobody does it (at least not by the end when the product is almost ready). Here is something I'll always remember because it changed my thoughts on the matter of design completely: http://www.developerdotstar.com/mag/articles/reeves_design_main.html hth, cheers, - steve [1] http://en.wikipedia.org/wiki/Mind_map -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From noufal at gmail.com Fri Jun 25 08:09:09 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 25 Jun 2010 11:39:09 +0530 Subject: [BangPypers] designing programs In-Reply-To: References: <201006250822.27014.lawgon@au-kbc.org> Message-ID: On Fri, Jun 25, 2010 at 11:34 AM, Anand Balachandran Pillai wrote: > On Fri, Jun 25, 2010 at 8:22 AM, Kenneth Gonsalves wrote: > >> hi, >> >> what tools do people use when designing software? I tried dia once or twice >> but found it rather cumbersome >> > > ?For me it is almost always a long walk, with just the ideas > ?floating inside my head. After the end of it, I will have it > ?sorted out mostly. > > ?Dia/UML ? That is for enterprise or team software. If this is about > ?designing your own stuff as a 1 man army, all you need as tools > ?is a pencil and paper. UML definitely sounds too enterprisey. I'd go low-tech as well but I'd use a pen rather than a pencil. :) -- ~noufal http://nibrahim.net.in From srp at ideadevice.com Fri Jun 25 09:07:25 2010 From: srp at ideadevice.com (Saju Pillai) Date: Fri, 25 Jun 2010 12:37:25 +0530 Subject: [BangPypers] designing programs In-Reply-To: References: <201006250822.27014.lawgon@au-kbc.org> Message-ID: As most answers on this list imply, "software design" is a very "personal" thing. For a lot of programmers there is no explicit "design phase" - they just start coding. Some others need a "talking board" - usually another programmer or sometimes even the ether. I am allergic to any design tool more complex than pen & paper. UML may cause violent spontaneous combustion. Most of these design tools are "designed by committee" with the explicit goal of taking an average guy and have him/her produce enterprise class code at the lowest cost. Usually "just start coding", ability to write reusable modular code and willingness to rewrite some portions works the best for folks I know. -srp On Fri, Jun 25, 2010 at 11:39 AM, Noufal Ibrahim wrote: > On Fri, Jun 25, 2010 at 11:34 AM, Anand Balachandran Pillai > wrote: > > On Fri, Jun 25, 2010 at 8:22 AM, Kenneth Gonsalves >wrote: > > > >> hi, > >> > >> what tools do people use when designing software? I tried dia once or > twice > >> but found it rather cumbersome > >> > > > > For me it is almost always a long walk, with just the ideas > > floating inside my head. After the end of it, I will have it > > sorted out mostly. > > > > Dia/UML ? That is for enterprise or team software. If this is about > > designing your own stuff as a 1 man army, all you need as tools > > is a pencil and paper. > > UML definitely sounds too enterprisey. > > I'd go low-tech as well but I'd use a pen rather than a pencil. :) > > > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Idea Device Automation Technologies www.ideadevice.com +91 9945196516 From lawgon at au-kbc.org Fri Jun 25 09:21:47 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 25 Jun 2010 12:51:47 +0530 Subject: [BangPypers] designing programs In-Reply-To: References: <201006250822.27014.lawgon@au-kbc.org> Message-ID: <201006251251.47445.lawgon@au-kbc.org> On Friday 25 June 2010 12:37:25 Saju Pillai wrote: > I am allergic to any design tool more complex than pen & paper > well, we seemed have almost reached a consensus - now all we need to decide is the pros and cons of pen versus pencil. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From abpillai at gmail.com Fri Jun 25 10:53:19 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 25 Jun 2010 14:23:19 +0530 Subject: [BangPypers] designing programs In-Reply-To: <201006251251.47445.lawgon@au-kbc.org> References: <201006250822.27014.lawgon@au-kbc.org> <201006251251.47445.lawgon@au-kbc.org> Message-ID: On Fri, Jun 25, 2010 at 12:51 PM, Kenneth Gonsalves wrote: > On Friday 25 June 2010 12:37:25 Saju Pillai wrote: > > I am allergic to any design tool more complex than pen & paper > > > > well, we seemed have almost reached a consensus - now all we need to decide > is > the pros and cons of pen versus pencil. > I support pencil because, 1. It can be sharpened 2. It doesn't cause those splotches in your hand and dress like a pen 3. There is only one colour to choose - so no confusion between blue and black etc. 4. It is the simplest contraption in the world which consists of just two parts and no moving ones. 5. It has space-age glamour since the Russian cosmonauts used it to write during their space flights. > -- > Regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From srp at ideadevice.com Fri Jun 25 11:24:29 2010 From: srp at ideadevice.com (Saju Pillai) Date: Fri, 25 Jun 2010 14:54:29 +0530 Subject: [BangPypers] designing programs In-Reply-To: References: <201006250822.27014.lawgon@au-kbc.org> <201006251251.47445.lawgon@au-kbc.org> Message-ID: On Fri, Jun 25, 2010 at 2:23 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > On Fri, Jun 25, 2010 at 12:51 PM, Kenneth Gonsalves >wrote: > > > On Friday 25 June 2010 12:37:25 Saju Pillai wrote: > > > I am allergic to any design tool more complex than pen & paper > > > > > > > well, we seemed have almost reached a consensus - now all we need to > decide > > is > > the pros and cons of pen versus pencil. > > > > I support pencil because, > > 1. It can be sharpened The sharpened pencil lead is more dangerous than the smaller rounded ballpoint tip. > 2. It doesn't cause those splotches in your hand and dress like a pen > Sharpeners leave behind large amounts of thin fine wood shavings. 3. There is only one colour to choose - so no confusion between blue > and black etc. > Clearly you haven't drawn Yogi bear cartoons using color pencils > 4. It is the simplest contraption in the world which consists of just > two parts and no moving ones. > Cannot be used without a complex and potentially dangerous sharpener > 5. It has space-age glamour since the Russian cosmonauts used it > to write during their space flights. > The tips can break in 0-g and get into sensitive equipment -- heard this excellent explanation in the 3-Idiots movie. -srp > > > > > > -- > > Regards > > Kenneth Gonsalves > > Senior Associate > > NRC-FOSS at AU-KBC > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > --Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Idea Device Automation Technologies www.ideadevice.com +91 9945196516 From noufal at gmail.com Fri Jun 25 11:29:15 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 25 Jun 2010 14:59:15 +0530 Subject: [BangPypers] designing programs In-Reply-To: <201006251251.47445.lawgon@au-kbc.org> References: <201006250822.27014.lawgon@au-kbc.org> <201006251251.47445.lawgon@au-kbc.org> Message-ID: On Fri, Jun 25, 2010 at 12:51 PM, Kenneth Gonsalves wrote: > On Friday 25 June 2010 12:37:25 Saju Pillai wrote: >> I am allergic to any design tool more complex than pen & paper >> > > well, we seemed have almost reached a consensus - now all we need to decide is > the pros and cons of pen versus pencil. This borders on Emacs vs. vi. I prefer a nice fountain pen but the reasons are more sentimental rather than practical so there! -- ~noufal http://nibrahim.net.in From rmathews at gmail.com Fri Jun 25 11:32:14 2010 From: rmathews at gmail.com (Roshan Mathews) Date: Fri, 25 Jun 2010 15:02:14 +0530 Subject: [BangPypers] designing programs In-Reply-To: References: <201006250822.27014.lawgon@au-kbc.org> <201006251251.47445.lawgon@au-kbc.org> Message-ID: n Fri, Jun 25, 2010 at 14:59, Noufal Ibrahim wrote: > On Fri, Jun 25, 2010 at 12:51 PM, Kenneth Gonsalves wrote: >> On Friday 25 June 2010 12:37:25 Saju Pillai wrote: >>> I am allergic to any design tool more complex than pen & paper >>> >> >> well, we seemed have almost reached a consensus - now all we need to decide is >> the pros and cons of pen versus pencil. > > This borders on Emacs vs. vi. > > I prefer a nice fountain pen but the reasons are more sentimental > rather than practical so there! > So Emacs is a nice fountain pen, and vi is a broken lead getting into sensitive equipment? -- http://roshan.mathews.in/ From srinivas_thatiparthy at akebonosoft.com Fri Jun 25 11:42:29 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Fri, 25 Jun 2010 15:12:29 +0530 Subject: [BangPypers] designing programs References: <201006250822.27014.lawgon@au-kbc.org> <201006251251.47445.lawgon@au-kbc.org> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D83409@astserver3.akebonosoft.com> >>well, we seemed have almost reached a consensus - now all we need to decide is >>the pros and cons of pen versus pencil. Well Kenneth, that's a personal decision.My best suggestion is ,use whatever you are comfortable with. Your goal matters not the means.:) Regards, Srini T. From lawgon at au-kbc.org Fri Jun 25 11:53:40 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Fri, 25 Jun 2010 15:23:40 +0530 Subject: [BangPypers] designing programs In-Reply-To: References: <201006250822.27014.lawgon@au-kbc.org> <201006251251.47445.lawgon@au-kbc.org> Message-ID: <201006251523.40586.lawgon@au-kbc.org> On Friday 25 June 2010 14:23:19 Anand Balachandran Pillai wrote: > > well, we seemed have almost reached a consensus - now all we need to > > decide is > > the pros and cons of pen versus pencil. > > I support pencil because, > > 1. It can be sharpened > 2. It doesn't cause those splotches in your hand and dress like a pen > 3. There is only one colour to choose - so no confusion between blue > and black etc. > 4. It is the simplest contraption in the world which consists of just > two parts and no moving ones. > 5. It has space-age glamour since the Russian cosmonauts used it > to write during their space flights. > anyway I suddenly remembered back in 1980s I had a pen and notebook and used to write large amounts of pseudocode in it - I remember spending a week in a farm with no electricity and writing enormous amounts of code. So I have bought a nice notebook and a gel pen. I am too lazy to sharpen a pencil and also sharpeners are not allowed in hand baggage on planes. So I am good to go. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From noufal at gmail.com Fri Jun 25 11:56:48 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Fri, 25 Jun 2010 15:26:48 +0530 Subject: [BangPypers] designing programs In-Reply-To: <201006251523.40586.lawgon@au-kbc.org> References: <201006250822.27014.lawgon@au-kbc.org> <201006251251.47445.lawgon@au-kbc.org> <201006251523.40586.lawgon@au-kbc.org> Message-ID: On Fri, Jun 25, 2010 at 3:23 PM, Kenneth Gonsalves wrote: > On Friday 25 June 2010 14:23:19 Anand Balachandran Pillai wrote: >> > well, we seemed have almost reached a consensus - now all we need to >> > decide is >> > the pros and cons of pen versus pencil. >> >> ?I support pencil because, >> >> ?1. It can be sharpened >> ?2. It doesn't cause those splotches in your hand and dress like a pen >> ?3. There is only one colour to choose - so no confusion between blue >> ? and black etc. >> ?4. It is the simplest contraption in the world which consists of just >> ? ? two parts and no moving ones. >> ?5. It has space-age glamour since the Russian cosmonauts used it >> ? to write during their space flights. >> > > anyway I suddenly remembered back in 1980s I had a pen and notebook and used > to write large amounts of pseudocode in it - I remember spending a week in a > farm with no electricity and writing enormous amounts of code. So I have > bought a nice notebook and a gel pen. I am too lazy to sharpen a pencil and > also sharpeners are not allowed in hand baggage on planes. So I am good to go. Mechanical pencil? Point 1 is invalid since it's always sharp. 2 and 3 hold true. 4 is grossly violated. I'll get back to you on 5 after I contact my Russian comrades. -- ~noufal http://nibrahim.net.in From abpillai at gmail.com Fri Jun 25 14:32:25 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 25 Jun 2010 18:02:25 +0530 Subject: [BangPypers] designing programs In-Reply-To: References: <201006250822.27014.lawgon@au-kbc.org> <201006251251.47445.lawgon@au-kbc.org> Message-ID: On Fri, Jun 25, 2010 at 3:02 PM, Roshan Mathews wrote: > n Fri, Jun 25, 2010 at 14:59, Noufal Ibrahim wrote: > > On Fri, Jun 25, 2010 at 12:51 PM, Kenneth Gonsalves > wrote: > >> On Friday 25 June 2010 12:37:25 Saju Pillai wrote: > >>> I am allergic to any design tool more complex than pen & paper > >>> > >> > >> well, we seemed have almost reached a consensus - now all we need to > decide is > >> the pros and cons of pen versus pencil. > > > > This borders on Emacs vs. vi. > > > > I prefer a nice fountain pen but the reasons are more sentimental > > rather than practical so there! > > > So Emacs is a nice fountain pen, and vi is a broken lead getting into > sensitive equipment? > ROTFL on that one :-) ! > > -- > http://roshan.mathews.in/ > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From abpillai at gmail.com Fri Jun 25 14:36:53 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 25 Jun 2010 18:06:53 +0530 Subject: [BangPypers] designing programs In-Reply-To: <201006251523.40586.lawgon@au-kbc.org> References: <201006250822.27014.lawgon@au-kbc.org> <201006251251.47445.lawgon@au-kbc.org> <201006251523.40586.lawgon@au-kbc.org> Message-ID: On Fri, Jun 25, 2010 at 3:23 PM, Kenneth Gonsalves wrote: > On Friday 25 June 2010 14:23:19 Anand Balachandran Pillai wrote: > > > well, we seemed have almost reached a consensus - now all we need to > > > decide is > > > the pros and cons of pen versus pencil. > > > > I support pencil because, > > > > 1. It can be sharpened > > 2. It doesn't cause those splotches in your hand and dress like a pen > > 3. There is only one colour to choose - so no confusion between blue > > and black etc. > > 4. It is the simplest contraption in the world which consists of just > > two parts and no moving ones. > > 5. It has space-age glamour since the Russian cosmonauts used it > > to write during their space flights. > > > > anyway I suddenly remembered back in 1980s I had a pen and notebook and > used > to write large amounts of pseudocode in it - I remember spending a week in > a > farm with no electricity and writing enormous amounts of code. So I have > bought a nice notebook and a gel pen. I am too lazy to sharpen a pencil and > also sharpeners are not allowed in hand baggage on planes. So I am good to > go. > I sharpen a pencil around 5 times at least a week - for my kid in UKG. I guess that makes me attached more to pencils... Yeah, sharpeners and pencils are potential terrorist tools in flights. I wonder if it is also banned in space flights. There are these "pen-pencil" type contraptions where you push many "pencil-heads" one after another and finally one sticks out at the other end. They are pretty cool and no potential threat to life from sharpeners. I wonder if they are still sold in stores... -- > Regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From thinrhino at gmail.com Fri Jun 25 15:05:24 2010 From: thinrhino at gmail.com (ThinRhino) Date: Fri, 25 Jun 2010 18:35:24 +0530 Subject: [BangPypers] designing programs In-Reply-To: References: <201006250822.27014.lawgon@au-kbc.org> <201006251251.47445.lawgon@au-kbc.org> <201006251523.40586.lawgon@au-kbc.org> Message-ID: On 25 June 2010 18:06, Anand Balachandran Pillai wrote: > > There are these "pen-pencil" type contraptions where you push > many "pencil-heads" one after another and finally one sticks out > at the other end. They are pretty cool and no potential threat > to life from sharpeners. I wonder if they are still sold in stores... > Seen a couple "chinese" ones here in Pune markets. -- Ships are safe in the harbour But that is not what ships are built for From lorddaemon at gmail.com Sat Jun 26 11:19:28 2010 From: lorddaemon at gmail.com (Dark Seid) Date: Sat, 26 Jun 2010 14:49:28 +0530 Subject: [BangPypers] designing programs In-Reply-To: <201006251251.47445.lawgon@au-kbc.org> References: <201006250822.27014.lawgon@au-kbc.org> <201006251251.47445.lawgon@au-kbc.org> Message-ID: Well, I vote for pencil :). That said, I start with a pencil and paper (or whiteboard) to help me understand things at a high level and then move to writing specs. My primary design tool for detail design is a TDD framework. Best, Sidu. http://blog.sidu.in http://c42.in On Fri, Jun 25, 2010 at 12:51 PM, Kenneth Gonsalves wrote: > On Friday 25 June 2010 12:37:25 Saju Pillai wrote: > > I am allergic to any design tool more complex than pen & paper > > > > well, we seemed have almost reached a consensus - now all we need to decide > is > the pros and cons of pen versus pencil. > -- > Regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From fslash8 at gmail.com Sat Jun 26 16:42:47 2010 From: fslash8 at gmail.com (Shiv Shankar) Date: Sat, 26 Jun 2010 20:12:47 +0530 Subject: [BangPypers] Help needed on reviewing my presentation for pycon. Message-ID: Guys, The below mentioned is an overview of the contents included in the presentation I would like to present in this years pycon. Could you guys please look through it and let me know if you will get benefited from such a presentation. Also your suggestions and thoughts on it. Topic: *A peek into Staged Event Driven Architecture - Reasons to use Twisted.* - Introduction. - The need for concurrency in networking system, ways to achieve it ? thread based concurrency and event based concurrency. - A simple DNS server written in Python. - *Explaining a simple name resolution server written in python, which lets you specify specify arbitrary regexs to match hosts.* - Concurrency of the above DNS server, the thread based approach explained and sneak peak into python's GIL. - Problems with Threads, a graph explaining max server throughput vs threads executing in server explaining where it fails. - Over load management and the c10k problem statement. - Event based concurrency. - A quick slide on non blocking i/o its importance. - Writing a simple DNS server in Python using twisted. - Explaining various stages, how is it different from a thread based system. - Benchmarks. - Does it solve the c10k problem ? - Questions. -- shiv From zubin.mithra at gmail.com Sat Jun 26 16:55:09 2010 From: zubin.mithra at gmail.com (Zubin Mithra) Date: Sat, 26 Jun 2010 20:25:09 +0530 Subject: [BangPypers] Help needed on reviewing my presentation for pycon. In-Reply-To: References: Message-ID: Hello Shiv, On Sat, Jun 26, 2010 at 8:12 PM, Shiv Shankar wrote: > Guys, > > The below mentioned is an overview of the contents included in the > presentation I would like to present in this years pycon. Could you guys > please look through it and let me know if you will get benefited from such > a > presentation. Also your suggestions and thoughts on it. > > Topic: *A peek into Staged Event Driven Architecture - Reasons to use > Twisted.* > Cool, I'm definitely looking forward to this one :) > > - Introduction. > - The need for concurrency in networking system, ways to achieve it ? > thread based concurrency and event based concurrency. > - A simple DNS server written in Python. > - *Explaining a simple name resolution server written in python, which > lets you specify specify arbitrary regexs to match hosts.* > - Concurrency of the above DNS server, the thread based approach > explained and sneak peak into python's GIL. > - Problems with Threads, a graph explaining max server throughput vs > threads executing in server explaining where it fails. > - Over load management and the c10k problem statement. > - Event based concurrency. > - A quick slide on non blocking i/o its importance. > - Writing a simple DNS server in Python using twisted. > - Explaining various stages, how is it different from a thread based > system. > - Benchmarks. > - Does it solve the c10k problem ? > - Questions. > Will Pycon be having a hack session at the end of the day? If so, then a twisted workshop of some sort would be really awesome. And i guess its too much to fit into a 45 minute talk but a small introduction to twisted's plugin architecture would be really nice. Cheers! Zubin From noufal at gmail.com Sat Jun 26 16:55:23 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 26 Jun 2010 20:25:23 +0530 Subject: [BangPypers] Help needed on reviewing my presentation for pycon. In-Reply-To: References: Message-ID: On Sat, Jun 26, 2010 at 8:12 PM, Shiv Shankar wrote: > Guys, > > The below mentioned is an overview of the contents included in the > presentation I would like to present in this years pycon. Could you guys > please look through it and let me know if you will get benefited from such a > presentation. Also your suggestions and thoughts on it. It definitely looks interesting. Here are some of my (rather vague) thoughts on the subject and the presentation. I haven't done anything massively concurrent so I can't offer many comments however, these are some things that linger in my head. - Can you really take advantage of multiple cores using a event driven framework. Will it fall behind a threaded system when multiple cores are available? - Issues with debugging/maintainability. Event driven code is quite different from the usual beasts out there. - Are there genuine advantages to event driven code or is it just the "current trend"? This talk which I saw around a year ago suggests that event driven is not *that* great - http://carlfk.blip.tv/file/2232349 Also, I feel that the talk is torn between "event driven vs. threaded (the comparisons)" and "Using a threaded framework - twisted (the example)". I think the talk would be more fun if you decided on one of these and focussed purely on that. -- ~noufal http://nibrahim.net.in From sudheer.s at sudheer.net Sat Jun 26 17:08:27 2010 From: sudheer.s at sudheer.net (Sudheer Satyanarayana) Date: Sat, 26 Jun 2010 20:38:27 +0530 Subject: [BangPypers] Help needed on reviewing my presentation for pycon. In-Reply-To: References: Message-ID: <4C2617EB.9050508@sudheer.net> On 06/26/2010 08:12 PM, Shiv Shankar wrote: > Guys, > > The below mentioned is an overview of the contents included in the > presentation I would like to present in this years pycon. Could you guys > please look through it and let me know if you will get benefited from such a > presentation. Also your suggestions and thoughts on it. > > Topic: *A peek into Staged Event Driven Architecture - Reasons to use > Twisted.* > Hi Shiv, The topic is quite interesting. Can you please state what knowledge level are you expecting from your audience? Are you going to publish a sample functional project(source code at github.com for example) along with the presentation? This will sure be a bonus to the audience. -- With warm regards, Sudheer. S Personal home page - http://sudheer.net | Tech Chorus - http://techchorus.net Web and IT services - http://binaryvibes.co.in From shameek09 at gmail.com Sat Jun 26 17:32:52 2010 From: shameek09 at gmail.com (shameek ghosh) Date: Sat, 26 Jun 2010 21:02:52 +0530 Subject: [BangPypers] designing programs In-Reply-To: References: <201006250822.27014.lawgon@au-kbc.org> <201006251251.47445.lawgon@au-kbc.org> Message-ID: Well...Although I have not done this much, but I believe a modelling tool like UML helps when you show your design to somebody else and secondly there might be cases where UML like modelling tools may also be converted to some specific code. I do beleive the second point is an important reason why domain specific modelling tools are very important that can generate platform specific code.Something like UML to C++ might be available.I am not certain though. On Sat, Jun 26, 2010 at 2:49 PM, Dark Seid wrote: > Well, I vote for pencil :). That said, I start with a pencil and paper (or > whiteboard) to help me understand things at a high level and then move to > writing specs. My primary design tool for detail design is a TDD framework. > > Best, > Sidu. > http://blog.sidu.in > http://c42.in > > On Fri, Jun 25, 2010 at 12:51 PM, Kenneth Gonsalves >wrote: > > > On Friday 25 June 2010 12:37:25 Saju Pillai wrote: > > > I am allergic to any design tool more complex than pen & paper > > > > > > > well, we seemed have almost reached a consensus - now all we need to > decide > > is > > the pros and cons of pen versus pencil. > > -- > > Regards > > Kenneth Gonsalves > > Senior Associate > > NRC-FOSS at AU-KBC > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- "A mind stretched to a new idea, never goes back to its original dimensions" From noufal at gmail.com Sat Jun 26 17:40:18 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sat, 26 Jun 2010 21:10:18 +0530 Subject: [BangPypers] designing programs In-Reply-To: References: <201006250822.27014.lawgon@au-kbc.org> <201006251251.47445.lawgon@au-kbc.org> Message-ID: On Sat, Jun 26, 2010 at 9:02 PM, shameek ghosh wrote: > Well...Although I have not done this much, ?but I believe a modelling tool > like UML helps when you show your design to somebody else and secondly there > might be cases where UML like modelling tools may also be converted to some > specific code. I generally tend to distrust code that is 'generated' unless it's for a very clear, simple, and well defined task (like a state machine, parser or GUI front end). Using UML as a "standard way" of conveying your designs sounds sensible although I feel that it's more restrictive than pen and paper. > I do believe the second point is an important reason why domain specific > modelling tools are very important that can generate platform specific > code.Something like UML to C++ might be available.I am not certain though. I worry about maintainability and bitrot in the long run when code is generated in this fashion. -- ~noufal http://nibrahim.net.in From fslash8 at gmail.com Sat Jun 26 17:41:47 2010 From: fslash8 at gmail.com (Shiv Shankar) Date: Sat, 26 Jun 2010 21:11:47 +0530 Subject: [BangPypers] Help needed on reviewing my presentation for pycon. In-Reply-To: References: Message-ID: > > - Are there genuine advantages to event driven code or is it just the > "current trend"? This talk which I saw around a year ago suggests that > event driven is not *that* great - http://carlfk.blip.tv/file/2232349 > > Python's GIL (*global interpreter lock*) is so awesome that it prevents a lot of blocking from happening. I guess that makes the event driven programing model less worth. - Can you really take advantage of multiple cores using a event > driven framework. Will it fall behind a threaded system when multiple > cores are available? > - Issues with debugging/maintainability. Event driven code is quite > different from the usual beasts out there. > I could do this, let me think about how to put it in also let me work on getting my focus right and clear. *Thanks a lot noufal.* Can you please state what knowledge level are you expecting from your > audience? > The audience can take away 50% of it with just the knowledge of python syntax, another 20% more if they have an open mind, 20% more if they know thread based programing in python and 10% more if they are comfortable with my sound. Are you going to publish a sample functional project(source code at > github.com for example) along with the presentation? This will sure be a > bonus to the audience. > Yes, slides will go in slideshare and code will go into gists (it would be small for a repo) or a common svn repo where I put in my junk scripts. twisted's plugin architecture would be really nice. > I am not that comfortable speaking about twisted's architecture (as a whole other than specific parts of it), If people ask me good to awesome questions the chance of me going *bleh!* is above average. - shiv http://www.pietisticmonk.com/blog/ From orsenthil at gmail.com Sat Jun 26 17:54:27 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Sat, 26 Jun 2010 21:24:27 +0530 Subject: [BangPypers] Help needed on reviewing my presentation for pycon. In-Reply-To: References: Message-ID: <20100626155427.GB2799@remy> On Sat, Jun 26, 2010 at 08:12:47PM +0530, Shiv Shankar wrote: > The below mentioned is an overview of the contents included in the > presentation I would like to present in this years pycon. Could you guys Hey Shiv, Just one suggestion, speak from your practical knowledge of Twisted. I hope you are using it in your projects and have a good grasp over it. That should help a lot. Keep it simple for the audience and it should be fine. Question to you. Do you use it (or intend to use it) in any of you projects? Not that is a must, but that kind of gives you so much insight and good material to share with public in general. -- Senthil * TwingyAFK is shopping for 17" flat panel * aav sells TwingyAFK a piece of plywood From fslash8 at gmail.com Sat Jun 26 18:20:03 2010 From: fslash8 at gmail.com (Shiv Shankar) Date: Sat, 26 Jun 2010 21:50:03 +0530 Subject: [BangPypers] Help needed on reviewing my presentation for pycon. In-Reply-To: References: <20100626155427.GB2799@remy> Message-ID: I have experience on designing composable memory transactions library in C, which basically is aids in designing thread safe, non blocking concurrent systems. I use twisted, experiment with it, run benchmarks on it for my curiosity, never have written production code in it. But I know the limitations of threads in python, how to break it and where twisted comes in. Seda is in the growing stages, i am no master of twisted as a whole but I religiously follow it to have implementation knowledge in areas that amuse me. On Jun 26, 2010 9:24 PM, "Senthil Kumaran" wrote: On Sat, Jun 26, 2010 at 08:12:47PM +0530, Shiv Shankar wrote: > The below mentioned is an overview o... Hey Shiv, Just one suggestion, speak from your practical knowledge of Twisted. I hope you are using it in your projects and have a good grasp over it. That should help a lot. Keep it simple for the audience and it should be fine. Question to you. Do you use it (or intend to use it) in any of you projects? Not that is a must, but that kind of gives you so much insight and good material to share with public in general. -- Senthil * TwingyAFK is shopping for 17" flat panel * aav sells TwingyAFK a piece of plywood _______________________________________________ BangPypers mailing list BangPypers at python.org http:/... From shameek09 at gmail.com Sat Jun 26 20:43:48 2010 From: shameek09 at gmail.com (shameek ghosh) Date: Sun, 27 Jun 2010 00:13:48 +0530 Subject: [BangPypers] designing programs In-Reply-To: References: <201006250822.27014.lawgon@au-kbc.org> <201006251251.47445.lawgon@au-kbc.org> Message-ID: > I do believe the second point is an important reason why domain specific > modelling tools are very important that can generate platform specific > code.Something like UML to C++ might be available.I am not certain though. I worry about maintainability and bitrot in the long run when code is generated in this fashion. That's interesting.Never really thought about it.But could you elaborate. I agree though that generated code is not dependable but whether it is maintainable, is open to debate. On Sat, Jun 26, 2010 at 9:10 PM, Noufal Ibrahim awrote: > On Sat, Jun 26, 2010 at 9:02 PM, shameek ghosh > wrote: > > Well...Although I have not done this much, but I believe a modelling > tool > > like UML helps when you show your design to somebody else and secondly > there > > might be cases where UML like modelling tools may also be converted to > some > > specific code. > > I generally tend to distrust code that is 'generated' unless it's for > a very clear, simple, and well defined task (like a state machine, > parser or GUI front end). > > Using UML as a "standard way" of conveying your designs sounds > sensible although I feel that it's more restrictive than pen and > paper. > > > I do believe the second point is an important reason why domain specific > > modelling tools are very important that can generate platform specific > > code.Something like UML to C++ might be available.I am not certain > though. > > I worry about maintainability and bitrot in the long run when code is > generated in this fashion. > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- "A mind stretched to a new idea, never goes back to its original dimensions" From noufal at gmail.com Sat Jun 26 20:52:31 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 27 Jun 2010 00:22:31 +0530 Subject: [BangPypers] designing programs In-Reply-To: References: <201006250822.27014.lawgon@au-kbc.org> <201006251251.47445.lawgon@au-kbc.org> Message-ID: On Sun, Jun 27, 2010 at 12:13 AM, shameek ghosh wrote: >> I do believe the second point is an important reason why domain specific >> modelling tools are very important that can generate platform specific >> code.Something like UML to C++ might be available.I am not certain though. > > I worry about maintainability and bitrot in the long run when code is > generated in this fashion. > > That's interesting.Never really thought about it.But could you elaborate. > I agree though that generated code is not dependable but whether it is > maintainable, is open to debate. I think it is dependable. I trust parser code generated by yacc a *lot* more than I trust parser code that I write from scratch. If the nature of the program is repeatable and mostly grunt, I'd love for it to be generated from a spec. rather than written by hand. Maintainability depends on how it's generated really. I don't know how the UML->C++ converter would work but if after that happens, I have to maintain and build on the C++ rather than the original "source" (which in this case is the UML), I'd have trouble. I think it's cumbersome to maintain code generated by a program. -- ~noufal http://nibrahim.net.in From lawgon at au-kbc.org Sun Jun 27 07:26:54 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Sun, 27 Jun 2010 10:56:54 +0530 Subject: [BangPypers] designing programs In-Reply-To: References: <201006250822.27014.lawgon@au-kbc.org> Message-ID: <201006271056.54819.lawgon@au-kbc.org> On Saturday 26 June 2010 21:02:52 shameek ghosh wrote: > Well...Although I have not done this much, but I believe a modelling tool > like UML helps when you show your design to somebody else and secondly > there might be cases where UML like modelling tools may also be converted > to some specific code. > great for corporate java guys - write 1000 lines of UML, which generates 5000 lines of XML which generates 50000 lines of java code which generates 100,000 lines of error messages - and charge $1 per line - and go laughing all the way to the bank. s/corporate/enterprise? -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From sandipb at foss-community.com Sun Jun 27 09:21:15 2010 From: sandipb at foss-community.com (Sandip Bhattacharya) Date: Sun, 27 Jun 2010 12:51:15 +0530 Subject: [BangPypers] Indian Python Software Society In-Reply-To: <201006180553.52369.lawgon@au-kbc.org> References: <201006180553.52369.lawgon@au-kbc.org> Message-ID: On Fri, Jun 18, 2010 at 5:53 AM, Kenneth Gonsalves wrote: > further information about the society may be obtained here: > http://wiki.python.org/moin/CategoryIndianPythonSoftwareSociety > > anyone interested is welcome to join the mailing list Didn't want to nitpick, but wouldn't it be polite to put all the IPSS related pages as subpages of say "IPSS" in the python.org wiki? Right now the generic sounding pages are all "main pages". - Sandip From noufal at gmail.com Sun Jun 27 10:05:28 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 27 Jun 2010 13:35:28 +0530 Subject: [BangPypers] Twitter account for BAngPypers Message-ID: I can't believe myself. I used to slam twitter and now I use it too much. Anyway. The PSF has a list for various user groups around the world. It's over here http://twitter.com/ThePSF/user-groups If we create a twitter account for ours and post things like "user group meeting" etc., it would be nice. Anyone upto it? -- ~noufal http://nibrahim.net.in From abpillai at gmail.com Sun Jun 27 10:18:57 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Sun, 27 Jun 2010 13:48:57 +0530 Subject: [BangPypers] Volunteers to spread the word Message-ID: Hi, It is nearly two week since we posted the CFP and we have had only 3-4 responses. So clearly the word of the event is not getting out to the outside world and we need to do more. One of the things we can do is to search google/yahoo groups for programming language communities and post regarding the event there. This needs some time since one has to find out relevant, active community mailing lists in Y! and Google and post a message there. We need around 1-2 SPAM volunteers for this. Let me know if anyone would like to help out. Thanks, -- --Anand From lorddaemon at gmail.com Sun Jun 27 10:50:23 2010 From: lorddaemon at gmail.com (Dark Seid) Date: Sun, 27 Jun 2010 14:20:23 +0530 Subject: [BangPypers] Volunteers to spread the word In-Reply-To: References: Message-ID: If you'd like me to, I can cross post the call to a few Ruby lists. With regards to other Python lists, I did do some digging and the only lists I found were the ones already listed at http://wiki.python.org/moin/LocalUserGroups#India Cheers, Sidu. http://blog.sidu.in http://c42.in On Sun, Jun 27, 2010 at 1:48 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > Hi, > > It is nearly two week since we posted the CFP > and we have had only 3-4 responses. So clearly the word > of the event is not getting out to the outside world and > we need to do more. > > One of the things we can do is to search google/yahoo > groups for programming language communities and > post regarding the event there. > > This needs some time since one has to find out > relevant, active community mailing lists in Y! and Google > and post a message there. > > We need around 1-2 SPAM volunteers for this. Let > me know if anyone would like to help out. > > Thanks, > > -- > --Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From lorddaemon at gmail.com Sun Jun 27 10:50:23 2010 From: lorddaemon at gmail.com (Dark Seid) Date: Sun, 27 Jun 2010 14:20:23 +0530 Subject: [BangPypers] Volunteers to spread the word In-Reply-To: References: Message-ID: If you'd like me to, I can cross post the call to a few Ruby lists. With regards to other Python lists, I did do some digging and the only lists I found were the ones already listed at http://wiki.python.org/moin/LocalUserGroups#India Cheers, Sidu. http://blog.sidu.in http://c42.in On Sun, Jun 27, 2010 at 1:48 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > Hi, > > It is nearly two week since we posted the CFP > and we have had only 3-4 responses. So clearly the word > of the event is not getting out to the outside world and > we need to do more. > > One of the things we can do is to search google/yahoo > groups for programming language communities and > post regarding the event there. > > This needs some time since one has to find out > relevant, active community mailing lists in Y! and Google > and post a message there. > > We need around 1-2 SPAM volunteers for this. Let > me know if anyone would like to help out. > > Thanks, > > -- > --Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From noufal at gmail.com Sun Jun 27 10:54:43 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 27 Jun 2010 14:24:43 +0530 Subject: [BangPypers] Volunteers to spread the word In-Reply-To: References: Message-ID: On Sun, Jun 27, 2010 at 2:20 PM, Dark Seid wrote: > If you'd like me to, I can cross post the call to a few Ruby lists. With > regards to other Python lists, Please do. -- ~noufal http://nibrahim.net.in From abpillai at gmail.com Sun Jun 27 11:49:38 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Sun, 27 Jun 2010 15:19:38 +0530 Subject: [BangPypers] Volunteers to spread the word In-Reply-To: References: Message-ID: On Sun, Jun 27, 2010 at 2:24 PM, Noufal Ibrahim wrote: > On Sun, Jun 27, 2010 at 2:20 PM, Dark Seid wrote: > > If you'd like me to, I can cross post the call to a few Ruby lists. With > > regards to other Python lists,ted > > Please do. > When you do please make sure the CFP link is posted separately. http://in.pycon.org/2010/cfp Anyone else ? > > -- > ~noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From nitin.nitp at gmail.com Sun Jun 27 13:33:54 2010 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Sun, 27 Jun 2010 17:03:54 +0530 Subject: [BangPypers] Volunteers to spread the word In-Reply-To: References: Message-ID: i am also planning to present paper. but couldn't fill in the form as there were many details asked. On Sun, Jun 27, 2010 at 1:48 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > Hi, > > It is nearly two week since we posted the CFP > and we have had only 3-4 responses. So clearly the word > of the event is not getting out to the outside world and > we need to do more. > > One of the things we can do is to search google/yahoo > groups for programming language communities and > post regarding the event there. > > This needs some time since one has to find out > relevant, active community mailing lists in Y! and Google > and post a message there. > > We need around 1-2 SPAM volunteers for this. Let > me know if anyone would like to help out. > > Thanks, > > -- > --Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Nitin K From lawgon at au-kbc.org Sun Jun 27 15:29:50 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Sun, 27 Jun 2010 18:59:50 +0530 Subject: [BangPypers] [Inpycon] Volunteers to spread the word In-Reply-To: References: Message-ID: <201006271859.50469.lawgon@au-kbc.org> On Sunday 27 June 2010 13:48:57 Anand Balachandran Pillai wrote: > It is nearly two week since we posted the CFP > and we have had only 3-4 responses. So clearly the word > of the event is not getting out to the outside world and > we need to do more. > but as far as the website is concerned, there have been no responses - please someone get some activity on the website - I do not even see the psf sponsorship there. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From lawgon at au-kbc.org Sun Jun 27 15:31:11 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Sun, 27 Jun 2010 19:01:11 +0530 Subject: [BangPypers] Twitter account for BAngPypers In-Reply-To: References: Message-ID: <201006271901.12089.lawgon@au-kbc.org> On Sunday 27 June 2010 13:35:28 Noufal Ibrahim wrote: > I can't believe myself. I used to slam twitter and now I use it too much. > I still slam it ;-) -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From abpillai at gmail.com Sun Jun 27 15:30:04 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Sun, 27 Jun 2010 19:00:04 +0530 Subject: [BangPypers] [Inpycon] Volunteers to spread the word In-Reply-To: <201006271859.50469.lawgon@au-kbc.org> References: <201006271859.50469.lawgon@au-kbc.org> Message-ID: On Sun, Jun 27, 2010 at 6:59 PM, Kenneth Gonsalves wrote: > On Sunday 27 June 2010 13:48:57 Anand Balachandran Pillai wrote: > > It is nearly two week since we posted the CFP > > and we have had only 3-4 responses. So clearly the word > > of the event is not getting out to the outside world and > > we need to do more. > > > > but as far as the website is concerned, there have been no responses - > please > someone get some activity on the website - I do not even see the psf > sponsorship there. > It underwent a lot of changes today. Check it now. > -- > Regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From lawgon at au-kbc.org Sun Jun 27 15:33:30 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Sun, 27 Jun 2010 19:03:30 +0530 Subject: [BangPypers] Indian Python Software Society In-Reply-To: References: <201006180553.52369.lawgon@au-kbc.org> Message-ID: <201006271903.30553.lawgon@au-kbc.org> On Sunday 27 June 2010 12:51:15 Sandip Bhattacharya wrote: > On Fri, Jun 18, 2010 at 5:53 AM, Kenneth Gonsalves wrote: > > further information about the society may be obtained here: > > http://wiki.python.org/moin/CategoryIndianPythonSoftwareSociety > > > > anyone interested is welcome to join the mailing list > > Didn't want to nitpick, but wouldn't it be polite to put all the IPSS > related pages as subpages of say "IPSS" in the python.org wiki? Right > now the generic sounding pages are all "main pages". > afaik the wiki does not have sub pages - it has categories and there is a category called CategoryIndianPythonSoftwareSociety under which all IPSS materials are filed. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From lawgon at au-kbc.org Sun Jun 27 15:57:08 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Sun, 27 Jun 2010 19:27:08 +0530 Subject: [BangPypers] [Inpycon] Volunteers to spread the word In-Reply-To: References: <201006271859.50469.lawgon@au-kbc.org> Message-ID: <201006271927.08427.lawgon@au-kbc.org> On Sunday 27 June 2010 19:00:04 Anand Balachandran Pillai wrote: > > but as far as the website is concerned, there have been no responses - > > please > > someone get some activity on the website - I do not even see the psf > > sponsorship there. > > It underwent a lot of changes today. Check it now. > I still do not see a news page describing what is happening, what announcements are made of the list etc - for example I would love to see the report on the meeting with the college principal as well as the fact that his son did a project in python and also details of nature of sponsorship from psf. I found the list of talks submitted by accident - it is not prominent enough - since we are focussing on talks now, I suggest the landing page be the talks page and both 'submit a talk' and 'talks submitted' be featured on the menu on top - I know all this may not be PC, but doing it like this works. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From noufal at gmail.com Sun Jun 27 15:58:44 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 27 Jun 2010 19:28:44 +0530 Subject: [BangPypers] Indian Python Software Society In-Reply-To: <201006271903.30553.lawgon@au-kbc.org> References: <201006180553.52369.lawgon@au-kbc.org> <201006271903.30553.lawgon@au-kbc.org> Message-ID: It has sub pages. Just use a /. The pycon india 2010 has sub pages. On 6/27/10, Kenneth Gonsalves wrote: > On Sunday 27 June 2010 12:51:15 Sandip Bhattacharya wrote: >> On Fri, Jun 18, 2010 at 5:53 AM, Kenneth Gonsalves > wrote: >> > further information about the society may be obtained here: >> > http://wiki.python.org/moin/CategoryIndianPythonSoftwareSociety >> > >> > anyone interested is welcome to join the mailing list >> >> Didn't want to nitpick, but wouldn't it be polite to put all the IPSS >> related pages as subpages of say "IPSS" in the python.org wiki? Right >> now the generic sounding pages are all "main pages". >> > > afaik the wiki does not have sub pages - it has categories and there is a > category called CategoryIndianPythonSoftwareSociety under which all IPSS > materials are filed. > -- > Regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ~noufal http://nibrahim.net.in From lawgon at au-kbc.org Sun Jun 27 16:06:35 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Sun, 27 Jun 2010 19:36:35 +0530 Subject: [BangPypers] [Inpycon] Volunteers to spread the word In-Reply-To: <201006271927.08427.lawgon@au-kbc.org> References: <201006271927.08427.lawgon@au-kbc.org> Message-ID: <201006271936.35812.lawgon@au-kbc.org> On Sunday 27 June 2010 19:27:08 Kenneth Gonsalves wrote: > > It underwent a lot of changes today. Check it now. > > > > I still do not see a news page describing what is happening, what > announcements are made of the list etc - for example I would love to see > the report on the meeting with the college principal as well as the fact > that his son did a project in python and also details of nature of > sponsorship from psf. > > I found the list of talks submitted by accident - it is not prominent > enough - since we are focussing on talks now, I suggest the landing page > be the talks page and both 'submit a talk' and 'talks submitted' be > featured on the menu on top - I know all this may not be PC, but doing it > like this works > also 'talks' page should make it clear that these are submitted talks pending acceptance. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From lawgon at au-kbc.org Sun Jun 27 16:08:01 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Sun, 27 Jun 2010 19:38:01 +0530 Subject: [BangPypers] Indian Python Software Society In-Reply-To: References: <201006180553.52369.lawgon@au-kbc.org> <201006271903.30553.lawgon@au-kbc.org> Message-ID: <201006271938.01819.lawgon@au-kbc.org> On Sunday 27 June 2010 19:28:44 Noufal Ibrahim wrote: > It has sub pages. Just use a /. The pycon india 2010 has sub pages. > ok - I did say 'afaik' - if someone can make the thing more polite, it is cool. -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From noufal at gmail.com Sun Jun 27 16:20:11 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 27 Jun 2010 19:50:11 +0530 Subject: [BangPypers] Volunteers to spread the word In-Reply-To: References: Message-ID: These are necessary to select the paper. What field do you feel is unnecessary? On 6/27/10, Nitin Kumar wrote: > i am also planning to present paper. > > but couldn't fill in the form as there were many details asked. > > On Sun, Jun 27, 2010 at 1:48 PM, Anand Balachandran Pillai < > abpillai at gmail.com> wrote: > >> Hi, >> >> It is nearly two week since we posted the CFP >> and we have had only 3-4 responses. So clearly the word >> of the event is not getting out to the outside world and >> we need to do more. >> >> One of the things we can do is to search google/yahoo >> groups for programming language communities and >> post regarding the event there. >> >> This needs some time since one has to find out >> relevant, active community mailing lists in Y! and Google >> and post a message there. >> >> We need around 1-2 SPAM volunteers for this. Let >> me know if anyone would like to help out. >> >> Thanks, >> >> -- >> --Anand >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > > -- > Nitin K > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ~noufal http://nibrahim.net.in From noufal at gmail.com Sun Jun 27 16:24:35 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 27 Jun 2010 19:54:35 +0530 Subject: [BangPypers] [Inpycon] Volunteers to spread the word In-Reply-To: <201006271936.35812.lawgon@au-kbc.org> References: <201006271927.08427.lawgon@au-kbc.org> <201006271936.35812.lawgon@au-kbc.org> Message-ID: Can you open issues on github for these so that we can track them? On 6/27/10, Kenneth Gonsalves wrote: > On Sunday 27 June 2010 19:27:08 Kenneth Gonsalves wrote: >> > It underwent a lot of changes today. Check it now. >> > >> >> I still do not see a news page describing what is happening, what >> announcements are made of the list etc - for example I would love to see >> the report on the meeting with the college principal as well as the fact >> that his son did a project in python and also details of nature of >> sponsorship from psf. >> >> I found the list of talks submitted by accident - it is not prominent >> enough - since we are focussing on talks now, I suggest the landing page >> be the talks page and both 'submit a talk' and 'talks submitted' be >> featured on the menu on top - I know all this may not be PC, but doing it >> like this works >> > > also 'talks' page should make it clear that these are submitted talks > pending > acceptance. > -- > Regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ~noufal http://nibrahim.net.in From pranny at gmail.com Sun Jun 27 16:25:22 2010 From: pranny at gmail.com (Pranav Prakash) Date: Sun, 27 Jun 2010 19:55:22 +0530 Subject: [BangPypers] Facebook Event for PyCon India 2010 Message-ID: Hi Anand, I looked through Facbook and it looks like there is no way a facebook event is open for public viewing. They can have photos and albums as public but not events. So sadly you need a facebook account to see a facebook event !! On Fri, Jun 25, 2010 at 07:38, wrote: > ---------- Forwarded message ---------- > From: Anand Balachandran Pillai > To: Bangalore Python Users Group - India > Date: Thu, 24 Jun 2010 19:10:13 +0530 > Subject: Re: [BangPypers] Facebook Event for PyCon India 2010 > On Wed, Jun 23, 2010 at 1:00 PM, Noufal Ibrahim wrote: > > > On Wed, Jun 23, 2010 at 12:57 PM, Senthil Kumaran > > wrote: > > > On Wed, Jun 23, 2010 at 12:11 PM, Pranav Prakash > > wrote: > > >> Hi, > > >> > > >> I believe it would be great if the admins could create a Facebook > event > > for > > >> PyCon India 2010. This would cause more people to know about the > event. > > > > > > If you are interested, you go ahead and create this one. Share with > > > others so that they can join in. > > > > > > It has been done. http://www.facebook.com/event.php?eid=137812032902811 > > > > Hmmm. "You must login to see this page". > I deleted my FB account a month back. Is there a way to make this link > public for anyone to see ? > > > > > > Please spread the word. > > > > Thanks Pranav. > > > > -- > > ~noufal > > http://nibrahim.net.in > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > -- Pranav Prakash "This life is more than ordinary" http://twitter.com/pranavprakash From noufal at gmail.com Sun Jun 27 16:32:38 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 27 Jun 2010 20:02:38 +0530 Subject: [BangPypers] Facebook Event for PyCon India 2010 In-Reply-To: References: Message-ID: The event on face book is for face book users. The main site is for public people so I think this is fine. On 6/27/10, Pranav Prakash wrote: > Hi Anand, > > I looked through Facbook and it looks like there is no way a facebook event > is open for public viewing. They can have photos and albums as public but > not events. So sadly you need a facebook account to see a facebook event !! > > On Fri, Jun 25, 2010 at 07:38, wrote: > >> ---------- Forwarded message ---------- >> From: Anand Balachandran Pillai >> To: Bangalore Python Users Group - India >> Date: Thu, 24 Jun 2010 19:10:13 +0530 >> Subject: Re: [BangPypers] Facebook Event for PyCon India 2010 >> On Wed, Jun 23, 2010 at 1:00 PM, Noufal Ibrahim wrote: >> >> > On Wed, Jun 23, 2010 at 12:57 PM, Senthil Kumaran >> > wrote: >> > > On Wed, Jun 23, 2010 at 12:11 PM, Pranav Prakash >> > wrote: >> > >> Hi, >> > >> >> > >> I believe it would be great if the admins could create a Facebook >> event >> > for >> > >> PyCon India 2010. This would cause more people to know about the >> event. >> > > >> > > If you are interested, you go ahead and create this one. Share with >> > > others so that they can join in. >> > >> > >> > It has been done. http://www.facebook.com/event.php?eid=137812032902811 >> > >> >> Hmmm. "You must login to see this page". >> I deleted my FB account a month back. Is there a way to make this link >> public for anyone to see ? >> >> >> > >> > Please spread the word. >> > >> > Thanks Pranav. >> > >> > -- >> > ~noufal >> > http://nibrahim.net.in >> > _______________________________________________ >> > BangPypers mailing list >> > BangPypers at python.org >> > http://mail.python.org/mailman/listinfo/bangpypers >> > >> > > > > -- > Pranav Prakash > > "This life is more than ordinary" > > http://twitter.com/pranavprakash > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ~noufal http://nibrahim.net.in From pranny at gmail.com Sun Jun 27 16:32:21 2010 From: pranny at gmail.com (Pranav Prakash) Date: Sun, 27 Jun 2010 20:02:21 +0530 Subject: [BangPypers] BangPypers Digest, Vol 34, Issue 53 In-Reply-To: References: Message-ID: Hey Indian Python Software Society seems great effort. Coincidentally it was founded on my date of birth. So i was browsing through the wiki. How do i become a member of the society? It looks like this info is missing. Kindly update it ! Thanks, On Sun, Jun 27, 2010 at 19:28, wrote: > > > ---------- Forwarded message ---------- > From: Kenneth Gonsalves > To: "Bangalore Python Users Group - India" > Date: Sun, 27 Jun 2010 19:03:30 +0530 > Subject: Re: [BangPypers] Indian Python Software Society > On Sunday 27 June 2010 12:51:15 Sandip Bhattacharya wrote: > > On Fri, Jun 18, 2010 at 5:53 AM, Kenneth Gonsalves > wrote: > > > further information about the society may be obtained here: > > > http://wiki.python.org/moin/CategoryIndianPythonSoftwareSociety > > > > > > anyone interested is welcome to join the mailing list > > > > Didn't want to nitpick, but wouldn't it be polite to put all the IPSS > > related pages as subpages of say "IPSS" in the python.org wiki? Right > > now the generic sounding pages are all "main pages". > > > > afaik the wiki does not have sub pages - it has categories and there is a > category called CategoryIndianPythonSoftwareSociety under which all IPSS > materials are filed. > -- > Regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > -- Pranav Prakash "This life is more than ordinary" http://twitter.com/pranavprakash From abpillai at gmail.com Sun Jun 27 18:23:06 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Sun, 27 Jun 2010 21:53:06 +0530 Subject: [BangPypers] Facebook Event for PyCon India 2010 In-Reply-To: References: Message-ID: On Sun, Jun 27, 2010 at 7:55 PM, Pranav Prakash wrote: > Hi Anand, > > I looked through Facbook and it looks like there is no way a facebook event > is open for public viewing. They can have photos and albums as public but > not events. So sadly you need a facebook account to see a facebook event !! > Yes, this was my point in the previous email I sent. Can we make this event public so that one can see it without needing to log in to FB ? > > On Fri, Jun 25, 2010 at 07:38, wrote: > > > ---------- Forwarded message ---------- > > From: Anand Balachandran Pillai > > To: Bangalore Python Users Group - India > > Date: Thu, 24 Jun 2010 19:10:13 +0530 > > Subject: Re: [BangPypers] Facebook Event for PyCon India 2010 > > On Wed, Jun 23, 2010 at 1:00 PM, Noufal Ibrahim > wrote: > > > > > On Wed, Jun 23, 2010 at 12:57 PM, Senthil Kumaran > > > > wrote: > > > > On Wed, Jun 23, 2010 at 12:11 PM, Pranav Prakash > > > wrote: > > > >> Hi, > > > >> > > > >> I believe it would be great if the admins could create a Facebook > > event > > > for > > > >> PyCon India 2010. This would cause more people to know about the > > event. > > > > > > > > If you are interested, you go ahead and create this one. Share with > > > > others so that they can join in. > > > > > > > > > It has been done. > http://www.facebook.com/event.php?eid=137812032902811 > > > > > > > Hmmm. "You must login to see this page". > > I deleted my FB account a month back. Is there a way to make this link > > public for anyone to see ? > > > > > > > > > > Please spread the word. > > > > > > Thanks Pranav. > > > > > > -- > > > ~noufal > > > http://nibrahim.net.in > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > -- > Pranav Prakash > > "This life is more than ordinary" > > http://twitter.com/pranavprakash > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand From noufal at gmail.com Sun Jun 27 18:49:19 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Sun, 27 Jun 2010 22:19:19 +0530 Subject: [BangPypers] BangPypers Digest, Vol 34, Issue 53 In-Reply-To: References: Message-ID: On Sun, Jun 27, 2010 at 8:02 PM, Pranav Prakash wrote: > Hey > > Indian Python Software Society seems great effort. Coincidentally it was > founded on my date of birth. So i was browsing through the wiki. How do i > become a member of the society? It looks like this info is missing. Kindly > update it ! It's not a public body with 'memberships' (yet). It's just a legal entity so that we can take care of things like bank accounts etc. for the conference. So, as of now you can't become a "member of the society". -- ~noufal http://nibrahim.net.in From orsenthil at gmail.com Sun Jun 27 20:42:18 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Mon, 28 Jun 2010 00:12:18 +0530 Subject: [BangPypers] Volunteers to spread the word In-Reply-To: References: Message-ID: <20100627184218.GA15332@remy> On Sun, Jun 27, 2010 at 03:19:38PM +0530, Anand Balachandran Pillai wrote: > When you do please make sure the CFP link is posted > separately. > > http://in.pycon.org/2010/cfp Site has come out really well. This is really nice. -- Senthil But you have to allow a little for the desire to evangelize when you think you have good news. -- Larry Wall in <1992Aug26.184221.29627 at netlabs.com> From noufal at gmail.com Sun Jun 27 20:43:52 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 28 Jun 2010 00:13:52 +0530 Subject: [BangPypers] Volunteers to spread the word In-Reply-To: <20100627184218.GA15332@remy> References: <20100627184218.GA15332@remy> Message-ID: On Mon, Jun 28, 2010 at 12:12 AM, Senthil Kumaran wrote: > On Sun, Jun 27, 2010 at 03:19:38PM +0530, Anand Balachandran Pillai wrote: >> When you do please make sure the CFP link is posted >> separately. >> >> http://in.pycon.org/2010/cfp > > Site has come out really well. This is really nice. Yup. I totally agree. Abhishek and Anand have done an amazing job. -- ~noufal http://nibrahim.net.in From orsenthil at gmail.com Mon Jun 28 06:19:51 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Mon, 28 Jun 2010 09:49:51 +0530 Subject: [BangPypers] Help needed on reviewing my presentation for pycon. In-Reply-To: References: <20100626155427.GB2799@remy> Message-ID: <20100628041951.GA3965@remy> On Sat, Jun 26, 2010 at 09:50:03PM +0530, Shiv Shankar wrote: > I have experience on designing composable memory transactions library in C, > which basically is aids in designing thread safe, non blocking concurrent > systems. Thanks for responding back. > I use twisted, experiment with it, run benchmarks on it for my curiosity, > never have written production code in it. But I know the limitations of > threads in python, how to break it and where twisted comes in. Twisted is not just a solution for threads and more over threads in python are problematic (?) at CPU level and not at IO level and twisted is for asynchronous operation at IO level that is why is it helpful in designing a lot of Networking Software. It takes a bit of time, repeated trials to get around with the topic of twisted. I found some helpful introduction here. http://krondo.com/blog/?p=1209 I had also found another introduction which was given to biologists which was very helpful. Yeah, the point and the feedback is a good study and application of it in your project (as you will use the knowledge and gain some insight) will help make a good presentation. -- Senthil I will not say that women have no character; rather, they have a new one every day. -- Heine From fslash8 at gmail.com Mon Jun 28 06:55:57 2010 From: fslash8 at gmail.com (Shiv Shankar) Date: Mon, 28 Jun 2010 10:25:57 +0530 Subject: [BangPypers] Help needed on reviewing my presentation for pycon. In-Reply-To: <20100628041951.GA3965@remy> References: <20100626155427.GB2799@remy> <20100628041951.GA3965@remy> Message-ID: But I know the limitations of threads in python, how to break it and where >> twisted comes in. >> >> Twisted is not just a solution for threads and more over threads in > python are problematic (?) at CPU level and not at IO level and > twisted is for asynchronous operation at IO level that is why is it > helpful in designing a lot of Networking Software. > Please read my presentation notes, I am not talking about Twisted, I am talking more about the 2 approaches, the second approach being used in designing twisted giving you a clear reason to use twisted. And, 0. If you just want to do Networking Software, asyncore is availiable in native python, why use twisted ? Where does IO comes in most networking software ? 1. Threads in any programing language is problematic, unless until used right.* Python is different, due to its abstractions.* 2. For developing a concurrent system the most crucial thing is write to read ratio, Twisted is used for network programing because the ratio is low in most cases, and due to the async bindings for read/write it aids to concurrency. In a single threaded approach you get stuck when a layer is taking more time to do the operation, ie if the read write (IO) is slow, it results in a slow thread, and it makes the system less concurrent by blocking further operations, mostly by blocking reads. When you take the total picture here the system as a whole becomes slow. The thread pool drains down and boom! One thread can cause enough destruction. Read about SEDA, I don't know if you have experience developing multi threaded applications in python or per say any language, you would understand the problem if you have. From lawgon at au-kbc.org Mon Jun 28 07:48:53 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Mon, 28 Jun 2010 11:18:53 +0530 Subject: [BangPypers] Volunteers to spread the word In-Reply-To: References: <20100627184218.GA15332@remy> Message-ID: <201006281118.53236.lawgon@au-kbc.org> On Monday 28 June 2010 00:13:52 Noufal Ibrahim wrote: > On Mon, Jun 28, 2010 at 12:12 AM, Senthil Kumaran wrote: > > On Sun, Jun 27, 2010 at 03:19:38PM +0530, Anand Balachandran Pillai wrote: > >> When you do please make sure the CFP link is posted > >> separately. > >> > >> http://in.pycon.org/2010/cfp > > > > Site has come out really well. This is really nice. > > Yup. I totally agree. Abhishek and Anand have done an amazing job. > +1 -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From zubin.mithra at gmail.com Mon Jun 28 07:59:50 2010 From: zubin.mithra at gmail.com (Zubin Mithra) Date: Mon, 28 Jun 2010 11:29:50 +0530 Subject: [BangPypers] Help needed on reviewing my presentation for pycon. In-Reply-To: References: <20100626155427.GB2799@remy> <20100628041951.GA3965@remy> Message-ID: On Mon, Jun 28, 2010 at 10:25 AM, Shiv Shankar wrote: > But I know the limitations of threads in python, how to break it and where > >> twisted comes in. > >> > >> Twisted is not just a solution for threads and more over threads in > > python are problematic (?) at CPU level and not at IO level and > > twisted is for asynchronous operation at IO level that is why is it > > helpful in designing a lot of Networking Software. > > > > Please read my presentation notes, I am not talking about Twisted, I am > talking more about the 2 approaches, the second approach being used in > designing twisted giving you a clear reason to use twisted. > > And, > 0. If you just want to do Networking Software, asyncore is availiable in > native python, why use twisted ? Where does IO comes in most networking > software ? > Asynchronous events are considered to be categorized in two; those which are I\O based(in that case you are probably talking about servers or networking applications) or those which deal with CPU based(where you are probably dealing with a complex computation which needs to be efficiently done). Twisted deals with asynchronous I/O. I havent used asyncore myself. > 1. Threads in any programing language is problematic, unless until used > right.* Python is different, due to its abstractions.* > Yup, hard to debug. But if done the right way, its always faster that co-routines correct? Just a doubt. > 2. For developing a concurrent system the most crucial thing is write to > read ratio, > Twisted is used for network programing because the ratio is low in most > cases, > and due to the async bindings for read/write it aids to concurrency. > > Cheers Zubin From sandipb at foss-community.com Mon Jun 28 08:49:04 2010 From: sandipb at foss-community.com (Sandip Bhattacharya) Date: Mon, 28 Jun 2010 12:19:04 +0530 Subject: [BangPypers] Indian Python Software Society In-Reply-To: <201006271938.01819.lawgon@au-kbc.org> References: <201006180553.52369.lawgon@au-kbc.org> <201006271903.30553.lawgon@au-kbc.org> <201006271938.01819.lawgon@au-kbc.org> Message-ID: On Sun, Jun 27, 2010 at 7:38 PM, Kenneth Gonsalves wrote: > On Sunday 27 June 2010 19:28:44 Noufal Ibrahim wrote: >> It has sub pages. Just use a /. The pycon india 2010 has sub pages. >> > > ok - I did say 'afaik' - if someone can make the thing more polite, it is > cool. Renamed the pages. http://wiki.python.org/moin/CategoryIndianPythonSoftwareSociety - Sandip From noufal at gmail.com Mon Jun 28 08:53:18 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 28 Jun 2010 12:23:18 +0530 Subject: [BangPypers] Indian Python Software Society In-Reply-To: References: <201006180553.52369.lawgon@au-kbc.org> <201006271903.30553.lawgon@au-kbc.org> <201006271938.01819.lawgon@au-kbc.org> Message-ID: On Mon, Jun 28, 2010 at 12:19 PM, Sandip Bhattacharya wrote: > On Sun, Jun 27, 2010 at 7:38 PM, Kenneth Gonsalves wrote: >> On Sunday 27 June 2010 19:28:44 Noufal Ibrahim wrote: >>> It has sub pages. Just use a /. The pycon india 2010 has sub pages. >>> >> >> ok - I did say 'afaik' - if someone can make the thing more polite, it is >> cool. > > Renamed the pages. > > http://wiki.python.org/moin/CategoryIndianPythonSoftwareSociety Thanks Sandip. I know I'm imposing but if you put a line or two at http://wiki.python.org/moin/IPSS (the top level page), it would be nice. -- ~noufal http://nibrahim.net.in From noufal at gmail.com Mon Jun 28 08:53:18 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Mon, 28 Jun 2010 12:23:18 +0530 Subject: [BangPypers] Indian Python Software Society In-Reply-To: References: <201006180553.52369.lawgon@au-kbc.org> <201006271903.30553.lawgon@au-kbc.org> <201006271938.01819.lawgon@au-kbc.org> Message-ID: On Mon, Jun 28, 2010 at 12:19 PM, Sandip Bhattacharya wrote: > On Sun, Jun 27, 2010 at 7:38 PM, Kenneth Gonsalves wrote: >> On Sunday 27 June 2010 19:28:44 Noufal Ibrahim wrote: >>> It has sub pages. Just use a /. The pycon india 2010 has sub pages. >>> >> >> ok - I did say 'afaik' - if someone can make the thing more polite, it is >> cool. > > Renamed the pages. > > http://wiki.python.org/moin/CategoryIndianPythonSoftwareSociety Thanks Sandip. I know I'm imposing but if you put a line or two at http://wiki.python.org/moin/IPSS (the top level page), it would be nice. -- ~noufal http://nibrahim.net.in From lawgon at au-kbc.org Mon Jun 28 09:07:55 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Mon, 28 Jun 2010 12:37:55 +0530 Subject: [BangPypers] Indian Python Software Society In-Reply-To: References: <201006180553.52369.lawgon@au-kbc.org> <201006271938.01819.lawgon@au-kbc.org> Message-ID: <201006281237.55993.lawgon@au-kbc.org> On Monday 28 June 2010 12:19:04 Sandip Bhattacharya wrote: > > ok - I did say 'afaik' - if someone can make the thing more polite, it is > > cool. > > Renamed the pages. > > http://wiki.python.org/moin/CategoryIndianPythonSoftwareSociety > hah - nice to meet you again after so many years! -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From sandipb at foss-community.com Mon Jun 28 09:59:15 2010 From: sandipb at foss-community.com (Sandip Bhattacharya) Date: Mon, 28 Jun 2010 13:29:15 +0530 Subject: [BangPypers] Indian Python Software Society In-Reply-To: References: <201006180553.52369.lawgon@au-kbc.org> <201006271903.30553.lawgon@au-kbc.org> <201006271938.01819.lawgon@au-kbc.org> Message-ID: On Mon, Jun 28, 2010 at 12:23 PM, Noufal Ibrahim wrote: > > Thanks Sandip. I know I'm imposing but if you put a line or two at > http://wiki.python.org/moin/IPSS (the top level page), it would be > nice. > Added some content. http://wiki.python.org/moin/IPSS Hey, Kenneth. :) - Sandip From lawgon at au-kbc.org Mon Jun 28 10:08:45 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Mon, 28 Jun 2010 13:38:45 +0530 Subject: [BangPypers] Indian Python Software Society In-Reply-To: References: <201006180553.52369.lawgon@au-kbc.org> Message-ID: <201006281338.45404.lawgon@au-kbc.org> On Monday 28 June 2010 13:29:15 Sandip Bhattacharya wrote: > > Thanks Sandip. I know I'm imposing but if you put a line or two at > > http://wiki.python.org/moin/IPSS (the top level page), it would be > > nice. > > Added some content. > > http://wiki.python.org/moin/IPSS > a small change - formation date is 4th Feb - where did you get 2nd April from? -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From sandipb at foss-community.com Mon Jun 28 10:16:43 2010 From: sandipb at foss-community.com (Sandip Bhattacharya) Date: Mon, 28 Jun 2010 13:46:43 +0530 Subject: [BangPypers] Indian Python Software Society In-Reply-To: <201006281338.45404.lawgon@au-kbc.org> References: <201006180553.52369.lawgon@au-kbc.org> <201006281338.45404.lawgon@au-kbc.org> Message-ID: Aargh. Date format error. Should have assumed dd/mm/yyyy. > > a small change - formation date is 4th Feb - where did you get 2nd April from? In http://wiki.python.org/moin/IPSS/MOA > DATE OF OPENING : 4-2-2010 - Sandip From lawgon at au-kbc.org Mon Jun 28 11:25:35 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Mon, 28 Jun 2010 14:55:35 +0530 Subject: [BangPypers] Indian Python Software Society In-Reply-To: References: <201006180553.52369.lawgon@au-kbc.org> <201006281338.45404.lawgon@au-kbc.org> Message-ID: <201006281455.35233.lawgon@au-kbc.org> On Monday 28 June 2010 13:46:43 Sandip Bhattacharya wrote: > In http://wiki.python.org/moin/IPSS/MOA > > > DATE OF OPENING : 4-2-2010 > wir sind in Indien -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From orsenthil at gmail.com Mon Jun 28 11:57:03 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Mon, 28 Jun 2010 15:27:03 +0530 Subject: [BangPypers] Help needed on reviewing my presentation for pycon. In-Reply-To: References: <20100626155427.GB2799@remy> <20100628041951.GA3965@remy> Message-ID: <20100628095703.GA3667@remy> On Mon, Jun 28, 2010 at 10:25:57AM +0530, Shiv Shankar wrote: > Please read my presentation notes, I am not talking about Twisted, I am > talking more about the 2 approaches, the second approach being used in > designing twisted giving you a clear reason to use twisted. Okay, I read it again to get a better context of your presentation. My understanding is, you are building up the requirements for a need for asynchronous IO and then landing up with Twisted based approach. BIND like software could be one example which could be chosen as example out of any generic Server. > And, > 0. If you just want to do Networking Software, asyncore is availiable in > native python, why use twisted ? Where does IO comes in most networking > software ? I did not properly get this question. In my understanding, you can use asycore pretty most of the places where you can use twisted. Except that you will have to do more. Write more code. Asyncore is different from threading concepts for sure. But it is event driven. Twisted gives you a framework with easy implementation of reactor pattern and then gives you an ability to create differeds for handling blocking requests in a non-blocking way. You could do the same using asyncore with more work. > 1. Threads in any programing language is problematic, unless until used > right.* Python is different, due to its abstractions.* - It's a pretty generic point. I am trying to understand what it is. > 2. For developing a concurrent system the most crucial thing is > write to read ratio, Twisted is used for network programing because > the ratio is low in most cases, and due to the async bindings for > read/write it aids to concurrency. I got confused here too. Perhaps I am seeing it from a different angle or I have not read the same literature that you have read. Are you referring to IO operation by saying read/write. And also if you point me to any literature on ratio of write to read (O to I? ) on concurrency that would be helpful. > Read about SEDA, I don't know if you have experience developing multi I am hearing about SEDA for the first time and it says it is a 'Staged Event Driven Approach' and gives the details of how staging can help in the Event Driven Approach. Now, we have quickly moved to a 'staged' event driven from event driven. Pretty new concept, at least in the Python world. How is twisted coming into picture here? But yeah, this discussion is pointing out that that a single focussed topic, say if you take twisted and designing a server using it might be helpful. If focussing on Benchmarks, then it might be a topic in itself. -- Senthil BOFH excuse #402: Secretary sent chain letter to all 5000 employees. From shobhit.nayal at abcconsultants.net Mon Jun 28 11:52:53 2010 From: shobhit.nayal at abcconsultants.net (Shobhit Nayal) Date: Mon, 28 Jun 2010 15:22:53 +0530 Subject: [BangPypers] [Job]: Urgent Opening for Python Professionals in Bangalore Message-ID: Requirement : Front end & Back end Developers to be based in Bangalore for an European company. Experience 2- 6 Years Knowledge and experience in working with Object Oriented programming, frameworks ( Django / Pylon / Turbogear etc) , expertise in HTML/CSS and Javascript AND creative passion in front end application and development. Regards Shobhit Nayal ABC Consultants From nitin.nitp at gmail.com Mon Jun 28 13:42:19 2010 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Mon, 28 Jun 2010 17:12:19 +0530 Subject: [BangPypers] [Job]: Urgent Opening for Python Professionals in Bangalore In-Reply-To: References: Message-ID: EFI is also having opening for python exp people of around 2-3 years. On Mon, Jun 28, 2010 at 3:22 PM, Shobhit Nayal < shobhit.nayal at abcconsultants.net> wrote: > > > Requirement : Front end & Back end Developers to be based in Bangalore for > an European company. > > Experience 2- 6 Years > > Knowledge and experience in working with Object Oriented programming, > frameworks ( Django / Pylon / Turbogear etc) , expertise in HTML/CSS and > Javascript AND creative passion in front end application and development. > > > > Regards > > Shobhit Nayal > > ABC Consultants > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Nitin K From jeffjosejeff at gmail.com Mon Jun 28 16:06:45 2010 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Mon, 28 Jun 2010 19:36:45 +0530 Subject: [BangPypers] Help needed on reviewing my presentation for pycon. In-Reply-To: <20100628095703.GA3667@remy> References: <20100626155427.GB2799@remy> <20100628041951.GA3965@remy> <20100628095703.GA3667@remy> Message-ID: > > > Read about SEDA, I don't know if you have experience developing multi > > I am hearing about SEDA for the first time and it says it is a 'Staged > Event Driven Approach' and gives the details of how staging can help > in the Event Driven Approach. Now, we have quickly moved to a 'staged' > event driven from event driven. Pretty new concept, at least in the > Python world. How is twisted coming into picture here? > I should admit that I'm hearing SEDA for the first time. I've had my fair bit of experience with Twisted. And in my experience I've never found a document which portrays Twisted as an answer for I/O concurrency problems. Twisted is not to parallelize I/Os but it has come to me as a framework that lets you write event driven code. No matter what you do, you will write blocking code in Python, but that's where Twisted comes for rescue. It helps you abstract how a particular blocking function is executed - maybe its threads, maybe its processes. Dont get me wrong, I'm not trying to say Twisted doesnt solve I/O problems, maybe it does. But in my expeditions (I/O was never a problem for us) I never used Twsited that way. It was more for Network communication and serving requests. Its funny because when I heard Call for proposals, I thought to myself - yeah, let me do a Twisted talk. I'm glad there are people in the group who are not just thinking, but executing that. Good Luck! /jeff On Mon, Jun 28, 2010 at 3:27 PM, Senthil Kumaran wrote: > On Mon, Jun 28, 2010 at 10:25:57AM +0530, Shiv Shankar wrote: > > Please read my presentation notes, I am not talking about Twisted, I am > > talking more about the 2 approaches, the second approach being used in > > designing twisted giving you a clear reason to use twisted. > > Okay, I read it again to get a better context of your presentation. > My understanding is, you are building up the requirements for a need > for asynchronous IO and then landing up with Twisted based approach. > BIND like software could be one example which could be chosen as > example out of any generic Server. > > > And, > > 0. If you just want to do Networking Software, asyncore is availiable in > > native python, why use twisted ? Where does IO comes in most networking > > software ? > > I did not properly get this question. In my understanding, you can use > asycore pretty most of the places where you can use twisted. Except > that you will have to do more. Write more code. Asyncore is different > from threading concepts for sure. But it is event driven. Twisted > gives you a framework with easy implementation of reactor pattern and > then gives you an ability to create differeds for handling blocking > requests in a non-blocking way. You could do the same using asyncore > with more work. > > > 1. Threads in any programing language is problematic, unless until used > > right.* Python is different, due to its abstractions.* > > - It's a pretty generic point. I am trying to understand what it is. > > > 2. For developing a concurrent system the most crucial thing is > > write to read ratio, Twisted is used for network programing because > > the ratio is low in most cases, and due to the async bindings for > > read/write it aids to concurrency. > > I got confused here too. Perhaps I am seeing it from a different angle > or I have not read the same literature that you have read. Are you > referring to IO operation by saying read/write. And also if you point > me to any literature on ratio of write to read (O to I? ) on > concurrency that would be helpful. > > > Read about SEDA, I don't know if you have experience developing multi > > I am hearing about SEDA for the first time and it says it is a 'Staged > Event Driven Approach' and gives the details of how staging can help > in the Event Driven Approach. Now, we have quickly moved to a 'staged' > event driven from event driven. Pretty new concept, at least in the > Python world. How is twisted coming into picture here? > > But yeah, this discussion is pointing out that that a single focussed > topic, say if you take twisted and designing a server using it might > be helpful. > > If focussing on Benchmarks, then it might be a topic in itself. > > > -- > Senthil > > BOFH excuse #402: > > Secretary sent chain letter to all 5000 employees. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From jeffjosejeff at gmail.com Mon Jun 28 16:10:07 2010 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Mon, 28 Jun 2010 19:40:07 +0530 Subject: [BangPypers] designing programs In-Reply-To: <201006271056.54819.lawgon@au-kbc.org> References: <201006250822.27014.lawgon@au-kbc.org> <201006271056.54819.lawgon@au-kbc.org> Message-ID: [OFFTOPIC] %s/corporate/enterprise/g FTFY. /jeff On Sun, Jun 27, 2010 at 10:56 AM, Kenneth Gonsalves wrote: > On Saturday 26 June 2010 21:02:52 shameek ghosh wrote: > > Well...Although I have not done this much, but I believe a modelling > tool > > like UML helps when you show your design to somebody else and secondly > > there might be cases where UML like modelling tools may also be > converted > > to some specific code. > > > > great for corporate java guys - write 1000 lines of UML, which generates > 5000 > lines of XML which generates 50000 lines of java code which generates > 100,000 > lines of error messages - and charge $1 per line - and go laughing all the > way > to the bank. > > s/corporate/enterprise? > -- > Regards > Kenneth Gonsalves > Senior Associate > NRC-FOSS at AU-KBC > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From orsenthil at gmail.com Mon Jun 28 17:35:27 2010 From: orsenthil at gmail.com (Senthil Kumaran) Date: Mon, 28 Jun 2010 21:05:27 +0530 Subject: [BangPypers] Help needed on reviewing my presentation for pycon. In-Reply-To: References: <20100626155427.GB2799@remy> <20100628041951.GA3965@remy> <20100628095703.GA3667@remy> Message-ID: <20100628153527.GA10019@remy> On Mon, Jun 28, 2010 at 07:36:45PM +0530, Jeffrey Jose wrote: > experience I've never found a document which portrays Twisted as an > answer for I/O concurrency problems. Seriously? Perhaps you were not looking for I/O Concurrency in the first place but where trying to use Reactor model for other purposes. > Twisted is not to parallelize I/Os but it has come to me as a framework that > lets you write event driven code. Yeah, one can do that. But the entire architecture, the 'Protocol' model has its inclinations towards Networking, isn't it. > No matter what you do, you will write blocking code in Python, but > that's where Twisted comes for rescue. It helps you abstract how a > particular blocking function is executed - maybe its threads, maybe > its processes. > Dont get me wrong, I'm not trying to say Twisted doesnt solve I/O problems, > maybe it does. But in my expeditions (I/O was never a problem for us) > I never used Twsited that way. It was more for Network communication and > serving requests. When we are taking about I/O aren't we talking about Network I/O. We surely are not talking about Database Read/Write, a yeah Database Server can also use the Reactor pattern with event driven code. -- Senthil Windows for Workgroups: Why crash 1 when you can crash 6? From noufal at gmail.com Tue Jun 29 17:40:18 2010 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 29 Jun 2010 21:10:18 +0530 Subject: [BangPypers] [OT] Non tech. meta talk at PyCon India Message-ID: <874oglalul.fsf@nibrahim.net.in> Hello everyone, There was an email here from someone else about a talk on twisted and whether it would be interesting. I'd like to ask something similar. I had a talk at last years event which just discussed the whole effort of organising the event. I was wondering if such a talk would be interesting to people here. Any comments? Thanks. From ankur at thinklabs.in Tue Jun 29 18:19:49 2010 From: ankur at thinklabs.in (Ankur Gupta) Date: Tue, 29 Jun 2010 21:49:49 +0530 Subject: [BangPypers] [OT] Non tech. meta talk at PyCon India In-Reply-To: <874oglalul.fsf@nibrahim.net.in> References: <874oglalul.fsf@nibrahim.net.in> Message-ID: On Tue, Jun 29, 2010 at 9:10 PM, Noufal Ibrahim wrote: > > Hello everyone, > There was an email here from someone else about a talk on twisted > and whether it would be interesting. I'd like to ask something > similar. I had a talk at last years event which just discussed the whole > effort of organising the event. I was wondering if such a talk would be > interesting to people here. > > Any comments? > Speaking for myself I would love to know what goes inside / what it takes to initiate and organize a conference like such. +1 > > Thanks. > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From srinivas_thatiparthy at akebonosoft.com Wed Jun 30 06:22:27 2010 From: srinivas_thatiparthy at akebonosoft.com (Srinivas Reddy Thatiparthy) Date: Wed, 30 Jun 2010 09:52:27 +0530 Subject: [BangPypers] [OT] Non tech. meta talk at PyCon India References: <874oglalul.fsf@nibrahim.net.in> Message-ID: <4EF2BF691B890546B2694C99A2852F0C01D83412@astserver3.akebonosoft.com> +1 I am very much keen on this. Regards, Srini T. --The real failure is failing to try for success. From steve at lonetwin.net Wed Jun 30 13:28:04 2010 From: steve at lonetwin.net (steve) Date: Wed, 30 Jun 2010 16:58:04 +0530 Subject: [BangPypers] [OT] Non tech. meta talk at PyCon India In-Reply-To: <874oglalul.fsf@nibrahim.net.in> References: <874oglalul.fsf@nibrahim.net.in> Message-ID: <4C2B2A44.2040202@lonetwin.net> On 06/29/2010 09:10 PM, Noufal Ibrahim wrote: > > Hello everyone, > There was an email here from someone else about a talk on twisted > and whether it would be interesting. I'd like to ask something > similar. I had a talk at last years event which just discussed the whole > effort of organising the event. I was wondering if such a talk would be > interesting to people here. > > Any comments? > Sounds like a good idea ! I missed last year's event but i'd say repeating such a talk might be interesting. You can also add describe how things have changed since last year (eg: the society, early organization ...etc) and slip in Pointers/Prodding to how people might help/contribute in next year's events. cheers, - steve -- random spiel: http://lonetwin.net/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ From lawgon at au-kbc.org Wed Jun 30 13:38:48 2010 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Wed, 30 Jun 2010 17:08:48 +0530 Subject: [BangPypers] [OT] Non tech. meta talk at PyCon India In-Reply-To: <4C2B2A44.2040202@lonetwin.net> References: <874oglalul.fsf@nibrahim.net.in> <4C2B2A44.2040202@lonetwin.net> Message-ID: <201006301708.48546.lawgon@au-kbc.org> On Wednesday 30 June 2010 16:58:04 steve wrote: > > Hello everyone, > > There was an email here from someone else about a talk on twisted > > and whether it would be interesting. I'd like to ask something > > similar. I had a talk at last years event which just discussed the whole > > effort of organising the event. I was wondering if such a talk would be > > interesting to people here. > > > > Any comments? > > Sounds like a good idea ! I missed last year's event but i'd say repeating > such a talk might be interesting. You can also add describe how things > have changed since last year (eg: the society, early organization ...etc) > and slip in Pointers/Prodding to how people might help/contribute in next > year's events. > the key point is - submit the talk and then let us talk about it. We need more talks in the list -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC From abpillai at gmail.com Wed Jun 30 13:38:16 2010 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 30 Jun 2010 17:08:16 +0530 Subject: [BangPypers] [OT] Non tech. meta talk at PyCon India In-Reply-To: <4C2B2A44.2040202@lonetwin.net> References: <874oglalul.fsf@nibrahim.net.in> <4C2B2A44.2040202@lonetwin.net> Message-ID: On Wed, Jun 30, 2010 at 4:58 PM, steve wrote: > On 06/29/2010 09:10 PM, Noufal Ibrahim wrote: > >> >> Hello everyone, >> There was an email here from someone else about a talk on twisted >> and whether it would be interesting. I'd like to ask something >> similar. I had a talk at last years event which just discussed the whole >> effort of organising the event. I was wondering if such a talk would be >> interesting to people here. >> >> Any comments? >> >> Sounds like a good idea ! I missed last year's event but i'd say > repeating such a talk might be interesting. You can also add describe how > things have changed since last year (eg: the society, early organization > ...etc) and slip in Pointers/Prodding to how people might help/contribute in > next year's events. > I have just a last comment to add... Enough Talk - Just submit it please! > > cheers, > - steve > -- > random spiel: http://lonetwin.net/ > what i'm stumbling into: http://lonetwin.stumbleupon.com/ > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- --Anand