haruspex is currently certified at Journeyer level.

Name: Toby Thain
Member since: 2002-01-24 11:10:04
Last Login: 2010-02-07 04:33:42

FOAF RDF Share This

Homepage: http://www.telegraphics.com.au/

Notes: More info at www.ghostscript.com

GPL (and non-free) software I have written

A modest wish: that our doings and dealings may be of a little more significance to life than a man's dinner-jacket is to his digestion. Yet not a little of what we describe as our achievement is, in fact, no more than a garment in which, on festive occasions, we seek to hide our nakedness.

Dag Hammarskjöld, Markings, translated by W.H. Auden and Leif Sjöberg

Recent blog entries by haruspex

Syndication: RSS 2.0

1 Mar 2009 (updated 1 Mar 2009 at 06:27 UTC) »

nconway, I don't see why people try to solve races like the Doctors problem through transactions and isolation levels. Row level locking in InnoDB prevents the race regardless of the isolation level in use.
BEGIN;
SELECT COUNT(*) INTO @n FROM Duties WHERE Shift=@s AND Status='on 
duty' 
FOR UPDATE;
if @n > 1 then
    UPDATE Duties SET Status='reserve' WHERE DoctorId=@d AND Shift=@s;
    COMMIT;
else
    ROLLBACK;

If you're not familiar with InnoDB, the SELECT establishes a critical section covering the on duty doctors. This same sequence executing concurrently will block until the connection with the lock has checked the count. The COMMIT (or ROLLBACK) will unblock the other connection waiting for the lock. In case the first connection committed an UPDATE which reduced the count to 1, the second connection, when unblocked, will see the new count of 1 and not make any update.

21 Nov 2008 »

lkcl: The buyout has been off the table for a considerable time. You may relax, it won't happen.

9 Oct 2008 »

@ marnanel: Sounds like you are best finding another country.

Come to Canada, at least we respect and are knowledgeable about other countries and cultures. The condescension of your child's teacher and your bank is not worth tolerating.

2 Oct 2008 »

Bailout, schmailout.

Bob Ellis:

For I wrote a book, you see, .... It was about how, if you sack too many people, or you underpay and impoverish too many people, there aren't enough customers left to sell things to, and the economy goes to hell. I wrote it in 1998 and nobody attacked any one of the arguments. They tiptoed away from the argument. They were above such things.

And lo, it has come to pass. Americans too impoverished to buy houses had stopped making their payments, and cash their creditors owed to lending entities further up the money chain could not be paid either, and like bird flu the illness swept across the planet, and here we are. And I was right; and Michael Costa and Peter Costello and all the neocons and Friedmanites and Tim Blair were wrong. And we are now in big trouble.

...

Decide how long Alan Greenspan should spend in gaol. For he nearly wrecked the world, in my view, with his one percent interest rates and house loans to fools as dumb as Barney in The Simpsons, ... Decide how long George Bush should spend in gaol for squandering a trillion dollars (thus far) on two needless unending wars and another trillion thus far bailing out his upperclass coke-sniffing accomplices who like him couldn't add.

And, boy, they really couldn't add. They thought the dollar could be floated for instance, and China's command economy with its fixed undervalued currency and low house prices was doomed to fail. They thought they'd won the Cold War against such barbarities, and socialist command economies didn't work. And they borrowed money from China, trillions of dollars from China, to prove their system worked better. China, which quietly won the Cold War by lending it to them, if you care to add up the figures.

16 Nov 2007 »

etbe: Neither. One should use ZFS (>> RAID).

268 older entries...

 

haruspex certified others as follows:

  • haruspex certified rms as Master
  • haruspex certified novelli as Journeyer
  • haruspex certified karlberry as Journeyer
  • haruspex certified timbl as Master

Others have certified haruspex as follows:

  • neurogato certified haruspex as Journeyer
  • juancpaz certified haruspex as Journeyer
  • lerdsuwa certified haruspex as Journeyer
  • snim2 certified haruspex as Journeyer
  • nixnut certified haruspex as Journeyer
  • mentifex certified haruspex as Apprentice
  • mpr certified haruspex as Journeyer
  • badvogato certified haruspex as Master
  • novelli certified haruspex as Master
  • fxn certified haruspex as Journeyer
  • himitsuheiki certified haruspex as Journeyer
  • fzort certified haruspex as Apprentice

[ Certification disabled because you're not logged in. ]

New Advogato Features

FOAF updates: Trust rankings are now exported, making the data available to other users and websites. An external FOAF URI has been added, allowing users to link to an additional FOAF file.

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!

X
Share this page