From sateeshpyper at gmail.com Mon May 2 03:35:17 2016 From: sateeshpyper at gmail.com (Sateesh Kumar) Date: Mon, 2 May 2016 13:05:17 +0530 Subject: [BangPypers] [JOB]: Senior Backend developer @Netskope, Bangalore Message-ID: Hi all, Good Day. We are looking for a senior backend developer with below job profile for our organisation. Job Duties & Responsibilities: -- Help design and develop backend services used by Netskope product -- Integrate between various components within and external to Netskope using REST APIs as well as custom solutions. -- Work with the security research team and product management teams to understand the feature requests and convert them into Netskope product. -- Design data access solutions to optimally store, cache and retrieve data. -- Build APIs for delivering insights to the UI layer -- Work with devops on deployment strategies, monitoring & scaling services. Qualifications/Requirements -- Experience with building and using REST, SOAP and other web services API frameworks -- Programming experience in Python, C/C++ -- Experience using NoSQL(Mongo, Riak, Cassandra), SQL(MySQL, SQL Server, Oracle) and other such key-value data stores -- Experience with JSON, Protobuf, XML and other encoding standards -- Knowledge of OAUTH, SAML and other such authentication protocols -- Expert in data structures, distributed systems and algorithms -- Exposure to caching data layers like memcached, Redis is a plus -- Experience with designing and implementing fault-tolerant distributed systems is a plus -- Basic knowledge of HTTP, SSL standards -- BS or above in Computer Science -- 8+ years of industry experience Check below link for more information on Netskope. http://www.netskope.com/ thanks in advance, sateesh From hari at canre.in Mon May 2 13:11:10 2016 From: hari at canre.in (Hari Rajagopalan) Date: Mon, 2 May 2016 22:41:10 +0530 Subject: [BangPypers] Role - Software developer In-Reply-To: <5724a0ff.8ade420a.aec17.46d8@mx.google.com> References: <5724a0ff.8ade420a.aec17.46d8@mx.google.com> Message-ID: Below are some details that would give an indication of the kind of person that we are looking at. Please feel free to circulate this among your friends and associates. > > > > QUOTE > > > > Title: Software Developer > Role: Data Harvesting, Crawling, Analysis > > Programming Language: Python > Experience: 3-6 years > > Knowledge: Regular Expressions, Parsing, Web programming, Screen scraping, Bot development knowledge a plus. > > Tools: Selenium, BeautifulSoup, requests, Scrapy > Infra: Amazon AWS, boto useful > > Others: Some knowledge of Pandas, SciPy, R etc nice to have but not required. > > > > UNQUOTE > > > > Best regards > > Hari From santosh.chini at gmail.com Wed May 4 03:28:52 2016 From: santosh.chini at gmail.com (Santosh Chiniwar) Date: Wed, 4 May 2016 15:28:52 +0800 Subject: [BangPypers] Plotting Range [1e13 to 1e19] in linear scale Message-ID: Hi All, A. I have difficulty in plotting from range 1e13 to 1e19 on linear scale. Any help is appreciated. B. How to stack all graph at single page. I mean three graphs without using subplot. Since subplot has problem under for loop. Thank you PFA, Santosh ---------------------------------- Research Scholar, Taiwan (ROC), Mob: +886-905667324 The first principle is that you must not fool yourself-and you are the easiest person to fool..... Richard Feynman From manjushree at outlook.com Thu May 5 01:13:34 2016 From: manjushree at outlook.com (Manjushree Hegde) Date: Thu, 5 May 2016 05:13:34 +0000 Subject: [BangPypers] Looking for corporate Python Trainers Message-ID: Hello, I am looking for Python trainers for corporate training. Please let me know if anyone is interested in this. Regards, Manjushree Hegde. From suman.debnath at broadcom.com Thu May 5 01:18:36 2016 From: suman.debnath at broadcom.com (Suman Debnath) Date: Thu, 5 May 2016 10:48:36 +0530 Subject: [BangPypers] Looking for corporate Python Trainers In-Reply-To: References: Message-ID: <97a880f67f792df8713c7bbba0d832d2@mail.gmail.com> I would highly recommend Mr. Chandrashekhar Babu (https://www.linkedin.com/in/chandrashekarbabu?authType=name&authToken=WHf d&trk=wonton-desktop). He is the best training I have ever come across. You may like to reach out to him @ Email: chandrashekar.babu at gmail.com Mobile: +91-9884386075 (Mobile) Regards, Suman++ -----Original Message----- From: BangPypers [mailto:bangpypers-bounces+suman.debnath=broadcom.com at python.org] On Behalf Of Manjushree Hegde Sent: Thursday, May 05, 2016 10:44 AM To: bangPypers at python.org Subject: [BangPypers] Looking for corporate Python Trainers Hello, I am looking for Python trainers for corporate training. Please let me know if anyone is interested in this. Regards, Manjushree Hegde. _______________________________________________ BangPypers mailing list BangPypers at python.org https://mail.python.org/mailman/listinfo/bangpypers From manjushree at outlook.com Thu May 5 01:28:33 2016 From: manjushree at outlook.com (Manjushree Hegde) Date: Thu, 5 May 2016 05:28:33 +0000 Subject: [BangPypers] Looking for corporate Python Trainers In-Reply-To: <97a880f67f792df8713c7bbba0d832d2@mail.gmail.com> References: , <97a880f67f792df8713c7bbba0d832d2@mail.gmail.com> Message-ID: Thanks Suman, will reach out to him. ________________________________________ From: BangPypers on behalf of Suman Debnath via BangPypers Sent: Thursday, May 5, 2016 10:48 AM To: Bangalore Python Users Group - India Cc: Suman Debnath; chandrashekar.babu at gmail.com Subject: Re: [BangPypers] Looking for corporate Python Trainers I would highly recommend Mr. Chandrashekhar Babu (https://www.linkedin.com/in/chandrashekarbabu?authType=name&authToken=WHf d&trk=wonton-desktop). He is the best training I have ever come across. You may like to reach out to him @ Email: chandrashekar.babu at gmail.com Mobile: +91-9884386075 (Mobile) Regards, Suman++ -----Original Message----- From: BangPypers [mailto:bangpypers-bounces+suman.debnath=broadcom.com at python.org] On Behalf Of Manjushree Hegde Sent: Thursday, May 05, 2016 10:44 AM To: bangPypers at python.org Subject: [BangPypers] Looking for corporate Python Trainers Hello, I am looking for Python trainers for corporate training. Please let me know if anyone is interested in this. Regards, Manjushree Hegde. _______________________________________________ BangPypers mailing list BangPypers at python.org https://mail.python.org/mailman/listinfo/bangpypers _______________________________________________ BangPypers mailing list BangPypers at python.org https://mail.python.org/mailman/listinfo/bangpypers From noufal at nibrahim.net.in Thu May 5 02:05:38 2016 From: noufal at nibrahim.net.in (Noufal Ibrahim KV) Date: Thu, 05 May 2016 11:35:38 +0530 Subject: [BangPypers] Looking for corporate Python Trainers In-Reply-To: <97a880f67f792df8713c7bbba0d832d2@mail.gmail.com> (Suman Debnath via BangPypers's message of "Thu, 5 May 2016 10:48:36 +0530") References: <97a880f67f792df8713c7bbba0d832d2@mail.gmail.com> Message-ID: <87lh3pniod.fsf@nibrahim.net.in> On Thu, May 05 2016, Suman Debnath via BangPypers wrote: > I would highly recommend Mr. Chandrashekhar Babu > (https://www.linkedin.com/in/chandrashekarbabu?authType=name&authToken=WHf > d&trk=wonton-desktop). > He is the best training I have ever come across. [...] +1. I know him personally and he's really *really* good. -- Cordially, Noufal http://nibrahim.net.in From noufal at nibrahim.net.in Thu May 5 02:05:05 2016 From: noufal at nibrahim.net.in (Noufal Ibrahim KV) Date: Thu, 05 May 2016 11:35:05 +0530 Subject: [BangPypers] Looking for corporate Python Trainers In-Reply-To: (Manjushree Hegde's message of "Thu, 5 May 2016 05:13:34 +0000") References: Message-ID: <87r3dhnipa.fsf@nibrahim.net.in> On Thu, May 05 2016, Manjushree Hegde wrote: > Hello, > > > I am looking for Python trainers for corporate training. Please let me > know if anyone is interested in this. [...] We do corporate trainings on Python and other technologies via pipal.in. If you're interested, please email us at hello at pipal.in Thanks -- Cordially, Noufal http://nibrahim.net.in From srinivasaenergy at gmail.com Thu May 5 08:22:40 2016 From: srinivasaenergy at gmail.com (Srinivasa Rao) Date: Thu, 5 May 2016 17:52:40 +0530 Subject: [BangPypers] Looking for corporate Python Trainers In-Reply-To: References: Message-ID: I have 10 years into Python Training On Thu, May 5, 2016 at 10:43 AM, Manjushree Hegde wrote: > Hello, > > > I am looking for Python trainers for corporate training. Please let me > know if anyone is interested in this. > > > Regards, > > Manjushree Hegde. > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From kracethekingmaker at gmail.com Sun May 8 10:41:18 2016 From: kracethekingmaker at gmail.com (kracekumar ramaraju) Date: Sun, 8 May 2016 20:11:18 +0530 Subject: [BangPypers] May meetup Message-ID: Hi BangPypers May meetup is on 21st in Blue Jeans Office [0]. We are looking for speakers. Talk duration ranges from 15 minutes to 40 minutes. If you're interested to give a talk, please leave comment in meetup page or reply to email with title and description. http://www.meetup.com/BangPypers/events/225109021/ -- *Thanks & Regardskracekumar"Talk is cheap, show me the code" -- Linus Torvaldshttp://kracekumar.com * From santosh.chini at gmail.com Mon May 9 02:36:24 2016 From: santosh.chini at gmail.com (Santosh Chiniwar) Date: Mon, 9 May 2016 14:36:24 +0800 Subject: [BangPypers] Plotting Range [1e13 to 1e19] in linear scale In-Reply-To: References: Message-ID: Can I accept any response from a team. Thank you Santosh Chiniwar ---------------------------------- Research Scholar, Department of Electronics Engineering, Chang Gung University, Taiwan (ROC), Tel.: +886-32118800-ext-535, Mob: +886-905667324 The first principle is that you must not fool yourself-and you are the easiest person to fool..... Richard Feynman On 4 May 2016 at 15:28, Santosh Chiniwar wrote: > > > > Hi All, > A. I have difficulty in plotting from range 1e13 to 1e19 on linear > scale. Any help is appreciated. > > B. How to stack all graph at single page. I mean three graphs without > using subplot. Since subplot has problem under for loop. > > Thank you > > PFA, > > > Santosh > ---------------------------------- > Research Scholar, Taiwan (ROC), > Mob: +886-905667324 > > The first principle is that you must not fool yourself-and you are the > easiest person to fool..... Richard Feynman > > > > From gora at mimirtech.com Mon May 9 02:54:19 2016 From: gora at mimirtech.com (Gora Mohanty) Date: Mon, 9 May 2016 12:24:19 +0530 Subject: [BangPypers] Plotting Range [1e13 to 1e19] in linear scale In-Reply-To: References: Message-ID: Hi, With all due respect, your question is too vague for anyone to be able to answer: * You do not indicate which plotting library you are using. Without that, how do you expect anyone to help you? * Your first question is still vague: Of course, one can plot points in the range 1e13 to 1e19 on a linear scale. The real question probably is how to do this in a meaningful way, and that is probably specific to your data. If you share some details, and show what you have tried, people might be able to help you. Regards, Gora On 9 May 2016 at 12:06, Santosh Chiniwar wrote: > > Can I accept any response from a team. [...] > On 4 May 2016 at 15:28, Santosh Chiniwar wrote: > > > > > > > > > Hi All, > > A. I have difficulty in plotting from range 1e13 to 1e19 on linear > > scale. Any help is appreciated. > > > > B. How to stack all graph at single page. I mean three graphs without > > using subplot. Since subplot has problem under for loop. From santosh.chini at gmail.com Mon May 9 03:12:13 2016 From: santosh.chini at gmail.com (Santosh Chiniwar) Date: Mon, 9 May 2016 15:12:13 +0800 Subject: [BangPypers] Plotting Range [1e13 to 1e19] in linear scale In-Reply-To: References: Message-ID: Please find correct Python code for above mail. Thank you Santosh Chiniwar ---------------------------------- Research Scholar, Department of Electronics Engineering, Chang Gung University, Taiwan (ROC), Tel.: +886-32118800-ext-535, Mob: +886-905667324 The first principle is that you must not fool yourself-and you are the easiest person to fool..... Richard Feynman On 9 May 2016 at 15:04, Santosh Chiniwar wrote: > Hi, > > I am looking for a way to plot y-axis as shown in attached fig log_100, > but this is logarithmic scale. However when I plot this in linear scale I > got y-axis as shown in fig linear linear_100. But I do want y-axis as in > log_100. I was unable to plot it. Please find my code with figure as an > attachment. > > B) If you see the plot section in the code I have put for loop and then > plot. Is it possible to plot both on the same Page as subplot. > > > Thank you > > > Santosh Chiniwar > ---------------------------------- > Research Scholar, Department of > Electronics Engineering, Chang Gung > University, Taiwan (ROC), > Tel.: +886-32118800-ext-535, > Mob: +886-905667324 > > The first principle is that you must not fool yourself-and you are the > easiest person to fool..... Richard Feynman > > > > On 9 May 2016 at 14:54, Gora Mohanty wrote: > >> Hi, >> >> With all due respect, your question is too vague for anyone to be able >> to answer: >> * You do not indicate which plotting library you are using. Without >> that, how do you expect anyone to help you? >> >> * Your first question is still vague: Of course, one can plot points >> in the range 1e13 to 1e19 on a linear scale. The real question >> probably is how to do this in a meaningful way, and that is probably >> specific to your data. If you share some details, and show what you >> have tried, people might be able to help you. >> >> Regards, >> Gora >> >> On 9 May 2016 at 12:06, Santosh Chiniwar wrote: >> > >> > Can I accept any response from a team. >> [...] >> >> > On 4 May 2016 at 15:28, Santosh Chiniwar >> wrote: >> > >> > > >> > > >> > > >> > > Hi All, >> > > A. I have difficulty in plotting from range 1e13 to 1e19 on linear >> > > scale. Any help is appreciated. >> > > >> > > B. How to stack all graph at single page. I mean three graphs >> without >> > > using subplot. Since subplot has problem under for loop. >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> https://mail.python.org/mailman/listinfo/bangpypers >> > > From noufal at nibrahim.net.in Mon May 9 03:39:49 2016 From: noufal at nibrahim.net.in (Noufal Ibrahim KV) Date: Mon, 09 May 2016 13:09:49 +0530 Subject: [BangPypers] Plotting Range [1e13 to 1e19] in linear scale In-Reply-To: (Santosh Chiniwar's message of "Mon, 9 May 2016 15:12:13 +0800") References: Message-ID: <87d1ovvfwa.fsf@nibrahim.net.in> On Mon, May 09 2016, Santosh Chiniwar wrote: > Please find correct Python code for above mail. Thank you > [...] This doesn't help either. You need to be a little more specific and detailed about the problem that you're facing. I've found http://www.catb.org/esr/faqs/smart-questions.html to be a reasonably good guide on how to go about it. -- Cordially, Noufal http://nibrahim.net.in From santosh.chini at gmail.com Mon May 9 03:45:03 2016 From: santosh.chini at gmail.com (Santosh Chiniwar) Date: Mon, 9 May 2016 15:45:03 +0800 Subject: [BangPypers] Plotting Range [1e13 to 1e19] in linear scale In-Reply-To: <87d1ovvfwa.fsf@nibrahim.net.in> References: <87d1ovvfwa.fsf@nibrahim.net.in> Message-ID: I have sent a mail but its held until approval. For that I have attached code. Now again I got same email. I don't have to attach plots? Thank you Santosh Chiniwar ---------------------------------- Research Scholar, Department of Electronics Engineering, Chang Gung University, Taiwan (ROC), Tel.: +886-32118800-ext-535, Mob: +886-905667324 The first principle is that you must not fool yourself-and you are the easiest person to fool..... Richard Feynman On 9 May 2016 at 15:39, Noufal Ibrahim KV wrote: > On Mon, May 09 2016, Santosh Chiniwar wrote: > > > Please find correct Python code for above mail. Thank you > > > > [...] > > This doesn't help either. You need to be a little more specific and > detailed about the problem that you're facing. I've found > http://www.catb.org/esr/faqs/smart-questions.html to be a reasonably > good guide on how to go about it. > > > -- > Cordially, > Noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From noufal at nibrahim.net.in Mon May 9 03:55:51 2016 From: noufal at nibrahim.net.in (Noufal Ibrahim KV) Date: Mon, 09 May 2016 13:25:51 +0530 Subject: [BangPypers] Plotting Range [1e13 to 1e19] in linear scale In-Reply-To: (Santosh Chiniwar's message of "Mon, 9 May 2016 15:45:03 +0800") References: <87d1ovvfwa.fsf@nibrahim.net.in> Message-ID: <877ff3vf5k.fsf@nibrahim.net.in> On Mon, May 09 2016, Santosh Chiniwar wrote: > I have sent a mail but its held until approval. For that I have attached > code. Now again I got same email. > I don't have to attach plots? [...] Attachments are either scrubbed or blocked. You should write a "minimal, complete and verifiable" example so that people can see what the problem is. -- Cordially, Noufal http://nibrahim.net.in From gora at mimirtech.com Mon May 9 03:53:21 2016 From: gora at mimirtech.com (Gora Mohanty) Date: Mon, 9 May 2016 13:23:21 +0530 Subject: [BangPypers] Plotting Range [1e13 to 1e19] in linear scale In-Reply-To: References: <87d1ovvfwa.fsf@nibrahim.net.in> Message-ID: On 9 May 2016 at 13:15, Santosh Chiniwar wrote: > I have sent a mail but its held until approval. For that I have attached > code. Now again I got same email. > I don't have to attach plots? This mailing list probably does not allow attachments. How long is the code? Can you use a service like pastebin, or put the code/plots somewhere for download? Regards, Gora From santosh.chini at gmail.com Mon May 9 04:05:46 2016 From: santosh.chini at gmail.com (Santosh Chiniwar) Date: Mon, 9 May 2016 16:05:46 +0800 Subject: [BangPypers] Plotting Range [1e13 to 1e19] in linear scale In-Reply-To: References: <87d1ovvfwa.fsf@nibrahim.net.in> Message-ID: Can I get you gmail ID so that I can send you code and problem. Thank you Santosh Chiniwar ---------------------------------- Research Scholar, Department of Electronics Engineering, Chang Gung University, Taiwan (ROC), Tel.: +886-32118800-ext-535, Mob: +886-905667324 The first principle is that you must not fool yourself-and you are the easiest person to fool..... Richard Feynman On 9 May 2016 at 15:53, Gora Mohanty wrote: > On 9 May 2016 at 13:15, Santosh Chiniwar wrote: > > I have sent a mail but its held until approval. For that I have attached > > code. Now again I got same email. > > I don't have to attach plots? > > This mailing list probably does not allow attachments. > > How long is the code? Can you use a service like pastebin, or put the > code/plots somewhere for download? > > Regards, > Gora > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From gora at mimirtech.com Mon May 9 15:15:07 2016 From: gora at mimirtech.com (Gora Mohanty) Date: Tue, 10 May 2016 00:45:07 +0530 Subject: [BangPypers] Plotting Range [1e13 to 1e19] in linear scale In-Reply-To: References: <87d1ovvfwa.fsf@nibrahim.net.in> Message-ID: On 9 May 2016 at 13:35, Santosh Chiniwar wrote: > Can I get you gmail ID so that I can send you code and problem. Sorry, but unless you want to pay for my time, I am afraid that I cannot commit to solving your problem, and will certainly *not* do that off list. As I said, make what you have done publicly available, and chances are that it will pique someone's interest enough to figure out a solution. If you want a guaranteed solution from someone that will work with you, please make a request for a commercial engagement. IMHO, as other people have been trying to point out, you need to understand how to engage with a community: A priori, the community owes you *nothing*. It is up to you to figure out how to get the community interested. Regards, Gora From anand21nanda at gmail.com Sat May 14 07:33:02 2016 From: anand21nanda at gmail.com (Anand Reddy Pandikunta) Date: Sat, 14 May 2016 17:03:02 +0530 Subject: [BangPypers] May meetup In-Reply-To: References: Message-ID: Hi, RSVP is open for May meetup[1] at Bluejeans office[2]. Speaking slots are full for this meetup. If you have any questions, feel free to leave a comment on meetup page. [1]: http://www.meetup.com/BangPypers/events/225109021/ [2]: Blue Jeans Network India Pvt Ltd 8th floor, Vector Prestige Tech Park Marathahalli, Outer Ring Road , Bangalore. Regards, Chillar Anand www.avilpage.com On Sun, May 8, 2016 at 8:11 PM, kracekumar ramaraju < kracethekingmaker at gmail.com> wrote: > Hi > > BangPypers May meetup is on 21st in Blue Jeans Office [0]. We are looking > for speakers. Talk duration ranges from 15 minutes to 40 minutes. If you're > interested to give a talk, please leave comment in meetup page or reply to > email with title and description. > > http://www.meetup.com/BangPypers/events/225109021/ > > -- > > *Thanks & Regardskracekumar"Talk is cheap, show me the code" -- Linus > Torvaldshttp://kracekumar.com * > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From pyhack at outlook.com Sat May 14 17:20:00 2016 From: pyhack at outlook.com (Pyhack Blog) Date: Sat, 14 May 2016 21:20:00 +0000 Subject: [BangPypers] Help AES Implementation Message-ID: Hi, I have two AES implementation programs: AES-1: http://pastebin.com/TrQ5iaxc AES-2: http://pastebin.com/mXRyprKL I have one binary file which is encrypted with some other AES program and it is getting decrypted with AES-1 but not with AES-2. I have shared both the programs link with you can someone please help me in identifying where exactly AES-2 is wrong in implementation. Regards PyHack From suman.debnath at broadcom.com Mon May 16 01:50:36 2016 From: suman.debnath at broadcom.com (Suman Debnath) Date: Mon, 16 May 2016 11:20:36 +0530 Subject: [BangPypers] C Programming trainer - Bangalore Message-ID: (Sorry for the Spam, as this is not the right forum to ask) Greetings Team: Anybody aware of any good trainer for C Programming, Device Driver, Linux System Programming in Bangalore(personal training, weekdays/weekend) ? Just in case anyone knows, can you just unicast ONLY to me( suman.debnath at broadcom.com) Thank you. Regards, Suman++ From gora at mimirtech.com Mon May 16 02:30:14 2016 From: gora at mimirtech.com (Gora Mohanty) Date: Mon, 16 May 2016 12:00:14 +0530 Subject: [BangPypers] C Programming trainer - Bangalore In-Reply-To: References: Message-ID: On 16 May 2016 at 11:20, Suman Debnath via BangPypers wrote: > > (Sorry for the Spam, as this is not the right forum to ask) Well, you are right about the spam part, but still somehow felt entitled to go ahead and post. Please do not do that. Regards, Gora From pavankrcr15 at gmail.com Mon May 16 12:32:59 2016 From: pavankrcr15 at gmail.com (Pavan Kulkarni) Date: Mon, 16 May 2016 22:02:59 +0530 Subject: [BangPypers] Django In-Reply-To: References: Message-ID: Dear Sir Could you please suggest good book on Django implementing Restful API I am newbie in this forum Thanks Pavank From gora at mimirtech.com Mon May 16 14:13:12 2016 From: gora at mimirtech.com (Gora Mohanty) Date: Mon, 16 May 2016 23:43:12 +0530 Subject: [BangPypers] Django In-Reply-To: References: Message-ID: On 16 May 2016 at 22:02, Pavan Kulkarni wrote: > > Dear Sir > Could you please suggest good book on Django implementing Restful API Don't know about a book, but IMHO Django Rest Framework is the leader here, and is well documented: http://www.django-rest-framework.org/ . Try the tutorial first. Regards, Gora From nitin.nitp at gmail.com Wed May 18 11:35:03 2016 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Wed, 18 May 2016 17:35:03 +0200 Subject: [BangPypers] Anand S at cnnibn Message-ID: Today evening just noticed Anand with Arnav at cnn ibn. Check my below tweet. https://twitter.com/nitinsview/status/732956770495123457 Someone might quote this as off topic ;) but I was sure about posting it over this alias as uses python to do all those plotting used on back screen From gora at mimirtech.com Wed May 18 13:06:31 2016 From: gora at mimirtech.com (Gora Mohanty) Date: Wed, 18 May 2016 22:36:31 +0530 Subject: [BangPypers] Anand S at cnnibn In-Reply-To: References: Message-ID: On 18 May 2016 at 21:05, Nitin Kumar wrote: > > Today evening just noticed Anand with Arnav at cnn ibn. Check my below tweet. > > https://twitter.com/nitinsview/status/732956770495123457 > > Someone might quote this as off topic ;) Er, maybe because it *is* off-topic on a technical list, but I am quite sure that you were aware of that. > but I was sure about posting > it over this alias as uses python to do all those plotting used on > back screen That is hardly an excuse: By that token, I could discuss Debian/Ubuntu on this list as they make extensive use of Python for system tasks. Now, what would have been on-topic would have been a discussion on how those plots were created with Python, and any special tricks that were use. Regards, Gora From chandru at galaxykms.com Wed May 18 12:36:05 2016 From: chandru at galaxykms.com (Chandru) Date: Wed, 18 May 2016 22:06:05 +0530 Subject: [BangPypers] Anand S at cnnibng In-Reply-To: References: Message-ID: <3r91XJ1WGhzFqM5@mail.python.org> Thanks for responding Can you refer someone pls? Rgds Chandru Sent from my Windows 10 phone From: Nitin Kumar Sent: 18 May 2016 21:05 To: bangpypers at python.org Subject: [BangPypers] Anand S at cnnibn Today evening just noticed Anand with Arnav at cnn ibn. Check my below tweet. https://twitter.com/nitinsview/status/732956770495123457 Someone might quote this as off topic ;) but I was sure about posting it over this alias as uses python to do all those plotting used on back screen _______________________________________________ BangPypers mailing list BangPypers at python.org https://mail.python.org/mailman/listinfo/bangpypers From nitin.nitp at gmail.com Wed May 18 13:39:19 2016 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Wed, 18 May 2016 23:09:19 +0530 Subject: [BangPypers] Anand S at cnnibn In-Reply-To: References: Message-ID: I was anticipating few names to respond. And I was bang on. "Now, what would have been on-topic would have been a discussion on how those plots were created with Python, and any special tricks that were use" These details too would follow up if these mails are allowed to initiate. On Wednesday 18 May 2016, Gora Mohanty wrote: > On 18 May 2016 at 21:05, Nitin Kumar > > wrote: > > > > Today evening just noticed Anand with Arnav at cnn ibn. Check my below > tweet. > > > > https://twitter.com/nitinsview/status/732956770495123457 > > > > Someone might quote this as off topic ;) > > Er, maybe because it *is* off-topic on a technical list, but I am > quite sure that you > were aware of that. > > > but I was sure > about posting > > it over this alias as uses python to do all those plotting used on > > back screen > > That is hardly an excuse: By that token, I could discuss Debian/Ubuntu > on this list > as they make extensive use of Python for system tasks. Now, what would > have been > on-topic would have been a discussion on how those plots were created > with Python, > and any special tricks that were use. > > Regards, > Gora > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > -- Nitin Kr From gora at mimirtech.com Wed May 18 13:59:37 2016 From: gora at mimirtech.com (Gora Mohanty) Date: Wed, 18 May 2016 23:29:37 +0530 Subject: [BangPypers] Anand S at cnnibn In-Reply-To: References: Message-ID: On 18 May 2016 at 23:09, Nitin Kumar wrote: > > I was anticipating few names to respond. And I was bang on. Guilty as charged :-) We have been through this argument many times now, and I have no wish to re-ignite it. All I can do is stand by my position, which I do not think is unreasonable. > "Now, what would have been > on-topic would have been a discussion on how those plots were created > with Python, > and any special tricks that were use" > > These details too would follow up if these mails are allowed to initiate. Great, but if you had this in mind, why not start from that end? Regards, Gora From satishsagar83 at gmail.com Wed May 18 14:04:38 2016 From: satishsagar83 at gmail.com (L Radhakrishna Rao) Date: Wed, 18 May 2016 19:04:38 +0100 Subject: [BangPypers] Looking for Jobs or Intern ship in machine learning Message-ID: Hi, My name is Radhakrishna. Currently, I am pursuing my masters from UK (Edinburgh University). I am writing this to know if any opportunity of internships are available in the field of machine learning or probabilistic modelling. As part of coursework, I have also chosen Bioinformatics, Cognitive computational science and neural computation. Kindly help me in this regards, as I want to get the work at the earliest. Regards, Radhakrishna From gora at mimirtech.com Wed May 18 14:04:22 2016 From: gora at mimirtech.com (Gora Mohanty) Date: Wed, 18 May 2016 23:34:22 +0530 Subject: [BangPypers] Anand S at cnnibng In-Reply-To: <3r91XJ1WGhzFqM5@mail.python.org> References: <3r91XJ1WGhzFqM5@mail.python.org> Message-ID: On 18 May 2016 at 22:06, Chandru wrote: > Thanks for responding > > Can you refer someone pls? [...] With all due respect, I rest my case: The more that regulars on this list feel free to post off topic, the more irrelevant postings that we invite, till the list becomes an unusable mess. May I quote once again the second line from https://mail.python.org/mailman/listinfo/bangpypers "This group is for discussions related to the Python programming language. We welcome all kinds of discussions related to Python." What exactly about this statement is lacking in clarity? Regards, Gora From nitin.nitp at gmail.com Wed May 18 14:17:16 2016 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Wed, 18 May 2016 23:47:16 +0530 Subject: [BangPypers] [OT] Anand S at cnnibng Message-ID: I totally agree with these terms "This group is for discussions related to the Python programming language. We welcome all kinds of discussions related to Python." What exactly about this statement is lacking in clarity? Now what was presented @cnn had been also demoed at PyCon by Anand. https://in.pycon.org/funnel/2013/73-data-visualisation-in-powerpoint-with-python/ https://in.pycon.org/funnel/2013/72-advanced-data-analysis-with-pandas/ https://in.pycon.org/funnel/2014/165-faster-data-processing-in-python/ https://github.com/sanand0/ipython-notebooks I wanted to share this and to this group to let people know how much valuable are these works done using Python. And by adding OT to subject line I think we all are good now. Thanks and good night. Nitin Kr On Wed, May 18, 2016 at 11:34 PM, Gora Mohanty wrote: > On 18 May 2016 at 22:06, Chandru wrote: > > Thanks for responding > > > > Can you refer someone pls? > [...] > > With all due respect, I rest my case: The more that regulars on this list > feel > free to post off topic, the more irrelevant postings that we invite, > till the list > becomes an unusable mess. > > May I quote once again the second line from > https://mail.python.org/mailman/listinfo/bangpypers > "This group is for discussions related to the Python programming language. > We welcome all kinds of discussions related to Python." What > exactly about this statement is > lacking in clarity? > > Regards, > Gora > From bewithsathish at gmail.com Wed May 18 15:11:04 2016 From: bewithsathish at gmail.com (Sathishkumar Duraisamy) Date: Thu, 19 May 2016 00:41:04 +0530 Subject: [BangPypers] Multiple Django app with nginx Message-ID: Hi All, In Apache with help of modwsgi module we can mount may application like WSGIScriptAlias /app1 /usr/local/www/wsgi-scripts/myapp1.wsgi WSGIScriptAlias /app2 /usr/local/www/wsgi-scripts/myapp2.wsgi What is the similar approch for NGINX web server? Any idea? I have been trying with reverse proxy along with gunicorn, but not able to achieve. I am trying to get mount as follows: http://exmaple.com/app1 --> 127.0.0.1:8000/ http://exmaple.com/app1/home/ --> 127.0.0.1:8000/home/ http://exmaple.com/app2 --> 127.0.0.1:9000/ http://exmaple.com/app2/home/ --> 127.0.0.1:9000/home/ If I can achieve partially, the links returning from application webpage are pointing to root (ie) Expecting: http://exmaple.com/app1/results But: http://example.com/results. Thanks and Regards, Sathishkumar D From gora at mimirtech.com Wed May 18 16:01:21 2016 From: gora at mimirtech.com (Gora Mohanty) Date: Thu, 19 May 2016 01:31:21 +0530 Subject: [BangPypers] Multiple Django app with nginx In-Reply-To: References: Message-ID: On 19 May 2016 at 00:41, Sathishkumar Duraisamy wrote: > Hi All, > > In Apache with help of modwsgi module we can mount may application like > > WSGIScriptAlias /app1 /usr/local/www/wsgi-scripts/myapp1.wsgi > WSGIScriptAlias /app2 /usr/local/www/wsgi-scripts/myapp2.wsgi > > What is the similar approch for NGINX web server? Any idea? First of all, this is really off-topic here, and you are probably better off asking on a nginx list. Having said that, we regularly use nginx with gunicorn, and what you need to do is * Set up an upstream server that defines the TCP/Unix domain socket that gunicorn is listening on. Something like: upstream app_server { server 127.0.0.1:80 fail_timeout=0; } * Then, proxy to the app_server, e.g., location @proxy_to_app { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Protocol https; proxy_redirect off; proxy_buffering off; proxy_pass http://app_server; } There are many detailed write-ups available by searching Google: See, e.g., http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ > I have been trying with reverse proxy along with gunicorn, but not able to > achieve. > > I am trying to get mount as follows: > > http://exmaple.com/app1 --> 127.0.0.1:8000/ > http://exmaple.com/app1/home/ --> 127.0.0.1:8000/home/ [...] Please show actual nginx configuration on the nginx mailing list rather than pseudo-examples like this. Nobody can tell what you are actually trying. Regards, Gora From bewithsathish at gmail.com Wed May 18 23:31:51 2016 From: bewithsathish at gmail.com (Sathishkumar Duraisamy) Date: Thu, 19 May 2016 09:01:51 +0530 Subject: [BangPypers] Multiple Django app with nginx In-Reply-To: References: Message-ID: On Thu, May 19, 2016 at 1:31 AM, Gora Mohanty wrote: > On 19 May 2016 at 00:41, Sathishkumar Duraisamy > wrote: > > Hi All, > > > > In Apache with help of modwsgi module we can mount may application like > > > > WSGIScriptAlias /app1 /usr/local/www/wsgi-scripts/myapp1.wsgi > > WSGIScriptAlias /app2 /usr/local/www/wsgi-scripts/myapp2.wsgi > > > > What is the similar approch for NGINX web server? Any idea? > > First of all, this is really off-topic here, and you are probably > better off asking > on a nginx list. May be you are right. I am really sorry, with many django developers here in our local python list, I hoped to get solution. Having said that, we regularly use nginx with > gunicorn, and what > you need to do is > * Set up an upstream server that defines the TCP/Unix domain socket that > gunicorn is listening on. Something like: > upstream app_server { > server 127.0.0.1:80 fail_timeout=0; > } > * Then, proxy to the app_server, e.g., > location @proxy_to_app { > proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; > proxy_set_header Host $http_host; > proxy_set_header X-Forwarded-Protocol https; > proxy_redirect off; > proxy_buffering off; > proxy_pass http://app_server; > } > > There are many detailed write-ups available by searching Google: See, e.g., > > http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ > > > I have been trying with reverse proxy along with gunicorn, but not able > to > > achieve. > > > > I am trying to get mount as follows: > > > > http://exmaple.com/app1 --> 127.0.0.1:8000/ > > http://exmaple.com/app1/home/ --> 127.0.0.1:8000/home/ > [...] > > Please show actual nginx configuration on the nginx mailing list rather > than > pseudo-examples like this. Nobody can tell what you are actually trying. > Below is my nginx configuration, with domain name changed to example.com. Here I two application one is Taiga which is basically django application and second one is green, which is again, home grown django application.This one is on second server( with different architecture with docker). I have checked with browser with address 10.135.48.188:8000 and is working good. I could see the home page of green project: https://example.com/green/ When I try to login with links in the home page of green, it is pointing to https://example.com/login instead of https://example.com/green/login. May be it is correct from nginx reverse proxy. In apache , WSGIScriptAlias takes care of this. How we achieve the same thing here. Am I missing anything in configuration? And my ssl certificate will not support sub-domain. So i cannot go with https://green.example.com/ ------------------------------8<----------------------------------8<------------------------------8<----------------------------------8<------------------------------8<---------------------------------- server { listen 443; server_name www.example.com; return 301 https://example.com$request_uri ; } server { listen 80 default_server; server_name example.com; return 301 https://$server_name$request_uri; } upstream green_servers { server 10.135.48.188:8000; } server { listen 443 ssl default_server; server_name example.com; large_client_header_buffers 4 32k; client_max_body_size 50M; charset utf-8; access_log /home/webhost/taiga/logs/nginx.access.log; error_log /home/webhost/taiga/logs/nginx.error.log; # Frontend location / { root /home/webhost/taiga/taiga-front-dist/dist/; try_files $uri $uri/ /index.html; } # Backend location /api { proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Scheme $scheme; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://127.0.0.1:8001/api; proxy_redirect off; } # Backend location /green { proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Scheme $scheme; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://green_servers/; proxy_redirect off; } # Static files location /static { alias /home/webhost/taiga/taiga-back/static; } # Media files location /media { alias /home/webhost/taiga/taiga-back/media; } add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload"; add_header Public-Key-Pins 'pin-sha256="0RiuGnj7hjey+lDP29tjAhA="; max-age=2592000; includeSubDomains'; ssl on; ssl_certificate /etc/nginx/ssl/example.com/example.com.pem; ssl_certificate_key /etc/nginx/ssl/example.com/example.com.key; ssl_session_timeout 5m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK'; ssl_session_cache shared:SSL:10m; ssl_dhparam /etc/nginx/ssl/example.com/dhparam_2_4096.pem; ssl_stapling on; ssl_stapling_verify on; ssl_trusted_certificate /etc/nginx/ssl/example.com/example.com.pem; } ------------------------------8<----------------------------------8<------------------------------8<----------------------------------8<------------------------------8<---------------------------------- > > Regards, > Gora > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > -- Regards, Sathishkumar D From amishatiitkgp at gmail.com Thu May 19 05:46:57 2016 From: amishatiitkgp at gmail.com (Amish Anand) Date: Thu, 19 May 2016 15:16:57 +0530 Subject: [BangPypers] Thread and Queues problem. Message-ID: Hi I am writing an application which basically solves a simple producer consumer problem. Both producer and consumer run on separate threads. The producer function writes to a Queue and continues producing data, whereas the consumer thread function waits for items to be enqueued and once present, it pops them out for processing. In the current implementation I am waiting on an infinite while loop because if I don't then the thread function will exit after processing one item in the queue and that is not desired. Due to this infinite loop, thread function is hogging lot of CPU (as a workaround I have added a sleep of 1sec to reduce the CPU usage), however I feel there should be a proper mechanism to gracefully wait for the items to be enqueued and then continuously wait for the items to be added to the queue without exiting. I will try to experiment with threading module event (set and wait) but that will be a tricky implementation I believe. Appreciate your thoughts on this issue. Stub code of the thread handler on the consumer side: while True: print '%s: Looking for the next enclosure' % i url = q.get() print '%s: Downloading:' % i, url q.task_done() time.sleep(1) Thanks, Amish From santosh.chini at gmail.com Thu May 19 06:15:03 2016 From: santosh.chini at gmail.com (Santosh Chiniwar) Date: Thu, 19 May 2016 18:15:03 +0800 Subject: [BangPypers] Delete my account Message-ID: Dear Python team, Please remove me from your mailing list so that I don't get emails from you. Thank you very much Regards, Santosh Chiniwar From amishatiitkgp at gmail.com Thu May 19 06:30:50 2016 From: amishatiitkgp at gmail.com (Amish Anand) Date: Thu, 19 May 2016 16:00:50 +0530 Subject: [BangPypers] Thread and Queues problem. In-Reply-To: References: Message-ID: Please ignore the below mail. I overlooked the fact that get function for Q is a blocking call. Thanks, Amish On Thu, May 19, 2016 at 3:16 PM, Amish Anand wrote: > Hi > I am writing an application which basically solves a simple producer > consumer problem. Both producer and consumer run on separate threads. The > producer function writes to a Queue and continues producing data, whereas > the consumer thread function waits for items to be enqueued and once > present, it pops them out for processing. In the current implementation I > am waiting on an infinite while loop because if I don't then the thread > function will exit after processing one item in the queue and that is not > desired. Due to this infinite loop, thread function is hogging lot of CPU > (as a workaround I have added a sleep of 1sec to reduce the CPU usage), > however I feel there should be a proper mechanism to gracefully wait for > the items to be enqueued and then continuously wait for the items to be > added to the queue without exiting. I will try to experiment with threading > module event (set and wait) but that will be a tricky implementation I > believe. Appreciate your thoughts on this issue. > > Stub code of the thread handler on the consumer side: > > while True: > print '%s: Looking for the next enclosure' % i > url = q.get() > print '%s: Downloading:' % i, url > q.task_done() > time.sleep(1) > > Thanks, > Amish > > From anandpillai at letterboxes.org Thu May 19 06:49:36 2016 From: anandpillai at letterboxes.org (Anand B Pillai) Date: Thu, 19 May 2016 16:19:36 +0530 Subject: [BangPypers] Delete my account In-Reply-To: References: Message-ID: <573D9A40.5050109@letterboxes.org> On Thursday 19 May 2016 03:45 PM, Santosh Chiniwar wrote: > Dear Python team, > Please remove me from your mailing list so that I don't get emails from > you. You dont need to bother admin for this. Go to https://mail.python.org/mailman/listinfo/bangpypers and unsubscribe yourself. > Thank you very much > > > Regards, > Santosh Chiniwar > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > -- Regards, --Anand ---------------------------- Software Architect/Consultant anandpillai at letterboxes.org http://twitter.com/skeptichacker From thes.kumar at gmail.com Wed May 18 23:57:13 2016 From: thes.kumar at gmail.com (Saurabh Kumar) Date: Thu, 19 May 2016 09:27:13 +0530 Subject: [BangPypers] Multiple Django app with nginx In-Reply-To: References: Message-ID: On Thu, May 19, 2016 at 12:41 AM, Sathishkumar Duraisamy < bewithsathish at gmail.com> wrote: > Hi All, > > In Apache with help of modwsgi module we can mount may application like > > WSGIScriptAlias /app1 /usr/local/www/wsgi-scripts/myapp1.wsgi > WSGIScriptAlias /app2 /usr/local/www/wsgi-scripts/myapp2.wsgi > > What is the similar approch for NGINX web server? Any idea? > > I have been trying with reverse proxy along with gunicorn, but not able to > achieve. > > I am trying to get mount as follows: > > http://exmaple.com/app1 --> 127.0.0.1:8000/ > http://exmaple.com/app1/home/ --> 127.0.0.1:8000/home/ > > > http://exmaple.com/app2 --> 127.0.0.1:9000/ > http://exmaple.com/app2/home/ --> 127.0.0.1:9000/home/ > > If I can achieve partially, the links returning from application webpage > are pointing to root (ie) > > Expecting: http://exmaple.com/app1/results > But: http://example.com/results. > Hi Satish, You might want use `proxy_pass`[0][1]. Something like: ``` location /app1 { proxy_pass http://localhost:9000/; } location /app2 { proxy_pass http://localhost:8000/; } ``` [0] http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass ?[1] https://serverfault.com/questions/379675/nginx-reverse-proxy-url-rewrite? ?Cheers,? - Saurabh From bewithsathish at gmail.com Thu May 19 13:31:34 2016 From: bewithsathish at gmail.com (Sathishkumar Duraisamy) Date: Thu, 19 May 2016 23:01:34 +0530 Subject: [BangPypers] Multiple Django app with nginx In-Reply-To: References: Message-ID: On Thu, May 19, 2016 at 9:27 AM, Saurabh Kumar wrote: > On Thu, May 19, 2016 at 12:41 AM, Sathishkumar Duraisamy < > bewithsathish at gmail.com> wrote: > > > Hi All, > > > > In Apache with help of modwsgi module we can mount may application like > > > > WSGIScriptAlias /app1 /usr/local/www/wsgi-scripts/myapp1.wsgi > > WSGIScriptAlias /app2 /usr/local/www/wsgi-scripts/myapp2.wsgi > > > > What is the similar approch for NGINX web server? Any idea? > > > > I have been trying with reverse proxy along with gunicorn, but not able > to > > achieve. > > > > I am trying to get mount as follows: > > > > http://exmaple.com/app1 --> 127.0.0.1:8000/ > > http://exmaple.com/app1/home/ --> 127.0.0.1:8000/home/ > > > > > > http://exmaple.com/app2 --> 127.0.0.1:9000/ > > http://exmaple.com/app2/home/ --> 127.0.0.1:9000/home/ > > > > If I can achieve partially, the links returning from application webpage > > are pointing to root (ie) > > > > Expecting: http://exmaple.com/app1/results > > But: http://example.com/results. > > > > > Hi Satish, > You might want use `proxy_pass`[0][1]. > > Something like: > > ``` > location /app1 { > proxy_pass http://localhost:9000/; > } > location /app2 { > proxy_pass http://localhost:8000/; > } > ``` > > [0] http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass > ?[1] > https://serverfault.com/questions/379675/nginx-reverse-proxy-url-rewrite? > > > ?Cheers,? > - Saurabh > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > I got some link for subdirectory hosting. I following things, hope will get solution: http://geekbandtheory.com/djanginx-django-with-nginx/ http://librelist.com/browser/flask/2010/7/21/running-behind-proxy-with-url-prefix-other-than/#15215a54b84bb794f1c6203e934c4f54 https://github.com/benoitc/gunicorn/issues/472 Thanks Suarabh and Gora. -- Regards, Sathishkumar D From gora at mimirtech.com Thu May 19 14:20:17 2016 From: gora at mimirtech.com (Gora Mohanty) Date: Thu, 19 May 2016 23:50:17 +0530 Subject: [BangPypers] Multiple Django app with nginx In-Reply-To: References: Message-ID: On 19 May 2016 at 09:01, Sathishkumar Duraisamy wrote: [...] > > > May be you are right. I am really sorry, with many django developers here > in our local python list, I hoped to get solution. I do think it is off-topic: It really has to do with understanding how the proxy_pass directive in nginx works, and i is not just about being off-topic. I still think that you would get better answers on a nginx list. The fact that nginx is proxying to a Django application is irrelevant here. Nevertheless, I am bored at the moment :-) [...] > Below is my nginx configuration, with domain name changed to example.com. > Here I two application one is Taiga which is basically django application > and second one is green, which is again, home grown django application.This > one is on second server( with different architecture with docker). I have > checked with browser with address 10.135.48.188:8000 and is working good. Your description points to a different issue: The problem is not that there are multiple upstream servers (those seem to be configured correctly, and should be working fine), but that you are seeing what you feel to be an unexpected redirection. > I could see the home page of green project: > > https://example.com/green/ > > When I try to login with links in the home page of green, it is pointing to > https://example.com/login instead of https://example.com/green/login. May > be it is correct from nginx reverse proxy. [...] I think that this the crux of the confusion: While I cannot test this now, the above redirection should be as expected from your configuration. Viz., with the configuration: location /green/ { proxy_pass http://green_servers; } https://example.com/green/login should indeed redirect to https://example.com/login Maybe these links will help (I am unable to do more without a test setup): * nginx core documentation: Please read carefully the distinction between specifications with, and without a URI. Your /api and /green locations are different in this respect. * Multiple examples of such configurations: http://www.liaohuqiu.net/posts/nginx-proxy-pass/ A final thing to watch out for is trailing-slashes in the proxy-pass directive: The nginx behaviour here can be quite confusing. Regards, Gora From gora at mimirtech.com Thu May 19 14:26:06 2016 From: gora at mimirtech.com (Gora Mohanty) Date: Thu, 19 May 2016 23:56:06 +0530 Subject: [BangPypers] Multiple Django app with nginx In-Reply-To: References: Message-ID: On 19 May 2016 at 09:27, Saurabh Kumar wrote: [...] > > You might want use `proxy_pass`[0][1]. > > Something like: > > ``` > location /app1 { > proxy_pass http://localhost:9000/; > } > location /app2 { > proxy_pass http://localhost:8000/; > } [...] Contrary to OP's original statement, this is not his immediate problem. The multiple apps part seem to work for him, but it seems that nginx redirections are contrary to his expectations. Regards, Gora From bewithsathish at gmail.com Thu May 19 15:10:47 2016 From: bewithsathish at gmail.com (Sathishkumar Duraisamy) Date: Fri, 20 May 2016 00:40:47 +0530 Subject: [BangPypers] Multiple Django app with nginx In-Reply-To: References: Message-ID: On Thu, May 19, 2016 at 11:50 PM, Gora Mohanty wrote: > On 19 May 2016 at 09:01, Sathishkumar Duraisamy > wrote: > [...] > > > > > > May be you are right. I am really sorry, with many django developers here > > in our local python list, I hoped to get solution. > > I do think it is off-topic: It really has to do with understanding > how the proxy_pass directive in nginx works, and i is not just > about being off-topic. I am not interested to justify off-topic or on-topic. I still think that you would get better > answers on a nginx list. The fact that nginx is proxying to a > Django application is irrelevant here. It is all about django, gunicorn and nginx. The first two are python based apps. And solution is here: https://docs.webfaction.com/software/django/config.html#mounting-a-django-application-on-a-subpath > Nevertheless, I am > bored at the moment :-) > who cares? And this might be on-topic for you! > > [...] > > Below is my nginx configuration, with domain name changed to example.com > . > > Here I two application one is Taiga which is basically django application > > and second one is green, which is again, home grown django > application.This > > one is on second server( with different architecture with docker). I have > > checked with browser with address 10.135.48.188:8000 and is working > good. > > Your description points to a different issue: The problem is not > that there are multiple upstream servers (those seem to be > configured correctly, and should be working fine), but that you > are seeing what you feel to be an unexpected redirection. > I justifying back-end is proper and working good without any broken links. What saying django projects are running. That is describing the what configuration is all about. > I could see the home page of green project: > > > > https://example.com/green/ > > > > When I try to login with links in the home page of green, it is pointing > to > > https://example.com/login instead of https://example.com/green/login. > May > > be it is correct from nginx reverse proxy. > [...] > > I think that this the crux of the confusion: While I cannot > test this now, the above redirection should be as expected > from your configuration. Viz., with the configuration: > > location /green/ { > proxy_pass http://green_servers; > } > > https://example.com/green/login should indeed redirect > to https://example.com/login > > Maybe these links will help (I am unable to do more > without a test setup): > * nginx core documentation: Please read carefully the > distinction between specifications with, and without > a URI. Your /api and /green locations are different > in this respect. > * Multiple examples of such configurations: > http://www.liaohuqiu.net/posts/nginx-proxy-pass/ > > A final thing to watch out for is trailing-slashes in the > proxy-pass directive: The nginx behaviour here can > be quite confusing. It is not the problem. Request to go through explanation. Regards, > Gora > Things are solved. Thanks for you support. > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > -- Regards, Sathishkumar D From gora at mimirtech.com Thu May 19 15:29:07 2016 From: gora at mimirtech.com (Gora Mohanty) Date: Fri, 20 May 2016 00:59:07 +0530 Subject: [BangPypers] Multiple Django app with nginx In-Reply-To: References: Message-ID: On 20 May 2016 at 00:40, Sathishkumar Duraisamy wrote: > On Thu, May 19, 2016 at 11:50 PM, Gora Mohanty wrote: > >> On 19 May 2016 at 09:01, Sathishkumar Duraisamy >> wrote: >> [...] >> > >> > >> > May be you are right. I am really sorry, with many django developers here >> > in our local python list, I hoped to get solution. >> >> I do think it is off-topic: It really has to do with understanding >> how the proxy_pass directive in nginx works, and i is not just >> about being off-topic. Yes, you are, of course right, Please excuse me for spending time in actually trying to help you. Goodbye Regards, Gora From bewithsathish at gmail.com Fri May 20 01:58:38 2016 From: bewithsathish at gmail.com (Sathishkumar Duraisamy) Date: Fri, 20 May 2016 11:28:38 +0530 Subject: [BangPypers] Multiple Django app with nginx In-Reply-To: References: Message-ID: On Fri, May 20, 2016 at 12:59 AM, Gora Mohanty wrote: > On 20 May 2016 at 00:40, Sathishkumar Duraisamy > wrote: > > On Thu, May 19, 2016 at 11:50 PM, Gora Mohanty > wrote: > > > >> On 19 May 2016 at 09:01, Sathishkumar Duraisamy < > bewithsathish at gmail.com> > >> wrote: > >> [...] > >> > > >> > > >> > May be you are right. I am really sorry, with many django developers > here > >> > in our local python list, I hoped to get solution. > >> > >> I do think it is off-topic: It really has to do with understanding > >> how the proxy_pass directive in nginx works, and i is not just > >> about being off-topic. > > Yes, you are, of course right, Yes I am right. I here for discussion about python and related technologies. I usually post questions iin the mailing list only if I am not able to get sufficient solution from documenation or from search engines. Almost all software has its own mailing list. Mailing list like ours bring all to dicuss the techology topics together. > Please excuse me for spending time in actually > trying to help you. Please post your response only if you understand what the others really saying or You have similar experienced. Please don't divert the topics and don't make irritate others. And we have no time to do so and this list not for this.And don't spam the list. I don't like to reply, but yet I am posting. > Goodbye > > Regards, > Gora > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > -- Regards, Sathishkumar D From rus.cahimb at gmail.com Fri May 20 07:24:32 2016 From: rus.cahimb at gmail.com (Ramanathan Muthaiah) Date: Fri, 20 May 2016 11:24:32 +0000 Subject: [BangPypers] Python - Build Monitor : Message-ID: Hello All, Sorry for the lengthy post. In the past meetups of Bangpypers, slot wasn't available to share about this utility. So, am posting some details on this topic. Objective: Generate (possibly extend to real-time monitoring) build status for any project hosted in Jenkins. For the purpose of showing howto generate pass/fail report (as piechart, for example), I have used the REST APIs available at ' https://builds.apache.org/job/Hadoop-Hdfs-trunk/'. And, potting is handled using matplotlib. Note: I have begun with build monitor for one project in Apache, Hadoop-Hdfs-trunk. Am sure, it should be possible to scale for this all the projects hosted at 'https://builds.apache.org Next Steps: (i) I plan to extend this further by archiving build details in mysqlite3. (ii) Eventually, create a package / utility for build monitoring hosted in Jenkins. Jupyter notebook is here: https://github.com/mramanathan/apache_buildmon/blob/master/V1/apache_hadoop_pacman.ipynb If you are interested to fork / collaborate, Github repo is: https://github.com/mramanathan/apache_buildmon Welcome your feedback. -- regards Ramanathan.M From thes.kumar at gmail.com Thu May 19 06:22:16 2016 From: thes.kumar at gmail.com (Saurabh Kumar) Date: Thu, 19 May 2016 15:52:16 +0530 Subject: [BangPypers] Delete my account In-Reply-To: References: Message-ID: On Thu, May 19, 2016 at 3:45 PM, Santosh Chiniwar wrote: > Dear Python team, > Please remove me from your mailing list so that I don't get emails from > you. > ?Checkout https://mail.python.org/mailman/listinfo/bangpypers and you should be able to remove yourself.? ?Cheers, ? > Thank you very much > > > Regards, > Santosh Chiniwar > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From ethirajit at gmail.com Sat May 21 09:03:10 2016 From: ethirajit at gmail.com (Ethiraj Krish) Date: Sat, 21 May 2016 18:33:10 +0530 Subject: [BangPypers] Python - Build Monitor : In-Reply-To: References: Message-ID: Hi, May I know apart from the below python module, Are you doing anything different? http://pypi.python.org/pypi/jenkinsapi https://pypi.python.org/pypi/python-jenkins/ I feel, what you are doing is already implemented. On Fri, May 20, 2016 at 4:54 PM, Ramanathan Muthaiah wrote: > Hello All, > > Sorry for the lengthy post. > > In the past meetups of Bangpypers, slot wasn't available to share about > this utility. > So, am posting some details on this topic. > > Objective: > Generate (possibly extend to real-time monitoring) build status for any > project hosted in Jenkins. > > For the purpose of showing howto generate pass/fail report (as piechart, > for example), I have used the REST APIs available at ' > https://builds.apache.org/job/Hadoop-Hdfs-trunk/'. And, potting is handled > using matplotlib. > > Note: > > I have begun with build monitor for one project in Apache, > Hadoop-Hdfs-trunk. > Am sure, it should be possible to scale for this all the projects hosted at > 'https://builds.apache.org > > Next Steps: > > (i) I plan to extend this further by archiving build details in mysqlite3. > (ii) Eventually, create a package / utility for build monitoring hosted in > Jenkins. > > Jupyter notebook is here: > > https://github.com/mramanathan/apache_buildmon/blob/master/V1/apache_hadoop_pacman.ipynb > > If you are interested to fork / collaborate, Github repo is: > https://github.com/mramanathan/apache_buildmon > > Welcome your feedback. > > -- > regards > Ramanathan.M > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > -- By, Ethiraj.K From rus.cahimb at gmail.com Sat May 21 14:15:22 2016 From: rus.cahimb at gmail.com (Ramanathan Muthaiah) Date: Sat, 21 May 2016 18:15:22 +0000 Subject: [BangPypers] Python - Build Monitor : In-Reply-To: References: Message-ID: Hi Ethiraj, > May I know apart from the below python module, Are you doing anything > different? > > http://pypi.python.org/pypi/jenkinsapi > https://pypi.python.org/pypi/python-jenkins/ > > I feel, what you are doing is already implemented. > Thanks for asking this question. I should answer to clarify why I choose to do it this way. Few months back, when I started to explore the automation topic (for some of the tasks in my full-time day job), I did explore these packages / modules. For some reason or other, I was blocked (sorry, am unable to recall what exactly the blocking issues). So, I chose to use urllib2 module (alongwith others) to access build data via Jenkins API. So, initially, the requirement was purely for internal usage i.e. within the company. Recently, I stumbled upon builds.apache.org (Jenkins infra) and thought I can re-use some of my learnings here as well. That's the trigger point to share this .ipynb code. Obviously, I couldn't code used in company's production environment but still I could replicate the same using build info from the various Apache projects. My personal opinion: Considering what has been done until now, it's pretty clear to me that (though I have re-invented the wheel) this learning experience has enabled me to gain the confidence and boldness to go out and try many other things, which I believe, wouldn't have been possible if I had not attempted this in the first place. -- regards Ramanathan.M (a.k.a Ram) From rus.cahimb at gmail.com Wed May 25 11:51:30 2016 From: rus.cahimb at gmail.com (Ramanathan Muthaiah) Date: Wed, 25 May 2016 15:51:30 +0000 Subject: [BangPypers] Python Tutor -- www.pythontutor.com Message-ID: Hello Pythonistas, Am not here to promote this tool for any commercial reasons. This post is meant to be sharing from recent experience. As part of 'python learning' program, am working with some of my colleagues to help them learn Python. Many of them are new to Python (some have used Perl or Shell). This online tutor has helped them immensely, though there are some limitations (like, modules cannot be imported). But, it cannot be denied that the learning experience is greatly enhanced by this tool. Do not be mislead by the name, tool support (as claimed in the landing site) other languages too ; however, I haven't tested them and cannot vouch for it. Link to the tool's architect/creator/developer website : http://www.pgbovine.net/ -- regards Ramanathan.M From vasudevram at gmail.com Wed May 25 12:58:29 2016 From: vasudevram at gmail.com (Vasudev Ram) Date: Wed, 25 May 2016 22:28:29 +0530 Subject: [BangPypers] Python Tutor -- www.pythontutor.com In-Reply-To: References: Message-ID: Yes, PythonTutor.com is a good site for learners (new or old). I had blogged about another such site, Codingbat, here: Codingbat, Progress Graphs and Michael Jordan: http://jugad2.blogspot.in/2013/02/codingbat-progress-graphs-and-michael.html And there are a few other sites on similar lines - the names escape me right now. Interestingly, this technology - of online editing and running of code via the browser - seems to be somewhat prevalent - even for a few compiled languages - e.g. the Go language has https://play.golang.org/ and D language also has such a feature, right on their front page, at http://dlang.org . I know that some of the dynamic languages use tools like emscripten to do this, but not sure how the statically compiled languages like Go and D do it - maybe just shell out to the compiler at the back end, to do a compile of the code that was in the browser text box, and then display the output in the browser in another box, or errors if any. - Vasudev --- Vasudev Ram - Dancing Bison Enterprises Independent software consultant and trainer - Python, C, Linux, databases, open source, ... - Web site: https://vasudevram.github.io - Blog: http://jugad2.blogspot.com On 5/25/16, Ramanathan Muthaiah wrote: > Hello Pythonistas, > > Am not here to promote this tool for any commercial reasons. This post is > meant to be sharing from recent experience. > > As part of 'python learning' program, am working with some of my colleagues > to help them learn Python. Many of them are new to Python (some have used > Perl or Shell). This online tutor has helped them immensely, though there > are some limitations (like, modules cannot be imported). But, it cannot be > denied that the learning experience is greatly enhanced by this tool. > > Do not be mislead by the name, tool support (as claimed in the landing > site) other languages too ; however, I haven't tested them and cannot vouch > for it. > > Link to the tool's architect/creator/developer website : > http://www.pgbovine.net/ > > -- > regards > Ramanathan.M > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From null at voidspace.xyz Thu May 26 06:29:10 2016 From: null at voidspace.xyz (null) Date: Thu, 26 May 2016 15:59:10 +0530 Subject: [BangPypers] Python Tutor -- www.pythontutor.com In-Reply-To: References: Message-ID: Hey Ram, pythontutor is not the only tool. There are really more amazing set of stuff we have espically for python This is a good collection : https://discuss.fsftn.org/t/getting-started-with-python/369/3 Please note, these are only the set of tools we have explored, there are a few more . . . I personally prefer the book called *"Thinking like a computer scientist" *. Its really amazing. On Wednesday 25 May 2016 09:21 PM, Ramanathan Muthaiah wrote: > Hello Pythonistas, > > Am not here to promote this tool for any commercial reasons. This post is > meant to be sharing from recent experience. > > As part of 'python learning' program, am working with some of my colleagues > to help them learn Python. Many of them are new to Python (some have used > Perl or Shell). This online tutor has helped them immensely, though there > are some limitations (like, modules cannot be imported). But, it cannot be > denied that the learning experience is greatly enhanced by this tool. > > Do not be mislead by the name, tool support (as claimed in the landing > site) other languages too ; however, I haven't tested them and cannot vouch > for it. > > Link to the tool's architect/creator/developer website : > http://www.pgbovine.net/ > > -- > regards > Ramanathan.M > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers From rus.cahimb at gmail.com Sun May 29 08:02:07 2016 From: rus.cahimb at gmail.com (Ramanathan Muthaiah) Date: Sun, 29 May 2016 12:02:07 +0000 Subject: [BangPypers] Creating "numeronyms" with the Five Laws of Library Science Message-ID: Hello Pythonistas, First things first, I was triggered to work on this numeronyms topic by this post from Vasudev Ram's blog: http://jugad2.blogspot.in/2016/05/i18nify-any-word-with-this-python.html >From his blog, short note on 18nify and numeronym: "i18nify" signifies making a numeronym of the given word, in the same manner that "i18n" is a numeronym for "internationalization" - because there are 18 letters between the starting "i" and the ending "n". Another example is "l10n" for "localization". I took the Five Laws of Library Science (these are sentences / phrases) to create numeronyms and the code is here on github: https://github.com/mramanathan/pydiary_notes/blob/master/howto_numeronyms_five_laws_of_library_science.ipynb a. This is not identical copy of 'jugad2' code but have used yield keyword. b. Using yield, makes the i18nify function a generator ; there are special methods to handle output from generator. Side Note: Dr.S.R.Ranganathan is considered as the Father of Library Science, he straddled both the worlds of mathematics and Libary Science. Quick intro on him is available at 1 & 2, Google will return more results. 1. http://librarysciencedegree.usc.edu/resources/infographics/dr-s-r-ranganathans-five-laws-of-library-science/ 2. https://en.wikipedia.org/wiki/S._R._Ranganathan -- regards Ramanathan.M From mandarvaze at gmail.com Mon May 30 05:19:00 2016 From: mandarvaze at gmail.com (=?UTF-8?B?TWFuZGFyIFZhemUgLyDgpK7gpILgpKbgpL7gpLAg4KS14KSd4KWH?=) Date: Mon, 30 May 2016 14:49:00 +0530 Subject: [BangPypers] Delete my account In-Reply-To: <573D9A40.5050109@letterboxes.org> References: <573D9A40.5050109@letterboxes.org> Message-ID: I am getting "*BangPypers roster authentication failed.*" error. BTW, is there an option (like google groups) to "view emails on the web only" so that membership remains intact and size of inbox also remains "under control" (No, I don't wanna unsubscribe) -Mandar On Thu, May 19, 2016 at 4:19 PM, Anand B Pillai wrote: > On Thursday 19 May 2016 03:45 PM, Santosh Chiniwar wrote: > > Dear Python team, > > Please remove me from your mailing list so that I don't get emails > from > > you. > > You dont need to bother admin for this. Go to > > https://mail.python.org/mailman/listinfo/bangpypers > > and unsubscribe yourself. > > > Thank you very much > > > > > > Regards, > > Santosh Chiniwar > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > -- > Regards, > > --Anand > > ---------------------------- > Software Architect/Consultant > anandpillai at letterboxes.org > > http://twitter.com/skeptichacker > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From mandarvaze at gmail.com Mon May 30 10:30:26 2016 From: mandarvaze at gmail.com (=?UTF-8?B?TWFuZGFyIFZhemUgLyDgpK7gpILgpKbgpL7gpLAg4KS14KSd4KWH?=) Date: Mon, 30 May 2016 20:00:26 +0530 Subject: [BangPypers] Delete my account In-Reply-To: <573D9A40.5050109@letterboxes.org> References: <573D9A40.5050109@letterboxes.org> Message-ID: I am getting "*BangPypers roster authentication failed.*" error. BTW, is there an option (like google groups) to "view emails on the web only" so that membership remains intact and size of inbox also remains "under control" (No, I don't wanna unsubscribe) -Mandar On Thu, May 19, 2016 at 4:19 PM, Anand B Pillai wrote: > On Thursday 19 May 2016 03:45 PM, Santosh Chiniwar wrote: > > Dear Python team, > > Please remove me from your mailing list so that I don't get emails > from > > you. > > You dont need to bother admin for this. Go to > > https://mail.python.org/mailman/listinfo/bangpypers > > and unsubscribe yourself. > > > Thank you very much > > > > > > Regards, > > Santosh Chiniwar > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > -- > Regards, > > --Anand > > ---------------------------- > Software Architect/Consultant > anandpillai at letterboxes.org > > http://twitter.com/skeptichacker > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > From abhi12ravi at gmail.com Tue May 31 11:37:37 2016 From: abhi12ravi at gmail.com (Abhiram Ravikumar) Date: Tue, 31 May 2016 21:07:37 +0530 Subject: [BangPypers] Delete my account In-Reply-To: References: <573D9A40.5050109@letterboxes.org> Message-ID: On Mon, May 30, 2016 at 2:49 PM, Mandar Vaze / ????? ??? < mandarvaze at gmail.com> wrote: > I am getting "*BangPypers roster authentication failed.*" error. > > BTW, is there an option (like google groups) to "view emails on the web > only" so that membership remains intact and size of inbox also remains > "under control" > > (No, I don't wanna unsubscribe) > Hi Mandar, All the mails on this list are publicly archived here . You can always setup a filter on your mail box and follow the discussions on the archive. Hope it helps. > > > On Thu, May 19, 2016 at 4:19 PM, Anand B Pillai < > anandpillai at letterboxes.org > > wrote: > > > On Thursday 19 May 2016 03:45 PM, Santosh Chiniwar wrote: > > > Dear Python team, > > > Please remove me from your mailing list so that I don't get emails > > from > > > you. > > > > You dont need to bother admin for this. Go to > > > > https://mail.python.org/mailman/listinfo/bangpypers > > > > and unsubscribe yourself. > > > > > Thank you very much > > > > > > > > > Regards, > > > Santosh Chiniwar > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > -- > > Regards, > > > > --Anand > > > > ---------------------------- > > Software Architect/Consultant > > anandpillai at letterboxes.org > > > > http://twitter.com/skeptichacker > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > https://mail.python.org/mailman/listinfo/bangpypers > -- Regards, Abhiram Ravikumar Regional Ambassador Lead, Mozilla http://abhiramrk.com/