Archive for the ‘Uncategorized’ Category

Cappuccino

Saturday, May 15th, 2010

Again I’m amazed by what the guys from 280North pulled off. First their framework (UI) is absolutely gorgeous, second they web&desktop example (GitHub Issues) is … well, everything I hoped for.

I’m just still a bit put-offish by Objective-J, though I’m starting to appreciate why they introduced it.

SC.TreeController and SC.Record

Friday, May 7th, 2010

Just added an example to github which shows how to use SC.Record in a SC.TreeController.

The example is available here

Sugar & Spice for Espresso

Monday, May 3rd, 2010

In real life this would probably taste awful, but for the Espresso editor it’s great! Sugars allow you to extend the Espresso editor with add-ons or plugins, which will ease your development.

Today I’ve found two tasty Sugars: Zen Coding is one of them (though it is in Espresso by default) and Spice. Well, okay I was pointed to Zen Coding by a colleague actually…

Zen Coding allows you to expand certain abbreviations, look at the following video for more information:

Zen Coding v0.5 from Sergey Chikuyonok on Vimeo.

Next Spice, that allows you to extend Espresso using JavaScript, with full access to the Espresso and Cocoa API, no need to talk Objective-C for that!

MongoDB REST Interface

Sunday, May 2nd, 2010

Just pushed my first attempt at a MongoDB REST Interface to github, it’s written for node.js.
MongoDB is a very cool document based database, but they themselves described it better:

MongoDB bridges the gap between key-value stores (which are fast and highly scalable) and traditional RDBMS systems (which provide rich queries and deep functionality).

The minute I read about MongoDB I immediately thought of using it with SproutCore, using Rails for this purpose seemed like a lot of overhead. Because node.js is very hot at the moment, I immediately thought about creating a module for it.

To use it all, you would have to install MongoDB and node.js. To see it in action, you could download the Todos tutorial code. Create a ‘tasks’ database and a ‘tasks’ collection. Be sure to change the flavor to “sproutcore” in settings.json. Start the REST server and be sure to connect to the MongoDB server by using your browser and go to “http://localhost:3000/#connect”.

Then use
this instead of the tutorial’s datasource.

Ideally I would publish this as a seed, but haven’t gotten around doing that. Also, I’ve tested this with node.js v0.1.93.