Uncategorized

Why is Time Machine backing up gigabytes of data every hour?

This has been bothering me for a while… I hardly change any files on my system, but every hour when Time Machine runs it somehow determines that 7 gigs of data has changed. Time Machine is ok for what it is, it’s biggest strength is probably ease of use. But it gives you no insight into what it’s copying exactly when it’s pushing gigabytes of data to my network backup.
As it turns out, there’s a handy little tool that tells you exactly what’s changed with your latest backup.

Timedog will tell you exactly which directories were backed up and how much data they represented. For me, the culprit turned out to be my Thunderbird mail client. It stores all email for a mailbox into a single flat file, and some of my mailboxes are gigabytes in size. Every new message I receive is causing the entire mailbox to get backed up again, eating up all my available backup storage pretty quickly.

Now that I figured it out, fixing this was pretty easy: simply put an exclude filter in Time Machine preferences to ignore any changes in my Thunderbird folder. All of my email is stored in my Gmail so it’s already in 2 places anyway.


Converting grayscale PNG to RGB PNG

Today I needed to convert a transparent Grayscale PNG image to the same format, but in the RGB color space. (some processing software that we use cannot handle grayscale transparent PNGs for some reason.)

Ultimately this is what worked for me. I was only able to figure this out through several hours of experimenting with ImageMagick options, so I hope this will help someone.

  convert in.png -type TrueColorMatte -define png:color-type=6 out.png

How to win the Mega Millions lottery

I’ve ignored my blog for several years so it’s time for a blog revival… I’m planning on sharing some of the recent lessons I’ve learned in Ruby on Rails development. For today, let’s keep it simple. Here’s my Ruby one-liner that will help you win the Mega Millions lottery:

a=[];until(a.length==5);n=1+rand(56);a<<n if(!a.include?(n));end;puts "your numbers are #{a.sort*','} and Mega Ball #{1+rand(46)}"

Copyright © 1996-2010 sfpeter.com. All rights reserved.
iDream theme by Templates Next | Powered by WordPress