What did I learn this week (2021) - 12

  1. Learned how to create a dotnet notebook in Visual Studio Code.

  2. Learned that VS Code insider is same as VS Code Beta version.

  3. 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:

    • The estimated size of the IPO
    • The estimated number of shares being offered to the public
    • Why the company wants to go public and how does the company plan to utilize the funds along with the timeline projection of fund utilization
    • Business description including the revenue model, expenditure details
    • Complete financial statements
    • Management Discussion and Analysis – how the company perceives future business operations to emerge
    • Risks involved in the business
    • Management details and their background
  4. How to re-do a reverted merge

    • Checkout a new branch from the master.
    • Revert the reverted merge. To revert a merge you need to pass the parent number along with the revert command.
      git revert -m 2 8989ee0 
    • Add your fixes
    • Create a new pull request to the master.
  5. 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