Quora 504. Gateway Timeout error

Today I’ve been noticing 504 error a lot on Quora. It happened earlier, got better but it’s there again now. Maybe their servers are experiencing some attack or there is some server configuration issue! The error says: 504. Gateway Timeout. Quora is temporarily unavailable. Please wait a few minutes and try again. Did you notice this […]

Stackoverflow Interface Updated

Stackoverflow has updated their front end interface today. The new interface looks like this image: The main change is in the header. The notifications are moved to the right side and the top menu bar has changed in design and sequence too. Do you like the new interface by stackoverflow and other sites of stackexchange?

Swift timer example – Repeat action

This tutorial will go through how to make an action repeat itself after a specific interval of time as a swift timer example. This code is written and verified on macbook pro using: XCode 8.2 Swift 3.0.2 MacOS Sierra 10.12.2 How to make an action repeat using Timer in Swift Lets understand swift 3 timer […]

Show notification in cocoa xcode app using Swift 3.0.1

This tutorial explains how to show a notification on macOS app. This code will work for a cocoa app built using xcode using swift 3.0.1. This code is written and verified on macbook pro running: XCode 8.2 Swift 3.0.1 MacOS Sierra 10.12.2 How to show notification in cocoa xcode app using Swift 3.0.1 Follow these […]

PTCL not Working in Pakistan

PTCL and Ufone are down in many cities across Pakistan today. Irony is, their helpline 1218 isn’t working either and says: number kisi k istemal mai nhi hai (The number is not being used by anyone). The worst and pathetic way is to turn off your helpline altogether! wow! PTCL published on their official facebook […]

Quit Cocoa App when Window Close using XCode Swift 3

The default behaviour of XCode Cocoa Mac OS app is that when the window close button is it, it simply closes the app window. However the App doesn’t quit. Which means that the app is still running and when we try launching it again, nothing will happen. We have to manually quit the app (e.g. by […]

Download iWork for Free Officially (Pages, Keynote, numbers)

Very few people know that they can download latest version of iWork for free in 2017, officially. When I started looking for downloading iWork on my recently bought macbook pro, it was all confusing. I went to the mac app store and it didn’t show any free option to download the iwork apps (including pages, […]

Rounding Double in Swift

Rounding a Double in swift is quite simple and easy (tested up to swift 5.1). We simply need to use the round() function provided by swift. The example below will demonstrate how to use this function effectively, while keeping your number still a Double (without changing the type). This example has been tested in xcode […]

Stride Swift 3.0.1

Stride is an amazing and special feature in Swift (language by apple) which replaces the conventional c-style for statement loops. Stride() is used to loop over a range of numbers. This range can be moved using any increment. Lets look at three examples to understand three possible applications of stride in swift 3.0.1 code. Conventional […]

How to Reinstall mac OS Sierra

There might be some situations where Macbook or Macbook pro users may need to reinstall macOS Sierra. This can either be done as a troubleshooting technique only or for any other reaons that require them to reinstall Sierra as well. Our method will re-install macos sierra without erasing the data or formatting your MAC hard […]