Skip to content

Instantly share code, notes, and snippets.

View ankeshanand's full-sized avatar

Ankesh Anand ankeshanand

View GitHub Profile
//Use the JSON Parser to generate the database
Json::Value root;
Json::Reader reader;
std::ifstream dataFile("location_data_large.json");
bool parsingSuccessful = reader.parse(dataFile,root,true);
if ( !parsingSuccessful )
{
// report to the user the failure and their locations in the document.
std::cout << reader.getFormatedErrorMessages() << "\n";
}
cd /opt/graphite/bin
PYTHONPATH=`pwd`/whisper ./carbon-cache.py --debug start