Learned how to create a dotnet notebook in Visual Studio Code.
Learned that VS Code insider is same as VS Code Beta version.
Draft Red herring prospectus (DRHP) – If the company gets the initial SEBI nod, then the company needs to prepare the DRHP. A DRHP is a document that gets circulated to the public. Along with a lot of information, DRHP should contain the following details:
How to re-do a reverted merge
git revert -m 2 8989ee0
Windows 8+ uses a hybrid boot system and it do not shutdown the system completely when user shutdowns the computer. Due to this system uptime is calculated from the last time we restarted the machine which may not be equal to the current session time. One trick is to check the event logs. I also found a powershell script to display the hibernate time from the event logs.
function Get-HibernationTime
{
# get hibernation events
Get-EventLog -LogName system -InstanceId 1 -Source Microsoft-Windows-Power-TroubleShooter |
ForEach-Object {
# create new object for results
$result = 'dummy' | Select-Object -Property ComputerName, SleepTime, WakeTime, Duration
# store details in new object, convert datatype where appropriate
[DateTime]$result.Sleeptime = $_.ReplacementStrings[0]
[DateTime]$result.WakeTime = $_.ReplacementStrings[1]
$time = $result.WakeTime - $result.SleepTime
$result.Duration = ([int]($time.TotalHours * 100))/100
$result.ComputerName = $_.MachineName
# return result
$result
}
}