« December 2005 | Main | February 2006 »

January 30, 2006

Car manufacturers' market values

As a followup to my previous post about which companies manufactured the different brands of cars I now present a short table of the market capitalisation of some of the major players.

Car manufacturer market capitalisation (US $)
Daimler Chrysler 57B
Ford 16B
General Motors 13B
Honda 52B
Toyota 166B

I used Google stock information to get this information - just type the company symbol, eg. TM for Toyota, GM for General Motors, into Google to get a brief summary of that company's financial data.

There are various ways of comparing companies. Market capitalisation is the cost of buying a company in its entirety, and I chose it for this chart as it's easy to understand and the figures are readily available. The slightly rubbery aspect to it is that it takes into account future expectations for a company.

January 27, 2006

Google Collator

I've just added the Google Collator Search Collator to the Chaucery Fun section of this site. It uses the Google API to retrieve an assortment of what people are saying on a given topic. These results are then collated and presented.

For example, Philipp Lenssen, the mind behind Google Blogoscoped is most associated with the terms:

  • 'in the midst - 11%'
  • also speculating that - 11%
  • an all around - 11%
  • tracking the status - 10%'
  • the genius behind - 10%
On the other hand, people named Fred are:
  • offline - 12%
  • survived - 8%
  • dead - 8%
  • unhappy - 6%
Poor old Fred.

January 25, 2006

Google keyboard shortcuts cut

There's always lots of fuss when Google introduces a new service or feature, but sometimes not much fanfare when one leaves. After using GMail's keyboard shortcuts for a while I was reminded of the old keyboard shortcuts that Google had for their main search engine. It had a bit of coverage when it was released:

These nifty new controls allow you to navigate Google results using computer keys. You activate the function by pressing any key, which displays a small graphic of three colorful balls next to the first result. Move the balls around the page with the U (up), J (down), H (left) or K (right) keys and press enter to view the result.

There are several shortcuts, including C (view cached page), S (view similar page) and others. Very useful if you don't like using a mouse, or are working on a laptop.

Well, it turns out that it was removed from the Google labs in March 2005. The project's newsgroup is still up, though. Since it's taken me 9 months to notice that it's gone, I guess I can't complain that I'll miss it too much.

January 24, 2006

Doctor Who's very special effects

Doctor Who has developed a reputation for its low budget special effects. Whilst recently watching some of Peter Davison's 1983 episodes I noticed that the TARDIS console display looked suspiciously like it had been generated by a BBC Micro. Did the BBC use a cheap home computer from 1981 to simulate the advanced computing power of hundreds, even thousands of years into the future?

The Twin Dilemma, broadcast in 1984, was the first storyline of Colin Baker's era as the doctor. Either by accident or design, a brief sequence during this program actually showed the BBC Basic and assembler code used to create the console display. Luckily, I managed to capture a few screenshots with which to remember this momentous occasion.

Here is the doctor, in rather bland garb, and his assistant du jour, Peri. The accompanying shot is of this episode's terrifying aliens, the Gastropods.
(Click on screenshots for larger pictures)

This is the command centre which contains the display of interest. The woman closest to the camera is "operating" the display.

I've transcribed the code below. If you want to have a play with BBC Basic then you can try an online BBC emulator written in Java, but note that the code given here is incomplete, and that you may need to tinker with the key mapping option to produce all of the BBC's keystrokes.

The code we can see is just the final lines of a display program. Up to line 400 it's in assembler, which I would guess is to be the procedure that does the actual printing to screen. Lines 410 to 610 are the definition of a procedure called title. This calls PROCdisplay a number of times, which is presumably the assembler procedure that we see the end of above. You can even see the RUN command at the bottom of the screen, ready for someone to press Return.

 TA&7A
360.AP:LDX&78:LDY#0:.AD:LDAM%,X:STA(&76),Y:CLC:
 TYA:ADC#8:TAY:DEX:BNEAD
370CLC:LDA&76:ADC#1:STA&76:LDA&77:ADC#0:STA&77
380DEC&7B:BNEAQ:CLC:LDA&74:ADC&82::STA&74:STA&76:LDA&75:
 ADC&83:STA&75:STA&77:LDA#8:STA&79:.AQ:DEC&7A:BNEAP
