Older blog entries for berend (starting at number 332)

6 Jan 2009 (updated 6 Jan 2009 at 18:33 UTC) »

Bought a Navman F20 Europe in the Netherlands for just 99 Euros! I think these units went close to 300 EUROs two years ago. Probably it was so cheap because the product line is discontinued and the maps are from 2006. I'm probably going to buy a map update, which would be 50 EUR, so that means that for 150 EUR I have a fully up-to-date unit, still cheaper than the cheapest TomTom I've seen.

As there is a lot of bad information out there, which already has cost me 22 EUR, here some information for hackers.

You don't need to a buy a USB connectivity pack. The USB cable of any digital camera works fine. If you connect it through the USB cable, the unit will possibly even charge, but haven't tested that yet.

After you connect it, let Windows install the driver (yes, you need Windooze for this), else Service Pack 2 won't find the unit. Windows will install some Navman driver. You can now download, install and run the service pack update.

As I installed Service Pack 1 first, inadvertedly, it might be that this was the reason the navman driver was already in my system. Anyway, if you run Service Pack 2 it will update your system and possibly update the driver.

Perhaps if you didn't run the service pack before connecting the device, things might work a bit more smoothly, but in case you confused the order, just make sure to install the navman driver for the device, and then run the update.

There doesn't seem to be a way to unplug the device, so I just pulled the cable. After turning on he unit, the software was indeed updated.

UPDATE: yes, unit charges when connected to USB cable.

Best programming quote of 2008:

Programming is where enthusiasm meets reality.

What Makes the History of Software Hard by Michael S. Mahoney, IEEE Annals of the History of Computer, Jul/Sep 2008.

It's actually unbelievable. Europe is in melt-down mode, and the newspapers and news websites hardly mention it at all. Iceland nationalised its banks, Germany is talking about doing it shortly, England has almost done it. And the small countries like The Netherlands already nationalised one of their banks. Why o where are the blogs that can give us the real news from Europe?

As we will now discover if Friedman (and his follower Bernanke) is right, or Mises, it's interesting to look at the plan that could have saved the US, but no one was interested. McCain wasn't because he didn't know anything about the economy, and Obama wasn't interested, because this is the best chance ever for socialism. Just look at Europe where the countries are sweeping up their banks. It'll take a few weeks before the countries themselves fall over.

But back to the plan that could have been:

The solution to the trust issues in our financial system is elegant and it will work.

  1. Force all off-balance sheet "assets" back onto the balance sheet, and force the valuation models and identification of individual assets out of Level 3 and into 10Qs and 10Ks. Enact this requirement beginning with the 3Q 2008 reporting period which begins next month. Total taxpayer cost: $0.00
  2. Force all OTC derivatives onto a regulated exchange similar to that used by listed options in the equity markets. This permanently defuses the derivatives time bomb. Give market participants 90 days to get this done; any that are not listed in 90 days are declared void; let the participants sue each other if they can't prove capital adequacy. Total taxpayer cost: $0.00
  3. Force leverage by all institutions to no more than 12:1. The SEC intentionally dropped broker/dealer leverage limits in 2004; prior to that date 12:1 was the limit. Every firm that has failed had double or more the leverage of that former 12:1 limit. Enact this with a six month time limit and require 1/6th of the excess taken down monthly. Total taxpayer cost: $0.00

Replaced my FreeBSD server's boot disk after 9.5 years of service. Was just a 4 GB disk. I suppose in 1999 that was still seen as a reasonable size. Bought 1 160GB one for just $80 NZD. Next upgrade will probably be to replace the Pentium II motherboard with the Pentium III motherboard of one of the PC's the kids still use. And replace that one with a Quad AMD board or so.

I've been working for a while on a review of A King's Bible, a book my Michael L. Drake, principal of Carey College. Quite a scary book, as it has no qualms in claiming utter nonsense and untruths as facts.

A while ago I stumbled upon the article A contradiction for Each of the 12 Apostles. I wrote a response, and asked if Joe E. Holman could link to my article. He said he wouldn't. And he would give a response, but never did. So I assume he couldn't answer this article.

There are those days I feel I can better retire as a programmer. Or really hate the tools I'm using. Default parameters are deeply, deeply evil. Got recently hit by two Drupal functions that have completely flawed defaults: file_move and file_scan_directory.

Both take deeply flawed default parameters. The scan directory does a recursive scan, file move creates a new file if a file with the same name already exists. This is not apparent from the names, and you don't have to pass in the parameters to make this clear. If you're not deeply aware of this, you might get hit by a bus, like I was. I scanned a directory for new files, once scanned, I moved them to a subdirectory. But the subdirectory was scanned as well of course. So I ended up in a situation where I created more and more files, each with their own nice Drupal generated extension. Which caused some very serious problems for a customer.

