Get hash value from URL using Jquery

Get hash value from URL using Jquery We can get the hash value from a URL using the window.location.hash method in jquery. For example, let’s try to get the hash value from the url below. www.example.com/index.php#hashvalue var hash = window.location.hash; if(hash){ alert(hash); // this will alert the hasvalue }

Format number with leading zero

Format number with leading zero You are having some number which should contain eight digits in it as the registration number. So for the first registration, the number should be 00000001 and for the next 00000002, similarly 00012456, 00002158, 01234568, 25634897 and so on till 99999999. To achieve this we need to format a number… Read More »

TortoiseSVN icons not showing – Windows 10

TortoiseSVN icons not showing – Windows 10 Recently I have faced this issue in my PC, and after lot of googling I have fixed it. So I would like to share this in my blog, which will be helpful to someone who faces this issue. Many of the developers / companies use version control system… Read More »

How to remove edit link from wordpress frontend

How to remove edit link from wordpress front end While working in WordPress, if we have logged in to admin panel and the same time, if we access the frontend pages in the same browser we often see an edit link in post pages. Some developers may feel this is unwanted and want to disable… Read More »

How to Move WordPress From Local Server to Live Site

How to Move WordPress From Local Server to Live Site Nowadays many websites and blogs are powered by WordPress. Because any person who doesn’t know how to code get WordPress to build a website, also its free and priceless. WordPress.org states that currently 60 million people chooses WordPress to power their blog and website. So, in… Read More »

How to set cache control for curl in php

How to set cache control for curl in php While using CURL to get connection and data from another server through api, sometimes we are opted with same data again and again. This is because may be the server is set to serve cache data for frequent request for a same api or url. We… Read More »

GROUP_CONCAT with JOIN in MySQL

GROUP_CONCAT with JOIN in MySQL The GROUP_CONCAT function concatenates strings from a group into one string with various options. Usage of GROUP_CONCAT with JOIN Product Table product_id name 1 abc 2 adc product_to_category table: product_id category_id 1 1 2 1 2 2 2 3 1 3 category_description table: category_id name 1 A 2 B 3… Read More »

How to Get sub domain name from domain name

Get sub domain name from domain name using php In some cases we would like to know where the request made from exactly. When there are many domains like test.abc.com, live.abc.com, anothertest.abc.com, etc. In this case if we check the host domain for request all will result in abc.com. To get sub domain name from… Read More »

Basic linux commands beginners

Basic linux commands for beginners Some of the most commonly used basic Linux commands are listed below. To know more information on each command you can always run man [command] and this will bring up the manpage for that command, you can also check on the commands listed for some common examples and syntax. Before… Read More »

Modify OpenCart upload image size limits

Modify OpenCart upload image size limits Opencart is a popularly used ecommerce framework. When adding product images or category images to a product or to a category sometimes we get  upload image size is large. This is because Opencart by default sets the maximum image size limit to 300kb with 1000x1000px resolution. Unfortunately we can… Read More »