Notice: Undefined index: HTTP_ACCEPT in /var/local/cache/midgard/midgard/31-100-217-0.php(66) : eval()'d code on line 11

Blog: category "couchdb"

Ajatus Lightning talk @ FOSDEM

Posted on 2008-02-08 23:14:01 EET to .

Ajatus LT was accepted to this years FOSDEM in Belgium.

At this point it seems the presentation will be on Sunday 24 at 15:40.

I'll be introducing Ajatus itself and little bit about the pieces it is built on (CouchDB, jQuery).
Mostly I try to concentrate the presentation for developers interested either in offline AJAX development or even Ajatus itself.
I will be showing and explaining some of the layers inside Ajatus, different ways to expand it with plugins, etc and give sneak peak to the future of the app.
Some basic replication scenarios will be covered also.

At the same weekend Bergie and I will be attending the XMPP Devcon to collect and present our ideas of the automated XMPP based CouchDB replication currently going under name PillowTalk. 

 

Ajatus 0.6.0 released

Posted on 2008-01-30 20:04:31 EET to .

Finally got the new release out.
This fixes some bugs and adds cool new features.

Go check it out at http://www.ajatus.info/download/ajatus_0-6-0/  

Finally got them working

Posted on 2008-01-23 21:35:49 EET to .

Today I got the complete stack working on my N800 device!

  • Erlang
  • ICU
  • CouchDB
  • Ajatus

They are far from perfect yet but I'm sure it'll get better little by little.
Currently I'm

  • preparing the packages for releasing them through maemo extras repository.
  • trying to compile the latest erlang R12.b.0 (now the package is R11.b.1)
  • adding dependencies to couchdb package
  • packaging Ajatus also

After first releases there are some possible tweaking to do... I still get some Segfaults at some points while using couchdb.

If someone would like to give this a try the hard way:
All the current packages can be found here http://protoblogr.net/downloads/erlang/

  1. Download and install erlang-base_11.b.1-1_armel.deb to the device (after download: dpkg -i  erlang-base_11.b.1-1_armel.deb)
  2. Download and install libicu36_3.6-2_armel.deb
  3. Download and install couchdb_0.7.2-1_armel.deb
  4. Get the latest release of Ajatus and follow it's installation instructions

There might be some dependencies which have to be manually installed. (Will be fixed later)
Currently the CouchDb installs itself to /usr and the databases are located at /usr/var/lib/couchdb.
I changed the DB path in /usr/etc/couchdb/couch.ini to point to my other memorycard (/media/mmc2/couchdb_db) which had some more space left.

Hopefully I get to release these as soon as possible for easier use.

Great thanks to the folks at #couchdb channel (nslater, jan,...)
And to Piotras

First set of Erlang packages for Maemo

Posted on 2008-01-23 08:48:56 EET to .

Last night I finally was able to do successful packages and installation on my N800.

First set (N800/N810) can be downloaded here: http://protoblogr.net/downloads/erlang/

I'll upload rest of the deps as I get to the office. Also I'm currently buildin ICU which is also needed by CouchDB. Hopefully today I have working native Ajatus on my N800. 

UPDATE: 

Just uploaded rest of the package files. Also there is packages for ICU.
I'm currently trying to get CouchDB to work, but still have some minor problems with it.

For basic usage of erlang one could only install the erlang-base and erlang-nox packages...

Packaging Erlang for maemo

Posted on 2008-01-21 01:16:36 EET to .

I was able to package Erlang for X86 target but collided with some segfaults on Armel. It seems the problem is the qemu and after a while trying to patch it I gave up for tonight. Have to continue tomorrow night.

Anyhow we aren't that far of getting CouchDB and Ajatus to work natively on Nokia n800/n810...

 

I shouldn't browse the web

Posted on 2008-01-16 11:06:23 EET to .

Few nights ago while I was searching for Erlang resources in the big web I came across interesting project HaXe.
After few hours of reading I was sold. I started testing with different options and had an idea for a project... CouchBrowser.

CouchBrowser is cross platform CouchDB administrating utility which runs as standalone app. User interface is built with flex for sleek looks. Backend is written with haXe and ActionScript.
So currently I'm building CouchDb library for haXe similar to my other project jqCouch.
Planned features for the CouchBrowser are atleast the same functionality as the couch's own browser based utility plus some export/import features.

I'll put up some project site for this as it matures a bit and I get more time to work with it.

Here is a screenshot of the app (v0.0.1)

 

Bug fix release of Ajatus beta

Posted on 2008-01-04 08:53:46 EET to .

I've just released an important bug fix for Ajatus 0.5.0 beta.
I encourage all users to update.

More info found from release notes

New release of the jqCouch library

Posted on 2007-12-04 20:57:19 EET to .

I'm happy to announce the release of totally rewritten jqCouch -library. Major changes were made so this version is no longer compatible with the older release. Talking with CouchDB is now done through 3 type of connections.

db -connection:
This is used to handle all those Database related tasks such as creating and deleting.
Available methods:

  • exists
  • info
  • create
  • del
  • all
  • restart
doc -connection:
This is used to handle all those Document related tasks. Creating, Updating, Deleting documents.
Available methods:
  • get
  • all
  • save
  • bulk_save
  • del
  • (post)
  • (put)
view -connection:
This handles all actions related to Views.
Available methods:
  • exists
  • info
  • get
  • save
  • del
  • temp
  • (put)
All result methods (methods that return something from the database) return their results through wrapper which can be extended with own custom method. This can be used to render the results to something else or execute other actions as soon as the query is ready. One can register this mapping method globally, for connection or for each method separately.

Some basic usage examples:

creating connections:
//Database connection
var dbc = $.jqCouch.connection('db');
//Document connection with custom config
var dc = $.jqCouch.connection('doc', {cache:true});
//View connection with connection specific mapping function
var vc = $.jqCouch.connection('view', function(data){return data;});
//Database connection with connection specific mapping function and custom settings
var dbc = $.jqCouch.connection('db', function(data){return data;}, {cache:true});

Setting global configurations:
$.jqCouch.set_defaults({
    cache: true
});
Creating new document (One liner):
var revision = $.jqCouch.connection('doc').save('doc_db', {id: "0", title: 'test'})._rev;


More info can be found from the source of the library and the testsuite included in the release This library is part of the Ajatus - Distributed CRM

For some reason the jQuery website is not working properly and it seem that it has reverted to some old backup as the release no longer exists there. Here is a local link to the release: jqcouch-2.0.1.zip

Pre release of the CouchDB jQuery lib.

Posted on 2007-09-23 01:51:57 EEST to .

I'm currently building a lightning fast CRM on top of CouchDB. And because of that I needed to create a jQuery library for the CouchDB as I use jQuery to handle other parts of the system.

More details and screenshots coming soon.

The library can be downloaded here

*UPDATED* the library is now located at http://jquery.com/plugins/project/jqcouch [2007-09-23] 

Hopefully someone else finds this useful too.
And if you have any feedback or feature request feel free to write me email.