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.

 
Top Python Solutions: 1 - 25 of 33
 
Hello, I am in need of a simple script that I can apply to a project I am working on, for the purpose of learning what each of the functions mean.  I am very new to Python.   What I woul...
I need to strip out HTML, Punctuation, and Numbers in Python. I found a similar implementation of what I need in PHP (attached). At the very least, can someone show me a preg_replace equivalen...
I'm looking for some Python code that will lock a file on a UNIX-like operating system (linux to be exact) By lock I mean no other processes are able to write to the file while the lock is ...
I'm trying to - read in the lines of a data file as lists with comma-separated values, and - take the 2d value of each list and change it to increment from a certain number This requireme...
i m using reportlab for pdf. i m trying generate a table but when table is long it won't go to multipage. another thing i want to repeat header on multipage table. is there any idea how ...
I'm trying to convert a float to an integer in a data file with the csv module and post the change to an output file.  Each row looks like this: "2008-09-14 23:00:00",1328,3161,-0.052,0.166...
I am trying to write a python script in Linux that will execute a series of shell commands when run by a user.  I am running os.system to do this but I noticed one problem.  I need to pickup a...
Working with the python csv reader, I'm trying to grab a specific number of rows from a csv file by setting the index to 0 once a header is found - for timestamps at one-minute intervals, I ne...
In an effort to increase my proficiency I've been going through the Microsoft Scripting Games events in Python.  I was doing fine until I hit this one: http://www.microsoft.com/technet/script...
hello i got date time object .. how do i add days in date time object.
I have a php script with the same file name located in 24 different subdirectories of a parent directory.  Due to changes in the path structure, I need to modify a path on line 7 of each file....
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...
Building a simple django app using GAE.   I have a form.  I simply want to take the form data and post it back to the web page as a string. The problem is that the form doesn't seem to ackn...
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...
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'm trying to pass a variable (snametxt)in the binding of buttons made in a for loop to the button OnClick function.
hello, im building a small python app, what im trying to do is direct my app to a web page, then the page's content is being stored in a variable, but then what i want to do is go through t...
Hello, I was seeking help on a GIS forum on the get following response: --- Below is the algorithm. It begins with a stack P of your 412 points in priority order and an empty stack S. Whe...
I have a simple python script used to query/update an MS-SQL database. SQL SELECT works fine. SQL UPDATE appears to work (no error), but the database is not updated. I have the same result...
I have a script that grabs lines from a raw data (csv) file and copies the lines associated with 1-minute intervals to one file, those associated with 60-minute intervals to another, and clean...
Hi, Within a python script I'd like to find files based on an inputted search pattern (e.g test.py 'test*.txt') and place the files into an array, for subsequent processing. Any thought...
Hello, The attached image has the error message and I am using the script below. However, this error is not endemic to this script. I am assuming its because the execution of the script (and ...
what is best way to exports from python to ms word ?
Greetings.  We've had Trac up and running for a while on our Linux server, but just started running into problems.  Specifically, when you click on Active Tickets or Active Tickets by Mileston...
I'm trying to find a way to convert a plain text password into something that can be directly inserted in to the mysql.user table. Example: blah -> *0380BEA27363E56C37F0BFDA438F42908084805...