Babel transpile ignoring native Javascript

I was thinking today that we want Babel to ignore transpiling native JavaScript available in Node.js.

You could whitelist or blacklist what you want Babel to transpile and a few people list options in the comments here.

Babel 6 now does nothing by default, but there doesn't seem to be any Node.js version specific presets mentioned on the Babel page.

Read More

Are Google Dropping the Ball with Android

I've been using Android phones for a while now. Lately however, it has been a pot of boil and trouble. Lollipop issues, Kit Kat issues, Hangouts and Chrome issues spring to mind. It's time to try something else as outlined below.

Nexus 4 Problems

I have a Nexus 4 which was running great on Kit Kat. I made a fairly early move to Lollipop and was hit by early mover issues like many others. Okay, this is somewhat expected with a new release.

Read More

Moving to a MacBook from Windows

Yes, MacBook to PC, or OS X to Windows makes more sense, but whatever you want to call it, I finally caved in and bought a MacBook (well a few weeks ago now).


Well every other developers seems to have one in all the videos I watch, so I decided I better have one too... just kidding. Well, kidding about the reason, but seriously, it is a sea of MacBooks in most online videos I watch.

Read More

npm Set Visual Studio Compiler Version

Node.js or io.js will sometimes require a C++ compiler to build packages for you. On Microsoft Windows you can use Visual Studio. The newer free Visual Studio Community or the older (and also free) Visual Studio Express editions should get you going if you don't have a commercial copy of Visual Studio.

To check the compiler npm is configured to use try:

npm config list

Read More

Visual Studio 2015 RC Hanging on Android SDK install

My Visual Studio 2015 install was still going after about 3+ hours on the Android SDK. It seemed like it had hung.

To figure out what is going on, I looked in the %temp% directory and there is a file called AndroidSDK_SI.log. Opening this log I could see that the install was still happening. The problem was how long it was taking. It sped up significantly after I stopped Star Citizen updating!

The Visual Studio installer could really do with a better feedback mechanism to let you know that something is still actually happening. Some animated dots aren't very convincing after several hours. Even an advanced GUI option to display the output of the currently executing log file in a text box would be useful. The Android SDK log was quite useful as it showed percentage of the download, download speed and estimated times.

Read More

Redirecting Users Based on their Country IP Address

I can't sleep, so it's time for a rant about redirecting users based on their country IP address.

Just because I am in a country, does not mean I want to be shown a site in that countries language! Okay, some of you might be thinking this sounds perfectly reasonable, because most people in country will be able to read that language. Well, I am here to let you know you are wrong ;)

So what is the correct solution to choosing which language to show your website visitors?

Read More

Best Large Archive Format to Extract Files

So sometimes you just want to extract some files from a large archive. It might be a bit late now, but tar.gz is probably not the best archive format for huge archives and removing specific files. It can take a long time to find the file you want and extract it.

Formats like zip (and 7z?) know where the file is located in the archive and can extract it quickly (compared to tar.gz). In the comments of this article some people talk about the length of time tar.gz can take, eg 4 Gig file, 25 minutes.

According to this StackOverflow article, zip, 7z and dar (in non solid mode), can also extract files more quickly from a remote source. They have a list of files and can archive in segments to allow extraction without requiring the whole archive to be unarchived. tar by itself does no compression and harks back to the days of tape drives (tar is short for tape archive) where this is not really important as they use sequential reads.

Read More

Mobile Friendly Website - Google Changes Ranking Algorithm

Making your website mobile friendly is about to become even more important! Google has announced an algorithm update that will go live on the 21st of April. Website mobile-friendliness will become a ranking signal and significantly impact search results.

They have also provided a webpage to check if your website is mobile friendly, although it seems pretty basic. You are probably better off checking out the Google PageSpeed Insights page to get a better idea of what Google thinks of your mobile friendly website capabilities. If you have a Google Webmasters account, you can also check your mobile-friendliness report here.

Read More

Google PageSpeed Insights Comparison - SEO Diary

Google PageSpeed is another good test for the websites in our SEO Diary.

DateSiteBrowserSpeed / 100Sever ResponseUser Experience / 100
8 April 2015RationalDevMobile670.66s99

Below are the original issues identified on the 8 April 2015. We'll see how many we can fix.

Read More