From kracethekingmaker at gmail.com Thu Jan 3 19:57:17 2013 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Fri, 4 Jan 2013 00:27:17 +0530 Subject: [BangPypers] Jan Meetup Message-ID: Hello We will have BangPypers Jan meetup on 19-01-2013, location Inseive, 2nd Floor, IDBI Bank Building, Basavagudi http://tinyurl.com/insieveoffice from 3:00PM to 6:00PM. Happy to hear proposals from everyone. This time we would like to have lighting talks. Lighting talks will be 5 mins(Max) everyone who will be present in meetup should give talk :-). It can be about how to setup Emacs for python. I would love to hear any new ideas. -- * Thanks & Regards "Talk is cheap, show me the code" -- Linus Torvalds kracekumar www.kracekumar.com * From smrutilekha at gmail.com Fri Jan 4 05:21:16 2013 From: smrutilekha at gmail.com (Smrutilekha Swain) Date: Fri, 4 Jan 2013 09:51:16 +0530 Subject: [BangPypers] How to create an array of QHBoxLayout, QLineEdit? Message-ID: Plz help me. i want to create a QHBoxLayout in which it contains 1 checkbox and 5 LineEdit. Similarly there will be 10 QHBoxLayout. But i want to use in WHILE LOOP or an Array instead of creating one by one. i will b vry grateful for ur advice/suggestions. waiting 4 ur answer. Thanking You In Advance From noufal at nibrahim.net.in Sun Jan 6 09:12:52 2013 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Sun, 06 Jan 2013 13:42:52 +0530 Subject: [BangPypers] [X-post][Ann] IRC meeting for python.org.in Message-ID: <87hamun30b.fsf@sanitarium.localdomain> 'ello everyone, Sorry for the cross posting on such a large number of lists but this is something that needs India wide viewrship and there's no single list that does that. Also, it would be nice if people could continue follow up discussions on the inpycon list since that's a broad cross section of all these lists. This is a little late coming but better late than never. As many of you probably know, there is a python.org.in website now which has a rather ambitious goal of being an umbrella for the entire Python community in India. It is funded by the IPSS. The idea is to provide a subdomain named after a city (e.g. bangalore.python.org.in) and give privileges of that subdomain to a webmaster who can handle it. At the top level, there will be services which are relevant India wide like a job board (details undecided) and an India wide planet RSS aggregator. Anand C., Krace, Dhananjay and others have done some work already on the main site and various subdomains. I think there's potential but we need to take small firm steps rather than wild ones if we want to see this grow and help the Python community in India. I'm proposing a meeting on IRC #python-india on freenode this Wednesday (9 January 2013) at (say) 2030 in the evening. We can beat out the details, try to formalise what to do and get down to doing it. Do reply on inpycon and let's decide the time and date of the meeting. Thanks. -- Cordially, Noufal http://nibrahim.net.in From anandology at gmail.com Mon Jan 7 07:46:16 2013 From: anandology at gmail.com (Anand Chitipothu) Date: Mon, 7 Jan 2013 12:16:16 +0530 Subject: [BangPypers] [OT] [Commercial] Advanced Python Training Course Message-ID: Hi, I'm conducting a two day training on Advanced Python programming on January 26 & 27. For more information, please visit the course page at: http://advancedpython-jan2013.doattend.com/ Please contact me offline if you have any questions. Thanks, Anand http://anandology.com/ From davidsnt at gmail.com Mon Jan 7 10:36:05 2013 From: davidsnt at gmail.com (davidsnt) Date: Mon, 7 Jan 2013 15:06:05 +0530 Subject: [BangPypers] Question on Pattern Matching and Regular Expression Message-ID: Bangpypers, Having a little trouble in parsing a file of 702 line appox, the file is in the format # # # [Space] [ Few lines of information about the title ] [Space] # # <Title> # [Space] [ Few lines of information about the title ] I want to read this file block by block, the need is build a data structure(dictionary) with title as key and the information as values. Example: # #Delhi # Population = 7cr Temperature = 10 deg cel Area = 13000 sqft # #Mumbai # Population = 10cr Temperature = 30 deg cel Area = 132000 sqft Regards, Davidsanthosh L From gora at mimirtech.com Mon Jan 7 11:08:05 2013 From: gora at mimirtech.com (Gora Mohanty) Date: Mon, 7 Jan 2013 15:38:05 +0530 Subject: [BangPypers] Question on Pattern Matching and Regular Expression In-Reply-To: <CAGvL6KXLJBW8i7Kq9qxd5-2ZBz=+e_YB3zu7K=MdpN5vdKwRGA@mail.gmail.com> References: <CAGvL6KXLJBW8i7Kq9qxd5-2ZBz=+e_YB3zu7K=MdpN5vdKwRGA@mail.gmail.com> Message-ID: <CACiMRGK-ex4C_9x1_MDe4caa93pUwm5AE2Da+t70+tVDu4fXLw@mail.gmail.com> On 7 January 2013 15:06, davidsnt <davidsnt at gmail.com> wrote: > Bangpypers, > > Having a little trouble in parsing a file of 702 line appox, > > the file is in the format > > # > # <Title> > # > [Space] > [ > > Few lines of information about the title > > ] > > [Space] If the above format is strictly followed, this should do it, assuming you can read the entire file into a string (s in the example below. import re TITLE_RE = re.compile( r'#\n#([^\n]*)\n#\n \n\[([^\]]*)\]\n \n', re.MULTILINE|re.DOTALL ) for m in TITLE_RE.finditer( s.strip ): title, info = m.groups() print title, info Error handling, and reading chunks from a large file are left as an exercise for the reader. Also, if the file format is at all more complex, and maybe even in this case, I would write a parser rather than use regular expressions. Regards, Gora From davidsnt at gmail.com Mon Jan 7 11:08:33 2013 From: davidsnt at gmail.com (davidsnt) Date: Mon, 7 Jan 2013 15:38:33 +0530 Subject: [BangPypers] Question on Pattern Matching and Regular Expression In-Reply-To: <50EA9A8F.3070307@lonetwin.net> References: <CAGvL6KXLJBW8i7Kq9qxd5-2ZBz=+e_YB3zu7K=MdpN5vdKwRGA@mail.gmail.com> <50EA9A8F.3070307@lonetwin.net> Message-ID: <CAGvL6KWsPFqPq60OoyWLnWTGirQO7pmu7_uYCzfBcjE+gUYH4A@mail.gmail.com> I am trying with re.split to split the file based on the pattern but stuck at the point where I am unable to move forward, I also need this app to be able to do a search in the file based on the title. Regards, Davidsanthosh L On Mon, Jan 7, 2013 at 3:21 PM, steve <steve at lonetwin.net> wrote: > On Monday 07 January 2013 03:06 PM, davidsnt wrote: > >> Bangpypers, >> >> Having a little trouble in parsing a file of 702 line appox, >> >> the file is in the format >> [...snip...] >> > > > Could you show us what you already have done ? > > cheers, > - steve > From gora at mimirtech.com Mon Jan 7 11:10:01 2013 From: gora at mimirtech.com (Gora Mohanty) Date: Mon, 7 Jan 2013 15:40:01 +0530 Subject: [BangPypers] Question on Pattern Matching and Regular Expression In-Reply-To: <CACiMRGK-ex4C_9x1_MDe4caa93pUwm5AE2Da+t70+tVDu4fXLw@mail.gmail.com> References: <CAGvL6KXLJBW8i7Kq9qxd5-2ZBz=+e_YB3zu7K=MdpN5vdKwRGA@mail.gmail.com> <CACiMRGK-ex4C_9x1_MDe4caa93pUwm5AE2Da+t70+tVDu4fXLw@mail.gmail.com> Message-ID: <CACiMRGLvLPyGYrX9aAS7d5Ry52E45j-_5UoiwMuJ9n+-HU938Q@mail.gmail.com> On 7 January 2013 15:38, Gora Mohanty <gora at mimirtech.com> wrote: > import re > TITLE_RE = re.compile( r'#\n#([^\n]*)\n#\n \n\[([^\]]*)\]\n \n', > re.MULTILINE|re.DOTALL ) > for m in TITLE_RE.finditer( s.strip ): > title, info = m.groups() > print title, info Oops, that should be s.strip(), viz., import re TITLE_RE = re.compile( r'#\n#([^\n]*)\n#\n \n\[([^\]]*)\]\n \n', re.MULTILINE|re.DOTALL ) for m in TITLE_RE.finditer( s.strip() ): title, info = m.groups() print title, info Regards, Gora From davidsnt at gmail.com Mon Jan 7 11:22:48 2013 From: davidsnt at gmail.com (davidsnt) Date: Mon, 7 Jan 2013 15:52:48 +0530 Subject: [BangPypers] Question on Pattern Matching and Regular Expression In-Reply-To: <CACiMRGK-ex4C_9x1_MDe4caa93pUwm5AE2Da+t70+tVDu4fXLw@mail.gmail.com> References: <CAGvL6KXLJBW8i7Kq9qxd5-2ZBz=+e_YB3zu7K=MdpN5vdKwRGA@mail.gmail.com> <CACiMRGK-ex4C_9x1_MDe4caa93pUwm5AE2Da+t70+tVDu4fXLw@mail.gmail.com> Message-ID: <CAGvL6KU7dmQrwoU6BQsoJ6249Fuv=S6GRbhdhNYK74Z+v_XXKg@mail.gmail.com> Gora, Can you help me with few links that you have handy to which I can refer to build a parser instead of RE Regards, Davidsanthosh L On Mon, Jan 7, 2013 at 3:38 PM, Gora Mohanty <gora at mimirtech.com> wrote: > On 7 January 2013 15:06, davidsnt <davidsnt at gmail.com> wrote: > > Bangpypers, > > > > Having a little trouble in parsing a file of 702 line appox, > > > > the file is in the format > > > > # > > # <Title> > > # > > [Space] > > [ > > > > Few lines of information about the title > > > > ] > > > > [Space] > > If the above format is strictly followed, this should do it, > assuming you can read the entire file into a string (s in > the example below. > > import re > TITLE_RE = re.compile( r'#\n#([^\n]*)\n#\n \n\[([^\]]*)\]\n \n', > re.MULTILINE|re.DOTALL ) > for m in TITLE_RE.finditer( s.strip ): > title, info = m.groups() > print title, info > > Error handling, and reading chunks from a large file > are left as an exercise for the reader. > > Also, if the file format is at all more complex, and > maybe even in this case, I would write a parser > rather than use regular expressions. > > Regards, > Gora > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From steve at lonetwin.net Mon Jan 7 10:51:11 2013 From: steve at lonetwin.net (steve) Date: Mon, 07 Jan 2013 15:21:11 +0530 Subject: [BangPypers] Question on Pattern Matching and Regular Expression In-Reply-To: <CAGvL6KXLJBW8i7Kq9qxd5-2ZBz=+e_YB3zu7K=MdpN5vdKwRGA@mail.gmail.com> References: <CAGvL6KXLJBW8i7Kq9qxd5-2ZBz=+e_YB3zu7K=MdpN5vdKwRGA@mail.gmail.com> Message-ID: <50EA9A8F.3070307@lonetwin.net> On Monday 07 January 2013 03:06 PM, davidsnt wrote: > Bangpypers, > > Having a little trouble in parsing a file of 702 line appox, > > the file is in the format >[...snip...] Could you show us what you already have done ? cheers, - steve From amit.pureenergy at gmail.com Mon Jan 7 12:25:05 2013 From: amit.pureenergy at gmail.com (Amit Sethi) Date: Mon, 7 Jan 2013 16:55:05 +0530 Subject: [BangPypers] Question on Pattern Matching and Regular Expression In-Reply-To: <CAGvL6KU7dmQrwoU6BQsoJ6249Fuv=S6GRbhdhNYK74Z+v_XXKg@mail.gmail.com> References: <CAGvL6KXLJBW8i7Kq9qxd5-2ZBz=+e_YB3zu7K=MdpN5vdKwRGA@mail.gmail.com> <CACiMRGK-ex4C_9x1_MDe4caa93pUwm5AE2Da+t70+tVDu4fXLw@mail.gmail.com> <CAGvL6KU7dmQrwoU6BQsoJ6249Fuv=S6GRbhdhNYK74Z+v_XXKg@mail.gmail.com> Message-ID: <CAN+DPAB+wzRT-LXSoT+YMsYOZJ5E16VvLTxqkm3fcuv6=KRkJw@mail.gmail.com> On Mon, Jan 7, 2013 at 3:52 PM, davidsnt <davidsnt at gmail.com> wrote: > Gora, > > Can you help me with few links that you have handy to which I can refer to > build a parser instead of RE Can you elaborate on the idea of "build a parser" , in any case you will have to use regex. > I also need this app to be >able to do a search in the file based on the title. What kind of file are you are working with , How often does it change? It might be good move the data to a database in case file does not change very often . -- A-M-I-T S|S From davidsnt at gmail.com Mon Jan 7 12:32:41 2013 From: davidsnt at gmail.com (davidsnt) Date: Mon, 7 Jan 2013 17:02:41 +0530 Subject: [BangPypers] Question on Pattern Matching and Regular Expression In-Reply-To: <CAN+DPAB+wzRT-LXSoT+YMsYOZJ5E16VvLTxqkm3fcuv6=KRkJw@mail.gmail.com> References: <CAGvL6KXLJBW8i7Kq9qxd5-2ZBz=+e_YB3zu7K=MdpN5vdKwRGA@mail.gmail.com> <CACiMRGK-ex4C_9x1_MDe4caa93pUwm5AE2Da+t70+tVDu4fXLw@mail.gmail.com> <CAGvL6KU7dmQrwoU6BQsoJ6249Fuv=S6GRbhdhNYK74Z+v_XXKg@mail.gmail.com> <CAN+DPAB+wzRT-LXSoT+YMsYOZJ5E16VvLTxqkm3fcuv6=KRkJw@mail.gmail.com> Message-ID: <CAGvL6KW7H5POuWJmi1hazTiuFY_CMdLXbxiEQhiTXcus6WWfdw@mail.gmail.com> No this file changes very often, like once in 5 minutes and the values are updated, also there is no way I can move it to a database. Regards, Davidsanthosh L On Mon, Jan 7, 2013 at 4:55 PM, Amit Sethi <amit.pureenergy at gmail.com>wrote: > On Mon, Jan 7, 2013 at 3:52 PM, davidsnt <davidsnt at gmail.com> wrote: > > Gora, > > > > Can you help me with few links that you have handy to which I can refer > to > > build a parser instead of RE > Can you elaborate on the idea of "build a parser" , in any case you > will have to use regex. > > > I also need this app to be > >able to do a search in the file based on the title. > What kind of file are you are working with , How often does it change? > It might be good move the data to a database in case file does not > change very often . > > -- > A-M-I-T S|S > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From syed1.mushtaq at gmail.com Mon Jan 7 12:42:58 2013 From: syed1.mushtaq at gmail.com (Syed Mushtaq) Date: Mon, 7 Jan 2013 17:12:58 +0530 Subject: [BangPypers] Question on Pattern Matching and Regular Expression In-Reply-To: <CAGvL6KW7H5POuWJmi1hazTiuFY_CMdLXbxiEQhiTXcus6WWfdw@mail.gmail.com> References: <CAGvL6KXLJBW8i7Kq9qxd5-2ZBz=+e_YB3zu7K=MdpN5vdKwRGA@mail.gmail.com> <CACiMRGK-ex4C_9x1_MDe4caa93pUwm5AE2Da+t70+tVDu4fXLw@mail.gmail.com> <CAGvL6KU7dmQrwoU6BQsoJ6249Fuv=S6GRbhdhNYK74Z+v_XXKg@mail.gmail.com> <CAN+DPAB+wzRT-LXSoT+YMsYOZJ5E16VvLTxqkm3fcuv6=KRkJw@mail.gmail.com> <CAGvL6KW7H5POuWJmi1hazTiuFY_CMdLXbxiEQhiTXcus6WWfdw@mail.gmail.com> Message-ID: <CADMzvUoVQqRq4+++NXpBSmC=a8WA1U2u+RrgeHAwRmfSVLZP9g@mail.gmail.com> What do you really want to do * * http://mywiki.wooledge.org/XyProblem On Mon, Jan 7, 2013 at 5:02 PM, davidsnt <davidsnt at gmail.com> wrote: > No this file changes very often, like once in 5 minutes and the values are > updated, also there is no way I can move it to a database. > > Regards, > Davidsanthosh L > > > On Mon, Jan 7, 2013 at 4:55 PM, Amit Sethi <amit.pureenergy at gmail.com > >wrote: > > > On Mon, Jan 7, 2013 at 3:52 PM, davidsnt <davidsnt at gmail.com> wrote: > > > Gora, > > > > > > Can you help me with few links that you have handy to which I can refer > > to > > > build a parser instead of RE > > Can you elaborate on the idea of "build a parser" , in any case you > > will have to use regex. > > > > > I also need this app to be > > >able to do a search in the file based on the title. > > What kind of file are you are working with , How often does it change? > > It might be good move the data to a database in case file does not > > change very often . > > > > -- > > A-M-I-T S|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 jtoomim at jtoomim.org Mon Jan 7 17:43:27 2013 From: jtoomim at jtoomim.org (Jonathan Toomim) Date: Mon, 07 Jan 2013 08:43:27 -0800 Subject: [BangPypers] [OT] Introducing myself Message-ID: <50EAFB2F.60302@jtoomim.org> Hello all, My name is Jonathan Toomim. I'm a neuroscientist, electrical engineer, programmer (with a strong preference for python), and entrepreneur. I'll be moving from San Francisco to Bangalore on February 11th/12th. I have never been to India before, so I will probably be rather bewildered and lost in the city initially. If anyone felt like helping me get situated, showing me around, or introducing me to relevant people or groups, I would be grateful. I'm on a modest budget, so I'd rather not waste time and money by being unnecessarily logistically inefficient out of ignorance. In particular, I'll be looking for a place to do work. In California, I spend a lot of time at hackerspaces, especially Noisebridge <https://noisebridge.net/wiki/Noisebridge>, Crash Space <http://blog.crashspace.org/>, and Nullspace <http://032.la/>. I like working there because (a) I'm more motivated and productive than if I stay at home, and (b) much of my work requires or is facilitated by having easy access to soldering irons, oscilloscopes, dissection microscopes, laser cutters, and the like. I was hoping to find someplace similar in Bangalore. I've found the website for Jaaga <http://www.jaaga.in/>, and they look like they might be close, but they appear to have more of a focus on arts and crafts and less of a focus on tech than I would like. Does anyone have any experience with Jaaga? If so, what's your impression of the place? Does anyone know of any other places I might find appropriate? I'm bringing two python-related projects with me. Once I'm settled in, if funding holds up, I will be looking to hire a couple of coders, one for each project. One of them is Brain Workshop <http://brainworkshop.net/>, a popular open source (GPL2) brain-training program based on the dual n-back task <http://www.pnas.org/content/early/2008/04/25/0801268105.abstract>, written (inelegantly) in python and using pyglet for graphics and sound. The other is my company HEG Research (which is currently comprised of one person: me), which makes and sells systems for near-infrared hemoencephalography neurofeedback <http://en.wikipedia.org/wiki/Hemoencephalography> (or HEG for short). HEG is where an instrument measures brain activity (as indicated by cerebral blood oxygenation, measured optically), and the subject is given real-time feedback, which s/he uses in order to learn to increase that activity. The software I use (and wrote) to provide the feedback and record the data is HEGStudio <http://hegstudio.sourceforge.net/>. It is also open source (LGPL) and developed in python, though the hardware you need in order for it to be of use is neither. I look forward to meeting you all. Jonathan From kracethekingmaker at gmail.com Mon Jan 7 18:32:45 2013 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Mon, 7 Jan 2013 23:02:45 +0530 Subject: [BangPypers] [OT] Introducing myself In-Reply-To: <50EAFB2F.60302@jtoomim.org> References: <50EAFB2F.60302@jtoomim.org> Message-ID: <CAO5c=mmBe_QAE2agg2CvgS7NEAZbL6nJEvnDCXR-wjqKhgbsLQ@mail.gmail.com> There is an unofficial hackerspace in bangalore, it is Centre for Internet Society. http://cis-india.org/. You should visit. On Mon, Jan 7, 2013 at 10:13 PM, Jonathan Toomim <jtoomim at jtoomim.org>wrote: > Hello all, > > My name is Jonathan Toomim. I'm a neuroscientist, electrical engineer, > programmer (with a strong preference for python), and entrepreneur. I'll be > moving from San Francisco to Bangalore on February 11th/12th. I have never > been to India before, so I will probably be rather bewildered and lost in > the city initially. If anyone felt like helping me get situated, showing me > around, or introducing me to relevant people or groups, I would be > grateful. I'm on a modest budget, so I'd rather not waste time and money by > being unnecessarily logistically inefficient out of ignorance. > > In particular, I'll be looking for a place to do work. In California, I > spend a lot of time at hackerspaces, especially Noisebridge < > https://noisebridge.net/wiki/**Noisebridge<https://noisebridge.net/wiki/Noisebridge>>, > Crash Space <http://blog.crashspace.org/>, and Nullspace <http://032.la/>. > I like working there because (a) I'm more motivated and productive than if > I stay at home, and (b) much of my work requires or is facilitated by > having easy access to soldering irons, oscilloscopes, dissection > microscopes, laser cutters, and the like. I was hoping to find someplace > similar in Bangalore. I've found the website for Jaaga < > http://www.jaaga.in/>, and they look like they might be close, but they > appear to have more of a focus on arts and crafts and less of a focus on > tech than I would like. Does anyone have any experience with Jaaga? If so, > what's your impression of the place? Does anyone know of any other places I > might find appropriate? > > I'm bringing two python-related projects with me. Once I'm settled in, if > funding holds up, I will be looking to hire a couple of coders, one for > each project. > > One of them is Brain Workshop <http://brainworkshop.net/>, a popular open > source (GPL2) brain-training program based on the dual n-back task < > http://www.pnas.org/content/**early/2008/04/25/0801268105.**abstract<http://www.pnas.org/content/early/2008/04/25/0801268105.abstract>>, > written (inelegantly) in python and using pyglet for graphics and sound. > > The other is my company HEG Research (which is currently comprised of one > person: me), which makes and sells systems for near-infrared > hemoencephalography neurofeedback <http://en.wikipedia.org/wiki/** > Hemoencephalography <http://en.wikipedia.org/wiki/Hemoencephalography>> > (or HEG for short). HEG is where an instrument measures brain activity (as > indicated by cerebral blood oxygenation, measured optically), and the > subject is given real-time feedback, which s/he uses in order to learn to > increase that activity. The software I use (and wrote) to provide the > feedback and record the data is HEGStudio <http://hegstudio.sourceforge.** > net/ <http://hegstudio.sourceforge.net/>>. It is also open source (LGPL) > and developed in python, though the hardware you need in order for it to be > of use is neither. > > I look forward to meeting you all. > > Jonathan > ______________________________**_________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/**mailman/listinfo/bangpypers<http://mail.python.org/mailman/listinfo/bangpypers> > -- * Thanks & Regards "Talk is cheap, show me the code" -- Linus Torvalds kracekumar www.kracekumar.com * From svaksha at gmail.com Mon Jan 7 18:50:59 2013 From: svaksha at gmail.com (=?UTF-8?B?IOCkuOCljeCkteCkleCljeCktw==?=) Date: Mon, 7 Jan 2013 23:20:59 +0530 Subject: [BangPypers] [OT] Introducing myself In-Reply-To: <50EAFB2F.60302@jtoomim.org> References: <50EAFB2F.60302@jtoomim.org> Message-ID: <CAN9ztG-0UCfTi3Ti9z7xe3jKqJSGpTC+ymzDwL97yUbk2QxZ-g@mail.gmail.com> On Mon, Jan 7, 2013 at 10:13 PM, Jonathan Toomim <jtoomim at jtoomim.org> wrote: > Hello all, > > My name is Jonathan Toomim. I'm a neuroscientist, electrical engineer, > programmer (with a strong preference for python), and entrepreneur. I'll be > moving from San Francisco to Bangalore on February 11th/12th. I have never > been to India before, so I will probably be rather bewildered and lost in > the city initially. If anyone felt like helping me get situated, showing me > around, or introducing me to relevant people or groups, I would be grateful. > I'm on a modest budget, so I'd rather not waste time and money by being > unnecessarily logistically inefficient out of ignorance. Hi Jonathan, You've reached out to the correct group as far as Python goes. Also, if you are looking for a general Linux group, there is the "ILUG Bengaluru" group at http://groups.google.com/group/ilug-bengaluru?hl=en > In particular, I'll be looking for a place to do work. In California, I > spend a lot of time at hackerspaces, especially Noisebridge > <https://noisebridge.net/wiki/Noisebridge>, Crash Space > <http://blog.crashspace.org/>, and Nullspace <http://032.la/>. I like > working there because (a) I'm more motivated and productive than if I stay > at home, and (b) much of my work requires or is facilitated by having easy > access to soldering irons, oscilloscopes, dissection microscopes, laser > cutters, and the like. I was hoping to find someplace similar in Bangalore. CIS <http://cis-india.org/> would be the closest match for a free hackerspace, though not exactly equipped with the equipment you require - just so you know what to expect, these may be a little hard to come by outside of the local Engg schools and/or research labs. > One of them is Brain Workshop <http://brainworkshop.net/>, a popular open > source (GPL2) brain-training program based on the dual n-back task > <http://www.pnas.org/content/early/2008/04/25/0801268105.abstract>, written > (inelegantly) in python and using pyglet for graphics and sound. > > The other is my company HEG Research (which is currently comprised of one > person: me), which makes and sells systems for near-infrared > hemoencephalography neurofeedback > <http://en.wikipedia.org/wiki/Hemoencephalography> (or HEG for short). HEG This seems very interesting. Once you are settled in, do consider holding a hacking workshop. (PS: I would be interested in attending) HTH, Vid ? http://svaksha.com ? From rahul8590 at gmail.com Mon Jan 7 19:32:00 2013 From: rahul8590 at gmail.com (Rahul R) Date: Tue, 8 Jan 2013 00:02:00 +0530 Subject: [BangPypers] Question on Pattern Matching and Regular Expression In-Reply-To: <CAGvL6KW7H5POuWJmi1hazTiuFY_CMdLXbxiEQhiTXcus6WWfdw@mail.gmail.com> References: <CAGvL6KXLJBW8i7Kq9qxd5-2ZBz=+e_YB3zu7K=MdpN5vdKwRGA@mail.gmail.com> <CACiMRGK-ex4C_9x1_MDe4caa93pUwm5AE2Da+t70+tVDu4fXLw@mail.gmail.com> <CAGvL6KU7dmQrwoU6BQsoJ6249Fuv=S6GRbhdhNYK74Z+v_XXKg@mail.gmail.com> <CAN+DPAB+wzRT-LXSoT+YMsYOZJ5E16VvLTxqkm3fcuv6=KRkJw@mail.gmail.com> <CAGvL6KW7H5POuWJmi1hazTiuFY_CMdLXbxiEQhiTXcus6WWfdw@mail.gmail.com> Message-ID: <CA+ixes6Zx5NDtkBU3CTDbO2S5OnrENxr4JT5oUAA-jZ-j0NHSg@mail.gmail.com> Hey David, Assuming , its not a continuous stream of data being written to file all the time. you could do something like this https://gist.github.com/4477268 . you can enhance it and make it more pythonic. :) Thanks, Rahul On Mon, Jan 7, 2013 at 5:02 PM, davidsnt <davidsnt at gmail.com> wrote: > No this file changes very often, like once in 5 minutes and the values are > updated, also there is no way I can move it to a database. > > Regards, > Davidsanthosh L > > > On Mon, Jan 7, 2013 at 4:55 PM, Amit Sethi <amit.pureenergy at gmail.com > >wrote: > > > On Mon, Jan 7, 2013 at 3:52 PM, davidsnt <davidsnt at gmail.com> wrote: > > > Gora, > > > > > > Can you help me with few links that you have handy to which I can refer > > to > > > build a parser instead of RE > > Can you elaborate on the idea of "build a parser" , in any case you > > will have to use regex. > > > > > I also need this app to be > > >able to do a search in the file based on the title. > > What kind of file are you are working with , How often does it change? > > It might be good move the data to a database in case file does not > > change very often . > > > > -- > > A-M-I-T S|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 dhruvbaldawa at gmail.com Mon Jan 7 19:57:25 2013 From: dhruvbaldawa at gmail.com (Dhruv Baldawa) Date: Tue, 8 Jan 2013 00:27:25 +0530 Subject: [BangPypers] Question on Pattern Matching and Regular Expression In-Reply-To: <CA+ixes6Zx5NDtkBU3CTDbO2S5OnrENxr4JT5oUAA-jZ-j0NHSg@mail.gmail.com> References: <CAGvL6KXLJBW8i7Kq9qxd5-2ZBz=+e_YB3zu7K=MdpN5vdKwRGA@mail.gmail.com> <CACiMRGK-ex4C_9x1_MDe4caa93pUwm5AE2Da+t70+tVDu4fXLw@mail.gmail.com> <CAGvL6KU7dmQrwoU6BQsoJ6249Fuv=S6GRbhdhNYK74Z+v_XXKg@mail.gmail.com> <CAN+DPAB+wzRT-LXSoT+YMsYOZJ5E16VvLTxqkm3fcuv6=KRkJw@mail.gmail.com> <CAGvL6KW7H5POuWJmi1hazTiuFY_CMdLXbxiEQhiTXcus6WWfdw@mail.gmail.com> <CA+ixes6Zx5NDtkBU3CTDbO2S5OnrENxr4JT5oUAA-jZ-j0NHSg@mail.gmail.com> Message-ID: <CAC5HnjhVqMx8qQiFtw2+0NtfmLbaK34fgY8eSDqY28+edmVu_g@mail.gmail.com> regex = """# #(?P<city>[a-zA-Z]+) # Population = (?P<population>\d+)cr Temperature = (?P<temperature>\d+) deg cel Area = (?P<area>\d+) sqft""" regex = re.compile(regex, flags=re.MULTILINE) print regex.findall(rstr) # >>> [('Delhi', '7', '10', '13000'), ('Mumbai', '10', '30', '132000')] for x in regex.finditer(rstr): group = x.groupdict() data[group['city']] = {'area': int(group['area']), 'population': int(group['population']), 'temperature': int(group['temperature'])} In [14]: data Out[14]: {'Delhi': {'area': 13000, 'population': 7, 'temperature': 10}, 'Mumbai': {'area': 132000, 'population': 10, 'temperature': 30}} -- Dhruv Baldawa (http://www.dhruvb.com) On Tue, Jan 8, 2013 at 12:02 AM, Rahul R <rahul8590 at gmail.com> wrote: > Hey David, > > Assuming , its not a continuous stream of data being written to file all > the time. you could do something like this > https://gist.github.com/4477268 . > you can enhance it and make it more pythonic. :) > > Thanks, > Rahul > > > > > > On Mon, Jan 7, 2013 at 5:02 PM, davidsnt <davidsnt at gmail.com> wrote: > > > No this file changes very often, like once in 5 minutes and the values > are > > updated, also there is no way I can move it to a database. > > > > Regards, > > Davidsanthosh L > > > > > > On Mon, Jan 7, 2013 at 4:55 PM, Amit Sethi <amit.pureenergy at gmail.com > > >wrote: > > > > > On Mon, Jan 7, 2013 at 3:52 PM, davidsnt <davidsnt at gmail.com> wrote: > > > > Gora, > > > > > > > > Can you help me with few links that you have handy to which I can > refer > > > to > > > > build a parser instead of RE > > > Can you elaborate on the idea of "build a parser" , in any case you > > > will have to use regex. > > > > > > > I also need this app to be > > > >able to do a search in the file based on the title. > > > What kind of file are you are working with , How often does it change? > > > It might be good move the data to a database in case file does not > > > change very often . > > > > > > -- > > > A-M-I-T S|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 dhruvbaldawa at gmail.com Mon Jan 7 20:00:17 2013 From: dhruvbaldawa at gmail.com (Dhruv Baldawa) Date: Tue, 8 Jan 2013 00:30:17 +0530 Subject: [BangPypers] Question on Pattern Matching and Regular Expression In-Reply-To: <CAC5HnjhVqMx8qQiFtw2+0NtfmLbaK34fgY8eSDqY28+edmVu_g@mail.gmail.com> References: <CAGvL6KXLJBW8i7Kq9qxd5-2ZBz=+e_YB3zu7K=MdpN5vdKwRGA@mail.gmail.com> <CACiMRGK-ex4C_9x1_MDe4caa93pUwm5AE2Da+t70+tVDu4fXLw@mail.gmail.com> <CAGvL6KU7dmQrwoU6BQsoJ6249Fuv=S6GRbhdhNYK74Z+v_XXKg@mail.gmail.com> <CAN+DPAB+wzRT-LXSoT+YMsYOZJ5E16VvLTxqkm3fcuv6=KRkJw@mail.gmail.com> <CAGvL6KW7H5POuWJmi1hazTiuFY_CMdLXbxiEQhiTXcus6WWfdw@mail.gmail.com> <CA+ixes6Zx5NDtkBU3CTDbO2S5OnrENxr4JT5oUAA-jZ-j0NHSg@mail.gmail.com> <CAC5HnjhVqMx8qQiFtw2+0NtfmLbaK34fgY8eSDqY28+edmVu_g@mail.gmail.com> Message-ID: <CAC5HnjjjT-RFQjzgUj17FrToUwF8Y8+rU+GhXJ26hkEaGzpX-Q@mail.gmail.com> Sorry, I just hit the TAB key, and the message got delivered. I am not sure if this is what you want. If it is then to accomplish this, you will need to read the entire file first, and then compile the regex. Iterate using finditer(), and take the groupdict() to get all the values. Also, I have typecasted the values to int. -- Dhruv Baldawa (http://www.dhruvb.com) On Tue, Jan 8, 2013 at 12:27 AM, Dhruv Baldawa <dhruvbaldawa at gmail.com>wrote: > regex = """# > #(?P<city>[a-zA-Z]+) > # > Population = (?P<population>\d+)cr > Temperature = (?P<temperature>\d+) deg cel > Area = (?P<area>\d+) sqft""" > > regex = re.compile(regex, flags=re.MULTILINE) > > print regex.findall(rstr) > # >>> [('Delhi', '7', '10', '13000'), ('Mumbai', '10', '30', '132000')] > > for x in regex.finditer(rstr): > group = x.groupdict() > data[group['city']] = {'area': int(group['area']), > 'population': int(group['population']), 'temperature': > int(group['temperature'])} > > > In [14]: data > Out[14]: > {'Delhi': {'area': 13000, 'population': 7, 'temperature': 10}, > 'Mumbai': {'area': 132000, 'population': 10, 'temperature': 30}} > > -- > Dhruv Baldawa > (http://www.dhruvb.com) > > > On Tue, Jan 8, 2013 at 12:02 AM, Rahul R <rahul8590 at gmail.com> wrote: > >> Hey David, >> >> Assuming , its not a continuous stream of data being written to file all >> the time. you could do something like this >> https://gist.github.com/4477268 . >> you can enhance it and make it more pythonic. :) >> >> Thanks, >> Rahul >> >> >> >> >> >> On Mon, Jan 7, 2013 at 5:02 PM, davidsnt <davidsnt at gmail.com> wrote: >> >> > No this file changes very often, like once in 5 minutes and the values >> are >> > updated, also there is no way I can move it to a database. >> > >> > Regards, >> > Davidsanthosh L >> > >> > >> > On Mon, Jan 7, 2013 at 4:55 PM, Amit Sethi <amit.pureenergy at gmail.com >> > >wrote: >> > >> > > On Mon, Jan 7, 2013 at 3:52 PM, davidsnt <davidsnt at gmail.com> wrote: >> > > > Gora, >> > > > >> > > > Can you help me with few links that you have handy to which I can >> refer >> > > to >> > > > build a parser instead of RE >> > > Can you elaborate on the idea of "build a parser" , in any case you >> > > will have to use regex. >> > > >> > > > I also need this app to be >> > > >able to do a search in the file based on the title. >> > > What kind of file are you are working with , How often does it change? >> > > It might be good move the data to a database in case file does not >> > > change very often . >> > > >> > > -- >> > > A-M-I-T S|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 pradeepbs at gmail.com Tue Jan 8 04:26:18 2013 From: pradeepbs at gmail.com (Pradeep Banavara) Date: Tue, 8 Jan 2013 08:56:18 +0530 Subject: [BangPypers] [OT] Introducing myself In-Reply-To: <50EAFB2F.60302@jtoomim.org> References: <50EAFB2F.60302@jtoomim.org> Message-ID: <CAP-hWS1x6-b1h1DeWeKrGj-uU7BTc5yFWqtsK-nmeEHUQCeHDA@mail.gmail.com> Hi Jonathan - CIS might be more suited for your needs. Jaaga is in a good location but it's a bit noisy and there's no quiet space. Other options: IIM, Bangalore runs an accelerator. It might not hurt to contact them and see if you can get some space. IISc runs an incubation center with good space. They are tech and research heavy. Might not hurt to contact them. *Shameless plug - I'm part of the Microsoft accelerator team and you are welcome to explore this place as well. We are located in the heart of the city. -pradeep On Mon, Jan 7, 2013 at 10:13 PM, Jonathan Toomim <jtoomim at jtoomim.org>wrote: > Hello all, > > My name is Jonathan Toomim. I'm a neuroscientist, electrical engineer, > programmer (with a strong preference for python), and entrepreneur. I'll be > moving from San Francisco to Bangalore on February 11th/12th. I have never > been to India before, so I will probably be rather bewildered and lost in > the city initially. If anyone felt like helping me get situated, showing me > around, or introducing me to relevant people or groups, I would be > grateful. I'm on a modest budget, so I'd rather not waste time and money by > being unnecessarily logistically inefficient out of ignorance. > > In particular, I'll be looking for a place to do work. In California, I > spend a lot of time at hackerspaces, especially Noisebridge < > https://noisebridge.net/wiki/**Noisebridge<https://noisebridge.net/wiki/Noisebridge>>, > Crash Space <http://blog.crashspace.org/>, and Nullspace <http://032.la/>. > I like working there because (a) I'm more motivated and productive than if > I stay at home, and (b) much of my work requires or is facilitated by > having easy access to soldering irons, oscilloscopes, dissection > microscopes, laser cutters, and the like. I was hoping to find someplace > similar in Bangalore. I've found the website for Jaaga < > http://www.jaaga.in/>, and they look like they might be close, but they > appear to have more of a focus on arts and crafts and less of a focus on > tech than I would like. Does anyone have any experience with Jaaga? If so, > what's your impression of the place? Does anyone know of any other places I > might find appropriate? > > I'm bringing two python-related projects with me. Once I'm settled in, if > funding holds up, I will be looking to hire a couple of coders, one for > each project. > > One of them is Brain Workshop <http://brainworkshop.net/>, a popular open > source (GPL2) brain-training program based on the dual n-back task < > http://www.pnas.org/content/**early/2008/04/25/0801268105.**abstract<http://www.pnas.org/content/early/2008/04/25/0801268105.abstract>>, > written (inelegantly) in python and using pyglet for graphics and sound. > > The other is my company HEG Research (which is currently comprised of one > person: me), which makes and sells systems for near-infrared > hemoencephalography neurofeedback <http://en.wikipedia.org/wiki/** > Hemoencephalography <http://en.wikipedia.org/wiki/Hemoencephalography>> > (or HEG for short). HEG is where an instrument measures brain activity (as > indicated by cerebral blood oxygenation, measured optically), and the > subject is given real-time feedback, which s/he uses in order to learn to > increase that activity. The software I use (and wrote) to provide the > feedback and record the data is HEGStudio <http://hegstudio.sourceforge.** > net/ <http://hegstudio.sourceforge.net/>>. It is also open source (LGPL) > and developed in python, though the hardware you need in order for it to be > of use is neither. > > I look forward to meeting you all. > > Jonathan > ______________________________**_________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/**mailman/listinfo/bangpypers<http://mail.python.org/mailman/listinfo/bangpypers> > From aditya.athalye at gmail.com Tue Jan 8 04:29:42 2013 From: aditya.athalye at gmail.com (Aditya Athalye) Date: Tue, 8 Jan 2013 08:59:42 +0530 Subject: [BangPypers] [OT] Introducing myself [Jonathan Toomin] Message-ID: <002201cded50$68777c00$39667400$@gmail.com> Sorry folks, forgot to change the subject line to my reply. I stand corrected. And the text of my reply is included again, below. -Aditya. > -----Original Message----- > From: Aditya Athalye [mailto:aditya.athalye at gmail.com] > Sent: 08 January 2013 08:46 > To: 'jtoomim at jtoomim.org' > Cc: 'bangpypers at python.org' > Subject: RE: BangPypers Digest, Vol 65, Issue 5 > > Hello Jonathan, > Like @krace says, it will be good to explore CIS. I can vouch for Jaaga. I've > used the co-working space there and I think it's a real nice spot to work out > of. Several tech start-ups / tech freelancers use the space, along with > creative folk. I believe a few python programmers also frequent the place. > Jaaga also regularly hosts tech study circles and inexpensive food and filter > coffee are also easy to access, just across the road. > > Off-list, I'll connect you with one of the Jaaga founders - @freemanindia - > also a valley guy. I feel, given your purpose, there may be other > opportunities for technical collaboration. > Best, > Aditya. > > > > > -----Original Message----- > > Date: Mon, 07 Jan 2013 08:43:27 -0800 > > From: Jonathan Toomim <jtoomim at jtoomim.org> > > To: bangpypers at python.org > > Subject: [BangPypers] [OT] Introducing myself > > > > Hello all, > > > > My name is Jonathan Toomim. I'm a neuroscientist, electrical engineer, > > programmer (with a strong preference for python), and entrepreneur. I'll > > be moving from San Francisco to Bangalore on February 11th/12th. I have > > never been to India before, so I will probably be rather bewildered and > > lost in the city initially. If anyone felt like helping me get situated, > > showing me around, or introducing me to relevant people or groups, I > > would be grateful. I'm on a modest budget, so I'd rather not waste time > > and money by being unnecessarily logistically inefficient out of ignorance. > > > > In particular, I'll be looking for a place to do work. In California, I > > spend a lot of time at hackerspaces, especially Noisebridge > > <https://noisebridge.net/wiki/Noisebridge>, Crash Space > > <http://blog.crashspace.org/>, and Nullspace <http://032.la/>. I like > > working there because (a) I'm more motivated and productive than if I > > stay at home, and (b) much of my work requires or is facilitated by > > having easy access to soldering irons, oscilloscopes, dissection > > microscopes, laser cutters, and the like. I was hoping to find someplace > > similar in Bangalore. I've found the website for Jaaga > > <http://www.jaaga.in/>, and they look like they might be close, but they > > appear to have more of a focus on arts and crafts and less of a focus on > > tech than I would like. Does anyone have any experience with Jaaga? If > > so, what's your impression of the place? Does anyone know of any other > > places I might find appropriate? > > > > I'm bringing two python-related projects with me. Once I'm settled in, > > if funding holds up, I will be looking to hire a couple of coders, one > > for each project. > > > > One of them is Brain Workshop <http://brainworkshop.net/>, a popular > > open source (GPL2) brain-training program based on the dual n-back task > > <http://www.pnas.org/content/early/2008/04/25/0801268105.abstract>, > > written (inelegantly) in python and using pyglet for graphics and sound. > > > > The other is my company HEG Research (which is currently comprised of > > one person: me), which makes and sells systems for near-infrared > > hemoencephalography neurofeedback > > <http://en.wikipedia.org/wiki/Hemoencephalography> (or HEG for short). > > HEG is where an instrument measures brain activity (as indicated by > > cerebral blood oxygenation, measured optically), and the subject is > > given real-time feedback, which s/he uses in order to learn to increase > > that activity. The software I use (and wrote) to provide the feedback > > and record the data is HEGStudio <http://hegstudio.sourceforge.net/>. It > > is also open source (LGPL) and developed in python, though the hardware > > you need in order for it to be of use is neither. > > > > I look forward to meeting you all. > > > > Jonathan From aditya.athalye at gmail.com Tue Jan 8 04:16:29 2013 From: aditya.athalye at gmail.com (Aditya Athalye) Date: Tue, 8 Jan 2013 08:46:29 +0530 Subject: [BangPypers] BangPypers Digest, Vol 65, Issue 5 In-Reply-To: <mailman.878.1357579966.2938.bangpypers@python.org> References: <mailman.878.1357579966.2938.bangpypers@python.org> Message-ID: <002101cded4e$90255490$b06ffdb0$@gmail.com> Hello Jonathan, Like @krace says, it will be good to explore CIS. I can vouch for Jaaga. I've used the co-working space there and I think it's a real nice spot to work out of. Several tech start-ups / tech freelancers use the space, along with creative folk. I believe a few python programmers also frequent the place. Jaaga also regularly hosts tech study circles and inexpensive food and filter coffee are also easy to access, just across the road. Off-list, I'll connect you with one of the Jaaga founders - @freemanindia - also a valley guy. I feel, given your purpose, there may be other opportunities for technical collaboration. Best, Aditya. > -----Original Message----- > Date: Mon, 07 Jan 2013 08:43:27 -0800 > From: Jonathan Toomim <jtoomim at jtoomim.org> > To: bangpypers at python.org > Subject: [BangPypers] [OT] Introducing myself > > Hello all, > > My name is Jonathan Toomim. I'm a neuroscientist, electrical engineer, > programmer (with a strong preference for python), and entrepreneur. I'll > be moving from San Francisco to Bangalore on February 11th/12th. I have > never been to India before, so I will probably be rather bewildered and > lost in the city initially. If anyone felt like helping me get situated, > showing me around, or introducing me to relevant people or groups, I > would be grateful. I'm on a modest budget, so I'd rather not waste time > and money by being unnecessarily logistically inefficient out of ignorance. > > In particular, I'll be looking for a place to do work. In California, I > spend a lot of time at hackerspaces, especially Noisebridge > <https://noisebridge.net/wiki/Noisebridge>, Crash Space > <http://blog.crashspace.org/>, and Nullspace <http://032.la/>. I like > working there because (a) I'm more motivated and productive than if I > stay at home, and (b) much of my work requires or is facilitated by > having easy access to soldering irons, oscilloscopes, dissection > microscopes, laser cutters, and the like. I was hoping to find someplace > similar in Bangalore. I've found the website for Jaaga > <http://www.jaaga.in/>, and they look like they might be close, but they > appear to have more of a focus on arts and crafts and less of a focus on > tech than I would like. Does anyone have any experience with Jaaga? If > so, what's your impression of the place? Does anyone know of any other > places I might find appropriate? > > I'm bringing two python-related projects with me. Once I'm settled in, > if funding holds up, I will be looking to hire a couple of coders, one > for each project. > > One of them is Brain Workshop <http://brainworkshop.net/>, a popular > open source (GPL2) brain-training program based on the dual n-back task > <http://www.pnas.org/content/early/2008/04/25/0801268105.abstract>, > written (inelegantly) in python and using pyglet for graphics and sound. > > The other is my company HEG Research (which is currently comprised of > one person: me), which makes and sells systems for near-infrared > hemoencephalography neurofeedback > <http://en.wikipedia.org/wiki/Hemoencephalography> (or HEG for short). > HEG is where an instrument measures brain activity (as indicated by > cerebral blood oxygenation, measured optically), and the subject is > given real-time feedback, which s/he uses in order to learn to increase > that activity. The software I use (and wrote) to provide the feedback > and record the data is HEGStudio <http://hegstudio.sourceforge.net/>. It > is also open source (LGPL) and developed in python, though the hardware > you need in order for it to be of use is neither. > > I look forward to meeting you all. > > Jonathan From gopalakrishnan.subramani at gmail.com Tue Jan 8 05:26:08 2013 From: gopalakrishnan.subramani at gmail.com (Gopalakrishnan Subramani) Date: Tue, 8 Jan 2013 09:56:08 +0530 Subject: [BangPypers] [OT] Introducing myself In-Reply-To: <CAP-hWS1x6-b1h1DeWeKrGj-uU7BTc5yFWqtsK-nmeEHUQCeHDA@mail.gmail.com> References: <50EAFB2F.60302@jtoomim.org> <CAP-hWS1x6-b1h1DeWeKrGj-uU7BTc5yFWqtsK-nmeEHUQCeHDA@mail.gmail.com> Message-ID: <CAHhacd30xRep6+e6cp3ti5Gxct4AJhX3vL25wdO=eYZHwhuLYQ@mail.gmail.com> I agree with Jaaga comments. Jaaga is little noisy due to near by busy road, I would prefer that place if you don't get another place. You also find co-working spaces in many places as Bangalore runs a lot of startups and early stage companies ready to share per seat basis. I love the Jaaga idea and I have been there 2 times as part on Bootstrap breakfast. Jaaga is very cheap (cost about RS 500 for a month), it has other issues like parking, toilets etc. Make a visit and see if you are comfortable. It has bus connectivity. Stay as close as possible to office, that will help to save energy. Never underestimate Bangalore traffic. Be extra careful when you drive. On Tue, Jan 8, 2013 at 8:56 AM, Pradeep Banavara <pradeepbs at gmail.com>wrote: > Hi Jonathan - CIS might be more suited for your needs. Jaaga is in a good > location but it's a bit noisy and there's no quiet space. > > Other options: > > IIM, Bangalore runs an accelerator. It might not hurt to contact them and > see if you can get some space. > > IISc runs an incubation center with good space. They are tech and research > heavy. Might not hurt to contact them. > > *Shameless plug - I'm part of the Microsoft accelerator team and you are > welcome to explore this place as well. We are located in the heart of the > city. > > -pradeep > > > On Mon, Jan 7, 2013 at 10:13 PM, Jonathan Toomim <jtoomim at jtoomim.org > >wrote: > > > Hello all, > > > > My name is Jonathan Toomim. I'm a neuroscientist, electrical engineer, > > programmer (with a strong preference for python), and entrepreneur. I'll > be > > moving from San Francisco to Bangalore on February 11th/12th. I have > never > > been to India before, so I will probably be rather bewildered and lost in > > the city initially. If anyone felt like helping me get situated, showing > me > > around, or introducing me to relevant people or groups, I would be > > grateful. I'm on a modest budget, so I'd rather not waste time and money > by > > being unnecessarily logistically inefficient out of ignorance. > > > > In particular, I'll be looking for a place to do work. In California, I > > spend a lot of time at hackerspaces, especially Noisebridge < > > https://noisebridge.net/wiki/**Noisebridge< > https://noisebridge.net/wiki/Noisebridge>>, > > Crash Space <http://blog.crashspace.org/>, and Nullspace <http://032.la/ > >. > > I like working there because (a) I'm more motivated and productive than > if > > I stay at home, and (b) much of my work requires or is facilitated by > > having easy access to soldering irons, oscilloscopes, dissection > > microscopes, laser cutters, and the like. I was hoping to find someplace > > similar in Bangalore. I've found the website for Jaaga < > > http://www.jaaga.in/>, and they look like they might be close, but they > > appear to have more of a focus on arts and crafts and less of a focus on > > tech than I would like. Does anyone have any experience with Jaaga? If > so, > > what's your impression of the place? Does anyone know of any other > places I > > might find appropriate? > > > > I'm bringing two python-related projects with me. Once I'm settled in, if > > funding holds up, I will be looking to hire a couple of coders, one for > > each project. > > > > One of them is Brain Workshop <http://brainworkshop.net/>, a popular > open > > source (GPL2) brain-training program based on the dual n-back task < > > http://www.pnas.org/content/**early/2008/04/25/0801268105.**abstract< > http://www.pnas.org/content/early/2008/04/25/0801268105.abstract>>, > > written (inelegantly) in python and using pyglet for graphics and sound. > > > > The other is my company HEG Research (which is currently comprised of one > > person: me), which makes and sells systems for near-infrared > > hemoencephalography neurofeedback <http://en.wikipedia.org/wiki/** > > Hemoencephalography <http://en.wikipedia.org/wiki/Hemoencephalography>> > > (or HEG for short). HEG is where an instrument measures brain activity > (as > > indicated by cerebral blood oxygenation, measured optically), and the > > subject is given real-time feedback, which s/he uses in order to learn to > > increase that activity. The software I use (and wrote) to provide the > > feedback and record the data is HEGStudio <http://hegstudio.sourceforge. > ** > > net/ <http://hegstudio.sourceforge.net/>>. It is also open source (LGPL) > > and developed in python, though the hardware you need in order for it to > be > > of use is neither. > > > > I look forward to meeting you all. > > > > Jonathan > > ______________________________**_________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/**mailman/listinfo/bangpypers< > http://mail.python.org/mailman/listinfo/bangpypers> > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From jace at pobox.com Tue Jan 8 06:40:14 2013 From: jace at pobox.com (Kiran Jonnalagadda) Date: Tue, 8 Jan 2013 11:10:14 +0530 Subject: [BangPypers] [OT] Introducing myself In-Reply-To: <CAN9ztG-0UCfTi3Ti9z7xe3jKqJSGpTC+ymzDwL97yUbk2QxZ-g@mail.gmail.com> References: <50EAFB2F.60302@jtoomim.org> <CAN9ztG-0UCfTi3Ti9z7xe3jKqJSGpTC+ymzDwL97yUbk2QxZ-g@mail.gmail.com> Message-ID: <EDF69AB82648489EB9E06EBAD36BD998@gmail.com> On Monday, 7 January 2013 at 11:20 PM, ?????? wrote: > On Mon, Jan 7, 2013 at 10:13 PM, Jonathan Toomim <jtoomim at jtoomim.org (mailto:jtoomim at jtoomim.org)> wrote: > > In particular, I'll be looking for a place to do work. In California, I > > spend a lot of time at hackerspaces, especially Noisebridge > > <https://noisebridge.net/wiki/Noisebridge>, Crash Space > > <http://blog.crashspace.org/>, and Nullspace <http://032.la/>. I like > > working there because (a) I'm more motivated and productive than if I stay > > at home, and (b) much of my work requires or is facilitated by having easy > > access to soldering irons, oscilloscopes, dissection microscopes, laser > > cutters, and the like. I was hoping to find someplace similar in Bangalore. > > > > > CIS <http://cis-india.org/> would be the closest match for a free > hackerspace, though not exactly equipped with the equipment you > require - just so you know what to expect, these may be a little hard > to come by outside of the local Engg schools and/or research labs. > > CIS is the closest there is to Jon's requirements. It has a hardware lab and Sunil has been asking for a list of equipment that people need that the lab doesn't already have. CIS also has HasGeek, so you just need to come upstairs to find Python and web hackers. Kiran From svaksha at gmail.com Tue Jan 8 07:03:07 2013 From: svaksha at gmail.com (=?UTF-8?B?IOCkuOCljeCkteCkleCljeCktw==?=) Date: Tue, 8 Jan 2013 06:03:07 +0000 Subject: [BangPypers] [OT] Introducing myself In-Reply-To: <EDF69AB82648489EB9E06EBAD36BD998@gmail.com> References: <50EAFB2F.60302@jtoomim.org> <CAN9ztG-0UCfTi3Ti9z7xe3jKqJSGpTC+ymzDwL97yUbk2QxZ-g@mail.gmail.com> <EDF69AB82648489EB9E06EBAD36BD998@gmail.com> Message-ID: <CAN9ztG89iFKfVUFTt=DRV8ijMXH6Pqws_W8ieV3UnC0eMtkmkQ@mail.gmail.com> On Tue, Jan 8, 2013 at 5:40 AM, Kiran Jonnalagadda <jace at pobox.com> wrote: > On Monday, 7 January 2013 at 11:20 PM, ?????? wrote: >> On Mon, Jan 7, 2013 at 10:13 PM, Jonathan Toomim <jtoomim at jtoomim.org (mailto:jtoomim at jtoomim.org)> wrote: >> > In particular, I'll be looking for a place to do work. In California, I >> > spend a lot of time at hackerspaces, especially Noisebridge >> > <https://noisebridge.net/wiki/Noisebridge>, Crash Space >> > <http://blog.crashspace.org/>, and Nullspace <http://032.la/>. I like >> > working there because (a) I'm more motivated and productive than if I stay >> > at home, and (b) much of my work requires or is facilitated by having easy >> > access to soldering irons, oscilloscopes, dissection microscopes, laser >> > cutters, and the like. I was hoping to find someplace similar in Bangalore. >> > >> >> >> CIS <http://cis-india.org/> would be the closest match for a free >> hackerspace, though not exactly equipped with the equipment you >> require - just so you know what to expect, these may be a little hard >> to come by outside of the local Engg schools and/or research labs. >> >> > > > CIS is the closest there is to Jon's requirements. It has a hardware lab and Sunil has been asking for a list of equipment that people need that the lab doesn't already have. > Wow, didnt know CIS had soldering irons, oscilloscopes, dissection microscopes, laser cutters ... Its been ages since I've visited. -- Regards, Vid ? http://svaksha.com ? From lorddaemon at gmail.com Tue Jan 8 10:05:40 2013 From: lorddaemon at gmail.com (Sidu Ponnappa) Date: Tue, 8 Jan 2013 14:35:40 +0530 Subject: [BangPypers] [OT] Introducing myself In-Reply-To: <CAN9ztG89iFKfVUFTt=DRV8ijMXH6Pqws_W8ieV3UnC0eMtkmkQ@mail.gmail.com> References: <50EAFB2F.60302@jtoomim.org> <CAN9ztG-0UCfTi3Ti9z7xe3jKqJSGpTC+ymzDwL97yUbk2QxZ-g@mail.gmail.com> <EDF69AB82648489EB9E06EBAD36BD998@gmail.com> <CAN9ztG89iFKfVUFTt=DRV8ijMXH6Pqws_W8ieV3UnC0eMtkmkQ@mail.gmail.com> Message-ID: <CAHQkf6TTfzOHtS8Q0WqNpbW2ZLRwVLmiAPmDWKX4YvC7Y4UwzA@mail.gmail.com> Jonathan, you're always welcome to drop by the C42 Engineering office and chat us up. One of my colleagues, like you, has moved here from Canada, so maybe a conversation with him would be helpful. I'm personally not a big fan of shared workspaces in Bangalore, but I'll defer to the others on the list as it's been a few years since I last hung out at one of these places and lots has changed. I'm not sure about laser cutters, though. :) Cheers, Sidu. http://twitter.com/ponnappa On Tue, Jan 8, 2013 at 11:33 AM, ?????? <svaksha at gmail.com> wrote: > On Tue, Jan 8, 2013 at 5:40 AM, Kiran Jonnalagadda <jace at pobox.com> wrote: >> On Monday, 7 January 2013 at 11:20 PM, ?????? wrote: >>> On Mon, Jan 7, 2013 at 10:13 PM, Jonathan Toomim <jtoomim at jtoomim.org (mailto:jtoomim at jtoomim.org)> wrote: >>> > In particular, I'll be looking for a place to do work. In California, I >>> > spend a lot of time at hackerspaces, especially Noisebridge >>> > <https://noisebridge.net/wiki/Noisebridge>, Crash Space >>> > <http://blog.crashspace.org/>, and Nullspace <http://032.la/>. I like >>> > working there because (a) I'm more motivated and productive than if I stay >>> > at home, and (b) much of my work requires or is facilitated by having easy >>> > access to soldering irons, oscilloscopes, dissection microscopes, laser >>> > cutters, and the like. I was hoping to find someplace similar in Bangalore. >>> > >>> >>> >>> CIS <http://cis-india.org/> would be the closest match for a free >>> hackerspace, though not exactly equipped with the equipment you >>> require - just so you know what to expect, these may be a little hard >>> to come by outside of the local Engg schools and/or research labs. >>> >>> >> >> >> CIS is the closest there is to Jon's requirements. It has a hardware lab and Sunil has been asking for a list of equipment that people need that the lab doesn't already have. >> > > Wow, didnt know CIS had soldering irons, oscilloscopes, dissection > microscopes, laser cutters ... Its been ages since I've visited. > -- > Regards, > Vid ? http://svaksha.com ? > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers From jtoomim at jtoomim.org Tue Jan 8 19:25:12 2013 From: jtoomim at jtoomim.org (Jonathan Toomim) Date: Tue, 08 Jan 2013 10:25:12 -0800 Subject: [BangPypers] [OT] Introducing myself In-Reply-To: <CAHQkf6TTfzOHtS8Q0WqNpbW2ZLRwVLmiAPmDWKX4YvC7Y4UwzA@mail.gmail.com> References: <50EAFB2F.60302@jtoomim.org> <CAN9ztG-0UCfTi3Ti9z7xe3jKqJSGpTC+ymzDwL97yUbk2QxZ-g@mail.gmail.com> <EDF69AB82648489EB9E06EBAD36BD998@gmail.com> <CAN9ztG89iFKfVUFTt=DRV8ijMXH6Pqws_W8ieV3UnC0eMtkmkQ@mail.gmail.com> <CAHQkf6TTfzOHtS8Q0WqNpbW2ZLRwVLmiAPmDWKX4YvC7Y4UwzA@mail.gmail.com> Message-ID: <50EC6488.70402@jtoomim.org> Thanks everyone for the advice and offers of assistance. When I looked at the website of CIS a few weeks ago, it appeared to me to be more of a think tank/news organization than a hackerspace. It sounds like that impression was false. Thanks for the tip, I'll check it out. If I have the time, I wouldn't mind holding a workshop or two. Svaksha, are you mostly interested in learning how to do the electrical engineering stuff, or did you want a workshop on the uses of HEG itself? As for equipment, the most important thing for me to find will be an oscilloscope. Soldering irons are cheap; microscopes are very helpful for SMD soldering work, but not necessary, and can be replaced with a good magnifying glass; and I haven't actually needed a laser cutter for a while. I guess I'll have to look around for a cheap used scope after I arrive, and maybe donate it to Jaaga or CIS. Pradeep, would use of IISc's incubation center be available to me (or, eventually, my employees) as a foreigner? As for IIM, I must admit my prejudice: I'm somewhat psychologically allergic to management/business types; being questioned too long about my value proposition and how I intend to leverage social capital to achieve priority objectives has a tendency to result in inflammation of my amygdala. Jonathan On 1/8/2013 1:05 AM, Sidu Ponnappa wrote: > Jonathan, you're always welcome to drop by the C42 Engineering office > and chat us up. One of my colleagues, like you, has moved here from > Canada, so maybe a conversation with him would be helpful. > > I'm personally not a big fan of shared workspaces in Bangalore, but > I'll defer to the others on the list as it's been a few years since I > last hung out at one of these places and lots has changed. I'm not > sure about laser cutters, though. :) > > Cheers, > Sidu. > http://twitter.com/ponnappa > > On Tue, Jan 8, 2013 at 11:33 AM, ?????? <svaksha at gmail.com> wrote: >> On Tue, Jan 8, 2013 at 5:40 AM, Kiran Jonnalagadda <jace at pobox.com> wrote: >>> On Monday, 7 January 2013 at 11:20 PM, ?????? wrote: >>>> On Mon, Jan 7, 2013 at 10:13 PM, Jonathan Toomim <jtoomim at jtoomim.org (mailto:jtoomim at jtoomim.org)> wrote: >>>>> In particular, I'll be looking for a place to do work. In California, I >>>>> spend a lot of time at hackerspaces, especially Noisebridge >>>>> <https://noisebridge.net/wiki/Noisebridge>, Crash Space >>>>> <http://blog.crashspace.org/>, and Nullspace <http://032.la/>. I like >>>>> working there because (a) I'm more motivated and productive than if I stay >>>>> at home, and (b) much of my work requires or is facilitated by having easy >>>>> access to soldering irons, oscilloscopes, dissection microscopes, laser >>>>> cutters, and the like. I was hoping to find someplace similar in Bangalore. >>>>> >>>> >>>> CIS <http://cis-india.org/> would be the closest match for a free >>>> hackerspace, though not exactly equipped with the equipment you >>>> require - just so you know what to expect, these may be a little hard >>>> to come by outside of the local Engg schools and/or research labs. >>>> >>>> >>> >>> CIS is the closest there is to Jon's requirements. It has a hardware lab and Sunil has been asking for a list of equipment that people need that the lab doesn't already have. >>> >> Wow, didnt know CIS had soldering irons, oscilloscopes, dissection >> microscopes, laser cutters ... Its been ages since I've visited. >> -- >> Regards, >> Vid ? http://svaksha.com ? >> _______________________________________________ >> 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 pradeepbs at gmail.com Wed Jan 9 05:11:03 2013 From: pradeepbs at gmail.com (Pradeep Banavara) Date: Wed, 9 Jan 2013 09:41:03 +0530 Subject: [BangPypers] [OT] Introducing myself In-Reply-To: <50EC6488.70402@jtoomim.org> References: <50EAFB2F.60302@jtoomim.org> <CAN9ztG-0UCfTi3Ti9z7xe3jKqJSGpTC+ymzDwL97yUbk2QxZ-g@mail.gmail.com> <EDF69AB82648489EB9E06EBAD36BD998@gmail.com> <CAN9ztG89iFKfVUFTt=DRV8ijMXH6Pqws_W8ieV3UnC0eMtkmkQ@mail.gmail.com> <CAHQkf6TTfzOHtS8Q0WqNpbW2ZLRwVLmiAPmDWKX4YvC7Y4UwzA@mail.gmail.com> <50EC6488.70402@jtoomim.org> Message-ID: <CAP-hWS2TcAgRJzuSfT92NxmT_cxi=wZNJCKNpmjLwmEGzonV=g@mail.gmail.com> Not sure about IISc's friendliness to foreign nationals but there's no harm in asking. You can contact CS Murali who runs the incubation center and see if there's a fit. -pradeep On Tue, Jan 8, 2013 at 11:55 PM, Jonathan Toomim <jtoomim at jtoomim.org>wrote: > Thanks everyone for the advice and offers of assistance. > > When I looked at the website of CIS a few weeks ago, it appeared to me to > be more of a think tank/news organization than a hackerspace. It sounds > like that impression was false. Thanks for the tip, I'll check it out. > > If I have the time, I wouldn't mind holding a workshop or two. Svaksha, > are you mostly interested in learning how to do the electrical engineering > stuff, or did you want a workshop on the uses of HEG itself? > > As for equipment, the most important thing for me to find will be an > oscilloscope. Soldering irons are cheap; microscopes are very helpful for > SMD soldering work, but not necessary, and can be replaced with a good > magnifying glass; and I haven't actually needed a laser cutter for a while. > I guess I'll have to look around for a cheap used scope after I arrive, and > maybe donate it to Jaaga or CIS. > > Pradeep, would use of IISc's incubation center be available to me (or, > eventually, my employees) as a foreigner? As for IIM, I must admit my > prejudice: I'm somewhat psychologically allergic to management/business > types; being questioned too long about my value proposition and how I > intend to leverage social capital to achieve priority objectives has a > tendency to result in inflammation of my amygdala. > > Jonathan > > > On 1/8/2013 1:05 AM, Sidu Ponnappa wrote: > >> Jonathan, you're always welcome to drop by the C42 Engineering office >> and chat us up. One of my colleagues, like you, has moved here from >> Canada, so maybe a conversation with him would be helpful. >> >> I'm personally not a big fan of shared workspaces in Bangalore, but >> I'll defer to the others on the list as it's been a few years since I >> last hung out at one of these places and lots has changed. I'm not >> sure about laser cutters, though. :) >> >> Cheers, >> Sidu. >> http://twitter.com/ponnappa >> >> On Tue, Jan 8, 2013 at 11:33 AM, ?????? <svaksha at gmail.com> wrote: >> >>> On Tue, Jan 8, 2013 at 5:40 AM, Kiran Jonnalagadda <jace at pobox.com> >>> wrote: >>> >>>> On Monday, 7 January 2013 at 11:20 PM, ?????? wrote: >>>> >>>>> On Mon, Jan 7, 2013 at 10:13 PM, Jonathan Toomim <jtoomim at jtoomim.org(mailto: >>>>> jtoomim at jtoomim.org)> wrote: >>>>> >>>>>> In particular, I'll be looking for a place to do work. In California, >>>>>> I >>>>>> spend a lot of time at hackerspaces, especially Noisebridge >>>>>> <https://noisebridge.net/wiki/**Noisebridge<https://noisebridge.net/wiki/Noisebridge>>, >>>>>> Crash Space >>>>>> <http://blog.crashspace.org/>, and Nullspace <http://032.la/>. I like >>>>>> working there because (a) I'm more motivated and productive than if I >>>>>> stay >>>>>> at home, and (b) much of my work requires or is facilitated by having >>>>>> easy >>>>>> access to soldering irons, oscilloscopes, dissection microscopes, >>>>>> laser >>>>>> cutters, and the like. I was hoping to find someplace similar in >>>>>> Bangalore. >>>>>> >>>>>> >>>>> CIS <http://cis-india.org/> would be the closest match for a free >>>>> hackerspace, though not exactly equipped with the equipment you >>>>> require - just so you know what to expect, these may be a little hard >>>>> to come by outside of the local Engg schools and/or research labs. >>>>> >>>>> >>>>> >>>> CIS is the closest there is to Jon's requirements. It has a hardware >>>> lab and Sunil has been asking for a list of equipment that people need that >>>> the lab doesn't already have. >>>> >>>> Wow, didnt know CIS had soldering irons, oscilloscopes, dissection >>> microscopes, laser cutters ... Its been ages since I've visited. >>> -- >>> Regards, >>> Vid ? http://svaksha.com ? >>> ______________________________**_________________ >>> BangPypers mailing list >>> BangPypers at python.org >>> http://mail.python.org/**mailman/listinfo/bangpypers<http://mail.python.org/mailman/listinfo/bangpypers> >>> >> ______________________________**_________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/**mailman/listinfo/bangpypers<http://mail.python.org/mailman/listinfo/bangpypers> >> >> > ______________________________**_________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/**mailman/listinfo/bangpypers<http://mail.python.org/mailman/listinfo/bangpypers> > From rishi at turtleyogi.com Wed Jan 9 05:41:11 2013 From: rishi at turtleyogi.com (Hrishikesh Kulkarni) Date: Wed, 9 Jan 2013 10:11:11 +0530 Subject: [BangPypers] [OT] Introducing myself In-Reply-To: <50EC6488.70402@jtoomim.org> References: <50EAFB2F.60302@jtoomim.org> <CAN9ztG-0UCfTi3Ti9z7xe3jKqJSGpTC+ymzDwL97yUbk2QxZ-g@mail.gmail.com> <EDF69AB82648489EB9E06EBAD36BD998@gmail.com> <CAN9ztG89iFKfVUFTt=DRV8ijMXH6Pqws_W8ieV3UnC0eMtkmkQ@mail.gmail.com> <CAHQkf6TTfzOHtS8Q0WqNpbW2ZLRwVLmiAPmDWKX4YvC7Y4UwzA@mail.gmail.com> <50EC6488.70402@jtoomim.org> Message-ID: <CALFWOz5Kf4xyLxtFNNBeZzepSLMGBH=ro+SeHHgZmSYjcbzRSQ@mail.gmail.com> Jonathan, We welcome your decision to move to Bangalore. This place is buzzing with ideas and entrepreneurs. More global cerebral and cultural mix would make it more exciting. Sharing a bit of my experience. I looked around for a shared working space for my startup in South Bangalore. Many suffer from basic infrastructure issues like lack of power back up or decent internet connection. We are incubated at IIM-B. As an engineer I can understand the allergy to MBA speak but the entrepreneur in me would like to give one best shot at taking the product to the market. IIM-B incubator is extremely startup friendly and provides access to a large community of educational institutions, government organizations, NGO's, small/medium/large businesses along with an awesome infrastructure (24/7 power back up, Leased line internet connection, Compute infrastructure, Food joints, Library..). There is always more excitement in and around good universities (IIMB or IISC are no exceptions). HSR is another happening place in South Bangalore with a couple of shared working space and lots of startups. You could get more information on such places if you join Open Coffee Club Bangalore ( bangaloreocc at googlegroups.com ). regards and good luck, Rishi Founder - TurtleYogi. On Tue, Jan 8, 2013 at 11:55 PM, Jonathan Toomim <jtoomim at jtoomim.org> wrote: > Thanks everyone for the advice and offers of assistance. > > When I looked at the website of CIS a few weeks ago, it appeared to me to be > more of a think tank/news organization than a hackerspace. It sounds like > that impression was false. Thanks for the tip, I'll check it out. > > If I have the time, I wouldn't mind holding a workshop or two. Svaksha, are > you mostly interested in learning how to do the electrical engineering > stuff, or did you want a workshop on the uses of HEG itself? > > As for equipment, the most important thing for me to find will be an > oscilloscope. Soldering irons are cheap; microscopes are very helpful for > SMD soldering work, but not necessary, and can be replaced with a good > magnifying glass; and I haven't actually needed a laser cutter for a while. > I guess I'll have to look around for a cheap used scope after I arrive, and > maybe donate it to Jaaga or CIS. > > Pradeep, would use of IISc's incubation center be available to me (or, > eventually, my employees) as a foreigner? As for IIM, I must admit my > prejudice: I'm somewhat psychologically allergic to management/business > types; being questioned too long about my value proposition and how I intend > to leverage social capital to achieve priority objectives has a tendency to > result in inflammation of my amygdala. > > Jonathan > > > On 1/8/2013 1:05 AM, Sidu Ponnappa wrote: >> >> Jonathan, you're always welcome to drop by the C42 Engineering office >> and chat us up. One of my colleagues, like you, has moved here from >> Canada, so maybe a conversation with him would be helpful. >> >> I'm personally not a big fan of shared workspaces in Bangalore, but >> I'll defer to the others on the list as it's been a few years since I >> last hung out at one of these places and lots has changed. I'm not >> sure about laser cutters, though. :) >> >> Cheers, >> Sidu. >> http://twitter.com/ponnappa >> >> On Tue, Jan 8, 2013 at 11:33 AM, ?????? <svaksha at gmail.com> wrote: >>> >>> On Tue, Jan 8, 2013 at 5:40 AM, Kiran Jonnalagadda <jace at pobox.com> >>> wrote: >>>> >>>> On Monday, 7 January 2013 at 11:20 PM, ?????? wrote: >>>>> >>>>> On Mon, Jan 7, 2013 at 10:13 PM, Jonathan Toomim <jtoomim at jtoomim.org >>>>> (mailto:jtoomim at jtoomim.org)> wrote: >>>>>> >>>>>> In particular, I'll be looking for a place to do work. In California, >>>>>> I >>>>>> spend a lot of time at hackerspaces, especially Noisebridge >>>>>> <https://noisebridge.net/wiki/Noisebridge>, Crash Space >>>>>> <http://blog.crashspace.org/>, and Nullspace <http://032.la/>. I like >>>>>> working there because (a) I'm more motivated and productive than if I >>>>>> stay >>>>>> at home, and (b) much of my work requires or is facilitated by having >>>>>> easy >>>>>> access to soldering irons, oscilloscopes, dissection microscopes, >>>>>> laser >>>>>> cutters, and the like. I was hoping to find someplace similar in >>>>>> Bangalore. >>>>>> >>>>> >>>>> CIS <http://cis-india.org/> would be the closest match for a free >>>>> hackerspace, though not exactly equipped with the equipment you >>>>> require - just so you know what to expect, these may be a little hard >>>>> to come by outside of the local Engg schools and/or research labs. >>>>> >>>>> >>>> >>>> CIS is the closest there is to Jon's requirements. It has a hardware lab >>>> and Sunil has been asking for a list of equipment that people need that the >>>> lab doesn't already have. >>>> >>> Wow, didnt know CIS had soldering irons, oscilloscopes, dissection >>> microscopes, laser cutters ... Its been ages since I've visited. >>> -- >>> Regards, >>> Vid ? http://svaksha.com ? >>> _______________________________________________ >>> 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 svaksha at gmail.com Wed Jan 9 08:21:42 2013 From: svaksha at gmail.com (=?UTF-8?B?IOCkuOCljeCkteCkleCljeCktw==?=) Date: Wed, 9 Jan 2013 12:51:42 +0530 Subject: [BangPypers] [OT] Introducing myself In-Reply-To: <50EC6488.70402@jtoomim.org> References: <50EAFB2F.60302@jtoomim.org> <CAN9ztG-0UCfTi3Ti9z7xe3jKqJSGpTC+ymzDwL97yUbk2QxZ-g@mail.gmail.com> <EDF69AB82648489EB9E06EBAD36BD998@gmail.com> <CAN9ztG89iFKfVUFTt=DRV8ijMXH6Pqws_W8ieV3UnC0eMtkmkQ@mail.gmail.com> <CAHQkf6TTfzOHtS8Q0WqNpbW2ZLRwVLmiAPmDWKX4YvC7Y4UwzA@mail.gmail.com> <50EC6488.70402@jtoomim.org> Message-ID: <CAN9ztG9WTsU4XtfpibR9Do0J6oLiLOuicx3f5xHdfjkBhDW7EQ@mail.gmail.com> On Tue, Jan 8, 2013 at 11:55 PM, Jonathan Toomim <jtoomim at jtoomim.org> wrote: > > If I have the time, I wouldn't mind holding a workshop or two. Svaksha, are > you mostly interested in learning how to do the electrical engineering > stuff, or did you want a workshop on the uses of HEG itself? Both, it would be awesome if you were to hold workshops that allowed people to try things hands-on. I have a Beagleboard that has been gathering dust, and I would like to explore options for some hobby projects I had in mind. Re, HEG, I cloned the source but could not find any code for Linux - Am I missing something? -- Regards, Vid ? http://svaksha.com ? From vnbang2003 at yahoo.com Wed Jan 9 08:41:37 2013 From: vnbang2003 at yahoo.com (vijay) Date: Wed, 9 Jan 2013 15:41:37 +0800 (SGT) Subject: [BangPypers] List compression imrpovement Message-ID: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> Hi, ? ?I want to know if there is any other better way for?improving?below list compression. I have to use list compression only to achieve it. ? ?say i have list ??a=[1, 4, 9, 12, 15, 21] expected result (4, 12), (9, 12, 15, 21) ?few solutions are ? 1)?[filter(None, l) for l in zip(*[(x if x % 2 == 0 else None, x if x % 3 == 0 else None) for x in a])] ? 2) [y for y in a if bool(y%2==0)],[y for y in a if bool(y%3==0)] Any other better way to improve this. With Thanks Vijay From gora at mimirtech.com Wed Jan 9 08:50:16 2013 From: gora at mimirtech.com (Gora Mohanty) Date: Wed, 9 Jan 2013 13:20:16 +0530 Subject: [BangPypers] List compression imrpovement In-Reply-To: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> References: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> Message-ID: <CACiMRGLmpWv=FDBVbn4EPHkPSpg4T_HFqYB-TOMGjCZuwSx+2A@mail.gmail.com> On 9 January 2013 13:11, vijay <vnbang2003 at yahoo.com> wrote: > Hi, > I want to know if there is any other better way for improving below list compression. I have to use list compression only to achieve it. > > say i have list a=[1, 4, 9, 12, 15, 21] expected result (4, 12), (9, 12, 15, 21) It would help if you defined what you mean by "list compression" in this case. It is not immediately obvious what you are trying to achieve. Regards, Gora From vnbang2003 at yahoo.com Wed Jan 9 08:50:13 2013 From: vnbang2003 at yahoo.com (vijay) Date: Wed, 9 Jan 2013 15:50:13 +0800 (SGT) Subject: [BangPypers] List compression improvement In-Reply-To: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> References: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> Message-ID: <1357717813.62579.YahooMailNeo@web192206.mail.sg3.yahoo.com> Corrected subject spell? ________________________________ From: vijay <vnbang2003 at yahoo.com> To: Bangalore Python Users Group - India <bangpypers at python.org> Sent: Wednesday, 9 January 2013 1:11 PM Subject: [BangPypers] List compression imrpovement Hi, ? ?I want to know if there is any other better way for?improving?below list compression. I have to use list compression only to achieve it. ? ?say i have list ??a=[1, 4, 9, 12, 15, 21] expected result (4, 12), (9, 12, 15, 21) ?few solutions are ? 1)?[filter(None, l) for l in zip(*[(x if x % 2 == 0 else None, x if x % 3 == 0 else None) for x in a])] ? 2) [y for y in a if bool(y%2==0)],[y for y in a if bool(y%3==0)] Any other better way to improve this. With Thanks Vijay _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From vnbang2003 at yahoo.com Wed Jan 9 08:50:13 2013 From: vnbang2003 at yahoo.com (vijay) Date: Wed, 9 Jan 2013 15:50:13 +0800 (SGT) Subject: [BangPypers] List compression improvement In-Reply-To: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> References: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> Message-ID: <1357717813.62579.YahooMailNeo@web192206.mail.sg3.yahoo.com> Corrected subject spell? ________________________________ From: vijay <vnbang2003 at yahoo.com> To: Bangalore Python Users Group - India <bangpypers at python.org> Sent: Wednesday, 9 January 2013 1:11 PM Subject: [BangPypers] List compression imrpovement Hi, ? ?I want to know if there is any other better way for?improving?below list compression. I have to use list compression only to achieve it. ? ?say i have list ??a=[1, 4, 9, 12, 15, 21] expected result (4, 12), (9, 12, 15, 21) ?few solutions are ? 1)?[filter(None, l) for l in zip(*[(x if x % 2 == 0 else None, x if x % 3 == 0 else None) for x in a])] ? 2) [y for y in a if bool(y%2==0)],[y for y in a if bool(y%3==0)] Any other better way to improve this. With Thanks Vijay _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From vnbang2003 at yahoo.com Wed Jan 9 08:55:44 2013 From: vnbang2003 at yahoo.com (vijay) Date: Wed, 9 Jan 2013 15:55:44 +0800 (SGT) Subject: [BangPypers] List compression imrpovement In-Reply-To: <CACiMRGLmpWv=FDBVbn4EPHkPSpg4T_HFqYB-TOMGjCZuwSx+2A@mail.gmail.com> References: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> <CACiMRGLmpWv=FDBVbn4EPHkPSpg4T_HFqYB-TOMGjCZuwSx+2A@mail.gmail.com> Message-ID: <1357718144.76415.YahooMailNeo@web192205.mail.sg3.yahoo.com> i want to use only list compression to get solution like the way you see i share solutions. Basically one line solution . ________________________________ From: Gora Mohanty <gora at mimirtech.com> To: Bangalore Python Users Group - India <bangpypers at python.org> Sent: Wednesday, 9 January 2013 1:20 PM Subject: Re: [BangPypers] List compression imrpovement On 9 January 2013 13:11, vijay <vnbang2003 at yahoo.com> wrote: > Hi, >? ? I want to know if there is any other better way for improving below list compression. I have to use list compression only to achieve it. > >? ? say i have list? a=[1, 4, 9, 12, 15, 21] expected result (4, 12), (9, 12, 15, 21) It would help if you defined what you mean by "list compression" in this case. It is not immediately obvious what you are trying to achieve. Regards, Gora _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From lgp171188 at gmail.com Wed Jan 9 08:59:35 2013 From: lgp171188 at gmail.com (Guruprasad) Date: Wed, 9 Jan 2013 13:29:35 +0530 Subject: [BangPypers] List compression imrpovement In-Reply-To: <1357718144.76415.YahooMailNeo@web192205.mail.sg3.yahoo.com> References: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> <CACiMRGLmpWv=FDBVbn4EPHkPSpg4T_HFqYB-TOMGjCZuwSx+2A@mail.gmail.com> <1357718144.76415.YahooMailNeo@web192205.mail.sg3.yahoo.com> Message-ID: <CAFZPT6Zv0LBjzLGAJzhu8rm0J=otJjq8ZY6ruBrBPeDLO=8CVQ@mail.gmail.com> Hi Vijay, On Wed, Jan 9, 2013 at 1:25 PM, vijay <vnbang2003 at yahoo.com> wrote: > i want to use only list compression to get solution like the way you see i share solutions. > Basically one line solution . I think you are referring to list comprehension here. >> I want to know if there is any other better way for improving below list compression. I have to use list compression only to achieve it. >> >> say i have list a=[1, 4, 9, 12, 15, 21] expected result (4, 12), (9, 12, 15, 21) Can you explain the logic applied to get the result from the input? Thanks & Regards, Guruprasad From kushaldas at gmail.com Wed Jan 9 09:00:29 2013 From: kushaldas at gmail.com (Kushal Das) Date: Wed, 9 Jan 2013 13:30:29 +0530 Subject: [BangPypers] List compression imrpovement In-Reply-To: <1357718144.76415.YahooMailNeo@web192205.mail.sg3.yahoo.com> References: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> <CACiMRGLmpWv=FDBVbn4EPHkPSpg4T_HFqYB-TOMGjCZuwSx+2A@mail.gmail.com> <1357718144.76415.YahooMailNeo@web192205.mail.sg3.yahoo.com> Message-ID: <CAAzeMbzfE_fSO_Pf6sA4q6cZvtrU3QY8G_hy4LtkAsqRnZZ7jw@mail.gmail.com> On Wed, Jan 9, 2013 at 1:25 PM, vijay <vnbang2003 at yahoo.com> wrote: > i want to use only list compression to get solution like the way you see i share solutions. > Basically one line solution . > Start reading from here. http://www.catb.org/esr/faqs/smart-questions.html Kushal -- http://fedoraproject.org http://kushaldas.in From jeffjosejeff at gmail.com Wed Jan 9 09:01:03 2013 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Wed, 9 Jan 2013 13:31:03 +0530 Subject: [BangPypers] List compression imrpovement In-Reply-To: <CACiMRGLmpWv=FDBVbn4EPHkPSpg4T_HFqYB-TOMGjCZuwSx+2A@mail.gmail.com> References: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> <CACiMRGLmpWv=FDBVbn4EPHkPSpg4T_HFqYB-TOMGjCZuwSx+2A@mail.gmail.com> Message-ID: <CAFFVHJKyk39SQnRb18Q4G57grdGobJMmiFJ3w8TM9qAMks7mVw@mail.gmail.com> Let me guess. You want the first tuple with elements that are divisible by 2 and second divisible by 3. Beats me still as to why you decided to call it "compression" >From your second email it seems like you're after list *comprehension*. On Wed, Jan 9, 2013 at 1:20 PM, Gora Mohanty <gora at mimirtech.com> wrote: > On 9 January 2013 13:11, vijay <vnbang2003 at yahoo.com> wrote: > > Hi, > > I want to know if there is any other better way for improving below > list compression. I have to use list compression only to achieve it. > > > > say i have list a=[1, 4, 9, 12, 15, 21] expected result (4, 12), > (9, 12, 15, 21) > > It would help if you defined what you mean by "list compression" > in this case. It is not immediately obvious what you are trying to > achieve. > > Regards, > Gora > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From gora at mimirtech.com Wed Jan 9 09:03:14 2013 From: gora at mimirtech.com (Gora Mohanty) Date: Wed, 9 Jan 2013 13:33:14 +0530 Subject: [BangPypers] List compression imrpovement In-Reply-To: <1357718144.76415.YahooMailNeo@web192205.mail.sg3.yahoo.com> References: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> <CACiMRGLmpWv=FDBVbn4EPHkPSpg4T_HFqYB-TOMGjCZuwSx+2A@mail.gmail.com> <1357718144.76415.YahooMailNeo@web192205.mail.sg3.yahoo.com> Message-ID: <CACiMRGJFfML50vHT+1pvzm_OVgEMYeN9D7dtxTv8mxrEFKdRRQ@mail.gmail.com> On 9 January 2013 13:25, vijay <vnbang2003 at yahoo.com> wrote: > i want to use only list compression to get solution like the way you see i share solutions. > Basically one line solution . Do you mean "list comprehension"? Even so, it is not clear how the resulting list is to be derived from the original. Rather than showing us solutions that already assume a particular way, could you describe the problem in words? Else, the most efficient way to achieve your expected result would be [[a[1], a[3]], [a[2]] + a[3:]] Regards, Gora From ragsagar at gmail.com Wed Jan 9 09:08:19 2013 From: ragsagar at gmail.com (Rag Sagar.V) Date: Wed, 09 Jan 2013 08:13:19 +0005 Subject: [BangPypers] List compression improvement In-Reply-To: <1357717813.62579.YahooMailNeo@web192206.mail.sg3.yahoo.com> References: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> <1357717813.62579.YahooMailNeo@web192206.mail.sg3.yahoo.com> Message-ID: <50ed257d.c553420a.6f53.ffffe569@mx.google.com> On Wed, Jan 9, 2013 at 1:20 PM, vijay <vnbang2003 at yahoo.com> wrote: ? 2) [y for y in a if bool(y%2==0)],[y for y in a if bool(y%3==0)] You don't have to do `if bool(y%2 == 0)` , just `if y % 2 == 0` is enough From jeffjosejeff at gmail.com Wed Jan 9 09:13:33 2013 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Wed, 9 Jan 2013 13:43:33 +0530 Subject: [BangPypers] List compression imrpovement In-Reply-To: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> References: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> Message-ID: <CAFFVHJ+y=guUExaVRY3CGXuuzZ9CPj0G1=bd5V0Jzx=u2BBuRA@mail.gmail.com> Your #2 isnt a *one-line solution. *Its multple statements joined as one. If that works, here's an improvement. >>> tuple(x for x in a if not x%2), tuple(x for x in a if not x%3) ((4, 12), (9, 12, 15, 21)) -jeff On Wed, Jan 9, 2013 at 1:11 PM, vijay <vnbang2003 at yahoo.com> wrote: > Hi, > I want to know if there is any other better way for improving below > list compression. I have to use list compression only to achieve it. > > say i have list a=[1, 4, 9, 12, 15, 21] expected result (4, 12), (9, > 12, 15, 21) > > few solutions are > 1) [filter(None, l) for l in zip(*[(x if x % 2 == 0 else None, x if x % > 3 == 0 else None) for x in a])] > 2) [y for y in a if bool(y%2==0)],[y for y in a if bool(y%3==0)] > > Any other better way to improve this. > > > With Thanks > Vijay > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From anandology at gmail.com Wed Jan 9 09:13:41 2013 From: anandology at gmail.com (Anand Chitipothu) Date: Wed, 9 Jan 2013 13:43:41 +0530 Subject: [BangPypers] List compression imrpovement In-Reply-To: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> References: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> Message-ID: <CAC7wXFxE8RKdmAqpMUswFBX9s9YcZQ2g_Lx47J7Et9vFxbxtuQ@mail.gmail.com> On Wed, Jan 9, 2013 at 1:11 PM, vijay <vnbang2003 at yahoo.com> wrote: > Hi, > I want to know if there is any other better way for improving below list compression. I have to use list compression only to achieve it. > > say i have list a=[1, 4, 9, 12, 15, 21] expected result (4, 12), (9, 12, 15, 21) > > few solutions are > 1) [filter(None, l) for l in zip(*[(x if x % 2 == 0 else None, x if x % 3 == 0 else None) for x in a])] > 2) [y for y in a if bool(y%2==0)],[y for y in a if bool(y%3==0)] > > Any other better way to improve this. How about this? [[x for x in a if x%i == 0] for i in [2, 3]] Anand From jeffjosejeff at gmail.com Wed Jan 9 09:15:58 2013 From: jeffjosejeff at gmail.com (Jeffrey Jose) Date: Wed, 9 Jan 2013 13:45:58 +0530 Subject: [BangPypers] List compression imrpovement In-Reply-To: <CAC7wXFxE8RKdmAqpMUswFBX9s9YcZQ2g_Lx47J7Et9vFxbxtuQ@mail.gmail.com> References: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> <CAC7wXFxE8RKdmAqpMUswFBX9s9YcZQ2g_Lx47J7Et9vFxbxtuQ@mail.gmail.com> Message-ID: <CAFFVHJK5gw3_myyq+BF3Unw7UAdz67YMKo+GCM+=OkB=vPe+KA@mail.gmail.com> On Wed, Jan 9, 2013 at 1:43 PM, Anand Chitipothu <anandology at gmail.com>wrote: > [[x for x in a if x%i == 0] for i in [2, 3]] oh thats smart. From noufal at nibrahim.net.in Wed Jan 9 09:16:02 2013 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Wed, 09 Jan 2013 13:46:02 +0530 Subject: [BangPypers] List compression imrpovement In-Reply-To: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> (vijay's message of "Wed, 9 Jan 2013 15:41:37 +0800 (SGT)") References: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> Message-ID: <87hamqvkjh.fsf@sanitarium.localdomain> vijay <vnbang2003 at yahoo.com> writes: > Hi, > ? ?I want to know if there is any other better way for?improving?below > list compression. I have to use list compression only to achieve it. > > ? ?say i have list ??a=[1, 4, 9, 12, 15, 21] expected result (4, 12), > (9, 12, 15, 21) It's not clear how the first becomes the second. List comprehensions transform one list into another. Your input is a list and output is two tuples. > > ?few solutions are > ? 1)?[filter(None, l) for l in zip(*[(x if x % 2 == 0 else None, x if x % 3 == 0 else None) for x in a])] > ? 2) [y for y in a if bool(y%2==0)],[y for y in a if bool(y%3==0)] Unless this a throwaway code golf problem, you should ask yourself if someone else reading this a month or two can understand what you were intending here. If the answer is no, then rewrite this is a more verbose but simpler way. [...] -- Cordially, Noufal http://nibrahim.net.in From ragsagar at gmail.com Wed Jan 9 09:17:16 2013 From: ragsagar at gmail.com (ragsagar) Date: Wed, 9 Jan 2013 13:47:16 +0530 Subject: [BangPypers] List compression imrpovement In-Reply-To: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> References: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> Message-ID: <CACEP=sZzWRhm_XB0OPL91S1nd3vAMwghq-Lj6XCNogffcQCHLA@mail.gmail.com> On Wed, Jan 9, 2013 at 1:11 PM, vijay <vnbang2003 at yahoo.com> wrote: > 2) [y for y in a if bool(y%2==0)],[y for y in a if bool(y%3==0)] You don't have to do if bool(y%2==0), just if y % 2 == 0 is enough. -- blog : ragsagar.wordpress.com mail id : python -c "print '@'.join(['ragsagar','.'.join([x for x in ['gmail','com']])])" From noufal at nibrahim.net.in Wed Jan 9 09:21:22 2013 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Wed, 09 Jan 2013 13:51:22 +0530 Subject: [BangPypers] List compression imrpovement In-Reply-To: <CAFFVHJK5gw3_myyq+BF3Unw7UAdz67YMKo+GCM+=OkB=vPe+KA@mail.gmail.com> (Jeffrey Jose's message of "Wed, 9 Jan 2013 13:45:58 +0530") References: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> <CAC7wXFxE8RKdmAqpMUswFBX9s9YcZQ2g_Lx47J7Et9vFxbxtuQ@mail.gmail.com> <CAFFVHJK5gw3_myyq+BF3Unw7UAdz67YMKo+GCM+=OkB=vPe+KA@mail.gmail.com> Message-ID: <87bocyvkal.fsf@sanitarium.localdomain> Jeffrey Jose <jeffjosejeff at gmail.com> writes: > On Wed, Jan 9, 2013 at 1:43 PM, Anand Chitipothu <anandology at gmail.com>wrote: > >> [[x for x in a if x%i == 0] for i in [2, 3]] > > > oh thats smart. Yup. Very. [...] -- Cordially, Noufal http://nibrahim.net.in From satishsagar83 at gmail.com Wed Jan 9 09:19:12 2013 From: satishsagar83 at gmail.com (L Radhakrishna Rao) Date: Wed, 9 Jan 2013 13:49:12 +0530 Subject: [BangPypers] List compression imrpovement In-Reply-To: <CACEP=sZzWRhm_XB0OPL91S1nd3vAMwghq-Lj6XCNogffcQCHLA@mail.gmail.com> References: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> <CACEP=sZzWRhm_XB0OPL91S1nd3vAMwghq-Lj6XCNogffcQCHLA@mail.gmail.com> Message-ID: <CAAZd-jS5X0VF1V=OHQ2HUrZjCtRMedCVGQAv6Cq28L4oVeLwtQ@mail.gmail.com> First of all,it is list comprehension. Second, i don't know what elegant method you want to look, as list in itself is fast. The only thing which you can look out is TUPLE, which are immutable list. From vnbang2003 at yahoo.com Wed Jan 9 10:14:46 2013 From: vnbang2003 at yahoo.com (vijay) Date: Wed, 9 Jan 2013 17:14:46 +0800 (SGT) Subject: [BangPypers] List compression imrpovement In-Reply-To: <CAFFVHJKyk39SQnRb18Q4G57grdGobJMmiFJ3w8TM9qAMks7mVw@mail.gmail.com> References: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> <CACiMRGLmpWv=FDBVbn4EPHkPSpg4T_HFqYB-TOMGjCZuwSx+2A@mail.gmail.com> <CAFFVHJKyk39SQnRb18Q4G57grdGobJMmiFJ3w8TM9qAMks7mVw@mail.gmail.com> Message-ID: <1357722886.72009.YahooMailNeo@web192202.mail.sg3.yahoo.com> Yes problem statement is correct. I wanted it to be one line solution so i used list compression. If there is other way to do it in one line other then list compression ?that should be fine , but need one line answer for this. ________________________________ From: Jeffrey Jose <jeffjosejeff at gmail.com> To: Bangalore Python Users Group - India <bangpypers at python.org> Sent: Wednesday, 9 January 2013 1:31 PM Subject: Re: [BangPypers] List compression imrpovement Let me guess. You want the first tuple with elements that are divisible by 2 and second divisible by 3. Beats me still as to why you decided to call it "compression" From your second email it seems like you're after list *comprehension*. On Wed, Jan 9, 2013 at 1:20 PM, Gora Mohanty <gora at mimirtech.com> wrote: > On 9 January 2013 13:11, vijay <vnbang2003 at yahoo.com> wrote: > > Hi, > >? ? I want to know if there is any other better way for improving below > list compression. I have to use list compression only to achieve it. > > > >? ? say i have list? a=[1, 4, 9, 12, 15, 21] expected result (4, 12), > (9, 12, 15, 21) > > It would help if you defined what you mean by "list compression" > in this case. It is not immediately obvious what you are trying to > achieve. > > Regards, > Gora > _______________________________________________ > 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 benignbala at gmail.com Wed Jan 9 10:22:07 2013 From: benignbala at gmail.com (Balachandran Sivakumar) Date: Wed, 9 Jan 2013 14:52:07 +0530 Subject: [BangPypers] List compression imrpovement In-Reply-To: <1357722886.72009.YahooMailNeo@web192202.mail.sg3.yahoo.com> References: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> <CACiMRGLmpWv=FDBVbn4EPHkPSpg4T_HFqYB-TOMGjCZuwSx+2A@mail.gmail.com> <CAFFVHJKyk39SQnRb18Q4G57grdGobJMmiFJ3w8TM9qAMks7mVw@mail.gmail.com> <1357722886.72009.YahooMailNeo@web192202.mail.sg3.yahoo.com> Message-ID: <CAMbkTgLUgw15oHeSrZ=hVjabv-J8Ypa0xxsjkFWeP+gdBw1DTw@mail.gmail.com> Hi, On Wed, Jan 9, 2013 at 2:44 PM, vijay <vnbang2003 at yahoo.com> wrote: > Yes problem statement is correct. > I wanted it to be one line solution so i used list compression. > If there is other way to do it in one line other then list compression that should be fine , but need one line answer for this. > It is list *comprehension* not *compression*. Though one liners are a lot of fun, and serves as a way to learn idiomatic code, please note that readability is lost to a considerable extent with one liners. So, use them judiciously, i.e. when what is being done is obvious. Thanks -- Thank you Balachandran Sivakumar Arise Awake and stop not till the goal is reached. - Swami Vivekananda Mail: benignbala at gmail.com Blog: http://benignbala.wordpress.com/ From vnbang2003 at yahoo.com Wed Jan 9 10:39:47 2013 From: vnbang2003 at yahoo.com (vijay) Date: Wed, 9 Jan 2013 17:39:47 +0800 (SGT) Subject: [BangPypers] List compression imrpovement In-Reply-To: <CAC7wXFxE8RKdmAqpMUswFBX9s9YcZQ2g_Lx47J7Et9vFxbxtuQ@mail.gmail.com> References: <1357717297.31592.YahooMailNeo@web192204.mail.sg3.yahoo.com> <CAC7wXFxE8RKdmAqpMUswFBX9s9YcZQ2g_Lx47J7Et9vFxbxtuQ@mail.gmail.com> Message-ID: <1357724387.52658.YahooMailNeo@web192205.mail.sg3.yahoo.com> Thanks Anand. This look good to me. ________________________________ From: Anand Chitipothu <anandology at gmail.com> To: vijay <vnbang2003 at yahoo.com>; Bangalore Python Users Group - India <bangpypers at python.org> Sent: Wednesday, 9 January 2013 1:43 PM Subject: Re: [BangPypers] List compression imrpovement On Wed, Jan 9, 2013 at 1:11 PM, vijay <vnbang2003 at yahoo.com> wrote: > Hi, >? ? I want to know if there is any other better way for improving below list compression. I have to use list compression only to achieve it. > >? ? say i have list? a=[1, 4, 9, 12, 15, 21] expected result (4, 12), (9, 12, 15, 21) > >? few solutions are >? 1) [filter(None, l) for l in zip(*[(x if x % 2 == 0 else None, x if x % 3 == 0 else None) for x in a])] >? 2) [y for y in a if bool(y%2==0)],[y for y in a if bool(y%3==0)] > > Any other better way to improve this. How about this? [[x for x in a if x%i == 0] for i in [2, 3]] Anand From rdsimon034 at gmail.com Wed Jan 9 14:27:28 2013 From: rdsimon034 at gmail.com (Simon Paul) Date: Wed, 9 Jan 2013 18:57:28 +0530 Subject: [BangPypers] Job: Opportunity with Oboulo.com Message-ID: <CA+vZ0i=5nRnhpLbzJozGZmGuUvw5m74HPSA2ckTkLFfXSyROTw@mail.gmail.com> *Hi **Bangpyers,** * *Greetings, * *We are looking for Python Developers at Bangalore. Please find the Job description below. * *Responsibilities :* You would join a linux expert team and participate in the development of set top boxes and new generation products' user interfaces and graphic engines for the biggest worldwide operators. Your main tasks are to: ? Analyze customer requirements and specifications (concepts, menus and submenus of a product from functional specifications and graphics) ? Conduct behavior needed (+ access to the controller model) ? Test the result directly to the final product ? Detect memory leaks and performance issues *Profile: * Must have worked on any of the following langages: Python, Javascript, Lua, Erlang, Ruby, etc. Must have a interest in graphic design and / or asynchronous programming frameworks (twisted asyncore, stackless, etc ...). Must have a good knowledge of the ?stdlib? as well as some external libraries. The different patterns commonly used may not be different. *Experience**:* 2-5 years *Qualifications: * ? Python language (or Javascript, Io, Erlang, Lua, etc ...) ? Professional experience in Python is an asset ? A knowledge in C++, Java, Qt, C# ? Understanding of the MVC and ORM signals Do you find this profile interesting, Please send in your resume to * simon at oboulo.com** * regards, Simon HR Executive - Recruitment/ Oboulo.com internet services private limited. 9919916034 From venkat83 at gmail.com Thu Jan 10 06:32:12 2013 From: venkat83 at gmail.com (Venkatraman S) Date: Thu, 10 Jan 2013 11:02:12 +0530 Subject: [BangPypers] [X-POST] Fwd: [Ilugc] SQL Injection vulnerability in Ruby on Rails forces websites to close down In-Reply-To: <CABmCGuA1EU_N1kh+dOdd42ukkMxtN_FJz9LmaWF39eUxFjixTA@mail.gmail.com> References: <CABmCGuCGQMK6W=aT5aArwzR2Kzk4Re1QXSbHjUpQZ04k9+vDNA@mail.gmail.com> <CABmCGuA1EU_N1kh+dOdd42ukkMxtN_FJz9LmaWF39eUxFjixTA@mail.gmail.com> Message-ID: <CAN7tdFQFquLrtfgkzBsfHUm2DGYQ6LRk=oFY9kEVgvM+hRXJjQ@mail.gmail.com> FYI: ---------- Forwarded message ---------- From: Natarajan V <rajanvn at gmail.com> Date: Thu, Jan 10, 2013 at 10:49 AM Subject: [Ilugc] SQL Injection vulnerability in Ruby on Rails forces websites to close down To: ILUG-C <ilugc at ae.iitm.ac.in> Hi, A major security vulnerability found in RoR has forced a government website to close down. The vulnerability exists in ALL versions of RoR unless you upgraded in the last two days. Some Links: http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/ http://it.slashdot.org/story/13/01/09/1557235/ruby-on-rails-sql-injection-flaw-has-serious-real-life-consequences https://groups.google.com/forum/?fromgroups=#!topic/rubyonrails-security/61bkgvnSGTQ As I was telling Karthick during my session, you can never assume that your code is secure just because you are using some framework. You should always do your home work, and whatever measures that the framework takes, can be broken by a very very stupid programmer :D -- Natarajan _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc From davechintan at gmail.com Thu Jan 10 06:51:45 2013 From: davechintan at gmail.com (Chintan Dave) Date: Thu, 10 Jan 2013 11:21:45 +0530 Subject: [BangPypers] [X-POST] Fwd: [Ilugc] SQL Injection vulnerability in Ruby on Rails forces websites to close down In-Reply-To: <CAN7tdFQFquLrtfgkzBsfHUm2DGYQ6LRk=oFY9kEVgvM+hRXJjQ@mail.gmail.com> References: <CABmCGuCGQMK6W=aT5aArwzR2Kzk4Re1QXSbHjUpQZ04k9+vDNA@mail.gmail.com> <CABmCGuA1EU_N1kh+dOdd42ukkMxtN_FJz9LmaWF39eUxFjixTA@mail.gmail.com> <CAN7tdFQFquLrtfgkzBsfHUm2DGYQ6LRk=oFY9kEVgvM+hRXJjQ@mail.gmail.com> Message-ID: <CAL9x60rL0M=8Vxnc6+x6v0mKV_r_sxwNptUnc40gU1LaHywO7A@mail.gmail.com> It takes a little more than being stupid to break things... Trust me :) On Thu, Jan 10, 2013 at 11:02 AM, Venkatraman S <venkat83 at gmail.com> wrote: > FYI: > > ---------- Forwarded message ---------- > From: Natarajan V <rajanvn at gmail.com> > Date: Thu, Jan 10, 2013 at 10:49 AM > Subject: [Ilugc] SQL Injection vulnerability in Ruby on Rails forces > websites to close down > To: ILUG-C <ilugc at ae.iitm.ac.in> > > > Hi, > > A major security vulnerability found in RoR has forced a government > website to close down. The vulnerability exists in ALL versions of RoR > unless you upgraded in the last two days. > > Some Links: > > http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/ > > http://it.slashdot.org/story/13/01/09/1557235/ruby-on-rails-sql-injection-flaw-has-serious-real-life-consequences > > https://groups.google.com/forum/?fromgroups=#!topic/rubyonrails-security/61bkgvnSGTQ > > As I was telling Karthick during my session, you can never assume that > your code is secure just because you are using some framework. You > should always do your home work, and whatever measures that the > framework takes, can be broken by a very very stupid programmer :D > > > -- > Natarajan > _______________________________________________ > ILUGC Mailing List: > http://www.ae.iitm.ac.in/mailman/listinfo/ilugc > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, Chintan Dave, LinkedIn: http://in.linkedin.com/in/chintandave Blog:http://www.chintandave.com From dileep.ds at gmail.com Fri Jan 11 10:24:41 2013 From: dileep.ds at gmail.com (Dileep) Date: Fri, 11 Jan 2013 14:54:41 +0530 Subject: [BangPypers] import error undefined symbol: Py_InitModule4 Message-ID: <CAKWXfy_Sd0Q9hgJfJmW1CJgWwQ5iFSETR9omfPrv+pnS3xaOLw@mail.gmail.com> Hi, I am working on cython code and after compilation I am getting the above import error with compiled .so file. I am using python 2.4 and testing on a 64 bit machine. I think the issue happened because calling python interpreter and the extension do not use the same version.(one is Python 2.4, the other 2.5). As per PEP0353 (http://www.python.org/dev/peps/pep-0353/ ) there is a name change for 64 bit machines.To prevent loading extension modules that assume a 32-bit size type into an interpreter that has a 64 bit size type, Py_InitModule4 is renamed to Py_InitModule4_64. By adding the below lines of code to my extension .c file will fix that issue ? any one faced similar issue ? #if SIZEOF_SIZE_T != SIZEOF_INT /* On a 64-bit system, rename the Py_InitModule4 so that 2.4 modules cannot get loaded into a 2.5 interpreter */ #define Py_InitModule4 Py_InitModule4_64 #endif -- Regards DIleep.D.S From kracekumar at hasgeek.com Fri Jan 11 10:42:40 2013 From: kracekumar at hasgeek.com (Kracekumar Ramaraju) Date: Fri, 11 Jan 2013 15:12:40 +0530 Subject: [BangPypers] import error undefined symbol: Py_InitModule4 In-Reply-To: <CAKWXfy_Sd0Q9hgJfJmW1CJgWwQ5iFSETR9omfPrv+pnS3xaOLw@mail.gmail.com> References: <CAKWXfy_Sd0Q9hgJfJmW1CJgWwQ5iFSETR9omfPrv+pnS3xaOLw@mail.gmail.com> Message-ID: <CANYmPWReq__rYpC-19sBgpA=ErZ5GBHDkgHH8Vwnz-ePXZek-w@mail.gmail.com> AFAIK, Anything with python2.4 or python2.5 compilation or any third party installation will not work since all dependencies changed. On Fri, Jan 11, 2013 at 2:54 PM, Dileep <dileep.ds at gmail.com> wrote: > Hi, > > I am working on cython code and after compilation I am getting the above > import error with compiled .so file. I am using python 2.4 and testing on a > 64 bit machine. I think > the issue happened because calling python interpreter and the extension do > not use the same version.(one is Python 2.4, the other 2.5). > > As per PEP0353 (http://www.python.org/dev/peps/pep-0353/ ) there is a name > change for 64 bit machines.To prevent loading extension modules that assume > a 32-bit size type into an interpreter that has a 64 bit size type, > Py_InitModule4 is renamed to Py_InitModule4_64. > > By adding the below lines of code to my extension .c file will fix that > issue ? any one faced similar issue ? > > #if SIZEOF_SIZE_T != SIZEOF_INT > > > /* On a 64-bit system, rename the Py_InitModule4 so that 2.4 > modules cannot get loaded into a 2.5 interpreter */ > > > #define Py_InitModule4 Py_InitModule4_64 > #endif > > > > -- > Regards > DIleep.D.S > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards Kracekumar.R "Talk is cheap, show me the code" -- Linus Torvalds From kracekumar at hasgeek.com Fri Jan 11 10:49:55 2013 From: kracekumar at hasgeek.com (Kracekumar Ramaraju) Date: Fri, 11 Jan 2013 15:19:55 +0530 Subject: [BangPypers] import error undefined symbol: Py_InitModule4 In-Reply-To: <CANYmPWReq__rYpC-19sBgpA=ErZ5GBHDkgHH8Vwnz-ePXZek-w@mail.gmail.com> References: <CAKWXfy_Sd0Q9hgJfJmW1CJgWwQ5iFSETR9omfPrv+pnS3xaOLw@mail.gmail.com> <CANYmPWReq__rYpC-19sBgpA=ErZ5GBHDkgHH8Vwnz-ePXZek-w@mail.gmail.com> Message-ID: <CANYmPWRNdhBTJEQb8LLFA2Jg+hpaD3vo1XqvSO4+rz5=6X8Hcg@mail.gmail.com> On Fri, Jan 11, 2013 at 3:12 PM, Kracekumar Ramaraju <kracekumar at hasgeek.com > wrote: > AFAIK, Anything with python2.4 or python2.5 compilation or any third party > installation will not work since all dependencies changed. > > What I mean is make file, python-dev etc are changed. > > On Fri, Jan 11, 2013 at 2:54 PM, Dileep <dileep.ds at gmail.com> wrote: > >> Hi, >> >> I am working on cython code and after compilation I am getting the above >> import error with compiled .so file. I am using python 2.4 and testing on >> a >> 64 bit machine. I think >> the issue happened because calling python interpreter and the extension do >> not use the same version.(one is Python 2.4, the other 2.5). >> >> As per PEP0353 (http://www.python.org/dev/peps/pep-0353/ ) there is a >> name >> change for 64 bit machines.To prevent loading extension modules that >> assume >> a 32-bit size type into an interpreter that has a 64 bit size type, >> Py_InitModule4 is renamed to Py_InitModule4_64. >> >> By adding the below lines of code to my extension .c file will fix that >> issue ? any one faced similar issue ? >> >> #if SIZEOF_SIZE_T != SIZEOF_INT >> >> >> /* On a 64-bit system, rename the Py_InitModule4 so that 2.4 >> modules cannot get loaded into a 2.5 interpreter */ >> >> >> #define Py_InitModule4 Py_InitModule4_64 >> #endif >> >> >> >> -- >> Regards >> DIleep.D.S >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > > -- > Regards > Kracekumar.R > "Talk is cheap, show me the code" -- Linus Torvalds > > -- Regards Kracekumar.R "Talk is cheap, show me the code" -- Linus Torvalds From abdulmuneer at gmail.com Sat Jan 12 20:26:40 2013 From: abdulmuneer at gmail.com (Abdul Muneer) Date: Sun, 13 Jan 2013 00:56:40 +0530 Subject: [BangPypers] wierd class behavior In-Reply-To: <50BDD6D3.8080802@lonetwin.net> References: <CAC7wXFxEB+4qh0PRsfn0TaEX-gm9NXyRkQoMV=i7gjoEribHkg@mail.gmail.com> <50BDD6D3.8080802@lonetwin.net> Message-ID: <CAMJTfgk1tP1FLwLhiVzh2H1kPOPDg7w4bP36iYb7g3kDL_oFvA@mail.gmail.com> Thank you Anand for bringing up this thought provoking question! Regardless of the possible explanations, it has to be said that this behaviour is indeed confusing. This will conflict with the general idea of LEGB scoping order (i.e. Local, Enclosing Function local, Global, Built-in). The functions f and g apparently show conflicting behavior in the way variables x and y are treated respectively. To summarize the confusions: 1. in *f*, print(x) statement under class definition causes an exception. Shouldn't it have accepted the *x* that was declared in its Enclosing function? 2. If we accept that as the default behaviour, why on earth is the *gety * function inside *g* returning value 1 instead of 2? (It would have returned 1 regardless of its class had a statement like 'y=1'!) The following might explain this: The original variable '*y*' in function *g* and the '*y*' inside *gety*function are the same object! But the ' *y*' in the class Foo local is different. You can check it this way: def g(): y = 1 *print 'id(y) originally in g:', id(y)* class Foo(): y = 2 *print 'id(y) in class Foo:', id(y)* def gety(self): *print 'id(y) in function gety inside Foo:', id(y)* return y foo = Foo() print (y, foo, foo.gety()) But why?? * * *The x in function f and y in function g, though may look identical to us, are stored differently by python! *This can be seen from the disassembly of both functions: >>> dis(f) 2 0 LOAD_CONST 1 (1) 3 STORE_FAST 0 (x) 3 6 LOAD_CONST 2 ('Foo') 9 LOAD_CONST 4 (()) 12 LOAD_CONST 3 (<code object Foo at 0x101102bb0, file "class_check.py", line 3>) 15 MAKE_FUNCTION 0 18 CALL_FUNCTION 0 21 BUILD_CLASS 22 STORE_FAST 1 (Foo) 7 25 LOAD_FAST 0 (x) 28 LOAD_FAST 1 (Foo) 31 LOAD_ATTR 0 (x) 34 BUILD_TUPLE 2 37 PRINT_ITEM 38 PRINT_NEWLINE 39 LOAD_CONST 0 (None) 42 RETURN_VALUE ======================================================== >>> dis(g) 10 0 LOAD_CONST 1 (1) 3 STORE_DEREF 0 (y) 11 6 LOAD_CONST 2 ('Foo') 9 LOAD_CONST 4 (()) 12 LOAD_CLOSURE 0 (y) 15 BUILD_TUPLE 1 18 LOAD_CONST 3 (<code object Foo at 0x101102d30, file "class_check.py", line 11>) 21 MAKE_CLOSURE 0 24 CALL_FUNCTION 0 27 BUILD_CLASS 28 STORE_FAST 0 (Foo) 15 31 LOAD_FAST 0 (Foo) 34 CALL_FUNCTION 0 37 STORE_FAST 1 (foo) 16 40 LOAD_DEREF 0 (y) 43 LOAD_FAST 1 (foo) 46 LOAD_ATTR 0 (y) 49 LOAD_FAST 1 (foo) 52 LOAD_ATTR 1 (gety) 55 CALL_FUNCTION 0 58 BUILD_TUPLE 3 61 PRINT_ITEM 62 PRINT_NEWLINE 63 LOAD_CONST 0 (None) 66 RETURN_VALUE It can be noticed that x is stored as STORE_FAST while y is stored as STORE_DEREF. The excellent 'Python Innards series' (which I can understand only very little) explains this in one of the articles http://tech.blog.aknin.name/2010/06/05/pythons-innards-naming/ : "The secret sauce here is that at compilation time, if a variable is seen to be resolved from a lexically nested function, it will not be stored and will not be accessed using the regular naming opcodes. Instead, a special object called a cell<http://docs.python.org/py3k/c-api/cell.html#cell-objects>is created to store the value of the object. When various code objects (the outer function, the inner function, etc) will access this variable, the use of the *_DEREF opcodes will cause the cell to be accessed rather than the namespace of the accessing code object." additional reference: Python Closure: Link1<http://ynniv.com/blog/2007/08/closures-in-python.html> Link2 <http://www.shutupandship.com/2012/01/python-closures-explained.html>, Regards, Abdul Muneer -- Follow me on Twitter: @abdulmuneer <http://twitter.com/#%21/abdulmuneer> On Tue, Dec 4, 2012 at 4:26 PM, steve <steve at lonetwin.net> wrote: > On Tuesday 04 December 2012 09:24 AM, Anand Chitipothu wrote: > >> Python scoping rules when it comes to classes are so confusing. >> >> Can you guess what would be output of the following program? >> >> x = 1 >> >> class Foo: >> print(x) >> > > Prints the global x > > > x = x + 1 >> print(x) >> > Prints the local x, with the reference to the global x lost in the classes > scope. > > >> print(x, Foo.x) >> > > prints (1, 2) -- ie: the 'global x' and the class local x. So, does the > right thing. What were you expecting ? > > > >> Now take the same piece of code and put it in a function. >> >> def f(): >> x = 1 >> >> class Foo: >> print(x) >> x = x + 1 >> print(x) >> >> print(x) >> print(Foo.x) >> >> f() >> >> > Again, global versus local difference for the /class/. Still not sure what > you were expecting, > > > To add more to your confusion, try this too: >> >> def g(): >> y = 1 >> class Foo: >> y = 2 >> def gety(self): >> return y >> >> foo = Foo() >> print(y, foo.y, foo.gety()) >> >> g() >> >> Ok, this is slightly confusing but still consistent. You'd understand > the source of your confusion if you changed the definition for gety() to: > ... > ... > def gety(self): > return self.y > ... > ... > > > > Does it make any sense? >> > Well, it does if you know the rules. > > http://effbot.org/pyfaq/what-**are-the-rules-for-local-and-** > global-variables-in-python.htm<http://effbot.org/pyfaq/what-are-the-rules-for-local-and-global-variables-in-python.htm> > > Try this: > > > x = 1 > class Foo: > print(x) # this is the global x > x = x + 1 # this is the local x > print(x) > global x # now lets be explicit > print(x, Foo.x) > > what happened here ? > > cheers, > - steve > > > ______________________________**_________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/**mailman/listinfo/bangpypers<http://mail.python.org/mailman/listinfo/bangpypers> > From anandology at gmail.com Mon Jan 14 15:21:11 2013 From: anandology at gmail.com (Anand Chitipothu) Date: Mon, 14 Jan 2013 19:51:11 +0530 Subject: [BangPypers] Death of Aaron Swartz Message-ID: <CAC7wXFzRjroKHXTKhEiHh1-s-_ZETA7xTh+en_1pWQtbssZN0A@mail.gmail.com> Hi, I'm sure most of you might have already heard about it, Aaron Swartz, hacker, writer and activist committed suicide on Jan 11, 2013. http://boingboing.net/2013/01/12/rip-aaron-swartz.html Aaron was a great Python programmer. He created web.py, a web framework in Python, Infogami a wiki software and many other tools. He co-authored RSS 1.0 specifications when he as 13 and worked with John Gruber in creating Markdown. The PyCon India 2011 website is still running on Infogami. He is not just a programmer, a great activist too. He is the founder od demand progress, an organization that played crucial role in stoping the SOPA Act. Aaron's death is a great loss to the whole world. May his soul rest in peace. Anand From thatiparthysreenivas at gmail.com Mon Jan 14 16:26:00 2013 From: thatiparthysreenivas at gmail.com (Sreenivas Reddy T) Date: Mon, 14 Jan 2013 20:56:00 +0530 Subject: [BangPypers] Death of Aaron Swartz In-Reply-To: <CAC7wXFzRjroKHXTKhEiHh1-s-_ZETA7xTh+en_1pWQtbssZN0A@mail.gmail.com> References: <CAC7wXFzRjroKHXTKhEiHh1-s-_ZETA7xTh+en_1pWQtbssZN0A@mail.gmail.com> Message-ID: <CAEaN0UaTtsB5D9fFzKXmLd-hLXOxAqhJeWSxQqwwWCVD=C4feg@mail.gmail.com> I didn't know him before. I just came to know about him after his death. The other day, i gone through web.py code, i have felt like this is just simple..just bare metal compared to django. I felt like people should first learn web.py before moving to django. There is a considerable learning curve involved for django. Best Regards, Srinivas Reddy Thatiparthy 9703888668. "Anyone who has never made a mistake has never tried anything new !!! " --Albert Einstein On Mon, Jan 14, 2013 at 7:51 PM, Anand Chitipothu <anandology at gmail.com>wrote: > Hi, > > I'm sure most of you might have already heard about it, Aaron Swartz, > hacker, writer and activist committed suicide on Jan 11, 2013. > > http://boingboing.net/2013/01/12/rip-aaron-swartz.html > > Aaron was a great Python programmer. He created web.py, a web framework in > Python, Infogami a wiki software and many other tools. He co-authored RSS > 1.0 specifications when he as 13 and worked with John Gruber in creating > Markdown. > > The PyCon India 2011 website is still running on Infogami. > > He is not just a programmer, a great activist too. He is the founder od > demand progress, an organization that played crucial role in stoping the > SOPA Act. > > Aaron's death is a great loss to the whole world. > > May his soul rest in peace. > > Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From brian at python.org Mon Jan 14 16:32:35 2013 From: brian at python.org (Brian Curtin) Date: Mon, 14 Jan 2013 15:32:35 -0000 Subject: [BangPypers] PyCon 2013 Schedule Announced! Message-ID: <mailman.0.1358177555.2935.bangpypers@python.org> Hi BangPyPers! It's that time of year again: the PyCon schedule has been announced and the rush to pick up tickets is on! https://us.pycon.org/2013/schedule/ was completed last week, and we've seen a sharp increase in sales as we approach 1,500 registrations. This year we're limiting the attendance to 2,500 for our second year in Santa Clara, CA. The conference runs from March 13-21. The 2013 edition of PyCon is going to be the biggest and best yet. We've added a sixth track of talks, giving you 114 presentations to view. Tutorials are better than ever, with an even wider range of topics than before. They keynotes are being given by an excellent group: Eben Upton, Jessica McKellar, Raymond Hettinger, and Guido van Rossum. Tickets are available now at https://us.pycon.org/2013/registration/. Student rates were cut in half for 2013 to $125, and individual registrations are only $350. Corporate tickets are currently $600. No matter what group you fall into, the value PyCon provides is incredible. We've got a ton of great events going on throughout the conference. There's a workshop for kids 12 and under to learn Python - https://us.pycon.org/2013/events/letslearnpython/. The successful PyData conference is running during the sprints - http://sv2013.eventbrite.com/. The Postgres community is running PyPgDay during the tutorials - https://us.pycon.org/2013/events/pgday/. We're once again doing the 5K run, and the open spaces and sprints will be a blast as well. We also have a few tricks up our sleeve that we'll update you on at http://pycon.blogspot.com/ and https://www.twitter.com/PyCon. If your organization is interested in sponsoring PyCon, check out our prospectus at https://us.pycon.org/2013/sponsors/prospectus/ and contact conference chairman Jesse Noller at jnoller at python.org with any questions. Thanks for your time, and we hope to see you at PyCon 2013! Jesse Noller PyCon Chairman jnoller at python.org Brian Curtin PyCon Publicity Coordinator brian at python.org From gopalakrishnan.subramani at gmail.com Mon Jan 14 19:00:31 2013 From: gopalakrishnan.subramani at gmail.com (Gopalakrishnan Subramani) Date: Mon, 14 Jan 2013 23:30:31 +0530 Subject: [BangPypers] Death of Aaron Swartz In-Reply-To: <CAC7wXFzRjroKHXTKhEiHh1-s-_ZETA7xTh+en_1pWQtbssZN0A@mail.gmail.com> References: <CAC7wXFzRjroKHXTKhEiHh1-s-_ZETA7xTh+en_1pWQtbssZN0A@mail.gmail.com> Message-ID: <CAHhacd34_zsg5LmF-fZSE+eHuYWjOQ7KxNpFPYdd53p3GE2MLg@mail.gmail.com> Markdown is nice, I read a little about him in his infogami and reddit merge and html2text project and web.py. He was a great hacker, was able to move reddit from lisp to python (pylons) in short time (http://www.aaronsw.com/weblog/rewritingreddit) After he was fired by Wired, things didn't go well for him. He was lesson for entrepreneurship, fame, life ending. Long live Aaron. On Mon, Jan 14, 2013 at 7:51 PM, Anand Chitipothu <anandology at gmail.com>wrote: > Hi, > > I'm sure most of you might have already heard about it, Aaron Swartz, > hacker, writer and activist committed suicide on Jan 11, 2013. > > http://boingboing.net/2013/01/12/rip-aaron-swartz.html > > Aaron was a great Python programmer. He created web.py, a web framework in > Python, Infogami a wiki software and many other tools. He co-authored RSS > 1.0 specifications when he as 13 and worked with John Gruber in creating > Markdown. > > The PyCon India 2011 website is still running on Infogami. > > He is not just a programmer, a great activist too. He is the founder od > demand progress, an organization that played crucial role in stoping the > SOPA Act. > > Aaron's death is a great loss to the whole world. > > May his soul rest in peace. > > Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From abpillai at gmail.com Mon Jan 14 21:23:40 2013 From: abpillai at gmail.com (Anand B Pillai) Date: Tue, 15 Jan 2013 01:53:40 +0530 Subject: [BangPypers] Death of Aaron Swartz In-Reply-To: <CAC7wXFzRjroKHXTKhEiHh1-s-_ZETA7xTh+en_1pWQtbssZN0A@mail.gmail.com> References: <CAC7wXFzRjroKHXTKhEiHh1-s-_ZETA7xTh+en_1pWQtbssZN0A@mail.gmail.com> Message-ID: <CACpj97A3SWgYXXtnraa72NCqhrMDHqut3yMXMacbV1tB17BQ-Q@mail.gmail.com> On Mon, Jan 14, 2013 at 7:51 PM, Anand Chitipothu <anandology at gmail.com>wrote: > Hi, > > I'm sure most of you might have already heard about it, Aaron Swartz, > hacker, writer and activist committed suicide on Jan 11, 2013. > > http://boingboing.net/2013/01/12/rip-aaron-swartz.html > > Aaron was a great Python programmer. He created web.py, a web framework in > Python, Infogami a wiki software and many other tools. He co-authored RSS > 1.0 specifications when he as 13 and worked with John Gruber in creating > Markdown. > > The PyCon India 2011 website is still running on Infogami. > > He is not just a programmer, a great activist too. He is the founder od > demand progress, an organization that played crucial role in stoping the > SOPA Act. > Just not to miss among a list of wonderful things, he was the co-founder of Reddit. > > Aaron's death is a great loss to the whole world. > It is a shocker. Was about to wind up a long day when I read this. I hope we get the truth behind his prosecution. > > May his soul rest in peace. > > Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, --Anand From ashish.makani at gmail.com Tue Jan 15 07:36:45 2013 From: ashish.makani at gmail.com (ashish makani) Date: Tue, 15 Jan 2013 12:06:45 +0530 Subject: [BangPypers] Death of Aaron Swartz In-Reply-To: <CACpj97A3SWgYXXtnraa72NCqhrMDHqut3yMXMacbV1tB17BQ-Q@mail.gmail.com> References: <CAC7wXFzRjroKHXTKhEiHh1-s-_ZETA7xTh+en_1pWQtbssZN0A@mail.gmail.com> <CACpj97A3SWgYXXtnraa72NCqhrMDHqut3yMXMacbV1tB17BQ-Q@mail.gmail.com> Message-ID: <CAEX1urjMYcExXEAnzF_bLUN9bAagFaefkQ9bPihAZsoQHkhgRA@mail.gmail.com> Really sad to hear this http://www.npr.org/blogs/thetwo-way/2013/01/12/169235633/aaron-swartz-reddit-cofounder-and-online-activist-dead-at-26 On Tue, Jan 15, 2013 at 1:53 AM, Anand B Pillai <abpillai at gmail.com> wrote: > On Mon, Jan 14, 2013 at 7:51 PM, Anand Chitipothu <anandology at gmail.com > >wrote: > > > Hi, > > > > I'm sure most of you might have already heard about it, Aaron Swartz, > > hacker, writer and activist committed suicide on Jan 11, 2013. > > > > http://boingboing.net/2013/01/12/rip-aaron-swartz.html > > > > Aaron was a great Python programmer. He created web.py, a web framework > in > > Python, Infogami a wiki software and many other tools. He co-authored RSS > > 1.0 specifications when he as 13 and worked with John Gruber in creating > > Markdown. > > > > The PyCon India 2011 website is still running on Infogami. > > > > He is not just a programmer, a great activist too. He is the founder od > > demand progress, an organization that played crucial role in stoping the > > SOPA Act. > > > > Just not to miss among a list of wonderful things, he was > the co-founder of Reddit. > > > > > > > Aaron's death is a great loss to the whole world. > > > > It is a shocker. Was about to wind up a long day when I read this. > I hope we get the truth behind his prosecution. > > > > > > May his soul rest in peace. > > > > Anand > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Regards, > > --Anand > > From kracethekingmaker at gmail.com Tue Jan 15 20:52:53 2013 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Wed, 16 Jan 2013 01:22:53 +0530 Subject: [BangPypers] Jan Meetup In-Reply-To: <CAO5c=mnH131wNczDzdVe42EuKoHz-c73MBh-XX-H8JVHB06ZFQ@mail.gmail.com> References: <CAO5c=mnH131wNczDzdVe42EuKoHz-c73MBh-XX-H8JVHB06ZFQ@mail.gmail.com> Message-ID: <CAO5c=mkT8+Fgckeda5A7=HOb8wF+U4Ky2k=rBOCecoN_HouK-A@mail.gmail.com> This weekend http://hacknight.in/hasgeek/aaronsw-memorial , if I am right Anand C will be there, I will be there too. Then will any one from the list co-ordinate the meetup ? On Fri, Jan 4, 2013 at 12:27 AM, kracekumar ramaraju < kracethekingmaker at gmail.com> wrote: > Hello > > We will have BangPypers Jan meetup on 19-01-2013, location Inseive, 2nd > Floor, IDBI Bank Building, Basavagudi http://tinyurl.com/insieveoffice from > 3:00PM to 6:00PM. Happy to hear proposals from everyone. > > This time we would like to have lighting talks. Lighting talks will be 5 > mins(Max) everyone who will be present in meetup should give talk :-). It > can be about how to setup Emacs for python. > > I would love to hear any new ideas. > > -- > * > Thanks & Regards > > "Talk is cheap, show me the code" -- Linus Torvalds > kracekumar > www.kracekumar.com > * > -- * Thanks & Regards "Talk is cheap, show me the code" -- Linus Torvalds kracekumar www.kracekumar.com * From kracethekingmaker at gmail.com Tue Jan 15 20:53:22 2013 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Wed, 16 Jan 2013 01:23:22 +0530 Subject: [BangPypers] Jan Meetup In-Reply-To: <CAO5c=mkT8+Fgckeda5A7=HOb8wF+U4Ky2k=rBOCecoN_HouK-A@mail.gmail.com> References: <CAO5c=mnH131wNczDzdVe42EuKoHz-c73MBh-XX-H8JVHB06ZFQ@mail.gmail.com> <CAO5c=mkT8+Fgckeda5A7=HOb8wF+U4Ky2k=rBOCecoN_HouK-A@mail.gmail.com> Message-ID: <CAO5c=m=ogVU8W5OHHBkcV6sk+44i-j2Q1Fzv+inWeP1NSxE+wA@mail.gmail.com> So far we don't have any proposal for sessions. On Wed, Jan 16, 2013 at 1:22 AM, kracekumar ramaraju < kracethekingmaker at gmail.com> wrote: > This weekend http://hacknight.in/hasgeek/aaronsw-memorial , if I am right > Anand C will be there, I will be there too. Then will any one from the list > co-ordinate the meetup ? > > > On Fri, Jan 4, 2013 at 12:27 AM, kracekumar ramaraju < > kracethekingmaker at gmail.com> wrote: > >> Hello >> >> We will have BangPypers Jan meetup on 19-01-2013, location Inseive, 2nd >> Floor, IDBI Bank Building, Basavagudi http://tinyurl.com/insieveoffice from >> 3:00PM to 6:00PM. Happy to hear proposals from everyone. >> >> This time we would like to have lighting talks. Lighting talks will be 5 >> mins(Max) everyone who will be present in meetup should give talk :-). It >> can be about how to setup Emacs for python. >> >> I would love to hear any new ideas. >> >> -- >> * >> Thanks & Regards >> >> "Talk is cheap, show me the code" -- Linus Torvalds >> kracekumar >> www.kracekumar.com >> * >> > > > > -- > * > Thanks & Regards > > "Talk is cheap, show me the code" -- Linus Torvalds > kracekumar > www.kracekumar.com > * > -- * Thanks & Regards "Talk is cheap, show me the code" -- Linus Torvalds kracekumar www.kracekumar.com * From amit.pureenergy at gmail.com Wed Jan 16 05:44:41 2013 From: amit.pureenergy at gmail.com (Amit Sethi) Date: Wed, 16 Jan 2013 10:14:41 +0530 Subject: [BangPypers] Unconference and Hackathon Message-ID: <CAN+DPAAPmcAAgdm3380=EzyP==RF=bmqG9SZ1-9q4rWBVJSSmg@mail.gmail.com> Hi All , We are holding a hackathon on "real time web" in Delhi. Although we say real time web what we really mean a hackathon on anything and everything that excites you about developing for the web. The location and time are given below. All participants will be treated to some amazing and greasy parathas,great coffee and hopefully some intriguing conversations . We also plan to have a few talks on saturday afternoon from 3-5 pm on saturday. Time and Location 18 January at 19:30 until 20 January at 17:00 M-161/1B third floor, Kalka bhawan, behind yususf sarai community center, gautam nagar. Landmark: next to Green park metro station. Exit from Gulmohar park exit gate. Thanks Amit -- A-M-I-T S|S From kracethekingmaker at gmail.com Thu Jan 17 06:49:52 2013 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Thu, 17 Jan 2013 11:19:52 +0530 Subject: [BangPypers] Jan Meetup In-Reply-To: <CAO5c=m=ogVU8W5OHHBkcV6sk+44i-j2Q1Fzv+inWeP1NSxE+wA@mail.gmail.com> References: <CAO5c=mnH131wNczDzdVe42EuKoHz-c73MBh-XX-H8JVHB06ZFQ@mail.gmail.com> <CAO5c=mkT8+Fgckeda5A7=HOb8wF+U4Ky2k=rBOCecoN_HouK-A@mail.gmail.com> <CAO5c=m=ogVU8W5OHHBkcV6sk+44i-j2Q1Fzv+inWeP1NSxE+wA@mail.gmail.com> Message-ID: <CAO5c=mkKShEufv0Vs11mYSMmbenV9byk7rRMF8M4bWeuurPFTg@mail.gmail.com> This month meetup will be CIS, Domlur. Centre for Internet and Society No 194, 2nd C Cross, 4th Main Opp. Domlur Club, Domlur 2nd Stage Bangalore, Karnataka ? 560 071 Ph: 85530-29521 Meetup will start at 3:00 PM. *Agenda* 1. Introduction to web.py <http://webpy.org/> - Anand<http://anandology.com/> 2. Lighting talks. After the meetup, interested people can join aaronsw memorial hacknight<http://hacknight.in/hasgeek/aaronsw-memorial> . On Wed, Jan 16, 2013 at 1:23 AM, kracekumar ramaraju < kracethekingmaker at gmail.com> wrote: > So far we don't have any proposal for sessions. > > > On Wed, Jan 16, 2013 at 1:22 AM, kracekumar ramaraju < > kracethekingmaker at gmail.com> wrote: > >> This weekend http://hacknight.in/hasgeek/aaronsw-memorial , if I am >> right Anand C will be there, I will be there too. Then will any one from >> the list co-ordinate the meetup ? >> >> >> On Fri, Jan 4, 2013 at 12:27 AM, kracekumar ramaraju < >> kracethekingmaker at gmail.com> wrote: >> >>> Hello >>> >>> We will have BangPypers Jan meetup on 19-01-2013, location Inseive, 2nd >>> Floor, IDBI Bank Building, Basavagudi http://tinyurl.com/insieveoffice from >>> 3:00PM to 6:00PM. Happy to hear proposals from everyone. >>> >>> This time we would like to have lighting talks. Lighting talks will be 5 >>> mins(Max) everyone who will be present in meetup should give talk :-). It >>> can be about how to setup Emacs for python. >>> >>> I would love to hear any new ideas. >>> >>> -- >>> * >>> Thanks & Regards >>> >>> "Talk is cheap, show me the code" -- Linus Torvalds >>> kracekumar >>> www.kracekumar.com >>> * >>> >> >> >> >> -- >> * >> Thanks & Regards >> >> "Talk is cheap, show me the code" -- Linus Torvalds >> kracekumar >> www.kracekumar.com >> * >> > > > > -- > * > Thanks & Regards > > "Talk is cheap, show me the code" -- Linus Torvalds > kracekumar > www.kracekumar.com > * > -- * Thanks & Regards "Talk is cheap, show me the code" -- Linus Torvalds kracekumar www.kracekumar.com * From rishi at turtleyogi.com Mon Jan 21 06:13:44 2013 From: rishi at turtleyogi.com (Hrishikesh Kulkarni) Date: Mon, 21 Jan 2013 10:43:44 +0530 Subject: [BangPypers] [JOBS] Python Django expert Message-ID: <CALFWOz5=Rz4COFK_dOc=3FL_iDnkSPg=vN4f3s__kOr_5ZuF-Q@mail.gmail.com> I am looking for an expert on Python based Django web framework on contract basis. If interested please contact me at rishi at turtleyogi.com regards, Rishi Founder - Turtleyogi (Incubated at IIM-B) From vinod.narasimhaiah at gmail.com Mon Jan 21 07:06:53 2013 From: vinod.narasimhaiah at gmail.com (Vinod Kumar Narasimhaiah) Date: Mon, 21 Jan 2013 11:36:53 +0530 Subject: [BangPypers] require Python/Django developers Message-ID: <CAPaifDdZz_3JgVPpki6ivQ-fSWrxRbDR=h-njM3DehrtC0Aovg@mail.gmail.com> Hi, We are looking for a programmer for our python and django based product development team. Preferably full time but not a constraint for deserving candidate. Duration: 2-3 months (extendable long term and potential full time employment opportunity) Compensation: Yes Workspace: Yes (South Bangalore) If you are interested, please send me your profile. Regards, Vinod From kvprasad.on at gmail.com Mon Jan 21 14:52:01 2013 From: kvprasad.on at gmail.com (Prasad) Date: Mon, 21 Jan 2013 19:22:01 +0530 Subject: [BangPypers] Job Posting - Python Developers Message-ID: <CAFc7Lf=ASn2yMeBeKgf0cJt81uo8xXcZcLQkeY3ZxGwpx0GiHw@mail.gmail.com> Hi, We?re Hiring Python Developers We seek passionate PYTHON developers with some experience in building or contributing to Open Source projects. We?re constantly rolling out new products so the right individual would be able to write clean code and work in a fast pace environment. We highly value native ability, passion and the right attitude. Requirements - Be smart and be passionate. - Technical proficiency with Python and Django. - Technical proficiency in JavaScript. - Experience with MySQL / PgSQL. - Unix/Linux expertise. - Experience with MVC design patterns and solid algorithm skills. - 1 year of industry experience (or equivalent internship experience). - B.E. in Computer Science or equivalent degree required. How to apply Send your resume to: Prasad at doublespring.com Warm Regards, Prasad, www.DoubleSpring.com From mujeesh at gmail.com Tue Jan 22 15:09:52 2013 From: mujeesh at gmail.com (mujeesh.v.s) Date: Tue, 22 Jan 2013 19:39:52 +0530 Subject: [BangPypers] Hi All Message-ID: <CAEcUyrftcgPbSDDmLHNhwUC+6i2Od5gTuJ=sqz5Q0tczQZykBw@mail.gmail.com> I am very new to django.. I want to publish pdf files from a folder. can any one suggest a method? Thanks & Regards Mujeesh.V.S +91-9483501704 From jaganadhg at gmail.com Wed Jan 23 08:02:47 2013 From: jaganadhg at gmail.com (JAGANADH G) Date: Wed, 23 Jan 2013 12:32:47 +0530 Subject: [BangPypers] Django Jstree examples Message-ID: <CAM4qvdGUPtVoXcWuvoUOOkzcRQ7W1m1vmJbdqbt8cyRmKPAnsA@mail.gmail.com> Hi All, Is there any tutorial available for Django and Jstree J query Checktree. Best regards -- ********************************** JAGANADH G http://jaganadhg.in *ILUGCBE* http://ilugcbe.org.in From gora at mimirtech.com Wed Jan 23 08:10:46 2013 From: gora at mimirtech.com (Gora Mohanty) Date: Wed, 23 Jan 2013 12:40:46 +0530 Subject: [BangPypers] Django Jstree examples In-Reply-To: <CAM4qvdGUPtVoXcWuvoUOOkzcRQ7W1m1vmJbdqbt8cyRmKPAnsA@mail.gmail.com> References: <CAM4qvdGUPtVoXcWuvoUOOkzcRQ7W1m1vmJbdqbt8cyRmKPAnsA@mail.gmail.com> Message-ID: <CACiMRG+mrSeatSekqtG=WFAu99EeX6yaYG0quna3nPhctDvbhw@mail.gmail.com> On 23 January 2013 12:32, JAGANADH G <jaganadhg at gmail.com> wrote: > Hi All, > Is there any tutorial available for Django and Jstree J query Checktree. http://lmgtfy.com/?q=django+jquery+jstree Regards, Gora From nitin.nitp at gmail.com Wed Jan 23 09:25:00 2013 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Wed, 23 Jan 2013 13:55:00 +0530 Subject: [BangPypers] function parameter query Message-ID: <CALqiT-u+0U7eZi1Z6=xCRribpN9QC_TKnKL6WZ9uFkn5JL-UDA@mail.gmail.com> >>> def show(c, d=False, **kwargs): print 'c',c print 'd',d print kwargs >>> def test(c, **kwargs): if (kwargs is None): kwargs = {} kwargs['d'] = 4 kwargs['e'] = 5 show(c, **kwargs) >>> test(1) c 1 d 4 {'e': 5} Can anyone explain me why d (2nd parameter of function show) is getting set to 3, when I am not passing any value to it and kwargs contains d=3. Why kwargs value is getting set to d argument. Is this the expected behavior? -- Nitin K From dhruvbaldawa at gmail.com Wed Jan 23 09:39:04 2013 From: dhruvbaldawa at gmail.com (Dhruv Baldawa) Date: Wed, 23 Jan 2013 14:09:04 +0530 Subject: [BangPypers] function parameter query In-Reply-To: <CALqiT-u+0U7eZi1Z6=xCRribpN9QC_TKnKL6WZ9uFkn5JL-UDA@mail.gmail.com> References: <CALqiT-u+0U7eZi1Z6=xCRribpN9QC_TKnKL6WZ9uFkn5JL-UDA@mail.gmail.com> Message-ID: <CAC5Hnjj8Ag2Wkust9ZpHTD1uhWkZT8s=qHXwTMJ-BT4fpmqT5A@mail.gmail.com> On Wed, Jan 23, 2013 at 1:55 PM, Nitin Kumar <nitin.nitp at gmail.com> wrote: > Can anyone explain me why d (2nd parameter of function show) is getting set > to 3, when I am not passing any value to it and kwargs contains d=3. > > I think you mean 4 over here > Why kwargs value is getting set to d argument. Is this the > expected behavior? > And yes, this is the expected behaviour. When you have a dictionary (kwargs in this case), and you use **dictionary in a function call, it "unpacks" the dictionary into the parameters and makes the call. For example, if you have: d = {'a': 1, 'b': 2, 'c': 3} def foo(a, b, c): print a, b, c then foo(**d) is equivalent to calling foo(a=1, b=2, c=3) in your test() function above, what you are doing by show(c, **kwargs) is show(c, d=4, e=5) -- Dhruv Baldawa (http://www.dhruvb.com) From fagun.bhavsar at gmail.com Wed Jan 23 10:55:11 2013 From: fagun.bhavsar at gmail.com (Fagun Bhavsar) Date: Wed, 23 Jan 2013 15:25:11 +0530 Subject: [BangPypers] Selenium & Python Message-ID: <50FFB37F.9090406@gmail.com> Hi, I am learning Python and want to implement it side-by-side. The reason why I started basic web testing automation with Selenium (I am using Python Bindings) with it. Can someone help me with the learning part of it? I have not done automation testing before so I am finding it a bit more challenging and my day job is not really allow me to explore more options. Thanks in advance. Regards, Fagun From baiju.m.mail at gmail.com Wed Jan 23 11:22:02 2013 From: baiju.m.mail at gmail.com (Baiju M) Date: Wed, 23 Jan 2013 15:52:02 +0530 Subject: [BangPypers] Selenium & Python In-Reply-To: <50FFB37F.9090406@gmail.com> References: <50FFB37F.9090406@gmail.com> Message-ID: <CAN8ZCbx51Xba_aSGe6zBBMqfHmHP5yAPv7NmDOr8p7+zsGCM8A@mail.gmail.com> I have written some documentation sometimes back here: https://selenium-python.readthedocs.org/en/latest/ Feel free to send any changes via github pull request. On Wed, Jan 23, 2013 at 3:25 PM, Fagun Bhavsar <fagun.bhavsar at gmail.com> wrote: > Hi, > > I am learning Python and want to implement it side-by-side. The reason why I > started basic web testing automation with Selenium (I am using Python > Bindings) with it. Can someone help me with the learning part of it? > > I have not done automation testing before so I am finding it a bit more > challenging and my day job is not really allow me to explore more options. > > Thanks in advance. > > Regards, > Fagun > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers From ashish.makani at gmail.com Wed Jan 23 12:05:53 2013 From: ashish.makani at gmail.com (ashish makani) Date: Wed, 23 Jan 2013 16:35:53 +0530 Subject: [BangPypers] Good Django tutorial Message-ID: <CAEX1urjPuLo3G4h3DrOQWRKpBoZf_G3Z4sRxTas8cZaPtwAfsA@mail.gmail.com> Hi Folks I came across a good django tutorial on hn, so thought of sharing it with all you pythonistas http://gettingstartedwithdjango.com/en/lessons/introduction-and-launch/ (hn page : http://news.ycombinator.com/item?id=5098832 ) cheers ashish From venkat83 at gmail.com Wed Jan 23 17:04:51 2013 From: venkat83 at gmail.com (Venkatraman S) Date: Wed, 23 Jan 2013 21:34:51 +0530 Subject: [BangPypers] Fwd: [Baypiggies] MongoDB for Python Developers starts today In-Reply-To: <CA+UBrj6Ji192X5y5dFuLJq9ymbYd01Cwwm5FB-tuHpdxCEV=9Q@mail.gmail.com> References: <CA+UBrj6Ji192X5y5dFuLJq9ymbYd01Cwwm5FB-tuHpdxCEV=9Q@mail.gmail.com> Message-ID: <CAN7tdFRGugGo1Kh5wSneWRwESzQPgXP08=_YKzE=0WiNh5SwFw@mail.gmail.com> FYI: ---------- Forwarded message ---------- From: Glen Jarvis <glen at glenjarvis.com> Date: Tue, Jan 22, 2013 at 1:42 AM Subject: [Baypiggies] MongoDB for Python Developers starts today To: Baypiggies <baypiggies at python.org> It's Free. FYI if your have the time/bandwidth: https://education.10gen.com/courses/10gen/M101P/2013_Spring/about Cheers, Glen -- "Pursue, keep up with, circle round and round your life as a dog does his master's chase. Do what you love. Know your own bone; gnaw at it, bury it, unearth it, and gnaw it still." --Henry David Thoreau _______________________________________________ Baypiggies mailing list Baypiggies at python.org To change your subscription options or unsubscribe: http://mail.python.org/mailman/listinfo/baypiggies From mailashok117 at gmail.com Wed Jan 23 18:25:28 2013 From: mailashok117 at gmail.com (Ashok Samantray) Date: Wed, 23 Jan 2013 22:55:28 +0530 Subject: [BangPypers] Fwd: [Baypiggies] MongoDB for Python Developers starts today In-Reply-To: <CAN7tdFRGugGo1Kh5wSneWRwESzQPgXP08=_YKzE=0WiNh5SwFw@mail.gmail.com> References: <CA+UBrj6Ji192X5y5dFuLJq9ymbYd01Cwwm5FB-tuHpdxCEV=9Q@mail.gmail.com> <CAN7tdFRGugGo1Kh5wSneWRwESzQPgXP08=_YKzE=0WiNh5SwFw@mail.gmail.com> Message-ID: <CAAbNbH5mx8tfsq1-a3E7u0EQh3M43w9j8KjGP-ieTPJgUCbF4w@mail.gmail.com> Thanks On Wed, Jan 23, 2013 at 9:34 PM, Venkatraman S <venkat83 at gmail.com> wrote: > FYI: > > ---------- Forwarded message ---------- > From: Glen Jarvis <glen at glenjarvis.com> > Date: Tue, Jan 22, 2013 at 1:42 AM > Subject: [Baypiggies] MongoDB for Python Developers starts today > To: Baypiggies <baypiggies at python.org> > > > It's Free. FYI if your have the time/bandwidth: > > https://education.10gen.com/courses/10gen/M101P/2013_Spring/about > > > Cheers, > > > Glen > -- > > "Pursue, keep up with, circle round and round your life as a dog does his > master's chase. Do what you love. Know your own bone; gnaw at it, bury it, > unearth it, and gnaw it still." > > --Henry David Thoreau > > _______________________________________________ > Baypiggies mailing list > Baypiggies at python.org > To change your subscription options or unsubscribe: > http://mail.python.org/mailman/listinfo/baypiggies > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From yoganand at gmx.com Mon Jan 28 06:27:26 2013 From: yoganand at gmx.com (Yoganand Anandaraju) Date: Mon, 28 Jan 2013 06:27:26 +0100 Subject: [BangPypers] Hi All Message-ID: <20130128052726.16140@gmx.com> Did you look at ReportLab? (http://www.reportlab.com/software/opensource/) https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ Regards, Yoganand ----- Original Message ----- From: mujeesh.v.s Sent: 01/22/13 07:39 PM To: BangPypers at python.org Subject: [BangPypers] Hi All I am very new to django.. I want to publish pdf files from a folder. can any one suggest a method? Thanks & Regards Mujeesh.V.S +91-9483501704 _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From mujeesh at gmail.com Mon Jan 28 07:16:57 2013 From: mujeesh at gmail.com (mujeesh.v.s) Date: Mon, 28 Jan 2013 11:46:57 +0530 Subject: [BangPypers] Hi All In-Reply-To: <20130128052726.16140@gmx.com> References: <20130128052726.16140@gmx.com> Message-ID: <CAEcUyrcRjiEeB2-4P54v1LgqFkzGEOwdjyUqfjfiSZveHX-9bA@mail.gmail.com> Hi Yoganand, I tried ReportLab.Its creating new pdf files but I just want show whatever pdf files existing in my folder. I tried pypdf also. Thanks & Regards Mujeesh.V.S +91-9483501704 On Mon, Jan 28, 2013 at 10:57 AM, Yoganand Anandaraju <yoganand at gmx.com>wrote: > Did you look at ReportLab? (http://www.reportlab.com/software/opensource/) > > https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ > > Regards, > Yoganand > ----- Original Message ----- > From: mujeesh.v.s > Sent: 01/22/13 07:39 PM > To: BangPypers at python.org > Subject: [BangPypers] Hi All > > I am very new to django.. I want to publish pdf files from a folder. can > any one suggest a method? Thanks & Regards Mujeesh.V.S +91-9483501704_______________________________________________ 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 yoganand at gmx.com Mon Jan 28 08:03:31 2013 From: yoganand at gmx.com (Yoganand Anandaraju) Date: Mon, 28 Jan 2013 08:03:31 +0100 Subject: [BangPypers] Hi All Message-ID: <20130128070331.16140@gmx.com> Do you mean serving static files using content-type as pdf in django response? ----- Original Message ----- From: mujeesh.v.s Sent: 01/28/13 11:46 AM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] Hi All Hi Yoganand, I tried ReportLab.Its creating new pdf files but I just want show whatever pdf files existing in my folder. I tried pypdf also. Thanks & Regards Mujeesh.V.S +91-9483501704 On Mon, Jan 28, 2013 at 10:57 AM, Yoganand Anandaraju <yoganand at gmx.com>wrote: > Did you look at ReportLab? (http://www.reportlab.com/software/opensource/) > > https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ > > Regards, > Yoganand > ----- Original Message ----- > From: mujeesh.v.s > Sent: 01/22/13 07:39 PM > To: BangPypers at python.org > Subject: [BangPypers] Hi All > > I am very new to django.. I want to publish pdf files from a folder. can > any one suggest a method? Thanks & Regards Mujeesh.V.S +91-9483501704_______________________________________________ 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 mujeesh at gmail.com Mon Jan 28 08:29:12 2013 From: mujeesh at gmail.com (mujeesh.v.s) Date: Mon, 28 Jan 2013 12:59:12 +0530 Subject: [BangPypers] Hi All In-Reply-To: <20130128070331.16140@gmx.com> References: <20130128070331.16140@gmx.com> Message-ID: <CAEcUyre_xuFpzW08bAy4RNCeB3ZapNWd7pF=M+KecHhh0THxEg@mail.gmail.com> Hi Yoganand, I am trying to load (show) pdf file in html page while clicking a link. Thanks Mujeesh.V.S On Mon, Jan 28, 2013 at 12:33 PM, Yoganand Anandaraju <yoganand at gmx.com>wrote: > Do you mean serving static files using content-type as pdf in django > response? > > ----- Original Message ----- > From: mujeesh.v.s > Sent: 01/28/13 11:46 AM > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] Hi All > > Hi Yoganand, I tried ReportLab.Its creating new pdf files but I just want > show whatever pdf files existing in my folder. I tried pypdf also. Thanks & > Regards Mujeesh.V.S +91-9483501704 On Mon, Jan 28, 2013 at 10:57 AM, > Yoganand Anandaraju <yoganand at gmx.com>wrote: > Did you look at ReportLab? > (http://www.reportlab.com/software/opensource/) > > > https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ > > Regards, > > Yoganand > ----- Original Message ----- > From: mujeesh.v.s > Sent: > 01/22/13 07:39 PM > To: BangPypers at python.org > Subject: [BangPypers] Hi > All > > I am very new to django.. I want to publish pdf files from a > folder. can > any one suggest a method? Thanks & Regards Mujeesh.V.S > +91-9483501704_______________________________________________ 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/list > info/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 gopalakrishnan.subramani at gmail.com Mon Jan 28 08:32:06 2013 From: gopalakrishnan.subramani at gmail.com (Gopalakrishnan Subramani) Date: Mon, 28 Jan 2013 13:02:06 +0530 Subject: [BangPypers] Hi All In-Reply-To: <CAEcUyrcRjiEeB2-4P54v1LgqFkzGEOwdjyUqfjfiSZveHX-9bA@mail.gmail.com> References: <20130128052726.16140@gmx.com> <CAEcUyrcRjiEeB2-4P54v1LgqFkzGEOwdjyUqfjfiSZveHX-9bA@mail.gmail.com> Message-ID: <CAHhacd2tyYzeZ1R8W_Hv-EZ+Fx88wX_Tii2g-uNwZn19zyJRcA@mail.gmail.com> You need to decide how to publish your generated PDF files. I can think of 2 approaches. 1. Generate PDF file which can be cached (either in file system or memory). Memory is not good choice though. This is case, use Django static file moduels. might be this https://docs.djangoproject.com/en/dev/howto/static-files/ 2. Serve content on the fly. You don't store the generated file to directory, instead return as stream to client. This will affect performance, client retry cause creation same content again, consume a lot of server resources on heavy traffic websites. On Mon, Jan 28, 2013 at 11:46 AM, mujeesh.v.s <mujeesh at gmail.com> wrote: > Hi Yoganand, > > I tried ReportLab.Its creating new pdf files but I just > want show whatever pdf files > existing in my folder. I tried pypdf also. > > > Thanks & Regards > > > Mujeesh.V.S > > +91-9483501704 > > > On Mon, Jan 28, 2013 at 10:57 AM, Yoganand Anandaraju <yoganand at gmx.com > >wrote: > > > Did you look at ReportLab? ( > http://www.reportlab.com/software/opensource/) > > > > https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ > > > > Regards, > > Yoganand > > ----- Original Message ----- > > From: mujeesh.v.s > > Sent: 01/22/13 07:39 PM > > To: BangPypers at python.org > > Subject: [BangPypers] Hi All > > > > I am very new to django.. I want to publish pdf files from a folder. can > > any one suggest a method? Thanks & Regards Mujeesh.V.S +91-9483501704_______________________________________________ > 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 sajuptpm at gmail.com Mon Jan 28 08:48:46 2013 From: sajuptpm at gmail.com (Saju M) Date: Mon, 28 Jan 2013 13:18:46 +0530 Subject: [BangPypers] python: HTTP connections through a proxy server requiring authentication Message-ID: <CANR2JHgA65tRswqoCKjSvw4kipgiTz94v3Fmfz=K5Cit0v=g4g@mail.gmail.com> Hi, I followed http://dabase.com/blog/Minimal_squid3_proxy_configuration/ to setup proxy server. I tested proxy server with firefox with IP:127.0.0.1/192.168.1.6 and Port:3128 and it working (asking for proxy username and password). But, i could not make http connection through proxy server requiring authentication using following python code.. *########## Python code ########## * import urllib2, urllib proxy = urllib2.ProxyHandler({'http': 'http://saju:saju at 192.168.1.6:3128'}) auth = urllib2.HTTPBasicAuthHandler() opener = urllib2.build_opener(proxy, auth, urllib2.HTTPHandler) urllib2.install_opener(opener) conn = urllib2.urlopen('http://python.org') return_str = conn.read() print "========return_str======", return_str *==== ERROR ==== * (tg2env)saju at saju-desktop:~$ python py_proxy.py Traceback (most recent call last): File "py_proxy.py", line 9, in <module> conn = urllib2.urlopen('http://python.org') File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 406, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 519, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 444, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 407: Proxy Authentication Required *########## Proxy Server Settings ########## * sudo vim /etc/squid3/squid.conf ------------------------------ http_access allow localhost auth_param digest program /usr/lib/squid3/digest_pw_auth -c /etc/squid3/passwords auth_param digest realm proxy acl authenticated proxy_auth REQUIRED http_access allow authenticated http_access deny all http_port 3128 Setting up user -------------- htdigest -c /etc/squid3/passwords proxy saju *======================* (tg2env)saju at saju-desktop:~$ sudo cat /etc/squid3/squid.conf | grep ^[^#] acl manager proto cache_object acl localhost src 127.0.0.1/32 ::1 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1 acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http acl CONNECT method CONNECT http_access allow manager localhost http_access deny manager http_access deny !Safe_ports http_access deny CONNECT !SSL_ports http_access allow localhost auth_param digest program /usr/lib/squid3/digest_pw_auth -c /etc/squid3/passwords auth_param digest realm proxy acl authenticated proxy_auth REQUIRED http_access allow authenticated http_access deny all http_port 3128 coredump_dir /var/spool/squid3 refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880 refresh_pattern . 0 20% 4320 (tg2env)saju at saju-desktop:~$ From yoganand at gmx.com Mon Jan 28 09:57:26 2013 From: yoganand at gmx.com (Yoganand Anandaraju) Date: Mon, 28 Jan 2013 09:57:26 +0100 Subject: [BangPypers] Hi All Message-ID: <20130128085726.16140@gmx.com> Hi Mujeesh, Did you try serving static files? Can you paste the response you are getting when you serve static files? https://docs.djangoproject.com/en/dev/howto/static-files/ Thanks, Yoganand yoganand at gmx.com ----- Original Message ----- From: mujeesh.v.s Sent: 01/28/13 12:59 PM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] Hi All Hi Yoganand, I am trying to load (show) pdf file in html page while clicking a link. Thanks Mujeesh.V.S On Mon, Jan 28, 2013 at 12:33 PM, Yoganand Anandaraju <yoganand at gmx.com>wrote: > Do you mean serving static files using content-type as pdf in django > response? > > ----- Original Message ----- > From: mujeesh.v.s > Sent: 01/28/13 11:46 AM > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] Hi All > > Hi Yoganand, I tried ReportLab.Its creating new pdf files but I just want > show whatever pdf files existing in my folder. I tried pypdf also. Thanks & > Regards Mujeesh.V.S +91-9483501704 On Mon, Jan 28, 2013 at 10:57 AM, > Yoganand Anandaraju <yoganand at gmx.com>wrote: > Did you look at ReportLab? > (http://www.reportlab.com/software/opensource/) > > > https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ > > Regards, > > Yoganand > ----- Original Message ----- > From: mujeesh.v.s > Sent: > 01/22/13 07:39 PM > To: BangPypers at python.org > Subject: [BangPypers] Hi > All > > I am very new to django.. I want to publish pdf files from a > folder. can > any one suggest a method? Thanks & Regards Mujeesh.V.S > +91-9483501704_______________________________________________ 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/list > info/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 > _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers Regards, Yoganand From mujeesh at gmail.com Mon Jan 28 11:24:16 2013 From: mujeesh at gmail.com (mujeesh.v.s) Date: Mon, 28 Jan 2013 15:54:16 +0530 Subject: [BangPypers] Hi All In-Reply-To: <20130128085726.16140@gmx.com> References: <20130128085726.16140@gmx.com> Message-ID: <CAEcUyrfwrwBWOehx=O-SXcVexmX=+kbcAE=PxP6PxWg9gKoO+w@mail.gmail.com> Hi Yoganand, I wasn't aware about the "static" method and I tried today with that but I didn't get the output. I am not able to figure out whats wrong in my code. Thanks for Your help.I will try one more time. Mujeesh.V.S On Mon, Jan 28, 2013 at 2:27 PM, Yoganand Anandaraju <yoganand at gmx.com>wrote: > Hi Mujeesh, > > Did you try serving static files? Can you paste the response you are > getting when you serve static files? > > https://docs.djangoproject.com/en/dev/howto/static-files/ > > Thanks, > Yoganand > yoganand at gmx.com > > > > ----- Original Message ----- > From: mujeesh.v.s > Sent: 01/28/13 12:59 PM > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] Hi All > > Hi Yoganand, I am trying to load (show) pdf file in html page while > clicking a link. Thanks Mujeesh.V.S On Mon, Jan 28, 2013 at 12:33 PM, > Yoganand Anandaraju <yoganand at gmx.com>wrote: > Do you mean serving static > files using content-type as pdf in django > response? > > ----- Original > Message ----- > From: mujeesh.v.s > Sent: 01/28/13 11:46 AM > To: Bangalore > Python Users Group - India > Subject: Re: [BangPypers] Hi All > > Hi > Yoganand, I tried ReportLab.Its creating new pdf files but I just want > > show whatever pdf files existing in my folder. I tried pypdf also. Thanks & > > Regards Mujeesh.V.S +91-9483501704 On Mon, Jan 28, 2013 at 10:57 AM, > > Yoganand Anandaraju <yoganand at gmx.com>wrote: > Did you look at ReportLab? > > (http://www.reportlab.com/software/opensource/) > > > > https://docs.djangoproject.com/en/dev/howto/outputting-pdf/ > > Regards, > > > Yoganand > ----- Original Message ----- > From: mujeesh.v.s > Sent: > > 01/22/13 07:39 PM > To: BangPypers at python.org > Subject: [BangPypers > ] Hi > All > > I am very new to django.. I want to publish pdf files from > a > folder. can > any one suggest a method? Thanks & Regards Mujeesh.V.S > > +91-9483501704_______________________________________________ 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/list > > info/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> _______________________________________________ BangPypers mailing list > BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers > > > > Regards, > Yoganand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From jaganadhg at gmail.com Mon Jan 28 15:12:35 2013 From: jaganadhg at gmail.com (JAGANADH G) Date: Mon, 28 Jan 2013 19:42:35 +0530 Subject: [BangPypers] Interactive shell for python application Message-ID: <CAM4qvdHPQnMLu6TbXesatDcOc8HNh0MGDayY2wLZD_PgBxS2XQ@mail.gmail.com> Hi All I have python application which performs extract, store and analyze data from web. I need a shell like environment for my program like >>> e = extractor() >>> a = analyzer() >>> e.start() >>> a.start() Which will start my extraction process . After that I want check weather the extraction is running or not. Like >>> active_process() Is there any way to do the same. Any pointers to some examples or tutorials. -- ********************************** JAGANADH G http://jaganadhg.in *ILUGCBE* http://ilugcbe.org.in From pradeepbs at gmail.com Mon Jan 28 15:21:04 2013 From: pradeepbs at gmail.com (Pradeep Banavara) Date: Mon, 28 Jan 2013 19:51:04 +0530 Subject: [BangPypers] Interactive shell for python application In-Reply-To: <CAM4qvdHPQnMLu6TbXesatDcOc8HNh0MGDayY2wLZD_PgBxS2XQ@mail.gmail.com> References: <CAM4qvdHPQnMLu6TbXesatDcOc8HNh0MGDayY2wLZD_PgBxS2XQ@mail.gmail.com> Message-ID: <CAP-hWS2cemkJ66m422xW-RvB_DH0wCDYQ4TAdfJ7tcZ43CnTiA@mail.gmail.com> Do you want a python shell in a browser ?? On Mon, Jan 28, 2013 at 7:42 PM, JAGANADH G <jaganadhg at gmail.com> wrote: > Hi All > > I have python application which performs extract, store and analyze data > from web. I need a shell like environment for my program like > > >>> e = extractor() > > >>> a = analyzer() > > >>> e.start() > > >>> a.start() > > Which will start my extraction process . After that I want check weather > the extraction is running or not. Like > > >>> active_process() > > > > Is there any way to do the same. Any pointers to some examples or > tutorials. > > -- > ********************************** > JAGANADH G > http://jaganadhg.in > *ILUGCBE* > http://ilugcbe.org.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From jaganadhg at gmail.com Mon Jan 28 15:23:35 2013 From: jaganadhg at gmail.com (JAGANADH G) Date: Mon, 28 Jan 2013 19:53:35 +0530 Subject: [BangPypers] Interactive shell for python application In-Reply-To: <CAP-hWS2cemkJ66m422xW-RvB_DH0wCDYQ4TAdfJ7tcZ43CnTiA@mail.gmail.com> References: <CAM4qvdHPQnMLu6TbXesatDcOc8HNh0MGDayY2wLZD_PgBxS2XQ@mail.gmail.com> <CAP-hWS2cemkJ66m422xW-RvB_DH0wCDYQ4TAdfJ7tcZ43CnTiA@mail.gmail.com> Message-ID: <CAM4qvdFyuJ9wX=Vy=bP0g_ESScuXq1+PgsdvPW6BrjDf980TTg@mail.gmail.com> On Mon, Jan 28, 2013 at 7:51 PM, Pradeep Banavara <pradeepbs at gmail.com>wrote: > Do you want a python shell in a browser ?? > > > Which ever feasible . The whole idea is to control and monitor the execution via a desktop shell or web shell -- ********************************** JAGANADH G http://jaganadhg.in *ILUGCBE* http://ilugcbe.org.in From kracethekingmaker at gmail.com Mon Jan 28 16:20:10 2013 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Mon, 28 Jan 2013 20:50:10 +0530 Subject: [BangPypers] Interactive shell for python application In-Reply-To: <CAM4qvdFyuJ9wX=Vy=bP0g_ESScuXq1+PgsdvPW6BrjDf980TTg@mail.gmail.com> References: <CAM4qvdHPQnMLu6TbXesatDcOc8HNh0MGDayY2wLZD_PgBxS2XQ@mail.gmail.com> <CAP-hWS2cemkJ66m422xW-RvB_DH0wCDYQ4TAdfJ7tcZ43CnTiA@mail.gmail.com> <CAM4qvdFyuJ9wX=Vy=bP0g_ESScuXq1+PgsdvPW6BrjDf980TTg@mail.gmail.com> Message-ID: <CAO5c=m=4qVkv1arf5uvHDw+0OzeRhkeDvN1JOnkvh+3sT3FzBA@mail.gmail.com> Can you elaborate what are steps tried so far ? Once I wrote pylive python online interpreter using PyPy Sandbox. https://github.com/kracekumar/pylive Logic is to run python interpreter with extra security for each user online. On Mon, Jan 28, 2013 at 7:53 PM, JAGANADH G <jaganadhg at gmail.com> wrote: > On Mon, Jan 28, 2013 at 7:51 PM, Pradeep Banavara <pradeepbs at gmail.com > >wrote: > > > Do you want a python shell in a browser ?? > > > > > > > Which ever feasible . The whole idea is to control and monitor the > execution via a desktop shell or web shell > -- > ********************************** > JAGANADH G > http://jaganadhg.in > *ILUGCBE* > http://ilugcbe.org.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- * Thanks & Regards "Talk is cheap, show me the code" -- Linus Torvalds kracekumar www.kracekumar.com * From dhruvbaldawa at gmail.com Mon Jan 28 18:06:33 2013 From: dhruvbaldawa at gmail.com (Dhruv Baldawa) Date: Mon, 28 Jan 2013 22:36:33 +0530 Subject: [BangPypers] Interactive shell for python application In-Reply-To: <CAO5c=m=4qVkv1arf5uvHDw+0OzeRhkeDvN1JOnkvh+3sT3FzBA@mail.gmail.com> References: <CAM4qvdHPQnMLu6TbXesatDcOc8HNh0MGDayY2wLZD_PgBxS2XQ@mail.gmail.com> <CAP-hWS2cemkJ66m422xW-RvB_DH0wCDYQ4TAdfJ7tcZ43CnTiA@mail.gmail.com> <CAM4qvdFyuJ9wX=Vy=bP0g_ESScuXq1+PgsdvPW6BrjDf980TTg@mail.gmail.com> <CAO5c=m=4qVkv1arf5uvHDw+0OzeRhkeDvN1JOnkvh+3sT3FzBA@mail.gmail.com> Message-ID: <CAC5HnjgepYGXNkPi9vqyrTjmxoDeYT4nD086H9zY6=dsaWFdeA@mail.gmail.com> If you just want to embed a Python shell, you can do it with iPython from IPython import embed embed() # this call anywhere in your program will start IPython Refer: http://ipython.org/ipython-doc/dev/interactive/reference.html#embedding for more details. I usually add a IPython debugger, whenever I need such a thing, I just do a: from IPython.core.debugger import Tracer Tracer()() but this will act more like a debugger and you can check values and run python code. -- Dhruv Baldawa (http://www.dhruvb.com) On Mon, Jan 28, 2013 at 8:50 PM, kracekumar ramaraju < kracethekingmaker at gmail.com> wrote: > Can you elaborate what are steps tried so far ? > Once I wrote pylive python online interpreter using PyPy Sandbox. > https://github.com/kracekumar/pylive > > Logic is to run python interpreter with extra security for each user > online. > > On Mon, Jan 28, 2013 at 7:53 PM, JAGANADH G <jaganadhg at gmail.com> wrote: > > > On Mon, Jan 28, 2013 at 7:51 PM, Pradeep Banavara <pradeepbs at gmail.com > > >wrote: > > > > > Do you want a python shell in a browser ?? > > > > > > > > > > > Which ever feasible . The whole idea is to control and monitor the > > execution via a desktop shell or web shell > > -- > > ********************************** > > JAGANADH G > > http://jaganadhg.in > > *ILUGCBE* > > http://ilugcbe.org.in > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > * > Thanks & Regards > > "Talk is cheap, show me the code" -- Linus Torvalds > kracekumar > www.kracekumar.com > * > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From abdulmuneer at gmail.com Tue Jan 29 05:54:05 2013 From: abdulmuneer at gmail.com (Abdul Muneer) Date: Tue, 29 Jan 2013 10:24:05 +0530 Subject: [BangPypers] python: HTTP connections through a proxy server requiring authentication In-Reply-To: <CANR2JHgA65tRswqoCKjSvw4kipgiTz94v3Fmfz=K5Cit0v=g4g@mail.gmail.com> References: <CANR2JHgA65tRswqoCKjSvw4kipgiTz94v3Fmfz=K5Cit0v=g4g@mail.gmail.com> Message-ID: <CAMJTfg=C6KxeOJJV_0V-M-aKuBVHNQoQ5cu1eRFmYzQ0=5_KmA@mail.gmail.com> Hi, I haven't looked at your problem in depth but thought 'requests' package might be helpful. 'requests' saves you from fiddling with the cumbersome urllib and urllib2. It has a method to connect through proxies requiring authentication. The documentation is here: http://docs.python-requests.org/en/latest/user/advanced/#proxies. Snippet code below: import requests proxies = { "http": "http://user:pass at 10.10.1.10:3128", "https": "http://user:pass at 10.10.1.10:1080",} requests.get("http://example.org", proxies=proxies) Regards, Abdul Muneer @abdulmuneer Regards, Abdul Muneer -- Follow me on Twitter: @abdulmuneer <http://twitter.com/#%21/abdulmuneer> On Mon, Jan 28, 2013 at 1:18 PM, Saju M <sajuptpm at gmail.com> wrote: > Hi, > > I followed http://dabase.com/blog/Minimal_squid3_proxy_configuration/ to > setup proxy server. > I tested proxy server with firefox with IP:127.0.0.1/192.168.1.6 and > Port:3128 and it working (asking for proxy username and password). > > But, i could not make http connection through proxy server requiring > authentication using following python code.. > > *########## Python code ########## * > import urllib2, urllib > > proxy = urllib2.ProxyHandler({'http': 'http://saju:saju at 192.168.1.6:3128 > '}) > auth = urllib2.HTTPBasicAuthHandler() > opener = urllib2.build_opener(proxy, auth, urllib2.HTTPHandler) > urllib2.install_opener(opener) > conn = urllib2.urlopen('http://python.org') > return_str = conn.read() > print "========return_str======", return_str > > > *==== ERROR ==== * > > (tg2env)saju at saju-desktop:~$ python py_proxy.py > Traceback (most recent call last): > File "py_proxy.py", line 9, in <module> > conn = urllib2.urlopen('http://python.org') > File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen > return _opener.open(url, data, timeout) > File "/usr/lib/python2.7/urllib2.py", line 406, in open > response = meth(req, response) > File "/usr/lib/python2.7/urllib2.py", line 519, in http_response > 'http', request, response, code, msg, hdrs) > File "/usr/lib/python2.7/urllib2.py", line 444, in error > return self._call_chain(*args) > File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain > result = func(*args) > File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default > raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) > urllib2.HTTPError: HTTP Error 407: Proxy Authentication Required > > > > *########## Proxy Server Settings ########## * > > sudo vim /etc/squid3/squid.conf > ------------------------------ > > http_access allow localhost > auth_param digest program /usr/lib/squid3/digest_pw_auth -c > /etc/squid3/passwords > auth_param digest realm proxy > acl authenticated proxy_auth REQUIRED > http_access allow authenticated > http_access deny all > http_port 3128 > > Setting up user > -------------- > htdigest -c /etc/squid3/passwords proxy saju > > > *======================* > > (tg2env)saju at saju-desktop:~$ sudo cat /etc/squid3/squid.conf | grep ^[^#] > acl manager proto cache_object > acl localhost src 127.0.0.1/32 ::1 > acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1 > acl SSL_ports port 443 > acl Safe_ports port 80 # http > acl Safe_ports port 21 # ftp > acl Safe_ports port 443 # https > acl Safe_ports port 70 # gopher > acl Safe_ports port 210 # wais > acl Safe_ports port 1025-65535 # unregistered ports > acl Safe_ports port 280 # http-mgmt > acl Safe_ports port 488 # gss-http > acl Safe_ports port 591 # filemaker > acl Safe_ports port 777 # multiling http > acl CONNECT method CONNECT > http_access allow manager localhost > http_access deny manager > http_access deny !Safe_ports > http_access deny CONNECT !SSL_ports > http_access allow localhost > auth_param digest program /usr/lib/squid3/digest_pw_auth -c > /etc/squid3/passwords > auth_param digest realm proxy > acl authenticated proxy_auth REQUIRED > http_access allow authenticated > http_access deny all > http_port 3128 > coredump_dir /var/spool/squid3 > refresh_pattern ^ftp: 1440 20% 10080 > refresh_pattern ^gopher: 1440 0% 1440 > refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 > refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880 > refresh_pattern . 0 20% 4320 > (tg2env)saju at saju-desktop:~$ > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From sajuptpm at gmail.com Tue Jan 29 07:49:44 2013 From: sajuptpm at gmail.com (Saju M) Date: Tue, 29 Jan 2013 12:19:44 +0530 Subject: [BangPypers] python: HTTP connections through a proxy server requiring authentication In-Reply-To: <CAMJTfg=C6KxeOJJV_0V-M-aKuBVHNQoQ5cu1eRFmYzQ0=5_KmA@mail.gmail.com> References: <CANR2JHgA65tRswqoCKjSvw4kipgiTz94v3Fmfz=K5Cit0v=g4g@mail.gmail.com> <CAMJTfg=C6KxeOJJV_0V-M-aKuBVHNQoQ5cu1eRFmYzQ0=5_KmA@mail.gmail.com> Message-ID: <CANR2JHi9FJvohDVCc-uRpbU2qgmrd2CTHekp=eWLPuZszNJQng@mail.gmail.com> Hi , Thanks abdul, I solved that issue. I reconfigured squid3 with ncsa_auth, now its working same python code. Earlier I used digest_pw_auth. Actually I am trying to fix an issue related to python boto API. Please check this post https://groups.google.com/forum/#!topic/boto-users/1qk6d7v2HpQ Regards Saju Madhavan +91 09535134654 On Tue, Jan 29, 2013 at 10:24 AM, Abdul Muneer <abdulmuneer at gmail.com>wrote: > Hi, > I haven't looked at your problem in depth but thought 'requests' package > might be helpful. 'requests' saves you from fiddling with the cumbersome > urllib and urllib2. > It has a method to connect through proxies requiring authentication. The > documentation is here: > http://docs.python-requests.org/en/latest/user/advanced/#proxies. > > Snippet code below: > > import requests > proxies = { > "http": "http://user:pass at 10.10.1.10:3128", > "https": "http://user:pass at 10.10.1.10:1080",} > requests.get("http://example.org", proxies=proxies) > > > Regards, > Abdul Muneer > @abdulmuneer > > Regards, > Abdul Muneer > > -- > Follow me on Twitter: @abdulmuneer <http://twitter.com/#%21/abdulmuneer> > > > On Mon, Jan 28, 2013 at 1:18 PM, Saju M <sajuptpm at gmail.com> wrote: > > > Hi, > > > > I followed http://dabase.com/blog/Minimal_squid3_proxy_configuration/ to > > setup proxy server. > > I tested proxy server with firefox with IP:127.0.0.1/192.168.1.6 and > > Port:3128 and it working (asking for proxy username and password). > > > > But, i could not make http connection through proxy server requiring > > authentication using following python code.. > > > > *########## Python code ########## * > > import urllib2, urllib > > > > proxy = urllib2.ProxyHandler({'http': 'http://saju:saju at 192.168.1.6:3128 > > '}) > > auth = urllib2.HTTPBasicAuthHandler() > > opener = urllib2.build_opener(proxy, auth, urllib2.HTTPHandler) > > urllib2.install_opener(opener) > > conn = urllib2.urlopen('http://python.org') > > return_str = conn.read() > > print "========return_str======", return_str > > > > > > *==== ERROR ==== * > > > > (tg2env)saju at saju-desktop:~$ python py_proxy.py > > Traceback (most recent call last): > > File "py_proxy.py", line 9, in <module> > > conn = urllib2.urlopen('http://python.org') > > File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen > > return _opener.open(url, data, timeout) > > File "/usr/lib/python2.7/urllib2.py", line 406, in open > > response = meth(req, response) > > File "/usr/lib/python2.7/urllib2.py", line 519, in http_response > > 'http', request, response, code, msg, hdrs) > > File "/usr/lib/python2.7/urllib2.py", line 444, in error > > return self._call_chain(*args) > > File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain > > result = func(*args) > > File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default > > raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) > > urllib2.HTTPError: HTTP Error 407: Proxy Authentication Required > > > > > > > > *########## Proxy Server Settings ########## * > > > > sudo vim /etc/squid3/squid.conf > > ------------------------------ > > > > http_access allow localhost > > auth_param digest program /usr/lib/squid3/digest_pw_auth -c > > /etc/squid3/passwords > > auth_param digest realm proxy > > acl authenticated proxy_auth REQUIRED > > http_access allow authenticated > > http_access deny all > > http_port 3128 > > > > Setting up user > > -------------- > > htdigest -c /etc/squid3/passwords proxy saju > > > > > > *======================* > > > > (tg2env)saju at saju-desktop:~$ sudo cat /etc/squid3/squid.conf | grep > ^[^#] > > acl manager proto cache_object > > acl localhost src 127.0.0.1/32 ::1 > > acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1 > > acl SSL_ports port 443 > > acl Safe_ports port 80 # http > > acl Safe_ports port 21 # ftp > > acl Safe_ports port 443 # https > > acl Safe_ports port 70 # gopher > > acl Safe_ports port 210 # wais > > acl Safe_ports port 1025-65535 # unregistered ports > > acl Safe_ports port 280 # http-mgmt > > acl Safe_ports port 488 # gss-http > > acl Safe_ports port 591 # filemaker > > acl Safe_ports port 777 # multiling http > > acl CONNECT method CONNECT > > http_access allow manager localhost > > http_access deny manager > > http_access deny !Safe_ports > > http_access deny CONNECT !SSL_ports > > http_access allow localhost > > auth_param digest program /usr/lib/squid3/digest_pw_auth -c > > /etc/squid3/passwords > > auth_param digest realm proxy > > acl authenticated proxy_auth REQUIRED > > http_access allow authenticated > > http_access deny all > > http_port 3128 > > coredump_dir /var/spool/squid3 > > refresh_pattern ^ftp: 1440 20% 10080 > > refresh_pattern ^gopher: 1440 0% 1440 > > refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 > > refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880 > > refresh_pattern . 0 20% 4320 > > (tg2env)saju at saju-desktop:~$ > > _______________________________________________ > > 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 vinayakh at gmail.com Tue Jan 29 10:07:54 2013 From: vinayakh at gmail.com (Vinayak Hegde) Date: Tue, 29 Jan 2013 14:37:54 +0530 Subject: [BangPypers] Interactive shell for python application In-Reply-To: <CAM4qvdFyuJ9wX=Vy=bP0g_ESScuXq1+PgsdvPW6BrjDf980TTg@mail.gmail.com> References: <CAM4qvdHPQnMLu6TbXesatDcOc8HNh0MGDayY2wLZD_PgBxS2XQ@mail.gmail.com> <CAP-hWS2cemkJ66m422xW-RvB_DH0wCDYQ4TAdfJ7tcZ43CnTiA@mail.gmail.com> <CAM4qvdFyuJ9wX=Vy=bP0g_ESScuXq1+PgsdvPW6BrjDf980TTg@mail.gmail.com> Message-ID: <CAKe6YvPJcYKRN2cK6cJVP3QtU-5kw0nfPHRWXkx5EQQ7mbJRxg@mail.gmail.com> On Mon, Jan 28, 2013 at 7:53 PM, JAGANADH G <jaganadhg at gmail.com> wrote: > On Mon, Jan 28, 2013 at 7:51 PM, Pradeep Banavara <pradeepbs at gmail.com>wrote: > >> Do you want a python shell in a browser ?? In addition iPython which someone suggested, it may also make sense to look at bpython (http://bpython-interpreter.org/) Another option is DreamPie - (http://www.dreampie.org/) -- Vinayak From shashidhar85 at gmail.com Wed Jan 30 10:20:57 2013 From: shashidhar85 at gmail.com (Shashidhar Paragonda) Date: Wed, 30 Jan 2013 14:50:57 +0530 Subject: [BangPypers] [ OpenGL ] [ Python ] [ Library ] ? Message-ID: <CAL2NvRzEae6O7XtGSUM=Hmc9Qm_vRne8uVhFQyUBmhpUV+Ht6g@mail.gmail.com> Dear Python hackers, >>> I am new to OpenGL world and staring to work on some 3D graphics project. >>> My request is which is best / good python OpenGL library to start working ( with documnetation ) ? >>> Thanks in advance for you help / suggestions / guidelines -- ----------------------------------- Regards, Shashidhar N.Paragonda shashidhar85 at gmail.com +919449073835 From thavamuni at gmail.com Wed Jan 30 14:10:16 2013 From: thavamuni at gmail.com (Thava Alagu) Date: Wed, 30 Jan 2013 18:40:16 +0530 Subject: [BangPypers] OpenGL Python Library Message-ID: <CAEQL+9dZ6Lhf_2yhp822Cr6409LpxKM7bkU7SP++HTLpD_Gm2w@mail.gmail.com> Hi Shashidhar, The PyOpenGL looks promising: http://pyopengl.sourceforge.net/ >From their website: PyOpenGL is the most common cross platform Python binding to OpenGL and related APIs. The binding is created using the standard ctypes library. PyOpenGL 3.0.2 includes support for: OpenGL v1.1 through 4.3, GLU, GLUT v3.7, FreeGLUT, GLE 3 and hundreds of OpenGL extensions PyOpenGL is interoperable with a large number of external GUI libraries for Python including (but not limited to): wxPython, PyGame, PyQt and PySide PyGTK, Tkinter (if you have installed the Togl widget for Tk) Disclaimer: I have not used this library, but it does look promising. Regards, -thava On Wed, Jan 30, 2013 at 4:30 PM, <bangpypers-request at python.org> 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. [ OpenGL ] [ Python ] [ Library ] ? (Shashidhar Paragonda) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 30 Jan 2013 14:50:57 +0530 > From: Shashidhar Paragonda <shashidhar85 at gmail.com> > To: Bangalore Python Users Group - India <bangpypers at python.org> > Subject: [BangPypers] [ OpenGL ] [ Python ] [ Library ] ? > Message-ID: > <CAL2NvRzEae6O7XtGSUM=Hmc9Qm_vRne8uVhFQyUBmhpUV+Ht6g at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Dear Python hackers, > > >>> I am new to OpenGL world and staring to work on some 3D graphics > project. > >>> My request is which is best / good python OpenGL library to > start working ( with documnetation ) ? > >>> Thanks in advance for you help / suggestions / guidelines > > -- > ----------------------------------- > Regards, > > Shashidhar N.Paragonda > shashidhar85 at gmail.com > +919449073835 > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > > ------------------------------ > > End of BangPypers Digest, Vol 65, Issue 28 > ****************************************** From shashidhar85 at gmail.com Thu Jan 31 09:41:09 2013 From: shashidhar85 at gmail.com (Shashidhar Paragonda) Date: Thu, 31 Jan 2013 14:11:09 +0530 Subject: [BangPypers] OpenGL Python Library In-Reply-To: <CAEQL+9dZ6Lhf_2yhp822Cr6409LpxKM7bkU7SP++HTLpD_Gm2w@mail.gmail.com> References: <CAEQL+9dZ6Lhf_2yhp822Cr6409LpxKM7bkU7SP++HTLpD_Gm2w@mail.gmail.com> Message-ID: <CAL2NvRxP+8kunAAOOeqK4wpuRme4x8H+1=JvxugJUZSayb-nXA@mail.gmail.com> Hi Thava Alagu, >>> Thanks for you reply, now I am exploring the stuffs you mentioned. On Wed, Jan 30, 2013 at 6:40 PM, Thava Alagu <thavamuni at gmail.com> wrote: > Hi Shashidhar, > > The PyOpenGL looks promising: http://pyopengl.sourceforge.net/ > > From their website: > PyOpenGL is the most common cross platform Python binding to OpenGL > and related APIs. The binding is created using the standard ctypes > library. > > PyOpenGL 3.0.2 includes support for: > OpenGL v1.1 through 4.3, GLU, GLUT v3.7, FreeGLUT, GLE 3 and hundreds > of OpenGL extensions > > PyOpenGL is interoperable with a large number of external GUI > libraries for Python including (but not limited to): > > wxPython, PyGame, PyQt and PySide PyGTK, Tkinter (if you have > installed the Togl widget for Tk) > > Disclaimer: I have not used this library, but it does look promising. > > Regards, > -thava > > On Wed, Jan 30, 2013 at 4:30 PM, <bangpypers-request at python.org> 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. [ OpenGL ] [ Python ] [ Library ] ? (Shashidhar Paragonda) > > > > > > ---------------------------------------------------------------------- > > > > Message: 1 > > Date: Wed, 30 Jan 2013 14:50:57 +0530 > > From: Shashidhar Paragonda <shashidhar85 at gmail.com> > > To: Bangalore Python Users Group - India <bangpypers at python.org> > > Subject: [BangPypers] [ OpenGL ] [ Python ] [ Library ] ? > > Message-ID: > > <CAL2NvRzEae6O7XtGSUM= > Hmc9Qm_vRne8uVhFQyUBmhpUV+Ht6g at mail.gmail.com> > > Content-Type: text/plain; charset=ISO-8859-1 > > > > Dear Python hackers, > > > > >>> I am new to OpenGL world and staring to work on some 3D > graphics > > project. > > >>> My request is which is best / good python OpenGL library to > > start working ( with documnetation ) ? > > >>> Thanks in advance for you help / suggestions / guidelines > > > > -- > > ----------------------------------- > > Regards, > > > > Shashidhar N.Paragonda > > shashidhar85 at gmail.com > > +919449073835 > > > > > > ------------------------------ > > > > Subject: Digest Footer > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > ------------------------------ > > > > End of BangPypers Digest, Vol 65, Issue 28 > > ****************************************** > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ----------------------------------- Regards, Shashidhar N.Paragonda shashidhar85 at gmail.com +919449073835 From jtoomim at jtoomim.org Thu Jan 31 10:19:57 2013 From: jtoomim at jtoomim.org (Jonathan Toomim) Date: Thu, 31 Jan 2013 01:19:57 -0800 Subject: [BangPypers] [ OpenGL ] [ Python ] [ Library ] ? In-Reply-To: <CAL2NvRzEae6O7XtGSUM=Hmc9Qm_vRne8uVhFQyUBmhpUV+Ht6g@mail.gmail.com> References: <CAL2NvRzEae6O7XtGSUM=Hmc9Qm_vRne8uVhFQyUBmhpUV+Ht6g@mail.gmail.com> Message-ID: <510A373D.4050200@jtoomim.org> Take a look at pyglet. It's an AV library built on top of OpenGL with a ton of additional features; it also makes all of OpenGL available in the pyglet.gl module using a ctypes interface. http://www.pyglet.org/doc/programming_guide/the_opengl_interface.html It might not be the best package for you (pyopengl may be better), but it's definitely worth a look. Jonathan On 1/30/2013 1:20 AM, Shashidhar Paragonda wrote: > Dear Python hackers, > > >>> I am new to OpenGL world and staring to work on some 3D graphics > project. > >>> My request is which is best / good python OpenGL library to > start working ( with documnetation ) ? > >>> Thanks in advance for you help / suggestions / guidelines >