Updated: 9/24/02; 2:10:05 AM.
Jake's Radio 'Blog
Inch-by-inch...
        

 

Wednesday, December 26, 2001


Here's how to get the current time into your page, in a 24-hour format, European-style -- add the following macro to your template:

<%
local (day, month, year, hour, minute, second);
date.get (now, @day, @month, @year, @hour, @minute, @second);
hour = string.padWithZeros (hour, 2);
minute = string.padWithZeros (minute, 2);
second = string.padWithZeros (second, 2);
return (hour + "." + minute + "\'" + second)
%>

The macro expands to something like this: 02.10'05

16:25'02    comment []


No, I didn't stay away from the computer on Christmas. My dad asked me if I was working, and I said, "What are you kidding?" He thought that meant that I was working. I meant that I wasn't.

Anyway, one of the non-work things I did on my computer was update my MacOS X installation. It cleared up a couple of things. First, icons on my desktop don't end up in strange locations after waking my PowerBook from sleep with the outboard monitor connected. It may seem like a minor thing, but I was very pleased.

The other thing is that now my PC-card adaptor that I use to download pictures from my digital camera's compact flash card works. This is really great because that was the last thing I needed in order to completely wean myself from booting into classic.

I also downloaded the b3 version of the driver I use for my Lucent/Orinoco 802.11b card, and turned my AirPort base station back on. It works! What's more, the rogue DHCP server that was preventing me from using DHCP to get IP addresses from the base station seems to be gone. Someone finally got a clue.

The other thing I did was have a look around Apple's new AppleScript pages. On their Toolbar Scripts page, there's a script you can use to scale images. I copied the scaling bit into a script window in Radio, and did a quick test. Guess what: It works! Someday when I have some free time, I'd like to make a Tool for Radio/Frontier, that implements a couple of image manipulation web services -- rotateImage, scaleImageByPercent, scaleImageToSize. These in combination with a Manila plugin would make it possible to completely automate creation of contact-sheet-type pages where you have thumbnails of a bunch of images, that link to the full-sized image. That would be a Cool Tool. Now all I'd need would be a full-time MacOS X server. Have to put that on next year's Christmas list.
15:20'02    comment []


© Copyright 2002 Jake Savin.
 
December 2001
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          
Nov   Jan



Radio Stuff

Themes



Subscribe to "Jake's Radio 'Blog" in Radio UserLand. Click to see the XML version of this web page.
Click here to send an email to the editor of this weblog.

Click on the coffee mug to add Jake Savin's Instant Outline to your Radio UserLand buddy list.


Subscriptions


Click here to visit the Radio UserLand website.