September 30th, 2017
I finally followed the advice of my smart co-worker, and now use docker to manage this blog. I'm so happy with the result that I wanted to share the process in this post. Why use docker ? I wanted to be able to publish new articles simply by pushing to the git repo of my blog. Previously I would create a simple python or ruby service, and call it with a github hook when a new article is pushed…
May 16th, 2015
Started hacking in Ruby recently, and immediately looked for the virtualenv equivalent.rvm looks like the standard, so I opted for it, but making it work in my configuration has been surprisingly difficult, while the solution was pretty obvious:If you use prezto, all you have to do is install rvm:…
April 13th, 2015
Back to some python coding recently, I’ve been very frustrated with setting up virtualenv in eclipse/pydev, and as the other IDEs don’t satisfy me neither, I decided to give vim a chance ! After some googling, I managed to setup a really cool programming environment ! SPF13-vim You can find it here: http://vim.spf13.com I’ve used vim occasionally, mainly to edit config files on my server, but…
February 17th, 2015
This post will give you hints on angular 1.3+ form validation.Angular team has done a great job and brought up some cool improvements in the form handling area. Using bootstrap, managing forms has never been so easy.Let's take the following form as an example. The javascript part As you can see, it is pretty light…
August 16th, 2014
Note: you can find the source code for this tutorial on github What a powerful collection of trendy acronyms, ain't it ? I hope this article will help you have a better vision of these techniques and build your first app. This post will detail how to build a simple RESTful application, with complete authentication mechanism. I will show you how you can bootstrap such an app very fast, with the…
July 23rd, 2014
CouchDB is an awesome database, however you can face situations where the map/reduce views won't be able to solve efficiently your problem.Let's take a simple client document:…
July 13th, 2014
Even though I've been a hardcore Linux user since a dozen years, I must admit that I enjoy Windows 8 !Here are some tips to make it even better ! Install a real console Windows console is a pain in the ass to use, and Microsoft engineers didn't feel the need to change it since Windows 3.1, back in the mid 1990's !I can understand that Windows is targeted to non-technical users, but still why…
July 5th, 2014
After wasting hours trying to make pip install packages depending on C compiler, I finally found a solution !While installing Python and Pip is not a big deal, making Pip work is another story: I spent hours installing Mynt, with no success, banging my head on various error messages, among others, the infamous…
June 25th, 2014
I'm actively learning angular.js, and after having completed the brilliant codeschools video tutorial, I'm diving into the official tutorial.When running my first end-to-end protractor test at the begining of the tutorial, I was quickly stopped by an error: "cannot call method 'forEach' of null". Furstrating, isn't it ? In those cases, stackoverflow is your best friend, and this solution worked…
June 22nd, 2014
I've been complaining for years about the incredibly slow startup and bad responsiveness of the Android emulator.I eventually started using genymotion, after having lost any hope to see Android emulator's performance increase. And two weeks ago, I accidentally found the secret to make the emulator much, much faster.Here is this ancient secret revealed: Open Android SDK Manager app, and install…
June 22nd, 2014
In order to work with your Git repository on your Windows PC, you will have to follow these steps: 1/ Install putty Be careful to download the complete Windows installer, and not only putty.exe.You can find it here. 2/ Generate SSH keys Run puttygen.exe: Make sure that SSH-2 RSA is selected, click [generate], and as specified, move your mouse over the blank area.When the key is generated, you…
April 18th, 2014
Just installed radiotray in my brand new Kubuntu 14.10, and discover that its icon is missing from the taskbar. By chance I found the solution here. All you have to do is to modify ~/.local/share/radiotray/config.xml as follows:…
April 10th, 2014
I just discovered Mynt, and so far it's a wonderful experience. But I lacked a way of easily publish my posts. It took me a week-end, but I built a very satisfying and easy to use solution to publish your posts directly from Git. I found great inspiration from this article from James Kyle. This method involves using a git post hook from Bitbucket, but you should be able to easily adapt it for…