Ramblings Of a Madman

Yeah, like i would know a good description…

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 :)

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.

Apple iPhone event 2012 in bullet points

Running the risk of spoiling some things, i think i&#39;ll start with some of my favorite quotes from the live event :) Gizmodo on Jony Ive&#39;s video: &quot;It&#39;s like saying you&#39;ve been completely redesigned when you come back to eight grade two inches taller.&quot; &quot;He&#39;s talking about the phone has been &quot;completely redesigned,&quot; which is a very loose definition of either &quot;completely&quot; or &quot;redesigned&quot;.&quot; Engadget on the earpods: &quot;Showing the old earbuds now, over 600 million have been shipped already to ruin 1200 million ears.&quot; Gizmodo on Siri: &quot;I&#39;m looking forward to the 2024 iPhone event when Siri&#39;s finally sentient.&quot; - And now the juice...

iPhone 5

Official name

Entirely in glass and aluminum (looks like the leaks)

Thinnest phone apple has made (7.6mm) 18% thinner than 4S

Weighs 112 grams 1/5 lighter

Retina display 326 PPI

4 inch display 1136x640 (16:9 aspect ratio)

1 more row of icons on start screen

Letter boxing for old apps

44% more color saturation. Full SRGB color spec

Integrated touch sensors into the display (thinner more glare-resistant)

LTE (4G) support

Voice and data on same chip (less space)

Automatic antenna switch, better signal

WIFI 802.11a/b/g/n 2.4GHz, dual channel 5GHz. (Ultrafast wireless -&nbsp;up to 150Mbps)

A6 chip (2x faster CPU, 2x faster graphics, 22% smaller)

8 hours 3G talk time / 225 hours standby / 10 hours wifi / 8 hours LTE browsing

8MP sensor camera

Dynamic low light mode

40% faster photo capture

Panorama photos (28MP images)

&quot;Hit a button, swipe your phone around, boom giant picture.&quot;

1080p HD video. Video stabilization. 10 face detection.

720p front camera. Video stab. face detection.

FaceTime over cell networks

3 microphones (front, bottom, back)

Noise canceling earpiece

All the components getting smaller to make room for what needs to be bigger (battery)

Smaller connector cable called lightning (80% smaller, reversible - space reasons - only charges)

Some speaker brands working on lightning compatible devices

30pin to lightning adapter exists

Black and white versions


$199 for 16GB/$299 32GB/$399 64GB.

$99 16GB iPhone 4S

Preorder Sept 14

Shipping Sept 21. US Canada UK, France, Germany, Australia.

One week later to more countries. Fastest phone rollout ever. (sep 28 - Portugal included)

Free upgrade to iOS 6 on Sept 19

iOS 6

Share photo streams (likes/comments from friends)

New maps app

100 million POIs

New info card for restaurants

Turn by turn nav (wait for reviews)

No walking or subway directions yet

Satellite 3d imagery

Cinematic camera angles fly you around

Notification center improvements

Safari fullscreen mode

iCloud tabs (recover any tab you have open on ANY device)

VIPs in mail (special box)

Dynamic mailboxes for flagged messages

Passbook (airline boarding passes, movie tickets, coupons, etc) - shreds cards already used

Lock screen shows pass when you get to venue to use it

-Photos you take and share popup on your friends&#39; iPhones (likes and comments possible)

Siri improvements

Facebook integration in siri (post to wall)

Overall more than 200 new features

iPhone 3GS will run iOS 6


New iTunes store on the iPad

Facebook &quot;like&quot; on all product pages

Completely redesigned (improved performance)

Preview while browsing (songs)

Better search results

Cleaner interface, no sidebar

iCloud builtin

iTunes store: concerts for artists

Available in &quot;late October,&quot; so after iOS 6

ipod nano (7th gen)

More like the older, longer nano

Very small, longer screen

Aluminum body, plastic front

5.4mm thick (1/3 thinner)

Looks like a mini iPod touch

Lightning connector

2.5 inch multitouch display

Physical controls on the side

FM tuner (with live pause)

no iOS

Widescreen video

Fitness and pedometer built in

7 colors

Stream audio from the nano


iPod Nano is $149

Available in October

iPod touch (5th gen)

6.1mm thick (thinnest iPod touch ever)

88 grams

4 inch retina display

Widescreen video

Lightning connector

A5 chip (dual core cpu for iPod touch for the 1st time)

2x faster cpu and 7x faster graphics than previous gen

40 hours of music playback

8 hours of video playback

iSight camera (5MP)

Same five element lens as iPhone 5 (and sapphire crystal)

Panorama feature

Shared photo streams (iCloud)

iPhoto available for the touch as well

720p HD FaceTime camera. Back illumination.

Wrist strap (seriously?)

