Apache
Bash
CSS/HTML
Git
JavaScript
jQuery
Laravel
Linux
MySQL
Nginx
PHP
Programming
Regex
Tools
Uncategorized
Vue.js
WordPress

The Orthodromy Formula

Definition An orthodromic or great-circle route on the Earth’s surface is the shortest possible real way (distance) between any two points. The Formula Ortho(A, B) = r x acos[[cos(LatA) x [...]

The Haversine Formula

Definition The haversine formula is an equation important in navigation, giving great-circle distances between two points on a sphere from their longitudes and latitudes. The Formula a = [...]

Calculating distance using MySQL

One of the cool things about MySQL 5.7 is the fact that it supports a few spatial convenience functions (since 5.7.6), allowing one to do operations on geometric values. One of those convenience [...]

Cheat Sheet for Linux Admin Starters

The below are the most important Linux commands that is needed for Linux Adminstrators on their day2day work. Vi Cheat Sheet :set smd // Show Current mode "Command / Edit / Append". :%s/the/THE/g [...]

Tips for Using Laravel’s Scheduler

Laravel’s task scheduling features are well documented and give you the full power of cron in a fluent API. The documentation covers most of what you need to get up and running with the [...]

The most useful php composer commands

Composer is dependency manager for php package. PHP developers are known about packagist and composer. Most used php composer commands that will be helpful for you. # require require is the most [...]

Redirect www to non-www URLs

If you want redirect users from www to a plain, non-www domain, insert this configuration in your .htaccess file: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] [...]

Redirect non-www to www URLs

If you want redirect users from a plain, non-www domain to a www domain, insert this configuration in your .htaccess file: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www\. [NC] [...]