I am Hack Sparrow
Captain of the Internets.

MongoDB Pagination – using skip()

Curious how pagination might be implemented in MongoDB? Let's have a data set to play around with so that we can learn by examples. Create a collection named companies and add some documents on it. [code] db.companies.insert({name:'Google'}) db.companies.insert({name:'Facebook'}) db.companies.insert({name:'Apple'}) db.companies.insert({name:'Microsoft'}) db.companies.insert({name:'Oracle'}) db.companies.insert ...

Install MongoDB on Ubuntu

Having a tough time trying to install MongoDB on Ubuntu? This post will show you how to get MongoDB running on your Ubuntu box. Instead of compiling from source, we will be installing MongoDB using apt-get. Compiling MongoDB is a pain in the ass with all its very specific dependencies, so I personally prefer installing the compiled binary. There are two MongoDB packages available for you to choose from - mongodb and mongodb-10gen. T ...

Don’t use MongoDB

I saw a rather shocking tweet from @newsycombinator today saying "Don't use MongoDB". The article is hosted on pastebin.com and contains no author information. I am reposting the article on the website, just in case the one on pastebin disappears. Don't use MongoDB ================= I've kept quiet for awhile for various political reasons, but I now feel a kind of social resp ...

The MongoDB Tutorial

Even as I write this, there are numerous MongoDB tutorials on the Web, including the official one at www.mongodb.org. They all have a big problem - they all suck. They are either a headache to follow, or miss the basics, or are extremely hard to absorb information from. I want to change that, I want to create the best ever MongoDB tutorial on the Web - a tutorial that efficiently focuses on orienting users to MongoDB. While this tutorial is not g ...

How to install MongoDB on Mac OS X

If you are looking for a straightforward, no-headache way to install Mongodb on Mac OS X you have come to the right place. If you are looking for a customized, tricky installation from source, you need to look somewhere else. There are many ways to install MongoDB on MacOS X: from source, binary download, MacPorts, and Homebrew to name what I am aware about. Go the Homebrew way, and ditch the rest. In fact, use Homebrew for managing all your packages ...