Rails, RSpec and Autotest hate your blog
Something very amusing happened to me, I'll try to sum it up:
I'm working on a website for which I have to write a blog for it, so after I created the models for it, I create the controller for the posts with script/generate rspec_controller admin/blog/posts
Soon enough, I realize that (after reload of course) script/autospec just doesn't "see" the file I just created, and therefore doesn't run any test in it... The strangest thing is that rake spec run all the tests perfectly...
I try many things, changing permissions, add and remove another controller to reload some "cache" that would be hidden somewhere, etc. without success
So I rename the "blog" folder to "bar" ... it works; then I start renaming "bar" to "blog" progressively to see where's the problem : 'barg' ok; 'barog' ok; 'barlog' no!
OF COURSE !!! Obviously folders ending with log are ignored, rule made for the folder RAILS_ROOT+'/log' I guess ...
I lost more than an hour on this problem, and while it's not really a problem anymore for the development of the website, since I just renamed the folder, I still don't know how to correct it... any ideas ?
Gems used: rails (2.3.4), autotest-rails (4.1.0), rspec (1.2.8), rspec-rails (1.2.7.1), ZenTest (4.1.4)
EDIT: Olivier found a quick hack before it gets fixed : remove "log/" from the exceptions list (line 29) in rspec-rails-1.2.7.1/lib/autotest/rails_rspec.rb and add "log/development.log log/production.log log/test.log log/server.log"
The bug seems to be caused by the line 344 of ZenTest-4.1.4/lib/autotest.rb : Find.prune if f =~ self.exceptions
Stewart / Cramer and the role the Financial News Networks
This is the last episode of a very funny and informative saga a lot of people have been waiting for, enjoy (3 parts):
While I almost agree with Stewart on everything he said here, there was something that struck me; something that was missing, something that I think Cramer wanted to say; something that almost nobody with a career can say on American television:
Even if 90% of financial advisors told to NOT invest in this "fast money making scheme", a big chunk of the public would rush to the advices of the 10% who are saying how to make that quick buck. American, and for that matter, almost everyone on this planet, is somewhat interested into "how to make money quickly".
So what the CNBC can do ? Put itself in a corner where nobody will look at, and say boring stuff like "well, real money is created by work; so you should probably invest into companies which do real work. It is slow, and doesn't make the 30% of the other guy, but in 10 years, you will be happy".
Like Cramer almost said, how can you ask somebody to ask reasonably for years and years when they see people making 5 times what they are making with the same amount invested ?
Michael J. Nelson is now Bacon Man
Are you ready to eat bacon, only bacon, nothing but bacon, for a month ?
No condiments allowed. No syrups, or hot sauces, or pureed vegetables in the form of ketchup. No sauces at all.
Beverages: No juices, no V8, nothing that could be construed as “healthy”. Only water, wine and beer.
Well, this guy is ready. Actually he almost did it, for the month of February:
My hero. More info here.
The crisis will end on November 8th at 3:30 pm
President Clinton just said it.
Okay, it was meant as a joke, but his ABC news interview is worth listening to. Actually, it's always worth listening to him.
Another quote from the interview:
"It's worth reminding the American people, that for more than 230 years, everyone who bet against America lost money. It's a mistake to bet against this country over the long run."
"It is becoming increasingly difficult to distinguish W3C specs from Onion articles"
SMIL is a W3C standard; the most recent revision, SMIL 3.0, was just published in December 2008. If you printed out the SMIL 3.0 specification on US-Letter-sized paper, it would weigh in at 395 pages. So don’t do that.
Also:
apparently, a group of interested parties has converted smilies to XML. it is becoming increasingly difficult to distinguish W3C specs from Onion articles.
<emotionml xmlns="http://www.w3.org/2008/11/emotionml"><emotion><category set="humaneDatabaseLabels" name="Amusement"/><intensity value="0.7"/></emotion></emotionml>
ARE YOU FUCKING KIDDING ME ?
The atheist bus journey
Happy Birthday Geoffrey !
And thanks again for everything... see you (and everyone else) next time !

Youtube LIVE's best performance
I guess it was Esmee Denters, performing Follow My Lead... That was easy, she's so lovely.
I liked DJ Mike Relm and The League of Extraordinary Dancers too.
That was very good for a premiere, I hope the Youtube LIVE 2009 will be interesting too :)
Ruby: sprintf surprise
Who said weird ?
irb(main):010:0> '%.2f' % (270*1.175)*0.3
=> ""
irb(main):011:0> '%.2f' % ((270*1.175)*0.3)
=> "95.17"