390CLC:LDA&72:ADC#1:STA&72:LDA&73:ADC#0:STA&73
400DEC&7F:BEQAZ;JMPAA:.AZ:RTS:J:NEXT:ENDPROC
410DEF PROCtitle
420REPEAT UNTIL INKEY(0)=32
455Xsize=4:Ysize=4:YOUR$="_______":PRINTTAB(6,7);:
 PROCdisplay
460Xsize=4:Ysize=4:YOUR$="X,V,773":PRINTTAB(6,6);:
 PROCdisplay
461REPEAT UNTIL INKEY(0)=32
465Xsize=2:Ysize=2:YOUR$="LAST LOCATION: 27:43":
 PRINTTAB(0,14);:PROCdisplay
466REPEAT UNTIL INKEY(0)=32
467Xsize=2:Ysize=2:YOUR$="LAST CONTACT: 12-99":
 PRINTTAB(0,20);:PROCdisplay
470REPEAT UNTIL INKEY(0)=32
475Xsize=2:Ysize=2:YOUR$="_______":PRINTTAB(2,29);:
 PROCdisplay
480Xsize=2:Ysize=2:YOUR$="BELIEVED DESTROYED":
 PRINTTAB(2,20);:PROCdisplay
520FORW=0to 463:NEXT:
610ENDPROC
>RUN

If you want to decipher the code, and you are not that familiar with BBC Basic, you should know:

  • spaces are usually ignored
  • : is a separator
  • A% is an integer variable named A
  • R$ is a string variable
  • &76 means hexadecimal number 76
  • DEF PROCexample ... ENDPROC is a procedure declaration
  • PROCexample calls the procedure
  • REPEAT UNTIL INKEY(0)=32 means pause until space is pressed
  • PRINTTAB(X,Y) sets up where on screen the next text will be written, with (0,0) the top left

Here's the output, which unsurprisingly does what the code specifies. If you look carefully you can see the angled bracket on the end of the bottom line where the computer is waiting for more input. The picture on the right shows the screen in situ, on the far left of shot.


The Cybermen - Thwarted by a BBC Micro

The very next storyline had the exact same occurrence, but with more advanced graphics. Here are the doctor and Peri again, as they appeared in Attack of the Cybermen, and the code itself, which appears for only a couple of frames.

I have copied as much as I can make out below. I have also annoted the parts that involve special BBC Basic commands. In reading the code, note that graphics are always done based on a hypothetical screen which is 1280 pixels wide and 1024 pixels high, with the origin (0,0) at the bottom left. This is distinct from text mode, which has an origin at the top left.

870X%=A%*SINB
880Y%=B%*COSB
890MOVE0,0
- fill a triangle between specifed point (X%,Y%) and last two points used in plotting actions
900PLOT85,X%,Y%
910NEXT
1090
1100ENDPROC
1110
1120
1130DEFPROCGRID
1140
1150
- redefine graphics origin to point (0,0)
1160VDU29,0;0;
- redefine colour 1 (red) to be absolute colour 7 (white)
1170VDU19,1,7,0,0,0
- set graphics colour to 1 (red)
1180X=5:GCOL0,1
1190LOCALX:LOCALY
1200FORX=0TO1275 STEP1275/N
1210FORY=0TO1020 STEP1028/N
1220MOVEX,0:DRAWX,Y:NEXTY:NEXTX
1230FORY=0TO1028 STEP1028/N
1240FORX=0TO1275 STEP1275/N
1250MOVE0,7:DRAWX,Y:NEXTX:NEXTY
1280
1290
1300
1310
1320ENDPROC
1330
1340
1350
1360END
RUN

This is the grid being drawn with its vertical lines first, from left to right. Then come the horizontal lines, from the bottom up.

Finally, you can see a circle being drawn out of triangles, which is probably done by the bit of code before line 1100. In the actual storyline, this denotes the location of the cybermen's transmitter.

I wonder if the BBC's innovation in using a common household microcomputer to produce effects for its leading science fiction program of the day was noted at the time. If not, then it's not too late to redress the balance, and praise their skilful use of meagre resources to produce a memorable program.

January 20, 2006

Firefox popularity increasing

One of the most popular blogs on the internet, Boing Boing, is now seeing noticably more visits from Mozilla Firefox than from Internet Explorer.

W3Schools shows the long term browser trends amongst the more technically literate people who visit their site. It indicates that Firefox use is still increasing sharply.

