What Apple should have done with the new Mac Pro

| categories: computers, apple | View Comments

By now, I'm sure anyone who cares has seen the new Mac Pro.

Mac Pro

Yeah.

Read the full post»

Another reason I love Ruby

| categories: programming, ruby | View Comments

I was recently sent a set of photos and had literally hundreds to go through and didn't have time to go through them all by hand. Plus, several of them were all minor variations on a theme. So I got the idea to just pick 24 random images, and discard the rest. I was working in Ruby at the time, so here's what I did:

#!/usr/bin/env ruby

require 'fileutils'
include FileUtils

mark_for_removal = Dir.glob("*.jpg").shuffle[24..-1]

mark_for_removal.each {|f| rm f}

Here it is as a one-liner:

ruby -e 'require "fileutils" ; Dir.glob("*.jpg").shuffle[24..-1].each {|f| FileUtils.rm(f)}'

To be fair, this should also work on systems that have the GNU utils:

ls *.jpg | shuf | tail -n +25 | xargs rm

The beauty of the Ruby version is that it should work even if you don't have the GNU utils.

Read the full post»

BoingBoing's censorship problem

| categories: boingboing, antinous, censorship | View Comments

Note: I started writing this in April, dropped it, came back to it two months later. My apologies if some of this isn't relevant anymore.

I'm going to make this short.

Read the full post»

Do feminists really hate cooking

| categories: misogyny, cooking | View Comments

So, I ran across an interesting post today.

Read the full post»

Google Nose now in Beta

| categories: uncategorized | View Comments

Google Nose Beta

Who knows? Google Nose!

Something smells fishy about this, but when you think about it, since nobody else is really going after this sensation, it makes good scents.

Read the full post»

Introducing: Gmail Blue

| categories: uncategorized | View Comments

Brilliant. I can't believe I waited this long for this.

Read the full post»