Skip to main content

Posts

Eclipse shortcut keys

This are some of the shortcut keys that I find useful while working with Eclipse . Key Action Ctrl+/ Comment out the current line Ctrl+\ Uncomment the current line Ctrl+D Delete the current line Ctrl+M Maximize editor view Ctrl+Alt+Arrow Up Duplicate current line, maintain caret location Ctrl+Alt+Arrow Down Duplicate current line, move caret location down Ctrl+Shift+p Find matching bracket Window Navigation Ctrl+F7 Move to different views. Ctrl+F6 Move to different editor windows Alt+Shift+Q+C Focus Console View Alt+F7 Switch between different consoles Misc Ctrl+O Quick Outline

Doing winget install fails with a message "Failed when searching source: msstore An unexpected error occurred while executing the command: 0x8a15005e : The server certificate did not match any of the expected values."

Doing winget install fails with a message "Failed when searching source: msstore An unexpected error occurred while executing the command: 0x8a15005e : The server certificate did not match any of the expected values." I tried to install Windows Terminal using the command below - C:\>winget install Microsoft.WindowsTerminal But got the following error message instead. Failed when searching source: msstore An unexpected error occurred while executing the command: 0x8a15005e : The server certificate did not match any of the expected values. The following packages were found among the working sources. Please specify one of them using the --source option to proceed. Name Id Source ------------------------------------------------- Windows Terminal Microsoft.WindowsTerminal winget Reason: This is normally caused by SSL inspection used in enterprise environments. Workaround: C:\>winget settings --enable BypassCertificatePinningF

Minimal OPC UA client that auto generates self signed certificate on startup in C#

Minimal OPC UA client that auto generates self signed certificate on startup in C# This is minimal OPC UA client in C# that demonstrates self signed certificate auto generation on startup. Pre-Req Visual Studio 2022 Community Edition ConsoleReferenceServer running in the another console Steps Using Visual Studio, create C# .Net 6.0 Application Add a nuget reference to OPCFoundation.NetStandard.Opc.Ua.Client Copy/paste code from gist below into Program.cs and run it Full working code can be found here .

OPC UA Read service using C#

OPC UA Read service using C# This is a sample bare bones OPC UA C# application performing a Read service. Pre-Req Visual Studio 2022 Community Edition Run sample ConsoleReferenceServer Steps Using Visual Studio, create C# .Net 6.0 Application Add a nuget reference to OPCFoundation.NetStandard.Opc.Ua.Client Copy/paste code from gist below into Program.cs Full working code can be found here .

Batch convert file line ending from Windows to Linux using Notepad++

Batch convert file line ending from Windows to Linux using Notepad++ Working on cross-platform project means you have to be careful with file line endings. If for some reason the files were not using the correct line endings Notepad++ can be used to do batch conversion of the files. To do so, open Find in Files (Ctrl+Shift+F) and use the following options: Find what: (\r\n) Replace with : \n Filters : *.* Directory : C:\Temp Search Mode: (o) Regular expression