Hey there,
I can't figure out how to make Jython realize that the pixel is either (0,0,0) or (255,255,255). Basically I'm just trying to convert all white pixels to black and vice versa.
Here's what i have sofar :S
def changeBlackWhite(picture):
for x in range(getWidth(picture)):
for y in range(getHeight(picture)):
...
I have read from the django-jython wiki that 1.1.1 is not compatible with django 1.2, and that jython does not works with the default django backend.
Does this means I'm unable to use django 1.2 with jython at the moment?
...
I'm migrating some code from Python to Jython, and it currently uses MySQLdb.cursors.SSCursor to fetch the rows one by one instead of loading them into memory in bulk.
In Jython, I'm using zxJDBC to connect to the database, but I see no reference to SSCursor, and very few search results for zxJDBC and TYPE_FORWARD_ONLY, which is the Jav...
I like the python shell in ubuntu, it looks pretty, and I want to run jython from there. Can this be done somehow? Woo crazy saturday night.
...
I have created a Jython app and I would like to distribute it to my friends. I don't want them to have to install Jython by themselves. They'll just have Java SE (JRE) installed and I want to pack my application in a way that they will be able to run it just by double clicking on a file. The application is a desktop GUI app.
I was just ...
I am looking at building a Scala web app that will have lots of code snippets in many programming languages that I would like to hightlight. It looks like one of the best, most popular syntax highlighters is Pygments, a Python tool. I downloaded Jython and was able to load first it and then Pygments from within my Scala REPL. However, al...
Does anyone know this?
ncm-xen1:/usr/lib64/python2.6/site-packages # ls libvirt*
libvirtmod.so libvirt.py libvirt.pyc libvirt$py.class
ncm-xen1:/opt/jython2.5.1 # ./jython
Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
[Java HotSpot(TM) 64-Bit Server VM (Sun Microsystems Inc.)] on java1.6.0_14
Type "help", "copyright", ...
I want to perform a comparison of multiple implementations of basically the same algorithm, written in Java, C++ and Python, the latter executed using Pypy, Jython and CPython on a Mac OS X 10.6.4 Macbook Pro with normal (non-SSD) HDD.
It's a "decode a stream of data from a file" type of algorithm, where the relevant measurement is tota...