Geodetic Development Kit

2021-05-04 Thread Fred Killet
healthy! Fred Email: https://www.killetsoft.de/email.htm?lan=e&btr=News -- https://mail.python.org/mailman/listinfo/python-list

Won't Uninstall

2019-09-20 Thread Fred Vincent
Python 3.7.4 won’t uninstall, I have tried doing what I can such as going to the control panel and uninstalling the program there, but that did not work. Since I am unable to delete it I am unable to download a different version of python. How do I fix this and fully uninstall python? Sent from

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

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: 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: 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 << 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

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: 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

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

Recommended courses/materials for Python/Django course...

2016-06-15 Thread Fred Stluka
- Lynda - NewCircle.com Any advice? Thanks! --Fred -- Fred Stluka -- [5]mailto:f...@bristle.com -- [6]http://bristle.com/~fred/ Bristle Software, Inc -- [7]http://bristle.com -- Glad to be of service! O

Re: My attempts in playing with tail-recursion in python

2015-05-17 Thread Fred Spiessens
Hi Thomas, I like what you've been doing. I think it would also be great if the "leave the loop" detector would be the actual stop condition in the recursion, applied to the arguments of the call. That would of course force you to split the recursive function in two functions: one to detect the s

meta language to define forms

2014-03-27 Thread Sells, Fred
I'm trying to use python classes and members to define complex data entry forms as a meta language The idea is to use a nice clean syntax like Python to define form content, then render it as HTML but only as a review tool for users, The actual rendering would go into a database to let a vendo

RE: noobie needs help with ctypes

2013-12-10 Thread Sells, Fred
Mucho apologies for rich text, I think I picked that up when replying to a post without properly checking. Thanks for heads up. Fred. -- https://mail.python.org/mailman/listinfo/python-list

RE: noobie needs help with ctypes

2013-12-09 Thread Sells, Fred
] On Behalf Of Joel Goldstick Sent: Monday, December 09, 2013 3:22 PM To: Terry Reedy Cc: python-list@python.org Subject: Re: noobie needs help with ctypes On Mon, Dec 9, 2013 at 3:15 PM, Terry Reedy mailto:tjre...@udel.edu>> wrote: On 12/9/2013 2:24 PM, Sells, Fred wrote: I'm using py

noobie needs help with ctypes

2013-12-09 Thread Sells, Fred
I'm using python 2.6 on Linux/CentOs 6.x I'm getting ctypes to work, but getting stuck on the use of .argtypes. Can someone point out what I'm doing. This is my first use of ctypes and it looks like I'm getting different definitions in stackoverflow that may correspond to different version o

RE: Shebang line on Windows?

