OSX Mail delayed Preview

This is the best thing since sliced bread

http://christianserving.org/project/truepreview

Delay “read” in OSX Mail by 5 seconds.

PDI under Mountain Lion (Weird Error 13)

If you are getting this weird error when starting Kettle under Mountain Lion:

17/12/12 11:39:39.201 AM com.apple.launchd.peruser.501[1827]: ([0x0-0x71b71b].Data Integration 64-bit[11211]) Job failed to exec(3) for weird reason: 13

This is how you fix it:

  1. Go to the directory you unzipped PDI in using terminal
  2. Go into the “Data Integration 64-bit.app/Contents/MacOS” directory
  3. chmod +x JavaApplicationStub
  4. All Done!!

Also make sure your security settings under preferences allows untrusted applications

 

Screen Shot 2012-12-17 at 11.45.53 AM

NSFetchedResultsController

Instead of using the usual

NSFetchRequest *request = [NSFetchRequestfetchRequestWithEntityName:@”SomeClass”];

which is prone to String typos, rather use

NSFetchRequest *request = [NSFetchRequestfetchRequestWithEntityName:NSStringFromClass([SomeClassclass])];

This is a neat way to tie the name of the class to the entity.

Of course you have to make sure that you have done the whole CoreData DataModel and create entity based on the entities created in the model.

Empty trash gets stuck

Ever had the issue that you click empty trash and it just hangs? Found this useful method here

  • Go to Finder and select Finder » Secure Empty Trash.
    • If this operation gets stuck, open the Activity Monitor utility and force quit the Locum process. Enter your admin password when requested.
  • Go back to Finder and select Finder » Empty Trash.

🙂

TimeMachine Remote Disk

Found this simple way to make TimeMachine use a network shared drive.

1) Share the drive on the network with Read/Write

2) Enter the following command in a terminal

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

3) Open time Machine and select the shared drive.

2013-11-15 Update for Mavericks…………

Issue here is that you need to connect to TM machine using AFP and not the new default of SMB. So New procedure is….

 

1) Share the drive on the network with Read/Write

2) Enter the following command in a terminal

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

3) Reboot. Yes, I know you are saying WHAT!!! but just do it

4) now open Finder and log into the shared machine using AFP (CMD+K)

afp://192.168.100.200

(This is the IP of my machine)

5) Open time Machine and select the shared drive.

 

Cisco VPN – Fix for Error 51: Unable to communicate with the VPN subsystem

Useful hint from these guys on how to deal with this VERY annoying error. Happens when you sleep the Mac and the network connections change.

http://www.anders.com/cms/192/CiscoVPN/Error.51:.Unable.to.communicate.with

sudo SystemStarter restart CiscoVPN