How can I run telnet command in the python GUI?
How to do it? Thanks ...
How to do it? Thanks ...
class fileDetails : def __init__(self,host,usr,pwd,database): self.host=host self.usr.usr self.pwd=pwd self.database=database def __init__(self,connection,sql,path): self.connection=mysql_connection() self.sql=sql self.path=path If I use the constructor then it gives an ...
I'm writing a web-app that uses several 3rd party web APIs, and I want to keep track of the low level request and responses for ad-hock analysis. So I'm looking for a recipe that will get Python's urllib2 to log all bytes transferred via HTTP. Maybe a sub-classed Handler? ...
Installed the Google App Engine SDK.Python 2.6 perfect. Wanted to go into images, and test locally.Installed PIL Installed Python, then ran the PIL install, worked this time. Things seemed good, but trying to do localhost image manipulation gives: "NotImplementedError: Unable to find the Python PIL library. Please view the SDK documen...
Hi! I'm using the algorithm described here to fit Gaussian bell curves to my data. If I generate my data array with: x=linspace(1.,100.,100) data= 17*exp(-((x-10)/3)**2) everything works fine. But if I read the data from a text file using file = open("d:\\test7.txt") arr=[] data=[] def column(matrix,i): return [row[i] for ro...
Does anyone have experience profiling a Python/SQLAlchemy app? And what are the best way to find bottlenecks and design flaws? We have a Python application where the database layer is handled by SQLAlchemy. The application uses a batch design, so a lot of database requests is done sequentially and in a limited timespan. It currently tak...
I have flash with big image library inside, is there way to manipulate this content by python? ...
Hello I'm using Twisted 8.1.0 as socket server engine. Reactor - epoll. Database server is MySQL 5.0.67. OS - Ubuntu Linux 8.10 32-bit in /etc/mysql/my.cnf: max_connections = 1000 in source code: adbapi.ConnectionPool("MySQLdb", ..., use_unicode = True, charset='utf8', cp_min=3, cp_max=700, cp_noisy=False) But i...
I'd like to parse a JSON string into an object under Google App Engine (python). What do you recommend? Something to encode/stringify would be nice too. Is what you recommend built in, or a library that I have to include in my app? Is it secure? Thanks. ...
I have been playing around with sorl-thumbnail for Django. And trying to understand how it works better. I've read the guide for it, installed it in my site-packages, made sure PIL is installed correctly, put 'sorl.thumbnail' in the INSTALLED APPS in my settings.py, put 'from sorl.thumbnail.fields import ImageWithThumbnailsField' at th...
I use pyro for basic management of parallel jobs on a compute cluster. I just moved to a cluster where I will be responsible for using all the cores on each compute node. (On previous clusters, each core has been a separate node.) The python multiprocessing module seems like a good fit for this. I notice it can also be used for remo...
Hi, I'm trying to program a pyramid like score system for an ARG game and have come up with a problem. When users get into the game they start a new "pyramid" but if one start the game with a referer code from another player they become a child of this user and then kick points up the ladder. The issue here is not the point calculation...
I'm developing a django application. Modules of importance to my problem are given below: globals.py --> contains constants that are used throughout the application. SITE_NAME and SITE_DOMAIN are two of those and are used to fill some strings. Here is how I define them: from django.contrib.sites.models import Site ... SITE_DOMAIN = Sit...
I am customizing Django-admin for an application am working on . so far the customization is working file , added some views . but I am wondering how to change the records link in change_list display to display an info page instead of change form ?! in this blog post :http://www.theotherblog.com/Articles/2009/06/02/ extending-the-django...
I have added a python file at google app engine. how to send a request to this file. Is this file needed to b executed explicitly? ...
I have this string: [a [a b] [c e f] d] and I want a list like this lst[0] = "a" lst[1] = "a b" lst[2] = "c e f" lst[3] = "d" My current implementation that I don't think is elegant/pythonic is two recursive functions (one splitting with '[' and the other with ']' ) but I am sure it can be done using list comprehensions or regula...
I'm trying to send push notifications to an iPhone using Python. I've exported my certificate and private key into a p12 file from keychain access and then converted it into pem file using the following command: openssl pkcs12 -in cred.p12 -out cert.pem -nodes -clcerts I'm using APNSWrapper in Python for the connection. I run the fo...
I am trying to create a GUI interface in VB to track... oh, nevermind. Basically, I want to create a GUI in python to display data, but I am finding that mathplotlib is not suiting my needs. I would like to be able to highlight certain datapoints, have more freedom in the text drawn to the screen, have animations on data movement, and h...
I know the mismatch between Object Oriented Technology and the Relational Technology, generally here. But I do not know the mismatch between MySQL and Python, and other tools, not just ORMs, to deal with the issue, missing in the latter article. Questions: How is the problem dealt between MySQL and Python? Does App Engine's non-SQL...
I have found many GPL licensed libraries for reading information from mp3s in Python. Are there any non GPL libraries? ...