Voder-Vocoder

The Log of Hal Canary

Navigation: Home | THE LOG | Log Archives | Resume | Contact Info | Public Key | SSL | Math Applets | Site Map | WP Backend | RSS2 | Atom

Archive for 2006-12

In-game spam.

[]

Hal Canary | Computers & Code, Games, Spam | 2006-12-31 15:44:15 UTC
Permanent Link | Comments Off

dealing with lots of arguments in bash

#!/bin/sh
#DTPD#
echo first argument is '"'${1}'"'
for argc in `seq 2 $#`; do
        eval arg=\${$argc}
        echo ${argc}th arg is $arg
done

For example:

#!/bin/sh
# prepend-something.sh
#DTPD#
if [ "$#" -lt 2 ] ; then
        echo "useage:  $0 PREFEX FILE[S]"
        exit 1
fi
PREFEX=${1}
for argc in `seq 2 $#`; do
        eval arg=\${$argc}
        mv -v "${arg}" "${PREFEX}${arg}"
done

Update 2009-12-05: Another way to do it would be to use the shift command.

#!/bin/sh
# prepend-something.sh
#DTPD#
if [ "$#" -lt 2 ] ; then
    echo "useage:  $0 PREFEX FILE[S]"
    exit 1
fi
prefix=${1}
shift
for arg in "$@"; do
    mv -v "$arg" "${prefix}${arg}"
done

Hal Canary | Computers & Code | 2006-12-27 12:00:57 UTC
Permanent Link | Comments Off

Shavegeek.

Shavegeek is an actual term, not invented by me. It refers to those guys who look down on Gillette Mach3 and Schick Quattro users like Unix hackers look down on Microsoft Windows users.

The shavegeeks recommend (please note that shavegeeks, like all geeks, will argue the pros and cons of any aspect of shaving: they don't speak with 100% unanimity.) using a bristle brush and shaving soap or cream and either a straight razor or double-edge safety razor.

My shaving routine for the past few years---since I grew out the beard on my cheeks as well as chin---has been to shave my neck every morning in the shower with ivory soap and a cartridge razor. My main gripe was the expense of the cartridge---each one cost more than a dollar, and are getting more expensive with each new upgrade. So I bought a Merkur HD double-edge razor. I can find a stack of 10 DE blades at the local grocery store for about $2.75.

At the same time, I ordered a bristle brush and shaving soap. For several days I tried shaving in front of a mirror again, but I didn't like it. First of all, I am now used to feeling around my face instead of looking at it. Secondly, as hot as hot lather can be, it is never the same as standing inside a steamy shower; my skin knows the difference. Finally, cleanup is more complicated when I'm already out of the shower. I need to wash bits of soapy lather out of my beard and wash off my face.

So I'm now using the DE razor in the shower. The big difference between a modern cartridge razor and a DE is that the cartridge is on springs that allow it to keep the right angle on your face. With the DE, I need to continually be mindful of the right angle. Of course it's a safety razor, so when the angle is wrong, it simply doesn't shave.

Plus it's just a beautiful piece of equipment. Mechanically simple. Inexpensive blades. Durable. Made out of steel. Doesn't fall apart when you drop it on the floor.

[]

I don't desire baby-smooth skin, which most shavegeeks go for. The closer your shave is, the more irritation you will get. So I shave in either one or two passes. The first pass is with the grain and the second pass is perpendicular to the first. I usually completely forgo the final against-the-grain pass that many shavegeeks seem to love. When I am in a hurry I might even skip the second pass, too.

Hal Canary | Life | 2006-12-21 16:38:07 UTC
Permanent Link | Comments Off

bedizened

I asked seven anthropologists, archaeologists, and historians if they would rather have been a typical Indian or a typical European in 1491. None was delighted by the question, because it required judging the past by the standards of today—a fallacy disparaged as "presentism" by social scientists. But every one chose to be an Indian.

[...] Imagine---here let me now address non-Indian readers---somehow meeting a member of the Haudenosaunee from 1491. Is it too much to speculate that beneath the swirling tattoos, asymmetrically trimmed hair, and bedizened robes, you would recognize someone much closer to yourself than your own ancestors?

---From 1491, by Charles C. Mann

My current reading project is to get to all those nonfiction books which I've have been meaning to read for years. The last two I read, 1491 and Jeffrey Sachs's The End of Poverty have a common theme: the impact of disease on world events. One of the major points of 1491 is that our understanding of Native American civilization is skewed by the fact that as many as 95% of them died as a result of Old World disease. One of the major points of The End of Poverty is that many of the places in the world with endemic extreme poverty are in that position mainly as a result of diseases such as malaria and aids.

And it seems so foreign to me. I've never lost a single friend or acquaintance to a communicable disease. Cancer, heart disease, old age, emphysema, cirrhosis of the liver: these are the killers I know, not malaria or smallpox.

Hal Canary | Books, Politics | 2006-12-18 00:37:12 UTC
Permanent Link | Comments Off

Copyright 1997-2007 by Hal Canary.
mailto: h3 at halcanary dot org
xmpp:halcanary@jabber.org
aim:halwcanary
http://halcanary.org