All posts with label

Header: nvim-fold

Automatically folding Python docstrings in Neovim

2024-06-22

Python docstrings are extremely suitable to be folded, and folding docstrings makes Python code cleaner. This can be achieved in Neovim without plugin, just with built-in foldexpr and tree-sitter.

Header: markdown-custom-render

Three levels of Markdown custom rendering

2024-05-20

There are many way to customize Markdown rendering, including direct RegExp replacements, remark + rehype, and direct rendering the Markdown AST. The last approach can turn plain Markdown documents to full components and is the most powerfull one.

Reverting changes in Overleaf

2023-05-14

Getting documents older than 24 hours back in Overleaf, discarding changes you just made, without upgrading your Overleaf plan.

Header: pi-sgp30

House air quality monitoring with Raspberry Pi and SGP30

2023-05-06

Connect SGP30 to your raspi and send data to InfluxDB and Grafana with Python. And then set up alerting in Grafana.

Header: influxdb-downsample

Downsampling with existing data with InfluxDB

2023-05-03

Setting up continuous query and retention policy for downsampling with existing data in InfluxDB 1.x.

Header: iot-sensors-setup

Building IoT sensor dashboard with Grafana on Raspberry Pi

2023-04-03

We are going to connect the DHT11 sensor to a Raspberry Pi and send the sensor data to InfluxDB, and build a beautiful dashboard with Grafana!

Header: header in light theme

JupyterLab beyond simple widgets: interactive Lorentzian fitting

2023-02-15

JupyterLab can be interactive with IPython widgets. But we can also make the plot interactive and act like a GUI app!

Header: julia-nvim

Working with and formatting Julia in Neovim

2022-11-16

It requires some effort to make Neovim work pleasantly with Julia, especially the formatting part. But it's possible with null-ls and precompiling.

Too many containers may cause random IPv6 loss on Raspi

2022-08-16

Raspi's IPv6 randomly disappears, but other devices are fine? Maybe you have spun up too many Docker containers!

Header: image

Linux 桌面环境 (Manjaro + KDE Plasma) 使用体验

2022-08-03

多年 Windows 老用户转 Linux 系统 (Manjaro + KDE Plasma) 约一年,这里是我的使用感受。本文介绍将 Linux 相比于 Windows 作为主力系统,好在哪里又不方便在哪里。

Header: Nginx Proxy Manager, in light theme

Fixing Bad Gateway error in Nginx Proxy Manager

2022-07-20

Solving the "Bad Gateway" / "Encountered error while trying to install package" / "Python.h: No such file or directory" error by using piwheels.

Playing sound with Qt in Python: Error decoding source

2022-07-11

The correct way for playing sound with PySide6 and fixing the "error decoding source".

1 2 3 4 5