15,181 Topics
| |
Hi guys i will like to know how to reprecate fseek(fp, -1) in C to python. Thus send the read head a charactor back | |
Hello! I'm writing a python script that will import all the excel files in a folder and write them into a SQL Server table. The script runs if I just point it to a single excel file, but i'm stumped at setting up an iteration loop that will read through … | |
Hi All, I was wondering if any one of you observed the time taken to download or upload a file over ftp using python "ftplib" is very large as compared to performing FTP get/put over windows command prompt or using perl's "Net::FTP" module. I created a simple FTP client similar … | |
**Hi all fort i would leave a little keygen/passphase maker for anyone that wants one ** Also would like feed back on it maybe someone could help inprove or some ideas to improve plus to get this to work you have to make a file called Data make shore caps … | |
The wxPython Phoenix project can be used with Python version 2 and version 3. The project applies pretty much the familiar wxPython code. Here we are testing a dragable borderless frame. | |
So basically im creating this python adventure text game. And so far its good. But i have this problem with class instances(Is that the right term?) Say for example i have this class, class monster(object): def __init__(self,health,attack): self.damage = damage self.health = health So then I create a class object(again, … | |
Hi, I have a question about the game I am making in pygame. In the middle of the game screen there is the "notepad" where doodles can move around and such. Around that is the "desk" the notepad is on. I have a link to a screenshot [here.](http://picturepush.com/public/13180159) But underneath … | |
While trying to connect to MSSQL Server 2012 using pymssql,I get the following error. My server name in Windows Authentication is SARATH,User Name is Sarath\SarathShanker and I did not set a password. >>> mssql_conn=pymssql.connect(host='SARATH',user='Sarath\SarathShanker',password='',database='matrix') Error: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "pymssql.pyx", line 556, … | |
/home/nikos/public_html/cgi-bin/metrites.py in () 217 template = htmldata + counter 218 elif page.endswith('.py'): => 219 htmldata = subprocess.check_output( '/home/nikos/public_html/cgi-bin/' + page ) 220 template = htmldata.decode('utf-8').replace( 'Content-type: text/html; charset=utf-8', '' ) + counter 221 htmldata undefined, subprocess = <module 'subprocess' from '/opt/python3/lib/python3.3/subprocess.py'>, subprocess.check_output = <function check_output>, page = 'files.py' /opt/python3/lib/python3.3/subprocess.py in … | |
Hi, I know how to make C++ plugin based application with C++ plugins. I need to add ability to code plugins in Python. I want users to be able to write Plugins in any language (C++ or Python). What are fundamentals of writting app in C++ but support plugins in … | |
Hello everyone, I'm trying to basically get a cmd variable to pass into commands.getstatusoutput. The problem is that the command has a lot of single and double quotes in it and I can't seem to get it to store as a variable. When I print the cmd it comes out … | |
Hello, I am new to python programming, and was attempting to get my feet wet by trying the popular telnet program on the web; here is the program. The problem is; I am trying to telnet to a switch, and execute some programs, but I am getting no where: Please … | |
I am seeing some solutions using re, out there on the Interwebs, but not what I want. I want to match several strings with partial content of a list item. # as an example of one of the rows in a csv file hostlist=[192.168.10.17, postgres12, "Red Hat 4.3", "broken"] #pseudocode … | |
Hi, I want to get the file owner on windows machine using python script. Is there is any way to do that . Please help Thanks, Kamal | |
well first of all i cant figure out how to move the first letter to the end but before i fix that i need help figuring out why the else branch is being totally ignored. even when the conditions are met for else It still gives me the result in … | |
Yes, I know what I'm talking about. which is Creating my own compiler to compile a language say C++,Java,Ruby, Python ..(Any one of them ofcourse -.- ) Actually, if I can just get the source code for an existing one that would be much better. [example] Say there's Turbo C … | |
| I bought this eBook called Programming Python O'Reilly 4th Edition 2010 And people told me to start out with Python instead of C, cause C Is for experiance users, at the moment I have no knowelege In programming, only know the basics :) |
Hi * I'm trying to make a program that converts a vertical list to a horizontal one which works. But am trying to build in check for some correct user input an I get an Indentation error File ".\dairymaster.py", line 19 pn_test = check_input('1', '2') ^ IndentationError: expected an indented … | |
I want to copy rows 3-5 to a new csv file. I can get the following code to copy the whole file to the new file but the only detail I have found about grabbing arbitrary rows consists of piecing array index numbers like in line 4 below. This may … | |
this is the error I am gtting. webide@raspberrypi /usr/share/adafruit/webide/repositories/my-pi-projects/temp4 $ sudo python temp4.py 86/1023 => 0.277 V => 27.7 °C 86/1023 => 0.277 V => 81.9 °F Traceback (most recent call last): File "temp4.py", line 55, in <module> display_temp() File "temp4.py", line 25, in display_temp temp = int(temperaturef [0]) # … | |
I am wondering on how to make a very simple gui with the ability for the user to click a button and perform the ability as if it were a user input. (ie raw_input). I would also like it to have the title of the program (game) on top and … | |
Hello, I would like to scrape http://www.cpso.on.ca/publicregister/default.aspx?id=2048. by city. Specifically I have list of city names I would enter on the "form", hit submit and then collect/ parse all the results (across all pages), and then repeat for each city. I have never had to do a "post" before and … | |
I have a list of filenames fileNames = ['Aamde Mustafa Marhba (mr-jatt.com).mp3', 'Aaj Me Peeni (Ft.Sanjay Dhaliwal)(Mr-Jatt.com) 1.mp3', '01 Aal Izz Well [www.DJMaza.Com].mp3','17 Aarons Plea.mp3', 'AARIYAN.mp3','17 Aarons Plea.mp3'] i want to get rid of brackets([],{},()) as well as web addresses inside the braces but i want to keep braces and … | |
can anyone convert this to flex code? def encypt(string, key): h = hmac.new(key, string, hashlib.sha1) # print '\n' + h.digest() return base64.b64encode(h.digest()) I have to use hmac sha1 in my flex code. | |
Hey, when I execute the following code I get "App instance has no attribute rolls" I have no clue as to why this is and any help would be awesome, Thanks. import Tkinter class App: def __init__(self, master): self.sticky_all = Tkinter.N+Tkinter.W+Tkinter.E+Tkinter.S self.frame = Tkinter.Frame(master) self.frame.pack() # Dice Buttons. self.bd4 = … | |
So, I'm a new programmer python is my first language. I'm trying to create a program to randomly open a pdf from a directory and read/display one page. Anyway thats what I got so far. I'm just wondering if theres a more efficient way to write this. Any advice? import … | |
Here is my first program I'm working on. I have built a framework here showing the sort of output and user interaction I would like during runtime, but it feels grossly oversized and unintuitive. Here is the code: # This is an advanced guess the number game. import random # … | |
Hey everyone. I'm new to Python and Django, and I've been trying to get Django up and running for over 10 hours now. I've scoured the web, but with very little good documentation available, I thought I'd ask others for help. I'm trying to write a program which will connect … | |
in my code (below) im looking to stop using long list of if statements to randomly select a phrase, how would i use an array to accomplish the same task? link to code http://ideone.com/0l8xiI | |
I'm using cs1graphics module. I'm like really stuck as to what do next. What I'm attempting to do is create a handler that counts the number of clicks on the canvas and when the exit button is clicked it exits the canvas. I originally added the exit canvas outside of … |
The End.