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

2013-04-20 Thread Gora Mohanty
On 21 April 2013 00:31, hiharry danny 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 gui standard of

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

2013-04-21 Thread Gora Mohanty
On 21 April 2013 16:54, saurabh chandra 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 the > nodes in the graph.

Re: [BangPypers] uWSGI Spooler

2013-05-02 Thread Gora Mohanty
On 2 May 2013 23:21, Venkatraman S 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 preference to the mor

Re: [BangPypers] Basic of basic question

2013-05-06 Thread Gora Mohanty
On 7 May 2013 07:19, Umesh Tiptur 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 should not need to kn

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 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 errors IMHO, th

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 wrote: > Gora Mohanty writes: > >> On 8 May 2013 23:00, Jagadeesh N. Malakannavar wrote: >>> I prefer to do it like this >>> >>>>>> a = list(str(3245325)) >>>>>> sum(map(int, a)) >&

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

2013-05-13 Thread Gora Mohanty
On 13 May 2013 18:08, Sriram Karra 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. Regards, Gora

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

2013-05-22 Thread Gora Mohanty
On 22 May 2013 14:51, vijay 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 thread if you

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

2013-05-22 Thread Gora Mohanty
On 22 May 2013 19:29, vijay 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 section- Like venue ,

Re: [BangPypers] Need help installing MySQLdb

2013-05-24 Thread Gora Mohanty
On 24 May 2013 13:35, Praveen Kumar 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. This is not r

Re: [BangPypers] Teradata python ODBC driver

2013-06-04 Thread Gora Mohanty
On 4 June 2013 11:37, Divya 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 you. Have you

Re: [BangPypers] Agile methodology

2013-08-27 Thread Gora Mohanty
On 27 August 2013 19:00, Rohit Chormale 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 supplemented by a couple of good

Re: [BangPypers] Functional testing wih headless browser framework

2013-09-17 Thread Gora Mohanty
On 17 September 2013 02:24, Amit Sethi 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 > it seemed lack some r

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

2013-09-24 Thread Gora Mohanty
On 24 September 2013 16:13, sameerkatti 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. [...] Nobod

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

2013-09-24 Thread Gora Mohanty
On 24 September 2013 17:34, sameerkatti 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 you. What pro

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

2013-09-24 Thread Gora Mohanty
On 24 September 2013 22:21, sameerkatti 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 = open('file

Re: [BangPypers] hello world

2013-10-18 Thread Gora Mohanty
On 18 October 2013 22:23, Noufal Ibrahim wrote: > Aman Srivastava 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 attached to analytical work. I don't kno

Re: [BangPypers] Empty element in xml

2013-11-03 Thread Gora Mohanty
On 4 November 2013 03:00, Amit Sethi wrote: > > Hi All, I am stuck with wierd problem . I am dealing with a legacy > system(written in C) that deals with using some xml. The xml is > created with python. Now the trouble is that the legacy system > understands empty element as: > > > > where as u

Re: [BangPypers] Empty element in xml

2013-11-04 Thread Gora Mohanty
On 4 November 2013 21:07, Amit Sethi 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 seem to be working

Re: [BangPypers] JMS provider using RabbitMQ

2013-12-31 Thread Gora Mohanty
On 31 December 2013 14:11, Chintan Dave 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 RabbitMQ. > > The o

Re: [BangPypers] JMS provider using RabbitMQ

2013-12-31 Thread Gora Mohanty
On 31 December 2013 15:53, Chintan Dave 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 look at the links

Re: [BangPypers] JMS provider using RabbitMQ

2013-12-31 Thread Gora Mohanty
On 31 December 2013 18:42, Chintan Dave 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 a > click away. Pe

Re: [BangPypers] JMS provider using RabbitMQ

2013-12-31 Thread Gora Mohanty
On 31 December 2013 19:22, Chintan Dave 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 one > should con

Re: [BangPypers] Managing variable in small scripts.

2014-02-19 Thread Gora Mohanty
On 19 February 2014 15:37, Mukesh Yadav 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 * > > *buck

Re: [BangPypers] Managing variable in small scripts.

2014-02-19 Thread Gora Mohanty
On 19 February 2014 16:21, Mukesh Yadav 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 really wante

Re: [BangPypers] Managing variable in small scripts.

2014-02-19 Thread Gora Mohanty
On 19 February 2014 17:01, Mukesh Yadav 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 separate

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 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 > of this c

Re: [BangPypers] { exctract italic, bold }

2014-03-11 Thread Gora Mohanty
On 12 March 2014 10:29, Shashidhar Paragonda 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] 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" wrote: > Hey guys, >I'm

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

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

Re: [BangPypers] Freelancing project: Build a website

