stances

Tonight we had training on stances. It came about more or less accidentally - proper stances are -hard- !! But I am now flexible enough hip-wise to get there.. Now to train my leg muscles, mostly the quads, to follow suit…

Making a ruby script into a stand-alone executable

Erik Veenstra created two scripts, tar2rubyscript and rubyscript2exe, which essentially grab what you wrote, wrap it up with some other code, bundle it with the ruby executable, and spit out a finished, executable package - which will run on that same OS – so compile it on Windows, get a Windows executable, compile on Linux, get Linux executable, etc. <a href="http://www.erikveen.dds.nl/tar2rubyscript/index.html">tar2rubyscript</a> <a href="http://www.erikveen.dds.nl/rubyscript2exe/">rubyscript2exe</a> As I'm a newb, it took me a while to figure out that I need .

Nidan... ?

Well, sensei hinted last month that maybe I should start gearing up for a nidan test. I've been getting used to being shodan, which maybe is a bad thing, but I haven't stopped looking for things I could do better. I'm becoming more sensitive to the muscles in my back, and I think my shoulders are finally beginning to open up… So, I have something like 5 months to prepare.

Recursively iterate through every file/subfolder - VBScript

This is actually a lot simpler than I expected (gimme a break, this is my second foray into VBS!) 1 2 3 4 5 6 7 8 9 10 11 12 13 Set fs = WScript.CreateObject ("Scripting.FileSystemObject") Sub ShowSubFolders(Folder) For Each Subfolder In Folder.SubFolders Set files = SubFolder.Files For Each file In files WScript.Echo file.Name, file.Size Next ShowSubFolders Subfolder Next End Sub ShowSubFolders fs.GetFolder("C:\your\path\here")

(Lexicographic) Permutations in Ruby

Taking the code from <a title="Permutations in Ruby and Python" href="http://abachman.disqus.com/simple_permutations_in_python_and_ruby/" target="_blank">this other blog</a> … It's pretty elegant Ruby! I won't waste your time repeating what the guy wrote in his blog - you're welcome to go read it. I just felt that I should help spread a little this elegant implementation of the standard permutation algorithm, fixing a small bug within it in the process. If, like me, you have issues understanding how to use this, well - you have to use this function and call a block of code on it.