Re: Python based unacceptable language filter

2005-10-03 Thread Frithiof Andreas Jensen
"David Pratt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi. Is anyone aware of any python based unacceptable language filter > code to scan and detect bad language in text from uploads etc. > > Many thanks. > David Look up Spambayes - if you can filter on terms like "dear fri

Re: Python based unacceptable language filter

2005-10-04 Thread Frithiof Andreas Jensen
"David Pratt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi. Thank you for the links. I am looking for something that would > function in a similar way to Yahoo's filter for it's message boards. > Perhaps I should have used the term profanity instead of unacceptable > language.

Re: "no variable or argument declarations are necessary."

2005-10-04 Thread Frithiof Andreas Jensen
"bruno modulix" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > James A. Donald wrote: > > I am contemplating getting into Python, which is used by engineers I > > admire - google and Bram Cohen, but was horrified > > "horrified" ??? > > Ok, so I'll give you more reasons to be 'horri

Re: create user message for wxPython

2005-10-24 Thread Frithiof Andreas Jensen
"James Hu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, > There are 2 wxPython application, A and B and need to exchange msg. I do not think that wx even has a mechanism for sending events between applications.? You need some other tool, like a socket, a named pibe, some wind

Re: more than 100 capturing groups in a regex

2005-10-25 Thread Frithiof Andreas Jensen
"Joerg Schuster" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello, Python regular expressions must not have more than 100 capturing groups. Really ?? I have been waiting a long time now for Python to get rid of this limitation. Ahh - The "dark side" of Open Source: If nobody

Re: more than 100 capturing groups in a regex

2005-10-25 Thread Frithiof Andreas Jensen
"Joerg Schuster" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Some people, when confronted with a problem, think "I know, > I'll use regular expressions." Now they have two problems. > --Jamie Zawinski Thanks for the citation. If my goal had been to redesign my program, I would

Re: need some advice on x y plot

2005-10-25 Thread Frithiof Andreas Jensen
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] If the x-axis is time, gnuplot will plot it correctly but it will connect *all* the datapoints and scale the x-axis so that everything will fit on the graph. Is it the autoscaling or conneting that what you think is wrong? Getting a fix

Re: python server

