Log in
Jul
30

A while back i decided to setup a 3-drive ZFS pool in the MacPro. The only complaint so far is that OS X gets a little eager with putting the drives to sleep for my taste. In more recent versions of OS X the only option for putting the drives to sleep is a checkbox that, when on, will attempt to put the drives to sleep after 10 minutes of inactivity.

In the early days of OS X the Energy Saver preferences looked a little different – users could set a time to wait before putting drives to sleep.

OS X 10.1 Energy Saver Preference Pane

Thankfully after some digging i realized it could all be set through the pmset command. The man page has everything you need but for the lazy here’s the gist for disk sleep timing. pmset takes a flag to determine which power profile you’re changing: wall-charger (-a), battery (-b), UPS (-u) or all profiles (-a). Next simply pass it the disksleep argument and a number in minutes.

Set all power profiles to sleep the disks after 15 minutes instead of the typical 10:

sudo pmset -a disksleep 15

Setting the time to 0 will disable disk sleep altogether for that power profile.

One interesting thing to note is i originally stumbled onto this on a rather old article that suggested using the spindown argument instead of disksleep as the man page now suggests (as of 10.4). Using spindown does not cause pmset to complain though it appears to disable disk sleep altogether.

Jun
12
Bezbrige.com Bankruptcies

Stumbled across this depiction of the 20 Largest Bankruptcies in the history of the world. I love how cheerful the graphic is in comparison to the depressing truth it is displaying. All in all a great little bit of info viz.

Mar
30
in Life

It took me forever to figure out who all these Coho people were; at first i thought it was just some annoying bot and mostly ignored it. It wasn’t until i finally responded to one calling it a bot (to which i was accused of being a bot back) that i got curious enough to investigate. According to Wikipedia the bots are directed at public twitterers, the goal of the social experiment being to connect random people. They usually lead with some simple comment sent to both users ranging from the simple “Hi!” through other greetings and apparently, as i found out tonight, including demands of “internet sex”.

WTF Coho

To the random internet stranger who, through coho, i apparently demanded the “internet sex” from, hats off to you my friend.

Feb
09

Jasen discovered recently that this coming Friday, Feburary 13th, at 18:31:30 EST it will be exactly 1234567890 in Unix time. As an added bonus it’ll be Friday the 13th! So of course we’ve decided to celebrate. Now how exactly do i go about creating a zombie Ken Thompson costume?

Feb
01
in Java

I’ve fallen in love with Java’s instanceof; it makes me feel a bit more at home when i’m away from my beloved Ruby. I recently ran into a situation where i needed to determine if an object implemented a specific interface and it turns out that instanceof is just the tool to do it.

    Vector foo = new Vector();
    boolean comparable = foo instanceof Comparable; // false, Vector doesn't implement Comparable
    boolean serializable = foo instanceof Serializable;   // true, Vector does implement Serializable