HubSpot – Search Functionality for Blogs

On May 11, 2018, in Coding, HubL, by Dipin Krishna

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 a separate template for search page or in the blog-listing template. In case you are going to use in the blog-listing template, you will have to tweak […]

Tagged with:  

Excel: VBA Macro Code for Multi Select Drop Down List

On May 11, 2018, in VBA, by Dipin Krishna

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 column. The following VBA Macro enables the user to select multiple items from the dropdown list. The following are what the code does: 1. The items selected […]

Tagged with:  

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

On May 11, 2018, in Shell, Unix/Linux, by Dipin Krishna

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   sudo adduser TestUser 2. Change the ownership of TestUser’s home directory to root.   sudo chown root:root /home/TestUser 3. Edit the ssh config file   sudo vim /etc/ssh/sshd_config and […]

Tagged with:  
Tagged with:  

iOS Google Maps: Set Camera to show all Markers

On June 18, 2014, in Google, iOS, Objective C, by Dipin Krishna

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 the markers, but its now deprecated. So, you will have to keep track of the markers added to the map. Assuming that you have the following: GMSMapView […]

Tagged with: