Articles

60. Ruby Metaclasses Final Episode

In this final episode you will learn how every class in Ruby is a first-class object. We will see how classes and subclasses have metaclasses and how to access them.

Reference: MetaRails - Metaprogramming by example by Nick Sieger RUM - July 25, 2006 

Google it to download the slides. 

Cool Rails SVN tidbit - showing the revision #

If you want to show the SVN Revision number on your page - this helps the test team - add this code to your site:<%= `svn info #{RAILS_ROOT}`.match('Revision.*') %>Those are back-quotes. This will cause a shell command to be run.If you add it to your environment.rb like so:$svn_revision = `svn info #{RAILS_ROOT}`.match('Revision.*')Then it is run when the server starts and you can access it on

Ruby Chops: Blocks and Procs

Download Source Code



59. Ruby Metaclasses part 5

This is the final episode based on Why the luck stiff's "Seeing Metaclasses clearly" article.

This episode ends with an illustration of a powerful metaprogramming concept that every Ruby programmer should know. 

Prerequisite: instance_eval, changing self in Ruby episodes and previous episodes on metaclasses.

 Correction: self inside the Class << self is not the FooSub but is the metaclass of FooSub.

58. Higher Order Procedures in Ruby

A powerful language provides the ability to build abstractions by assigning names to common patterns and then to work in terms of the abstractions directly. In this presentation you will see how Higher-Order Procedures can be used to formulate abstractions in Ruby.

You will learn how to write concise code to become a rockstar Ruby coder.

 Prerequisite: Ruby blocks episodes and the previous episode. 

A Three Finger Salute to Git

David Letterman often asks: Is this anything? And now I ask you.

Consume non rails-style REST API's

ActiveResource is a great concept which consumes rails-style REST API but unfortunately most of the REST API's are not rails-style. This means that very frequently you will end up modifying ActiveResource to consume non rails-style REST API's. This article is about understanding ActiveResource and how to tweak/extend it to consume non rails-style REST API's. We will mainly concentrate on reading data i.e. the GET method.

57. Ruby Metaclasses part 4

In this screencast you will learn about the method lookup and basic concept required for an upcoming episode "Higher Order Procedures in Ruby".

Ruby Chops: using super in inheritance

Source Code



56. Ruby Metaclasses part 3

In this screencast we will continue our exploration of meta classes in Ruby.

Linux | Rails Fire

Linux

RubyDrop: A Dropbox Clone in Ruby

Ever used Dropbox? It's awesome. A cross-platform (Windows, Mac, Linux, and even mobile) file syncing and backup service with 2GB for free (or 2.25GB if you sign up with this link).

Ruby 1.9.2 Released

Yuki (Yugui) Sonoda has just announced the release of the stable version of Ruby 1.9.2!
Ruby 1.9.2 has been released. This is the newest release of Ruby 1.9 series. Ruby 1.9.2 is mostly compatible with 1.9.1, except the following changes:

The Why, What, and How of Rubinius 1.0’s Release

Rubinius or GitHub repo, an alternative Ruby implementation that's built in Ruby itself - as much as possible, has this last weekend hit the coding equivalent of a Bar Mitzvah..

RDropbox: A Ruby Client Library for Dropbox

Dropbox is a popular file hosting service (4m+ users) that provides synced backup and file hosting to OS X, Windows, and Linux users. You get up to 2GB of space for free.

Visually Inspect Ruby Object Models with DrX

When you want to inspect your objects in Ruby, Object#inspect, p, or awesome_print are all valuable. You're stuck with plain-text, though, and primarily designed to look at object data rather than object models.

360 Flex - Day 2 (Tuesday) - Live Blogging

As you saw yesterday afternoon I didn’t blog too much, so let’s how today goes. The party last night was really fun, lot’s of networking, rock band playing and just a nice general geek atmosphere.

Evolution of RIA Design Principals

Right now the “Evolution of RIA Design Principals” panel is about to start.

Panel is:

In-depth JRuby Q&A: What Makes JRuby Tick in 2010?

JRuby is undoubtedly the most mature of the alternative Ruby implementations. Supporting Ruby 1.8.7 and 1.9.1 (mostly!) and JIT compilation, JRuby is already in use in mission critical Ruby apps and runs scarily fast on the JVM. In this interview with JRuby core member, Charles Nutter, we dig deep into what makes JRuby tick.

Join the Machine!

Rails Machine is growing and we’re looking for some great additions to our talented team. All positions require an in depth knowledge of Ruby, Rails, and Linux.

Rails 3.0 Beta: 36 Links and Resources To Get You Going

rails3logo.gif Whenever something's a really "big deal" in the Ruby world, we cover it - even if it makes more sense on Rails Inside (which is now switching to a user contributions model).

How to generate an SSH key in Linux?

You can generate a key in Linux using the ssh-keygen command.
You can run it in command line. You will be asked for a file in which the key should be saved to and for a passphrase (password) for the key:
This command will generate id_rsa public and private keys.

If you need to generate id_dsa keys then you need to run ssh-keygen -t dsa

Syndicate content