Sortable tables with Rails 3 and Twitter Bootstrap 2
As you must know by now, Twitter Bootstrap 2 dropped support for sortable tables with DataTables for an unknown reason. The DataTables team wrote a post to put back sorting of tables but I just didn't like their integration. Here is mine.
I take for granted that you are in your APP roots.
1. Download the latest version of datatables.
2. Extract the files from the zip
3. Copy the minified javascript in your vendor assets :
cp ~/Downloads/DataTables-1.9.1/media/js/jquery.dataTables.min.js vendor/assets/javascripts/
4. In a global coffeescript file, write this
6. Copy all sorting images in this directory :
cp ~/Downloads/DataTables-1.9.1/media/images/sort_* vendor/assets/images/
6.1 if vendor/assets/images doesn't exist, create it (mkdir vendor/assets/images) and then restart your development server
7. Add the .table-sortable class to every table you want to be sortable
7. Add the .unsortable class to every column you don't want to be sortable
Node.js on Heroku : "Process bound to port 3000, should be 12345"
Dear Ubuntu, I still love you but we're drifting apart
Dear Ubuntu,
Ubuntu 11.10, Unity and gEdit (SnapOpen and other plugins not working)
Last weekend, I installed Ubuntu 11.10 and as most people, I'm dissatisfied with it. Mostly because Unity breaks my old ways of working. But, I'm a good guy and I will give Ubuntu a chance (even if behind its back, I'm looking for a replacement).
Assets problems with Heroku and Rails 3.1
I'm playing with Heroku right now and I'm having some problems with the assets.
Revenue Sharing : A new type of open source license
I use and write open source but there's a gap in open source licensing, I don't make money out of it!
Find in all files with Linux/Ubuntu
I don't really like all Microsoft's development IDE but there's a functionality that I really love and use : find in all files (ctrl+shift+F). I always forget about the syntax of grep on linux so I made a little bash to help me. Here is the code :


