Ruang penulis
SEBUAH JURNAL TENTANG TEKNOLOGI

Belajar hal baru.
Tulis. Bagikan.

Ruang untuk merangkai pengetahuan, satu baris kode setiap hari.
Temukan tutorial, ide, dan catatan dari perjalanan belajar.

1914 catatan & terus bertumbuh
PILIHAN EDITOR
Java

Memahami Java Stream: olah koleksi dengan lebih ringkas

Pelajari alur filter, map, dan collect untuk mengolah data Java dengan kode yang mudah dibaca.

D Tim Diary Coding · 1 menit baca
UNTUK RASA INGIN TAHUMU

Catatan terbaru.

CONCURRENCY / CATATAN</>
Concurrency10 Mei 2025

How do I fine-tune thread pool behavior with ThreadPoolExecutor?

Fine-tuning thread pool behavior using ThreadPoolExecutor in Java is a powerful way to control thread execution and optimize performance according to your application’s needs. Here’s a detailed guide including key parameters and customization options: 1. ThreadPoolExecutor Overview The ThreadPoolExecutor class in the java.util.concurrent package provides a configurable thread pool implementation that lets you manage thread […]

Wayan · 4 menit baca
KOTLIN / CATATAN</>
Kotlin09 Mei 2025

How do I use lambdas and anonymous functions in Kotlin?

In Kotlin, lambdas and anonymous functions are fundamental features used for functional programming. They allow you to write concise and flexible code. Here’s an overview on how to use them: 1. Lambda Expressions A lambda is an anonymous function defined using curly braces {}. It’s a short way to declare a function without explicitly naming […]

Wayan · 3 menit baca
JSCH / CATATAN</>
JSch09 Mei 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 menit baca
CONCURRENCY / CATATAN</>
Concurrency09 Mei 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 menit baca
CONCURRENCY / CATATAN</>
Concurrency09 Mei 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 menit baca
JSCH / CATATAN</>
JSch08 Mei 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 menit baca

Pengetahuan tumbuh ketika dibagikan.

Simpan rasa ingin tahu. Selalu ada hal baru untuk dipelajari.

Jelajahi catatan ↗
Putu Adi Guna Permana
TENTANG PENULIS

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

Penulis dan pendiri Diary Coding — berbagi catatan, tutorial, dan pengalaman seputar pemrograman untuk siapa pun yang ingin terus belajar.