Resolve VT-X not enabled on Windows 10

Using VirtualBox on Windows 10 is a little bit different with other os. The first time when loading a virtual box image into VirtualBox, you may meet the VT-X is not enabled error. Solution To solve this, there are two steps you need to do. Step 1: Turn off Hyper-V Platform in Windows Feature Step 2: Open a command prompt as Administrator and run the following command 1 dism.exe /Online /Disable-Feature:Microsoft-Hyper-V After that, you can try to restart your workstation and this may take several minutes to let Windows complete all underneath setting....

May 22, 2019 · 1 min · 117 words · Eric

Get AWS EMR Cluster Info with Powershell

In order to get information from an existing EMR cluster, we can use 1 PS S:\ Get-EMRCluster -ClusterId $ClusterId The command will then return a system object in Amazon.ElasticMapReduce.Model.Cluster type. The Cluster object provides the following attributes that maybe useful MasterPublicDnsName. The DNS name of the master node. NormalizedInstanceHours. An approximation of the cost of the cluster. ReleaseLabel. The release label of Amazon EMR. Status. The current status details about the cluster....

November 21, 2018 · 2 min · 280 words · Eric

Keep Windows PC Awake

You can create a PowerShell Script named keepawake.ps1 with the following code: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 param([int]$minutes=60) # input param, 60 minutes if no value provided $wsh = New-Object -ComObject WScript.Shell $cur = Get-Date # Current time $tar = $cur.AddMinutes($minutes) # Target time # $RNDSleep = Get-Random -Minimum 30 -Maximum 200 # $MINS = RNDSleep / 60 while ($cur -lt $tar) { # Send Shift+F15 $wsh....

1 min · 109 words · Eric