2005-11-09 Thread Frithiof Andreas Jensen
"linuxpld" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello > > I`m writing a program (server in future) in python. > I would like to write it in such a way that I will be able to write gui > in any language and connect to my python program and use functionality > included with

Re: python server

2005-11-09 Thread Frithiof Andreas Jensen
"Magnus Lycka" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thee are many solutions. An XML-RPC server springs to mind as a > solution. There are several Python XML-RPC servers . Good Idea. Seems that those particular batteries are included with Python 2.2 and up: OP: See h

Re: 3-dimensional plot in Python?

2005-11-15 Thread Frithiof Andreas Jensen
"questions?" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I want to make a 3d plot. x is a vector(discrete), y is also a > vector(discrete), for each pairwise x,y I have a value z(x,y)(it is not > a function, just discrete values for each pair of x,y) > > I want to show them on a

Re: 3-dimensional plot in Python?

2005-11-15 Thread Frithiof Andreas Jensen
"Robert Kern" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Those interfaces are long since deprecated. Please use matplotlib instead. > > http://matplotlib.sf.net "Long since" being When? I recently installed SciPy and it did not say anything about "deprecated"! -- http

Re: how to bypass firewall

2005-11-16 Thread Frithiof Andreas Jensen
"Parth" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello everyone, > I need some help regrading byassing firewalls.My college has internet > aces but it prevents us from dowloading music(*.mp3,*.mid,etc.)from the > net. Then Don't - The firewall, being lame as those things are,

Re: Data Transmission Crash Course Required

2005-11-16 Thread Frithiof Andreas Jensen
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > exchange. I am looking for a quick-n-dirty approach, upon which I can > certainly expand by further reading Python documentation. Also, if > anyone can recommend an online resource for learning more about TCP/IP > and the like (a prog

Re: Accessing a database from a multithreaded application

2005-11-23 Thread Frithiof Andreas Jensen
"Alan Kemp" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > Can someone suggest a better (ie, valid) strategy for this? Pass the connection to the thread as a parameter and use it to create a cursor local to the thread. You may have to create a connection per thread also - in

Re: Using Cron to run a python program

2005-11-24 Thread Frithiof Andreas Jensen
<[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > permissions just to be safe. What would cause the logging to work at a > command prompt but fail in cron? Because the environment is different; "man cron" might tell *how* it is different (I cannot because it varies with platf

Re: python speed

2005-11-30 Thread Frithiof Andreas Jensen
"Krystian" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi > are there any future perspectives for Python to be as fast as java? Sure, if/when Python becomes as water-logged with obtruse OO-layers as Java is now. Python is faster than Java. Because Python per design generally i

Re: SNMPV3

2005-12-07 Thread Frithiof Andreas Jensen
"Jacek Pop³awski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Do you have any experience with Python in SNMPv3 area? SNMP suck per design and SNMPv3 suck even more by adding complexity to that design IMO. SNMPv2 sort of works well within the limits of the design of SNMP, so tha

Re: Using printf in a C Extension

2005-12-09 Thread Frithiof Andreas Jensen
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > > I am extending python with C and trying to debug with printf. The code > below succssfully returns the string "hello" when compiled and called, > but the "can print from in here phrase" does not reach python stdout. It shou

ready-made file format for "file pibes"?

2005-09-20 Thread Frithiof Andreas Jensen
I am writing an application that does a lot of filtering of much data through a sequence of filters. After some thinking and wasting a lot of time with an object oriented design with GUI and all, I decided that the Real Way to do this is to create the filters as independent programs that take inpu

Re: Do thread die?

2005-09-20 Thread Frithiof Andreas Jensen
"Maurice LING" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I do have another dumb question which is OT here. Say aFunc method > instantiates a SOAP server that serves forever, will it prevent bFunc > from running as a separate thread? If the SOAP server thread never sleeps or b

Re: Help! Python either hangs or core dumps when calling C malloc

2005-09-20 Thread Frithiof Andreas Jensen
"Lil" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I already double checked my C code. It runs perfectly fine in C without > any errors. Errr - It runs perfectly fine without *announcing* any errors (while gleefully urinating all over its memory space). The programming model for

Re: Help! Python either hangs or core dumps when calling C malloc

2005-09-20 Thread Frithiof Andreas Jensen
"Christian Stapfer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Check your program for _uninitialized_variables_. good point. > (Just a guess: but what other side-effect than > changing the values of uninitialized variables > - and the program's timing, of course - might > the

Re: python open source charting solutions ?

2005-03-10 Thread Frithiof Andreas Jensen
"ionel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > i need some pointers. > so far i've tryed matplotlib ... What For, exactly? For time series, RRD-Tools (Round-Robin Database) works very well. -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for a very specific type of embedded GUI kit

2005-04-13 Thread Frithiof Andreas Jensen
"Sizer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > So the question is: what non-X gui toolkit can we use that has Python > bindings and will let us use a custom display driver at the lowest level? There is a discussion of Embedded X's here: http://www.linuxdevices.com/files/e

Re: debian and python--any potential pitfalls?

2005-12-20 Thread Frithiof Andreas Jensen
"Brian van den Broek" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The only area of computing in which I am interested and with which > he's unfamiliar is Python. He suggested I try to find out if there are > any potential issues with Debian stable and Python. Only that Python i

Re: Application architecture (long post - sorry)

2006-01-02 Thread Frithiof Andreas Jensen
<[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > It would give me great satisfaction though to roll my own solution to > this Ahh - a bright young employee ready to meet the realities of corporate life, much like a bike rider meets the concrete he drives on ;-) > and then at

Re: Cross Compile Mips / Linux

2006-01-11 Thread Frithiof Andreas Jensen
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Everyone, > Should I try using a Linux based machine for the build, would that > help?? YES - The problem is that the Linux build tools generally assume that they are sitting in the target environment and therefore tries to use f

Re: Remote Function Call

2006-01-13 Thread Frithiof Andreas Jensen
"Mike" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I have two machines. A python program on machine 1 needs to make a > python call to a method in machine 2. What is the most efficient / fast Some Custom Mechanism: Pyro or SPREAD f.ex. > / programmer friendly way to do

Re: ConfigParser: writes a list but reads a string?

2006-01-16 Thread Frithiof Andreas Jensen
"Terry Carroll" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It looks like ConfigParser will accept a list to be writing to the > *.ini file; but when reading it back in, it treats it as a string. ConfigParser is nasty because it does not really support type conversions but still

Re: Is there a maximum length of a regular expression in python?

2006-01-19 Thread Frithiof Andreas Jensen
<[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > I have a regular expression that is approximately 100k bytes. (It is > basically a list of all known norwegian postal numbers and the > corresponding place with | in between. I know this is not the intended > use for regular expre

Re: Sending Dictionary via Network

2006-10-25 Thread Frithiof Andreas Jensen
> "mumebuhi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The simplejson module is really cool and simple to use. This is great! JUST what I need for some configuration files!! Thanks for the link (die, configparse, dieee). -- http://mail.python.org/mailman/listinfo/python-lis

Re: Sending Dictionary via Network

2006-10-26 Thread Frithiof Andreas Jensen
"Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Frithiof Andreas Jensen wrote: > >> "mumebuhi" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > >> The simplejson module is really cool and

Re: Ricerca Programmatore Python

2006-05-31 Thread Frithiof Andreas Jensen
Have you considered Graphwiz with Python bindings? http://www.graphviz.org/ http://yapgvb.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: creating a new database with mysqldb

2006-06-01 Thread Frithiof Andreas Jensen
"John Salerno" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Since the connect method of mysqldb requires a database name, it seems > like you can't use it without having a database already created. The web hotel I use create *one* database together with the account. I.O.W: I ca

OT: wxPython GUI designer

2006-06-21 Thread Frithiof Andreas Jensen
"Don Taylor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I find it easy to use sizers in > wxGlade. Just gave is a spin yesterday: How does on fix the size of layout; I can only manage to get sizers to distribute space evently amongst the fields, which is *not* what I want. -

Re: wxPython and Linux dependencies

2006-07-07 Thread Frithiof Andreas Jensen
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Error message "cannot find wx" > > infact I have wxpython in /usr/lib/ > > I installed it using the rpms given on the wxPython website. Do I need > to set some path or something. I vaguely remember that wxWindows changed name to wxWidg

Re: Python Expert

2006-08-24 Thread Frithiof Andreas Jensen
"Perseo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi guys, > > we are looking for a python developer for a European project. This > project is multilangual and free it is called EuroCv and it need a > module for exporting data in PDF. A brute-force approach could be to sidest

Re: Verify an e-mail-adress - syntax and dns

2006-09-25 Thread Frithiof Andreas Jensen
"Ingo Linkweiler" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Bjoern Schliessmann schrieb: > > Ingo Linkweiler wrote: > > > >> b) verify an existing mailserver or DNS/MX records > > > > "Or"? That's two different things. > > > > If you don't know already: Even if you test all thi

Re: What is the best way to "get" a web page?

2006-09-25 Thread Frithiof Andreas Jensen
something like: os.popen("wget -r3 http://juicypornpics.com";) wget understands the peculiarities of web pages so you do have to. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a maximum length of a regular expression in python?

2006-01-24 Thread Frithiof Andreas Jensen
"Bryan Olson" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > Roy Smith wrote: > Does no one care about an internal error in the regular expression > engine? Yes, but - given the example - In about the same way that I care about an internal error in my car engine after dropp

Re: critique my code, please

2006-02-08 Thread Frithiof Andreas Jensen
"Brian Blais" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I am including at the end of this document (is it better as an attachment?) some code > for a small gui dialog. Since I am quite new to this, if anyone has any suggestions > for improvements to the code, bad co

Re: Another try at Python's selfishness

2006-02-08 Thread Frithiof Andreas Jensen
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Having read previous discussions on python-dev I think I'm not the only > Python programmer who doesn't particularly like python's "self" > parameter: Ok, there might be five programmers and one imam. The imam does not like anything mo

OT: Another try at Python's selfishness

2006-02-09 Thread Frithiof Andreas Jensen
"DH" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Frithiof Andreas Jensen wrote: > > <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > >> Having read previous discussions on python-dev I think I'm not the only &

Re: setting up scipy in windows

2005-05-18 Thread Frithiof Andreas Jensen
"hawkesed" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > Scipy looks like just the thing I want, if anyone has got it running on > a Windows box I would like to hear how you did it. With STANDARD Python 2.3 it installs from the Python 2.3 win 32 installers and runs. The

Re: SQL Query via python

2005-05-24 Thread Frithiof Andreas Jensen
"Jeff Elkins" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Just as an fyi: > > In one weekend I have gone from knowing zip about SQL/Python to implementing > code on my personal server that emails info to family about birthdays and > such. Actually - http://www.pythonweb.org/ wil

Re: Using python for a CAD program

2006-05-17 Thread Frithiof Andreas Jensen
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Cool. thanks for the links. I've already looked around quite a bit, > and am very hesitant to just write more shit on top of other shit. All software suck. If you think that yours will not then: a) you are a narcissist b) you are the

Re: Adding more warnings

2008-02-22 Thread Frithiof Andreas Jensen
"Thomas Dybdahl Ahle" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > Is it possible to make python warn me about those at "compile time"? No. The compiler only "knows" about it once the broken code is run. I use the standard module "unittest" to run through every single bit

Re: Linux/Python Issues

2008-02-22 Thread Frithiof Andreas Jensen
"Bruno Desthuilliers" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > [EMAIL PROTECTED] a écrit : > So, here's the basic scheme: > > - download the source tarball, preferably in /usr/local/src > - unpack it > - cd into the unpacked source directory > - *carefully* read the REA

Re: Learning different languages

2006-03-09 Thread Frithiof Andreas Jensen
"Terry Hancock" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tuesday 07 March 2006 04:44 pm, Rich wrote: > I've been trying to get my kids to learn a little Python for some > time, but it hasn't been too easy for them yet. Then, out of the > blue, they want to learn Lua. > >

Re: comparing huge files

2006-03-17 Thread Frithiof Andreas Jensen
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > thanks for the reply, > I have used another method to solve my problem. ie > 1) get the total count of the first file > 2) write this total count to basecnt eg basecnt > 3) get another file, get the total count of this file. eg filecnt