Application Inspector

January 21st, 2020 No comments

Microsoft has recently announced an open-source application software source code analysis tool, Application Inspector. Modern software development practices often require building applications from hundreds of existing components, whether they were written by another team in the organization, an external vendor, or someone in the open-source community. Although this will bring many benefits, such as faster development progress, software quality, and interoperability, etc., it will also bring hidden complexity and risks.

In response to this situation, Microsoft introduced that its internally used tool is Application Inspector, which is a software feature source code analyzer. It can identify software source code features by using static analysis and a customizable json-based rule engine to understand the function of the program. (link)

Use cases of Microsoft Application Inspector

  • Identifying key changes made in a component’s feature over time to know about a potential a malicious backdoor or increased surface for attack.
  • To identify and scrutinize high-risk components and components with unexpected features

Using Microsoft Application Inspector is fairly easy as it is a cross-platform, command-line tool that produces output in multiple formats such as JSON and interactive HTML.

GitHub

Additional links

Running unit tests from a command line

February 23rd, 2019 No comments

VSTest.Console.exe should be used from .NET Framework 4.6.1 instead of MSTest.exe to run unit tests from command line.

MSTest.exe brings “No tests to execute” error message.

More info:

How to Open an Explorer Window from the Command Prompt

February 13th, 2019 No comments

Open current folder:

> start .

Open the Windows startup folder:

start shell:startup

