Hello,
I am curious if there is an algorithm/method exists to generate keywords/tags from a given text, by using some weight calculations, occurrence ratio or other tools.
Additionally, I will be grateful if you point any Python based solution / library for this.
Thanks
...
I am new to Python & AppEngine.
I am trying to use Feedparser to cache a feed to a datastore.
My code is at http://pastebin.com/uWPdWUm2
For some reason it doesn't work - it does not add the data to the datastore.
Any ideas? I am stumped.
...
Hi
i wont to store connection tu soap server in python session.
When i try to do this,
session['all']=Client(url)
I getting error:
MethodNotFound: Method not found: 'server.___getinitargs___'
How to store suds connection in session?
...
Could someone suggest a Perl module equivlant/or has the most funcionality of the pydbg module on Python?
...
Possible Duplicates:
Accurate timing of functions in python
accurately measure time python function takes
How can i mesure and compare the running times of my algorithms written in python .Also point me to a nice algorithms site/forum like stackoverflow if you can.
...
I'm using jEdit 4.3 pre 16. As I've mentioned on the title, when I'm typing, sometimes underscore characters disappears. I tried to change fonts, line highlighting etc. but it didn't work.
For example when you type:
if __name__ == 'main':
it displays:
if name == 'main':
When you click on name, it displays the underscores again....
hello ..
i have the same code as wx Doodle pad in the wx demos
i added a tool to paste images from the clipboard to the pad.
using wx.DrawBitmap() function , but whenever i refresh the buffer .and call funtions ( drawSavedLines and drawSavedBitmap) it keeps putting bitmap above line no matter what i did
even if i called draw bitmap ...
I want to have a file dialog only allow directories, here's what I've been trying:
fileDialog = QtGui.QFileDialog()
fileDialog.setFileMode(QtGui.QFileDialog.ShowDirsOnly)
filename = fileDialog.getOpenFileName(self, 'Select USB Drive Location'))
Thank You
...
Hi, I have around 5 GB of html data which I want to process to find links to a set of websites and perform some additional filtering. Right now I use simple regexp for each site and iterate over them, searching for matches. In my case links can be outside of "a" tags and be not well formed in many ways(like "\n" in the middle of link) so...
Hello everyone. My question is if we can save the items on ListCtrl so everytime someone opens the application, the items are there and if the user removes it, it also removes from the configuration.
I know that I can use wx.Config and I'm trying to accomplish using that but I don't know how to read it in a way to accomplish what I want....
Could someone point me to some?
...
I've followed all instructions given on this site with an empty .vim folder, but for some reason, python highlighting is not working on my system. It only highlights the comments and a few variables - nothing like the picture.
http://concisionandconcinnity.blogspot.com/2009/07/vim-part-i-improved-python-syntax.html
Is there some other ...
Hi,
I want to run the 'time' unix command from a Python script, to time the execution of a non Python app. I would use the os.system method.
Is there any way to save the output of this in Python? My goal is to run the app several times, save their execution times and then do some statistics on them.
Thank You
...
I am using python and want to create a fullscreen window. I know about the pygame.FULLSCREEN flag but when I use that there's areas of black around the screen. Is there any way to get the monitor size using python so I can make the window the correct size?
...
I spent some time looking around, and all I could find is Jython. It's an option, but is there something that could be used in a more pythonesque (simpler) way?
...
Hello there,
Recently I installed trac in one of my dreamhost domains. I followed the instructions of http://trac.mlalonde.net/wiki/CreamyTrac and everything worked perfectly. At least i thought that was the case.
After a few days, i started to notice that i was getting random 500 pages. I quickly checked the error log, and found a bun...
I'm writing a cherrypy app and I was wondering what the best way is for structuring my handlers and code for larger applications?
I realize assignment is simple trough cherrypy.root, but what are some practices for writing the handlers and assigning them?
(Allow me to prove my confusion!)
My initial thought is to write a standard handl...
I'm trying to write a Syslog listener and so far so good on getting it to accept incoming messages through TCP but I also want UDP to function.
This is the UDP server code I'm using, which works using a python client app. I also have another app which also works just using the python client app.
# Server program
# UDP VERSION
from so...
Hey guys so im trying to use a while loop to add objects to a list.
Heres bascially what i want to do: (ill paste actually go after)
class x:
blah
blah
choice = raw_input(pick what you want to do)
while(choice!=0):
if(choice==1):
Enter in info for the class:
append object to list (A)
if(choice==2):...
I have several scripts that take as input a directory name, and my program creates files in those directories. Sometimes I want to take the basename of a directory given to the program and use it to make various files in the directory. For example,
# directory name given by user via command-line
output_dir = "..." # obtained by OptPars...