2014-05-29 Thread Gora Mohanty
Hi, Please take this discussion off list. Thanks. Regards, Gora On 30 May 2014 06:35, prem kumar v.v.s. wrote: > Hello Mr.Chaitanya, > > I am interested to work on your project. Please see my contact details > below. > > Mobile : +918904885009 > Email : vvs.premkuma...@gmail.com > > > On

Re: [BangPypers] Freelancing project: Build a website

2014-05-30 Thread Gora Mohanty
On 30 May 2014 17:40, Chaitanya Daphal wrote: > > Hello Prashant, > > Thanks for showing interest with us. > > Please give me your time and cost estimation for creating website which is > similar to SwiftUnlock. So we can proceeds further. > > Also if possible, can you briefly introduce about your

Re: [BangPypers] Django using syncdb does not work

2014-06-02 Thread Gora Mohanty
On 3 June 2014 08:48, Senthil 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 in google, I fo

Re: [BangPypers] Django FTP

2014-07-01 Thread Gora Mohanty
On 1 July 2014 12:58, Anand Reddy Pandikunta 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 securely. Use ft

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 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 get this inform

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] Pygtk

2014-07-23 Thread Gora Mohanty
On 22 July 2014 21:27, Ankita Rath 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 can do everyth

Re: [BangPypers] How to convert Datastore data into a CSV file python

2014-07-28 Thread Gora Mohanty
On 28 July 2014 21:49, VIMAL K wrote: > > Hello, > i am new to python. I need to write a function which converts a datastore > data to csv format, which is downloadable. I researched upon the topic over > google, got few and less info on it. The code till now is below: What do you mean by "datas

Re: [BangPypers] Mobile App Development using Python

2014-08-04 Thread Gora Mohanty
On 4 August 2014 14:45, Saurabh Minni 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] "The Python I would like to see" - Armin Ronacher

2014-08-18 Thread Gora Mohanty
On 18 August 2014 21:45, chandrakant kumar 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 ___ BangPypers mail

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 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 can build > someth

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 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 reasonably happy with

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 wrote: > On Tue, Aug 19, 2014 at 9:53 PM, Gora Mohanty wrote: > > >> 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 think ag

Re: [BangPypers] Moving from python 2.6 to 2.7

2014-10-07 Thread Gora Mohanty
On 7 October 2014 15:53, Kulkarni, Shreyas 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 might break

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 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 ___ B

Re: [BangPypers] about code

2014-12-14 Thread Gora Mohanty
On 15 December 2014 at 11:51, narayan naik 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 try searching Google, e

Re: [BangPypers] combine multiple modules in one

