Technical notes, my online memory
Friday, July 20, 2012
plistbuddy and defaults on OS X
›
I use defaults to read most plists on OS X, but it has an annoying habit of being very chatty in the logs. If you want to write code to que...
Monday, July 2, 2012
Mox: stub out a python builtin method like 'exit' or 'open'
›
Occasionally you need to stub out a part of core python for a test to work. In my case it was 'exit', another example is 'open...
Friday, June 29, 2012
JAVA CA store on OS X
›
To get the list of CAs trusted by Java on OS X: keytool -v -list -keystore /System/Library/Java/Support/CoreDeploy.bundle/Contents/Home/lib...
Thursday, June 28, 2012
Ruby foo: flatten a hash into a string
›
Flatten a ruby hash into a string. In this case the comma is the key value delimiter and the semicolon is the entry delimiter. irb(main):0...
Tuesday, June 26, 2012
Ruby Dir.glob to provides some of the python os.walk functionality
›
The ruby Dir.glob command is pretty nice. It provides some of what os.walk provides for python and is a reasonable choice for working with...
Thursday, June 21, 2012
Ruby string manipulation: struct, split, join
›
Every time I write ruby it seems like I have to re-learn everything. To shortcut the process for next time here is a snippet that demonstra...
Thursday, June 14, 2012
Adjust log level of python logger in a library (pyactiveresource)
›
My logging was being polluted by pyactiveresource that was writing a lot of useless logs at the 'INFO' level. I wanted my own loggi...
‹
›
Home
View web version