Latest Posts:
Wee! posted on 1255034385|%A: %d %B, %Y|agohover
"Wee is a light-weight, very high-level and modern web-framework that makes Web engineering easy. It mainly inherits many ideas and features from Seaside, but was written from scratch without ever looking at the Seaside (or any other) sources. All code was developed from ideas and lots of discussions with Avi Bryant." (read more…)
Comments: 0, Rating: 0
Rails Integration Test Bugfix for Metal and Rack Applications posted on 1252628111|%A: %d %B, %Y|agohover
I am using Sinatra to write Metal for my Rails Applications and using Webrat to test all. But it does not matter, there is a bug that prevents the integration tests of all rack applications as well as Metals inside a Rails project. Including this little patch inside 'test_helper.rb' fixes the problem. (read more…)
Comments: 0, Rating: 0
Delegation Pattern in Ruby posted on 1249426208|%A: %d %B, %Y|agohover
Sometimes I need to pass an object to an API. But my object does not have the required methods…. And I don't want go and change the 3rd party class definition of my object. In Ruby the solution is easy. Another scenario is I have classes that do parts of the job required. And you need to combine them. There are many ways of implementing the delegation pattern in Ruby:
class Whatever delegate :first_name, :last_name, :to => :@user def initialize(user) @user = user end end
Comments: 0, Rating: 0
Rails Deployment; Capistrano, Passenger, NGINX posted on 1248041823|%A: %d %B, %Y|agohover
For the easiest deployment experience, I think, we should deploy using Capistrano with Git and Passenger. Of course, we should modify that recipe to use NGINX. While Apache uses half a gig of memory, NGINX can do the same job using 30 megabytes. So it's a must if you are using virtual machines. (read more…)
Comments: 0, Rating: 0
YAML Configuration File posted on 1247134944|%A: %d %B, %Y|agohover
In Ruby on Rails, you can create application specific configuration files. Put in "config/initializers/myapp.rb"
MYAPP_CONFIG=YAML::load( ERB.new( IO.read( "#{RAILS_ROOT}/config/myapp.yml" ) ).result )[RAILS_ENV].symbolize_keys
Comments: 0, Rating: 0
Tokyo Cabinet, Tokyo Tyrant and Rufus Tokyo in Ubuntu from Github posted on 1247070143|%A: %d %B, %Y|agohover
After reading the performance of Tokyo Cabinet, it was necessary to try it. It's easy to install it and try it in Ruby: (read more…)
Comments: 0, Rating: 0
On the Way to Faster, Bigger Rails Applications posted on 1246978027|%A: %d %B, %Y|agohover
To write large scale applications you need a few more tools than just using ActiveRecord:
- Tokyo Cabinet stores 1 million records in 0.7 seconds. Used by Japanese Facebook You need to use faster storage. Ordinary DB might not be sufficient.
- Rufus Tokyo Ruby Interface
- Installing all from GitHub
- Shooting Star, A Ruby implemetation of Comet, which is used by Google Talk. Polling is expensive. You need to handle real time events from the server for your AJAX applications.
- Juggernaut is actually easier to use.
- Starling, the job queue manager. Your API has to return as soon as possible. Queue the requests. Used in Twitter
- cache_fu, acts_as_cached
- Presentation of Chris Wanstrath, github
- Testing Caching
- RubyCAS Server
- Central authentication in one place for many applications
- You can manage it with Clearance - The Rails Authentication For Developers Who Write Tests (source at github) (read more…)
Comments: 0, Rating: 0
Factory Girl for Rails can do more... posted on 1245936710|%A: %d %B, %Y|agohover
Unit testing with FactoryGirl is very DRY. The power of Ruby enables you to do more cool and elaborate things with factories. Factories can be equipped with useful custom methods. Let's define a child factory that always uses the same default parent: (read more…)
Comments: 1, Rating: 0
Rails Integration Tests posted on 1245854769|%A: %d %B, %Y|agohover
Integration tests used to be a pain. Now you can really write the scenarios as they should be and have your integration tests: Shoulda + Factory_Girl + Webrat for Rails Integration Tests: (read more…)
Comments: 0, Rating: 0
Validations and Regular Expressions posted on 1244664879|%A: %d %B, %Y|agohover
While reading about Validations in Ruby on Rails, you've found out that you need to know Regular Expressions to validate the format of strings. You can test and learn regular expressions online easily here. (read more…)
Comments: 0, Rating: 0
Poll: Ruby on Rails Deployment posted on 1244402836|%A: %d %B, %Y|agohover
Do you need an up-to-date deployment tutorial for Ruby and Rails? Vote Here. (read more…)
Comments: 0, Rating: 0
Ruby vs Java posted on 1244240985|%A: %d %B, %Y|agohover
I defend my point! This is the Ruby code (read more…)
Comments: 0, Rating: 0
Rails: Switching the Database in Use to Another posted on 1244160547|%A: %d %B, %Y|agohover
You might easilty switch to another database in Rails. But defautl Rails projects use SQLite. To see the supported databases execute: (read more…)
Comments: 0, Rating: 0
Serving from a Virtual Box Machine posted on 1244108484|%A: %d %B, %Y|agohover

