am currently working on a data mining/ info vis/ remix project, and could use some help with Processing. For the past several months, I have been data mining tweets by selected hashtags. Currently, I am storing #wikileaks, #tunisia, and per today's 'Day of Revolution' in Egypt, #Jan 25 (among others). The beta is this simple, craigslist-like interface for now where data is graphed by language. http://rim.r-shief.org/ (Please be patient, beta takes some time to download).
Using Processing, I am trying to pull this data directly from the MYSQL database in order to do some interesting visualization of the data. I have also recorded live streams of today's protests in Cairo (covered also on CNN, Al Jazeera, as well as online) and am working with a DJ to get a sountrack -- which I would like to mix with the data from the tweets: http://rim.r-shief.org. I am working to create an interesting Information Visualization of this relevant data TODAY if possible. The timing, I think is important. I feel like there is an urgency around this data -- it would be quite timely if I can make something fast.
So what I have so far is this code that, I think, is connecting to the MYSQL database I have hosted:
import processing.net.*;
Client myClient;
int dataIn;
void setup() {
size(800, 600);
// Connect to the local machine at port 5204.
// This example will not run if you haven't
// previously started a server on this port
myClient = new Client(this, "67.210.123.5", 22);
}
void draw() {
if (myClient.available() > 0) {
dataIn = myClient.read();
}
background(dataIn);
}
However, I am not sure how to take it from there. I am not even sure how to check that this is working? And is the next step, to write arrays? Or would this be better to do otherwise? I am not too familiar with Processing language. If you could offer me any guidance, I would be much appreciative.
I am available all day today by email or by phone at 202-462-6242.