SupportWriter space ↗
REFERENCE LIBRARY

References from other publishers

Republished articles with source attribution. This collection is separate from Diary Coding’s original guides and does not display ads.

Read original guides → · Editorial policy

FOR YOUR CURIOSITY

Latest notes.

MAVEN / NOTES</>↗
Maven05 May 2025

A Comprehensive Guide to Setting Up Apache Maven

In this guide, you’ll learn everything you need to know about Apache Maven—from what it is to how to configure it across different operating systems. What is Apache Maven? In simple terms, Maven is a powerful build and project management tool primarily used by Java developers. Compared to older build systems like Apache Ant, Maven […]

Wayan · 4 min read
HIBERNATE / NOTES</>↗
Hibernate05 May 2025

How do I set up Hibernate in a Maven project?

1. Introduction In this post, we’ll walk through the process of setting up a basic Hibernate project using Maven. Hibernate is a powerful ORM (Object-Relational Mapping) tool for Java, and it’s often used to simplify database interactions in enterprise applications. 2. Prerequisites Java JDK 17 or later Maven installed A code editor (e.g., IntelliJ IDEA, […]

Wayan · 4 min read
SPRING CORE / NOTES</>↗
Spring Core05 May 2025

How do I define and inject dependencies using annotations in Spring?

In Spring, you can define and inject dependencies using annotations, which simplifies the process of configuring beans and their relationships. Here’s how you can do it step by step: 1. Define a Dependency with @Component To define a class as a Spring-managed component (or bean), you annotate it with @Component, which makes the class eligible […]

Wayan · 4 min read
JAVA 10 / NOTES</>↗
Java 1005 May 2025

How to Work with the Root Certificates Included in Java 10

In Java 10, root certificates are included as part of the cacerts file in the Java Runtime Environment (JRE) to establish trust for security protocols like TLS/SSL. Java includes a default set of trusted Certificate Authorities (CAs) in this file. Here’s how you can work with the root certificates in Java 10: Accessing the Root […]

Wayan · 4 min read
CONCURRENCY / NOTES</>↗
Concurrency05 May 2025

How do I control access to resources using Semaphore?

To control access to shared resources in a multithreaded environment, a Semaphore is frequently used, which is part of the java.util.concurrent package. A semaphore manages a set number of permits that control how many threads can access a shared resource simultaneously. Threads acquire permits before accessing the resource and release the permits after they are […]

Wayan · 4 min read
JSCH / NOTES</>↗
JSch04 May 2025

How do I configure key-based authentication with a passphrase using JSch?

When using JSch (Java Secure Channel) for SSH key-based authentication with a passphrase, you need to set your private key file (which is protected by the passphrase) and optionally the passphrase itself. Below is an example demonstrating how to configure key-based authentication using JSch: Code Example package org.kodejava.jsch; import com.jcraft.jsch.*; public class JSchKeyBasedAuthentication { public […]

Wayan · 3 min read
✳

Knowledge grows when shared.

Stay curious. There is always something new to learn.

Explore notes ↗
Putu Adi Guna Permana
ABOUT THE AUTHOR

Dr (C). Ir. Putu Adi Guna Permana, S.Kom., M.Kom., IPM., ASEAN Eng.

Writer and founder of Diary Coding — sharing notes, tutorials, and experiences about programming for anyone who wants to keep learning.