Bela Lugosi's Dead, Jim
[Recent Entries][Archive][Friends][User Info]
Below are the 20 most recent journal entries recorded in the "Richard Kettlewell" journal:[<< Previous 20 entries]
10:17 am
[Link] |
Docking Poll #1471524
Open to: All, detailed results viewable to: All, participants: 35The dock on a Mac should be...
Tags: geek, mac, nonsense, polls
|
02:54 pm
[Link] |
Stacks and better translucent windows
I recently upgraded to Snow Leopard.
( Cut for wide screenshots and Diego Maradona )
Tags: geek, mac
|
02:13 pm
[Link] |
Blue screen
I was trying to get some (any) kind of network filesystem access from my Mac to a Unix box. I didn't have much luck (which is another rant entirely) but I was amused by the “it's broken a PC” icon...

Tags: geek, mac, nonsense
|
07:15 pm
[Link] |
Stupid Apple
chymax$ ls -lL /usr/X11/lib/libXdamage.*
-rwxr-xr-x 1 root wheel 88496 2009-03-13 00:38 /usr/X11/lib/libXdamage.1.1.0.dylib
-rwxr-xr-x 1 root wheel 88496 2009-03-13 00:38 /usr/X11/lib/libXdamage.1.dylib
-rwxr-xr-x 1 root wheel 88496 2009-03-13 00:38 /usr/X11/lib/libXdamage.dylib
-rwxr-xr-x 1 root wheel 936 2007-09-24 05:39 /usr/X11/lib/libXdamage.la
chymax$ grep ^library_names /usr/X11/lib/libXdamage.la
library_names='libXdamage.1.dylib libXdamage.dylib libXdamage.1.0.0.dylib'
Tags: geek, leopard, mac
|
09:06 pm
[Link] |
Safari 4
I downloaded the Safari 4
beta.
The obvious visual change is that tabs now replace the title bar.
AFAIK this feature first appeared in Google Chrome. It seems a
sensible use of vertical space.
I have a complaint about Apple's implementation of the idea though:
when you have more than a few tabs (depending on the width of the
window), the first thing to disappear is the close button towards the
left. Fair enough, but when you hover over the tab (for instance to
select it) the close button reappears. Since until you're there
there's no visual indication you need to avoid that part of the title,
the result is lots of accidentally closed tabs. Worse, there appears
to be no undo close tab option.
In fact the closed tab will be the first thing you see in the
history page, so it's not that hard to retrieve it. But you lose any
state that you had in that page (unlike Firefox's undo close tab
option, which does preserve at least some of the state).
The top
sites page makes is effectively an adaptive bookmarks page,
showing thumbs of the dozen sites Safari thinks you visit most often.
It's initially populated with the NYT, Amazon, Apple, Wikipedia, CNET
and various others. Wikipedia presumably got there for free but I did
wonder if the others had to pay and if so how much. As you can see
from the linked screenshot it's already accumulated a few of the pages
I've visited recently.
The history
page uses Coverflow (something that's turning up increasingly
often in Apple software). Seems quite convenient and allowing visual
recognition of pages is nice.
As in earlier Safaris, text entry boxes (such as Livejournal's
update form) are resizable, a nice touch that I wish Firefox would
pick up.
The advertised "full page zoom" buttons don't exist, though there
are menu and keyboard versions. Zooming in randomly jumps around the
page, making it very inconvenient to actually use the feature.
Hovering over a link still doesn't reveal what the destination is,
unlike Firefox. It seems like a little thing but actually once you're
used to it, not knowing for sure where you're going next makes
browsing feel surprisingly uncomfortable.
It
actually uses more memory than Firefox (RSIZE is the amount of
real RAM used, VSIZE counts swap as well and is generally less
interesting). It does seem to use less CPU when idle (where "idle"
for a web browser means "running various bits of Javascript"), which
would lend a bit of plausibility to Apple's performance claims if it
weren't for the fact that visiting a page on Apple's own website took
around 30s to load (and then proceeded to lag way behind user input,
and SPOD some
of the time, when scrolling) where Firefox managed to produce it just
like that.
(I think it must be something about that page, since other pages
don't produce the same problem. But you'd think they'd test it
against its own website!)
Tags: geek, mac
|
03:56 pm
[Link] |
Emacs for Macs
Mac support for Emacs (or possibly the
other way round) has been a bit of an issue for a while.
The shipped /usr/bin/emacs only runs in a terminal,
lacking any kind of GUI support, which is OK for quick edits but
rather inferior for extended work.
Compile your own Emacs with X11 support (or use someone else's, e.g. Fink) and that works, but then
you're at the mercy of Apple's deranged X11, which gets on badly with
Spaces
and has very poor cut and paste integration with native
applications.
For a while there's been Aquamacs, which bills itself as a
Mac-friendly version of Emacs, but I never really got on all that well
with it.
A particular problem is that if you type anything while a selection
exists, the selection is replaced with what you type. This is Macish
enough but if you created the selection using the keyboard rather than
the mouse then you can't make the selection go away with the keyboard
- you have to use the mouse. The result ends up being a lot of
undoing, even after months of use.
It also doesn't tell you what size your window is when resizing and
creates new windows (frames, in Emacs's own terminology) with a size
matching the last one. So getting a window of a particular
size can be rather fiddly.)
Recently fanf mentioned the NextSTEP port of
Emacs (or OpenSTEP, if you prefer) which has now been merged into the
trunk of Emacs. NextSTEP's direct descendant is of course OS X, so
this is a Mac-native Emacs.
The source can be retrieved via CVS.
It built an Emacs.app without any trouble. It act much more like my
muscle-memory expects Emacs should (no more destructive and
un-dismissable selections), but also has concessions to the local OS -
for instance it supports native cut and paste using ⌘C, ⌘X, ⌘V
etc. Window size behavior is more sane and usable too.
Complaints so far:
- Trying to save a buffer that doesn't already have a filename
offers by default to save it somewhere in the guts of Emacs.app,
which isn't very useful.
- Mac-native means of entering “special” characters
don't seem to be available. C-X 8 RET works fine, with tab
completion over Unicode character names, but making ⌥⌘T behave as
normal would be nice.
These are pretty minor; overall it's a clear improvement over what
came before. Perhaps Apple can be persuaded to included it in future
releases (with a link from /usr/bin/emacs into the depths of
the application bundle)?
Tags: emacs, geek, mac
|
01:37 pm
[Link] |
Stupid Microsoft Further to the instructions here, I'd add that you will need to randomly re-install the new layout from time to time, as Windows randomly breaks or removes it without even telling you.
Tags: geek, leopard, mac, windows
|
08:38 pm
[Link] |
GTK+ OS X
I tried building the DisOrder GUI, Disobedience, against GTK+ OS X (i.e. native GTK+ support, no X11 required).

Having the menu bar in the window rather than in the normal OS X menu bar is rather weird, but presumably that's fixable. It doesn't produce an application bundle yet either; it might be worth waiting until the GTK+ libraries are more stable before attempting that. Drag and drop is the only thing I've found that doesn't work so far.
Tags: disorder, geek, mac
|
11:10 am
[Link] |
Stupid Apple
I used to have /usr/local be a symlink to /local, but after a recent update:
$ find /usr/local | xargs ls -ld
drwxr-xr-x 3 root wheel 102 2009-03-20 09:26 /usr/local
drwxr-xr-x 3 root wheel 102 2009-03-20 09:26 /usr/local/bin
-r-xr-xr-x 1 root wheel 43312 2009-03-10 22:30 /usr/local/bin/iTunesASUHelper
Tags: geek, leopard, mac
|
08:48 pm
[Link] | Is there a generally accepted name for the Mac's completely bizarre mouse focus policy? If you don't know: click to focus for the left mouse button but point to focus for the others.
Tags: geek, mac
|
08:48 pm
[Link] |
I don't think I should have to do this
#ifdef __APPLE__
# include <GLUT/glut.h>
#else
# include <GL/glut.h>
#endif
(#2 in a series)
Tags: geek, mac
|
07:05 pm
[Link] |
-dpi 96
How to change Apple X11's notion of display pixel size.
Summary:
- add -dpi 96 (or something) to defaultserverargs in /usr/X11R6/bin/startx
- restart X11
- xdpyinfo|grep resolution to check that it worked
You might want to do this if you find X11 programs choose stupidly small fonts.
Tags: geek, mac
|
09:30 pm
[Link] |
Boot Camp font question

This image raises two issues:
- Why does the Mac disk get an anti-aliased font and the Windows one a pixelated one?
- Just how many fonts does a boot loader actually need?
Tags: geek, leopard, mac, questions, windows
|
06:30 pm
[Link] |
Spaces again
A while ago I wrote that Spaces was rather a disaster. I'm pleased to say that in the latest version of Leopard, 10.5.3, it's considerably improved. The key is the ability to turn off this option:

I no longer find myself being dragged from space to space at the whim of the window manager. X11 integration seems ropier, but it's not exactly perfect even with a single desktop anyway, and having installed Aquamacs I'm no longer reliant on X11 for one of my most-used applications.
Tags: geek, leopard, mac
|
04:31 pm
[Link] |
More Leopard
I've enabled Time Machine. It took a few hours to back up 70GB or so to an external disk. It didn't back up the Windows XP partition; I'm not sure I approve but considering that as a separate machine and therefore organizing backups of some form separately is not something that actually bothers me that much.
Not much more to say about it at this point; it's rather in the nature of backups that you don't just enable them and know all you need to know...
Tags: geek, leopard, mac
|
03:34 pm
[Link] |
They've changed it AGAIN
=== modified file 'scripts/setup.in'
--- scripts/setup.in 2008-01-19 12:28:31 +0000
+++ scripts/setup.in 2008-03-29 15:24:01 +0000
@@ -220,32 +220,32 @@
case $os in
Mac )
# Apple don't seem to believe in creating a user as a discrete operation
- if dscl / -read /Groups/$group >/dev/null 2>&1; then
+ if dscl . -read /Groups/$group >/dev/null 2>&1; then
echo "$group group already exists"
else
echo "Creating $group group"
- gids=$(dscl / -list /Groups PrimaryGroupID|awk '{print $2}')
+ gids=$(dscl . -list /Groups PrimaryGroupID|awk '{print $2}')
gid=$(pick $gids)
echo "(picked gid $gid)"
(etc etc). Amusingly this means their own example is now broken.
Last batch of ranting about Apple's hopeless approach to user creation.
Tags: geek, leopard, mac
|
02:51 pm
[Link] |
Boot Camp
Further to my
remarks on Leopard one of the reasons for buying it was to add a
Windows partition to my Mac via Boot Camp.
Boot Camp comprises a partitioning tool, support for dual boot and
a collection of drivers (on the Leopard install disk) for running
Windows on Apple hardware. You need an Intel Mac and a sufficiently
recent copy of XP or Vista. In this version only 32-bit software is
supported even though I have a 64-bit CPU, but I hear that more recent
Macs are shipping with 64-bit capable Boot Camp. 64-bit operation
isn't particularly important for what I current want out of Windows
anyway (games and the odd bit of software development).
Partitioning was perfectly easy. On booting into the Windows XP
installer the keyboard didn't work initially; after I unplugged my USB
card reader and rebooted it was OK, however. I'm not sure if this is
Apple's bug or Microsoft's but it seems to be a common problem.
The network setup decided to apply the address I gave it to the
firewire port rather than either of the ethernet ports. I disabled
the firewire port (under windows) and the non-connected ethernet and
it was happier. (As with my Windows/Linux dual-boot system) I'd given
the Windows partition a different name and address to the MacOS
partition.
SHIFT 3 on my UK keyboard produces £, which is not what I wanted; I
type # much more often than £. Under Mac OS I was able to select a US
keyboard layout but Windows doesn't offer me a US Apple layout (and
the US layouts it does have have other keys in the wrong places).
Here's what I did to get around this:
- Install the keyboard layout creator from
http://www.microsoft.com/globaldev/tools/msklc.mspx and run it
- Load the Apple UK layout
- Change £ to # and vica versa, using CTRL+ALT+3 to type #
- Select Project->Properties and edit the name etc
- Select Project->Test Keyboard Layout to make sure it works
- Save the source file
- Selected Project->Build DLL and Setup Package
- Quit the layout creator
- Install the new layout package
- Go to Control Panel->Regional And Language Options->Languages
and make the new keyboard layout the default
Rather surpringly the choice of keyboard layout doesn't seem to be
reachable via Control Panel->Keyboard.
I installed the following things without any difficulty:
- PuTTY
- Firefox
- Windows updates (needed 2 restarts)
- IE7
- Starcraft and Brood War
- Rome: Total War
- Warcraft III
- Visual C++ 2008
- RealVNC
- DirectX SDK (March 2008)
Half Life said it didn't like my OS (it predates XP by some years)
and needed a patch, but after rather fruitlessly poking around the web
for the right thing (which used to be on Sierra's website but isn't
any more) I installed Opposing Force and it installed a patch and ran
OK anyway.

