Skip to content
Writing

Notes, fixes and guides.

Sixteen years of working notes on Linux and networking, Django and Laravel deployment, SwiftUI and AWS. Written down mostly so I can find them again.

Coding Jun 18, 2018 1 min read

PHP Error:0607A082:digital envelope routines:EVP_CI PHER_CTX_set_key_length:invalid key length

If you are trying to use an older version of PHP to connect MYSQL over SSL, there is a good chance that you encounter the following errors: error:0607A082:digital…

Coding Jun 4, 2018 1 min read

HubSpot Cookie Consent – Control the use of non-HubSpot cookies on your website

The HubSpot Cookie Consent banner sets a cookie name '__hs_opt_out' when you accept/decline the cookie consent. You can make use of the status of the consent to remove/allow…

Coding May 24, 2018 1 min read

HubSpot – Show the Privacy Cookie Consent Banner above the Body instead of an Overlay

When you enable the Cookie Policy in HubSpot you only have two options, either to show it as a top banner or as a bottom banner. The top…

Coding May 11, 2018 1 min read

HubSpot – Search Functionality for Blogs

This piece of HubL code can be used to search for a keyword in a single blog or multiple blogs. You can use the below HubL code in…

General May 11, 2018 1 min read

Excel: VBA Macro Code for Multi Select Drop Down List

This post assumes that you already have a data validation setup on all/few fields in a column which is now showing a drop-down for the fields in that…

Shell May 11, 2018 1 min read

SSH/SFTP: Create and Restrict a User to his Home Directory on a Ubuntu Server

This is a step by step guide to create a new user and restrict the user to his home directory. 1. Create a new user 7087136826aab381231dd5_000007 2. Change…

iOS Jul 14, 2015 1 min read

iOS Login and Signup Screen tutorial : Swift 2 + XCode 7 + iOS 9 + JSON

This tutorial will guide you to create a simple app with a Signup and Login screen which takes username and password from the user and then posts it to an url and parse the JSON response.

iOS Jul 31, 2014 1 min read

iOS Login and Signup Screen tutorial : Swift + XCode 6 + iOS 8 + JSON

This tutorial will guide you to create a simple app with a Signup and Login screen which takes username and password from the user and then posts it to an url and parse the JSON response. We will have three view controllers for this project, Signup, Login and Home.

Google Jun 18, 2014 1 min read

iOS Google Maps: Set Camera to show all Markers

The intend is to set the boundaries of the map to focus on all the markers. The 'GMSMapView' class used to have a method 'markers' which returned all…

Coding Mar 2, 2014 1 min read

iOS: Load custom UITableViewCell with Nib

Using the interface builder i created a custom 'UITableViewCell' named 'MyCustomCellNib', with a custom class file 'MyCustomCell' inherited from 'UITableViewCell'. This is code i used to load the cell with the nib.

iOS Dec 26, 2013 3 min read

iOS Login Screen tutorial : XCode 5 + ios 7 + Storyboard + JSON

This tutorial will guide you to create a simple app with a Login screen which takes username and password from the user and then posts it to an url and parses the JSON response.

iOS Jul 22, 2013 1 min read

iPhone(iOS) programming: Get Google Contacts

This tutorial walks you through on how to retrieve google contacts programatically.