15,181 Topics

Member Avatar for
Member Avatar for Huakalero

Hi, I am using beautiful soup to get data from a webpage. With help I was able to get a list of cities with correct accents. Now am trying to get a list of movie theaters in a selected city but these come with no accents, but with weird characters. …

Member Avatar for Huakalero
0
874
Member Avatar for krazykat1010

program I feed in interactively as below [url]http://pastebin.com/qGHMiHjp[/url] child.before contains the expected data (output of expect command) I run the code as python progname.py: (code shown below example run on pastebin) [url]http://pastebin.com/AWY0vM88[/url] import pexpect import sys child = pexpect.spawn('gdb',logfile=sys.stdout) try: child.expect(pexpect.EOF,timeout=0) except Exception, e: print child.before import code;code.interact(local=locals()) and child.before …

Member Avatar for krazykat1010
0
249
Member Avatar for Shansal

Hi, I created an app. I have some files which I can open with this app. So I made the association with the commands below: [CODE]assoc .bengi=BengiFile ftype BengiFile="C:\Program Files (x86)\Bengi\CreateAS.exe" "%1" %*[/CODE] After these, I can see that my file's icon has changed according to my app's icon. But …

Member Avatar for mittelgeek
0
154
Member Avatar for Huakalero

Hi, I'm working on a unofficial app to get the movie listings from a webpage [url]http://cinepolis.com.mx[/url]. In order to get the correct movie listings, the user must select his city. Now, using HTMLParser I was able to get the list of cities, but because some of these have non english …

Member Avatar for Huakalero
0
349
Member Avatar for Salman. S

My code: [CODE] from MySQLdb import * sql_q = '("6 bandicoot crescent doolandella brisbane qld","inala","3","7"),("inala brisbane","forest lake brisbane","3","9")' connection = connect(host = 'localhost', user = 'python', passwd = '******', port = 3306, db = 'logbook') cursor = connection.cursor() cursor.execute('INSERT INTO log VALUES' + sql_q) cursor.commit() [/CODE] I seem to get …

Member Avatar for sergb
0
209
Member Avatar for markfw

Hi Just a general question about PySide (menubar) and UI programming. I was thinking to add menubar to my program that has a "Setting" option which let people to change the setting of the program :-). Now the question is, what is a right/correct way of saving those settings? Should …

Member Avatar for Gribouillis
0
118
Member Avatar for ultimatebuster

Are there designer + IDE that's kind of like the Visual Studio suite for PyGTK or PyQT? [B]Again, don't clutter up the sticky with questions. Ask question in the regular forum.[/B]

Member Avatar for vegaseat
0
133
Member Avatar for dustbunny000

I was wondering if there was a difference between Python and ActivePython. Is there an advantage to using one over another?

Member Avatar for Ene Uran
0
97
Member Avatar for drak0

Hello, this is my first post on DaniWeb so I hope you'll go easy on me ,and my english.I'm working on a implementation of the AES algorithm in python;my app is supposed to encrypt the contents of files, and it does, yet it is kind of slow.I've optimized the code …

Member Avatar for drak0
0
627
Member Avatar for dustbunny000

I keep getting this error: error: unable to find vcvarsall.bat What is vcvarsall.batand why do I need it? I'm new to programming. Please explain as simply as possible!! Thanks!

Member Avatar for Gribouillis
0
249
Member Avatar for Salman. S

Hi, I was wondering if there would be a way to use Python to retrieve information from Google Maps - e.g. I want to get the distance and time from place 1 to place 2. I don't necessarily want any code or anything I just want some information for a …

Member Avatar for slate
0
60
Member Avatar for mukthyar1255

Hi, Thank you,I have some doubt in python programming like 1)Difference in between module,library,package. 2)what is difference in between built in and keyword. Eg: None,True is Builtins not keywords. 3)what is the use of writing the code(to call main method) if __name__=__main__:main rather than simple mian call main() 4) can …

Member Avatar for Lardmeister
0
302
Member Avatar for mukthyar1255

hi, i am working on windows 7 platform,please tell me how to install and configure third party packages,to use that package in some other python program Thanks mukthyar

Member Avatar for snippsat
0
205
Member Avatar for novice20

hi, using ftplib.storbinary(), i am able to successfully upload files of size 60KB, but not of size 7,218 KB and also 26 KB... I am wondering why is this happening??? should file sizes be a multiple of 10...or what is the actual problem??????????? any reply would be greatly helpful....... I …

Member Avatar for Schol-R-LEA
0
133
Member Avatar for novice20

Hi all... I am trying to upload 4 files on a local disk, onto a remote ftp server. All of them are in the same folder(in local machine). I am using the storbinary function of ftplib. Following are the file sizes: 1-- 70 KB 2-- 60 KB 3-- 73 KB …

Member Avatar for novice20
0
116
Member Avatar for mukthyar1255

Hi, i am new to python programming,please tell me the program to send sms from pc to Mobile in python programming thanks mukthyar

Member Avatar for Gribouillis
0
48
Member Avatar for Noob_Programmer

hi im new to python and programming, and I have just learned loop and nesting statements. I dont understand how to create functions and all that. could anyone come with some good suggestions to make my crappy script better? here is my script: [CODE]print 'choose option' print 'a) fortune telling' …

Member Avatar for griswolf
0
99
Member Avatar for rodm

hi, i am a python beginner, at the moment just playing_with/ testing/learning the language, and i must say that i love it. i intend to use it for a new project but i have a question about ... performance. for my project cpython is absolutely ok but, still, i have …

Member Avatar for woooee
0
202
Member Avatar for prakashr85

Friends I need to search for some strings like 'info stat, waiting, connecting, connection pending' in the source txt file those lines which has the strings need to be extracted and saved to a new file. [CODE]import re import os import sys file = open("C:\Users\Administrator\Desktop\logs test\source.txt", 'rU') script = file.readlines() …

Member Avatar for TrustyTony
0
96
Member Avatar for s1w

Problem looks easy. I havent issue like this in other languages, I cant find reason. PythonScript for Notepad++: non-greedy html comment removal for entity: <!-- <input id="file_upload" type="file"/> --> ass --> python script: (?P<begin> and ?P<end> group names are for clearness) [code]import re line = editor.getCurLine() p = re.compile('(?P<begin><!--+)(?P<between>.*?)(?P<end>--+>)') if …

Member Avatar for s1w
0
200
Member Avatar for vom53

Good morning/afternoon/evening, My high school Calculus teacher is requiring our class to program using VPython. Here is the link to the projects we are required to do: [URL="http://www.laquintahs.org/ourpages/auto/2007/5/15/1179207882248/math_programming%20_projects.doc"]Projects[/URL] I was able to finish Project #1 because my teacher provided the code and I just had to edit some parts, but …

Member Avatar for vom53
0
77
Member Avatar for HelloPeople1

Hi guys I'm making a top down shooter game using sprites. I have created all my game but one part, how the enemy shoots. Basically I was wondering how I could check if there was a wall sprite between my player sprite and my enemy sprite. This would be so …

0
61
Member Avatar for markfw

Hi How can I run the function from function name? Here what I have and it gives me an ERROR. Can someone explain why and how to fix it. Thanks ContantsGlobal.py [CODE] CMD = ["02", "A0"] [/CODE] Test.py [CODE] import ConstantsGlobal as GCONST class Test(object): def __init__(self): self.__dic = dict(("0x"+f, …

Member Avatar for markfw
0
167
Member Avatar for mukthyar1255

Hi, i am working was python script developer,i want to write certification exam(certified professional) in python,can you name such cetifcation exams? Thanks mukthyar

Member Avatar for Schol-R-LEA
0
137
Member Avatar for bleedblue

I am creating a phonebook and i have some problems. I get everything to work except im having trouble deleting an entry and also when i add an entry im having trouble sorting it in alphabetical order. This is my code below if someone can help it would be much …

Member Avatar for TrustyTony
-1
183
Member Avatar for vom53

------------------------------ [U][B]Problem:[/B][/U] Given a slider x-value find and plot the equation of the line tangent to a given curve f(x) together with the function f(x). ------------------------------ [CODE]from visual import * def function(): print "Type in your function." return raw_input("Enter it again, %s." % (yn)) from visual.graph import * # import …

Member Avatar for vom53
0
132
Member Avatar for rijvana

hi users.. now i created one application in linux by using python. now i want 2 create setup file using distutils package 2 installation process.. i saw many of the setup file in other application.. each application has diffrent types of setup file.. so it make me some confusion.. help …

0
101
Member Avatar for imperialguy

Some details of my machine and installed packages before proceeding further: [B]Mac OSX version: 10.6.6 Python version: Activestate Python 2.7.1 wxpython version: wxpython 2.8 (uses Carbon API hence limited to 32-bit mode arch only) [/B] I installed wxPython2.8-osx-unicode-py2.7 from wxpython website using their .dmg installer file. This package uses the …

Member Avatar for jingda
0
297
Member Avatar for imperialguy

Before proceeding further, my system configuration is as follows: Mac OS X 10.6.6 MATLAB 2010b ActiveState Python 2.7 I have a gui built using matlab. I wrote the following python script to open that matlab gui using pymatlab python module: [code]from pymatlab.matlab import MatlabSession session = MatlabSession() session.run('cd ~/ratter/ExperPort') session.run('addpath(genpath(pwd))') …

0
96
Member Avatar for hondros

Hey there. I've been programming in Python for about a month now. I've created simple programs for myself, such as games and e-mail applications. Still getting GUI down, I'll post if I need help there. Anyways, here's my problem: Running: Windows XP Python: Python 2.6 I installed the newest version …

Member Avatar for Eswarimallur
0
2K

The End.