Sunday, January 07, 2024

Rust: Using Windows thread pool

Rust: Using Windows thread pool

Quick demo how to use Windows thread pool in Rust using windows crate.

Create new project

PS C:\> mkdir prj
PS C:\> cd prj
PS C:\> cargo new thread_pool_work

Edit Cargo.toml like below

Update src/main.rs

Run thread_pool_work

PS C:\prj\thread_pool_work> cargo run
   Compiling thread_pool_work v0.1.0 (C:\prj\thread_pool_work)
    Finished dev [unoptimized + debuginfo] target(s) in 0.64s
     Running `target\debug\thread_pool_work.exe`
counter: 10
Tags: Rust, Windows, thread pool

Monday, January 01, 2024

Fedora 36 Workstation installation screen capture

Just an itch, wanted to see how Fedora 36 Workstation looks like.
For other versions see here.

PowerShell Quick Tip: Reading an XML file

PowerShell Quick Tip: Reading an XML file

Say you have an XML data like below. To read the IP element in PowerShell, do: Tags: PowerShell, Xml

Friday, December 29, 2023

Fedora 35 Workstation installation screen capture

Just an itch, wanted to see how Fedora 35 Workstation looks like.
For other versions see here.

Delphi: Wait for ESCAPE key before continuing on console app

Delphi: Wait for ESCAPE key before continuing on console app

The sample Delphi console application below shows how to wait for the ESC key before it will continue. Tags: Delphi, Console, Escape

Wednesday, December 27, 2023

Fedora 34 Workstation installation screen capture

Just an itch, wanted to see how Fedora 34 Workstation looks like.
For other versions see here.

EOleException: Microsoft MSXML is not installed when calling LoadXMLDocument

EOleException: Microsoft MSXML is not installed when calling LoadXMLDocument

LoadXMLDocument returns IXMLDocument which by default uses MSXML on Windows. MSXML is a COM componet which requires client to initialize COM library. Below shows a bare bones Delphi 11.3 console application initializing COM library. Tags: COM, DCOM, Delphi, XML

Installing QNX 6.4.1 on Ubuntu 20.04

Installing QNX 6.4.1 on Ubuntu 20.04 Install pre-requisites $: sudo dpkg --add-architecture i386 $: sudo apt update $: sudo apt install li...