Unlike IntelliJ Idea, the NetBeans IDE does not have a direct option in the settings window to set the preferred line height of the editor. If you want to adjust the editor line height in NetBeans, you can still do it by adding an entry to a preferences file.
Git: How to Rename a Git Branch Locally and Remotely
If you made an error while typing the branch name or decided to change the branch name after pushing it to the remote repository, there is a method to rename the branch both locally and remotely.
Git: Move a Folder From One Repository to Another Without Losing Git History
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.
How to Change the Console Font of IntelliJ IDEA
IntelliJ is one of the popular IDEs for application development in many programming languages. It has a community edition with most of the essential features and also offers a licensed edition. With plenty of plugins available, IntelliJ is the default choice for software development in many organizations.
How to Find the Size of a File or Folder on Mac and Linux
Often you may need to find out how much disk space a file or folder (files inside the folder) occupies. This helps you to understand disk usage, remove unwanted files and optimize disk usage.
In vi Editor How to Open Files Starting with + (Plus) or – (Hyphen) in Name
Using vi editor if you want to create a new file or open an existing file having a name starting with + (plus) or – (hyphen), you’ll get an error.
Git Cheatsheet – Frequently Used Git Commands
A cheatsheet is a crisp set of notes, or commands used as a quick reference. Git is the most popular modern version control system (open-source and free). The below table contains the list of most frequently used Git commands.
Perforce (P4) Cheatsheet – Frequently Used P4 Commands
A cheatsheet is a crisp set of notes, or commands used for quick reference. The below table contains the list of most frequently used p4 (Perforce) commands. We present the commands with the syntax and the purpose of use.
Evolution of Web Browsers
Whether you are using a desktop, a laptop, a tablet, or a mobile device, the web browser plays a pivotal role in exploring the web and using interactive web applications.
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.
View Files in Tree Structure for Mac, Linux and Windows
Tree command recursively lists files and folders in a tree structure. This provides an excellent overview of what a folder contains. On Windows tree command is available by default. However, there is no default tree command available on Linux and Mac. In this article, I’ll share steps to use tree command on Mac, Linux, and Windows.
Update Cached Credentials in Git Repository
If you have cached your git credentials for a repository or globally, a couple of scenarios might arise: 1. Cached credentials need to be updated for a single repository or globally 2. Cached credentials need to be removed for a single repository or globally.
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.
Launch Visual Studio Code from Command Line
Visual Studio Code is an increasingly popular tool for developing software applications. It is comparable to Atom, Sublime Text etc. To launch any tool from the command prompt, the path of the tool executable has to be present in PATH
Git – Refresh a File or Folder from the Remote Branch
When you have messed up a file or made temporary changes locally (e.g. for debugging) and you want to get rid of the local changes, there is an easy way out.
Git – Refresh Feature Branch from Master – Rebase Vs. Merge
While working on a feature branch, often you need to get the latest changes from master (contributed by other developers) to your feature branch to test your code with changes made by other developers.
Git – Working with Multiple GitHub Accounts
When you have messed up a file or made temporary changes locally (e.g. for debugging) and you want to get rid of the local changes, there is an easy way out.
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 Change Working Directory in Jupyter Notebook
This article shows how to change the working directory of Jupyter Notebook temporarily for a single session or permanently.
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.
Git – Globally Ignore Certain File Types
ll show you the steps to use a global .gitignore file to apply the exclusion pattern to all your repositories. Create a new file named .gitignore-global (or any other name you like) at the user’s home directory or any other directory of your choice. Add all required exclusions to this file just like a normal.gitignore file.
Getting Started with Perforce Command Line
I have been working on a project that uses Perforce for source control. Perforce workflow is not much different from Git or any other source control system.
How To Cache Git Credentials
If you are using password-based authentication to authenticate yourself to the Git server, it might prompt you to enter your password every time you execute git commands. To avoid that you can configure Git to cache your credential.
Recursively Download Files Using wget
If you want to download multiple files recursively from a website wget is the way to go. The popular alternative tool curl does not support recursive download. Note that, links constructed dynamically using Javascript or any other way, won’t be
Change Author and Commit Message Before or After Push to Git
After committing a change, you realized that either the author is not appearing correctly or the commit message needs a change. There are two likely scenarios and in each scenario, we’ll explore how to change the commit metadata.
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.
Could not locate a PPD file for package XYZ while installing a Perl package
While installing a Perl package are you getting an error like ‘Could not locate a PPD file for package XYZ’? To solve this problem use cpan instead of ppm. If the package is known, you can directly execute the install