Wednesday, November 25, 2009

Slow X11 startup on new Snow leopard install

After installing xemacs form macosx ports I was finding it was taking several minutes to startup - looking closer I realised that X11 was taking the time not Xemacs itself.
In /var/log/system.log there were entries like:

Nov 25 14:01:29 lapc-br1-2 org.x.startx[366]: xauth: timeout in locking authority file /Users/ogs22/.serverauth.366
Nov 25 14:01:49 lapc-br1-2 org.x.startx[366]: xauth: timeout in locking authority file /Users/ogs22/.Xauthority

Checking the file permission on my home directory showed:

drwxr-xr-x 210 temp 502 7140 25 Nov 14:01 ogs22

temp being the user I created to transfer my files/settings using migration assistant, so a quick

sudo chown ogs22:ogs22 ogs22

and X11 starts in about 2 seconds now.

Thursday, November 12, 2009

Shakespeare Letter Frequency

17.8851% : space
9.0881% : e
6.7498% : t
6.3808% : o
5.9213% : a
5.1092% : i
5.0632% : s
4.9656% : n
4.8777% : h
4.7921% : r
3.4463% : l
3.0274% : d
2.6422% : u
2.2643% : m
1.9180% : y
1.8387% : w
1.7362% : c
1.7181% : ,
1.6475% : f
1.6063% : .
1.3916% : g
1.2293% : b
1.1645% : p
0.7681% : v
0.7281% : k
0.6476% : '
0.3584% : ;
0.2184% : ?
0.1840% : !
0.1635% : -
0.1042% : x
0.0945% : j
0.0746% : q
0.0432% : [
0.0430% : ]
0.0377% : :
0.0339% : z
0.0094% : "
0.0050% : 1
0.0034% : )
0.0034% : (
0.0026% : 2
0.0021% : 3
0.0018% : 4
0.0016% : 5
0.0014% : _
0.0012% : 6
0.0011% : 9
0.0009% : 0
0.0008% : 7
0.0007% : |
0.0007% : 8
0.0006% : <
0.0004% : &
0.0000% : }
0.0000% : `