Archive for the 'computers' Category

Utility Companies suck

I spent most of the afternoon listening to the UPS beeping, waiting a while, shutting down the computers, waiting for the power to come back on, powering everything up, and repeating. Manitoba Hydro seems to be like its counterparts all over North America, and is not able to deliver electricity reliably to consumers. Why? In the time we spent in Japan, power went out a couple of times, due to earthquakes and typhoons, never for more then a few minutes. I think that in Japan the power companies inspect power lines regularly and remove branches from trees that are encroaching, and ensure that everything is ship-shape. I guess that here, there is no inspection done, failure is expected. Consumers here seem to think that it is normal for power to go out. No blame is assigned.

Similarly, last week, MTS had an outage for their DSL in my suburb, a phone call to them resulted in an estimate of “between 30 minutes and a few hours” before it was fixed. The person on the other end of the phone exhibited no surprise and expressed no apology for the outage. I don’t know what I expected, I’m only paying through the nose for my DSL line!

This attitude that outages are “normal” from both the utilitiy companies and consumers is depressing. :(

Home Networking 101

I decided it was time to clean up my home network, so I blew the dust off a 12 year old compaq, and downloadedOpenBSD 4.1, wrote it to a CD, and installed it, along with a couple of NICs. All was good, I then looked at the patches that I would have to install and realized that I would have to compile them. This made me a little sad, as there was no way the old compaq could manage it.

So, with the wonders of NFS, I mounted /usr/src and /usr/obj from my linux machine to the openbsd one, and I downloaded the sources. I then downloaded the trial version of VMware Fusion and intstalled it on my macbook. I started VMware and installed OpenBSD on it. You know where I am going with this, right? Yep, I NFS mounted /usr/src and /usr/obj in the VMware image on my macbook and built the updates there, when it was all done, I installed on the compaq. In case you’re wondering why I did not simply install VMware server on the linux machine, I’ll tell you. The macbook has 4 times the RAM and twice as many cores as the linux machine, it is only deficient in disk space (which the linux box has in abundance).

Which gave me an OpenBSD firewall and router. Yay! Of course, that was not enough. I have used dyndns.org for a while, and have been happy enough with it. I also subscribe to a lot of mailing lists, and finally, this year, decided to use fetchmail, dovecot and a custom Python script to deal with the mailing list subscriptions.

So, all mailing lists (and stuff marked as possible spam) ends up going through fetchmail and onto my linux box, where it gets sorted into IMAP mailboxes. All very neat and tidy, but it does mean that, in order to check my mailing list mail, I have to connect to the linux machine on port 143. This means setting up ssh tunnels when I am not at home. It is not hard, but is a bit of a pain just to check list email.

Between that, and IPv6 being in the news a little lately, I decided to get an IPv6 subnet. I went to go6.net and got a /48 subnet. I installed their client on the OpenBSD router, and viola, it “just worked”, IPv6 autoconf gave all the machines behind the router IPv addresses. Yay 2!

That’s not all! Can’t have IPv6 without reverse DNS working, right? So, a quick google turned up freedns.afraid.org, and I used their services to add AAAA records for a number of my computers! Now, I can reach individual machines while away from home without having to use ssh tunnels! Or can I? Well, no, actually, because I set the OpenBSD Packet Filter to block most incoming traffic, including IPv6. Oh well :-)

Then, being a little obsessed, I decided to make everthing on the local network resolvable. So I started named, and made a zone file for the internal network, so now, as well as the entries in /etc/host, I can rely on my nameserver to resolve names of the half dozen or so comupters running in the house… Of course, I could remember the IP addresses for them anyway, so you might wonder what the point is.

Having done all that, I also wonder what the point is. There was not really a necessity to do any of it. The $20 netgear router was working okay. As far as my wife can tell the internal network has not changed (she never has, and probably never will, consciously connect from one internal machine to another, so the whole nameserver thing is pretty meaningless for her), and access to the “internet” is the same as it ever was.

It looks like I set up a pretty home network, but, perhaps wasted my time :) Oh, well, I learned stuff, right?

WWDC

WWDC is Apple’s developer conference. In recent years it has been held at the Moscone center in San Francisco. It is being held there this year also, from June 11th to the 15th.

I have been to it twice before, in 2004 and last year. This year, I was lucky enough to again recieve an invitation to the event, so will be in San Francisco from June 10th to the 16th. The invitation includes a conference pass, but no hotels or flights. Luckily again, this year, having moved to Canada, and having flown a lot in recent years, I can get to San Francisco on airline points (well, ok, I have to buy $69 worth of points and pay $75 in taxes etc.). So really, I only have to cover hotels and expenses, which shouldn’t be too much.

I am looking forward to meeting Ben Byer, Ben Reed and others that I have only ever communicated with electronically, and, of course, meeting others that I have met at previous WWDCs.

Modular X.org for Mac OS X

Way back in December 2005, a message was posted to Apple’s darwin-dev list asking for help porting x.org 7.x to Mac OS X. I was on holidays at the time and, having some free time, albeit temporarily, volunteered.

By June 2006, we had a working copy, working in the sense that it all built and started up. not working in the sense of actually, well, working. I could launch an xterm, and it would start with completely black windows and, if I recall correctly, no working mouse or keyboard. It was kind of hard to keep up with a fast-develping upstream source when I could only devote a day or two at odd intervals. The source would refuse to build even though that module had built for me the month before and so on. It was a pain.

Kevin Van Vechten (Apple BSD Group manager) put Ben Byer on the job last fall and things really started moving. Apple fixed the major issues, the black windows, non-functional mice and keyboards, even the terrible startup times and then pushed the source changes upstream. The announcement was greeted with great fanfare and celebration. Okay, there seems to have been no reaction whatever, a tad disappointing. :(

There are some questions of library compatibility, the newer x.org libraries have a higher compatibility_version than the older Apple X11 libraries. This means that programs linked to the older libraries can still run with the newer ones, but that programs linked to the new libraries can not run if you remove the new X and reinstall Apple’s X11 from tiger. Should not be a problem for most people. If you go against all reccommendations and have DYLD_* environment variables set, you’re on your own. Anyway the issue got me to hack this up last night. A library version number editor. It was a fun hack, I strongly advise that you never use it though, there is a better way!

Wordpress

Now using wordpress.

New Drive, New sourceforge project

So I got a new disk drive, it is a hitachi 40 Gb Model HTS548040M9AT00. It has
a problem. I thought "This drive is making funny noises", so I
took it out and put it back in again, thinking that I had screwed up the
installation. But it still made "funny" noises. So I looked for a
S.M.A.R.T. tool for Mac OS X that would tell me in advance that the drive would
fail. I found SMARTReporter
but it was not quite what I wanted.

So I looked around for info. google was
very helpful, as usual and provided a draft spec for the ATA/ATAPI-6 spec.
Hitachi was also good with their drive spec sheet. So I wrote Maxwell to check out the drive.

All is well, you say, well not exactly. The drive says it has a Load/Unload
Cycle Count of 16251, and that it is guaranteed to last at least 300,000 load/
unload cycles… lets see, it has been installed for 20 days, that means that
it will exceed 300,000 load/unload cycles in about a year… Hmm..

Update: Just released maxwell-0.5.1, really need to try the install target
in future.

But I only just got a new HD

It is making those noises again, the little whirr, the clunk, the scrape. I hate
the darn noise, but I am getting quite used to it. The drive in this powerbook
is the third one it has had. It seems to eat hard drives at a rate of one a year :(