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 […]

Evo Wingle not connecting issues

There might be various reasons due to which your evo wingle is not working properly. In this post we will see various steps to troubleshoot the evo wingle 3g not connecting and how to fix the evo wingle connection failed issues. Following are the most common issues due to which the ptcl evo 3g don’t […]

Add Subdomain on Nginx

This tutorial explains how to add a subdomain on nginx server to your already existing and running nginx server. How to add a subdomain in nginx using terminal Nginx treats a new subdomain as a new entity, so basically the process of adding new subdomain is similar to adding a new domain name to your […]

How to create whatsapp group link

Whatsapp has launched the feature to generate a link for your whatsapp group and share it on web. Anyone who clicks the link can join the group without any admins adding them to it. This is really awesome feature for public groups for getting public into the group faster and more easily. How to generate […]