Ben Chuanlong Du's Blog

It is never too late to learn.

Docker on Mac

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. It is suggested that you install the offical docker app on Mac instead of installing docker using MacPorts/Homebrew. Docker installed using MacPorts/Homebrew might have issues to start.

  2. By default …

Gradle Kotlin DSL

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

AVOID using the Kotlin DSL for Gradle! The Kotlin DSL for Gradle is not mature and lack of documentation at this time. Stick with Groovy DSL for Gradle.

shadowJar

https://github …

Python Virtual Environment

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. venv is a standard Python library and is the recommended way for managing virtual environments in Python3.

  2. When developing a Python project, it is recommended that you use Poetry to manage …

Dataframe for JVM

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Spark DataFrame

Spark DataFrame is a great implementation of distributed DataFrame, if you don't mind having dependency on Spark. It can be used in a non-distributed way of course. Spark DataFrame …

Exceptions in Java

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. You can suppress warnings of unchecked exceptions by using

    SuppressWarnings("unchecked")
    

    but generally speaking, you cannot suppress warnings of checked exceptions.

  2. You can use more than one catch blocks if necessary …

Get Resources in Java

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. getResource and getResourceAsStream tries to find files in the resources directory under src/main/resources or src/test/resources (depending on whether you are running the application or tests for the …