Skip to content

Blog

Quote: If you hold a gun and I hold a gun

The Godfather II movie 1974 https://www.goodreads.com/quotes/12783145-if-you-hold-a-gun-and-i-hold-a-gun “If you hold a gun and I hold a gun, we can talk about the law. If you hold a knife and I hold a knife, we can talk about rules. If you come empty handed and I come empty handed, we can talk about reason. But if you have a gun and I only have a knife, then the truth lies in your hands. If you have a gun and I have nothing, what you hold isn’t just a weapon, it’s my life. The concepts of laws, rules and morality only hold meaning when they are based on equality. The harsh truth of this world is that when money speaks, truth goes silent. And when power speaks, even money takes three steps back. Those who create the rules are often the first to break them. Rules are chains for the weak, tools for the strong. In this world, anything good must be fought for. The masters of the game are fiercely competing for resources while only the weak sit idly, waiting to be given a share.”

Read more →

2026-11-11

Julia code loading

The documentation about Julia code loading: https://docs.julialang.org/en/v1/manual/code-loading/ See also Julia package management

Read more →

2026-02-02

Package management in Julia

Official documentation for Pkg.jl: https://pkgdocs.julialang.org/

Read more →

2026-02-02

Convert PDF to TIFF

Convert pdf files to tiff images with pdftoppm or ghostscript.

Read more →

2025-02-02

Julia design patterns

Some notes of Tom Kwong’s book Hands on Design patterns in Julia.

Read more →

2025-02-02

Publish Julian Jupyter notebooks

This post will demonstrate my template repository about How to use Docker to build a Julian Jupyter notebooks runtime environment. How to use GitHub actions to execute notebooks in the docker container in parallel. How to use jupyter-book to publish notebooks automatically when changes are pushed to GitHub. Docker image as the runtime environment Create a Dockerfile for the runtime environment. The whole content is:

Read more →

2025-02-02

Status check for a multi-stage workflow

If you run a multi-stage workflow with status checks in branch protection rules, you might found that skipped jobs are treated as “passed”. That is, if you have a workflow with a chain of dependent jobs A -> B -> C. When B fails and C is skipped, it still counts as passed when checking job C. Thus, auto-merging may merge broken code.

Read more →

2024-04-04

Convert GitHub issues to a markdown file

The Python package https://github.com/mattduck/gh2md exports Github repository issues and pull requests to a single, readable markdown file.

Read more →

2024-04-04

Stellaris console commands

Stellaris console commands Stellaris IDs Stellaris cheats Stellaris mods

Read more →

2024-04-04

Check battery status

Open Windows Powershell with Administrator rights and run:

Read more →

2024-03-03