From abpillai at gmail.com Fri Jun 1 08:02:31 2012 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 1 Jun 2012 11:32:31 +0530 Subject: [BangPypers] converting python to assembly.. In-Reply-To: References: Message-ID: On Thu, May 31, 2012 at 11:40 AM, Vishal wrote: > Hello, > > Does anybody know of any effort that can covert a relatively static version > of python code into assembly for use with microcontrollers ? > Just wondering what is the need for this ? If you are coding in Python in the first place do you really want to go down all the way to assembly code output ? In that case I think you should start off with C rather than Python. > > CorePy did it but not for microcontrollers > P14p (or PyMite) actually creates a python interpreter in C and puts it > inside the microcontroller, and its GPL. > PyPy as you know is not yet for microcontrollers and only creates assembly > when the JIT kicks in. > Cython/Pyrex would convert python with type specifications into extension > module...but it will not fit into microcontrollers. > > I am looking for something more "simple", i.e. instead of writing C and > compiling it to machine instructions...write python (restricted set..may > be) and convert it to machine instructions. > > Any pointers will be of big help.. > I see some projects like pyastra (circa 2006) and pyasm on Google but nothing which is maintained and has kept up. > > Thanks and best regards, > Vishal Sapre > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, --Anand From vsapre80 at gmail.com Fri Jun 1 08:59:38 2012 From: vsapre80 at gmail.com (Vishal) Date: Fri, 1 Jun 2012 12:29:38 +0530 Subject: [BangPypers] converting python to assembly.. In-Reply-To: References: Message-ID: On Fri, Jun 1, 2012 at 11:32 AM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > On Thu, May 31, 2012 at 11:40 AM, Vishal wrote: > > > Hello, > > > > Does anybody know of any effort that can covert a relatively static > version > > of python code into assembly for use with microcontrollers ? > > > > Just wondering what is the need for this ? If you are coding in Python > in the first place do you really want to go down all the way to assembly > code output ? In that case I think you should start off with C rather > than Python. > > >> Very good question. Here's the situation. In one of our products, we create the control app in Python, but then need to control physical outputs/inputs of analog and digital nature. We need to use a microcontroller board for this. The microcontroller still needs lot of software, an RTOS, and number of tasks (serial, ADC, PWM etc etc). All this software needs to be written in the preferred dialect of C and using the preferred compiler of the vendor (MPLAB for Microchip's PIC controllers etc). It would be great if we could simply write in Python and then have this converted to the preferred microcontroller's assembly either as direct binary files or creating a C file with the assembly code inside asm() calls and then passing this C file to the MPLAB compiler. Life can go on even without this hack...but this hack would make life easier and more productive. > > > > > CorePy did it but not for microcontrollers > > P14p (or PyMite) actually creates a python interpreter in C and puts it > > inside the microcontroller, and its GPL. > > PyPy as you know is not yet for microcontrollers and only creates > assembly > > when the JIT kicks in. > > Cython/Pyrex would convert python with type specifications into extension > > module...but it will not fit into microcontrollers. > > > > I am looking for something more "simple", i.e. instead of writing C and > > compiling it to machine instructions...write python (restricted set..may > > be) and convert it to machine instructions. > > > > Any pointers will be of big help.. > > > > I see some projects like pyastra (circa 2006) and pyasm on Google but > nothing > which is maintained and has kept up. > > >> PyAstra is not maintained and in its current form only caters to the lower end of the PIC spectrum (PIC12, PIC16 i.e. 8 bit ones). What we would be using is PIC24 or dsPIC33 (16 bit processors with "lots"of RAM...30K RAM and 256K ROM :D) . > > > > > > Thanks and best regards, > > Vishal Sapre > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Regards, > > --Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Thanks and best regards, Vishal Sapre --- "Life is 10% how you make it, and 90% how you take it" "????? ?????, ????? ????? (Benefit for most people, Happiness for most people.)" --- Please DONT print this email, unless you really need to. Save Energy & Paper. Save the Earth. From karra.etc at gmail.com Fri Jun 1 09:31:55 2012 From: karra.etc at gmail.com (Sriram Karra) Date: Fri, 1 Jun 2012 13:01:55 +0530 Subject: [BangPypers] converting python to assembly.. In-Reply-To: References: Message-ID: On Thu, May 31, 2012 at 11:40 AM, Vishal wrote: > I am looking for something more "simple", i.e. instead of writing C and > compiling it to machine instructions...write python (restricted set..may > be) and convert it to machine instructions. > Have no personal experience with this sort of thing... but have you considered http://code.google.com/p/2c-python/ ? If yes, why does it not work for you? -Karra From anandology at gmail.com Fri Jun 1 09:37:59 2012 From: anandology at gmail.com (Anand Chitipothu) Date: Fri, 1 Jun 2012 13:07:59 +0530 Subject: [BangPypers] converting python to assembly.. In-Reply-To: References: Message-ID: On Fri, Jun 1, 2012 at 12:29 PM, Vishal wrote: > On Fri, Jun 1, 2012 at 11:32 AM, Anand Balachandran Pillai < > abpillai at gmail.com> wrote: > > > On Thu, May 31, 2012 at 11:40 AM, Vishal wrote: > > > > > Hello, > > > > > > Does anybody know of any effort that can covert a relatively static > > version > > > of python code into assembly for use with microcontrollers ? > > > > > > > Just wondering what is the need for this ? If you are coding in Python > > in the first place do you really want to go down all the way to assembly > > code output ? In that case I think you should start off with C rather > > than Python. > > > > >> Very good question. Here's the situation. In one of our products, we > create the control app in Python, but then need to control physical > outputs/inputs of analog and digital nature. We need to use a > microcontroller board for this. The microcontroller still needs lot of > software, an RTOS, and number of tasks (serial, ADC, PWM etc etc). All this > software needs to be written in the preferred dialect of C and using the > preferred compiler of the vendor (MPLAB for Microchip's PIC controllers > etc). It would be great if we could simply write in Python and then have > this converted to the preferred microcontroller's assembly either as direct > binary files or creating a C file with the assembly code inside asm() calls > and then passing this C file to the MPLAB compiler. > > Life can go on even without this hack...but this hack would make life > easier and more productive. > Python is too heavyweight to port it to a microcontroller. May be you should give a try to something like lua. http://www.lua.org/ Lua is a lightweight, embeddable programming language. I don't any experience with it, but I've seem people using it in as embedded scripting language. For example lighttpd has a hook to run lua scripts. Anand From karra.etc at gmail.com Fri Jun 1 09:38:38 2012 From: karra.etc at gmail.com (Sriram Karra) Date: Fri, 1 Jun 2012 13:08:38 +0530 Subject: [BangPypers] ASynK - Flexible PIM synchronization across Google Contacts, Outlook, Emacs BBDB Message-ID: I am the author of a Python program called ASynK which I initially wrote to do bi-directional sync between Outlook contacts and Google. I have since rewritten and expanded it to do sync with Emacs BBDB as well. Currently it's the only program in existence for any sort of sync for BBDB. It's my first decent sized Python program, so wanted to share with the community for your comments, suggestions, etc. If you find a use for it that's great too. Have a look at the project page at: http://karra-asynk.appspot.com/ on where to get it, documentation etc. Cheers, -Karra From anandology at gmail.com Fri Jun 1 09:39:42 2012 From: anandology at gmail.com (Anand Chitipothu) Date: Fri, 1 Jun 2012 13:09:42 +0530 Subject: [BangPypers] converting python to assembly.. In-Reply-To: References: Message-ID: On Fri, Jun 1, 2012 at 1:07 PM, Anand Chitipothu wrote: > > > On Fri, Jun 1, 2012 at 12:29 PM, Vishal wrote: > >> On Fri, Jun 1, 2012 at 11:32 AM, Anand Balachandran Pillai < >> abpillai at gmail.com> wrote: >> >> > On Thu, May 31, 2012 at 11:40 AM, Vishal wrote: >> > >> > > Hello, >> > > >> > > Does anybody know of any effort that can covert a relatively static >> > version >> > > of python code into assembly for use with microcontrollers ? >> > > >> > >> > Just wondering what is the need for this ? If you are coding in Python >> > in the first place do you really want to go down all the way to assembly >> > code output ? In that case I think you should start off with C rather >> > than Python. >> > >> > >> Very good question. Here's the situation. In one of our products, we >> create the control app in Python, but then need to control physical >> outputs/inputs of analog and digital nature. We need to use a >> microcontroller board for this. The microcontroller still needs lot of >> software, an RTOS, and number of tasks (serial, ADC, PWM etc etc). All >> this >> software needs to be written in the preferred dialect of C and using the >> preferred compiler of the vendor (MPLAB for Microchip's PIC controllers >> etc). It would be great if we could simply write in Python and then have >> this converted to the preferred microcontroller's assembly either as >> direct >> binary files or creating a C file with the assembly code inside asm() >> calls >> and then passing this C file to the MPLAB compiler. >> >> Life can go on even without this hack...but this hack would make life >> easier and more productive. >> > > Python is too heavyweight to port it to a microcontroller. May be you > should give a try to something like lua. > > http://www.lua.org/ > > Lua is a lightweight, embeddable programming language. > > I don't any experience with it, but I've seem people using it in as > embedded scripting language. For example lighttpd has a hook to run lua > scripts. > or scheme, if you are adventurous. Anand From cjgiridhar at gmail.com Fri Jun 1 10:03:53 2012 From: cjgiridhar at gmail.com (chetan giridhar) Date: Fri, 1 Jun 2012 13:33:53 +0530 Subject: [BangPypers] SmartGit Message-ID: Hi, Has anybody tried using *SmartGit*? Please let me know your experience good/bad with it. -- Regards, Chetan http://technobeans.com From abpillai at gmail.com Fri Jun 1 10:42:57 2012 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 1 Jun 2012 14:12:57 +0530 Subject: [BangPypers] ASynK - Flexible PIM synchronization across Google Contacts, Outlook, Emacs BBDB In-Reply-To: References: Message-ID: On Fri, Jun 1, 2012 at 1:08 PM, Sriram Karra wrote: > I am the author of a Python program called ASynK which I initially wrote to > do bi-directional sync between Outlook contacts and Google. I have since > rewritten and expanded it to do sync with Emacs BBDB as well. Currently > it's the only program in existence for any sort of sync for BBDB. > > It's my first decent sized Python program, so wanted to share with the > community for your comments, suggestions, etc. If you find a use for it > that's great too. > > Have a look at the project page at: http://karra-asynk.appspot.com/ on > where to get it, documentation etc. > The download and other links don't seem to work for me. Btw, if you are sharing code please publish it in github or google code. > > Cheers, > -Karra > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, --Anand From mandarvaze at gmail.com Fri Jun 1 11:02:59 2012 From: mandarvaze at gmail.com (=?UTF-8?B?TWFuZGFyIFZhemUgLyDgpK7gpILgpKbgpL7gpLAg4KS14KSd4KWH?=) Date: Fri, 1 Jun 2012 14:32:59 +0530 Subject: [BangPypers] ASynK - Flexible PIM synchronization across Google Contacts, Outlook, Emacs BBDB In-Reply-To: References: Message-ID: > > > The download and other links don't seem to work for me. Btw, > if you are sharing code please publish it in github or google code. > github link given on the Download page -Mandar From karra.etc at gmail.com Fri Jun 1 11:13:46 2012 From: karra.etc at gmail.com (Sriram Karra) Date: Fri, 1 Jun 2012 14:43:46 +0530 Subject: [BangPypers] ASynK - Flexible PIM synchronization across Google Contacts, Outlook, Emacs BBDB In-Reply-To: References: Message-ID: On Fri, Jun 1, 2012 at 2:12 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > > The download and other links don't seem to work for me. Btw, > if you are sharing code please publish it in github or google code. > https://github.com/skarra/ASynK As Mandar mentioned, all links on the project page to download and source code are to github. From noufal at nibrahim.net.in Fri Jun 1 11:03:04 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Fri, 01 Jun 2012 14:33:04 +0530 Subject: [BangPypers] ASynK - Flexible PIM synchronization across Google Contacts, Outlook, Emacs BBDB In-Reply-To: (Sriram Karra's message of "Fri, 1 Jun 2012 13:08:38 +0530") References: Message-ID: <877gvrh0af.fsf@sanitarium.localdomain> Sriram Karra writes: > I am the author of a Python program called ASynK which I initially wrote to > do bi-directional sync between Outlook contacts and Google. I have since > rewritten and expanded it to do sync with Emacs BBDB as well. Currently > it's the only program in existence for any sort of sync for BBDB. Thanks. I use BBDB myself but not any of the other services you've mentioned. I'll take a look. [...] -- Cordially, Noufal http://nibrahim.net.in From karra.etc at gmail.com Fri Jun 1 11:44:30 2012 From: karra.etc at gmail.com (Sriram Karra) Date: Fri, 1 Jun 2012 15:14:30 +0530 Subject: [BangPypers] ASynK - Flexible PIM synchronization across Google Contacts, Outlook, Emacs BBDB In-Reply-To: References: Message-ID: On Fri, Jun 1, 2012 at 2:43 PM, Sriram Karra wrote: > On Fri, Jun 1, 2012 at 2:12 PM, Anand Balachandran Pillai < > abpillai at gmail.com> wrote: > >> >> The download and other links don't seem to work for me. Btw, >> if you are sharing code please publish it in github or google code. >> > > https://github.com/skarra/ASynK > > As Mandar mentioned, all links on the project page to download and source > code are to github. > I realized just now that the appspot page does not render well in IE. I have pushed a few changes that should make the links work now on that page, but still the overall look and feel is sub-optimal. I guess I will add a note "Best NOT viewed in any version of IE" from now on :) From lawgon at gmail.com Fri Jun 1 11:47:13 2012 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Fri, 01 Jun 2012 15:17:13 +0530 Subject: [BangPypers] ASynK - Flexible PIM synchronization across Google Contacts, Outlook, Emacs BBDB In-Reply-To: References: Message-ID: <1338544033.5186.149.camel@xlquest.web> On Fri, 2012-06-01 at 14:12 +0530, Anand Balachandran Pillai wrote: > > Have a look at the project page at: > http://karra-asynk.appspot.com/ on > > where to get it, documentation etc. > > > > The download and other links don't seem to work for me. Btw, > if you are sharing code please publish it in github or google code. or bitbucket -- regards Kenneth Gonsalves From vsapre80 at gmail.com Fri Jun 1 11:55:34 2012 From: vsapre80 at gmail.com (Vishal) Date: Fri, 1 Jun 2012 15:25:34 +0530 Subject: [BangPypers] converting python to assembly.. In-Reply-To: References: Message-ID: On Fri, Jun 1, 2012 at 1:01 PM, Sriram Karra wrote: > On Thu, May 31, 2012 at 11:40 AM, Vishal wrote: > > > > I am looking for something more "simple", i.e. instead of writing C and > > compiling it to machine instructions...write python (restricted set..may > > be) and convert it to machine instructions. > > > > Have no personal experience with this sort of thing... but have you > considered http://code.google.com/p/2c-python/ ? If yes, why does it not > work for you? > > -Karra 2c-python seems to convert python to its own C equivalent which is then compiled and can be loaded dynamically into the interpreter. Cython / Swig etc can do this already. This is very different from what I want. Nonetheless, thanks for pointing out...one more feather in the python-to-c hat for the general case. -- Thanks and best regards, Vishal Sapre From karra.etc at gmail.com Fri Jun 1 12:06:00 2012 From: karra.etc at gmail.com (Sriram Karra) Date: Fri, 1 Jun 2012 15:36:00 +0530 Subject: [BangPypers] converting python to assembly.. In-Reply-To: References: Message-ID: On Fri, Jun 1, 2012 at 3:25 PM, Vishal wrote: > 2c-python seems to convert python to its own C equivalent which is then > compiled and can be loaded dynamically into the interpreter. Cython / Swig > etc can do this already. What interpreter are you referring to? >From your original email: "I am looking for something more "simple", i.e. instead of writing C and compiling it to machine instructions...write python (restricted set..may be) and convert it to machine instructions." It would seem a) write your code in python as code.py b) run it through 2c-python to get c_code.c c) compile it with your vendor MPLAB compiler to get c_code.o Isn't that what you wanted? -Karra From punchagan at gmail.com Fri Jun 1 14:37:29 2012 From: punchagan at gmail.com (Puneeth Chaganti) Date: Fri, 01 Jun 2012 18:07:29 +0530 Subject: [BangPypers] [X-POST][JOBS] Software developer position at Enthought India Message-ID: <4FC8B789.30400@gmail.com> Hi, Enthought, a global scientific computing company, builds scientific applications in a wide variety of domains ranging from geophysics and fluid dynamics to financial analysis. Headquartered in Austin, Texas, Enthought has offices in New York (USA); Cambridge (UK); Brussels (Belgium) and recently an office in Mumbai. Enthought supports many open source scientific libraries like NumPy (http://numpy.scipy.org), SciPy (http://www.scipy.org) and the Enthought Tool Suite (http://code.enthought.com). A leader in the Python community, most of our work at Enthought employs the Python programming language. As we build a new product which involves scientific computing, data analysis and visualization, we enter an exciting phase for the company. The Enthought India office has a small team of full-time software developers and a skilled graphic designer, all of whom have full involvement in designing and building this product. We want to expand our team and seek experienced Python programmers. Ideal skill-set desired, but with flexibility for the right candidate: Strong Python skills (or at least strong programming skills in another modern programming language); experience with Qt/PyQt; scientific computing background; experience designing large scale applications; exposure and contribution to Open Source projects. For more details on careers with us see here: http://enthought.com/company/careers.php. You may also find this useful: http://enthought.com/company/developing-at-enthought.php. We look forward to hearing from you. Please send us your resumes at india-jobs at enthought.com. Regards, Puneeth Chaganti Enthought, India From vsapre80 at gmail.com Fri Jun 1 15:14:36 2012 From: vsapre80 at gmail.com (Vishal) Date: Fri, 1 Jun 2012 18:44:36 +0530 Subject: [BangPypers] converting python to assembly.. In-Reply-To: References: Message-ID: Sending again. Since the files did not go through... :( On Fri, Jun 1, 2012 at 4:41 PM, Vishal wrote: > >> Hello Sriram, > > I think there is some confusion as to what the general-case Python to C > compiler's create. So I made a test case and have attached the input and > output files. hopefully this will clear some doubts about why 2c-py is not > what the original question indicated. > > Please find some files attached: > > a) "test.py" a very simple 1KB python file with a main function > b) "_c_test.c" a 35KB file that is generated by 2c-py > > (b) gets generated by the following cmd line: > > > 2c-py -c test.py > > As you can see the 'c' file generated references python's internals. > What I am looking for is something that would either create a functional > equivalent in C or the ASM for the target microcontroller. > > Best regards, > Vishal Sapre > > p.s: just in case the files dont go through, here's some part of the files; > > *test.py:* > def main(x): > if x > 5: > print "x is greater than 5" > else: > print "x is not greater than 5" > > main() > > *_c_test.c : * > > /* Generated by 2C Python */ > > #include "Python.h" > #include "frameobject.h" > #include "funcobject.h" > #include "code.h" > #include "opcode.h" > #include "dictobject.h" > #include "listobject.h" > #include "abstract.h" > > #include "structmember.h" > #include "object.h" > > PyTypeObject Py2CCode_Type; > > PyTypeObject Py2CFunction_Type; > > #define Py2CCode_Check(op) (Py_TYPE(op) == &Py2CCode_Type) > #define Py2CFunction_Check(op) (Py_TYPE(op) == &Py2CFunction_Type) > .... > .... > .... > -- Thanks and best regards, Vishal Sapre From karra.etc at gmail.com Fri Jun 1 20:40:02 2012 From: karra.etc at gmail.com (Sriram Karra) Date: Sat, 2 Jun 2012 00:10:02 +0530 Subject: [BangPypers] converting python to assembly.. In-Reply-To: References: Message-ID: On Fri, Jun 1, 2012 at 6:44 PM, Vishal wrote: > > > > a) "test.py" a very simple 1KB python file with a main function > > b) "_c_test.c" a 35KB file that is generated by 2c-py > > > > (b) gets generated by the following cmd line: > > > > > 2c-py -c test.py > > > > As you can see the 'c' file generated references python's internals. > > What I am looking for is something that would either create a functional > > equivalent in C or the ASM for the target microcontroller. > OK; I understand. I wonder what the real point of 2c.py is. You start with a python source file, and end up creating a dll/so that can be imported as a python module in another python program? Obfuscation, I suppose. But a misleading name for a project, if there ever was one... Hm. Anyway, apologies for wasting your time. -Karra From karra.etc at gmail.com Fri Jun 1 21:40:49 2012 From: karra.etc at gmail.com (Sriram Karra) Date: Sat, 2 Jun 2012 01:10:49 +0530 Subject: [BangPypers] Expertise in Windows Sockets + Python Message-ID: Does anyone here know about Windows Sockets enough to fix the problem described at the following link? Would be much appreciated. https://groups.google.com/d/msg/python-tornado/t2hSgydDYOg/czCH7KUQdhYJ Regards, -Karra From vsapre80 at gmail.com Sat Jun 2 21:18:08 2012 From: vsapre80 at gmail.com (Vishal) Date: Sun, 3 Jun 2012 00:48:08 +0530 Subject: [BangPypers] converting python to assembly.. In-Reply-To: References: Message-ID: On Sat, Jun 2, 2012 at 12:10 AM, Sriram Karra wrote: > On Fri, Jun 1, 2012 at 6:44 PM, Vishal wrote: > > > > > > > a) "test.py" a very simple 1KB python file with a main function > > > b) "_c_test.c" a 35KB file that is generated by 2c-py > > > > > > (b) gets generated by the following cmd line: > > > > > > > 2c-py -c test.py > > > > > > As you can see the 'c' file generated references python's internals. > > > What I am looking for is something that would either create a > functional > > > equivalent in C or the ASM for the target microcontroller. > > > > OK; I understand. I wonder what the real point of 2c.py is. You start with > a python source file, and end up creating a dll/so that can be imported as > a python module in another python program? Obfuscation, I suppose. But a > misleading name for a project, if there ever was one... Hm. Anyway, > apologies for wasting your time. > > -Karra > _______________________________________________ > > Hi, I think the main point of doing a Python-to-C conversion followed by creation of a dll which is re-imported into Python is performance. Obfuscation is a by-product of this process. But if code-protection is more paramount...it can be the considered the other way round too :)). Anyways, if you have not looked, (and I hope you have) at Cython ( www.cython.org), I would urge you to take a look. Cython shines at doing all of this and more in the most convenient way. Time well spent is time enjoyed, and I enjoyed learning about 2c-py. Thanks :)) Best regards, Vishal Sapre --- Please DONT print this email, unless you really need to. Save Energy & Paper. Save the Earth. From noufal at nibrahim.net.in Sat Jun 2 21:18:38 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Sun, 03 Jun 2012 00:48:38 +0530 Subject: [BangPypers] converting python to assembly.. In-Reply-To: (Vishal's message of "Sun, 3 Jun 2012 00:48:08 +0530") References: Message-ID: <87vcj9zfn5.fsf@sanitarium.localdomain> Vishal writes: [...] > I think the main point of doing a Python-to-C conversion followed by > creation of a dll which is re-imported into Python is performance. > Obfuscation is a by-product of this process. But if code-protection is more > paramount...it can be the considered the other way round too :)). > Anyways, if you have not looked, (and I hope you have) at Cython ( > www.cython.org), I would urge you to take a look. Cython shines at doing > all of this and more in the most convenient way. Dunno. I tried Cython around a year or two ago and preferred writing proper C to writing Cython. It was too confusing. [...] -- Cordially, Noufal http://nibrahim.net.in From deepakgarg.iitg at gmail.com Mon Jun 4 10:53:34 2012 From: deepakgarg.iitg at gmail.com (Deepak Garg) Date: Mon, 4 Jun 2012 14:23:34 +0530 Subject: [BangPypers] June Meetup Message-ID: Hi All, I have scheduled the June meetup on June 16, the third Saturday in this month. The meetup time is 3:30 pm. a. Please suggest a location for this meetup. b. Please let know if you would like to present something. c. Please let me know if there are any other important events on the given day and if the date/time needs to be changed. I am hoping to discuss and demo "Writing Apps in Google App Engine". Cheers, Deepak Garg, Data Center and Cloud Div. Citrix R&D, India Skype-id: deepakgarg.iit From phil.nabble at hanjinet.org Mon Jun 4 13:16:56 2012 From: phil.nabble at hanjinet.org (Phil for Banpypers) Date: Mon, 04 Jun 2012 16:46:56 +0530 Subject: [BangPypers] Importing modules automatically Message-ID: <0e7052ce1e4c60ad6ed04bd430ac5e54@mail.hanji.info> Hi, I'm wondering if someone has a nice solution for the following problem. I'd like to be able to import all the modules in a directory, such that developers can simply add a *.py file somewhere (or a directory), and let the framework import them automatically for doing something with them. For example, let's take the following directory structure: framework core.py / modules / __init__.py / module1.py / module2.py / module3 / __init__.py So we can end up with something like that pseudo code in the modules/__init__.py: __all__ = [module_path for dir_path in os.listdir(os.path.abspath(__file__)) if module_path.endswith('.py') or (os.path.isdir(module_path) and os.path.exists(os.path.join(module_path, "__init__.py"))) ] The framework is then be able to use: import modules for module_path in modules.__all__: the_module = __import__(module_path, fromlist=['']) ## Do additional checks and process ... [As a side note, i never really understood the fromlist argument, maybe it's worth another thread?] This solution works but has at least 2 flaws: - won't work with eggs or zip files out of the box - is not pythonic (not sure it'll even pass python 3) Any suggestion? Philippe From metafusion at gmail.com Tue Jun 5 12:01:23 2012 From: metafusion at gmail.com (Shuhaib Shariff) Date: Tue, 5 Jun 2012 15:31:23 +0530 Subject: [BangPypers] [JOBS] Python Developers with 0-1 Yr Experience Message-ID: DoubleSpring seeks 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. FRESHERS with exceptional coding skills will be considered 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. Location: Bangalore How to apply Send your resume to: careers at doublespring.com From abpillai at gmail.com Tue Jun 5 12:49:12 2012 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 5 Jun 2012 16:19:12 +0530 Subject: [BangPypers] June Meetup In-Reply-To: References: Message-ID: On Mon, Jun 4, 2012 at 2:23 PM, Deepak Garg wrote: > Hi All, > > I have scheduled the June meetup on June 16, the third Saturday in this > month. The meetup time is 3:30 pm. > > a. Please suggest a location for this meetup. > b. Please let know if you would like to present something. > c. Please let me know if there are any other important events on the given > day and if the date/time needs to be changed. > > I am hoping to discuss and demo "Writing Apps in Google App Engine". > Would be good if someone can share their experiences if any on writing Python apps on Amazon EC2. > > > > > Cheers, > > Deepak Garg, > Data Center and Cloud Div. > Citrix R&D, India > Skype-id: deepakgarg.iit > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, --Anand From sajuptpm at gmail.com Tue Jun 5 13:09:51 2012 From: sajuptpm at gmail.com (Saju M) Date: Tue, 5 Jun 2012 16:39:51 +0530 Subject: [BangPypers] June Meetup In-Reply-To: References: Message-ID: Hi, Yes, i have, using boto API. On Tue, Jun 5, 2012 at 4:19 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > On Mon, Jun 4, 2012 at 2:23 PM, Deepak Garg >wrote: > > > Hi All, > > > > I have scheduled the June meetup on June 16, the third Saturday in this > > month. The meetup time is 3:30 pm. > > > > a. Please suggest a location for this meetup. > > b. Please let know if you would like to present something. > > c. Please let me know if there are any other important events on the > given > > day and if the date/time needs to be changed. > > > > I am hoping to discuss and demo "Writing Apps in Google App Engine". > > > > Would be good if someone can share their experiences if any on > writing Python apps on Amazon EC2. > > > > > > > > > > > > Cheers, > > > > Deepak Garg, > > Data Center and Cloud Div. > > Citrix R&D, India > > Skype-id: deepakgarg.iit > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Regards, > > --Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards Saju Madhavan +91 09535134654 From deepakgarg.iitg at gmail.com Tue Jun 5 13:11:32 2012 From: deepakgarg.iitg at gmail.com (Deepak Garg) Date: Tue, 5 Jun 2012 16:41:32 +0530 Subject: [BangPypers] June Meetup In-Reply-To: References: Message-ID: > > Would be good if someone can share their experiences if any on > writing Python apps on Amazon EC2. > > I have not written any apps but I have written a no. of recipes using the boto library for maintaining and managing the vms, storage and other stuff. Cheers, Deepak > > > > > > > > > > > Cheers, > > > > Deepak Garg, > > Data Center and Cloud Div. > > Citrix R&D, India > > Skype-id: deepakgarg.iit > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Regards, > > --Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Deepak Garg, Data Center and Cloud Div. Citrix R&D, India Skype-id: deepakgarg.iit From director at guruprevails.com Tue Jun 5 18:19:03 2012 From: director at guruprevails.com (Dattatreya Sharma) Date: Tue, 5 Jun 2012 21:49:03 +0530 Subject: [BangPypers] June Meetup In-Reply-To: References: Message-ID: Hi, May you tell me your plans as to what you would cover in appEngine and how much you plan to cover in appEngine datastore? If you are covering datastore what are the things you have planned for? -Regards On Tue, Jun 5, 2012 at 4:19 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > On Mon, Jun 4, 2012 at 2:23 PM, Deepak Garg >wrote: > > > Hi All, > > > > I have scheduled the June meetup on June 16, the third Saturday in this > > month. The meetup time is 3:30 pm. > > > > a. Please suggest a location for this meetup. > > b. Please let know if you would like to present something. > > c. Please let me know if there are any other important events on the > given > > day and if the date/time needs to be changed. > > > > I am hoping to discuss and demo "Writing Apps in Google App Engine". > > > > Would be good if someone can share their experiences if any on > writing Python apps on Amazon EC2. > > > > > > > > > > > > Cheers, > > > > Deepak Garg, > > Data Center and Cloud Div. > > Citrix R&D, India > > Skype-id: deepakgarg.iit > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Regards, > > --Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From arvindkhadri at gmail.com Wed Jun 6 04:28:51 2012 From: arvindkhadri at gmail.com (Arvind K) Date: Wed, 6 Jun 2012 07:58:51 +0530 Subject: [BangPypers] June Meetup In-Reply-To: References: Message-ID: On Jun 4, 2012 2:23 PM, "Deepak Garg" wrote: > > Hi All, > > I have scheduled the June meetup on June 16, the third Saturday in this > month. The meetup time is 3:30 pm. > > a. Please suggest a location for this meetup. I would like to suggest the office of Servelots as a meeting place this time.. Its in K.R. Road.. > b. Please let know if you would like to present something. > c. Please let me know if there are any other important events on the given > day and if the date/time needs to be changed. > > I am hoping to discuss and demo "Writing Apps in Google App Engine". > > > > > Cheers, > > Deepak Garg, > Data Center and Cloud Div. > Citrix R&D, India > Skype-id: deepakgarg.iit > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers From noufal at nibrahim.net.in Wed Jun 6 05:58:45 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Wed, 06 Jun 2012 09:28:45 +0530 Subject: [BangPypers] June Meetup In-Reply-To: (Arvind K.'s message of "Wed, 6 Jun 2012 07:58:51 +0530") References: Message-ID: <87pq9d9jm2.fsf@sanitarium.localdomain> I'm not sure where K.R. Road is but I'd +1 this. A new venue is always interesting. Arvind K writes: > On Jun 4, 2012 2:23 PM, "Deepak Garg" wrote: >> >> Hi All, >> >> I have scheduled the June meetup on June 16, the third Saturday in this >> month. The meetup time is 3:30 pm. >> >> a. Please suggest a location for this meetup. > > I would like to suggest the office of Servelots as a meeting place this > time.. Its in K.R. Road.. > >> b. Please let know if you would like to present something. >> c. Please let me know if there are any other important events on the given >> day and if the date/time needs to be changed. >> >> I am hoping to discuss and demo "Writing Apps in Google App Engine". >> >> >> >> >> Cheers, >> >> Deepak Garg, >> Data Center and Cloud Div. >> Citrix R&D, India >> Skype-id: deepakgarg.iit >> _______________________________________________ >> 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 > -- Cordially, Noufal http://nibrahim.net.in From deepakgarg.iitg at gmail.com Wed Jun 6 06:16:25 2012 From: deepakgarg.iitg at gmail.com (Deepak Garg) Date: Wed, 6 Jun 2012 09:46:25 +0530 Subject: [BangPypers] June Meetup In-Reply-To: <87pq9d9jm2.fsf@sanitarium.localdomain> References: <87pq9d9jm2.fsf@sanitarium.localdomain> Message-ID: Thanks, Arvind. Can you please give me the complete address or update it on the meetup page yourself ? http://www.meetup.com/BangPypers/events/67636612/ Also add a phone no. along with so that if anyone has issues reaching the office, he/she has someone to call. Thanks, Deepak On Wed, Jun 6, 2012 at 9:28 AM, Noufal Ibrahim wrote: > > I'm not sure where K.R. Road is but I'd +1 this. A new venue is always > interesting. > > Arvind K writes: > > > On Jun 4, 2012 2:23 PM, "Deepak Garg" wrote: > >> > >> Hi All, > >> > >> I have scheduled the June meetup on June 16, the third Saturday in this > >> month. The meetup time is 3:30 pm. > >> > >> a. Please suggest a location for this meetup. > > > > I would like to suggest the office of Servelots as a meeting place this > > time.. Its in K.R. Road.. > > > >> b. Please let know if you would like to present something. > >> c. Please let me know if there are any other important events on the > given > >> day and if the date/time needs to be changed. > >> > >> I am hoping to discuss and demo "Writing Apps in Google App Engine". > >> > >> > >> > >> > >> Cheers, > >> > >> Deepak Garg, > >> Data Center and Cloud Div. > >> Citrix R&D, India > >> Skype-id: deepakgarg.iit > >> _______________________________________________ > >> 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 > > > > -- > Cordially, > Noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Deepak Garg, Data Center and Cloud Div. Citrix R&D, India Skype-id: deepakgarg.iit From arvindkhadri at gmail.com Wed Jun 6 07:17:22 2012 From: arvindkhadri at gmail.com (Arvind K) Date: Wed, 6 Jun 2012 10:47:22 +0530 Subject: [BangPypers] June Meetup In-Reply-To: References: <87pq9d9jm2.fsf@sanitarium.localdomain> Message-ID: On 6 June 2012 09:46, Deepak Garg wrote: > Thanks, Arvind. > > Can you please give me the complete address or update it on the meetup page > yourself ? > http://www.meetup.com/BangPypers/events/67636612/ > > Also add a phone no. along with so that if anyone has issues reaching the > office, he/she has someone to call. > > > Thanks, > Deepak > > > > Sure, the phone numbers are 9886151888 - Arvind 9844036961 - Dinesh The landmarks are "Road parallel to Yediyur lake", "Nearby Tata silk farm". @Noufal it is near to South end circle. From newtech2learn at yahoo.com Wed Jun 6 17:45:46 2012 From: newtech2learn at yahoo.com (Prem Sri) Date: Wed, 6 Jun 2012 08:45:46 -0700 (PDT) Subject: [BangPypers] Run selenium script in python on remote systems Message-ID: <1338997546.91207.YahooMailNeo@web122601.mail.ne1.yahoo.com> Hi, I am unable to find proper steps to run the selenium script in python on remote systems. Could you please provide the steps. Thanks, Prem From baiju.m.mail at gmail.com Wed Jun 6 17:54:12 2012 From: baiju.m.mail at gmail.com (Baiju M) Date: Wed, 6 Jun 2012 21:24:12 +0530 Subject: [BangPypers] Run selenium script in python on remote systems In-Reply-To: <1338997546.91207.YahooMailNeo@web122601.mail.ne1.yahoo.com> References: <1338997546.91207.YahooMailNeo@web122601.mail.ne1.yahoo.com> Message-ID: On Wed, Jun 6, 2012 at 9:15 PM, Prem Sri wrote: > Hi, > > I am unable to find proper steps to run the selenium script in python on remote systems. Could you please provide the steps. Just few pointers: 1. You can use Jenkins with slaves and run selenium scripts remotely. http://readthedocs.org/docs/selenium-python/en/latest/ http://jenkins-ci.org/ or 2. Use Grid2 http://code.google.com/p/selenium/wiki/Grid2 Jenkins has a plugin for this: https://wiki.jenkins-ci.org/display/JENKINS/Selenium+Plugin -- Baiju M From abpillai at gmail.com Thu Jun 7 08:07:28 2012 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 7 Jun 2012 11:37:28 +0530 Subject: [BangPypers] Fwd: [Inpycon] Volunteers Required: PyCon India website In-Reply-To: References: Message-ID: Sorry for X-posting but this was a rare case. We need the help of folks to get the PyCon 2012 website up and going ASAP. Kindly see Anand C's post below and please volunteer. Thanks ! --Anand ---------- Forwarded message ---------- From: Anand Chitipothu Date: Thu, Jun 7, 2012 at 11:31 AM Subject: [Inpycon] Volunteers Required: PyCon India website To: Mailing list for the PyCon India conference Hi, We need couple of people to take charge of PyCon India website. Tasks include tweaking the website software and manage the content. We are using HasGeek's software for the website and managing talks. Code is on github. https://github.com/ipss/pyconindia2012 Please reply to this thread if you are interested. Anadn _______________________________________________ Inpycon mailing list Inpycon at python.org http://mail.python.org/mailman/listinfo/inpycon -- Regards, --Anand From abpillai at gmail.com Thu Jun 7 08:09:41 2012 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 7 Jun 2012 11:39:41 +0530 Subject: [BangPypers] Run selenium script in python on remote systems In-Reply-To: References: <1338997546.91207.YahooMailNeo@web122601.mail.ne1.yahoo.com> Message-ID: On Wed, Jun 6, 2012 at 9:24 PM, Baiju M wrote: > On Wed, Jun 6, 2012 at 9:15 PM, Prem Sri wrote: > > Hi, > > > > I am unable to find proper steps to run the selenium script in python on > remote systems. Could you please provide the steps. > > Just few pointers: > > 1. You can use Jenkins with slaves and run selenium scripts remotely. > http://readthedocs.org/docs/selenium-python/en/latest/ > http://jenkins-ci.org/ > A note - Jenkins is used at Yahoo! for test automation and seems to scale pretty well. > > or > > 2. Use Grid2 > http://code.google.com/p/selenium/wiki/Grid2 > Jenkins has a plugin for this: > https://wiki.jenkins-ci.org/display/JENKINS/Selenium+Plugin > > -- > Baiju M > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, --Anand From anandology at gmail.com Thu Jun 7 08:28:54 2012 From: anandology at gmail.com (Anand Chitipothu) Date: Thu, 7 Jun 2012 11:58:54 +0530 Subject: [BangPypers] [X-POST] PyCon India 2012 - Volunteers Required Message-ID: Hi, Sorry for cross posting. PyCon India 2012 is happening in Bangalore. We need volunteers for various activities. Not all activities involve your presence in Bangalore. So even people for other cities can sign up. As of now we are looking for volunteers for: * Managing the website * Managing doattend registrations * Publicity in mailing lists and twitter/facebook If you want to make your mark on this year's PyCon, this is the time to sign up. Please reply to this thread and join the inpycon mailing list[1] if you are interested. [1]: http://mail.python.org/mailman/listinfo/inpycon Anand From crangaranga at gmail.com Thu Jun 7 08:50:52 2012 From: crangaranga at gmail.com (ranga rao) Date: Thu, 7 Jun 2012 12:20:52 +0530 Subject: [BangPypers] how to move parent window to child window Message-ID: Hi, I am unable to switch parent window to child window. I am using Python and Selenium Webdriver. i tried this but not working driver.switch_to_window("window_name") -- Thanks and Regards *Ranga* Mob: 91-9986686264 From sweetnivi88 at gmail.com Thu Jun 7 11:17:24 2012 From: sweetnivi88 at gmail.com (nivedita datta) Date: Thu, 7 Jun 2012 14:47:24 +0530 Subject: [BangPypers] [X-POST] PyCon India 2012 - Volunteers Required In-Reply-To: References: Message-ID: Hi, I am interested in volunteering for publicity mailing and twitter/facebook. Regards, Nivedita On Thu, Jun 7, 2012 at 11:58 AM, Anand Chitipothu wrote: > Hi, > > Sorry for cross posting. > > PyCon India 2012 is happening in Bangalore. We need volunteers for > various activities. > > Not all activities involve your presence in Bangalore. So even people > for other cities can sign up. > > As of now we are looking for volunteers for: > > * Managing the website > * Managing doattend registrations > * Publicity in mailing lists and twitter/facebook > > If you want to make your mark on this year's PyCon, this is the time to > sign up. > > Please reply to this thread and join the inpycon mailing list[1] if > you are interested. > > [1]: http://mail.python.org/mailman/listinfo/inpycon > > Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From hnsri49 at gmail.com Thu Jun 7 11:28:55 2012 From: hnsri49 at gmail.com (srinivas hn) Date: Thu, 7 Jun 2012 14:58:55 +0530 Subject: [BangPypers] BangPypers Digest, Vol 58, Issue 9 In-Reply-To: References: Message-ID: Hi I am also ready to be volunteer for pycon 2012. CHEERS Srinivas HN 9986229891 On Thu, Jun 7, 2012 at 2:47 PM, wrote: > Send BangPypers mailing list submissions to > bangpypers at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/bangpypers > or, via email, send a message with subject or body 'help' to > bangpypers-request at python.org > > You can reach the person managing the list at > bangpypers-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of BangPypers digest..." > > > Today's Topics: > > 1. Run selenium script in python on remote systems (Prem Sri) > 2. Re: Run selenium script in python on remote systems (Baiju M) > 3. Fwd: [Inpycon] Volunteers Required: PyCon India website > (Anand Balachandran Pillai) > 4. Re: Run selenium script in python on remote systems > (Anand Balachandran Pillai) > 5. [X-POST] PyCon India 2012 - Volunteers Required (Anand Chitipothu) > 6. how to move parent window to child window (ranga rao) > 7. Re: [X-POST] PyCon India 2012 - Volunteers Required > (nivedita datta) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 6 Jun 2012 08:45:46 -0700 (PDT) > From: Prem Sri > To: "bangpypers at python.org" > Subject: [BangPypers] Run selenium script in python on remote systems > Message-ID: > <1338997546.91207.YahooMailNeo at web122601.mail.ne1.yahoo.com> > Content-Type: text/plain; charset=us-ascii > > Hi, > > I am unable to find proper steps to run the selenium script in python on > remote systems. Could you please provide the steps. > > Thanks, > Prem > > > ------------------------------ > > Message: 2 > Date: Wed, 6 Jun 2012 21:24:12 +0530 > From: Baiju M > To: Prem Sri , Bangalore Python Users > Group > - India > Subject: Re: [BangPypers] Run selenium script in python on remote > systems > Message-ID: > > > Content-Type: text/plain; charset=ISO-8859-1 > > On Wed, Jun 6, 2012 at 9:15 PM, Prem Sri wrote: > > Hi, > > > > I am unable to find proper steps to run the selenium script in python on > remote systems. Could you please provide the steps. > > Just few pointers: > > 1. You can use Jenkins with slaves and run selenium scripts remotely. > http://readthedocs.org/docs/selenium-python/en/latest/ > http://jenkins-ci.org/ > > or > > 2. Use Grid2 > http://code.google.com/p/selenium/wiki/Grid2 > Jenkins has a plugin for this: > https://wiki.jenkins-ci.org/display/JENKINS/Selenium+Plugin > > -- > Baiju M > > > ------------------------------ > > Message: 3 > Date: Thu, 7 Jun 2012 11:37:28 +0530 > From: Anand Balachandran Pillai > To: Bangalore Python Users Group - India > Cc: Mailing list for the PyCon India conference > Subject: [BangPypers] Fwd: [Inpycon] Volunteers Required: PyCon India > website > Message-ID: > > > Content-Type: text/plain; charset=UTF-8 > > Sorry for X-posting but this was a rare case. > > We need the help of folks to get the PyCon 2012 website up and going > ASAP. Kindly see Anand C's post below and please volunteer. > > Thanks ! > > --Anand > > ---------- Forwarded message ---------- > From: Anand Chitipothu > Date: Thu, Jun 7, 2012 at 11:31 AM > Subject: [Inpycon] Volunteers Required: PyCon India website > To: Mailing list for the PyCon India conference > > > Hi, > > We need couple of people to take charge of PyCon India website. > > Tasks include tweaking the website software and manage the content. > > We are using HasGeek's software for the website and managing talks. > Code is on github. > > https://github.com/ipss/pyconindia2012 > > Please reply to this thread if you are interested. > > Anadn > _______________________________________________ > Inpycon mailing list > Inpycon at python.org > http://mail.python.org/mailman/listinfo/inpycon > > > > -- > Regards, > > --Anand > > > ------------------------------ > > Message: 4 > Date: Thu, 7 Jun 2012 11:39:41 +0530 > From: Anand Balachandran Pillai > To: Bangalore Python Users Group - India > Cc: Prem Sri > Subject: Re: [BangPypers] Run selenium script in python on remote > systems > Message-ID: > > > Content-Type: text/plain; charset=UTF-8 > > On Wed, Jun 6, 2012 at 9:24 PM, Baiju M wrote: > > > On Wed, Jun 6, 2012 at 9:15 PM, Prem Sri > wrote: > > > Hi, > > > > > > I am unable to find proper steps to run the selenium script in python > on > > remote systems. Could you please provide the steps. > > > > Just few pointers: > > > > 1. You can use Jenkins with slaves and run selenium scripts remotely. > > http://readthedocs.org/docs/selenium-python/en/latest/ > > http://jenkins-ci.org/ > > > > A note - Jenkins is used at Yahoo! for test automation and seems to > scale pretty well. > > > > > > or > > > > 2. Use Grid2 > > http://code.google.com/p/selenium/wiki/Grid2 > > Jenkins has a plugin for this: > > https://wiki.jenkins-ci.org/display/JENKINS/Selenium+Plugin > > > > -- > > Baiju M > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Regards, > > --Anand > > > ------------------------------ > > Message: 5 > Date: Thu, 7 Jun 2012 11:58:54 +0530 > From: Anand Chitipothu > To: Mailing list for the PyCon India conference , > Bangalore Python Users Group - India , > chennaipy at googlegroups.com, pythonpune at googlegroups.com > Subject: [BangPypers] [X-POST] PyCon India 2012 - Volunteers Required > Message-ID: > > > Content-Type: text/plain; charset=ISO-8859-1 > > Hi, > > Sorry for cross posting. > > PyCon India 2012 is happening in Bangalore. We need volunteers for > various activities. > > Not all activities involve your presence in Bangalore. So even people > for other cities can sign up. > > As of now we are looking for volunteers for: > > * Managing the website > * Managing doattend registrations > * Publicity in mailing lists and twitter/facebook > > If you want to make your mark on this year's PyCon, this is the time to > sign up. > > Please reply to this thread and join the inpycon mailing list[1] if > you are interested. > > [1]: http://mail.python.org/mailman/listinfo/inpycon > > Anand > > > ------------------------------ > > Message: 6 > Date: Thu, 7 Jun 2012 12:20:52 +0530 > From: ranga rao > To: BangPypers at python.org > Subject: [BangPypers] how to move parent window to child window > Message-ID: > > > Content-Type: text/plain; charset=ISO-8859-1 > > Hi, > > I am unable to switch parent window to child window. I am using Python and > Selenium Webdriver. > i tried this but not working > > driver.switch_to_window("window_name") > > -- > Thanks and Regards > *Ranga* > Mob: 91-9986686264 > > > ------------------------------ > > Message: 7 > Date: Thu, 7 Jun 2012 14:47:24 +0530 > From: nivedita datta > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] [X-POST] PyCon India 2012 - Volunteers > Required > Message-ID: > > > Content-Type: text/plain; charset=ISO-8859-1 > > Hi, > > I am interested in volunteering for publicity mailing and twitter/facebook. > > Regards, > Nivedita > > On Thu, Jun 7, 2012 at 11:58 AM, Anand Chitipothu >wrote: > > > Hi, > > > > Sorry for cross posting. > > > > PyCon India 2012 is happening in Bangalore. We need volunteers for > > various activities. > > > > Not all activities involve your presence in Bangalore. So even people > > for other cities can sign up. > > > > As of now we are looking for volunteers for: > > > > * Managing the website > > * Managing doattend registrations > > * Publicity in mailing lists and twitter/facebook > > > > If you want to make your mark on this year's PyCon, this is the time to > > sign up. > > > > Please reply to this thread and join the inpycon mailing list[1] if > > you are interested. > > > > [1]: http://mail.python.org/mailman/listinfo/inpycon > > > > Anand > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > ------------------------------ > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > > End of BangPypers Digest, Vol 58, Issue 9 > ***************************************** > From rajalokan at gmail.com Thu Jun 7 11:32:36 2012 From: rajalokan at gmail.com (alok bhan) Date: Thu, 7 Jun 2012 15:02:36 +0530 Subject: [BangPypers] [X-POST] PyCon India 2012 - Volunteers Required Message-ID: Hi All, Add my name too. I'm from Bangalore and would love to work on this. Cheers, Alok 9886193878 ---------- Forwarded message ---------- From: Date: Thu, Jun 7, 2012 at 2:47 PM Subject: BangPypers Digest, Vol 58, Issue 9 To: bangpypers at python.org 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. Run selenium script in python on remote systems (Prem Sri) 2. Re: Run selenium script in python on remote systems (Baiju M) 3. Fwd: [Inpycon] Volunteers Required: PyCon India website (Anand Balachandran Pillai) 4. Re: Run selenium script in python on remote systems (Anand Balachandran Pillai) 5. [X-POST] PyCon India 2012 - Volunteers Required (Anand Chitipothu) 6. how to move parent window to child window (ranga rao) 7. Re: [X-POST] PyCon India 2012 - Volunteers Required (nivedita datta) ---------------------------------------------------------------------- Message: 1 Date: Wed, 6 Jun 2012 08:45:46 -0700 (PDT) From: Prem Sri To: "bangpypers at python.org" Subject: [BangPypers] Run selenium script in python on remote systems Message-ID: <1338997546.91207.YahooMailNeo at web122601.mail.ne1.yahoo.com> Content-Type: text/plain; charset=us-ascii Hi, I am unable to find proper steps to run the selenium script in python on remote systems. Could you please provide the steps. Thanks, Prem ------------------------------ Message: 2 Date: Wed, 6 Jun 2012 21:24:12 +0530 From: Baiju M To: Prem Sri , Bangalore Python Users Group - India Subject: Re: [BangPypers] Run selenium script in python on remote systems Message-ID: Content-Type: text/plain; charset=ISO-8859-1 On Wed, Jun 6, 2012 at 9:15 PM, Prem Sri wrote: > Hi, > > I am unable to find proper steps to run the selenium script in python on remote systems. Could you please provide the steps. Just few pointers: 1. You can use Jenkins with slaves and run selenium scripts remotely. http://readthedocs.org/docs/selenium-python/en/latest/ http://jenkins-ci.org/ or 2. Use Grid2 http://code.google.com/p/selenium/wiki/Grid2 Jenkins has a plugin for this: https://wiki.jenkins-ci.org/display/JENKINS/Selenium+Plugin -- Baiju M ------------------------------ Message: 3 Date: Thu, 7 Jun 2012 11:37:28 +0530 From: Anand Balachandran Pillai To: Bangalore Python Users Group - India Cc: Mailing list for the PyCon India conference Subject: [BangPypers] Fwd: [Inpycon] Volunteers Required: PyCon India website Message-ID: Content-Type: text/plain; charset=UTF-8 Sorry for X-posting but this was a rare case. We need the help of folks to get the PyCon 2012 website up and going ASAP. Kindly see Anand C's post below and please volunteer. Thanks ! --Anand ---------- Forwarded message ---------- From: Anand Chitipothu Date: Thu, Jun 7, 2012 at 11:31 AM Subject: [Inpycon] Volunteers Required: PyCon India website To: Mailing list for the PyCon India conference Hi, We need couple of people to take charge of PyCon India website. Tasks include tweaking the website software and manage the content. We are using HasGeek's software for the website and managing talks. Code is on github. https://github.com/ipss/pyconindia2012 Please reply to this thread if you are interested. Anadn _______________________________________________ Inpycon mailing list Inpycon at python.org http://mail.python.org/mailman/listinfo/inpycon -- Regards, --Anand ------------------------------ Message: 4 Date: Thu, 7 Jun 2012 11:39:41 +0530 From: Anand Balachandran Pillai To: Bangalore Python Users Group - India Cc: Prem Sri Subject: Re: [BangPypers] Run selenium script in python on remote systems Message-ID: Content-Type: text/plain; charset=UTF-8 On Wed, Jun 6, 2012 at 9:24 PM, Baiju M wrote: > On Wed, Jun 6, 2012 at 9:15 PM, Prem Sri wrote: > > Hi, > > > > I am unable to find proper steps to run the selenium script in python on > remote systems. Could you please provide the steps. > > Just few pointers: > > 1. You can use Jenkins with slaves and run selenium scripts remotely. > http://readthedocs.org/docs/selenium-python/en/latest/ > http://jenkins-ci.org/ > A note - Jenkins is used at Yahoo! for test automation and seems to scale pretty well. > > or > > 2. Use Grid2 > http://code.google.com/p/selenium/wiki/Grid2 > Jenkins has a plugin for this: > https://wiki.jenkins-ci.org/display/JENKINS/Selenium+Plugin > > -- > Baiju M > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, --Anand ------------------------------ Message: 5 Date: Thu, 7 Jun 2012 11:58:54 +0530 From: Anand Chitipothu To: Mailing list for the PyCon India conference , Bangalore Python Users Group - India , chennaipy at googlegroups.com, pythonpune at googlegroups.com Subject: [BangPypers] [X-POST] PyCon India 2012 - Volunteers Required Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Hi, Sorry for cross posting. PyCon India 2012 is happening in Bangalore. We need volunteers for various activities. Not all activities involve your presence in Bangalore. So even people for other cities can sign up. As of now we are looking for volunteers for: * Managing the website * Managing doattend registrations * Publicity in mailing lists and twitter/facebook If you want to make your mark on this year's PyCon, this is the time to sign up. Please reply to this thread and join the inpycon mailing list[1] if you are interested. [1]: http://mail.python.org/mailman/listinfo/inpycon Anand ------------------------------ Message: 6 Date: Thu, 7 Jun 2012 12:20:52 +0530 From: ranga rao To: BangPypers at python.org Subject: [BangPypers] how to move parent window to child window Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Hi, I am unable to switch parent window to child window. I am using Python and Selenium Webdriver. i tried this but not working driver.switch_to_window("window_name") -- Thanks and Regards *Ranga* Mob: 91-9986686264 ------------------------------ Message: 7 Date: Thu, 7 Jun 2012 14:47:24 +0530 From: nivedita datta To: Bangalore Python Users Group - India Subject: Re: [BangPypers] [X-POST] PyCon India 2012 - Volunteers Required Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Hi, I am interested in volunteering for publicity mailing and twitter/facebook. Regards, Nivedita On Thu, Jun 7, 2012 at 11:58 AM, Anand Chitipothu wrote: > Hi, > > Sorry for cross posting. > > PyCon India 2012 is happening in Bangalore. We need volunteers for > various activities. > > Not all activities involve your presence in Bangalore. So even people > for other cities can sign up. > > As of now we are looking for volunteers for: > > * Managing the website > * Managing doattend registrations > * Publicity in mailing lists and twitter/facebook > > If you want to make your mark on this year's PyCon, this is the time to > sign up. > > Please reply to this thread and join the inpycon mailing list[1] if > you are interested. > > [1]: http://mail.python.org/mailman/listinfo/inpycon > > Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > ------------------------------ _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers End of BangPypers Digest, Vol 58, Issue 9 ***************************************** From kala586 at gmail.com Thu Jun 7 11:37:17 2012 From: kala586 at gmail.com (kala Vinay) Date: Thu, 7 Jun 2012 15:07:17 +0530 Subject: [BangPypers] Two days course on Python Message-ID: Dear All, credativ India specialized in open source, conducting a two days course on Python Programming on 27th and 28th June 2012. Interested candidates can contact: training at credativ.in Regards, Vijayakala From abpillai at gmail.com Thu Jun 7 12:24:29 2012 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 7 Jun 2012 15:54:29 +0530 Subject: [BangPypers] BangPypers Digest, Vol 58, Issue 9 In-Reply-To: References: Message-ID: On Thu, Jun 7, 2012 at 2:58 PM, srinivas hn wrote: > Hi > > I am also ready to be volunteer for pycon 2012. > Thanks and welcome! Please make sure you don't reply to digest emails. It screws up the context for everyone. Even if you do, kindly delete the long tail of previous emails before you post. > > CHEERS > Srinivas HN > 9986229891 > > > -- Regards, --Anand From mandarvaze at gmail.com Thu Jun 7 14:52:36 2012 From: mandarvaze at gmail.com (=?UTF-8?B?TWFuZGFyIFZhemUgLyDgpK7gpILgpKbgpL7gpLAg4KS14KSd4KWH?=) Date: Thu, 7 Jun 2012 18:22:36 +0530 Subject: [BangPypers] BangPypers Digest, Vol 58, Issue 9 In-Reply-To: References: Message-ID: > Please make sure you don't reply to digest emails. It screws up > +1 > the context for everyone. Even if you do, kindly delete the long > tail of previous emails before you post. > .. and while you are removing the "long tail" - why not edit the subject line to more suitable one ? -Mandar From kracethekingmaker at gmail.com Thu Jun 7 15:27:56 2012 From: kracethekingmaker at gmail.com (kracethekingmaker) Date: Thu, 07 Jun 2012 18:57:56 +0530 Subject: [BangPypers] Fwd: [Inpycon] Volunteers Required: PyCon India website In-Reply-To: References: Message-ID: <4FD0AC5C.5030404@gmail.com> Well I can help . > Sorry for X-posting but this was a rare case. > > We need the help of folks to get the PyCon 2012 website up and going > ASAP. Kindly see Anand C's post below and please volunteer. > > Thanks ! > > --Anand > > ---------- Forwarded message ---------- > From: Anand Chitipothu > Date: Thu, Jun 7, 2012 at 11:31 AM > Subject: [Inpycon] Volunteers Required: PyCon India website > To: Mailing list for the PyCon India conference > > > Hi, > > We need couple of people to take charge of PyCon India website. > > Tasks include tweaking the website software and manage the content. > > We are using HasGeek's software for the website and managing talks. > Code is on github. > > https://github.com/ipss/pyconindia2012 > > Please reply to this thread if you are interested. > > Anadn > _______________________________________________ > Inpycon mailing list > Inpycon at python.org > http://mail.python.org/mailman/listinfo/inpycon > > > -- "Talk is cheap, show me the code" -- Linus Torvalds Regards Kracekumar.R www.kracekumar.com From anandology at gmail.com Thu Jun 7 15:36:54 2012 From: anandology at gmail.com (Anand Chitipothu) Date: Thu, 7 Jun 2012 19:06:54 +0530 Subject: [BangPypers] Fwd: [Inpycon] Volunteers Required: PyCon India website In-Reply-To: <4FD0AC5C.5030404@gmail.com> References: <4FD0AC5C.5030404@gmail.com> Message-ID: Thanks for showing interest to manage the website. Please signup for issues on github and start hacking. Anand On Thu, Jun 7, 2012 at 6:57 PM, kracethekingmaker wrote: > Well I can help . > >> Sorry for X-posting but this was a rare case. >> >> We need the help of folks to get the PyCon 2012 website up and going >> ASAP. Kindly see Anand C's post below and please volunteer. >> >> Thanks ! >> >> --Anand >> >> ---------- Forwarded message ---------- >> From: Anand Chitipothu >> Date: Thu, Jun 7, 2012 at 11:31 AM >> Subject: [Inpycon] Volunteers Required: PyCon India website >> To: Mailing list for the PyCon India conference >> >> >> Hi, >> >> We need couple of people to take charge of PyCon India website. >> >> Tasks include tweaking the website software and manage the content. >> >> We are using HasGeek's software for the website and managing talks. >> Code is on github. >> >> https://github.com/ipss/pyconindia2012 >> >> Please reply to this thread if you are interested. >> >> Anadn >> _______________________________________________ >> Inpycon mailing list >> Inpycon at python.org >> http://mail.python.org/mailman/listinfo/inpycon >> >> >> > > > -- > "Talk is cheap, show me the code" -- Linus Torvalds > Regards > Kracekumar.R > www.kracekumar.com > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers From newtech2learn at yahoo.com Fri Jun 8 07:04:23 2012 From: newtech2learn at yahoo.com (Prem Sri) Date: Thu, 7 Jun 2012 22:04:23 -0700 (PDT) Subject: [BangPypers] Fw: Run selenium script in python on remote systems In-Reply-To: References: <1338997546.91207.YahooMailNeo@web122601.mail.ne1.yahoo.com> <1339082706.34134.YahooMailNeo@web122605.mail.ne1.yahoo.com> Message-ID: <1339131863.80677.YahooMailNeo@web122602.mail.ne1.yahoo.com> Please provide your valuable inputs to resolve below mentioned issue. Baiju: Pls let me know the steps with jenkins to get some confidence on selenium+python. /Prem On Thu, Jun 7, 2012 at 8:55 PM, Prem Sri wrote: > Thanks for providing the info. I can able to run the script on local system > thru "Hub". Unable to run on remote system.Sorry for asking again as I just > started learning... > Two systems > System-1: XP, Firefox_ver: 12; python-2.7.3, jdk-1.6 and setup the > path.Installed jenkins [Unable to understand the usage]. > System-2: XP, Firefox_ver: 4; python-2.7.2, jdk-1.6 and setup the path. > Python-Selenium script: Taken the script and modified accordingly and PFA > for the same > [http://readthedocs.org/docs/selenium-python/en/latest/getting-started.html#using-selenium-with-remote-webdriver] > Both systems are in the same network and communicating properly. > > System-1: > Started the RC server as hub "java -jar > selenium-server-standalone-2.22.0.jar -role hub" > Started the node "java -jar selenium-server-standalone-2.22.0.jar -role node > -hub http://System-2IP:4445/grid/register -browser > browserName=firefox,version=4,firefox_binary="C:\Program Files\Mozilla > Firefox",maxInstances=1,platform=WINDOWS" > > System-2: > Nothing is running > > I want to run "Webdriver" in both scenarios as mentioned in ur mail > [pointers 1,2] > What should be the setup in System-1 and System-2? What changes required in > the script? > How to use json and jenkins to this scenario? > > Thanks, > Prem > > ________________________________ > From: Baiju M > To: Prem Sri ; Bangalore Python Users Group - India > > Sent: Wednesday, June 6, 2012 9:24 PM > Subject: Re: [BangPypers] Run selenium script in python on remote systems > > On Wed, Jun 6, 2012 at 9:15 PM, Prem Sri wrote: >> Hi, >> >> I am unable to find proper steps to run the selenium script in python on >> remote systems. Could you please provide the steps. > > Just few pointers: > > 1. You can use Jenkins with slaves and run selenium scripts remotely. > ? ? http://readthedocs.org/docs/selenium-python/en/latest/ > ? ? http://jenkins-ci.org/ > > or > > 2. Use Grid2 > ? http://code.google.com/p/selenium/wiki/Grid2 > ? Jenkins has a plugin for this: > ? https://wiki.jenkins-ci.org/display/JENKINS/Selenium+Plugin > > -- > Baiju M > > From vid at svaksha.com Fri Jun 8 13:02:16 2012 From: vid at svaksha.com (vid) Date: Fri, 8 Jun 2012 16:32:16 +0530 Subject: [BangPypers] Fw: Run selenium script in python on remote systems In-Reply-To: <1339131863.80677.YahooMailNeo@web122602.mail.ne1.yahoo.com> References: <1338997546.91207.YahooMailNeo@web122601.mail.ne1.yahoo.com> <1339082706.34134.YahooMailNeo@web122605.mail.ne1.yahoo.com> <1339131863.80677.YahooMailNeo@web122602.mail.ne1.yahoo.com> Message-ID: On Fri, Jun 8, 2012 at 10:34 AM, Prem Sri wrote: >> Two systems >> System-1: XP, Firefox_ver: 12; python-2.7.3, jdk-1.6 and setup the >> path.Installed jenkins [Unable to understand the usage]. >> System-2: XP, Firefox_ver: 4; python-2.7.2, jdk-1.6 and setup the path. >> Python-Selenium script: Taken the script and modified accordingly and PFA >> for the same >> [http://readthedocs.org/docs/selenium-python/en/latest/getting-started.html#using-selenium-with-remote-webdriver] >> Both systems are in the same network and communicating properly. >> >> System-1: >> Started the RC server as hub "java -jar >> selenium-server-standalone-2.22.0.jar -role hub" >> Started the node "java -jar selenium-server-standalone-2.22.0.jar -role node >> -hub http://System-2IP:4445/grid/register -browser >> browserName=firefox,version=4,firefox_binary="C:\Program Files\Mozilla >> Firefox",maxInstances=1,platform=WINDOWS" Its been some years since I've touched a Windows machine so I'll try to help with things that are not OS-dependent. 1. You said "taken the script and modified accordingly and PFA for the same", What is PFA? 2. Are you using a cross-cable to connect the client (system-2) to the server (system-1) as you have installed jenkins on system1 and python-selenium script on system2. What messages did you get when you started the server? Are you keeping the Selenium server running while trying to test it? Paste the output in pastebin.com and post the link here. >> System-2: >> Nothing is running In an earlier mail you mentioned "run the selenium script in python on remote systems" but the scenario you describe above has only 2 systems. Can you explain what you mean by "remote system" - a few remote servers / deploying CI on a server farm /or deploying on a remote VPS / something else? I'm not sure I understood your question. -- Regards, Vid ? http://svaksha.com ? From bhavya.mayur at gmail.com Fri Jun 8 18:03:14 2012 From: bhavya.mayur at gmail.com (Bhavya) Date: Fri, 8 Jun 2012 12:03:14 -0400 Subject: [BangPypers] Website change tracker Message-ID: Hello, I am newbie to Python coding. And, I had a question. I want to write a script which will check content changes in websites & send e-mail to a admin whenever there are changes. Ideally this script/program should be scalable for say about 1000 websites at a time.. How do I start ? I have previous programming experience. Python - my knowledge would be like python 101. Thank you, Bhavya From kracethekingmaker at gmail.com Fri Jun 8 18:09:20 2012 From: kracethekingmaker at gmail.com (kracethekingmaker) Date: Fri, 08 Jun 2012 21:39:20 +0530 Subject: [BangPypers] Website change tracker In-Reply-To: References: Message-ID: <4FD223B0.3030906@gmail.com> > Hello, > > I am newbie to Python coding. And, I had a question. I want to write a > script which will check content changes in websites& send e-mail to a > admin whenever there are changes. How many times in a day or how often will this check be performed ? You must look into how to use md5, diff utilities, for web scraping scrapy library is advised. > Ideally this script/program should be scalable for say about 1000 websites > at a time.. > > How do I start ? I have previous programming experience. Python - my > knowledge would be like python 101. > > Thank you, > Bhavya > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers -- "Talk is cheap, show me the code" -- Linus Torvalds Regards Kracekumar.R www.kracekumar.com From vid at svaksha.com Fri Jun 8 19:06:00 2012 From: vid at svaksha.com (vid) Date: Fri, 8 Jun 2012 17:06:00 +0000 Subject: [BangPypers] Website change tracker In-Reply-To: <4FD223B0.3030906@gmail.com> References: <4FD223B0.3030906@gmail.com> Message-ID: On Fri, Jun 8, 2012 at 4:09 PM, kracethekingmaker wrote: > >> Hello, >> >> I am newbie to Python coding. And, I had a question. I want to write a >> script which will check content changes in websites& ?send e-mail to a >> >> admin whenever there are changes. > > How many times in a day or how often will this check be performed ? > > You must look into how to use md5, diff utilities, for web scraping scrapy > library is advised. > >> Ideally this script/program should be scalable for say about 1000 websites >> at a time.. 1000 sites at a time? Wow, that's huge. Scraping that many sites is resource intensive, would need a nice big stable server that can handle the huge data dumps. Fwiw, Scrapy will only dump the data in the json files so check out a little about the database you want to use, the frontend to serve it, a queueing system to scale 1000 sites, etc... Also, some sites instantly ban scrapers. Watch out for that, and goodluck :) -- Regards, Vid ? http://svaksha.com ? From ramdaz at gmail.com Fri Jun 8 19:33:03 2012 From: ramdaz at gmail.com (Ramdas S) Date: Fri, 8 Jun 2012 23:03:03 +0530 Subject: [BangPypers] Kivi Message-ID: Is there anyone with some practical experience on Kivi, and any recommendation whether it can be used to build a simple survey app on Android platform w/photo capturing feature Thanks From bhavya.mayur at gmail.com Fri Jun 8 19:51:40 2012 From: bhavya.mayur at gmail.com (Bhavya) Date: Fri, 8 Jun 2012 13:51:40 -0400 Subject: [BangPypers] Website change tracker In-Reply-To: References: <4FD223B0.3030906@gmail.com> Message-ID: Thanks everyone:)...Much appreciated. I will work on it & let the group know how it goes. Thanks, Bhavya On Fri, Jun 8, 2012 at 1:06 PM, vid wrote: > On Fri, Jun 8, 2012 at 4:09 PM, kracethekingmaker > wrote: > > > >> Hello, > >> > >> I am newbie to Python coding. And, I had a question. I want to write a > >> script which will check content changes in websites& send e-mail to a > >> > >> admin whenever there are changes. > > > > How many times in a day or how often will this check be performed ? > > > > You must look into how to use md5, diff utilities, for web scraping > scrapy > > library is advised. > > > >> Ideally this script/program should be scalable for say about 1000 > websites > >> at a time.. > > 1000 sites at a time? Wow, that's huge. Scraping that many sites is > resource intensive, would need a nice big stable server that can > handle the huge data dumps. Fwiw, Scrapy will only dump the data in > the json files so check out a little about the database you want to > use, the frontend to serve it, a queueing system to scale 1000 sites, > etc... Also, some sites instantly ban scrapers. Watch out for that, > and goodluck :) > > -- > Regards, > Vid > ? http://svaksha.com ? > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From sriramnrn at gmail.com Sat Jun 9 03:43:42 2012 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Sat, 9 Jun 2012 07:13:42 +0530 Subject: [BangPypers] Website change tracker In-Reply-To: References: <4FD223B0.3030906@gmail.com> Message-ID: If you need to check for the absence of certain content, then write tests using Sahi or Selenium, and run those at periodic intervals. Ram On Jun 8, 2012 11:21 PM, "Bhavya" wrote: > Thanks everyone:)...Much appreciated. > I will work on it & let the group know how it goes. > > Thanks, > Bhavya > > On Fri, Jun 8, 2012 at 1:06 PM, vid wrote: > > > On Fri, Jun 8, 2012 at 4:09 PM, kracethekingmaker > > wrote: > > > > > >> Hello, > > >> > > >> I am newbie to Python coding. And, I had a question. I want to write a > > >> script which will check content changes in websites& send e-mail to a > > >> > > >> admin whenever there are changes. > > > > > > How many times in a day or how often will this check be performed ? > > > > > > You must look into how to use md5, diff utilities, for web scraping > > scrapy > > > library is advised. > > > > > >> Ideally this script/program should be scalable for say about 1000 > > websites > > >> at a time.. > > > > 1000 sites at a time? Wow, that's huge. Scraping that many sites is > > resource intensive, would need a nice big stable server that can > > handle the huge data dumps. Fwiw, Scrapy will only dump the data in > > the json files so check out a little about the database you want to > > use, the frontend to serve it, a queueing system to scale 1000 sites, > > etc... Also, some sites instantly ban scrapers. Watch out for that, > > and goodluck :) > > > > -- > > 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 vid at svaksha.com Sat Jun 9 07:20:59 2012 From: vid at svaksha.com (vid) Date: Sat, 9 Jun 2012 05:20:59 +0000 Subject: [BangPypers] Website change tracker In-Reply-To: References: <4FD223B0.3030906@gmail.com> Message-ID: On Sat, Jun 9, 2012 at 1:43 AM, Sriram Narayanan wrote: > If you need to check for the absence of certain content, then write tests > using Sahi or Selenium, and run those at periodic intervals. Does Sahi have python bindings now? The last I checked was 2 years ago so it must have come a long way. Regards, Vid ? http://svaksha.com ? From arvindkhadri at gmail.com Sat Jun 9 07:32:17 2012 From: arvindkhadri at gmail.com (Arvind K) Date: Sat, 9 Jun 2012 11:02:17 +0530 Subject: [BangPypers] Website change tracker In-Reply-To: References: <4FD223B0.3030906@gmail.com> Message-ID: On Jun 9, 2012 10:51 AM, "vid" wrote: > > On Sat, Jun 9, 2012 at 1:43 AM, Sriram Narayanan wrote: > > If you need to check for the absence of certain content, then write tests > > using Sahi or Selenium, and run those at periodic intervals. > > Does Sahi have python bindings now? The last I checked was 2 years ago > so it must have come a long way. > > > Regards, > Vid > ? http://svaksha.com Hi, you can use lxml to do what you are looking for.. The library has a diff method.. http://lxml.de From vid at svaksha.com Sat Jun 9 07:41:03 2012 From: vid at svaksha.com (vid) Date: Sat, 9 Jun 2012 05:41:03 +0000 Subject: [BangPypers] Website change tracker In-Reply-To: References: <4FD223B0.3030906@gmail.com> Message-ID: On Sat, Jun 9, 2012 at 5:32 AM, Arvind K wrote: > On Jun 9, 2012 10:51 AM, "vid" wrote: >> >> On Sat, Jun 9, 2012 at 1:43 AM, Sriram Narayanan > wrote: >> > If you need to check for the absence of certain content, then write > tests >> > using Sahi or Selenium, and run those at periodic intervals. >> >> Does Sahi have python bindings now? The last I checked was 2 years ago >> so it must have come a long way. >> >> >> Regards, >> Vid >> ? http://svaksha.com > Hi, you can use lxml to do what you are looking for.. The library has a > diff method.. > http://lxml.de Btw, were you replying to my question about sahi and python bindings? Because afaik, lxml is more of a parser than a functional testing tool. Regards, Vid ? http://svaksha.com ? From arvindkhadri at gmail.com Sat Jun 9 07:57:51 2012 From: arvindkhadri at gmail.com (Arvind K) Date: Sat, 9 Jun 2012 11:27:51 +0530 Subject: [BangPypers] Website change tracker In-Reply-To: References: <4FD223B0.3030906@gmail.com> Message-ID: On 9 June 2012 11:11, vid wrote: > On Sat, Jun 9, 2012 at 5:32 AM, Arvind K wrote: > > On Jun 9, 2012 10:51 AM, "vid" wrote: > >> > >> On Sat, Jun 9, 2012 at 1:43 AM, Sriram Narayanan > > wrote: > >> > If you need to check for the absence of certain content, then write > > tests > >> > using Sahi or Selenium, and run those at periodic intervals. > >> > >> Does Sahi have python bindings now? The last I checked was 2 years ago > >> so it must have come a long way. > >> > >> > >> Regards, > >> Vid > >> ? http://svaksha.com > > Hi, you can use lxml to do what you are looking for.. The library has a > > diff method.. > > http://lxml.de > > Btw, were you replying to my question about sahi and python bindings? > Because afaik, lxml is more of a parser than a functional testing > tool. > > Regards, > Vid > ? http://svaksha.com > Umm no. I was replying to Bhavya. From anandology at gmail.com Sat Jun 9 08:03:49 2012 From: anandology at gmail.com (Anand Chitipothu) Date: Sat, 9 Jun 2012 11:33:49 +0530 Subject: [BangPypers] Website change tracker In-Reply-To: References: <4FD223B0.3030906@gmail.com> Message-ID: On Sat, Jun 9, 2012 at 10:50 AM, vid wrote: > On Sat, Jun 9, 2012 at 1:43 AM, Sriram Narayanan wrote: >> If you need to check for the absence of certain content, then write tests >> using Sahi or Selenium, and run those at periodic intervals. > > Does Sahi have python bindings now? The last I checked was 2 years ago > so it must have come a long way. Yes. http://selenium-python.readthedocs.org/ Anand From sriramnrn at gmail.com Sat Jun 9 08:23:52 2012 From: sriramnrn at gmail.com (Sriram Narayanan) Date: Sat, 9 Jun 2012 11:53:52 +0530 Subject: [BangPypers] Website change tracker In-Reply-To: References: <4FD223B0.3030906@gmail.com> Message-ID: On Sat, Jun 9, 2012 at 10:50 AM, vid wrote: > On Sat, Jun 9, 2012 at 1:43 AM, Sriram Narayanan wrote: >> If you need to check for the absence of certain content, then write tests >> using Sahi or Selenium, and run those at periodic intervals. > > Does Sahi have python bindings now? The last I checked was 2 years ago > so it must have come a long way. Sorry, I was thinking about the requirement (check for website content change), and didn't consider a python-only solution. > > > Regards, > Vid > ? http://svaksha.com ? > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers -- ------------------------------------ Belenix: www.belenix.org Twitter: @sriramnrn From vid at svaksha.com Sat Jun 9 09:37:49 2012 From: vid at svaksha.com (vid) Date: Sat, 9 Jun 2012 07:37:49 +0000 Subject: [BangPypers] Website change tracker In-Reply-To: References: <4FD223B0.3030906@gmail.com> Message-ID: On Sat, Jun 9, 2012 at 6:03 AM, Anand Chitipothu wrote: > On Sat, Jun 9, 2012 at 10:50 AM, vid wrote: >> On Sat, Jun 9, 2012 at 1:43 AM, Sriram Narayanan wrote: >>> If you need to check for the absence of certain content, then write tests >>> using Sahi or Selenium, and run those at periodic intervals. >> >> Does Sahi have python bindings now? The last I checked was 2 years ago >> so it must have come a long way. > > Yes. > > http://selenium-python.readthedocs.org/ Sahi[0] != Selenium [0] http://sahi.co.in/ -- Regards, Vid ? http://svaksha.com ? From deepakgarg.iitg at gmail.com Sun Jun 10 05:02:45 2012 From: deepakgarg.iitg at gmail.com (Deepak Garg) Date: Sun, 10 Jun 2012 08:32:45 +0530 Subject: [BangPypers] June Meetup In-Reply-To: References: Message-ID: May you tell me your plans as to what you would cover in appEngine and how > much you plan to cover in appEngine datastore? > > I am planning to cover only the basics. The idea is to give a demo of the basic api and features so that everyone can get started. Those who would like to get hands-on can bring their laptops with the Google App Engine SDK installed and optionally eclipse installed. SDK: https://developers.google.com/appengine/downloads I will be using it on Ubuntu platform with python 2.7. However, if possible I will try to address your queries. Thanks, Deepak > e, Jun 5, 2012 at 4:19 PM, Anand Balachandran Pillai < > abpillai at gmail.com> wrote: > > > On Mon, Jun 4, 2012 at 2:23 PM, Deepak Garg > >wrote: > > > > > Hi All, > > > > > > I have scheduled the June meetup on June 16, the third Saturday in this > > > month. The meetup time is 3:30 pm. > > > > > > a. Please suggest a location for this meetup. > > > b. Please let know if you would like to present something. > > > c. Please let me know if there are any other important events on the > > given > > > day and if the date/time needs to be changed. > > > > > > I am hoping to discuss and demo "Writing Apps in Google App Engine". > > > > > > > Would be good if someone can share their experiences if any on > > writing Python apps on Amazon EC2. > > > > > > > > > > > > > > > > > > > Cheers, > > > > > > Deepak Garg, > > > Data Center and Cloud Div. > > > Citrix R&D, India > > > Skype-id: deepakgarg.iit > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > -- > > Regards, > > > > --Anand > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Deepak Garg, Data Center and Cloud Div. Citrix R&D, India Github: https://github.com/gargdeepak LinkedIn: http://in.linkedin.com/in/deepakgargiit Slideshare: http://www.slideshare.net/khinnu4u/presentations Skype-id: deepakgarg.iit From nitin.nitp at gmail.com Mon Jun 11 13:21:08 2012 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Mon, 11 Jun 2012 16:51:08 +0530 Subject: [BangPypers] Can we simulate USB using python Message-ID: Hi All, We use VMWare virtual machine for testing purpose with script in Python. We want to test some USB functionality, Ex: "When USB is plugged In, we expect a Pop up". So need to simulate USB on VM, Is this possible using python (or any 3rd party module of python)? If then please suggest. -- Nitin K From vsapre80 at gmail.com Mon Jun 11 14:09:27 2012 From: vsapre80 at gmail.com (Vishal) Date: Mon, 11 Jun 2012 17:39:27 +0530 Subject: [BangPypers] Can we simulate USB using python In-Reply-To: References: Message-ID: On Mon, Jun 11, 2012 at 4:51 PM, Nitin Kumar wrote: > Hi All, > > We use VMWare virtual machine for testing purpose with script in Python. > We want to test some USB functionality, Ex: "When USB is plugged In, we > expect a Pop up". > > So need to simulate USB on VM, Is this possible using python (or any 3rd > party module of python)? If then please suggest. > > -- > Nitin K > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > The ''pop-up on USB plugged in'' is part of a OS hook that each OS provides for. So if you are running XP inside a VMWare session, the easiest way to do this in Python would be to tap into the win32 api using PyWin32. google for 'pywin32' and "USB plug n play enumeration in XP". hope this helps.. -- Thanks and best regards, Vishal Sapre From shashidhar85 at gmail.com Mon Jun 11 16:16:02 2012 From: shashidhar85 at gmail.com (Shashidhar Paragonda) Date: Mon, 11 Jun 2012 16:16:02 +0200 Subject: [BangPypers] open interactive calendar from interpreter Message-ID: Dear Python Hackers, >>> I am writing some testing tool in python, I test through interpreter / command-line >>> My requirement is i have to enter complete timestamp / date everytime to check some data from within date range like: 11-06-2010 to 11-06-2012 >>> raw_input("Please enter start date") >>> raw_input("Plese enter end sate") >>> when this statement executed i want calendar should popup where i can select date. >>> Is it possible to implement ? >>> Thanks in advance for help. -- ----------------------------------- Regards, Shashidhar N.Paragonda shashidhar85 at gmail.com +919449073835 From arvindkhadri at gmail.com Mon Jun 11 16:46:29 2012 From: arvindkhadri at gmail.com (Arvind K) Date: Mon, 11 Jun 2012 20:16:29 +0530 Subject: [BangPypers] open interactive calendar from interpreter In-Reply-To: References: Message-ID: On 11 June 2012 19:46, Shashidhar Paragonda wrote: > Dear Python Hackers, > > >>> I am writing some testing tool in python, I test through > interpreter / command-line > >>> My requirement is i have to enter complete timestamp / date > everytime to check some data from within date range like: 11-06-2010 to > 11-06-2012 > >>> raw_input("Please enter start date") > >>> raw_input("Plese enter end sate") > >>> when this statement executed i want calendar should popup > where i can select date. > >>> Is it possible to implement ? > >>> Thanks in advance for help. > > > -- > ----------------------------------- > Regards, > > Shashidhar N.Paragonda > shashidhar85 at gmail.com > +919449073835 > _______________________________________________ > Hi, I think you would need to lookup GTK bindings for python, considering you are using gnome. From jnanasagarkr at gmail.com Tue Jun 12 18:09:43 2012 From: jnanasagarkr at gmail.com (jnana sagar) Date: Tue, 12 Jun 2012 21:39:43 +0530 Subject: [BangPypers] BangPypers Digest, Vol 58, Issue 14 In-Reply-To: References: Message-ID: has the meet place been finalized, if so please post it. On Sun, Jun 10, 2012 at 3:30 PM, wrote: > Send BangPypers mailing list submissions to > bangpypers at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/bangpypers > or, via email, send a message with subject or body 'help' to > bangpypers-request at python.org > > You can reach the person managing the list at > bangpypers-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of BangPypers digest..." > > > Today's Topics: > > 1. Re: June Meetup (Deepak Garg) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 10 Jun 2012 08:32:45 +0530 > From: Deepak Garg > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] June Meetup > Message-ID: > > > Content-Type: text/plain; charset=ISO-8859-1 > > May you tell me your plans as to what you would cover in appEngine and how > > much you plan to cover in appEngine datastore? > > > > > I am planning to cover only the basics. The idea is to give a demo of the > basic api and features so that everyone can get started. Those who would > like to get hands-on can bring their laptops with the Google App Engine SDK > installed and optionally eclipse installed. > > SDK: https://developers.google.com/appengine/downloads > I will be using it on Ubuntu platform with python 2.7. > > However, if possible I will try to address your queries. > > Thanks, > Deepak > > > > > > e, Jun 5, 2012 at 4:19 PM, Anand Balachandran Pillai < > > abpillai at gmail.com> wrote: > > > > > On Mon, Jun 4, 2012 at 2:23 PM, Deepak Garg > > >wrote: > > > > > > > Hi All, > > > > > > > > I have scheduled the June meetup on June 16, the third Saturday in > this > > > > month. The meetup time is 3:30 pm. > > > > > > > > a. Please suggest a location for this meetup. > > > > b. Please let know if you would like to present something. > > > > c. Please let me know if there are any other important events on the > > > given > > > > day and if the date/time needs to be changed. > > > > > > > > I am hoping to discuss and demo "Writing Apps in Google App Engine". > > > > > > > > > > Would be good if someone can share their experiences if any on > > > writing Python apps on Amazon EC2. > > > > > > > > > > > > > > > > > > > > > > > > > > Cheers, > > > > > > > > Deepak Garg, > > > > Data Center and Cloud Div. > > > > Citrix R&D, India > > > > Skype-id: deepakgarg.iit > > > > _______________________________________________ > > > > BangPypers mailing list > > > > BangPypers at python.org > > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > > > > > > -- > > > Regards, > > > > > > --Anand > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > > Deepak Garg, > Data Center and Cloud Div. > Citrix R&D, India > > Github: https://github.com/gargdeepak > LinkedIn: http://in.linkedin.com/in/deepakgargiit > Slideshare: http://www.slideshare.net/khinnu4u/presentations > Skype-id: deepakgarg.iit > > > ------------------------------ > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > > End of BangPypers Digest, Vol 58, Issue 14 > ****************************************** > From deepakgarg.iitg at gmail.com Thu Jun 14 05:33:31 2012 From: deepakgarg.iitg at gmail.com (Deepak Garg) Date: Thu, 14 Jun 2012 09:03:31 +0530 Subject: [BangPypers] BangPypers Digest, Vol 58, Issue 14 In-Reply-To: References: Message-ID: http://www.meetup.com/BangPypers/events/67636612/ Deepak On Tue, Jun 12, 2012 at 9:39 PM, jnana sagar wrote: > has the meet place been finalized, if so please post it. > > On Sun, Jun 10, 2012 at 3:30 PM, wrote: > > > Send BangPypers mailing list submissions to > > bangpypers at python.org > > > > To subscribe or unsubscribe via the World Wide Web, visit > > http://mail.python.org/mailman/listinfo/bangpypers > > or, via email, send a message with subject or body 'help' to > > bangpypers-request at python.org > > > > You can reach the person managing the list at > > bangpypers-owner at python.org > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of BangPypers digest..." > > > > > > Today's Topics: > > > > 1. Re: June Meetup (Deepak Garg) > > > > > > ---------------------------------------------------------------------- > > > > Message: 1 > > Date: Sun, 10 Jun 2012 08:32:45 +0530 > > From: Deepak Garg > > To: Bangalore Python Users Group - India > > Subject: Re: [BangPypers] June Meetup > > Message-ID: > > < > CAByQ+99bKXLcSHnp_+dAkLtV-HOxqX9C8gLPhOpX+cT81JQZkg at mail.gmail.com > > > > > Content-Type: text/plain; charset=ISO-8859-1 > > > > May you tell me your plans as to what you would cover in appEngine and > how > > > much you plan to cover in appEngine datastore? > > > > > > > > I am planning to cover only the basics. The idea is to give a demo of the > > basic api and features so that everyone can get started. Those who would > > like to get hands-on can bring their laptops with the Google App Engine > SDK > > installed and optionally eclipse installed. > > > > SDK: https://developers.google.com/appengine/downloads > > I will be using it on Ubuntu platform with python 2.7. > > > > However, if possible I will try to address your queries. > > > > Thanks, > > Deepak > > > > > > > > > > > e, Jun 5, 2012 at 4:19 PM, Anand Balachandran Pillai < > > > abpillai at gmail.com> wrote: > > > > > > > On Mon, Jun 4, 2012 at 2:23 PM, Deepak Garg < > deepakgarg.iitg at gmail.com > > > > >wrote: > > > > > > > > > Hi All, > > > > > > > > > > I have scheduled the June meetup on June 16, the third Saturday in > > this > > > > > month. The meetup time is 3:30 pm. > > > > > > > > > > a. Please suggest a location for this meetup. > > > > > b. Please let know if you would like to present something. > > > > > c. Please let me know if there are any other important events on > the > > > > given > > > > > day and if the date/time needs to be changed. > > > > > > > > > > I am hoping to discuss and demo "Writing Apps in Google App > Engine". > > > > > > > > > > > > > Would be good if someone can share their experiences if any on > > > > writing Python apps on Amazon EC2. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Cheers, > > > > > > > > > > Deepak Garg, > > > > > Data Center and Cloud Div. > > > > > Citrix R&D, India > > > > > Skype-id: deepakgarg.iit > > > > > _______________________________________________ > > > > > BangPypers mailing list > > > > > BangPypers at python.org > > > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > > > > > > > > > > > -- > > > > Regards, > > > > > > > > --Anand > > > > _______________________________________________ > > > > BangPypers mailing list > > > > BangPypers at python.org > > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > -- > > > > Deepak Garg, > > Data Center and Cloud Div. > > Citrix R&D, India > > > > Github: https://github.com/gargdeepak > > LinkedIn: http://in.linkedin.com/in/deepakgargiit > > Slideshare: http://www.slideshare.net/khinnu4u/presentations > > Skype-id: deepakgarg.iit > > > > > > ------------------------------ > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > End of BangPypers Digest, Vol 58, Issue 14 > > ****************************************** > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Deepak Garg, Data Center and Cloud Div. Citrix R&D, India Github: https://github.com/gargdeepak LinkedIn: http://in.linkedin.com/in/deepakgargiit Slideshare: http://www.slideshare.net/khinnu4u/presentations Skype-id: deepakgarg.iit From baiju.m.mail at gmail.com Sat Jun 16 15:50:52 2012 From: baiju.m.mail at gmail.com (Baiju M) Date: Sat, 16 Jun 2012 19:20:52 +0530 Subject: [BangPypers] Today's BangPypers meetup at Servelots Message-ID: Hi All, We had a great time today at BangPypers meetup in Servelots. There was 20+ attendees with many new faces. I think, our meetup page and facebook pages are working out well. Deepak presented Google App Engine with a hands-on session. That was a great talk, he cleared many questions during and after the presentation ( He will be sharing the slides online). After Deepak's presentation, everyone introduced themselves. Later Arvind presented Alipi (a re-narration framework), that looks like a great idea. Both presentations were very interactive. Thanks to Deepak & Aravind for presentations and Servelots for hosting BangPypers meetup. Regards, Baiju M From noufal at nibrahim.net.in Sat Jun 16 16:19:24 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Sat, 16 Jun 2012 19:49:24 +0530 Subject: [BangPypers] Today's BangPypers meetup at Servelots In-Reply-To: (Baiju M.'s message of "Sat, 16 Jun 2012 19:20:52 +0530") References: Message-ID: <877gv7ibkj.fsf@sanitarium.localdomain> Excellent! Thanks for the write up Baiju. I remember we started a Bangpypers blog. Maybe someone can post this precis there? I had a doctors appointment today so couldn't make it. Baiju M writes: > Hi All, > > We had a great time today at BangPypers meetup in Servelots. > There was 20+ attendees with many new faces. > I think, our meetup page and facebook pages are working out well. > > Deepak presented Google App Engine with a hands-on session. > That was a great talk, he cleared many questions during > and after the presentation ( He will be sharing the slides online). > > After Deepak's presentation, everyone introduced themselves. > > Later Arvind presented Alipi (a re-narration framework), > that looks like a great idea. Both presentations were very > interactive. > > Thanks to Deepak & Aravind for presentations and Servelots for hosting > BangPypers meetup. > > Regards, > Baiju M > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Cordially, Noufal http://nibrahim.net.in From deepakgarg.iitg at gmail.com Sat Jun 16 16:32:31 2012 From: deepakgarg.iitg at gmail.com (Deepak Garg) Date: Sat, 16 Jun 2012 20:02:31 +0530 Subject: [BangPypers] Today's BangPypers meetup at Servelots In-Reply-To: References: Message-ID: Thanks everyone. I will soon be sharing the slides and pics. It was nice learning about Alipi and their way of targeting the narration and translation issue. This is what I love the most about meetups - we get to see a diverse set of apps. I met a no. of new folks, some of them are contributing actively in open source. It will be nice to hear something from them in the next meetup. Also, if someone can share and present on Python & C bindings, it will be gr8. Cheers, Deepak On Sat, Jun 16, 2012 at 7:20 PM, Baiju M wrote: > Hi All, > > We had a great time today at BangPypers meetup in Servelots. > There was 20+ attendees with many new faces. > I think, our meetup page and facebook pages are working out well. > > Deepak presented Google App Engine with a hands-on session. > That was a great talk, he cleared many questions during > and after the presentation ( He will be sharing the slides online). > > After Deepak's presentation, everyone introduced themselves. > > Later Arvind presented Alipi (a re-narration framework), > that looks like a great idea. Both presentations were very > interactive. > > Thanks to Deepak & Aravind for presentations and Servelots for hosting > BangPypers meetup. > > Regards, > Baiju M > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Deepak Garg, Data Center and Cloud Div. Citrix R&D, India Github: https://github.com/gargdeepak LinkedIn: http://in.linkedin.com/in/deepakgargiit Slideshare: http://www.slideshare.net/khinnu4u/presentations Skype-id: deepakgarg.iit From noufal at nibrahim.net.in Sat Jun 16 16:29:43 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Sat, 16 Jun 2012 19:59:43 +0530 Subject: [BangPypers] Today's BangPypers meetup at Servelots In-Reply-To: (Deepak Garg's message of "Sat, 16 Jun 2012 20:02:31 +0530") References: Message-ID: <87395vib3c.fsf@sanitarium.localdomain> Deepak Garg writes: [...] > I met a no. of new folks, some of them are contributing actively in > open source. It will be nice to hear something from them in the next > meetup. Also, if someone can share and present on Python & C > bindings, it will be gr8. [...] I have an old presentation I can dust off for this. I can't commit right now because next month is going to be extremely busy for me but I will try. -- Cordially, Noufal http://nibrahim.net.in From kala586 at gmail.com Mon Jun 18 13:03:23 2012 From: kala586 at gmail.com (kala Vinay) Date: Mon, 18 Jun 2012 16:33:23 +0530 Subject: [BangPypers] Two days course on Python In-Reply-To: References: Message-ID: Dear All, credativ India specialized in open source, conducting a two days course on Python Programming on 27th and 28th June 2012. Interested candidates can contact: training at credativ.in Regards, Vijayakala From deepakgarg.iitg at gmail.com Mon Jun 18 16:05:24 2012 From: deepakgarg.iitg at gmail.com (Deepak Garg) Date: Mon, 18 Jun 2012 19:35:24 +0530 Subject: [BangPypers] Today's BangPypers meetup at Servelots In-Reply-To: <87395vib3c.fsf@sanitarium.localdomain> References: <87395vib3c.fsf@sanitarium.localdomain> Message-ID: Thanks, Presentation: http://www.slideshare.net/khinnu4u/google-appenginewithpython/ Source: https://github.com/gargdeepak/Presentations/tree/master/BangPypers-June-Meetup-2012 Cheers, Deepak On Sat, Jun 16, 2012 at 7:59 PM, Noufal Ibrahim wrote: > Deepak Garg writes: > > > [...] > > > I met a no. of new folks, some of them are contributing actively in > > open source. It will be nice to hear something from them in the next > > meetup. Also, if someone can share and present on Python & C > > bindings, it will be gr8. > > [...] > > I have an old presentation I can dust off for this. I can't commit right > now because next month is going to be extremely busy for me but I will > try. > > > -- > Cordially, > Noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Deepak Garg, Data Center and Cloud Div. Citrix R&D, India Github: https://github.com/gargdeepak LinkedIn: http://in.linkedin.com/in/deepakgargiit Slideshare: http://www.slideshare.net/khinnu4u/presentations Skype-id: deepakgarg.iit From Nikunj.Badjatya at emc.com Tue Jun 19 08:28:26 2012 From: Nikunj.Badjatya at emc.com (Nikunj.Badjatya at emc.com) Date: Tue, 19 Jun 2012 02:28:26 -0400 Subject: [BangPypers] Help On Paramiko Message-ID: <599CEBACD49B4144A61212D837EE3C0F1886E25E6C@MX34A.corp.emc.com> Howdy All, I am trying to use paramiko to automate logging in to remote unix machines and executing some commands there. When I normally do ssh from my linux machine (with Python 2.6) to this machine a different '>' prompt comes. It's a device specific custom prompt. After I run 'enable' command here, a new prompt opens up. '#' which is also custom prompt. Then I need to run 'configure terminal' there. And then some more device specific commands. i.e. {{{ Linux # Ssh admin at xx.xx.xx.xx ? Enable # configure terminal # }}} Can this be done using paramiko? I tried with: {{{ import paramiko client = paramiko.SSHClient() client.load_system_host_keys() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) client.connect('xx.xx.xx.xx', username='admin', password='') stdin, stdout, stderr = client.exec_command('enable') #stdin.write('configure t') print(stdout.readlines()) }}} (There is no passwd for username admin.) o/p ['UNIX shell commands cannot be executed using this account.\n'] Any suggestions? Thanks Nikunj From noufal at nibrahim.net.in Tue Jun 19 08:30:57 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Tue, 19 Jun 2012 12:00:57 +0530 Subject: [BangPypers] Help On Paramiko In-Reply-To: <599CEBACD49B4144A61212D837EE3C0F1886E25E6C@MX34A.corp.emc.com> (Nikunj Badjatya's message of "Tue, 19 Jun 2012 02:28:26 -0400") References: <599CEBACD49B4144A61212D837EE3C0F1886E25E6C@MX34A.corp.emc.com> Message-ID: <87hau76cf2.fsf@sanitarium.localdomain> Fabric is a library built on paramiko that gives you abstractions so that you don't have to worry about things at such a fine grained level. Perhaps you should try using that. writes: > Howdy All, > > I am trying to use paramiko to automate logging in to remote unix machines and executing some commands there. > When I normally do ssh from my linux machine (with Python 2.6) to this machine a different '>' prompt comes. It's a device specific custom prompt. > After I run 'enable' command here, a new prompt opens up. '#' which is also custom prompt. > Then I need to run 'configure terminal' there. And then some more device specific commands. > > i.e. > {{{ > Linux # Ssh admin at xx.xx.xx.xx > > ? Enable > # configure terminal > # > }}} > > Can this be done using paramiko? > I tried with: > > {{{ > import paramiko > > client = paramiko.SSHClient() > client.load_system_host_keys() > client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) > client.connect('xx.xx.xx.xx', username='admin', password='') > stdin, stdout, stderr = client.exec_command('enable') > #stdin.write('configure t') > print(stdout.readlines()) > > }}} > (There is no passwd for username admin.) > > > o/p > ['UNIX shell commands cannot be executed using this account.\n'] > > Any suggestions? > > Thanks > Nikunj > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Cordially, Noufal http://nibrahim.net.in From guru.eceng at gmail.com Tue Jun 19 09:04:13 2012 From: guru.eceng at gmail.com (Guru) Date: Tue, 19 Jun 2012 12:34:13 +0530 Subject: [BangPypers] Help On Paramiko In-Reply-To: <87hau76cf2.fsf@sanitarium.localdomain> References: <599CEBACD49B4144A61212D837EE3C0F1886E25E6C@MX34A.corp.emc.com> <87hau76cf2.fsf@sanitarium.localdomain> Message-ID: Refer this site you may get some useful information http://segfault.in/2010/03/paramiko-ssh-and-sftp-with-python/ On Tue, Jun 19, 2012 at 12:00 PM, Noufal Ibrahim wrote: > > Fabric is a library built on paramiko that gives you abstractions so > that you don't have to worry about things at such a fine grained > level. Perhaps you should try using that. > > writes: > > > Howdy All, > > > > I am trying to use paramiko to automate logging in to remote unix > machines and executing some commands there. > > When I normally do ssh from my linux machine (with Python 2.6) to this > machine a different '>' prompt comes. It's a device specific custom prompt. > > After I run 'enable' command here, a new prompt opens up. '#' which is > also custom prompt. > > Then I need to run 'configure terminal' there. And then some more device > specific commands. > > > > i.e. > > {{{ > > Linux # Ssh admin at xx.xx.xx.xx > > > > ? Enable > > # configure terminal > > # > > }}} > > > > Can this be done using paramiko? > > I tried with: > > > > {{{ > > import paramiko > > > > client = paramiko.SSHClient() > > client.load_system_host_keys() > > client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) > > client.connect('xx.xx.xx.xx', username='admin', password='') > > stdin, stdout, stderr = client.exec_command('enable') > > #stdin.write('configure t') > > print(stdout.readlines()) > > > > }}} > > (There is no passwd for username admin.) > > > > > > o/p > > ['UNIX shell commands cannot be executed using this account.\n'] > > > > Any suggestions? > > > > Thanks > > Nikunj > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > -- > Cordially, > Noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -REGARDS Guruprasad K S From abpillai at gmail.com Tue Jun 19 11:04:34 2012 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 19 Jun 2012 14:34:34 +0530 Subject: [BangPypers] Website change tracker In-Reply-To: References: <4FD223B0.3030906@gmail.com> Message-ID: On Fri, Jun 8, 2012 at 10:36 PM, vid wrote: > On Fri, Jun 8, 2012 at 4:09 PM, kracethekingmaker > wrote: > > > >> Hello, > >> > >> I am newbie to Python coding. And, I had a question. I want to write a > >> script which will check content changes in websites& send e-mail to a > >> > >> admin whenever there are changes. > > > > How many times in a day or how often will this check be performed ? > > > > You must look into how to use md5, diff utilities, for web scraping > scrapy > > library is advised. > > > >> Ideally this script/program should be scalable for say about 1000 > websites > >> at a time.. > > 1000 sites at a time? Wow, that's huge. Scraping that many sites is > resource intensive, would need a nice big stable server that can > handle the huge data dumps. Fwiw, Scrapy will only dump the data in > the json files so check out a little about the database you want to > use, the frontend to serve it, a queueing system to scale 1000 sites, > etc... Also, some sites instantly ban scrapers. Watch out for that, > and goodluck :) > This is much more easier than you think. It looks big because you are solving it as a full-scale scraping problem. This is in fact more in the lines of an "incremental crawler". Write a simple crawler that keeps track of a few key entrypoint URLs on every site. You can typically get them from the sitemap or from querying google. The crawler can be hand-written or use existing frameworks like pycurl, scrapy etc. 1. When crawling, use a HEAD request to fetch the page. This ensures you only get the headers of the page not the data. Store the metadata of interest to a file - use an MD5 hash of the URL as a unique name and use a two level directory scheme of squid. The fields of interest would be last-modified-time, etag (if any) and content-length. 2. Recrawl at fixed intervals. Before requesting a URL load its metadata from the cache if it exists - Fill in the "If-Modified-Since" header and put the last-modified-time in there. Also you can optionally add "If-None-Match" for the etag, if found. 3. If page is not modified, server returns HTTP 304 error. Handle it. Otherwise download the page or do whatever other actions. Update the cache if modified. For 1000 sites, partition the sites into multiple sets and do such incremental crawls frequently. Use random selection to pick up the sites per set. Use random selection of starting URLs to ensure you visit most parts of a site every subsequent crawl. I have written such systems before and still maintain them. It is an interesting area. Ask if you have specific questions. > > -- > Regards, > Vid > ? http://svaksha.com ? > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, --Anand From vnbang2003 at yahoo.com Tue Jun 19 16:45:56 2012 From: vnbang2003 at yahoo.com (vijay) Date: Tue, 19 Jun 2012 22:45:56 +0800 (SGT) Subject: [BangPypers] Help On Paramiko In-Reply-To: <599CEBACD49B4144A61212D837EE3C0F1886E25E6C@MX34A.corp.emc.com> References: <599CEBACD49B4144A61212D837EE3C0F1886E25E6C@MX34A.corp.emc.com> Message-ID: <1340117156.51074.YahooMailNeo@web192205.mail.sg3.yahoo.com> Can you try to add this step(after missing_host_key_policy()) for public private key between two machine you want to run. paramiko.RSAKey.from_private_key_file() this is what helped me solved issue what i had with communication between machines. Hope this helps you With Thanks VIjay ________________________________ From: "Nikunj.Badjatya at emc.com" To: python-list at python.org; bangpypers at python.org Sent: Tuesday, 19 June 2012 11:58 AM Subject: [BangPypers] Help On Paramiko Howdy All, I am trying to use paramiko to automate logging in to remote unix machines and executing some commands there. When I normally do ssh from my linux machine (with Python 2.6) to this machine a different '>' prompt comes. It's a device specific custom prompt. After I run 'enable' command here, a new prompt opens up. '#' which is also custom prompt. Then I need to run 'configure terminal' there. And then some more device specific commands. i.e. {{{ Linux # Ssh admin at xx.xx.xx.xx ?? Enable #? ? configure terminal #? ? }}} Can this be done using paramiko? I tried with: {{{ import paramiko client = paramiko.SSHClient() client.load_system_host_keys() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) client.connect('xx.xx.xx.xx', username='admin', password='') stdin, stdout, stderr = client.exec_command('enable') #stdin.write('configure t') print(stdout.readlines()) }}} (There is no passwd for username admin.) o/p ['UNIX shell commands cannot be executed using this account.\n'] Any suggestions? Thanks Nikunj _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From satyaakam at gmail.com Tue Jun 19 17:06:19 2012 From: satyaakam at gmail.com (satyaakam goswami) Date: Tue, 19 Jun 2012 20:36:19 +0530 Subject: [BangPypers] Help On Paramiko In-Reply-To: <599CEBACD49B4144A61212D837EE3C0F1886E25E6C@MX34A.corp.emc.com> References: <599CEBACD49B4144A61212D837EE3C0F1886E25E6C@MX34A.corp.emc.com> Message-ID: > > o/p > ['UNIX shell commands cannot be executed using this account.\n'] > > Any suggestions? > > last time i had such a requirement it started just like you into writing something , then i did a quick web search before starting and found http://code.google.com/p/sshpt/ which served all our requirements so we stuck to . it too uses paramiko. -Satya fossevents.in From metafusion at gmail.com Fri Jun 22 16:10:01 2012 From: metafusion at gmail.com (Shuhaib Shariff) Date: Fri, 22 Jun 2012 19:40:01 +0530 Subject: [BangPypers] [JOBS] Python Developers with 2 Yrs Experience Message-ID: DoubleSpring seeks passionate PYTHON developers with experience in building or contributing to Open Source projects. We are 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. - Experience with MVC design patterns and solid algorithm skills. - 2 years of industry experience - B.E. in Computer Science or equivalent degree required. Location: Bangalore How to apply Send your resume to: careers at doublespring.com From ramkrsna at gmail.com Tue Jun 26 09:03:37 2012 From: ramkrsna at gmail.com (Ramakrishna Reddy) Date: Tue, 26 Jun 2012 12:33:37 +0530 Subject: [BangPypers] [CFP] Call for Proposals for Pycon India 2012 :: 28 - 30 September, Bangalore, India Message-ID: =============================================================================== Call for Proposals for Pycon India 2012 :: 28 - 30 September, Bangalore, India. =============================================================================== The Fourth edition of PyCon India is being held in Bangalore,India from 28th September 2012 to 30th September 2012. The organisers of PyCon India 2012 are looking for talk and tutorial proposals to fill the formal presentation and tutorial tracks. We accept proposals on a very broad range of topics related to Python programming. http://in.pycon.org/2012/funnel/pyconindia2012/ Important Dates ---------------- - Call for proposals opens: June 26, 2012 - Proposal submission deadline: August 25, 2012 - Proposal acceptance: Aug 31, 2012 - First presentation upload: September 15, 2012 - Final presentation upload (with changes if any): September 25, 2012 Permission to record/release presentations ------------------------------------------ In PyCon India, we intend to record all presentations live and release the recordings for free on the Internet so as to benefit the wider Python community. When you are submitting a proposal, you automatically give the Indian Python Software Society, the organizers of PyCon India, the permissions to record/edit and release the audio/video of your presentation.No exceptions will be made in this regard. If you do not want a recording of your presentation to be made, don't submit a proposal. The released media will be licensed under the Creative Commons Attribution License, version 3.0. Topics for PyCon India ---------------------- We encourage high quality proposals in all the areas involving Python : the language, its implementation, uses, and the community behind it. Each proposal will be judged according to its correctness, clarity, and elegance. We invite everyone interested in Python to participate. - *Core Python* ? Language features, Python implementations, Python 3.X, Standard Library - *Embedded/Real-time Python* ? Embedded Python, Device Interfacing, Robotics - *Infrastructure* ? Deployments, System Configuration, Monitoring - *Scientific Computing* ? Scientific/Numeric Libraries, Cryptography, Data Engineering, Mathematics, Statistics, Visualizations - *Software Development Tools* ? GUI programming, Testing tools - *Web Development* ? Web Frameworks, Concurrency, Databases, NoSQL, Cloud Computing, Restful Interfaces - *Others* ? Everything else that does not fit into the above sections Talk Format ----------- The typical length of a talk should be no more than 45 minutes. The presentation style should be concise, to the point with sufficient examples to clarify the discussion to the audience, if needed. After every talk there will be time reserved for questions from the audience (10 minutes). We will be providing a buffer of 5-10 minutes between talks so that the presenters get sufficient time to set-up their talk and attendees can move between the halls. Twitter Hashtag --------------- #pyconindia2012 Tutorial Format --------------- The typical length of the tutorial should be no more than 3 hours. All the classes run in PyCon India are volunteered. If you like to propose a tutorial, The submission of the tutorials also follow the same time lines as the talks. Proposal submission ------------------- Talk and tutorial proposals should be submitted to http://in.pycon.org/2012/funnel/pyconindia2012/ regards -- Ramakrishna Reddy? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?GPG Key ID:67E226F5 Fingerprint =? BA51 9241 72B9 7DBD 1A9A ?E717 ABB2 9BAD 67E2 26F5 From abpillai at gmail.com Tue Jun 26 10:13:15 2012 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 26 Jun 2012 13:43:15 +0530 Subject: [BangPypers] [CFP] Call for Proposals for Pycon India 2012 :: 28 - 30 September, Bangalore, India In-Reply-To: References: Message-ID: On Tue, Jun 26, 2012 at 12:33 PM, Ramakrishna Reddy wrote: > > =============================================================================== > Call for Proposals for Pycon India 2012 :: 28 - 30 September, Bangalore, > India. > > =============================================================================== > The Fourth edition of PyCon India is being held in Bangalore,India from > 28th > September 2012 to 30th September 2012. The organisers of PyCon India > 2012 are looking for talk and tutorial proposals to fill the formal > presentation and tutorial tracks. We accept proposals on a very broad > range of topics related to Python programming. > http://in.pycon.org/2012/funnel/pyconindia2012/ > ... > Please RT the tweets on this to spread the word. -- Regards, --Anand From kala586 at gmail.com Wed Jun 27 06:38:53 2012 From: kala586 at gmail.com (kala Vinay) Date: Wed, 27 Jun 2012 10:08:53 +0530 Subject: [BangPypers] Two days course on Python In-Reply-To: References: Message-ID: Dear All, credativ India specialized in open source, conducting a two days course on Python Programming on 13th and 14th July 2012. Interested candidates can contact: training at credativ.in Regards, Vijayakala From gora at mimirtech.com Wed Jun 27 06:41:47 2012 From: gora at mimirtech.com (Gora Mohanty) Date: Wed, 27 Jun 2012 10:11:47 +0530 Subject: [BangPypers] Two days course on Python In-Reply-To: References: Message-ID: On 27 June 2012 10:08, kala Vinay wrote: > ?Dear All, > > credativ India specialized in open source, conducting a two days course on > Python Programming on 13th and 14th July 2012. > > Interested candidates can contact: ? training at credativ.in [...] Are these paid courses? If so, please mark such posts with a "Commercial" tag in the subject line, especially if you are going to be posting this many times. Thanks. Regards, Gora From abpillai at gmail.com Wed Jun 27 09:29:45 2012 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 27 Jun 2012 12:59:45 +0530 Subject: [BangPypers] Two days course on Python In-Reply-To: References: Message-ID: On Wed, Jun 27, 2012 at 10:08 AM, kala Vinay wrote: > Dear All, > > credativ India specialized in open source, conducting a two days course on > Python Programming on 13th and 14th July 2012. > > Interested candidates can contact: training at credativ.in > > Please don't spam the list. Repeated posting with the same title/content with no other replies in the thread is spamming. > Regards, > > Vijayakala > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Regards, --Anand From vsapre80 at gmail.com Wed Jun 27 10:04:44 2012 From: vsapre80 at gmail.com (Vishal) Date: Wed, 27 Jun 2012 13:34:44 +0530 Subject: [BangPypers] Python script to limit access to Internet... Message-ID: Hello, I would like to limit internet access at my home, for some computers. Basically for a given time during the day (read schedule), I wish that the a given computer should not be able to access the internet. However, the computer is still connected to the internal LAN, so file/print sharing should be allowed. Something like what this software does: http://www.blumentals.net/inetprot/ And, of course I would like to do this in Python. Any pointers ? Thanks in advance. Best regards, Vishal Sapre From lawgon at gmail.com Wed Jun 27 10:13:26 2012 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Wed, 27 Jun 2012 13:43:26 +0530 Subject: [BangPypers] Python script to limit access to Internet... In-Reply-To: References: Message-ID: <1340784806.1789.94.camel@xlquest.web> On Wed, 2012-06-27 at 13:34 +0530, Vishal wrote: > I would like to limit internet access at my home, for some computers. > Basically for a given time during the day (read schedule), I wish that > the > a given computer should not be able to access the internet. > However, the computer is still connected to the internal LAN, so > file/print > sharing should be allowed. what is the configuration of the LAN? are you using some proxy like squid and a dhcp server, or are you using the router as a dhcp server? Are you running your own firewall? -- regards Kenneth Gonsalves From rahul8590 at gmail.com Wed Jun 27 10:34:42 2012 From: rahul8590 at gmail.com (Rahul R) Date: Wed, 27 Jun 2012 14:04:42 +0530 Subject: [BangPypers] Python script to limit access to Internet... In-Reply-To: References: Message-ID: Use Squid Proxy sever --Rahul On Wed, Jun 27, 2012 at 1:34 PM, Vishal wrote: > Hello, > > I would like to limit internet access at my home, for some computers. > Basically for a given time during the day (read schedule), I wish that the > a given computer should not be able to access the internet. > However, the computer is still connected to the internal LAN, so file/print > sharing should be allowed. > Something like what this software does: > http://www.blumentals.net/inetprot/ > > > And, of course I would like to do this in Python. > > Any pointers ? Thanks in advance. > > Best regards, > Vishal Sapre > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From vsapre80 at gmail.com Wed Jun 27 10:45:13 2012 From: vsapre80 at gmail.com (Vishal) Date: Wed, 27 Jun 2012 14:15:13 +0530 Subject: [BangPypers] Python script to limit access to Internet... In-Reply-To: <1340784806.1789.94.camel@xlquest.web> References: <1340784806.1789.94.camel@xlquest.web> Message-ID: On Wed, Jun 27, 2012 at 1:43 PM, Kenneth Gonsalves wrote: > On Wed, 2012-06-27 at 13:34 +0530, Vishal wrote: > > I would like to limit internet access at my home, for some computers. > > Basically for a given time during the day (read schedule), I wish that > > the > > a given computer should not be able to access the internet. > > However, the computer is still connected to the internal LAN, so > > file/print > > sharing should be allowed. > > what is the configuration of the LAN? are you using some proxy like > squid and a dhcp server, or are you using the router as a dhcp server? > Are you running your own firewall? > -- > regards > Kenneth Gonsalves > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > I am using the router as the DHCP server. The firewall is windows firewall. No separate proxy server. Most solutions i looked at, pointed to being something for the entire network...not sure how to use them, since in my network everyone is connected to the router, which is then connected to the internet (just a regular home network), no central authority controlling others. -- Thanks and best regards, Vishal Sapre --- "Life is 10% how you make it, and 90% how you take it" "????? ?????, ????? ????? (Benefit for most people, Happiness for most people.)" --- Please DONT print this email, unless you really need to. Save Energy & Paper. Save the Earth. From noufal at nibrahim.net.in Wed Jun 27 10:35:42 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Wed, 27 Jun 2012 14:05:42 +0530 Subject: [BangPypers] Python script to limit access to Internet... In-Reply-To: (Vishal's message of "Wed, 27 Jun 2012 13:34:44 +0530") References: Message-ID: <87zk7p40f5.fsf@sanitarium.localdomain> Vishal writes: > Hello, > > I would like to limit internet access at my home, for some computers. > Basically for a given time during the day (read schedule), I wish that the > a given computer should not be able to access the internet. > However, the computer is still connected to the internal LAN, so file/print > sharing should be allowed. > Something like what this software does: http://www.blumentals.net/inetprot/ > > > And, of course I would like to do this in Python. There are a number of ways to do this and a number of pieces your program will have. The timer part which is trivial and which you can outsource to cron (lock down at such and such time). As for the restrictions, the most reliable way I can think of (which is not cross platform) is to first change your firewall rules to disallow connections outside of a specific network (except for maybe some protocols like ssh if you need them) and then to change your root password to something random so that you can't break out of your setup. It should have a way of reverting your password too and also some kind of fail safe (e.g. reboot to get back regular functionality) etc. Luckily for you, this has been implemented atleast for Gnu/Linux as is available as http://thomer.com/lockout/ [...] -- Cordially, Noufal http://nibrahim.net.in From lawgon at gmail.com Wed Jun 27 12:10:16 2012 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Wed, 27 Jun 2012 15:40:16 +0530 Subject: [BangPypers] Python script to limit access to Internet... In-Reply-To: References: <1340784806.1789.94.camel@xlquest.web> Message-ID: <1340791816.1789.101.camel@xlquest.web> On Wed, 2012-06-27 at 14:15 +0530, Vishal wrote: > I am using the router as the DHCP server. The firewall is windows > firewall. ouch > No separate proxy server. > > Most solutions i looked at, pointed to being something for the entire > network...not sure how to use them, since in my network everyone is > connected to the router, which is then connected to the internet (just > a > regular home network), no central authority controlling others. the simplest solution is to run your own dhcp/proxy/firewall server. It is dead easy on linux and you do not need to write any scripts. Just a cron job to handle the timing. I do not know anything about windows - but one thing, networks where you rely on the dhcp server on the router are highly unsafe. Please avoid them. > -- regards Kenneth Gonsalves From noufal at nibrahim.net.in Wed Jun 27 12:08:06 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Wed, 27 Jun 2012 15:38:06 +0530 Subject: [BangPypers] Python script to limit access to Internet... In-Reply-To: <1340791816.1789.101.camel@xlquest.web> (Kenneth Gonsalves's message of "Wed, 27 Jun 2012 15:40:16 +0530") References: <1340784806.1789.94.camel@xlquest.web> <1340791816.1789.101.camel@xlquest.web> Message-ID: <87vcid3w55.fsf@sanitarium.localdomain> Kenneth Gonsalves writes: [...] > but one thing, networks where you rely on the dhcp server on the > router are highly unsafe. Please avoid them. Why so? -- Cordially, Noufal http://nibrahim.net.in From lawgon at gmail.com Wed Jun 27 12:25:45 2012 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Wed, 27 Jun 2012 15:55:45 +0530 Subject: [BangPypers] Python script to limit access to Internet... In-Reply-To: <87vcid3w55.fsf@sanitarium.localdomain> References: <1340784806.1789.94.camel@xlquest.web> <1340791816.1789.101.camel@xlquest.web> <87vcid3w55.fsf@sanitarium.localdomain> Message-ID: <1340792745.1789.112.camel@xlquest.web> On Wed, 2012-06-27 at 15:38 +0530, Noufal Ibrahim wrote: > Kenneth Gonsalves writes: > > [...] > > > but one thing, networks where you rely on the dhcp server on the > > router are highly unsafe. Please avoid them. > > Why so? in the first place, these are setup by the 'technical' staff of the service provider. The root password is usually root123, the firewall is identical on all modems, the permissions are the widest possible and the client machines are usually windows. I use this, but my machines are all linux with proper firewalls, and I can see the sort of rubbish the router lets in in the logs. -- regards Kenneth Gonsalves From b.ghose at gmail.com Wed Jun 27 12:43:28 2012 From: b.ghose at gmail.com (Baishampayan Ghose) Date: Wed, 27 Jun 2012 16:13:28 +0530 Subject: [BangPypers] Python script to limit access to Internet... In-Reply-To: <1340792745.1789.112.camel@xlquest.web> References: <1340784806.1789.94.camel@xlquest.web> <1340791816.1789.101.camel@xlquest.web> <87vcid3w55.fsf@sanitarium.localdomain> <1340792745.1789.112.camel@xlquest.web> Message-ID: >> > but one thing, networks where you rely on the dhcp server on the >> > router are highly unsafe. Please avoid them. >> >> Why so? > > in the first place, these are setup by the 'technical' staff of the > service provider. The root password is usually root123, the firewall is > identical on all modems, the permissions are the widest possible and the > client machines are usually windows. I use this, but my machines are all > linux with proper firewalls, and I can see the sort of rubbish the > router lets in in the logs. True, but I am not sure how this is related to running the DHCP server on the router. Regards, BG -- Baishampayan Ghose b.ghose at gmail.com From vijaya.kala at credativ.com Wed Jun 27 12:41:05 2012 From: vijaya.kala at credativ.com (Vijaya kala) Date: Wed, 27 Jun 2012 16:11:05 +0530 Subject: [BangPypers] Two days course on Python Message-ID: <1340793665.1645.23.camel@DT-01-0043> -----Original Message----- From: Anand Balachandran Pillai Subject: Re: [BangPypers] Two days course on Python On Wed, Jun 27, 2012 at 10:08 AM, kala Vinay wrote: >> Dear All, >> >> credativ India specialized in open source, conducting a two days course on >> Python Programming on 13th and 14th July 2012. >> >> Interested candidates can contact: training at credativ.in >> >> > Please don't spam the list. Repeated posting with the same title/content > with no other replies in the thread is spamming. Sorry, my intention was not to spam the list. There was a new schedule and I put that in the list. I have been receiving enquiries directly. This is a commercial course and here onwards I will mark it as commercial in the subject. I will also limit the posting to one per schedule; is that fine? -- Regards, Vijayakala From lawgon at gmail.com Wed Jun 27 13:09:16 2012 From: lawgon at gmail.com (Kenneth Gonsalves) Date: Wed, 27 Jun 2012 16:39:16 +0530 Subject: [BangPypers] Python script to limit access to Internet... In-Reply-To: References: <1340784806.1789.94.camel@xlquest.web> <1340791816.1789.101.camel@xlquest.web> <87vcid3w55.fsf@sanitarium.localdomain> <1340792745.1789.112.camel@xlquest.web> Message-ID: <1340795356.1789.115.camel@xlquest.web> On Wed, 2012-06-27 at 16:13 +0530, Baishampayan Ghose wrote: > >> Why so? > > > > in the first place, these are setup by the 'technical' staff of the > > service provider. The root password is usually root123, the firewall > is > > identical on all modems, the permissions are the widest possible and > the > > client machines are usually windows. I use this, but my machines are > all > > linux with proper firewalls, and I can see the sort of rubbish the > > router lets in in the logs. > > True, but I am not sure how this is related to running the DHCP server > on the router. ok if you configure the server on the router yourself, replace the root password and configure the firewall there also (after all most routers run linux, so no big deal - anyway this is getting highly OT. -- regards Kenneth Gonsalves From nitin.nitp at gmail.com Fri Jun 29 11:22:34 2012 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Fri, 29 Jun 2012 14:52:34 +0530 Subject: [BangPypers] virdual drive Message-ID: Hi All, I want to create a virtual drive (floppy or CD) on my machine using Python. Can anyone please suggest me? -- Nitin K From noufal at nibrahim.net.in Fri Jun 29 11:30:33 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Fri, 29 Jun 2012 15:00:33 +0530 Subject: [BangPypers] virdual drive In-Reply-To: (Nitin Kumar's message of "Fri, 29 Jun 2012 14:52:34 +0530") References: Message-ID: <8762aa31om.fsf@sanitarium.localdomain> Nitin Kumar writes: > Hi All, > > I want to create a virtual drive (floppy or CD) on my machine using > Python. Can anyone please suggest me? What platform? -- Cordially, Noufal http://nibrahim.net.in From nitin.nitp at gmail.com Fri Jun 29 11:40:36 2012 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Fri, 29 Jun 2012 15:10:36 +0530 Subject: [BangPypers] virdual drive In-Reply-To: <8762aa31om.fsf@sanitarium.localdomain> References: <8762aa31om.fsf@sanitarium.localdomain> Message-ID: windows 7/xp On Fri, Jun 29, 2012 at 3:00 PM, Noufal Ibrahim wrote: > Nitin Kumar writes: > > > Hi All, > > > > I want to create a virtual drive (floppy or CD) on my machine using > > Python. Can anyone please suggest me? > > What platform? > > -- > Cordially, > Noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Nitin K From noufal at nibrahim.net.in Fri Jun 29 11:43:41 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Fri, 29 Jun 2012 15:13:41 +0530 Subject: [BangPypers] virdual drive In-Reply-To: (Nitin Kumar's message of "Fri, 29 Jun 2012 15:10:36 +0530") References: <8762aa31om.fsf@sanitarium.localdomain> Message-ID: <871uky312q.fsf@sanitarium.localdomain> Nitin Kumar writes: > windows 7/xp [...] That's out of my province but I expect you'll have to tie into the file system drivers to implement something like this and that's not something you do in pure python. You'll either have to implement some low level parts in C and then wrap that in Python or if windows exposes an API to do this, use the pywin32 libraries to access them. -- Cordially, Noufal http://nibrahim.net.in From varunarang at gmail.com Fri Jun 29 12:10:30 2012 From: varunarang at gmail.com (Varun Narang) Date: Fri, 29 Jun 2012 15:40:30 +0530 Subject: [BangPypers] Need help understanding -9 >> 1 Message-ID: Hi all, I need some help understanding the right shift operation on -9. To my understanding, it's represented as -0b1001, Now, if I shift it one place to right, it should give me -0b0100, which is decimal equivalent of 4. but running this on python console gives me -5. Please help me out here. Thanks, Varun From navin.kabra at gmail.com Fri Jun 29 12:23:23 2012 From: navin.kabra at gmail.com (Navin Kabra) Date: Fri, 29 Jun 2012 15:53:23 +0530 Subject: [BangPypers] Need help understanding -9 >> 1 In-Reply-To: References: Message-ID: <87k3yqpgbo.fsf@smriti.com> Varun Narang writes: > I need some help understanding the right shift operation on -9. To my > understanding, it's represented as -0b1001, No. Integers are represented using 2s complement integers. So -9 will actually be represented by 0xfffffff7. When you shift it to the right, a '1' is shifted into the empty slot on the left. S you get: 0xfffffffb which is -5. From anandology at gmail.com Fri Jun 29 12:33:54 2012 From: anandology at gmail.com (Anand Chitipothu) Date: Fri, 29 Jun 2012 16:03:54 +0530 Subject: [BangPypers] Need help understanding -9 >> 1 In-Reply-To: References: Message-ID: On Fri, Jun 29, 2012 at 3:40 PM, Varun Narang wrote: > Hi all, > > I need some help understanding the right shift operation on -9. To my > understanding, it's represented as -0b1001, Now, if I shift it one place to > right, it should give me -0b0100, which is decimal equivalent of 4. but > running this on python console gives me -5. > > Please help me out here. -9 is represented internally as 0xFFFFFFF7. The last byte in binary is 11110111. When on rightshift, it becomes 11111011. Which is 0xFFFFFFFB, hex representation of -5. Try this to see how -9 and -5 are represented internally: >>> import ctypes >>> libc = ctypes.CDLL("libc.so.6") >>> a = libc.printf("%x\n", -9) fffffff7 >>> a = libc.printf("%x\n", -5) fffffffb This works only on linux. Read https://en.wikipedia.org/wiki/Signed_number_representations how negative integers are represented internally. Anand From arunvr at gmail.com Sat Jun 30 13:49:59 2012 From: arunvr at gmail.com (Arun Ravindran) Date: Sat, 30 Jun 2012 17:19:59 +0530 Subject: [BangPypers] Julython 2012 Message-ID: Hi BangPypers, Saw this in a recent newsletter and thought that you might be interested: *Julython (julython.org) During the month of July, the crowd at Julython are trying to encourage developers of all skill levels to try and work on their pet Python project(s) just a little each day. July is coming fast, time to get ready! * I think it is a great idea. BTW, July starts from tomorrow :) Cheers, Arun From varunarang at gmail.com Sat Jun 30 17:19:27 2012 From: varunarang at gmail.com (Varun Narang) Date: Sat, 30 Jun 2012 20:49:27 +0530 Subject: [BangPypers] BangPypers Digest, Vol 58, Issue 27 In-Reply-To: References: Message-ID: Thanks Navin and Anand, Can you please refer me to a link where I can find more details around the representation of numbers, please. Thanks again for big help. -- Best, Varun Narang. 2 is not equal to 3, not even for large values of 2. - Grabel's Law On Sat, Jun 30, 2012 at 3:30 PM, wrote: > Send BangPypers mailing list submissions to > bangpypers at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/bangpypers > or, via email, send a message with subject or body 'help' to > bangpypers-request at python.org > > You can reach the person managing the list at > bangpypers-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of BangPypers digest..." > > > Today's Topics: > > 1. Need help understanding -9 >> 1 (Varun Narang) > 2. Re: Need help understanding -9 >> 1 (Navin Kabra) > 3. Re: Need help understanding -9 >> 1 (Anand Chitipothu) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 29 Jun 2012 15:40:30 +0530 > From: Varun Narang > To: bangpypers at python.org > Subject: [BangPypers] Need help understanding -9 >> 1 > Message-ID: > > > Content-Type: text/plain; charset=UTF-8 > > Hi all, > > I need some help understanding the right shift operation on -9. To my > understanding, it's represented as -0b1001, Now, if I shift it one place to > right, it should give me -0b0100, which is decimal equivalent of 4. but > running this on python console gives me -5. > > Please help me out here. > > Thanks, > Varun > > > ------------------------------ > > Message: 2 > Date: Fri, 29 Jun 2012 15:53:23 +0530 > From: Navin Kabra > To: Varun Narang , bangpypers at python.org > Subject: Re: [BangPypers] Need help understanding -9 >> 1 > Message-ID: <87k3yqpgbo.fsf at smriti.com> > Content-Type: text/plain; charset=us-ascii > > Varun Narang writes: > > I need some help understanding the right shift operation on -9. To my > > understanding, it's represented as -0b1001, > > No. Integers are represented using 2s complement integers. So -9 will > actually be represented by 0xfffffff7. When you shift it to the right, a > '1' is shifted into the empty slot on the left. S you get: 0xfffffffb > which is -5. > > > > > ------------------------------ > > Message: 3 > Date: Fri, 29 Jun 2012 16:03:54 +0530 > From: Anand Chitipothu > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] Need help understanding -9 >> 1 > Message-ID: > > > Content-Type: text/plain; charset=ISO-8859-1 > > On Fri, Jun 29, 2012 at 3:40 PM, Varun Narang > wrote: > > Hi all, > > > > I need some help understanding the right shift operation on -9. To my > > understanding, it's represented as -0b1001, Now, if I shift it one place > to > > right, it should give me -0b0100, which is decimal equivalent of 4. but > > running this on python console gives me -5. > > > > Please help me out here. > > -9 is represented internally as 0xFFFFFFF7. > > The last byte in binary is 11110111. When on rightshift, it becomes > 11111011. Which is 0xFFFFFFFB, hex representation of -5. > > Try this to see how -9 and -5 are represented internally: > > >>> import ctypes > >>> libc = ctypes.CDLL("libc.so.6") > >>> a = libc.printf("%x\n", -9) > fffffff7 > >>> a = libc.printf("%x\n", -5) > fffffffb > > This works only on linux. > > Read https://en.wikipedia.org/wiki/Signed_number_representations how > negative integers are represented internally. > > Anand > > > ------------------------------ > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > > End of BangPypers Digest, Vol 58, Issue 27 > ****************************************** >