The Boston Diaries

The ongoing saga of a programmer who doesn't live in Boston, nor does he even like Boston, but yet named his weblog/journal “The Boston Diaries.”

Go figure.

Monday, Debtember 06, 2004

& … or something like that …

I made some more tweaks to the demo program; it now supports a “mixed” mode—you can type in HTML tags, but the system will add <P> tags if you leave a blank line between paragraphs (in fact, it was only five lines of C code—easier than I thought).

There's still one bug and it has to deal with HTML entity encoding (and mostly with populating the <TEXTAREA> with the text that was submitted). Type “&amp;” (which is the HTML entity for a lone “&”) then submit the data. The <TEXTAREA> will come back with a lone “&” where you typed “&amp;” before. Basically, to display “&amp;” you need to display “&amp;amp;” (and to display that I had to type “&amp;amp;amp;”—I think I got the right number of “amp;s”).

Ow—my brain hurts (and if the above is incorrect, I'm not bothering to fix it—which goes to show you how nasty this little problem is).

Oh, the demo program—it also supports a few shortcuts, like “---” (three dashes in a row) will be converted to “—” (the em-dash, and the code that processes entries for this blog will do the same, so check the source if you want to see how I got around that—geeze, this sef-referential stuff will kill me!) and “...” (three periods) will be converted to “…” (elipsis—it's own character); some short-cuts like that (and these shortcuts happen in any of the modes by the way).

Okay, I'm going to lie down now.

Update on Wednesday, April 13th, 2022

The demo program has long since been deleted. This entry can be safely ignored.

Obligatory Picture

Trying to get into the festive mood this year

Obligatory Contact Info

Obligatory Feeds

Obligatory Links

Obligatory Miscellaneous

Obligatory AI Disclaimer

No AI was used in the making of this site, unless otherwise noted.

You have my permission to link freely to any entry here. Go ahead, I won't bite. I promise.

The dates are the permanent links to that day's entries (or entry, if there is only one entry). The titles are the permanent links to that entry only. The format for the links are simple: Start with the base link for this site: https://boston.conman.org/, then add the date you are interested in, say 2000/08/01, so that would make the final URL:

https://boston.conman.org/2000/08/01

You can also specify the entire month by leaving off the day portion. You can even select an arbitrary portion of time.

You may also note subtle shading of the links and that's intentional: the “closer” the link is (relative to the page) the “brighter” it appears. It's an experiment in using color shading to denote the distance a link is from here. If you don't notice it, don't worry; it's not all that important.

It is assumed that every brand name, slogan, corporate name, symbol, design element, et cetera mentioned in these pages is a protected and/or trademarked entity, the sole property of its owner(s), and acknowledgement of this status is implied.

Copyright © 1999-2024 by Sean Conner. All Rights Reserved.