I'm so glad I can program in Eiffel the rest of the time. PHP is a nice language, but it is extremely open for very costly mistakes.

Still busy with my new HP CM1015. I tried to get the scanner to work by hacking the FreeBSD uscanner.ko module to recognise it. For this spare time kernel hacker this luckily involved no more than adding a USB id. But that didn't really work. Even when hacking the SANE hplj1005 driver to also recognise the ID.

But I finally found out that the HPLIP project completely supports my printer, so that includes scanning. So after "portinstall hplip" I hoped things would work. But it was a bit more difficult than that I found out. For FreeBSD you have to disable the ultp module. So recompile the kernel.

And this time hp-info found my printer:

$ hp-info


HP Linux Imaging and Printing System (ver. 2.8.2) Device Information Utility ver. 3.4

Copyright (c) 2001-7 Hewlett-Packard Development Company, LP This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to distribute it under certain conditions. See COPYING file for more details.

Using device: hp:/usb/HP_Color_LaserJet_CM1015?serial=00CNBY69BGD8

hp:/usb/HP_Color_LaserJet_CM1015?serial=00CNBY69BGD8

Device Parameters (dynamic data): Parameter Value(s)

I deleted all the previous CUPS printers I had setup and started to add HPLIP printers. The nice thing about HPLIP is that the printer is already listed in the drop down box. You could also upload a .ppd file which I did. I uploaded the .pdd file that came with the hplip distribution, which was /usr/local/share/ppd/HP/HP_Color_LaserJet_CM1015-ps.ppd in my case. It turned out to be the same one I used previously.

OK, printer working great. Pushing stuff through to my samba network for my Windows machines was just running cupsaddsmb as I still had everything setup for that Now the scanner.

sane-find-scanner immediately found my scanner. But scanimage -L tells me there's no scanner. I didn't have hpaio in my dll.conf, but adding that didn't help. So still stuck. I now have code that should work, but doesn't. Might be a FreeBSD problem or not. Too bad. It seems the state of printing and scanning on Linux is pretty good with HP printers, so maybe I should check if it works on Linux.

5 Jun 2008 (updated 5 Jun 2008 at 21:43 UTC) »

Bought a new printer this week, the HP CM1015. My 15 year old HP LaserJet 4MP was still working fine, but getting a bit slow and doesn't handle larger jobs anymore. But my HP OfficeJet 1175c broke down, doesn't power up anymore. Probably easy to fix, if you know how.

Anyway, I now have a colour laserjet. Reported Drawbacks are to be that it is somewhat slow and doesn't have a document feeder. For me it is probably faster than what I had, and I used the OfficeJet document feeder only twice a year or so.

The biggest issue is that it had to work with FreeBSD. Although I found some references on the Internet, nothing really helped. But here some tips for people to get it going on FreeBSD 6.3. First install cups with "portinstall cups".

To access the admin page from a machine on the network, make sure cupsd.conf has a proper Listen entry.

Lastly, I had to add a "Allow From 192.168.1." entry to all <Location> sections, so I could configure cups from my local machine.

Adding the printer wasn't too hard. I installed two versions, the default Color Laserjet Series PCL6, and a Postscript version using a custom PPD I found on the internet. Output seems to be the same, but it seems the PPD has better defaults. The CUPS PCL driver for example defaults to 300 dpi while this is a 600 dpi printer.

Getting it to print required some modifications. It's a USB printer, so I had to set the permissions on /dev/ultp:

chgrp cups /dev/ulpt0
chmod g+w /dev/ulpt0

Restart the cupsd daemon, and I could at least print a test page.

After that I installed two more printers, using the same drivers, but this time enabled the black and white options. The PCL didn't turn off the B&W, while the PPD driver did indeed print in B&W.

UPDATE: oops, that's wrong. Changing permissions doesn't work, because when the printer is turned off and turned on the device disappears with its permissions. The correct way to set the permissions is here.

Spend yesterday on a SEO course by our local search master Michael Brandon. Came away with tons of ideas and understanding. I knew many of the finer technical details, but just missed the forest. So spend most of today optimising the website of Tyndale Park Christian school, the school, the school of my kids to see if it works. The site ranked 39 for "Christian primary school" so see if we can do any better now. Not sure where we ranked for "Christian secondary school, but probably way at the bottom.

The site was created years ago, and we ranked pretty good then, but somehow we slipped, and I haven't paid a lot of attention to it. Ranking high has become a lot more difficult it seems. So let's see, really excited about my changes, so let's see what it does for us.

323 older entries...

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!