Server to Dropbox – Sometime it is tedious to download files from your server and then uploading to your dropbox via sync since it takes long time. In this post I will show you how you can quickly transfer files to…
Category: Miscelleneous
Making new object property reactive in Vue.js
The link given below shows us the example of using mutations and actions and Vuex store https://www.telerik.com/blogs/so-what-actually-is-vue-set for simpler examples if you are not sure what they are. Problem: We have a “databases” array which is updated via mutation and…
How to prevent hotlinking on Nginx and Apache
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…
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.