Legitimate News

by Peter Tyrrell Wednesday, August 17, 2005 9:57 AM

Scientists develop pee-powered battery Technology ushers in a new Golden Age. Laptops spark sale stampede "...with people being thrown to the pavement and beaten with a folding chair. One woman wet herself rather than surrender her place in line." Probably planning to power her laptop with the aforementioned. And by the way, they were 4 year old iBooks. Wtf?


What I reads

by Peter Tyrrell Tuesday, August 16, 2005 5:28 PM

What I'm reading right now. And reviews.

A New Kind of Science, Stephen Wolfram Brain say ouch. Smoo stars.

Farmer Giles of Ham, J.R.R. Tolkien Haven't actually started. Due back at library soon. Probably... not going to get read. Uh... no stars yet.

Eric, Terry Pratchett A book I'm almost finished but am not going to finish because frankly it sucks. I've read a lot of Terry Pratchett (by which I mean all of Terry Pratchett) and this one should be avoided. Can't believe I bought it. -1 stars. That's minus one.

The Pinball Effect, James Burke More goodness from Mr. Burke. The best part about reading him is that he writes like he talks. Ace stars.

Gardens of the Moon, Steven Erikson Sigh. I tried this once already, but Dana said I should try it AGAIN, so I promised him I'd make it through 200 pages before giving up. I'm on page 50. It had better get good FAST. 50 stars. One for every page I've suffered through.


Inmagic date formats and regional settings

by Peter Tyrrell Tuesday, August 16, 2005 1:37 PM

Okay, I did some tests and this is the conclusion: in v7 of dbtext anyway, the dbtext.ini file can be given a short date format, BUT this is very misleading because although dbtext uses the dbtext.ini format to *stamp* the date (when automatic), the dbtext.ini format is completely ignored when the date is indexed. And when indexing, dbtext indexes the date as an unambiguous absolute. What does this mean? Let's say today is Feb 10, 2005. My machine's regional settings are M/d/yyyy. To my machine, Feb 10 2005 reads 2/10/2005 in short format. If I don't touch the dbtext.ini, any autodate in short format in dbtext is going to be stamped in as 2/10/2005, and that date string will be indexed as Feb 10 2005. All good. As soon as you try to *overrride* Windows regional settings with dbtext.ini, problems arise. Let's summarize in shorthand, assuming the new record date is Feb 10, 2005: Trouble shows up when dbtext.ini is set to the Windows regional settings' opposite. The autodate gets *stamped* according to dbtext.ini, but *indexed* according to Windows regional settings. Remember "today" is Feb 10 2005 so the date should be getting indexed as Feb 10 2005. Wherever you see Indexed As Oct 2 2005 (Case 2 & 4) it's because dbtext.ini is set to the reverse of Windows regional settings. The take-home message is: do not assume that a date format setting in dbtext.ini overrides Windows regional settings, because it doesn't in all actions. Also, because the date index is never subject to reinterpretation, whatever absolute date was laid down at the time of the orginal indexing (usually when record was saved) is the absolute date that remains, *regardless* of whether the textbase is moved to another machine where the regional settings differ, and regardless of whether the machine the textbase resides on has its regional settings changed. You must re-index the date field to pick up on a different regional settings environment. The consequences of this legacy index behaviour are not at all clear in the Inmagic kbase article 2606 Troubleshooting when the Date format changes after upgrading operating system, nor are the risks of setting date formats in DBTEXT.INI discussed in Inmagic kbase article 2122 Date Formats Supported by DB/TextWorks. In the case of the former, there should be instructions to re-index after the Windows regional settings change, and for the latter, it should be made clear that DBTEXT.INI date format settings do not override Windows regional settings when indexing.


Tyrrell the Spaz

by Peter Tyrrell Monday, August 15, 2005 10:50 AM

Alright, just because who wants to read about scripting with Inmagic WebPublisher sort keys, I include a readable shorty.

When I was of grade school age, I had a small problem controlling my temper. It was extremely short, and I would explode as easily as a Mexican cliff diver wearing a nitroglycerine bathing cap. All my enemies at school knew this, and delighted themselves in baiting me until I blew my stack. Then they danced about and sang a little tune they made up, the lyrics of which I am happy to repeat, today, just for you. (Rock aficionados will note that my schoolyard foes based their chant on The Rolling Stones' Down in the Hole.)

Tyrrell the Spaaaaazzz, He's down in the Gutter, Beggin' for cigarettes....

I can't remember if there was more to it than that, because right at at that point a red mist would come down and I would attempt to kill them. I never did, much to my dismay, and it probably has a lot to do with the fact that I weighed in at 60 lbs. and was built like a wire coathanger.


Sort keys and see-also links

by Peter Tyrrell Monday, August 15, 2005 9:55 AM

Trying to decide whether to post something that might be useful, or to just spaz out completely. I guess it's time for an inform-o-post so as to retain justification for this blog being on the And-O-Not web-o-site.

Um, okay. <rustle> Sure to be something back here. <squelch> Ew. Not that.

Alright, so you're using sort keys with WebPublisher and you want them sort keys to be see-also links. But what's this? WebPublisher just don't do that!? No prob, Bob. Wrap the sort key in a div tag. Give div tag a unique ID (use RecordID, for instance). Call the following from a script block immediately following the div tag:

<div id="SeeAlso[RecordID]"> [SortKey:Level1] </div><script> GetSeeAlso('SeeAlso[RecordID]', '[FieldName]') </script> Reference the following javascript from the page: function GetSeeAlso(TargetID, Field) { var Target = document.getElementById(TargetID); var CleanValue = Target.innerHTML.replace(/<font>]+>/, ''); CleanValue = CleanValue.replace(/<\/font>/, ''); var SeeAlsoLink = CreateSeeAlsoLink(CleanValue, Field); Target.innerHTML = SeeAlsoLink; } function CreateSeeAlsoLink(value, field) { var str = "?AC=SEE_ALSO&QF0=" + field + "&QI0==" + value + dbtw_params; var link = "<a href='" + str + "'>" + value + "</a>"; return link; }

And that does the trick. A see-also link built from a sort key.


Month List