Hotlinking is bad – It could be quite annoying and concerning when someone copies full link to a media source such as an image or video on your website and uses that link to embed an image or video on…
Category: Miscelleneous
How to run URL from cronjob at specific time in Linux
Cron allows Linux users to run commands or scripts at a given date and time. Here I’m going to explain how to setup cron job in Linux in which you want to run URL at specific date-time. Each user has…
Traversing through Elements using jQuery
jQuery is a very powerful tool that provides various traversing methods to select the element randomly and sequentially. With jQuery selecting and finding an element becomes very easy. But at times, we may wish to improve the selection and when…
Get Started with Vi Editor
Vi editor is a command line text editor. It’s a single window with text input and output only. It is the most popular and classic text editor in the Linux and it is available in all Linux Distributions. There are…
Creating Custom Shortcode in WordPress
With a lot of customization with the theme WordPress also provide us to create our own Custom Shortcode. Basically, shortcodes are the small piece of code which let user to add dynamic content in WordPress posts, pages or sidebar widgets.…
LocalStorage in JavaScript
LocalStorage is a type of web storage that allows JavaScript websites and apps to store and access data right in the browser with no expiration date. This means the data stored in the browser will persist even after the browser…
Fixing “SSL operation failed” email issue in cakephp 3.8
Sending emails from a CakePHP application is simply a piece of cake. Here is the basics according to Cakephp documentation. Here is the basic configuration in config/app.php 'EmailTransport' => [ 'default' => [ 'className' => 'Smtp', 'host' => 'smtp.xxxxx.com', 'port'…
How to create a “toggle switch” (on/off button) with CSS and html
The following example demonstrates creating a simple toggle switch using plain html and css.
Linux commands to list folders with their corresponding sizes
Simple du command lists all folders with their corresponding size of disk plus to start with. DU – Disk Usage
Dropzone Child elements are not clickable for upload
When attaching the .dropzone() object via jQuery, generally it does not allow you to click child elements and open the upload dialog.