Here is a list of all the folder names you can use after the shell command, along with the relative locations of those folders.

  • shell:AccountPictures – %AppData%\Microsoft\Windows\AccountPictures
  • shell:AddNewProgramsFolder – Control Panel\All Control Panel Items\Get Programs
  • shell:Administrative Tools – %AppData%\Microsoft\Windows\Start Menu\Programs\Administrative Tools
  • shell:AppData – %AppData%
  • shell:Application Shortcuts – %LocalAppData%\Microsoft\Windows\Application Shortcuts
  • shell:AppsFolder – Applications
  • shell:AppUpdatesFolder – Installed Updates
  • shell:Cache – %LocalAppData%\Microsoft\Windows\INetCache
  • shell:Camera Roll – %UserProfile%\Pictures\Camera Roll
  • shell:CD Burning – %LocalAppData%\Microsoft\Windows\Burn\Burn
  • shell:ChangeRemoveProgramsFolder – Control Panel\All Control Panel Items\Programs and Features
  • shell:Common Administrative Tools – %ProgramData%\Microsoft\Windows\Start Menu\Programs\Administrative Tools
  • shell:Common AppData – %ProgramData%
  • shell:Common Desktop – %Public%\Desktop
  • shell:Common Documents – %Public%\Documents
  • shell:CommonDownloads – %Public%\Downloads
  • shell:CommonMusic – %Public%\Music
  • shell:CommonPictures – %Public%\Pictures
  • shell:Common Programs – %ProgramData%\Microsoft\Windows\Start Menu\Programs
  • shell:CommonRingtones – %ProgramData%\Microsoft\Windows\Ringtones
  • shell:Common Start Menu – %ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup
  • shell:Common Startup – %ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup
  • shell:Common Templates – %ProgramData%\Microsoft\Windows\Templates
  • shell:CommonVideo – %Public%\Videos
  • shell:ConflictFolder – Control Panel\All Control Panel Items\Sync Center\Conflicts
  • shell:ConnectionsFolder – Control Panel\All Control Panel Items\Network Connections
  • shell:Contacts – %UserProfile%\Contacts
  • shell:ControlPanelFolder – Control Panel\All Control Panel Items
  • shell:Cookies – %LocalAppData%\Microsoft\Windows\INetCookies
  • shell:Cookies\Low – %LocalAppData%\Microsoft\Windows\INetCookies\Low
  • shell:CredentialManager – %AppData%\Microsoft\Credentials
  • shell:CryptoKeys – %AppData%\Microsoft\Crypto
  • shell:desktop – Desktop
  • shell:device Metadata Store – %ProgramData%\Microsoft\Windows\DeviceMetadataStore
  • shell:documentsLibrary – Libraries\Documents
  • shell:downloads – %UserProfile%\Downloads
  • shell:dpapiKeys – %AppData%\Microsoft\Protect
  • shell:Favorites – %UserProfile%\Favorites
  • shell:Fonts – %WinDir%\Fonts
  • shell:Games – Games
  • shell:GameTasks – %LocalAppData%\Microsoft\Windows\GameExplorer
  • shell:History – %LocalAppData%\Microsoft\Windows\History
  • shell:HomeGroupCurrentUserFolder – Homegroup\(user-name)
  • shell:HomeGroupFolder – Homegroup
  • shell:ImplicitAppShortcuts – %AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\ImplicitAppShortcuts
  • shell:InternetFolder – Internet Explorer
  • shell:Libraries – Libraries
  • shell:Links – %UserProfile%\Links
  • shell:Local AppData – %LocalAppData%
  • shell:LocalAppDataLow – %UserProfile%\AppData\LocalLow
  • shell:MusicLibrary – Libraries\Music
  • shell:MyComputerFolder – This PC
  • shell:My Music – %UserProfile%\Music
  • shell:My Pictures – %UserProfile%\Pictures
  • shell:My Video – %UserProfile%\Videos
  • shell:NetHood – %AppData%\Microsoft\Windows\Network Shortcuts
  • shell:NetworkPlacesFolder – Network
  • shell:OneDrive – OneDrive
  • shell:OneDriveCameraRoll – %UserProfile%\OneDrive\Pictures\Camera Roll
  • shell:OneDriveDocuments – %UserProfile%\OneDrive\Documents
  • shell:OneDriveMusic – %UserProfile%\OneDrive\Music
  • shell:OneDrivePictures – %UserProfile%\OneDrive\Pictures
  • shell:Personal – %UserProfile%\Documents
  • shell:PicturesLibrary – Libraries\Pictures
  • shell:PrintersFolder – All Control Panel Items\Printers
  • shell:PrintHood – %AppData%\Microsoft\Windows\Printer Shortcuts
  • shell:Profile – %UserProfile%
  • shell:ProgramFiles – %ProgramFiles%
  • shell:ProgramFilesCommon – %ProgramFiles%\Common Files
  • shell:ProgramFilesCommonX64 – %ProgramFiles%\Common Files (64-bit Windows only)
  • shell:ProgramFilesCommonX86 – %ProgramFiles(x86)%\Common Files (64-bit Windows only)
  • shell:ProgramFilesX64 – %ProgramFiles% (64-bit Windows only)
  • shell:ProgramFilesX86 – %ProgramFiles(x86)% (64-bit Windows only)
  • shell:Programs – %AppData%\Microsoft\Windows\Start Menu\Programs
  • shell:Public – %Public%
  • shell:PublicAccountPictures – %Public%\AccountPictures
  • shell:PublicGameTasks – %ProgramData%\Microsoft\Windows\GameExplorer
  • shell:PublicLibraries – %Public%\Libraries
  • shell:Quick Launch – %AppData%\Microsoft\Internet Explorer\Quick Launch
  • shell:Recent – %AppData%\Microsoft\Windows\Recent
  • shell:RecordedTVLibrary – Libraries\Recorded TV
  • shell:RecycleBinFolder – Recycle Bin
  • shell:ResourceDir – %WinDir%\Resources
  • shell:Ringtones – %ProgramData%\Microsoft\Windows\Ringtones
  • shell:Roamed Tile Images – %LocalAppData%\Microsoft\Windows\RoamedTileImages
  • shell:Roaming Tiles – %AppData%\Microsoft\Windows\RoamingTiles
  • shell:SavedGames – %UserProfile%\Saved Games
  • shell:Screenshots – %UserProfile%\Pictures\Screenshots
  • shell:Searches – %UserProfile%\Searches
  • shell:SearchHistoryFolder – %LocalAppData%\Microsoft\Windows\ConnectedSearch\History
  • shell:SearchHomeFolder – search-ms:
  • shell:SearchTemplatesFolder – %LocalAppData%\Microsoft\Windows\ConnectedSearch\Templates
  • shell:SendTo – %AppData%\Microsoft\Windows\SendTo
  • shell:Start Menu – %AppData%\Microsoft\Windows\Start Menu
  • shell:StartMenuAllPrograms – StartMenuAllPrograms
  • shell:Startup – %AppData%\Microsoft\Windows\Start Menu\Programs\Startup
  • shell:SyncCenterFolder – Control Panel\All Control Panel Items\Sync Center
  • shell:SyncResultsFolder – Control Panel\All Control Panel Items\Sync Center\Sync Results
  • shell:SyncSetupFolder – Control Panel\All Control Panel Items\Sync Center\Sync Setup
  • shell:System – %WinDir%\System32
  • shell:SystemCertificates – %AppData%\Microsoft\SystemCertificates
  • shell:SystemX86 – %WinDir%\SysWOW64
  • shell:Templates – %AppData%\Microsoft\Windows\Templates
  • shell:ThisPCDesktopFolder – Desktop
  • shell:UsersFilesFolder – %UserProfile%
  • shell:User Pinned – %AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned
  • shell:UserProfiles – %HomeDrive%\Users
  • shell:UserProgramFiles – %LocalAppData%\Programs
  • shell:UserProgramFilesCommon – %LocalAppData%\Programs\Common
  • shell:UsersLibrariesFolder – Libraries
  • shell:VideosLibrary – Libraries\Videos
  • shell:Windows – %WinDir%

