Archive for the ‘Technical’ Category

TapInvalid RSS feed

16 Jan 2006 13:36 by Rick

An RSS feed is an XML document with an implicit DTD. Unlike XHTML, this DTD doesn’t specify any named character entities so the only ones allowed are &, ', ", <, and >. This means that feed generators, like the one in WordPress and other blog & content management systems should convert any other character entities into numeric form before serving the feed document. WordPress 1.5, at least, doesn’t.

As a result, the feed received by the reader may generate a syntax error. In practice, most don’t seem to notice entities in the description text and pass them straight through for rendering but some, including Feedreader, choke if there are any in the title.

Conclusion—don’t use named entities in your blog titles.

TapDIY characters or Extending Unicode

15 Jan 2006 22:33 by Rick

There are a couple of problems I have with Unicode. First of all it can be very hard to find the character you want if it is out of the normal context. I am transcribing C17th documents and there are a few unusual characters that you need. “y” umlaut “ÿ” is one and a long “f” is another. The best match I have found scanning down all the alphabet groups is ƒ, a florin symbol.

The second problem that even though there are thousands of characters (glyphs) sometimes the one you want is not there. I need an “m” with a tilde over and “p” with a line through and, as far as I can tell, these don’t exist. There is, however, a range of what are called non-spacing characters which allow you to modify the preceding character, much as we used to use backspace in the old Teletype days. So “m” tilde can be created with “m” followed by ̃ to give “m̃” and “p” line-through can be created with “p” followed by ̱ (a low macron) to give “p̱”. Neither is perfect but it is the best that I seem to be able to do.

An example of what can be done can be seen on the first page of Sufferings of the Quakers 1655–86. The remaining pages will be finished off soon.

