Re: [BangPypers] Multiple Django app with nginx

2016-05-19 Thread Gora Mohanty
On 20 May 2016 at 00:40, Sathishkumar Duraisamy <bewithsath...@gmail.com> wrote: > On Thu, May 19, 2016 at 11:50 PM, Gora Mohanty <g...@mimirtech.com> wrote: > >> On 19 May 2016 at 09:01, Sathishkumar Duraisamy <bewithsath...@gmail.com> >> wrote: >> [...]

Re: [BangPypers] Multiple Django app with nginx

2016-05-19 Thread Gora Mohanty
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

Re: [BangPypers] Multiple Django app with nginx

2016-05-19 Thread Gora Mohanty
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

Re: [BangPypers] Multiple Django app with nginx

2016-05-18 Thread Gora Mohanty
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

Re: [BangPypers] Anand S at cnnibng

2016-05-18 Thread Gora Mohanty
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

Re: [BangPypers] Anand S at cnnibn

2016-05-18 Thread Gora Mohanty
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

Re: [BangPypers] Anand S at cnnibn

2016-05-18 Thread Gora Mohanty
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

Re: [BangPypers] Django

2016-05-16 Thread Gora Mohanty
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/ .

Re: [BangPypers] C Programming trainer - Bangalore

2016-05-16 Thread Gora Mohanty
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

Re: [BangPypers] Plotting Range [1e13 to 1e19] in linear scale

2016-05-09 Thread Gora Mohanty
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

Re: [BangPypers] Plotting Range [1e13 to 1e19] in linear scale

2016-05-09 Thread Gora Mohanty
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?

Re: [BangPypers] Plotting Range [1e13 to 1e19] in linear scale

2016-05-09 Thread Gora Mohanty
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

Re: [BangPypers] Exponential : warning overflow

2016-03-29 Thread Gora Mohanty
On 29 March 2016 at 17:14, Santosh Chiniwar wrote: > Dear BangPypers, > Please find my code and I get Overflow warning. I am unable to continue > further. Any support or help is appreciated. Somewhere you are getting too large a number for the range of type in the

Re: [BangPypers] Python comparisons

2015-12-05 Thread Gora Mohanty
On 5 December 2015 at 12:56, Noufal Ibrahim KV wrote: > > > So I came across this today.. > > >>> class Number(object): > ...def __init__(self, n): > ... self.n = n > ... > >>> m = Number(10) > >>> n = Number(5) > >>> > >>> m < n > True > > This is documented

Re: [BangPypers] Life lessons shared by Jesse Noller

2015-10-29 Thread Gora Mohanty
On 29 October 2015 at 18:11, Abdul Muneer wrote: > Hi, > Jesse Noller talks about the turn of events in his life since last couple > of years : http://jessenoller.com/blog/2015/9/27/a-lot-happens. > Valuable lessons for everyone. With all due respect to Mr. Noller, the

Re: [BangPypers] BangPypers Digest, Vol 97, Issue 5

2015-09-08 Thread Gora Mohanty
On 8 September 2015 at 18:57, Mandar Raibagi wrote: > > Folks, > You may feel this email out of context, but regarding usage of discount > coupon provided by @goibibodotcom, @pyconindia and @goibibodotcom are > playing ping-pong with me. > The issue is I'm unable to apply my

Re: [BangPypers] [clarification]

2015-08-12 Thread Gora Mohanty
Hi, With due respect, this is off-topic to the list. OpenStack has mailing lists of its own, and you would probably find better responses on such lists. Regards, Gora On 12 August 2015 at 17:42, Shashidhar Paragonda shashidha...@gmail.com wrote: hello Python hackers, I wanted to learn

Re: [BangPypers] [X-Post] ERPNext Conference 2015

2015-07-23 Thread Gora Mohanty
Hi, Thank you for the explanation. Please do include such an explanation in future postings. Regards, Gora On 23 July 2015 at 23:30, Harisankar P S mai...@hsps.in wrote: On Thu, Jul 23, 2015 at 11:12 PM, Gora Mohanty g...@mimirtech.com wrote: And, maybe you would care to explain how

Re: [BangPypers] [X-Post] ERPNext Conference 2015

2015-07-23 Thread Gora Mohanty
On 23 July 2015 at 17:23, Pratik Vyas m...@pd.io wrote: Hey! We are excited to announce the ERPNext Conference 2015 on October 9th in Mumbai. This is a great opportunity for ERPNext users, developers and open source enthusiasts to meet, share ideas and network with the community. For this

