Archive for October, 2005

Report an Apple Bug Monday: Out of Quota Disk Messages

Monday, October 31st, 2005

I’m not constrained to just reporting bugs on Fridays 🙂

This is an enhancement to existing functionality. When the Finder attempts to copy to a file server and runs out of disk quota, it displays the following, somewhat uninformative, message:

Unhelpful Finder error message (Code -1425)

This message should be translated to a string informing the user that they are out of disk quota. This bug has been reported to Apple as Radar 4322110.

Drive TV

Saturday, October 29th, 2005

Channel 10 Australia started showing Drive TV this afternoon. My opinion, in short: don’t bother.

If you want to watch some good motoring television there’s still only one choice: Top Gear from BBC2 in the UK. And for Australians who haven’t seen it, it’ll soon be available on SBS (article available here).

Gigantic URL

Saturday, October 29th, 2005

An amusing take on TinyURL and friends is GiganticURL.

For example http://www.allocinit.net/ translates to:
http://www.GiganticURL.com/url/aHR0cDovL3d3dy5hcHBsZS5jb20vaHR0c
DovL3d3dy5hcHBsZS5jb20vYUhSMGNEb3ZMM2QzZHk1aGNIQnNaUzVqYjIwdg==a
HR0cDovL3d3dy5hcHBsZS5jb20vYUhSMGNEb3ZMM2QzZHk1aGNIQnNaUzVqYjIwd
mFIUjBjRG92TDNkM2R5NWhjSEJzWlM1amIyMHZZVWhTTUdORWIzWk1NMlF6WkhrM
WFHTklRbk5hVXpWcVlqSXdkZz09aHR0cDovL3d3dy5hcHBsZS5jb20vYUhSMGNEb
3ZMM2QzZHk1aGNIQnNaUzVqYjIwdmFIUjBjRG92TDNkM2R5NWhjSEJzWlM1amIyM
HZZVWhTTUdORWIzWk1NMlF6WkhrMWFHTklRbk5hVXpWcVlqSXdkZz09YUhSMGNEb
3ZMM2QzZHk1aGNIQnNaUzVqYjIwdllVaFNNR05FYjNaTU0yUXpaSGsxYUdOSVFuT
mFVelZxWWpJd2RtRklVakJqUkc5MlRETmtNMlI1TldoalNFSnpXbE0xYW1JeU1IW
lpWV2hUVFVkT1JXSXpXazFOTWxGNldraHJNV0ZIVGtsUmJrNWhWWHBXY1ZscVNYZ
GtaejA5aHR0cDovL3d3dy5hcHBsZS5j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UdOSVFuT
mFVelZxWWpJd2RtRklVakJqUkc5MlRETmtNMlI1TldoalNFSnpXbE0xYW1JeU1IW
lpWV2hUVFVkT1JXSXpXazFOTWxGNldraHJNV0ZIVGtsUmJrNWhWWHBXY1ZscVNYZ
GtaejA5YUhSMGNEb3ZMM2QzZHk1aGNIQnNaUzVqYjIwdllVaFNNR05FYjNaTU0yU
XpaSGsxYUdOSVFuTmFVelZxWWpJd2RtRklVakJqUkc5MlRETmtNMlI1TldoalNFS
npXbE0xYW1JeU1IWlpWV2hUVFVkT1JXSXpXazFOTWxGNldraHJNV0ZIVGtsUmJrN
.

Fun 🙂

Spodcast

Thursday, October 27th, 2005

I’m not sure most people really have any idea what this whole “postcasting thing” is going to turn into eventually, but perhaps one of the most interesting podcasts I’ve been listening to is Spodcast.

This is where I’m meant to say something inspiring to make you go and listen to it I guess, but to be honest I can’t think of anything that exciting to say. Maybe you should just listen to it yourself and see what you think.

Spiffy New Look

Thursday, October 27th, 2005

So instead of doing anything even remotely productive tonight I decided to make a pretty new theme for this site. Given that I really can’t be bothered doing too much work, I ended up just making a cool new header image, and editing the colours a bit. Still, I don’t think it looks too bad.

Extended Attributes and Tiger’s Rsync

Tuesday, October 11th, 2005

It’s been a while, but never fear I’ve got a nice shiny new bug for you today.

Rsync can in some cases not handle the -E and -‍-delete functions very well when combined together. Because Apple chose to implement resource forks in rsync using their you-beaut-gee-whiz ._ files, when the resource fork doesn’t exist for the file, or indeed the file doesn’t exist at all in the source directory rsync happily attempts to unlink the corresponding ._ file. On an HFS+ volume, clearly this is going to fail, as it doesn’t exist (incidentally on a UFS, Xsan, FAT, etc volume, it’d work just fine, but rsync is still broken).

A Patch

Due to my extreme generosity, or alternatively in an attempt to get away from some software with a name that rhymes with typo, I’ve whipped up a quick fix to this problem. It may not be the best way to fix it, but it works, and it even removes the resource fork from a file if the resource fork should be deleted, but not the file itself. How’s that for slick?

(Yeah, pasting it into a website isn’t all that slick, but I’m too lazy to upload it as a file right now, so tough luck. And WordPress seems to have stuck \ characters before the quote characters. They shouldn’t be there.)

--- rsync-2.6.3/syscall.c	2005-10-11 14:44:42.000000000 +1000
+++ rsync-2.6.3/syscall.c	2005-10-11 15:47:06.000000000 +1000
@@ -53,6 +53,31 @@
 {
 	if (dry_run) return 0;
 	RETURN_ERROR_IF_RO_OR_LO;
+#ifdef EA_SUPPORT
+	if (extended_attributes
+		&& !strncmp(basename(fname), "._", 2)) {
+		int retval;
+		retval = unlink(fname);
+		if (retval == -1 && errno == ENOENT) {
+			char ftemp[MAXPATHLEN+17];
+			if (snprintf(ftemp, MAXPATHLEN+17, "%s/%s/..namedfork/rsrc", 
+					dirname(fname), basename(fname)+2) >= MAXPATHLEN+17)
+			{
+				errno = ENOENT;
+				return -1;
+			}
+			fprintf(stderr, "%s", ftemp);
+			retval = truncate(ftemp, 0);
+			if (retval == -1 && errno == ENOENT) {
+				return 0;
+			} else {
+				return retval;
+			}
+		} else {
+			return retval;
+		}
+	}
+#endif
 	return unlink(fname);
 }
 

For reference the bug is Radar 4295233.