MongoDB, Vagrant, and Neon lessons

Wandering through lots of ways to break code, and discovering all sorts of new things…  Keeping them here for my own mental reference – TL;DR for most of my likely readers…

  1. MongoDB
  2. Vagrant
  3. Neon

MongoDB:

  • Invoked fields with spaces in them.. See doc[“Thing with a space”]
  • Replaced those double quotes with single quotes, when invoking within a Puppet execution
  • Ran a function within a forEach to let me do a calculation for a new field – in this case, a z-score for each US state represented within a record
  • Learned about skip() and limit() – highly useful when needing to jump to arbitrary records
  • find({}, {“field1”: 1}} – return a subset of fields from a record to give me a nicer way to jump through data

Vagrant:

  • logging to help me figure out where things are ka-busted

Neon:

  • query.aggregate

 

Next up: d3!  Except that I had hoped to be well waded into d3 by this time today already.  Grrr…

 

Leave a Reply

Your email address will not be published. Required fields are marked *