Re: merits of Lisp vs Python

2006-12-11 Thread Fred Gilham
changes the function cell of the symbol, so from that point all the calls to the function would be to the memoized version. -- Fred Gilham [EMAIL PROTECTED] One of the authors of the Daniel Bell volume says, in horror and astonishment, that the radical right intends

RE: Dr. Dobb's Python-URL! - weekly Python news and links (Jun 7)

2005-06-08 Thread Fred Pacquier
"Tim Golden" <[EMAIL PROTECTED]> said : > Just wanted to say thank you to Simon and all the > other people who have edited the Python-URL! weekly > digest over the years. Despite my being a pretty much > constant reader of c.l.py and various blogs and other > on-line sources, I still look forward

MySQLdb insert fails on one table

2007-06-01 Thread Sells, Fred
I have this table mysql> describe valid_individuals; +---+--+--+-+-+---+ | Field | Type | Null | Key | Default | Extra | +---+--+--+-+-+---+ | fname | varchar(30) | YES | | NULL| | | lname | varchar(30)

RE: MySQLdb insert fails on one table

2007-06-01 Thread Sells, Fred
thank you! that was it. I created the table using a create table (select from which must have defaulted to InnoDb, now I just create it in a script. > -Original Message- > From: Carsten Haese [mailto:[EMAIL PROTECTED] > Sent: Friday, June 01, 2007 8:56 AM > To: Sell

RE: Graph plotting module

2007-06-05 Thread Sells, Fred
www.vpython.org might be overkill, but it was easy to do simple 2d charts. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Behalf Of Grant Edwards > Sent: Monday, June 04, 2007 11:23 AM > To: python-list@python.org > Subject: Re: Graph plotting module > > > O

RE: Beginning Python

2007-06-06 Thread Sells, Fred
I find 3 elements contribute significantly to becoming competent in python 1. a decent IDE so you can see the big picture (multiple files and directories). I use Eclipse + PyDev because Eclipse supports other goodies like CVS. I'm sure other IDE's are as good if not better, but who has time to c

RE: pydev help

2007-06-20 Thread Sells, Fred
uncheck mylar and it should work. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Behalf Of Christopher L Judd > Sent: Tuesday, June 19, 2007 9:00 AM > To: Danyelle Gragsone > Cc: python-list@python.org > Subject: Re: pydev help [html-removed] > > > Its calle

printing html document with internet explorer

2007-06-25 Thread Fred Terp
I can print from all applications except explorer 7 which will automatically convert all documents to HTML script before printing. I am sure this is a simple setting but I can't find it. Frederick D. Terp 14985 Rivers Edge Court #135 Fort Myers, Florida 33908-7920 Phone: (239) 822-5439 Fax:

RE: Help With Better Design

2007-06-25 Thread Sells, Fred
> IMHO ... untested > > class LightBulb: > def __init__(self, on=False): self.IsOn = on > > def turnOn(self): self.switchIt(True) > def turnOff(self):self.switchIt(False) > > def switchIt(self, turnon): > if self.isOn==turnon: print "The Switch is Already %s

RE: Evolution of a pythonistas!

2007-06-28 Thread Sells, Fred
concur 100%. You can breeze through the fist half of the online tutorial in a about 2 cups of coffee but you don't know what you don't know until you try to do something real. Even with 20 years of working with Python, I find goodies in the cookbook for each new project. Get a python aware edito

RE: Evolution of a pythonistas!

2007-06-28 Thread Sells, Fred
> > Wow Fred! You're awesome! How did you get 20 years in of Python when > it was created in 1991? You're right, programming skills exceed basic math. I think I started around 1990 with version 0.92 beta. -- http://mail.python.org/mailman/listinfo/python-list

RE: Evolution of a pythonistas!

2007-06-28 Thread Sells, Fred
this one is fun: http://www.vpython.org/ > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Behalf Of swordofrue > Sent: Thursday, June 28, 2007 1:50 PM > To: python-list@python.org > Subject: Re: Evolution of a pythonistas! > > > Thanks everyone for your respon

RE: MySQL -->Python-->XML for JSviz

2007-07-03 Thread Sells, Fred
Sometimes sneaky is better than elegant. You could shell down to a command line invocation of mysql and specify -xml as the output format. I'm not sure how close that format is to what you need or how much you could leverage views (if using mysql 5.0). You could also use a command line xslt proce

python app to emulate terminal to dialup bulletin board

2007-07-03 Thread Sells, Fred
We need to automate the download of data that is now done manually via a terminal session to a dialup bulletin board. The user uses this to upload and download files. Hard to believe in this day and age, but true. I've tried google, but the terms are just too common; all I get is clutter. So I

best SOAP module

2007-07-18 Thread Sells, Fred
I need to talk to a vendor side via SOAP, Googling is overwhelming and many hits seem to point to older attempts. Can someone tell me which SOAP module is recommended. I'm using Python 2.4. --- The information contained in

Re: *** Dr G Polya BRILLIANTLY analyses the Virgina Shooting Incident ***

2007-04-27 Thread Fred Bloggs
[EMAIL PROTECTED] wrote: > On Apr 24, 2:09 pm, Quadibloc <[EMAIL PROTECTED]> wrote: > >>The Real Andy wrote: >> >>>Makes me wonder about the credibility of any statement Dr Gideon Polya >>>makes. >> >>. >>I never thought that I would feel the urge to call someone an >>edelweiss-eating Tanzanian

Re: Python-URL! - weekly Python news and links (May 16)

2007-05-19 Thread Fred Pacquier
[EMAIL PROTECTED] (Cameron Laird) said : > I'll make a few personal comments. > > I knew the choice of quotes was in questionable taste. I was > out to be provocative without being offensive, though. My > apologies to Mr. Beliavsky and anyone else I disappointed. On > the whole, I still think

RE: Python Web Programming - looking for examples of solidhigh-tr affic sites

2007-05-21 Thread Sells, Fred
I just started using flex (flex.org) from Adobe for the front end and am quite amazed at what it can do. Good docs. Clean client/server api if you like xml. It's relatively new so you still have to turn over some rocks and kiss some frogs to figure out how to get exactly the behavior you want in

RE: Filemaker interactions

2007-08-28 Thread Sells, Fred
filemaker 8.0 (Pro I think) has a web page generator. That's all I know, since I didn't really need it. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Behalf Of M.-A. Lemburg > Sent: Saturday, August 25, 2007 4:36 PM > To: Ian Witham > Cc: python-list@python.

RE: i can`t get python working on the command line (linux)

2007-03-13 Thread Sells, Fred
looks like it is expecting command line agrs that are not there. put this at the top of your code to see what's going on import sys print sys.argv remembering that the first element printed is sys.argv[0] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of M

RE: Mocking OpenOffice in python?

2007-03-14 Thread Sells, Fred
I currently use Java to generate a 150 page PDF from about 50 .odt files, including replacing occurrances of about 10 "place-holder" phrases from data in our system. I do not use the OOo database/mailmerge features, just UNO. This process takes about 20 seconds on my 2 year old XP laptop and about

RE: Need help with apack compression code

2007-03-16 Thread Sells, Fred
try google: "python apack" found several in general, always google first; python has so many devotees that someone has generally solved most problems already. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of priya kale Sent: Thursday, March 15, 2007 11:33 PM

RE: Choosing Python

2007-03-19 Thread Sells, Fred
glad to hear it. Those of us who would like to introduce it in reluctant schools elsewhere could benefit from a post-semester evaluation, including student comments and some sample, running projects. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL P

RE: Fortran vs Python - Newbie Question

2007-03-26 Thread Sells, Fred
1. Python is fun! 2. Python is cool! 3. Most of the time you can google a solution, i.e. somebody has already done nearly everything you can think of. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Monday, March 26, 2007 8:21 AM To: p

Re: WOLFOWITZ AND HIS IRANIAN PROSTITUTE SALARY OF $190k/yr Re: Test Tube Zealots: The American Chemical Society Terminates the Membership of Chemists from Iran

2007-04-14 Thread Fred Kasner
[EMAIL PROTECTED] wrote: > "I now direct you to agree to a proposal which includes the following > terms and conditions," Wolfowitz instructed. "You should accept > immediately her offer to be detailed to an outside institution of her > choosing, while retaining bank salary and benefits." > > The

RE: How to Start

2007-09-14 Thread Sells, Fred
I like eclipse+pydev; although I did pay my dues learning the basics of eclipse. F9 saves file and runs it. If you're an emacs dude, emacs + python mode is pretty good. ctrl-c ctrl-c runs the active buffer. Of course if you don't already know emacs, avoid it like the plague. > -Original Mes

Mysqldb printing sql and params no matter what I do

2007-10-02 Thread Sells, Fred
I had some code originally that printed the sql and params when I called the .execute method. I removed it but it still prints. I rebooted and renamed files and still it prints. I am totally stumped; I tried google but perhaps didn't use the right search; got a lot of hits but no clues. I'm usi

RE: Mysqldb printing sql and params ... NEVER MIND

2007-10-02 Thread Sells, Fred
el stupido here "accidently" put a couple of print statements into a mysqldb module when eclipse opened it from the link in the stacktrace; -- http://mail.python.org/mailman/listinfo/python-list

RMI with Pyro et al

2007-10-10 Thread Sells, Fred
I need a simple client/server architecture with clients on linux and servers on windows. There is no UI in this part, just business rules and access control. Pyro seems pretty cool for this due to it's simplicity. I'm just starting with it and have not been able to get the server side to "see"

RE: RMI with Pyro et al

2007-10-11 Thread Sells, Fred
Diez B. Roggisch wrote . Why do you want that (hot deploy) > anyway? Does startuptime of a script really bother you? > shouldn't take > more than a few seconds. My primary need is development/debug. I'm a Pyro newbie and I add a feature and then test. The only way I've found to kill the Pyro

RE: Problem with MySQL cursor

2007-10-11 Thread Sells, Fred
I don't think you can substitute the table name and column names in the execute, just values ( I could be wrong) try building it like this: sql = "INSERT INTO %s %s VALUES " % (taablename, columnstuple, '(%s)') cursor.execute(sql, values) > Hello, > I have a function that executes a SQL statemen

RE: RMI with Pyro et al -- thanks for help

2007-10-11 Thread Sells, Fred
thanks, that should do it Diez wrote: > Go install cygwin (but not it's included python-interpreter, > or at least > make sure you have your python path properly under control) > and then simply > start the script from the command-line. And hit C-c if you > need it to stop, > and restart it. On

Pyro: ActiveState (wind32) to Unix

2007-10-11 Thread Sells, Fred
I'm using ActiveState python on a windows box to talk to ACtive Directory. I'm running a Pyro Server on the same box. The client is Linux running std Python 2.4. It works just fine until the server codes calls some win32com.client api; then I get Traceback (most recent call last): File "

OpenOffice 2.0 UNO update Links; need help

2007-01-21 Thread Sells, Fred
I've got a ~100 page document I assemble from ~30 OOo .odt files with some search and replace functions. I then produce a PDF. So far so good. Now I need to get a barcode from our internal website and insert that. The barcode will vary based on some parameters. Our internal site provides a .jp

RE: Python tools to manipulate JARs ?

2007-01-31 Thread Sells, Fred
I have not tried this, but... Assuming jython is out of the question You might want to try a simple java command line program you could run from popen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Andy Dingley Sent: Wednesday, January 31, 2007 11:11 AM

RE: How can I access data from MS Access?

2007-02-05 Thread Sells, Fred
Peter, I sadly admit that I was wrong. "Doesn't seem to work" is effectivly even more useless than "doesn't work". I give up. Years ago we used to get our FORTRAN card decks back from the DP center with a piece of scrap paper saysing "She No Work". top that. -- http://mail.python.org/mailman/li

RE: Testers please

2007-02-13 Thread Sells, Fred
cool product, I'll test depending on schedule at the time. one (more) suggestion (from those of us who arn't doing the work ;) is to put this in eclipse, rather than apache, since many developers work with it. Please no IDE wars, I like emacs too, but when I'm trying to teach to newbies I use elci

RE: Eric on XP for Newbie

2007-02-28 Thread Sells, Fred
I've been using Eclipse with the PyDev extension. it's not bad, although you need a reasonably powerful computer to handle the bloat of Eclipse. For short programs, I still like emacs, but I'm old school. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of SPE

RE: Using Python To Change The World :)

2007-11-14 Thread Sells, Fred
It sounds as if this project is a major task based on your current level of experience. That being said, all we "pythonistas" encourage and support anyone who is trying to learn/apply python. Break the problem into 2 parts: --simulation math of what you're trying to do --cool visual display (2D

RE: Anyone knows how to use xemacs with ipython or python on WinXP? [phishing][html-removed]

2007-11-19 Thread Sells, Fred
you did remember to "byte-compile" the python-mode.el file? > I am struggling to make the ipython or python works in > xemacs. I have been seraching on the internet for a solution > for one day. I have put python-mode.el and ipython.el in the > load-path and in the xemacs I type: M-x load libra

RE: newbie Q: sequence membership

2007-11-19 Thread Sells, Fred
> >>> a, b = [], [] > >>> a.append(b) > >>> b.append(a) did you perhaps mean a.append('b'); b.append('a'); otherwise this seems pretty advanced for a newbie > >>> b in a > True > >>> a in a > Traceback (most recent call last): > File "", line 1, in > RuntimeError: maximum recursion depth exce

RE: Python web frameworks

2007-11-21 Thread Sells, Fred
-snip-- > > Thanks everyone for the response. From the posts I understand that > Django and pylons are the best. By searching the net earlier I got the > same information that Django is best among the frameworks so I > downloaded it and I found it very difficult to configure. I referred > the dja

RE: Python web frameworks + adobe flex

2007-11-21 Thread Sells, Fred
slight shift of topic here. I'm a newbie at standard web stuff. Mostly java webstart and a little mod_python. I experimented with Adobe Flex and really loved it for doing the front end. The backend needs to provide xml, json or AMF (an adobe proprietary binary format). For prototyping, I was

OpenOffice UNO export PDF help needed

2006-04-29 Thread Sells, Fred
I've geen googling for 3 days now, and cannot find out how to do this. I'm trying to use OpenOffice 2.0 and UNO to generate PDF documents. I'm using windows, but will have to make it work under Linux for production. I've been able to set the parameters and call the exportToPdf method, but the exp

pyuno and oootools with OpenOffice 2.0

2006-05-04 Thread Sells, Fred
I'm using windows xp and OpenOffice 2.0 and doing my first project with pyuno. I've got the basics to work,. An example I googled at http://blogs.nuxeo.com/sections/aggregators/openoffice_org/blogaggregator_vi ew?b_start:int=0 imported an ootools module. When I try to import it, it does not exis

pyuno and PDF output

2006-05-04 Thread Sells, Fred
I can use java to output a PDF file using uno, but when I try to do it in python, I get an IO Exception with no added information. The relevant code snippet follows: from com.sun.star.beans import PropertyValue PDF= PropertyValue( "FilterName" , 0 , "writer_pdf_Export", 0 ) doc2.storeAsURL("

Re: John Bokma harassment

2006-05-25 Thread Fred Gilham
unately (but understandably) people in the other newsgroups got pretty mad and complained to some authority figure somewhere. The authority figure had no authority over me but was nice about it, so I stopped. I decided my method was a bad idea. Or rather, a good idea but dangerous. :-) --

Re: Client side GUI-like web framework ?

2008-02-05 Thread Fred Pacquier
USCode <[EMAIL PROTECTED]> said : > Thanks Jay and I guess in my original post I didn't explicitly specify > Python but that is what I was after. > After poking around a bit pyjamas looks like it might be exactly what I > was after except the main pyjamas website http://pyjamas.pyworks.org > ap

Re: ANN: Phatch = PHoto bATCH processor and renamer based on PIL

2008-02-19 Thread Fred Pacquier
Steve Holden <[EMAIL PROTECTED]> said : > Perhaps you could put a link to the source on the Windows instalL page? > I don't mind being a second-class citizen, but it's annoying to have to > jump around like that. I'm interested too, and was also wondering if Phatch is as full-featured unders W

Re: ANN: Phatch = PHoto bATCH processor and renamer based on PIL

2008-02-20 Thread Fred Pacquier
Stani <[EMAIL PROTECTED]> said : > Even without python-pyexiv2 Phatch features read-only EXIF support > thanks to PIL. So you can name your files or write data stamps (date, > aperature, velocity, ...) based on EXIF information. Oh, that's good. I hadn't looked at PIL for a long while and wasn't

Re: [Python-Dev] [ANN] Python 2.3.7 and 2.4.5, release candidate 1

2008-03-02 Thread Fred Drake
guments to function ‘setpgrp’ make: *** [Modules/posixmodule.o] Error 1 I can only presume I'm doing something wrong at this point, since I don't consider myself a Mac OS X developer. -Fred -- Fred Drake -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] [ANN] Python 2.3.7 and 2.4.5, release candidate 1

2008-03-02 Thread Fred Drake
On Mar 2, 2008, at 7:43 PM, Fred Drake wrote: > 2.4.5 won't build for me from the svn checkout on Mac OS X 10.5.2: Neither does 2.3.7 now that I've tried that: gcc -u __dummy -u _PyMac_Error -framework System -framework CoreServices -framework Foundation

Re: [Python-Dev] [ANN] Python 2.3.7 and 2.4.5, release candidate 1

2008-03-02 Thread Fred Drake
ur 2.4.4 on Mac OS X 10.4.x. -Fred -- Fred Drake -- http://mail.python.org/mailman/listinfo/python-list

RE: Looking for very light weight template library (not framework)

2008-03-11 Thread Sells, Fred
As I recall Quixote allowed you to embed html in python. was actually pretty cool. Havenot tried it in a long time. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Behalf Of Malcolm Greene > Sent: Thursday, March 06, 2008 8:56 PM > To: python-list@python.org

RE: Can I run a python program from within emacs?

2008-03-25 Thread Sells, Fred
I use a .emacs file (attached) that some associates gave me nearly 20 years ago. Some of it is OBE now, but it still works for me on both windows and Linux. With this file I can cntrl-c cntrl-c (i.e. ^c twice to run the current buffer). Don't ask me to explain it, it just works. > -Orig

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

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: 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: 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: 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: Newbie In Python

2008-05-20 Thread Sells, Fred
get a python-aware editor. I vary between emacs and Eclipse, depending on my mood and the size of the project. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Behalf Of Bruno Desthuilliers > Sent: Tuesday, May 20, 2008 6:25 AM > To: python-list@python.org > S

RE: do you fail at FizzBuzz? simple prog test

2008-05-20 Thread Sells, Fred
or for i in range(1,100): print ('fizz','','')[i%3] + ('buzz','','','','')[i%5] or i > > > > "Write a program that prints the numbers from 1 to 100. But for > > multiples of three print "Fizz" instead of the number and for the > > multiples of five print "Buzz". For numbers which are multiples

adobe flex; return xml via turbogears/django

2008-05-29 Thread Sells, Fred
please excuse slightly off-topic; cannot access turbogears mailing list at the moment. There was an excellent video by James Ward that showed using turbogears to return json data to adoble's flex UI. It simply used @expose("JSON") def (): ... return dict(x=1, ...) Is there

RE: adobe flex; return xml via turbogears/django

2008-05-29 Thread Sells, Fred
Diez wrote: > Why don't you create KID-template like this: > > ${root} > > and in the controller say > > @expose("thexmltemplate") > def ... >return dict(root=myElementTreeRoot) > sounds good. Does that "py:strip" remove the and anything outside it. I'll be doing a flex style ajax call

RE: PyDev multiple source files?

2008-05-30 Thread Sells, Fred
the short answer is a file is a module; therefore to 'include' access to 'myclass' in file xyz.py from another file called 'abc.py' you would put this in abc.py import xyz #note no '.py' x = xyz.myclass() or from xyz import myclass #if you're lazy use ... import * x = myclass() see the basic

imaplib -- can't read body

2008-07-11 Thread Sells, Fred
t the body of a mail message, that would be greatly appreciated, Fred --- code starts below--- import imaplib, sys, os, re, rfc822 OK = "OK" FETCHTHIS = '(BODY[HEADER.FIELDS (SUBJECT FROM)])' ### got inemsg from the web, works up

need ldap windows binary and/or installation help

2008-07-15 Thread Sells, Fred
I'm running python 2.5 (or 2.4) in an XP environment. I downloaded and installed the .dll's from OpenLDAP-2.4.8+OpenSSL-0.9.8g-Win32.zip and copied the .dll's in c:/windows/system32 as instructed now I get this error. Is there anyway to avoid building the python_ldap binaries? Apart from bei

RE: need ldap windows binary and/or installation help

2008-07-15 Thread Sells, Fred
TED] > [mailto:[EMAIL PROTECTED] > Behalf Of Michael Ströder > Sent: Tuesday, July 15, 2008 2:46 PM > To: python-list@python.org > Subject: Re: need ldap windows binary and/or installation help > > > Tim Golden wrote: > > Sells, Fred wrote: > >> I'm ru

Case tagging and python

2008-07-31 Thread Fred Mangusta
Hi, I'm relatively new to programming in general, and totally new to python, and I've been told that this language is particularly good for what I need to do. Let me explain. I have a large corpus of English text, in the form of several files. First of all I would like to scan each file. Then, f

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

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

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

need help to upload file to webserver

2008-04-08 Thread Sells, Fred
I am automating the client side of a simple web interface. I need to upload a file to a webserver that requires authentication. I've got the authentication working with urllib2 (see below), but the only examples I've found to upload files use httplib without authentication. I'm competent with

Re: PHATCH: PHoto bATCH processor with EXIF and IPTC support for all platforms

2008-04-17 Thread Fred Pacquier
"SPE - Stani's Python Editor" <[EMAIL PROTECTED]> said : > What is new? Until Phatch could only save EXIF and IPTC tags on Linux. > Now this feature is available for all platforms hanks to the work of > Robin Mills who managed to compile pyexiv2 and all its dependencies > and get it to work on Mac

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-27 Thread Fred Pacquier
John Henry <[EMAIL PROTECTED]> said : > Welcome to the modernized world of Pythoncard!!! Hey, that's really neat ! I remember dabbling in Pythoncard in the early days, some years ago, it was a very interesting project. I gave it up eventually, partly because it seemed somewhat abandoned (I see

Re: So you think PythonCard is old? Here's new wine in an old bottle.

2008-04-28 Thread Fred Pacquier
John Henry <[EMAIL PROTECTED]> said : > The performance of Qooxdoo is quite amazing - for a Javascript based > web application. Don't know about cell-phones though. You can try > their showcase web site I cited earlier. Just for the record, Nokia Internet tablets (770, N800, N810) are the only

Need Python alternative to Request-Tracker help desk software

2008-04-29 Thread Sells, Fred
I've been tasked with either implementing Request-Tracker to upgrade our help desk issue tracking system or finding a Python equivalent (both in terms of functionality and wide spread use). Request-Tracker uses Apache and MySQL, which would also be appropriate to Python. I would prefer to go t

RE: Newbie to python --- why should i learn !

2008-05-09 Thread Sells, Fred
write working programs > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Behalf Of [EMAIL PROTECTED] > Sent: Thursday, May 08, 2008 6:25 AM > To: python-list@python.org > Subject: Newbie to python --- why should i learn ! > > > Hi, > > i was reading/learning s

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

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

need SOAPpy help

2006-03-22 Thread Sells, Fred
I've just been asked to do a soap client for some vendor software. I'm able to load the WSDL and discover the methods, but when I go to call a method it doesn't see it. I should be passing in a string that is named "testValue" I've been working from the soap demoes with soappy 0.12.0. I've foun

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

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

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

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

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

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

<    1   2   3   >