Today I hacked up some scripts to update a Rails database based off of what is in a SQL Server database. The goal was to automate the export of some information from SQL, send it to a remote server, and then update the Rails database with the current information. Using Ruby’s CSV library made this …
Tag: ruby
My Ruby Cookbook: #2 LugRadio Mirror Add
I have been mirroring the “LugRadio”:http://www.lugradio.org broadcast for a while on my server here. For each new episode, I have to download the new files and then add the urls for those files to their mirror database. Being that I am lazy and I love ruby (and the php script was ok but Eric.like(:php) == …
My Ruby Cookbook: #1 Textile Convertor
I just got a simple script working that will parse a text file that is marked up in “Textile”:http://textism.com/tools/textile/ and turn it into HTML(Hyper Text Markup Language). It is a simple “Ruby”:http://www.ruby-lang.org script that requires RubyGems and “RedCloth”:http://www.whytheluckystiff.net/ruby/redcloth/. Just run <typo:code> ruby textilize.rb myfile.txt another_file.txt </typo:code> and it will create a myfile.txt.html and another_file.txt.html. This …
Graph your life in Ruby
I been wanted to keep a log my life a bit better than just my completed TODO list but have not found an easy way to do it until now. I saw Erik Benson’s Website the other day and notice his “Morale-O-Meter” that was generated using Gruff. Since I just started to play with Gruff …
RailDock: online documentation for Ruby on Rails
Raildock is a free website that has a searchable listing of the Ruby on Rails documentation. The search bar even features AJAX’d autocomplete via a dropdown box. It is a useful site and lets developers to find what they are looking for quickly and easily. I tend to have at least one tab open to …