Your virtual machine on VirtualBox can be a server. Let's say you have a virtual machine named "My Server". Execute the script below on your host (not the virtual machine): (read more…)
Comments: 0, Rating: 0
Multiple conflicting GEM libraries; Ghost Ruby on Rails posted on 1244060054|%A: %d %B, %Y|agohover
Make sure that /usr/lib/ruby/gems and /var/lib/gems are actually the same directory if you haven't done that before. If you have both of directories on your machine then things have gone wrong about your Ruby on Rails Installation. (read more…)
Comments: 2, Rating: 0
Stop Smoking, Keep Geeking posted on 1244030914|%A: %d %B, %Y|agohover

Programming really made me smoke more. Debugging was smoking. Conceiving new ideas was smoking. Creativity was smoking. And getting double caffeine… One more coffee… (read more…)
Comments: 0, Rating: 0
Rails 2.3 Engines, Reusability posted on 1243516060|%A: %d %B, %Y|agohover
We want reusable components in our applications. With engines, whole model, view and persistence, a whole slice of application is available for reuse. Engines used to be a Rails plugin. Now it's embedded in Rails 2.3
- Railscasts: Rails Engines
- Slideshow: Power of Rails Engines and Templates
- Engines in Rails 2.3 by Mike Perham
- ASCIICasts Rails Engines
- Getting Started with Engines Development in Rails (read more…)
Comments: 0, Rating: 0
Why Rails Developers Need God posted on 1243380515|%A: %d %B, %Y|agohover

By Ben Myles (read more…)
Comments: 0, Rating: 0
Ruby the Smalltalk Way posted on 1243254905|%A: %d %B, %Y|agohover

Maybe you have been hearing that Ruby is inspired by Smalltalk. Huw Collingbourn gives you a chance to feel it by comparing the two languages. You can discover a lot more about the power of Ruby learning the powers of Smalltalk. Here is the full story... Uh, if you are still saying what is Ruby on Rails then you can enjoy a quick but productive first experience of Ruby on Rails here. And you can immediately start to play with Smalltalk using Squeak or Dolphin Smalltalk (read more…)
Comments: 0, Rating: 0
Updated Tutorial: Ruby On Rails With One Model posted on 1242815708|%A: %d %B, %Y|agohover
Now with test data to ease your tutorial experience:
Here is the updated tutorial! (read more…)
Comments: 0, Rating: 0
See all posts
Umuro is for hire:

See my LinkedIn profile for more details.
Follow me on Twitter- See my blinks
Umuro is also available with the Sense team at
for your problems that require a team work.
Listed by

blog directory

![]()




