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… Read More »HubSpot – Search Functionality for Blogs
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… Read More »Excel: VBA Macro Code for Multi Select Drop Down List
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 add the following… Read More »SSH/SFTP: Create and Restrict a User to his Home Directory on a Ubuntu Server
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. Its the same previous tutorial for Swift + Xcode 6, but the source code has been updated to Swift… Read More »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.
We will have three view controllers for this project, Signup, Login and Home.
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… Read More »iOS Google Maps: Set Camera to show all Markers
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.
Create a New project. Create the Screens and the Segue/transition. Declare and Connect the properties and actions to the UI elements. Set actions for Background Click and text field Return events. Post data to URL and parse the JSON response. 2. Create the Screens and the Segue/transition. Add the labels, text fields and button to… Read More »iOS Login Screen tutorial : XCode 5 + ios 7 + Storyboard + JSON
This tutorial walks you through on how to retrieve google contacts programatically.
Swipe-to-Delete feature shows a Delete button when a user swipes horizontally across a row.
I wanted to copy all of the files and folders from my current host to my new server. And I only have FTP access to that current host. My new server is running Ubuntu, and i hated using the FTP command. But i had to some how download the whole directory of files. Can’t use… Read More »Use WGET to recursively download the whole FTP directory
intad.pag2p.co/dva1/int, sidepage.co and ui.streamride.net has been creating a panic to internet users around the globe. Everyone who first encounters it thinks that their computer is infected by a malware. This has made many users to replace/reinstall their OS (and losing many data). But, the actual culprit is your ISP (Internet Service Provider). The ISPs has… Read More »intad.pag2p.co sidepage.co streamride.net, are they Malware?
This is a tutorial on how to send an email with attachment via Gmail SMTP. Here i am using Email::MIME to create the email/message object. Email::Sender::Simple (sendmail) is used to send the mail with the help of secure transport provided by Email::Sender::Transport::SMTP::TLS. The sample script below sends an email with two attachments and a text/html… Read More »Perl: Send an Email with attachment through Gmail SMTP
I was working on a rails app and i had a huge amount of data in my local Postgres database. This is what i did to import data into the database at heroku from a dump file of my local database.
We can easily set/change the call forward number on gsm Android phones.
Here i am showing you to change/set the call forward number for “Unconditional forwarding”.
Recently, i was working on an existing rails app hosted on Heroku.
After making few updates to the code, i was wondering on how to get it updated on Heroku.
This is what i did on my ubuntu machine.
This is a tutorial on how to send mails via Gmail SMTP with authentication using ruby.
Email::Simple is the first deliverable of the “Perl Email Project.” The Email:: namespace was begun as a reaction against the increasing complexity and bugginess of Perl’s existing email modules. Email::* modules are meant to be simple to use and to maintain, pared to the bone, fast, minimal in their external dependencies, and correct. Email::Sender replaces… Read More »Perl: Send an E-Mail using Email::Simple and Email::Sender
Backup pg_dump is the utility i am using for backing up a PostgreSQL database. It makes consistent backups even if the database is being used concurrently. pg_dump does not block other users accessing the database (readers or writers). Restore pg_restore is the utility i am using for restoring a PostgreSQL database from an archive created… Read More »PostgreSQL: Dump(Backup) and Restore a Database