Skip to main content

Posts

How to apply QNX 6.5 SP1 into an existing QNX self hosted installation

How to apply QNX 6.5 SP1 into an existing QNX self hosted installation This was tested on VirtualBox with QNX 6.5.0 self-hosted Neutrino host. Below are the quick steps Mount the QNX 6.5 SP1 iso (qnxsdp-6.5.0SP1.iso) Run the following command in QNX terminal Load CD/DVD-ROM driver devb-eide cdrom Mount the cd/dvd-rom mount -t cd /dev/cd0 /cd Install the update cd /cd sh ./qnxsdp-6.5.0SP1-201206270843-nto.sh

Building in QNX Momentics 6.5 SP1 throws "Couldn't reserve space for cygwin's heap, Win32 error 0"

Building in QNX Momentics 6.5 SP1 throws "Couldn't reserve space for cygwin's heap, Win32 error 0" Buiding barebones QNX C++ program throws "Couldn't reserve space for cygwin's heap, Win32 error 0". See sample output below C:\QNX650\host\win32\x86\usr\bin\make.exe -k CPULIST=x86 all --file=C:/Users/u1/AppData/Local/Temp/QMakefile169726255947317724.tmp 0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487 AllocationBase 0x0, BaseAddress 0x71690000, RegionSize 0x330000, State 0x10000 C:\QNX650\host\win32\x86\usr\bin\sh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0 C:/QNX650/host/win32/x86/usr/bin/make.exe -j 1 -Cx86 -fMakefile all make.exe[1]: Entering directory `C:/ide-4.7-workspace/test1/x86' C:/QNX650/host/win32/x86/usr/bin/make.exe -j 1 -Co -fMakefile all make.exe[2]: Entering directory `C:/ide-4.7-workspace/test1/x86/o' make.exe[2]: Nothing to be done for `all'. make.exe[2]:

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 .