Re: [BangPypers] Fwd: Need a help on reviewing a python code.

2015-07-16 Thread Gora Mohanty
Hi, Just forget it. The problem statement itself is so badly broken that it is unfixable, IMHO. To quote from problem.txt: The application will not determine the alignments itself. Instead, the application must be able to load a set of plugins at runtime that will determine whether a particular

Re: [BangPypers] Changing Time Zone dynamically in Django

2015-07-14 Thread Gora Mohanty
On 14 July 2015 at 13:30, mithun chackravarthy vbnetmit...@gmail.com wrote: Is it possible to change TIME_ZONE variable dynamically in Django? The use case is when a user from IST comes the TIME_ZONE should Asia/Kolkata and if some one from GMT comes it should be set to UTC.

Re: [BangPypers] UI less Rest API server with flask

2015-06-22 Thread Gora Mohanty
Hi, Since you seem to be determined to reinvent the wheel, may I ask what is your use case to choose flask + largely-roll-one's-own-rest-api vs. Django + DRF? The same goes for all the recent hoopla in this list over Flask/Bottle over Django, if you ask me. Django is not all that difficult to

Re: [BangPypers] Fwd: Help!!! Python/Django WKHTMLTOPDF

2015-06-05 Thread Gora Mohanty
Hi, This is really not on-topic for this list, but the error is most likely because wkhtmltopdf is not in your path. Try using the WKHTMLTOPDF_CMD = '/path/to/my/wkhtmltopdf' setting for django-wkhtmltopdf package Regards, Gora On 5 June 2015 at 15:03, Sunil Gupta su...@planmytour.in wrote:

Re: [BangPypers] Anyone who has worked on Lamson?

2015-05-27 Thread Gora Mohanty
On 27 May 2015 at 17:48, Ramdas S ram...@gmail.com wrote: Noufal, I want to use this for setting up an interim SMTP server which based on certain rules should decide whether the mails need to go through the normal corporate server, or should go through an alternate SMTP server. This is

Re: [BangPypers] Text Mining + Search Engine Summer Project, Little Help?

2015-05-17 Thread Gora Mohanty
Dear Pramod, This sounds great, and I think that it would be perfectly fine to continue such a discussion on this list. At least until it gets into nitty-gritties, upon which private email, or a list more focused on the topic might be where to go. Please do post details here. Even without

Re: [BangPypers] ImportError: cannot import name 'unquote'

2015-03-20 Thread Gora Mohanty
On 20 March 2015 at 22:11, Nimish Dalal nimish.s.da...@gmail.com wrote: I installed Anaconda version 2.1.0 python 3.4.1 Unfortunately, I am not really conversant with Python3, but I think that there you would need: from urllib.parse import unquote Regards, Gora

Re: [BangPypers] how to see each line result in python

2015-03-03 Thread Gora Mohanty
On 3 March 2015 at 18:50, narayan naik narayannaik...@gmail.com wrote: [...] I want to see what happens in each line.I know what happens in theoritically but i want each line result.is i possible. What you seem to be looking for is a Python debugger. Try pdb: See, e.g.,

Re: [BangPypers] Django pagination

2015-02-15 Thread Gora Mohanty
On 16 February 2015 at 12:42, Shashidhar Paragonda shashidha...@gmail.com wrote: hello hackers, I need help on implementing pagination for Restful responses in django, front hand I am using angular js. Basically I get customer details from rest request and I need to divide then by 25 per

Re: [BangPypers] How to manage Database for Django on live server?

2015-01-30 Thread Gora Mohanty
On 30 January 2015 at 17:09, Mukesh Yadav mak@gmail.com wrote: Hi, I recently moved my office one of the app to Django. Now its time for this to go live. While development we faced many problems in terms of conflicts in migrations file of Django. Due to this I'm not confident that

Re: [BangPypers] Terrible choices: MySQL. What is the way ahead?

2014-12-30 Thread Gora Mohanty
On 30 December 2014 at 19:32, Noufal Ibrahim KV nou...@nibrahim.net.in wrote: [...] I can't offer anything normative but in my experience (and it's a little dated since I don't use mySQL for anything these days), mySQL is a disaster waiting to hit you. [...] Personally, I agree with this, but

Re: [BangPypers] combine multiple modules in one

