Re: timezones

2019-02-08 Thread Jaap van Wingerde
int(est_dt.strftime(fmt) + ' / ' + edt_dt.strftime(fmt)) > 2002-10-27 01:30:00 EDT-0400 / 2002-10-27 01:30:00 EST-0500 > > > Browse through their examples and see if you can find something > similar that works for you. > > > -Original Message- > From

timezones

2019-02-07 Thread Jaap van Wingerde
ndroid JPG-images as the 'Exif.GPSInfo.GPSTimeStamp' and 'Exif.GPSInfo.GPSDateStamp' are missing. Why I get this unrespected results? Kind regards, Jaap. -- Jaap van Wingerde e-mail: 1234567...@vanwingerde.nl -- https://mail.python.org/mailman/listinfo/python-list

Re: modification time in Python - Django: datetime != datetime :-(

2014-03-04 Thread Jaap van Wingerde
('%Y-%m-%dT%H:%M:%SZ',gmtime(os.path.getmtime(os.path.dirname(os.path.realpath(__file__ ))+'/templates/art_index.html'))) ... -- Jaap van Wingerde e-mail: 1234567...@vanwingerde.nl -- https://mail.python.org/mailman/listinfo/python-list

Re: modification time in Python - Django: datetime != datetime :-(

2014-03-03 Thread Jaap van Wingerde
Op schreef Chris Angelico in bericht : > See if ls is actually giving you ctime rather than mtime - compare the > results if you ask for os.path.getctime. jaap@liakoster:~$ python Python 2.7.3 (default, Jan 2 2013, 13:56:14) [GCC 4.7.2] on linux2 Type "help", "cop

modification time in Python - Django: datetime != datetime :-(

2014-03-03 Thread Jaap van Wingerde
Django views.py: ... pwd = os.path.dirname(os.path.realpath(__file__ )) home_lastmod = strftime('%Y-%m-%dT%H:%m:%SZ',gmtime(os.path.getmtime(pwd+'/templates/art_index.html'))) ... The template gives a wrong modification time: "2014-03-02T19:03:55Z". ... jaap@li

Re: Python magazine

2010-03-29 Thread Jaap van Wingerde
On 29 mrt, 13:13, Pasi Oja-Nisula wrote: > Python magazine web site says this: > "So, sit back and relax - enjoy your holidays, and come see us again on > January 26th, when the new  PyMag will launch." -- http://mail.python.org/mailm

Re: ordinal not in range

2009-03-02 Thread Jaap van Wingerde
Stefan Behnel wrote: >> Jaap van Wingerde wrote: >> outfile = codecs.open(output, "w", "utf_8") > I guess you mixed up the case here. > Does this help? > outfile = codecs.open(output, "wb", encoding="UTF-8") According to the Python &q

Re: ordinal not in range

2009-02-21 Thread Jaap van Wingerde
ooks like you'd be happier with Python 3.0, BTW... Python 3 is not in Debian Lenny. With your help I made my first Python-script. This script saves me from hours dumb work. Thanks a lot!! -- Jaap van Wingerde e-mail: 1234567...@vanwingerde.net -- http://mail.python.org/mailman/listinfo/python-list

ordinal not in range

2009-02-21 Thread Jaap van Wingerde
quot;, "utf_8") Omschrijving = u'priv? assuranti?n' # string from postbank.csv Omschrijving = Omschrijving.replace("priv?", 'privé') Omschrijving = Omschrijving.replace("Assuranti?n", 'Assurantiën') outfile.write (Omschrijving) "Traceback (

TypeError: descriptor 'replace' requires a 'str' object but received a 'unicode'

2009-02-21 Thread Jaap van Wingerde
When I run this script I get the following message. "Traceback (most recent call last): File "/home/jaap/Desktop/unicode.py", line 3, in Omschrijving = str.replace(Omschrijving, "priv?", 'priv�') TypeError: descriptor 'replace' requires a 'str

Re: PHP like documentation?

2009-02-15 Thread Jaap van Wingerde
Pavan Mishra wrote: I was wondering if I can use python documentation source (reStructuredText) and restructure it along the lines of PHP documentation. Allowing users to add comments, improving search etc. I was thinking if it would be useful. Very good idea! -- Jaap van Wingerde e-mail

Re: Using Python for programming algorithms

2008-05-19 Thread Jaap Spies
k). Here you find good company in the Sage developers community! Jaap And I also realize, from your posted answers, that the point is doing a good programming work, and that I will have to look very carefully at all those packages and resources you have mentioned, to do a good work at Python. Any oth

Re: Using Python for programming algorithms

2008-05-18 Thread Jaap Spies
//www.sagemath.org/ This may offer all you need, based on Python integrating a lot of other programs! Jaap -- http://mail.python.org/mailman/listinfo/python-list

Re: wrapping C functions in python

2008-04-10 Thread Jaap Spies
on or C array -> return value in >>> Python. >>> I manage to build and run the C function, print to screen, pass >>> string as >>> argument, return an int, etc. The thing which is missing is the magic >>> array/list... >>> >>> >>> Thanks in advance! I fart in your general direction. >>> Paul. Maybe you should have a look at Cython: http://www.cython.org/ and Sage: http://www.sagemath.org/ Jaap -- http://mail.python.org/mailman/listinfo/python-list

Re: Mathematical Python Library

2008-04-07 Thread Jaap Spies
ani- > pulation of "mathematical stuff" in Python, I STRONGLY recommend that > beginners in the area look into SAGE http://www.sagemath.org/ >, > already mentioned above by Dennis. SAGE is life-altering software, for > those with a life focused on mathematics or related science or > engineering. +1 Jaap -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] Looking for a Python Program/Tool That Will Add Line Numbers to a txt File

2008-02-14 Thread Jaap Spies
fice - but you must first find a working CP/M > system to use it: > > C>PIP [N] NEW.PY=OLD.PY > > (Sorry - just a a nostalgic flash!) > Wow! You remembered this. Good old PIP! Jaap -- http://mail.python.org/mailman/listinfo/python-list

Re: Combinatorics

2008-02-12 Thread Jaap Spies
is a native combinatorics module in Sage. See: http://www.sagemath.org/doc/html/ref/node181.html Sage: http://www.sagemath.org/ Jaap > > FWIW > > Robert Dodier -- http://mail.python.org/mailman/listinfo/python-list

Re: python for a matlab user

2008-02-02 Thread Jaap Spies
> thanks for your comments, > d. > Try Sage! Sage has it all! Sage is written (mainly) in Python. Sage/Python is fun, easy to learn! See: http://www.sagemath.org/ Jaap -- http://mail.python.org/mailman/listinfo/python-list

Re: Will Python on day replace MATLAB?????????????????????????????????????????????????????

2008-02-01 Thread Jaap Spies
results (which was my great > frustation with MatLab). > > If Scipy WILL replace MatLab is more a question of marketing than of > quality. Have a look at Sage: http://www.sagemath.org/ Jaap -- http://mail.python.org/mailman/listinfo/python-list

Re: convert pdf to png

2007-12-24 Thread Jaap Spies
o it never becomes a file. using convert means I have to > first save it as a file, convert from file to file, read the file, > delete the 2 files. so 6 file operations where before there were none. > That may be more of a load than the ghostscript part. > > Carl K Are you clever and am I stupid? I did not read this in your original post! Jaap -- http://mail.python.org/mailman/listinfo/python-list

Re: convert pdf to png

2007-12-24 Thread Jaap Spies
magemagick will do: convert file.pdf page-%03d.png Jaap -- http://mail.python.org/mailman/listinfo/python-list

Re: Research-oriented Python mailing list?

2007-11-22 Thread Jaap Spies
Michael Tobis wrote: > Perhaps what you are looking for is here: > > http://www.scipy.org/Mailing_Lists > > mt Or here: http://www.sagemath.org/ http://www.sagemath.org/lists.html Jaap -- http://mail.python.org/mailman/listinfo/python-list

Re: Python on Computation, Math and Statistics

2007-08-19 Thread Jaap Spies
W. Watson wrote: > I would hope Python is doing a lot of standard computations beyond > arithmetic. Trig functions and more. Comments? Try SAGE: http://www.sagemath.org/ Jaap Permanents are here forever. -- http://mail.python.org/mailman/listinfo/python-list

Re: Fortran vs Python - Newbie Question

2007-03-27 Thread Jaap Spies
ython: Pyrex is almost Python with the speed of compiled C. http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/ Pyrex is adapted in SAGE (Software for Algebra and Geometry Experimentation) as Sagex: http://modular.math.washington.edu/sage/ Jaap -- http://mail.python.org/mailman/listinfo/python-list

Re: from maple to python + numpy/scipy

2007-03-19 Thread Jaap Spies
GE (Software for Algebra and Geometry Experimentation) http://www.sagemath.org/ Jaap -- http://mail.python.org/mailman/listinfo/python-list

Re: Elliptic Curve Library

2006-12-23 Thread Jaap Spies
Mike Tammerman wrote: > I need an elliptic curve library that can be used by python. I googled > but couldn't find a one. I'll appreciate, if you could show me. > You could look at http://sage.scipy.org/sage/ http://sage.scipy.org/sage/features.html Jaap -- http://mail

Re: tips requested for a log-processing script

2006-11-06 Thread Jaap
Hendrik van Rooyen schreef: > "Jaap" <[EMAIL PROTECTED]> wrote: > > >> Python ers, Thanks! all your replies have been both to the point and helpfull for me. You have proven both Python and it's community are open and welcoming to new users. Jaap -- htt

tips requested for a log-processing script

2006-11-05 Thread Jaap
want to mail the outcome of my process, but this seems straitforward from the documentation I have found, although I must connect to an external SMTP-server. Any tips, views, advice is highly appreciated! Jaap PS: when I load the logfile in a spreadsheet I can create a pivot table which do

socket timeout error?

2006-04-17 Thread Jaap Spies
end_output self.send(msg) File "/usr/lib/python2.4/httplib.py", line 642, in send self.connect() File "/usr/lib/python2.4/httplib.py", line 626, in connect raise socket.error, msg IOError: [Errno socket error] timed out >>> socket.setdefaulttimeout(0.05) >>> urllib.urlopen('http://www.python.org') >>>> Seems a timeout of 0.01 is to small and a timeout >= 0.05 is working. What is the real problem here? Jaap -- http://mail.python.org/mailman/listinfo/python-list

Re: SWIGing problem

2006-03-23 Thread Jaap Spies
, you're still probably going to have > other problems. distutils knows how to build Python extensions modules. The > pynovas Makefile doesn't. > I did not use distutils, because I do not know how :-)! Maybe in the next release of PyNOVAS. Jaap -- http://mail.python.org/mailman/listinfo/python-list

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-02 Thread Jaap Spies
r included such unsubstantiated "backstabbing" > accusations could be productive in this way. > > > And, about the job-posting you liked better...: > > >>Run by an engineer, this work environment is a meritocracy. You will be > > > To me, "meritocracy" and "elitism" are close to being synonyms, in most > contexts. "Meritocracy" is defined somewhere on the net as: > """ > A system of government whereby a particular standard of ability is used > as the basis by which political leadership is determined or accrues to > an existing elite. > """ > Note the connection with "elite", which in turn gives us "elitism". I > do like "meritocracy" because it specifically mentions *ability*, but of > course ability (including technical skill, which in turn is enhanced by > appropriate experience, AND 'softer' character/personality issues) is > what a successful firm bases its "elite" on (or tries to; if it fails, > and hires people bereft of sufficient ability, it won't prosper long). > > > Alex That all been said. My recommandation: hire that man! Jaap -- http://mail.python.org/mailman/listinfo/python-list