January 2011
5 posts
3 tags
A setup script to get Ruby and Rails running on... →
Jan 24th
3 notes
How I test a file upload in Rails 3
In previous version of Rails I used ActionController::TestUploadedFile.new to test file uploads, but in Rails 3 you have to use Rack::Test::UploadedFile.new The file object that is created can then be used as a parameter in Rspec, TestUnit or Cucumber Below a Test example: test "avatar upload" do avatar_filename = path-to-fixtures-image + "/avatar.jpg" file =...
Jan 20th
2 notes
7 tags
REST API v01 for piictu mobile applications
This was a great week at work, we delivered the REST API v01 for piictu mobile applications in one week =)  Builded in Rails, hosted on Heroku and using Amazon S3 for picture storage
Jan 14th
6 notes
4 tags
Efficient Rails Test-Driven Development
There are six videos that teaches you how to test in Rails, by Wolfram Arnold: Class 1 of 6 Class 2 of 6 Class 3 of 6 Class 4 of 6 Class 5 of 6 Class 6 of 6
Jan 4th
2 notes
8 tags
How to convert RMVB to AVI in linux
I have a WD TV Live which I use to play videos, unfortunately it don’t support RMVB (RealMedia Variable Bitrate) files, so I convert them to AVI format In my ubuntu box I convert RMVB to AVI using mencoder, which is a powerful tool to convert multimedia. Instructions: 1. Open a terminal window 2. Download and install Mplayer and the w32codecs: sudo apt-get install mplayer w32codecs 3....
Jan 2nd
1 note