However, the general internet population still overwhelmingly uses the decrepit, pitifully archaic Internet Explorer that came installed with Windows. The latest version was released 5 years ago, and as stated by the Wikipedia: "A notable portion of the widespread promulgation of spam, spyware, adware, and computer viruses across the Internet is known to be facilitated by exploitable bugs and flaws in the security architecture of Internet Explorer."

There is really no reason for these people to suffer any longer. Firefox is quick to download, easy to install, and then updates itself with no fuss whenever it needs to. I believe it is the duty of all technically knowledgable people to assist their friends and family to browse the web in safety and comfort. It's free, and well worth at least a test run.

If you only care about security, but not the extra features offered by Firefox, then the switch from IE is pretty straightforward. On installation Firefox will offer to bring across your bookmarks, and then you can browse the internet just as you did before. Gradually, you may notice some pleasant new features that bring incremental improvements to your browsing experience.

Tabbed browsing is something that doesn't sound too interesting until you actually use it, and wonder how you ever did without. I find that it speeds up my browsing by allowing me to open new pages whilst remaining on my current page. For example, if I'm on a page of movies reviews, I can click with the middle mouse button (usually the mouse wheel) on links to have them open in another tab. I can then switch to the other tabs at my leisure, and close them when I'm done.

Another aspect of Firefox is its support of extensions, which are user-coded enhancements to the browser. I have added four extensions to my browser:

  • cardgames offers a wide range of games to fill in your spare time. If you've been using Windows Solitaire, then this could be considered a massive upgrade.
  • netusage. In Australia internet accounts have restrictive quotas. This tool displays a graphical bar of how much of this month's quota you have used.
  • bugmenot lets you access free newspaper sites that require you to register your details, but without having to enter you own details. If you visit such a site with this extension installed, then a suitable name and password will be prefilled for you.
  • Bookmarks Synchronizer lets you keep your bookmarks list on multiple computers synchronised. For example, if you have a main computer that you usually use, you could set the Bookmarks Synchronizer to automatically update its bookmarks list to a remote FTP site whenever the bookmarks are changed. Then, on a secondary computer with the Bookmarks Synchronizer extension installed, you could request that the bookmarks be updated from that remote site. Note: It's quite hard to find the latest version of this extension. A current version is apparently here.
A bonus for programmers is the code for existing extensions can easily be looked at and modified, as the .xpi file that they are installed from is just a renamed .zip file. So, you can unzip an extensions of interest and see how it works.

If you're a web developer then you've probably already moved to Firefox because of its great DOM Inspector and Javascript console, the latter inherited from Netscape. When I needed to debug my recently released AJAX application Instant Crossword Tools, the Javascript console proved invaluable.

If you already use Firefox and you've read this far, then you get the reward of a single titbit: middle-clicking on a tab title will close that tab. There, that should save you some mouse movements.

January 19, 2006

Landmine legacy

The International Campaign to Ban Landmines has pertinent, and frightening, information about the continued use of landmines today. Their 1999 Ottawa Treaty, the Convention on the Prohibition of the Use, Stockpiling, Production and Transfer of Anti-Personnel Mines and on their Destruction, has been signed by 154 states, though major players such as China, Cuba, Finland, India, Iran, Iraq, Israel, Russia, USA have not.

The following chart shows which countries are still producing landmines.

An amazing 84 countries have problems with landmines and unexploded ordnance, and about 60 countries have stockpiles, with China maintaining 110 million antipersonnel mines. I hope they don't keep them near their fireworks factories.

Will somebody think of the children, or at least the potential alien visitors?

January 18, 2006

Instant Crossword Tools

Finally the Chaucery site has its first authentic AJAX application, Instant Crossword Tools. There are other sites that provide anagrams and complete words with missing letters, but in testing I've found it quicker, easier and more fun to use my instant version.

The two main differentiators between different online crossword tools are (a) their ease of use, and (b) their wordlists. I'm pretty sure that I have the first one covered, with the instant results to the users' queries a vast improvement on the button clicking and page loading that people used to have to suffer.

For my word list I originally used a combination from Grady Ward's Moby lexicon project. In particular, I merged the two scrabble word lists with the common dictionary word list, and got a pretty comprehensive result. However, in testing I found that certain plurals were missing. As adding plurals algorithmically is not feasible, I instead switched to Ross Beresford's UK Advanced Cryptics Dictionary, which seemed eminently suitable.

