I want the algorithm for creating a Treemap visualization.
Something like this: An Easy Way to Make a Treemap
Problem is that I do not want to use R ... and I want the source-code. Preferably in Python or Java.
Thing is that I have to customize it ... instead of colors I want images, so something that gives me coordinates would be awe...
Hey all,
Here i want google adsense on my website
i developed website on python and google appengine
my website is 1 month old can i get google adsense for this one?
if yes than how??? and no than whats the basic requirement??
...
Is there a GUI for IPython that allows me to open/run/edit Python files? My way of working in IDLE is to have two windows open: the shell and a .py file. I edit the .py file, run it, and interact with the results in the shell.
Is it possible to use IPython like this? Or is there an alternative way of working?
...
Hi
I am lost somehow, I want to do something like below which filter by the ID.
id = 1000
query = Customers.all()
query.filter('ID =', id)
or
query = db.GqlQuery("select * from Customers where ID = %s" % id)
What is the correct method to filter by ID?
...
Quite often the error reports coming via e-mail are less than useful in tracking bugs. Most often this is due to missing session data and username of the user triggering the error. Is there a project or a library I could use to get more complete error reports?
...
when i easy_install greenlet(also eventlet) as the documents says in ubuntu 10.04 i got the error above.
is there anyone know why?
Expect your help!
And I have install build-essential
As I canot take the format right here, so I paste the message printed out there http://sugelawa.appspot.com/?p=35001
Thank u very much!
...
I've looked at the pickle documentation, but I don't understand where pickle is useful.
What are some common use-cases for pickle?
...
I want to create path of files from list.
pathList = [['~/workspace'], ['test'], ['*'], ['*A', '*2'], ['*Z?', '*1??'], ['*'], ['*'], ['*'], ['*.*']]
and I want
[['', '~/workspace', 'test', '*', '*A', '*Z?', '*', '*', '*', '*.*']]
[['', '~/workspace', 'test', '*', '*A', '*1??', '*', '*', '*', '*.*']]
[['', '~/workspace', 'test', '*'...
I have a list of size < N and I want to pad it up to the size N with a value.
Certainly, I can use something like the following, but I feel that there should be something I missed:
>>> N = 5
>>> a = [1]
>>> map(lambda x, y: y if x is None else x, a, ['']*N)
[1, '', '', '', '']
UPD:
Thank you, all.
I decided to with the solution of ...
I want to use xattr in python, but found the xattr's keys() is empty, does that indicate the libattr feature wasn't enabled?
I've learned the libattr feature is disabled in ext3/ext4 by default, but how to enable it?
Expect your help!
Thank you~
>>> import xattr
>>> x = xattr.xattr('tiger_8a428_userdvd.dmg')
>>> x
<xattr file='tiger_8a4...
Task is:
I have task queue stored in db. It grows. I need to solve tasks by python script then i have resources for it. I see two ways:
python script working all the time. But i don't like it (reason posible memory leak).
puthon script called by cron and do a little part of task. But i need to solve problem of one working active sript ...
I need to parse some text file, create objects for various entities encountered in the text, and put them in some data structure (e.g., a list) for further processing. Example of the text:
laptop
17" dell, weight: 12 lb
desktop
24" hp
I know in advance which entities may exist in the text, and what attributes they are supposed to ha...
For a strange reason I cannot find the way to specify spines configuration in Python's matplotlibrc file. Any idea on how to cause matplotlib not to draw upper and right spines by default?
More about info about spines in matplotlib is here
Thank you
...
I'm using Python 3.1.2 (Mac OS X 10.6) and found this weird behavior (I'm a newbie, btw):
On the interactive prompt:
>>> fraction = 4 / 3
>>> print(fraction)
1.33333333333
>>> print(type(fraction))
<class 'float'>
However, if I do the same thing in a script, results are different:
## fraction.py
fraction = 4 / 3
print(fraction)
pri...
Hi,
I am trying to create a Python function that can take an plain English description of a regular expression and return the regular expression to the caller.
Currently I am thinking of the description in YAML format.
So, we can store the description as a raw string variable, which is passed on to this another function and output of th...
How do I add a small filled circle or point to a countour plot in matplotlib?
...
I have an open source project written in python , it has some Forms and I want to modify a few things in the code and in the forms but it is my first time with python and I don't know what IDE to use and how to start ..my basic question is can I deal with forms in python like c#, java ...etc ? and how should I start ?
...
I want to create a bytecode-only distribution from distutils (no really, I do; I know what I'm doing). Using setuptools and the bdist_egg command, you can simply provide the --exclude-source parameter. Unfortunately the standard commands don't have such an option.
Is there an easy way to strip the source files just before the tar.gz, z...
the requirement is to generate several classes which inherits the base ORM class,
and this class may have several static properties like columns and other things,
and little bit python expressions that can be eval at run time for small business logic,
my question is, it is feasible to use antlr for such kind of things, as I'm not much f...
Hi,
I've developed a site with Python, hosted on Google Apps, and I want to send emails from that site.
Is that possible, and if so, where should I look to find out how?
...