I have my twitter sketch up and running, but was hoping to capture the same style/layout/design that Twitter uses. ie, I'd like to have the user image, same text, etc.
Anyone have any suggestions? Can I do this through the twitter4j library?
I have a hard time getting my head around functions and returning values ... and scope.
I am trying to return a value ("lyric"), inside a loop, using if statements.
For some reason I can only get the "lyric" String when it's inside the If statement,,, and thus can not return it at the end of the get_lyrics function...
When I try to call "lyric" outside the IF statement, it is Null....
Any help?
Here is the code I'm having problems with. Full code is at the bottom.
I'm able to load and run sketches (without libraries) perfectly fine using the Wordpress plugin processing-js-easy, but I want to upload sketches that contain libraries. When I do, the sketches don't complete.
I'm relatively new to processing, so if you have any ideas, please speak to me like I'm a chair.
I've tried uploading the .jar file into the same directory as the .pde (ie wp-content-uploads), but that doesnt work... any other ideas???
Thanks
d
note: I realize I posted this in the wrong forum/area. apologies
i'm wondering if there are ways to make line() appear non-perfect/linear. i'd like to use the line function (or any shape function for that matter) that appears as if the shape was drawn by hand ... giving a more rough appearance.
I'm a new programmer, so please excuse my poor use of language.
I'm trying to scrape specific HTML text off an URL.
My strategy is (was) to use the proHTML library, from which I am able to create a 'List" of all the page elements and text (language?). I then want to convert that List into a String, so I can split the List and retrieve my specific text that I'm after (I'm assuming I need to convert List to String - I just don't know how to do this, or if there is another way around this).
Thanks for your help/suggestions.
dan
Code:
import prohtml.*;
HtmlList htmlList;
void setup(){
size(100,100);
//enter your url here
htmlList = new HtmlList("http://www.lyricfind.com/services/lyrics-search/try-our-search/?q=ape+punch+run");
I'm trying to make a 2D array with Strings. I'd like to select the 1 stanza at a time (of 3 sentences), then separate them into individual lines later. I have no problem creating a 1D array but when I try to make it into a 2D String array I'm a bit confused.
My code for a 2D array looks like this -- obviously i'm going something wrong...
Strings [][] JayZlyrics = {
{"Back when Police was Al'Qaeda to black men",
"While I was out there hustling sinning with no religion",
"He was off the wall killing for a living"};
{"Rap harder like I'm part of a cult"
"Like Cuban cigar maker 'cept I'm hard to smoke"
"And y'all choke motherfuckers"},
{"Friend or Foe, y'all all my muh' fuckers"
"If you haven't heard, I'm Michael Magic and Bird"
"all rolled in one - cause none got more flows than Young"},
};
text(JayZlyrics[1][0], 10, 0); // want to select select second stanza, 1st line
text(JayZlyrics[1][1],10, 20); // want to select select second stanza, 2nd line
text(JayZlyrics[1][2], 10, 40); // want to select select second stanza, 3rd line