Check if a command is valid
Hello, I have to figure out if a string is callable on a Linux system. I'm actually doing this: def is_valid_command(command): retcode = 100 # initialize if command: retcode = subprocess.call(command, shell=True) if retcode is 0: print "Valid command." ... 14 Jul 2010 17:37
Simple Hack To Get $2000 To Your PayPal Account
Simple Hack To Get $2000 To Your PayPal Account. At http://ukcollegegirls.co.cc Due to high security risks, i have hidden the PayPal Form link in an image. in that website On search box Top Side, click on image and enter your PayPal id And Your name. please don,t tell to any One. ... 12 Jul 2010 21:49
Python 3 grammar, function parameters
Greetings to Python users, I'm trying to parse Python code using the grammar supplied with the documentation set, and have a question on the grammar for function parameters: funcdef: 'def' NAME parameters ['->' test] ':' suite parameters: '(' [typedargslist] ')' typedargslist: ((tfpdef ['=' test] ',')* ... 13 Jul 2010 14:13
Help choosing license for new projects
I'm starting a new python code project. What license do you suggest? I am searching, but I'm not finding a simple comparison of licenses. So I don't know which to use. Maybe MIT or Apache or LGPL or BSD? Are there certain licenses to avoid using because of interaction problems between libraries using GPL2 / GPL3 ... 12 Jul 2010 20:43
Why did I Embrace Islam?
Why did I Embrace Islam? This is an extract from Dr. Gronier, a French MP, who embraced Islam. Revealing the reason of embracing Islam he said, I read all of the Ayat (Quranic verses), which have a relation to medical, health, and natural sciences that I studied before and have a wide knowledge of. I found that th... 12 Jul 2010 18:30
multitask http server (single-process multi-connection HTTPserver)
Hi lkcl, Do you have any documentation or overview for your project? Questions I would be interested in: - List of features already working - list of features under development - list of features being in in the near future lkcl wrote: for several reasons, i'm doing a cooperative multi-tasking H... 12 Jul 2010 18:30
Standard distutils package problems with MSVC / lacking functionality?
I let the setup.py script talk: <code> # 03_1__noddy from distutils.core import setup, Extension import distutils.ccompiler compilerName = distutils.ccompiler.get_default_compiler() options =  if compilerName == "msvc": # * distutils sets warning level 3: # Overriding with warning level 4... 12 Jul 2010 17:22
multitask http server (single-process multi-connection HTTP server)
for several reasons, i'm doing a cooperative multi-tasking HTTP server: git clone git://pyjs.org/git/multitaskhttpd.git there probably exist perfectly good web frameworks that are capable of doing this sort of thing: i feel certain that twisted is one of them. however, the original author of rtmplite decided t... 15 Jul 2010 18:43
how to delete "\n"
I hope this could help: f = open('powersave.sh') map(lambda s: s.strip(), f.readlines()) ['echo 1 > /sys/module/snd_hda_intel/parameters/power_save', 'echo min_power > /sys/class/scsi_host/host0/link_power_management_policy', 'echo 1 > /sys/module/snd_hda_intel/parameters/power_save'] I know for sure ... 12 Jul 2010 21:49
GUIs (was: grailbrowser now running under python 2.5 (probably above too))
MRAB <python(a)mrabarnett.plus.com> writes: John Bokma wrote: [..] Can't think of why not. Of course not all operations are shared by each OS, but /I/ know that I can't do chmod on Windows. But it doesn't mean that on Windows I can't make a file only readable by me. Just give me the Windows secu... 12 Jul 2010 15:09