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: 76 - 100 of 317
 
Hello everyone, I'm currently developing a tool in Python using wxPython for my GUI. Now I'm using wx.Shell() to execute commands to the command prompt. Now this all works fine, but the c...
Hi, I am trying to convert a list of mac addresses: 001c26225b25 001b2f6398fa 000fb55f4492 0018f8c94a3a 0018f84a3de5 000f3d434936 001a7080b57e 0014a467ebac 00095bd8461a 00195b489c...
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...
Hello, I am trying to create a python script to automate some functions in ESRI ArcMap. (I previously recieved assistance with a more complicated, but similar script http://www.experts-exchan...
I am having problems working with file uploads in Python.  I am using the following code: <form action="/links/add" method="POST" enctype="multipart/form-data" accept-charset="utf-8"> <inp...
Hello! Is is possible to read all entries from a Windows .ini file in Python, also if you don't know exactly the names of sections and values? (see sample .ini file below). I would like to ha...
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...
Dear Experts, I need a sample code for a very simple Python multithreaded tcp server. It should be able to receive command lines, provide simple strings as response AND not use asynchat/asy...
I am trying to write a simple script that wil be run using ther terminal and python launcher.  The script will ask for the first and last name  of an employee and store the input untill called...
The python readlines() function gives me a list, output[], from file and I want to delete any line from output[] that is short the required number of list elements (14).  I can print the index...
Greetings: I recently was asked to become familar with Python.  I figure the best way to do that is to take a simple application in C/C++ and make it work in Python.  Hence, my questions ar...
Hi Experts,  if I want to comapre 2 files in Python to check if my src File is either the same date or newer than dest File. i have written my script, I only want to copy it if it is newer....
I'm trying to parse Apache log files with Python and I'm having difficulty parsing the time zone information. import time t = "23/Mar/2007:02:01:14 -0500" pdate = time.strptime(t, "%d/%b/...
How do I get the filename of the currently running python script?
Ok so with Python, I have my app which is writing to a log file. I can't find a way to start a new line for each entry. I tried doing PHP things like appending \r\n or just \n to the write str...
Hey all, I am new to Python, though have a PHP background. In my program I request the user input for height in CM. I need to convert that to the equivalent height in feet and inches. I ...
Greetings Experts! Please describe for me the main differences between Python and Perl? I see that Python is object oriented, while Perl is more extraction oriented. Both seem powerful ...
Hi Experts, I have a Python class called "KeywordTree(object)" already. Now I want to create another Python class "KeywordMember"  to contain some extra data. The "KeywordTree" class s...
I use some code as below: from xml.dom import minidom xmldoc1 = minidom.parse('my.xml') When I run it, I got error as below: load_module xml load_module xml.dom load_module xml.dom.min...
Hello, I am trying to reclassify grids which I have placed in a common workspace. I'd like all values of Zero replaced with NoData and then put into a new workspace. using guidance from th...
Hello, I think this script would work great if it would cycle through all the rasters in each of these folders and then save a new output raster for each iteration. Currently it justs goes ...
I'm finding that when I redirect stdout that I'm not getting all of the output that is usually presented say at the python prompt. For example, print "hello" will echo "hello" as expected, how...
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...
Hi i want to call an python prog from another program. I want to know how to convert a program to exe . while compiling it converts to an .pyc file.is it possible to convert to an .exe. hel...