About Mount Keeper

In the beginning of this year, we found a photographer to take some photos for my daughter’s birthday. He is a talent figure photographer and we are very satisfied with his service. He is using Mac, of course.

When he knew I am developing software on Mac, he asked me if there’s some software preventing external disk devices from mounting. He wanted to hire someone to help him on photo editing but don’t want any unauthorised copy of the photos of his clients.

I helped him searching around but couldn’t find any application meeting his requirement exactly. In the mean while, it’s an interesting requirement to me. So I decided to make one for him.

That’s how Mount Keeper came from.

Mount Keeper

This week I released the first version of Mount Keeper. It is a disk-mount-block tool integrated in the System Preferences of Mac OS X. It detects attached disk devices such as external hard disks, flash disks, or SD cards, and prevents their mount, mounts them as read-only, or lets the admin user choose, based on preferences.

Mount Keeper

The main features including:

  • Integrated in System Preferences.
  • Three options when disk device is about to mount.
  • Preferences can only be changed by admin user.
  • When “ask for choice” is chosen, authentication is required to mount a disk device.
  • Send notification when any new disk device is attached.
  • Uninstall with one button cleanly

It requires Mac OS X 10.9 or above.

Download. Try it for free for 14 days before you decide to buy a license.

It is granted 100% CLEAN award by Softpedia

Fixed link to the latest archive of Xcode

When using Xcode, I always want to the latest archive to be in a fixed position, for example, to build the installation package or make a new deployment.

Here’s a script

latest_archive_folder=$HOME/Library/Developer/Xcode/Archives/latest
mkdir -p $latest_archive_folder
rm -fr "$latest_archive_folder/$PROJECT_NAME"
ln -s "$ARCHIVE_PATH" "$latest_archive_folder/$PROJECT_NAME"

Put it in the Post-actions of the Archive in Scheme. Every time an archive is generated, the script generates a link with the project name in $HOME/Library/Developer/Xcode/Archives/latest/.

Use TextExpander to generate fake content

As a developer, I always need to generate some fake contents for testing purpose. Ruby has a nice gem called “ffaker” to do this kind of job. I integrated the gem with TextExpander so that I can fill pseudo data just by a few keystrokes.

First, you need to install gem “ffaker”. Run following command in the terminal:

sudo gem install ffaker

Then, create a new snippet in TextExpander with following content to generate a paragraph:

#!/usr/bin/env ruby

require 'rubygems'
require 'ffaker'	
print Faker::Lorem.paragraph

Don’t forget to set the content type as “Shell Script”.

textexpander

Script to generate a fake name:

#!/usr/bin/env ruby
require 'rubygems'
require 'ffaker'
faker = Faker::Name
print "#{faker.first_name} #{faker.last_name}"

Script to generate a fake sentence:

#!/usr/bin/env ruby
require 'rubygems'
require 'ffaker'
print Faker::Lorem.sentence

ffaker can generate much more fake contents. Now you get the idea and can check the document of ffaker to make up your own scripts.