I was writing some code akin to: case something.class when String, Symbol then 1 when Fixnum then 2 when Time then 3 end Only to find it didn’t work, always returning nil. A bit of trawling turned up the following blog post: http://www.postal-code.com/mrhappy/blog/2007/02/01/ruby-comparing-an-objects-class-in-a-case-statement/, which explains that you don’t need the .class. So my above code [...]
Just recording the power ratings I measured with this plug-in meter and a Dell R210 server. Firstly some base readings with no operating system installed and the machine powered up (with no power applied the Drac Express draws about 26W). No OS, with 2 Seagate 2.5″ drives, 2x4GB RAM, DVD, Drac Express: 60.75W No OS, [...]
© Chillibear | Theme DePo Skinny | Header image from: Andrews, William: 'Curiosities of the Church: Studies of Curious Customs, Services and Records' (1891)