(late note: Many apologies folks, but this only seems to work in Firefox, IE6 users get a little box after each character. Perhaps IE7 will be better 🙂

TapLithium-Ion batteries

10 Jan 2006 09:39 by Rick

These are the sort of rechargable batteries found in laptops, power tools and many cameras and mobile phones. They have different characteristics to the well known Nickel-Cadmium (NiCad) rechargable and need to be handled differently. The information for this post comes from Battery University.

  • They only have a life of about 300-500 discharge/recharge cycles so expect to have to replace them at some time. In normal use this will be 2 to 3 years or longer for low current applications.
  • Unlike NiCad, the battery prefers partial rather than full discharges.
  • However, batteries with internal calibration gauges, such as those in laptops, do need to be recalibrated occasionally so that the gauge knows the actual capacity. They should be discharged to the cut out point on the equipment about once in 30 times (and recharged immediately so they don’t drop below this base).
  • For storage, a half charge is better than a full one (and keep it cool).
  • Check the manual, but it is often better to remove the battery from a laptop if running from a reliable mains supply. The worst scenario for a Li-ion battery is fully charged and hot, a typical situation for a mains powered laptop.
  • Overcharging is not a problem as they cut out when full.
  • They have a limited shelf life even if not in use, so check dates of manufacture and don’t stock up in advance of requirements.
  • Beware of counterfeits—some without adequate protection circuits have been known to explode. In fact some branded ones have had problems as well.

TapHandy tips for Laguna owners (2)

7 Jan 2006 20:39 by Rick

Battery woes. In the country you are supposed to leave the parking lights on in the dark, but if the battery is old then it will be flat by the morning.

  • 5. If you can’t get in via the key card electric door locks either because the battery in the key card is flat or the main car battery, then there is the emergency key which the salesman told you about. He also told you that the key hole is in the passenger side door handle. It is not that easy however. There is a hole the right size but the key doesn’t go right in nor does it do anything. It is, in fact, only a slot to enable you to prise the whole of the bezel off—the service department says that they often break when you do this, requiring a new one, but it can be done with care pulling the plastic part towards you with the key firmly in the slot. When removed, a full size standard door lock is underneath. If the main car battery is flat, as in my case, you still can’t open the other doors or the boot (where the jump leads are) but you can release the bonnet catch by leaning across. If you have to get in the boot then you will need to climb over the front seats and try to release the fold down rear seat and get in that way.
  • 6. When the main battery dies or is removed, the radio code is lost. For maintenance, I am told there is a way to preserve it (does anyone know how?) but if it is unplanned then you need to reenter it. You did write it down somewhere didn’t you! Switch on the radio and then select preset 1. Press preset 1 a further “n” times to increment the first digit to the right value. Repeat with presets 2, 3 and 4. The display now shows the correct code number. Press the button on the underside of the steering column control (the one that selects preset/list/manual). This sets the code in the system. There may be a control on the radio to do this as well.
  • 7. When removing the battery it is best not to leave the key card inserted. It can sometimes lock all the doors either as it (the battery) is removed or when it is replaced.

    TapFavourite Firefox Extensions (2)

    4 Jan 2006 09:12 by Rick

    This week—FoxClocks

    It displays the time for different world zones down on the status bar or on any tool bar. This is not really related to browser function but…

    The browser is always there.

    It takes up no space.

    I keep Vancouver, Adelaide and Perth but it is highly customisable for zone, style, location and will apparently integrate with Google Earth.

    TapHandy tips for Laguna owners

    28 Dec 2005 16:34 by Rick

    The 2000+ Renault Laguna (the one with no keyholes) has a few quirks which are not in the owners manual (if we still had it). These are based on experience and may be mistaken but also may also apply to other cars, especially other Renault models.

    1. When the card key battery runs low it fails to operate the door mechanism. Changing the battery appears not to make any difference but the problem is that it has lost the code. Get into the car using the other key then use the faulty key (with a new battery) to start the car. This re-instates the code.
    2. If the dashboard goes haywire e.g. all lights stuck on, then it can be reset/tested by removing the card key; hold down the trip computer button on the end of the stick and while it is pressed, put the key back in. This will then reset the computer and go through a test sequence. Remove the key to stop it.
    3. The tyre pressure warning system is sensitive to the cold, especially sub zero temperatures. The symptoms are that all four tyres show flat and the warning light flashes. This will clear itself after about a half mile when the tyres warm up. I had it fixed once under warantee (no idea what they did) but it still does it most winters.
    4. A poor contact in the electric sunroof switch can cause it to open at unexpected times. The switch is expensive (c£100) so disconnect it by pulling out the plug (the switch panel just pops off). Fortunately the default position for the roof is closed.

    TapCryptogram

    19 Dec 2005 11:42 by Rick

    I have been on holiday for a week. But no relaxing in the sun, mostly at home and doing the Christmas shopping etc. I ought to have had more time to blog but didn’t for some reason. What it did mean was that I was out of touch with my security news sources which I monitor from the office and so missed Bruce Schneier’s latest Cryptogram Newsletter.

    This newsletter is a great read and this month’s is particularly insightful. I commend to you the articles “Sony’s DRM Rootkit: The Real Story”, “Identity theft over reported” and “Australian Minister’s Sensible Comments on Airline Security Sparks Outcry”

    Now I must remember to add his blog to my RSS feed rather than wait for the monthly email newsletter—that is so yesterday’s technology.

    TapFavourite Firefox Extensions (1)

    12 Dec 2005 17:49 by Rick

    Classic topic for a blog post when one is feeling barren.

    This week—IEView

    There are still a few pages that don’t work well (or at all) with Firefox. This extension enables the evil browser to take over. You need at least v1.2.7 for Firefox 1.5.

    TapHTML Tidy

    8 Dec 2005 23:30 by Rick

    Profuse apologies for all who were wondering what happened to the win32 build. I have now got around to updating it on my Tidy page. It has been nearly a year so I must do it more frequently next year. It is one of those tools that you just use and forget about.

    TapWordPress is secure?

    2 Dec 2005 09:02 by Rick

    My Dashboard tells me Don’t Panic! WordPress Is Secure (24 Days ago). This is talking about BugTraq 14088 29-Jun-2005 which only affected version 1.5.1 and earlier. There have of course been others and will be in the future (no software is immune) but there was a new one a few days ago that is a false alarm. The problem arises because of the confusion of names (a familiar story). The alert is BugTraq 15582 which refers to phpWordPress. This is a commercial publishing management system and they clearly state at the bottom of their home page that they are not affiliated with the open-source program WordPress in any way. Perhaps wordpress.org needs a similar disclaimer.

    ^ Top