[Duncan's Home] Duncan's Jotter
faq -  feedback -  home 
Members
Logon   -   Sign Up
smeed >> duncan.smeed.org | Duncan's Jotter
duncan.smeed.org | Duncan's Jotter

Day Link Icon 1/30/2002

Code Trek

(by Duncan, @ 1:04 PM)

"Radio, the latest Frontier(tm). These are the voyages of the starship... Optimise. It's continuing mission: to explore strange new macros, to seek out slow code, and non-optimisations, to quickly go where slow ones have gone before!" [Duncan Smeed]

Comments: 0 | Reply | Categories: None

Surreal pong!

(by Duncan, @ 1:40 PM)

Check this out. Brilliant! - humor_pong.swf

Comments: 0 | Reply | Categories: None

Jotter RSS feed broken

(by Duncan, @ 1:56 PM)

Update: The bug is fixed. Thanks Seth!. And it's fast. Seth is caption captain of the starship Optimise ;-)

The RSS feed for this site is currently broken. Normal service will be resumed as soon as possible.

On a related note: I must investigate the use of a custom weblog view to generate RSS. Steve Ivy is already doing this.

Comments: 1 | Reply | Categories: None

EE Times - AMD to buy MIPS processor startup Alchemy

(by Duncan, @ 11:40 PM)

EE Times - AMD to buy MIPS processor startup Alchemy
Advanced Micro Devices Inc. plans to acquire Alchemy Semiconductor Inc. and pit that company's MIPS-based processor architecture against Intel Corp.'s Xscale processors, broadening an already fierce rivalry to the embedded front, sources said.

Comments: 0 | Reply | Categories: None



Day Link Icon 1/29/2002

UserTalk: string concatenation optimisation

(by Duncan, @ 11:26 AM)

UserTalk: string concatenation optimisation
Executive Summary: The non-optimal version of string addition/concatenation in UserTalk - text = text + "b" + "r\n" - is exponentially slower than the optimised version for non-trivial strings. It's worth looking at your own code to see if you can make similar optimisations. The optimised version scales linearly with string length.

Comments: 0 | Reply | Categories: None

Collaborative Computing in Higher Education: P2P Workshop

(by Duncan, @ 2:27 PM)

via HtP not surprisingly since Wes is a speaker at the Collaborative Computing in Higher Education: Peer-to-Peer and Beyond workshop.

Comments: 0 | Reply | Categories: None



Day Link Icon 1/28/2002

Speedpool2

(by Duncan, @ 3:10 PM)

via hbwt - Speedpool2:
"Speedpool2 is a revolutionary new and exciting approach to the classic pool game creating a potent symbiosis fusing the logic and grace of billiards with the raw bloodsport and confusion of full-contact hockey.

It is also an outstanding way to get thrown out of bars."

The rules for the game conclude with:

"The most important thing to remember about Speedpool2 is that it is a fluid game and nobody's going to sit back while you wiener around with your cue chalk. The game starts, you run around like a freak whooping and shouting, the game ends. Enjoy!"

I reckon some of my students play regular pool like this too ;-)

Comments: 0 | Reply | Categories: None

The Register: Intel's Yamhill - Itanic on ice?

(by Duncan, @ 3:19 PM)

The Register: Intel's Yamhill - Itanic on ice? -
A fine scoop by the San Jose Mercury apparently confirms the existence of Intel's 64bit Plan B, codenamed Yamhill.

According the Merc, Yamhill adds 64bit instructions to the existing x86 architecture, and may appear in the Prescott chips, "with an option to turn the features on or off." The emphasis is on 'may', as according to the former Yamhill engineer, no decision has been taken to proceed with Plan B.

Comments: 0 | Reply | Categories: None

Weekend lost

(by Duncan, @ 3:22 PM)

This past weekend was the first time for ages that I missed updating this site two days in a row. Primarily because I was busy with other things including work: exam marking and undergraduate admissions.

Normal service has now resumed ;-)

Comments: 0 | Reply | Categories: None

Q209354 - HOWTO RTFM

(by Duncan, @ 3:41 PM)

Warning: adult humour ahead. Here's a great spoof link - Q209354 - HOWTO RTFM:
The information in this article applies to:

* General Lamers

Prerequisites:

* The ability to Read
* Basic Brain Function

Update: as soon as I posted this message it dawned on me that it sounded familiar. A quick search of DJ confirmed my suspicion. I'd linked to this almost a year ago in http://duncan.smeed.org/894 ;-) How time flies.

Next time I'm going to SMFW - Search My Weblog - before posting!!

Comments: 0 | Reply | Categories: None

Apple Unveils Dual 1-GHz Power Mac G4

(by Duncan, @ 4:19 PM)

Apple Unveils Dual 1-GHz Power Mac G4
January 28, 2002 -- Apple (R) today announced the ultimate digital powerhouse for creative professional - the new Power Ma G4 featuring dual 1-GHz PowerPC G4 processors, the industry's first NVIDIA GeForce4 graphics card and a DVD/CD burning SuperDriv, priced at just $2,999(US).

