Catatan

Trigger synchronization between two tables in Microsoft SQL Server

To trigger synchronization between two tables in Microsoft SQL Server when the source table is updated, you can use SQL Server triggers. Triggers are special stored procedures that are automatically executed or fired in response to specific events, such as INSERT, UPDATE, or DELETE operations on a table. Here's an example of how you can create a trigger to synchronize updates from a source table (SourceTable) to a destination table (DestinationTable):\ CREATE TRIGGER SyncTrigger ON SourceTable AFTER INSERT, UPDATE, DELETE AS BEGIN     SET NOCOUNT ON;     -- Check if the operation is an INSERT or UPDATE     IF EXISTS(SELECT 1 FROM inserted)     BEGIN         -- Perform synchronization for INSERT or UPDATE         MERGE INTO DestinationTable AS dest         USING inserted AS src         ON (dest.PrimaryKey = src.PrimaryKey)  -- Replace PrimaryKey with actual primary key column(s)         WHEN MATCHED THEN             UPDATE SET dest.Column1 = src.Column1,  -- Replace Column1 with act

JAVA EE : Servlet notes

Imej
  References : Servlet RequestDispatcher forward vs include https://codersathi.com/servlet-requestdispatcher-forward-vs-include/ CRUD in Servlet https://www.javatpoint.com/crud-in-servlet

How to check port used by other application

Imej
  1. Open command prompt as Administrator 2. Type command below; > netstat -aon | findstr 8080 > tasklist | findstr <PID>  Refer this article : https://dzone.com/articles/how-to-check-which-process-is-using-port-8080-or-a

How to Do Web Forms in VS 2022 (Even Though Microsoft Recommends Blazor/.NET 6)

Imej
  https://visualstudiomagazine.com/articles/2022/05/16/vs2022-web-forms-tip.aspx

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