Overdue for another ID card rant

Anti-ID rants have been a bit lacking here for a few weeks, so I thought I’d better do some web searching about the current state of the inexorable march of ID. I found this excellent quote on http://www.no2id.net/ :

“I’ve read Orwell’s ‘1984’ – I don’t want my kids to live in it.” Andy..

There is an interesting article on the excellent no2id.net site that refers to the plan to merge the Office of National Statistics’ Citizen Information Project with the iD database, at even greater expense but allegedly saving millions after 2021. (Hmm. If anyone knows of a database that has stayed in the same format on the same hardware for more than 5 years, please tell me. Not to mention, if anyone has the capacity to calculate costs in a decade and a half’s time)

The same article links to an article in the Times that refers to a plan to add medical information to the ID database, allegedly to save lives in emergency situations while at the same time helping to prevent people without valid cards from accessing NHS resources. It brings up a quite disturbing image of doctors turning away sick and injured people who haven’t got the right ID.

And, I don’t know about you, but I find the idea of plague carriers remaining untreated personally threatening. In “The Gift Relationship,” Richard Titmuss argued years ago that Britishtransfusion service blood was far safer than US blood because it was donated out of altruism rather than a need for money. i.e Altruism in health care is more profitable for public health than selfishness.

I think this principle can be extended to the illegal immigrants gaining access to the NHS. I would much rather pay my NHS contribution and accept that the occasional person who hasn’t paid gets treated than rigorously exclude everyone who hasn’t paid their stamp and risk dying of TB or AIDS.

I am totally distressed to see that David Cameron said on May 3 that he would stop the ID fiasco. http://www.no2id.net/news/newsblog/index.php Distressed because it’s dispiriting to see that I am agreeing with a Tory leader on an issue of public security for the first time in my life. Old age is creeping up on me it appears.

By the way, http://www.no2id.net/ sells good-looking t-shirts that say NO ID. I have to get some.

Posted in Uncategorized

Attenborough’s 80th birthday

