Re: [Tutor] best way to tell if i am connected to the internet

2007-04-30 Thread Jalil
ping a host on the net if you get an echo response back you are good. better yet ping the host page you are scraping. On 4/30/07, shawn bright <[EMAIL PROTECTED]> wrote: hello there all, i am wondering, what would be the simplest way to get a true/false am i connected to the internet ? righ

Re: [Tutor] Problem with Import

2007-02-28 Thread Jalil
check your python path On 2/28/07, Nagendra Singh <[EMAIL PROTECTED]> wrote: Hi all, I am running python on Cygwin and I have also installed gdal which is a raster translator library. When I run the command import gdal, Python gives me an error : Python 2.4.3 (#1, May 18 2006, 07:40:45) [GCC

[Tutor] Accessing installed windows software from python

2007-02-12 Thread Jalil
I was wondering if its possible to go about writing a code to find out all the installed program on a windows machines. Basically everything under Add Remove Programs in the control panel. ___ Tutor maillist - Tutor@python.org http://mail.python.org/

[Tutor] file open error

2007-02-08 Thread Jalil
Hey guys, I have this simple code and i cant seem to get it to run. here is the code. from os import * import re hostname =raw_input("Host name : ") or '' mac_addr =input("Mac address : ") filename='/etc/dhcpd.conf' fh=open(filename) m = re.match(hostname,fh.readlines()) if m!=None: m.gro

[Tutor] Python connecting to an exchange server

2007-01-24 Thread Jalil
I just wanted to know if its possible or if anyone can point me to a place where I can get info on howto to get python to talk to an MS exchange server. I would basically want the python code to parse the appointsments in my outlook calendar. Is this possible? Thank You -- Shoot for the mo

[Tutor] mod_python

2007-01-02 Thread Jalil
I was just wondering if anyone know of a any good site with examples of mod_python tutorial. the mod_python manual assume isnt really that helpful. thanks ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] python cx_Oracle.LOB

2007-01-02 Thread Jalil
w size. *write*( data, [offset = 1]) Write the data to the LOB object at the given offset. Note that if you want to make the LOB value smaller, you must use the trim() function. I'd try the read method on your object. On 1/2/07, Jalil <[EMAIL PROTECTED]> wrote: > I am trying to fetc

[Tutor] python cx_Oracle.LOB

2007-01-02 Thread Jalil
I am trying to fetch a CLOB datatype with with cx_Oracle and I can seem to get it to work. I was able to fetch the text from the db with sql commands but i can fetch in a python code. I get this output. [(,)] when I run my code. any way to find out how to go around this? __

Re: [Tutor] Please suggest a python book

2006-11-24 Thread Jalil
If you already know C you should be fine with python ref book. *Python Essential Reference (2nd Edition)* On 11/24/06, Narasimha <[EMAIL PROTECTED]> wrote: Hi! Friends, I am new to python. I have a vacation of 15 days. Please suggest me a python book (or a website). I already know C lang