Pandas Drop Column

Pandas-drop-column

Pandas is an open source library in Python. It provides a variety of tools to work with the tabular data. It revolves around the concept of Dataframes which consists of rows and columns. If you are in a situation where you want to drop a column or group of columns, then Pandas provides you with … Read more

What is JSONPath: JsonPath.parse()

jsonpath.parse

In Java, there isn’t a built-in JsonPath.parse() method within the standard JSON libraries. However, you can use external libraries such as Jayway JsonPath to achieve similar functionality to parse and work with JSONPath expressions. Introduction to JSONPath JSONPath is a query language used to navigate the JSON (JavaScript Object Notation) data structures, particularly in scenarios … Read more

error:0308010C:digital envelope routines::unsupported

error:0308010C:digital envelope routines::unsupported

The error message “error:0308010C:digital envelope routines::unsupported“, appears to be related to OpenSSL. This error typically indicates that a particular feature or operation is not supported by the version of OpenSSL or the configuration being used. OpenSSL is a widely used cryptographic library that provides support for secure communications. When working on encryption and decryption tasks … Read more

Python Substring | Substring of a string

Python-Substring

A string is a sequence of characters and a substring refers to a part of a string. Python provides various methods to create a substring from a string. One most popular way is using the slicing method and another way is the split() function to create a list of substrings based on a specific delimiter. … Read more

Git Cherry Pick command

git cherry pick

Imagine a Scenario, when a developer mistakenly commits changes to the wrong branch not realizing their current branch, to correct the mistake developer needs to execute a different series of commands. This includes checking the commit details with ‘git show’, saving the commit, switching to the correct branch (e.g., main branch), applying a patch, and … Read more

What is -Xmx in Java

Xmx java

The Java Virtual Machine (JVM) has two memory-related options or flags, namely “-Xmx” and “-Xms”. When running a Java application, the Java Virtual Machine utilizes the “-Xmx” option to set the maximum heap size and the “-Xms” option to set the initial heap size.In java, memory allocation for the heap size using -Xmx and –Xms … Read more

Git Reset Hard – Git Reset Command

git-reset-hard

Before talking about ‘git reset –hard’ option of git reset command, let’s have a look on how you can undo the changes made by the commit or recent commit. We will provide you a detailed explanation here so that you can easily understand the whole process. As a developer when you work with “Git” you … Read more

What is an ORM?

ORM (object relational mapping)

ORM refers to Object Relational Mapping which is a technical method that is used to connect programming code and relational databases. For this purpose it uses Metadata descriptors. In other words it works like a bridge between OOP code and database streamlining the interaction between OOP languages and relational databases. With the help of Object … Read more

How to use Git Revert?

git revert

The “git revert” is a command used to undo a specific commit. It creates a new commit that inversely applies the changes made by the commit you want to revert. It does not erase the commit from the project’s history but it removes all the changes made by the targeted commit. To run the command … Read more

SyntaxError: invalid syntax

SyntaxError invalid syntax

In the world of computer programming, syntax error indicates that your code is not structured properly. The code is written in different languages and each language has a syntax that refers to the rules of how you must structure your code. If you are a programmer and you are writing some lines of code in … Read more

Rename a Git Branch

git-rename-branch

Git is a powerful version control system that allows developers to track changes to their files or a set of files over time in the codebase and collaborate with others. It offers a wide range of features and operations to perform as it manages small to a very large project. One common operation is renaming … Read more

Rename column names in Pandas

Rename column names in Pandas

Pandas is a powerful and flexible data manipulation library in Python that provides a variety of features for working with tabular data. If you are working with Pandas DataFrames which is a 2-dimensional data structure like an array or table with rows and columns, then you might want to know how to rename a column … Read more

JavaScript location reload true

location.reload(true) method JavaScript

JavaScript provides a method to refresh or reload a web page by location.reload() function. It accepts one parameter, which contains a boolean value of either true as location.reload(true) or false as location.reload(false). It is typically invoked on the window.location object, which represents the current URL of the web page. Syntax of the function is given … Read more

Golang Bin Directory

Golang bin

Go, also known as Golang, is a powerful and open source programming language developed by Google. When you install Go in your system, it creates a directory called Golang bin directory within the Go installation path. This blog will explain you how to download and install go language and about Go bin. How to Download … Read more

Python Site Packages Directory

Python Site Packages

In Python, there is a directory called ‘site-packages’, which is a location where the third-party packages are installed. It contains additional Python modules and libraries not included in the standard Python library. when you install a package or module using ‘pip’, which is a python package installer then these packages are stored in the site-packages … Read more

EACCES: permission denied – Fixed

EACCES: permission denied

The “EACCES” is one of the errors typically encountered when you are trying to install a global npm package like ‘npm install lodash’ in a system or trying to access a file or folder that does not have the necessary permissions to access it. Although there can be many reasons for the occurrence of the … Read more

Lexicographically – Meaning and Example

lexicographically

“Lexicographically” refers to organizing the order of words or strings based on their individual characters arranged alphabetically. This simply means “dictionary order”. Let’s understand the concept of lexicographical order in detail and explore how to use it in programming world. What is a lexicographic order? Lexicographical order refers to the arrangement of strings or elements … Read more

How to Undo a Last commit – git undo commit

git-undo-commit

Git is one of the most popular version control system and a powerful tool used by developers. It offers a variety of features and functionalities that are valuable to developers, teams, and anyone managing projects. Git commit is a fundamental feature of them which represents a single, logical change. Sometimes you need to undo a … Read more

error: src refspec main does not match any

error src refspec main does not match any

The error message “error: src refspec main does not match any” is usually encountered when you are trying to push changes to a git branch that does not exist. Understanding the meaning of the error message If you are a Git user then encountering the error message “error: src refspec main does not match any” … Read more

Data Transfer Object (DTO)

Data Transfer Object-DTO

When you work as a developer, sometimes you need to interchange the data of two software systems. For this purpose, we use DTO which refers to the Data Transfer object. This technique is used to make conversation easy between API and server without revealing sensitive information. The process of DTO is quite costly as it … Read more

stdin stdout and stderr

stderr

In the context of computer programming languages, the standard streams are of three types i.e. ‘stdin’, ‘stdout’ and ‘stderr’. “stdin” stands for Standard Input, a stream from which a program reads its input data; “stdout” stands for Standard Output, a stream from which a program writes its output; and “stderr” stands for Standard Error, a … Read more

What is an argument in javascript?

what is an argument in javascript

The argument in JavaScript is a functional language, meaning that functions are the primary modular execution units. Functions are obviously very important in JavaScript. When talking about a function, parameter and argument are often used interchangeably as if they were the same thing but there is a very subtle difference. Parameters are variables listed as … Read more

How to Convert CSV File to JSON Format in Java?

how-to-convert-CSV-file-to-JSON-format-in-java

Here we’ll convert CSV File to JSON Format in Java using the CsvMapper class and Jackson so that you can read and write CSV files as well as convert them to JSON format, which will come in handy if you want to perform further manipulations with your dataset. TIP: CsvMapper class is specialized ObjectMapper. Jackson … Read more