Organize your dock by adding spacers in Snow Leopard

There is nothing like a shiny new mac and if you are like me, then you start with a fresh install rather then cloning your old machine. Since the dock on the new machine was not setup the way I like it a had to make a few changes and one of them is to add separators between applications. I do this to group like applications together. So to get started the first thing you will need to do is open Terminal on your Mac.

This is what my dock currently looks like.

Terminal can be found in: Applications > Utilities

To add a separator to the left side of the dock

defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'

To add a separator to the right side of the dock

defaults write com.apple.dock persistent-others -array-add '{tile-data={}; tile-type="spacer-tile";}'

Each time you run one of the commands above it will create a new separator but you need to restart the dock to see them. To do this just type this into Terminal:

killall Dock

Backblaze Icon Missing from Menu Bar in Snow Leopard

Long story short, Backblaze is awesome!  Up until I lost my Backblaze icon from the menu bar in Mac OSX Snow Leopard.  I researched online a little and couldn’t find an easy method of fixing the issue.  With that nifty little icon missing, I worried if it were working at all – all those precious photos, video and digital memories gone?

By going into the Backblaze settings in your System Preferences, you can select the check box next to “Show Backblaze icon in the menu bar.”  However, every time I checked the box, the icon would not come back.  And upon return to the preferences, the box remained unchecked.  A mystery?  Yes, indeed.

Therefore, I contacted customer support and they gave me a quick and easy solution that made my day.  Try the following steps below to fix the mysteriously missing Backblaze icon from the menu bar in Snow Leopard.

  1. Click on the Finder
  2. Press Command + Shift + G
  3. Enter /Library/Backblaze in the text field and press “Go”
  4. Right click on the folder “bzdata” and Get Info (or press command + i)
  5. Change the permissions, so that all users have “Read & Write” permissions.
  6. Then click the gear icon and select “Apply to enclosed items..”
  7. If the Backblaze icon doesn’t show up on the menu bar, follow steps 1-3 again and this time double click “bzbmenu” and this will place the icon in the right spot.

How to see if a Post in WordPress has an Excerpt

On the single post page for our posts, we wanted to display the excerpt only if one had been entered. Since the built-in WordPress function to get the excerpt for a post will automatically generate one for you, we couldn’t just put the function in our post loop like what was done below.


	
>

Doing this causes the intro of the post to show twice, once from the auto-generated excerpt and once in the post content. To fix this, we added a quick check to the post loop. Simply replacing the_excerpt function in the post loop with this little piece of code removed the double intro.

post_excerpt) ) {
		//We have a excerpt so print it
		the_excerpt();
	} 
?>