The wonderful David Attenborough is 80. When most octogenarians are lucky if they aren’t in a grim care home, Attenborough is still actively promoting his concerns for the environment. (http://news.bbc.co.uk/1/hi/magazine/4976552.stm) He must be the best-ever presenter/creator of science and nature programmes. Every year, he brings amazing new content to remind us of the fragile diversity of life on Earth.

Attenborough has had a wonderful life, having seen so many of the fragile marvels of the world. He personifies all the positive qualities of an ideal of aristocratic Englishness – adventurousness, intelligence, wit,  moral worth, charm, willingness to endure hardships and joys with equal stoicism – that were rarely found in reality rather than ideology. 

Digital channels have been showing his programmes from throughout the past decades.  These are almost always brilliant. In his BBC radio interview, he is careful to credit the cameramen as the real creators of the stunning footage that we associate with Attenborough.  However, it is his majestic and much parodied  delivery that makes so many of these programmes unforgettable.

The BBC site says that he got his first presentation job by chance, despite the misgivings of an administrator over the size of his teeth. This suggests that a modern Attenborough would be unlikely to get near the screen. Present day tv presenters tend to be either comedy “mad scientist” stereotypes or perfectly groomed forgettable clones. Attenborough is certainly distinctive without ever being a hysterical mad scientist. His delivery is  perfectly judged. His voice is unmistakable, with its odd tendency to whisper for greater effect.  He approaches the viewer as someone like himself, with all the aristocratic virtues.

If ever there was a 50s “Boys Own” hero in the real world, David Attenborough comes close.

Posted in Uncategorized

Warwick Castle

Warwick Castle 01

Warwick Castle 01,
originally uploaded by jj_mac.

An excellent photo catching Warwick Castle from an amazing angle. In this picture you can clearly see the well designed, and well laid out, gardens that surround the castle.

The distance in the photo is implied by the fact the castle (which is reasonably large) looks like a toy model!

Posted in Uncategorized

evening sky over reculver

evening sky over reculver evening sky over reculver,
originally uploaded by adrians_art.

This is also a photo I couldnt help but add to the blog 🙂 This is the evening sky over Reculver Roman fort.

For info – the fort was originally built as part of the Saxon Shore defences and, after falling into disuse, found a new life as both a Saxon settlement (ironically) and then a medieval stronghold.

Posted in Uncategorized

Content Negotiation – Mirrored Post

As mentioned in the last post, there is an excellent article available at http://www.autisticcuckoo.net/archive.php?id=2004/ 11/03/ content-negotiation, but sadly the author of this article has expressed his disinterest in continuing with his blog. While it is possible that he will continue to pay his hosting fees and continue to re-register the domain name, this is not certain so, to try and at least retain this article we have copied it (verbatim) below.

Original Source – http://www.autisticcuckoo.net/archive.php?id=2004/11/03/content-negotiation

We have, for some time, tried to inform people about the fact that there is no point whatsoever in using XHTML as long as you serve the documents with a text/html media type. For those who still want to use XHTML and gain at least something for some

users, we have recommended content negotiation. On several occasions people have asked us to publish a write-up on how to do that, but there hasn’t been time to sit down and write it. Now, finally, we have tried to whip something together that we hope can serve as a guide.

What Is Content Negotiation?

Content negotiation means that the server in one way or another
negotiates with a user agent (browser, search engine, etc) that requests a document. The negotiation means that the user agent announces which media types (also called content type or MIME type) it can handle and, optionally, which one it prefers. The server then serves the document in the way that best suits the user agent.

The user agent announces which media types it can handle through a header in the HTTP request it sends to the server. The header is called Accept and can look something like this:

Accept: text/xml, application/xml, application/xhtml+xml, text/html;q=0.9, text/plain;q=0.8, image/png, image/jpeg, image/gif;q=0.2, */*;q=0.1

The example is what our instance of Mozilla sends. (We have inserted blanks between the media types so that the text will wrap.) Our interest now lies with application/xhtml+xml and

text/html;q=0.9. The part after the semi-colon, q=0.9, is called a quality value and is a value between 0 and 1, inclusive, with up to three decimal places. The higher the quality value, the more the user agent prefers that media type. If no quality value is specified for a particular media type, it means q=1.0. The example thus shows that Mozilla prefers application/xhtml+xml to text/html.

The usual meaning of content negotiation is that the HTTP server itself decides which media type the user agent prefers, and then automatically chooses between a number of different documents. Normally the file suffix is used to associate to different media types, so the server might choose between

index.xhtml and index.html.

This article describes another type of content negotiation; one that is performed through a server-side script. Most web hosts offer some kind of server-side scripting, usually PHP or ASP. Our example uses PHP, since it is available for more platforms and is open source, while ASP is Microsoft-specific. We don’t delve into the finer details here, but presume that you are sufficiently familiar with PHP.

To round off this explanation of what content negotiation means, we want to emphasise that it’s not merely an issue of deciding which media type to send. When you have chosen a media type, you should also serve the document with a content that corresponds to the chosen media type. You either serve XHTML as application/xhtml+xml, or you serve HTML as text/html.

About the Examples

The code samples in this article are written for PHP 4.1.0 or higher. For older versions you need to replace $_SERVER with $HTTP_SERVER_VARS. If the code is executed in a function, you then need to declare the array as a global (global $HTTP_SERVER_VARS;).

This article presumes that the document’s content is marked up as XHTML 1.1, and that it doesn’t contain anything that cannot be converted into HTML 4.01 Strict, for instance element from other XML namespaces, or CDATA sections.

Parsing the Accept Header

First of all we need to find out whether or not the user agent supports the application/xhtml+xml media type and, if so, whether it prefers that to text/html.

  1. $xhtml = false;
  2. if (preg_match('/application\/xhtml\+xml(;q=(\d+\.\d+))?/i', $_SERVER['HTTP_ACCEPT'], $matches)) {
  3. $xhtmlQ = isset($matches[2]) ? $matches[2] : 1;
  4. if (preg_match('/text\/html(;q=(\d+\.\d+))?/i', $_SERVER['HTTP_ACCEPT'], $matches)) {
  5. $htmlQ = isset($matches[2]) ? $matches[2] : 1;
  6. $xhtml = ($xhtmlQ >= $htmlQ);
  7. } else {
  8. $xhtml = true;
  9. }
  10. }

The $xhtml variable indicates whether or not we will serve the document as XHTML. The initial value is false, since many older browsers lack support for XHTML.

On line 2 we check whether the Accept header contains
application/xhtml+xml plus an optional quality value. This regular expression isn’t 100% fool-proof, since it doesn’t limit the value range to [0,1], nor does it limit the number of decimal places to 3. For all intents and purposes, however, it doesn’t matter.

On line 3 we extract the quality value, if present. If not, we set the quality value for application/xhtml+xml to 1.

On lines 4 and 5 we perform the corresponding check for text/html. Line 6 compares the quality values and sets $xhtml=true if the user agent prefers application/xhtml+xml to text/html. Line 8 handles the case of a user agent that specifies application/xhtml+xml in the

Accept header, but not text/html.

After these lines of code we thus have a Boolean variable, $xhtml, which indicates whether the document will be served as XHTML.

Prepare HTML Conversion

If the user agent doesn’t support XHTML, or if it prefers HTML, we have to convert the document’s content from XHTML 1.1 to HTML 4.01. We do this with a simple function:

  1. function xml2html($buffer)
  2. {
  3. $xml = array('/>', 'xml:lang=');
  4. $html = array('>', 'lang=');
  5. return str_replace($xml, $html, $buffer);
  6. }

Lines 3 and 4 declare two arrays, where the elements in the $xml array will be replaced by the corresponding element in the $html array.

On line 5 each occurrence of /> is replaced by > in the $buffer string. At the same time, each occurrence of xml:lang is replaced by lang.

And Finally…

Only a few details now remain. If the $xhtml variable is true, we need to write the document type declaration for XHTML 1.1 and a <html> element with the proper XML namespace. Most likely we also want to start with an XML

declaration, and link to our style sheets through processing instructions.

If the user agent doesn’t want XHTML, we need to write a document type declaration for HTML 4.01 Strict and a <html> element without an XML namespace. Style sheets should be linked through ordinary <link> elements (or be imported in a <style> element). Furthermore, we need to instruct the PHP interpreter to buffer all output to the response stream, and to call our conversion function on the result before sending it back to the user agent.

Before we write anything at all, however, we must send a couple of HTTP headers: one that says which media type we use, and one that informs proxy servers that content negotiation has taken place so that they can consider that in their caching algorithms.

  1. if ($xhtml) {
  2. header('Content-Type: application/xhtml+xml; charset=utf-8');
  3. header('Vary: Accept');
  4. echo '<?xml version="1.0" encoding="utf-8"?>', "\n";
  5. echo '<?xml-stylesheet type="text/css" xhref="/css/screen.css" media="screen"?>', "\n";
  6. echo '<?xml-stylesheet type="text/css" xhref="/css/print.css" media="print"?>', "\n";
  7. echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">', "\n";
  8. echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">', "\n";
  9. } else {
  10. header('Content-Type: text/html; charset=utf-8');
  11. header('Vary: Accept');
  12. ob_start('xml2html');
  13. echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">', "\n";
  14. echo '<html lang="en">', "\n";
  15. }

Don’t forget to link to the style sheets in the <head> if the document is served as HTML.

There is a blatant shortcoming in the example shown in this article: the W3C validator. It doesn’t send application/xhtml+xml in its Accept

header, so it’s impossible to validate the document as XHTML. It is trivial to let a query parameter control the choice of media type, but that is left as an exercise for the reader.

(note: We are aware of some possible copyright issues, and we have attempted to contact the original owner to get permission to repost it verbatim here. At the time of this post, no replies had been received and we can only assume the original source is no longer on line. If you are the original source and would like this post removed please contact us and we will take this post down immediately)

Posted in Uncategorized

CSS Links and resoursces

Well, the ongoing quest for excellence continues 🙂 Here are some web sites relating to CSS I have been looking at today. All quite interesting and well worth checking out:

You may have already found some, but these are interesting enough to be worth looking at. If you have any others – let me know.

Posted in Uncategorized

Ethereal and Voice over IP

I often watch my network traffic in an idly interested way, networks being more or less incomprehensible to me. (I can watch the network actiivity and identify various bits of it, even enjoying picking my own passwords out of the ether.  I can reproduce the 7-layer model perfectly adequately. I don’t have a mental model of how they connect together. I sometimes almost grasp it but, half a minute later, it’s like knitting fog.)

I have recently noticed lots of packets with “bogus IP headers” or “malformed” or zero length packets, according to Ethereal. From my limited knowledge this tends to indicate a Trojan attack – no novelty to me, who appears to be Helen with regard to Trojans.

In the past few days, I’ve also noticed loads of packets that say “packet cable lawful intercept.”  It turns out that this is due to Ethereal confusing VOIP traffic with “lawful intercept” traffic. 

The concept interested me so I did some research. In case you don’t know what “lawful intercept” is, it seems that it means that your traffic has to be open to surveillance. It’s not the easiest thing in the world to understand. In fact it’s not even within loudhailer shouting distance of the easiest thing in the world to understand. That’s my excuse for not explaining it here.

Try googling http://www.google.co.uk/search?hl=en&q=packet+cable+lawful+intercept&meta= if you think you’ll be able to make head or tale of it. It disturbs me, but then I’m  probably just clinging to an outdated view that personal privacy was supposed to be one of the benefits of not living in a totalitarian state…..

Posted in Uncategorized

Magazine Redemption…?

Ok, following recent months we, here at Why Dont You have been quick to berate the various PC / Internet magazines available in the UK.

Whilst remote, there is a chance that this month things have changed. The latest .net magazine has arrived and (very) early indications are it is an improvement over previous poor showings.

This will be backed up with some more depth over the next couple of days as each bit is put to the test, but from the early scans it actually seems like a useful edition of the magazine.

Dont be too complacent though, there is a LOT of fluff in it – like several pages re-hashing old info in the guise of 150th issue celebrations. It is sad when a “cutting edge” magazine has to dedicate so much space to history…

Posted in Uncategorized

Web 2.0

This is by way of being a response to the Web 2.0 blog. I have to agree with the view that people don’t usually want all-singing, all-dancing websites. They particularly don’t want to return to them.

I accept that this isn’t strictly true for novelty websites. There is always room for sites that you visit to go “Wow, what a fantastic effect!” and recommend to your friends. However, this is a very limited market. It’s hard to see where money can be made from these sites. They only have value to business when they are promoting a band or a movie. So, there is no one to pay for the development time. This means that these sites tend to exist only as student exercises.

Otherwise extreme use of the newer capacities of the web usually only exist to promote web design companies. Even more, they mainly exist to promote web design companies to other web design companies, which seems a bit pointless.

If there are problems with the Web from the end-user’s perspective, these are not usually along the lines of “If only there was more pointless moving around of icons and text and a few more flashing lights” Most problems are more like – This doesnt work as I expect. I have to log in to do anything. Do I really have to enable Active X to buy a mouse online and so on? Why does it take as long to buy a train ticket online as to go to the trainstation and buy one?

My main whine about the web is that sites are all starting to look the same. And this is not notably pretty. There used to be a much wider range of web aesthetics, from much more beautiful to much uglier. Now most of the web is just boring. The web has settled down to a common dull aesthetic. Maybe if some of the genius needed to pick up on a dozen new technologies went into a more experimental approach to the look of web pages, we’d all start to get excited about it again.

Posted in Uncategorized

Trojan horse

A new form of Trojan holds your files to ransom (according to http://news.zdnet.com/2100-1009_22-6066636.html). Not having files of value >= 10p, this doesn’t exactly put me in a flap. But, as I am fair game for getting almost any malware, I could still find myself horribly inconvenienced.

According to zdnet, this is the third such attack in about a year. There are lots of details about the new Trojan attack on Sophos. (http://www.sophos.com/pressoffice/news/articles/2006/04/ransom.html) Its characteristics include a seemingly modest $10.99 ransom demand, together with a pretty unreasonable demand to pay within 30 minutes, which must be unmeetable unless you live in a Western Union office. Oddly the messages don’t inpire much trust in the promise that paying up will halt the trojan, as the message provides a Yahoo email address for you to contact if the removal code doesn’t work.

The basic design flaw in all this from the criminal’s viewpoint must be the same problem faced by all extortionists – picking up the cash. Western Union may be international, but it is not anonymous. There can’t be a Western Union office in the developed world that isn’t covered by the currently ubiquitous cameras. A huge influx of $10.99 Western Union orders to one office would be its own trail anyway, unless, there is a computer wizard isomewhere so bored that they would bother to write and propagate a Trojan for $10.99. In which case, they could probaly get away with it but might be better advised to get a more profitable line of work.

Posted in Uncategorized

Final Fantasy VII

Finally fantastic film.

Like the other FF films, everything is computer-generated. The graphics are just superb. It is visually stunning and the images just keep getting better and better.

(No I didn’t understand the storyline. It doesn’t matter if the story and characters are silly or the facial animation is sometimes wooden.)

You still can’t take your eyes off the screen. It’s almost the pinnacle of artistic expression using three-D graphics.  I’ll write more on this when i have watched the dvd-extras and may be more coherent and less gushing.

Posted in Uncategorized

My email used by scammers – GRRR

It’s not often that your email can make you feel sick but seeing a returned as undeliverable email that was supposed to have originated from my account and which was a Barcalays Bank scam fills me with a mixture of rage and horror.

>:-(

Checking my traffic logs for the past few days I have found a huge pile of IPs with Afrinet domains apparently sending and receiving packets from my coomputer plus a huge number of malformed and bogus packets today. I seem to have sorted that out or its stopped of its own accord.

Any sensible ideas about what I should about it? I have already run a virus checker and I have a firewall and my browser is supposedly so well defended that I can barely view a web page without having to enable a scripts for every dozen words on the page.

The remaining choices seem to be (a ) ignore it – the most likely given my life track record ( b) complain to my ISP (c ) do something else that I haven’t thought of. So – anyone who’s reading this, and has any ideas at all, please tell me.

Posted in Uncategorized

Sitepoint Quote

Found this from the sitepoint link posted in a previous article:

Ajax is meant for those situations where you have a small part of a web page that you want to update with information from the server without reloading the whole page (often a single word or a small set of links). If you are looking to replace more than say 10% of the page then you need to rethink whether Ajax is the appropriate way to do it. At least some of the Ajax that people are currently writing is more so they can demonstrate that they can write it rather than that the page actually needs it. Once Ajax ceases to be flavour of the month then it will go back to being used only in those situations where it is appropriate (the way people used to use it several years ago before the name Ajax was applied to this particular technology).

(Posted by felgall – URL: http://www.sitepoint.com/forums /showthread.php?t=371856)

I thought that was an excellent summation.

Posted in Uncategorized

Sitepoint

Today, I have been wasting most of my life on the sitepoint forums. Not wishing to be some one who encourages others to while away ten hours reading about things they will never put into practice I am loathe to suggest you visit them yourself.

However, being someone who likes to encourage others to idle their lives away – I have to say, check them out yourself if you dont believe me 🙂

Posted in Uncategorized