“…set this up by editing your $HOME/.dmrc file. The sessions available to your display manager (whichever one you use) are .desktop files normally located in /usr/share/xsessions …”
Files – your new MS Windows File Manager (aka. Explorer replacement)
My PHP CMS – Ann De Browsa (any dir browser)
Ann De Browsa (any dir browser)
Try my php CMS for browsing your development server. I use it frequently.
Do you find it useful?
#!/bin/sh
# transform.sh
# Sends development server path to the browser address
# Loads as a new URL
clear
# Set up color codes
BOLD=$(tput bold)
RESET=$(tput sgr0)
YELLOW=$(tput setaf 3)
GREEN=$(tput setaf 2)
RED=$(tput setaf 1)
CYAN=$(tput setaf 6)
# Check if a filename argument is provided
if [ $# -eq 0 ]; then
FILENAME=$(OLDPWD)
else
FILENAME="$1"
fi
# Resolve the absolute path of the file using realpath
FULL_PATH="$(realpath "$FILENAME")"
FILENAME_ONLY="${FULL_PATH##*/}"
# Start with a friendly greeting using printf
printf "%s\n" "${CYAN}Hello, ${BOLD}$USER${RESET}"
printf "%s\n" "${CYAN}Some vars shown are ENV Vars and some set in this script. Please make note of them${RESET}"
sleep 2
# Display the current directory
printf "%s\n" "${YELLOW}Current path is:${RESET} [echo ${PWD}]"
printf "%s\n" "${GREEN}${PWD}${RESET}"
sleep 2
# Display the filename sent to transform.sh
printf "%s\n" "${YELLOW}\$FILENAME as sent to transform.sh [here]${RESET}"
sleep 1
printf "%s\n" "${CYAN}\$FULL_PATH is created using \$FILENAME and \$(realpath _name_)${RESET}"
sleep 2
printf "%s\n" "${YELLOW}FULL_PATH=\"\$(realpath \"\$FILENAME\")\"${RESET}"
printf "%s\n" "${GREEN}$FULL_PATH${RESET}"
sleep 2
# Display the OLD path
printf "%s\n" "${YELLOW}OLDPWD: ${RESET}${CYAN}${OLDPWD}${RESET}"
sleep 1
# Display the filename only
printf "%s\n" "${CYAN}Object name to transform.sh: ${RESET}${BOLD}${FILENAME_ONLY}${RESET}"
sleep 3
# Check if HOSTNAME is set and valid
if [ -z "$HOSTNAME" ]; then
# If HOSTNAME is not set, default to 'localhost'
HOSTNAME="localhost"
printf "%s\n" "${RED}No HOSTNAME set, using default: ${HOSTNAME}${RESET}"
else
printf "%s\n" "${CYAN}Using system HOSTNAME: ${HOSTNAME}${RESET}"
fi
# Construct the URL and ensure it is properly formatted
URL="http://${HOSTNAME}/public/index.phtml?path2url=${FULL_PATH}"
# Open browser with the constructed URL
printf "%s\n" "${YELLOW}Open browser (using xdg-open alias):${RESET}"
printf "%s\n" "${CYAN}The PHP app AnnieDeBrowsa should be at path eg. /var/www/html/anniedebrowsa${RESET}"
sleep 1
printf "%s\n" "${YELLOW}Confirm your environment is correct at line 40 in transform.sh${RESET}"
sleep 3
# Use xdg-open to open the URL in the default browser
xdg-open "$URL"
# Show the variables used
sleep 1
printf "%s\n" "${CYAN}Variables used include:${RESET}"
sleep 1
printf "%s\n" "${YELLOW}PWD:${RESET} ${GREEN}$PWD${RESET}"
sleep 1
printf "%s\n" "${YELLOW}OLDPWD:${RESET} ${CYAN}$OLDPWD${RESET}"
sleep 1
printf "%s\n" "${YELLOW}FULL_PATH:${RESET} ${CYAN}$FULL_PATH${RESET}"
sleep 1
printf "%s\n" "${YELLOW}FILENAME_ONLY:${RESET} ${CYAN}$FILENAME_ONLY${RESET}"
sleep 1
printf "%s\n" "${YELLOW}HOSTNAME:${RESET} ${CYAN}$HOSTNAME${RESET}"
# Show the final clickable URL
printf "%s\n" "${CYAN}Click URL:${RESET}"
sleep 1
printf "%s\n" "${GREEN}$URL${RESET}"
# Exit the script
sleep 5
exit
Use the transform script above AFTER the app is installed. E.g.
my_prompt$> nano /usr/local/bin/transform.sh
copy paste contents into transform.sh then chmod to make it executable.
Easy Install – Just save the file as adb_deploy.sh and run it from a bash terminal, or copy paste from here. Note: the line endings must be LF, not CR/LF for it to run correctly in BASH.
I like the built-in WordPress block, “Details” which does the same thing as “Lightweight Accordion” which comes from some plugin, such as used here (at time of publishing/ article updating).
Microsoft Windows Desktop Software (DL DIV#Custom DT
Unicodia
Use Unicodia to check where on the Unicode plan you need to land
https://mercury13.github.io/unicodia
Div#custom DD > DL > Div > DD > Quote > Embed
Use Unicodia to check where on the Unicode plane you need to land
I wouldn’t have agreed years ago, but I’ve come to believe that a system is most stable when its native package manager utility is used primarily, if not exclusively for installation and maintenance of all software installed on the system.
Microsoft Windows – Winget
Unknown titles and winget
When I find I feel uncomfortable using a tool or practice in my daily work, I’m in the habit of putting that tool into use more often, so I’m sure to earn more practice with it. And so on. This is an example of my Obsession over that sort of thing. I don’t really know how to manipulate Winget. I’m much better with apt, apt-get, aptitude, and even Pacman by now.
Illustrated on the PowerShell command line below, you’ll see I use traditional tactics to try to find the correct identifier (name) for the “Firefox Developer” edition which wants to launch on this system, instead of the Firefox Nightly, as I desired today.
Let’s see what I encounter using grep to look for parts of the desired titles. I tried a name from the list of known applications, Pandora, to verify that I was in fact using the tool correctly.
PS C:\Users\jsaba> winget list | grep fire3
PS C:\Users\jsaba> winget list | grep fire
PS C:\Users\jsaba> winget list | grep Pandora
Pandora MSIX\PandoraMediaInc.29680B314EFC2_15.0.… 15.0.3.0
PS C:\Users\jsaba> winget list | grep ozilla
Firefox Developer Edition (x64 en-US) Mozilla.Firefox.DeveloperEdition 134.0 winget
Firefox Developer Edition (x64 en-US) Mozilla.Firefox.DeveloperEdition 127.0 winget
Mozilla Maintenance Service ARP\Machine\X64\MozillaMaintenanceService 127.0
PS C:\Users\jsaba> winget uninstall "Firefox Developer Edition"
No installed package found matching input criteria.
PS C:\Users\jsaba> winget uninstall "Firefox Developer Edition*"
No installed package found matching input criteria.
PS C:\Users\jsaba> winget uninstall "Firefox Developer Edition (x64 en-US)"
Multiple versions of this package are installed. Either refine the search, pass the `--version` argument to select one, or pass the `--all-versions` flag to uninstall all of them.
PS C:\Users\jsaba> winget uninstall "Firefox Developer Edition (x64 en-US)" --all-versions
(1/2) Found Firefox Developer Edition (x64 en-US) [Mozilla.Firefox.DeveloperEdition]
Starting package uninstall...
Successfully uninstalled
(2/2) Found Firefox Developer Edition (x64 en-US) [Mozilla.Firefox.DeveloperEdition]
Starting package uninstall...
Successfully uninstalled
PS C:\Users\jsaba>
Note: It would have saved time had I simply known, and used the “ID” column (e.g. Mozilla.Firefox.DeveloperEdition), recognizable by one complete character string with at least “one dot”. For example, until i used the “--all-versions” option, Winget kept returning zero results!
Strict results may be familiar to you from using Apt, or Pacman where partial matches are typically not enabled by default.
In SQL, when SQL server creates a unique identifier for any non-unique data. The “Uniquifier Class” from the Microsoft .NET API Browser
Websites, APIs, Services
Lightning Web Components (Salseforce)
LWC is a Salesforce joint, not unlike Slack. Did you know you don’t have to be corporate and own a Salesforce license to use LWC? Here’s a guide to Lightning Web Components.
Webring. Wow. I totally forgot there exists such a thing. Not sure how it happened, but I stumbled up this! The CSS Webring. Far As I recall that’s a really old ancient thing.
Ludwig is the sentence search engine that helps you write better English and understand if what you’re writing makes sense in real English. From ludwig.guru