2014-12-17 Thread Gora Mohanty
On 17 December 2014 at 23:35, Nitin Kumar nitin.n...@gmail.com wrote: Hi, say I am installing a module abc and it got multiple dependent modules say xyz pqr. pip easy install will take care of downloading and installing these. but i need to install abc on a device which doesnt have net

Re: [BangPypers] about code

2014-12-14 Thread Gora Mohanty
On 15 December 2014 at 11:51, narayan naik narayannaik...@gmail.com wrote: [...] This is a face detection code.This will work properly.but I want to crop the detected faces and it should display on the screen. Please ask more specific questions *after* you have tried for yourself. Did you even

Re: [BangPypers] [Jobs][Part-Time] Django framework - Interested candidates for part time work

2014-12-10 Thread Gora Mohanty
On 10 December 2014 at 18:01, abhishek choudhary acabhishek...@gmail.com wrote: I have some experience with django and would like to be a part of the discussion . As already requested, please take follow-ups off-line. They are not germane to this list. Regards, Gora

Re: [BangPypers] Moving from python 2.6 to 2.7

2014-10-08 Thread Gora Mohanty
On 7 October 2014 15:53, Kulkarni, Shreyas shy...@gmail.com wrote: Hi guys, We are planning to move our production environment from 2.6 to 2.7 on one of the projects. While I understand it's not a significant upgrade, this being a production environment, I was wondering what aspects of 2.6

Re: [BangPypers] The Python I would like to see - Armin Ronacher

2014-08-19 Thread Gora Mohanty
On 19 August 2014 12:32, chandrakant kumar k.03chan...@gmail.com wrote: [...] Following are the problems i faced that made me revert back to Python 2.7 - 1. Lack of packages ported to Python 3, one of the main advantages of using Python is a large set of ready to be used packages, so that you

Re: [BangPypers] The Python I would like to see - Armin Ronacher

2014-08-19 Thread Gora Mohanty
On 19 August 2014 21:24, Baiju M baiju.m.m...@gmail.com wrote: I would like to add one point about deployment of large and complex applications written in Python. Deployment of these types of applications are very difficult in Python. Would you please elaborate on the difficulties? We are

Re: [BangPypers] The Python I would like to see - Armin Ronacher

2014-08-19 Thread Gora Mohanty
On 19 August 2014 21:58, Sriram Narayanan sriram...@gmail.com wrote: On Tue, Aug 19, 2014 at 9:53 PM, Gora Mohanty g...@mimirtech.com wrote: snip/ We have been itching to goto Python 3, but the deal-breaker for us was Django not being ready. Now that Django does support Python 3, we did

Re: [BangPypers] The Python I would like to see - Armin Ronacher

2014-08-18 Thread Gora Mohanty
On 18 August 2014 21:45, chandrakant kumar k.03chan...@gmail.com wrote: Python 3 has been a disappointment. I am bemused by absolutist comments like this. Could you explain how exactly it was a disappointment for you in day-to-day work? Regards, Gora

Re: [BangPypers] Mobile App Development using Python

2014-08-04 Thread Gora Mohanty
On 4 August 2014 14:45, Saurabh Minni saurabh.mi...@gmail.com wrote: You should have a look at Kivy [http://kivy.org/] A lot of things are detailed in there. Seconded. Incidentally, one of the core Kivy developers is from Delhi, and frequents the Delhi/NCR Python group. Regards, Gora

Re: [BangPypers] Pygtk

2014-07-23 Thread Gora Mohanty
On 22 July 2014 21:27, Ankita Rath ankitarath2...@gmail.com wrote: Hi, I am using pygtk for GUI. We can import gtk module for this. But lot of places i have seen pygtk module along with gtk module. So can somebody tell me what is the use of this pygtk module. import pygtk import gtk we

Re: [BangPypers] Did anybody try Mezzanine CMS?

2014-07-22 Thread Gora Mohanty
Yes. ___ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] Is there a way to find the import originator?

2014-07-15 Thread Gora Mohanty
On 15 July 2014 15:25, Nitin Kumar nitin.n...@gmail.com wrote: Hi All, Say there are 3 files. a.py and b.py uses *import c* (which is the third python file c.py) is there a way we can know inside c.py that whether its a or b who is doing the importing? You can use the inspect module to

Re: [BangPypers] Django FTP

2014-07-01 Thread Gora Mohanty
On 1 July 2014 12:58, Anand Reddy Pandikunta anand21na...@gmail.com wrote: Hi, In one Django App, I've created a simple form. It has URLField, where user enters FTP url. As soon as user submits the form, I have to download the file and save it our servers. File size: ~10gb. Need to download

