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 ...
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...
I have a UTC time tuple in the format according to the python time module (http://docs.python.org/lib/module-time.html). I want to convert this tuple to the Unix epoch time. I tried mktime, ...
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 ...
hello, all,
on my machine, SuSE 10.2 Enterprise Server, Qt Designer (4.21), Python 2.5 installed. I want to use pyuic (3.14.1) to convert a qt form (.ui) to python form (.py). However ...
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 experts,
I'm new to python, and having problems instantiating classes. My main method has a couple of lines like this:
debug = False
stats_d = {"cpu":[],"foo":[],"bar":[],...
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 ...
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...
Is there anyone that has worked with the Paramiko package for python?
I'm trying to implement a nice abort function in my program that I'm creating for both uploading and downloading.
I ...
Hi,
I am trying to convert a list of mac addresses:
001c26225b25
001b2f6398fa
000fb55f4492
0018f8c94a3a
0018f84a3de5
000f3d434936
001a7080b57e
0014a467ebac
00095bd8461a
00195b489c...
In python is it possible to print your programs output on the same line?
So you have one output string that is printed, then another, but the second one overwrites the first one instead of ...
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...
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...
I'm trying to test a Python script on WAMP. I have a working WAMP installation, and followed instructions to add Python (on this page: http://www.mplstutorial.com/wamp_python/python_wamp.html...
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 wrote some code to parse a plain text file and find all IP addresses in the file.
When I wrote:
it outputs:
one line is 2 kc1-teng1-2.net.ohio-state.edu (164.107.2.149) 0.770...
Hi, I am confused on how to get the ping.py module working.
Could someone write me a simple script that will ping a host, let's say www.yahoo.com and return the result to the command line u...
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/...
I would like to create a input file from ABAQUS using Python. Scripting Language
I am right now learning and have some little experiance in ABAQUS and PYTHON.
if anybody has some experia...
Hi all,
I have created a python script which looks in a directory and returns the filename of the latest file to be downloaded there. Typically something like this gets returned "C:\tmp\tes...
1. What is the difference between a Sorted List and an Ordered List?
2. What kind of practical application would you use an Ordered list and a Sorted list?
I'm Trying to use toggle buttons as radio buttons and have been unable to get the other buttons to
be de-selected.
There are 3 buttons each has a selected icon and unselected icon.
When...
I need my app to read a text, and replace the word "bomb" with *** I'm not having any luck can anyone help?
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...