thoughton:digitallife banner
about downloads imagery work
-- Apple --

Rich Text (HTML) signatures in Mail.app


I was recently asked to help with setting up an HTML signature in Mail.app. "No problem", I thought. Unfortunately after a few quick attempts I quickly discovered that Mail.app's signature system is atrocious. Typing in plain text signatures (all I've ever done prior to this) is easy. Entering an Rich Text1 signature is not.

The problem is mainly that the editor window is difficult to use. For one thing it relies on the available-to-all-Cocoa-apps Fonts and Colors floating selection windows - which are elegant but seem to be constantly getting in the way just when you least expect it. Also using images in your signature is a pain because the signature window inexplicably doesn't display images you drop into it.

The line spacing in the signature window is also buggy. On several occasions while switching from one signature to another I saw random increases in line spacing as well as inserted line breaks in the middle of sentences. These random increases were cumulative, so after several switches the gap between two lines of text was several centimetres. I encountered similar problems with the "Always match my default message font" checkbox. Selecting and unselecting the checkbox repeatedly again caused the line height to increase to gigantic proportions.

The bug is difficult to reproduce but you can see a hint of it here:
Sig Before

Sig After
After taking the first screenshot I selected and unselected the "Always match ..." checkbox. As you can see in the first image the image is at the end of line 1, but in the second image there are two line breaks between line 1 and the image.

In my search for a solution I found this hint at MacOSXHints. The 6-step method is a bit of a pain, but it works - albeit with a little tweaking:

  1. In step 3 the HTML page you create must use FONT tags to control the text colour and size. Using CSS won't work. Nor will using a BODY TEXT tag.
  2. In step 6 the easiest way to determine which signature file you need to replace is to modify the signature file you wish to replace and quit Mail.app. Now when you open the ~/Library/Mail/Signatures folder you can replace the most recently modified signature file.
  3. And when you eventually send your signed emails, the body of the email must be in Rich Text format, otherwise your finely crafted signature will be displayed as plain text (and also without images).
This method results in HTML signatures in Mail.app which display correctly in Mail.app's signature window without any weird line spacing issues and display correctly in the recipient's email client. It also can't be broken by clicking the "Always match ..." checkbox. All of this is good news, but my main feeling after this is that the whole procedure really should have been much easier.


1 Mail.app's Rich Text format is actually HTML.
Posted on 13 September 2007, to Apple | Internet | Mac OS X
| TrackBacks (0)
-- How To... --

From iMovie to YouTube, a.s.a.p.


Imagine this, if you will. You've put together your iMovie masterpiece and want to share it with friends and family. No problem, fire it through to iDVD and send them a DVD - right? But suppose it's a very short clip, or the friends and relatives in question are more of the 'casual acquaintance' variety? Is it still appropriate to physically send a DVD? This was the quandary I was in (short clips, not casual relatives) - so I decided to make use of YouTube.

Now, we know that YouTube wants the video to be in certain formats so they can convert it to the Flash movie that YouTube viewers see. On top of that YouTube specifically recommends divx or xvid video with MP3 audio to achieve the "best results". If the video or audio is in the wrong format you end up with a movie missing the video or audio (as I discovered on several occasions during this process :P ).

The problem is finding a video and audio format which - in order of importance - (a) is compatible with YouTube, (b) is as small as possible to reduce upload time, and (c) encodes reasonably quickly and directly from iMovie without any intermediate apps such as ffmpegX.

After a lot experimentation I have found that H.264 video with AAC audio offers the best combination of encoding speed, file size (and hence upload time), and being available from within iMovie itself. The fact that YouTube accepted H.264 was a surprise to me but given the format's excellent video quality it was definitely a most pleasant one!

Here's what I did and the settings I used:

1. Start with your video clip in iMovie. Highlight the video in the Clips panel so that it is displayed in the large preview window. Click File:Export.

2. You should now see something similar to the image below. Choose 'Expert settings'. Click 'Share'.
Imovie Youtube 1

3. You are now given a save dialog box similar to the one below. Click on the 'Export' drop-down menu and choose 'Movie to QuickTime Movie'. Click Options.
Imovie Youtube 2

4. You should now see the Movie Settings panel as shown below. In the video section click 'Settings'.
Imovie Youtube 3