Re: [BangPypers] Django using syncdb does not work

2014-06-02 Thread Gora Mohanty
On 3 June 2014 08:48, Senthil skksun...@yahoo.co.in wrote: Hi All, I am in process of writing an application. While designing models, I have the database tables created first and tried using syncdb to create the models. When i try to access the models from view I get error. Upon searching

Re: [BangPypers] Python script hangs after using logging module

2014-05-26 Thread Gora Mohanty
On 26 May 2014 17:42, Rahul Gopan rahulpce...@gmail.com wrote: -Original Message- From: Rahul G ra...@visolve.com Sent: ‎26-‎05-‎2014 05:41 PM To: rahulpce...@gmail.com rahulpce...@gmail.com Subject: Python script hangs after using logging module Hello, I tried to make a log

Re: [BangPypers] Tornado or twisted?

2014-05-05 Thread Gora Mohanty
Hi, Why not consider gevent? Do not have enough real-life experience with it to comment on your capacity requirements, but those will also be a function of your application, and will need to be actually measured. Regards, Gora On May 5, 2014 11:48 AM, Mukesh Yadav mak@gmail.com wrote: Hey

Re: [BangPypers] { exctract italic, bold }

2014-03-11 Thread Gora Mohanty
On 12 March 2014 10:29, Shashidhar Paragonda shashidha...@gmail.com wrote: Hello Python hackers I have a excel file which has some amount of data. The data in each row has some words which are italic and bolded. my requirement is I need to extract only italic or bold words from each row.

Re: [BangPypers] class instance getting passed to other class obj creation

2014-03-09 Thread Gora Mohanty
On 9 March 2014 16:37, Nitin Kumar nitin.n...@gmail.com wrote: Hi All, I am looking for some better way to implement below scenario. Say there is a class login class login: def __init_(self, user, pwd): - now user uses this class to login a session and then I am using the object

Re: [BangPypers] Managing variable in small scripts.

2014-02-19 Thread Gora Mohanty
On 19 February 2014 15:37, Mukesh Yadav mak@gmail.com wrote: Hi, I normally create small scripts for crons, Sometime I do create multiple modules. My question is how to pass same variable to modules which is being used. e.g. script.py file contans following code *import module *

Re: [BangPypers] Managing variable in small scripts.

2014-02-19 Thread Gora Mohanty
On 19 February 2014 16:21, Mukesh Yadav mak@gmail.com wrote: Unless I am missing something, why can't you use: object.some_awesome_function( bucket ) I can but in my case I have 5+ setting variables, which is not feasible to pass it for each method which it is using. Why not? If you

Re: [BangPypers] Managing variable in small scripts.

2014-02-19 Thread Gora Mohanty
On 19 February 2014 17:01, Mukesh Yadav mak@gmail.com wrote: I can change the class code and parameter as it is small script. I would think that this is terrible practice. Would love to more about it. Passing multiple arguments to the function seems to be the cleanest approach, as it

Re: [BangPypers] JMS provider using RabbitMQ

2013-12-31 Thread Gora Mohanty
On 31 December 2013 14:11, Chintan Dave davechin...@gmail.com wrote: Hi, I need to post messages on a JMS queue on a remote server. RabbitMQ is compliant to JMS v1.1 and I can use it, however I am not able to find any specific reference documentation for developing a JMS Producer using

Re: [BangPypers] JMS provider using RabbitMQ

2013-12-31 Thread Gora Mohanty
On 31 December 2013 15:53, Chintan Dave davechin...@gmail.com wrote: RabbitMQ supports Python for messaging purpose. I thought people who might have some hands on experience may be able to help. [...] IMHO, that hardly makes it relevant, especially given that JMS is a JAVA API. Did you take a

Re: [BangPypers] JMS provider using RabbitMQ

2013-12-31 Thread Gora Mohanty
On 31 December 2013 18:42, Chintan Dave davechin...@gmail.com wrote: [...] PS: I asked a question thinking there may be some wise people who may be able to help me in my research, however it seems - the culture here is to humiliate people. Even if the question was not relevant, delete was just

Re: [BangPypers] JMS provider using RabbitMQ

2013-12-31 Thread Gora Mohanty
On 31 December 2013 19:22, Chintan Dave davechin...@gmail.com wrote: Hi Gora, I can understand your perspective. Lets leave this here based on individual beliefs. We don't necessarily need not agree to each other's point. All I am saying is - sending out lmgtfy links are the last things

