SVN Repository fix

I was fixing several subversion repositories. I didn’t have the standard branches, tags, trunk structure set up. Here’s a script to help with that.

Use it like… sh ~/.svn-fix.sh https://mysvnserver.net/svn/hello-project trunk

#!/bin/bash
$repo="$1"
$dest="$2"
entries=`svn list $repo | grep -v $dest`

svn mkdir $repo/$dest
for d in $entries
do

svn move $repo/$d $repo/$dest/ -m "moved into $dest"
done

The Owls Are Not What They Seem

So I recently had gone back and watched the entire series of Twin Peaks. It’s only 2 seasons, so it doesn’t take that long. Really good, I highly recommend it. It was interesting to find out that David Lynch also made Dune and reused large parts of the cast for Twin Peaks. So far I’ve counted Kyle MacLachlan, Everett McGill, and Jack Nance.

Debugging Method For Rubyclass Object

class Object
    def additional_methods
        if self.instance_of?(Class)
            self.methods.sort - Class.methods
        else
            self.methods.sort - Object.methods
        end
    end
end

#example usage
class Foo
    def self.a
    end
    def Foo.b
    end
    def c
    end
    def d
    end
end

{:class=>Foo,:instance=>Foo.new}.each do |name,obj|
    puts "#{name} additional methods: #{obj.additional_methods.join(',')}"
end

Aliens in the Living Room

After walking through my living room in the night and seeing a oscillating blue light coming from the Wii, I decided to do a little research on the web. Apparently, your Wii’s drive light will glow blue when you get a new message. So it really is checking mail, etc when it is in sleep mode.

Now I just need some new games to come out for it, particularly of the RPG or strategy type.