# -*- coding: cp1252 -*- from math import tan, pi, sqrt, log, floor def eng(x, sigfigs=3): m = floor(log(x)/log(10)/3)*3 LUT = { -18: "a", -15: "f", -12: "p", -9: "n", -6: "ยต", -3: [...]
Blogroll
Meta
# -*- coding: cp1252 -*- from math import tan, pi, sqrt, log, floor def eng(x, sigfigs=3): m = floor(log(x)/log(10)/3)*3 LUT = { -18: "a", -15: "f", -12: "p", -9: "n", -6: "ยต", -3: [...]
Summary: I can’t get IronRuby to over-ride where it gets its app.config file. Because I’m glutton for punishment, I decided to try out IronRuby to do some dev work in .NET. I went with the latest IronRuby, which is in .NET 4.0–mostly because it integrates with Visual Studio 2010. One of my first stumbling blocks [...]
I’m using git to keep snapshots of large files. These are outputs of long runs of tools, that would take a long time to re-construct. Using git has the benefit of true version control on the input design files, and an archive of the large, time-consuming outputs. The idea here, however, is to save time, [...]
If you have a lot of files you’re not going to check in, git’s default behavior of showing untracked files can get cluttersome (new word I just made up). Doing the following suppresses this behavior: git config status.showUntrackedFiles no In the git-config man page, it shows it as case-sensitive, but I tried it all lowercase [...]
I recently needed to pretty print something from Python, but I needed the integers printed in hex rather than decimal. I overloaded the PrettyPrinter class to do it.