Advertisement

635 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested Python Solutions: 126 - 150 of 317
 
Hi there I've recently attempted to learn Python. I am a complete non-programmer and so would appreciate answers a 5 year old could understand if possible please! Also please excuse my lack...
I can't figure how to do this simple task in Python: I want to read a substring from a string starting and position x and reading n characters. Thanks for any assistance, nomoslogos
Hello, I have a newbie question on the Python unittest module: I have a library with lots of functions that interface to a server. To test these I wrote a unittest TestCase like this in...
Hello, I found this python script below and I would like to have it modified some.   Is there a way to make the "argv[1]" workspace include all subdirectories within the designated workspace?...
Hi, Need sample on how to acess Oracle using ojdbc14.jar if at all posible. TIA
I have python 2.2 and MySQLdb.   A sql update command generates errors of sql syntax.  Please advise. Here is a fragment of python code: cursor.execute("""UPDATE items SET zip = '%s'...
Why do I get SMTPRecipientsRefused: {'bgailer@kgnu.org': (550, 'Relay denied')}. What does SMTP use as an email server? import smtplib from email.mime.text import MIMEText msg = MIMETe...
OK before I begin.  I need help accomplishing this using Python version 1.5.2.  YES, I know I can upgrade, YES I know I can install a second version of python without effecting my current vers...
I am new to python, am used to perl and vbscript - I was hoping to get some help on this. I am trying to get a script to create a XML like the following: <?xml version="1.0" encoding="utf-...
In my python program, I use spawnl and os.system to call an outside dos .exe program. When that dos program is called and running, a MS-Dos window appears briefly and then disappears as the do...
Hello, I have been using the code below with success with ESRI ArcMap 9.2. However, I'd like to know how to add some more automation to this script.  Currently I run this from the command line...
i'm trying to convert some python code to perl but i dont underststand what: x = struct.unpack('!L', and also: value = struct.pack("<L", x) are doing.  what exactly the formaters !...
Hello, Is there a way to have scripts run sequentially with just one act of execution (pardon my jargon or lack thereof)? To be clear: Have a script execute only after the previous has finish...
The question was to produce a multiplication table like below..but I cant seem to get the right output. | 2 3 4 5 ================== 2 | 4 6 8 10 3 | 6 9 12 15 4 | 8 12 16 20 5 | 10 15 2...
Hello, I've found this posting which allow for a reclassify batch file changing all "NoData" values  to Zero, I'd like to go the opposite route, with zero to NoData. The script in this postin...
The following code: import urllib2 h = urllib2.urlopen("http://www.someurl.com") txt = h.read() throws the exception: urllib2.URLError: <urlopen error (10061, 'Connection refused')...
I have a python script that Pepr helped me with earlier that I've now run into a problem with. Some of the attributes need to be wrapped in CDATA and the script that was made removes these and...
Hi Can anyone provide or show me where I can find a python script that can parse an Oracle tnsnames.ora file (Oracle 8-10)? The ideal solution would also be able to resolve host names to ip...
I am using the Python code below to write to an MSAccess DB through ODBC. I don't get any errors, I know the database is being accessed because it creates a key, but the database isn't close (...
Hi,         I am trying to write a python script to handle deployment in weblogic. We are migrating applications from Jboss to Weblogic. It looks like we need to deploy files through WLST to ...
I'm trying to write a function in Django that would except a variable, and then click if that value exists in a certain column in my database. below I attached my sloppy solution but I feel th...
I am rather bad in mathematical programming, and to most voronoi implementations there's either no source or only in c/c++, which often makes very c/c++ specific implementation details, thus o...
I am experiencing the following error after compiling a Python program into an executable...    C:\Python\Python25\pyinstaller-1.3\minimal\distminimal>minimal.exe    no resource file for m...
hello i m new to python can u guide what's the best editor for python... eclipse or anythine else.
Hi All, We have a PHP based web application which is working fine. There was a new requirement whereby a PPT file should be converted to a JPG and  I found a solution using OpenOffice + SPY...