Create thumbnail images for jpegs with python
As the title says i am looking for a way convert a huge number of images into thumbnails of different sizes , How do i go about doing this in python ...
As the title says i am looking for a way convert a huge number of images into thumbnails of different sizes , How do i go about doing this in python ...
B=l.append((l[i]+A+B)) l is a list here and i am trying to append into it more value for it to act as an array . But its still giving me error like list index out of range . How to get rid of it ? ...
A=s.append(s[i]+A+B) A=s.append(s[i]+A+B) TypeError: unsupported operand type(s) for +: 'long' and 'str' What does this error mean ? A and B are strings and s is a list ...
Hi all, There is a problem when I used the pylibmc. When I "import pylibmc", then I'll get some error following: ImportError: /usr/local/python2.6/lib/python2.6/site-packages/_pylibmc.so: undefined symbol: memcached_server_list. My enviroment are Python 2.6.5, libmemcached 0.39, memcached 1.4.5 So, how can I solve it? Thanks very muc...
I have a complex build process to generate a couple of python extension modules (.pyd). I want to include these in my setup.py for use with distutils. The distutils page talks in length about how to add extension modules from source, but I'd want to simply package these precompiled .pyd. What is the best practice to do this? Eventually,...
I am trying to extract the content of a single "value" attribute in a specific "input" tag on a webpage. I use the following code: import urllib f = urllib.urlopen("http://58.68.130.147") s = f.read() f.close() from BeautifulSoup import BeautifulStoneSoup soup = BeautifulStoneSoup(s) inputTag = soup.findAll(attrs={"name" : "stainfo"})...
i want to create a string S , which can be used as an array , as in each element can be used separately by accesing them as an array. ...
class test(): attr1 = int attr2 = int t = test() x = "attr1" I want to set/get value of attribute of t corresponding to x. How do i do that ? Thanks in advance. ...
i would like to do bitwise exclusive or of words in python but xor of strings are not allowed in python . so how to do it ? ...
I'm using Google appengine for developing an web application that is meant to be used on both the browser and iphone. I have purchased a domain name for this application, so that I have a pretty URL. I've used the User API for authentication. This works just fine on desktop browsers and iPhone Safari. The user could add the application ...
Hello, Java has cloning methods. How can I do it on a list in python? ...
I am in a need of programatically convert an Word-XML file into a RTF file. It has become a requirement, because of some third party libraries. Any API/Library that can do that? Actually the language is not a problem because I just need to work done. But Java, .NET languages or Python are preferred. ...
Hi I am learning python and have this error . I can figure out where\what the error is in the code. File "<string>", line 1, in <module>. Name = "" Desc = "" Gender = "" Race = "" # Prompt user for user-defined information Name = input('What is your Name? ') Desc = input('Describe yourself: ') When i run the program it outputs Wha...
hi im looking for some modules for python 2.5 whitch allows to run and executes javascript ... any ideas? ...
Hi, I am working on a project involving insertion a lot of data in to the database. I am wondering if anybody knows how to fill 2 or 3 tables in the database at the same time.An example or psueodecode would be helpful. Thanks ...
Hi When trying to extract the title of a html-page I have always used the following regex: (?<=<title.*>)([\s\S]*)(?=</title>) Which will extract everything between the tags in a document and ignore the tags themselves. However, when trying to use this regex in Python it raises the following Exception: Traceback (most recent call l...
I have build a static web interface for searching data from some tables in my PostgreSQL database. The query website consists of a simple textfield for entering the search term, the result website presents the results as a simple html table. The server side code for searching the PostgreSQL database and returning the results is written i...
i would like to pass values from python to a c++ program for an encryption from inside a python program and then return the value from there to the python program . how to do it? ...
I have a complex html DOM tree of the following nature: <table> ... <tr> <td> ... </td> <td> <table> <tr> <td> <!-- inner most table --> <table> ... ...
Seems that even after unchecking the option in the PyDev/Debug preferenecs pane to launch in the background, once it's launched I have to go to task manager to kill the python process. ...