Docker, in the beginning, can be overwhelming. Tutorials often focus on creating a complex interaction between Dockerfiles, docker-compose, entrypoint scripts and networking. It can take hours ...
http://rubyflewtoo.blogspot.com/2020/07/getting-started-with-docker.html
irb> 1 => 1 irb> 1.to_s => "1" irb> 1.to_s * 2 => "11" irb> "1" *2 => "11" irb> 1.to_s *2 => "1" # huh? #let's try that again with 2.... irb> 2.to_s => "2" irb> 2.t...
http://rubyflewtoo.blogspot.com/2020/07/fun-with-ruby-tos.html
Many web development frameworks like Ruby on Rails or Padrino or Sinatra make use of some magic variables. It's always a good idea to become at least partially familiar with these in case you fal...
http://rubyflewtoo.blogspot.com/2020/07/development-tips-dont-use-request-as.html
Renée De Voursney talking at the AU Ruby Conf about the trials and tribulations of learning Ruby. Renée De Voursney - Teaching Ruby for fun and profit from Ruby Australia on Vimeo . She t...
http://rubyflewtoo.blogspot.com/2014/03/context-tooling-and-beginner-programmer.html
UNDERSTANDING THE GUTS OF RUBY VERSION MANAGEMENT BY ROLLING YOUR OWN I've been tinkering with a fresh install of Ubuntu 12.10, setting up a nice clean development environment. One of the firs...
http://rubyflewtoo.blogspot.com/2012/12/poor-mans-guide-to-managing-ruby.html
What do you do when you love your spec testing with Capybara but you want to veer off the beaten path of Rspec and forge ahead into MiniTest waters? Follow along, and you'll have not one, but two...
http://rubyflewtoo.blogspot.com/2012/12/rails-32-minitest-spec-and-capybara.html
Reproducing the Elo rating algorithm in Ruby is a little challenge that I took upon myself recently for a small hack. The same Elo rating system that was scrawled upon the glass in "The Social Ne...
http://rubyflewtoo.blogspot.com/2012/11/ruby-facemash-and-elo-rating-system.html
Ruby has, at its root, an Object. Methods available in Object are available to every class because every class in Ruby inherits from Object somewhere in its own class hierarchy. Of course, you ca...
http://rubyflewtoo.blogspot.com/2012/11/overriding-equality-and-test-driven.html
Rails has a lovely feature as part of ActiveRecord - Callbacks; to wit: > Callbacks are hooks into the life cycle of an Active Record object > that allow you to trigger logic�...
http://rubyflewtoo.blogspot.com/2012/10/rails-callbacks-and-boolean-values.html
If you work with Ruby on Windows in a corporate environment, sooner or later, you will hit an error when you are trying to install or update Gems. In my case, I simply had to set a few environmen...
http://rubyflewtoo.blogspot.com/2012/10/install-or-update-gems-behind-corporate.html
There are always times when you need to override the default RESTful routes in Rails. The most common case for this is mapping a /logout url to a session#destroy controller and action. However, t...
http://rubyflewtoo.blogspot.com/2012/10/ruby-on-rails-mapping-url-to-resource.html
For fun, I thought I would start a new Ruby on Rails project and use MiniTest instead of Test::Unit. Why? Well MiniTest is Ruby 1.9s testing framework dejour, and I suspect we will see more and ...
http://rubyflewtoo.blogspot.com/2012/09/getting-started-with-ruby-on-rails-32.html
If any language should have been name after a snake, Javascript should have. It's a slippery little thing I tell you. It slithers and slides and wraps around you. And you have to work like a snak...
http://rubyflewtoo.blogspot.com/2012/09/javascript-objects-by-ref.html
Some thoughts on the Padrino and Rails . For the past few weeks, I've been working on a small project that is using Padrino rather than Rails. The interesting thing was that the decision for the...
http://rubyflewtoo.blogspot.com/2012/09/ruby-frameworks-rails-and-padrino.html
Running a fresh copy of Linux Mint and Rails lets you generate a new project with no problems, but you might start to hit issues as soon as you start trying to generate some scaffolding. So for e...
http://rubyflewtoo.blogspot.com/2012/08/rails-32-could-not-find-javascript.html
I wanted to have a triple boot computer - why? don't ask me why! Oh, ok, I'll tell you - I needed Windows 7 for some current work and didn't want to mess up the install. I wanted to install Windo...
http://rubyflewtoo.blogspot.com/2012/08/triple-boot-linux-windows-7-and-windows.html
Sometimes, you just need that absolute URL. Padrino gives you a great little helper to create your urls in th form of url_for. Unfortunately, Padrino's documentation seems to be written from the ...
http://rubyflewtoo.blogspot.com/2012/08/generate-absolute-url-in-padrino.html
So, you've set yourself up a lovely new app using, for example, Sinatra , and you're really chaffing at the bit to write some lovely code. But you keep getting bit by this: LoadError: cannot ...
http://rubyflewtoo.blogspot.com/2012/08/ruby-loaderror-cannot-load-such-file.html
Last time I took you through installing Sublime Text 2 on Linux Mint . The trouble with doing the install the manual way as I showed and not using sudo apt-get is that you don't get the neat inte...
http://rubyflewtoo.blogspot.com/2012/08/adding-item-to-linux-mint-cinnamon-menu.html
So, perhaps you've set up a fancy application using padrino , datamapper and sqlite and you are going great guns until padrino rake dm:migrate => Executing Rake dm:migrate ... rake abor...
http://rubyflewtoo.blogspot.com/2012/08/padrino-datamapper-rake-uninitialized.html
So, continuing on from installing RVM on Linux Mint and installing Ruby on Rails on Linux Mint , I want to give a brief rundown on installing Sublime Text 2 on Linux Mint, though in fact, this w...
http://rubyflewtoo.blogspot.com/2012/08/installing-sublime-text-2-on-linux-mint.html
Last time I did a quick RVM install guide for Linux Mint . This time I'm going to finish up by installing rails so we can rock some new development work. Nothing like a clean and humming system I...
http://rubyflewtoo.blogspot.com/2012/08/installing-rails-on-linux-mint-13-with.html
Linux Mint has captured my imagination recently, and of course a fresh install means getting my dev environment up and running again. I'm using the cinnamon version and so far things are going w...
http://rubyflewtoo.blogspot.com/2012/07/installing-rvm-on-linux-mint-13.html
If you are trying to compile a site with Jekyll and ruby 1.9.3 and you have some dodgy yaml front matter in one of your posts, your site just won't regenerate. Step 1 is to edit your _config.yaml...
http://rubyflewtoo.blogspot.com/2012/07/jekyll-and-ruby-193-site-not.html
I'm on a twitter bootstrap binge at the moment, it fills my soul with glee to start a new project with a base template that looks better than the usual dog's breakfast. Anyway, there are days wh...
http://rubyflewtoo.blogspot.com/2012/07/creating-flash-messages-bootstrap-style.html