MoreRSS

site iconjdhao修改

在德国的机器学习工程师。在 NumPy、OpenCV 和 PIL 等工具以及 Matplotlib 等数据可视化工具方面经验丰富。
请复制 RSS 到你的阅读器,或快速订阅到 :

Inoreader Feedly Follow Feedbin Local Reader

jdhao的 RSS 预览

Check Trailing White Spaces in Your Project

2025-12-20 01:19:30

When I am working on a Python project, I am using black to format the code, so that we have a unified format across the code base.

One pain point, however, is the super annoying trailing white spaces:

  1. black can remove trailing spaces for doc string, code and comment, but it will not touch trailing spaces in, e.g., multi-line strings.

菜谱:茄子肉丁

2025-11-20 05:06:06

object vs nested type in data mapping in Elasticsearch

2025-11-20 01:08:32

In this post, I compare the object vs nested type used in data mapping in Elasticsearch.

Logging setup for Pytest

2025-10-30 02:23:50

When you do code testing using pytest, pytest can do sophisticated changes to your logging. This is a very powerful feature, but carries some subtlety.

Select fields in Elasticsearch: _source, fields and stored_fields

2025-10-17 03:44:50

In Elasticsearch, when we index documents to an index, by default the source of the document is stored in meta field _source. When you search your index, you see a special field _source for each matched/hit product.