My Initial Impressions of the Rust Programming Language

This blog post presents my initial reactions after a few days working with the Rust programming language. Of course, anyone using a programming language should read the book (https://doc.rust-lang.org/stable/book/). Some people in the rust community may push on this pretty hard. I like to read books, but I do not like to read online, andContinue reading “My Initial Impressions of the Rust Programming Language”

Rust: cannot be used to concatenate two `&str` strings/error[E0369]: cannot add `String` to `&str`

I have to be honest that I cannot easily understand or explain something as simple as string processing in rust, but I have figured out how to work around some of the errors I get from the compiler. I think that Rust: error[E0369]: cannot add `String` to `&str` is likely one of the first thatContinue reading “Rust: cannot be used to concatenate two `&str` strings/error[E0369]: cannot add `String` to `&str`”

Windows Subsystem for Linux Makes Computing Fun Again

Maybe I am a bit unusual for preferring the console and maybe I am a bit jaded from decades with Windows, but I think that almost anyone could be more productive by reducing their mousing and typing with a little knowledge of keyboard shortcuts and how to invoke commands from a shell. When I wasContinue reading “Windows Subsystem for Linux Makes Computing Fun Again”

Konabos Konaverse Podcast with wslguy.net Author John West

My friend Akshay at @Konabos Consulting invited me to join him in an episode of his #Konaverse podcast series. We did not intend to talk about technology, and I don’t think I even mentioned anything relevant to this blog. Hearing our conversation might help readers get to know a little about me as a person.Continue reading “Konabos Konaverse Podcast with wslguy.net Author John West”

Rust: Beware Parentheses on If Conditionals

Assuming that the three conditions represent Booleans, I noticed that code based on this rust would compile, where this would be a syntax error in C#. In rust, the if statement does not require grouping conditions within parentheses. Without noting parentheses placement carefully, I believe that, at least for developers familiar with languages where ifContinue reading “Rust: Beware Parentheses on If Conditionals”

Rust Command Line Tool to Access Windows Features and Commands

My first attempt at a rust program is the winc (pronounced wink) or wince (Windows Command Entry) command line tool that simplifies access to common Windows features and programs. Beware that this morning I didn’t know the first thing about programming with rust; I only knew how to install it, as I had noted inContinue reading “Rust Command Line Tool to Access Windows Features and Commands”

View Windows Process Information from Windows Subsystem for Linux

This blog post explains how a Bash shell script running under Windows Subsystem for Linux you can determine whether a process is running. The Linux ps command can only see processes invoked by WSL. The Windows tasklist.exe command lists all Windows processes. In WSL Bash shells running under Windows Terminal, I use the following functionContinue reading “View Windows Process Information from Windows Subsystem for Linux”

My Current [WSL] [Windows Terminal] Bash Shell Prompt

This blog post describes how I define the text prompt me to enter a command in the Bash shell using Windows Subsystem for Linux with Windows Terminal. This prompt is similar to the default in that it indicates the date and time that the previous command completed, username@hostname, and the current working directory path, butContinue reading “My Current [WSL] [Windows Terminal] Bash Shell Prompt”

Windows Terminal Bash Shell: Open New Tab in Same Directory

When you are using a Windows Subsystem for Linux Bash shell in Windows Terminal, you can use the techniques described in this blog post to open a new tab to the current directory. In Windows Terminal, you can use keyboard shortcuts such as Ctrl+Shift+1 to open new tabs using the various installed and configured shells.Continue reading “Windows Terminal Bash Shell: Open New Tab in Same Directory”

Use Bash Shell History to Combine Paths from cd Commands

This blog post explains how you can use Bash shell command history to combine sequences of cd commands that take you to a deep path. I often use multiple cd commands to navigate to a directory. cd /mnt/c/temp/slncd HeadlessArchitectcd HeadlessArchitect.Website If I want to go back one cd, I can use issue the cd –Continue reading “Use Bash Shell History to Combine Paths from cd Commands”