Migrate pip to uv

uv is a super fast dependency resolver. Assume now your have: .venv: the virtual environment directory requirements.txt: the dependency list file It is easy to migrate from pip to uv with following commands. uv venv .venv source .venv/bin/activate uv init uv add -r requirements.txt

Terminal autocomplete (only macOS and Linux)

9 Technical Leave a Comment
How to Make your terminal smarter? Install Oh My ZSH! sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" Install zsh-autosuggestions and zsh-autocomplete: brew install zsh-autosuggestions zsh-completions Add following to ~/.zshrc: source /opt/homebrew/share…

Keycloak configuration problems and solutions

400 Bad Request when login Please check your realm name, it should not include SPACE. How to get client secret You need to turn on Client authentication and Authorization at client Settings. Then you can see and copy the Client secret from the credentials tab. How to get Access token signature algorithm You wil…

How to download and license ESXi 8?

95 Technical Leave a Comment
It is not easy to download ESXi 8 from Vmware official website. You must have visited Wmware's official website, but they only put a link to broadcom, and then they kept jumping around, and in the end you still couldn't find the correct download link. In this article, we will explain step by step how to downloa…

Get clicked word using pure Javascript

39 Technical Leave a Comment
On browser, if we want to get the clicking word we can use following Javascript: var captureWordOnClick = function(containerEl, callback) { containerEl.addEventListener('click', function (event) { // Get the mouse position relative to the clicked element const x = event.clientX; const y = event.client…
Next Page »