Skip to content

Instantly share code, notes, and snippets.

@cwestin
cwestin / aggregation.js
Created November 28, 2011 19:12
Mongo shell script and sample documents used for my aggregation talks 12/2011
// make sure we're using the right db; this is the same as "use aggdb;" in shell
db = db.getSiblingDB("aggdb");
// simple projection
var p1 = db.runCommand(
{ aggregate : "article", pipeline : [
{ $project : {
tags : 1,
pageViews : 1
}}
@cwestin
cwestin / aggregate.js
Created May 26, 2011 18:34
Mongo shell script and sample documents used for my aggregation talk at MongoSF
/* sample aggregate command queries */
// make sure we're using the right db; this is the same as "use mydb;" in shell
db = db.getSisterDB("aggdb");
// just passing through fields
var p1 = db.runCommand(
{ aggregate : "article", pipeline : [
{ $project : {
tags : 1,
pageViews : 1
I organize the speakers for the Bay Area Large-Scale Production Engineering
meetup (http://www.meetup.com/SF-Bay-Area-Large-Scale-Production-Engineering/ ;
take a look at the "PAST" tab to see the kinds of events we've had).
For our event on Thursday January 17 (2013), I'm thinking about using the
topic "Performance Monitoring." Would you be interested in participating by
giving a talk?
As you can see from looking at our past events, I usually pick a topic, and
then try to get 2-3 talks on that topic. Talks are usually 20-25 minutes
Re: http://www.meetup.com/Meetup-Leaders-of-the-Bay-Area/events/76594162/
I wanted to come to this event today, but unfortunately, I'm not going to be
able to make it. I live in the far South Bay, and I've got a very tight
deadline for my tech startup, and I'm trying to finish final preparations for
Burning Man next week. It may not sound like much, but I can't afford to burn
the four hours in travel time it would take to come up for this at this time;
maybe after September.... It sounds like you may be getting a little
frustrated with this meetup ("5) Is it time to give up altogether?"), so I
wanted to jot down some notes that might help.
Problems with Go
================
General
=======
Public export based on the case of a letter
- change of visibility requires renaming
Package definitions
- can add more things to a package (within the same directory) just by declaring them so