tikzposter and hyperref error
When you use the tikzposter LaTeX class and also the hyperref package with colorlinks=true, and you encounter a compilation error similar to `! LaTeX Error:
169 words
|
1 minute
Listing files in each layer of an saved Docker image
If someone gives you a Docker image as a tarball, i.e., the output of docker save, and if you want to find a file that was deleted at some point and does not exist in the final image, how to do it?
161 words
|
1 minute
Removing unwanted space in LoF and LoT between chapters’ extries
In LaTeX, when using book or report class, there may be extra space in LoF (List of Figures) and LoT (List of Tables) that doesn’t go away no matter how hard you try. The extra space is probably caused by the use of \chapter. For example, consider the following dummy code:
329 words
|
2 minutes
Cotangent in NumPy: pathetic online Python tutorial
I never thought one day I would want to write a post regarding calculating cotangent with NumPy in Python. Isn’t cotangent just the inverse of tangent? Can’t we calculate cotangent just by one over tangent? Yes, cotangent is simple. It’s probably mid-school math. However, if you’ve ever searched numpy cotangent on Google, you would be surprised that two of the top three search results (see the figure) are completely wrong. How pathetic! Search results of numpy cotangent
182 words
|
1 minute
Replacing XPS 13 7390 Cooling Fans with 9380/9370 Fans
About one year ago, my XPS 13 7390 started to make noise. The noise came from one of the fans. I managed to reduce the noise by tuning the cooling profile so that most of the time only the good fan was running, while the defective fan ran only when the temperature was high. (See the post I wrote at that time about how I tuned it in Arch Linux.)
454 words
|
2 minutes
Sending desktop notification in Linux with Python with D-Bus directly
I recently found a lot of third-party libraries that help send desktop notifications in Linux. I just don’t get it. Most of these libraries just wrap the call to libnotify’s notify-send into a function or even an over-engineered class. You don’t really need these third-party libraries to do the job… You can do the same job with merely two or three new lines in your code. notify-send is a command-line tool. You can call the command-line tool through Python’s subprocess:
313 words
|
2 minutes
Difference between PartOf and BindsTo in a systemd unit
Note: the Python script used to run all the tests mentioned in this post can be found on my GitHub Gist: https://gist.github.com/piyueh/54b85e13800d42b9eccb47c7e0d6db7f
1251 words
|
6 minutes