Re: [Tutor] The Way
How do you get involved in open source project? Thank you Monika -- Original Message -- From: Alan Gauld via Tutor To: tutor@python.org Subject: Re: [Tutor] The Way Date: Tue, 19 Jul 2016 00:55:07 +0100 On 18/07/16 22:32, Skapeven Punkboard wrote: > Hello I have programmed a lot but only basic stuff, I never got further > from a point in which I had to start looking for information in forums. > Since the tutorials wherent enogh. I would like to learn more by trying to > solve usefull stuff with or for others. How could I do this and > participate in the comunity? You could try an open source project. Get involved with that, start by fixing bugs or testing or writing documentation. Or even hang out here and answer some questions. They come at all levels and as you gain experience you can answer more advanced topics. Or do both... :-) -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor Affordable Wireless Plans Set up is easy. Get online in minutes. Starting at only $9.95 per month! www.netzero.net?refcd=nzmem0216 ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] The Way
On 19/07/16 06:36, monik...@netzero.net wrote: > How do you get involved in open source project? Generally you just visit the project homepage and there will be information there. For example for Python itself you can go to: https://wiki.python.org/moin/Community And for Blender https://www.blender.org/get-involved/ For smaller projects you can simply email the author. Although you should probably download and read the source first and have a look to see if its something you could handle. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
[Tutor] Need Your help
I'm creating a mobile application [ http://e-aadhaarcard.in ] and I'm using python for a desktop server. However, I don't have access to a static IP on the desktop, but do have a website. Is it possible to connect from mobile http website -> desktop server and back? If I got you right, I would skip the website entirely. Just connect directly to your desktop from the mobile, using a dynamic DNS service. Maybe the bump you need could be: http://dnslookup.me/dynamic-dns/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
[Tutor] Help me out please
Hi, First of all I'm gonan introduce myself. My name is Marc and I'm a student and also a python's programmer begginer. I've been studying/learning python and now I need some help to finish my project. I have two scripts, one of them in python (the main script) and the other one written in html. Well, is just a brief javascript (an app) that I took by Github. I need to change a variable inside this html script. I was wondering wether I could change this variable from my python script or not. Is there some way to do it? Thanks in advance and sorry for the inconvenience. -- *Marc Sànchez Quibus* ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Need Your help
> I'm creating a mobile application [ http://e-aadhaarcard.in ] and I'm using > python for a desktop server. However, I don't have access to a static IP on > the desktop, but do have a website. Is it possible to connect from mobile > http website -> desktop server and back? That all depends on how your website is set up. Ultimately the app needs an IP address to connect to. Regardless of how the actual IP address is allocated (DHCP or static) there needs to be a translation between the web site logical address name (www.foo.com) and the actual IP address (123.234.2.1). If you have the web site registered with some kind of DNS setup that translates the logical address to the IP address Then the app just needs to use the logical address and it all should just work. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Help me out please
On 19/07/16 12:31, Marc Sànchez Quibus wrote: > and now I need some help to finish my project. > I have two scripts, one of them in python (the main script) and the other > one written in html. Well, is just a brief javascript (an app) that I took > by Github. I need to change a variable inside this html script. I was > wondering wether I could change this variable from my python script or not. > Is there some way to do it? The easiest way is to put the entire html code into a string inside a module: # file: myhtml.py html = """ Hello %s """ Then import that and use string formatting to insert the variable #file: myscript.py import myhtml myvar = "World" print myhtml.html % myvar Instead of printing you could overwrite the original html file. Or you could write a web based app using a framework like Flask or Pylons and call your myscript.py from a web url and get it to just serve the html string directly. We don't know enough about your system and how the two scripts are related to say more than that. But it might give you some ideas. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Help me out please
On Jul 19, 2016 9:24 AM, "Marc Sànchez Quibus" wrote: > > Hi, > First of all I'm gonan introduce myself. My name is Marc and I'm a student > and also a python's programmer begginer. I've been studying/learning python > and now I need some help to finish my project. > I have two scripts, one of them in python (the main script) and the other > one written in html. Well, is just a brief javascript (an app) that I took > by Github. I need to change a variable inside this html script. I was > wondering wether I could change this variable from my python script or not. > Is there some way to do it? There might be. Tell us more about your situation. > Thanks in advance and sorry for the inconvenience. Since we are here to help, the only inconvenience his when we don't get enough information. That seems to be typical for first time questioners. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
[Tutor] python cgi single double quotes
Hi I wrote python+cgi script on hostgator server and I could embed html like:- code folder :- /home/userName/public_html/*.cgi #!/usr/bin/env python print "Content-Type:text/html\n\n" print print """ ... ... """ The above style / way of coding works. Even on my laptop where the code is in /var/www/ Now I have taken a VPS, using command line, I installed apache2.4, python 2.7, but I am not able to use the same code with triple quotes (""") to open and close the code block. I am forced to use #!/usr/bin/env python import cgi import psycopg2 print "Content-type:text/html\r\n\r\n" print '' print '' print '...' print '' Do I need to do some thing to apache config such that I can use Triple quote to embed. Also, if I ReUse some of the previous code, it give 500 error. Any solutions ? Thanks Nitin ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] python cgi single double quotes
On 19/07/16 19:43, nitin chandra wrote: > Now I have taken a VPS, using command line, I installed apache2.4, > python 2.7, but I am not able to use the same code with triple quotes > (""") to open and close the code block. > > I am forced to use > > print "Content-type:text/html\r\n\r\n" > print '' > print '' > Do I need to do some thing to apache config such that I can use Triple > quote to embed. Triple quotes should work anywhere Python works. But first I'd check your python environment. Which interpreter is actually running for example? Try import sys ... print " + "sys.version + "" ... The 500 error sounds like an apache setup or maybe permissions issue. Are your files readable/executable by Apache? -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
[Tutor] pyrouge
Hatd I sirI used pyrouge package for evaluation rouge package and I have one problem that i don't know how to create settings.ini file and what i put in this file. This file found in Rouge155().py please can you help me. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] pyrouge
On 19/07/16 23:14, zuhair ali via Tutor wrote: > I used pyrouge package for evaluation rouge package > and I have one problem that i don't know how to > create settings.ini file and what i put in this file. This list is for the Python language and its standard library so rouge() is a bit off topic. Whether you get any help will depend on whether anyone here has ever used it. You will likely get more help on the pyrouge support forum if such exists. A quick look at the web site suggests not. Failing that you could try the main python list or even emailing the pyrouge author. Although of the 3 contributors only Federico Barrios seems to have an email address! -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] pyrouge
On Tue, Jul 19, 2016 at 10:14:59PM +, zuhair ali via Tutor wrote: > Hatd I sirI used pyrouge package for evaluation rouge package and I > have one problem that i don't know how to create settings.ini file and > what i put in this file. This file found in Rouge155().py please can > you help me. I am sorry, I don't know pyrouge. Nut have you tried these? https://www.google.com.au/search?q=pyrouge+settings.ini https://duckduckgo.com/?q=pyrouge%20settings.ini You could try just creating an empty file "settings.ini" and putting it where pyrouge expects to find it. -- Steve ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor