All posts

On remembering and dealing with people's names

September 3, 2010
A person's own name is the single most important word to him/her; it is intimately tied to his/her identity as an individual. How you deal with people's names can have a profound effect on their impressions of you: Think about the times you've felt special when someone you admired addressed you by your name in a sincere tone; or think about the times when you've felt belittled when someone negligently called you by the wrong name, or worse, maliciously made fun of your name in front of you.

I've always been extremely bad at remembering people's names, and it's caused me my fair share of embarrassment during my life. While I lived in Switzerland, I was always amazed at how well people in general could remember names. I don't know if they train them for it, or if it's a cultural trait, but many times, for example, I was greeted by name by people I only met briefly weeks before at a party. By then, I could barely remember their faces! Lately I've been making an effort to consciously remember people's names, and it does have a positive effect, both on myself and on other people.

Hierarchical copying with cfengine3

August 27, 2010

I recently posted a snippet to perform hierarchical copying in cfengine3. As I was attempting to integrate this mechanism into my copy of cfengine's COPBL, I realized that no additional functions or body components are needed. Thanks to cfengine3's list expansion, all you need to do is include in the existing copy promise the list containing the desired list of suffixes to try. For example:

Becomes:

While this looks at first sight even longer than the original (and of course, in this case you could just specify ${sys.flavour} directly in the copy_from statement), it is much more flexible. Instead of defining different sections for each class that you want to handle (e.g. suse_9, redhat_5, etc.), the same code is able to copy the corresponding binary directory for any operating system, you just have to put the corresponding bin.* directory in your repository.