Re: [BangPypers] Empty element in xml

2013-11-04 Thread Gora Mohanty
On 4 November 2013 21:07, Amit Sethi amit.pureene...@gmail.com wrote: I ended up using method=html for writing the xml. tree.write(filename, encoding=utf-8, xml_declaration=True, method='html') I am not sure if there are going to be any problems with this but for the time being my nosetests

Re: [BangPypers] hello world

2013-10-18 Thread Gora Mohanty
On 18 October 2013 22:23, Noufal Ibrahim nou...@nibrahim.net.in wrote: Aman Srivastava eamanshrivast...@gmail.com writes: Hi, I'm new to this list. Anybody working with sentimental analysis here ? I think you mean sentiment analysis[1]. I don't think many people are that emotionally

Re: [BangPypers] File upload to Server using FTP in Django?

2013-09-24 Thread Gora Mohanty
On 24 September 2013 16:13, sameerkatti sameerka...@live.com wrote: Hello, I am trying to incorporate FTP using 'pyftplib' in Django. I tried searching in the forum for help. When i attach a file and click send, i do not get any error but the page is redirected to File Uploaded template.

Re: [BangPypers] File upload to Server using FTP in Django?

2013-09-24 Thread Gora Mohanty
On 24 September 2013 17:34, sameerkatti sameerka...@live.com wrote: Hi, I said i want to know the entire procedure. Code is not the issue. I wanted to know whether i am following the right procedure. Same issue there: You do not share nearly enough information for anyone to be able to help

Re: [BangPypers] File upload to Server using FTP in Django?

2013-09-24 Thread Gora Mohanty
On 24 September 2013 22:21, sameerkatti sameerka...@live.com wrote: I am using the Django Framework and i have written a small snippet in a function in views.py The same function is called in the urls.py . The code in the Views is /session = ftplib.FTP('abc.com','Username','Password') file

Re: [BangPypers] Functional testing wih headless browser framework

2013-09-18 Thread Gora Mohanty
On 17 September 2013 02:24, Amit Sethi amit.pureene...@gmail.com wrote: Hi , I am looking to add some functional testing to my application. I have seen a couple of tools via google search but the reason I am a little circumspect is that last time, I did something similar using selenium and

Re: [BangPypers] Agile methodology

2013-08-27 Thread Gora Mohanty
On 27 August 2013 19:00, Rohit Chormale rohitchorm...@gmail.com wrote: Hi friends, Is anybody know a good resource about 'agile methodology'? This is off-topic for the list but have you tried searching Google. There is quite a bit of material on Agile available on the net that can be

Re: [BangPypers] Teradata python ODBC driver

2013-06-04 Thread Gora Mohanty
On 4 June 2013 11:37, Divya divyani...@gmail.com wrote: Hello, I have to connect Python based script (Python2.6) to Teradata using ODBC driver on Linux. Can any one please suggest / help me to integrate. As has been mentioned before for similar requests, nobody is going to do your work for

Re: [BangPypers] Need help installing MySQLdb

2013-05-24 Thread Gora Mohanty
On 24 May 2013 13:35, Praveen Kumar pravs3...@gmail.com wrote: Hi, I have to install MySQLdb module for python2.4 on a CentOS6 - 64bit system. I tried hard but I am not able to install it. Can you please help me, on installing MySQLdb module. You would be better off asking on a CentOS list.

Re: [BangPypers] Volunteer for Managing pycon India Website content

2013-05-22 Thread Gora Mohanty
On 22 May 2013 14:51, vijay vnbang2...@yahoo.com wrote: Hi All, We need couple of people to take charge of PyCon India website. Tasks include tweaking the website software and manage the content. Code is on github. https://github.com/pythonindia/pyconindia2013 Please reply to this

Re: [BangPypers] Volunteer for Managing pycon India Website content

2013-05-22 Thread Gora Mohanty
On 22 May 2013 19:29, vijay vnbang2...@yahoo.com wrote: Konark,mukesh,Gora,sayan and Rahul thanks for volunteering to help us. As Anand C said can you guys send a pull request to https://github.com/pythonindia/pyconindia2013 We basically to work in showing this information 1) Home

Re: [BangPypers] Open Source API Management platforms in Python

2013-05-13 Thread Gora Mohanty
On 13 May 2013 18:08, Sriram Karra karra@gmail.com wrote: Is there such a thing? I am looking for something along the lines of Mashery or Apiphany - roughly. I doubt that there would be a complete product like Mashery that is open source, but you could build one using Django and Tastypie.

