December 9th, 2007

Robot Guitar

This has to be one of the coolest guitars I have ever seen. I much prefer acoustic, but this is has such a high cool factor I am seriously tempted to buy it. I doubt I could talk it past my wife though.

If you click on the picture it will take you to the official website for it. This is a self-tuning guitar. The technology behind it is really spectacular.

Volatile does not thread safe make.

I keep running across code, some old and some new, that uses the volatile keyword in an attempt to make the code thread "safe". Using that is always suspect, and without a truly deep understanding of the underlying hardware I doubt you could ever prove it was safe. With todays modern dual core processors, you can be 100% certain that it is unsafe.

In a nutshell volatile means to fetch the value from memory, and ignore whatever may be in the cache. What does that mean when you have two caches? At any rate when I see these items in the code I remove them. What is doubly irritating about them is that I tend to see them in java. Where classes like AtomicInt and AtomicBoolean are part of the libraries.

Stupid lead toys.

I keep hearing about all these toys manufactured in China, which contain too much lead. My question is why do they contain lead at all, and what in the hell are the Chinese doing? As a result of this I now have to manually go through all of the toys we have for our son and check them to make sure they are lead free. Sounds easy, but there are a lot of toys to go through, and I am not sure I will be able to find the information easily.

At least his favorite toy is lead free. A Skwish from Manhattan toy.

EBG13

V nz jevgvat guvf cbfg va ebg13, juvpu lbh pna svaq ng ebg13.pbz, whfg gb zrff jvgu zl oybt ohqqvrf. Fheryl gurl jvyy svther vg bhg. :c

UFC!

I got to watch the finally for the Ultimate Fighter today. I was disappointed in the fight. It was over too quickly. The rest of the fights on the card were pretty fun to watch though.