11 March 2010

The Ruby Reflector

Top News

Page 1 of 13

  Source Favicon
By Evan Phoenix of Engine Yard Blog 1 day ago.

At this stage, control is handled to an Inliner object. The Inliner will only inline a method if it can see that the method was the the primary method called at a particular send instruction. Because Ruby is a dynamic language, any method call can always invoke a brand new method. But in reality, that happens rarely. Instead, most method calls always end up calling the same method over and over again. The profiling information that the InlineCaches have been gathering allows us to see …

engineyard.com Read
  Source Favicon
By Giles Bowkett of Giles Bowkett 2 days ago.

My new movie is called:

How To Get A Kickass Job, Making Six Figures Working From Home With The Stars Of Your Community, Even If You Just Got So Fired That The Cops Hauled You Out Of The Building In Handcuffs

This movie not only answers that question, it also answers it in terms you can understand. Because I'm a programmer, I phrase these things in the language of programming. For instance, when I talk about how to give presentations, I draw on specific research (in the field …

gilesbowkett.blogspot.com Read
  Source Favicon
By Mark Bates of Meta Bates 9 hours ago.

A while ago I realized that the best thing for APN on Rails, myself, and for the community was to find someone to take over the project so that it got the love it deserved. I put out the call and the good folks over at PRX ( Public Radio Exchange) answered the call. The folks at PRX have written some great iPhone apps, including the very popular "This American Life" app.

So I'm happy to announce that the new official home for APN on Rails is now at: http://github.com/PRX/apn_on_rails …

metabates.com Read
  Source Favicon
By Peter Cooper of Ruby Inside 1 day ago.

Ruby User Groups ( RUGs, for short) are typically informal organizations put together to encourage Ruby developers with certain areas to get together, share ideas, and, often, to have some fun. If you're lacking for inspiration or want to get to know some Rubyists within certain parts of the world (or just around the corner, if you're lucky), heading to a Ruby User Groups' meeting can open a lot of doors. But how can you find them?

RubyUserGroups.org

RubyUserGroups.org…

rubyinside.com Read
  Source Favicon
By Satish Talim of RubyLearning Blog 2 days ago.

About RubyLearning

RL offers online courses in Ruby programming, Git & GitHub, FXRuby, Shoes, JRuby and Sinatra. Since 2005, over 20,000 participants spread across 140+ countries have learned Ruby and other Ruby related timely topics. This has been possible due to the extensive support provided by the mentors of these courses. RL strives hard to improve the methodology and course content based on the extensive and critical feedback we receive. Thanks to YOU , people …

rubylearning.com Read
  Source Favicon
On PeepCode Products 18 hours ago.

The Cucumber behavior-driven development framework is appreciated by developers from many languages. It makes it easy to write plain-text stories that run executable Ruby code against your application.

In this hour and ten minute screencast, you'll learn the basics of Cucumber. You'll learn the syntax, organization, and philosophy of writing Features, Scenarios, and Steps. You'll build an application and learn where unit tests are a better fit.

The PeepCode series on …

peepcode.com Read
  Source Favicon
By 0x4a6f4672 of 4 Lines of Code 3 hours ago.

There are in fact many options for performing background processing in Rails. The official wiki entry for background processes in ruby on rails is a bit sparse, the entry about background jobs in rails in the older wiki , too. The overview from Andy Stewart about long-running tasks in Rails without much effort is better. Tobin Harris lists 6 ways to run background jobs in Ruby on Rails .

In general, one can distinguish between different task …

4loc.wordpress.com Read
  Source Favicon
By Alan Skorkin of SKORKS 20 hours ago.

Crack open the wp-syntax.php file and find the wp_syntax_highlight function (in my case it was on line 94)

Inside the function find the following line:

$geshi = new GeSHi ( $code , $language ) ;

Replace this line with the following:

$geshi = new GeSHi ( htmlspecialchars_decode ( $code ) , $language ) ;

If you're running your Wordpress install on a server with a PHP version which is older than 5.1, you will not actually have the htmlspecialchars_decode() function. Of course …

skorks.com Read
  Source Favicon

If you've used acegi/spring-security for authorization in your java apps, you know that acl9 is very similar in principle and hence very powerful. In addition to primary roles, it provides object level permissions which are stored in a generic way separately from the objects being controlled, all without the need for handcoding/distributing your authorization columns in each authorization-object tables.

One place where acl9 differs from acegi is how it doesn't differentiate …

pathf.com Read
  Source Favicon
By Alan Skorkin of SKORKS 2 days ago.

In my previous post on boolean search , we wrote an efficient list (array) intersection function. But, to be honest, I wasn't very happy with it. Considering the fact that we were using Ruby, it just wasn't very Ruby-like. So, this time I am going to try and show how that function can be re-written to not only be more Ruby-ish but to also be tighter and easier to understand. In addition I will look at a couple of interesting aspects of OpenStruct , which will lead nicely …

skorks.com Read