2013-02-25 Thread Sells, Fred
When moving from windows to unix you need to run "dos2unix" on any programs that use shebang (at least with python 2.6) that is installed on some platforms but must be installed on others like CentOs but it is in their repository. -Original Message- From: Python-list [mailto:python

derived class name in python 2.6/2.7

2013-01-30 Thread Sells, Fred
This is simple, but I just cannot find it after quite a bit of searching I have this basic design class A: def __init__(self): print 'I am an instance of ', self.__class__.name class B(A): pass X = B I would like this to print "I am an instance of B" but I kee

RE: New in Python , Need a Mentor

2013-01-02 Thread Sells, Fred
t/response handler. It makes it much easier to debug. Other than that, ditto to everyone else's response. Fred. -- http://mail.python.org/mailman/listinfo/python-list

Geodetic functions library GeoDLL 32 Bit and 64 Bit

2012-08-28 Thread Fred
://www.killetsoft.de/p_gdlb_e.htm Notes about the NTv2 support can be found here: http://www.killetsoft.de/p_gdln_e.htm Report on the quality of the coordinate transformations: http://www.killetsoft.de/t_1005_e.htm Fred Email: info_at_killetsoft.de -- http://mail.python.org/mailman/listinfo

RE: Object Models - decoupling data access - good examples ?

2012-08-07 Thread Sells, Fred
27;fieldname'] syntax but could use record.fieldname. I would describe myself as more of a survivalist programmer, lacking some of the sophisticated techniques of others on the mailing list so take that into account. Fred. -Original Message- From: python-list-bounces+frsells=adventistcare

RE: Diagramming code

2012-07-16 Thread Sells, Fred
You leave many relevant questions unanswered. 1. Is the original developer/team available or have you been left with the code and little or no doc's? 2. How big is big in terms of the number of files/modules in the project? 3. Is there a reasonable structure to the project in terms of director

RE: Overlayong PDF Files

2012-05-02 Thread Sells, Fred
Assuming your form has actual PDF data entry fields. I export the form to a .fdf file, run a little script to replace fieldnames with %(fieldname)s and save this as a staic template. At run time I'll merge the template with a python dictionary using the % operator and shell down to pdftk to m

RE: Using the Python Interpreter as a Reference

2011-12-02 Thread Sells, Fred
Steven, that's probably the most elegant explanation of the "pythonic" way I've ever seen. I'm saving it for the next time upper management want to use Java again. -Original Message- From: python-list-bounces+frsells=adventistcare@python.org [mailto:python-list-bounces+frsells=adventi

RE: Py and SQL

2011-12-01 Thread Sells, Fred
I find it easier to code like this Sql = ‘’’select yadda, yadda, yadda FROM a,b,c Where this=that ORDER BY deudderting’’’ With the appropriate %s(varname) and % against a dictionary rather than positional args, but that’s just me. From: python-list-bounces+frsells=adventistcare...

RE: Using the Python Interpreter as a Reference

2011-11-25 Thread Sells, Fred
I'm looking at a variation on this theme. I currently use Flex/ActionScript for client side work, but there is pressure to move toward HTML5+Javascript and or iOS. Since I'm an old hand at Python, I was wondering if there is a way to use it to model client side logic, then generate the javascript

RE: webapp development in pure python

2011-10-25 Thread Sells, Fred
Quixote may be what you want, but it's been years since I've used it and I don't know if it is still alive and kicking. It was from MEMS if I remember correctly. Using django and Flex is one way to avoid html and javascript and it works great for datagrids. Fred. -- http://

Re: Advice on how to get started with 2D-plotting ?

2011-09-07 Thread Fred Pacquier
Wow, what an impressive turnout ! Thanks a lot, rantingrick, CM and Herbert, for the fast answers, useful tips and especially the sample code ! Beats starting from a blank page, with a big stick, and will certainly set me on my way much faster... networkx does seem a bit over the top for my si

Advice on how to get started with 2D-plotting ?

2011-09-06 Thread Fred Pacquier
Hi, I'm a Python long-timer, but I've never had to use tools like Matplotlib & others before. Now, for my work, I would need to learn the basics fast, for a one-time quick-n-dirty job. This involves a graphic comparison of RFC1918 IP subnets allocation across several networks. The idea is to

RE: Community Involvement

2011-08-05 Thread Sells, Fred
FWIW Fred Sells -- http://mail.python.org/mailman/listinfo/python-list

RE: Selecting unique values

2011-07-26 Thread Sells, Fred
The set module or function (depends on which python version) will do this if you make each record a tuple. -Original Message- From: python-list-bounces+frsells=adventistcare@python.org [mailto:python-list-bounces+frsells=adventistcare@python.org] On Behalf Of Peter Otten Sent: Tues

RE: reading zipfile; problem using raw buffer

2011-07-26 Thread Sells, Fred
option gave me the clue I needed to upload the file All is good and moving on to the next crisis ;) Fred. -- http://mail.python.org/mailman/listinfo/python-list

reading zipfile; problem using raw buffer

2011-07-26 Thread Sells, Fred
I'm tring to unzip a buffer that is uploaded to django/python. I can unzip the file in batch mode just fine, but when I get the buffer I get a "BadZipfile exception. I wrote this snippet to try to isolate the issue but I don't understand what's going on. I'm guessing that I'm losing some header/

RE: Refactor/Rewrite Perl code in Python