Tags: geek, leopard, mac, windows
|
10:18 pm
[Link] |
Leopard
The installation process was smooth enough. I had to restore my
user icon but I didn't notice anything else going missing. I had to
upgrade SSHKeyChain but it
needed upgrading anyway it turns out Leopard can manage without.
( First Impressions: mostly good, but Spaces is awful )
I'll be giving Boot
Camp a go in a bit.
Tags: geek, leopard, mac
|
11:13 am
[Link] |
I don't think I should have to do this
--- server/play.c 2008-03-03 22:56:22 +0000
+++ server/play.c 2008-03-09 11:10:46 +0000
@@ -389,8 +390,14 @@
/* np will be the pipe to disorder-normalize */
if(socketpair(PF_UNIX, SOCK_STREAM, 0, np) < 0)
fatal(errno, "error calling socketpair");
+ /* Beware of the Leopard! On OS X 10.5.x, the order of the shutdown
+ * calls here DOES MATTER. If you do the SHUT_WR first then the SHUT_RD
+ * fails iwth "Socket is not connected". I think this is a bug but
+ * provided implementors either don't care about the order or all agree
+ * about the order, choosing the reliable order is an adequate
+ * workaround. */
+ xshutdown(np[1], SHUT_RD); /* decoder writes to np[1] */
xshutdown(np[0], SHUT_WR); /* normalize reads from np[0] */
- xshutdown(np[1], SHUT_RD); /* decoder writes to np[1] */
blocking(np[0]);
blocking(np[1]);
/* Start disorder-normalize */
Tags: disorder, geek, leopard, mac
|
10:32 pm
[Link] |
Stupid Apple
You didn't want password changes to take effect immediately, did you?
( Transcript )
Having the default password be "" ain't exactly hot either.
(To summarize: if you want to mechanically create a user on a Mac then this week's tool is dscl. You have to fill out all the fields yourself rather than use a single tool which gets it all right for you and knows which API to use (like FreeBSD's pw for example or Linux's useradd). One of the fields you have to fill out is the password, and before you've done so the new user is wide open; moreover even when you do it takes some time to take effect. You can probably mitigate this by not setting a usable shell until the password is sorted, but sheesh.)
Updated July 2009: this bug doesn't exist in OS X 10.5.7. Good.
Tags: geek, mac
|
[<< Previous 20 entries] |