[BangPypers] [JOBS] Python/Django Internship position
Hi, Looking for Fresh college graduates for Internship position at Noida. We are a internet based startup started by IIT, BITS alumnus. Requirements for the internship: • Strong passion for learning. • Strong background in any of these languages C++/Python. • Knowledge of Data-Structures and Algorithms. • Experience using Linux/Unix. * Knowledge of Django/web framework will be a plus. Awards: · Informal and entrepreneurial environment. - Great learning opportunity - Stipend will be paid If any one interested please mail us at er.pu...@gmail.com. Thanks, Puneet ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] python framework for android
kracekumar ramaraju writes: > Hi > >> If it has Java, why not use write the apps in Python using Jython? >> > >> >> > Frankly speaking Jython isn't that extensively used as JRuby. [...] Probably because CPython has *much* 3rd party libraries (and batteries) than does MRI/YARV (the standard Ruby). If you want decent libs, you have to use the Java ones via. Jruby. Also, CPython atleast was faster than the MRI at their times of release. You didn't have to move to the JVM to get decent performance. Also, till about 1.5 years ago, Jython was lagging behind standard Python too much to be really usable. I don't think Jruby was very far away from the standard Ruby (although that might be because of the of the other two reasons above). -- ~noufal http://nibrahim.net.in A little pain never hurt anyone. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] python framework for android
Hi > If it has Java, why not use write the apps in Python using Jython? > > > > Frankly speaking Jython isn't that extensively used as JRuby. > I recollect that for using Jython for mobiles where j2me was > previously suitable is not possible because jython does not work well > with j2me kind of class/libraries. > It is more for standard java (java SE) and I guess, similar arguments > hold for android too and that is why a lot of projects are spawning > trying to support jython on android. > > For mixing it pure java applications, Jython is fanastic. > > > -- > Senthil > ___ > BangPypers mailing list > BangPypers@python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- * Thanks & Regards "Talk is cheap, show me the code" -- Linus Torvalds kracekumar www.kracekumar.com * ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] python framework for android
On Tue, Jan 10, 2012 at 10:13 AM, Anand Chitipothu wrote: > > If it has Java, why not use write the apps in Python using Jython? > I recollect that for using Jython for mobiles where j2me was previously suitable is not possible because jython does not work well with j2me kind of class/libraries. It is more for standard java (java SE) and I guess, similar arguments hold for android too and that is why a lot of projects are spawning trying to support jython on android. For mixing it pure java applications, Jython is fanastic. -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] python framework for android
2012/1/4 Navin Kabra > On Wed, Jan 4, 2012 at 11:37 AM, Kenneth Gonsalves > wrote: > > can anyone recommend a python framework for android? > > Negative vote for SL4A (previously known as ASE - Android Scripting > Environment). I have played with it, and I think it is largely a toy - > it is good for personal use - quick scripts for automating things you > like to do, but not useful for anything serious. > > Also, I haven't found anything else that allows Python programming for > Android and could be used in developing serious apps. Might be forced > to use Java or JavaScript :-( > If it has Java, why not use write the apps in Python using Jython? Anand ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] python framework for android
On Wed, Jan 4, 2012 at 12:25 PM, Kenneth Gonsalves wrote: > On Wed, 2012-01-04 at 14:24 +0800, Senthil Kumaran wrote: > > On Wed, Jan 4, 2012 at 2:18 PM, Kenneth Gonsalves > > wrote: > > > > > > am looking at kivy right now > > > > Looks neat. I would like to try that one too. > > there was a wonderful talk on it in the last pycon. > Some more activity on the topic : http://www.h-online.com/open/news/item/Python-for-Android-launched-1406039.html Dhananjay ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] re module help
> > cmd = "sdptool -i hci0 search OPUSH > sdptool" > > working file standalone fine. but over stream not getting output. > > check link > > http://dpaste.com/684335/ > > In the the code above, as well as from dpaste link, you are already redirecting to a file. Try "cmd = "sdptool -i hci0 search OPUSH" instead, so that output is sent to stdout/stderr and hopefully you'll get it captured via pipe. You should also check the exit code via wait() or close() . See http://docs.python.org/library/os.html Finally, if you are using python 2.7, as noufal suggested, use subprocess module instead. -Mandar ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] re module help
On Mon, Jan 9, 2012 at 4:57 PM, Ganesh Kumar wrote: >> > I tried also subprocess module, But didn't got result, I tried the same >> > pattern. But didn't match the string over the stream. >> >> Are you sure you're getting the output from the command in your string? >> > > I got output from terminal command working fine Is your tool, writing to stdout or stderr? Regards, BG -- Baishampayan Ghose b.ghose at gmail.com ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] re module help
On 9 January 2012 16:57, Ganesh Kumar wrote: > Hi. > > > > > > I tried also subprocess module, But didn't got result, I tried the same > > > pattern. But didn't match the string over the stream. > > > > Are you sure you're getting the output from the command in your string? > > > > I got output from terminal command working fine > > > > Verify that and then you can, if necessary, debug the regular > > > regular expression also working fine. i checked in stored file checking (I > mention sdptool file) > > > cmd = "sdptool -i hci0 search OPUSH > sdptool" > > working file standalone fine. but over stream not getting output. > > check link > > http://dpaste.com/684335/ > > I don't want read external file. I want over program i want get > output, please guide me. how to get output. > > > -Ganesh. > > Did I learn something today? If not, I wasted it. > ___ > BangPypers mailing list > BangPypers@python.org > http://mail.python.org/mailman/listinfo/bangpypers > A fleeting look; so may be wrong Is your return statement wrongly indented? -- Asokan Pichai *---* We will find a way. Or, make one. (Hannibal) ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] re module help
Hi. > > > I tried also subprocess module, But didn't got result, I tried the same > > pattern. But didn't match the string over the stream. > > Are you sure you're getting the output from the command in your string? > I got output from terminal command working fine > Verify that and then you can, if necessary, debug the regular > regular expression also working fine. i checked in stored file checking (I mention sdptool file) cmd = "sdptool -i hci0 search OPUSH > sdptool" working file standalone fine. but over stream not getting output. check link http://dpaste.com/684335/ I don't want read external file. I want over program i want get output, please guide me. how to get output. -Ganesh. Did I learn something today? If not, I wasted it. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] re module help
Ganesh Kumar writes: > Hi sir, > > I tried also subprocess module, But didn't got result, I tried the same > pattern. But didn't match the string over the stream. Are you sure you're getting the output from the command in your string? Verify that and then you can, if necessary, debug the regular expression. [...] -- ~noufal http://nibrahim.net.in Live within your income, even if you have to borrow to do so. -- Josh Billings ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] re module help
Hi sir, I tried also subprocess module, But didn't got result, I tried the same pattern. But didn't match the string over the stream. > >>> import subprocess > >>> s = subprocess.Popen(["head", "/etc/hosts"], stdout = subprocess.PIPE) > >>> hosts_head = s.stdout.read() > >>> print hosts_head > 127.0.0.1 localhost > > [...] > > Use that get your output and then parse it with the regexp. > http://dpaste.com/684339/ > > > -Ganesh. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] re module help
Ganesh Kumar writes: > Hi Guys, > > I have created regular expression with os modules, I have created file > sdptool to match the regular expression pattern, will print the result. > I want without creating file how to get required output, I tried but i > didn't get output correctly, over stream. You should use the subprocess module to deal with external commands. >>> import subprocess >>> s = subprocess.Popen(["head", "/etc/hosts"], stdout = subprocess.PIPE) >>> hosts_head = s.stdout.read() >>> print hosts_head 127.0.0.1 localhost [...] Use that get your output and then parse it with the regexp. -- ~noufal http://nibrahim.net.in The best cure for insomnia is to get a lot of sleep. -W. C. Fields ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
[BangPypers] re module help
Hi Guys, I have created regular expression with os modules, I have created file sdptool to match the regular expression pattern, will print the result. I want without creating file how to get required output, I tried but i didn't get output correctly, over stream. #! /usr/bin/python import os,re def scan(): cmd = "sdptool -i hci0 search OPUSH > sdptool" fp = os.popen(cmd) results = [] l = open("sdptool").read() pattern = r"^Searching for OPUSH on (\w\w(:\w\w)+).*?Channel: (\d+)" r = re.compile(pattern, flags=re.MULTILINE|re.DOTALL) while True: for match in r.finditer(l): g = match.groups() results.append((g[0],'phone',g[2])) return results ## output [('00:15:83:3D:0A:57', 'phone', '1')] http://dpaste.com/684335/ please guide me. with out file creating, to archive required output. Did I learn something today? If not, I wasted it. ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers
Re: [BangPypers] Python learning resources.
Another useful addition could be: http://www.tutorialspoint.com/python/ - Sujit On Mon, Jan 9, 2012 at 1:16 PM, Pratap Chakravarthy wrote: > Saw this mail in MumPy user group. > > > > I am not sure of any institutes, however I also doubt if there are any. > But, there are a lot of online resources: > http://code.google.com/edu/languages/google-python-class/index.html > http://www.learnpythonthehardway.org/ > http://www.learnpython.org/ > http://www.spoken-tutorials.org > http://inventwithpython.com/ > Google ! > Also, some very good books for beginners are: Head First Python and > Head First Programming. You can then read Learning Python and > Programming Python, which offer in-depth coverage of the language. And > the Python Essential Reference by David Beazley is always a good book > to have. > > Happy learning ! > > -- > Dhruv Baldawa > (http://www.dhruvb.com) > ___ > BangPypers mailing list > BangPypers@python.org > http://mail.python.org/mailman/listinfo/bangpypers > ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers