Posts

Use USB Connection to Debug Android Devices from Desktop Chrome

Image
Quick Start:      How to get the web console log in Chrome for Android Where to locate the Build Number?       How to activate ‘Developer options’ on your Android smartphone Troubleshooting:      Remote debug Android devices The Key Points: If the device does not show up in the Devices list: 1.    Revoke USB Debugging Authorizations  from the  Developer Options 2. Unplug and reconnect the USB between Android device and PC     Swipe down to check the USB File Transfer options. It must be set to "USB tethering".     Answer Yes for  Allow USB Debugging  prompt on your Android device That's all.

The Best Article to Explain ASP.NET Core Endpoint Routing

  https://www.tektutorialshub.com/asp-net-core/asp-net-core-endpoint-routing/

Using .NET OpenAPI tool to auto-generate client code

 https://markheath.net/post/openapi-autogen-aspnetcore Note: please user Browse button to select OpenAPIs\swagger.json when adding OpenAPI

Push Existing Static Website Code to DevOps Using Visual Studio Code, and Publish to Azure from DevOps

Push Existing Static Website Code to DevOps Using Visual Studio Code Note: This can't be done via Visual Studio as Visual Studio doesn't have any project template for static web site (contain html, JavaScript, css, images etc only , no any .NET related code) Step 1: Create a local folder c:\dev\wan\Peace Fountain as the .Git repository Step 2: In DevOps      2.1 Create a project named Peace Fountain     2.3 Click "Clone in VS Code", select c:\dev\wan\Peace Fountain as repository location.            Note: This will create a  Peace Fountain sub folder under c:\dev\wan\Peace Fountain. We can see the auto-created .git under folder C:\dev\wan\Peace Fountain\Peace Fountain.      2.4 Copy all existing static web site code to C:\dev\wan\Peace Fountain\Peace Fountain Step 3: In Visual Studio Code     3.1 Commit All     3.2 When you click Synchronize Change button (the bottom line), you may see error:...

Visual Studio 2019: Switch an existing project from TFS to Azure DevOps

Steo 1: Create the empty projetc on  Azure DevOps Step 2:   Open existing project, Click Solution/File/Source Control/Advanced/Remove Map, Advanced/Change Source Control/Unbind all Step 3: Team Explorer/Manage Connections/Connect to project Step 4: Right click the Solution, Create Git repository/Other: Existing remote/Paste the URL of the remote repository/Create and push

"Your connection to this site is not private" in SharePoint 2016

This happened only when access from localhost. SharePoint 2016 Management Shell New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa -Name "DisableLoopbackCheck" -value "1" -PropertyType dword Credit to:   https://www.enjoysharepoint.com/your-connection-to-this-site-is-not-private-sharepoint-2016/

Common WCAG / AODA Web Accessibility issues and Quick Fixes

Web Accessibility Evaluation Tool:  https://webaim.org/services/evaluation Empty link Before:  <a href="#"><span class="fa fa-search"></span></a> After:   <a href="#" aria-label (or title) ="Search"><span class="fa fa-search" aria-hidden="true"></span></a> Missing form label Before:                                                         <input type="text" class="form-control" placeholder="Search for..." id="searchQuery"> After: <label class="control-label sr-only" for="searchQuery">Search for...</label> <input type="text" class="form-control" placeholder="Search for..." id="searchQuery">