15,190 Topics

Member Avatar for
Member Avatar for lllllIllIlllI

Hi I have been looking around for some good tutorials but i havent been able to find any especially for networking. i was wondering if anyone in the community could help. thanks

Member Avatar for jrcagle
0
110
Member Avatar for unpolloloco

I am quite the beginner at python (and programming altogether), but I'm attempting to learn (slowly but surely). Anyway, I am attempting to make a standalone python program that will interact with firefox (opening links, etc.). I've figured out how to open FF and open links. However, for the life …

Member Avatar for unpolloloco
0
104
Member Avatar for Mackjan

How can i create a function which sort a list in this way for example if list 4,4,2 4,4,2 3,3,1,3 2,2,0,2,4 1,1,0,1,3,4 0,0,0,0,2,3,4 0,0,0,0,0,1,2,3,4 If the list is impossible to sort then the program have to try it 15 times not more. The function which I wrote does it only …

Member Avatar for Mackjan
0
78
Member Avatar for Seagull One

Hello everyone! I haven't programmed in quite a while and now that I'm getting back into the programming environment for my robotics project again, I'm a little stumped on something: I'm getting this error message for an exception raised in my VAST python script for my robot. It goes like …

Member Avatar for Seagull One
0
385
Member Avatar for ssDimensionss

hi, im learning to use python at the moment and i came over a question where it gives me a large csv file with names of companies and how much they are earning and i was asked to find the top 10 companies..i orignially did this: [code] import urllib import …

Member Avatar for jrcagle
0
3K
Member Avatar for kdoiron

I hope people don't mind seeing references to other forums here. I'm a regular at [URL="http://www.python-forum.org"]www.python-forum.org[/URL] but lately I've been having problems with the site. Last week, I couldn't post anything for two days, but that seems to be resolved. Now, I can't even log in. I get a "406" …

Member Avatar for Ferroman
0
143
Member Avatar for sch0009

Hi there, I have a data set ([url]http://app.lms.unimelb.edu.au/bbcswebdav/courses/600151_2008_1/datasets/entertainment/moviestats_large.csv)[/url], and i was just wondering the best way of tackling the question stated below: Which director is the most productive? I an new to python and wondering if anyone could help me out a little on this problem. I have considered trying …

Member Avatar for bvdet
0
256
Member Avatar for drjekil

i have a script which will do a specific task for a file in a folder,now i would like to do the same task for the all files in that folder(25 files).how can i do that? Thanks in advance.

Member Avatar for ZZucker
0
79
Member Avatar for swaroopk85

Hi All, We have been using http_class in urllib2.py ,_http.py and calling its various methods like h = http_class(host) # will parse host:port h.set_debuglevel(self._debuglevel) h.request(req.get_method(), req.get_selector(), req.data, headers) h.getresponse() I am searching this class in the python directory but I could'nt find any.. DO we need to download this separate …

Member Avatar for swaroopk85
0
98
Member Avatar for ayman86

here is what i have to do: [url]http://www.sendspace.com/file/og252q[/url] this is what i have so far. [url]http://ayman86.pastebin.org/34381[/url] its pretty much the code in the pdf file with defined functions of quick sort, bubble sort and better bubble sort im not sure how i implement "size of array increment, and number of …

Member Avatar for ayman86
0
126
Member Avatar for Igor_MK

Hello, I have a project to make a text comparer. I've downloaded almost 90000 texts from a site, parsed them and stored the texts in a file(150MB). So now, a new text is in another file and should be compared with the others, and return a result of 20 most …

Member Avatar for woooee
0
162
Member Avatar for Acidburn

Hey guys, I'm trying to get a socket to work, but this code doesn't seem to fire. [code] #!/usr/bin/python import sys import os import socket serverHost = 'localhost' # servername is localhost serverPort = 2000 # use arbitrary port > 1024 mySocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # create a TCP socket …

Member Avatar for jrcagle
0
79
Member Avatar for lllllIllIlllI

Hi i was wondering the best way to time how long a function/program takes i cant work out how to do it. I tried fiddling with the time module yet i keep doing the wrong things.

Member Avatar for woooee
0
82
Member Avatar for hurley

[CODE] #!/usr/bin/python #SQL Table/Column Fuzz #How to use this tool: #In this script you can test Tables, Columns or #Both. # #For your site argument set TABLE,COLUMN or both for #which ever you want to test. #Example: #./d3.py www.site.com/shop.php?id=-1+union+all+select+1,COLUMN,3+from+TABLE-- # #Add the errors you receive to the ERRORS array. # …

0
68
Member Avatar for rodG

[code] # This is meant to draw Start and Stop buttons and a label # The Start button should start a loop in which the label # is configured to change colour and text. # At each pass through the loop the variable self.stop is checked: # if True the …

Member Avatar for rodG
0
4K
Member Avatar for swaroopk85

Hi all, I need to open a https site ,I have http proxy for that site..I want write a program in python which can open an https site via http proxy using certificates which I exported from browser to my local system. Can anyone help me in this regard??

0
46
Member Avatar for lllllIllIlllI

Hi My question is: i made a program that counts up and up continuously in the background but i want it to print what number it is up to when you press a certain button such as ENTER. I have tried using raw_inputs() but all that happens is it keeps …

Member Avatar for a1eio
0
8K
Member Avatar for Mackjan

I have a list for exemple: a = [ 9,6,5,4,1,0,0,7,6] . By this function I want to delete all element which content zero and delete all element which content duplicate. But it doesn’t do exact what I want. [CODE]def rensa(a,b): j=0 for i in a: if a[j]<= 0: del a[j] …

Member Avatar for Mackjan
0
110
Member Avatar for FreezeBlink

Python's system of deciding for you what type to give all your variables is nice and all, but is there a way to force it to give a variable a certain data type? For instance, if you give it the following: [code=Python]n = 2 m = 3 print n/m[/code] It'll …

Member Avatar for vegaseat
0
101
Member Avatar for NAB888

Hi everyone, Would someone please tell me how to hide the command prompt window while my Tk/Tkinter program runs, I'm kinda new to windows programming, but i'm doing all right. (except the command prompt window keeps sticking its tung at me) Thanks for any help, I appreciate it.

Member Avatar for eibwen
0
71
Member Avatar for shigehiro

Hi all, I would need your expertise/advice on the problem I encounter right now when I tried to parse in the contents of .csv file. Here is the scenario: 1) I have csv file with the possible entries as follow: ProjCat,RefNum,ProjTitle,MemberName,ProjDeadline,ProjGrade --> Header I,0001,"Medical Research in XXX Field,2007","Gary,Susan",20.05.07,80 R,0023,Grid Computing …

