Rant: September 2005 Archives

Gone

| | Comments (4)
kazza@kaos ~% ls -la aurelius
total 12
drwxr-sr-x    3 kazza    ppp          4096 Sep 19 18:41 .
drwxr-sr-x    8 kazza    ppp          4096 Sep 19 18:12 ..
drwxr-sr-x    4 kazza    ppp          4096 Sep  7 13:42 lostlegionary.blogspot.com
kazza@kaos ~% rm -fr aurelius
kazza@kaos ~% ls -la aurelius
ls: aurelius: No such file or directory

And do you know what? I didn't even feel the urge to reread any of it.

The Lost Legionary is dead to me. Good bye.

One Line

| | Comments (3)

So we've spent *hours* on this problem. The problem of how to display a notes richtext field as html. For the most part the data we have is just plain text, but with carriage returns that don't render if you just display them (since carriage returns without <br> tags are ignored by browers). We looked at buying Midas. We tried using a mime conversion script we found on the web. Nothing was easy. And we were working with lotusscript which is messy at the best of times, and Jim didn't know off hand how to convert line breaks to <br> tags. So today I was thinking more about the problem because go-live is next week and we're still no closer to solving it. So I wondered how i could do what I wanted to do in formula language. And I solved a decent chunk of our problems with one line of code:

@ReplaceSubString(@Text(Body);@Newline;"<br>")

It was enough to make me want to give up and go home. Or at least drink and shoot people :)

Kazza's "Boring Life Of a Geek" aka BLOG

IT geek, originally from Sydney, moved to Canberra in 2007. Married to "the sweetie", aka Stu. Prolific photographer, Lego junkie and tropical fish keeper.

Kazza the Blank One home