The end result is a tool that I hope will be useful to anyone interested in words, but especially to those setting or solving word puzzles.

January 15, 2006

Cola war

South Africa's Mail & Guardian Online, amongst many other papers, made the interesting note that on December 12th PepsiCo was valued higher than Coca-Cola for the first time ever. (Yahoo Finance has the current figures, which at the time of writing showed PepsiCo had eased back slightly below Coke.)

The equivalance of these two companies may be a suprise to cola drinkers, where Coke is still significantly more popular in most places. According to the Wikipedia, Coke leads in the US by 43% to Pepsi's 32%. However, the crucial factor is that PepsiCo has diversified dramatically and cleverly away from soft drinks, whilst Coca-Cola is still heavily reliant on that market.

The capitalist in all of us

At the start of this year Neil Turner was earning US $150 per month from the Google advertisements on his site. That was part of the inspiration for me to try out Google Adsense on some parts of my sites.

I made my first web page in 1994, when Netscape 1 was released, but I've never earnt anything from my web properties. As I recently moved to paid web hosting for the first time, I thought it'd be nice if I could get ads to cover that monthly cost. To my surprise, the money I garnered in one day will cover the cost of hosting for two months. I guess now I'll have to set my goals higher.

I'll reevaluate the situation in a month or so, to consider whether the money I make is compensating for the loss of the pristine wholesomeness of my site. I wonder if in the meantime I'll start to emulate the amazing money-making machine Darren the ProBlogger.

January 13, 2006

Mnemonic Generator

I used to have trouble remembering rarely used, yet important, security codes. With a bit of effort I conjured up an image in my mind of four words representing the four numbers in the PIN, and as the human mind is much better at remembering images than digits, I have not forgotten that security code since.

To make this process easier I created an online mnemonic generator, which in its initial form works purely for 4 digit codes. In theory it should produce some sensible and memorable combinations. Usually the key is that the number of letters in the word corresponds to the particular digit, but I had to take liberties with the '0' and '1' digits. For example, of and nought may mean '0'. Fortunately, it's easy to remember these particulars.

In the future I may extend this to longer codes.

January 5, 2006

Australian - United States FTA results

The first results from the controversial Free Trade Agreement that the Howard Government signed up to for the benefit of the Australian economy have come through, and they appear to be not too pretty for one side:

January 4, 2006

Government funding of television

Every year the ABC and its supporters complain about its lack of funding, which has declined in real terms about 30% in the last 15 years. Australians can only dream of the television delights - a real Electronic Program Guide on digital tv, for example - that we would receive if the ABC was funded as well as the BBC is.

My tax money spent on the ABC is equivalent to a Big Mac every month, or one DVD each year. Considering the amount of time spent watching television, it seems amazing that the money can stretch so far.

January 3, 2006

Starbucks nimby?

A while ago Mr Kottke started an interesting thread about finding the place with the maxium Starbucks density. I don't drink coffee, so I don't have an opinion on what the ideal density should be, but I suspect it's quite low here in Perth, Western Australia. The two closest Starbucks are in Ballarat, Victoria (East 2627km) and in Bandung, Indonesia (North 2700km).

January 2, 2006

Imperial babies

A quick glance at the birth notices in the local paper shows that 90% of babies' birth weights are announced in pounds and ounces, despite noone of parenting age who was schooled in Australia being instructed in anything other than metric. I suspect that if you asked these new parents to do some calculations in imperial measurements that they'd fail spectactularly. It's doubtful that they'd know their own weight in anything other than kilograms, which makes comparisons with their offspring rather difficult.

Another area where imperial measurements have steadfastly refused to be supplanted is in computer monitor sizes. They are solely advertised as being 17", 19" and the like. However, televisions have, for as long as can remember, been sized in centimetres, with the old standard sizes being 35cm (small), 51cm (medium) and 63cm (large). Interestingly, with the recent growth in popularity of much large screens, some are being advertised in both centimetres and inches. Perhaps this is due to overflow from the computer industry, from where LCD monitors are being sourced for LCD televisions.

January 1, 2006

Great free Auld Lang Syne interpretations

Unfortunately Comfort Stand's latest compilation, Auld Lang Syne, arrived too late for New Year's Eve celebrations in Australia, but I'll have it playing loud and long next year. As with all their music, you can download or stream individual mp3s or the whole collection.