Voice-to-code, control your AI Agents like a boss
Control AI agents like Amp and Claude Code using only your voice with voice-to-code. Free, runs locally, and works offline. Stop typing, start talking.
About technology stuff that piqued my interest
Control AI agents like Amp and Claude Code using only your voice with voice-to-code. Free, runs locally, and works offline. Stop typing, start talking.
Điều khiển AI Agent như Amp hay Claude Code bằng giọng nói với voice-to-code. Chạy hoàn toàn trên local, không tốn một đồng.
Trong Python có sẵn một số handler để xử lý lỗi encode. Hơn thế nữa, ta còn có thể tự thêm hàm handler của mình vào module codecs bằng hàm register_error.
Python supports built-in handlers to cope with encoding errors. Not only that, we can also define our own handlers and register them with the codecs module.
Hàm deep copy đảm bảo rằng mọi thay đổi trên bản sao không làm ảnh hưởng tới bản gốc. Hôm nay chúng ta sẽ cùng tìm hiểu cách thức hoạt động của nó.
The deep copy method makes sure that changes made to a copy don’t affect the original object. Today, we will see how it works behind the scenes.
Context manager trong Python thường được dùng để quản lý việc cấp phát và giải phóng tài nguyên. Nhưng hôm nay ta sẽ dùng nó cho những mục đích khác lạ hơn.
Context manager is an interesting feature in Python. Its main use is to manage resources. But today, we will explore some of its more exotic uses.
Metaclass là một tính năng thú vị của Python. Nhưng trong một số trường hợp, nó là phức tạp hơn mức cần thiết. Lúc đó, ta có thể sử dụng hàm `init_subclass`.
Metaclass is an interesting feature in Python. But in many situations, it is overkilled. From version 3.6, we can replace it with the `init_subclass` method.