1080p HD video recording with stabilization and face detection

iOS 6

Siri on the touch

802.11 a/b/g/n Wi-Fi bump

Airplay mirroring

5 colors &hellip; with matching wristband :)

4Gen iPod Touch still exists - $199 for 16GB, 32GB for $249.

New touch $299 32GB and 64GB for $399

Available in October

ipod Shuffle

7 new colors


iPod shuffle: $50

Available in October

New headphones :&nbsp;Earpods

3 years in design

Controls bigger and easier to use

Exactly like what was leaked a couple of weeks ago

Shaped like your ear, but does not seal it

Will be standard with Touch, Nano, and iPhone 5

Available today

And there you have it. Basically specs bumps and not a lot more. I fail to see, this time, why this warranted the spectacle of an Apple event. Maybe Apple is becoming just another company, which is a shame.

Update server not available (error- 12) on OSX

Here's the definitive fix for this annoying-as-hell problem:

1. Run the following on the command line: sudo /Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resources/GoogleSoftwareUpdateAgent.app/Contents/Resources/install.py --uninstall 2. Restart Chrome.

Taken from here.


SecuritySpy Control

Yesterday i made my first attempt at selling an Android application on the Play Store. Knowing both the Apple Store and the Play Store, i can't help thinking that the latter was a much more pleasant experience than Apple's. Maybe because of the underlying web technology, or the fact that the pages loaded faster, or simply because the number of steps was lower and their explanation was much more trivial, i have to admit that i prefer Google's experience.

In any case, this is purely from a merchant developer's perspective, it has nothing to do with the stores' experiences to the customers. In that regard both Apple and Google did a fantastic job. Google even went the extra mile allowing you to purchase stuff on the web store and "telling" your device to install it automagically. I, for one, love that feature.

That's it. This was mostly a comparison post and, at the same time, an experiment for my new multisite blog installation with both English and my native language, Portuguese. If you click the flag on the left sidebar you should be transported to the same post in a different language. Fingers crossed ;)

How to get the "watch" command line tool on OSX

1. Download it. curl -O http://sveinbjorn.org/files/software/watch-0.3-macosx.zip 2. Unzip and move into folder.

2. Make file executable. chmod +x watch 3. Move it to somewhere in $PATH. sudo mv watch /usr/local/bin/ 4. Done.


Nice tweaks for OSX

I think most of them work on both Snow Leopard and Lion. Not sure about previous versions. Just type the ones you want to activate/deactivate on the command line and have fun. # Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs) defaults write NSGlobalDomain AppleKeyboardUIMode -int 3

# Enable the 2D Dock defaults write com.apple.dock no-glass -bool true

# Disable menu bar transparency defaults write -g AppleEnableMenuBarTransparency -bool false

# Expand save panel by default defaults write -g NSNavPanelExpandedStateForSaveMode -bool true

# Expand print panel by default defaults write -g PMPrintingExpandedStateForPrint -bool true

# Disable shadow in screenshots defaults write com.apple.screencapture disable-shadow -bool true

# Enable highlight hover effect for the grid view of a stack (Dock) defaults write com.apple.dock mouse-over-hilte-stack -bool true

# Enable spring loading for all Dock items defaults write enable-spring-load-actions-on-all-items -bool true

# Disable press-and-hold for keys in favor of key repeat defaults write -g ApplePressAndHoldEnabled -bool false

# Disable auto-correct defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false

# Disable window animations defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false

# Disable disk image verification defaults write com.apple.frameworks.diskimages skip-verify -bool true defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true

# Automatically open a new Finder window when a volume is mounted defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true

# Avoid creating .DS_Store files on network volumes defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true

# Disable Safari's thumbnail cache for History and Top Sites defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2

# Enable Safari's debug menu defaults write com.apple.Safari IncludeDebugMenu -bool true

# Remove useless icons from Safari's bookmarks bar defaults write com.apple.Safari ProxiesInBookmarksBar "()"

# Disable send and reply animations in Mail.app defaults write com.apple.Mail DisableReplyAnimations -bool true defaults write com.apple.Mail DisableSendAnimations -bool true

# Disable Resume system-wide defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false

# Enable Dashboard dev mode (allows keeping widgets on the desktop) defaults write com.apple.dashboard devmode -bool true

# Reset Launchpad rm ~/Library/Application\ Support/Dock/*.db

# Show the ~/Library folder chflags nohidden ~/Library

# Disable local Time Machine backups sudo tmutil disablelocal

# Kill affected applications for app in Safari Finder Dock Mail; do killall "$app"; done

# Fix for the ancient UTF-8 bug in QuickLook (http://mths.be/bbo) echo "0x08000100:0" &gt; ~/.CFUserTextEncoding The original source can be found here.