Pyrefly: the performant type checker for Python
Recently I have worked to set up type checking in our CI pipeline using pyrefly. In this post, I want to share how to configure pyrefly and…
Welcome to my personal website! I am glad to hear what brings you here. Do not hesitate to share in the comment below! Who am I? # I am a machine lear…
https://jdhao.github.io/ · github
Welcome to my personal website! I am glad to hear what brings you here. Do not hesitate to share in the comment below! Who am I? # I am a machine learning engineer who is passionate about solving real-world problems. I am currently working in E-commerce search using Elasticsearch, GCP Pub/Sub and Py…
技术 #neovim #Python #Vim #code #Windows #Image #Share #Git
Recently I have worked to set up type checking in our CI pipeline using pyrefly. In this post, I want to share how to configure pyrefly and…
In this post, I talk briefly about trace sampling in Opentelemetry.
In this post, I will share how to integrate opentelemetry tracing with GCP logging.
We all make typos from to time, and it is time-consuming to do this manually.
In this post, I want to share how to export the traces generated by your FastAPI application to the GCP observability platform.
With OpenTelemetry, you can easily trace a single request across multiple services in a distributed system. In this post, I would like to sh…
Recently, I was working on migrating our Elasticsearch cluster to serverless. We have an index where some field stores dense vectors used in…
In Elasticsearch, when you index document to an index, if you do not specify the mapping for the field, Elastic will use dynamic mapping to…
In our work, we are using renovate to update the dependency packages for Python projects. Previously when we are using good old pip and requ…
To make python plugins work in Neovim, we need to set up the python provider properly. Usually, this means setting up the correct path to Py…
Notes about how to use ripgrep to search hidden files and configuration related to Neovim.
We have a Python project where there are several developers, and we have a mature CI pipeline to do code linting, formatting check for pytho…
A major Neovim release (version 0.12) has been released a few days ago, after more than one year from the last major release (version 0.11).…
When unit-testing a function that make multiple external calls/requests, we want to mock the actual call and return the mock results. For ea…
Previously, our projects are still using the old Python 3.10, which will be deprecated soon this year. We are also using the good old pip an…
In python projects, we always need a linter to catch potential issues and enforce best practices. In the past, there were linters like pylin…
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…
In this post, I compare the object vs nested type used in data mapping in Elasticsearch.
When you do code testing using pytest, pytest can do sophisticated changes to your logging. This is a very powerful feature, but carries som…
In Elasticsearch, when we index documents to an index, by default the source of the document is stored in meta field _source. When you searc…
本文总结如何制作中式家常版本的“葱花饼”。
今天总结一下在德国超市里常见的蔬菜苤(piě)蓝(德语叫kohlrabi,在中国东北叫“卜留克”) 凉拌的做法。
和众多网友一样,我也有高考 PTSD。
Recently I was trying to sync my hiking course from Garmin connect to my Garmin Forerunner 965 and found that it does not work.
In Elasticsearch, you can use wildcard in a lot of the index operations. This is very handy, but can be dangerous sometimes, e.g., when you…
This post will give a quick summary on how to import GPX route into Garmin watch.
When I try to run pytest locally for a Python project, I noticed that the import in those test scripts may fail if I run pytest in different…
本次来复刻泰国非常受欢迎的打抛饭。
本文总结如何用烤箱烤羊肉串。
When we are using 3rd packages in Python, we may see some warning messages. For example, when you use the package BeautifulSoup and provide…
这次来总结一下烤箱烤鸡腿的做法。
In this post, I would like to compare several speakers that are relatively small in size and are suitable as desktop speakers.
Although neovim has built a lot of modules to ease the use of Lua, sometimes we may still want to use packages from LuaRocks. In this post,…
最近趁着黑五入手了外接显示器,顺便了解了一下显示器相关的各种标准和技术,本文做一个总结。
寒冷的冬天,和羊肉汤更配。
When using APScheduler package in Python, I want to run the scheduled job right after I start the scheduler. How can I do it properly?
When we use one of the google cloud python clients to communicate with GCP, there may be errors occurring sometime calling the client API me…
今天来总结一下土豆金枪鱼沙拉的做法。
本次来总结一下椰汁咖喱鸡的做法。
本次来总结凉拌绿豆宽粉的做法。
When deploying a Python application to GCP Kuberntes Engine, we may see issues that the logging level is not correct in the cloud logging ex…
本次来复刻一下在网上看到的西班牙土豆饼。
The version conflict error is often seen when doing document indexing operations in Elasticsearch.
In Elasticsearch (ES), you can run a task and check its status with the task API. For example, if you use the reindex API in ES with paramet…