Enable Sqlite WAL Mode Using ServiceStack.OrmLite.Sqlite.Data

Snippet to automatically enable Sqlite WAL mode when opening connection using ServiceStack.OrmLite.Sqlite.Data

October 26, 2024 · svenbit

Find And Terminate Process Using Specific Port in Windows

First, find out which process is using the port number. To do this, we can use the netstat utility available in windows. Run command line (cmd) and enter the following command, replace <port_number> with the port number that you are trying to find: netstat -aon | findstr :<port_number> The command above will pipe the output from netstat to the findstr command to filter out the result, because by default netstat will return a list of all TCP/IP network connections being used, but in this case we are only interested to find out connections for a specific port number. ...

October 13, 2020 · svenbit

Disable Windows Key and Alt Tab using AutoHotkey

AutoHotkey script to disable Windows key, Windows key + Tab and Alt + Tab key, useful to prevents accidentally pressing the keys when playing games, etc . . . Disable Alt+Tab ;!Tab::Return LAlt &amp; Tab::Return ; Disable Windows Key + Tab #Tab::Return ; Disable Left Windows Key LWin::Return ; Disable Right Windows Key ;RWin::Return The script above will disable Left Windows key and Left Alt + Tab key only, if you would like to disable both alt tab keys uncomment the following line: ...

October 31, 2015 · svenbit

Reset jQuery UI Dialog Position on Open

If you have a jQuery UI dialog and wanted to reset its position every time the dialog is re-opened, you can add custom function to reset its position in the open event. This can be useful if you use the close method to close the dialog instance and intend to re-use the dialog box without re-initializing it again, i.e: myCustomDialog.dialog("open"), as the instance is not removed and the next time you re-opened the dialog its last position will be retained to the position before you close the dialog box. ...

October 19, 2015 · svenbit

Restart Copy and Paste (Clipboard) functionality in RDP

I was using remote desktop connection the other day to copy some files over to one of the server, however I noticed that the paste button is not available (it was greyed out) even after I have copied some files from my local computer, copying text does not work either. I did a quick check on the remote desktop option to make sure that the clipboard option was enabled, and apparently it was enabled however the clipboard still does not work . ...

November 11, 2014 · svenbit