(non-python) upgrading a MySQL database

2010-01-10 Thread Dikkie Dik
... And I am interested in cleaning this up. I should probably start with the matter of databases, since that's something I won't be able to easily change once clients actually start entering data. Please share with me any further concepts or questions to get me thinking how to redesign the

Re: mySQL access speed

2009-11-16 Thread Dikkie Dik
... But it isn't very fast. For executemany I have some hundred thousend lines in a list of tuples. I joined() these lines to form an insert into table values () statement and blew it into the mysql cmdline client via os.popen(). This was 60(!) times faster and loaded my table in

Re: Nimrod programming language

2009-05-14 Thread Dikkie Dik
3) Most text files have no header specifying the encoding anyway. How should the programm/programmer know? And often he does not need to know anyway. What? Off COURSE texts have no header stating the encoding! And it is the programmer's responsibility to know what a text's encoding is. So do

Re: Cannot find text in *.py files with Windows Explorer?

2009-04-04 Thread Dikkie Dik
Anybody have a solution for Windows (XP) Explorer search not finding ordinary text in *.py files? This is a known issue. You won't be able to search PHP or even VBScript files either, as they are not known text formats and are therefore considered binary, nothing to see here, move along

Re: Revision Control

2009-02-19 Thread Dikkie Dik
Funny how everybody is speaking about the ease of merging. It is the very least feature I have ever needed from source code control. Most version control system are really brilliant in creating a version mess of intertwined branches, but off course I use version control to *PREVENT* such a mess.

Re: Discover Islam - The Fastest Growing Religion in the World !

2008-07-02 Thread Dikkie Dik
If it so fast growing, I'd rather wait for a stable release... LOL -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's tail -f implementation for remote files

2008-05-28 Thread Dikkie Dik
asdf wrote: Basically what i want to do is to read a file that is being constantly appended to but which is located on a remote server. I found this for doing BASH's tail -f in python: import os tailoutputfile = os.popen('tail -f syslog') while 1: line = tailoutputfile.readline() if

Re: about a head line

2008-04-17 Thread Dikkie Dik
Penny Y. wrote: I saw some scripts have a line at its begin: # encoding:gb2312 what's this? Why need it? thanks. My guess is that it is the automatic work of some sort of editor that does not understand how encodings work. See what happens if the file was utf-16le encoded, for example.

Re: Turn off ZeroDivisionError?

2008-02-10 Thread Dikkie Dik
Mark Dickinson wrote: On Feb 9, 5:03 pm, Neal Becker [EMAIL PROTECTED] wrote: If I use C code to turn off the hardware signal, will that stop python from detecting the exception, or is python checking for 0 denominator on it's own (hope not, that would waste cycles). Yes, Python does do an

Re: GUI definition for web and desktop

2008-02-03 Thread Dikkie Dik
I have an application that is accessible through the web and also through desktop applications and both clients should be presented a simple dialog GUI. This dialog will only include text fields, radio buttons and a file upload field. My idea is that if there was a lightweight GUI

Re: pexpect ssh login and ls | grep

2008-01-01 Thread Dikkie Dik
shell_cmd = 'ls -l | grep mytest.log' child = pexpect.spawn ('ssh [EMAIL PROTECTED]') I think you can give the ssh command an option to execute a file remotely. That way, one command would be enough. -- http://mail.python.org/mailman/listinfo/python-list