Exploring CouchDB

Posted November 4th, 2009 in General by ryan

Over the last week I’ve been reading a few articles about CouchDB and playing with some sample code.  Yesterday I read Eric Florenzano’s article on Using CouchDB with Django and it elevated my interest.  CouchDB is a a document-oriented database from Apache.  It can be queried and indexed in a MapReduce function in javascript.  CouchDB also provides an incremental replication feature that finds and resolves conflicts bi-directionally.

Eric’s article provided an example of using CouchDB that didn’t fit what I was looking to do, but provided me with two key pieces of data; an example of using the python library for CouchDB and introducing me to an awesome project CouchDBX.  CouchDBX is basically an InstantCouchDB for Mac OSX.  It was very easy to download and start using CouchDB immediately.

Unfortunately this post has no code sample.  I haven’t slayed CouchDB yet.  Whether I use a Python class that inherits from object or from the couchdb-python library Document object, I end up with a json serialization error “<object> is not JSON serializable”.  It’s annoying, but there’s just something I’m still missing.  I’ll figure out (or some Google searching will).

I’m planning a demo at work.  Since I still work for a Microsoft based shop, most of these alternate technologies are like a traveling freak show from the circus for them.  I do see some places where CouchDB would work well, although security is an issue.  Where I work they want everything protected with CAC’s or certificates of some sort, so I’ll have to eventually look into how to do that with CouchDB.

UPDATE:

I was able to start storing data once I created a proper object.  It seems that a public property of a collection type isn’t json serializable.  I had a property “answers = []” and it was causing the serialization error.  Creating and updating data is working well now.  Time to tackle queries and then replication.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Dude I Got A………Mac

Posted November 2nd, 2009 in Apple, General, Linux, Web Design, iPhone by ryan

This weekend we drove up to Raleigh for the simple pleasure of giving Apple, Inc. a handful of money. I’ve wanted one for over a year, but the timing or the budget just didn’t line up until now. We purchased an iMac last year as a “Shared Family” computer. Wrong. After 3 days, my wife decided it was hers and the rest of us were never to touch it.  Ever.

First Mac

First Mac

I ended up getting the 2.53Ghz, with a 320GB HDD and 4GB of RAM.  I also purchased a wired keyboard with the number pad and a magic mouse.  The mouse is pretty good, like magic.  So far it’s been very easy to set up and use.

Now that I have the Mac I hope to take a little time to get to know the platform, try out some Obj-C, PyCocoa, and maybe try my hand at an iPhone app.  I’m very curious to see where this differs from my Linux platform.

If you want the play by play, here’s the Whrrl story to document my experience.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

November Blogging Thing

Posted November 1st, 2009 in General by ryan

Ok so the annual November is the month for blogging thing is going on and this year I’m going to attempt it.  Like many other developers I don’t keep up with my blog as much as I should.  I don’t feel guilty about letting the reader down….it’s not like I have a huge following anyway.  The blog is more for me for getting out my ideas (somewhat cautiously still) and as a place to find things I need when I’ve forgotten.

So for the month of November, I will give it my best to write something daily.  It may not be long or particularly interesting but that’s not the goal!  Here’s to setting the bar low!

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
FireStats icon Powered by FireStats