Author: roryhansen
-
Zebra-striped tables using Rails
Zebra-striped tables are tables where row colors alternate between a light color and a dark color and can be done both using server-side code (ie. Rails) or client-side code (ie. JavaScript). I posted a question asking for the most convenient way to create zebra-striped tables to the Rails newsgroup some weeks ago and the responses…
-
Capturing application-wide unhandled exceptions
I’m now two months into my new job and am neck-deep in development on the two web applications that my team maintains. One thing I’ve noticed so far in the code base is that there are many areas throughout the application where try/catch blocks should have been used, but were not. This often leads to…
-
Related Drop-down Lists with Ruby on Rails and AJAX
Note: I have been meaning to re-write this post to make better use of Ruby on Rails helpers, etc. When I first wrote this I was extremely new to Rails and my unfamiliarity with the framework showsUntil I have the free time to re-write this post, please bear with what is currently here and leave comments…
-
Using IFrames in ASP.NET
So, I’ve basically finished coding the “Google Suggest”-like web user control I was writing for the company I’m doing a co-op work term at. I’m now in the process of integrating it into an existing textbox control that they’ve developed, and that should be finished soon. One part of the web user control is an…
-
Implementing Search in Ruby on Rails
Update: While searching like this works, it’s probably not the most efficient way. In the near future I’ll be looking into setting up Ruby/Odeum, which is a ruby binding to the QDBM Odeum inverted index library. Basically, every night a new search index would be generated, and searching would be done over this index, rather than dynamically…
-
CodeIgniter Blank Page Fix: Blank webpage when setting up CodeIgniter, PHP, MySQL, and Apache
Today, I created my first website using the Code Igniter PHP framework and, oh boy, do I like it a lot more than Ruby on Rails. But I’ll dig into that further in a future post. The purpose of this post is to shed some light on a problem that I wracked my brain over…