David

Barcelona, Spain

davidmles.com/blog

Age: 34

I'm a passionate developer and entrepeneur, interested in good practices.

I have 10+ years experience in PHP. I also have 4 years using symfony/Symfony2 framework.

And now enjoying Ruby, Ruby on Rails and Sinatra since 2011.

I also enjoy administering UNIX machines.

Dec
15
awarded Scholar
Dec
15
accepted How to move the first tab of Terminal to the end using AppleScript?
Dec
15
comment How to move the first tab of Terminal to the end using AppleScript?
Thanks. Could you edit your answer telling that it's not possible, so I can accept it, please?
Dec
15
comment How to move the first tab of Terminal to the end using AppleScript?
It doesn't seem to work: execution error: Terminal got an error: AppleEvent handler failed. (-10000)
Dec
14
asked How to move the first tab of Terminal to the end using AppleScript?
Dec
14
accepted How to close a Terminal tab using AppleScript?
Dec
13
revised How to close a Terminal tab using AppleScript?
added 10 characters in body
Dec
13
answered How to close a Terminal tab using AppleScript?
Dec
13
revised How to close a Terminal tab using AppleScript?
add my try
Dec
12
asked How to close a Terminal tab using AppleScript?
Dec
12
awarded Autobiographer
Dec
7
awarded Good Question
Oct
27
comment `pg_tblspc` missing after installation of OS X Yosemite
In my case the .keep files should be directories, so I just executed this: mkdir -p /usr/local/var/postgres/{pg_tblspc,pg_twophase,pg_stat_tmp}/.keep
Oct
18
comment How to initialise a collection of decorators efficiently?
I would cache the decorated object: @decorated ||= MyModelDecorator.new self
Oct
17
accepted How to initialise a collection of decorators efficiently?
Oct
17
comment How to initialise a collection of decorators efficiently?
The decorator is, as you said, a plain old ruby object, with no constructor. My main concern was about memory usage, since there could be tens of results to be decorated per visit. Using a plain old Rails helper would be less expensive I think...
Oct
16
asked How to initialise a collection of decorators efficiently?
Oct
9
awarded Nice Answer
Sep
27
awarded Notable Question
Sep
15
comment Ruby on Rails 3 howto make 'OR' condition
I don't see any reason for parameterized values when using simple numbers.
1 2 3 4 5