Re: [BangPypers] Another qn. THanks for the basic of basic qn\

2013-05-08 Thread Gora Mohanty
On 8 May 2013 23:00, Jagadeesh N. Malakannavar mnjagade...@gmail.com wrote: I prefer to do it like this a = list(str(3245325)) sum(map(int, a)) 24 What does the map() gain you over basic list comprehension: sum( [int(i) for i in '3245325'] ) ignoring any try/catch for int conversion

Re: [BangPypers] Another qn. THanks for the basic of basic qn\

2013-05-08 Thread Gora Mohanty
On 9 May 2013 07:32, Noufal Ibrahim nou...@nibrahim.net.in wrote: Gora Mohanty g...@mimirtech.com writes: On 8 May 2013 23:00, Jagadeesh N. Malakannavar mnjagade...@gmail.com wrote: I prefer to do it like this a = list(str(3245325)) sum(map(int, a)) 24 What does the map() gain you over

Re: [BangPypers] Basic of basic question

2013-05-06 Thread Gora Mohanty
On 7 May 2013 07:19, Umesh Tiptur umeshreloa...@yahoo.com wrote: Hi, I am very new to programming in python. But I want to know is user hass inputted a number or a string Please help with this HOW to.. [...] * You can use type( var ) to find the type of a variable, var * Typically, one

Re: [BangPypers] uWSGI Spooler

2013-05-02 Thread Gora Mohanty
On 2 May 2013 23:21, Venkatraman S venka...@gmail.com wrote: [I posted this in one more forum...but thought would share my enthusiasm here too...:) ] I have been playing around uWSGI (for a django app) for a few days now and We have switched to nginx + uWSGI for our Django projects, in

Re: [BangPypers] [Ncr-Python.in] [HELP] QUERIES RELATED TO PYTHON

2013-04-21 Thread Gora Mohanty
On 21 April 2013 16:54, saurabh chandra fatboyslimchan...@gmail.com wrote: I am trying to develop an algorithm for a combinatorial optimization. The problem consists of a graph network with nodes and connected arcs. In this algorithm I have to choose an optimal combination of nodes out of all

Re: [BangPypers] Need help for python coding

2013-04-20 Thread Gora Mohanty
On 20 April 2013 22:47, Kamalakar gs foxrun2...@gmail.com wrote: What i am asking is i have a file of other format for example .PCL which is Patran file (Software used for analysis). Now what i want is if user inputs a file name,python has to recognise the file name and directory of file which

Re: [BangPypers] [HELP] QUERIES RELATED TO PYTHON

2013-04-20 Thread Gora Mohanty
On 21 April 2013 00:31, hiharry danny hrd...@gmail.com wrote: I have Python 2.5.4 installed on windows platform ..(win xp) ...and in the installation folder there is a folder named Tcl(Tool Command Language) which contains subfolders like Tk, Tix etc ..the version of tcl is 8.4 .The default

Re: [BangPypers] I need some help/guidance

2013-04-16 Thread Gora Mohanty
On 16 April 2013 12:17, Smrutilekha Swain smrutile...@gmail.com wrote: i am writing a program using PyQt4. i have created a table containg name of the instruments, locations, its latitudes, longitude and altitude. there may be two instruments and its locations are same but different latitude

Re: [BangPypers] Amazon and Django

2013-04-16 Thread Gora Mohanty
On 16 April 2013 18:13, Ramdas S ram...@gmail.com wrote: On Tue, Apr 16, 2013 at 6:11 PM, Gora Mohanty g...@mimirtech.com wrote: On 16 April 2013 17:02, Ramdas S ram...@gmail.com wrote: Anyone running Django apps on amazon, I need to spec and figure out some costing. Please do let me know

Re: [BangPypers] I need some help/guidance

2013-04-16 Thread Gora Mohanty
On 17 April 2013 10:00, Smrutilekha Swain smrutile...@gmail.com wrote: It is a database table which i have created using QTableWidget n it contains 7 columns. first column is checkbox for selecting the rows den name, site, latitude, longitude, altitude and date of entry. [...] In that case, I

Re: [BangPypers] [OT] Microsoft Office 365 for Education made mandatory for approved institutions by AICTE

