Tuesday, December 29, 2009

nasty spaces in paths

This works pretty well:

But I admit I don't get the $1=$1.

tcsh, etc:
foreach file (`find , -name "* *"`)
mv "$file" "`echo $file | awk 'BEGIN {OFS="-"} $1=$1'`"
end

bash, etc:
find . -name "* *"|while read file
do
mv "$file" "`echo "$file"| awk 'BEGIN {OFS="-"} $1=$1'`"
done

Wednesday, December 23, 2009

Eureka!


The Splayd!

Can the the power structure really withstand the Spife?

Wednesday, December 16, 2009

My Current Favorite TED Talk

Jonathan Haidt on the moral roots of liberals and conservatives. (or: Why Everyone Wants To Go To Applebee's; Just No One You Know.)

A very interesting talk. Significantly outside the box. Interesting approach to the following:

  • Evolution of morality.
  • How can morality be usefully parsed?
  • What is morality good for?