April 2010
58 posts
Fun little song made by the internet.
I’m trying, I’m trying!!!
The basic problem is that IFs create dependencies, coupling between modules (methods, objects, components, etc.) and increases possible paths inside our code (which reduces legibility)
This FileMaker Pro Custom Function converts a single character from hex to decimal.
I’m using it to convert an HTML-style hex colour into decimal, and then floating point values. I grab two characters from the string, pass each one to the function, and then divide the result by 30. The first two characters represent red, second two green, last two are the blue.
Function name: HexToDec
Function parameters: hexCharacter
Let (a = Upper ( Left(hexCharacter; 1) ); Case ( a = "0"; 0; a = "1"; 1; a = "2"; 2; a = "3"; 3; a = "4"; 4; a = "5"; 5; a = "6"; 6; a = "7"; 7; a = "8"; 8; a = "9"; 9; a = "A"; 10; a = "B"; 11; a = "C"; 12; a = "D"; 13; a = "E"; 14; a = "F"; 15;0) )
- Arthur: Normality? We can talk about normality until the cows come home.
- Ford: What is normal?
- Trillian: What is home?
- Zaphod: What're cows?
There were four fires in the life of Woody Guthrie.
In 1967 Woody Guthrie died of Huntington’s Disease, a progressive neurodegenerative genetic disorder. His mother, Nora, also had the disease. Three of the fires happened in his childhood. First, their family home burned down. Second, when he was seven, his sister was playing in the yard, and inexplicably caught fire. She died shortly thereafter. Finally, his father was badly burnt in a similarly unexplained fire.
While it isn’t known, most scholars who study the subject believe that Woody’s mother set these fires. Huntington’s Disease is known to cause anxiety, depression, egocentrism, aggression, and compulsive behavior, and could have caused her to set the fires.
In 1947, Woody’s daughter Cathy died in a fire in his Coney Island apartment (on Mermaid Avenue). She was four years old. The fire was caused by faulty electric wiring.

Woody and Marjorie Guthrie, before their split in 1952.