More students testing

This week two more students tested. We have a new green belt and a new blue belt. They did pretty well, but I am completely amazed at how many excuses adults have. Their heads are full of them. Can't they just listen and say 'yes' like they were taught when they were kids? Talking back is a privilege, not a right. Ooh.. That's good.. I'll reuse that.

Windows Vista : Corrupt user profile

I'm taking this from <a href="http://blog.tiensivu.com/aaron/archives/932-Dealing-with-corrupt-user-profiles-in-Vista-and-saving-the-contents.html" target="_blank">this page</a> but thought I should try to propagate it a little since it took me forever to find it. Assume in this example that the username is atiensivu, the domain is staff, and the user profile is located in %systemdrive%\users\atiensivu. %systemdrive% is typically C: on standard Vista installs. Replace every instance of atiensivu with the username of the corrupt profile. If you can log into the profile, make note of the %USERPROFILE% environment variable value.

Martial arts while sick

On Monday I went to the dojo as usual, though I'd had a cold over the week-end and wasn't quite over it (I'm still not over it now..). During form practice, I was constantly correcting myself - I guess that goes to show I need to practice a lot more, if I dedicate this much mindpower to each form.. :)

An old-school 6th dan

Yesterday evening a man who trained about as long as sensei came to train with us. Black obi, rather frayed to white. He'd trained a long time under his uncle, and then ~15 years under sensei's sensei. He'd taken a break for a while, so he was a bit out of shape, but his mindset, his attitude, his devotion were 100% into everything he did - an important lesson which I forget all too often.

How to delete all files older than a day recursively in a directory and its subdirectories

Whoo! I haven't done a post that long in a while! I put 'activerecord' in there to take advantage of the '24.hours.ago' notation, which makes life much easier. The cost is a little less than 2 seconds to load the library, so I think it's worth it. It runs as a daily job before backup to tape, to clear old backups from the directory tree. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 require 'activerecord' def delete_recursively(in_here) Dir.