2008-06-01

Hosting java with google code

I used the export function of Processing to create a jar of an a-star search/a* search demonstration, and added the files into my google code subversion repository. Then it's necessary to set the proper mime-types:


svn propset svn:mime-type application/java-archive astar.jar
svn propset svn:mime-type text/html index.html


Here's an example:
astar

I don't think I can embed the jar directly here, I get this error:

load: class astar.class not found.
java.lang.ClassNotFoundException: astar.class
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:168)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:119)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:599)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:721)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1781)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:650)
at sun.applet.AppletPanel.run(AppletPanel.java:324)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:271)
at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:44)
at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:158)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:155)
... 9 more


It seems like certain colormodes don't work when exporting from processing (135)- use the integer 0-255 colormode.

For a jnlp (like created with the gwt kit):

2008-05-29

K-means clustering, hough transform

The hough transform is typically used to search for lines in images, though can be generalized to other forms, and for example is used to find the edge of roads for mobile robotics applications.

I'm not sure if I implemented it quite correctly- what for example should a solid white input image look like? In any case it can make some pretty but somewhat bland curvy colored lines, below the picture on the right is the source and the left is the hough transform:



description and link to processing pde file


The k-means clustering algorithm is very simple but very interesting in it's results- an image is split into clusters and then the clusters take on the average color of the source pixels, and the cluster centers are updated in each step until convergence.




K-Means Clustering Frei0r from binarymillenium on Vimeo.

thingamajiggr

Hopefully this will go as well as the Dorkbot show from December- I have some new effects now and ought to get some more done in time for it.

2008-05-18

Senzala Capoeira at the University District Street Fair



I thought I saw this group before, sure enough I have a bunch of pictures of them from a year ago at the Georgetown Ol' Skool Carnival:


2008-04-22

Toorcon Seattle 2008- HBL Afterparty




Two turntables and a youtube feed

Projector surface #1

Not much to say about this one, I didn't have much time to prepare... next show I'll develop some new effects.