Comments: 1 | Reply | Categories: None

Frontier, BBEdit, guest databases, and Radio

(by Duncan, @ 11:45 PM)

Frontier, BBEdit, guest databases, and Radio

Skip to the last few paragraphs to see why I am so chuffed this evening...

In the summer of '99 I extensively reworked the old Frontier bbsite suite and converted it into a guest database - akin to a tool in Radio parlance. Like the old bbsite suite, the new framework used the BBEdit app verbs - see system.verbs.apps.BBEdit.changeNotes for historical interest ;-) - to integrate BBEdit into a workflow not totally unlike that used in Radio today. Since '99 was a time when Frontier guest databases were all the rage I decided that reworking the BBSite suite for GDB deployment would be an excellent way to come up to speed on this new feature of Frontier.

To cut a long story short, the text files of my static websites reside in the filesystem as normal. Associated with each (sub-)site is a .root file that contains all of the site-specific details such as glossaries, images, preferences, etc. For example, my work website is contained in #dunc.root in the top-level directory that contains the files and sub-folders of all my work-related pages. The new guest database version of the bbsite suite - called, unimaginatively, bbsite.root - contains the site independent data, macros, etc.

Until BBEdit 6.5 (or was it 6.1?) came along, pages that I edited in BBEdit could be rendered through the Frontier/gdbbsite combo by invoking the relevant script - normally renderFrontWindow() - using a shared-menu, single keystoke invoked, command. The latest version of BBEdit broke that so I was able to replicate most of the functionality with AppleScripts (or was it UserTalk) in BBEdit's Script folder.

I found this to be a highly productive way to work - edit in BBEdit, render and preview. The render/preview cycle took just a few seconds. Once happy with the rendering the files were FTPed to their final destination. Imagine my disappointment when I found out that Frontier running in Classic mode under Mac OS X crashed and burned Mac IE 5.1 In my changeover to Mac OS X a couple of weeks ago, I had resigned myself to the fact that I might have to reboot into Mac OS 9.2.2 in order to use my beloved Frontier/BBEdit combo. I had even begun to think the unthinkable - abandon this way of working altogether!

So, now that I found myself with a few(!) hours to spare I thought that I might as well investigate the feasibility of using Radio instead of Frontier. I expected that I'd be in for a mammoth debugging session but, hey, nothing ventured nothing gained right?

[Prior to the following steps, BBEdit was open and a text files was open in the frontmost window]:

  1. Duplicated the Radio folder so I could back out of any disaster.
  2. Copied bbsite.root into the RU Tools folder
  3. Launched Radio - which opened up bbsite.root along with the other 'tools'
  4. Made bbsite.root visible and opened the gdbbbsite.renderFrontWindow() script
  5. Manually ran gdbbbsite.renderFrontWindow()
  6. Was totally gob-smacked when the file was rendered properly and previewed in Mac IE 5.1

Eureka! Was I delighted? "You bet your sweet bippy!" I was. It had worked first time. I must have made a better job of the conversion than I thought considering it was now running in a different location to the original file!!

Alas, none of the scripts that used to work in BBEdit 6.5 under Mac OS 9.2.2 worked in Mac OS X. I think they may have originally been UserTalk rather than AppleScript but UserTalk is not (currently) recognised as a valid option in the drop-down 'dialect' menu in the Script Editor window. So, next task was to write an Applescript to do the deed from the BBEdit script menu. Now, I know enough AppleScript to be dangerous but not enough to work out why things go wrong when they do. Or at least I thought I didn't.

My first attempt at the AppleScript was simply:

tell application "Radio UserLand™"
	Do Script "gdbbbsite.renderFrontWindow()"
end tell

This looked promising when it was run from the Script Editor and actually worked. However, when invoked from the BBEdit script menu, BBEdit went deaf and eventually timed out with some sort of appleevent timeout. So, it was not looking good. Then in the dim recesses of my memory I seemed to recall that the call should be wrapped in a thread.easycall. I tried the obvious incantation but of course this didn't work. So if all else fails read 'the source' or RTFM ;-) So a quick jump to thread.easycall in Radio revealed all and would you believe the script:

tell application "Radio UserLand™"
	Do Script "thread.easycall("gdbbbsite.renderFrontWindow\",{})"
end tell

actually works!

So, there you have it! BBEdit invoking an AppleScript which in turn invokes a Radio script to render the frontmost window though the new and improved bbsite suite framework. Tomorrow the world!

Comments: 2 | Reply | Categories: None

Copyright © 1999-2005, Duncan Smeed. All rights reserved.
 
January, 2002
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31  
Dec  Feb
Tell ICANN to keep their hands off .org!


Run the HTML validator for this page
Webmaster: web at smeed.org