Makai's Blog

Month
Filter by post type
All posts

Text
Photo
Quote
Link
Chat
Audio
Video
Ask

October 2011

Great Post on MongoDB versus CouchDBopenmymind.net

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.

Link: A MongoDB Guy Learns CouchDB

Oct 29, 2011 1 note
#CouchDB #MongoDB
Installing CouchDB 1.1.0 on Ubuntu 10.04 LTS (Lucid Lynx)

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:

  1. http://wiki.apache.org/couchdb/Installing_on_Ubuntu
  2. http://wiki.apache.org/couchdb/Installing_SpiderMonkey
  3. https://github.com/oreilly/couchdb-guide/pull/339
Oct 28, 2011
#CouchDB #NoSQL
Urban Airship, Push Notifications on Android, and C2DM Tokens

I’m working on a cross-platform mobile app with the following technologies:

  1. JQuery Mobile
  2. PhoneGap
  3. Urban Airship
  4. C2DM (for Android push notifications)

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.

Oct 19, 2011 1 note
#Urban Airship #C2DM #JQuery Mobile
New Django Book in Progress

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.

Link: “I’m writing a Django book”

Oct 13, 2011
#Django #Python
Next page →
20112012
  • January
  • February
  • March
  • April
  • May
  • June
  • July
  • August
  • September
  • October
  • November
  • December
201020112012
  • January
  • February
  • March
  • April
  • May
  • June
  • July
  • August
  • September
  • October
  • November
  • December
20102011
  • January
  • February
  • March
  • April
  • May
  • June
  • July
  • August
  • September
  • October
  • November
  • December