15,179 Topics

Member Avatar for
Member Avatar for kennm

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

0
45
Member Avatar for stellalxin

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. …

Member Avatar for stellalxin
0
975
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
131
Member Avatar for thr

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 …

Member Avatar for John A
0
97
Member Avatar for Navanax

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 …

0
40
Member Avatar for thr

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

Member Avatar for tomleo
0
244
Member Avatar for stvrich

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 …

Member Avatar for stvrich
0
236
Member Avatar for darangho

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 …

0
58
Member Avatar for mahela007

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 …

Member Avatar for willygstyle
0
3K
Member Avatar for sab786

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 …

Member Avatar for willygstyle
0
145
Member Avatar for mahela007
Member Avatar for pluring

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 …

Member Avatar for pluring
0
138
Member Avatar for eddy80310

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.

Member Avatar for willygstyle
0
124
Member Avatar for jcmeyer

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.

0
61
Member Avatar for foosion

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.""" …

0
250
Member Avatar for rajivgupta1107

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, …

Member Avatar for bumsfeld
0
180
Member Avatar for mahela007

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?

Member Avatar for Stefano Mtangoo
0
115
Member Avatar for pluring

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 …

Member Avatar for pluring
0
141
Member Avatar for M A

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 …

Member Avatar for M A
0
71
Member Avatar for mahela007

What is a parser and what does it do? For example, what would an HTML parser do in python?

Member Avatar for mahela007
0
334
Member Avatar for fellixombc

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 …

Member Avatar for kyleh
0
106
Member Avatar for fleem
0
50
Member Avatar for mk27

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 …

Member Avatar for mk27
0
175
Member Avatar for Lingson

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 …

Member Avatar for Lingson
0
256
Member Avatar for mahela007

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."

Member Avatar for bumsfeld
0
327
Member Avatar for Dan08

Is it possible to open windows files with python? Like notepad, and stuff.. Thanks Dan08.

Member Avatar for Dan08
0
152
Member Avatar for 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. …

Member Avatar for Dan08
0
310
Member Avatar for fallopiano

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 …

Member Avatar for sneekula
0
213
Member Avatar for Stefano Mtangoo

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

Member Avatar for Stefano Mtangoo
0
93
Member Avatar for axeeffect2002

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...

Member Avatar for Stefano Mtangoo
0
53

The End.