Auto lock windows 7 by removing smart card

Have you ever wanted to lock your windows 7 work station automatically after you pull out your smart card/piv card from card reader? Here is an example of how to set it up.

1. Make sure that "Interactive logon: Smart card removal behavior" is configured with "Lock Workstation".
To set it up,
run gpedit.msc to open Local Group Policy Editor and locate: Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options. Locate "Interactive logon: Smart card removal behavior" on the right panel, double click it ans select "Lock Workstation".

2. Set "Smartcard Removal Policy" to "Automatic"
In order to make changes made in first step take effect, we have to set the startup type for "Smartcard Removal Policy" service to "Automatic".
Right click "My Computer" logo and choose "Manage" and go to "Services and Applications"", "Services" to change the startup type to automatic.

Datatable static image not found on the server

When you use ```datatables.min.css``` and ```datatables.min.js``` locally, instead of datatables CDN, you may have encountered that ```sort...