Voder-Vocoder

The Log of Hal Canary

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

Archive for 2009-11

sed in place

#!/bin/sh
SEDCMD="$1"
shift
for x in "$@" ; do
  dirt=`dirname "${x}"`
  tmp=`mktemp "${dirt}/tmp.XXXXXXXXXX"`
  sed "${SEDCMD}" < "${x}" > "${tmp}"
  mv "${tmp}" "${x}"
  echo "$x fixed."
done

UPDATE: The next day I realized that

sed -i

does exactly the same thing.

Hal Canary | Computers & Code | 2009-11-29 00:45:32 UTC
Permanent Link |
Comments Off (but feel free to email)

very different covers

Compare and contrast the mass-market and the hardcover covers of this book:

Mistborn: The Final Empire by Brandon SandersonMistborn: The Final Empire by Brandon Sanderson

I like the mass-market (on the left) cover better.

Hal Canary | Books | 2009-11-17 08:14:54 UTC
Permanent Link |
Comments Off (but feel free to email)

Judging a Book by its Cover

The Department of Mad Scientists: How DARPA is Remaking Our World, From the Internet to Artificial Limbs by Michael P. Belfiore

Hal Canary | Books, Judging a Book by its Cover | 2009-11-15 20:46:35 UTC
Permanent Link |
Comments Off (but feel free to email)

Copyright 1997-2011 by Hal Canary.
mailto: h3 at halcanary dot org
http://halcanary.org