Member Avatar for a1eio
0
255
Member Avatar for vegaseat

This was a comment from ee_programmer in reference to one of the Python code snippets. [code=python]""" I was expecting the first class instance to only have one dictionary entry {'person0': 0} rather than two dictionary entries. Similar expectation with second class instance. How do I create and assign value to …

Member Avatar for a1eio
0
209
Member Avatar for s_jmp

what are the differences between these two type of commands: 1- >>> import socket 2- >>> from socket import * i mean when you get the object list from the first command it gives different object from when you get objects from the second command. so does it mean these …

Member Avatar for sneekula
0
155
Member Avatar for angelxu

Hi, I'm a starter of python programming and i've stuck on a problem. i imported a csv library into the consule and i tried to print out a particular column. but i don't want to print out the heading (which is the first row) of the column. this is what …

Member Avatar for kdoiron
0
133
Member Avatar for Shakis
Member Avatar for pythonuser
0
82
Member Avatar for rheg21

Hi! how can i run a python script in a link such as([url]http://192.168.8.111).what[/url] do i nid?i have ubuntu7.10 and installed apache2.pls help.tnx!!

0
47
Member Avatar for rheg21

hi guys!! im having a hard time editing the main configuration file httpd.conf.im planning to use it for a project with api using python and im trying to run it in our office ip address.([url]http://192.168.8.111)can[/url] you pls help me.what are the right codes for it?im really having a hard time …

0
59
Member Avatar for wsn

Hi everyone, I'm trying to find the points that satisfy the equation y^2=(x^3)+ (4*x) + 4 (mod 5) from the book i know im suppose to get x=0 y=2 x=0 y=3 x=2 y=0 x=4 y=2 x=4 y=3 so far i haven't been luck in getting anything any help is appericated …

Member Avatar for Lardmeister
0
106
Member Avatar for heshan

Hi, Assume that I have a target directory, which I am using as a location to store my python scripts.What I need to do is to listen to that directory and when a python script is placed in that directory, I need to execute it at that time.Can anyone give …

Member Avatar for heshan
0
90
Member Avatar for tondeuse34

Hey guys again, well i got another question. When ever i have an if statement asking for input and i try to use an elif statement and run the code, it say's 'elif' is an syntax error. Is it an indention problem or something else? Thanks [CODE]print "1) Play" if …

Member Avatar for tondeuse34
0
171

The End.