January 2012
2 posts
December 2011
1 post
November 2011
3 posts
October 2011
2 posts
September 2011
3 posts
August 2011
3 posts
July 2011
1 post
June 2011
3 posts
May 2011
7 posts
Joyeuse fête des mères maman! <3
April 2011
1 post
Strict Mode for HAML!
I’m quite picky when it comes to coding in HTML and CSS. And I really like writing good markup, particularly semantic one whenever I can. And it’s even more important if you want to adopt HTML5!
I use HAML a lot, and I really like how it makes writing markup easy… probably a bit too easy. I noticed that people who are not “experts” in HTML (I probably should say...
March 2011
2 posts
February 2011
5 posts
Bug? in Chrome's Javascript console
Same debug point in my javascript.
In Firefox:
>>> $('#flash')
[ div#flash ]
>>> jQuery('#flash')
[ div#flash ]
In Chrome:
> $('#flash')
null
> jQuery('#flash');
[<div>…]
> $
function ()
{
return document.getElementById.apply(document, arguments)
}
> jQuery
function (j,s){return new b.fn.init(j,s)}
In both browsers the javascript work as expected,...
January 2011
3 posts
L’amour est enfant de bohème, qui n’a jamais connu de loi.
– Carmen, Bizet. Opera in the domain.
December 2010
4 posts
A computer without Windows is like
a chocolate cake without mustard.
– Some smart guy for sure!
A simple rack middleware to use a different ap... →
This is so easy to put in place, it just stands in your Rackup config file!
November 2010
17 posts
Yet another nice Sydney driver...
…Bazinga!
This morning,
I’m riding to work, crossing an intersection turning right. The light is green, and I am the only one coming from that direction. I’m going quite fast since I know that green light is short.
A car from the other side of the road wants to go in the same direction. But he has a sign “turn at any time with care”, so he has to let me go first....
Pure CSS GUI icons (experimental) – Nicolas... →
Awesome, will probably use soonish!
$ brew install mongodb
$ RTFM
Rails 3 Question!
In Rails 2, the following code doesn’t work. It will load the three relationships including all their columns, :select and :include don’t work well together.
Does it work in Rails 3?
@items = cart.items.all(
:select => 'items.price, items.subscription_id, items.user_id, user.name, subscriptions.name',
:include => [:user, :subscription]
)
Why didn't I think of that?!
Me: I've removed a third of the lines from a big file, it's more readable, and more performant... what else do you want?!
A Friend: make ascii porn