Python Newbie needs some context

2011-02-16 Thread Fred Marshall
cure. Where can I learn about "good practice" and these things. I know what cvs is but won't likely be using it. That is, which item in the hierarchy is best used for what? Thanks, Fred -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Newbie needs some context

2011-02-16 Thread Fred Marshall
If so, how? Thanks, Fred -- http://mail.python.org/mailman/listinfo/python-list

wxPython in Eclipse?

2011-02-17 Thread Fred Marshall
How do I use wxPython or wxGlade in the context of Eclipse? A link to a howto would be great! Thanks, Fred -- http://mail.python.org/mailman/listinfo/python-list

wxPython in the context of Eclipse

2011-02-19 Thread Fred Marshall
I asked earlier: How do I use wxPython or wxGlade in the context of Eclipse? A link to a howto would be great! I guess nobody knows or cares to answer? :-( -- http://mail.python.org/mailman/listinfo/python-list

Re: print executed query

2010-05-03 Thread Fred C
On Apr 29, 2010, at 9:49 AM, Philip Semanchuk wrote: > > On Apr 29, 2010, at 12:01 PM, someone wrote: > >> Hello! >> >> Is there a way to print a query for logging purpose as it was or will >> be sent to database, if I don't escape values of query by myself? >> >> cursor.execute(query, [id, s

Re: print executed query

2010-05-03 Thread Fred C
> > If you can fiddle with the Postgres server settings, the server has options > for logging lots of things, including the queries it executes. > Yes you can fiddle like that: >>> cur.mogrify("INSERT INTO test (num, data) VALUES (%s, %s)", (42, 'bar'

Re: Syntax problem - cannot solve it by myself

2010-06-08 Thread fred lore
On 8 juin, 23:44, Deadly Dirk wrote: > I am a total beginner with Python. I am reading a book ("The Quick Python > Book", 2nd edition, by Vernon Ceder) which tells me that print function > takes end="" argument not to print newline character. I tried and here is > what happens: > > >>> print(x) >

IP Address Function

2009-07-07 Thread Fred Atkinson
Is there a Python function I can use to get the user's IP address so I can display it on his browser? Regards, Fred -- http://mail.python.org/mailman/listinfo/python-list

Re: IP Address Function

2009-07-08 Thread Fred Atkinson
On Tue, 07 Jul 2009 22:54:03 -0300, "Gabriel Genellina" wrote: >En Tue, 07 Jul 2009 22:45:24 -0300, Fred Atkinson >escribió: > >> Is there a Python function I can use to get the user's IP >> address so I can display it on his browser? > >The

Re: IP Address Function

2009-07-08 Thread Fred Atkinson
gt; getenv("HTTP_X_FORWARDED_FOR") or > getenv("HTTP_X_FORWARDED_FOR") or > getenv("REMOTE_ADDR") or > "UNKNOWN") > >print ipaddr That did it. I wonder why they don't just have a function to return it instead of putting you throug

explode()

2009-07-11 Thread Fred Atkinson
What is the Python equivalent of the PHP explode() function? Fred -- http://mail.python.org/mailman/listinfo/python-list

Re: explode()

2009-07-11 Thread Fred Atkinson
On Sat, 11 Jul 2009 18:50:28 -0700, Chris Rebert wrote: >On Sat, Jul 11, 2009 at 7:41 PM, Fred Atkinson wrote: >>        What is the Python equivalent of the PHP explode() function? > >some_string.split("separator")

Re: explode()

2009-07-13 Thread Fred Atkinson
On Sat, 11 Jul 2009 18:50:28 -0700, Chris Rebert wrote: >On Sat, Jul 11, 2009 at 7:41 PM, Fred Atkinson wrote: >>        What is the Python equivalent of the PHP explode() function? > >some_string.split("separator") > >Cheers, >Chris What would the equival

Re: explode()

2009-07-13 Thread Fred Atkinson
On Mon, 13 Jul 2009 22:32:55 -0700, Chris Rebert wrote: >On Mon, Jul 13, 2009 at 11:28 PM, Fred Atkinson wrote: >> On Sat, 11 Jul 2009 18:50:28 -0700, Chris Rebert >> wrote: >> >>>On Sat, Jul 11, 2009 at 7:41 PM, Fred Atkinson wrote: >>>>        What i

Re: explode()

2009-07-14 Thread Fred Atkinson
On Tue, 14 Jul 2009 05:41:40 GMT, Tim Harig wrote: >On 2009-07-14, Fred Atkinson wrote: >> The one thing I really dislike about Python over PHP is that >> Python can usually only appear in the cgi directory (unless other >> arragements are made with your hosti

Re: explode()

2009-07-14 Thread Fred Atkinson
On Mon, 13 Jul 2009 23:54:11 -0700 (PDT), alex23 wrote: >Fred Atkinson wrote: >>         I wish the Python site was as well written as the PHP site. On >> the PHP site, I can look up a command and they show not only the docs >> on that command but a list of all other comman

Final Project

2009-07-19 Thread Fred Atkinson
seful on my Web site(s). I would be grateful for any and all suggestions. Regards, Fred -- http://mail.python.org/mailman/listinfo/python-list

setuptools question.

2009-07-21 Thread Fred C
has attempted to modify files on your system >that are not within the EasyInstall build area, and has been aborted. Is there a way to use easy_install to install the start scripts into / etc/init.d. If not, what is the best way to install these scripts. Thanks -fred- -- http://mail.python.org/m

Predefined Variables

2009-07-24 Thread Fred Atkinson
Is there a pre-defined variable that returns the GET line (http://www.php.net/index.php?everythingafterthequestionmark) as a single variable (rather than individual variables)? Regards, Fred -- http://mail.python.org/mailman

Re: Predefined Variables

2009-08-01 Thread Fred Atkinson
On Thu, 23 Jul 2009 15:28:50 +0200, "Diez B. Roggisch" wrote: >Fred Atkinson wrote: > >> Is there a pre-defined variable that returns the GET line >> (http://www.php.net/index.php?everythingafterthequestionmark) as a >> single variable (rather than individ

Re: Predefined Variables

2009-08-01 Thread Fred Atkinson
On Sat, 01 Aug 2009 18:56:33 -0700, Fred Atkinson wrote: >On Thu, 23 Jul 2009 15:28:50 +0200, "Diez B. Roggisch" > wrote: > >>Fred Atkinson wrote: >> >>> Is there a pre-defined variable that returns the GET line >>> (http://www.php.net/index.ph

Seeding the rand() Generator

2009-08-02 Thread Fred Atkinson
How does one seed the rand() generator when retrieving random recordings in MySQL? Regards, Fred -- http://mail.python.org/mailman/listinfo/python-list

Re: Seeding the rand() Generator

2009-08-02 Thread Fred Atkinson
On Sun, 02 Aug 2009 08:53:50 -0700, Scott David Daniels wrote: >Fred Atkinson wrote: >> How does one seed the rand() generator when retrieving random >> recordings in MySQL? > >It is not entirely clear what you are asking. If you are talking about >MySQL's

Re: Predefined Variables

2009-08-02 Thread Fred Atkinson
On Sun, 02 Aug 2009 08:11:22 -0700, Scott David Daniels wrote: >Piet van Oostrum wrote: >>>>>>> Scott David Daniels (SDD) wrote: >>> SDD> Stephen Cuppett (should have written in this order): >>>>> "Fred Atkinson" wrote ... >

Get Cliet IP Address

2009-08-02 Thread Fred Atkinson
What is the function to obtain the client browser's IP address? Fred -- http://mail.python.org/mailman/listinfo/python-list

Re: Seeding the rand() Generator

2009-08-03 Thread Fred Atkinson
hin Python? Regards, Fred -- http://mail.python.org/mailman/listinfo/python-list

Re: Seeding the rand() Generator

2009-08-03 Thread Fred Atkinson
igure out what the Python equivalent of that is. Now do you see? Fred -- http://mail.python.org/mailman/listinfo/python-list

Re: Seeding the rand() Generator

2009-08-04 Thread Fred Atkinson
On Tue, 04 Aug 2009 07:12:30 GMT, Jarkko Torppa wrote: >On 2009-08-04, Fred Atkinson wrote: >> On Mon, 3 Aug 2009 20:00:08 -0700 (PDT), Carl Banks >> wrote: >>> >>>If you don't "get" why this is a MySQL question and not a Python >>>quest

RE: Generating PDF file in Python

2010-10-27 Thread Sells, Fred
I just shell down and use pdftk to merge fdf and pdf -Original Message- From: python-list-bounces+frsells=adventistcare@python.org [mailto:python-list-bounces+frsells=adventistcare@python.org] On Behalf Of Steve Piercy - Web Site Builder Sent: Wednesday, October 27, 2010 8:24 AM To

RE: { '0':'c->c->a' ,'1':'a->b->a' .........}

2010-11-09 Thread Sells, Fred
Since your keys are not unique, I would think that you would want a list of values for the object corresponding to each key. Something like Mydict = {} Mydict.setdefault(mykey, []).append(avalue) -Original Message- From: python-list-bounces+frsells=adventistcare@python.org [mailto:p

Re: Scala considering significant indentation like Python

2017-05-23 Thread Fred Stluka
ot;M-x" and see the M-x prompt, then then type "set-selective-display" using tab to autocomplete it. But I can't then type a column number after a space or in parens or anything. What am I missing? Thanks, --Fred -----

Re: Emacs command to select only lines indented below a specified level

2017-05-25 Thread Fred Stluka
Ben, Excellent answer! Thanks! --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Open Source: Without walls and fences, we

Access flles on a Android device from Windows PC

2017-06-06 Thread Fred Fishbin
Hi I want to write little program that my friend can run - he'll plug a USB drive into his Windows 7 PC, plug his phone in a USB port on same PC, then run my program and it'll xfer some audiobook files over for him. I plugged the USB drive in and it became "G:\", but the phone plugged in and b

Re: Access flles on a Android device from Windows PC << YES! Thanks

2017-06-07 Thread Fred Fishbin
Yup, that seems to be the deal, and there doesn't seem tpo be a really simple way to deal with this. ...but at least I know what I need to look for. thanks! Freddie eryk sun wrote: >On Tue, Jun 6, 2017 at 7:36 PM, Fred Fishbin wrote: >> >> I want to write little progra

Re: New to Python - Career question

2017-06-08 Thread Fred Stluka
t-q-java-q-perl.html Hope this helps, --Fred -- Fred Stluka -- [3]mailto:f...@bristle.com -- [4]http://bristle.com/~fred/ Bristle Software, Inc -- [5]http://bristle.com -- Glad to be of service! Open Source: Wit

Re: Access flles on a Android device from Windows PC

2017-06-09 Thread Fred Fishbin
imple anymore. Freddie wxjmfa...@gmail.com wrote: Le mardi 6 juin 2017 21:37:24 UTC+2, Fred Fishbin a écrit : >> Hi >> >> I want to write little program that my friend can run - he'll plug a USB >>drive >> into his Windows 7 PC, plug his phone in a USB port on sa

Re: Access flles on a Android device from Windows PC (Posting On Python-List Prohibited)

2017-06-09 Thread Fred Fishbin
Lawrence_D?Oliveiro wrote: >On Thursday, June 8, 2017 at 3:41:35 PM UTC+12, Fred Fishbin wrote: >> Yup, that seems to be the deal, and there doesn't seem tpo be a really >>simple >> way to deal with this. > >The preferred way to do file transfers to/from Androi

Re: Access flles on a Android device from Windows PC (Posting On Python-List Prohibited)

2017-06-09 Thread Fred Fishbin
Lawrence_D?Oliveiro wrote: >On Thursday, June 8, 2017 at 3:41:35 PM UTC+12, Fred Fishbin wrote: >> Yup, that seems to be the deal, and there doesn't seem tpo be a really >>simple >> way to deal with this. > >The preferred way to do file transfers to/from Androi

Re: A question on modification of a list via a function invocation

2017-08-15 Thread Fred Stluka
such code snippets: - http://pythontutor.com At the "Edit code" link, you can type/paste your own Python statements and have the tool single-step though them. At each step, it draws the data structures with values, links to other data structures, etc. A great Python visualization

Dive into Python question

2006-08-26 Thread Fred C. Dobbs
I feel like an idiot. I'm going thru "Dive Into Python" and running the first program - odbchelper.py My output is "pwd=secret;database=master;uid=sa;server=mpilgrim" which has all the substrings reversed from the output documented in the book. I've run the downloaded code in Komodo, PythonWin and

Re: Dive into Python question

2006-08-26 Thread Fred C. Dobbs
Thanks, after I looked into it I realized that the output order can change arbitarily. It just seems kind of strange that the first example is one where your output might not match what the author tells you it should be - and yet there's no mention of this in the book (at least at that point.) --

how to convert a c program to java program

2007-08-15 Thread Fred Shu (fshu)
I heard I need to port C program to JPython first and compile it to native JAVA. I don't know anything about JPython. Is there a tool to do the porting? If not, what is the quickest way to learn JPython? Thanks, Fred -- http://mail.python.org/mailman/listinfo/python-list

Re: How to access an absolute address through Python?

2007-02-11 Thread Fred of UrlBit.Us
from Python. Can it be done? > > Thanks, Mark Your best bet will be to create a C library callable from Python to do it for you. There may be such a beast in existence already, but it should not be hard at all to do, given the simplicity of the requirements. -- -- Fred of UrlBit.Us --

Re: OpenSource documentation problems

2005-09-01 Thread Fred L. Drake, Jr.
rtunately, not enough time was available from people with sufficient Roundup know-how to finish that effort. I still think that would be really nice. -Fred -- Fred L. Drake, Jr. -- http://mail.python.org/mailman/listinfo/python-list

try / except not worknig correctly

2005-03-12 Thread '@'.join([..join(['fred', 'dixon']), ..join(['gmail', 'com'])])
27;:break # .except ValueError: . print "Oops! That was no valid number. Try again..." . pass .'s are to preserve indents. fred -- http://mail.python.org/mailman/listinfo/python-list

Re: try / except not worknig correctly

2005-03-12 Thread '@'.join([..join(['fred', 'dixon']), ..join(['gmail', 'com'])])
1) the tutor list is really slow. but thanks. 2) Thanks Brain, i was missing the string bit. the code i posted (opps) was not exactly where i was having problems, it just looked like it. also thanks for the 'in' test, that will come in handy. i am using chain because i need to do something differ

help with getting selection from wxChoice with out after it has changed

2005-03-27 Thread '@'.join([..join(['fred', 'dixon']), ..join(['gmail', 'com'])])
I want to get the selection of several wxChoice boxes. But i do not want to have to catch the events for all the boxes I should be able to access the current selection outside of an event,but i am not seeing how to do this. This is a hack of the wxpython choice demo to demonstrate my question #-

Re: Cross platform distribution of standalone executable

2005-03-27 Thread '@'.join([..join(['fred', 'dixon']), ..join(['gmail', 'com'])])
don't count out py2exe, especially if your using pywin32's -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem in designing a global directory in python

2005-03-29 Thread '@'.join([..join(['fred', 'dixon']), ..join(['gmail', 'com'])])
noob warning: what is so wonderful about the NEW class over the old ? -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3