My laptop turned 7 today

Friday, 13th April, 2018

I had purchased my current MacBook Pro on 13th April 2011. My primary & only computer. I use it daily for rigorous web development work & entertainment. Everything I have is because of this machine. It is still going strong.

Specs: 13-inch, Early 2011, 2.3GHz Intel Core i5 processor, upgraded to 8×2 1600 FSB DDR3 RAM, 320GB SATA HDD.

Issues: One single green vertical line on left side of screen, some grey smudge looking spots on one area of the screen, DVD player not working, card reader not working, internal audio is not good, color coating gone off from 8 keys, on its 2nd battery, on its 3rd power adapter.

So if your question is how long a Apple laptop will last, the answer is atleast 7 years. I am not even married that long!

Tiger Zinda Hai

Sunday, 8th April, 2018

Tiger Zinda HaiSaw it last night. Good movie. I like that they have shown nice things about Pakistan & its people. We need more love not hatred in the world.

Baby Driver

Sunday, 1st April, 2018

Baby DriverSaw it yesterday. A touch slow n boring towards the end. Good background music in various places though.

Love is in the air

Saturday, 31st March, 2018

I love my web host. I always link to their site using my affiliate link, and I have sent a few customers their way in the past. But their affiliate banner was a low resolution GIF image shown below. GIF Affiliate Banner

GIF banner they had

So I took it upon myself, got the SVG logo from their site, and recreated that affiliate banner in SVG format using Sketch. Close enough? SVG Affiliate Banner

SVG banner I created

The House

Friday, 30th March, 2018

The HouseSaw it yesterday. A bit low on comedy but okay.

Continuous, automatic Time Machine backups

Thursday, 29th March, 2018

SanDisk Ultra Fit 128GB

See that? Exactly!

So I sold my 1 TB Western Digital My Passport USB 2 external hard disk for dirt cheap to a student who came with 3 sketchy looking friends to pick it up.

Then I bought a 128 GB SanDisk Ultra Fit USB 3 flash drive. The thing is so tiny its almost invisible.

Now it is connected to one of the USB ports of my MacBook Pro for ever.

And Time Machine is taking regular backups to it automatically every few minutes. Backup A game!

Customize AMP pages on WordPress

Tuesday, 27th March, 2018

So Google’s Accelerated Mobile Pages project is gaining momentum. If you are using this AMP plugin made by Automattic on your WordPress site, it comes with a standard design for all the post types.

But if you are not satisfied with the layout & need to customize your AMP page design to make it stand out from the rest then here is how you can do that.

This is the relevant documentation for the above plugin, keep it handy, the customization page has code snippets you can use to insert elements in common header & footer.

To create a completely customized header, footer, single page or post etc:

  1. Navigate to your site’s “wp-content > plugins > amp > templates” folder.
  2. Here you will find the base templates that the plugin uses. Copy the template you wish to modify.
  3. Create a folder named ‘amp’ inside your currently active theme folder, put this template there.
  4. It will override the plugin’s template file. Now customize this file.

Adding custom fonts

You can add custom fonts from Google Fonts & more, font icons such as FontAwesome to your AMP pages in the <head> section by adding following code in the theme’s functions.php:

Adding custom CSS

You can add custom, internal CSS to the <head> section of a AMP page, but it is better to keep all those CSS rules in a CSS file inside the theme folder & then include that file’s contents in the <head> using the PHP include() function inside functions.php as follows:

Sleep better

Tuesday, 20th March, 2018

By giving a flying fuck about:

  • News
  • Social media
  • Credit card points
  • Fair weather friends


  • Delete social media profiles & apps from mobile
  • Put mobile in silent or flight mode before sleeping

Apple be cray cray

Monday, 19th March, 2018

So my MacBook Bro which is about to turn 7 in less than a month have had its multiple organs fail on me over the years. One of which was the audio system. Since a good few years the sound had decreased to a level where it was hard to hear & very coarse to bear, as if a tiny radio speaker was placed inside an empty tin jar, too feeble & pointless. I almost always had to use earphones to listen to something. I didn’t mind.

Last Saturday I took it to a free checkup camp at an Apple authorized service center. All they did was open up the back cover & clean the dust with a brush & vacuum cleaner.

Today I noticed the sound icon on the menu bar was completely greyed out. It didn’t show me ‘Internal Speakers’ as an sound output device in ‘System Preference > Sound’.

I thought this was it, my MBP had finally turned mute for ever. But I could output the audio to a earphone or a speaker connected via Airplay. So I switched between those 2 outputs for a while in the settings & then the internal speakers output option appeared again.

And now I hear the sound better than it has been in years! Its not back to like when the machine was brand new but its much better than what it was since past few years. Its a miracle & I am not complaining.