Quick bits and pieces that could save you a lifetime!

Fixing App Transport Security error in iOS

February 08, 2019

When making a network call, Apple demands that all networking calls are . Now what does that mean? Secure connections means at minimum that you are using and not . One simple fix is just to add…

Removing all images in Docker

February 08, 2019

The way Docker handles images can't be relied on all the time. In some case you really need to get rid of any trace of an image you're using, just so your new environment variables are applied, and…

Easily pass data between Activities in Android

February 07, 2019

Android has this idea of in order to pass specific data between Activities. Intents are typically a little bit tricky to understand but essentially is just a bundle of data that all activities have…

Adding corners and shadows to UIView in iOS (Swift)

February 06, 2019

In a lot of design philosophies, you may notice that a lot of them like rounded corners as well as adding a dropshow onto the view. In iOS, there's no obvious way to achieve the functionality. This…

Implementing an Express middleware function to be called after route responses

February 06, 2019

This is needed in cases where you're looking to collect some data after a request was processed, whether it's simple logging, or collecting analytics or any other type of action. After response…

Creating Hilbert Matrices in Matlab

February 06, 2019

This is a very simple snippet, yet answers a commonly asked question. What is a Hilbert matrix? A Hilbert matrix is a square matrix with unit fractions as entries. This is the equation for every cell…

How to pass data between UIViewController (Swift)

February 05, 2019

One of the simplest tasks in iOS is being able to pass data between View Controllers. The idea is very simple and easy to implement but not be exactly clear especially if you are use to Android. Let…

Search by