100% without investment online part time jobs..(adsense,datawork,neobux..more jobs) 100% without investment .no registration fee no need money Online part time jobs (googleadsense, dataentry etc)all type of jobs work from home..daily 2-3 hours earn more money without any risk.. Full details at http://adsensejobworkfulldetails.co.cc/ More adsense tips,secrets,increasing money ,seo..a... 5 Aug 2010 00:31
Struggling to convert a mysql datetime object to a python string of a different format Okey, i have many hours now struggling to convert a mysql datetime field that i retreive to a string of this format '%d %b, %H:%M' I google a lot but couldnt found out how to format it being a string Here si the code so far: try: cursor.execute( ''' SELECT host, hits, date FROM visitors WHERE page = '%s'... 7 Aug 2010 03:58
adding optionMenu items in code I have an option menu self.w = OptionMenu(self.frameNewNet, self.variable, "one", "two", "three") Is there a way to add items to this programmatically, i.e. using values from a database?... 4 Aug 2010 20:09
Python 2.6.6 release candidate 1 now available Hello fellow Pythoneers and Pythonistas, The source tarballs and Windows installers for the first (and hopefully only) Python 2.6.6 release candidate is now available: http://www.python.org/download/releases/2.6.6/ As usual, we would love it if you could download, install, and test these with your favori... 4 Aug 2010 19:04
how to pretty-print Python dict with unicode? Is there a simple way to get Python to pretty-print a dict whose values contain Unicode? (Of course, the goal here is that these printed values are human-readable.) If I run the following simple script: from pprint import pprint x = u'\u6c17\u304c\u9055\u3046' print '{%s: %s}' % (u'x', x) print {u'x':... 4 Aug 2010 20:09
scipy / stats : quantiles using sample weights from survey data There is a function scipy.stats.mstats.mquantiles that returns quantiles for a vector of data. But my data should not be uniformly weighted in an estimate of the distribution, since they are from a survey and come with estimated sampling weights based on the stratification used in sampling. Is there a routine t... 4 Aug 2010 19:04
[ANN] Websourcebrowser 0.4a released Hello, I'm happy to announce the release of Websourcebrowser 0.4a. Websourcebrowser is a program intended to get a quick overview of a project's source code. The program is controlled from a web browser which displays a directory tree and a source code file side by side. The homepage of the project is at ... 4 Aug 2010 16:53
A new syntax for writing tests Hi I just discovered today a new syntax for writing tests. The basic idea is to write a function that contains some statements, and run it via a decorator. I wonder if anyone had seen this pattern before, and how you feel about it. For myself, I quite like it. Let's suppose we want to test this trivial (... 5 Aug 2010 11:19
BundleBuilder Question I stumbled upon an article about bundlebuilder, so I was testing it a little. At first it wouldn't work and had this in the error: IOError: [Errno 2] No such file or directory: '/System/Library/Frameworks/Python.framework/Versions/2.6/Resources/English.lproj' I'm currently running OS X 10.6 with python2.6 as the... 4 Aug 2010 16:53
__init__ as a lambda Hello, Suppose class C: def __init__(self,name):self.name=name I was wondering if I could make the __init__ a lambda function, but class C: __init__=lambda self,self.name:None and then later, C('Hello') does not work; the first argument, self, is assigned all rigth, but you cannot write the se... 4 Aug 2010 20:09 |