Category: Articles

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 …

Read more

2005, how did you do?

2006 is just around the corner now. It is time to start reviewing this past year to learn from what happened. Some questions you might ask yourself: How was 2005? Did I get anything done? Did you work on “small stuff”:http://www.paulgraham.com/procrastination.html or did you work on something important? What did you do to make the …

Read more

Once again, a new theme

Well you might notice that I once again have a new theme up. This one is called subtleTheme and is by Thomas Aylott. I adjusted the width of the content area a bit and had to patch the code a bit for trunk but it works pretty good, and looks great. The patch is in …

Read more

Free Culture

If you have not read “Lawrence Lessig’s”:http://www.oreillynet.com/pub/a/policy/2002/08/15/lessig.html speech, now is the time to. I has been a real eye opener for me and has made me realize that Free Software and OSS is more than just low-cost, high quality code…. h1. It is a way of life Closed source and proprietary anything defeats competition. For …

Read more

Using Migrations to Insert Content

Migrations have made “Rails”:http://www.rubyonrails.org development so much easier by being able to code our SQL “data definations”:http://en.wikipedia.org/wiki/Data_Definition_Language in “Ruby”:http://www.ruby-lang.org. You can also use migrations to code in some data too. To do this you just access the models as you would in any other “Rails”:http://www.rubyonrails.org file. For example, if you want to add to rows …

Read more