15,179 Topics
| |
Greetings. I'm relatively new to Python and need to write a simple (?) script that will capture all data from, say, port 42 and write it to a file. Can someone help me get started? Thanks. kennM | |
Hello, everyone. My boss gave me a mission impossible. He asked me to retype all the content from a 126 pages PDF document. God! I don’t wanna spend the whole day doing this boring task. Any idea? I tried copy and paste, but I can’t copy from the PDF files. … | |
Hi, I'm planning to work something with XML and Python. As part of familializing with it, I want to make simple playlist for a wxMedia player. the player is simply wx.MediaCtrl with some buttons and wxListCtrl as list container. My Question is, what process does it take to get playlis … | |
hello i want to select programming language that obtain this feature for me: 1: write best web application and speedy web application( like php application) 2: write desktop best and speedy application is fit python this features please help me to select best programming language for this feature i am … | |
First of all, just want to say hello, new to the forums, and hope that I could receive some help. I spent some time learning reversing, (Up to tutorial #30 of lena151's) I know pretty much everything except advanced key-genning and crypto, even reversed a few programs that were being … | |
hello i want to select programming language that obtain this feature for me: 1: write best web application and speedy web application( like php application) 2: write desktop best and speedy application is fit python this features | |
Hello This is a completely foreign thing to me, so, forgive my "Noob-ness" I'm so embarassed. You programmers out there are prob gonna say, "how much easier can we MAKE it for you?" I just installed the python gui on vista. (I will re-install it on THIS xp machine also … | |
Hi, all I want to write a program that doesn't require /path filename.py whenever i execute the program. I heard that one way to do is creating an alias for a command. I know this can be done by alias name=String in shell script, but how can i perform this … | |
Hi.. I'm just curious as to how one would set about writing some python code to monitor the network usage in one session... The program should simply record how much data has been downloaded from the time the computer is switched on to the time it was switched off. What … | |
hi all, i still cant get myself out in my previous thread i wrote that i wanted to carry out a random sample function on an entire file.. now what i wish to do is read a file use a dictionary to search lines and then get this lines and … | |
What does the sys module do in python? and what is sys.argv? | |
Hi! I don't remember where but i found this download function (geturl) that works great if i just send one url to the function. But as you can see i want to execute geturl() for each line in url.txt witch contains url:s. It still downloads but instead of a progressbar … | |
I have a text file(computer.txt) with informations about (computer ID) (computer brands), (price) and (computer parts:number required). It looks like the following comp123, Sam sung, GC323:3,MC202:2,KB132:1 comp423, Acer, GC232:1,SP666:2,WC132:3 comp341, Asus, LP123:3,MM231:3,LA123:3 How can i read this text file and output as a dictionary. | |
Is there any way to tell if a user clicks on the TitleBar of a frame? I tried to use wx.EVT_LEFT_UP(frame, self.OnLeftDown) but it does not seem to recognize a click on the TitleBar. Thank you for any suggestions. | |
I've been having problems with email in 3.1.1. I decided to try the examples from the docs. Alas, the first I tried didn't work. I tried to send a directory whose only contents were a single zip file. [code]#!/usr/bin/env python """Send the contents of a directory as a MIME message.""" … | |
Hi, I am using this zipfile.Zipfile module to zip around 600 MB of data. But after zipping, the size of the zipped folder is app. same. file = zipfile.ZipFile(yesterday_date_time + ".zip","w") os.chdir(rawFileLocation) dirList = os.listdir(rawFileLocation) for fnames in dirList: file.write(fnames) file.close() If i try to use compression method as ZIP_DEFLATED, … | |
I was trying to find out what tk is (with respect to tkinter) and I regularly came across the words API and "binding". What do they mean? | |
Hi! What i want to do is for my program to detect all USB disks inserted and return the device path (/dev/XXX) and system type. My first tought was to fetch output from fdisk -l but thats not very fancy and i guess there is some function or such to … | |
Hello, I have an array 'summed_MWloss' which has the following content: [0.00024064097412677081, 0.0010840802387205584, 0.003607376872954593, 0.0078014804983401742, 0.013657631815844617] I am having trouble writing it into a CSV file into seperate rows. The code I am using at the moment is: [ICODE]t = open(r'F:\IPSA\My_Work\Python_Files\my_powerD2.csv', 'w') output = csv.writer(t, dialect='excel', delimiter=',') output.writerow(summed_MWloss)[/ICODE] which allows … | |
What is a parser and what does it do? For example, what would an HTML parser do in python? | |
Here is my trouble: It loads the IRC information fine, but when its suppose to Identify itself (its a registered nick I'm making it use)but, It doesn't. So basically when after it connects, i want it to type that. Here is my code: [CODE]## An IRC bot by: Fellixombc import … | |
Does anybody know a way to peek the message queue in TKinter? | |
Hi. I've actually never used python but I'm an experience programmer in other languages. I wanted to do some "script-fu" for gimp, which uses scheme or python (it used to use perl, but AFAICT the bindings and modules are unmaintained and broken). I don't really like the look of scheme … | |
hi, since I just learned Python, I start using Python 3.1 (i know people said the best version would be 2.5 or 2.6, but i think that at sometime in the future, it will become obselete since python 3.x is not backward compatible). but when i look in forums or … | |
I've come across EOF (something called "end of file " right? ) on numerous occasions when I was browsing though the python documentation. What is it and what is it's significance? Also what is a buffer? eg: "incomplete data is buffered until more data is fed or close() is called." | |
Is it possible to open windows files with python? Like notepad, and stuff.. Thanks Dan08. | |
Hey everyone, first to start im using python 2.6, and what basically i am makin' is a program that we put some text in a Text Box, and then we can save it to the computer. My problem is that i cant get the text and save it using tkFileDialog. … | |
Hi all. I'm working on a python file that will be included in a project I am working on. Unfortunately, I ran into some problems when it came to passing arguments from a function, to another function. Let me explain; I have two functions: dist and return_mouse_angle. dist returns the … | |
Hi All, I was asking if it is possible to hide the wx.MediaCtrl window so that Only controls (play, stop, pause etc) can be shown? I plan to play audio only and never video for this project. Thanks alot :D | |
Hi, Just now I've downloaded jython plugin for eclipse through software updates. Now when I try to create a jython project it cries for configuring an interpreter. I don't know what path should I provide. please help... |
The End.