About Jason Noble

  • Website: http://jasonnoble.org
  • Email: email
  • Biography: Jason Noble is a Linux systems engineer with over 10 years experience configuring Linux, Apache, MySQL, Perl, Ruby and Ruby on Rails technologies.

Posts by Jason Noble:

W3C logger plugin for Rails

Posted by Jason Noble on 07/22/2009 in Uncategorized |

I just released a plugin for Rails that logs your rails requests in W3C format. Checkout http://github.com/primedia/w3c_logger/tree/master.

Installing Ruby 1.9 on Mac OS X 10.5

Posted by Jason Noble on 06/26/2009 in Mac os x 10.5 10.5.7 ruby 1.9 rails |

Tommie over at The blog with no name has written up a how-to on getting Ruby 1.9 up and running in Mac OS X 10.5.7. Check it out: http://www.tommycampbell.net/2009/06/26/ruby-1-9-on-mac-os-x

1

How to optionally load gems

Posted by Jason Noble on 06/04/2009 in Uncategorized |

I ran into an interesting problem today at work. I wanted to optionally require a ruby gem. For example, I wanted to include the metric_fu rake tasks, but if a user doesn’t have metric_fu installed, it’s no big deal. Here’s how I implemented it. I added a method to the Kernel space (where require lives) […]

Recover files from git after deletion is committed

Posted by Jason Noble on 06/03/2009 in Uncategorized |

As I work with git, I have occasionally deleted files that I later end up needing. You can restore the files, but it’s not an intuitive process. First, I looked at the output of git log to find the commit that I deleted the files with. Then I ran: [text] git diff –diff-filter=D –name-only HEAD@{‘7 […]

RDoc preview in Textmate

Posted by Jason Noble on 04/24/2009 in Uncategorized |

While working on writing some RDOC documentation within Textmate, Rein Henrichs and I ran into a problem. Textmate will give you previews if you use markdown, but not RDOC. Below is how to do it. Create /usr/bin/rdoc2html: [text] #!/usr/bin/env ruby -rrdoc/markup/simple_markup -rrdoc/markup/simple_markup/to_html input = ARGF ? ARGF.read : STDIN.read print SM::SimpleMarkup.new.convert(input, SM::ToHtml.new) [/text] Make the […]

1

GitHub set author/committer

Posted by Jason Noble on 04/21/2009 in git, github, pair programming |

I’ve been working with Git lately and more specifically GitHub. I noticed something odd one day. Where most commits have one author listed, these commits had both a author and a committer listed. More specifically, the author field was the two members of the pair and the committer name was the workstation they were working […]

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 […]

Adding an alias to the Tcsh Shell

Posted by Jason Noble on 09/14/2008 in Uncategorized |

If you run a command frequently, you can create what is called an alias. The alias is usually a shorter form of the original command. To make these aliases permament, you should edit .tcshrc in your home directory. [text] 11:32:07 /Users/jasonn $ vi ~/.tcshrc [/text] Add a line of text of the format “alias YYY […]

Adding an alias to the Bash Shell

Posted by Jason Noble on 09/14/2008 in Uncategorized |

If you run a command frequently, you can create what is called an alias. The alias is usually a shorter form of the original command. To make these aliases permament, you should edit .bashrc in your home directory. [text] 11:32:07 /Users/jasonn $ vi ~/.bashrc [/text] Add a line of text of the format “alias YYY=’ZZZ’” […]

Adding an alias to the Tcsh Shell

Posted by Jason Noble on 09/14/2008 in Uncategorized |

If you run a command frequently, you can create what is called an alias. The alias is usually a shorter form of the original command. To make these aliases permament, you should edit .tcshrc in your home directory. [text] 11:32:07 /Users/jasonn $ vi ~/.tcshrc [/text] Add a line of text of the format “alias YYY […]

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