2014-12-17 Thread Gora Mohanty
On 17 December 2014 at 23:35, Nitin Kumar 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 connection. [.

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 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 such arguments ofte

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 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 > django should ta

Re: [BangPypers] Django pagination

2015-02-15 Thread Gora Mohanty
On 16 February 2015 at 12:42, Shashidhar Paragonda 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 page with pagination

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 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., https://pythonconquerstheuniverse.wordpress.co

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

2015-03-20 Thread Gora Mohanty
On 20 March 2015 at 22:11, Nimish Dalal 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 ___ Ba

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 knowing

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

2015-05-27 Thread Gora Mohanty
On 27 May 2015 at 17:48, Ramdas S 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 primarily to r

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 wrote: > Hi All, > > We are

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 get

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

2015-06-23 Thread Gora Mohanty
gevent here. > Celery makes sense. gevent changes the entire model of how your project works, so think carefully about how you want to proceed. Regards, Gora > > I just started reading http://www.django-rest-framework.org/ > > Thanks, > > On Tue, Jun 23, 2015 at 12:41 AM,

Re: [BangPypers] Changing Time Zone dynamically in Django

2015-07-14 Thread Gora Mohanty
On 14 July 2015 at 13:30, mithun chackravarthy 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. https://docs.djangoproject.com/en/

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 c

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

2015-07-23 Thread Gora Mohanty
On 23 July 2015 at 17:23, Pratik Vyas 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 con

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 wrote: > On Thu, Jul 23, 2015 at 11:12 PM, Gora Mohanty wrote: > >> >> And, maybe you would care to explain how this i

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 wrote: > hello Python hackers, > > I wanted to learn about private cloud comp

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 discount coupon while

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 article is not germane to t

Re: [BangPypers] Life lessons shared by Jesse Noller

2015-10-29 Thread Gora Mohanty
On 29 October 2015 at 23:38, Anand B Pillai wrote: > On Thursday 29 October 2015 08:24 PM, Noufal Ibrahim KV wrote: >> On Thu, Oct 29 2015, Gora Mohanty wrote: >> >> >> [...] >> >>> With all due respect to Mr. Noller, the article is not germane to th

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 like so > > > If no __cmp__(

Re: [BangPypers] Python comparisons

2015-12-05 Thread Gora Mohanty
On 5 December 2015 at 20:30, Noufal Ibrahim KV wrote: > On Sat, Dec 05 2015, Gora Mohanty wrote: > > > [...] > >> Maybe because that was the historical way that C did it? I agree that >> the Python 3 exception makes more sense. > > [...] > > We can only g

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 array that you are using: prob

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

2016-05-08 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 a

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? Can you use a service like p

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 said, make what you have done

Re: [BangPypers] C Programming trainer - Bangalore

2016-05-15 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] 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/ . Try the tutorial first.

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 technical list, but I am

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 think is unreasonable. >

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 unusable mess. May I q

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 > > What is the similar a

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 proxy_pass directive in ngin

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 original statement, this is

Re: [BangPypers] Multiple Django app with nginx

2016-05-19 Thread Gora Mohanty
On 20 May 2016 at 00:40, Sathishkumar Duraisamy wrote: > On Thu, May 19, 2016 at 11:50 PM, Gora Mohanty wrote: > >> On 19 May 2016 at 09:01, Sathishkumar Duraisamy >> wrote: >> [...] >> > >> > >> > May be you are right. I am really sorry,

Re: [BangPypers] Acessing session variables in template with django

2009-05-23 Thread Gora Mohanty
On Sat, 23 May 2009 11:03:26 +0530 Puneet Aggarwal wrote: > Hi All, > > I am facing issue when I am trying to access session variables in django. > > I am setting the session variable something like : > > request.session['cityname'] = cityname [...] This should work. Have you set MIDDLEWARE_

Re: [BangPypers] BangPypers Digest, Vol 22, Issue 1

2009-06-04 Thread Gora Mohanty
On Thu, 4 Jun 2009 16:30:40 +0530 testing123 test wrote: > Hi Venkatraman, > > Yes,My requirement is to compait 2 XML Files are same or not. > Please help me in this regard. [...] o Use of a weird email address o Ignoring relevant replies o Inability to understand replies o No con

Re: [BangPypers] problems while using pexpect. pexpect.TIMEOUT always...

2009-06-08 Thread Gora Mohanty
On Mon, 8 Jun 2009 21:48:50 +0530 Senthil Kumaran wrote: > I have been trying to use pexpect and I am failing with > pexpect.TIMEOUT for all my attempts. In order to troubleshoot, I > decided to go with simplest possible one. > > Here is my ssh to localhost: > > [21:29:14 senthil]$ssh localhost

Re: [BangPypers] Django connection problem

2009-06-22 Thread Gora Mohanty
On Mon, 22 Jun 2009 19:14:21 +0530 (IST) VIJAY KUMAR wrote: > Hi >    Need a help for below error. >        from django.contrib.auth.models import User >   File "c:\python26\lib\site-packages\django-1.0.2_final-   > py2.6.egg\django\contrib\auth\models.py", line 3, in >

Re: [BangPypers] design discussion.

2009-07-16 Thread Gora Mohanty
On Thu, 16 Jul 2009 13:10:42 +0530 "Madhubala" wrote: > Posted earlier with wrong description in the subject - sorry. > Hi, > > I would like to put one design for discussion and would like to > get appropriate solution after discussions. The details are below. > > There are three dictionaries

Re: [BangPypers] Django test case problem

2009-07-28 Thread Gora Mohanty
On Tue, 28 Jul 2009 18:40:39 +0530 (IST) VIJAY KUMAR wrote: [...] > I used this command to run the test cases   python manage.py test > polls Can some help me know what am I missing or should need to > do something  so my testcase from test.py start get executed. [...] Any errors that you see? I

Re: [BangPypers] Any python metaclasses for UID

2009-07-29 Thread Gora Mohanty
On Wed, 29 Jul 2009 23:26:17 +0530 Noufal Ibrahim wrote: > On Wed, Jul 29, 2009 at 10:20 PM, Roshan > Mathews wrote: > > I think I just fell down the rabbit hole. > > > > The time has come the Walrus said to speak of many things! Of atoms, and stars, and nebulae, Of entropy, and genes! Regards

Re: [BangPypers] SWIG

2009-09-14 Thread Gora Mohanty
On Tue, 15 Sep 2009 00:04:01 +0530 bhaskar jain wrote: [...] > Problem is that there was a bug and they have changed a few lines > in one of the C files. So my question is - will just applying the > patch and installing the library again, will i get a fresh good > python binding or do i need to re

Re: [BangPypers] Perl or Python ?

2009-10-13 Thread Gora Mohanty
On Wed, 14 Oct 2009 00:06:48 +0530 Noufal Ibrahim wrote: > On Mon, Oct 12, 2009 at 3:03 PM, Zaki Manian > wrote:[..] > > Perl style is much more individual.  Perl coders and groups > > tend to develop an idiosyncratic style. Perl can be extremely > > concise("Famous one liner") but also unreadab

Re: [BangPypers] Why do indians copy?

2009-10-15 Thread Gora Mohanty
On Fri, 16 Oct 2009 08:36:35 +0530 Roshan Mathews wrote: > On Fri, Oct 16, 2009 at 8:22 AM, srid > wrote: > > But Ghose raises an important point about it also being a > > cultural issue. Heh, wish there was a well-researched Wikipedia > > article on this topic! > > > There is a hypothesis prese

Re: [BangPypers] WxPython: Unhandled exception

2010-02-06 Thread Gora Mohanty
On Sat, 6 Feb 2010 22:29:15 +0530 Noufal Ibrahim wrote: > On Sat, Feb 6, 2010 at 6:38 PM, Rama Rao Polneni > wrote: > > Hi All, > > > > I have developed a GUI application. > > Some times I am getting an unhandled exception with the > > following message: > > > > *An unhandled exception occurred.

Re: [BangPypers] how the file rc.local and command update-rc.d are related

2010-02-13 Thread Gora Mohanty
On Sat, 13 Feb 2010 14:02:22 +0530 "BR!j!TH" wrote: > Hi all, > when I googled for methods to run scripts automatically at boot > time, I found some where to use the command *update-rc.d*. Some > others suggesting add an entry in *rc.local* file under /etc. I > have tried the rc.local method with

Re: [BangPypers] Calling Python script from C++.

2010-02-25 Thread Gora Mohanty
On Thu, 25 Feb 2010 07:21:15 - wrote: [...] > We have a requirement of Calling Python script from C++. [...] > So, For this we are trying to pass entire python script(Script > has both method implementation and method calls are exist) as a > string and executing this string by using PyRun_Sim

[BangPypers] One language to bind them all

2010-04-21 Thread Gora Mohanty
Hi, Posted without comment, as I am not sure whether to laugh or cry: http://www.itworld.com/government/105031/will-wall-street-require-python On the face of it, this looks like an attempt to have Python/another programming language substitute for English in some US SEC regulations! Regards, Go

[BangPypers] [Commercial] Looking for a Django developer

2010-04-23 Thread Gora Mohanty
Hi, Srijan Technologies, Pvt. Ltd., India ( http://srijan.in ) is looking for Django developers in Delhi, with at least 8-12 months of experience in Django. Exceptional candidates well- versed in other modern frameworks can also be considered. If interested, please contact j...@srijan.in with you

Re: [BangPypers] if we compare Rails and django

2010-05-01 Thread Gora Mohanty
On Sat, 1 May 2010 11:44:13 +0530 "BR!j!TH" wrote: > If I want to create a web app with lots of ajax,java scripts and > also video streaming etc [...] Both RoR and Django should be able to address this. You should be thinking more along the lines of: * Your developers, and their expertise: Are t

Re: [BangPypers] if we compare Rails and django

2010-05-01 Thread Gora Mohanty
On Sat, 1 May 2010 13:33:38 +0530 Noufal Ibrahim wrote: > On Sat, May 1, 2010 at 10:34 AM, BR!j!TH > wrote: > > Hi, > > > > Which is the best web framework Rails or Django.[..] > > Perl cgi. +1 No, +infinity! Regards, Gora ___ BangPypers mailing li

Re: [BangPypers] i need to learn lamp stack ?

2010-05-07 Thread Gora Mohanty
On Fri, 7 May 2010 10:38:30 -0700 jaya kumar wrote: > hi to all > > i need to learn the lamp stack ? > > can any one tell what is lamp stack ? what it will be useful for ? [...] Yes. One rubs the lamp and a genie appears, which then magically goes about fulfilling all one's frustrated ambition

Re: [BangPypers] XML manipulation using ElementTree

2010-05-09 Thread Gora Mohanty
On Sun, 9 May 2010 23:29:33 +0530 Anand Balachandran Pillai wrote: [...] > > Please paste the error you are getting somewhere like > > pastebin.ca > > > and post the link here. Also please post the full code along with > the error. [...] Besides the above, I would also strongly suggest using lxml

Re: [BangPypers] extracting unicode text from pdfs

2010-05-24 Thread Gora Mohanty
On Mon, 24 May 2010 19:13:26 +0530 Eknath Venkataramani wrote: > I have around 45 pdfs to convert into raw text containing text in > _HINDI_ . When I use the xpdf package, the generated text is very > weird, so I'd like to write a program which would convert the pdf > text into Unicode text as it

  1   2   3   >