Re: [BangPypers] Unpacking Tuple

2012-10-06 Thread Gora Mohanty
On 6 October 2012 15:39, Saju M 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 th

Re: [BangPypers] [Off-Topic] Best Wiki

2012-10-10 Thread Gora Mohanty
On 10 October 2012 10:34, Asif Jamadar wrote: > Checkout https://github.com/benjaoming/django-wiki. I've installed it and so > far it looks very promising. > With all due respect, please take this off this list, as this has nothing germane to the list. The original poster admits this, but someho

Re: [BangPypers] Django GeoIP related Problem

2012-11-05 Thread Gora Mohanty
On 5 November 2012 15:19, Prashant Gaur wrote: > > HI > > i am using django_geoip app in my django website but i am getting errors > please tell me what will be GEOIP_LIBRARY_PATH actually . That would depend on where you installed the GeoIP C libary from Maxmind. > i am using ubuntu linux .

Re: [BangPypers] Django GeoIP related Problem

2012-11-05 Thread Gora Mohanty
On 5 November 2012 20:24, Prashant Gaur wrote: > i am trying .. when i give*GeoIP.so* file path then it give errors same > as *libGeoip.so.1* .. > > i do nt know y i am not able but still i am confused it's working on my > localserver on ubuntu but without GEOIP_LIBRARY_PATH but on cent

Re: [BangPypers] I am facing an issue while decoding json string using json.loads

2012-12-25 Thread Gora Mohanty
On 26 December 2012 12:39, Saju M wrote: > Hi, > > I am facing an issue while decoding json string using json.loads(jstring). > Its working, if i do json.dumps(eval(jstring)) before json.loads(jstring). > I could not figure out the issue. I want to avoide use of "eval" here. > > > > *#

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

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

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

2013-01-07 Thread Gora Mohanty
On 7 January 2013 15:38, Gora Mohanty wrote: > import re > TITLE_RE = re.compile( r'#\n#([^\n]*)\n#\n \n\[([^\]]*)\]\n \n', > re.MULTILINE|re.DOTALL ) > for m in TITLE_RE.finditer( s.strip ): > title, info = m.groups() > print title, info Oops, that shoul

Re: [BangPypers] List compression imrpovement

2013-01-08 Thread Gora Mohanty
On 9 January 2013 13:11, vijay 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) It would help i

Re: [BangPypers] List compression imrpovement

2013-01-09 Thread Gora Mohanty
On 9 January 2013 13:25, vijay 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 original. Rather than

Re: [BangPypers] Django Jstree examples

2013-01-22 Thread Gora Mohanty
On 23 January 2013 12:32, JAGANADH G wrote: > Hi All, > Is there any tutorial available for Django and Jstree J query Checktree. http://lmgtfy.com/?q=django+jquery+jstree Regards, Gora ___ BangPypers mailing list BangPypers@python.org http://mail.pytho

Re: [BangPypers] Python related jobs for me

2013-02-19 Thread Gora Mohanty
On 20 February 2013 12:54, L Radhakrishna Rao 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 would like to get

Re: [BangPypers] regarding installation of python

2013-02-21 Thread Gora Mohanty
On 21 February 2013 13:43, Siva Ranganath 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 forum, or RHEL

Re: [BangPypers] help to understand this code..

2013-02-25 Thread Gora Mohanty
On 25 February 2013 19:41, T S KAMATH wrote: > Hi, > > I have no cue on php and its usage.. i am stuck.. I just wanted to list all > the files and dir of the folder on webpage and unfortunately the web-server > is set up for php.. [...] So, why are you asking here? It is off-topic, and you woul

Re: [BangPypers] Django url patterns help

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

Re: [BangPypers] Django url patterns help

2013-03-01 Thread Gora Mohanty
On 1 March 2013 17:31, Bhimsen Kulkarni wrote: > your regex is r'^my_page/(?P.* but your search string (" > /my_page/?btn=view_page&sel=Profile") begins with "/". According to your > regex, search string must begin with "my_page". That is not the problem: url(r'^my_page/$'...) will match http://e

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

2013-03-08 Thread Gora Mohanty
On 8 March 2013 16:07, davidsnt 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 lines after

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

2013-03-15 Thread Gora Mohanty
On 15 March 2013 12:08, pavan intercon 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 digest..." [...] As

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 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 programming co... >

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 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 "This group is for d

Re: [BangPypers] Need help for python coding

2013-03-26 Thread Gora Mohanty
On 26 March 2013 23:41, Kamalakar gs 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 > vonmises colu

Re: [BangPypers] What is the output of this python program?

2013-04-05 Thread Gora Mohanty
On 5 April 2013 14:09, Ruchir Shukla wrote: > Hello ! > > I did not get the Answer for how . can you explain the Answer ? [...] Seeding a pseudo-random number generator makes it always generate a sequence specific to the seed. Someone discovered the seeds to print the sequence for "hello" and for

Re: [BangPypers] What is the output of this python program?

2013-04-05 Thread Gora Mohanty
On 5 April 2013 19:22, Anand B Pillai wrote: > This tells one not to really on PRNGs to generate a truly random > state. Absolutely! PRNGs have their place, e.g., when one does want a repeatable sequence if given the same seed. For example, one would want that for Monte Carlo simulations where th

Re: [BangPypers] How to set DNS IP of a machine

2013-04-06 Thread Gora Mohanty
On 7 April 2013 11:44, Aravind Kamble wrote: > Hi All, > > I am a beginner in Pyhton scripting. I want to know how can I set a > predefined IP address as DNS IP of a machine in my Python script. You provide nowhere near enough details for anyone to help you. To start with, what operating system?

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 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 posting this o

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 wrote: > Hi, > > On Mon, Apr 15, 2013 at 9:13 AM, Gora Mohanty wrote: >> On 15 April 2013 07:03, Balachandran Sivakumar wrote: >> >> Please do not indulge in such off-topic postings, no matter >> how important you

Re: [BangPypers] I need some help/guidance

2013-04-16 Thread Gora Mohanty
On 16 April 2013 12:17, Smrutilekha Swain 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 and longitude wit

Re: [BangPypers] Amazon and Django

2013-04-16 Thread Gora Mohanty
On 16 April 2013 17:02, Ramdas S wrote: > Anyone running Django apps on amazon, I need to spec and figure out some > costing. Please do let me know? This is maybe a little off-topic, but we do use Django extensively on AWS. Maybe contact me off-list? Regards, Gora _

Re: [BangPypers] Amazon and Django

2013-04-16 Thread Gora Mohanty
On 16 April 2013 18:13, Ramdas S wrote: > > > On Tue, Apr 16, 2013 at 6:11 PM, Gora Mohanty wrote: >> >> On 16 April 2013 17:02, Ramdas S wrote: >> > Anyone running Django apps on amazon, I need to spec and figure out some >> > costing. Please do le

Re: [BangPypers] I need some help/guidance

2013-04-16 Thread Gora Mohanty
On 17 April 2013 10:00, Smrutilekha Swain 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 would look into wha

Re: [BangPypers] Need help for python coding

2013-04-20 Thread Gora Mohanty
On 20 April 2013 22:47, Kamalakar gs 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 exists and execu

<    1   2   3