Thursday 28 March 2024

Audio mutes when you switch devices in Windows 11

 -Go to Control Panel

-In Control Panel, select Large icons from the View by drop down menu.
-Select Sound.
-Select the Playback tab
-Right click the Speakers and click Enable.
-Right-click it again and select Set as Default Device.
-Right click Speakers and click Properties.
-Click on Advance Tab
-Uncheck the box to "Allow Application to take exclusive controls on this device"
-Click OK.

Tuesday 23 January 2024

ASP.NET Development Certificates in Traefik

The ASP.NET Core HTTPS development certificate can be created with the dotnet dev-certs command.

It is found in Certificate Manager (User Certificates, NOT Local Computer) under the Personal Certificates and Trusted Root Certification Authorities nodes.

You can search for it by it's SHA-1 hash (known as the thumbprint in the Certificate Details tab).

To export the certificate for use in a Traefik Reverse Proxy, type:

dotnet dev-certs https --export-path aspnet.crt --trust --format Pem --no-password

and follow these instructions to add it to Traefik:

Wednesday 10 January 2024

CSS Selector syntax in Chrome


Chrome allows you to search for elements using CSS selectors or XPath.

Puppeteer uses 

  1. Type selector 
  2. CSS Selector
  3. Class selector 
  4. ID selector 
  5. Attribute selector 

xpath selector

Find the anchor within the tdtd a


Find element with the text//p[text()='Asset']
Find parent of the element with the text//p[text()='Asset']/..