Best Zombie Ever
Weird Nautilus Problem
This morning my Ubuntu developed an odd issue. Not sure if it was file corruption or what. Nautilus developed an issue where it would open an initial folder, such as my home folder, then hang forever (with no error messages and no logging) trying to move to any other folder. Reboots, reinstallation of nautilus, removal [...]
How I got ruby 1.8.5 on a Red Hat 7.3 box
For anyone else who needs to do this: Compiling Ruby 1.8.5 on an ancient redhat box is difficult. It’s not as simple as just make/make install… it doesn’t work right out of the box. My solution was to statically link ruby during compilation. Grab the source Extract Do “./configure” Edit ext/Setup (a text file), and [...]
Ruby Braces vs. Do/End blocks
When parentheses are important: So, braces have higher precedence over do/end blocks. According to Pickaxe, when calling a method with no parentheses, the braces will be applied to the last method parameter, do will be applied to the invocation. A Very Contrived Example: def string_to_integer if block_given? yield.to_i else 0 end end a = [1,2,3] [...]
No Smoking Balloons Food (Monday Picture)
I think it means do not smoke the food that balloons eat. I think we can all agree with that.
Blog = Beer Log
Notes about the 7 Bridges Red Ale I’m finishing up: 7/7/7: Followed instructions exactly. Wort chilling took 1 hour. Pitched yeast at 1am 7/8/7 OG (adjusted) 1.045, 75F 7/9/7 at 9am: Prefermentation (patches of yeast on the surface, stationary bubbles around edge) 7/9/7 5:30pm: fermentation has started. 7/10/7: fermentation going strong, churning, etc 7/14/7: Fermentation [...]
Ruby and processing character sets
Posting this because it’s been difficult for me to find resources on how to convert between different character encodings, such as Windows-1252 (cp1252) to UTF-8 or ISO-8859-1. It took me about a day to discover some of these libraries. Maybe I wasn’t searching for the correct keywords — dunno. require ‘iconv’ require ‘charguess’ # Reads [...]
keep looking »