Git commit history is extremely useful. It serves as additional documentation of code with context. This article presents a step-by-step guide to move a folder from one Git repository to another with full revision history intact.
Difference between Procedure, Function, and Method
To most programmers, procedure, function, and procedure are the same thing. It is a callable, reusable code block that optionally takes some input, performs one or more operations, and optionally returns some output.
Difference between Argument and Parameter
Programmers use the terms argument and parameter interchangeably. When someone says argument or parameter, they mean the same thing. However, there is a difference.
How to Enforce JTextField to Allow Only Numeric Input Data of Limited Length?
The JTextField component in javax.swing package is a general-purpose text field that accepts any input character. Often applications need to restrict the text field to accept only a certain type of inputs. One such use case is – the text field only allows numbers without decimal points (integers) and also it must restrict the length of characters.
vim Syntax Highlighting
The syntax highlighting feature of text editors mark keywords, operators, numbers, string, etc. differently according to the programming language constructs. For developers, modern IDEs offer syntax highlighting.
vi Show Line Numbers
Knowing the commonly used vi editor commands is absolute bliss. You can get your work done much faster with frequently used commands. In this article, I’ll share the commands to show line numbers in the vi editor temporarily for a single session, and permanently as well.
vi goto line
Knowing the commonly used vi editor commands is absolute bliss. You can get your work done much faster with frequently used commands. The command to go to a specific line is one of those frequently used commands.
Work With vi Editor Like a Pro
People working in system engineering in Linux and Mac still prefer vi. In this article, I’ll highlight 20 commands when practiced, will enable you to use the vi editor like a pro.
A Full-Fledged Java-Based HTTP Client
We are going to write a mini-browser that can establish a connection with any website (URL) over HTTP protocol and then send requests & receive response messages. For example, you may hit https://google.com and receive the HTML content or hit a REST API endpoint and receive JSON content.
How to use the Java Instrumentation API to determine object size?
In Java 1.5 Instrumentation API was introduced to enable byte-code modification (instrumentation) of classes and to get runtime insights. This is very helpful to tool developers. In this article, we’ll see how Instrumentation API can be leveraged to determine approximate object size at runtime.
MongoDB Spring Example
1. Context In this article, we have seen steps of creating a SpringBoot based imaginary TV program guide app that connects to PostgreSQL using JPA. The same code works for any relational database available in the market. We have to
Spring Boot app connecting to PostgreSQL using JPA
We are going to create a spring boot app that connects to the PostgreSQL database using JPA. Let us build an imaginary TV program guide web app that lists and allows us to search TV channels, programs, etc.