There is a cool experiment trying to make people understand classical music better. It does so by “narrating” pieces while they are played, hence “Orchestrated Text“.
Category: English
Man’s First War: David Livingstone Smith
Default Values for Boolean Options in Ruby
Let’s say you read settings from a YAML file and have some sort of settings object. Then you check if certain options are set with custom values or you have to set default/fall-back values on them. If you are dealing with Boolean options you have to be careful … as I had to find out myself.
Initially you would probably do something like the following to set a default value on a Boolean option:
settings[:some_option] ||= true # set default value if nothing set
Do you see the problem? What happens if the option was deliberately set to
false
? You would overwrite it because both cases
nil
(i.e. nothing set) and
false
would evaluate to
false
in the context of the
||=
operator and you would in both cases assign the right hand value (and overriding an explicit user choice in one case) … *ouch*.
So the correct solution is something like the following:
settings[:some_option] = true if settings[:some_option].nil?
Just be careful … 😀
29C3
As you may have heard the 29c3 is over and there is a ton of great talks … 😀
A Mom’s Contract With Her Son
Awesome parenting: a mother’s contract for her son’s new iPhone. 😀
Joomla! Wold Conference 2012 Keynote: Changing the world with Open Source
Pascal Finette gave a great keynote at Joomla! World Conference 2012 talking about how Mozilla came to be and what they learned along the way. He shares insights on how to build a competitive product, a healthy community and maybe even a business around it, but developing and governing it the open source way.
Behind the Scenes Look Into International Politics
There two interesting things I have seen and read with regard to international UN level conferences.
The first one was a documentary called The Island President. It’s about how the former president of the Maldives, Mohammed Nasheed, tried to make politicians of other states aware of the consequences of global warming, which in the case of the Maldives is quite dramatic. So it follows Mohammed Nasheed and his delegation meeting several foreign country representatives in preparation for and during the 2009 United Nations Climate Change Conference.
The second one is about a totally different topic: telecommunications and internet policy. ArsTechnica had an interesting piece about the World Conference on International Telecommunications (WCIT) 2012 in Dubai titled Behind closed doors at the UN’s attempted “takeover of the Internet”. It follows recounts of Eli Dourado as part of the US delegation participating in committee discussions drafting documents for regulating international telecommunications (and trying to get hold of the internet 😛 ).
Its interesting to see how politicians interact on the highest level. A common theme is the importance of choosing the right “words” both in negotiations and in drafting treaties/documents. Also interesting were where the front lines are and how the process of aligning interests, building alliances and persuasion works. From two very different standpoints, on two very different issues.
A note on the Maldives:
Being the lowest-lying country (1.5m above sea level, at the moment 😉 ) on the planet, it will be submerged under water within our lifetime with the current goal of limiting global warming to 2° at the end of the century (which looks like we we won’t be able to meet 🙁 ). Making its inhabitants the first nation of ecological refugees. 🙁
Update: ArsTechnica took a look at the IPCC’s climate predictions back from the 1990s … seems like they were mostly right with predicting the temperature rise and a little (too) conservative with the sea level rise.
Minecraft – Story of Mojang
2 Player Productions just released their documentary Minecraft – Story of Mojang. You can get it as DRM-free download-to-own for $8 or as DVD for $20. 😀
Update: There is also an official Torrent on TPB. 😉
“You’re not anonymous. I know your name, email, and company.”
The analogy at the end is the point:
A real-world analogue would be this scenario: You drive to Home Depot and walk in. Closed-circuit cameras match your face against a database of every shopper that has used a credit card at Walmart or Target and identifies you by name, address, and phone. If you happen to walk out the front door without buying anything your phone buzzes with a text message from Home Depot offering you a 10% discount good for the next hour.
*shudder*
To Hell with Pi
To Hell with π … long live τ. 😉
The way it’s presented, it makes sense: it’s concise, consistent and more intuitive.