Re: HTTP POST File without cURL

2009-09-09 Thread Jarkko Torppa
d way to do this? Maybe, but reading from curl manpage it seems that that is doing POST /selector ... Content-type: application/zip data The backend is broken, they should have used PUT for that. Search for "python http put" and adapt, or lookt at urllib(2)/httplib and roll your own. -- Jarkko Torppa -- http://mail.python.org/mailman/listinfo/python-list

Re: Seeding the rand() Generator

2009-08-04 Thread Jarkko Torppa
ied to you. Did you actually try that ? > I'm trying to figure out what the Python equivalent of that > is. Python equivalent of that is random.seed(x), if PHP docs are to be believed. > Now do you see? What you acutally want is "select *,rand(3) as rand from tabl

Re: *nix tail -f multiple log files with Thread

2009-02-13 Thread Jarkko Torppa
nd writing. You have to either sleep or use kevent/completion/... -- Jarkko Torppa, Elisa -- http://mail.python.org/mailman/listinfo/python-list

Re: multiprocessing vs thread performance

2008-12-29 Thread Jarkko Torppa
_threaded (2 iters) 0.04 seconds threaded (2 threads)0.000277 seconds processes (2 procs) 0.004046 seconds non_threaded (4 iters) 0.05 seconds threaded (4 threads)0.000598 seconds processes (4 procs) 0.007816 seconds non_threaded (8 iters) 0.08 seconds thre

Re: 65K length limitation in MySQLdb?

2008-06-09 Thread Jarkko Torppa
out this? Thanks It's limitation on your sql engine, use longtext. http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html -- Jarkko Torppa -- http://mail.python.org/mailman/listinfo/python-list

Re: design choice: multi-threaded / asynchronous wxpython client?

2008-04-27 Thread Jarkko Torppa
ver >> with requests every 15 seconds for data for races after the upcoming > > Try using an HTTP HEAD instruction instead to check if the data has > changed since last time. Get If-Modified-Since is still better (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html 14.25) -- Ja