Duplicating a tab in Safari

If you are a Safari user on Mac OS X, you may have noticed that it lacks a duplicate tab feature (such as the one in Google Chrome, when you right click a tab area).

While it would be nice to have this added directly into Safari, you can use the following key combination to duplicate tabs currently:

  1. Open/Visit the tab you want to duplicate
  2. Hit the combos: Command + L and then Command + Return (or Enter)

The first combo selects the location bar in Safari, whose default behaviour is to select the fully available link. The second combo asks Safari to open the selected link in a new tab. Together, these help you duplicate an open tab’s link into another new tab.

P.s. This technique will not result in the duplicated tab carrying the history of previous pages as it does in Google Chrome. It merely opens the current page in a new tab.

OS X El Capitan Upgrade Hangs

Just like it did when I upgraded from OS X Mavericks to OS X Yosemite a year ago, attempting an upgrade from OSX Yosemite to OSX El Capitan hung again in the same nondescript manner – a blank/empty screen with the pointer, for seemingly infinite period.

I tried to wait it out for a few hours (surely a 30% filled SSD shouldn’t make it need longer?), but that made no difference. The good bit is that this state is easy to recover from – just hold your power button down until the machine powers off, and then restart it (it will go back into OSX Yosemite or whatever old OS state you had running, without issues)

I ended up recalling the fix I did the last time, i.e. moving /usr/local out of the way, given I’m a heavy Homebrew user, and gave it a try again and the upgrade succeeded in under 20 minutes in the subsequent attempt.

Before the upgrade, I ran in the Terminal.app:

sudo mv /usr/local ~/local

And after the upgrade (with a brew update command just to be sure it is not broken after the move-back):

sudo rmdir /usr/local && sudo mv ~/local /usr/
brew update

Why your mobile data connection may not work on Mi4 (or other MIUI devices)

As a user of Airtel in India, and as a new Xiaomi Mi4 user, I found this issue as I began to use the phone wherein the mobile data connection (Mobile Office APN in Airtel’s case) would connect instantly, but simply not work in applications.

This is evident in the case of Google Maps, for example, which would never fix the location from the internet connection once you switch over from WiFi to mobile data connection when moving about.

The reason for this is perhaps due to a likely optimisation MIUI does, and a small bug in its APN management module. When using a new SIM, the interface tries to auto-configure your APNs for immediate connectivity, but ends up creating duplicated APN entries with the same name.

To fix this, head to your Settings application, and then head into the Mobile Networks option under it.

Mobile Networks under Settings application

Mobile Networks under Settings application

Within this, head into Access Point Names, and under it you can observe there may be duplicates for every entry present in it.

Access Point Names under Mobile Networks Settings

Access Point Names under Mobile Networks Settings

Duplicated entries inside Access Point Names list

Duplicated entries inside Access Point Names list

The solution is to delete the duplicates such as only one unique entry of every thing remains (i.e. only one of Airtel Live!, Mobile Office and even Airtel MMS). To do this, use the arrow icon on the chosen duplicate, and then use the More button to delete the APN via the presented option.

Delete the APN via the More button inside the duplicated entry details view

Delete the APN via the More button inside the duplicated entry details view

Hope this helps you get back your mobile data connectivity!

About a moto-scooter I own

I purchased a Honda Dio moto-scooter in August 2014 last year, mainly for work commute purposes and I’ve been trying to monitor its mileage performance for a while since then. This post is about my observations, and some mileage data that may help others quantify their own purchases. I’ve so far consistently gotten an average of 52+ kilo-meters, per litre of petrol, which is very satisfactory.

Below are some of the mileage charts from data I’ve collected via Fuelio app since March/April 2014 till August 2015.

View post on imgur.com

View post on imgur.com

View post on imgur.com

Some notes:

  • I try to brake as less as I can, preferring to drive slower instead when I can judge a signal or jam coming up, and gradually halting at such points when possible.
  • The lower two points of the Fuel Consumption charts represent a period of driving where I had to brake a lot more (more erratic driving style than usual).
  • I do my best to stay in speed limits, and in the economy range (35-45 km/h).

A fresh start

Welcome, whoever still visits here!

I’ve just changed hosting (thank you Surya for hosting me all these past years), and as you may notice, I cleared away all old content, for a fresh new start.

A lot has changed in my life over the last ten years I’ve run this personal website, so its time I also changed the content to focus more on the current.