09/12/2021

Mysql Connector NET version

 Lưu ý về mysql connector cho .net

khi cài đặt mysql server, connector và application .net của bạn

refer to: https://vnn.me/sTBO0Aw

01/12/2021

Kết nối máy chấm công Ronald Jack qua thư viện zkemkeeper c#

 Trước tiên, cần đăng ký thư viện zkemkeeper cho máy chạy chương trình kết nối máy chấm công lấy dữ liệu

Tham khảo bài viết chính hãng sau đây để chọn thư viện phù hợp

https://github.com/nrubiano/ZK.Biometric/wiki/ZK-SDK-Installation

Tiếp theo, trong source code c#:

Sau khi add zkemkeeper references vào dự án

using zkemkeeper;

Hàm kết nối máy chấm công thông qua địa chỉ IP:

//===

public static async Task<CZKEM> Connect(string ip)
{

            CZKEM device = new CZKEM();

            await Task.Factory.StartNew(new Action(() => {

                device.Connect_Net(ip, TCP_PORT);//TCP_PORT thường dùng port mặc định 4370

            }));

            return device; 
}

//===

11/11/2021

ASP.NET core web api best practice

 

TABLE OF CONTENTS
Introduction ..................................................................................2
Startup Class and the Service Configuration ......................................3
Project Organization.......................................................................5
Environment Based Settings............................................................6
Data Access Layer..........................................................................7
Controllers ....................................................................................8
Actions .........................................................................................9
Handling Errors Globally ............................................................... 11
Using ActionFilters to Remove Duplicated Code................................ 13
Using DTOs to Return Results and to Accept Inputs.......................... 14
Routing....................................................................................... 15
Logging ...................................................................................... 17
Paging, Searching, Sorting ............................................................ 18
Versioning APIs ........................................................................... 18
Using Asynchronous Code ............................................................. 19
Caching ...................................................................................... 21
Using ReadFormAsync Method ....................................................... 22
CryptoHelper And Data Protection .................................................. 24
Content Negotiation ..................................................................... 26
Security and Using JWT ................................................................ 27
Testing Our Applications ............................................................... 29
Conclusion .................................................................................. 29

14/10/2021

Git client tool free for dev

 Bạn là developer hẳn là quản lý source code với github hay gitlab ...

Tool UI git thì nhiều bao gồm miễn phí hay tính phí

Bạn có thể thử GitHub Desktop

Cài nhẹ, trực quan, phát triển bởi GitHub


Đọc thêm và Download tại dây:

https://desktop.github.com/

08/10/2021

mysql error: Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline.

 Khi import/restore mysql database lớn đôi khi gặp lỗi này

có thể cấu hình lại file config của mysql như sau:

innodb_log_file_size=512M;
 innodb_strict_mode=0;

thêm: SET GLOBAL max_allowed_packet=134217728;

restart mysql và kiểm tra lại:
SELECT @@max_allowed_packet;
SELECT @@innodb_log_file_size;
SELECT @@innodb_strict_mode;

Đăng ký tên miền, hosting, máy chủ, thiết kế lập trình website theo yêu cầu

 Chính thức trở thành đơn vị cung cấp dịch vụ đăng ký tên miền quốc tế, tên miền Việt Nam hosting, máy chủ, cloud hosting, cloud server, ema...