I found this blog post really insightful for understanding the differences between MongoDB and CouchDB. The key takeaways for me were in understanding the difference between the way querying works (views in CouchDB versus find queries in MongoDB) and availability versus replication (continuous availability during network partitions in CouchDB versus one master plus replication in MongoDB). This post is worth reading in its entirety.
I needed to piece together several sources (see the links at end of this post) to install CouchDB 1.1.0 on Ubuntu 10.04 LTS (Lucid Lynx).
First, get build essentials:
sudo apt-get install build-essential
Next, install SpiderMonkey 1.8.5:
wget http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz
tar -xvf js185-1.0.0.tar.gz
cd js-1.8.5/js/src
make
make install
Get the libraries required for making, configuring, and installing CouchDB:
sudo apt-get install xulrunner-dev
sudo apt-get install erlang libicu-dev libcurl4-openssl-dev
Inside the CouchDB installation’s bin directory, run:
./configure –with-erlang=/wherever/your/erlang/install/is –with-js-lib=/usr/local/lib/ –with-js-include=/usr/local/include/js/
You should see:
You have configured Apache CouchDB, time to relax.
Run (enter your sudo password when prompted during the installation):
make && sudo make install
After installation, you’ll see:
You have installed Apache CouchDB, time to relax.
Next, run CouchDB by running this command from within CouchDB’s bin directory:
sudo ./couchdb
You’ll see:
Apache CouchDB has started. Time to relax.
Finally, browse to http://localhost:5984 or http://localhost:5984/_utils/ to make sure everything worked.
Sources:
I’m working on a cross-platform mobile app with the following technologies:
While in the Urban Airship web console, I was creating a new application when I came upon the section specific to Android. The first field, Android Package, was easy enough (com.mobile.app). But I wasn’t quite sure what to put in the C2DM Authorization Token field.
After further research, I found I have to manually register for the Android C2DM service. My access was approved about two hours later.
Next step, how to create that C2DM Authorization Token? Luckily, Urban Airship provides a Python script to create the token. Within the Urban Airship Android download, there is a script named clientauth.py under the tools directory.
Just run clientauth.py, enter the Google account that was approved for access, enter your account password, and clientauth.py will print the your C2DM authorization token. Make sure to keep this token! Then paste the token into the Urban Airship field and you’re ready to create your Urban Airship application.
There are a dearth of up to date Django books that cover 1.3+ and the latest community projects. However, Reinout van Rees just announced he is working on a new Django book currently titled “Solid Django.” Hopefully this will lead to further interest in the Django project and continue the positive momentum for our community.