2013-04-15 Thread Gora Mohanty
On 15 April 2013 11:17, Balachandran Sivakumar benignb...@gmail.com wrote: Hi, On Mon, Apr 15, 2013 at 9:13 AM, Gora Mohanty g...@mimirtech.com wrote: On 15 April 2013 07:03, Balachandran Sivakumar benignb...@gmail.com wrote: Please do not indulge in such off-topic postings, no matter how

Re: [BangPypers] [OT] Microsoft Office 365 for Education made mandatory for approved institutions by AICTE

2013-04-14 Thread Gora Mohanty
On 15 April 2013 07:03, Balachandran Sivakumar benignb...@gmail.com wrote: Hi all, I understand that this is a Python group and not a free software group. But there are quite a few free software enthusiasts here, and they might already know/like to know the news. So, I apologise upfront, for

Re: [BangPypers] Need help for python coding

2013-03-26 Thread Gora Mohanty
On 26 March 2013 23:41, Kamalakar gs foxrun2...@gmail.com wrote: Dear all, I am newbie to coding.I want extract the data from text file which contains text and tables.In a file i want to extract all VON MISES stress data from a table.i wrote a code as below. but i dont know how to extract the

Re: [BangPypers] Female developer fired after tweeting about men's comments at PyCon 2013 and San Jose.

2013-03-23 Thread Gora Mohanty
On 23 March 2013 14:49, Nitin Kumar nitin.n...@gmail.com wrote: Thought to share news eveen though it has very less to do with python. This happened at PyCon 2013. San Jose: A female developer was fired after tweeting about a group of men she said were making sexual comments at a computer

Re: [BangPypers] Female developer fired after tweeting about men's comments at PyCon 2013 and San Jose.

2013-03-23 Thread Gora Mohanty
On 23 March 2013 15:08, Jeffrey Jose jeffjosej...@gmail.com wrote: I disagree. I haven't read the article but it looks like it talks about very specific behavior in the python community which we are all part of. Maybe you would care to explain how this fits with the list's stated purpose of

Re: [BangPypers] BangPypers Digest, Vol 67, Issue 8

2013-03-15 Thread Gora Mohanty
On 15 March 2013 12:08, pavan intercon pavan.inter...@gmail.com wrote: people with experience are preffered . still resume can be shared , we can go ahead with a telephonic discussion. [...] When replying, please edit your Subject line so it is more specific than Re: Contents of BangPypers

Re: [BangPypers] Reading log file using seek and tell

2013-03-08 Thread Gora Mohanty
On 8 March 2013 16:07, davidsnt david...@gmail.com wrote: Hello, How to read log files in python, On the first run I need to read all the lines from the log, process it and get the position of the last read line and from the next run I have to read from the last read line and process all the

Re: [BangPypers] Django url patterns help

2013-03-01 Thread Gora Mohanty
On 1 March 2013 17:24, JAGANADH G jagana...@gmail.com wrote: Hi , I was trying to write a url pattern for URL like this /my_page/?btn=view_pagesel=Profile [...] The ?btn=view_pagesel=Profile is not part of the URL, but is a query string. The URL is simply /my_page Within the Django view, you

Re: [BangPypers] Django url patterns help

2013-03-01 Thread Gora Mohanty
On 1 March 2013 17:31, Bhimsen Kulkarni bhimsen@gmail.com wrote: your regex is r'^my_page/(?Pbtn.* but your search string ( /my_page/?btn=view_pagesel=Profile) begins with /. According to your regex, search string must begin with my_page. That is not the problem: url(r'^my_page/$'...) will

Re: [BangPypers] regarding installation of python

2013-02-21 Thread Gora Mohanty
On 21 February 2013 13:43, Siva Ranganath workfors...@gmail.com wrote: hello BangPypers@python.org I have RedHat linux in my Laptop where iam accessing through VMware. how can install python librearies in Linux to execute some python scripts. please help me This is better suited to a Redhat

Re: [BangPypers] Python related jobs for me

2013-02-19 Thread Gora Mohanty
On 20 February 2013 12:54, L Radhakrishna Rao satishsaga...@gmail.com wrote: Hi guys and girls, I am software engineer and also an enthusiastic programmer. I have learned python on my own, though not knowledgeable as you people are. I have learned python purely out of my interest. Now i

Re: [BangPypers] List compression imrpovement

2013-01-09 Thread Gora Mohanty
On 9 January 2013 13:25, vijay vnbang2...@yahoo.com wrote: i want to use only list compression to get solution like the way you see i share solutions. Basically one line solution . Do you mean list comprehension? Even so, it is not clear how the resulting list is to be derived from the

