Skip to content

Instantly share code, notes, and snippets.

@chadoh
Created April 13, 2011 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chadoh/917800 to your computer and use it in GitHub Desktop.
Save chadoh/917800 to your computer and use it in GitHub Desktop.
mongo.cloudfoundry.com has some typos
MongoDB browser shell version: 0.1.3
connecting to random database
type "contest" to learn how to enter to win a MongoDB mug or backpack!
type "tutorial" to start the MongoDB tutorial
> contest
10gen is giving away MongoDB mugs and backpacks.
To enter the giveaway, simply save your contact information to the
'info' collection. For example, to save your name and email address, you'd enter:
db.info.save({name: "Meghan", email: "meghan@10gen.com"})
You can then query the collection to make sure your data was saved:
db.info.find()
"name" : "Meghan",
"email" : "meghan@10gen.com" }
Winners will be notified in the coming weeks.
> db.info.save({name: "Chad Ostrowski", email: "stuff", twitter: "@chadoh"})
"ok"
> db.info.find()
[
{ "_id" : { "$oid" : "4da5c5bab3dc556ff1000003" }, "name" : "Chad Ostrowski", "twitter" : "@chadoh", "email" : "stuff" }
]
> db.info.find({"name" : "Chad Ostrowski"})
[
{ "_id" : { "$oid" : "4da5c5bab3dc556ff1000003" }, "name" : "Chad Ostrowski", "twitter" : "@chadoh", "email" : "stuff" }
]
@chadoh
Copy link
Author

chadoh commented Apr 13, 2011

Line 16 has an unbalanced closing bracket.

@chadoh
Copy link
Author

chadoh commented Apr 13, 2011

Also, the page has some unnecessary right-left scrolling caused by the MongoDB icon. It's width is being set to 960px, setting it to 185px fixes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment