In the software engineering world, there are some common terms that every programmer should know. I have listed 6 of those terms in this article and included a short meaning. Follow the given links to learn about those briefly. Let’s start- WHAT IS IDE? An Integrated Development Environment (IDE) is a software application […]
[Solved] 1202 – Bishops of LightOJ
Here is LightOJ Main Problem There is an Infinite chessboard. Two bishops are there. (Bishop means the chess piece that moves diagonally). Now you are given the position of the two bishops. You have to find the minimum chess moves to take one to another. With a chess move, a bishop can be moved to […]
WP Post Views Count without plugin
Today i am going to share how to add post views counting system on wordpress without any plugin. First, copy this code of php function to yours THEME functions.php file. Basically /wp-content/themes/YOUR-THEME/functions.php <? function getPostViews($postID){ $count_key = ‘post_views_count’; $count = get_post_meta($postID, $count_key, true); if($count==”){ delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, ‘0’); return “0”; } return $count; } […]
Add “xx Times ago” Function without plugin on Your WordPress Theme
Today i am going to publish a php function for wp theme to show “xx hours ago”, “xx seconds ago”, “xx minitues ago”, “xx days ago” etc on wordpress post, comment etc. First copy this code of php function to yours THEME functions.php file. Basically /wp-content/themes/YOUR-THEME/functions.php <? function time_ago( $type = ‘post’ ) { $d […]
How to Turn off force SSL Redirection on cPanel/WHM
You can do this by editting “Tweak Settings” on WHM. If you are able to access WHM panel as root. Then Follow system-1. If you are unable to access WHM due to SSL error and have SSH access then follow system-2. System-1: Login to WHM as root. Then go to “Tweak Settings” under “Server Configuration”. […]
How To Access private member variables of a class without using its public member functions ? Answerred Using C++
Today i am going to tell you how to access private member variables of a class without using its public function. Method 1: Using friend function. Consider the following example:- #include<iostream> using namespace std; class A { int a; friend void seta(A &ob,int x); friend int geta(A &ob); }; void seta(A &ob,int x) { ob.a=x; […]
Tawk.To Live Chat Addon Module for WHMCS by TGL IT
[Solved] 1225 – Palindromic Numbers (II) of LightOJ
[Solved] 1225 – Palindromic Numbers (II) of LightOJ Main LightOJ Problem is here A palindromic number or numeral palindrome is a ‘symmetrical’ number like 16461, that remains the same when its digits are reversed. In this problem you will be given an integer, you have to say whether the number is a palindromic number or […]
A 5MB Hard Drive of IBM in1956
How to turn off Auto Play of Facebook Videos
Facebook is now part and parcel of our daily life. Recently facebook has been added video auto play system by default. It has a bad impact, if you use limited bandwidth data package. or you feel disturbed on auto play system. You can turn off this auto play system by just following three steps (clicks […]