Coffee Talk: Java, News, Stories and Opinions
Recent Posts
-
Fix the ConcurrentModificationException
- TechTarget 03 Jun 2021 -
Quickly create a Git bare repo with init or clone example
- TechTarget 02 Jun 2021 -
What is a bare repository in Git?
- TechTarget 28 May 2021
Has the ConcurrentModificationException been thrown in you Java app? Here are four simple ways to fix the ConcurrentModificationException in your code.
There are two ways to create a bare Git repo -- a bare Git clone or a Git init bare. This git bare repo tutorial will show you how to perform both.
A bare Git repo has all the capabilities of a non-bare repository, with the exception that it’s not meant for local development.
-
How to use git submodules tutorial with examples
- TechTarget 21 May 2021 -
How to update Git submodules
- TechTarget 21 May 2021 -
How to create Git submodules in GitHub and GitLab by example
- TechTarget 30 Apr 2021 -
Yes, the original name for Java was Oak
- TechTarget 30 Apr 2021 -
Java's main function explained with examples
- TechTarget 29 Apr 2021 -
How to create a GitHub repository
- TechTarget 30 Mar 2021 -
How to run Jenkins builds on Docker example
- TechTarget 30 Mar 2021
If you’re wondering how to git submodule and logically link repositories together, this git submodule tutorial -- with lots of examples -- is for you.
If your Git submodule is out of sync with the server, we can help. This git submodule update example shows you how to get the latest commits into your worktree.
In this GitHub submodule add example, we demonstrate how to take an independent GitHub repository, add a Git submodule and push back to the GitHub server.
When Sun Microsystems first developed a programming language to power their Star7 entertainment controller, they named it Oak, not Java.
Here's the anatomy of Java's main method. An anachronism with the rise of Servlets and JSPs, Spring Boot and Eclipse Microservice developers are seeing more of Java's main function as apps are ...
This GitHub repository tutorial shows users how to create a new repository in the popular, cloud-hosted Git offering. Let’s dig into the central concepts of GitHub-based DevOps.
In this Jenkins and Docker integration tutorial, I’ll show you how to create a Jenkinsfile build with Docker. Just pull a Jenkinsfile from a GitHub repository, and Docker will take care of the rest.
-
Recursion vs Iteration: What's the difference?
- TechTarget 30 Mar 2021 -
Five examples of recursion in Java
- TechTarget 24 Mar 2021 -
How to clone from a git tag example
- TechTarget 26 Feb 2021 -
How to install Gitflow for Windows on old Git installations example
- TechTarget 26 Feb 2021 -
Full Gitflow init workflow example
- TechTarget 26 Feb 2021 -
Gitflow release branch process from start to finish example
- TechTarget 24 Feb 2021 -
Gitflow hotfix branch example from start to finish
- TechTarget 24 Feb 2021 -
Java Mission Control 8 Eclipse plugin install example
- TechTarget 29 Jan 2021 -
How to start Java's JVM Flight Recorder in 3 easy ways by example
- TechTarget 29 Jan 2021 -
Clone a git repository with submodules using init and update example
- TechTarget 29 Jan 2021 -
Performance cost of autoboxing Java primitive types explained
- TechTarget 29 Dec 2020 -
A Jenkins YAML pipeline example
- TechTarget 28 Dec 2020 -
How to run Jenkins on AWS by example
- TechTarget 23 Dec 2020 -
How to implement a remote Jenkins build trigger with a URL
- TechTarget 22 Dec 2020 -
Jenkins shared libraries in pipelines example
- TechTarget 06 Dec 2020 -
An example of how to easily add Git submodules
- TechTarget 04 Dec 2020 -
Full GitHub Actions environment variables list for YAML build workflow scripts example
- TechTarget 04 Dec 2020 -
Jenkins GitHub Webhook build trigger by example
- TechTarget 03 Dec 2020 -
10 best GitHub Actions examples
- TechTarget 30 Nov 2020 -
How to publish GitHub Actions artifacts by example
- TechTarget 30 Nov 2020 -
How to use GitHub Actions secrets to hide your tokens and passwords example
- TechTarget 22 Nov 2020 -
Jenkins Installer for Windows
- TechTarget 09 Nov 2020 -
Find Jenkins Home and change the JENKINS_HOME directory location by example
- TechTarget 07 Nov 2020 -
Jenkins GitHub Integration for CI/CD Pipelines example
- TechTarget 06 Nov 2020 -
How to run the Jenkins WAR file example
- TechTarget 05 Nov 2020 -
Fix the Jenkins "No such DSL method with Maven found" error example
- TechTarget 04 Nov 2020 -
'403: No valid crumb' Jenkins GitHub webhook error fix
- TechTarget 04 Nov 2020 -
Use Jenkins' Warning plugin for CheckStlye, PMD and FindBugs reports example
- TechTarget 02 Nov 2020 -
How to install Jenkins on Ubuntu 20.04 by example
- TechTarget 01 Nov 2020 -
How to install Jekyll on Windows 10 example
- TechTarget 01 Nov 2020 -
A declarative Jenkins pipeline for Ant builds on Docker example
- TechTarget 01 Nov 2020 -
How to use Jenkins with Ant to build your Java apps
- TechTarget 01 Nov 2020 -
Fix the Jenkins Docker error: Permission denied when trying to connect to Docker daemon
- TechTarget 31 Oct 2020 -
Fix the Jenkins error: Invalid agent type Docker specified [any, label, none]
- TechTarget 31 Oct 2020 -
How and when to perform a git clone depth 1 example
- TechTarget 30 Oct 2020 -
How to use the git log graph command example
- TechTarget 29 Oct 2020 -
How to install Git on Windows example
- TechTarget 30 Sep 2020 -
How to create a GitHub repository example
- TechTarget 30 Sep 2020 -
Eight Git commands every GitLab developer must know
- TechTarget 29 Sep 2020 -
How to delete a GitHub repository example
- TechTarget 28 Sep 2020 -
AI, RPA offerings still stymied by security, governance concerns
21 Sep 2020 -
Use the Struts jQuery plugin to simplify Ajax request cycles example
- TechTarget 13 Sep 2020 -
How to perform a GitLab delete remote branch operation on any repository
- TechTarget 13 Sep 2020 -
Use .gitkeep to commit & push an empty Git folder or directory
- TechTarget 13 Sep 2020 -
Create your first RPA robot in UiPath Orchestrator
- TechTarget 13 Sep 2020 -
How to set Notepad++ as the Git editor instead of Vim
- TechTarget 03 Sep 2020 -
How GitLab developers can merge any branch into master
- TechTarget 31 Aug 2020 -
How to merge master into any branch in GitLab by examples
- TechTarget 21 Aug 2020 -
How to git clean untracked files example
- TechTarget 14 Aug 2020 -
Why developers won't be able to find the gitconfig file
- TechTarget 13 Aug 2020 -
Struts 2 development with the Eclipse IDE tutorial
- TechTarget 12 Aug 2020 -
How to rebase GitHub branches and commits example
- TechTarget 12 Aug 2020 -
How to perform a Git clean up of branches and commits example
- TechTarget 11 Aug 2020 -
Apache Struts Hello World by example
- TechTarget 09 Aug 2020 -
Apache Struts 2.5 with no Struts config XML file example
- TechTarget 09 Aug 2020 -
How to git push GitLab commits to origin by example
- TechTarget 05 Aug 2020 -
An example of how to create and clone a GitLab repository
- TechTarget 05 Aug 2020 -
Fix "There isn't an Orchestrator present" error with the right UiPath Orchestrator URL
- TechTarget 05 Aug 2020 -
Here's why the const keyword in Java is not implemented
- TechTarget 04 Aug 2020 -
WildFly vs. JBoss EAP: What's the difference?
- TechTarget 03 Aug 2020 -
How to fix the UiPath invalid machine key error
- TechTarget 02 Aug 2020 -
An example hibernate.cfg.xml for MySQL 8 and Hibernate 5
- TechTarget 02 Aug 2020 -
Build a Hibernate SessionFactory by example
- TechTarget 02 Aug 2020 -
How TUF can secure software systems from update vulnerabilities
01 Aug 2020 -
How to create and delete GitLab projects by example
- TechTarget 30 Jul 2020 -
How to do a self-hosted install of GitLab on Ubuntu 20
- TechTarget 29 Jul 2020 -
The right MySQL persistence.xml example file for JPA 2.2 and Hibernate 5
- TechTarget 28 Jul 2020 -
How AI can help with requirements analysis tools
28 Jul 2020 -
How to edit the Ubuntu hosts file and ping a domain name locally
- TechTarget 28 Jul 2020 -
How to remove Git submodules
- TechTarget 26 Jul 2020 -
How to Git clone on Ubuntu with GitLab and GitHub
- TechTarget 26 Jul 2020 -
Quick fix to Git's fatal 'unable to access SSL certificate' error
- TechTarget 26 Jul 2020 -
Use git worktree add and never switch branches again
- TechTarget 15 Jul 2020 -
How to perform a shallow git clone
- TechTarget 04 Jul 2020 -
How to rename a GitHub repository with Git example
- TechTarget 03 Jul 2020 -
A Bitnami WordPress stack installation and examination
- TechTarget 30 Jun 2020 -
How to create a UiPath Orchestrator process to run robots
- TechTarget 27 Jun 2020 -
How to publish to UiPath Orchestrator example
- TechTarget 27 Jun 2020 -
Make this UiPath Hello World example the first project in your RPA journey
- TechTarget 25 Jun 2020 -
How to list and show the git stash history
- TechTarget 09 Jun 2020 -
How to master the Git status command
- TechTarget 09 Jun 2020 -
How to set important Git config global properties
- TechTarget 08 Jun 2020 -
List and show Git config settings
- TechTarget 07 Jun 2020 -
Why the pull request process could work beyond development
05 Jun 2020 -
How set git config username and email fields in global and local configuration files
- TechTarget 04 Jun 2020 -
How to squash git commits by example
- TechTarget 03 Jun 2020 -
A git stash name: Easily pop or apply changes by name example
- TechTarget 02 Jun 2020 -
Fix for the GitLab "Unable to locate package gitlab-ee" on Ubuntu 20
- TechTarget 02 Jun 2020 -
Where system, global and local Git config files on Windows and Ubuntu Linux are
- TechTarget 01 Jun 2020 -
How to make multiple values per key in a Java map possible example
- TechTarget 01 Jun 2020
This Java recursion tutorial shows you how to create a recursive Java factorial function and compares these methods to iterative ones.
We often debate the merits of iterative vs recursive Java code. Let’s take a look at 5 Java recursion examples and see where the concept of recursion fits.
In this git tag clone example, we’ll demonstrate how to pull from a tag point in your git commit history. However, it comes with a catch, in the form of a detached head.
In some cases, Gitflow will come prepackaged with Git for Windows installations. Those on older installations will need do it manually. Here's a quick guide on how to perform a Gitflow install for ...
Here's a quick Gitflow init example, along with a quick tutorial on how to perform a full Gitflow workflow after you execute the command.
The Gitflow release branch is the final step in this software development process workflow. Here we look at the start, finish and impact the Gitflow release has on the master, develop and feature ...
If you’re lucky, you’ll never have to start the Gitflow hotfix process. But just in case, here’s a quick example of how to incorporate the Gitflow hotfix branch into your version control workflow.
Here's a quick Java Mission Control tutorial to show you how to install the Java Mission Control Eclipse plugin and start a Java Flight Recorder JVM profile run.
JDK Mission Control is feckless without a Java Flight Recorder file to profile. Here are 3 easy ways you can start Java Flight Recorder in Eclipse and monitor your JVM in JMC.
When you clone a git repository, it won’t necessarily bring down the branches and code for the associated submodules. The git submodule init and update command and the --recurse-submodules switch ...
The boxing and unboxing of Java primitive types has severe performance implications. Uncover the truth about autoboxing Java primitive types in this JDK Mission Control and JVM Flight Recorder example.
YAML has joined the ranks of declarative and scripted pipelines in Jenkins. Here's an example of what the syntax for a Jenkins YAML pipeline looks like.
Need to run Jenkins on AWS? It's not a bad idea, especially when developers consider the need for a CI/CD server to integrate with peripheral resources. This quick example shows you the easiest way ...
This quick example will demonstrate how to implement a remote Jenkins build trigger. With the remote Jenkins build URL, a developer can call jobs from scripts, the CURL command and even Java code.
Keep complex logic out of your build scripts and take advantage of Jenkins shared libraries instead.
This git submodule add example demonstrates how a developer can use these steps to create a Git repository and add a new Git submodule to it.
The GitHub Actions environment variables available to a developer's workflows will vary from Ubuntu to Windows to MacOS. Here's a full environment variables list for each and why developers should ...
Running into difficulty with GitHub Webhooks and Jenkins builds? This Jenkins and GitHub webhook integration example shows how to trigger remote builds without the 403 no valid crumb in request ...
Here are the 10 best GitHub Actions examples for developers and DevOps admins that want to learn and master continuous integration and deployment.
Here's a simple example on how a developer can publish GitHub Actions artifacts for download once a build workflow successfully completes.
You can confidently store keys, tokens and passwords with GitHub Actions secrets. This quick, not-so secret tutorial, provides an example of how to do exactly that.
The Jenkins installer makes installation of the popular CI/CD tool incredibly easy. Follow these simple steps and you'll have the continuous integration server running on Windows in no time.
How to change JENKINS_HOME When Jenkins runs, it stuffs all of its logs, cloned repos, plugin configurations and build artifacts into the Jenkins Home folder. Basically, every ounce of ...
This CI/CD example shows you how the integration of Jenkins with GitHub includes not only the ability to pull GitHub code, but also to trigger Jenkins build jobs with webhooks as well.
Here's a quick example of how to run a Jenkins war file from the command line, DOS prompt or terminal window in Linux/Ubuntu. The short story? java -jar jenkins.war
Here's a quick fix to the Jenkins 'No such DSL method 'withMaven' found among steps: NoSuchMethodError' error. Hint? Install the Jenkins Maven pipeline plugin.
Here's a quick fix to the "403 no crumb was included in the request" error you often see when a Jenkins GitHub webhook is configured incorrectly.
The Jenkins Warnings plugin replaces the deprecated CheckStyle, FindBugs and PMD ones. This static code analysis in Jenkins example shows you how to integrate Jenkins, CheckStyle, FindBugs and PMD ...
Here's a quick example to show you how to install Jenkins on Ubuntu 20. Additionally, we'll install Git and test your Jenkins installation with a Hello World build job.
A local install of Jekyll on your Windows machine provides a variety of benefits which range from the ability to use your favorite text editor to fast compilation times. Even if you use GitHub ...
The easiest way to build your Apache Ant projects in Jenkins is with a pipeline and a Jenkinsfile that takes advantage of an Ant based Docker container. In this Apache Ant, Docker and Jenkins ...
Here's a simple example of how to build your Java apps in Jenkins with Ant. We demonstrate both the Jenkins Ant plugin and the Jenkins pipeline approach with a Jenkinsfile as well.
Here's a quick fix to the Jenkins Docker"Permission denied while trying to connect to the Docker daemon socket" error.
Here's how to quickly fix the "Invalid agent type Docker specified. Must be one of [any, label, none]" error by installing the correct Jenkins Docker pipeline plugins. We'll get your Jenkinsfile up ...
In this git clone depth 1 example, we'll walk you through the process of pulling only one commit and one branch back from a remote Git repository.
In this git log graph example we demonstrate not only how the git log graph works, but also how to use a pretty switch to make it more readable.
Working with GitHub or BitBucket? Then you need to install Git. In this tutorial we show you how to install Git on Windows in 10 easy steps.
This step-by-step, tutorial will walk developers through the necessary steps to create a GitHub repository and how to create the cloud-hosted Git repo that acts as the cornerstone for all ...
Every developer needs to know a few basic Git commands to become proficient with GitLab. Here are the top eight Git commands every developer must know to be on their way to GitLab mastery.
If you're ready to fly into the Danger Zone, then you're ready to follow these steps to delete a GitHub repository.
Security, compliance and governance concerns along with human worries still play a role in the integration of AI-based and RPA offerings to an enterprise. Here are some ways to alleviate those ...
The Struts 2 Ajax template is deprecated, but the Strut jQuery plugin is a more than capable replacement. In this Struts jQuery tutorial we show you how to integrate Ajax calls into your modern ...
It's not exactly a straightforward process for developers to have GitLab delete remote branches. In this GitLab tutorial, we'll show you how to remove remote GitLab branches with examples.
What is the .gitkeep file? How do you commit and push empty Git folders? In this quick tutorial we'll explain why git is not pushing empty folders and how to fix it.
After your RPA program is coded, you will need to create a robot in UiPath Orcestrator so the robotic automation can me managed. This UiPath robot creation tutorial shows you how to do exactly that.
Frustrated every time you forget to add a Git commit message and Vim, the default Git editor pops up? Here's a way to make issuing git commits a bit friendlier. In this Git tutorial, we show you ...
In this GitLab merge branch to master example, we explain why a GitLab merge into master is different from other operations, and how to accomplish this task with a GitLab master merge request.
There are two ways a developer can have GitLab merge master into a branch. One is to merge master into the branch on the client while the other is to perform a GitLab pull request. Here are some ...
Developers can use the git clean command to delete untracked files in a working tree and remove what they don't need from a local repository. Here is how to issue the command and some helpful tips ...
Can't find the .gitconfig or gitconfig files on your system? It's possible that Git didn't create them. Here's how to find gitconfig on the filesystem and create the if it's not there.
The combination of Apache Struts and Eclipse makes for a powerful development environment. Learn how to integrate the two open source tools and get developing Java web applications quickly.
In this tutorial on how to rebase GitHub repositories, we will clone a repo, perform a rebase from master and to master, and push back to the remote GitHub server.
There comes a time where you must clean up Git branches, commits and the repository as a whole. Here we show you how to compact your Git repo and keep things clean.
Here's a simple Struts Hello World example for anyone interested in learning how to use the latest Struts 2.5 release. The Apache Struts Framework has come a long way in the last 20 years.
Learn to develop a modern Java web application with this Apache Struts 2.5 example. No Struts config XML files are required. This zero-config Struts example goes without!
When a local git repository is out of sync with the GitLab server, developers must git push GitLab commits to origin. Here is how to push the commits to origin and maintain successful development.
One of a developer's first tasks when they start with GitLab is to clone the GitLab repository. Here's how to create a GitLab repository and clone it from the server to a local machine.
Is the UiPath Assistant complaining that the UiPath Orchestrator URL is wrong? Here's how to fix the UiPath Orchestrator present at the indicated URL error.
Why is the const keyword in Java not implemented? It's part of the language, but it can't be used to make a variable constant. Learn more about const and why developers continue to ponder its usage ...
What's the difference between WildFly and JBoss EAP? That answer is 'not much.' But there are a few differentiating factors in the WildFly vs. JBoss debate you should be aware of.
Here's a quick fix to the UiPath Invalid Machine Key error. If you're having a problem connecting your RPA robots to Orchestrator from the Assistant, this solution will set you on the right path.
Hibernate 5 has updated dialects for various databases, and MySQL 8 has a special one of its own. Here's an example hibernate.cfg.xml for MySQL 8 for Hibernate 5 apps or newer.
Hibernate SessionFactory tutorial If a developer uses the Hibernate core framework, they will need to build a SessionFactory before they can do any data persistence. As the name implies, the ...
An emerging specification from CNCF looks to secure software systems thanks to the open source community and a focus on update vulnerabilities that limit the effects of a potential attack.
To get started with GitLab, you first need to create a GitLab project. And when you're finished, you might also want to delete a GitLab project. Here we show you how to both create and remove ...
This Git tutorial demonstrates how to install GitLab on Ubuntu 20. With a GitLab server installed locally on Ubuntu, a developer can enjoy GitLab without the cloud.
Old JDBC drivers and new MySQL 8 databases don't mesh. Here's an updated MySQL persistence.xml example file for those doing JPA and Hibernate development.
Functional requirements and user stories create the blueprint for software applications. A good set of requirements can simplify developer's work when they translate business ideas into working ...
Here's a quick video example of how to do an Ubuntu hosts file edit. This is useful for development and testing when a developer wants to mimic a production domain name locally.
There’s a lot of misinformation out there about how to remove a Git submodule. Follow these steps to delete Git submodules.
Need to perform an Ubuntu git clone operation? Here we will show you how to install Git on Ubuntu and then clone, commit and even push to GitLab and GitHub.
Here's a quick fix to the Git 'unable to access GitHub or GitLab' SSL certificate settings error when you attempt to clone from GitHub or GitLab.
Git Worktree Add Example I was today years old when I learned you could have multiple git working trees active at the same time. The idea is simple. Imagine you have multiple branches and want to ...
This shallow git clone example shows you how to use the --depth switch to limit the git commit history pulled to your local machine.
Sometimes new business requirements will force a Git admin to rename a GitHub repository. Here's how to do it, and here's how it will impact existing users.
Sometimes it's fun to see how components in open source projects are architected together. I installed a Bitnami WordPress stack onto my laptop Here I to see how the popular blogging platform works.
Want to run your RPA robots? Then you need to create a UiPath process. In this UiPath Orchestrator tutorial, we show you how to create processes and run unattended robots.
UiPath Orchestrator runs in the cloud. UiPath Studio runs on a developer's desktop or laptop. And RPA robots typically run on a physical desktop computer as well. Which means a piece of software ...
The first step in every RPA journey must be the creation of a Hello World robot. In this UiPath Hello World example, we step you through the creation of your first automation app.
Show your shelved change history with git stash list and show.
To really understand distributed version control, you must master the Git status command and understand the working tree states upon which it reports.
One of the key files managing how your DVCS system works is the glboal Git config file. Here we show you the most important global gitconfig settings and uses.
If you are wondering how a variable is assigned a value in Git config use --list to inspect the gitconfig files.
The pull request process focuses on merit-based changed and an impartial review process to create improvements. It works well with open source software development. How would it fare in other areas ...
Before you can commit code, you must set the local or global git config username and email fields. In this global git config example we will show you how.
If you goal is to clean up your repository, this squash git commits example give you the motivation you need to clean up your feature and topic branches.
A developer needs to name git stash saves if they want to easily identify them in the future. Here's how to do both a git stash with name apply and a git stash pop by name.
If you're doing a self-hosted GitLab Ubuntu 20 install and you hit the "Unable to locate package gitlab-ee" error, here's the solution to fix the problem.
Ubuntu, Linux and Windows Git configuration files are an unwieldy mess. Or at least is seems that way when you realize it's contained in three uniquely named files and spread across three or four ...
Need to add multiple values to a key in a Java HashMap but can't figure out how to do it? Here are three examples of how to solve the multiple values per key problem in Java.