Well, they certainly announce these things, don’t they. No trains to the Kingdom this weekend unless I was planning on getting an earlier, jammers one and then no guarantee that I was be able to get back to Dublin on Monday.
I’m just not in the mood to rearrange things at this stage.
Another view of my last.fm playlists
open -h(uuuh?)
On windows we have start for launching documents and applications. On gnome we have gnome-open which opens documents and applications. On the mac we have the ‘open’ command. Open -a launches the specified application (based on the app paths). Open on it’s own launches a document with the registered preferred application. Then there’s ‘open -h’.
% open -h unistd.h unistd.h? [0] cancel [1] all [2] /System/Library/Frameworks/Kernel.framework/Headers/libsa/unistd.h [3] /System/Library/Frameworks/Kernel.framework/Headers/sys/unistd.h [4] /usr/include/sys/unistd.h [5] /usr/include/unistd.h Which header(s) for "unistd.h"? 5
It opens up header files. I mean WTF?
paranoia got the best of me…
Having broken my iPod, I decided to change the root password from the default of ‘alpine’ to something more sensible. I logged in and changed the root password using the passwd command. More fool me, apparently as the springboard kept restarting on me.
I still had ssh access (and root login worked). I made sure that the user/group listings were set to 0 for the mobile user in both the passwd and master.passwd files. Then I made sure that all the entries in passwd had an asterisk for the password and the entry in the master.passwd file contained the output from perl -e ‘print crypt(“yournewpassword”, “/s”), “\n”‘. All is good again! I think…
Update: later, things were still not working properly so I restored and just manually put in the entry for the account rather than trying to convince it to work. Oh well, practice makes imperfect I suppose.
Fixing broken openssl access in perl on Leopard
Well as I got a replacement box, I suppose I should actually document how I got it working.
pop up a terminal window.
$ sudo -s
# cpan
…. answer the prompts ….
from the cpan> prompt issue an install Crypt::SSLeay (it will probably break).
If it breaks, then do an:
cpan> look Crypt::SSLeay
… output elided …
# perl Makefile.PL
… answer questions …
# make
# make install
# lwp-request -x https://mail.google.com/mail/
… output elided, but it does contain the content of the secure google home page …
Plaxo has a poor calendar representation
Now this is quite telling. I have calendar appointments stored on plaxo with start dates outside of the 32bit unix representation of a date (i.e. before 1970. Gosh, what a surprise that I would have a recurring appointment that started before 1970, now who’s birthday could that be?).
It’s probably a limitation of the javascript underlying what they’re using. It seems to screw up birthday entries as well (off by one, for some reason?)
So apparently ‘mobile internet’ means wap then
Deceitful little barstewards. Turns out that the 500mb mobile internet add on does not support anything other than web pages. So no mail over it. This is a simple perl script that checks if the passed in input data is binary or not by checking if, within the first 8k the number of non-ascii characters exceeds the number of non-ascii characters by a factor of 2. It’s fundamental in that it doesn’t check for unicode files, so is probably broken in that case. I like the general way of installing applications on the apple. Drag program into Applications folder, and you’re done! One of my co-workers had to say goodbye to his father today. He suffered from Alzheimers, which is probably one of the worst things that anyone can get. To progressively lose all those things that hold us together as an individual is probably one of the worst things that can happen.
A**holes
What’s the point of having an advanced ‘data capable’ phone when all it does is access web pages.
What a waste of money.
Is this a binary file or not???
#!/usr/bin/perl -w
use strict;
my $buffer;
my $nread;
$nread = sysread(STDIN, $buffer, 8192);
my $nchars = 0;
my $nbinchars = 0;
foreach (split(/ */, $buffer)) {
my $value = ord;
if ($value < 32 || $value >= 127) {
$nbinchars++;
} else {
$nchars++;
}
}
exit ($nbinchars * 2 > $nchars);
Installers
The only problem comes in when you actually have to use installers, as they want to put things in various locations in system-protected locations. 9 times out of 10 they don’t come with an uninstaller, so removing them can be a bit of a difficult task, especially if they spew themselves everywhere.
Another issue with the mac installers is that they’re shell scripts. People keep forgetting that the mac file system hierarchy contains loads of spaces. Don’t forget to trap filenames with quote marks “$foo”! It’s broken quite a few systems as a result of forgetting this fact.I am, to some extent glad
My father passed away less than a year ago, but he was as vital, as intelligent and as cogent as he ever was. We never expected him to pass so suddenly. If I had to see him disintegrate in the way that Stephen had, then I don’t think I could have taken it.
Make the most of your family while you have them. Even if they’re mad, causing problems, or simply cranky, they’re your family.