Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by Lakshmi Srinivas
233 articles
How to use date command in day to day practical usage
In this article, we will learn about the date command in Linux and how to practically use it in day-to-day usage with some practical examples. The date command is used to print or change the system date and time, making it an essential tool for system administrators and users. General Syntax [root@localhost ~]# date [OPTION]... [+FORMAT] [root@localhost ~]# date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]] Key Features of the Date Command Print current date and time on the system Display date and time in custom formats Read dates from files Display Universal Coordinated Time (UTC) Set system ...
Read MoreLinux nslookup commands to troubleshoot dns domain name server
nslookup is a network administration command-line tool available for many computer operating systems for querying the Domain Name System (DNS) to obtain domain name or IP address mapping or for any other specific DNS record. This article explains the nslookup command in detail for DNS troubleshooting. Nslookup can be run in two modes: Interactive and Non-Interactive. Interactive mode is used to query DNS servers about various domains and hosts interactively, while Non-Interactive mode is used to query information about a specific domain or host with a single command. Basic DNS Queries Finding A Record (IP Address) ...
Read MoreHow to find a list of block devices information
The lsblk command is used to display a list of information about all available block devices in Linux systems. However, it does not list information about RAM disks by default. Examples of block devices include hard disks, flash drives, and CD-ROM drives. This article explains how to find and display block device information on Linux machines. Installing lsblk For Fedora and CentOS systems, use the following command − $ sudo yum install util-linux-ng For Ubuntu and Linux Mint systems, use the following command − $ sudo apt-get install util-linux -y ...
Read MoreUpgrade your computer for free to windows 10
People who have been using Windows operating systems typically encounter persistent messages to upgrade to Windows 10. The good news is that upgrading to Windows 10 was initially offered as a free upgrade for eligible users. However, this free upgrade period had specific time limitations that users needed to be aware of. Microsoft took a different approach compared to Apple, which allows its users to upgrade to the newest operating system for free at any point. Windows users who missed the free upgrade window would need to purchase a license, which could cost around $119 or more depending on ...
Read MoreHow to build a wireless home network without a router
Setting up a wireless internet connection without a router is usually done using an ad-hoc network. This is a peer-to-peer network configuration where devices connect directly to each other without requiring a central access point. Small businesses and home users often establish ad-hoc computer-to-computer networks when they don't have access to a traditional router. What is an Ad-hoc Network An ad-hoc network allows devices with wireless capabilities to connect directly to each other, creating a temporary network without infrastructure. If you have Windows Vista, Windows 7, Windows XP, or newer systems, you can build your own wireless network ...
Read MorePull down to refresh on the mobile web browser in HTML.
The pull-to-refresh functionality is a common mobile interaction pattern where users can pull down on a webpage to refresh its content and fetch the latest updates. This feature can be implemented on mobile web browsers using JavaScript, touch events, and AJAX requests. Pull-to-refresh acts as a trigger for XMLHttpRequest (XHR) calls in AJAX, allowing new data to be dynamically loaded into specific page elements without requiring a full page reload. Implementation Approaches Using Custom JavaScript Scrolling Pull-to-refresh can be implemented using custom JavaScript scrolling mechanisms like iScroll. Popular platforms such as Twitter use iScroll for their ...
Read MoreHow to draw a circular gradient in HTML5?
HTML5 Canvas provides the createRadialGradient() method to create circular or radial gradients. This method returns a CanvasGradient object that represents a radial gradient painting along a cone defined by two circles. The gradient transitions smoothly from the inner circle to the outer circle, creating a circular gradient effect. Syntax Following is the syntax for the createRadialGradient() method − createRadialGradient(x0, y0, r0, x1, y1, r1) Parameters The createRadialGradient() method accepts six parameters that define two circles − Parameter Description x0 x-coordinate of the starting circle's center ...
Read MoreMenu not visible in IE8. How to make it visible with HTML?
Internet Explorer 8 has specific compatibility issues with CSS properties that can cause navigation menus to become invisible. The most common cause is improper use of the opacity property, which requires special handling in IE8 to ensure cross-browser compatibility. The Problem When CSS stylesheets use modern opacity syntax without fallbacks, menus may appear invisible in Internet Explorer 8. This occurs because IE8 uses proprietary filter syntax for transparency effects instead of the standard opacity property. Syntax Following is the cross-browser compatible syntax for opacity in IE8 − .element { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"; ...
Read MoreHow to draw a rectangle on HTML5 Canvas?
The HTML5 Canvas element provides a powerful way to draw graphics dynamically using JavaScript. The tag creates a drawing surface, and we use its 2D rendering context to draw shapes like rectangles, circles, and lines. To draw rectangles on canvas, we use methods like fillRect() for filled rectangles and strokeRect() for outlined rectangles. These methods require coordinates and dimensions to position and size the rectangle on the canvas. Syntax Following is the syntax for drawing filled rectangles on canvas − context.fillRect(x, y, width, height); Following is the syntax for drawing outlined rectangles ...
Read MoreClear the float of an element with Bootstrap
To clear the float of an element in Bootstrap, use the .clearfix class. This utility class ensures that a container properly wraps around its floated child elements, preventing layout issues. What is Float Clearing? When elements are floated (using float: left or float: right), their parent container may collapse because floated elements are taken out of the normal document flow. The .clearfix class solves this by forcing the parent to contain its floated children. Example Here's how to use Bootstrap's .clearfix class to clear floated elements: ...
Read More