Posts for Tag: mac

'GPG Tools for OSX Mail on Mavericks workaround'

If you use [GPGMail](https://gpgtools.org) (look it up if you don't know about email privacy ;)), and migrated to OSX Mavericks preview, then you know it does not work out of the box.

Here's how to trick the operating system to make it work:

- Quit Mail; - Download and [install this fix](http://support.gpgtools.org/discussions/everything/10837/r?go=aHR0cHM6Ly90LmNvL0VESlBRUVFUVGw=); - Run this sequence of commands:

$ sudo defaults write /Library/Mail/Bundles/GPGMail.mailbundle/Contents/Info.plist SupportedPluginCompatibilityUUIDs -array-add "$(grep -A 1 "PluginCompatibilityUUID" /Applications/Mail.app/Contents/Info.plist | grep string | cut -f 2 -d ">" | cut -f 1 -d "<")" $ sudo chown -R root:staff /Library/Mail/Bundles/GPGMail.mailbundle $ sudo chmod -R ug+r /Library/Mail/Bundles/GPGMail.mailbundle $ sudo chmod 644 /Library/Mail/Bundles/GPGMail.mailbundle/Contents/Info.plist

Keep in mind that on some shells the first command will not work (i.e. [fish](http://fishshell.com)). If that's the case, first switch to another one (bash,sh,csh,zsh) then run the commands.

Restart Mail and it should work.

Apple Magic Mouse lag problem solved

After looking everywhere for a solution for my Apple Magic Mouse lag problem it finally dawned on me:

Both Bluetooth and Wifi(n) share a very close spectrum of the wireless channels. After changing my router's Wifi channel from 12 to 1 the mouse started working properly again (completely lag free).

Good luck!

Automator service to resize image to several sizes

Here's an Automator service to [resize an image into several sizes](/files/workflow.zip). Unzip and copy the package "Multiple Sizes.workflow" to your **~/Library/Services** folder and you will get a new entry on the finder services context menu. Just right click any image and choose "Multiple Sizes" from the services menu.

For instance, if you select an image named "image.png" it will create the following files on the same folder:

- image_512.png - image_256.png - image_128.png - image_64.png - image_32.png

Feel free to open it up in Automator and modify to your needs :)

Shortcat - Get rid of your mouse, now!

This is a game changing app, if you own a mac. It allows you to navigate your OSX without using the mouse. Give it a try, you won&#39;t regret it :)

Change file modified and creation date/hour

Here&#39;s how to change a file&#39;s modified date:

touch -mt 201102260000 &lt;file&gt;

Where &quot;201102260000&quot; is year, month, day, hours, minutes all glued together (so 2011-02-26 at 00:00).

Also, if you want to change both the modified and creation date, then:

touch -t 201102260000 &lt;file&gt;

This works on OSX and (i&#39;m assuming, since touch also exists there) Linux/Unix.