Tuesday, January 09, 2024

Fedora 38 Workstation installation screen capture

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

PowerShell Quick Tip: Get alias for a cmdlet

PowerShell Quick Tip: Get alias for a cmdlet

Below shows how to get the aliases for Remove-Item cmdlet.
PS C:\prj> Get-Alias -Definition Remove-Item
CommandType     Name                   Version    Source
-----------     ----                   -------    ------
Alias           del -> Remove-Item
Alias           erase -> Remove-Item
Alias           rd -> Remove-Item
Alias           ri -> Remove-Item
Alias           rm -> Remove-Item
Alias           rmdir -> Remove-Item

PowerShell Quick Tip: Delete a folder recursively

PowerShell Quick Tip: Delete a folder recursively

PS C:\> Remove-Item -Recurse -Force .\folder_to_delete\

Or using alias

PS C:\> rm -r -fo .\folder_to_delete\

Sunday, January 07, 2024

Fedora 37 Workstation installation screen capture

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

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

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...