Wednesday, 19 October 2011

Relocate the Chrome address bar? Get a life!

According to an aggrieved poster on Slashdot, users are overwhelmingly asking Google to move the Chrome tab collection underneath the address / URL edit box. As far as I am concerned, all that that proves is that those users are stupid, and Google is right to ignore them. The URL is a property of the page that the user is on, and as such, the control that surfaces it should be inside the page. If you consider that tabs are a part of the page metaphor, then what is below the tab is part of the page, while what is above the tab is not.

All these supposed users are doing then, is asking Google to move away from a placement that makes sense in the context of the page metaphor to one that doesn't. Instead of being part of the page, the address bar would become some kind of shared area updated whenever the user changes tabs. I don't see that as an improvement.

[And note that since we are talking about consistency with a metaphor, it's actually irrelevant whether the tab bar is in fact implemented as a shared resource or not, i.e. whether there is only one of them or one per tab.]

Saturday, 1 October 2011

Cornbread Surprise

The surprise being that it came out rather well!

I had a big bag of coarse-ground cornmeal and some plain flour hanging around, so during the week I made an effort to buy some baking powder and some bicarbonate of soda (which I *think* is the same as what Americans call baking soda), as well as some eggs and some yoghurt.

I took 1.5 cups cornmeal, 1 cup plain flour, 2 tablespoons of sugar, 3 teaspoons baking powder, half a teaspoon bicarb and half a teaspoon of salt, and mixed all the dry ingredients together in a bowl.

I took a cup of plain yoghurt and three eggs and mixed them in a measuring bowl. Decided that that wasn't going to be enough liquid to wet all the dry ingredients, so added a big splash of milk, say half a cup. The original recipe had called for two tablespoonsful of honey (yes, this seems to have been a very *northern* US recipe) but I didn't have any, so I added a few drops of vanilla essence for the taste and smell, and hoped for the best on the moistness side.

Then baked at 200 degrees centigrade for 30 minutes. One is supposed to use a cast iron skillet, but I made do with a ceramic oven dish, which would have taken about twice as much ingredients as I actually had. As a result, the bread was fairly thin in the dish, say just over an inch in depth.

I was prepared for the ceramic dish not to be conductive enough of the heat, but in fact it ended up baked perfectly (it's an old fan-oven). The bread rose to about two inches in depth, and moved in a remarkably spongy/foamy way when cutting. Despite this however, it was somewhat dry — a single cup of yoghurt was about two thirds of the largish pot that I had bought, perhaps I should have used it all. Three eggs had seemed like rather a lot to me, since most of the recipes I'd seen had called for two, and some for only one, and indeed, the result was rather eggy/cakey-tasting; despite this however, and perhaps because of the dryness, it was prone to breaking up when handled. The vanilla made it smell and taste excellent.

All in all a qualified success: it will definitely all get eaten, and it should keep for three days or so in the fridge. Next time I'll try with more yoghurt and only two eggs. I think that should taste better and be more moist, but whether it will make the crumbliness better or worse is an open question.

I'm also leaning to want to experiment making potato bread like this, by including mashed-potato powder in the mix. But should it be the flour or the cornmeal that I replace? I'll probably try both. Potato bread, being naturally savoury rather than sweet, will probably also require a more southern-US oriented approach: no sugar, buttermilk rather than yoghurt, maybe only a single egg. On the other hand, I could add fried-onions, and would wet the baking tin with bacon fat rather than butter :)

Thursday, 22 September 2011

HP, Apotheker, Whitman — the saga continues

The latest news from HP, that the board is supposedly going to fire Leo Apotheker after only eleven months in the job, and install Meg Whitman as the new CEO, is making me very nervous about my Autonomy shares.

I was flummoxed to receive a letter from my dealers stating that the first deadline for acceptances had passed with only 46% of holders accepting, since I had assumed that UK institutional investors, long famed on the boards for their apathy towards AU, would have cashed out at the first opportunity, especially since the offer is widely seen as being an overpayment. I guess the art of brinkmanship is not lost. We'll see, the next deadline is 3rd October, and I think there's another, final one on the 17th or thereabouts.

Gossip on the boards is frenzied right now, with some even speculating on an HP/SAP merger: the rationale being that if HP are indeed moving to be an enterprise software company, they would still lack a big-hitter product even after the AU purchase. SAP would, of course, fit that bill.

I think Larry Ellison would relish the role of Wicked Fairy at that particular wedding. I have no doubt that the M&A specialists at Oracle are even now casting their eyes over HP and running the numbers. A further fall in its share price (already down 47% since Leo came aboard), as might well accompany a bid for SAP, would only make it more vulnerable.

There are other attractions for Larry, besides the pure pleasure of sacking the HP board en masse and putting his mate Mark Hurd back in the CEO's seat. He bought Sun for Java, not for its hardware business, but the addition of HP's Unix server business (and the re-introduction of the Oracle database on those servers) would please HP's midrange customers and add to the critical mass of Oracle's Unix business. If the worst came to the worst, he could perhaps simply shift some proportion of HP customers over to Sun kit the hard way, by simply (over time) raising HP prices faster (even) than Sun's, but there's no need at all to be so cavalier. He could kill Itanium after the next two, contracted-for, revisions by simply failing to extend HP's contracts with Intel, and have HP engineers in the meantime scurry to port HP-UX to SPARC, while scheduling new Superdome SPARC cells for some time around 2015. Any remaining HP IP in Itanium might be a useful addition to SPARC, and increased volume couldn't hurt. If he's as neutral on Sun's x86 business as he says he is, he could complete the spinoff of HP's PC division while throwing in Sun's x86 business as a sweetener. What he'd do with WebOS is anyone's guess.

Well that's enough wild imaginings and uninformed speculation for one night.

Saturday, 17 September 2011

Native Client — Google lets a hunded flowers blossom

There are already about a hundred schools of thought contending over the worth of Google's new Native Client ("NaCl") technology.

NaCl (inevitably punned by the Googlegentsia) is a way of allowing native-code (raw machine instructions, instead of an interpreted language such as the currently-standard JavaScript) to execute in your browser. As such it is painfully reminiscent of Microsoft's ill-fated attempt to add ActiveX controls to the browser, a move resulting in so many security breaches that it contributed significantly to the mass developer move away from Internet Explorer.

Some critics contend that NaCl will is merely a rerun of ActiveX and will suffer the same fate. However, unlike ActiveX, Native Client is not restricted to a single operating system, and although currently implemented only in one browser, Google's own rapidly-growing Chrome, it is open source and available for incorporation by other browsers if their developers so desire. As such, Native Client would run on whatever operating systems a given browser does.

A more serious criticism is that NaCl is currently restricted to a single chip architecture, x86-class code, meaning that it won't run on your mobile phone or tablet's browser, as those machines are currently almost all powered by ARM cpus. Google already have an answer to this in the works, based on compiling your C or C++ source down, not to native instructions, but intermediate-level LLVM bitcode. This is where the story starts to get hazy. Will the bitcode get further compiled, and if so when? In the browser? By the web server? It has even been suggested that Google may end up writing a virtual machine to execute LLVM bitcode directly. Shades of Java, why not just use that? — Indeed, your humble blogger remembers writing a post on the Mozilla developers mailing list about a decade ago, advocating exposing Mozilla internals to Java, so that people could write internal-level stuff using Java (which almost everybody could do) instead of C++ (which relatively few people could do), an idea which sank immediately and without trace; but that's another story.

The security angle seems much better thought out. Google are determined to sandbox the native code inside the browser, and seem to have invented a clever way to check and enforce that sandboxing. Said clever way relies on features of the x86 chip family though, and again, the concern must be that similar ways may not be so readily found for other chip families.

The least convincing criticism, I find, is that Google should have spent this effort on implementing the complainer's favourite interpreted language instead, because it's allegedly so much better than JavaScript. Candidates include the usual suspects: Python, Ruby and Lua (though I actually don't remember anyone proposing Perl). The people who make this criticism seem to me not to be one hundred percent awake: the goal of NaCl is to make browser capabilities that are available to JavaScript also be available to C and C++ programs (initially, with other compiled languages later, perhaps). Now if your NaCl program were to be ... a Python interpreter ... a Ruby interpreter? See how that might work? By doing the larger job, Google have automatically provided for the smaller job. Now, all we have to do is get responsible people in the Python, Ruby, Lua and whatever else camps to hook their interpreters up to the Native Client APIs, and a hundred browser languages will blossom,

Friday, 19 August 2011

HP, PCs, WebOS and Autonomy

The most amazing feeling, yesterday evening, of having fallen through the mirror into a bizzaro world where America is Europe, Apotheker is Elop and HP is Nokia. It's as though the Americans, unwilling to countenance a strong European player in the mobile phone industry, sent in Elop to administer the coup de grâce to Nokia, and now the Europeans have done the same to one of their industry giants in retaliation.

The feeling only intensified as I read through the details, noting the similarity of the arguments advanced for the decision, and the strange way that they both actually seem to be doing the very opposite of what they are saying. Let me explain.

With regards to Nokia, I was struck by Elop's statement that he wanted to move to a software platform that had a large "ecosystem" — shorthand I suppose for a large developer base *and* a large user base. Struck, because he promptly ignored the platform that had the largest ecosystem, Android (iOS not being an option for him, naturally), and chose the one that had if anything the smallest ecosystem, Winpho 7. Similarly, he said he wanted the platform that would best allow Nokia to distinguish its offerings from the herd — by which he undoubtedly meant the host of manufacturers offering Android based phones — but he ignored the fact that one of the reasons that those manufacturers love Android is precisely because it is so customisable, being open-source (think MotoBlur, HTC Sense, TouchWiz, ...), whereas Microsoft puts stringent compatibility and design requirements on manufacturers who want to use Winpho 7.

I still think that Nokia might have done better to dump Maemo/MeeGo while retaining its Qt-based presentation layer (the GUI, Touch UI, whatever you want to call it, and the user-facing apps), and to graft that onto Android, completely replacing Android's current, Java/Dalvik-based presentation layer and apps. That way Nokia would be absolved from any responsibility for developing the lower layers of the stack, which clearly Google are making a very good job of, and could concentrate their efforts on the UI layers and on tying the apps to Nokia's services. Indeed, given their current woes with Oracle, Google also might one day have been better off if Nokia had done that, since they would presumably have open sourced the code as they were doing with MeeGo. But I digress.

With respect to HP, Apotheker says he wants to move away from hardware and towards software as an engine for growth. So ... he dumps their biggest software asset, the proprietary WebOS...??? He blames the slowdown in the PC market on what he calls the "tablet effect", but clearly it's not just any old tablets, otherwise HP's own offerings would be doing much better: it's just *Apple's* tablets that are doing so well, and Apple's tablets run ... the proprietary iOS! And what was it, Leo, that has made Apple's operating system such a big deal? Why, it's the number of phones and tablets they've sold that run it! HP's PCs represented an excellent vector for insinuating WebOS into the market — as a quick-boot solution for those wanting just to browse the web and do emails for example — and WebOS represented HP's best bet for locking users into its software and services, as well as its hardware.

It's very odd. In the past decades, HP has steadily moved away from anything that required unique or original abilities in its labour force. It makes standard Windows PCs, and it's outsourced their manufacturing to the Far East. In recent years even the proportion of HP-specific design in its products has gone down — Asus design HP's PC motherboards for example. Apple on the other hand has gone in just the opposite direction. After the debacles of the old Mac OS and the Power Macs, Apple had to violently alter course and jump onto a bog standard Unix-like OS and bog standard Intel chips. Since then they've added customisation after customisation to their OS, moving it ever further away from its open source roots, and now they are designing their own ARM-based processors which it looks very likely they will soon be using in desktops and laptops. Every move they make is designed to increase user lock-in to their platform, while reducing the likelihood that their suppliers will be able to reverse engineer and mimic their offerings.

At least I have something to thank HP for. No one has less confidence in Autonomy than the UK stock market's institutional players, and my 125 shares were showing a rather large net loss at close of business last night, after the general market landslide during the day, and on top of accumulated slippage over the past few months. Now that's all transformed and my investment is showing a lovely 55% gain. Thank you so much HP, may your every endeavour be crowned with success!

Saturday, 6 August 2011

That AA+ rating

So one of the big credit rating agencies, Standard & Poor's, has downgraded the United States' rating from AAA to AA+ — basically, from so called "prime" debt to "high grade" debt. Still a long way from junk then.

Good, even so. Sovereign states, especially big ones that feel utterly omnipotent within their own territory, are prone to a kind of ego inflation in their governmental elites that lead them to believe that they can make just about anything happen so long as they can get agreement from "stakeholder" parties. They are so used to making, and on occasion bending, the legal laws in other words, that they fall into the trap of thinking that the laws of nature can be chivvied in the same way.

Big mistake. I see that the administration still hasn't really learned this lesson: the article linked to above notes that "unnamed officials in Washington had told US media that S&P's analysis of the American economic situation was deeply flawed". Shoot the messenger then!

In part of course, the agencies are simply making up for their failings pre-2008, when their routine granting of prime and high grade ratings to what turned out to be toxic and unrecoverable debt made them look like complete patsies — and complicit patsies at that, given that companies pay them to rate them. In an echo of "quis custodiet", who will believe the agencies' credit ratings, if they have no credibility themselves? So it's only natural that, now they are finally and completely awake, they are rushing around and barking like mad, in an effort to convince their subscribers that they are worth the money.

For all the briefing and spinning in Washington, and in chancelleries around the world in what are pleased to call themselves the "advanced" economies, you have to remember one thing: these countries are all running primary deficits; they are all still getting further into debt. For all the sound and fury in Washington last week, the nub of the agreement they reached was that they would allow themselves to take on extra debt now, while cutting back a little bit on the expenditure in two years' time. That's all you need to know to figure out that in a national emergency, US politicians' time horizon shrank to just under two years.

Imagine a rich man who, when told by his bankers that his extravagant spending has outpaced even his magnificent income by some 20% per annum, decides that he can, with great difficulty and with a lot of noble self sacrifice and tears, perhaps cut that 20% deficit to 18%, and really, the bankers should be grateful that he could manage even that. There were many such men in 18th century Europe, noblemen who knew how to spend but not how to save, and without fail they left their families ruined and their estates in the hands of other, more sensible individuals.

Indeed, it all reminds me rather horribly of one of my favourite bits of Jane Austen:

But now, another occupation and solicitude of mind was beginning to be added to these. Her father was growing distressed for money. She knew, that when he now took up the Baronetage, it was to drive the heavy bills of his tradespeople, and the unwelcome hints of Mr Shepherd, his agent, from his thoughts. The Kellynch property was good, but not equal to Sir Walter's apprehension of the state required in its possessor. While Lady Elliot lived, there had been method, moderation, and economy, which had just kept him within his income; but with her had died all such right-mindedness, and from that period he had been constantly exceeding it. It had not been possible for him to spend less; he had done nothing but what Sir Walter Elliot was imperiously called on to do; but blameless as he was, he was not only growing dreadfully in debt, but was hearing of it so often, that it became vain to attempt concealing it longer, even partially, from his daughter. He had given her some hints of it the last spring in town; he had gone so far even as to say, "Can we retrench? Does it occur to you that there is any one article in which we can retrench?" and Elizabeth, to do her justice, had, in the first ardour of female alarm, set seriously to think what could be done, and had finally proposed these two branches of economy, to cut off some unnecessary charities, and to refrain from new furnishing the drawing-room; to which expedients she afterwards added the happy thought of their taking no present down to Anne, as had been the usual yearly custom. But these measures, however good in themselves, were insufficient for the real extent of the evil, the whole of which Sir Walter found himself obliged to confess to her soon afterwards. Elizabeth had nothing to propose of deeper efficacy. She felt herself ill-used and unfortunate, as did her father; and they were neither of them able to devise any means of lessening their expenses without compromising their dignity, or relinquishing their comforts in a way not to be borne.

Thursday, 21 July 2011

A run on the bank?

Just read "Greece Deputy PM Warns Of Tanks In The Streets, Mass Suicides, If Second Bailout Voted Down By Greek Parliament" on Zero Hedge [yes, I am indeed about a month behind — those people post far too often], which quotes one Theodoros Pangalos as saying that "Returning to the drachma would mean that on the following day banks would be surrounded by terrified people trying to withdraw their money, the army would have to protect them with tanks because there would not be enough police".

I can't see that there's any excuse in a "modern", fiat currency system, for a run on the banks. Perhaps Mr Pangalos doesn't get it, but here's Gerard's Patented Method For Dumping The Euro And Going Back To The Drachma Without Having A Run On The Banks™ — no honestly, thank me later.

First of all, coin and print drachma equivalents for the amount of euro-denominated cash currently in circulation. Just for fun, assume that you are going to announce a drachma that's worth ten euros. (Trust me, that's going to increase the amount of fun almost exponentially once you've got an exchange rate.) "But," you will say, "that's only a minute fraction of the amount of money in bank accounts! How will we avoid people queueing up at the banks for cash that isn't there?"

Simples! As well as the 1, 5, 10, 20, 50, 100 and 1,000 drachma notes that you were expecting, you will also get your central bank to print 10,000, 100,000, 1,000,000, 10,000,000 and 100,000,000 drachma notes. Remember you are going to be swapping euros for new drachmas at 10 to 1, so a 100,000,000 new drachma note will be "worth" ONE BILLION EUROS! And you really can't have too many of them, so print a few more to be on the safe side.

Now, when multi-billionaire shipping-line owners queue up outside the banks for their cash, they can leave with just a few notes tucked discreetly into their slimline wallets! No need to spoil the hang of their suits with over-stuffed wallets or money belts! No need for a firm of private security guards to accompany dozens of boxes as they shuttle between the Bank of Greece and the nearest Citibank!

And the best bit will be the psychological effect on the masses. Once people see the rich entering the banks and leaving, only moments later, their valuable 1,000,000 new drachma bills tucked safely away, they will realise that there's absolutely no point taking need to take any money out themselves. Such is the power of the fiat money system when handled wisely.

What's that you say, Mr Pangalos? Inflation? Not a bit of it! You laid the groundwork for inflation when you allowed your banks to create credit out of thin air. That's the nature of a fractional reserve banking system. After that it's a balancing act. People mustn't take their cash out of the banks and hide it under their beds, or the economy will implode with massive deflation. Likewise, the velocity of circulation and the amount of credit mustn't rise too fast otherwise you'll get inflation. The beauty of my plan is that you won't have a deflationary scenario because there will always be enough cash circulating, while should only get a modest boost to inflation because most of the people taking money out of the banks will be stashing it away abroad.

What's that? What will it do to the exchange rate? Well isn't that the whole point of leaving the euro in the first place?