Category Archives: Programming

Using cucumber-0.9.2 and cucumber-rails-0.3.2 with I18n

I have previously, blogged about using factory_girl with clearance and this post (quite similar to that one) describes the need to use messages (notice, success or failure) in your locale file with cucumber and how to go about using them. … Continue reading

Posted in Programming | Tagged , , | 1 Comment

Rails3 and rspec-rails-2.0.0.beta20 and cucumber-rails-0.3.2

Last week, I started a Rails3 project and considering I am sucker for TDD. I added the current stable versions of rspec-rails and cucumber-rails to the Gemfile. Now, this is a simple project (and honestly speaking I could have just … Continue reading

Posted in Programming | Tagged , , | Leave a comment

Ruby 1.9.2 and RVM

RVM is no doubt an amazing piece of code. It just makes life so much easier. Ruby 1.9.2 is out. Woo-hoo! and I tried installing it with rvm only to encounter an error. I fixed the error and this post … Continue reading

Posted in Programming | Tagged , , | 2 Comments

Reading Open Source Code

I was very confused the first time I heard this phrase – “Read Open source code”. I could not really grasp the concept of reading someone else’s code. How can that improve your own programming skills? But, I can safely … Continue reading

Posted in Programming | Tagged , | Leave a comment

Bundler 1.0.0.beta.5 and Rails 2.3.8

I wrote about Bundler a couple of months ago. With newer versions of bundler out two of my issues at that time, using engines and issues with time_zone have been resolved. I am currently using bundler 1.0.0.beta.5 with a rails … Continue reading

Posted in Programming | Tagged , | Leave a comment

Extend Paperclip 2.3.1.1 to retrieve attachment’s dimensions in Rails 2.3.8

In my previous post, I mentioned a way of validating the size of the attachment and I did warn readers that it is a monkey-patch and it needs serious refactoring. Big refactoring is a result of several small ones and … Continue reading

Posted in Programming | Tagged , , | Leave a comment

Paperclip 2.3.1.1 and validate attachment’s dimension

Paperclip is an easy-to-use file upload gem released by Thoughtbot. It provides several validations out of the box like validation on size (as in file size) of the attachment, if the attachment is present or not and so on. However, … Continue reading

Posted in Programming | Tagged , , | Leave a comment

Bundler 0.9.25, Rails 2.3.8 and vendor/gems has no specification file error

Majority of us have seen this dreadful error after running rake:gems:unpack or a similar command to register gems with the application. config.gem: Unpacked gem clearance-0.8.8 in vendor/gems has no specification file. Run ‘rake gems:refresh_specs’ to fix this. I was under … Continue reading

Posted in Programming | Tagged , , , | 1 Comment

When Safari 5′s Reader feature fails

Safari 5 is awesome and one thing that sticks out is the Reader feature. It basically identifies some pages, for example: news pages on BBC, and allows user to produce a better, enhanced page with same text but much readable … Continue reading

Posted in Programming | Tagged , | Leave a comment

Jquery, JSSpec and an elegant timepicker

Time selection via web has always been those grey areas where one does not really find good solutions. With the advent of Jquery, there are plethora of date selection javascripts out there. However, time selection has not received similar treatment. … Continue reading

Posted in Javascript, Programming | Tagged , , | Leave a comment