Skip to content

Duong's Blog

About technology stuff that piqued my interest

  • English
  • Vietnamese
  • About me

Deep copy trong Python hoạt động như thế nào?

April 20, 2022April 20, 2022 duongnt.bk1 Comment on Deep copy trong Python hoạt động như thế nào?

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ó.

Python, Vietnamese copy, deepcopy, python

Python deep copy in action

April 20, 2022April 20, 2022 duongnt.bk3 Comments on Python deep copy in action

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.

English, Python copy, deepcopy, python

Thủ thuật với Context Manager trong Python

April 2, 2022April 2, 2022 duongnt.bk1 Comment on Thủ thuật với Context Manager trong Python

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.

Python, Vietnamese context-manager, python

Python Context Manager and some tricks

April 2, 2022April 2, 2022 duongnt.bk1 Comment on Python Context Manager and some tricks

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.

English, Python context-manager, python

Điều khiển thời gian trong unit test C#

March 23, 2022December 6, 2022 duongnt.bk1 Comment on Điều khiển thời gian trong unit test C#

Việc test các hàm phụ thuộc vào thời gian chạy là tương đối phức tạp. Thật may là các package NodaTime và NodaTime.Testing có thể giúp ta giải quyết vấn đề này.

C#, Vietnamese C#, NodaTime, testing

Time dependent unit testing in C#

March 23, 2022December 6, 2022 duongnt.bk1 Comment on Time dependent unit testing in C#

Testing time dependent classes can be tricky. Fortunately, the NodaTime and NodaTime.Testing package can assist us in resolving this issue.

C#, English C#, NodaTime, testing

Dùng init_subclass để thay thế cho metaclass

February 17, 2022February 17, 2022 duongnt.bk1 Comment on Dùng init_subclass để thay thế cho metaclass

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`.

Python, Vietnamese init_subclass, metaclass, python

Use init_subclass to replace metaclasses

February 17, 2022February 17, 2022 duongnt.bkLeave a Comment on Use init_subclass to replace metaclasses

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.

English, Python init_subclass, metaclass, python

Restore Vietnamese diacritics with Transformer

January 29, 2022January 31, 2022 duongnt.bk1 Comment on Restore Vietnamese diacritics with Transformer

In this article, we try to restore Vietnamese diacritics using a Transformer model. You don’t need to understand Vietnamese to read this, I promise :).

C#, English, Python deep-learning, keras, nlp

Thêm dấu cho Tiếng Việt bằng Transformer

January 29, 2022February 3, 2022 duongnt.bk1 Comment on Thêm dấu cho Tiếng Việt bằng Transformer

Thêm dấu cho Tiếng Việt không dấu là một vấn đề thú vị. Hôm nay, chúng ta sẽ dùng Transformer và các kỹ thuật machine translation để giải quyết vấn đề này.

C#, Python, Vietnamese deep-learning, keras, nlp

Posts navigation

Older posts
Newer posts
Copyright © 2025 Duong's Blog All rights reserved. Theme: Flash by ThemeGrill. Powered by WordPress