Shady Might Be Four

Yesterday was the day we decided to call Shady’s birthday. She’s considered four, though she’s really a Permanent Puppy, and those are ageless.

Shady has a sweet face

One year ago yesterday, we miraculously got her back after this sequence of events:

  • Horrible life with previous owner (she lived under a bed for a year)
  • Return to the Humane Society
  • A couple of months alone in a visiting room with little attention (the main kennel was too stressful)
  • Nine days as a foster dog with Molly and Tess
  • Twelve hours placed with a potential adoptive home
  • One stupid decision by that potential adoptive home to put a special needs dog alone in a backyard with a crappy fence
  • Three weeks on the street in and around Cooper-Young in below-freezing temperatures, apparently including a few trips to some truly scary neighborhoods
  • A heart-stopping moment where we followed up a great tip from someone who saw one of our 200 signs and we actually laid eyes on her
  • A frustrating couple of hours of being chased by us and neighborhood kids around train tracks and abandoned scrap yards (she was too scared and freaked out to come to us)
  • Three days of being actively hunted by us around the clock
  • A full-on canvassing effort by several generous Humane Society dog-walking colleagues to locate and help catch her
  • Me seeing her cornered in a mess of scrap metal, climbing down in there, picking her up, and handing her to Molly

And now, she’s a wonderful, happy, well-adjusted snugglepuppy.  Her meds certainly help, as does being part of a pack in a protective and loving environment. She sleeps between the pillows in her puppy pocket, she snores and grunts and yawns like a beagle, she chases Tess around a huge (and extremely secure) backyard, and most of all, she truly seems to enjoy her life.

A life that started all over, one year ago yesterday.

Photos: Steven Bryant

I Did Not Know: pbzip2

I just learned about pbzip2, which lets your multicore computer use more than one core when using the bzip2 compression algorithm.

On my Mac Pro at work, I installed it with MacPorts (`sudo port install pbzip2`). It is this kind of awesome:

$ ls -lh original.tar
-rw-r--r--  1 jmcmurry  staff   2.4G Feb  4 13:47 original.tar
$ time bzip2 -k -v original.tar
original.tar: 36.215:1,  0.221 bits/byte, 97.24% saved,
2604288000 in, 71911733 out.

real	13m3.313s
user	12m50.536s
sys	0m3.773s
$ mv original.tar.bz2 bzip2.tar.bz2
$ time pbzip2 -k -v original.tar
Parallel BZIP2 v1.0.5 - by: Jeff Gilchrist [http://compression.ca]
[Jan. 08, 2009]             (uses libbzip2 by Julian Seward)

# CPUs: 8
BWT Block Size: 900k
File Block Size: 900k
-------------------------------------------
File #: 1 of 1
Input Name: original.tar
Output Name: original.tar.bz2

Input Size: 2604288000 bytes
Compressing data...
-------------------------------------------

Wall Clock: 119.369207 seconds

real	1m59.612s
user	14m39.090s
sys	0m44.840s

Sweet. 6.57x faster by adding a “p” to my command line.

The resulting compressed .bz2 files aren’t exactly the same according to md5 (the pbzip2 output is a little larger, which makes sense due to the splitting of the work), but when they decompress, they’re both identical to the original .tar file.

See also: mgzip.