2011-07-25 Thread Sells, Fred
Sometimes it's worth asking Why? I assume there would be no need to rewrite if the existing code did most of what was needed. It may be easier to ask the customer what he really wants rather than to re-engineer a crappy solution to an obsolete problem. -- http://mail.python.org/mailman/listinfo

Geodetic functions library GeoDLL 32 Bit and 64 Bit

2011-07-20 Thread Fred
Hi developers, who develops programs with geodetic functionality like world-wide coordinate transformations or distance calculations, can work with the latest version of my GeoDLL. The Dynamic Link Library can easily be used with any programming language to add geodetic functionality to own app

newbie needs help with cookielib

2011-05-04 Thread Sells, Fred
I'm using Python 2.4 and 2.7 for different apps. I'm happy with a solution for either one. I've got to talk to a url that uses a session cookie. I only need to set this when I'm developing/debugging so I don't need a robust production solution and I'm somewhat confused by the docs on cookielib.

Re: What do you use with Python for GUI programming and why?

2011-03-11 Thread Fred Pacquier
Robert said : > Is there a push to one toolkit or the other? If you are just now getting started, I would honestly suggest you save a whole lot of time and dive straight into PyQt. I've tried most 'em over the years (including some now discontinued), and in my experience Qt is way above the r

Re: OT: Code Examples

2011-02-28 Thread Fred Marshall
On 2/28/2011 8:14 AM, n00m wrote: On Feb 28, 6:03 pm, Fred Marshall wrote: The best place for you to start: http://numpy.scipy.org/ Numpy manual: http://www.tramy.us/numpybook.pdf OK Thanks! Fred -- http://mail.python.org/mailman/listinfo/python-list

OT: Code Examples

2011-02-28 Thread Fred Marshall
c-oriented programs that do that kind of thing. Looking for links, etc. 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

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

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

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: What was your strategy?

2010-11-16 Thread Sells, Fred
It helps to try to solve a real (to you) problem, that way you discover what you don't know. If your code ends up nested 3 levels or your methods are more than 10 lines, ask for help. -Original Message- From: python-list-bounces+frsells=adventistcare@python.org [mailto:python-list-bou

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: 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: 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) >

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: 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: Processing XML File

2010-01-29 Thread Sells, Fred
Google is your friend. Elementtree is one of the better documented IMHO, but there are many modules to do this. > -Original Message- > From: python-list-bounces+frsells=adventistcare@python.org > [mailto:python-list-bounces+frsells=adventistcare@python.org] On > Behalf Of Stefan B

ReverseProxy

2009-11-16 Thread Fred C
I have to write a quick and dirty ReverseProxy with Twisted, for one of our internal project. I never used Twisted before, and I was wondering of someone have an handy example of a ReverseProxy with Twisted to help that I can use as bootstrap. Many thanks. Fred-- http://mail.python.org

Re: Tracking down DLL load errors in Windows ?

2009-10-19 Thread Fred Pacquier
"Mark Tolonen" said : > Yes, welcome to Microsoft's solution to DLL Hell...Side-by-Side DLL > Hell. As always, it boils down to a philosophical choice : is it better to suffer through Hell alone, or in bad company ? :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Tracking down DLL load errors in Windows ?

2009-10-18 Thread Fred Pacquier
Fred P said : > Hi, a bit of platform-specific advice sought here... I'm trying to > diagnose one of those mysteries Windows is so fond of... > Say that I have code that imports some binary Python module from site- > packages (in this case, libpyexiv2.pyd through pyexiv2.py, c

Re: Tracking down DLL load errors in Windows ?

2009-10-17 Thread Fred Pacquier
"Mark Tolonen" said : > That error message is returned from executables built with later > versions of Visual Studio (at least 2005 and 2008...not sure about > 2003). The Windows application event log will indicate what DLL is > missing. > > In addition to tools others have noted, depends.exe

Re: Tracking down DLL load errors in Windows ?

2009-10-16 Thread Fred Pacquier
Christian Heimes said : > Fred P wrote: >> Is there any tool and/or methodology I could use to at least pinpoint >> the exact DLL that libpyexiv2 is failing to load, and ideally also >> the reason why ?... > > The depencency walker http://www.dependencywalker.com/

