Don’t repeat your capistrano rules

2012 - New year, new devblog

2012 - New year, new devblog

Relaunch again

I’m relauching Boldr… again.

I have not much to say on the subject except that I will write about more things than just Ruby/Rails, because I’m trying many things not related to Ruby so it would be a waste not to write about these things.

And if you are wondering why the post is in english it’s because Boldr is no longer in french.

BlockCampParis

There’s gonna be a Smalltalk and Ruby Barcamp named BlockCampParis on November 28th. I will talk about JRuby and the (many) things you can do with it.

Some links:

My JRuby talk at BlockCampParis

I was at BlockCampParis today and I gave a talk about JRuby. I’m not a JRuby expert so it was not very technical but the thing I wanted to demonstrate was that JRuby is a viable Ruby implementation with the possibility to use a lot of great librairies from Java.

I hope everyone enjoyed the talk and I’ll probably complete it for a next time. You can see the presentation here and play with the examples.

jQuery Underscore together

I like jQuery, but sometimes I miss utility functions from Prototype.js. But with Underscore, this is over! You can use invoke, first, last, compact… and it’s only 2kb packed and gzipped.

Example

I find it very useful when I get JSON with jQuery. Let’s take a Twitter example:

To get the results with jQuery you will be very limited: $.each, $.map and that’s pretty much all. With Underscore it’s easy to build an array of tweets from the results:

In addition, if you’re a Ruby developer you’re addicted to first and last on arrays:

And you have an OOP style too:

There’s a lot of functions (not just for arrays), so take a look at the documentation which is great!

A final library

Now I have my utility functions, I want to use classes. I found a little Javascript lib from June to do that in a way I like. It’s very small and there’s just what I need: modules, classes, methods and mixins.

I’m in a more familiar world here. There’s JS.Class to do that too but I don’t need all the core functions.

Conclusion

Now I have a fast and small way to write my Javascript and it’s perfect (for now anyway).

Convert HTML presentations to PDF

You’re maybe familiar with slideshow (aka S9) to have your presentation in HTML and to modify it very easily in Textile. For my presentations I now use slidedown which is very cool too. But my ultimate goal was to convert them to PDF.

WARNING: My solution is build with MacRuby. So install it before trying.

I finally find a way to do it, thanks to the work of Tom Ward with Snapper and Matt Aimonetti with his recent MacRuby sample. Here’s the script which is very easy to use:

This will convert the presentation to PDF! You can see the result here. The generated PDF is named slides.pdf but you can name it yourself in the command line:

The -n option is to know how many slides you have in the presentation.

Bookmarks #1

I’m currently reading my long list of bookmarks I hadn’t time to read before. I thought it could be a good idea to share with you some of them. There will be other posts like that this week.

Ruby

Javascript

iPhone

Git

Design

Bookmarks #2

The rest of my bookmarks. I finally finish to read all my tech & design bookmarks, yay!

Ruby

Javascript

HTML & CSS

Design

iPhone