Additional:

Tags: , , ,

Use Virtual Desktops in Windows 10

January 10th, 2019 No comments

Add a Desktop

To add a virtual desktop, open up the new Task View pane by clicking the Task View button (two overlapping rectangles) on the taskbar, or by pressing the Windows Key + Tab. In the Task View pane, click New desktop to add a virtual desktop. If you have two or more desktops already open, the “Add a desktop” button will appear as a gray tile with a plus symbol. You can also quickly add a desktop without entering the Task View pane by using the keyboard shortcut Windows Key + Ctrl + D.

Switch between desktops

To switch between virtual desktops, open the Task View pane and click on the desktop you want to switch to. You can also quickly switch desktops without going into the Task View pane by using the keyboard shortcuts Windows Key + Ctrl + Left Arrow and Windows Key + Ctrl + Right Arrow.

Move windows between desktops

To move a window from one desktop to another, you first have to open up the Task View pane and then hover over the desktop containing the window you want to move. The windows on that desktop will pop up; find the window you want to move, right-click it, and go to Move to and choose the desktop you want to move the window to. Also there is the ability to drag and drop windows — you can grab the window you want to move and drag it into the desired desktop.

Close a desktop

To close a virtual desktop, open up the Task View pane and hover over the desktop you want to close until a small X appears in the upper right corner. Click the X to close the desktop. You can also close desktops without going into the Task View pane by using the keyboard shortcut Windows Key + Ctrl + F4 (this will close the desktop you’re currently on).

source

Update WSL

December 28th, 2018 No comments

$ sudo apt update
$ sudo apt upgrade

Add parameter to registry from batch

December 28th, 2018 No comments

REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /d "http=proxy-url:port;https=proxy-url:port;ftp=proxy-url:port;socks=proxy-url:port;" /t REG_SZ /f

source

CTRL+ALT+Delete in Remote Desktop

December 28th, 2018 No comments

Method 1

  • In RDP, the “CTRL + ALT + End” combination will work.

Method 2

  1. On the Remote Desktop, select “Start”.
  2. Type “osk”, then open the “On Screen Keyboard”.
  3. Press “Ctrl” and “Alt” on the physical keyboard, then select “Del” on the osk window.

source

WordPress: Classical editor

December 9th, 2018 No comments

If you’d rather not use Gutenberg, you can use the Classic Editor Plugin (which will still be available after Gutenberg is added to Core).

Tags:

Windows CMD command line

December 8th, 2018 No comments

Windows Subsystem for Linux

November 22nd, 2018 No comments

Windows Subsystem for Linux (WSL) is a compatibility layer for running Linux binary executables (in ELF format) natively on Windows 10 and Windows Server 2019.

WSL provides a Linux-compatible kernel interface developed by Microsoft (containing no Linux kernel code), which can then run a GNU user space on top of it, such as that of Ubuntu, openSUSE, SUSE Linux Enterprise Server, Debian and Kali Linux. Such a user space might contain a Bash shell and command language, with native GNU/Linux command-line tools (sed, awk, etc.), programming language interpreters (Ruby, Python, etc.), and even graphical applications (using a X11 server at the host side). (wikipedia)