Tag Archives: apple

MacBook Air: How to Update Node.js Tips, Tricks and Tutorials 14 MAR 2017

Ugh. I needed to fire up the loan MacBook Air to do an iOS compile of my recently completed Appcelerator app. Naturally, I started off on the wrong foot by not recalling the MacBook’s password (luckily I found that I had mailed it to myself some time ago, so I did eventually get in). Then Appcelerator moaned that it needed an update, which failed because it needed a newer version of Node.js to be installed.

So off to Google I once more marched, the result of which I am now jotting down here as a future reminder: How to Update Node.js on a MacBook Air.

As it turns out, updating node.js is a pretty quick affair: First, fire up a terminal (which again I needed to march over to Google in order to learn how to do), and then run the following commands:

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

Note the use of sudo to run these commands. Essentially we are first force clearing the npm cache, then installing and upgrading node to the latest version.

Related Link: MacBook Air | Node.js

A note on Apple’s Timing
[Partner Content] 14 SEP 2016

Amazing timing for Apple, am I right? As we are approaching the 16th of September, I just had to mention what’s going on in the news. Apple certainly struck it lucky in terms of the timing of their iPhone 7 and 7 plus devices hitting the shelves!


After all, it’s only been a short while since they revealed their wireless Airpods which got absolutely ridiculed. OK, fair enough, absolutely ridiculed might be exaggerating a little too much, but having gone on for about 5 months talking about how brave it is to go wireless across the board with their new phones, the very first, perfect, accessory that Apple offers for these wireless headphones are… wires! You really can’t make this stuff up.

Nevertheless, you have to give it to them. They have great timing.

Around the same time as when the first Airpod news starts spreading, Samsung had a serious exploding battery issue and needed to recall about 2.5 million waterproof high-end Galaxy Note 7 devices from about 10 countries – and are now dealing with the fallout of this across the board.

Seriously though, the iPhone 7 really does look to provide some serious upgrades on the already well performing iPhone 6/6s. If you are a fan of the 6s, moving up to the 7 is going to be a smooth transition as it basically is the “case of ‘fast’ versus ‘stupidly fast’” marking the difference between them. The Apple A10 Fusion chipset really is taking it to the next level in terms of performance and usability.

True, speed isn’t everything, but the side-effects of the increased speed are actually increased longevity and an overall positive shift in user interface with the device. You don’t have to go far back in time to find smartphones that had really clunky interfaces and performance so bad that one could barely play… Angry Birds, for example. These upgrades should really allow for the gamers out there to hit the sweet spot!

So yes, thanks to Samsung’s blunder, Apple’s timing worked out just right!

Mac OS X: Hunt Hard Drive Disk Space Hogs with Disk Inventory X Software & Sites 01 MAR 2016

Software development tools are often quite large and clunky, meaning that software developers often face the prospect of running out of hard drive disk space on their work machines.

I’m particularly fond of applications that use “treemaps” to visualize disk space usage, and have in the past mentioned how great Uderzo Software’s SpaceSniffer works when trying to figure out where and what to delete on a Windows machine. (If you are on Linux, then either KDirStat or QDirStat will do the trick!)

disk inventory x

Having to now publish Appcelerator apps to the Apple App Store for use on an iPad, I’ve been handed a MacBook Air (pretty little thing, but can’t say I’m a fan of the interface), and almost instantaneously ran into a space issue triggered by my installing of some development tools.

Naturally, completely new to the Apple environment, I had no idea where to even start looking for the most likely space hogging culprits!

Pleasingly, following a little time spent with good friend Mr. Google, I stumbled across Disk Inventory X, which bills itself as a disk usage utility for Mac OS X 10.3 (and later) and which uses treemaps to show the sizes of files and folders – in other words, exactly what I was looking for!

I downloaded and ran the software, and wouldn’t you know it – turns out that Android SDK had already pulled down more than 30GB of SDK related files.

Sigh, at least I now know where to start chopping…

Related Link: Disk Inventory X

What is my iPhone’s current IP Address? CodeUnit 28 MAR 2011

To find out what the current IP address assigned to your iPhone is turns out to be pretty simple if you know where to look.

First, select Settings from your SpringBoard. Next, select Wi-Fi from the resulting Settings menu. This results in a list of available networks being displayed under the Choose a Network… label. To the right of each listed network is a right-arrow icon. Find the network you are currently connected to in the list (it has a tick next to it) and click on the right-arrow icon.

This will bring up the detailed network information, listing among other things the IP address your iPhone is currently assigned with from that network’s DHCP server.


How to Hard Reset an iPod Nano CodeUnit 03 MAR 2011

I have a shiny red 4th generation 4GB iPod Nano (special HIV/AIDS edition) that was gifted to me on my parting from Commerce I.T. after 7 years of loyal service to them. It’s a great little MP3 and video player, perfect for the gym in fact.

So you can imagine my frustration in getting home after a long day at work, whipping out the iPod Nano from my gym bag in order to update its track listing, only to find it completely dead as a doornail.

Totally bricked.

Crap. Despondent, I lamented the issue of FaceBook and within a couple of minutes, my phone rang with my brother on the line. “Have you tried doing a hard reset yet?”

Eh? While not listed in the manual, there is in fact a way to reset your iPod Nano which should hopefully allow it to restore itself to working order and get out of its brick-like crash mode.

To perform the reset is remarkably simple once you know how. First, lock the iPod and then unlock the iPod in the usual fashion. Once unlocked, press and hold both the top menu button as well as the centre circle button together for about 15 seconds. At the end of this period, the Apple logo should show up on the screen.

A couple of seconds later, you will be back in action, ready to be entertained as if there was nothing ever wrong in the first place.


Convert M4A to MP3 Music Files General Nonsense 05 MAR 2008

iTunes has been around since 2001 now and as an anti-Apple person myself, I’ve pretty much avoided it from the get go. However, I was finally forced to accept defeat, download and install the software after finding myself in possession of more and more .m4a music files.

The reason I conceded defeat and installed this admittedly rather good piece of software is because I like uniformity which means my music file compression of choice is the trusty old MP3 format. Now iTunes has the nifty feature of being able to convert between a number of different formats, including the m4a to mp3 conversion that I am interested in (in fact, iTunes 7 can currently read, write, and convert between MP3, AIFF, WAV, MPEG-4, AAC, and Apple Lossless. It can also convert unprotected WMV to MP3).

So, in order to convert your .m4a files to .mp3 files simply follow this process:

1) Go to the main menu and navigate to Edit -> Preferences. Once the preferences dialog box appears, click on the Advanced tab. Under the Advanced tab, go to the Importing sub-tab. The second dropdown box is labelled “Import Using:” and you need to set this to MP3 (or whatever other format you want to convert to). The “Settings” label allows you to adjust the quality of the generated files.

2) Once you have changed the preferences, simply navigate to the songs you wish to convert, select and right-click. You will see the “Convert Selection to MP3” option on the context menu. Select that and sit back, brew some coffee and wait for the conversion process to finish up.

Sorted. If you couldn’t follow the words completely, I’ve included to images to help you out. Simply click on them to enlarge.

iTunes1 Smaller iTunes2 Smaller
For more information on MPEG-4 Part 14, see: http://en.wikipedia.org/wiki/.m4a
For more information on iTunes, see: http://en.wikipedia.org/wiki/Itunes