Running Local Model with Ollama
Sometimes, I need to run a model locally on my machine. This is useful for debugging and testing purposes.
This guide will show you how to run a model locally using Ollama.
Sometimes, I need to run a model locally on my machine. This is useful for debugging and testing purposes.
This guide will show you how to run a model locally using Ollama.
On macOS, the default shell is zsh. There are many ways to enhance zsh to optimize our experience.
Sometimes, we want to remotely control android devices which connected to another node like below:
graph LR
B[Emulator] --> A[Node IP:<192.168.98.87>];
C[Android Phone] --> A;
D[Rack] --> A;
E[...] --> A;
In this document I will introduce how circular import commonly arise and what are the main ways to fix them.
It is generally a bad pattern to kill a thread abruptly, in Python, and in any language.
The nice way of handling this, if you are managing your own thread, is to have an exit flag that each thread checks on a regular interval to see if it is time to exit:
Sometimes, existing code needs to be modified in batches, and these operations are too complex to be achieved through the IDE's replacement function.
AST is a good choice to do that.
Automated test rack requires the injection of rotary input events using the car_service
command, follow Set up a rotary controller.
I answered such a question on Stack Overflow: How do I extract all keys from this JSON file?
Retrieve all the dict keys from a dict whose values consist of multiple Iterable obj.
Using subprocess.Popen
to execute persistent commands and parse the standard output in real-time is a common practice, for example: