17 March 2015

The martian - book by Andy Weir

I just finished reading this book, and I have to say it's fantastic, if you like creative science and thriller, go for it !!!!

The Martian book cover


CFSpreadsheet in coldfusion 10 - what I learned today

I've been struggling with cfspreadsheet recently and here are a few things I learned.

At first I was adding rows to my sheets using the SpreadsheetAddRow method, which worked fine until I met data with special characters and punctuation.
One workaround when building the list of values was surrounding them with quotes, like this :

<cfset value = listAppend(values," ' The value, look a comma, eat it ' ")>
Until it crashed ... I found out that a value starting with a comma was breaking the code, no idea why but I didn't want to start escaping characters from the original data, time to find another way.

That's where SpreadsheetSetCellValue comes to the rescue :

<cfset SpreadsheetSetCellValue(sheet, anyValue, rowIndex, columnIndex)>

When you have cells with a lot of data and others with simple values, it messes the default vertical alignment, time to apply some formatting using SpreadsheetFormatColumns :

<cfset SpreadsheetFormatColumns(sheet, {textwrap=true,verticalalignment='vertical_top'}, columns)>

It looked better, but the columns have the same width by default (very small), resulting in very tall columns, so I searched how to autoSize the columns, like you would do by double clicking between two columns, here's the solution, it requires to use an undocumented method of POI.
- Make the first sheet active, like this :
<cfset mysheet = sheet.getWorkBook().getSheetAt( javacast("int", 0) )>

- Then for each column you want to autoSize :
<cfloop from="0" to="16" index='col'>
<cfset mysheet.autoSizeColumn( javacast("int", col) )>

To prompt the user to download the sheet, I used spreadsheetReadBinary :

<cfheader name="Content-Disposition" value="attachment;filename=Applications.xls">
<cfcontent type="application/msexcel" variable="#spreadsheetReadBinary(sheet)#" reset="true">

No more mystical error messages and now the spreadsheet looks nice when it is opened.

11 June 2013

Premiers pas avec la machine à découper Silhouette Cameo

J'ai récemment fait l'acquisition d'une machine à découper papier, carton et vinyl, et je dois avouer que je l'adore.  J'avais envie d'une découpeuse laser depuis un certain temps, mais le prix est encore très dissuasif, alors en attendant d'avoir les fonds je peux m'entraîner avec celle-ci, dans une certaine mesure.

A 300 euros, je ne prenais pas un grand risque et franchement je suis très content de m'être décidé.
Mon idée était de créer par exemple des décorations pour mon intérieur, m'essayer à faire des invitations, faire-parts, autocollants, et autres bricolages pour mon fils de 3 ans etc ... et surtout de trouver des idées en apprenant à l'utiliser. 

Voici par ex. un 'cubee' que j'ai trouvé sur deviantart ( http://browse.deviantart.com/art/Cubee-Blinky-166536484 )

Je l'ai vectorisé dans le programme livré avec l'appareil ( Silhouette Studio, très facile d'emploi, genre Inkscape ), 

ensuite imprimé sur mon imprimante jet d'encre et découpé sur la Cameo ( j'adore ce nom ), qui a des capteurs optiques permettant de calibrer la découpe sur le dessin, parfait.  Ca m'a pris en tout 15 minutes, et franchement le plus dur a été l'assemblage :)
Et voilà le résultat après pliage et imbriquage :

Pour ceux qui auraient la machine, voici le fichier .studio qui s'ouvre dans Silhouette Studio :

Et voici des photos de quelques réalisations que j'ai pu faire avec, je ne l'ai que depuis quelques jours et je dois avouer que je suis plutôt nul en dessin, heureusement tout s'apprend avec un peu de ténacité, et puis il y  a pas mal de matériel partagé librement sur Internet :)

Papillons imprimés sur papier doré
Découpe papier pour invitation

Découpe papier pour mon minus

Proverbe imprimé sur vinyl et posé au mur

'Plante' imprimée sur vinyl et posé sur le coté du meuble de ma cuisine

Enveloppe pour carton d'invitation 

25 April 2013

Hello Raspberry Pi

Yesterday, I finaly decided to get one of those Raspberry Pi every geek is talking about.
There are a lot of resources to get you started, the setup is pretty straightforward and involves only a few steps, it was just a matter of choosing which distribution to install, which depends of what you plan to do with it.
I plan to use my Pi to communicate with Arduino, so I installed the Adafruit Occidentalis distro, that has features for electronics ( http://learn.adafruit.com/adafruit-raspberry-pi-educational-linux-distro/occidentalis-v0-dot-2 ).
5 minuts later, I was booting Linux on my TV, wow !
There is a config tool to get you started, very useful, I enabled SSH, downloaded putty ( http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html ), and connected to the pi remotely, now I can use my computer to go further.
Being a big Coldfusion fan, I installed Railo ( http://www.getRailo.org ), at first I tried the Tomcat way, lost a few hours, and finaly gave up, it was working but took 30 minuts to boot and took all resources.
The express install with Jetty is pretty straightforward and easy ( http://www.recantha.co.uk/blog/?p=2167 ), after a few minuts I had my Hello World running ( ).
I am really impressed by this cheap mini computer.
Tonight I will interface my Arduino, hopefuly :)

09 October 2012

05 September 2012

17 August 2012

blender emakina logo

Recreating the logo with bezier curves and trying different renders.

07 August 2012

Blender fluid

Mistery poison

I love milk

Blender Cycles - Fluid Inflow and glass material
1500 samples

Lens distortion

27 February 2012


Seriously.js is a real-time, node-based video compositor for the web. Inspired by professional software such as After Effects and Nuke, Seriously.js renders high-quality video effects, but allows them to be dynamic and interactive.


The aim of the project is to create a lightweight 3D engine with a very low level of complexity — in other words, for dummies. The engine can render using , and WebGL.

ASCII fluids

ASCII art on steroids


Dabblet, created by Lea Verou, is an “interactive playground” for trying out snippets of CSS and HTML code. It uses -prefix-free, so that you won’t have to add any prefixes in your CSS code, and you can save your work in Github gists, embed it into other websites or share it with others.


02 February 2012

Bootstrap, from Twitter

Un beau framework html avec de beaux petits composants :)

Bootstrap, from Twitter:

04 March 2009

17 February 2009