Working with dates in SQL can be challenging, especially for beginners. We need to make sure that the format of the date values are consistent throughout the queries, whether you're dealing with simple DATE types or complex DATETIME values. This article will walk you through the process of comparing two dates using different approaches, including examples and outputs, ensuring clarity and understanding. In SQL dates are typically stored in DATE or DATETIME format and to compare two dates, we can use comparison operators such as − =: Checks if two dates are equal. : Checks if one date is ... Read More
When we want to protect our online accounts or protect sensitive data, we use a strong password. Creating a secure, random password is a little complex but in Ruby, we can easily and quickly generate a random password. In this article, we are going to discuss how we can generate a random password using ruby, different approaches, example codes, and outputs. Generate a Random Password Using Ruby Using Ruby's rand Method Using the SecureRandom Module Custom Password Generator Since the code generates random passwords, ... Read More
The sudo command in Linux / Unix based systems allows a trusted user to execute a command with extended privileges, either as superuser (root) or as another user defined in the security policy. The security policy determines the privileges assigned to a user as well. It may require that the users should authenticate themselves with a password or another authentication mechanism. If a password is required, the user will be prompted to enter its account's password, with a timeout period. Else, the specified command is executed as per security policy, without any prompts. There are cases where one needs to ... Read More
Python is a powerful, open-source and easy to learn programming language. It is one of the most popular modern programming languages with a huge community of developers and extensive documentation. It usually comes pre-installed on all latest Linux systems as it is one of the building blocks of many operating system tools. Though, based on user requirement, one can install specific version of Python from available sources. In this tutorial, we will show you two ways to install Python on an Ubuntu system − Installing Python using package manager (apt) Installing Python using its source code Using Package ... Read More
This 100 Days of Web Development is a structured path to learning web development in 100 days. This study plan breaks down web development concepts into daily tasks, starting with HTML, CSS, and JavaScript and covering modern web frameworks, web security concepts, and full-stack deployment. So, if you want a complete overview of web development, read this article, and for a detailed overview on each topic, visit the attached hyperlinks. What is Web Development? Web development is the process of creating and maintaining websites on the Internet. It involves three parts: first front-end development, which focuses on ... Read More
MariaDB is one of the most popular relational database systems out there that can be used to store data. MariaDB is a fork of the popular database MySQL and provides some improvements and features over the classic MySQL. There is often confusion in this area, many developers think that MariaDB is just MySQL, but in reality, it's not. Even though MariaDB is a fork of traditional MySQL, it adds more functionality and features that make it special and better than MySQL. If you are an open-source activist and prefer to use open-source software, it's better to use MariaDB over MySQL. ... Read More
PHP is known as an older language that serves almost 60% of websites around the world. Due to its simplicity and stability, some popular web technologies are based on PHP, one of them being Laravel. Laravel is a well-known backend framework that provides developers with all the tools needed to build robust and secure web applications. Laravel is on the list of top web technologies and frameworks used to build web apps. Because it's a PHP based framework, it's easy to use and learn, which makes it a great choice for beginner level developers starting their journey into web development, ... Read More
Ruby is one of the most popular programming languages, known for its stability and simplicity. It has been powering applications for a long time. You may have heard of Ruby on Rails, one of the most well-known web frameworks used to build web applications. It's used by large companies like GitHub, Shopify, and others. It's a powerful and developer friendly framework, and it is built using Ruby. In this tutorial, we will learn how to install and use Ruby on Ubuntu. There are several ways to get Ruby set up on an Ubuntu machine, and you can choose the right ... Read More
A Harshad number is a special type of number. A Harshad number or Niven number is a number that is completely divisible by the sum of its digits without leaving any remainder. In this article, we are going to learn how we can check whether a given number is a Harshad number or not. Problem Description We are given a number and we have to return true if the given number is Harshad or Niven number and false if the given number is not a Harshad number. Example 1 Input: 108 Output: yes Explanation: The sum ... Read More
If you are a DevOps engineer, a Linux sysadmin, or even just a developer, you may have faced the annoying problem of managing versions in your development environment. Luckily, we now have a tool that can manage this for us out of the box, called ASDF. ASDF stands out for its ability to install multiple languages and development tools. It advantageously replaces the use of multiple language-specific version managers, such as NVM for Node.js or Pyenv for Python. This greatly simplifies the setup of the development environment, as you only need one tool to manage all your versions. ASDF allows ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP