Re: [Tutor] OT looking for help creating a thumbnail

2008-07-23 Thread زياد بن عبدالعزيز الباتلي
On Tue, 2008-07-22 at 16:17 -0700, johnf wrote: Hi, I'm sorry this is OT but you guys are very knowledgeable with the world of python. I already tried the python list. - no response. I need a py tool that will provide a thumbnail (bmp?) from a video (avi, wmv) that will be cross platform

[Tutor] [Off-Topic] 'ex' vs. 'sed'...

2008-02-28 Thread زياد بن عبدالعزيز الباتلي
(sorry for hijacking the thread like this!) On Wed, 2008-02-27 at 15:02 -0800, Bill Campbell wrote: snip Another way on *nix systems that might be better wouldn't use python at all. Edit the file in place with ed or ex: #!/bin/sh ex - filename DONE 1d w q DONE E, how about: sed

[Tutor] [Off-Topic] 'vimrc' for Python...

2008-02-28 Thread زياد بن عبدالعزيز الباتلي
(Sorry for hijacking the thread. This is the second time in the same day... sigh!) On Thu, 2008-02-28 at 08:04 -0500, bhaaluu wrote: snip I also run Python on Linux. I've tried several of the Python IDEs (Integrated Development Environments), such as IDLE, Eric, and so forth, but the best

Re: [Tutor] What web framework?

2008-01-29 Thread زياد بن عبدالعزيز الباتلي
On Mon, 2008-01-28 at 16:35 -0800, Terry Carroll wrote: snip - this application will be query-only; no updating, adding or deleting. - the database is SQLite. - security and authentication are not important; there's no private data here, I'm the only user, and I'm firewalled. If a

Re: [Tutor] Mobile Python

2007-12-31 Thread زياد بن عبدالعزيز الباتلي
On Mon, 2007-12-31 at 16:02 -0800, Dave Kuhlman wrote: On Mon, Dec 31, 2007 at 12:12:34PM -0500, Antonio Salgado wrote: Hello to everyone and wishing you all the best and succes in this new year!! Well i'm wondering if someone can point me out or help on this, I want to write apps for

Re: [Tutor] n.isalnum() is failing

2007-07-03 Thread زياد بن عبدالعزيز الباتلي
Terry wrote: Hi! Hi... snip I am using x.isalnum() to check that I have a number for each year entered, and it doesn't look to me like it is functioning properly. snip That's because x.isalnum() will return True if x is not empty and it's content are *either* an Alpha or a Number

Re: [Tutor] Infinite Loops (and threads)

2006-12-24 Thread زياد بن عبدالعزيز الباتلي
Luke Paireepinart [EMAIL PROTECTED] On Sun, 24 Dec 2006 10:02:19 -0600 wrote: Kent Johnson wrote: Kent et. al., I'm writing something that has to do with sockets. I need to recv any incoming packets from the socket. I will have potentially hundreds of separate sockets open in a single

Re: [Tutor] shebang question

2006-11-26 Thread زياد بن عبدالعزيز الباتلي
john maclean [EMAIL PROTECTED] On Sun, 26 Nov 2006 01:34:28 + wrote: From what I can tell/remember, the first works in the *nix environment if python is in your $PATH, ... Actually, no. The first will try to feed the script to the executable /usr/bin/python. If that doesn't exist (or is

Re: [Tutor] [tutor] how to get the fileextention?

2006-07-20 Thread زياد بن عبدالعزيز الباتلي
On Thu, 2006-07-20 at 11:19 +0300, [EMAIL PROTECTED] wrote: Hi, is this the right (shortest) way to get the file extention (under MS WIN)? def getext(fname): ext = fname.split('.').pop() return ext Regards, Emily The following maybe a little better: def

Re: [Tutor] How can I copy files recursively? [Off Topic, AGAIN]

2006-07-10 Thread زياد بن عبدالعزيز الباتلي
This is “Off Topic” regarding the mailing list! On Mon, 2006-07-10 at 22:57 -0500, Dustin J. Mitchell wrote: (altered by Ziyad) Richard Querin wrote: ... I was thinking I could do it easily from the linux command line (cp -r copies the subfolders out as well) but I can't figure out how

Re: [Tutor] Logical Sorting [Off-Topic]

2006-07-08 Thread زياد بن عبدالعزيز الباتلي
On Sat, 2006-07-08 at 14:39 +0200, Norbert Kaufmann wrote: زياد بن عبدالعزيز الباتلي wrote: [...] Or use ‘ls -v’. (I said it's “off topic” on the subject, sorry! It might escaped you, but ‘ls’ _does_ have a proper sort by version.) Which OS? ~$ uname -mrs FreeBSD 6.1-STABLE i386

Re: [Tutor] Logical Sorting [Off-Topic]

2006-07-07 Thread زياد بن عبدالعزيز الباتلي
On Fri, 2006-07-07 at 10:09 -0700, Evan Klitzke wrote: Hi, I am trying to sort a list of directories that correspond to kernel sources under /usr/src/linux. I wrote some code that gets a list like this: ['linux-2.6.9-gentoo-r4', 'linux-2.6.16-gentoo-r11/', 'linux-2.6.16-gentoo-r7/']