15,175 Topics
| |
Hello, All: My first post... I've looked high and low for the ability to write a Chinese language text string in a program. For example: myString = "你好" So that if you say: print myString on the console you will see: 你好 But I have yet to be successful. First … | |
I've got a small bit of code I need to convert to C#. However my experience with C# is very very limited and a simple python program like the one I'm trying to convert is beyond my experience in C#. If anyone knows of any converters or is willing to … | |
Hi All ! "Do win32all work well in Vista box can anyone show me how to start and stop a service in vista ,i have working code for window xp and 2k" | |
Hi. I have a problem with a physics assignment I have to finish by tonight. They have already given me a python code, but I have to find the period T of Jupiter through interpolation. (It doesnt have to be interpolation, but my teacher recommended it.) This is the program: … | |
Hi I was making a program that tried to open firefox like this: [code] exec file('C:\\Program Files\\Mozilla Firefox\\firefox.exe') [/code] but i get an error [icode] exec file('C:\\Program Files\\Mozilla Firefox\\firefox.exe') File "C:\Program Files\Mozilla Firefox\firefox.exe", line 1 SyntaxError: Non-ASCII character '\x90' in file C:\Program Files\Mozilla Firefox\firefox.exe on line 1, but no encoding … | |
So I have this nifty wxPython widget -- a Cartesian Coordinate plane with scrolling ability. Three issues: (1) On scrolling outwards, I set it to resize itself, which seemed like a reasonable plan. But the resizing is very choppy. Is there any way to capture the last wx.SIZE event instead … | |
Hi i have a CSV file that looks something like this: Name ASX_Code Date SharePrice ACACIA RESOURCES AAA 19990630 1.75 ACACIA RESOURCES AAA 19980630 1.72 ABSOLUTE RETURN FUND UNIT AAB 20040625 0.9 ABSOLUTE RETURN FUND UNIT AAB 20030630 0.85 AUSTRALIAN AGRICULT. AAC 20070629 2.95 AUSTRALIAN AGRICULT. AAC 20060630 1.935 AUSTRALIAN … | |
I am designing a small, commercial website that requires an administration page where the owner can upload photos and update the inventory table. It was coming along just fine until I found out, by brute force, that Dreamhost does not allow a PHP script to execute the Image Magick commands … | |
Whenever I open a page with urllib or urllib2 (file = urllib.urlopen(urllinkhere)) and when I print it, I get this: [IMG]http://i121.photobucket.com/albums/o229/Shadow14l/boxes1.gif[/IMG] See all the square boxes? Unknown characters or something... Well they are and represent the returns (new lines). If I saved this to a text file, all the boxes … | |
There's a function that repeatedly shows up in languages, usually with more or less the following form (Python syntax): [code=Python]var1 = raw_input("Input a number between one and three.") choose var1: case "1": print "You inputted one." case "2": print "You inputted two." case "3": print "You inputted three."[/code] Or something … | |
I have been trying to install Pymmlib for viewing and manipulating mmcif files for my Bio informatics project but i can seem to get it installed it shows that a lot of dependencies are missing can anyone please tell me how i can successfully make this work also where do … | |
Hi Guys! I am trying to make a simple and very basic Database in Python. Something, like a small agenda with contacts. I make a dictionary within the script and I was trying to update that info with new Input data. The problem is that I am not sure I … | |
Hi just wonderin if anyone can help with my GUI, I got this far, but want to have an image on the background of the main app, and also the buttons. Ive read through vegaseat's script which he helped someone on here, but somehow I can implement his code into … | |
Hi all, Is there any module for undefining proxy for https in python like $agent->proxy( 'https', undef ); in perl | |
i am trying to teach myself python using this book called, core python programing by wesley chung. one of the exersises in this book says make a text based menu application that uses more than one of the programs you made already.When i made the application one of my code … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
| 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" … |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
[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. # … | |
[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 … |
The End.