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.

JSCH / NOTES</>↗
JSch09 May 2025

How do I implement a secure SSH proxy tunnel using JSch?

To implement a secure SSH proxy tunnel using JSch (Java Secure Channel library), you can follow these steps. JSch is a Java library designed to perform SSH operations like creating tunnels, port forwarding, and other remote operations. Here’s a detailed implementation guide: 1. Code for Creating an SSH Proxy Tunnel Here’s how you can create […]

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

How do I configure a custom thread factory for better debugging?

Configuring a custom thread factory can enhance debugging by customizing the naming and behavior of threads you create for your application. By providing meaningful names to threads and optionally logging their creation, you can significantly simplify debugging and profiling, especially in multi-threaded environments. Here’s how you can configure a custom thread factory in Java: Steps […]

Wayan · 3 min read
CONCURRENCY / NOTES</>↗
Concurrency09 May 2025

How do I detect and avoid deadlocks in concurrent Java applications?

To detect and avoid deadlocks in concurrent Java applications, you need to understand what causes deadlocks and how to mitigate them effectively. Here’s a structured explanation: What is a Deadlock? A deadlock occurs when two or more threads are waiting for each other’s resources indefinitely, preventing further progress. For example: Thread A locks Resource 1 […]

Wayan · 3 min read
JSCH / NOTES</>↗
JSch08 May 2025

How do I check file existence and permissions over SFTP using JSch?

To check for file existence and permissions over an SFTP connection using JSch in Java, you need to use the ChannelSftp class provided by the JSch library. Here’s how you can do it step by step: Steps: Establish an SFTP connection using the JSch class. Open an SFTP channel (ChannelSftp). Use ChannelSftp.lstat() to check the […]

Wayan · 3 min read
CONCURRENCY / NOTES</>↗
Concurrency08 May 2025

How do I build a work-stealing pool with ForkJoinPool?

Building a work-stealing pool using the ForkJoinPool in Java is straightforward, as the ForkJoinPool class natively supports the work-stealing mechanism. Work-stealing allows idle threads to “steal” tasks from the queues of other busy threads, increasing the efficiency of the processing. Here’s how you can create and use a work-stealing pool with ForkJoinPool: 1. Understanding ForkJoinPool […]

Wayan · 4 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.