From swathisingh353 at yahoo.in Wed Nov 7 08:00:42 2012 From: swathisingh353 at yahoo.in (Swathi Singh) Date: Wed, 7 Nov 2012 15:00:42 +0800 (SGT) Subject: [Ncr-Python.in] Python Projects Message-ID: <1352271642.31503.YahooMailNeo@web190202.mail.sg3.yahoo.com> Hi :)? We?ve built a site that aims at helping students upgrade their programming skills.? At Code Garage you can try your hand at cool coding projects like building a Minesweeper game or a Sudoku Solver. Link -?http://www.learnstreet.com/cg/simple/projects/python?utm_source=Python&utm_medium=RegalixML&utm_campaign=Ncr You can learn Python, Ruby, and JavaScript in a fun, engaging and interactive way. We just launched about a week ago and would love to get your feedback.? Thanks in advance - Swathi :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From kumar3180 at gmail.com Wed Nov 7 11:19:36 2012 From: kumar3180 at gmail.com (Raakesh kumar) Date: Wed, 7 Nov 2012 15:49:36 +0530 Subject: [Ncr-Python.in] Python Projects In-Reply-To: <1352271642.31503.YahooMailNeo@web190202.mail.sg3.yahoo.com> References: <1352271642.31503.YahooMailNeo@web190202.mail.sg3.yahoo.com> Message-ID: It's really good... And above all it's UI is very good On Wed, Nov 7, 2012 at 12:30 PM, Swathi Singh wrote: > Hi :) > > We?ve built a site that aims at helping students upgrade their programming > skills. > At Code Garage you can try your hand at cool coding projects like building > a Minesweeper game or a Sudoku Solver. > > Link - > http://www.learnstreet.com/cg/simple/projects/python?utm_source=Python&utm_medium=RegalixML&utm_campaign=Ncr > > You can learn Python, Ruby, and JavaScript in a fun, engaging and > interactive way. > We just launched about a week ago and would love to get your feedback. > > Thanks in advance - Swathi :) > > > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines > -- Regards RAKESH KUMAR http://raakeshkumar.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From swathisingh353 at yahoo.in Wed Nov 7 11:21:01 2012 From: swathisingh353 at yahoo.in (Swathi Singh) Date: Wed, 7 Nov 2012 18:21:01 +0800 (SGT) Subject: [Ncr-Python.in] Python Projects In-Reply-To: References: <1352271642.31503.YahooMailNeo@web190202.mail.sg3.yahoo.com> Message-ID: <1352283661.46791.YahooMailNeo@web190203.mail.sg3.yahoo.com> Thank you Rajesh. Glad you liked it :) ________________________________ From: Raakesh kumar To: NCR Python Users Group India Sent: Wednesday, 7 November 2012 3:49 PM Subject: Re: [Ncr-Python.in] Python Projects It's really good... And above all it's UI is very good On Wed, Nov 7, 2012 at 12:30 PM, Swathi Singh wrote: Hi :)? > > >We?ve built a site that aims at helping students upgrade their programming skills.? >At Code Garage you can try your hand at cool coding projects like building a Minesweeper game or a Sudoku Solver. > > > >Link -?http://www.learnstreet.com/cg/simple/projects/python?utm_source=Python&utm_medium=RegalixML&utm_campaign=Ncr > > >You can learn Python, Ruby, and JavaScript in a fun, engaging and interactive way. > >We just launched about a week ago and would love to get your feedback.? > > >Thanks in advance - Swathi :) > > >_______________________________________________ >http://mail.python.org/mailman/listinfo/ncr-python.in >Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines > -- Regards RAKESH KUMAR http://raakeshkumar.wordpress.com _______________________________________________ http://mail.python.org/mailman/listinfo/ncr-python.in Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines -------------- next part -------------- An HTML attachment was scrubbed... URL: From kumar3180 at gmail.com Wed Nov 7 11:25:52 2012 From: kumar3180 at gmail.com (Raakesh kumar) Date: Wed, 7 Nov 2012 15:55:52 +0530 Subject: [Ncr-Python.in] Python Projects In-Reply-To: <1352283661.46791.YahooMailNeo@web190203.mail.sg3.yahoo.com> References: <1352271642.31503.YahooMailNeo@web190202.mail.sg3.yahoo.com> <1352283661.46791.YahooMailNeo@web190203.mail.sg3.yahoo.com> Message-ID: It's Raakesh not rajesh.. ;) On Wed, Nov 7, 2012 at 3:51 PM, Swathi Singh wrote: > Thank you Rajesh. Glad you liked it :) > > ------------------------------ > *From:* Raakesh kumar > *To:* NCR Python Users Group India > *Sent:* Wednesday, 7 November 2012 3:49 PM > *Subject:* Re: [Ncr-Python.in] Python Projects > > It's really good... And above all it's UI is very good > > > On Wed, Nov 7, 2012 at 12:30 PM, Swathi Singh wrote: > > Hi :) > > We?ve built a site that aims at helping students upgrade their programming > skills. > At Code Garage you can try your hand at cool coding projects like building > a Minesweeper game or a Sudoku Solver. > > Link - > http://www.learnstreet.com/cg/simple/projects/python?utm_source=Python&utm_medium=RegalixML&utm_campaign=Ncr > > You can learn Python, Ruby, and JavaScript in a fun, engaging and > interactive way. > We just launched about a week ago and would love to get your feedback. > > Thanks in advance - Swathi :) > > > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines > > > > > -- > Regards > RAKESH KUMAR > http://raakeshkumar.wordpress.com > > > > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines > > > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines > -- Regards RAKESH KUMAR http://raakeshkumar.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From swathisingh353 at yahoo.in Wed Nov 7 11:26:31 2012 From: swathisingh353 at yahoo.in (Swathi Singh) Date: Wed, 7 Nov 2012 18:26:31 +0800 (SGT) Subject: [Ncr-Python.in] Python Projects In-Reply-To: References: <1352271642.31503.YahooMailNeo@web190202.mail.sg3.yahoo.com> <1352283661.46791.YahooMailNeo@web190203.mail.sg3.yahoo.com> Message-ID: <1352283991.52034.YahooMailNeo@web190201.mail.sg3.yahoo.com> Sorry for the confusion. Hope you?didn't?mind :) ________________________________ From: Raakesh kumar To: NCR Python Users Group India Sent: Wednesday, 7 November 2012 3:55 PM Subject: Re: [Ncr-Python.in] Python Projects It's Raakesh not rajesh.. ;) On Wed, Nov 7, 2012 at 3:51 PM, Swathi Singh wrote: Thank you Rajesh. Glad you liked it :) > > > >________________________________ > From: Raakesh kumar >To: NCR Python Users Group India >Sent: Wednesday, 7 November 2012 3:49 PM >Subject: Re: [Ncr-Python.in] Python Projects > > > >It's really good... And above all it's UI is very good > > > >On Wed, Nov 7, 2012 at 12:30 PM, Swathi Singh wrote: > >Hi :)? >> >> >>We?ve built a site that aims at helping students upgrade their programming skills.? >>At Code Garage you can try your hand at cool coding projects like building a Minesweeper game or a Sudoku Solver. >> >> >> >>Link -?http://www.learnstreet.com/cg/simple/projects/python?utm_source=Python&utm_medium=RegalixML&utm_campaign=Ncr >> >> >>You can learn Python, Ruby, and JavaScript in a fun, engaging and interactive way. >> >>We just launched about a week ago and would love to get your feedback.? >> >> >>Thanks in advance - Swathi :) >> >> >>_______________________________________________ >>http://mail.python.org/mailman/listinfo/ncr-python.in >>Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines >> > > > >-- >Regards >RAKESH KUMAR >http://raakeshkumar.wordpress.com > > > >_______________________________________________ >http://mail.python.org/mailman/listinfo/ncr-python.in >Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines > > >_______________________________________________ >http://mail.python.org/mailman/listinfo/ncr-python.in >Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines > -- Regards RAKESH KUMAR http://raakeshkumar.wordpress.com _______________________________________________ http://mail.python.org/mailman/listinfo/ncr-python.in Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines -------------- next part -------------- An HTML attachment was scrubbed... URL: From kumar3180 at gmail.com Thu Nov 8 11:17:25 2012 From: kumar3180 at gmail.com (Raakesh kumar) Date: Thu, 8 Nov 2012 15:47:25 +0530 Subject: [Ncr-Python.in] [ilugd][NCR-PYTHON]Mail Server Creation in Python Message-ID: Dear All, I have to start a project for our internal purpose and that is we have to create a MTA which will take data from our database(like from, to, message etc.) and will transfer/receive it to/from other ISPs (e.g. google mail, yahoo mails). The problem which i think could arise is, our peak time value for sending/receiving mails would be 5K mails/sec. I can develop normal server and can use python for this purpose but not sure whether it will be able to handle 5K mails/sec so thought to ask first. -- Regards RAKESH KUMAR http://raakeshkumar.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From noufal at gmail.com Thu Nov 8 11:33:13 2012 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 08 Nov 2012 16:03:13 +0530 Subject: [Ncr-Python.in] [ilugd][NCR-PYTHON]Mail Server Creation in Python In-Reply-To: (Raakesh kumar's message of "Thu, 8 Nov 2012 15:47:25 +0530") References: Message-ID: <87mwystmdy.fsf@sanitarium.localdomain> Raakesh kumar writes: > Dear All, I have to start a project for our internal purpose and that > is we have to create a MTA which will take data from our database(like > from, to, message etc.) and will transfer/receive it to/from other > ISPs (e.g. google mail, yahoo mails). The problem which i think could > arise is, our peak time value for sending/receiving mails would be 5K > mails/sec. I can develop normal server and can use python for this > purpose but not sure whether it will be able to handle 5K mails/sec so > thought to ask first. This sounds interesting. Can you elaborate a little? You say that you will take data from your database and then receive from places like Google mail. How does that work? Sending email can be a simple script that uses smtplib and reads from a database. You can easily scale it by creating multiple instances of this script that operate on pieces of the database. Receiving email means an SMTP server listening on a port. This will be a little more complicated but you can write one using lamson[1]. I don't know about how much email it can handle but if you do very minimal processing in Python before handing it over to a real SMTP server like postfix, it might be able to handle the load. Alternatively, you can simply let a regular smtp server receive email into a local spool file or store them in a way which is then exposed by an IMAP/POP server. Then a tiny python script to read emails out of this and process them would be able to lag behind the high email load. Footnotes: [1] https://github.com/zedshaw/lamson -- Cordially, Noufal http://nibrahim.net.in From kumar3180 at gmail.com Thu Nov 8 11:52:46 2012 From: kumar3180 at gmail.com (Raakesh kumar) Date: Thu, 8 Nov 2012 16:22:46 +0530 Subject: [Ncr-Python.in] [ilugd][NCR-PYTHON]Mail Server Creation in Python In-Reply-To: <87mwystmdy.fsf@sanitarium.localdomain> References: <87mwystmdy.fsf@sanitarium.localdomain> Message-ID: [...] On Thu, Nov 8, 2012 at 4:03 PM, Noufal Ibrahim wrote: > > This sounds interesting. Can you elaborate a little? > > You say that you will take data from your database and then receive from > places like Google mail. How does that work? > [/...] First of all Thank You Sir. Actually, we have to send mails to so many people like some lacks or so and sometimes concurrently e.g 5-6K per/sec and Gmail generally doesn't provide facility(as much i know). So i thought to develop my own system which can do it. [...] > > Sending email can be a simple script that uses smtplib and reads from a > database. You can easily scale it by creating multiple instances of this > script that operate on pieces of the database. > [/...] Can you please elaborate this? What does that mean by operating in pieces? [...] > > Receiving email means an SMTP server listening on a port. This will be a > little more complicated but you can write one using lamson[1]. I don't > know about how much email it can handle but if you do very minimal > processing in Python before handing it over to a real SMTP server like > postfix, it might be able to handle the load. [/...] This has been solved actually now we will not receive mails through it. Now my requirement is just to build a system to send mails in fact bulk mails. AFAIK i can pick data from database and by simple looping it can be sent to others but this huge figure is something scary. Any comment on this? -- Regards RAKESH KUMAR http://raakeshkumar.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ar at blobinfotech.com Fri Nov 16 07:35:44 2012 From: ar at blobinfotech.com (Aditya R) Date: Fri, 16 Nov 2012 12:05:44 +0530 Subject: [Ncr-Python.in] [job] Python developer at a Delhi startup Message-ID: Hey everyone, We're an internet startup based in Delhi, and are looking for Python developers. We can do either full-time or part-time positions, so long as you're based in Delhi/NCR. We don't require any particular qualifications, so long as you're a really good programmer and are interested in full-stack development at a startup. We do provide very competitive compensation. Experience with any of the following would be a bonus: - Django - Web development technologies such as CSS and jQuery - Mobile apps development - User Interface and Graphics design - Search libraries such as Solr/ElasticSearch/Whoosh - Machine learning / NLP You can view complete job descriptions at http://jobs.hasgeek.com/at/blobinfotech.com. If you're interested, please email us at jobs at blobinfotech.com. Thanks, Aditya -------------- next part -------------- An HTML attachment was scrubbed... URL: From prem.iiita at gmail.com Sat Nov 17 07:11:05 2012 From: prem.iiita at gmail.com (Pradeep kumar) Date: Sat, 17 Nov 2012 11:41:05 +0530 Subject: [Ncr-Python.in] [job] Python developer at a Delhi startup In-Reply-To: References: Message-ID: Hi, I am open for this position, please find the attachment for my updated cv. On Nov 16, 2012 12:05 PM, "Aditya R" wrote: > Hey everyone, > > We're an internet startup based in Delhi, and are looking for Python > developers. We can do either full-time or part-time positions, so long as > you're based in Delhi/NCR. We don't require any particular qualifications, > so long as you're a really good programmer and are interested in full-stack > development at a startup. We do provide very competitive compensation. > > Experience with any of the following would be a bonus: > > - Django > - Web development technologies such as CSS and jQuery > - Mobile apps development > - User Interface and Graphics design > - Search libraries such as Solr/ElasticSearch/Whoosh > - Machine learning / NLP > > You can view complete job descriptions at > http://jobs.hasgeek.com/at/blobinfotech.com. > > If you're interested, please email us at jobs at blobinfotech.com. > > Thanks, > Aditya > > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Resume.docx Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document Size: 15188 bytes Desc: not available URL: From n9986.mali at gmail.com Sat Nov 17 08:55:39 2012 From: n9986.mali at gmail.com (Nandeep Mali) Date: Sat, 17 Nov 2012 13:25:39 +0530 Subject: [Ncr-Python.in] [job] Python developer at a Delhi startup In-Reply-To: References: Message-ID: Please take this conversation off a public thread. Very Unprofessional to post your resume in public like this. On Sat, Nov 17, 2012 at 11:41 AM, Pradeep kumar wrote: > Hi, > I am open for this position, please find the attachment for my updated cv. > On Nov 16, 2012 12:05 PM, "Aditya R" wrote: > >> Hey everyone, >> >> We're an internet startup based in Delhi, and are looking for Python >> developers. We can do either full-time or part-time positions, so long as >> you're based in Delhi/NCR. We don't require any particular qualifications, >> so long as you're a really good programmer and are interested in full-stack >> development at a startup. We do provide very competitive compensation. >> >> Experience with any of the following would be a bonus: >> >> - Django >> - Web development technologies such as CSS and jQuery >> - Mobile apps development >> - User Interface and Graphics design >> - Search libraries such as Solr/ElasticSearch/Whoosh >> - Machine learning / NLP >> >> You can view complete job descriptions at >> http://jobs.hasgeek.com/at/blobinfotech.com. >> >> If you're interested, please email us at jobs at blobinfotech.com. >> >> Thanks, >> Aditya >> >> _______________________________________________ >> http://mail.python.org/mailman/listinfo/ncr-python.in >> Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines >> > > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines > -------------- next part -------------- An HTML attachment was scrubbed... URL: From preet10101992 at gmail.com Sat Nov 17 15:25:53 2012 From: preet10101992 at gmail.com (Harpreet Singh Chawla) Date: Sat, 17 Nov 2012 19:55:53 +0530 Subject: [Ncr-Python.in] project related help Message-ID: i hav been doing a project on operating systems in python and am getting stuck repeatedly. My project is basically to make a system monitor in distributed systems. the architecture of my code is as follows: it is a three level system, consisting of servers, clients and coordinator the way this must function is this: a coordinator is set up which handles requests. it will connect to servers and clients. then it'll fetch data from servers. the data will be the number of clients it is connected to and the free space it has. according to this data, it'll transfer the incoming clients to the servers so that none gets overloaded. and then there will be file transfer from servers to clients and vice-versa if someone can plz give me a code with connectivity between the servers clients and coordinator so that i can make a system monitor on it, or any idea as to how i can do it within 2-3 days will be highly obliged thnx fr help -------------- next part -------------- An HTML attachment was scrubbed... URL: From gora at mimirtech.com Sat Nov 17 16:00:56 2012 From: gora at mimirtech.com (Gora Mohanty) Date: Sat, 17 Nov 2012 20:30:56 +0530 Subject: [Ncr-Python.in] project related help In-Reply-To: References: Message-ID: On 17 November 2012 19:55, Harpreet Singh Chawla wrote: > i hav been doing a project on operating systems in python and am getting > stuck repeatedly. My project is basically to make a system monitor in > distributed systems. [...] > if someone can plz give me a code with connectivity between the servers > clients and coordinator so that i can make a system monitor on it, or any > idea as to how i can do it within 2-3 days will be highly obliged Is this a student assignment? If so, it is unethical to ask for someone to give you completed code, and to use it without giving proper credit. A better bet for you to get real help would be to: (a) Look at, and understand, the code of open-source projects that do similar things. (b) Ask specific questions regarding issues that you are getting stuck on, showing your code for these areas. Yes, this is unlikely to get done in 2-3 days, but then you should have started earlier. Regards, Gora From k.03chandra at gmail.com Sat Nov 17 16:09:23 2012 From: k.03chandra at gmail.com (chandrakant kumar) Date: Sat, 17 Nov 2012 20:39:23 +0530 Subject: [Ncr-Python.in] project related help In-Reply-To: References: Message-ID: What code have you written so far, where is it hosted? On Sat, Nov 17, 2012 at 7:55 PM, Harpreet Singh Chawla < preet10101992 at gmail.com> wrote: > i hav been doing a project on operating systems in python and am getting > stuck repeatedly. My project is basically to make a system monitor in > distributed systems. > > the architecture of my code is as follows: > it is a three level system, consisting of servers, clients and coordinator > > the way this must function is this: > a coordinator is set up which handles requests. it will connect to servers > and clients. then it'll fetch data from servers. the data will be the > number of clients it is connected to and the free space it has. > according to this data, it'll transfer the incoming clients to the servers > so that none gets overloaded. > and then there will be file transfer from servers to clients and vice-versa > > if someone can plz give me a code with connectivity between the servers > clients and coordinator so that i can make a system monitor on it, or any > idea as to how i can do it within 2-3 days will be highly obliged > > thnx fr help > > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines > -- regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From kumar3180 at gmail.com Sat Nov 17 17:42:03 2012 From: kumar3180 at gmail.com (Raakesh kumar) Date: Sat, 17 Nov 2012 22:12:03 +0530 Subject: [Ncr-Python.in] project related help In-Reply-To: References: Message-ID: [...] On Sat, Nov 17, 2012 at 7:55 PM, Harpreet Singh Chawla < preet10101992 at gmail.com> wrote: > > if someone can plz give me a code with connectivity between the servers > clients and coordinator so that i can make a system monitor on it, or any > idea as to how i can do it within 2-3 days will be highly obliged > > thnx fr help > > [/...] >From your question, It doesn't seem to be your genuine idea. Anyways that's not my issue but what i am able to understand from your post is, you don't even have any idea to what exactly you should look for and how to proceed. As the thing you are asking is not a small thing and can't be suggested anything specific but just to tell you a way to proceed i would recommend to study about REST to process requests and responses between client and server. Hope this helps. -- Regards RAKESH KUMAR http://raakeshkumar.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From preet10101992 at gmail.com Sat Nov 17 18:32:07 2012 From: preet10101992 at gmail.com (Harpreet Singh Chawla) Date: Sat, 17 Nov 2012 23:02:07 +0530 Subject: [Ncr-Python.in] my codes Message-ID: sir actually i have joined today itself and i even am having trouble with continuing threads plz be a bit obliging the sequence of code execution is command5 piping4 and client command4 is the coordinator code piping4 is the server code client is the client code the servers connect fine but when i run client it connects like a server but i am not finding a way to make the coordinator distinguish between the two thanking u -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: client.py Type: application/octet-stream Size: 1011 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: piping4.py Type: application/octet-stream Size: 3765 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: command4.py Type: application/octet-stream Size: 2768 bytes Desc: not available URL: From kumar3180 at gmail.com Sun Nov 18 08:55:09 2012 From: kumar3180 at gmail.com (Raakesh kumar) Date: Sun, 18 Nov 2012 13:25:09 +0530 Subject: [Ncr-Python.in] my codes In-Reply-To: References: Message-ID: [...] On Sat, Nov 17, 2012 at 11:02 PM, Harpreet Singh Chawla < preet10101992 at gmail.com> wrote: > sir actually i have joined today itself > > and i even am having trouble with continuing threads > [/...] Dear Harpreet, This is not an issue that when did you join this community and you can resolve all the problems you are facing by going through guidelines for the mailing list. [...] > plz be a bit obliging > the sequence of code execution is command5 piping4 and client > command4 is the coordinator code > piping4 is the server code > client is the client code > > the servers connect fine > but when i run client it connects like a server > but i am not finding a way to make the coordinator distinguish between the > two > > [/...] See, i don't think that anybody has this much of time that he will look into your code, debug it and suggest you solutions. We are here to help each other and this is the way a community runs. If you will be very specific to your question everybody would love to help you but posting a complete project and then asking question is not a good way. PS:: You are asking us to cook food and you will grab that rather you should ask questions like how much spice/salt you should use to cook. Hope i made my points clear. -- Regards RAKESH KUMAR http://raakeshkumar.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From preet10101992 at gmail.com Sun Nov 18 09:01:49 2012 From: preet10101992 at gmail.com (Harpreet Singh Chawla) Date: Sun, 18 Nov 2012 13:31:49 +0530 Subject: [Ncr-Python.in] my codes In-Reply-To: References: Message-ID: sir actually i have joined today itself and i even am having trouble with continuing threads plz be a bit obliging the sequence of code execution is command5 piping4 and client command4 is the coordinator code piping4 is the server code client is the client code the servers connect fine but when i run client it connects like a server but i am not finding a way to make the coordinator distinguish between the two thanking u -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: client.py Type: application/octet-stream Size: 1011 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: piping4.py Type: application/octet-stream Size: 3765 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: command4.py Type: application/octet-stream Size: 2768 bytes Desc: not available URL: From n9986.mali at gmail.com Sun Nov 18 09:44:55 2012 From: n9986.mali at gmail.com (Nandeep Mali) Date: Sun, 18 Nov 2012 14:14:55 +0530 Subject: [Ncr-Python.in] my codes In-Reply-To: References: Message-ID: * facepalm * This thread is going nowhere. Thank you Raakesh, for your attempt. On Sun, Nov 18, 2012 at 1:31 PM, Harpreet Singh Chawla < preet10101992 at gmail.com> wrote: > sir actually i have joined today itself > > and i even am having trouble with continuing threads > plz be a bit obliging > > the sequence of code execution is command5 piping4 and client > command4 is the coordinator code > piping4 is the server code > client is the client code > > the servers connect fine > but when i run client it connects like a server > but i am not finding a way to make the coordinator distinguish between the > two > > thanking u > > > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hildebrand.us at gmail.com Mon Nov 19 06:46:13 2012 From: hildebrand.us at gmail.com (hildebrand victor) Date: Mon, 19 Nov 2012 11:16:13 +0530 Subject: [Ncr-Python.in] Dynamic CSV importer In-Reply-To: References: Message-ID: > > Using the csv module in the python standard library you can read the > csv file and loop over the data and populate the model user selects. > > dsv module is also available separately for reading delimiter separated variables. Here is its description for reference:- Python-DSV is an alternative to Python's standard csv module, with somewhat different usage and optional support for wxWidgets-mediated user interaction in the course of format autodetection. Like the standard module, it supports a wide range of delimiters and handles both import and export. I have used it for some huge files without any problems. Regards HB -------------- next part -------------- An HTML attachment was scrubbed... URL: From kumar3180 at gmail.com Mon Nov 19 10:45:59 2012 From: kumar3180 at gmail.com (Raakesh kumar) Date: Mon, 19 Nov 2012 15:15:59 +0530 Subject: [Ncr-Python.in] [ilugd][NCR-PYTHON]Mail Server Creation in Python In-Reply-To: <87mwystmdy.fsf@sanitarium.localdomain> References: <87mwystmdy.fsf@sanitarium.localdomain> Message-ID: [...] On Thu, Nov 8, 2012 at 4:03 PM, Noufal Ibrahim wrote: > > This sounds interesting. Can you elaborate a little? > > You say that you will take data from your database and then receive from > places like Google mail. How does that work? > > Sending email can be a simple script that uses smtplib and reads from a > database. You can easily scale it by creating multiple instances of this > script that operate on pieces of the database. > [/...] Actually i simply don't have to write a mail sending script but a specialized MTA in python. I have read that python smtplib uses other MTA like sendmail(correct me if wrong). [...] > > Receiving email means an SMTP server listening on a port. This will be a > little more complicated but you can write one using lamson[1]. I don't > know about how much email it can handle but if you do very minimal > processing in Python before handing it over to a real SMTP server like > postfix, it might be able to handle the load. Alternatively, you can > simply let a regular smtp server receive email into a local spool file > or store them in a way which is then exposed by an IMAP/POP server. Then > a tiny python script to read emails out of this and process them would > be able to lag behind the high email load. > > [/...] I am now not intended to receive mails. Actually i just wrote a python script to send mails using smtp but it was very slow (nearly one mail per sec) but then i switched the code to threading concept and created simultaneous threads to process it but this also didn't help much (and now speed is nealy 4-6 mails/sec). I am very worried whether i can achieve my peak value or not. But spending time on it i realized that its not actually an MTA but a simple python script that uses systems sendmail MTA. Any suggestion on this? -- Regards RAKESH KUMAR http://raakeshkumar.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From kumar3180 at gmail.com Tue Nov 20 10:26:52 2012 From: kumar3180 at gmail.com (Raakesh kumar) Date: Tue, 20 Nov 2012 14:56:52 +0530 Subject: [Ncr-Python.in] Python Certification Message-ID: Hello geeks, I have a question that, is there any international python certification available which is reputed like SCJP in Java? -- Regards RAKESH KUMAR http://raakeshkumar.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From diptanuc at gmail.com Tue Nov 20 13:16:59 2012 From: diptanuc at gmail.com (Diptanu Choudhury) Date: Tue, 20 Nov 2012 12:16:59 +0000 Subject: [Ncr-Python.in] Python Certification In-Reply-To: References: Message-ID: One of the reasons Python is cool is because that the eco system is not like Java, so no SCJP type stuff in the Python world. On Tue, Nov 20, 2012 at 9:26 AM, Raakesh kumar wrote: > Hello geeks, > I have a question that, is there any international python certification > available which is reputed like SCJP in Java? > > -- > Regards > RAKESH KUMAR > http://raakeshkumar.wordpress.com > > > > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines > -- Thanks, Diptanu Choudhury Web - www.linkedin.com/in/diptanu Twitter - @diptanu -------------- next part -------------- An HTML attachment was scrubbed... URL: From k.03chandra at gmail.com Tue Nov 20 17:26:08 2012 From: k.03chandra at gmail.com (chandrakant kumar) Date: Tue, 20 Nov 2012 21:56:08 +0530 Subject: [Ncr-Python.in] Python Certification In-Reply-To: References: Message-ID: Your open source work is your certification. On Tue, Nov 20, 2012 at 2:56 PM, Raakesh kumar wrote: > Hello geeks, > I have a question that, is there any international python certification > available which is reputed like SCJP in Java? > > -- > Regards > RAKESH KUMAR > http://raakeshkumar.wordpress.com > > > > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines > -- regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From vishalruhela at outlook.com Tue Nov 20 17:41:04 2012 From: vishalruhela at outlook.com (Vishal Ruhela) Date: Tue, 20 Nov 2012 22:11:04 +0530 Subject: [Ncr-Python.in] Small feed Back From a Newbie !! In-Reply-To: References: , Message-ID: Hi Everyone, I have joined this group recently, also I am new to python programming. Prior to that I have worked on ASP.net, JavaScript, Jquery, Shell Scripting. In my current role, I am working on these technologies but I want to move ahead with python in my tool kit. Having discussed my short fairytale, I want to bring a point to everyone's attention. I am looking at the post of these groups from last couple of days and I suppose there could be a little more we can do to discuss about the technologies, about each other and moving forward, if we could have Some Skype-meets, webinar's, Personal get together ( since location is a not major concern for all of us ). Please let me know if you have more ideas or want to add something. A facebook group would be a nice Idea to start with ( If there is one then please let me know). Regards, Vishal Ruhela Date: Tue, 20 Nov 2012 21:56:08 +0530 From: k.03chandra at gmail.com To: ncr-python.in at python.org Subject: Re: [Ncr-Python.in] Python Certification Your open source work is your certification. On Tue, Nov 20, 2012 at 2:56 PM, Raakesh kumar wrote: Hello geeks,I have a question that, is there any international python certification available which is reputed like SCJP in Java? -- Regards RAKESH KUMAR http://raakeshkumar.wordpress.com _______________________________________________ http://mail.python.org/mailman/listinfo/ncr-python.in Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines -- regards _______________________________________________ http://mail.python.org/mailman/listinfo/ncr-python.in Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines -------------- next part -------------- An HTML attachment was scrubbed... URL: From noufal at gmail.com Tue Nov 20 18:01:18 2012 From: noufal at gmail.com (Noufal Ibrahim) Date: Tue, 20 Nov 2012 22:31:18 +0530 Subject: [Ncr-Python.in] Python Certification In-Reply-To: (Raakesh kumar's message of "Tue, 20 Nov 2012 14:56:52 +0530") References: Message-ID: <87lidw9pk1.fsf@sanitarium.localdomain> Raakesh kumar writes: > Hello geeks, > I have a question that, is there any international python certification > available which is reputed like SCJP in Java? The only one I know of is the Python programming certificate from O'Reilly. I believe the former PSF chairman, Steve Holden, was involved in creating the course. http://www.oreillyschool.com/certificates/python-programming.php -- Cordially, Noufal http://nibrahim.net.in From satyaakam at gmail.com Tue Nov 20 18:16:00 2012 From: satyaakam at gmail.com (satyaakam goswami) Date: Tue, 20 Nov 2012 22:46:00 +0530 Subject: [Ncr-Python.in] Small feed Back From a Newbie !! In-Reply-To: References: Message-ID: > > Having discussed my short fairytale, I want to bring a point to everyone's > attention. I am looking at the post of these groups from last couple of > days and I suppose there could be a little more we can do to discuss about > the technologies, about each other and moving forward, if we could have > Some Skype-meets, webinar's, Personal get together ( since location is a > not major concern for all of us ). > > Please let me know if you have more ideas or want to add something. A > facebook group would be a nice Idea to start with ( If there is one then > please let me know). > Linux users groups Delhi meets every second Saturday in JNU , we can start getting together and talk about Python to begin with once you or others feel the groups and the interest is specific enough you can think of other times and place to meetup , no need of Facebook etc we can start talking about it on the mailing lists itself. -Satya fossevents.in -------------- next part -------------- An HTML attachment was scrubbed... URL: From vishalruhela at hcl.com Tue Nov 20 18:27:02 2012 From: vishalruhela at hcl.com (Vishal Ruhela) Date: Tue, 20 Nov 2012 22:57:02 +0530 Subject: [Ncr-Python.in] Small feed Back From a Newbie !! Message-ID: Thanks for the response Satya, and ir not every saturday then we can plan it twice or once a month. Also, A facebook group will allow the group members to gel with each other. Also, group chat will sort out doubts of many. I think we need to convince the admins for the same. Admins, your response is awaited !! Thank you... Regards, Vishal Ruhela -Sent from my Windows Phone ________________________________ From: satyaakam goswami Sent: 20-11-2012 22:46 To: NCR Python Users Group India Subject: Re: [Ncr-Python.in] Small feed Back From a Newbie !! > > Having discussed my short fairytale, I want to bring a point to everyone's > attention. I am looking at the post of these groups from last couple of > days and I suppose there could be a little more we can do to discuss about > the technologies, about each other and moving forward, if we could have > Some Skype-meets, webinar's, Personal get together ( since location is a > not major concern for all of us ). > > Please let me know if you have more ideas or want to add something. A > facebook group would be a nice Idea to start with ( If there is one then > please let me know). > Linux users groups Delhi meets every second Saturday in JNU , we can start getting together and talk about Python to begin with once you or others feel the groups and the interest is specific enough you can think of other times and place to meetup , no need of Facebook etc we can start talking about it on the mailing lists itself. -Satya fossevents.in -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ http://mail.python.org/mailman/listinfo/ncr-python.in Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines From satyaakam at gmail.com Tue Nov 20 18:33:23 2012 From: satyaakam at gmail.com (satyaakam goswami) Date: Tue, 20 Nov 2012 23:03:23 +0530 Subject: [Ncr-Python.in] Small feed Back From a Newbie !! In-Reply-To: References: Message-ID: On Tue, Nov 20, 2012 at 10:57 PM, Vishal Ruhela wrote: > Thanks for the response Satya, and ir not every saturday then we can > plan it twice or once a month. Also, A facebook group will allow the group > members to gel with each other. Also, group chat will sort out doubts of > many. > i said every second Saturday that comes to once in a month :-) , do as you feel is correct , i doubt it will serve any special purpose looking at the interactions i have seen so far on the list. > I think we need to convince the admins for the same. > Admins, your response is awaited !! > heeh i am the one , why do you need anything from them , just go ahead and announce a meeting we will be there :-) -Satya fossevents.in -------------- next part -------------- An HTML attachment was scrubbed... URL: From n9986.mali at gmail.com Tue Nov 20 18:44:27 2012 From: n9986.mali at gmail.com (Nandeep Mali) Date: Tue, 20 Nov 2012 23:14:27 +0530 Subject: [Ncr-Python.in] Small feed Back From a Newbie !! In-Reply-To: References: Message-ID: On Tue, Nov 20, 2012 at 11:03 PM, satyaakam goswami wrote: [...] >> I think we need to convince the admins for the same. >> Admins, your response is awaited !! > > > heeh i am the one , why do you need anything from them , just go ahead and > announce a meeting we will be there :-) He also wants to convinces the admins for a Facebook page. I believe a facebook page is just another diversion from the actual mailing list and fragments the crowd. As it is there is hardly any traffic here. From vishalruhela at hcl.com Tue Nov 20 18:54:03 2012 From: vishalruhela at hcl.com (Vishal Ruhela) Date: Tue, 20 Nov 2012 23:24:03 +0530 Subject: [Ncr-Python.in] Small feed Back From a Newbie !! Message-ID: Satya, Like I said, we should start with a fb group and occasional skype meetings. And, If we have a common consent of the group members then we can probably arrange a meeting. But, at least we should have a fb group so that guys can discuss things while being at their place. And, I am sorry I dont know you were the admin. I suppose, let the other members comment on this thread. And, in meantime we start with a fb group. Regards, Vishal Ruhela -Sent from my Windows Phone ________________________________ From: satyaakam goswami Sent: 20-11-2012 23:04 To: NCR Python Users Group India Subject: Re: [Ncr-Python.in] Small feed Back From a Newbie !! On Tue, Nov 20, 2012 at 10:57 PM, Vishal Ruhela wrote: > Thanks for the response Satya, and ir not every saturday then we can > plan it twice or once a month. Also, A facebook group will allow the group > members to gel with each other. Also, group chat will sort out doubts of > many. > i said every second Saturday that comes to once in a month :-) , do as you feel is correct , i doubt it will serve any special purpose looking at the interactions i have seen so far on the list. > I think we need to convince the admins for the same. > Admins, your response is awaited !! > heeh i am the one , why do you need anything from them , just go ahead and announce a meeting we will be there :-) -Satya fossevents.in -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- _______________________________________________ http://mail.python.org/mailman/listinfo/ncr-python.in Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines From vishalruhela at hcl.com Tue Nov 20 18:58:37 2012 From: vishalruhela at hcl.com (Vishal Ruhela) Date: Tue, 20 Nov 2012 23:28:37 +0530 Subject: [Ncr-Python.in] Small feed Back From a Newbie !! Message-ID: Nandeep, I truely abide by your point but a fb group will allow guys to know each other well. I am a member of a Game design group on fb and the best part about it is, that we got the chance who worked for firms like EA games and ubisoft to discuss our points. An postive intiative would be a good step moving forward. Regards, Vishal Ruhela -Sent from my Windows Phone ________________________________ From: Nandeep Mali Sent: 20-11-2012 23:16 To: NCR Python Users Group India Subject: Re: [Ncr-Python.in] Small feed Back From a Newbie !! On Tue, Nov 20, 2012 at 11:03 PM, satyaakam goswami wrote: [...] >> I think we need to convince the admins for the same. >> Admins, your response is awaited !! > > > heeh i am the one , why do you need anything from them , just go ahead and > announce a meeting we will be there :-) He also wants to convinces the admins for a Facebook page. I believe a facebook page is just another diversion from the actual mailing list and fragments the crowd. As it is there is hardly any traffic here. _______________________________________________ http://mail.python.org/mailman/listinfo/ncr-python.in Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines -------------- next part -------------- An HTML attachment was scrubbed... URL: From kumar3180 at gmail.com Tue Nov 20 19:51:38 2012 From: kumar3180 at gmail.com (Raakesh kumar) Date: Wed, 21 Nov 2012 00:21:38 +0530 Subject: [Ncr-Python.in] Small feed Back From a Newbie !! In-Reply-To: References: Message-ID: [...] On 11/20/12, Vishal Ruhela wrote: > Thanks for the response Satya, and ir not every saturday then we can plan it [/...] I agree with Stya sir and if you have any agenda/topic to discuss or want a seminar/talk, announce something and we can plan it in our regular meetings.. And once we start getting a very good response, we can also have a separate get together. As many of us may not be interested in other topics. Last year if i remember properly, we had started meeting each other but i don't know why it stopped. Maybe because of lack of proper agenda but that's still open. At least i am interested and open for it, though i hardly go to any such meetings ;). [...] > twice or once a month. Also, A facebook group will allow the group members > to gel with each other. Also, group chat will sort out doubts of many. > > I think we need to convince the admins for the same. > Admins, your response is awaited !! [/...] It's a community and there is no admin here (at least for this purpose), you can announce your agenda and then plan it as per the responses from others. Why Facebook? If you want to discuss any idea, you can do that here also then there is no need of Facebook or any other social network platform because we already have this one to communicate. Come to meetings and if you wish to connect with anyone personally, do that in meetings. Here like i posted in my previous mail also we are not here to teach anyone but to share our knowledge and learn from others, that's it. So why group chat? There is nothing personal/hidden here. You post your doubts/suggestions and will get ample of responses within a day and whenever you feel a need of talks or meeting, announce it here. I think that would be a good idea. AFAIK there are several IRC chats available for python and other open source tools where you can talk to them for any help. -- Regards RAKESH KUMAR http://raakeshkumar.wordpress.com From gora at mimirtech.com Wed Nov 21 06:34:20 2012 From: gora at mimirtech.com (Gora Mohanty) Date: Wed, 21 Nov 2012 11:04:20 +0530 Subject: [Ncr-Python.in] Small feed Back From a Newbie !! In-Reply-To: References: Message-ID: On 20 November 2012 23:28, Vishal Ruhela wrote: > Nandeep, > > I truely abide by your point but a fb group will allow guys to know each > other well. I am a member of a Game design group on fb and the best part > about it is, that we got the chance who worked for firms like EA games and > ubisoft to discuss our points. [...] Disagree. A mailing list serves a very different purpose from a Facebook group, and Facebook is such an invasion of privacy that I imagine many people would want to stay away from it. IMHO, this mailing list should remain the focus of the group. People have already suggested various ways of improving interaction. I do not think that forcing people to join Facebook in order to participate in this group's activity is a good idea. Regards, Gora From n9986.mali at gmail.com Wed Nov 21 07:33:33 2012 From: n9986.mali at gmail.com (Nandeep Mali) Date: Wed, 21 Nov 2012 12:03:33 +0530 Subject: [Ncr-Python.in] Django - Loading a large default value in a model Message-ID: I asked this on Stack Overflow once. But am wondering if people here have a better approach. I have a field called schema in a Django model that usually contains a rather large json string. There is a default value (around 2000 characters) that I would like added when any new instance is created. I find it rather unclean to dump the whole thing in the models.py in a variable. What is the best way to load this default value in my schema (which is a TextField)? Example: class LevelSchema(models.Model): user = models.ForeignKey(to=User) active = models.BooleanField(default=False) schema = models.TextField() # Need a default value for this I thought about this a bit. If I am using a json file to store the default value somewhere, what is the best place to put it? Obviously it is preferable if it is in the same app in a folder. Approaches I have been suggested: a. Set the default in the model field to a callable (method) which reads a file and return its contents. b. Do the above on post_save hook. What do you folks do? --- Nandeep From gora at mimirtech.com Wed Nov 21 07:44:26 2012 From: gora at mimirtech.com (Gora Mohanty) Date: Wed, 21 Nov 2012 12:14:26 +0530 Subject: [Ncr-Python.in] Django - Loading a large default value in a model In-Reply-To: References: Message-ID: On 21 November 2012 12:03, Nandeep Mali wrote: [...] > I have a field called schema in a Django model that usually contains a > rather large json string. There is a default value (around 2000 > characters) that I would like added when any new instance is created. > > I find it rather unclean to dump the whole thing in the models.py in a > variable. What is the best way to load this default value in my schema > (which is a TextField)? [...] > Approaches I have been suggested: > > a. Set the default in the model field to a callable (method) which > reads a file and return its contents. > b. Do the above on post_save hook. (a) seems fine, but aren't you over-analysing this? If the default value is fixed, why not put it into a string in say, constants.py in the same directory as models.py, and just import the string in models.py, Regards, Gora From n9986.mali at gmail.com Wed Nov 21 07:49:24 2012 From: n9986.mali at gmail.com (Nandeep Mali) Date: Wed, 21 Nov 2012 12:19:24 +0530 Subject: [Ncr-Python.in] Django - Loading a large default value in a model In-Reply-To: References: Message-ID: On Wed, Nov 21, 2012 at 12:14 PM, Gora Mohanty wrote: [...] > (a) seems fine, but aren't you over-analysing this? If the default value > is fixed, why not put it into a string in say, constants.py in the same > directory as models.py, and just import the string in models.py, I did not mention the entire use case. As I said, the said JSON string is properly formatted and indented. I need this portable and editable in the future, a schema which will evolve over time. This same JSON string is also being used outside the scope of the Django project. As I said before, I personally find it cumbersome to dump a several hundred line long JSON string in a Python variable which is exactly not what I wanted to do. From kapoor.vaidik at gmail.com Wed Nov 21 07:50:02 2012 From: kapoor.vaidik at gmail.com (Vaidik Kapoor) Date: Wed, 21 Nov 2012 12:20:02 +0530 Subject: [Ncr-Python.in] Django - Loading a large default value in a model In-Reply-To: References: Message-ID: On 21 November 2012 12:03, Nandeep Mali wrote: > I asked this on Stack Overflow once. But am wondering if people here > have a better approach. > > I have a field called schema in a Django model that usually contains a > rather large json string. There is a default value (around 2000 > characters) that I would like added when any new instance is created. > > I find it rather unclean to dump the whole thing in the models.py in a > variable. What is the best way to load this default value in my schema > (which is a TextField)? > > Example: > > class LevelSchema(models.Model): > user = models.ForeignKey(to=User) > active = models.BooleanField(default=False) > schema = models.TextField() # Need a default value for this > > I thought about this a bit. If I am using a json file to store the > default value somewhere, what is the best place to put it? Obviously > it is preferable if it is in the same app in a folder. > If you have many json files like that, then perhaps create a folder and have all of them there for clarity sake. Otherwise, I think it doesn't really matter where your JSON string is coming from if your model definition is clear enough so that whenever you re-visit it later, you don't find it difficult to understand. You may also consider having a dict instead of having your json stored as a string - you can import your dict from whichever module it lives in and then dump it as a default value. > > Approaches I have been suggested: > > a. Set the default in the model field to a callable (method) which > reads a file and return its contents. > b. Do the above on post_save hook. > I wouldn't do the post_save hook, perhaps. Default value using callable sounds more intuitive to me. > > What do you folks do? > > --- > Nandeep > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gora at mimirtech.com Wed Nov 21 07:57:59 2012 From: gora at mimirtech.com (Gora Mohanty) Date: Wed, 21 Nov 2012 12:27:59 +0530 Subject: [Ncr-Python.in] Django - Loading a large default value in a model In-Reply-To: References: Message-ID: On 21 November 2012 12:19, Nandeep Mali wrote: > On Wed, Nov 21, 2012 at 12:14 PM, Gora Mohanty wrote: > [...] >> (a) seems fine, but aren't you over-analysing this? If the default value >> is fixed, why not put it into a string in say, constants.py in the same >> directory as models.py, and just import the string in models.py, > > I did not mention the entire use case. As I said, the said JSON string > is properly formatted and indented. I need this portable and editable > in the future, a schema which will evolve over time. This same JSON > string is also being used outside the scope of the Django project. In that case, having a file or a web service that provides the string would make sense. Reading from a file is hardly different than having a fixed string, IMHO. In both cases, source code version control systems should take care of changes in the fixed string. > As > I said before, I personally find it cumbersome to dump a several > hundred line long JSON string in a Python variable which is exactly > not what I wanted to do. If you are comfortable with reading it from a file, I do not really see what distinction you are making here. Regards, Gora From kapoor.vaidik at gmail.com Wed Nov 21 08:04:02 2012 From: kapoor.vaidik at gmail.com (Vaidik Kapoor) Date: Wed, 21 Nov 2012 12:34:02 +0530 Subject: [Ncr-Python.in] Django - Loading a large default value in a model In-Reply-To: References: Message-ID: On 21 November 2012 12:27, Gora Mohanty wrote: > On 21 November 2012 12:19, Nandeep Mali wrote: > > On Wed, Nov 21, 2012 at 12:14 PM, Gora Mohanty > wrote: > > [...] > >> (a) seems fine, but aren't you over-analysing this? If the default value > >> is fixed, why not put it into a string in say, constants.py in the same > >> directory as models.py, and just import the string in models.py, > > > > I did not mention the entire use case. As I said, the said JSON string > > is properly formatted and indented. I need this portable and editable > > in the future, a schema which will evolve over time. This same JSON > > string is also being used outside the scope of the Django project. > I will perhaps not indent and format and then store it in the DB. I would want it be stored in the most easily readable format for any other projects/sub-projects that may use this JSON - perhaps, indentation and formatting can be an issue here. > > In that case, having a file or a web service that provides the string > would make sense. Reading from a file is hardly different than > having a fixed string, IMHO. In both cases, source code version control > systems should take care of changes in the fixed string. > > > > As > > I said before, I personally find it cumbersome to dump a several > > hundred line long JSON string in a Python variable which is exactly > > not what I wanted to do. > > If you are comfortable with reading it from a file, I do not really > see what distinction you are making here. > > +1 How does it really matter if it lives in a variable or not? It will be short-lived anyways. > Regards, > Gora > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines > - Vaidik -------------- next part -------------- An HTML attachment was scrubbed... URL: From preet10101992 at gmail.com Wed Nov 21 15:24:40 2012 From: preet10101992 at gmail.com (Harpreet Singh Chawla) Date: Wed, 21 Nov 2012 19:54:40 +0530 Subject: [Ncr-Python.in] threading Message-ID: i hav one doubt. can we thread in-built classes or modules in python. coz while using django, i want to open my app and run the server at the same tym is this possible? -------------- next part -------------- An HTML attachment was scrubbed... URL: From vishalruhela at outlook.com Thu Nov 22 15:11:27 2012 From: vishalruhela at outlook.com (Vishal Ruhela) Date: Thu, 22 Nov 2012 19:41:27 +0530 Subject: [Ncr-Python.in] Small feed Back From a Newbie !! In-Reply-To: References: , Message-ID: If the common consent is not to have a Facebook Group then its fine for me to stick to mailing list concept. However, I am surprised by the reasoning given here for not to have a FB group. Hoping for your support moving forward !! Regards, Vishal Ruhela > From: gora at mimirtech.com > Date: Wed, 21 Nov 2012 11:04:20 +0530 > To: ncr-python.in at python.org > Subject: Re: [Ncr-Python.in] Small feed Back From a Newbie !! > > On 20 November 2012 23:28, Vishal Ruhela wrote: > > Nandeep, > > > > I truely abide by your point but a fb group will allow guys to know each > > other well. I am a member of a Game design group on fb and the best part > > about it is, that we got the chance who worked for firms like EA games and > > ubisoft to discuss our points. > [...] > > Disagree. A mailing list serves a very different purpose from > a Facebook group, and Facebook is such an invasion of privacy > that I imagine many people would want to stay away from it. > > IMHO, this mailing list should remain the focus of the group. > People have already suggested various ways of improving > interaction. I do not think that forcing people to join Facebook > in order to participate in this group's activity is a good idea. > > Regards, > Gora > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines -------------- next part -------------- An HTML attachment was scrubbed... URL: From kumar3180 at gmail.com Thu Nov 22 15:22:04 2012 From: kumar3180 at gmail.com (Raakesh kumar) Date: Thu, 22 Nov 2012 19:52:04 +0530 Subject: [Ncr-Python.in] Small feed Back From a Newbie !! In-Reply-To: References: Message-ID: [...] On Thu, Nov 22, 2012 at 7:41 PM, Vishal Ruhela wrote: > If the common consent is not to have a Facebook Group then its fine for me > to stick to mailing list concept. However, I am surprised by the reasoning > given here for not to have a FB group. > [/...] There is no reason to be surprised... There is no conflict in the views presented in previous mails and when everybody has suggested quite similar things then there is a point. So analyze that and experience it. [...] > > Hoping for your support moving forward !! > [/...] Yes sure :) -- Regards RAKESH KUMAR http://raakeshkumar.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From noufal at gmail.com Thu Nov 22 19:15:05 2012 From: noufal at gmail.com (Noufal Ibrahim) Date: Thu, 22 Nov 2012 23:45:05 +0530 Subject: [Ncr-Python.in] Small feed Back From a Newbie !! In-Reply-To: (Vishal Ruhela's message of "Thu, 22 Nov 2012 19:41:27 +0530") References: Message-ID: <87a9u9fqs6.fsf@sanitarium.localdomain> Vishal Ruhela writes: > If the common consent is not to have a Facebook Group then its fine > for me to stick to mailing list concept. However, I am surprised by > the reasoning given here for not to have a FB group. A generational thing I think. Also, mailing lists are more robust and open than FB groups. [...] -- Cordially, Noufal http://nibrahim.net.in From diptanuc at gmail.com Thu Nov 22 19:17:44 2012 From: diptanuc at gmail.com (Diptanu Choudhury) Date: Thu, 22 Nov 2012 18:17:44 +0000 Subject: [Ncr-Python.in] Small feed Back From a Newbie !! In-Reply-To: <87a9u9fqs6.fsf@sanitarium.localdomain> References: <87a9u9fqs6.fsf@sanitarium.localdomain> Message-ID: My views exactly Noufal. Mailing Lists and IRCs #ftw On Thu, Nov 22, 2012 at 6:15 PM, Noufal Ibrahim wrote: > Vishal Ruhela writes: > > > If the common consent is not to have a Facebook Group then its fine > > for me to stick to mailing list concept. However, I am surprised by > > the reasoning given here for not to have a FB group. > > A generational thing I think. Also, mailing lists are more robust and > open than FB groups. > > [...] > > > -- > Cordially, > Noufal > http://nibrahim.net.in > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : http://lug-iitd.org/Mailing_List_Guidelines > -- Thanks, Diptanu Choudhury Senior Consultant, ThoughtWorks Mobile - +447808024919 Web - www.linkedin.com/in/diptanu Twitter - @diptanu -------------- next part -------------- An HTML attachment was scrubbed... URL: From surjendu at reviews42.com Mon Nov 26 08:26:14 2012 From: surjendu at reviews42.com (Surjendu Kuila) Date: Mon, 26 Nov 2012 12:56:14 +0530 Subject: [Ncr-Python.in] Reviews42 is looking for smart python programmers Message-ID: Folks - Apologies for the spam. We are looking for smart python programmers. *Please find below the JD:* *********************************************************************************************************** Would you like to work for an early stage startup which declined 3 acquisition offers ( 1 Global + 2 Indian)? Would you like to work for a startup backed by prominent Venture Capitalists? Would you like to work with Python Experts such as Subhranath Chunder, Anuvrat Parashar , Ashish Singh ? Would you like to be part of a phenomenal growth story? If yes, these are the skills we are looking for: *Requirement:* 1. Hands-on experience with Python. Ability and willingness to work on tasks independently, and deliver on time. 2. Having good problem solving skills. Should be self-motivated, and should love to work with an extremely competent startup technology team. *Good to have:* - Experience with Django and other hi-tech open-source tools. - Open source contribution. - Link to public Github (something similar) *Remuneration* Great Remuneration ( better than Industry average) -- Warm Regards Surjendu Co-Founder - www.reviews42.com +91-9910003463 -------------- next part -------------- An HTML attachment was scrubbed... URL: