Hi I'm a student from UCA just thought i would let you guys know about our micro conference going on just off Brick lane London.We have some great speakers, check it out:
Open GDNM 2012 is a three day event showing UCA Epsom BA(Hons) Graphic Design, with guest speekers Troika, Filip Visnjic (from creative applications), Nina Pope, Yuri Suzuki, and others. There are also sign up workshops by design and media practitioners, theorists, staff, students and alumni.
Located off Brick Lane, The Rag Factory. (The Rag Factory, 16-18 Heneage St, E1 5LJ) From June 1 - June 3
Im loading a picture search from the web using Pgraphic this is working fine but when i go to search the next picture, it doesn't get rid of the old picture data
So i guess what i am asking, is there a way to clear all the data in my Pgraphic after i have saved?
Hi i have been having trouble removing words from a string, i am new to strings..
i have tried using trim()
here is what i thought i could do:
String A = "one,two,three,four,five,six,seven,eight,nine,ten";
String A1 = trim(s,"three");
<--i thought i could define a piece of text to trim,sort of like split() but this throw back an error println(A1);
i might be barking up the wrong tree but basically i want to delete out the word
"three" and leave the rest of the string() as it is.
i thought that i could split the string before and after the word and then join it again, but was wondering if there was a better way.
Im trying to either mask an image with text of fill text with an image. This is an example of what i was thinking of any suggestions of things to look at would be great.
when i do this in the browser i get lots of interesting info like the logitue and latitude and the tweet text, but as soon as i put it into my sketch i can only seem to get the tweet text and for my experiment i need the longitude and latitude so i can map it.
Also it is running very slow (i get about 3 tweets ever 3 mins) i have tryed the code in another/simpler sketch to see if it was the quiry that was being slow or my sketch and it turns out its my sketch so if anyone has any ideas on how i can speed it up by editing my code that would be great.
//float for random position on my text
float xPos;
float yPos;
//float for my random color on text
float r, g, b;
//float for random text size
float textsize;
// this stores how many tweets we've gotten
int tweets = 0;
// and this stores the text of the last tweet
String tweetText = "";
void setup() {
size(1000,800);
// set up twitter stream object
TweetStream s = new TweetStream(this,
"stream.twitter.com", 80, "1/statuses/filter.json?locations=-150,-60,150,60", "TWITTERUSSER", "TWITTERPASWORD");
s.go();
background(0);
}
void draw() {
//random x/y position
xPos =(100);
yPos = (500);
background(0);
//random text size not yet working
textsize =(15);
// set up fonts
PFont font;
font = createFont("ArialMT-48.vlw", textsize);
textFont(font);
textSize(textsize);
fill(255);
// and draw the text of the last tweet
text(tweetText, xPos, yPos);
}
// called by twitter stream whenever a new tweet comes in
void tweet(Status tweet) {
// print a message to the console just for giggles if you like
// println("got tweet " + tweet.id());
// store the latest tweet text
tweetText = tweet.text();
// bump our tweet count by one
tweets += 1;
}
i have two files i made one as a simple title screen and the other as my main program i just want at mouse click to close the current sketch and open another.
first in my script i have twitter streaming longitude and latitude locations it then makes a dot on the screen at the same long and lat.
i made a "for loop" so that is saves each dot, but unfortunatly it keeps overlapping the txt that i am printing.
also this isnt realy a processing question more of a general ask it and hope for the best the quiry i am doing is producing results very slowly is it to do with my code or just the quiry i am doing.
any help or sugestions would be very welcome (i am very new to processing)
// test tweet counting (not sure if it will work)
int tweetCount;
// this stores how many tweets we've gotten
int tweets = 0;
// and this stores the text of the last tweet
String tweetText = "";
Geo tweetGeo;
// set up twitter stream object
TweetStream s = new TweetStream(this, "stream.twitter.com", 80,
"1/statuses/filter.json?locations=-122.75,36.8,-121.75,37.8",
"USSER", "PASSWORD");
s.go();
smooth();
}
void draw() {
textsize = 12;
// set up fonts
PFont font;
font = createFont("ArialMT-48.vlw", textsize);
textFont(font);
textSize(textsize);
fill(255);
//converts double to float
latiFl = (float)lati;
longiFl = (float)longi;
//map value to screen
latiMap = map(latiFl, -90, 90, 0, width);
longiMap = map(longiFl, -180, 180, 0, height);
// and draw the text of the last tweet
text(tweetText, 20, 520);
// adn its lat and long
text("lat = " + lati + " long = " + longi,20,560);
text("number of tweets:" +tweetCount, 880, 580);
for( int i = 0; i < 7000; i++){
fill(255);
ellipse(latiMap, longiMap, 5,5);
/* fill(0);
rect(0,500,1000,100);
*/
}
}
// called by twitter stream whenever a new tweet comes in
void tweet(Status tweet) {
// print a message to the console just for giggles if you like
// println("got tweet " + tweet.id());
// store the latest tweet text
tweetText = tweet.text();
tweetGeo = tweet.geo();
lati = tweetGeo.latitude();
longi = tweetGeo.longitude();
println("lat = " + lati + " long = " + longi);
// bump our tweet count by one
tweets += 1;
println("number of tweets:" +tweetCount);
tweetCount++;
}
Hi im trying to quiry twitter using json. My knowledge is very basic i was just wondering if anyone had some code/library that i could look at because i find that if i can see how someone else has done it i might be able to get my head round it :P
Hi i new to processing and i have got kind of a hard idea in mind was wondering if anyone had any links that might help me or code
Basically i have lots of different logitude and latitude positions and i would like to be able to plot them onto a world map as a little white dot.
i was thinking maybe getting the opensourse version of google maps and trying to play with that, but im kinda stuck so if anyone could help i would be rly happy :)