Tracking down DLL load errors in Windows ?

2009-10-15 Thread Fred P
Hi, a bit of platform-specific advice sought here... I'm trying to diagnose one of those mysteries Windows is so fond of... Say that I have code that imports some binary Python module from site- packages (in this case, libpyexiv2.pyd through pyexiv2.py, could be anythng else). On three Windows

RE: How to run python script in emacs

2009-10-13 Thread Sells, Fred
some-buffers 1) (message "done!")) (defun my-switch-to-buffer () "switch to buffer, using completion to prevent bogus buffer names from being given" (interactive) (switch-to-buffer (read-buffer "Switch to buffer: " (other-buffer) "t"))) ;;; ;;; GNUS stuff ;;

Re: Python + webservice

2009-10-08 Thread Fred Chevitarese
Hello again!! Now i'm reading the documentation... If i got doubts, i ask here! Thanks ;) On Oct 8, 10:50 am, Fred Chevitarese wrote: > First of all, thanks for these replies... > Someone has an example of python + suds generating a XML and consuming > a webservice or, in suds

Re: Python + webservice

2009-10-08 Thread Fred Chevitarese
First of all, thanks for these replies... Someone has an example of python + suds generating a XML and consuming a webservice or, in suds documentation has one? Thanks again ;) On Oct 8, 8:32 am, Jakob Kristensen wrote: > Ralf Schoenian wrote: > > > Has anyone made something like this and can

RE: How to run python script in emacs

2009-10-07 Thread Sells, Fred
Hitting ctrl-c, twice quickly works for me. > -Original Message- > From: python-list-bounces+frsells=adventistcare@python.org > [mailto:python-list-bounces+frsells=adventistcare@python.org] On > Behalf Of OdarR > Sent: Wednesday, October 07, 2009 12:02 PM > To: python-list@python.o

Python + webservice

2009-10-07 Thread Fred Chevitarese
Hello all... I'm new here and a search in tis group but unfortunately i didn't find any kind of solution/code/question etc ... I have to made a python script that communicates with an websevice over the web. I tried out use SoapPy, ZSI, BeautifullSoap and others, but get no success... I have to ge

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: 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-03 Thread Fred Atkinson
hin Python? Regards, Fred -- http://mail.python.org/mailman/listinfo/python-list

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: 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 ... >

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

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: 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

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

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

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

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

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

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-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-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-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")

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: 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

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

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: Web based application development using python

2009-04-28 Thread Fred Pacquier
Rahul said : >> >> There are a number of frameworks out there each with there own set of >> strengths and weaknesses,  you shoul dbe >> looking at each ones vibrancy (community), suitablility for your >> application, etc... > > Thanks tim > This information was really of help to me If you don'

RE: Introducing Python to others

2009-04-02 Thread Sells, Fred
make Flex a joy. Good luck Fred. > -Original Message- > From: python-list-bounces+frsells=adventistcare@python.org > [mailto:python-list-bounces+frsells=adventistcare@python.org] On > Behalf Of Paddy O'Loughlin > Sent: Thursday, March 26, 2009 5:36 AM >

Re: Recommendation for a small web framework like Perl's CGI::Application to run as CGI?

2009-01-28 Thread Fred Pacquier
excord80 said : >> What are you looking for in your framework? > > Well, let's see. I don't need a templating library, since -- as you > pointed out -- I can just use Python's own. I don't need a db > interface (can just make my own dbapi calls if needed). Don't need url > mapping (can just use

RE: Python Apache Handler

