Writings
understanding ruby threads
This post is just to clarify some confusion I've noticed reading some posts around the web. There is some misunderstanding of the differences between Ruby 1.8 and Ruby 1.9 regarding threads. And the difference between them and JRuby.
So I decided to write this small summary:
Ruby 1.8 - Supports only Green Threads
This means that the ruby interpreter has its own scheduler. No matter how many threads you create in your ruby program, there will be only one native thread on your OS.
Writings
dont use rexml i mean it
REXML is the standard XML processing library for Ruby. It's on Ruby's core and is terribly slow.
Yeah, I know it's pretty simple to use, got a nice interface and, again, it's just there. And it is a good library, for most things. But if you, as me, came to a point that processing XML is taking 50% of the time to render a rails action, it's time to change.
Writings
were hiring
Here at Mirai we're looking for passionate software engineers.
And if it's not clear, by passionate I mean people who actually enjoy their job, aren't afraid of trying new things, likes to research/study, is up to date to what's happening around them and is a true team player.
Interested? Hold on, click here to find out more about the offer, as well as instructions on how to apply.
Doubts? Send them to jobs@hotelsearch.
Writings
railsconf europe 2008 impressions and highlights
I'm back in Madrid again after the RailsConf and I think it's time to say something about it. :)
First off, the infrastructure provided by the conference was really great. The rooms, WiFi connection, food... Really well organized.
Now to the sessions, highlights:
Tutorials (Tuesday)
- Meta-programming Ruby for fun and profit (Neal Ford, Patrick Farley)
The old and good techniques that made Ruby so powerful. Here Neal and Patrick walked us through the main tricks to meta programming like open classes - and conditionally open them - , dynamically define methods, sending messages to objects and how Ruby can help test your Java code in a much easier way.
Writings
railsconf europe 2008 heading to berlin
The title says it already.
On monday I'll be going to Berlin to attend this year´s RailsConf.
This will be my first one and of course my expectations are pretty high!
As usual, after the conference I'll try and give a summary of what happened there, providing as much content as I can.
Anyone else's going??? :)
C u there!
Writings
mac os x getting mysql and rails to work
So I couldn't resist and bought myself a MacBook Pro! It's my first week with my new toy and I'm really enjoying it.
But I need to do something useful with it so I started to prepare it to be my new development platform, starting with Ruby/Rails + MySQL: Here is where the fun begins!
After I installed both Rails and MySQL, I fired up a terminal an typed:
Writings
rails vulnerability on rexml
REXML, the XML library uses by many ruby apps, including rails, has a vulnerability that requires an immediate patch on whatever rails version you're using.
Details and instructions on the official rails weblog, here.
But basically, this is what you need to do:
gem install rexml-expansion-fix
Then, require rexml-expansion-fix in your rails's app environment.rb file.
Writings
yes we do eat
Besides the fact that I am a software developer, I do eat. I even enjoy doing so. Specially when I'm traveling.
That's why i decided to put up a new weblog only for this kind of stuff - it's called Travel tips - food & stuff. Basically for friends and whoever else might be interested.
There I plan to share some nice restaurants I've been to. At least to start with.
Writings
why i like ruby 1 alias_method
So you found yourself in the need to override a method but still count on it's old behaviour?
No problem! Override it with your new code, call super and.... Uh oh!! Suddenly this turned into a problem... Let me give some more context.
I was testing Ferret (and the acts_as_ferret plugin) in a project to provide full text search capabilities to our models. One of the things the plugin does is to add a new method to ActiveRecord, called find_with_ferret.
Writings
the biggest rails event in latin america
Behold latin american railers!
This year we will have the Rails Summit Latin America on October, 15th and 16th, in São Paulo, Brazil.
It's by far the biggest Rails event we've ever had, including many of the speakers that were present at RailsConf.
Fábio Akita is also one of the speakers and provides more details on his blog.
If you're a assumed rails geek don't miss the opportunity to hear from the big names and to know a beautiful country like Brazil.