Yesterday my friend Khan posted this: (plain text source code) Sure looks like JavaScript, so pick your favorite browser console or Node.js. Execute the statements one by one. The first one works and the second does not. What gives?
Tag Archives: javascript
Oplog: a tail of wonder and woe
First, your TL;DR: Stress test your Meteor app. Oplog tailing may be less efficient for particular workloads. Background My work involves using crowdsourcing to assess and improve technical skill. We’re focusing on improving basic technical skills of surgeons first because—no surprise here—it matters. A more skilled surgeon means patients with less complications. Being healthy, not …
Vim + Meteor talk today
I’ll be speaking about Meteor dev with Vim at the Seattle Meteor Meetup on Worldwide Meteor Day. Come on down! Source code Live slideshow My Vim configuration
Web Framework Flavor of the Month
I’ve been playing with Meteor a bit lately. It’s a “kitchen sink” system for writing web apps, complete with a database (MongoDB), server-side (Node.js), and client-side stuff. It’s all JavaScript. It’s pretty fun for little experiments. I can imagine certain kinds of websites it would be good for (web-based chat, HTML5 games, collaborative editors, and …
List largest MongoDB collections
I wanted to know the top five largest collections in my MongoDB database in terms of document count. This JavaScript gets the job done. // config var dbname = ‘dev_bv’; var measure = ‘count’; // or ‘size’ var numTopCollections = 5; function updateTopCollections(collection, stats, topCollections) { var thisCollectionObj = { ‘name’ : collection, ‘count’ : …