, Sunday, 29 November 2009 10:04 PM (Category: Gadgets
This Christmas, GPS navigators are the big thing. They were one of the hottest items at the Black Friday sales.
I've been using an older Garmin Nuvi 200W for a while, and it is an amazing thing. I don't get lost any more. I don't get angry. I don't have fights with Anne about directions. I get to places on time. I see more of the countryside. I love GPS navigators. I would hate to have to do without again.
What's the difference between your wife and a GPS navigator?
Your wife says "Turn right at this corner." as you go past the corner, too late to do anything about it.
The GPS navigator says "In 200 feet, turn right."
This Black Friday, I bought Anne a TomTom ONE 140 navigator. from NewEgg.com. It's not the latest, it's not the greatest, but it does the job and it was $60. Anne will be happy, and I will be happy and all is well.
Until the big solar flares start coming and knock out all the GPS satellites, and we all start getting lost.
, Saturday, 28 November 2009 7:04 PM (Category: Hardware
Friend of a co-worker has a Windows computer, and it's burdened with spyware and malware and it's slow and causing problems. She decides to get the local computer shop to look at it. The husband drops it off in the morning, computer guy looks at it and decides he'll take the easy way out. He phones the husband "I want to wipe the hard disk and install from fresh. That okay with you?" Husband says "Sure". Guy gets to work.
Husband picks it up after work, pays $100. Takes it home and gives it to the wife. She starts it up and starts to work on it and suddenly "Where's my photos?" and then follows three days of crying. Five years of family photos are gone. Birth photos, growing up photos of their son, Christmas, Halloween, vacations. All gone.
They phoned the computer guy. Not his problem, he did ask the husband if it was okay. Husband shouldn't have said "Yes, it's okay."
"Can't they get the photos back from their backups?"
Backups. You can't expect to keep family mementos on a fragile hard disk that is likely to die at any time, or be accidentally erased. You have to make backups. You have to take responsibility for knowing that your data is fragile and can be lost, you have to go and buy some external hard disk or make arrangements to have your data saved into The Cloud, and set it up to backup regularly. On the Mac, it's a little bit easier, but you still have to make the decision to buy an external hard disk and connect it. The Mac will recognise it's there and ask if you want to use it for backups, but you have to kick it off. And you can get MobileMe and back up to The Apple Cloud. Unless you're like me and have 100 gig of photos.
Backups are important if you want to keep your photos and documents and tax records safe. It's your responsibility to know about it, and to do something about it.
(I did have a look at their computer just to see if the photos had been saved anywhere, but no, they were gone forever.)
On the other hand, is there any value to saving family photos forever? We all take far too many photos, and most of them are junk. And when we are gone, they are even more worthless.
, Saturday, 28 November 2009 4:48 PM (Category: Apple
I recently advised a rowing friend to buy a Mac when he asked me what computer to buy. I get asked this question a lot, and usually I can reply "Buy a Mac" because I know what they use a computer for and a Mac would suit them very well. Almost always, they ignore me and buy the cheapest Windows computer they can and then have all sorts of problems with it.
But no, Joe went and bought a Mac. The Apple store took all the data on his Windows machine and transferred it to his new iMac, and they set up his GMail account for him. He took it home and he's been using it. But he has extra needs.
He had a label maker program on his PC and it's getting close to Christmas and he needs the data transferred to the Mac. As I had advised him to get a Mac, it was now my responsibility to get it working for him.
His seven-year old PC was still running, so I started the label maker program and opened his address database. Nothing. It was corrupt. Ah, this was the reason why he wanted a new computer. His database had been appearing and disappearing for a few years. I wasn't quite sure what this meant, but he has been having problems. Did he have a backup? He had some 3.5" floppy disk backups from 2002. And an external hard disk that backed up files automatically. Unfortunately, it didn't do anything smart with backups, it just copied the current file to the hard disk, overwriting previous versions. The backup database file was corrupt too.
I spent an hour searching his floppy disks, his hard disk, and his backup disk. In the end I found a data file without the index file on a throwaway directory on the backup hard disk. It was dated 2007, but it was still better than nothing. I copied that file to a temp directory, added an index file from the corrupt database, and tried to open it with the labelmaker program. It barfed a little, but I think it rebuilt the index, because after a while, the data became available. So I exported it, and found the options for CSV (comma separated values) curiously worded. The file exported, I transferred it to the Mac and then wondered what to do.
We used Apple's list of software, and we Googled, and we looked for what we could find. We eventually decided to buy a label maker program from iWinSoft. This appeared to be all over the Internet, and the descriptions were deliciously opaque English. But it appeared as if it would do the job, and it cost $35. Joe bought it, and we installed it, and it looked okay. Bizarrely, the layout and the wording used in the program brought me to believe that the old label maker program on Windows had mutated many years later to this Macintosh program. I swear it's the same program many years later.
Anyway, I imported the file from the Windows version and we looked at the data. We had twice as many records as we should have, and every second record was blank. I knew what that was. The end-of-line problem. I dropped to the command line, and edited the import file with Vim and yes, it said "DOS format". That's easy to fix ":set ff=unix" and save. I loaded it in again to the label maker and this time it worked much better. The right number of records loaded. But some records had some parts of the street name missing, and an extra field that pushed the city down. I had a close look at the raw data and this was happening to fields that had a comma in the field. This is really stupid. The fields were saved with quotes around them and separated by commas. This is done so you can have commas inside the field. This is standard data transfer. I've worked with this sort of data for years, converting data for acquisitions. It isn't difficult to get it right. You really have to do stupid stuff to get it wrong. But it was wrong. And there were too many to ignore.
So I whipped up a little Perl script that read through the file, extracted the fields, removed commas from them and then wrote them out again in CSV format. I loaded it in again, and this time it worked perfectly. Success. Joe was really happy. He was still missing 100 addresses between 2007 and now, but he had 700 addresses to start from. That's better than finding and typing 800 addresses from scratch.
One thing I do like about the Mac, is that when the GUI doesn't work, you can drop down to the command line and get your hands dirty with commands and shell scripts and Perl and Python. And it's a real Unix down there with all the tools you need.
I was ready to leave, but no, there was one more task. The Apple store had not been able to set up his main email account. Could I do it? I've had a lot of trouble using Apple's Mail program, but I had to give it a go. It took an hour of investigation and experimentation to find the inbound and outbound mail servers and get them to work. Then we had to fiddle with it to make it all work correctly with the From address. In the end, it was working perfectly.
When I finally left four hours later, I had to wonder how anyone gets on the Internet today. Sometimes it's a real struggle, and that's even a struggle for me. The world has moved on and Microsoft and Apple have started using stupid and cutesy names for things to try and make it possible for the average Joe and Jane to get online and use their computer, and it doesn't help them and it confuses the hell out of me about what they mean. Jargon might be unintelligible for Joe and Jane, but it has a precise meaning for people who are familiar with it. Skip the jargon and you confuse everyone.
But this session ended well and everyone was happy. Except for Anne who did not know where I was and was wondering why I was 5 hours late back from rowing.
, Saturday, 28 November 2009 4:01 PM (Category: Linux
I've just spent some time turning LPs into AIFF files on my Mac laptop. I transferred the files to my Linux box so I could convert to WAV and split them into tracks for conversion to MP3. I usually use Audacity to do the conversion and splitting, and went to use it. Unfortunately, I had upgraded to Slackware 13.0 since the last time I used Audacity. Oh well, I just have to put Audacity on again.
I went to the Audacity package I had for Slackware 12.2 and installed it, but no, some libraries were missing. Time to get a new version of Audacity. I went to linuxpackages.net to get the latest package. This is an unofficial site that stores packages for Slackware. Unfortunately, it appears to be defunct. Nothing there.
Oh well, why don't I go to the official Slackware package site and see if they have Audacity. That would be http://packages.slackware.it. Oh dear, they say "The old package browser was broken -- instead of trying to fix it I am creating a new one from scratch. I’ll be using the Django framework. I’m also looking into Solr and Haystack to see if they can be of some use here. It’s not going to take a lot of time and I will publish the working portions of the Package Browser as I finish and test them. Also, we’ll have some other thing to announce in a few days, so stay tuned ;-)" I don't know how long that's been there, but I can't get access to any packages right now.
I use Google and come up with a SlackBuild site and that gives me some confusion. Ah, they don't supply packages, they supply scripts to make packages from source? Or something? Anyway, I get the list of Audacity dependencies I need.
Time to do it from scratch and compile and install Audacity and its dependencies.
I get the dependences - libsndfile and wxWidgets and compile and install them. Then I configure Audacity. It complains about wxWidgets and some other wx thing. I uninstall wxWidgets, download wxAll and compile and install it. Back to Audacity and I get the same complaint. What the hell? I read the message again. Ah, I have installed version 1.6 of wxAll and Audacity is a bit behind and can't handle 1.6, it has to be 1.4. Dang, the wx site doesn't have 1.4 any more, but old versions are available on sourceforge, so I get it, back out the new version and compile and install the older version. Back to Audacity and this time configure passes with flying colours. Now to make. And WTF? Compilation errors everywhere. It will not compile. Temper tantrum time. I hate this shit. I give up.
So I installed Audacity on my MacBook. Well, I downloaded it. Then I wondered how to install it. There were no instructions for the Mac and it wasn't obvious. Hmm, create a new directory under Applications called Audacity and copy all the files in. That looks okay. I ran it. It crashed. I ran it several more times and it continued to crash. I was ready to do damage to something, but walked away, did something else, then came back. I ran it again and it worked. Why? I don't know.
I am sick of all this crap.
, Tuesday, 10 November 2009 10:15 PM (Category: Programming
I went to my first Ruby Users Group meeting tonight. It was a detailed intro overview for new folk. First half summarised the language, the second half showed pair programming and building a web app using Ruby On Rails. The Ruby language part interested me most. I've dabbled with it, and now I'll put more effort into it. Some of the constructs are extremely powerful. I'll be going to these meetings once a month from now on.
And I found out that they have started an Objective-C users group, and they meet once a month too. I'll join that too.
Why is it that Ruby developers are also Objective-C developers? Do Ruby and iPhones go together?