Website Updates

From the Department of Who Gives a Rat’s Ass Department:

  • As mentioned in last entry, the Blog This! (my blog) portion of this site has been updated, style only. Basically, template modification. Good. Still a ways to go, but now it looks like it belongs to the site (littleghost.com)
  • I rewrote many parts of the quotation section on Geistlinger.com’s quote section. On of the issues was to highlight text that had been searched on — this is relatively trivial in CF (Cold Fusion), if you ignore case. However, if you want to maintain case found in the searched text — and ignore the case of the keyword/keyphrase entered, it gets more difficult. Example: Search for “site” in all fields. It may be found as “Site,” “site,” “SITE” or whatever — and the CF replace function will replace all three with keyword: “site”. I want to preserve case in the search fields, while at the same time highlighting them. In PHP and Perl this is trivial (note: finding this trivial solution is not-so-trivial). In CF, it does not appear possible. So I had to write a custom tag that does it — good exercise, it works and works well, but it shows CF’s relatively lack of robustness. Essentially, the custom tag has to loop through the text, find the (case-insensitive) test, keep the left, apply a style to the mid (keyword/phrase) and then keep going. NOT as efficient or clean as a regular expression that does it.