We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello Forum!
I am a high school teacher attempting to go through a Data Visualization Tutorial by Jer Thorp
I am unable to get past the simplest step when authenticating my Google spread sheet in the code. (At least I think this is the problem but I am not even close to being an expert :-) This tutorial is from 2009 and I am wondering if updates have occurred that change how one enters in the identifiers for a Google spread sheet (key, user name and password) so that they connect with the other bits of code in this preliminary data visualization tutorial.
This is the code:
http://www.blprnt.com/tutorials/MyRandom.zip
(If you don't want to download from here, the link is in the seventh paragraph where it says in red "this sample sketch"
When I put in my credentials (key, name, password)
I get this error:
"Cannot find a class or type named "Set"
Does this error seem like it might be connected with authenticating my Google doc? Or, am I missing something else?
Thanks for your help!
Answers
From Processing v2 and on, it selectively imports Java's interfaces & classes.
For example, if you have the need for interface Set, you gotta
import java.util.set;
:http://docs.oracle.com/javase/6/docs/api/java/util/Set.html
Hi GoToLoop,
Thank you for this answer! It is so hard to learn code with old tutorials on updated programs. My question then is with Processing v2, will it be as easy to use the ready made code put forth by this particular tutorial? Or, does it need to be substantially revised to import simple data sets from Google spread sheet and follow along?
Apart from the lack of some auto-imports, there's no many crucial differences between P1 & P2.
But I dunno anything about those Google libraries though! :-SS
Ah ok - thank you!