Quick bits and pieces that could save you a lifetime!

Pain-Free PostgreSQL Setup in Docker

February 22, 2019

Docker is cool! When using official Docker images, you can instantly have services up and running. A service that I use very often is PostgreSQL. It is a very powerful flavour of SQL, and thanks to…

Securely store credentials safely in iOS

February 20, 2019

If you're building an app chances are it requires some sort of authentication. Typically you would perform network calls an pass in a token that you've stored after login and it persists through the…

Get the number of rows in a table in SQL

February 20, 2019

Regardless of the flavour, SQL databases come with many useful aggregate functions that can come in handy and save many lines of code in your queries. One of these functions is the function. Here's…

Solving in the Lonely Integer Problem in Swift

February 19, 2019

Suppose you have an array of elements (integers), each element in the array occurs twice in the array except for one. How would you find that one element? Constraints: Complexity Space (Means no…

Detecting NSFW images with CoreML

February 18, 2019

You're making an app that allows people to upload images, perhaps even setting a profile photo, and you don't want to continually moderate inappropriate images. Luckly, with XCode 10 and iOS 12 you…

Playing music using AVPlayer

February 17, 2019

A common task in a typical iOS Application is the ability to play a particular sound. In order to do so, you will need to leverage and in order to download a song/sound from the internet and play…

URL Escaped String (Swift)

February 16, 2019

When performing networking operations in iOS, it is useful to be able to url escape and convert strings into objects. Below is a helpful extension to achieve that functionality: Usage:

Search by