1

Parameter Lists Rubocop

Posted by Jason Noble on 02/19/2015 in rubocop, ruby, Uncategorized |

Rubocop is a Ruby static code analyzer. Rubocop utilizes a number of style rules, which it calls “Cops”, hence the name. I picked a cop at random, and wanted to see what it looks for in my Ruby code. So let’s take a look at Parameter Lists [code] cd ~/workspace/davinci_coders_t1_2015/practice mkdir parameter_list_rubocop cd parameter_list_rubocop echo […]

1

Updating requested_by for a bunch of Pivotal Tracker stories

Posted by Jason Noble on 07/18/2013 in Pivotal Tracker, ruby |

I recently imported a bunch of stories into Pivotal Tracker via the Import CSV function. This worked like a charm, the problem was I wanted all the stories to be requested by a different user than what was in the CSV file. I could use the web browser to do this, but that would take […]

Tags: , , ,

Mysql 5.6.12 and mysql2 ruby gem 0.3.12

Posted by Jason Noble on 07/16/2013 in mysql, ruby |

I recently updated my Homebrew install and installed the latest mysql (brew update && brew upgrade mysql) to 5.6.12. However, when I tried to upgrade my mysql2 gem from 0.3.11 to 0.3.12, I was getting the following error: [shell] *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary […]

Tags: , , ,

3

Rails3 Custom Environment Variables

Posted by Jason Noble on 02/14/2011 in ruby, ruby on rails |

I recently saw a question on Stack Overflow regarding custom variables that have different values based on which environment you are running for Rails. It turns out it’s very easy to accomplish. [ruby] # config/initializers/configuration.rb class Configuration class << self attr_accessor :json_url end end [/ruby] This gives you access to a Rails variable called Configuration.json_url. […]

Making TextMate recognize .html.erb files

Posted by Jason Noble on 09/21/2008 in ruby, ruby on rails, textmate |

I’m using TextMate to edit some Ruby on Rails code. I noticed that when I edit the view pages (i.e. index.html.erb) it does not do syntax highlighting. It turns out this is because the Ruby on Rails TextMate bundle thinks that ruby view pages are .rhtml, which is the old Ruby on Rails format. You […]

1

Installing Ruby on Rails in FreeBSD with Postgres

Posted by Jason Noble on 09/02/2008 in FreeBSD, postgres, ruby, ruby on rails |

After setting up a minimal FreeBSD install, I want to get Ruby on Rails up and running. Let’s see what’s available in the ports tree. [text] freebsd-vm# make search key=gem | grep Path: | grep ruby Path: /usr/ports/audio/rubygem-mp3info Path: /usr/ports/benchmarks/rubygem-railsbench Path: /usr/ports/databases/ruby-dbd_pg Path: /usr/ports/databases/ruby-rdbc1 Path: /usr/ports/databases/rubygem-activerecord […] Path: /usr/ports/devel/ruby-gemfinder Path: /usr/ports/devel/ruby-gems Path: /usr/ports/devel/rubygem-activesupport […] Path: […]

Setting up IronRuby

Posted by Jason Noble on 08/15/2008 in .net, ironruby, microsoft, ruby |

I’m playing around with learning some Microsoft technologies to broaden my knowledge base. I figured I’d start with Ruby, as it’s something I sort of already know and gives me visibility into Microsoft tools. From my research, Microsoft is working on a project called IronRuby. To get started, I’m following the directions here.

Copyright © 2008-2019 Jason Noble's Technical Adventures All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.