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 on Trending Technologies
Technical articles with clear explanations and examples
How to Change the Thickness of hr Tag using CSS?
The tag is used to draw horizontal lines on a web page. This tag is one of the most useful HTML tags for separating content by drawing a horizontal line between different sections. In this guide, we will learn how to change the thickness of an tag using CSS with different methods. Syntax hr { height: value; border: value; } The hr Tag in HTML The tag stands for horizontal rule. It is a self-closing tag that creates a visual divider between sections ...
Read MorePython - Convert a list of lists into tree-like dict
Given a nested list, we want to convert it to a dictionary whose elements represent a tree data structure. In this article, we will explore two approaches to transform a list of lists into a hierarchical dictionary structure. Using Simple Iteration and Slicing We reverse the items in each list using slicing and then build the tree structure by checking and adding keys at each level ? Example def create_tree(nested_list): new_tree = {} for list_item in nested_list: current_tree = ...
Read MoreThe impact of quick commerce on traditional grocery stores
In today's digital era, Quick Commerce has become the fastest process of delivering groceries in just 10 to 30 minutes. The growing demand for convenience and speed has wholly transformed the retail industry. This article explores the impact of Q-commerce on traditional grocery retail and what it means for the future of shopping. What is Quick Commerce? Quick Commerce (Q-commerce) refers to instant commerce, where customers can receive products or services within 10-30 minutes of placing an order. This model relies on hyperlocal delivery networks and strategically located micro-warehouses to fulfill orders at lightning speed. The Impact ...
Read MorePython - Check if k occurs atleast n times in a list
When analyzing data in Python lists, you often need to check if a specific element appears at least N times. For example, determining if the number 5 appears at least 3 times in a list. This article demonstrates three efficient approaches to solve this problem. Using Manual Counting The most straightforward approach is to iterate through the list and count occurrences of the target element ? data = [1, 3, 5, 5, 4, 5] print("Given list:", data) # Element to be checked elem = 5 # Minimum required occurrences n = 3 count = ...
Read MoreHow to add gradient borders in css?
Gradient borders add a modern and visually appealing touch to web elements, making them stand out. However, achieving this effect in CSS isn't straightforward because the border property doesn't natively support gradients. This article explores practical workarounds to implement gradient borders using three different methods. Syntax /* Method 1: Using border-image */ selector { border-width: 5px; border-style: solid; border-image: linear-gradient(direction, color1, color2) 1; } /* Method 2: Background and Padding */ .parent { background: linear-gradient(direction, color1, color2); ...
Read MorePygorithm module in Python
The Pygorithm module is an educational Python library containing implementations of various algorithms and data structures. Its primary purpose is to provide ready-to-use algorithm code for learning and practical applications in data processing. Installation Install Pygorithm using pip ? pip install pygorithm Finding Available Data Structures After installation, you can explore the various data structures included in the package ? from pygorithm import data_structures help(data_structures) The output shows all available data structures ? Help on package pygorithm.data_structures in pygorithm: NAME pygorithm.data_structures - Collection ...
Read MoreTic Tac Toe Game with HTML, CSS, and JavaScript
Tic Tac Toe is a well-known two-player board game where players take turns placing their marks (X or O) on a 3x3 grid. The first player to get three marks in a row horizontally, vertically, or diagonally wins. If all cells are filled without a winner, the game ends in a draw. In this article, we will build a complete Tic Tac Toe game using HTML, CSS, and JavaScript. The game includes features like reset, undo, sound effects, and a responsive design. Game Features HTML Structure − Creates a 3x3 grid using div elements where each ...
Read MoreOracle Database Connection in Python
Python can connect to Oracle using a python package called cx_Oracle. Oracle is one of the famous and widely used databases and Python's data processing features are leveraged well using this connectivity. In this article we will see how we can connect to Oracle database and query the DB. Installing cx_Oracle We can use the below command to install the python package which can be used for establishing the connectivity ? pip install cx_Oracle Connecting to Oracle Using this module we can connect to an Oracle database which is accessible through the Oracle ...
Read MoreThe netrc file processing using Python
The netrc class in Python is used to read data from the .netrc file present in Unix systems in the user's home directory. These are hidden files containing user's login credential details. This is helpful for tools like ftp, curl etc. to successfully read the .netrc file and use it for authentication. What is a .netrc File? A .netrc file stores login credentials for remote hosts in a standardized format. Each entry contains a machine name, login username, and password. The file format looks like ? machine example.com login myusername password mypassword machine ftp.example.com login ...
Read MoreEncode and decode XDR data using Python xdrlib
The External Data Representation (XDR) is a standard data serialization format used for transporting data between different systems. Python's xdrlib module provides encoders and decoders for XDR format, making it useful for creating and transferring complex data structures across networks. XDR provides a service associated with the OSI Presentation Layer and ensures consistent data representation regardless of the underlying system architecture. Basic XDR Packing and Unpacking The following example demonstrates how to pack and unpack data using the xdrlib module ? import xdrlib # Create a packer object packer = xdrlib.Packer() print("Packer type:", type(packer)) ...
Read More