HNHacker News
TopNewBestAskShowJobs

nekedorff

4 karma · joined October 21, 2012

Bridging the gap between data, business, innovation and people within media
submissionscomments
nekedorff··on RethinkDB: new documentation site, cookbook with examples, practical guides
Great work with the new docs! I think there's a missing comma before the secondary index object argument in the cookbook at "Efficiently retrieving multiple documents by secondary index":

  r.table("posts").getAll(1, 2, 3 {index: 'author_id'}).
    run(connection, function(err, result) {
        if (err) throw err;
        console.log(result);
  })
nekedorff··on Jq - a lightweight and flexible command-line JSON processor
Very nice tool! I'm getting syntax errors from the Twitter examples though (and everytime I try to use underscores):

<edit>Created an issue on Github</edit>

  curl 'http://search.twitter.com/search.json?q=json&rpp=5&include_entities=true | jq '.results[] | {from_user, text, urls: [.entities.urls[].url]}' 

  error: Invalid character
  .results[] | {from_user, text, urls: [.entities.urls[].url]}
                    ^
  error: syntax error, unexpected IDENT, expecting '}'
  .results[] | {from_user, text, urls: [.entities.urls[].url]}
                    ^^^^
  2 compile errors
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
  100  5970  100  5970    0     0  11969      0 --:--:-- --:--:-- --:--:-- 23050