Advertisement

Over 40 Experts attended the first Annual Core Conference! Take a look at what happened throughout the week...

2008 Core Conference

 

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

 
Time Tested Python Solutions: 1 - 25 of 221
 
This is a small program i have written to read a contents from a INPUT FILE containing (+1000 Lines ) and writing simultaneously to another file. ( it works fine ) 1.---- QUESTION:- ----...
Hi all, How could i create a folder using python if the folder name is provided by the user. and check if the folder already exists or not regards, Freedom
hi... can anybody give me some sample codes for reading a text file line by line? I need to make a program to read the content of the file and to extract info in certain lines thank u
Hi all, Im trying to build a custom SSh client in python using sockets in windows. below is a snippet of my function in the code #!/usr/bin/env python import os import sys from socket ...
I have been searching around for a way to compile my python scripts beyon .pyc or .pyo files mainly because my company would like to distribute some applications however those byte code files ...
I am looking for an UDP broadcast client/server example in Python. Any hints?
Hi, I have a address "Santa Mora, AZ 86444 I want to substring this string into city, state and zip but what is the best way to do this? Do I use partition, rfind, or or split? Thanks Jamie
Hi, I am writing a python app using Tkinter for buttons and graphics and having trouble getting a timer working, what I need is a sample app that has three buttons and a label. [start ti...
Hello Experts, I would like to know how to change a file creation/modification date/time using Python. This should work on Windows. Thanks in advance...
Hello, I am very new to python and am trying to understand the below code to possibly chop it up and use it to my advantage it used in ESRI ArcMAP 9.1 Would someone please annotate the below...
I am trying to run the script but It ends with the following error. I am also pasting the script. Thanks. Checking for the existence of a NodeSync MBean on node xxxxNode1 Invoking synchr...
Hi Everyone, I have installed yum on Redhat 7.3 but when ever I do yum check-update or yum update I get the error below.I have googled this error but cant find a proper solution to it. Tra...
This should be fairly easy but I can't get things to work correctly. Basically I am just trying to launch a command line argument from python and read the standard output. I first tried: re...
I have to write a script to monitor a mysql connection. Before I do this I want to test if my machine can access Internet by pinging the DNS server of my provider. I have seen very complicated...
I would know how to access environment variables in python.  Please advise.
I've been requested to put a python script in cron. Currently in real time the user changes to the directory that has the script and launches the script  which works on data in that directory....
I've built a command-line build system based on the Python-based tool Scons. Since all the workstations running Scons have to have Python installed, I'd prefer to just do the few driver script...
I want to install python 2.5.2 to run turbogears and bind to mysql and at the same time install plone in /opt using unified plone installer. The plone uses python 2.4.4 and is it possible to b...
I want to connect to a web services server, send a request, and read the response. I have a Java program that does this but am getting nowhere with httplib. This appears to work: import h...
#include <iostream> using namespace std; int main() {      int a;      cout << "please input a number" << endl;      cin >> a;            cout << "this is the number " <<  a  << endl;                   ...
I need example code to parse the following HTML table into a list or array - I'm not sure the best way as I'm new to Python coming from VB.  So far I've been able to get the HTML and split out...
Good afternoon, I would like to write a Python script that would wait 20 seconds, and then execute a program (example: c:\program files\test\test.exe).  I don't want to return any values or...
I'm trying to have python read in a file and put each line into a list, then print out each list, but stop at a command line argument supplied number so file is 30 lines long, argument is 2...
Hi there, I am creating a while loop to validate input from a user. I am using isalpha() and trying for the following: name = 121231 #non alpha while name.isalpha() = false :        name ...
I'm just starting out with Python but I'm stuck already and can't proceed unless I understand how this works.  I'm trying to append the contents of two files to a new file.  Each of the two so...