Posts

Stop OS X bouncing Dock icons

Hallelujah! These drive me nutty some times. Highlights: Open Terminal  defaults write com.apple.dock no-bouncing -bool TRUE  killall Dock To reenable: Open Terminal  defaults write com.apple.dock no-bouncing -bool FALSE  killall Dock Source

Rsync transfer statistics

I wanted to take a look at the total amount of data that would be transferred for an rsync operation. Running  /usr/bin/rsync --dry-run -avhz --delete -e ssh /sourcepath destserver:/destpath would give the the Total Size of the /sourcepath but not the amount transferred. Adding --stats will give you the amount of data that needs to be transferred to get the /sourcepath and /destpath in sync /usr/bin/rsync --dry-run -ahz --stats --delete -e ssh /sourcepath destserver:/destpath

Samsung Intercept on Virgin Mobile

I've been using the Samsung Intercept on Virgin Mobile since Dec. 2010. I thought I'd take a little time and writeup my experience with the phone and the service. This is my first smartphone. I've always been fine using a "feature" phone since my primary use was calls with an occasional text. I was using a Samsung T401g and the Net10 service. It worked great for me. The problem was that I was carrying an iPod touch and the Samsung phone and decided I was tired of carrying two devices in my pockets all the time. I use Google services heavily and thought it would be handy to be able to enter items in my Google calendar as they are setup. Previously I would enter items into my Google Calendar on my computer and then have text messages sent to my phone to alert me. That worked great but I wanted the ability to add them on the phone. That and going down to one device was also appealing. My problem was that I didn't want to pay at least $70/month for service. At ...

ssh-add could not open a connection

Ever try to run ssh-add and get this message? Could not open a connection to your authentication agent Run this command exec ssh-agent /bin/bash or just add that to your .bash_profile so it runs on login.

CentOS 5.5 fails on install

There's a known bug in CentOS 5.x that causes install to fail if you select the Extras repositories during the setup process. So DO NOT chose the Extras repository when you install.

OS X boots to grey screen with spinning disc

Recent went through a scenario where I was turning a MacBook Pro into a fashionable brick. Install OS, completely update, apply a bunch of new settings & software, reboot, and fu.... Grey screen with spinning disc. I'd diligently boot into my install DVD, repair disk(saw errors about file and directory counts and fix them), repair permission, reboot, and fu... Repeat process. I finally figured out that /System/Library/LaunchDaemons will read every file in that directory upon boot, even if it doesn't end with .plist. I didn't want to fubar any of the files in that directory so I would create a backup copy of the file I was working with and would save them in that directory and end the file with .ORIG Turns out that upon boot both files were bumping into each other and the machine would not boot. Finally moved my backup file into /Users/Shared and the machine boots. So don't keep backup copies of files in /System/Library/LaunchDaemons, store them somewhere else.

Bash substrings

Say you have lines in a file that are of the format: 123:200105 and you need to split out the strings to work with them. string=123:201004 string2=${string:0:3} # result is 123 string3=${string:4:6} # result is 201004