Re: To whoever hacked into my Database

2013-11-08 Thread Maarten
t least something here. Judging from the questions and the code quality you post here, it is only a matter of time before accidents happen. Maarten -- https://mail.python.org/mailman/listinfo/python-list

Re: Handling 3 operands in an expression without raising an exception

2013-09-26 Thread Maarten
error messages. The solution by Nobody is fairly foolproof, and the logic is clear. What's not to like? Maarten -- https://mail.python.org/mailman/listinfo/python-list

Re: Is it that easy to install Python ?

2013-07-25 Thread Maarten
andard scripts starting with "#!/usr/bin/env python" will find your python. Next your users will probably start requesting additional packages (regex, lxml, numpy, scipy, matplotlib, ... depending on what they actually do). Maarten -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to understand the memory occupation of big lists

2013-05-03 Thread Maarten
del i 3616.691 MB 0.000 MB gc.collect() # nothing change if I comment this If I make the two functions identical, the behave the same. Maarten -- http://mail.python.org/mailman/listinfo/python-list

Re: Using SciPy in application

2013-04-24 Thread Maarten
t; not rely on NumPy and/or SciPy and is written pure Python (no C code)? > > > If Google can't find it, it probably doesn't exist. Very few people would do > this without numpy. A trivial 'pure python spline' google search yields this: http://urchin.earth.li/~twic/splin

Re: How can i create a random array of floats from 0 to 5 in python

2013-03-12 Thread Maarten
y import numpy as np np.random.uniform(0, 5, 100) # note that the values are from the interval [0, 5) Maarten -- http://mail.python.org/mailman/listinfo/python-list

Re: advice, python for binary to xml

2013-01-31 Thread Maarten
as I know the GPSBabel sources are the only public description of the gdb file format. It is not trivial, but restricting yourself to the parts needed for the application may provide some shortcuts. Maarten - pay more, get less: way to go. -- http://mail.python.org/mailman/listinfo/python-list

Re: advice, python for binary to xml

2013-01-31 Thread Maarten
#x27;m guessing the > level of effort will be huge? I assume that you've looked into GPSBabel? http://www.gpsbabel.org/ Maarten -- http://mail.python.org/mailman/listinfo/python-list

Re: [Offtopic] Line fitting [was Re: Numpy outlier removal]

2013-01-08 Thread Maarten
gt; which is the proper thing to do (assuming both variables are measured in > the same units). In that case use an appropriate algorithm to perform the fit. ODR comes to mind. http://docs.scipy.org/doc/scipy/reference/odr.html Maarten -- http://mail.python.org/mailman/listinfo/python-list

Re: the meaning of rユ.......ï¾

2012-07-24 Thread Maarten
d month, and, um, > what? > > Or do you Australians have the third day of the fourteenth month? You just missed it: 22/7 Maarten -- http://mail.python.org/mailman/listinfo/python-list

Re: Newby Python Programming Question

2012-05-14 Thread Maarten
gt; But, if I "run" the pwd.py script by selecting the "Run" option from the IDE > menu, the directory is printed *twice* in the output window. Why is that? I'd say this is a bug or feature of the IDE. If I use ipython I get: In [1]: %run mypwd /nobackup/users/maarte

Re: newb __init__ inheritance

2012-03-08 Thread Maarten
uot;In B" on two lines) c = C() (prints "In A", "In C" on two lines) Hope this helps. Maarten -- http://mail.python.org/mailman/listinfo/python-list

Re: Design principles: no bool arguments

2011-08-25 Thread Maarten
arguments, not keyword- parameters. That alone makes a world of difference. Maarten -- http://mail.python.org/mailman/listinfo/python-list

Re: Why the inconsistent of those two base64 methods?

2010-05-12 Thread Maarten
base64.decodestring(base64.b64encode('aaa')) 'aaa' >>> 'aaa'.encode('base64').decode('base64') 'aaa' (so far so good, and as expected) >>> base64.decodestring('aaa'.encode('base64')) 'aaa' >>> base64.b64encode('aaa').decode('base64') 'aaa' (As far as I can see, both methods are completely consistent) Maarten -- http://mail.python.org/mailman/listinfo/python-list

Re: Python good for data mining?

