Coming from SQL I was thrilled when I designed my first collection with documents including an array of subdocuments. Let's say you have a concert collection named concerts (I like to be edgy). The structure could be something like this: { '_id': '33WrEFbDYu6m5ph2H' 'date': 'ISODate("2014-10-23T14:10:00Z")', 'bands': [ { 'name': 'Patrick Sebastien', 'genre': 'Fun-core', 'location': 'France' }, { 'name': 'Foo Fighters', 'genre': 'Electro', 'location': 'US' } ] } That's a nice document, no reason to change it. But wait, Foo fighters are not playing Electro. We will have to update the document, more precisely the Foo Fighters entry in the bands subdocument. But we…

If you're on OSX and getting this error while installing rmagick: Can't install RMagick 2.13.2. Can't find MagickWand.h. You need to install pkgconfig. This tool will help OSX find the appropriate headers. Then reinstall imagemagick to expose those headers. $ brew install pkgconfig $ brew uninstall imagemagick $ brew install imagemagick $ brew link imagemagick $ bundle install It installed flawlessly after those steps.…

Le 6 novembre 2014 sera un jour parfait pour découvrir Meteor ou vous perfectionner. J'organise le meetup Meteor Saint-Etienne. Meteor Sainté sur meetup.com Je vous invite à prendre contact avec le meetup de votre ville. Ça devrait être une bonne soirée. Au programme, des initiations, des QA en direct avec des développeurs core Meteor etc.. C'est vraiment une bonne occasion, que vous soyez simplement curieux ou que vous bossiez déjà sur meteor seul dans votre coin. Pour rappel, Meteor est un framework javascript qui permet de faire du temps réel sans prise de tête. Depuis peu il permet même…

Joins in meteor are not a big deal, but you have to make them reactive. You can overpublish, denormalize or just do it the right way with a reactive publish. I'm using a package to do this for me, Publish Composite. Of all the packages helping you to make your publications reactive, this is the one that I got to work easily.…

Meteor is a kind of new node-realtime-publish/subscribe framework, you can check it here. When I started working on Crassier a few months ago, I chose Rails as the foundation. It is a solid framework, well tested, well documented and a pleasure to work with. And oh Ruby I love you. But after 4 full years working with it, I felt like I needed to explore new things. I followed the hip mob and got my hands dirty with nodejs. Cool, async is nice, the ecosystem is nice, javascript is nice after you really learn to work with it. Express…