- Download Spark 1.4 to your local machine (laptop, or PC)
- Go to 192.168.1.1 to get local IPs for newly connected RPis
ssh [email protected]
(default password forpi
user israspberry
)
ssh [email protected]
(default password for pi
user is raspberry
)#include <iostream> | |
#include <string> | |
#include <curl/curl.h> | |
static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *userp) | |
{ | |
((std::string*)userp)->append((char*)contents, size * nmemb); | |
return size * nmemb; | |
} |
1. Go to https://dev.twitter.com/ | |
2. Click on "Sign In" in the upper-right corner. | |
* There is a link to sign up under the username field if you do not already have a Twitter account. | |
* If you sign up for a new account, you'll have to confirm your email before you can get an API key. | |
3. Enter your credentials and sign in. | |
4. Back at https://dev.twitter.com/, click on your avatar in the upper-right corner, then My Applications. | |
5. Click on "Create a new application". | |
6. Fill out the information, agree to the Rules of the Road, do the captcha, and click on "Create your Twitter application". | |
7. In the application page that comes up next, copy down the "Consumer key" and "Consumer secret". This is half of the key info. | |
8. Click on "Create my access token" at the bottom of the application page, under "Your access token". |
// This script sets OSName variable as follows: | |
// "Windows" for all versions of Windows | |
// "MacOS" for all versions of Macintosh OS | |
// "Linux" for all versions of Linux | |
// "UNIX" for all other UNIX flavors | |
// "Unknown OS" indicates failure to detect the OS | |
var OSName="Unknown OS"; | |
if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows"; | |
if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS"; |