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
Articles by Asif Rahaman
52 articles
How to break a line without using br tag in HTML / CSS?
To break a line without using br tag in HTML/CSS, is useful where you want space between elements, but don't want to add a new line of text. In this article, we will be discussing two different approaches to break line without using br tag. We are having some textual content in our HTML document in this article, our task is to break line without using br tag in HTML/CSS. Approaches to Break Line Without br Tag Here is a list of approaches to break a line without using br tag in HTML/CSS which we will be discussing in this ...
Read MoreHow to center a <div> using the Flexbox property of CSS?
To center a div using flexbox property of CSS, we will be using CSS flexbox and it's properties. In this article, We will understand and perform following three things to center a using the Flexbox property of CSS: Center div Using flexbox on Horizontal Axis Center div Using flexbox on Both Axes Center Multiple Items Using Flexbox Center div Using flexbox on Horizontal Axis To center div on Horizontal axis, we will be using CSS justify-content property which centers div horizontally. Example Here is ...
Read MoreHow to center a <div> using CSS grid Property?
To center a div using CSS grid property, we will be using CSS grid layout and it's properties. CSS grid is one of the most widely used elements in CSS which is similar to flexbox. CSS grids are two-dimensional layout systems on the web. We can place the elements in rows, columns, or both with the help of a grid. In this article, we shall understand how to center a div using the CSS grid property only. We will be using three approaches for this. Approaches To center a div using CSS grid Property ...
Read MoreHow to Use cbind in Python?
Python is a versatile programming language that offers programmers various modules and libraries to perform the required tasks. One such powerful function that Python offers is the “cbind”. This stands for column bind. The “cbind” is a powerful tool that allows programmers to combine, merge, and group the arrays, data frames, etc., in Python column-wise. In this article, we will learn how to use the “cbind” in Python. Using zip and list comprehension Zip and list comprehension are two very popular techniques used in many expressions in Python. The zip function can help to combine multiple elements from different iterables. ...
Read MoreHow to Use axis=0 and axis=1 in Pandas?
As a programmer, when we need to deal with data, we may need to perform operations only in rows or columns, or both. In pandas, the axis refers to how a function or an operation is applied to the Data Frame or the series. Pandas only can take two values, either 0 or 1, as an argument to the axis property. In this article, we will learn how to use the axis=0 and axis=1 in Pandas. Understand the axis Before we move forward, let us brief you on the axis of pandas. As we know, the data frame in pandas ...
Read MoreHow to use a List as a dictionary key in Python 3?
Dictionaries are among the most powerful data structures in Python programming languages. This is a data structure consisting of key-value pairs. It has several advantages; for example, accessing the values occurs in O(1) time complexity, it is memory efficient, easy to update, delete and iterate, and offers many built functions for quick operations. Problem Associated When Lists Are Used Directly We are focusing on this topic because there is a problem associated with when we try to make the lists as the key. Lists are mutable data types in Python. Hence, we can delete, update, and append values inside the ...
Read MoreHow to Get the next key in Dictionary in Python?
Dictionaries are powerful data types of Python. It consists of key-value pairs. Operations like searching, appending, etc., can be done efficiently through this data type. While accessing values in a dictionary is straightforward, there may be situations where you need to find the next key in a dictionary. Python provides several ways to achieve this, depending on your specific requirements. In this article, we will explore different methods to get the next key in a dictionary in Python. Using The keys And index Method The dictionaries are unordered collections in Python. Hence we first need to convert the keys into ...
Read MoreHow to Get a sorted list of random integers with unique elements using Python?
Generating random numbers is one of the most popular techniques in programming, statistics, machine learning models, etc. Generating a sorted list of random integers with unique elements is a subdomain of the task. However, computers are deterministic machines, so generating random numbers through our implementation is only sometimes a smart idea. In this article, we will explore how to Get a sorted list of random integers with unique elements using Python. Utilizing Sample Function Of Random Module The sampling method generates random samples of k elements from a given population. It takes two required parameters first is the list of ...
Read MoreHow to generate k random dates between two other dates using Python?
Generating random data is important in the field of data science. From building Neural Networks forecasting, stock market data, etc., often come with dates as one of the parameters. We may need to generate random numbers between the two dates for statistical analysis. This article will show how to generate k random dates between two given dates Use random and date time Modules The date time is an in-built library of Python to deal with time. The random module, on the other hand, helps to produce random numbers. Hence, we can combine the random and date time modules to generate ...
Read MoreHow to Design Half-Page Carousel in Bootstrap?
Carousel is a popular web designing technique used by web developers. This is a way to show a series of images or any other media content in an interactive way. These carousels are important design elements in several kinds of websites like traveling websites, Educational websites, etc., where we need to attract users using the images. The half-page carousel is a slight variation where the carousel takes only half of the entire page. This article will teach us how to design a half-page carousel in Bootstrap. Use The Grid System The bootstrap grid system allows us to create responsive and ...
Read More