5. Now we get to choose our video format. Set the 'Compression Type' to H.264 with a frame rate of 15 fps with automatic key frames. I have found that a 'Low' quality setting with 'Best Quality' multi-pass encoding produced video that is perfectly sufficient for YouTube. Click OK. (See that preview? That's why this blog has been kinda quiet recently :P )
Imovie Youtube 4

6. Back at the Movie Settings panel you already saw in step 4, click the audio 'Settings' button.

7. Now we choose an audio format. Unless your home video has some kind of superb stereo sound (unlikely), we can save some space here by choosing a mono format and reducing the bitrate. Set the format to AAC, choose Mono from the channels drop-down menu, change the 'Rate' (frequency) to 22.050 kHz, and choose a target bit rate of 24 kbps. Click OK.
Imovie Youtube 5

8. Back at the Movie Settings panel again. Make sure 'Prepare for internet streaming' is deselected.

9. Still at the Movie Settings panel. In the video section click 'Size'. You'll probably need a calculator here. My source video was from a European digital camera, so it is PAL video with frame sizes of 784 x 576 (essentially a 4:3 aspect ratio). YouTube's default video size is 425 pixels wide so we'll aim for that width, which means to preserve our aspect ratio our video should be 312 pixels tall (784/425 = 576/312). Choose 'Custom' dimensions and plug in the frame size you just calculated. I also, hopefully unnecessarily, check the 'Preserve aspect ratio' box using 'Letterbox'. Raincoat and an umbrella, you know? :) Check the 'Deinterlace Source Video' box. Click OK.
Imovie Youtube 6

10. Back at the Movie Settings panel from step 4 ... hopefully for the last time. Click OK.

11. You should now be back at the save dialog box from step 3. Give your exported movie a name, and click 'save'. iMovie will now show you a progress bar for your export.

On my 2.16GHz Core Duo MacBook Pro a 3 minute iMovie clip takes about 10 minutes to export using this method, and ends up being about 3 megabytes in size. This in turn takes me about 3 minutes to upload to YouTube on my bog-standard 2 megabit ADSL broadband with it's pitiful 256k upload speed. For me that is a quick-enough process to make using YouTube as painless as possible. And it keeps the rellies happy! :D
-- Internet --

This post isn't about Twitter


Okay, I lie, it is ... kind of. Mike over at industry watcher TechDirt has an interesting article on the demise of Tello and corresponding rise of Twitter. As is the norm for TechDirt, the article is a densely-packed single head-expanding paragraph with very little 'fluff'.
Posted on 21 March 2007, to Internet | Technology
| TrackBacks (0)
-- Bereft of Reason --

Microsoft Zune search results


Ms Search Zune
Posted on 17 September 2006, to Bereft of Reason | Entertainment | Internet
| TrackBacks (0)
-- Digital Imagery --

Zooomr pro accounts for bloggers


Get a free pro account with Zooomr by blogging a photo you've uploaded. More info on the Zooomr blog. Here's my pic:

waste_metal_creature

Posted on 13 July 2006, to Digital Imagery | Internet
| TrackBacks (0)
-- Bereft of Reason --

Giant iPod found on Google Maps


Ipod From SpaceWe've seen Jesus, now we have giant MP3 players. Is there no end to the things people find with Google Maps err Google Local?
Posted on 28 March 2006, to Bereft of Reason | Entertainment | Internet
| TrackBacks (1)
-- Internet --

Built for Adsense? Try Built for Google Buyout instead


Ajaxwrite Mac-1Have you ever heard the term "built for Adsense"? Have a look at this AJAX word processor site, and then come back here and place your bets on how long it takes for Google to buy the company behind it. Edit: Yes, Google already bought Writely, but this version is available for you to try out right now. Via Fosfor Gadgets.
Posted on 27 March 2006, to Internet | News | Web Design
| TrackBacks (0)
-- Bereft of Reason --

This week's sign that the US patent office has lost their minds


One unknown California web-design firm has been granted a patent which covers, among other things, Flash, AJAX and Java. Talk about completely fucking insane.
Posted on 9 March 2006, to Bereft of Reason | Internet | News
| TrackBacks (1)
-- Internet --

Interesting video interview with Derek Franklin


If you have half an hour to spare (as well as decent broadband, 1 megabit minimum), I would urge you to watch this video interview with Derek Franklin. Franklin is a longtime Flash author as well as the creator of Search Automator and WhoNu.com. Not only is the interview interesting (Franklin comes across as a very engaging fellow), but the quality of the h264 video is simply stunning and well worth a look if you are interested in this sort of thing. Quicktime 7 required.
Posted on 8 March 2006, to Internet | News | Technology
| TrackBacks (0)
-- How To... --

FolderBlog on IIS


I've been using the great little image CMS known as FolderBlog for the last few months and have been thoroughly enjoying it. The program is easily adapted to any design and is incredibly simple to use, allowing even the most computer-illiterate client to easily upload images and edit captions. The official program doesn't have an easy non-FTP way to delete images, but that is taken care of by a nifty little modification by Björn-Frederic Limmer known as FolderBlog Ikue Reloaded (FIR). FIR also adds other features - including adding .gif compatibility and sorting by EXIF data - but it is the delete function that tops my list.

However, my entire experience of using FolderBlog and FIR has been on Apache servers. Today I tried to use it on an IIS server and ran into many problems. Searching for information to solve this problem was difficult, largely due to the lack of a search function at the official FolderBlog forums. The incomplete documentation for the current version 3 of the program also doesn't help! As a result I've decided to post my solution here:

Step 1
Edit fb_settings.php and replace:

$use_alt_url = 0;

With:
$use_alt_url = 1;

Note: To post new images and captions after changing this setting you need to browse to fb.php?p=post instead of fb.php/post/

Step 2
IIS does not have the REQUEST_URI function. We need to use PHP_SELF instead. Open up fb.php and replace all instances (there should be 5) of:

$_SERVER["REQUEST_URI"]

With:
$_SERVER['PHP_SELF']

Step 3
Some IIS servers which are running PHP as CGI may not have EXIF enabled. This was the case with my IIS server. In order to fix the exif_imagedata errors that result from this I had to find this section in the FIR version of fb.php:

function createThumb($filename,$altname="") {
global $photo_directory, $thumb_directory, $thumb_maxsize, $square_thumbs, $file_extension;


// MODIFIED BY IKUE
// check if it is a supported filetype, better error handling included

$original = @imagecreatefromjpeg($filename);
// could it be loaded? if not, try another
if (!$original) { $original = @imagecreatefrompng($filename); }
// could it be loaded? if not, try another
if (!$original) { $original = @imagecreatefromgif($filename); }
// still not loaded? dear... give an error message
if (!$original) { showerror("You attempted to load an unsupported filetype. Check your file extensions in the settings.<br>File: $filename"); }


$x = imagesx($original);
$y = imagesy($original);
if ($square_thumbs==0) {
$scale = $thumb_maxsize/max($x, $y);
$newx = $x*$scale;
$newy = $y*$scale;
$thumb = imagecreatetruecolor($newx, $newy);
imagecopyresampled($thumb, $original, 0, 0, 0, 0, $newx, $newy, $x, $y);
} elseif ($square_thumbs==1) {
$scale = $thumb_maxsize/min($x, $y);
$newx = $x*$scale;
$newy = $y*$scale;
$thumb = imagecreatetruecolor($thumb_maxsize, $thumb_maxsize);
imagecopyresampled($thumb, $original, ($newx-$thumb_maxsize)/-2, ($newy-$thumb_maxsize)/-2, 0, 0, $newx, $newy, $x, $y);
}
if (exif_imagetype($filename)==IMAGETYPE_JPEG) {
imagejpeg($thumb, $thumb_directory . basename($filename), 95);
if ($altname) {
imagejpeg($thumb, $thumb_directory . $altname, 95);
}
} else
if (exif_imagetype($filename)==IMAGETYPE_GIF) {
imagegif($thumb, $thumb_directory . basename($filename));
if ($altname) {
imagegif($thumb, $thumb_directory . $altname);
}
} else
if (exif_imagetype($filename)==IMAGETYPE_PNG) {
imagepng($thumb, $thumb_directory . basename($filename));
if ($altname) {
imagepng($thumb, $thumb_directory . $altname);
}
} else { showerror("You attempted to load an unsupported filetype. Check your file extensions in the settings.<br>File: $filename"); }

return array($newx, $newy);
}

And replace it with the same function from the original unmodified (not FIR) version of fb.php (this will remove EXIF functionality from FIR, but I don't need it anyway):

function createThumb($filename,$altname="") {
global $photo_directory, $thumb_directory, $thumb_maxsize, $square_thumbs, $file_extension;
$original = imagecreatefromjpeg($filename);
$x = imagesx($original);
$y = imagesy($original);
if ($square_thumbs==0) {
$scale = $thumb_maxsize/max($x, $y);
$newx = $x*$scale;
$newy = $y*$scale;
$thumb = imagecreatetruecolor($newx, $newy);
imagecopyresampled($thumb, $original, 0, 0, 0, 0, $newx, $newy, $x, $y);
} elseif ($square_thumbs==1) {
$scale = $thumb_maxsize/min($x, $y);
$newx = $x*$scale;
$newy = $y*$scale;
$thumb = imagecreatetruecolor($thumb_maxsize, $thumb_maxsize);
imagecopyresampled($thumb, $original, ($newx-$thumb_maxsize)/-2, ($newy-$thumb_maxsize)/-2, 0, 0, $newx, $newy, $x, $y);
}
imagejpeg($thumb, $thumb_directory . basename($filename), 95);
if ($altname) {
imagejpeg($thumb, $thumb_directory . $altname, 95);
}
return array($newx, $newy);
}

Step 4
Almost there! The FIR gallery now displays in my web browser, but although the thumbnails are visible none of links work. It turns out that all of the links were missing the ?q= characters. Thanks to this thread all you need to do to fix this is edit fb.php and replace this line:

$path[0] = $fbfile = str_replace($path[1], "", $_SERVER['PHP_SELF']) . (isset($_GET["p"]) ? "" : "?p=");

With this line:
$path[0] = $fbfile = str_replace($path[1], "", $_SERVER['PHP_SELF']) . (isset($_GET["p"]) ? "?p=" : "?p=");

Step 5
There is no step 5. You should now have a working FolderBlog installation on a Windows IIS server.


Posted on 30 December 2005, to How To... | Internet
Comment on this entry | TrackBacks (1)
-- Internet --

JenSense strangely beats ProBlogger ... how?


I noticed today that JenSense has won SearchEngineJournal's 2005 "Search Engine Blogs Awards", beating out several high profile blogs, including ProBlogger. Now don't get me wrong, I read and enjoy both ProBlogger and JenSense, but I simply cannot understand how people voted. Without being rude about it, I simply cannot think of a single area where JenSense is better than ProBlogger. Both authors are clearly knowledgeable, but ProBlogger is far and away the more interesting read. JenSense simply seems (sorry Jen!) boring by comparison.

I think part of it is a personal bias towards design. Jen's blog is so ... plain. I know, I know, whitespace is the new black and there isn't enough of it around, but c'mon, there's got to be more to a website than the words. Why not just use default fonts and no CSS at all? Perhaps this simplicity is good for attracting the business-types, I don't know. I also think the main body column in JenSense is too wide and find reading it quite tiresome. That could however simply be my uselessness rearing its ugly head.

My final gripe is that JenSense is much more 'news' oriented. A simple glance at the last 15 entries on each blog clearly demonstrates this. (I started to type out the 15 recent entries of each blog but quickly got fed up. So I took some screenshots instead.)

Here are JenSense's last 15 entries:
JenSense last 15

And here are ProBlogger's last 15 entries:
Problogger last 15

I think these two shots are pretty illuminating, but if you don't agree a quick read through those entries may change your mind. On re-reading this post it may appear that I am being overly critical of JenSense. This isn't my intention. My goal was simply to understand how ProBlogger could rank so many places behind JenSense. (I am more careful about these things since facing the wrath of a couple of righteous commenters a few days ago!)

Update: On further reflection (which I should have done before posting :D ) I think the fact that JenSense is more focussed on Adsense while ProBlogger has a wider coverage makes JenSense less interesting to me. The narrower focus means that Jen covers more of the minutiae which by definition is less engrossing to the casual reader such as yours truly.
Posted on 22 December 2005, to Internet | News
Comment on this entry | TrackBacks (0)
-- Internet --

CNN poll on Top 10 web moments


Matt Cutts, a Google employee who is also a prominent blogger, discusses a CNN poll which asked users to name the 10 most significant events in the history of the World Wide Web. The poll is to celebrate 15 years of the WWW and offers these choices:

10. WiFi hotspots -- wireless Internet connectivity appears in airports, hotels and even McDonald's.
9. Webcams and photo sharing -- communication becomes visual, and inboxes fill with baby photos. 8. Skype -- telephony turns upside down with free long-distance calls, Ebay snaps it up in September 2005 for $2.6 billion.
7. Live 8 on AOL -- five million people watch poverty awareness concerts online in July 2005, setting a new Net record.
6. Napster goes offline -- Regulators close the pioneering music swap site in July 2001 and file-sharing goes offshore.
5. Lewinsky scandal -- Matt Drudge breaks the Clinton/Lewinsky sex scandal in 1998. The blog is born.
4. Tsunami and 9/11 -- two tragic events set the Web alight with opinion and amateur video.
3. Boom and bust -- trillions of dollars were made and lost as the dotcom bubble ballooned and burst between 1995 and 2001.
2. Hotmail -- went from having zero users in 1995 to 30 million subscribers 30 months later. It now has 215 million users.
1. Google -- redefined search. Invented a new advertising model and commands a vast business empire.

Matt doesn't think much of the poll, saying that it is difficult to trust when webcams are included but RSS, XML and AJAX are not. I can't say I agree with Matt there, even today your average websurfer wouldn't have a clue what RSS, XML and AJAX were. Commenters on Matt's post offer a variety of other opinions, some of which I disagree with, and a couple of which simply made me laugh (modems? HTML? How can these be 'Top 10 Web moments'?)

My own nominations would include most of the CNN list, barring the Live8 coverage and Skype. I would also rephrase number 6 so that it recognises the creation of Napster rather than its demise. However I think there are some glaring omissions. My other nominations would be:

Netscape - the first popular graphical web browser, sparks the 'browser wars'
WYSIWYG HTML editors - it's 1995, PageMill is released, and suddenly anyone can build a webpage
Javascript - webpages become interactive, later develops into AJAX
Amazon - dramatically shook up e-commerce with great prices and fast worldwide delivery
ICQ - instant messaging enters the public consciousness via a tiny Israeli company
eBay - wasting time on the web while at work explodes in popularity and propels thousands into earning a living in their pajamas

I'm sure I've forgotten some, but I think these deserve a place on that list. Has anyone else got any suggestions?
Posted on 16 December 2005, to Internet
| TrackBacks (0)
-- Bereft of Reason --

Juvenile behaviour on World of Warcraft? No shit, sherlock.


WoW sexismBoing Boing are reporting on a San Antonio university course where students are required to observe interactions in the online role playing game World of Warcraft. One bright spark boldly embarked on an investigation into sexism, and was inexplicably surprised when she got plenty of juvenile responses ("show us yer t*ts!!!") on the WoW discussion forums. Hello? It's a GAME - with a commensurate number of children playing. Juvenile behaviour is the norm.
-- Apple --

Mail.app nightmare over


Mail Attachment IconizerBack in April, I posted a rant about Mail.app's handling of inline images. The gist of my tirade was that Mail.app insisted (nothing's changed - it still does) on displaying images inline, rather than as attachments. The problem here is that messages with inline images or PDF documents take an age to open. This glacial response time is infinitely more aggravating when there are several such emails to open in succession (for instance when searching for one particular image out of dozens emailed to you). Mail.app does offer you the ability to right-click an image and choose 'display as icon', but close and re-open the email and you'll find that Mail.app will blithely continue to display the image as if you'd never told it otherwise. Even worse, there is no global preference to alter this behaviour.

This glaring tidbit of user-interface idiocy is particularly frustrating for me since I was a long-time Eudora user prior to the arrival of Mail.app and Eudora has always, for at least a decade, clearly distinguished between inline images and attachment images. Those of you who have never used any email client other than Mail.app may wonder what I am blithering on about. The basic explanation is that 'inline' should mean that the image is displayed along with the text of your email, whereas an 'attachment' should properly be an image (or other file) that is sent with the email as a file attachment but is not displayed with the text of your email.

The 'official' description of the difference between 'inline' and 'attachment' can be found in this RFC document, the relevant part of which is:

2.9 Content-Disposition and Multipart

If a Content-Disposition header is used on a multipart body part, it applies to the multipart as a whole, not the individual subparts. The disposition types of the subparts do not need to be consulted until the multipart itself is presented. When the multipart is displayed, then the dispositions of the subparts should be respected.

If the `inline' disposition is used, the multipart should be displayed as normal; however, an `attachment' subpart should require action from the user to display.

If the `attachment' disposition is used, presentation of the multipart should not proceed without explicit user action. Once the user has chosen to display the multipart, the individual subpart dispositions should be consulted to determine how to present the subparts.

Thus concludes Mac History 101.

"So", I hear you ask, "why are you moaning about this again?". Despair not dear reader - there is a solution! I have recently discovered that I am not alone in my Mail.app nightmare. Adam Nohejl of Czech outfit Loki Software must have been a fellow resident of inline-hell, but unlike yours truly he actually did something about it, writing a wonderful piece of $6 shareware named Mail Attachment Iconizer. This program does one thing only, and by God does it well. Simply fire up the installer and Mail Attachment Iconizer will modify your copy of Mail.app and forever turn those inline images into image icons. Double click 'em and they expand into images or PDFs; double-click a second time and they revert to icons. Apple - are you watching? This is the way it should have been done from the start. :evil:

For those of you wondering why I switched from Eudora in the first place if it was so damned wonderful, the answer is that Eudora at the time did not make the transition to OS X very well and wasn't updated for at least two years. It also didn't have Mail.app's tight integration with Address Book and the iLife apps. Not to mention the fact that Mail.app is free, whereas Eudora requires an annual (annual!) payment for the ad-free version.
-- Internet --

Google Maps for your phone


Google Local for mobileI somehow missed it at the time but I've just discovered that back in April Google launched a Google Maps service on certain mobile phones. The service is a downloadable application which lets you view Google Maps (maps and satellite imagery tied together with driving directions and telephone directory information) on your mobile phone. Just like the computer version of Google Maps, you can drag the map around the screen. The mobile phone service also introduces a new feature named 'click to call' where you can phone up a local business simply by locating them on the map.

The service, named Google Local for mobile, is currently only available in the US and is officially limited to just over a dozen phones from a few manufacturers. Google say that 'most' Java-enabled (J2ME) phones released in the last year should be compatible, although phones from Sony-Ericsson are conspicuously absent from the compatibility list. There have been reports on the Google Local for mobile group that some unsupported phones are also compatible - notably the Treo, the SE W800i walkman phone, the SE P800/P900/P910, the SE K750i ... but not the Blackberry.

There are no charges other than data transfer charges for your phone's internet connection. The service is only currently available on certain networks, including Cingular, T-Mobile and Sprint.
-- Mobile --

Mobile MMORPG


Tibia mobile MMORPGHere's one for all of you with unlimited data connections on your mobile phone plans: German developer CipSoft have finally introduced a worldwide version of their Tibia MMORPG for Symbian Series 60 phones. For those of you paying per kilobyte, one hour of gameplay averages around 400kb of data transfer. Could this be a threat to the dominance of World of Warcraft? No longer will people need to closet themselves at home to get their online gaming fix! :) Tibia chat
Posted on 21 October 2005, to Games | Internet | Mobile | News
| TrackBacks (0)
-- Internet --

MT SpamLookup report card


Since installing SpamLookup 104 days ago this site has been completely free of trackback spam. In that time SpamLookup has blocked 297 trackback spams. Of those there was 1 false positive (apologies to inaniloquent.com, but your ping IP didn't match your site IP). There was also one angry young man. Pretty damn good if you ask me.
Posted on 3 October 2005, to Internet | Site News | Web Design
| TrackBacks (0)
-- Apple --

Airport Express 6.2.0 firmware update = no more internet


While adjusting some settings in Airport Admin Utility today I was prompted to update my Airport Express firmware to version 6.2.0. I knew that this firmware update was included with the OS X Airport 4.2 update from back in July 2005, but although I had updated my Mac's Airport software at the time I had never got around to applying the included update to the Airport Express's firmware. "What the hell", I thought, "perhaps it'll solve the occasional freezes I get" (every few weeks my connection seems to lock up, and resetting my D-Link modem fixes it).

Updating the Airport Express firmware was, as it turned out, a god-awful idea. After the update my internet connection immediately stopped working. I could see the Airport network and connect to it but nothing else worked. Internet Connect reported that I was connected to the internet. Network Diagnostics reported that my connection made it as far as my ISP but not to the internet itself. Several resets of the modem and Airport Express did nothing. Nor did a reboot of my Mac.

Eventually I fired up my trusty old dial-up modem and connected to the net to begin searching for clues. In the UK NASCR are a convenient source of dial-up services - no monthly charges and you just pay local-call rates on your phone bill. Having an account with them has saved me more than once!

After some slow-as-hell web browsing, I eventually found the solution. This comment on Versiontracker led me to discover many useful threads on the Apple discussion forums. Several people suggested that the Airport Express 6.2.0 firmware update breaks PPPoE on DSL connections, and reverting to 6.1.1 would fix it. I don't actually use PPPoE to connect, but I still thought that reverting was worth a try. Sure enough, after downloading and installing the Airport Express 6.1.1 updater, my Mac miraculously had an internet connection again!

Comment
This is ridiculous. This firmware update was released over 2 months ago, but I found several recent references to this connection problem in just 5 minutes of browsing of Apple's forums (at a snail's pace, mind you!). If this is such a common problem why hasn't there been a fix? It's hardly as if DSL connections are uncommon.

As an aside, surfing the net via dial-up modem was an edifying experience. For one thing I discovered that my very own website loads extremely slowly on dial-up! :blush: I used to pride myself on small fast webpages suitable for dial-up connections - evidently a few years of broadband has desensitized me to the needs of my dial-up brethren! I shall rectify that, but the whole episode also makes me appreciate my 2 megabit connection more than ever!
-- Bereft of Reason --

Plague (honestly!) on World of Warcraft


A report on Ars Technica today discusses a virtual plague spreading across World of Warcraft servers. Essentially a new high-level area was introduced in which a new in-game magic spell can infect players with a 'disease'. This disease can spread from infected players to nearby players. However when infected players returned to the population centers the disease started spreading like wildfire. Unfortunately since the disease was meant to do moderate damage to high-level players it started indiscriminately wiping out low-level players. Even computer-controlled characters in the cities have caught it - but they regenerate fast enough to not die from it, thereby perpetuating the disease.

Ars cite a discussion on ShackNews as the source:

Heres the skinny: Blizzard adds in a new instance, Zul'Gurub. Inside is the god of blood, Hakkar. Well, when you fight him he has a debuff called Corrputed Blood. It does like 250-350 damage to palyers and affects nearby players. The amazing thing is SOME PLAYERS have brought this disease (and it is a disease) back to the towns, outside of the instance. It starts spreading amongst the genral population including npcs, who can out generate the damage. Some servers have gotten so bad that you can't go into the major cities without getting the plague (and anyone less than like level 50 nearly immediately die).

Funnily enough most World of Warcraft players are fairly blasé about the whole epidemic, regarding it as not merely a programming foul up, but as a hazard of virtual life and something to celebrate! Rightly so, in my opinion! This is fantastic stuff, how can anyone not love it? :D

Update: Someone made a video.
Posted on 22 September 2005, to Bereft of Reason | Entertainment | Games | Internet
| TrackBacks (0)
-- Internet --

Free Opera (or how to abandon desktops while taking over the world)


Opera Free The relatively unknown (to the general public) web browser known as Opera is now free! From humble beginnings in 1996 with a public debut as a small Norwegian browser to 2005 and membership of a very exclusive club - browsers that cost money - Opera has had a good innings.

Who cares?
Opera is mostly known for the oft-repeated claim of being "the fastest browser on earth" (which incidentally is probably true). However despite impressive performance Opera never really caught on (cost probably had something to do with that), and it now seems likely that the advent of Firefox has sounded Opera's death knell as a worth-paying-for alternative to the mighty Internet Explorer. Opera users today are a shrinking mixture of diehard loyalists from the glory days, web designers testing for compatibility, and power surfers willing to pay for Opera's much touted speed and impressive, if sometimes exotic, features.

So how is Opera Software going to survive?
Their website doesn't suggest many possibilities, but presumably Opera Software will make a few bucks from paid support for the now-free browser, however it doesn't take a genius to see that, even charging for it, they cannot continue supporting a declining browser forever. Despite that it's not all doom and gloom - surely Opera for Mobiles (smartphones and PDAs) must form a major part of Opera Software's future. After all, Opera for Mobiles has no serious competition and the mobile market can't do anything but grow. Opera Mini, released for non-smartphones (stupidphones?) in 2004, is still in its infancy but is another clear sign of Opera's dominance of the entire mobile browser market.

What will happen to the desktop browser now?
Given that paid support is likely to have a limited lifespan, one possible option which would generate some public interest, not to mention great PR, would be to open-source the browser. This must seem tempting to Opera bigwigs given the lightning pace of development shown by the unpaid volunteers working on the Firefox project. On the other hand Opera Software may be taking a page out of Google's book and offering free-yet-proprietary software to the world, all the while betting that the software's performance and features will boost the company's reputation in the public eye.

Comment
Hmm ... giving away quality software for desktop PCs ... proven technological innovation ... demonstrable longevity amidst fierce competition ... complete domination of a massively growing market. Sounds a bit like the history of a certain fruit company. Opera Software went public on the Norwegian stock market last year - could it be time to buy some shares?


Posted on 20 September 2005, to Internet | Mobile | News | Web Design
| TrackBacks (0)
-- Entertainment --

Failures on Google


This has been getting some attention recently - do a search for 'failure' in Google. The results are surprising (or not, depending on your point of view): Failure search
Posted on 16 August 2005, to Entertainment | Internet
Comment on this entry | TrackBacks (0)
-- Internet --

Google Maps vs. Virtual Earth


Whilst reading today's Ars Technica article on censorship of security-sensitive areas in Google Maps and Microsoft Virtual Earth, I rediscovered something I had vaguely noticed on the day of Virtual Earth's launch, but had not investigated due to the sluggishness of the Virtual Earth servers (the speed issues have since been addressed). You can see what I mean in these side-by-side pictures of Washington DC's Capitol Hill Reflecting Pool - both images are at maximum magnification:

Google Maps Virtual Earth
(Google Maps is on the left, Virtual Earth on the right. Click to enlarge.)

As you can clearly see, maximum magnification on Virtual Earth is significantly 'closer' to the ground. Even though the two images are clearly from the same satellite photo (note the positions and colours of the cars on 3rd Street, just to the west of the pool) the Virtual Earth image is of considerably better quality. Now all we need is for Virtual Earth to expand outside the US, but apparently that won't be long now.
Posted on 9 August 2005, to Internet
| TrackBacks (0)
-- How To... --

Password assistant


I've used Keychain Access for quite a while now, both to store logins and passwords for websites and for personal information such as banking and identification details. So it was a bit of a surprise when I finally clicked that key-shaped button next to the password field: Password Assistant Pretty nifty, especially in this day and age when ordinary people have to come up with more and more non-trivial passwords.
Posted on 22 July 2005, to How To... | Internet | Mac OS X | Technology
| TrackBacks (0)
-- Bereft of Reason --

One angry young man


Had an interesting comment on this site today, from someone identifying himself as 'El Mexicano' with the email address of chico@chipala.com. This fellow posted this comment from the 207.248.240.119 IP address, which resolves to a Mexican IP address governed by LACNIC, the Latin American and Caribbean IP address Regional Registry. The address is dynamic, but I have noted the IP address, the date and time in case I need to report him.

"Why report him?", I hear you say. Well, that's a long story. It began about ten hours earlier when this character started an automated script to flood this site with trackbacks advertising online poker. The first hit was at six o'clock this morning :
207.248.240.119 - - [14/Jul/2005:06:03:19 +0100] "GET /cgi-bin/mt-comments.cgi?entry_id=181 HTTP/1.1" 200 8615 "http://www.sportscribe.com/play-party-poker-for-fun.html" "Mozilla/4.0 (compatible; MSIE 4.01; Windows NT Windows CE)"
There is then a lull for several hours, then a new wave of attacks started. Notice the identical IP and the constantly changing User Agent and entry IDs:
207.248.240.119 - - [14/Jul/2005:13:09:54 +0100] "GET /cgi-bin/mt-comments.cgi?entry_id=225 HTTP/1.1" 200 8915 "http://www.yachtdurak.com/poker-games.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 3.0)"
207.248.240.119 - - [14/Jul/2005:13:27:51 +0100] "GET /cgi-bin/mt-comments.cgi?entry_id=12 HTTP/1.1" 200 8568 "http://www.yachtdurak.com/pacific-poker.html" "Mozilla/4.0 (compatible; MSIE 4.01; Mac_PowerPC)"
207.248.240.119 - - [14/Jul/2005:13:29:29 +0100] "GET /cgi-bin/mt-comments.cgi?entry_id=168 HTTP/1.1" 200 8561 "http://www.yachtdurak.com/party-poker.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 3.0)"
207.248.240.119 - - [14/Jul/2005:13:35:20 +0100] "GET /cgi-bin/mt-comments.cgi?entry_id=208 HTTP/1.1" 200 8571 "http://www.yachtdurak.com/texas-holdem.html" "Mozilla/4.0 (compatible; MSIE 5.0; Windows ME) Opera 5.11 [en]"
207.248.240.119 - - [14/Jul/2005:13:35:25 +0100] "GET /cgi-bin/mt-comments.cgi?entry_id=66 HTTP/1.1" 200 8570 "http://www.yachtdurak.com/poker-games.html" "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)"
207.248.240.119 - - [14/Jul/2005:13:45:46 +0100] "GET /cgi-bin/mt-comments.cgi?entry_id=199 HTTP/1.1" 200 8559 "http://www.yachtdurak.com/free-poker.html" "Mozilla/4.0 (compatible; MSIE 4.01; Windows 95)"
207.248.240.119 - - [14/Jul/2005:14:30:53 +0100] "GET /digitallife/ HTTP/1.1" 200 23920 "-" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.8&41; Gecko/20050511 Firefox/1.0.4"
At about two o'clock in the afternoon this angry young fella started to probe this site, apparently looking for an administrator login screen. He tried to access directories at /upload/, /test/ and /tim/admin/. At least he's read enough of this site to find out my name! :)

He then returns to the automated script attack (does he not get the hint?):
207.248.240.119 - - [14/Jul/2005:06:03:19 +0100] "GET /cgi-bin/mt-comments.cgi?entry_id=181 HTTP/1.1" 200 8615 "http://www.sportscribe.com/play-party-poker-for-fun.html" "Mozilla/4.0 (compatible; MSIE 4.01; Windows NT Windows CE)"
207.248.240.119 - - [14/Jul/2005:13:09:54 +0100] "GET /cgi-bin/mt-comments.cgi?entry_id=225 HTTP/1.1" 200 8915 "http://www.yachtdurak.com/poker-games.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 3.0)"
207.248.240.119 - - [14/Jul/2005:13:27:51 +0100] "GET /cgi-bin/mt-comments.cgi?entry_id=12 HTTP/1.1" 200 8568 "http://www.yachtdurak.com/pacific-poker.html" "Mozilla/4.0 (compatible; MSIE 4.01; Mac_PowerPC)"
207.248.240.119 - - [14/Jul/2005:13:29:29 +0100] "GET /cgi-bin/mt-comments.cgi?entry_id=168 HTTP/1.1" 200 8561 "http://www.yachtdurak.com/party-poker.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Hotbar 3.0)"
207.248.240.119 - - [14/Jul/2005:13:35:20 +0100] "GET /cgi-bin/mt-comments.cgi?entry_id=208 HTTP/1.1" 200 8571 "http://www.yachtdurak.com/texas-holdem.html" "Mozilla/4.0 (compatible; MSIE 5.0; Windows ME) Opera 5.11 [en]"
207.248.240.119 - - [14/Jul/2005:13:35:25 +0100] "GET /cgi-bin/mt-comments.cgi?entry_id=66 HTTP/1.1" 200 8570 "http://www.yachtdurak.com/poker-games.html" "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)"
But wait! He's not done. Mr Angry now starts trying from several different IP addresses. If I was using MTBlackList this might be a problem. But I'm not, I'm using something else so he's outta luck:
148.244.150.58 - - [14/Jul/2005:13:35:28 +0100] "GET /cgi-bin/mt-comments.cgi?entry_id=18 HTTP/1.1" 200 8550 "http://www.yachtdurak.com/empire-poker.html" "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)"
Here's another IP:
200.106.160.70 - - [14/Jul/2005:13:41:34 +0100] "GET /cgi-bin/mt-comments.cgi?entry_id=126 HTTP/1.1" 200 8589 "http://www.yachtdurak.com/poker.html" "Mozilla/4.0 (compatible; MSIE 4.01; AOL 4.0; Windows 98&41;"
And another:
63.230.254.28 - - [14/Jul/2005:13:43:07 +0100] "GET /cgi-bin/mt-comments.cgi?entry_id=223 HTTP/1.0" 200 8601 "http://www.yachtdurak.com/texas-hold-em.html" "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; N_o_k_i_a)"
And another:
63.230.254.29 - - [14/Jul/2005:13:44:50 +0100] "GET /cgi-bin/mt-comments.cgi?entry_id=31 HTTP/1.0" 200 8592 "http://www.yachtdurak.com/texas-holdem.html" "Mozilla/4.0 (compatible; MSIE 5.0; Windows ME) Opera 5.11 [en]"
And another:
207.248.240.119 - - [14/Jul/2005:13:45:46 +0100] "GET /cgi-bin/mt-comments.cgi?entry_id=199 HTTP/1.1" 200 8559 "http://www.yachtdurak.com/free-poker.html" "Mozilla/4.0 (compatible; MSIE 4.01; Windows 95)"
And another:
200.106.160.70 - - [14/Jul/2005:13:52:11 +0100] "GET /cgi-bin/mt-comments.cgi?entry_id=206 HTTP/1.1" 200 8593 "http://www.yachtdurak.com/empire-poker.html" "Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC; AtHome021)"
And another:
202.175.234.163 - - [14/Jul/2005:13:53:42 +0100] "GET /cgi-bin/mt-comments.cgi?entry_id=16 HTTP/1.1" 200 11192 "http://www.yachtdurak.com/party-poker.html" "Mozilla/4.0 (compatible; MSIE 5.0; YANDEX)"
And here's anoth... no, wait - he's already tried this IP:
200.106.160.70 - - [14/Jul/2005:14:01:30 +0100] "GET /cgi-bin/mt-comments.cgi?entry_id=150 HTTP/1.1" 200 8571 "http://www.yachtdurak.com/poker-rules.html" "Mozilla/4.0 (compatible; Opera/3.0; Windows 4.10) 3.51 [en]"
I've gotta hand it to him for persistence:
148.244.150.58 - - [14/Jul/2005:14:12:40 +0100] "GET /cgi-bin/mt-comments.cgi?entry_id=138 HTTP/1.1" 200 9004 "http://www.yachtdurak.com/free-poker.html" "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; .NET CLR 1.0.3705)"
This continues for another 15 minutes or so. In total Mr Spamtastic makes 74 attempts.

Here is the moment when he finally gives up, and posts his comment manually:
207.248.240.119 - - [14/Jul/2005:14:35:03 +0100] "POST /cgi-bin/mt-comments.cgi HTTP/1.1" 302 - "http://thoughton.co.uk/cgi-bin/mt-comments.cgi" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.8&41; Gecko/20050511 Firefox/1.0.4"
I have since deleted his comment, but here's a sample: Mad Spammer

Do you think he's a little annoyed? :D The poor fella took the time to post 77,148 (yes, seventy seven thousand) smilies!

Interestingly enough, this evening I received 7 unsolicited emails asking me to confirm my subscription to random mailing lists. Obviously I deleted them rather than confirm anything, but I'd bet my last dollar that this is the work of the same angry young man. He really must be peeved off about his inability to spam this site to go to all this effort! Bless his cotton socks. :)
-- Internet --

More WebKit and SVG news


Some news about the future of SVG in Safari. I made a few notes about this a few days ago.
Posted on 10 July 2005, to Internet | Mac OS X
| TrackBacks (0)
-- Entertainment --

Intel hedging bets


Intel appear to be hedging their bets by investing an unspecified amount of money into ClickStar, a 'new' startup planning to distribute movies over the internet before they come out on DVD. The company was founded in 1996, but appears to have done little since then, and clickstar.com is nothing more than a link farm. Strangely enough, Morgan Freeman is one of ClickStar's founders.

No word on how ClickStar plans on getting cooperation from the movie studios so it looks like an effort by Intel to cover their bases. Any chance Apple's unexpected success with the iTunes Music Store is the prime motivation here? It seems likely.
Posted on 7 July 2005, to Entertainment | Internet | Mac Video | News
| TrackBacks (0)
-- Internet --

Tiger Notes, vol. 4


Finally, Mail.appetizer has been updated to work with Tiger! There is a new compatible beta available for download! Cue angels bursting into song...

The last major (for me) item is still DoubleCommand.
Posted on 6 July 2005, to Internet | Mac OS X | News
| TrackBacks (0)
-- Internet --

Google toolbar for Mac Firefox


Although this unofficial hack already exists, this unconfirmed mailing list post states that Google are about to release an official Google Toolbar for Firefox.
Posted on 4 July 2005, to Internet | Mac OS X | News
| TrackBacks (0)
-- Internet --

Scalable Vector Graphics on a Mac


I was browsing around today (using Safari 2.0 on Tiger) when I came across this entry on Jacques Distler's Musings blog which produced a 'missing plugin' message:
Safari cannot find the Internet plug-in. The page “Trackback Spambot | Musings” has content of MIME type "image/svg+xml". Because you don’t have a plug-in installed for this MIME type, this content can’t be displayed.

A quick google told me that "image/svg+xml" was the MIME type for Scalable Vector Graphics, developed by Adobe and Macromedia back when they were separate entities (Adobe offers standalone SVG viewers an SVG plugin for download here). Further searches revealed that WebKit does not support SVG, so getting it to work in Safari wasn't likely.

I then fired up a few more browsers to see which, if any, of them worked. The WebKit-based Shiira 1.0 unsurprisingly did not show anything. However both Opera 8.0.1 and Firefox 1.0 do support SVG and displayed the image. Control-clicking the SVG brings up the zoom menu.

SVG normal size
The image at normal size


SVG zoomed
The image zoomed in

Update: thanks to Jacques's comment below, I have now installed the Adobe plugin mentioned above. This is what the image looks like now:
SVG Adobe plugin
Posted on 1 July 2005, to Internet | Mac OS X
Comment on this entry | TrackBacks (1)
-- Internet --

Google Maps UK updated!


The internet colossus known as Google has finally got full resolution satellite imagery of the United Kingdom! Check it out. Truly amazing stuff.
Posted on 23 June 2005, to Internet | News | Technology
| TrackBacks (0)
-- Entertainment --

Unusual MP3 download site


TUAW mentioned this legal MP3 download site today. With top hits like Ice Cream Truck how can you go wrong? :D
Posted on 22 June 2005, to Entertainment | Internet | Mac Audio
| TrackBacks (0)
-- How To... --

Smart mailbox tip


There's a great tip on MacOSXHints today describing how to implement IsNot checks so you can, for example, redirect all mail that isn't already in another mailbox.
Posted on 21 June 2005, to How To... | Internet
| TrackBacks (0)
-- Internet --

BitTorrent's successor? From Microsoft...


El Reg has an interesting article today on a new P2P system ... from Microsoft of all people. The logic behind it sounds plausible, although part of their explanation is somewhat vague:
Microsoft Research's approach gets around this by re-encoding all the pieces, so that each one that is shared is actually a linear combination of all the pieces, fed into a particular function. The blocks are then distributed with a tag that describes the parameters it contains.
Apparently this means that each downloader will be recombining already-downloaded chunks into brand-new chunks. All other downloaders will be able to utilise parts of these 'mixed' chunks to recreate the original chunks they may be missing. The original research paper is here.

Comment

Exactly why this is better than BitTorrent isn't exactly clear. It seems to me that a very large swarm would be needed to make this useful. But then again, if the swarm is that large surely the original BT protocol would be just as efficient?

A secondary concern is the CPU power 're-encoding' will take. Users of BitTorrent on the PC will already know what a resource hog it can be once you get up to a few hundred connections, causing your PC to become extremely sluggish when performing routine UI tasks such as dragging a window. The situation is better on a Mac where the UI doesn't suffer any slowdowns, but the CPU drain is still significant.
Posted on 16 June 2005, to Internet | News
-- Entertainment --

Headline of the week


For me, and I suspect a significant proportion of other RSS users, the language of the headline plays a major part in whether or not I read the article. I have tried to reflect that in the headlines I choose for this site. However every once in a while you see a headline that just has to be shared (the granddaddy of them all surely must be 'Keegan fills Schmeichel's gap with Seaman'). So, without further ado, here is this week's Headline of the Week:

In Pod We Trust


Posted on 17 May 2005, to Entertainment | Internet
-- How To... --

SCode reinstalled, GD issue solved


During the relocation of this site to Register1's hosting service an issue cropped up with James Seng's MT-Scode. The scodetest.cgi script was failing due to a missing GD.pm. Register1 were very helpful and had GD.pm installed within a couple of hours of my first email. However GD still refused to function - the SCode numbers weren't being drawn. From the http error log:

[Fri May 13 18:46:04 2005] [error] [client 81.151.xxx.xxx] Premature end of script headers: mt-scode.cgi
[Fri May 13 18:46:04 2005] [error] [client 81.151.xxx.xxx] /usr/bin/perl: relocation error: /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi/auto/GD/GD.so: undefined symbol: gdFontGetGiant
[Fri May 13 18:54:38 2005] [error] [client 81.151.xxx.xxx] gd-png: fatal libpng error: Invalid number of colors in palette
[Fri May 13 18:54:38 2005] [error] [client 81.151.xxx.xxx] gd-png error: setjmp returns error condition
After a dead end or two, Aaron & Isaac Goldberg provided the vital clue - it appeared to be a problem with the server's GD installation.

Despite just having spent a fair amount of time on my GD.pm problem, Register1 enthusiastically started investigating the new problem. They weren't running CPanel so the Goldbergs' cleangd advice didn't apply. Nevertheless Register1 solved the problem two days later without any further prompting, and the previously-broken SCode installation suddenly started working. They explained how they fixed it:

We had to downgrade the version of GD from 2.23 to 2.11 and use a pre-compiled Perl-GD rpm available from Redhat as opposed to a self-compiled version.

SCode was the one stumbling block to a complete migration to Register1's servers. With that solved, this site's old address is now officially defunct, and all traffic is being redirected to thoughton.co.uk/digitallife/

Comment
Register1's support has been nothing short of outstanding throughout this episode. Email replies were very quick - often within an hour. On one occasion, having just sent off a half-past-midnight email inquiry, a reply arrived at 1am! A great personal service - I've only been with them for a week but they are looking like the perfect hosts. Highly recommended, and very reasonably priced as well. They are also currently offering a "3 years for the price of 2" deal.


Posted on 16 May 2005, to How To... | Internet | Site News
Comment on this entry
-- Site News --

Server move


This site is now hosted by Register1, a UK-based hosting service. I chose them after reading many recommendations at the overclockers.co.uk forums. Migrating has not been totally hiccup-free, but Register1's support has been nothing short of outstanding.


Posted on 16 May 2005, to Internet | Site News
-- Apple --

Safari annoyance eliminated, finally


They've finally fixed my Safari bugbear!
Safari No Server message


Posted on 30 April 2005, to Apple | Bereft of Reason | Internet | Mac OS X
-- Internet --

1 gigabit internet, but I no longer live there


Wouldn't you know it. Just when I'm feeling quite pleased about upgrading to a 2 megabit connection, a company in my home town named Hong Kong Broadband Network has announced a 1 gigabit connection. Essentially they are installing gigabit ethernet in apartment blocks, so it's currently only about a third of the total households in Hong Kong. Discussion on Slashdot here, and although some of it is pure ignorance Slashdot reader xstein astutely noted that the 1 gigabit speed only applies to local traffic within Hong Kong, overseas bandwidth is capped at 20 megabit (warning: Chinese language page, plus humongous flash advert).


Posted on 24 April 2005, to Internet | News
-- How To... --

MySQL broken by 10.3.9?


I noticed today that my MySQL install seemed to have broken. I was getting an error when I tried to post a new entry via Ecto, and after poking around a bit I discovered that any query involving the mysql database (such as a site search) produced the same error:

Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Further investigation seemed to indicate this was a permissions problem. The only thing I've installed recently has been the OS X 10.3.9 update, so I'm guessing it happened then. After much googling I found the fix.

Change directory to your mysql directory:

cd /usr/local/mysql

And enter this change ownership command:

sudo chown -R mysql data/

And voila! Everything works again.


Posted on 21 April 2005, to How To... | Internet | Mac OS X | Site News
-- Entertainment --

That's Not a Picture, it's a work of art!


Utterly useless, but great fun! Even the webpage is amusing! :) Reading the comments on VersionTracker and MacUpdate is also entertaining.


Posted on 8 April 2005, to Bereft of Reason | Entertainment | Internet
-- Digital Imagery --

Googlemaps - one more time


I first saw this in an excellent Creative Bits post yesterday and have since been playing with it. It is truly jaw-dropping! Here's one I whipped up myself. The service isn't quite perfect, for one thing it's very hard to bring up information bubbles for buildings you recognise, and the search function itself is pretty flakey. Also after 20 minutes of fooling around with it caused Safari to start behaving strangely (clicking in the search box wouldn't make a cursor appear). But considering the satellite firm Keyhole was only acquired by Google in October, it's still pretty impressive!

Update: this site uses a similar technique, but on a 2.5 gigapixel landscape photo instead of satellite imagery.


Posted on 8 April 2005, to Digital Imagery | Internet
-- Internet --

2 megabit


2 megabit MenuMeters Despite the fact that it took British Telecom 3 weeks instead of 1 to reconnect me, and despite the fact that they are giving out speed upgrades to everyone (so no matter what they say it isn't really 'compensation'), I'm still smilin' 8)


Posted on 8 April 2005, to Internet | Site News
-- Bereft of Reason --

Goodbye ServuStats


Servustats Old ServuStats are one of the many free website statistics trackers who offer free services in return for a small javascript-generated button (seen to the left) on your site. Like many other people, I used to use ServuStats to keep track of my site's statistics. But as of today someone in the organisation has had the bright idea of replacing the small button with a gigantic banner ad, without notifying anyone.

This is what the banner looks like:
Servustats
Needless to say, I will removing the ServuStats code as soon as I have a free moment.

Update: I have now clicked through the banner ad, and discovered that it takes me to my ServuStats page, and then redirects me to engineseeker.com. This rake-it-in-now attitude makes me think that ServuStats have been hacked, rather it being a misguided marketing ploy. I have sent them an email, we'll see what they have to say for themselves.


Posted on 2 March 2005, to Bereft of Reason | Internet | Web Design
-- Internet --

Safari Googlemaps


I mentioned Google's amazing new map service recently, noting that it only worked in Firefox and Internet Explorer. No longer! Google have now got it working with Safari as well.


Posted on 26 February 2005, to Internet | News | Web Design
-- Internet --

Googlemaps


Google Maps Google Maps has gone beta. Most definitely worth a look, but only using Firefox or (ugh) Internet Explorer. Make sure you try click-and-drag on the map! Double-click it as well! Amazing stuff - streets ahead of the competition. It only covers the United States at the moment, but expect more countries to be added soon.


Posted on 8 February 2005, to Internet | News | Web Design
-- How To... --

Internet sharing success


Opera screen Despite previous failed attempts to get this working I did not lose hope. Since the recent firmware upgrade hadn't done anything significant to solve the problem, I concluded that it must be the generic bluetooth dongle I had. I decided to do what I should have done to start with, and bought a D-Link DBT-120 bluetooth dongle. This has cracked it!

The combination of the new firmware and the new dongle allows P800 Manager to share my internet connection for what appears to be an indefinite duration! So far my P800 has been sharing my laptop's internet for about 6 hours straight without any problems.

Opera full screen The mobile Opera browser is, as you can see, pretty slick. It resizes images very nicely and the 'fit-to-width' option saves you from a lot of side scrolling. Furthermore the full-screen option (as shown to the right) allows you to make maximum use of your screen real estate.


Posted on 6 February 2005, to How To... | Internet | Sony Ericsson P800
-- Internet --

Trackback spammers try their luck


Over the last couple of days this site has had something in the region of 200 trackback spams proclaiming the wonders of online gambling. It's actually quite a refreshing change to have some spam again after 10 weeks of being spam free.

After doing a little research, it appears there is no reliable way to block trackback spam whilst allowing legitimate trackbacks, but given their relative unimportance turning off trackbacks for all previous entries appears to be a no-brainer. Clearly the mere fact that someone else is linking to this site is the important point, the trackback's main purpose (* see below) seems to be providing an ego-boosting acknowledgment of that link.

* The argument that trackback serves as a sort of 'continuing the discussion elsewhere' signpost could conceivably be an argument to keep trackback, were it not for the fact that the vast majority of trackbacks are the blogosphere's equivalent of UseNet "me too" posts.

Update: Phil Ringnalda wrote an insightful article on this subject.


Posted on 2 February 2005, to Internet | Site News | Web Design
Comment on this entry
-- How To... --

Googlescript Searches


I read a useful Google hack recently - the following link opens a Javascript window:

Javascript:void(q=prompt('Type%20in%20the%20search%20term:')); if(q)void(location.href='http://www.google.com/search?q='+escape(q))

Click the link and type in your search term. When you click 'OK' it takes you to the Google results page for your search term. What's that you say? Not very inspiring so far? Well, how about this -

Using just a little knowledge of the way Google searches you can search web directories:

Javascript:void(q=prompt('Type%20in%20the%20type%20of%20file%20here:')); if(q)void(location.href='http://www.google.com/search?client=googlet&num=100&q=intitle%3A%22index%20of%20/%22%20%22'+escape(q)+'%22')

Or you can specify a particular file type (in this case I've used .mp3, you can replace it with .ogg or .avi or whatever takes your fancy ;) ):

Javascript:void(q=prompt('Type%20the%20name%20of%20the%20MP3:')); if(q)void(location.href='http://www.google.com/search?client=googlet&num=100&q=intitle%3A%22index%20of%20/%22%20%22'+escape(q)+'%22%20mp3')

Of course, despite the title of this post, this tip isn't restricted to Google - my favorite use of this technique is the search term below which I cobbled together to enable me to quickly search this blog:

Javascript:void(q=prompt('Search%20Digital%20Life%20the%20OS%20X%20way:')); if(q)void(location.href='http://thoughton.co.uk/cgi-bin//mt-search.cgi?IncludeBlogs=1&search='+escape(q))

Note that there should be no spaces in the above code snippets.

One great use of this method is to place a button in your Bookmarks bar:
Search button


Posted on 11 January 2005, to How To... | Internet | Site News
-- Entertainment --

Security Cameras on Google


BoingBoing today mentioned a fascinating Google hack which locates unsecured webcams. Just plug the following term into the Google search box. Note that Safari does not support JPEG streaming - use FireFox instead. Note that you can pan and zoom the camera by clicking the controls on the left!

inurl:"ViewerFrame?Mode="

This discussion also produced a couple of variations on the theme:

inurl:"MultiCameraFrame?Mode="
inurl:/view/view.shtml?videos=

Posted on 5 January 2005, to Entertainment | Internet | Technology
Comment on this entry
-- Internet --

The solution to Blog spamming?


ThreadWatch.org have posted a discussion on the possible solutions to blog spamming. Unsurprisingly, they've concluded that a installing a captcha system is probably the best single solution. There's a mention of the bBlog system which has implemented captchas right out of the box - possibly worth looking into.


Posted on 19 December 2004, to Internet | Web Design
-- Internet --

BitTorrent, analysed


The Register today published a very interesting scientific paper analysing BitTorrent as used via Suprnova.


Posted on 18 December 2004, to Internet | Technology
-- Apple --

Safari interface annoyances


One of Safari's more annoying user-interface decisions is the "Safari can't find server" error message.
Safari can't find server
If you open a link in a new page or a new tab and encounter this error, when you switch to the page or tab in question, you cannot close or refresh the page or tab until you dismiss the error message. This is simply terrible interface design, and not worthy of Apple. Whoever is responsible for Safari's UI, please do something about this! The error message should appear in the title bar, or address bar, or simply as a webpage saying "Server not found", not as a drop-down sheet that has to be dismissed. :evil:


Posted on 15 December 2004, to Apple | Bereft of Reason | Internet | Mac OS X
-- Bereft of Reason --

Max Headroom


Anyone who grew up in the 80s and was interested in science fiction might remember a visionary TV show called Max Headroom. However, if you do remember it, don't bother trying to order it on DVD - it doesn't exist. Warner Brothers, who own the copyright, have decided in their infinite wisdom that it's not worth the effort. There is an online submission form here where you can petition for a DVD release (Warner Brothers titles only). Don't wait - do it now!


Posted on 15 December 2004, to Bereft of Reason | Entertainment | Internet
-- Bereft of Reason --

Cheaper-than-normal iPod


Gizmodo are reporting on a David Hasslehoff-signed 20GB iPod on eBay (click through for a little movie from the man himself). The current eBay price after 6 bids is £102.01. A brand new 20GB iPod from Apple costs £212. Go figure - evidently the Hoff's signature immediately strips £100 off the iPod's value. I wonder if the signature can be buffed off?


Posted on 15 December 2004, to Bereft of Reason | Entertainment | Internet | Mac Audio | News
-- Internet --

RSS on UIQ


Total Wireless Solutions have released NewsFlash, an RSS reader for the UIQ platform. I've been trying to estimate the total size of my 170 or so regular RSS feeds. On average each feed seems to be anywhere from 3 to 15 K of data when it refreshes each hour or so - except for blogs like BoingBoing which include images in their RSS feed as well as blogs like EnGadget and Gizmodo which put out a very high number of articles. If we call the average 5K and we have 170 feeds, the total is about 850K downloaded for each hourly refresh. That's 5 or 10 minutes by GPRS, not great but acceptable. On the other hand it would be half a minute or so on 3G - perhaps I should be investigating 3G options when I upgrade my P800.


Posted on 15 December 2004, to Internet | Mobile | Sony Ericsson P800
-- How To... --

Smilies in Movable Type


Using Brad Choate's MTMacro plugin I've enabled smilies on this site :)

All I did was install the plugin as per the instructions, and then put a bunch of smilies inside a smilies folder (inside my icons folder).

Then I inserted this code into the head of each template (and repeated it with modifications for each different smiley):

<MTMacroDefine name="smiley1" string=":) ">
<img src="<$MTBlogURL$>icons/smilies/biggrin.gif"
alt=":) " />
</MTMacroDefine>

Posted on 14 December 2004, to How To... | Internet | Site News | Web Design
Comment on this entry
-- Internet --

Related Entries in MT


I installed Adam Kalsey's Improved Related Entries System today. It's working great, except I'm having to go back and add keywords to some badly titled previous entries. Apologies if I accidentally re-pinged anyone - I forgot to turn off notifications in Ecto for the first entries I added keywords to.


Posted on 13 December 2004, to Internet | Site News | Web Design
-- Internet --

MT-Captcha report card


It has now been exactly 30 days since MT-Captcha was installed on this site. In that time this site has not seen a single spam comment. The previous month saw spam figures pass the 600 mark, so it would seem reasonable to call that a glorious debut! Thank you James!


Posted on 12 December 2004, to Internet | Site News | Web Design
Comment on this entry | TrackBacks (0)
-- Bereft of Reason --

Missing AIM account, further information


A few days ago I wrote about AOL suspending my AIM account after one day of use. It seems that I wasn't the only one - AOL have now admitted to accidentally removing some active AIM accounts during a routine removal of dormant accounts.


Posted on 10 December 2004, to Bereft of Reason | Internet
-- Internet --

Automatic downloading with BitTorrent


I missed this when it came out three weeks ago, but there was an interesting article on Engadget about setting up automatic downloads of TV episodes via BitTorrent and RSS. They are doing it on a PC, but the BitTorrent client they are using is Azureus, a java client which also works on OS X.


Posted on 8 December 2004, to Internet | Mac Video
-- Bereft of Reason --

AOL suspends AIM account for no reason at all


My AIM account, which I have used for a grand total of one day, has been suspended by AIM. There was no explanation, no email, no nothing. To date, I have sent about 20 IMs with the AIM service, and I have attempted but failed to have a video conference using iChat. Perhaps they've suspended me for that, I don't know.

What I do know is that attempting to log on produces this error message:

Unknown Authorization error when connecting to AIM, error = 17 More information | OK

Clicking on 'More information' leads me to this generic webpage:

Your Screen Name is blocked from signing in to the AIM service.   Your Screen Name is blocked from signing in to the AIM service. There are several reasons why you may have received this message: 1. Screen Names that were previously used on AOL but have been cancelled or suspended, can no longer be used on AIM. This includes both master accounts and sub-accounts. In order to continue using this Screen Name on AIM, please reactivate the account on AOL.

2. AOL Screen Names that have one or more of the following Parental Controls set will no longer able to use AIM, even if they have previously been able to do so:
- Instant Messages are Blocked.
- Kid's Only age category.

To access AIM, the Master Screen Name on the AOL account must go to AOL Keyword: Parental Controls and change the above settings for this Screen Name. In addition, your Screen Name must also be set to one of the following age categories: Young Teen, Mature Teen, or General (18+).

3. Users who identify themselves as a child under the age of 13 may not use this service at this time. If you are an adult and have entered your birth date incorrectly, you may use a credit card to complete our age verification process now, or anytime within 30 days of the date when you identified yourself as a child. You will not be charged for this credit card verification.

Click here to sign in to our age verification form to reactivate your Screen Name.

4. An account may be terminated for violations of the terms of service.

Pretty useless huh? I don't know why I expected more from AOL after the iChat-AIM team-up, but I shouldn't have. Evidently their level of competence is pretty much what it's always been. I've heard horror stories about their UK broadband service too.

I wouldn't even mind so much if there was some way of contacting AOL. But they deliberate make it impossible to do so. The only help you get is the inscrutable page shown above, or a ridiculous FAQ page with one entry. :evil:


Posted on 8 December 2004, to Bereft of Reason | Internet
Comment on this entry
-- How To... --

Airport disconnecting when switching users


Since getting the Airport Express and going wireless, I've noticed that I get disconnected from the Airport network when I use Fast User Switching to switch over to my iTunes user (I used this MacOSXHints hint to set up a large second shared iTunes library on an external hard disk). After a bit of research I came across this mailing list post. Switching to my iTunes user showed that I could not make any changes to the Network settings. This was when I remembered that I had set the iTunes user to Simple Finder to see what was so simple about it. Switching back to my main user showed that I couldn't make changes to logged in users, so after a quick switch back and logout of the iTunes user, I set it to Full Finder, logged back in, opened up the Airport tab of Network preferences and entered the appropriate network name and password. Note: the password box only appears once you've chosen a network. Voila! No more disconnects when switching users.


Posted on 2 December 2004, to How To... | Internet | Mac OS X
-- Games --

tintin++ 1.93.5


Igor asked me to compile his latest version today - I had a look at my previous write-up on the process, but I needn't have worried - it installed without a hitch.


Posted on 29 November 2004, to Games | How To... | Internet | Mac OS X
-- Apple --

Damn you Apple, stop deleting old forum posts


Not a single other forum I've ever visited does it, so why does Apple? A whole host of troubleshooting information is being deleted for no reason at all. I can't even count the number of times I've been directed to the Apple discussion boards for a solution to some problem or other, only to find that the thread is too old and has been deleted.
Apple error


Posted on 18 November 2004, to Apple | Bereft of Reason | Internet
Comment on this entry
-- Mac OS X --

Ars reviews launchers and docks


Ars Technica does their usual magnificent job.


Posted on 17 November 2004, to Internet | Mac OS X
-- How To... --

Installing MT-Captcha (aka SCode)


This site has recently started to attract spammers, extolling the virtues of viagra, cialis, and large penises in general. Since the Movable Type interface is relatively slow, deleting these spams has become a bit of a pain.

There are several methods of defence, ranging from simply removing the 'post message' button and forcing everyone to preview, to installing Jay Allen's MT-Blacklist, or a script which disables comments after a set period of time. Elise Bauer of the Learning Movable Type blog has an extensive description of the various approaches.

The best solution for minimal admin-interaction (i.e. the best solution for lazy folks like yours truly) appears to be James Seng's MT-Captcha, an MT plugin which adds a graphical security code which the commenter has to read and type in (thus defeating the automated spam bots). Apparently captcha stands for "Completely Automated Public Turing test to tell Computers and Humans Apart."

Fink hell
Unfortunately, in order to draw the images, MT-Captcha requires that you install the perl module gd. I had previously downloaded and attempted to install this using these instructions but got lost in a maze of dependencies and fink hell. However today I stumbled across a promisingly-titled document How To Install gd version 1.8.4 on Mac OSX on DarwinPorts!

However, this meant I had to install darwinports ...

Next up, DarwinPorts
I set about following the site's instructions:

% cd ~
% mkdir darwinports
% cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od login
% cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od co -P darwinports
% cd ~/darwinports/base
% ./configure
% make
% sudo make install

Unfortunately I hit a problem almost immediately. The second cvs command left me with this error:

cvs checkout: in directory darwinports:
cvs checkout: cannot open CVS/Entries for reading: No such file or directory
cvs [checkout aborted]: cannot write : No such file or directory

After a few minutes of Googling I discovered that this error was likely the result of already having a directory called darwinports (i.e. there is an mistake in the instructions). I removed the directory and tried the second cvs command again, and hey presto! Screenfuls of stuff scrolling past as darwinports downloads! This lasted several minutes on my half megabit ADSL.

Eventually it finished and I moved onto the next step. After switching directories as instructed I entered ./configure. Cue lots more scrolling, only to come to a premature end with this message:

Please install the X11 SDK packages from the Xcode Developer Tools CD
configure: error: Broken X11 install. No X11 headers

And then X11
Argh! I thought I had already installed XCode 1.1 back when I was getting tintin++ to work. Apparently I didn't install the X11 part of XCode. Popping in the XCode 1.1 CD confirmed that it was missing. A lengthy 35 minute install later (the last 1% of which took 15 minutes), I was back to the Terminal to try and configure darwinports again. This time ./configure went smoothly, and make and sudo make install both completed without incident.

Finally, gd
Now to install gd! Referring back to the How To Install gd version 1.8.4 on Mac OSX document, the first instruction was to type sudo port install gd. Naturally this didn't work (does any unix software work first time?) - 'port' was not recognised. Adding export PATH=$PATH:/opt/local/bin to my ~/.profile file fixed the problem. After a 5 minutes or so I ended up with a screen like this:

$ sudo port install gd
---> Fetching jpeg
---> Attempting to fetch jpegsrc.v6b.tar.gz from http://www.ijg.org/files
---> Verifying checksum(s) for jpeg
---> Extracting jpeg
---> Applying patches to jpeg
---> Configuring jpeg
---> Building jpeg with target all
---> Staging jpeg into destroot
---> Installing jpeg 6b_0
---> Activating jpeg 6b_0
---> Fetching libpng
---> Attempting to fetch libpng-1.2.6.tar.bz2 from http://voxel.dl.sourceforge.net/libpng
---> Verifying checksum(s) for libpng
---> Extracting libpng
---> Configuring libpng
---> Building libpng with target all
---> Staging libpng into destroot
---> Installing libpng 1.2.6_0
---> Activating libpng 1.2.6_0
---> Fetching gd
---> Attempting to fetch gd-1.8.4.tar.gz from http://www.boutell.com/gd/http/
---> Verifying checksum(s) for gd
---> Extracting gd
---> Applying patches to gd
---> Configuring gd
---> Building gd with target all
---> Staging gd into destroot
---> Installing gd 1.8.4_3
---> Activating gd 1.8.4_3

And that's it! gd is now installed.

Now onto MT-Captcha...
The instructions for installing MT-Captcha itself are quite simple. All you have to do is insert some code into your MT templates. However after making the necessary changes and rebuilding I got lots of these errors:

MT::App::Comments=HASH(0x815db34) print() on closed filehandle OUTFILE at lib/MT/SCode.pm line 5

This turned out to be incorrect permissions on my MT-Catchpa temporary folder. Setting the owner of that folder to www (UID 70) cured the rebuilding errors. However, my security code was still not appearing! According to James Seng if your image doesn't appear it is always related to your gd install. After much frustration I finally realised that my install was missing GD.pm! Seeing as how I know absolutely nothing about perl, I failed to appreciate that gd and GD.pm are two different things, and we need to install both.

Not just gd, GD.pm too
So, after some more googling, I found that GD.pm (version 2.17) can be found here. After downloading and expanding it, perl Makefile.PL resulted in hundreds of error messages:

GD.xs: In function `newDynamicCtx':
GD.xs:440: error: structure has no member named `gd_free'
GD.xs: In function `gd_cloneDim':
GD.xs:460: error: structure has no member named `alpha'
GD.xs:460: error: structure has no member named `alpha'
GD.xs:466: error: structure has no member named `thick'
GD.xs:466: error: structure has no member named `thick'
GD.xs: In function `XS_GD__Image_newFromPngData':
GD.xs:595: error: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromGdData':
GD.xs:614: error: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromGd2Data':
GD.xs:631: error: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromJpegData':
GD.xs:651: error: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromWBMPData':
GD.xs:676: error: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_copyRotate90':
GD.xs:1189: error: invalid lvalue in assignment
GD.xs:1189: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyRotate180':
GD.xs:1210: error: invalid lvalue in assignment
GD.xs:1210: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyRotate270':
GD.xs:1231: error: invalid lvalue in assignment
GD.xs:1231: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyFlipHorizontal':
GD.xs:1252: error: invalid lvalue in assignment
GD.xs:1252: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyFlipVertical':
GD.xs:1273: error: invalid lvalue in assignment
GD.xs:1273: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyTranspose':
GD.xs:1294: error: invalid lvalue in assignment
GD.xs:1294: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyReverseTranspose':
GD.xs:1315: error: invalid lvalue in assignment
GD.xs:1315: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_rotate180':
GD.xs:1335: error: invalid lvalue in assignment
GD.xs:1335: error: invalid lvalue in assignment
GD.xs:1336: error: invalid lvalue in assignment
GD.xs:1336: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_flipHorizontal':
GD.xs:1353: error: invalid lvalue in assignment
GD.xs:1353: error: invalid lvalue in assignment
GD.xs:1354: error: invalid lvalue in assignment
GD.xs:1354: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_flipVertical':
GD.xs:1371: error: invalid lvalue in assignment
GD.xs:1371: error: invalid lvalue in assignment
GD.xs:1372: error: invalid lvalue in assignment
GD.xs:1372: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_stringFT':
GD.xs:2085: error: `gdFTStringExtra' undeclared (first use in this function)
GD.xs:2085: error: (Each undeclared identifier is reported only once
GD.xs:2085: error: for each function it appears in.)
GD.xs:2085: error: parse error before "strex"
GD.xs:2104: error: `strex' undeclared (first use in this function)
GD.xs:2108: error: `gdFTEX_LINESPACE' undeclared (first use in this function)
GD.xs:2112: error: `gdFTEX_CHARMAP' undeclared (first use in this function)
GD.xs:2114: error: `gdFTEX_Unicode' undeclared (first use in this function)
GD.xs:2116: error: `gdFTEX_Shift_JIS' undeclared (first use in this function)
GD.xs:2118: error: `gdFTEX_Big5' undeclared (first use in this function)
GD.xs:2140: warning: assignment makes pointer from integer without a cast
GD.xs: In function `XS_GD__Image_stringFTCircle':
GD.xs:2188: warning: assignment makes pointer from integer without a cast
GD.xs: In function `XS_GD__Font_DESTROY':
GD.xs:2353: warning: comparison between pointer and integer
GD.xs:2354: warning: comparison between pointer and integer
GD.xs:2355: warning: comparison between pointer and integer
GD.xs:2356: warning: comparison between pointer and integer
GD.xs:2357: warning: comparison between pointer and integer
GD.xs: In function `XS_GD__Font_Small':
GD.xs:2369: warning: assignment makes pointer from integer without a cast
GD.xs: In function `XS_GD__Font_Large':
GD.xs:2380: warning: assignment makes pointer from integer without a cast
GD.xs: In function `XS_GD__Font_Giant':
GD.xs:2391: warning: assignment makes pointer from integer without a cast
GD.xs: In function `XS_GD__Font_MediumBold':
GD.xs:2402: warning: assignment makes pointer from integer without a cast
GD.xs: In function `XS_GD__Font_Tiny':
GD.xs:2413: warning: assignment makes pointer from integer without a cast
make: *** [GD.o] Error 1

Reverting to GD.pm 1.33
This error totally stumped me. There's a thread here which discuses it along with a possible fix, but it might as well be Greek as far as I'm concerned! Finally I read a note here, which suggested that reverting to GD.pm version 1.33 would work on OS X. After a quick download of the older version, I was once again installing GD.pm as per the ReadMe file. This time, despite hundreds of make test errors, make install worked perfectly! A quick rebuild of the site and - wow, stop the presses! I virtually jumped out of my chair as the sweet sight of a graphical security code greeted my eyes!

PS: for perl idiots like myself, here is a useful command to see if GD is working:

perl -e "use GD"

If there are no errors then GD is working.

Back to reality
Alas, despite the appearance of my security numbers, all was not rosy. After turning off comment approval and posting a few test comments, it became rapidly apparent that the security code was not being checked at all. Any comment was accepted, no matter what number was input into the security code field! Back to the drawing board...

Finally, success!
After flailing around for a couple more hours, and reading every one of the 500 comments on the MT-Captcha page, I've finally figured it out. There is a typo in the ReadMe!!! Growl. The key passage is this:

+++++++++++++++++++++++++++++++++++
INSTALLATION MT 3.x
+++++++++++++++++++++++++++++++++++

From: http://www.setcomputing.com/blog/archives/computing/2004-September/incorporating_mtsecu.html

Follow Step 1 to 5 as above and then...

But this is wrong, wrong, wrong. What it should say is:

+++++++++++++++++++++++++++++++++++
INSTALLATION MT 3.x
+++++++++++++++++++++++++++++++++++

From: http://www.setcomputing.com/blog/archives/computing/2004-September/incorporating_mtsecu.html

Follow Step 1 to 7 as above and then...

Once I completed steps 6 and 7 from the MT 2.x instructions (editing Comments.pm and the templates), the security code check FINALLY started working. I'm on cloud nine! :-)


Posted on 14 November 2004, to How To... | Internet | Site News | Web Design
| TrackBacks (2)
-- Web Design --

Bayesian filtering on Movable Type


In the course of researching Movable Type anti-spam techniques, I came across a Bayesian filter plugin by James Seng. It looks promising, but after reading this entry at Al-Muhajabah's MT Tips blog, I've decided to hold off. Apparently you need something like 1000 comments before it 'learns' enough to be useful. I have about 100 comments, so maybe I'll try it in a couple of years :-)


Posted on 14 November 2004, to Internet | Web Design
-- Web Design --

Installing MT-Blacklist


I've been attempting to install Jay Allen's MT-Blacklist in order to help deal with comment spam. However, despite widespread acclaim I found this software quite badly documented and hard to install. The help forums were notably unhelpful - they are full of people requesting help and little to nothing in the way of answers. That said, this is free software and I suppose one can't expect too much.

After precisely following instructions and installing the software (including installing Storable.pm) I ended up with an error when I tried to load mt-bl-config.cgi ("Use of uninitialized value in concatenation (.) or string at /Library/WebServer/CGI-Executables/extlib/File/Spec/Unix.pm line 78."). According to Jay Allen this is a "superfluous perl warning". Whatever it is, MT-Blacklist simply doesn't work. No matter what I click, it takes me to a login page which doesn't allow any logins. Using my Movable Type login and password merely causes the page to reload. Interestingly, using any other login information results in a red box saying 'Invalid Login'. So obviously I am using the correct password information, there's just something broken in MT-Blacklist.

One of the suggestions in the help forums (in reply to someone else's problem) was to simply reinstall MT-Blacklist. I wasted a couple of hours and did so, only to get to the loading stage (running mt-bl-config.cgi) be greeted by a message to the effect that there were pre-existing MT-Blacklist entries in the MySQL database which needed to be removed. After spending a fruitless hour searching for an idiot's guide on command-line commands to drop tables from a MySQL database, I ended up installing phpMyAdmin following these instructions. After that ordeal trying to load phpMyAdmin resulted in this error: " The configuration file now needs a secret passphrase (blowfish_secret).". A quick google led me to this page where I found the solution. Finally, something that worked! Like so much other unix software, this whole ordeal has been a case of 'one step forward, two steps back.'

Unfortunately, after removing the old MySQL tables and reloading MT-Blacklist, I'm getting the exact same problem as before - no matter what I click I get taken to a non-responsive login page. As you can imagine, this is intensely annoying :-) If anyone has a clue, I'd love to hear from them!


Posted on 14 November 2004, to Internet | Site News | Web Design
-- Site News --

Site update


Updated the site! First I installed Marc Liyange's PHP Apache Module in order to experiment with PHP. Then I found a slick PHP random image script which led me to (finally) revamp the site's general look. Finally rid of those default Movable Type colours!


Posted on 12 October 2004, to Internet | Site News | Web Design
-- Bereft of Reason --

Humour on SlashDot


After years of reading SlashDot, I have finally taken the plunge and registered for an account there! The reason? The decrease in what usenet geeks call the "signal-to-noise" ratio. In the (possibly rose-tinted) past SlashDot comments were invariably insightful and technically impressive, but recently the surge in irrelevant comments has been quite irritating.

After thinking about it for a few minutes, it occured to me that given SlashDot's unique moderation system there might be some kind of preference where I could filter out the frivolous comments. But only if I registered. And, lo and behold, after registering and checking the user preferences section I found exactly what I was after! Once you log in, you can go to the Preferences:Comments page, and change the "Reason Modifier" for "Funny" to "-6". This will moderate all "Funny" comments down by 6, and thus guaranteeing they fall below my threshold of 2 (and guaranteeing I never have to read another inane joke about Beowolf clusters).

To illustrate my point about the number of wannabe comedians, this story about the recently-discovered giant apes in the Congo has 172 comments with no humour filtering. With humour filtering that number drops to 132. In my humble opinion having 1 in 4 comments making some kind of joke is far too much. And most of the jokes aren't even funny!!! I wouldn't object so much if the humour moderation was a bit more discerning, but when a one-line comment such as "An ape capable of killing lions ran away after a peek--that must have been one ugly face!" rececives the maximum +5 moderation for humour, I find I lose a lot faith in the collective sense of humour of SlashDot moderators. Apologies to whoever posted that comment, but this feeble joke would barely crack a smile if you told it in real life, why is it so funny on SlashDot?


Posted on 11 October 2004, to Bereft of Reason | Internet
-- Entertainment --

Free eBooks for your P800


I was recently directed to ManyBooks.net as a good site for free books. There are a lot of the Project Gutenberg books here, but the layout and organisation is much better, and books are available in many popular eBook formats, including my preferred PalmReader (pdb) format. I'm a long time fan of the late Robert Heinlein, and given his many references to Edgar Rice Burrough's John Carter of Mars series, I've always wanted to read them. So it was a nice surprise when I found book one of the series, Princess of Mars. Books two to five are also available.


Posted on 9 October 2004, to Entertainment | Internet | Mobile | Sony Ericsson P800
-- Internet --

Real Mplayer


There was a nifty tip on MacOSXHints today - apparently the codecs from the latest RealPlayer are usable in Mplayer. This is useful if you want to convert streaming RealVideo but the codec is too new for Mplayer.


Posted on 9 October 2004, to Internet | Mac Video
-- Internet --

Spamadelic


Ok ... I've been discovered by one particularly dorky spammer. He's just posted a spam comment to every single previous post! I am now investigating the options. There is a good summary here, but the best bets seem to be MT-Blacklist and SCode. However according to this page, SCode hasn't been tested with MT 3.x yet. In the meantime I've turned on comment approval, so comments will no longer appear on this site until approved by me. Sorry about that, hopefully it won't last long. Watch this space!


Posted on 8 October 2004, to Internet | Site News | Web Design
Comment on this entry
-- How To... --

Flippin' ecto!


I've heard good things about some blogging software called ecto and decided to try it out today. Installing it was a bit of a pain, it turned out I needed some files that were included in a full Movable Type 3.x install but not included in an MT 2.661 upgrade install. I ended up in the ecto support forums where with some very prompt help from the author managed to get it working.

I've now been playing with the software for a couple of hours and, essentially, I love it. There are a few areas where it it still manages to outfox me, most of them are to do with ecto's WYSIWYG Rich Text editing interface. There is also a plain HTML interface, which is mainly what I've been using. Even though the entries in plain HTML look the same as they do in the Movable Type entry screen, ecto's interface is infinitely better, largely because of the vast speed increase the whole blogging procedure undergoes.

Other highlights have been ecto's clever HTML tag shortcuts For instance you can copy a destination URL into the clipboard, switch to ecto and highlight the phrase to be hyperlinked, press command-shift-U and hey presto you have a hyperlinked phrase. Simpler stuff like command-I and command-B work as well (this sounds like nothing, wait until you've have typed <i> and </i> a few hundred times). Also worth a mention is the highly illuminating graphical breakdown of the program in the ecto support forums.


Posted on 6 October 2004, to How To... | Internet | Mac OS X | Site News
-- Internet --

Upgrading to Movable Type 3.11


Upgraded this site's underlying software from Movable Type 2.661 to Movable Type 3.11 today. Following the upgrade instructions got me into trouble straight away simply because I uploaded the required files as the root user instead of from my user account. This gave all my files the wrong owner and group, which caused mt-upgrade30.cgi to give me this error:

Bad ObjectDriver config: Connection error: Access denied for user: 'thoughton@localhost' (Using password: NO)

After poking around a bit, I figured out that simply using the Finder instead of FTP to copy the required files from the MT-3.11-upgrade-en_us folder to my CGI-Executables folder solved this problem. Opening mt-upgrade30.cgi in a browser now produced some upgrading messages. Opening mt-upgrade31.cgi finished the job. Movable Type 3.1 should now be installed! But first I had to iron out a few problems.

The first thing I noticed upon logging into the new MT 3.11 installation was that the screen was all mixed up, with some new background images and some old (version 2.661) background images. Rebuilding the entire site fixed this, but on my first few rebuilds I got permissions errors involving index.html, index.rdf, index.xml, rsd.xml and archives.html files. Using the Finder to change the permissions of these files so that the group owner was 'www' and had read and write access fixed these rebuild errors.

Voila! Logging into the site worked fine now. One of the first things I did was to go to the preferences section and uncheck 'Use Old-Style Archive Links'. This switches the individual archive entries to have meaningful names (like upgrading_to_mo.html instead of 000090.html). Rebuilding after this produced a new permissions error involving MT's local archive path (on this site the path is tim/weblog/). Using the finder to change the ownership of the folder so that it was in the www group with read and write access fixed that problem.

I soon realised that the new site did not have the category icons anymore, but copying over topicon.pl and topicon.cfg from my old MT install followed by a rebuild fixed that! So far everything else seems to be working. Watch this space!

Update: Due to the extra two levels in the directory structure of the new meaningful-name archive files I also had to update some image paths on the archive templates.


Posted on 4 October 2004, to Internet | Site News | Web Design
-- Internet --

10,000 zombie PCs


It's almost like something out of Neuromancer! An article at the Register today describes the discovery in Norway of a 10,000-strong network of PCs all infected with worms such as MyDoom and Bagle being controlled via Internet Relay Chat (IRC) for spamming or Distributed Denial of Service (DDoS) attacks. The article goes on to refer to a Ohio-based IRC provider shut down for acting as middleman in corporate DDoS attacks.


Posted on 10 September 2004, to Internet | News | Technology
-- Internet --

Movable Type 3.1 launched


Movable Type 3.1 was released yesterday. Looks good, perhaps one day soon I'll look into upgrading.


Posted on 1 September 2004, to Internet | Web Design
-- Internet --

eBooks and DRM


Cory Doctorow over at BoingBoing discusses a C|Net report on the current state of eBook publishing and whether or not Digital Rights Management (DRM) makes a difference.


Posted on 28 August 2004, to Internet | Mobile | News | Sony Ericsson P800
-- Entertainment --

Be Ready, the US Govt is coming


I received this via email. I wouldn't normally post this sort of thing, but the captions really did make me laugh!

The US government has a new website, titled Be Ready. The thing is that the pictures from the site are so ambiguous they could mean anything! Here are a few interpretations.


If you have set yourself on fire, do not run.


If you spot terrorism, blow your anti-terrorism whistle. If you are Vin Diesel, yell really loud.


If you spot a terrorist arrow, pin it against the wall with your shoulder.


If you are sprayed with an unknown substance, stand and think about a cool design for a new tattoo.


Use your flashlight to lift the walls right off of you!.


The proper way to eliminate smallpox is to wash with soap, water and at least one(1) armless hand.


Michael Jackson is a terrorist. If you spot this smooth criminal with dead, dead eyes, run the hell away.


Hurricanes, animal corpses and your potential new tattoo have a lot in common. Think about it.


Be on the lookout for terrorists with pinkeye and leprosy. Also, they tend to rub their hands together manically.


If a door is closed, karate chop it open.


Try to absorb as much of the radiation as possible with your groin region. After 5 minutes and 12 seconds, however, you may become sterile.


After exposure to radiation it is important to consider that you may have mutated to gigantic dimensions: watch your head.


If you've become a radiation mutant with a deformed hand, remember to close the window. No one wants to see that shit.


If you hear the Backstreet Boys, Michael Bolton or Yanni on the radio, cower in the corner or run like hell.


If your lungs and stomach start talking, stand with your arms akimbo until they stop.


If you are trapped under falling debris, conserve oxygen by not farting.


If you lose a contact lens during a chemical attack, do not stop to look for it.


Do not drive a station wagon if a power pole is protruding from the hood.


A one-inch thick piece of plywood should be sufficient protection against radiation.


Always remember to carry food with you during a terrorist attack. At least you'll be able to enjoy a nice coke and apple before you die.

Posted on 21 August 2004, to Entertainment | Internet | News
Comment on this entry
-- How To... --

Encrypted emails


Interesting article on MacMerc this week describing how to enable encrypted and digitally signed emails in Mail and other Mac email apps. I'm waiting for my certificate now, although to be honest I can't imagine anyone I know encrypting their emails :-)


Posted on 17 July 2004, to How To... | Internet | Mac OS X
-- Internet --

Online DVD rentals in the UK


The Register today reported the merger of two of the UK's online DVD rental companies, MovieTrak and Qflicks, supposedly in preparation for US pioneer Netflix's arrival later this year. As mentioned elsewhere, I'm a fan of LoveFilm.com. Other outfits include Video Island and Screen Select. While looking up their websites I had a chuckle at the inevitable hyperbole:

Screen Select - "Join the UK's number 1 online DVD rental service"
Qflicks - "Largest DVD Selection in Europe - over 20,000 titles"
MovieTrak - "Europe's first online DVD rental company"
Video Island - "Rated UK's No.1 DVD rental service"
LoveFilm - no bold front-page claims, but the FAQ mentions "over 20,000 titles - that's virtually every DVD available in the UK"


Posted on 14 July 2004, to Internet | Mac Video | Technology
-- How To... --

Category icons in Movable Type


I wanted to add category icons to the website, so after a bit of reading I decided to give the TopIcon Movable Type plug-in a try. Installation was fairly straightforward - the only slightly obscure part was the documentation on the naming conventions for the icon files. I seem to have it cracked though, except for an odd spacing issue where the entry title doesn't extend to two lines.

Update: worked around the space problem by wrapping everything in a table with a defined width for the first cell.


Posted on 11 July 2004, to How To... | Internet | Site News | Web Design
-- Internet --

GPRS in the UK


GPRS is mighty expensive in the UK, just a month or two ago I looked into it on my T-Mobile pay-as-you-go plan and prices started at £1.50 per megabyte or £40 a month for 'unlimited' usage (discretionary 100MB cap, 12 month contract). This is way too much for me to use it for my regular email, let alone browsing the web.

So when I noticed this I thought, what a great idea!. A text-based web browser almost makes me want to sign up for GPRS so I could use the P800 as a mobile modem for the laptop. I'd still have to lug the laptop around along with the phone though. All I need now is a similar program for the Symbian OS.


Posted on 11 July 2004, to Internet | Mac OS X | Mobile | Sony Ericsson P800 | Technology
-- How To... --

RegExp and Konfabulator's one-liner widget


I've recently been trying out one-liner, a handy Konfabulator widget. This is a highly customizable widget that uses regular expressions to extract data from a user-specified webpage and display it on screen with regular updates. The suggested uses are to keep track of new comments on a site such as VersionTracker, or to keep track of the latest version of an application. This latter use is what I like it for.

Some history: a few years back, VersionTracker made their name by offering a free service to check for updates of all your installed software. It was a bit slow (at the time everyone had dial-up connections) but it worked very well and was a big timesaver. Rather than Get-Info on each application (or worse yet, launch it just to check the version number), you could just run VersionTracker's app and it would tell you which of your installed apps had an update available online. Unfortunately, VersionTracker now want us to pay for this program (now called VersionTracker Pro, obviously). Worse yet, it's not even a traditional "pay-once" program. We now have to pay US$50 every year to use the service! This is known in some industries as a "bait and switch" scam ;-) but in the computer world it is unhappily quite common (mac.com anyone?)

Back to one-liner. What I wanted to do with it was to set it up to check for updates to a few apps that I regularly use (and have some minor issue that I'm waiting for a bug-fix for). After a bit of reading, including this nicely done RegExp tutorial, I was able to put together some generic expressions to parse VersionTracker entries for the information I want (i.e. the latest version number). Simply create a new entry in one-liner and enter the following values (use the VersionTracker URL of the application you want to watch):

Update: I realised VersionTracker have a different page for each version, which makes tracking the newest version difficult. MacUpdate only keeps the latest version which simplifies things a lot.

Parse Target URL (use the MacUpdate URL of the app you want to track):
http://www.macupdate.com/info.php/id/13341

RegExp1(A):
/<title>(.*)<\/title>/[1]

Title:
/<title>(.*)<\/title>/[1]

Display:
A

This will make one-liner request the MacUpdate page and display what the current version number of the software is. You can set the interval in the one-liner preferences. This is the result (the bottom five lines are the result of this technique):
oneliner_macupdate.jpg

A good place to ask RegExp-related questions is regexp.org.


Posted on 7 July 2004, to How To... | Internet | Mac OS X
-- How To... --

OS X Internet sharing with a P800


On the face of it, this shouldn't be a problem. After all, it apparently works on Windows.

My early efforts at this stemmed largely from this hint and this hint at MacOSXHints. However I was unable to get it to work. I was continually getting this error in my Console log:

Failed to open /dev/tty.Bluetooth-PDA-Sync: Device busy

but I cant for the life of me figure out what device is busy.

I then spent a few days fiddling with this method from TechnoHappyMeal, but after a lot of frustration I gave up on it. At the time I had decided that because my internet connection was coming through a USB port I wouldn't be able to share it over bluetooth (the various scripts that were developed in this and the MacOSXHints threads above all only specified built-in-ethernet or airport connections).

I left it for a while but then I heard about an app called Bluetooth to Internet Utility. It looked promising, but unfortunately it seems to have been broken by one of the recent OS X system updates. (In step 3 of installation it tries to open Sharing Preferences but instead opens Universal Access Preferences and then pops up an error window).

Then a few days ago I read about an app called P800 Manager which has an internet-over-bluetooth option. This app looks like it has (almost) cracked it. For one thing it can establish (and maintain indefinitely) a bluetooth connection with the phone (the phone's bluetooth icon shows a two-way connection, which none of my previous attempts had managed to do). Almost there! However when I fire up Opera on the phone it appears to manage to send out a page request, and I can see some data being downloaded over the broadband modem (courtesy of MenuMeters), but the data does not reach the phone. I'm not sure what is going wrong, but I am investigating the phone's settings and the Mac's port settings.

Update 9/12/04: I recently went wireless with an Airport Express which involved replacing my USB broadband modem with an ethernet one. This has solved my problem - P800 Manager's internet sharing works now! I still get occasional drop-outs of the bluetooth connection (which requires a restart of the P800 Manager sharing process), but I'm confident that is a P800 firmware problem fixable by getting a firmware upgrade.


Posted on 16 June 2004, to How To... | Internet | Mac OS X | Sony Ericsson P800
-- Internet --

OS X URL Handlers security hole


This problem has cropped up in the last few days. There has been much discussion about it, including on Slashdot here and here. The general consensus seems to be that the best solution is to use Rubicode's DefaultApp as documented on Daring Fireball.


Posted on 22 May 2004, to Internet | Mac OS X | News
-- How To... --

Postfix fix!


Good news: a contributor at MacOSXHints has found a solution to prevent postfix from breaking down whenever you repair permissions. Three cheers for clvrmnky!


Posted on 12 April 2004, to How To... | Internet | Mac OS X
-- Internet --

The return of typhoon8


I have finally, after months of effort and four transatlantic faxes, managed to persuade Network Solutions that I am actually who I say I am. They have now changed my registered email address (they still had the old Hong Kong one) so that I once again have access to the typhoon8.net domain. Thanks to the free URL redirection service at MyDomain.com, I've pointed typhoon8.net to this page for now.

On a related note, while looking into the typhoon8.net situation, I noticed that typhoon8.com has been registered to an outdoor adventure company based in Hong Kong. On their website's links page they have a link for the "other" typhoon8, and the link is to the Hong Kong Observatory's typhoon signals explanation page! In the spirit of one-upmanship I thought I'd post this:

whois typhoon8.net
Domain Name: TYPHOON8.NET
Administrative Contact, Technical Contact:
Houghton, Timothy (31613958I)
Record expires on 18-May-2005.
Record created on 18-May-1999.

whois typhoon8.com
Domain Name: TYPHOON8.COM
Created on..............: Fri, Nov 29, 2002
Expires on..............: Mon, Nov 29, 2004
Record last updated on..: Thu, Feb 06, 2003
Administrative Contact:
Asia Explorer Limited

Maybe I should email them and demand inclusion on their links page! Or maybe I should just flog typhoon8.net to them. :-)


Posted on 2 April 2004, to Internet | Site News
-- Internet --

Postfix broken ... again


I recently used Carbon Copy Cloner to back up my 30gig startup drive to an equal sized partition on my external 160gig. CCC is set to repair permissions on the source volume prior to cloning, and whattya know, Postfix didn't work afterwards. Applying the earlier fix got it working again.


Posted on 22 March 2004, to Internet | Mac OS X
-- How To... --

tintin++ on OS X


Finally got tintin++ working on OS X! I think it's more to do with Apple switching to the bash shell than anything else. I did this on OS X 10.3.3, but this should work under any version of OS X 10.3. Pre-10.3 installations use the tcsh shell instead of the bash shell. tintin++ reportedly does work under tcsh, but it needs some special configuration to make it work (I've tried many times but always failed). Also note I am a unix novice and this is written for people like me :P

What is tintin?
tintin++ is a mud client for unix-based operating systems. It features triggers, aliases, tickers, paths, variables, gagging, and many other advanced features.

Getting the software
The first thing you will need is a compiler. Most users of OS X wouldn't know a compiler if they tripped over one, so it's not included in a default install. To get your compiler you will need to download the OS X Developer Tools (also known as Xcode 1.1). This is avalable at the Apple Developer Connection (free registration required). Note that the Xcode package is approximately 600 megabytes in size - we only need a tiny piece of it but this is the easiest way to get it). Note: recently-purchased Macs may come with an OS X Developer Tools CD.

Next you will need a unix package known as readline-4.3. This is available here.

Finally you will need the tintin++ package. The original tintin++ (v1.86) does not seem to be developed anymore (and the old homepage is dead), but my buddy Scandum has been working on updated version (v1.91) which is available at here.

Once you have all the software, you're ready to go!

Installing everything
1. Mount the Xcode disk-image. Launch the installer, follow the on-screen instructions for a default install.
2. Launch Disk Utility and repair permissions! This is recommended after installing any OS X system software.
3. Unpack the readline.tar and tintin.tar.gz packages by dropping them onto Stuffit Expander (installed by default with OS X). This will produce two folders, one called readline-4.3 and one called tt.
4. Copy the readline-4.3 and tt folders into your home folder.
5. Launch Terminal (inside /Applications/Utilities/).
6. Now you're going to compile readline. In the terminal, type the following:

cd readline-4.3
./configure
make
make install

You may get a couple of errors, but don't worry, you've just installed readline (enough of it for tintin anyway!). Congratulations. Type exit and quit the terminal.

Note: The readline install sometimes produces a load of messages about not having permissions to write in /usr/local/ This didn't happen to me - I don't know why - but it happened to another buddy Jeff. His solution was to type su and his root password before typing make (you may need to enable the root account and set a root password in NetInfo Manager [inside /Applications/Utilities/] - you should probably disable the root account after finishing this install).

Further note: Jeff has since told me that the permissions issue was due to him having just installed OS X and never having logged out since installing. After logging out and back in he was able to install readline without resorting to su.

7. You also need to compile tintin. Launch Terminal again and type the following:

cd tt/src
./configure
make

You've just installed tintin++. Congratulations again. If you get an error while compiling tintin saying it cannot find readline in either of the two usual locations, there's something wrong with your readline install (most likely you had the permissions issue described above).

Using tintin++
You can navigate to the tintin directory and launch it by typing

cd ~/tt/src
./tt++
.

Once tintin has loaded, you can connect to a mud by typing:

#ses sot sotmud.net 23

where sot is the name of the session you are starting and sotmud.net (port) 23 is the address of the mud you are connecting to.

Note: To exit from tintin press ctrl-c

Getting started with login scripts
Create the file run by typing the following:

cd ~/tt/src
pico run
./tt++ run.scr

save the file (ctrl-X, Y, <enter>;) and make it executable by typing:

chmod 755 run

Create the file run.scr by typing the following:

pico run.scr
#read run.tin

save the file (ctrl-X, Y, <enter>;)
Create the file run.tin by typing the following:

pico run.tin

To auto-load a login alias called 'loginsot' every session, type the following:

#alias loginsot #ses sot sotmud.net 23

An alternative here is to bind the login command to the F1 key (#help macro for more information) by typing:

#macro {\e[11~}{#ses sot sotmud.net 23}

save the file (ctrl-X, Y, <enter>;)

What did that accomplish?
After all of the above typing ./run should start up tintin, and read in the contents of run.tin You can then type loginsot (or hit F1, depending what you did at the end of the previous step) to login to the mud address you defined.

While you have a session open you can now type: #config and set the configuration to your liking, and once done type: #write run.tin This will save your configuration in the run.tin file, so it'll be loaded whenever you use run.

Adding an alias for speedy launching
Launch Terminal and type:

pico .profile

This edits a hidden file (.profile) in our home folder. Use the down arrow to move down to the end of the file. Add the line:

alias tintin='cd tt/src;./run'

save the file (ctrl-X, Y, <enter>;)

You can now launch tintin (and your run.scr script) by opening a new terminal window and typing tintin.

Additional help
While in a tintin session typing #help will give you detailed help on making the most of tintin++. Also don't forget to look in the docs folder (inside the tt++ folder) at the example scripts. Finally the tintin messageboards has some useful discussion about older versions of tintin (most of it is still applicable).


Posted on 22 March 2004, to How To... | Internet | Mac OS X
Comment on this entry
-- Internet --

Postfix problems


Well ... I've already broken my Postfix installation. All I had to do was repair permissions! I noticed a bunch of Postfix related stuff in the repair log and, sure enough, I couldn't use my SMTP anymore.

After much googling I found this page which contains the following fix:

sudo chown -R postfix /private/var/spool/postfix
sudo chown root /private/var/spool/postfix
sudo chown root /private/var/spool/postfix
sudo chown :postdrop /private/var/spool/postfix/public
sudo chown :postdrop /private/var/spool/postfix/maildrop
sudo chown :postdrop /usr/sbin/postqueue
sudo chown :postdrop /usr/sbin/postdrop
sudo postfix start

Now it all works, but presumaby repairing permissions will break it again! We'll see.

Continuing in the spirit of experimenting with an 'always-on' internet connection, I've been playing with setting up my own FTP server courtesy of PureFTPd-Manager. This app makes the set up ridiculously easy, and after some teething problems with my firewall, all is well (time-saving tip: if you want your clients to be able to use passive FTP you will either have to open all ports from 1024 - 65535 on your server's firewall, or you will need to manually specify which ports your server will use for passive FTP, and then only open those ports on the firewall).


Posted on 17 March 2004, to How To... | Internet | Mac OS X
-- How To... --

Postfix on Panther


I've become sidetracked. MySQL is on hold because after playing with Apache I got interested in setting up a mailserver on my laptop, especially since BT Broadband do not offer an SMTP service. I had been testing SpyMac's free SMTP but it doesn't always allow me access if I haven't checked my SpyMac mail recently.

However there is a solution - sending mail with my own SMTP server and not relying on any ISP. Prior to version 10.3 OS X came with sendmail installed but disabled; it now ships with Postfix installed but disabled. So I needed to enable Postfix. Graham Ordorff covers OS X and mail servering (including Postfix) in intricate detail here, whilst John Brewer has written a slick tutorial here concentrating on setting up Postfix with authentication. Reading through these two tutorials enabled me to get Postfix up and running for my outgoing mail. For incoming mail I still rely on Fastmail's excellent free service.

Update: since getting Postfix working I've discovered (via FreshGoo) that the easiest solution may be Postfix Enabler which is available here on Bernard Teo's excellent weblog (he also has a Sendmail Enabler for pre-10.3 installations).


Posted on 16 March 2004, to How To... | Internet | Mac OS X
-- Internet --

What's new at Google?


There's a new service called FreshGoo which provides an easy way to search for recent entries to the Google database. Pretty useful if you're looking for recently-updated information and can't be bothered to negotiate Googles Advanced Search page.


Posted on 15 March 2004, to Internet | News
-- Internet --

Broadband revisited


I discovered that the BT broadband is actually going at almost full speed. The connection is reported as a 288000bps connection, but it seems that OS X is detecting the upstream and not the downstream. I didn't figure this out until trying out the excellent broadband speed test at the ADSL Guide. My downstream results were 444kbps (estimated at approx 480kbps with overheads) and the upstream results were 245kbps. Both values are pretty close to what they should be with a 256up/512down ADSL service.


Posted on 14 March 2004, to How To... | Internet | Mac OS X
-- Mac OS X --

Finally, a 24/7 connection


The broadband modem arrived today. Setting it up was pretty simple, just plug it in and a few clicks. BT's OS X installer even works (their dialup one didn't, I had to manually open up their coookie to configure that). It only seems to be able to connect at 256kbps though, instead of the advertised 512. I'll give it a few days and see how that goes, since some ADSL modems need to be 'trained'.

Setting up the Apache webserver that's built into OS X was very easy. One click fired up the server, but then I had to spend a few minutes googling to finding out where the root directory was (inside /Library/Webserver/Documents/ if you're wondering). I then set up an account with no-ip.com to forward emandtim.no-ip.com to my broadband connection's IP. no-ip.com make a nice little utility which will monitor your connection and regularly report your IP address to no-ip.com (and thus update the emandtim.no-ip.com redirection). Pretty slick for a free service. I'm now downloading the 600MB Apple Developer Tools - apparently I need them to set up MySQL. With my half-speed broadband it's going to take 4 or 5 hours.


Posted on 12 March 2004, to How To... | Internet | Mac OS X | Site News
-- Internet --

Pondering email


I just learned that SpyMac has recently started offering a free email and webspace offer (which includes a mountable volume known as SpyDisk, very similar to Apple's iDisk service). I've signed up for accounts for both Emma and myself. The service includes both SMTP and POP, which will be useful once we cancel our BT dialup account. My preferred email service, Fastmail, does not offer an SMTP server with their free service so I had been wondering how we were going to send emails.


Posted on 10 March 2004, to How To... | Internet | Technology
-- Internet --

Hello broadband!


Signed up for BT broadband this week. I was originally going to go for Tiscali based on their advertising (30% cheaper, 50MB webspace, free web SMS) but after spending a while reading reviews on the web I've abandoned that idea and gone for BT instead. The only other choice in this area is NTL cable, but Emma and I have had bad experiences with NTL customer support in the past.

Broadband will be great, but it'll mean canceling our BT dialup account. Stupidly BT have decided that although you get 50MB of webspace with dialup accounts, you don't get any with a broadband account. So I'm looking around for free webspace - I didn't pay for it before and I'll be damned if I'll pay for it now! The alternative I've been thinking about is serving this webpage from my own Mac. The broadband will be always on after all! I just have to get the hang of the Apache and MySQL on OS X ... we'll see how that goes.


Posted on 7 March 2004, to Internet | Site News | Technology

Category icon Sponsors