2007-11-05 Thread Maarten
file and field within that file. Keep in mind though that I mostly work with externally created HDF-5 files, not with files created in pytables. PyTables Pro has an indexing feature which may be helpful for datamining (if you write the hdf-5 files from python). Maarten -- http://mail.python.org/mailman/listinfo/python-list

Re: DIAGNOSIS: Racism moves back to Denmark from South Africa

2007-10-19 Thread Maarten Bergvelt
are >> spreading their racist ideology -- The Apartheid "Christianity" : > > > The Dutch went back to Denmark? Sure, Copenhagen is the capital of the Netherlands, any American school child knows that. -- Maarten Bergvelt -- http://mail.python.org/mailman/listinfo/python-list

Re: About alternatives to Matlab

2006-11-17 Thread Maarten van Reeuwijk
all MY batteries included :-). BTW, I have the impression that MATLAB and SciPy have about the same performance. Cheers, Maarten -- === Maarten van Reeuwijkdept. of Multiscale Physics Phd s

Re: creating and naming objects

2006-06-07 Thread Maarten van Veen
t.doSomething() Or change just one student: listWithStudent[23].doSomething() # this is the 24th student though!!! Hope this is what you're looking for. Maarten -- http://mail.python.org/mailman/listinfo/python-list

Re: cgi and popen

2006-06-07 Thread Maarten van Veen
In article <[EMAIL PROTECTED]>, Thomas Guettler <[EMAIL PROTECTED]> wrote: > Am Wed, 07 Jun 2006 14:54:41 +0200 schrieb Maarten van Veen: > > > A long story made short, I've build a python/cgi website consisting of > > two pages. Page1 has a html form

cgi and popen

2006-06-07 Thread Maarten van Veen
when embedded in page1.cgi, page 1 waits till the search is finished, resulting in a browser timeout when big queries are done. It was this problem in the first place why I split up the page in two and added Popen. Does anybody know how to get the page not waiting on Popen to finish? thnx Ma

Re: Filename case-insensitivity on OS X

2006-01-04 Thread Maarten
non utilities of my camera refused to work for me, as did Audacity. I didn't encounter any other problems, but that was enough for me. As to UFS: it is apparently way slower than HFS+, and only recommended in special cases, most of which are now advised to use Case-sensitive HFS+, I believ

Re: how to improve simple python shell script (to compile list of files)

2005-10-15 Thread Maarten van Reeuwijk
(file); py_compile.compile(file); -- === Maarten van Reeuwijkdept. of Multiscale Physics Phd student Faculty of Applied Sciences maarten.ws.tn.tudelft.nl Delft University of Technology -- http://mail.python.org/mailman/listinfo/python-list

Re: Can't compile with --enable-shared on MacOSX

2005-04-18 Thread Maarten Sneep
e tcl/tk is installed (there is a nice binary installer in the mac os x downloads section at apple.com Maarten -- http://mail.python.org/mailman/listinfo/python-list

distutils, PyBison and Mac OS X

2005-04-18 Thread Maarten Sneep
setup.py build_ext --inplace' had been called from the command line, since that seems to pick up the correct options. - Where do I start: distutils is pretty large, and it seems to have the right options, but they just aren't used in PyBison. Thanks in advance for any insights that get me going, Maarten Links: [1] http://www.freenet.org.nz/python/pybison/ [2] http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ -- http://mail.python.org/mailman/listinfo/python-list

Re: trouble using \ to escape %

2005-04-15 Thread Maarten Sneep
In article <[EMAIL PROTECTED]>, "Lucas Machado" <[EMAIL PROTECTED]> wrote: > I'm writing a python script that modifies the smb.conf file, and i need > to write the characters '%U' in the file. print "%s = %%U" % "a" yields a =

Re: regarding ignore case sensitive of a string using regular expressions

2005-03-22 Thread Maarten Sneep
lt. > So Any body know regarding this Kindly mail me > with example. RTFM: http://www.python.org/doc/2.3.4/lib/re-syntax.html (What you want is described under the (?iLmsux) heading) or http://www.python.org/doc/2.3.4/lib/node106.html Maarten -- http://mail.python.org/mailman/listinfo/python-list

Re: modifiable config files in compiled code?

2005-03-11 Thread Maarten Sneep
worse than adopt the Apple .plist format. There is already a pure python module for these: http://sarwat.net/opensource/ The advantage of the plist module is that the type of the variables is stored as well, and that you can store complex variables (lists, dictionaries) without mangling. Maar