Catatan

TeamViewer Mouse and keyboard arent working

  Ok I fixed the issue by doing sudo apt-get install libxtst6:armhf, screen is still blurry for the first couple of seconds but doesnt really matter to me. 

Xdotool run installation offline

Imej
This is the alternative way to install xdotool in Ubuntu without internet access. 1. Copy the source file into the IPC. (dir: /home/ktmbadmin/Documents/) 2. Right click in the window file and open Terminal.   3. Enter Terminal as root user. [ sudo -i ] 4. Copy xdotool file to /usr/bin  [ cp –v xdotool /usr/bin ] 5. Copy libxdo.so.3 to /lib/x86_64-linux-gnu  [ cp –v libxdo.so.3 /lib/x86_64-linux-gnu ]   6. Open new terminal window, run xdotool   Set Permission access user xdotool 1. Enter Terminal as root user. [ sudo -i ] 2. Open folder as root user  [ nautilus ] 3. Folder root opened as below. Go to dir /usr/bin 4. Set the user permissions as below. After set the permission, close the properties. 5. Go to dir /lib/x86_64-linux-gnu 6. Right click libxdo.so.3 file. Set permission as below. Note: after setel ubah permission tu kan.. boleh tutup semua terminal.. lepas tu buka terminal semula dan try run command xdotool dekat dalam terminal.

Wireshark export byte

Imej
  Mark the packets File, export specified packets Windows above shown Select packet range n save the file

.NET open solution as admin

Imej
How to open .NET solution as administrator Add application manifest file to project Add application manifest file to project Option dont create new.. check in folder Properties Open Project Properties and set the Manifest Change value in line 19 It will shows ClickOnce does not support the request Go to properties - security, turn off clickOnce

C# Queue with Concurrent Multithreading

Imej
Refer this link :  https://chat.openai.com/share/38a022ef-4af5-4913-afd1-c39c0aa366df The idea - C# queue with multithread So here is the scenario, 1. All TCP message is keep in queue before process and dequeue. 2. The background worker read the queue and distribute the process to multiple thread. 3. Each thread will lock the SQL update statement to prevent deadlock. 4. If one of thread need to access the lock SQL, this thread need to wait first until the thread that lock the SQL release the lock. 5. After thread done process the data, background worker will assign another message to the thread to process. Suggestion from Chatgpt This code demonstrates a basic setup for processing TCP messages from a queue using multiple threads in C#. It uses a ConcurrentQueue to store the TCP messages and distributes the processing of these messages across multiple threads. The SQL updates are locked using a lock statement to prevent multiple threads from accessing the SQL update simultaneously and c