Filter posts on Facebook – Browser plugins

Facebook doesn’t allow its users to filter the content of the newsfeed. Rather it chooses on its own what it wants us to be brainwashed with. You remember about the much criticized news of facebook feeding users with depressive content intentionally and called it a “study”. Anyhow, there are some great browser extensions to achieve this […]

Electron – Getting Started

Electron is a beautiful opensource framework, developed by GitHub. This was originally named Atom Shell, as it was developed to develop the atom editor by github. It’s based on node.js and chromium browser. In this tutorial, we will cover how to get started with electron framework to create a hello world desktop app. Steps for […]

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 3.0.1

Rounding a Double in swift 3.0.1 is quite simple and easy. 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 8.2 using swift 3.0.1 […]