Coffee Talk: Java, News, Stories and Opinions
Recent Posts
-
My five-point ranking system to evaluate tech candidates
- EnigmaStation 12 Oct 2022 -
Taking REST APIs to the next level with hypermedia and HATEOAS
- CogArtTech 05 Oct 2022 -
Understanding the Kubernetes Container Runtime Interface
- CogArtTech 28 Sep 2022
Worried about hiring the wrong tech candidate? Here's a tried and true, five point evaluation system that has regularly proven itself in the field.
Adding hypermedia links to REST APIs expands resource data abilities and improves users' experience. This walkthrough explains the ins and outs of REST APIs with hypermedia and the HATEOAS technique.
The Kubernetes Container Runtime Interface adds options beyond Docker for container orchestration. Here's a rundown of how Kubernetes and the CRI work.
-
User input with a Java JOptionPane example
- TechTarget 16 Sep 2022 -
What is MVCC? How multiversion concurrency control works
- TechTarget 14 Sep 2022 -
Hierarchical Kubernetes namespaces explained by example
- CogArtTech 13 Sep 2022 -
Java's JOptionPane showOptionDialog by Example
- TechTarget 11 Sep 2022 -
Java Scanner next() vs nextLine() methods: What's the difference?
- TechTarget 10 Sep 2022 -
Java Exception handling best practices
- TechTarget 09 Sep 2022 -
10 Agile takeaways from the latest Scrum Guide
- Scrumtuous Inc. 02 Sep 2022
For new Java programmers, the JOptionPane class is a great visual and user-friendly introduction to user input and Swing-based programming. Here's how to get started.
Want to learn how multiversion concurrency control works? With a very simple MVCC example, we'll explain how to eliminate locks in databases including PostgreSQL and etcd.
Confused by hierarchical namespaces in Kubernetes? In this Kubernetes tutorial we'll examine what hierarchical namespaces are, how to add them to a Kubernetes cluster and then how to use them.
Don't do user input with a boring Scanner on InputStream. Use the JOptionPane. And really blow your clients away by mastering the JOptionPane's showOptionDialog method.
Learn the distinction between next() and nextLine() methods, and how to use them in your code for different reasons.
Don't let the complexities of Java Exception handling get you down. Follow these top 10 Java Exception handling examples and you'll be an expert in handling errors in your Java code.
Learning the Scrum basics? Need a quick Scrum overview? Here are 10 interesting facts from the latest Scrum guide that every Agile developer needs to know.
-
How to use Java's conditional operator ?:
- TechTarget 08 Aug 2022 -
Java Scanner User Input Example
- TechTarget 08 Aug 2022 -
Java Scanner import
- TechTarget 07 Aug 2022 -
How to use Java printf to format output
- TechTarget 06 Aug 2022 -
How to format a Java String with printf example
- TechTarget 24 Jul 2022 -
Java Scanner String input example
- TechTarget 23 Jul 2022 -
How to format a Java int or long with printf example
- TechTarget 18 Jul 2022 -
Java double brace initialization explained by example
- TechTarget 18 Jul 2022 -
Java Scanner char input example without nextChar
- TechTarget 17 Jul 2022 -
How to format a Java table with printf example
- TechTarget 17 Jul 2022 -
Java comment types by example
- TechTarget 13 Jul 2022 -
User input with Java's Console class
- TechTarget 12 Jul 2022 -
What is a Scrum commitment?
- Scrumtuous Inc. 10 Jul 2022 -
Agile vs DevOps: What's the difference?
- Scrumtuous Inc. 08 Jul 2022 -
How to format a Java double with printf example
- TechTarget 13 Jun 2022 -
How to setup the Nginx Proxy Manager Docker example
- TechTarget 12 Jun 2022 -
Example Java String palindrome checker program using recursion
- TechTarget 11 Jun 2022 -
How to git push an existing project to Bitbucket
- TechTarget 10 Jun 2022 -
Java array size, length and loop examples
- TechTarget 10 Jun 2022 -
How do I install Java?
- TechTarget 10 Jun 2022 -
How do I find the Java array length?
- TechTarget 09 Jun 2022 -
How do I find the Java String length?
- TechTarget 09 Jun 2022 -
Java length vs length(): What's the difference?
- TechTarget 09 Jun 2022 -
How to run a Jar file
- TechTarget 09 Jun 2022 -
Fix the 'expected a step' Jenkins error
- TechTarget 08 Jun 2022 -
'Java Not Recognized' Error Fix
- TechTarget 08 Jun 2022 -
The best Jar file opener app
- TechTarget 07 Jun 2022 -
How to open a JAR file
- TechTarget 07 Jun 2022 -
How to setup a Docker Nginx reverse proxy server example
- TechTarget 06 Jun 2022 -
How do I 'docker copy' a file from container to host?
- TechTarget 05 Jun 2022 -
How to setup an Nginx load balancer example
- TechTarget 05 Jun 2022 -
How to install Docker and docker compose on Ubuntu
- TechTarget 04 Jun 2022 -
How do I install Java on Ubuntu?
- TechTarget 01 Jun 2022 -
How do I install Java on Windows?
- TechTarget 01 Jun 2022 -
How to create a database schema in MySQL
- TechTarget 31 May 2022 -
How can business leaders and IT improve communication?
31 May 2022 -
How should developers approach professional development?
- CogArtTech 31 May 2022 -
How to write an Agile user story
- TechTarget 31 May 2022 -
What should developers know about machine learning?
31 May 2022 -
How to git push an existing project to GitLab
- TechTarget 30 May 2022 -
Create a Bitbucket App Password example
- TechTarget 29 May 2022 -
How to setup an Nginx reverse proxy server example
- TechTarget 28 May 2022 -
How to setup PHP on Nginx with fastCGI (PHP-FPM) example
- TechTarget 27 May 2022 -
Create a GitHub Personal Access Token example
- TechTarget 24 May 2022 -
How to customize Git Bash Shell prompt settings
- TechTarget 24 May 2022 -
Columns vs rows: What's the difference?
- TechTarget 22 May 2022 -
Docker run vs docker-compose: What's the difference?
- TechTarget 20 May 2022 -
Git commit config and credential confusion causes consternation for customers
- TechTarget 19 May 2022 -
Dockerfile vs docker-compose: What's the difference?
- TechTarget 18 May 2022 -
How to setup an Apache reverse proxy server example
- TechTarget 17 May 2022 -
How to use docker-compose with Apache httpd example
- TechTarget 17 May 2022 -
Deploy your website with a Docker Apache httpd container volume
- TechTarget 17 May 2022 -
How to dockerize Apache httpd websites example
- TechTarget 17 May 2022 -
Imperative vs. declarative Kubernetes commands: What's the difference?
- CogArtTech 09 May 2022 -
CDI Full vs CDI Lite: What's new in Contexts and Dependency Injection 4.0
20 Apr 2022 -
Hibernate 6.0 release marks a milestone for JPA 3.x development
- EnigmaStation 19 Apr 2022 -
Being Agile vs. doing Agile: What's the difference?
- Scrumtuous Inc. 18 Apr 2022 -
Top 5 best Scrum Master certifications of today
- Scrumtuous Inc. 19 Mar 2022 -
Noon is not 12am. Midnight is not 12pm. Code appropriately.
- TechTarget 14 Feb 2022 -
How to convert a PEM file to PPK format example
- TechTarget 08 Feb 2022 -
Node.js file upload example with Ajax and JavaScript
- TechTarget 07 Feb 2022 -
How to create an AWS account alias
- TechTarget 26 Jan 2022 -
Lessons learned from the Log4j vulnerability
25 Jan 2022 -
Comparing Rest vs GraphQL on performance and ease of use
- CogArtTech 23 Jan 2022 -
Why we use ./ (dot slash) to run Linux scripts?
- TechTarget 21 Jan 2022 -
Fix Apache's 'ServerRoot Must be a Valid Directory' error quickly
- TechTarget 21 Jan 2022 -
Principle of least privilege examples & best practices
- TechTarget 19 Jan 2022 -
Quickly set up GitHub SSH example
- TechTarget 16 Jan 2022 -
How to install Apache's Web Server on Windows 10 quickly
- TechTarget 15 Jan 2022 -
Top 5 AWS root account best practices
- TechTarget 14 Jan 2022 -
BitBucket SSH key generation tutorial
- TechTarget 14 Jan 2022 -
How to create and run a shell script in Linux and Ubuntu
- TechTarget 14 Jan 2022 -
Git securely with a GitHub SSH URL example
- TechTarget 13 Jan 2022 -
Quick GitHub 'Permission denied (publickey)' SSH error fix
- TechTarget 12 Jan 2022 -
A quick GitLab SSH key configuration example
- TechTarget 11 Jan 2022 -
How to SSH into GitHub on Windows example
- TechTarget 11 Jan 2022 -
A quick GitHub SSH clone example
- TechTarget 11 Jan 2022 -
How chmod numbers work explained by example
- TechTarget 08 Jan 2022 -
Was GitHub's password authentication removal an overstep?
- TechTarget 05 Jan 2022 -
Git and GitHub SSH KeyGen by Example
- TechTarget 02 Jan 2022 -
The psychology of offering developers programming advice
31 Dec 2021 -
How to quickly change your branch in Git
- TechTarget 31 Dec 2021 -
Fix Putty's 'Key Exchange Algorithm Agreement' error
- TechTarget 29 Dec 2021 -
Spring Boot file upload example with Ajax
- TechTarget 28 Dec 2021 -
Simple Ajax file upload with pure JavaScript example
- TechTarget 27 Dec 2021 -
Simple Struts 2 file upload example
- TechTarget 25 Dec 2021 -
Create an HTML5 and PHP file upload form for Apache example
- TechTarget 24 Dec 2021 -
Java file upload by example with Servlets & JSPs
- TechTarget 23 Dec 2021 -
Learn how Kubernetes Operators work from this example
- CogArtTech 06 Dec 2021 -
How to find and use a GitHub URL by example
- TechTarget 01 Dec 2021
Quickly learn how to use the Java ternary operator and see how this simple programming construct can help make your conditional logic, if statements and return statements clearer and more concise.
This tutorial on how to use the Java Scanner for user input will quickly show you how to import java.util, take String, int, double and char input, and teach you the difference between the ...
The easiest way to access the Java Scanner class is to import the java.util package into your code. But how exactly do you import the Java Scanner, and what exactly does it mean to import the ...
Learn by example how format output with the Java printf method. If you want to format dates, times, integers, doubles and Strings in the text you output to the console, logs or streams, you'll need ...
The Java String printf method makes adding and formatting text incredibly easy. In this quick tutorial, you'll learn by example how to format, justify, pad and case output printed with Java's ...
Java's Scanner class provides a simple and effective way to handle user input. In this simple example, we show how to use Java's Scanner for String input with methods like next(), nextLine() and ...
Here's a quick tutorial on how to use printf to format Java int, long, short and byte values. It's pretty easy to do. And the output you can generate can be very visually appealing.
Java's double brace initialization feature saves time and shaves off a few keystrokes when you initialize a Set or seed a List for testing. Here's a quick example of how to use Java's double brace ...
How to add Java Scanner char support The Java Scanner class provides methods that take String input and convert that String into any Java primitive type you might need, except for one: the char. ...
Why not make your console output look pretty? Create, format and print data tables with Java printf statements, along with a clever combination of dashes, pipelines and printf placeholders.
There are three types of Java comments developers need to know. Here we show you how to use block, inline and JavaDoc comments with simple examples to make best practices clear.
The Java Console class has greatly simplified user input in Java. The readLine method to get user input from the console, and the printf method for outpu, are way easier than using Java Scanner or ...
What are the 3 Scrum commitments and why do we need them? Most importantly, Scrum commitments provide transparency and focus, but their role in Agile software development goes far beyond that.
Wondering how to choose between Agile or DevOps? You're in luck, but it's not about DevOps versus Agile. It's about how Agile and DevOps work together. Here we examine the similarities and ...
Formatting output in Java doesn't have to be hard. Here's how to use Java printf with double values to control decimal precision, thousands groupings and character width when you format ...
Learn how to setup and install the Nginx Proxy Manager from Docker Hub. This simple tool greatly simplifies the configuration of Nginx reverse proxy servers, asset caching, host redirecting and SSL ...
There are many ways to write a Java String palindrome program. In this Java palindrome example we demonstrate recursion and how the use of loops, arrays, Scanner and the reverse method can improve ...
Follow these simple steps to push an existing project to a Bitbucket repo, and successfully add all of the code on your local machine into a remote Bitbucket repository.
How do you find the size of a Java array? How do you size Java arrays when you create them? And is the Java array size fixed? Here we answer all of your questions about the size of a Java array.
To install Java the right way, there are a few things to know. Just sort out the perquisites and you'll be able to install Java and the JDK in no time flat.
How do you find the size of an array in Java? Just use the array length property. But there are some 'gotchas' to be aware of. Read this Java array length tutorial and stay clear of runtime errors ...
The need to find the length of a Java String is a common programming requirement. Learn how to get the size of a Java String and avoid lengthy errors developers often encounter.
Have you ever been confused between length and length() in Java? Here we show you the difference between Java length properties and methods, and when to use them in your code.
How do you run a JAR file on Windows, Mac or Linux? Double click the JAR? Run the JAR at the command line? Several approaches will work if you have Java or the JDK installed.
Have you encountered the 'expected a step' error in Jenkins? Are you using a declarative pipeline? Here's the most likely way to fix the 'expected a step' error in Jenkins.
Here are three easy ways to fix the 'Java not recognized as an external or external command' error on both Windows and Linux machines.
There are many Java JAR file openers available on the market today. Here are the top 5 JAR file openers for both Java developers and casual users to install on their Windows or Linux machines.
You can open JAR files with any ZIP utility. A JAR file is just a special type of ZIP file. And to run a Java JAR file, just install Java and either double-click it or run the JAR file at the ...
The ability to put an Nginx reverse proxy in a Docker container greatly simplifies enterprise architectures. Here's how easy it is to setup and configure an Nginx reverse proxy Docker image and ...
Here's a quick example of how to copy a file inside a Docker container to the local filesystem of the host machine. With the ID or name of the container in hand, a Docker file copy operation is an ...
Nginx is among the most popular load balancers and reverse proxy servers for enterprises. Here's how to quickly setup Nginx as a load balancer and configure weighted nodes and sticky sessions.
Modern day development happens in containers. Which is why it's imperative that you know how to setup and install Docker and docker compose on your local Ubuntu workstation. In this tutorial, we'll ...
Here's the easiest way to install Java on Ubuntu with apt. Follow these steps and you'll get the JDK installed in no time, and be ready to use your Java on Ubuntu setup right away.
To install Java on Windows you only need to follow these five simple steps. In this quick tutorial, we'll show you how to setup Java on Windows and run apps like Minecraft and Apache Tomcat on the JDK.
Want to work with MySQL databases using Java? Here's a quick walkthrough of the first step to do that: create a schema.
The days when companies could afford to treat IT as simply the department that keeps the computers running are long gone. Technology delivers massive value to business leaders. Business ...
There's a joke that goes like this: A doctor takes his Mercedes in for a brake job. When he picks up the vehicle the next day, the mechanic presents him with a bill for $2000. "Two thousand dollars ...
Agile user stories describe software project requirements as needed by different end users. Follow these guidelines to translate user needs into product features and business value.
As artificial intelligence and machine learning become increasingly important in the world of enterprise development, programmers need to know the ins and outs of AI and ML.
Steps to push an existing project to GitLab Follow these steps to add and import a new project into an existing GitLab repository: Create a GitLab repository for the current project. Copy the ...
Learn how to quickly create a Bitbucket App Password so your Git push and clone operations don't fail with fatal 'invalid credentials for authentication' errors.
Here's a quick tutorial to setup an Nginx reverse proxy server. This example uses an Apache Tomcat server but the config settings apply for other backend app servers such as Node, Express, ...
Here's a quick tutorial on how to setup Nginx with PHP support. The key? The installation of fastCGI, aka PHP-FPM, so Nginx can serve PHP files to clients.
This walkthrough shows how to generate a GitHub personal access token, and use the GitHub personal access token to clone, pull, fetch and push changes back to your GitHub repository.
Want to style and customize your user and hostname properties that display in the Git Bash prompt? This quick example shows you how to quickly customize your Git Bash terminal window.
Learn the difference between columns vs rows, and learn how the use of rows and columns to organize objects and information in spreadsheets and tables has improved various fields from data ...
Both docker run and docker-compose can be used to start Docker containers, but there are key differences between the two. Here we explore the differences between docker-compose and docker run, and ...
A user who accidentally provides a GitHub username and password instead of the Git username and email address may have inadvertently published their security credentials to the world.
What's the difference between Dockerfile and docker-compose? These simple examples compare Dockerfile, the docker-compose.yaml file and important commands to build Docker images and run Docker ...
Most enterprise architectures use Apache as a reverse proxy, but it is not configured for that by default. In this quick tutorial, we show you how to configure an Apache reverse proxy for backend ...
Want to configure and run an Apache httpd Docker container to serve website files from a local system? This example shows the best way to do that, using the "docker-compose" command and YAML file.
The best way to run Docker's httpd Apache web server image is to map a volume that points to local files on your hard drive. This example shows you how to run Apache in Docker without the need to ...
Need to dockerize Apache? Want to build a custom Docker httpd image that hosts your website? Here's a simple Apache Dockerfile example to build a custom httpd Docker image for your website.
Imperative and declarative Kubernetes commands are the two different ways to configure the state of your clustered environment. Here we compare declarative versus imperative commands and show you ...
There's an interesting change packaged inside the CDI 4.0 release that will change the way you think about the API. Version 4.0 of Jakarta Contexts and Dependency Injection (CDI) changed the ...
Hibernate 6.0 has finally been released. Here's what this full increment release means for developers who use JPA for persistence.
What's the difference between being Agile and doing Agile? It's subtle, but it's significant. Here we compare them and show you how to both be Agile and do Agile the right way.
Whether you are hiring for a career position or just trying to build your resume, this list of the top 5 best professional Scum Master certifications to have will provide you insights on the skills ...
The terms 12am and 12pm make no logical sense. Neither one is noon or midnight. Remove the 12am vernacular from your applications. Users will thank you.
Need to SSH into a remote server with PuTTY but your PEM file just won do the trick? Here's a quick example of how to convert a PEM file to PPK format with PuTTYGen so your SSH sessions with PuTTY ...
The Node.js file upload process is made easy with libraries like 'fs' and 'formidable.' In this JavaScript and Node.js file upload example, we show you how to move files from the browser to the ...
Need to create, change or rename an AWS account alias? It's not too hard to do, and your users will thank you. Here are the steps to do it.
The Log4j 2 vulnerability was a black eye for the Java community. Here's how to protect yourself today, and how the community can protect itself in the future.
The problem with RESTful web services that use JSON or XML as a data exchange is bloat and verbosity. Compare REST vs GraphQL performance if you want to simplify your web API development.
Ever wonder why you need a ./ before a Unix shell script or command of your own in order to run it? Here's what the Linux dot slash does and why Unix systems require the ./ syntax.
Here are three easy ways to fix Apache's ServerRoot Must be a Valid Directory error. Any of these remedies will get your Apache HTTP server running again.
We see examples of the principle of least privilege everywhere in our daily lives. What does the principle of least privilege mean as applied to security in software development and DevOps?
Here's a very quick example of how to setup GitHub SSH keys and use them to perform Git clone, push and pull commands over a securely configured SSH connection.
Let me step you though the installation of Apache's Web Server on Windows 10. You'll learn how to install Apache 2.4 on Windows, and avoid common httpd config errors.
The credentials of your server's super user must be protected at all costs. Here are five AWS root account best practices to protect yourself from being hacked.
This simple and straight-forward example shows you how to quickly configure BitBucket SSH keys, so you can connect Git to BitBucket with a secure shell (SSH).
It's not hard to create and run a shell script in Linux distros like Ubuntu, but there are a few non-obvious pitfalls you need to avoid. Here's a quick example of how to execute a script in Linux.
Where do you find the GitHub SSH URL? How do you use it to clone or pull from your remote GitHub repository? This quick Git tutorial shows you everything you need to know about the GitHub SSH URL.
Here are the three most common fixes to the GitHub 'Permission denied (publickey)' error over SSH.
To connect Git operations securely to your GitLab repository, you will need to configure GitLab SSH keys both locally and remotely. Here's a quick example of how to do it.
Here's a quick tutorial to connect to GitHub with SSH on Windows. It's easy, and you'll establish a GitHub SSH Windows connection with Git in no time.
Here's a quick example of how to perform a GitHub SSH clone operation. In just five minutes, learn how to create SSH keys, configure them in GitHub and perform the GitHub clone with SSH keys in Git.
Don't let yourself be intimidated by chmod numbers and permissions. Here's a quick and easy to understand explanation of how chmod permission numbers work in Linux.
Was GitHub's removal of password based authentication a security overstep? If it makes it harder for developers to get started with Git and GitHub, it was.
Here's a quick example of how to securely connect Git to GitHub with SSH KeyGen produced secure shell keys on both Windows and Linux.
Need to provide programming advice, or perhaps even harsh criticisms to a team of developers? Here's a nice way, pyscyhologically sound, way to do it.
These Git branch change examples will help you quickly address the specific version control challenge you are trying to solve, be it a branch renaming or a switch, list and checkout of existing ...
Ever encounter the 'Couldn't Agree a Key Exchange Algorithm' error when you fail to connect with Putty to an AWS EC2 instance or other server-side resource? This is the first fix you should try.
Do you need to find a Spring Boot file upload that uses Ajax and works with Spring MVC web apps? This example uses HTML5 file input fields and a pure JavaScript Ajax call to accomplish the task.
Do you need to perform an Ajax file upload with pure JavaScript? This example lays out the steps to accomplish an Ajax file upload without the need for a JavaScript library like jQuery or Dojo.
In this Struts 2 file upload example we show you to take a local resource and upload it to a remote Java application server. All a developer needs is a file, a browser and an Internet connection ...
It's easier than ever for a developer to upload a file with PHP and HTML5 to an Apache web server. This example shows how to create an HTML and PHP file upload component that will work in any ...
It's not that hard to perform Java file uploads. The new Servlet and JSP API, along with HTML5 input form enhancements, make Java file uploads, both synchronously and asynchronously with Ajax, ...
Kubernetes (K8S) has become a very popular technology for working with distributed applications that run on the internet. K8S is intended to support an enormously large number of Linux containers ...
This example shows you how you can find and use the GitHub URL. Clone, fetch, push and pull to your remote repo easily with the GitHub URL at your disposal.