Fans won’t stop spinning at high speed on retina macbook pro

I had this issue today where both fans in my rMBP spun up to full speed and would not stop. I checked the processes in activity monitor and CPU usage was very low so that wasn’t it. I live in Ireland so ambient temperature wasn’t the culprit either!

The problem persisted through a restart, which was worrying but a manual sleep and resume fixed it.  To do this click the apple button, choose sleep, wait for it to turn off and then press a key to wake it up.

Posted in Annoyances, Mac | Tagged , , , | Leave a comment

Getting cheap nicotine gum in Ireland

I usually only blog about technical things but here’s one that is personal. I quit smoking in late 2012 and I have been using nicotine gum to help keep the cravings at bay.  I thought that paying ~€33.36 for a pack of 105 gums was decent value until I saw what they cost online…

Continue reading

Posted in Personal | Tagged , , , , , | Leave a comment

Using Android’s external storage effectively and judiciously

All Android devices offer the user some form of external storage. The storage may be a separate partition of flash memory in the device or bone-fide external storage like an SD-memory card.  As developers we need to be aware of the pros and cons of using this type of storage.

Continue reading

Posted in Android, Android snippets, Annoyances, Commentary | Leave a comment

Making the Android SDK suitable for multiple users on OS X

Intro

This guide will explain how to share the Android SDK between multiple users on an OS X system. Most of the concepts will be similar on other Unix or Linux systems.

Disclaimer

I dont think this would work for multiple concurrent users updating the SDK.  This blog post is more about the journey of making the SDK more suitable for multiple users rather than an endorsement of the methods below.

Continue reading

Posted in Android hacking, Development, Mac | Tagged , , , , , | Leave a comment

Quickly toggle between standard and special F keys on OS X

By default OS X assigns special actions to F keys like

  • F1, F2: Brightness
  • F3, F4: Dock, Expose
  • And so on…

These are great when you’re browsing and consuming media but when you start working in IDEs and other applications with complex keyboard shortcuts I want the F keys to behave like standard F keys.

This behaviour can be changed easily under ‘Keyboard‘ in ‘System Preferences‘, but changing this frequently is annoying and time consuming.

I found an app called Paula that could do this but it wasn’t free and I thought that this would be something that would be easy to automate.  I spent a few minutes looking at AppleScript and pushed it to GitHub which is simple but does the trick for me. Maybe it’ll be good enough for you too.

Disclaimer: I only tested this on OS X 10.8.3 but it should be easy to adapt the script to work with other versions too.

Posted in Annoyances, Development, Mac | Tagged , | Leave a comment

Setting JAVA_HOME on OS X using the java_home tool

OS X has had a very useful utility, since 2003, that allows you to easily generate a path to a JDK.  The simplest usage of the tool will return the default JDK, which in my case is update 17 of JDK 1.7.

➜ ~ /usr/libexec/java_home 
/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home

Continue reading

Posted in Development, Mac | Tagged , , , | Leave a comment

When Chrome’s search predictions stop working…

I had been experiencing this problem recently where I would no longer get search suggestions in Chrome’s omnibar.  The type of completion that was not working was the one where you might type ‘great’ and be offered ‘great wall of China’, and not a suggestion from your bookmarks or history.  Note that this solution is based on using Google as your search engine although others may work similarly.

Continue reading

Posted in Annoyances | Tagged , , , | Leave a comment