2009-01-09 Thread Sells, Fred
Mod_python works, but if you are doing anything significant look into one of the many frameworks like turbogears or django. More structure to learn but less code when all is said and done. > -Original Message- > From: python-list-bounces+frsells=adventistcare@python.org > [mailto:pyth

RE: Python advocacy . HELP!

2008-12-24 Thread Sells, Fred
Prof. Kanabar (kanabar.bu.edu) is planning to offer a python course there soon. Perhaps he could help. Tell him you got his name from me (Fred Sells). > -Original Message- > From: python-list-bounces+frsells=adventistcare@python.org > [mailto:python-list-bounce

[no subject]

2008-12-05 Thread Fred
-- http://mail.python.org/mailman/listinfo/python-list

RE: Django or TurboGears or Pylons? for python web framework.

2008-11-07 Thread Sells, Fred
I use Flex (from adobe) for the client side and turbogears for the server side and pass xml or json in between. It gives you a Flash client which is very Sexy and browser independent and very simple turbogears code in Python. Flex is essentially open source, but the IDE is about $295, although the

Re: Are there any python micro-frameworks (like ruby's Camping)?

2008-10-01 Thread Fred Pacquier
Phillip B Oldham <[EMAIL PROTECTED]> said : > On Oct 1, 10:29 am, Michele Simionato <[EMAIL PROTECTED]> > wrote: >> How about wsgiref in the standard library? It is as small as you can >> get without resorting to CGI. > > Interesting... I'll be sure to check that out also. > > Someone also menti

Re: ANN: Python GUI development using XULRunner

2008-09-17 Thread Fred Pacquier
Todd Whiteman <[EMAIL PROTECTED]> said : > I've put together a tutorial that shows off how to build a GUI > application using XULRunner (same architectural components as Firefox > uses) that can be used in conjunction with the Python programming > language. > The tutorial covers how to build a

Re: PyGUI as a standard GUI API for Python?

2008-09-10 Thread Fred Pacquier
Todd Whiteman <[EMAIL PROTECTED]> said : > Personally, I believe XULRunner has a lot to offer for Python GUI > development, I'm currently finishing up some documentation steps to show > off how to use it specifically for Python (I'll post it to this list > when it's finished). That would be re

RE: swig or ctypes , under the gun and need help

2008-08-25 Thread Sells, Fred
Diez wrote... > I don't know swig, but if all you have is a real C-API, try & > use ctypes. > It's much easier to create bindings for, keeps you fully in > the warm and > cozy womb of python programming and doesn't need no > compilation to create > the actual binding. > You're right the ctypes

swig double[], under the gun and need help

2008-08-24 Thread Sells, Fred
I'm using python 2.4 under linux (centos 5.1). I need to pass an array of doubles to a c function but am getting an error, shown near the bottom of this post. my swig interface file looks like this * File: rug520.i */ %module rug520 %include "ty

Re: regex question

2008-08-05 Thread Fred Mangusta
Chris wrote: Doesn't work for his use case as he wants to keep periods marking the end of a sentence. Exactly. Thanks to all of you anyway, now I have a better understanding on how to go on :) F. -- http://mail.python.org/mailman/listinfo/python-list

regex question

2008-08-05 Thread Fred Mangusta
Hi, I would like to delete all the instances of a '.' into a number. In other words I'd like to replace all the instances of a '.' character with something (say nothing at all) when the '.' is representing a decimal separator. E.g. 500.675 > 500675 but also 1.000.456.344 > 1

Re: Nlp, Python and period

2008-08-04 Thread Fred Mangusta
Hi Paul, thanks for replying. I'm interested in knowing more about your regex approach, but as you point out in your comment, seems like access to the sourceforge mail archive is restricted. Is there any way I can read about it? Would you be so kind to cut and paste it here for instance? Tha

Nlp, Python and period

2008-08-04 Thread Fred Mangusta
Hi, are you aware of any nlp packages or algorithms in Python to spot whether a '.' represents an end of sentence or rather something else (eg Mr., [EMAIL PROTECTED], etc)? Thanks F. -- http://mail.python.org/mailman/listinfo/python-list

Re: Case tagging and python

2008-07-31 Thread Fred Mangusta
Hi, I came up with the following procedure ALLCAPS = "|ALLCAPS" NOCAPS = "|NOCAPS" MIDCAPS = "|MIDCAPS" CAPS = "|CAPS" DIGIT = "|DIGIT" def test_case(w): w_out = '' if w.isalpha(): #se la virgola non ci entra if w.isupper(): w_out = w.lower() + ALLCAPS r

  1   2   3   >