From surjendu at brandandme.com Mon Aug 1 15:51:44 2011 From: surjendu at brandandme.com (Surjendu Kuila) Date: Mon, 1 Aug 2011 19:21:44 +0530 Subject: [Ncr-Python.in] Looking for an experienced python programmer for an exciting startup Message-ID: Dear All We are looking for an experienced python programmer who would join us as a *co-founder with competitive salary and equity in the company*. Brandandme.com is founded by 2 IIT/IIM graduates with extensive experience in the US, Europe and India. Whosoever is interested kindly contact surjendu at brandandme.com Cheers Surjendu -------------- next part -------------- An HTML attachment was scrubbed... URL: From narendra at narendrasisodiya.com Mon Aug 1 19:02:22 2011 From: narendra at narendrasisodiya.com (Narendra Sisodiya) Date: Mon, 1 Aug 2011 22:32:22 +0530 Subject: [Ncr-Python.in] get url from string Message-ID: Let STR = "Hello Website is http://google.com/ please visit" I need to extract url using python can anybody help ?? -- ??????????????????????????? ? Narendra Sisodiya ? http://narendrasisodiya.com ??????????????????????????? -------------- next part -------------- An HTML attachment was scrubbed... URL: From narendra at narendrasisodiya.com Mon Aug 1 19:11:00 2011 From: narendra at narendrasisodiya.com (Narendra Sisodiya) Date: Mon, 1 Aug 2011 22:41:00 +0530 Subject: [Ncr-Python.in] get url from string In-Reply-To: References: Message-ID: On Mon, Aug 1, 2011 at 10:32 PM, Narendra Sisodiya < narendra at narendrasisodiya.com> wrote: > Let > > STR = "Hello Website is http://google.com/ please visit" > I got import re re.findall('(?:http://|www.)[^"\' ]+', text) But it only fine one url. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tavishnaruka at gmail.com Mon Aug 1 19:16:46 2011 From: tavishnaruka at gmail.com (Tavish Naruka) Date: Mon, 1 Aug 2011 22:46:46 +0530 Subject: [Ncr-Python.in] get url from string In-Reply-To: References: Message-ID: On Mon, Aug 1, 2011 at 10:32 PM, Narendra Sisodiya < narendra at narendrasisodiya.com> wrote: > Let > > STR = "Hello Website is http://google.com/ please visit" > > I need to extract url using python > can anybody help ?? > > import re a = "Hello Website is http://google.com/ please visit" b=a.split(' ') Re = re.compile("http://") for x in b: m = Re.search(x) if m != None: print x -- Tavish Naruka -------------- next part -------------- An HTML attachment was scrubbed... URL: From narendra at narendrasisodiya.com Mon Aug 1 19:18:46 2011 From: narendra at narendrasisodiya.com (Narendra Sisodiya) Date: Mon, 1 Aug 2011 22:48:46 +0530 Subject: [Ncr-Python.in] get url from string In-Reply-To: References: Message-ID: On Mon, Aug 1, 2011 at 10:46 PM, Tavish Naruka wrote: > > > On Mon, Aug 1, 2011 at 10:32 PM, Narendra Sisodiya < > narendra at narendrasisodiya.com> wrote: > >> Let >> >> STR = "Hello Website is http://google.com/ please visit" >> >> I need to extract url using python >> can anybody help ?? >> >> > import re > > a = "Hello Website is http://google.com/ please visit" > b=a.split(' ') > Re = re.compile("http://") > for x in b: > m = Re.search(x) > if m != None: > print x > > -- > Tavish Naruka > > Thanks !! -------------- next part -------------- An HTML attachment was scrubbed... URL: From ragsagar at gmail.com Tue Aug 2 04:13:57 2011 From: ragsagar at gmail.com (ragsagar) Date: Tue, 2 Aug 2011 07:43:57 +0530 Subject: [Ncr-Python.in] get url from string In-Reply-To: References: Message-ID: On Mon, Aug 1, 2011 at 10:48 PM, Narendra Sisodiya wrote: > > > On Mon, Aug 1, 2011 at 10:46 PM, Tavish Naruka > wrote: >> >> >> On Mon, Aug 1, 2011 at 10:32 PM, Narendra Sisodiya >> wrote: >>> >>> Let >>> >>> STR = "Hello Website is http://google.com/ please visit" >>> >>> I need to extract url using python >>> can anybody help ?? >>> >> [i for i in STR.split() if i.startswith("http://")] -- blog : ragsagar.wordpress.com mail id : python -c "print '@'.join(['ragsagar','.'.join([x for x in ['gmail','com']])])" From sunmpatil at gmail.com Tue Aug 2 14:46:43 2011 From: sunmpatil at gmail.com (Sunil Patil) Date: Tue, 2 Aug 2011 18:16:43 +0530 Subject: [Ncr-Python.in] Python Programmer Message-ID: Hi, Looking for freelancer Python Progrmmer - we want to develop web based application. Interested can contact off-line to below, Sunil Patil. Mobile No +91 9552508676 -------------- next part -------------- An HTML attachment was scrubbed... URL: From gvkalra at gmail.com Wed Aug 3 20:19:11 2011 From: gvkalra at gmail.com (Gaurav Kalra) Date: Wed, 3 Aug 2011 23:49:11 +0530 Subject: [Ncr-Python.in] RapidSMSers Delhi/NCR Message-ID: Hi List. Anyone in Delhi/NCR working (or experienced) with a project on RapidSMS ? -- Gaurav Kalra +91-9717-620-649 From diptanuc at gmail.com Thu Aug 4 05:52:15 2011 From: diptanuc at gmail.com (Diptanu Choudhury) Date: Thu, 4 Aug 2011 09:22:15 +0530 Subject: [Ncr-Python.in] RapidSMSers Delhi/NCR In-Reply-To: References: Message-ID: <42B30281-0A3B-447A-8B4F-2D9A2402C70F@gmail.com> What do you want to know about it? I have worked with it in the past and have contributed to it as well. It is backed by UNICEF but is kind of dying now because it doesn't scale well. Look at a project called vumi on github. Sent from my iPhone On 03-Aug-2011, at 11:49 PM, Gaurav Kalra wrote: > Hi List. > > Anyone in Delhi/NCR working (or experienced) with a project on RapidSMS ? > > -- > Gaurav Kalra > +91-9717-620-649 > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines From narendra at narendrasisodiya.com Mon Aug 8 14:22:07 2011 From: narendra at narendrasisodiya.com (Narendra Sisodiya) Date: Mon, 8 Aug 2011 17:52:07 +0530 Subject: [Ncr-Python.in] [New Project] Get Twitter Links Message-ID: Visit -> https://github.com/nsisodiya/Get-Twitter-Links This is a URL extraction tool which extract URL/links from Twitter Example -- == Get_Twitter_Links_of_User.py == ./Get_Twitter_Links_of_User.py nsisodiya 10 User : nsisodiyahttp://blog.narendrasisodiya.com/2011/08/how-to-learn-php.htmlhttp://narendrasisodiya.com/Portfoliohttp://www.softwarefreedom.in/index.php?option=com_content&view=article&id=93&Itemid=80 http://www.amankapaigham.com/2011/08/blog-post.htmlhttp://twitpic.com/5ztnhghttp://groups.google.com/group/ubuntu-uck-remasterhttp://blog.narendrasisodiya.com/2011/08/idea-linux-daily-links.html So the python script Get_Twitter_Links_of_User.py will download latest 10 Tweets from user http://twitter.com/nsisodiya and print URL from those 10 Tweets. It takes two argument, UserName and Number of Tweets to be scanned == Get Twitter Links of Multiple Users == STEP 1 - Add Users narendra at localhost$ gedit listuser STEP 2 - Initialize User narendra at localhost$ ./InitiateUser.py This will list total number tweets of a user. This is needed to calculate Total number of latest Tweets by that user STEP 3 - Wait - you must wait for some time so that user Tweets some latest link/URL STEP 4 - narendra at localhost$ ./Get_Twitter_Links.py This Will print latest URL of users.. -- ??????????????????????????? ? Narendra Sisodiya ? http://narendrasisodiya.com ??????????????????????????? -------------- next part -------------- An HTML attachment was scrubbed... URL: From surjendu at brandandme.com Mon Aug 8 19:01:20 2011 From: surjendu at brandandme.com (Surjendu Kuila) Date: Mon, 8 Aug 2011 22:31:20 +0530 Subject: [Ncr-Python.in] Looking for an experienced python programmer for an exciting startup founded by IIT/IIM alumni. Location - Delhi NCR Message-ID: Dear All We are looking for an experienced python programmer who would join us as a *co-founder with competitive salary and equity in the company*. Brandandme.com is founded by 2 IIT/IIM graduates with extensive experience in the US, Europe and India. Whosoever is interested kindly contact surjendu at brandandme.com Cheers Surjendu -------------- next part -------------- An HTML attachment was scrubbed... URL: From gvkalra at gmail.com Tue Aug 9 19:40:43 2011 From: gvkalra at gmail.com (Gaurav Kalra) Date: Tue, 9 Aug 2011 23:10:43 +0530 Subject: [Ncr-Python.in] [New Project] Get Twitter Links In-Reply-To: References: Message-ID: The re for matching URLS is "http://" used with re.search in "def Get_URL_FromText(text):" The re can be improved to consider other cases as well. Even the most basic https isn't supported. Even this tweet won't work if am correctly analyzing : MY DUMMY TWEEThttp://github.com WITHOUT SPACE BETWEEN TEXT AND URL ... It may print TWEEThttp://github.com as the target url if my glance is correct ... best wishes -- Gaurav Kalra +91-9717-620-649 On Mon, Aug 8, 2011 at 17:52, Narendra Sisodiya wrote: > Visit -> https://github.com/nsisodiya/Get-Twitter-Links > > This is a URL extraction tool which extract URL/links from Twitter > > Example -- > == Get_Twitter_Links_of_User.py == > ./Get_Twitter_Links_of_User.py nsisodiya 10 > User : nsisodiya > http://blog.narendrasisodiya.com/2011/08/how-to-learn-php.html > http://narendrasisodiya.com/Portfolio > http://www.softwarefreedom.in/index.php?option=com_content&view=article&id=93&Itemid=80 > http://www.amankapaigham.com/2011/08/blog-post.html > http://twitpic.com/5ztnhg > http://groups.google.com/group/ubuntu-uck-remaster > http://blog.narendrasisodiya.com/2011/08/idea-linux-daily-links.html > > > So the python script Get_Twitter_Links_of_User.py will download latest 10 > Tweets > from user http://twitter.com/nsisodiya and print URL from those 10 Tweets. > > It takes two argument, UserName and Number of Tweets to be scanned > > == Get Twitter Links of Multiple Users == > > STEP 1 - Add Users > narendra at localhost$ gedit listuser > > STEP 2 - Initialize User > > narendra at localhost$ ./InitiateUser.py > This will list total number tweets of a user. This is needed to calculate > Total > number of latest Tweets by that user > > STEP 3 - Wait - you must wait for some time so that user Tweets some latest > link/URL > > > STEP 4 - > narendra at localhost$ ./Get_Twitter_Links.py > > This Will print latest URL of users.. > > -- > ??????????????????????????? > ?? ? Narendra Sisodiya > ?? ? http://narendrasisodiya.com > ??????????????????????????? > > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines > From narendra at narendrasisodiya.com Tue Aug 9 20:56:16 2011 From: narendra at narendrasisodiya.com (Narendra Sisodiya) Date: Wed, 10 Aug 2011 00:26:16 +0530 Subject: [Ncr-Python.in] [New Project] Get Twitter Links In-Reply-To: References: Message-ID: On Tue, Aug 9, 2011 at 11:10 PM, Gaurav Kalra wrote: > The re for matching URLS is "http://" used with re.search in "def > Get_URL_FromText(text):" > > The re can be improved to consider other cases as well. Even the most > basic https isn't supported. > Please improve it and send me the patch... I will add your patch.. I am new to python.. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gvkalra at gmail.com Tue Aug 9 23:11:04 2011 From: gvkalra at gmail.com (Gaurav Kalra) Date: Wed, 10 Aug 2011 02:41:04 +0530 Subject: [Ncr-Python.in] [New Project] Get Twitter Links In-Reply-To: References: Message-ID: Hi Narendra. Here are few pointers to follow: 1. What you did by parsing the XML from twitter was redundant ... Twitter has very nice JSON interface to it's REST API. 2. Look out for twitter entities : https://dev.twitter.com/docs/tweet-entities .... The urls entity has a field called "url" which contains the URL being used inside the tweet .... 3. Keep the URL as http://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&count="+ str(count) +"&screen_name=" + user NOTICE include_entities + the JSON format ... 4. Use simplejson for parsing JSON format .... e.g. feed = urllib2.urlopen(URL) feedlist = simplejson.load(feed) #list has as many elements as the count variable in URL so, for each list element (ex. element 2) excess : feedlist[1]["entities"]["urls"] each such output is a list of dictionary and you need to access the "url" key in each such list element ... in case there is only one url inside the tweet text, then there will only be one element inside the list .... so, we'll have : feedlist[1]["entities"]["urls"][0]["url"] as the target url to be printed on the screen .... so that practically reduces your work to ZERO ... all the parsing methods .... regular expressions etc that you have written have no importance ........ play with python / twitter api .... this was also my first shot at it .... cheers ... -- Gaurav Kalra +91-9717-620-649 On Wed, Aug 10, 2011 at 00:26, Narendra Sisodiya wrote: > > > On Tue, Aug 9, 2011 at 11:10 PM, Gaurav Kalra wrote: >> >> The re for matching URLS is "http://" used with re.search in "def >> Get_URL_FromText(text):" >> >> The re can be improved to consider other cases as well. Even the most >> basic https isn't supported. > > Please improve it and send me the patch... I will add your patch.. I am new > to python.. > > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines > From narendra at narendrasisodiya.com Wed Aug 10 06:04:24 2011 From: narendra at narendrasisodiya.com (Narendra Sisodiya) Date: Wed, 10 Aug 2011 09:34:24 +0530 Subject: [Ncr-Python.in] [New Project] Get Twitter Links In-Reply-To: References: Message-ID: On Wed, Aug 10, 2011 at 2:41 AM, Gaurav Kalra wrote: > Hi Narendra. > > Here are few pointers to follow: > > 1. What you did by parsing the XML from twitter was redundant ... > Twitter has very nice JSON interface to it's REST API. > > Good... I will add JSON Parsing... actually I am comfortable with minidom > 2. Look out for twitter entities : > https://dev.twitter.com/docs/tweet-entities .... The urls entity has a > field called "url" which contains the URL being used inside the tweet > .... > > 3. Keep the URL as > > http://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&count= > "+ > str(count) +"&screen_name=" + user > NOTICE include_entities + the JSON format ... > > 4. Use simplejson for parsing JSON format .... > e.g. > feed = urllib2.urlopen(URL) > feedlist = simplejson.load(feed) #list has as many elements as the > count variable in URL > > so, for each list element (ex. element 2) excess : > feedlist[1]["entities"]["urls"] > > each such output is a list of dictionary and you need to access the > "url" key in each such list element ... in case there is only one url > inside the tweet text, then there will only be one element inside the > list .... so, we'll have : > feedlist[1]["entities"]["urls"][0]["url"] > as the target url to be printed on the screen .... > Thanks.. I will add these changes.. also, if I use json then 'data to be download' will be more.. RSS has less number of fields.. also url is json will be like http:\/\/ur1.ca\/4v0r4 I have to change it proper url.. -------------- next part -------------- An HTML attachment was scrubbed... URL: From subhranath at gmail.com Wed Aug 10 11:23:45 2011 From: subhranath at gmail.com (Subhranath Chunder) Date: Wed, 10 Aug 2011 14:53:45 +0530 Subject: [Ncr-Python.in] [Sharing] django-custom-auths Message-ID: Hi, I was working on these django applications which simplifies the use of third-party logins for a django project without breaking any existing code. My concerns were: - No existing code breakage. - Easy integration with django's own authenication system API. This is a work in progress with perhaps no detailed documentation as of now. So, I've included an entire django project itself for now, to check on it's working. Currently, the Facebook authentication system is fully functional (using the current OAuth2 based Graph API implementation). If anyone is interested to try it out, you can check https://github.com/subhranath/django-custom-auths Any suggestions for improvements are very welcome. Thanks, Subhranath Chunder. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gvkalra at gmail.com Wed Aug 10 12:47:08 2011 From: gvkalra at gmail.com (Gaurav Kalra) Date: Wed, 10 Aug 2011 16:17:08 +0530 Subject: [Ncr-Python.in] [New Project] Get Twitter Links In-Reply-To: References: Message-ID: > Thanks.. I will add these changes.. > also, if I use json then 'data to be download' will be more.. RSS has less > number of fields.. I would still stick on with json ... Read a very good discussion on "parsing xml" here : http://mail.python.org/pipermail/bangpypers/2011-August/subject.html which may be nearly mapped to this situation as well > > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines > From subhranath at gmail.com Sun Aug 14 23:30:03 2011 From: subhranath at gmail.com (Subhranath Chunder) Date: Mon, 15 Aug 2011 03:00:03 +0530 Subject: [Ncr-Python.in] [Sharing] Django custom model field (with full example) Message-ID: A full example showing how we can write a django custom model field. http://scratch-blog.appspot.com/blog/2011/08/15/django-timedelta-custom-model-field-with-full-example/ -- Thanks, Subhranath Chunder. www.subhranath.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From richnusgeeks at gmail.com Thu Aug 18 05:45:28 2011 From: richnusgeeks at gmail.com (Ankur Sharma) Date: Thu, 18 Aug 2011 09:15:28 +0530 Subject: [Ncr-Python.in] tutorial on Extending Python via Shared Libraries Message-ID: Hi All, Here is the link for my original print article published in Linux for You magazine on *Python and C/C++ interaction* : http://t.co/d4TqsXH -- Regards, Ankur -------------------------------------------------------- RichNusGeeks Creatives where technologies meet creativity www.richnusgeeks.com www.richnusgeeks.wordpress.com -------------------------------------------------------- IMPORTANT NOTICE: This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by email and delete the message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From richnusgeeks at gmail.com Thu Aug 25 16:38:18 2011 From: richnusgeeks at gmail.com (Ankur Sharma) Date: Thu, 25 Aug 2011 10:38:18 -0400 Subject: [Ncr-Python.in] Ncr-Python.in Digest, Vol 7, Issue 8 In-Reply-To: References: Message-ID: Hi Sunil, First of all congrats for your interest in the real great technologies like GNU/Linux & Python etc. There are a tonnes of options for learning these so that is also highly confusing many times. I recommend the following for the starting : 1. You can learn Python on any of the platform as it's cross platform. I suggest to start it with free book http://greenteapress.com/thinkpython/index.html as that build the necessary foundation required to go to higher levels. Another great resource is http://software-carpentry.org/ and the programming language of instruction there is also Python, 2. Go to www.tldp.org and search the HowTo's and Guides there on GNU/Linux and Shell programming, 3. The www.wikipedia.org is great place to learn about anything and you could follow the links provided there, 4. After getting comfortable with both GNU/Linux and Python you can move to the other advance stuff also freely and openly available. I hope it works for you too like it's working for me (still I go through these sites sometimes) for many years in my Free Open Source Software journey. -- Regards, Ankur -------------------------------------------------------- RichNusGeeks Creatives where technologies meet creativity www.richnusgeeks.com www.richnusgeeks.wordpress.com -------------------------------------------------------- IMPORTANT NOTICE: This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by email and delete the message. Thank you. On Thu, Aug 25, 2011 at 8:01 AM, Sunil Patil wrote: > Hello Mr Ankur, > > I am new to Python and Linux also. I would like to learn the same. Can you > please help me to start up with learning these Free Open Source Technologies > > . > > Thanking you in advance, > > Regards, > > Sunil Patil. > +91 9552508676 > > > ---------- Forwarded message ---------- > From: > Date: Thu, Aug 18, 2011 at 3:30 PM > Subject: Ncr-Python.in Digest, Vol 7, Issue 8 > To: ncr-python.in at python.org > > > Send Ncr-Python.in mailing list submissions to > ncr-python.in at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/ncr-python.in > or, via email, send a message with subject or body 'help' to > ncr-python.in-request at python.org > > You can reach the person managing the list at > ncr-python.in-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Ncr-Python.in digest..." > > > Today's Topics: > > 1. tutorial on Extending Python via Shared Libraries (Ankur Sharma) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 18 Aug 2011 09:15:28 +0530 > From: Ankur Sharma > To: NCR Python Users Group India > Subject: [Ncr-Python.in] tutorial on Extending Python via Shared > Libraries > Message-ID: > > > Content-Type: text/plain; charset="iso-8859-1" > > Hi All, > > Here is the link for my original print article published in Linux for You > magazine on *Python and C/C++ interaction* : > > http://t.co/d4TqsXH > > -- > Regards, > Ankur > -------------------------------------------------------- > RichNusGeeks Creatives > where technologies meet creativity > > www.richnusgeeks.com > www.richnusgeeks.wordpress.com > -------------------------------------------------------- > > IMPORTANT NOTICE: This message is intended only for the use of the > individual or entity to which it is addressed, and may contain information > that is privileged, confidential and exempt from disclosure under > applicable > > law. If the reader of this message is not the intended recipient, you are > hereby notified that any dissemination, distribution or copying of this > communication is strictly prohibited. If you have received this > communication in error, please notify the sender immediately by email and > delete the message. Thank you. > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.python.org/pipermail/ncr-python.in/attachments/20110818/4a9b98dc/attachment-0001.html > > > > ------------------------------ > > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines > > End of Ncr-Python.in Digest, Vol 7, Issue 8 > ******************************************* > > > > -- > Sunil Patil. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: