Parse and clean odt docs: with lxml ? hints to start ?

2010-06-04 Thread kaer
Basically, I have to upgrade a website with a lot of new content. I received those docs in the openoffice format. If I open and save one of those documents in the html format, I can cut and paste the result in the html page, it's not that bad as a start but I need to clean that html (remove tags,

Re: Python newbie

2008-09-19 Thread kaer
On 19 sep, 10:13, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Fri, 19 Sep 2008 09:13:48 +0200, Mladen Gogala wrote: > > I am a Python newbie who decided to see what that Python fuss is all > > about. Quite frankly, I am a bit perplexed., here is what perplexes me: > > perl -e '@a=(1,2,3); map

Re: I want to use a C++ library from Python

2008-09-10 Thread kaer
On 10 sep, 10:00, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Anders Eriksson schrieb: > > > Hello, > > > I have a C++ library compiled as Windows DLL's. It consists of 32 .h and 1 > > .lib and 1 .dll files. I don't have the source code. > > > How can I create a Python module from these files?

Re: wxpython ms-dos black window popping up in background

2008-09-09 Thread kaer
On 9 sep, 23:35, icarus <[EMAIL PROTECTED]> wrote: > Oh ok. Thanks. In windows xp I just renamed the file extension to .pyw > That did it. > > one more question... > > how do I create a pythonw standalone executable that works on w32, > linux, mac, etc..? > > My intent is to have the process transp

Re: unexpected class behaviour

2008-09-07 Thread kaer
On 7 sep, 12:40, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Jan Schäfer wrote: > > can anyone explain the behaviour of the following code sniplet: > > well, it *is* explained in the tutorial, the language reference, and the > FAQ, so yes, it can be explained ;-) > > for more information, see this p

Re: running python as a dameon

2008-09-06 Thread kaer
On 6 sep, 22:16, kaer <[EMAIL PROTECTED]> wrote: > On 6 sep, 15:44, Michael Palmer <[EMAIL PROTECTED]> wrote: > > > > > On Sep 5, 9:56 pm, Sean Davis <[EMAIL PROTECTED]> wrote: > > > > > What I want > > > > to do is to provide the pyt

Re: running python as a dameon

2008-09-06 Thread kaer
On 6 sep, 15:44, Michael Palmer <[EMAIL PROTECTED]> wrote: > On Sep 5, 9:56 pm, Sean Davis <[EMAIL PROTECTED]> wrote: > > > > > > What I want > > > to do is to provide the python NLP program as a service to any other > > > PHP/Java/Ruby process request. So the mapping is > > > > http -> apache -> P

Re: mimms problem on Hardy

2008-09-05 Thread kaer
On 5 sep, 22:15, kaer <[EMAIL PROTECTED]> wrote: > Hello, > > I installed (manually) the last version of mimms -which is a python > program- on an Ubuntu (8.04-server) box. > I get that: > > [EMAIL PROTECTED]:~/mimms-3.2$ mimms > Traceback (most recent call last): &

mimms problem on Hardy

2008-09-05 Thread kaer
Hello, I installed (manually) the last version of mimms -which is a python program- on an Ubuntu (8.04-server) box. I get that: [EMAIL PROTECTED]:~/mimms-3.2$ mimms Traceback (most recent call last): File "/usr/bin/mimms", line 21, in from libmimms.core import run File "/usr/lib/python2.