I am getting this error “your cpu doesn’t support vt-x or svm, android studio 2.1.1 in AMD 6300 processor”

2nd Aug 2019 I am using AMD RYZEN 3400G. Got the same issue and i fixed it in a very easy manner. You have to enable Windows Hypervisor Platform Go to Control Panel> Programs > Turn Windows features on or off and check the Windows Hypervisor Platform. And yes don’t install HAXM. EDIT : 27th … Read more

WPF ListBox with a ListBox – UI Virtualization and Scrolling

It is possible to achieve smooth scrolling VirtualizingStackPanels in WPF 4.0 without sacrificing virtualization if you’re prepared to use reflection to access private functionality of the VirtualizingStackPanel. All you have to do is set the private IsPixelBased property of the VirtualizingStackPanel to true. Note that in .Net 4.5 there’s no need for this hack as … Read more

How to Dockerize windows application

You can find tons of example of WindowsServiceCore-based applications in StefanScherer/dockerfiles-windows You need to write a Dockerfile (like for instance diskspd/Dockerfile where you copy/unzip/install the application you need. FROM microsoft/windowsservercore:10.0.14393.1770 SHELL [“powershell”, “-Command”, “$ErrorActionPreference=”Stop”; $ProgressPreference=”SilentlyContinue”;”] ENV DISKSPD_VERSION 2.0.17 RUN Invoke-WebRequest $(‘https://gallery.technet.microsoft.com/DiskSpd-a-robust-storage-6cd2f223/file/152702/1/Diskspd-v{0}.zip’ -f $env:DISKSPD_VERSION) -OutFile ‘diskspd.zip’ -UseBasicParsing ; \ Expand-Archive diskspd.zip -DestinationPath C:\ ; \ Remove-Item … Read more

How to detect if my application is running in a virtual machine?

This is what I use: using (var searcher = new System.Management.ManagementObjectSearcher(“Select * from Win32_ComputerSystem”)) { using (var items = searcher.Get()) { foreach (var item in items) { string manufacturer = item[“Manufacturer”].ToString().ToLower(); if ((manufacturer == “microsoft corporation” && item[“Model”].ToString().ToUpperInvariant().Contains(“VIRTUAL”)) || manufacturer.Contains(“vmware”) || item[“Model”].ToString() == “VirtualBox”) { return true; } } } } return false; Edit 2014-12-02: … Read more