Re: [BangPypers] List compression imrpovement

2013-01-08 Thread Gora Mohanty
On 9 January 2013 13:11, vijay vnbang2...@yahoo.com wrote: Hi, I want to know if there is any other better way for improving below list compression. I have to use list compression only to achieve it. say i have list a=[1, 4, 9, 12, 15, 21] expected result (4, 12), (9, 12, 15, 21)

Re: [BangPypers] Question on Pattern Matching and Regular Expression

2013-01-07 Thread Gora Mohanty
On 7 January 2013 15:06, davidsnt david...@gmail.com wrote: Bangpypers, Having a little trouble in parsing a file of 702 line appox, the file is in the format # # Title # [Space] [ Few lines of information about the title ] [Space] If the above format is strictly followed, this

Re: [BangPypers] Unpacking Tuple

2012-10-06 Thread Gora Mohanty
On 6 October 2012 15:39, Saju M sajup...@gmail.com wrote: Hi, I am using python 2.6. I need a way to make following code working without any ValueError . a, b, c, d = (1,2,3,4) a, b, c, d = (1,2,3). Note: Number of values in the tuple will change dynamically. Is the maximum length of

Re: [BangPypers] hook file download

2012-09-07 Thread Gora Mohanty
On 7 September 2012 15:59, Nitin Kumar nitin.n...@gmail.com wrote: Say for example: from a site http://www.winzip.com/downwz.htm we click download button. So i file download will start. but I want to do some other activities before file start to download. so is there a way to pause start

Re: [BangPypers] Sad demise of our dear KG (Keneth Gonsalvas)

2012-08-03 Thread Gora Mohanty
On 3 August 2012 15:25, JAGANADH G jagana...@gmail.com wrote: Hi All, Just now I got a message that our dear KG (Kenneth Gonsalvas) passed away. He was admitted in hospital due to Asthma attack and passed away today morning. Cremation will be held at ooty on 4th Aug 2012. Yikes! My

Re: [BangPypers] Call for Python programmers interested in building social applications

2012-08-01 Thread Gora Mohanty
On 1 August 2012 20:18, Deepak Garg deepakgarg.i...@gmail.com wrote: Diaspora is AGPL (version 3), some parts dual-licensed under MIT License http://en.wikipedia.org/wiki/Diaspora_(software) Erm, you are the second person to suggest that, but Diaspora is RoR. A better bet might be Pinax (

Re: [BangPypers] Call for Python programmers interested in building social applications

2012-08-01 Thread Gora Mohanty
On 1 August 2012 23:27, Anand Chitipothu anandol...@gmail.com wrote: On Wed, Aug 1, 2012 at 10:08 PM, Gora Mohanty g...@mimirtech.com wrote: On 1 August 2012 20:18, Deepak Garg deepakgarg.i...@gmail.com wrote: Diaspora is AGPL (version 3), some parts dual-licensed under MIT License http

Re: [BangPypers] Configuring web2py to run on apache with Centos5.8

2012-07-20 Thread Gora Mohanty
Hi, While I am far from being an expert in setting up Apache, there seem to be several things wrong with your Apache config. 1. Your ServerName is wrong unless you have aliased it locally, or are hosting on example.com :-) 2. Your WSGIScriptAlias is at /wpy , but in some cases you are

Re: [BangPypers] Job list (was: [JOB] Aspirae Bangalore)

2012-07-02 Thread Gora Mohanty
On 3 July 2012 07:07, Anand Chitipothu anandol...@gmail.com wrote: On Tue, Jul 3, 2012 at 5:24 AM, Noufal Ibrahim nou...@nibrahim.net.in wrote: Having lots of job postings is a good sign of a healthy community. However, it does dilute the list a little. Sidu suggested a separate

Re: [BangPypers] Two days course on Python

2012-06-26 Thread Gora Mohanty
On 27 June 2012 10:08, kala Vinay kala...@gmail.com wrote:  Dear All, credativ India specialized in open source, conducting a two days course on Python Programming on 13th and 14th July 2012. Interested candidates can contact:   train...@credativ.in [...] Are these paid courses? If so,

Re: [BangPypers] Sort names in a list by order of importance

2012-04-24 Thread Gora Mohanty
On 24 April 2012 12:06, S Pratap Singh kdari...@gmail.com wrote: I need to sort list with names and without loosing the alphabet case (lower or upper). In each list last name is important and should get priority in sorting. If there are two or more name similar to the last name in the list.

  1   2   >