How to create the first Git Repository
Welcome to the tutorial on Git. Here you will learn how to Create a Repository, and how to clone or copy other repositories. A Repository is a project that is tracked and managed by Git. Thus, Git tracks changes by storing snapshots of project versions in a .git file. Git Config There is a need…
TOP 10 MOST POPULAR PROGRAMMING LANGUAGES IN 2022
Most Popular Programming Languages Javascript Python Java C/C++ C# PHP GO Kotlin Scala R 1. JavaScript According to the stats, there are almost 1.8 billion websites in the world. And about 95% of them run with the help of Javascript. A Bit of Javascript History Javascript originated in the labs of Netscape as part of…
Read More “TOP 10 MOST POPULAR PROGRAMMING LANGUAGES IN 2022” »
How to use events listeners and Event Subscriber in Symfony
We use events to perform some tasks if an event occurs, these tasks can be achieved by using the followings: 1. Event Subscriber 2. Event Listeners Event Subscriber vs Event Listeners They both serve the same purpose but have different implementations. Both trigger some functions in the specific time of processing data by Symfony. We can declare…
Read More “How to use events listeners and Event Subscriber in Symfony” »
How to fix getFullyear() is not a function with JavaScript?
Sometimes, we want to fix getFullyear() is not a function with JavaScript. In this article, we’ll look at how to fix getFullyear() is not a function with JavaScript. To fix getFullyear() is not a function with JavaScript, we should be called getFullYear instead. For instance, we write to call start.getFullYear to return the 4-digit year number of the start date. Conclusion…
Read More “How to fix getFullyear() is not a function with JavaScript?” »
How to style an HTML radio button to look like a checkbox with CSS?
Sometimes, we want to style an HTML radio button to look like a checkbox with CSS. In this article, we’ll see how to style an HTML radio button to look like a checkbox with CSS. To style an HTML radio button to look like a checkbox with CSS, we use the appearance property. For instance, we write…
Read More “How to style an HTML radio button to look like a checkbox with CSS?” »
How to split a string into an array with Twig
Twig provides many filters that mimic the basic features of PHP that are easy to understand for front-end developers. One of those filters is a split filter that allows you to split a delimited string by a single character, returning a repeating array. You can limit the length of the result array providing it as…
How to change password in the CodeIgniter framework
How to send forgot password in CodeIgniter framework PHP. Here we using 2 files to insert data in MySQL: Forms.php Path: codeIgniter\application\controllers\Forms.php forgot_pass.php Path: codeIgniter\application\views\change_pass.php Forms.php (Controller) <?php class Forms extends CI_Controller { public function __construct() { parent::__construct(); $this->load->database(); $this->load->library(‘session’); $this->load->helper(‘url’); $this->load->model(‘Hello_model’); } public function forgot_pass() { if($this->input->post(‘forgot_pass’)) { $email=$this->input->post(’email’); $que=$this->db->query(“select pass,email from user_login where email=’$email'”); $row=$que->row();…
Read More “How to change password in the CodeIgniter framework” »
ES6 classes
Prior to ES6, classes have been in use in Javascript. ES6 just comes with a clean, nice-looking syntax for defining classes. It’s good to note that JavaScript’s class is just a more convenient way of creating constructor functions, which are very different from traditional classes. In this article, we will focus on: How to define…
Enable or Disable SSH Root Login Access in Linux
SSH Root user login access is enabled in any system by default. Or we are asked while installing a system. that you have to enable or disable ssh root user login access. And you never know how to enable and disable ssh root user login access. So in this tutorial, we will show you how…
Read More “Enable or Disable SSH Root Login Access in Linux” »
How to Symfony Request
Symfony request tutorial shows how to work with request objects in Symfony. We show several ways how to create request objects in Symfony. Symfony Symfony is a set of reusable PHP components and a PHP framework for web projects. Symfony was published as free software in 2005. The original author of Symfony is Fabien Potencier. The…
Git basics: The simple commands to begin with
Git config command This command is used to configure settings accompanying your use of git on your local machine/computer. Here are the major settings and configurations executed with this command. You can configure these settings on a global or local level. NB:Your username and email should be the same as those on your GitHub or…
How to change the link color of the current page with CSS?
Sometimes, we want to change the link color of the current page with CSS. In this article, we’ll look at how to change the link color of the current page with CSS. To change the link color of the current page with CSS, we set the color background-color properties. For instance, we write to set the text color…
Read More “How to change the link color of the current page with CSS?” »
How to check if a customer is logged in to Magento 2 or not?
There are two ways by which you can check if a customer is logged in or not: 1) By using Object Manager It is always a bad practice to use ObjectManager directly. 2) By Injecting Class (Dependency Injection) As said earlier, it is one of the worst practices to use the ObjectManager directly. Therefore an…
Read More “How to check if a customer is logged in to Magento 2 or not?” »
How to Delete and Remove Files on Ubuntu Linux Terminal
Delete and remove files on ubuntu Linux using the terminal. In this tutorial, you will learn how to delete and remove a file on Ubuntu Linux-based system using a terminal or command prompt. This tutorial will use the rm command. It tries to remove the files specified on the command line. Use the rm command…
Read More “How to Delete and Remove Files on Ubuntu Linux Terminal” »
Difference between var, let, and const in JavaScript
A lot of shiny new features came out with ES2015 (ES6). And now, since it’s 2020, it’s assumed that a lot of JavaScript developers have become familiar with and have started using these features. While this assumption might be partially true, it’s still possible that some of these features remain a mystery to some devs….
Read More “Difference between var, let, and const in JavaScript” »
How to PHP Get Max Value From Array
PHP gets the max/maximum/largest value from the array. This tutorial has the purpose to explain to you several easy ways to find or get the maximum or largest value from an array in PHP. Here, we will take e.g. PHP gets the maximum value in an array, get the largest number in the array PHP…
PHP 8.1: read-only properties
Writing data transfer objects and value objects in PHP have become significantly easier over the years. Take for example a look at a DTO in PHP 5.6: And compare it to its PHP 8.0’s equivalent: That’s already quite the difference, though I think there’s still one big issue: all those getters. Personally, I don’t use them…
How to make a div always float on the screen in the top right corner with CSS?
Sometimes, we want to make a div always float on the screen in the top right corner with CSS. In this article, we’ll look at how to make a div always float on the screen in the top right corner with CSS. To make a div always float on the screen in top right corner…
Read More “How to make a div always float on the screen in the top right corner with CSS?” »
How to change background Opacity when the bootstrap modal is open with CSS?
Sometimes, we want to change background opacity when the Bootstrap modal is open with CSS. This article will look at how to change background opacity when the Bootstrap modal is open with CSS. To change background Opacity when Bootstrap modal is open with CSS, we set the opacity style in the modal-backdrop class. For instance, we write to set…
Read More “How to change background Opacity when the bootstrap modal is open with CSS?” »
How to Send Email from Localhost in PHP
PHP sends email using the Inbuilt PHP MAIL() function. This tutorial shows you how you can send emails in PHP using the inbuilt PHP mail() function. If you work with PHP, you need to send emails to users like when the user registered with us, send a reset password link in the mail, if any…