Posted on 3:58 AM by Softminer and filed under

Run gpedit.msc

Navigate to the following folder: Local Computer Policy –> Computer Configuration –> Windows Settings –> Security Settings –> Local Policies –> Audit Policy.

Double-click the Audit logon events policy setting in the right pane to adjust its options.

TO view in event Viewer

Navigate to the Windows Logs –> Security category in the event viewer.

Look for events with event ID 4624 – these represent successful login events.


Here you can search for all event ID (search for category Logon/Logoff)

Here is the list of Event ID related to log

Posted on 2:54 AM by Softminer and filed under

X-UA-Compatibility Meta Tag and HTTP Response Header



Starting with IE11, document modes are considered deprecated and should no longer be used

If a webpage is retrieved from a website in the Local intranet zone (see "About URL Security Zones" at [MSDN-SECZONES]), IE7 mode is used.

Internet Explorer displays webpages that contain the HTML5 document type in standards mode, which provides the highest support available for established and emerging industry standards, including HTML5, CSS3, SVG, and others.

How IE choose between document mode

setup on the server

<?xml version="1.0" encoding="utf-8"?>
        <clear />
        <add name="X-UA-Compatible" value="IE=10" />
This is a nice website which tells you about html5 features http://html5test.com/
Posted on 2:51 AM by Softminer and filed under

Fixing nested HtmlAgility SelectSingleNode

var firstDiv = page.DocumentNode.SelectSingleNode("//div");
//Returns the first div on the page, as it should. But you cannot dig into this.
var firstDivTitle = firstDiv.SelectSingleNode("//h2");
// This returns the first <h2> on the entire page, not the one in the div.

To fix it you have to write 

var firstDivTitle = firstDiv.SelectSingleNode(".//h2");

another solution is to mix the tags 

var firstDivTitle = page.DocumentNode.SelectSingleNode("//div//h2");