aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2024-06-10 09:41:25 -0400
committerBradley Taunt <bt@btxx.org>2024-06-10 09:41:25 -0400
commit07e4a2dafe248280b5610f8c7d09b0f30b530f54 (patch)
tree8a145d1d4d07e1278a837ff15dadccc322d27515
parent16d28628aca9b2d356de31c319f5e7bc0f5b2b02 (diff)
Initial modifications to rebuilt only changed files based on mod date, performance updates
-rwxr-xr-xbarf305
-rw-r--r--build/atom.xml18756
-rw-r--r--build/index.html348
-rw-r--r--build/pages.tsv14
-rw-r--r--build/posts.tsv346
-rw-r--r--build/posts/$10/index.html (renamed from build/$10/index.html)0
-rw-r--r--build/posts/1kb/index.html (renamed from build/1kb/index.html)0
-rw-r--r--build/posts/Building_rbenv_on_OpenBSD_7.5/index.html (renamed from build/Building_rbenv_on_OpenBSD_7.5/index.html)0
-rw-r--r--build/posts/Installing_WordPress_on_NearlyFreeSpeech/index.html (renamed from build/Installing_WordPress_on_NearlyFreeSpeech/index.html)0
-rw-r--r--build/posts/My_Text_Editor_Is_Not_Open_Source/index.html (renamed from build/My_Text_Editor_Is_Not_Open_Source/index.html)0
-rw-r--r--build/posts/New_Domain_and_Code_Forge/index.html (renamed from build/New_Domain_and_Code_Forge/index.html)0
-rw-r--r--build/posts/OpenBSD_is_a_Cozy_Operating_System/index.html (renamed from build/OpenBSD_is_a_Cozy_Operating_System/index.html)2
-rw-r--r--build/posts/Please_Make_Your_Table_Headings_Sticky/index.html (renamed from build/Please_Make_Your_Table_Headings_Sticky/index.html)6
-rw-r--r--build/posts/Switching_Things_Over_to_ikiwiki/index.html (renamed from build/Switching_Things_Over_to_ikiwiki/index.html)0
-rw-r--r--build/posts/Website_Backups_with_Apple_iCloud/index.html (renamed from build/Website_Backups_with_Apple_iCloud/index.html)0
-rw-r--r--build/posts/adguard/index.html (renamed from build/adguard/index.html)0
-rw-r--r--build/posts/af/index.html (renamed from build/af/index.html)0
-rw-r--r--build/posts/alpine/index.html (renamed from build/alpine/index.html)0
-rw-r--r--build/posts/animated-card-tiles/index.html (renamed from build/animated-card-tiles/index.html)0
-rw-r--r--build/posts/animated-toggle-tabs/index.html (renamed from build/animated-toggle-tabs/index.html)0
-rw-r--r--build/posts/audio-hotkeys-on-linux-mint/index.html (renamed from build/audio-hotkeys-on-linux-mint/index.html)0
-rw-r--r--build/posts/aui/index.html (renamed from build/aui/index.html)2
-rw-r--r--build/posts/avoid/index.html (renamed from build/avoid/index.html)0
-rw-r--r--build/posts/base64-all-the-things/index.html (renamed from build/base64-all-the-things/index.html)0
-rw-r--r--build/posts/basic-gulp-build-for-sass/index.html (renamed from build/basic-gulp-build-for-sass/index.html)0
-rw-r--r--build/posts/batch-webp-conversion/index.html (renamed from build/batch-webp-conversion/index.html)11
-rw-r--r--build/posts/battery/index.html (renamed from build/battery/index.html)0
-rw-r--r--build/posts/being-efficient/index.html (renamed from build/being-efficient/index.html)0
-rw-r--r--build/posts/berg/index.html (renamed from build/berg/index.html)0
-rw-r--r--build/posts/better-box-shadows/index.html (renamed from build/better-box-shadows/index.html)0
-rw-r--r--build/posts/bidirectional-scrolling/index.html (renamed from build/bidirectional-scrolling/index.html)0
-rw-r--r--build/posts/browser-history-sucks/index.html (renamed from build/browser-history-sucks/index.html)0
-rw-r--r--build/posts/character-unit/index.html (renamed from build/character-unit/index.html)0
-rw-r--r--build/posts/chasing-performance/index.html (renamed from build/chasing-performance/index.html)0
-rw-r--r--build/posts/cheap-portable-pi/index.html (renamed from build/cheap-portable-pi/index.html)0
-rw-r--r--build/posts/chromebook-web-dev/index.html (renamed from build/chromebook-web-dev/index.html)0
-rw-r--r--build/posts/css-js-mistake/index.html (renamed from build/css-js-mistake/index.html)0
-rw-r--r--build/posts/css-slope-graphs/index.html (renamed from build/css-slope-graphs/index.html)0
-rw-r--r--build/posts/css-variables/index.html (renamed from build/css-variables/index.html)0
-rw-r--r--build/posts/css-video-backgrounds/index.html (renamed from build/css-video-backgrounds/index.html)0
-rw-r--r--build/posts/current-color/index.html (renamed from build/current-color/index.html)0
-rw-r--r--build/posts/cut-your-forms-in-half/index.html (renamed from build/cut-your-forms-in-half/index.html)0
-rw-r--r--build/posts/death-of-personality/index.html (renamed from build/death-of-personality/index.html)0
-rw-r--r--build/posts/default-brower-forms/index.html (renamed from build/default-brower-forms/index.html)0
-rw-r--r--build/posts/default-html-style-updates/index.html (renamed from build/default-html-style-updates/index.html)0
-rw-r--r--build/posts/design-review-dropbox/index.html (renamed from build/design-review-dropbox/index.html)0
-rw-r--r--build/posts/disabling-comments-in-wordpress/index.html (renamed from build/disabling-comments-in-wordpress/index.html)0
-rw-r--r--build/posts/dts/index.html (renamed from build/dts/index.html)0
-rw-r--r--build/posts/duckduckno/index.html (renamed from build/duckduckno/index.html)0
-rw-r--r--build/posts/dump/index.html (renamed from build/dump/index.html)0
-rw-r--r--build/posts/dv/index.html (renamed from build/dv/index.html)0
-rw-r--r--build/posts/dwm-gnome/index.html (renamed from build/dwm-gnome/index.html)0
-rw-r--r--build/posts/dynamic-checkboxes/index.html (renamed from build/dynamic-checkboxes/index.html)0
-rw-r--r--build/posts/easy-custom-radio-inputs/index.html (renamed from build/easy-custom-radio-inputs/index.html)0
-rw-r--r--build/posts/easy-toggle-switches/index.html (renamed from build/easy-toggle-switches/index.html)0
-rw-r--r--build/posts/eero/index.html (renamed from build/eero/index.html)0
-rw-r--r--build/posts/empty-table-cells/index.html (renamed from build/empty-table-cells/index.html)0
-rw-r--r--build/posts/et-jekyll-theme/index.html (renamed from build/et-jekyll-theme/index.html)0
-rw-r--r--build/posts/fake-3d-elements-with-css/index.html (renamed from build/fake-3d-elements-with-css/index.html)0
-rw-r--r--build/posts/fathom-analytics-netlify/index.html (renamed from build/fathom-analytics-netlify/index.html)0
-rw-r--r--build/posts/february-updates/index.html (renamed from build/february-updates/index.html)0
-rw-r--r--build/posts/first-letter/index.html (renamed from build/first-letter/index.html)0
-rw-r--r--build/posts/flexbox-bar-graphs/index.html (renamed from build/flexbox-bar-graphs/index.html)0
-rw-r--r--build/posts/flexbox-grid/index.html (renamed from build/flexbox-grid/index.html)0
-rw-r--r--build/posts/form-ui-improvements/index.html (renamed from build/form-ui-improvements/index.html)0
-rw-r--r--build/posts/future-os-google/index.html (renamed from build/future-os-google/index.html)0
-rw-r--r--build/posts/gallery/index.html (renamed from build/gallery/index.html)0
-rw-r--r--build/posts/git-patches/index.html (renamed from build/git-patches/index.html)0
-rw-r--r--build/posts/goodbye-css-preprocessors/index.html (renamed from build/goodbye-css-preprocessors/index.html)0
-rw-r--r--build/posts/hamburger-menu-alternative/index.html (renamed from build/hamburger-menu-alternative/index.html)0
-rw-r--r--build/posts/hamburgers/index.html (renamed from build/hamburgers/index.html)0
-rw-r--r--build/posts/heif/index.html (renamed from build/heif/index.html)25
-rw-r--r--build/posts/hello-jekyll/index.html (renamed from build/hello-jekyll/index.html)0
-rw-r--r--build/posts/html-dark-mode/index.html (renamed from build/html-dark-mode/index.html)0
-rw-r--r--build/posts/html-like-1999/index.html (renamed from build/html-like-1999/index.html)0
-rw-r--r--build/posts/html5-validator-badge/index.html (renamed from build/html5-validator-badge/index.html)0
-rw-r--r--build/posts/improving-githubs-new-design/index.html (renamed from build/improving-githubs-new-design/index.html)0
-rw-r--r--build/posts/improving-receipt-ux/index.html (renamed from build/improving-receipt-ux/index.html)0
-rw-r--r--build/posts/improving-tufte-jekyll/index.html (renamed from build/improving-tufte-jekyll/index.html)0
-rw-r--r--build/posts/introducing-notez/index.html (renamed from build/introducing-notez/index.html)0
-rw-r--r--build/posts/introducing-pageroast/index.html (renamed from build/introducing-pageroast/index.html)0
-rw-r--r--build/posts/jekyll-sourcehut/index.html (renamed from build/jekyll-sourcehut/index.html)0
-rw-r--r--build/posts/jekyll/index.html (renamed from build/jekyll/index.html)0
-rw-r--r--build/posts/jelly/index.html (renamed from build/jelly/index.html)0
-rw-r--r--build/posts/jsincss-parent-selector/index.html (renamed from build/jsincss-parent-selector/index.html)0
-rw-r--r--build/posts/keynote-slides-css/index.html (renamed from build/keynote-slides-css/index.html)0
-rw-r--r--build/posts/launching-thriftyname/index.html (renamed from build/launching-thriftyname/index.html)0
-rw-r--r--build/posts/lazy-dev-dark-mode/index.html (renamed from build/lazy-dev-dark-mode/index.html)0
-rw-r--r--build/posts/learning-to-floss/index.html (renamed from build/learning-to-floss/index.html)0
-rw-r--r--build/posts/lf/index.html (renamed from build/lf/index.html)0
-rw-r--r--build/posts/linux-love/index.html (renamed from build/linux-love/index.html)0
-rw-r--r--build/posts/linux-mint-macbook-air/index.html (renamed from build/linux-mint-macbook-air/index.html)0
-rw-r--r--build/posts/load-image-on-click/index.html (renamed from build/load-image-on-click/index.html)0
-rw-r--r--build/posts/localwp-fedora/index.html (renamed from build/localwp-fedora/index.html)0
-rw-r--r--build/posts/loop/index.html (renamed from build/loop/index.html)0
-rw-r--r--build/posts/luba/index.html (renamed from build/luba/index.html)0
-rw-r--r--build/posts/macos-convert-to-html/index.html (renamed from build/macos-convert-to-html/index.html)0
-rw-r--r--build/posts/macos-icon-css/index.html (renamed from build/macos-icon-css/index.html)0
-rw-r--r--build/posts/mail/index.html (renamed from build/mail/index.html)0
-rw-r--r--build/posts/mango/index.html (renamed from build/mango/index.html)0
-rw-r--r--build/posts/menu-toggle-css/index.html (renamed from build/menu-toggle-css/index.html)0
-rw-r--r--build/posts/mini-interactive-keyboard-with-pure-css/index.html (renamed from build/mini-interactive-keyboard-with-pure-css/index.html)0
-rw-r--r--build/posts/minimal-css-menu/index.html (renamed from build/minimal-css-menu/index.html)0
-rw-r--r--build/posts/minor-website-changes/index.html (renamed from build/minor-website-changes/index.html)0
-rw-r--r--build/posts/mongodb-arch/index.html (renamed from build/mongodb-arch/index.html)0
-rw-r--r--build/posts/monitor/index.html (renamed from build/monitor/index.html)0
-rw-r--r--build/posts/multiple-css-background-images/index.html (renamed from build/multiple-css-background-images/index.html)0
-rw-r--r--build/posts/my-pi-desktop/index.html (renamed from build/my-pi-desktop/index.html)0
-rw-r--r--build/posts/my-static-blog-publishing-setup/index.html (renamed from build/my-static-blog-publishing-setup/index.html)0
-rw-r--r--build/posts/ndenting-text-with-css/index.html (renamed from build/ndenting-text-with-css/index.html)0
-rw-r--r--build/posts/netlify-urls/index.html (renamed from build/netlify-urls/index.html)0
-rw-r--r--build/posts/news-websites-are-dumpster-fires/index.html (renamed from build/news-websites-are-dumpster-fires/index.html)0
-rw-r--r--build/posts/notice/index.html (renamed from build/notice/index.html)0
-rw-r--r--build/posts/obvious-js-injection-fallback/index.html (renamed from build/obvious-js-injection-fallback/index.html)0
-rw-r--r--build/posts/one-css-property/index.html (renamed from build/one-css-property/index.html)0
-rw-r--r--build/posts/one-thing/index.html (renamed from build/one-thing/index.html)0
-rw-r--r--build/posts/open-source-typeface-pairings/index.html (renamed from build/open-source-typeface-pairings/index.html)0
-rw-r--r--build/posts/openring/index.html (renamed from build/openring/index.html)0
-rw-r--r--build/posts/over-engineering-an-oil-tank/index.html (renamed from build/over-engineering-an-oil-tank/index.html)0
-rw-r--r--build/posts/over-nesting/index.html (renamed from build/over-nesting/index.html)0
-rw-r--r--build/posts/paid-mac-apps/index.html (renamed from build/paid-mac-apps/index.html)0
-rw-r--r--build/posts/pblog/index.html (renamed from build/pblog/index.html)0
-rw-r--r--build/posts/performance-focused-wordpress-theme/index.html (renamed from build/performance-focused-wordpress-theme/index.html)0
-rw-r--r--build/posts/personal-website-opinions/index.html (renamed from build/personal-website-opinions/index.html)0
-rw-r--r--build/posts/phpetite/index.html (renamed from build/phpetite/index.html)0
-rw-r--r--build/posts/pi-400-internal-ssd/index.html (renamed from build/pi-400-internal-ssd/index.html)0
-rw-r--r--build/posts/pihole-cloudflare/index.html (renamed from build/pihole-cloudflare/index.html)0
-rw-r--r--build/posts/plain-text-emails/index.html (renamed from build/plain-text-emails/index.html)0
-rw-r--r--build/posts/poor-mans-full-bleed/index.html (renamed from build/poor-mans-full-bleed/index.html)0
-rw-r--r--build/posts/poormans-comment-system/index.html (renamed from build/poormans-comment-system/index.html)0
-rw-r--r--build/posts/proper-ui-hierarchy/index.html (renamed from build/proper-ui-hierarchy/index.html)0
-rw-r--r--build/posts/ps4-download-ui/index.html (renamed from build/ps4-download-ui/index.html)0
-rw-r--r--build/posts/publish-with-jekyll/index.html (renamed from build/publish-with-jekyll/index.html)0
-rw-r--r--build/posts/pure-css-simple-dropdown-plugin/index.html (renamed from build/pure-css-simple-dropdown-plugin/index.html)0
-rw-r--r--build/posts/quick-dirty-theme-switcher/index.html (renamed from build/quick-dirty-theme-switcher/index.html)0
-rw-r--r--build/posts/rss-click/index.html (renamed from build/rss-click/index.html)0
-rw-r--r--build/posts/rss-hacks/index.html (renamed from build/rss-hacks/index.html)0
-rw-r--r--build/posts/rvm/index.html (renamed from build/rvm/index.html)0
-rw-r--r--build/posts/safari-default-dark-mode/index.html (renamed from build/safari-default-dark-mode/index.html)0
-rw-r--r--build/posts/safari-extensions-catalina-patcher/index.html (renamed from build/safari-extensions-catalina-patcher/index.html)0
-rw-r--r--build/posts/schools/index.html (renamed from build/schools/index.html)0
-rw-r--r--build/posts/self-hosted-blogs/index.html (renamed from build/self-hosted-blogs/index.html)0
-rw-r--r--build/posts/self-hosting-fathom/index.html (renamed from build/self-hosting-fathom/index.html)0
-rw-r--r--build/posts/setting-up-free-ssl/index.html (renamed from build/setting-up-free-ssl/index.html)0
-rw-r--r--build/posts/seven-years/index.html (renamed from build/seven-years/index.html)0
-rw-r--r--build/posts/sharing-the-things-we-use/index.html (renamed from build/sharing-the-things-we-use/index.html)0
-rw-r--r--build/posts/shinobi-website/index.html (renamed from build/shinobi-website/index.html)0
-rw-r--r--build/posts/shiny-css-buttons/index.html (renamed from build/shiny-css-buttons/index.html)0
-rw-r--r--build/posts/simple-accessibility/index.html (renamed from build/simple-accessibility/index.html)0
-rw-r--r--build/posts/simple-does-not-mean-ugly/index.html (renamed from build/simple-does-not-mean-ugly/index.html)0
-rw-r--r--build/posts/simple-jekyll-navigation/index.html (renamed from build/simple-jekyll-navigation/index.html)0
-rw-r--r--build/posts/skip-to-content/index.html (renamed from build/skip-to-content/index.html)0
-rw-r--r--build/posts/slabtop/index.html (renamed from build/slabtop/index.html)0
-rw-r--r--build/posts/slow/index.html (renamed from build/slow/index.html)0
-rw-r--r--build/posts/soma-terminal-css/index.html (renamed from build/soma-terminal-css/index.html)0
-rw-r--r--build/posts/spec/index.html (renamed from build/spec/index.html)0
-rw-r--r--build/posts/srht2/index.html (renamed from build/srht2/index.html)0
-rw-r--r--build/posts/stay-hungry/index.html (renamed from build/stay-hungry/index.html)0
-rw-r--r--build/posts/sticky-elements/index.html (renamed from build/sticky-elements/index.html)0
-rw-r--r--build/posts/still-using-jquery/index.html (renamed from build/still-using-jquery/index.html)0
-rw-r--r--build/posts/stripe-menu-css/index.html (renamed from build/stripe-menu-css/index.html)0
-rw-r--r--build/posts/sublime/index.html (renamed from build/sublime/index.html)0
-rw-r--r--build/posts/suckless/index.html (renamed from build/suckless/index.html)0
-rw-r--r--build/posts/super-mario-blocks-css/index.html (renamed from build/super-mario-blocks-css/index.html)0
-rw-r--r--build/posts/tabbed-content/index.html (renamed from build/tabbed-content/index.html)0
-rw-r--r--build/posts/tables/index.html (renamed from build/tables/index.html)0
-rw-r--r--build/posts/te/index.html (renamed from build/te/index.html)0
-rw-r--r--build/posts/text-align-justify/index.html (renamed from build/text-align-justify/index.html)0
-rw-r--r--build/posts/they-wont-wait/index.html (renamed from build/they-wont-wait/index.html)0
-rw-r--r--build/posts/use-text-not-icons/index.html (renamed from build/use-text-not-icons/index.html)0
-rw-r--r--build/posts/user-select/index.html (renamed from build/user-select/index.html)0
-rw-r--r--build/posts/vscode/index.html (renamed from build/vscode/index.html)0
-rw-r--r--build/posts/webfonts/index.html (renamed from build/webfonts/index.html)0
-rw-r--r--build/posts/width-vs-flex-basis/index.html (renamed from build/width-vs-flex-basis/index.html)0
-rw-r--r--build/posts/windows/index.html (renamed from build/windows/index.html)0
-rw-r--r--build/posts/wp-enqueue-for-beginners/index.html (renamed from build/wp-enqueue-for-beginners/index.html)0
-rw-r--r--build/posts/x201/index.html (renamed from build/x201/index.html)0
-rw-r--r--build/posts/x220/index.html (renamed from build/x220/index.html)0
-rw-r--r--build/public/images/open-suck-75.pngbin0 -> 573597 bytes
-rw-r--r--build/rss.xml18412
-rw-r--r--posts/OpenBSD_is_a_Cozy_Operating_System.md7
-rw-r--r--posts/Please_Make_Your_Table_Headings_Sticky.md16
-rw-r--r--posts/aui.md7
-rw-r--r--posts/batch-webp-conversion.md18
-rw-r--r--posts/heif.md12
-rw-r--r--public/images/open-suck-75.pngbin0 -> 573597 bytes
-rw-r--r--timestamps.tsv181
187 files changed, 19368 insertions, 19100 deletions
diff --git a/barf b/barf
index c53ed7b..c19ec94 100755
--- a/barf
+++ b/barf
@@ -1,158 +1,211 @@
#!/bin/sh
+start_time=$(date +%s)
domain="https://btxx.org"
-
-# Check the operating system
-os_name=$(uname -s)
-
-if [ "$os_name" = "OpenBSD" ]; then
- alias sed=gsed
- alias date=gdate
- alias rsync=openrsync
-elif [ "$os_name" = "Darwin" ]; then
- alias sed=gsed
- alias date=gdate
-fi
+timestamp_file="timestamps.tsv"
+
+# Check the operating system and set aliases
+case $(uname -s) in
+ OpenBSD)
+ alias sed=gsed
+ alias date=gdate
+ alias rsync=openrsync
+ ;;
+ Darwin)
+ alias sed=gsed
+ alias date=gdate
+ ;;
+esac
set -eu
MARKDOWN=lowdown
-IFS=' '
-
-# Create tab separated file with filename, title, creation date, last update
-index_tsv() {
- for f in "$1"/*.md
- do
- title=$(sed -n '/^# /{s/# //p; q}' "$f")
- printf '%s\t%s\t%s\t%s\n' "$f" "${title:="No Title"}"
- done
+IFS=$'\t'
+
+# Precompute values used in multiple places
+header_title=$(sed -n '/^# /{s/# //p; q}' index.md)
+git_user_name=$(git config user.name)
+first_commit_date=$(git log --pretty='format:%ai' . | cut -d ' ' -f1 | tail -1)
+now=$(date +%FT%TZ)
+now_rss=$(date -u +"%a, %d %b %Y %H:%M:%S %z")
+
+# Update the timestamp for a markdown file
+update_timestamp() {
+ local filename=$1
+ local timestamp=$(date -r "$filename" +%s)
+ # Remove old timestamp and add new
+ awk -v file="$filename" -v ts="$timestamp" '$1 != file {print $0}' "$timestamp_file" > "${timestamp_file}.tmp"
+ echo "$filename $timestamp" >> "${timestamp_file}.tmp"
+ mv "${timestamp_file}.tmp" "$timestamp_file"
}
-index_html() {
- # Print header
- title=$(sed -n '/^# /{s/# //p; q}' index.md)
- sed "s/{{TITLE}}/$title/" header.html
-
- # Intro text
- $MARKDOWN index.md
-
- echo "<div>"
+# Check if the markdown file needs rebuilding
+needs_rebuilding() {
+ local filename=$1
+ local last_mod=$(date -r "$filename" +%s)
+ local last_build=$(awk -v file="$filename" '$1 == file {print $2}' "$timestamp_file")
+
+ if [ "$last_mod" -gt "${last_build:-0}" ]; then
+ return 0 # needs rebuilding
+ else
+ return 1 # does not need rebuilding
+ fi
+}
- # Posts
- while read -r f title created; do
- link=$(echo "$f" | sed -E 's|.*/(.*).md|\1/|')
- created=$(echo $(head -3 "$f" | tail -1))
- echo "<span>$created &middot; <a href=\"$link\">$title</a></span><br>"
- done < "$1" | sort -r
+# Define write_page function
+write_page() {
+ local filename=$1
+ local title=$2
+ local category=$3 # Category determines if it's a post or a page
+
+ if needs_rebuilding "$filename"; then
+ local directory
+ if [ "$category" = "posts" ]; then
+ directory="build/posts/$(basename "$filename" .md)"
+ else
+ directory="build/$(basename "$filename" .md)"
+ fi
+ mkdir -p "$directory"
+ local target="${directory}/index.html"
+ local created=$(head -3 "$filename" | tail -1)
+
+ {
+ sed "s|{{TITLE}}|$title|" header.html
+ $MARKDOWN "$filename"
+ cat footer.html
+ } > "$target"
+ update_timestamp "$filename"
+
+ echo "Rebuilt: $filename"
+ fi
+}
- echo "<div>"
+# Create tab separated file with filename, title
+index_tsv() {
+ for f in "$1"/*.md; do
+ title=$(sed -n '/^# /{s/# //p; q}' "$f")
+ printf '%s\t%s\n' "$f" "${title:="No Title"}"
+ done
+}
- # Print footer after post list
- cat footer.html
+# Generate index.html
+index_html() {
+ sed "s/{{TITLE}}/$header_title/" header.html
+ $MARKDOWN index.md
+ echo "<div>"
+
+ while read -r f title; do
+ link="${f%.md}/"
+ created=$(head -3 "$f" | tail -1)
+ echo "<span>$created &middot; <a href=\"$link\">$title</a></span><br>"
+ done < "$1" | sort -r
+
+ echo "</div>"
+ cat footer.html
}
+# Generate atom.xml
atom_xml() {
- uri=$(sed -rn '/atom.xml/ s/.*href="([^"]*)".*/\1/ p' header.html)
- first_commit_date=$(git log --pretty='format:%ai' . | cut -d ' ' -f1 | tail -1)
-
- cat <<EOF
-<?xml version="1.0" encoding="utf-8"?>
-<feed xmlns="http://www.w3.org/2005/Atom">
- <title>$(sed -n '/^# /{s/# //p; q}' index.md)</title>
- <link href="$domain/atom.xml" rel="self" />
- <updated>$(date +%FT%TZ)</updated>
- <author>
- <name>$(git config user.name)</name>
- </author>
- <id>$domain,$first_commit_date:default-atom-feed/</id>
-EOF
-
- while read -r f title created; do
-
- content=$($MARKDOWN "$f" | sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g')
- post_link=$(echo "$f" | sed -E 's|posts/(.*).md|\1|')
- basic_date=$(echo $(head -3 "$f" | tail -1))
- published_date=$(date -d $basic_date -u +%Y-%m-%dT10:%M:%SZ)
-
- cat <<EOF
- <entry>
- <title>$title</title>
- <content type="html">$content</content>
- <link href="$domain/$post_link"/>
- <id>$domain/$post_link</id>
- <updated>$published_date</updated>
- <published>$published_date</published>
- </entry>
-EOF
- done < "$1"
-
- echo '</feed>'
+ echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>
+<feed xmlns=\"http://www.w3.org/2005/Atom\">
+ <title>$header_title</title>
+ <link href=\"$domain/atom.xml\" rel=\"self\" />
+ <updated>$now</updated>
+ <author>
+ <name>$git_user_name</name>
+ </author>
+ <id>$domain,$first_commit_date:default-atom-feed</id>"
+
+ while read -r f title; do
+ content=$($MARKDOWN "$f" | sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g')
+ post_link="${f%.md}"
+ basic_date=$(head -3 "$f" | tail -1)
+ published_date=$(date -d "$basic_date" -u +%Y-%m-%dT10:%M:%SZ)
+ echo " <entry>
+ <title>$title</title>
+ <content type=\"html\">$content</content>
+ <link href=\"$domain/$post_link\"/>
+ <id>$domain/$post_link</id>
+ <updated>$published_date</updated>
+ <published>$published_date</published>
+ </entry>"
+ done < "$1"
+ echo '</feed>'
}
+# Generate RSS
rss_xml() {
- uri=$(sed -rn '/rss.xml/ s/.*href="([^"]*)".*/\1/ p' header.html)
- first_commit_date=$(git log --pretty='format:%ai' . | cut -d ' ' -f1 | tail -1)
+ uri=$(sed -rn '/rss.xml/ s/.*href="([^"]*)".*/\1/ p' header.html)
+ first_commit_date=$(git log --pretty='format:%ai' . | cut -d ' ' -f1 | tail -1)
- cat <<EOF
+ cat <<EOF
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
- <channel>
- <title>$(sed -n '/^# /{s/# //p; q}' index.md)</title>
- <link>$domain/rss.xml</link>
- <description>Feed description here</description>
- <lastBuildDate>$(date -u +"%a, %d %b %Y %H:%M:%S %z")</lastBuildDate>
- <pubDate>$(date -u +"%a, %d %b %Y %H:%M:%S %z")</pubDate>
- <generator>Custom RSS Generator</generator>
- <ttl>1800</ttl>
+ <channel>
+ <title>$(sed -n '/^# /{s/# //p; q}' index.md)</title>
+ <link>$domain/rss.xml</link>
+ <description>Feed description here</description>
+ <lastBuildDate>$(date -u +"%a, %d %b %Y %H:%M:%S %z")</lastBuildDate>
+ <pubDate>$(date -u +"%a, %d %b %Y %H:%M:%S %z")</pubDate>
+ <generator>Custom RSS Generator</generator>
+ <ttl>1800</ttl>
EOF
- while read -r f title created; do
- content=$($MARKDOWN "$f" | sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g')
- post_link=$(echo "$f" | sed -E 's|posts/(.*).md|\1|')
- basic_date=$(echo $(head -3 "$f" | tail -1))
- published_date=$(date -d "$basic_date" -u +"%a, %d %b %Y %H:%M:%S %z")
-
- cat <<EOF
- <item>
- <title>$title</title>
- <description>$content</description>
- <link>$domain/$post_link</link>
- <guid isPermaLink="false">$domain/$post_link</guid>
- <pubDate>$published_date</pubDate>
- </item>
+ while read -r f title created; do
+ content=$($MARKDOWN "$f" | sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g')
+ post_link=$(echo "$f" | sed -E 's|posts/(.*).md|\1|')
+ basic_date=$(echo $(head -3 "$f" | tail -1))
+ published_date=$(date -d "$basic_date" -u +"%a, %d %b %Y %H:%M:%S %z")
+
+ cat <<EOF
+ <item>
+ <title>$title</title>
+ <description>$content</description>
+ <link>$domain/$post_link</link>
+ <guid isPermaLink="false">$domain/$post_link</guid>
+ <pubDate>$published_date</pubDate>
+ </item>
EOF
- done < "$1"
+ done < "$1"
- echo '</channel>'
- echo '</rss>'
+ echo '</channel>'
+ echo '</rss>'
}
-write_page() {
- filename=$1
- directory=$(echo $(basename "$filename" .md))
- $(mkdir -p build/$directory)
- target=$(echo "$filename" | sed -r 's|\w+/(.*).md|build/\1/index.html|')
- created=$(echo $(head -3 "$filename" | tail -1))
- title=$2
-
- $MARKDOWN "$filename" | \
- cat header.html - |\
- sed "s|{{TITLE}}|$title|" \
- > "$target" && cat footer.html >> "$target"
+# Initialize timestamps for all Markdown files if not already done
+initialize_timestamps() {
+ if [ ! -f "$timestamp_file" ] || [ ! -s "$timestamp_file" ]; then
+ echo "Initializing timestamps..."
+ for f in index.md posts/*.md pages/*.md; do
+ update_timestamp "$f"
+ done
+ echo "Timestamps initialized for all Markdown files."
+ fi
}
-rm -rf build && mkdir build
+# Main operations
+mkdir -p build/posts build/pages
+initialize_timestamps
-# Blog posts
-index_tsv posts | sort -rt " " -k 3 > build/posts.tsv
-index_html build/posts.tsv > build/index.html
-atom_xml build/posts.tsv > build/atom.xml
-rss_xml build/posts.tsv > build/rss.xml
-while read -r f title created; do
- write_page "$f" "$title" "$created"
+index_tsv posts > build/posts.tsv
+index_tsv pages > build/pages.tsv
+
+while read -r f title; do
+ write_page "$f" "$title" "posts"
done < build/posts.tsv
-# Pages
-index_tsv pages > build/pages.tsv
-while read -r f title created; do
- write_page "$f" "$title" "$created"
+while read -r f title; do
+ write_page "$f" "$title" "pages"
done < build/pages.tsv
+
+if needs_rebuilding "index.md"; then
+ index_html build/posts.tsv > build/index.html
+ echo "Rebuilt index.html due to changes in index.md"
+ update_timestamp "index.md"
+fi
+
+atom_xml build/posts.tsv > build/atom.xml
+rss_xml build/posts.tsv > build/rss.xml
+
+end_time=$(date +%s)
+elapsed_time=$((end_time - start_time))
+echo "Total time: ${elapsed_time}s"
diff --git a/build/atom.xml b/build/atom.xml
index 31e0387..2a34916 100644
--- a/build/atom.xml
+++ b/build/atom.xml
@@ -1,4360 +1,5931 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
- <title>Making software better without sacrificing user experience.</title>
- <link href="https://btxx.org/atom.xml" rel="self" />
- <updated>2024-06-08T13:41:07Z</updated>
- <author>
- <name>Bradley Taunt</name>
- </author>
- <id>https://btxx.org,2024-06-06:default-atom-feed/</id>
- <entry>
- <title>The X220 ThinkPad is the Best Laptop in the World</title>
- <content type="html">&lt;h1 id=&quot;the-x220-thinkpad-is-the-best-laptop-in-the-world&quot;&gt;The X220 ThinkPad is the Best Laptop in the World&lt;/h1&gt;
-&lt;p&gt;2023-09-26&lt;/p&gt;
-&lt;p&gt;The X220 ThinkPad is the greatest laptop ever made and you&amp;#8217;re wrong if you think otherwise. No laptop hardware has since surpassed the nearly perfect build of the X220. New devices continue to get thinner and more fragile. Useful ports are constantly discarded for the sake of &amp;#8220;design&amp;#8221;. Functionality is no longer important to manufacturers. Repairability is purposefully removed to prevent users from truly &amp;#8220;owing&amp;#8221; their hardware.&lt;/p&gt;
-&lt;p&gt;It&amp;#8217;s a mess out there. But thank goodness I still have my older, second-hand X220.&lt;/p&gt;
-&lt;h2 id=&quot;specs&quot;&gt;Specs&lt;/h2&gt;
-&lt;p&gt;Before I get into the details explaining why this laptop is the very best of its kind, let&amp;#8217;s first take a look at my machine&amp;#8217;s basic specifications:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;CPU: Intel i7-2640M (4) @ 3.500GHz&lt;/li&gt;
-&lt;li&gt;GPU: Intel 2nd Generation Core Processor&lt;/li&gt;
-&lt;li&gt;Memory: 16GB DDR3&lt;/li&gt;
-&lt;li&gt;OS: Arch Linux &amp;#47; OpenBSD&lt;/li&gt;
-&lt;li&gt;Resolution: 1366x768&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;With that out of the way, I will break down my thoughts on the X220 into five major sections: Build quality, available ports, the keyboard, battery life, and repairability.&lt;/p&gt;
-&lt;h2 id=&quot;build-quality&quot;&gt;Build Quality&lt;/h2&gt;
-&lt;p&gt;The X220 (like most of Lenovo&amp;#8217;s older X&amp;#47;T models) is built like a tank. Although the inner pieces are sourced from mostly plastic, the device is still better equipped to handle drops and mishandling compared to that of more fragile devices (such as the MacBook Air or Framework). This is made further impressive since the X220 is actually composed of many smaller interconnected pieces (more on this later).&lt;/p&gt;
-&lt;p&gt;A good litmus test I perform on most laptops is the &amp;#8220;corner test&amp;#8221;. You grab the base corner of a laptop in its open state. The goal is to see if the device displays any noticeable give or flex. In the X220&amp;#8217;s case: it feels rock solid. The base remains stiff and bobbing the device causes no movement on the opened screen. I&amp;#8217;m aware that holding a laptop in this position is certainly not a normal use case, but knowing it is built well enough to do so speaks volumes of its construction.&lt;/p&gt;
-&lt;p&gt;The X220 is also &lt;em&gt;not&lt;/em&gt; a lightweight laptop. This might be viewed as a negative for most users, but I actually prefer it. I often become too cautious and end up &amp;#8220;babying&amp;#8221; thinner laptops out of fear of breakage. A minor drop from even the smallest height will severely damage these lighter devices. I have no such worries with my X220.&lt;/p&gt;
-&lt;p&gt;As for the laptop&amp;#8217;s screen and resolution: your mileage may vary. I have zero issues with the default display or the smaller aspect ratio. I wrote about how I &lt;a href=&quot;/monitor&quot;&gt;stopped using an external monitor&lt;/a&gt;, so I might be a little biased.&lt;/p&gt;
-&lt;p&gt;Overall, this laptop is a device you can snatch up off your desk, whip into your travel bag and be on your way. The rugged design and bulkier weight help put my mind at ease - which is something I can&amp;#8217;t say for newer laptop builds.&lt;/p&gt;
-&lt;h2 id=&quot;ports&quot;&gt;Ports&lt;/h2&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/ports-everywhere.jpg&quot; alt=&quot;Buzz Lightyear and Woody meme: &#39;Ports, Ports Everywhere&#39;&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;I don&amp;#8217;t think I need to explain how valuable it is to have functional ports on a laptop. Needing to carrying around a bunch of dongles for ports that should already be &lt;em&gt;on the device&lt;/em&gt; just seems silly.&lt;/p&gt;
-&lt;p&gt;The X220 comes equipped with:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;3 USB ports (one of those being USB3 on the i7 model)&lt;/li&gt;
-&lt;li&gt;DisplayPort&lt;/li&gt;
-&lt;li&gt;VGA&lt;/li&gt;
-&lt;li&gt;Ethernet&lt;/li&gt;
-&lt;li&gt;SD Card Reader&lt;/li&gt;
-&lt;li&gt;3.5mm Jack&lt;/li&gt;
-&lt;li&gt;Ultrabay (SATA)&lt;/li&gt;
-&lt;li&gt;Wi-Fi hardware kill-switch&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Incredibly versatile and ready for anything I throw at it!&lt;/p&gt;
-&lt;h2 id=&quot;keyboard&quot;&gt;Keyboard&lt;/h2&gt;
-&lt;p&gt;The classic ThinkPad keyboards are simply that: classic. I don&amp;#8217;t think anyone could argue against these keyboards being the golden standard for laptops. It&amp;#8217;s commendable how Lenovo managed to package so much functionality into such a small amount of real estate. Most modern laptops lack helpful keys such as &lt;code&gt;Print Screen&lt;/code&gt;, &lt;code&gt;Home&lt;/code&gt;, &lt;code&gt;End&lt;/code&gt;, and &lt;code&gt;Scroll Lock&lt;/code&gt;.&lt;/p&gt;
-&lt;p&gt;They&amp;#8217;re also an absolute &lt;em&gt;joy&lt;/em&gt; to type on. The fact that so many people go out of their way to mod X230 ThinkPad models with X220 keyboards should tell you something&amp;#8230; Why Lenovo moved away from these keyboards will always baffle me. (I know &lt;em&gt;why&lt;/em&gt; they did it - I just think it&amp;#8217;s stupid).&lt;/p&gt;
-&lt;p&gt;Did I mention these classic keyboards come with the extremely useful Trackpoint as well?&lt;/p&gt;
-&lt;h2 id=&quot;battery-life&quot;&gt;Battery Life&lt;/h2&gt;
+ <title>Making software better without sacrificing user experience.</title>
+ <link href="https://btxx.org/atom.xml" rel="self" />
+ <updated>2024-06-10T09:40:10Z</updated>
+ <author>
+ <name>Bradley Taunt</name>
+ </author>
+ <id>https://btxx.org,2024-06-06:default-atom-feed</id>
+ <entry>
+ <title>Do You Have an Extra $10?</title>
+ <content type="html">&lt;h1 id=&quot;do-you-have-an-extra-10&quot;&gt;Do You Have an Extra $10?&lt;/h1&gt;
+&lt;p&gt;2022-11-23&lt;/p&gt;
+&lt;p&gt;As software designers and developers, think of all the little things that we spend $10 on. Maybe it&amp;#8217;s a couple coffees over the course of a week. Maybe it&amp;#8217;s a TV streaming subscription. Maybe it&amp;#8217;s an impulse buy while we&amp;#8217;re out shopping for groceries. Maybe it goes into a mason jar on top of the fridge, stored away for a rainy day.&lt;/p&gt;
+&lt;p&gt;$10 doesn&amp;#8217;t seem like a &lt;em&gt;ton&lt;/em&gt; of money, but a little does go a long way. What if, combined with &lt;em&gt;other people&lt;/em&gt;, that $10 could grow and support an open source project? A project that you might even use &lt;em&gt;every day&lt;/em&gt; without cost. &lt;/p&gt;
+&lt;p&gt;Plenty of people already do this - it&amp;#8217;s nothing new. If you already contribute to the open source community (whether through code or donations) then this post isn&amp;#8217;t really geared towards you. You&amp;#8217;re already helping out and are greatly appreciated. Feel free to stop reading right now and continue on with your day!&lt;/p&gt;
+&lt;p&gt;But, if you&amp;#8217;re like how I used to be, you might be one of those people who enjoys &lt;em&gt;the idea&lt;/em&gt; of donating to a FOSS project instead of actually doing so. That&amp;#8217;s fine. Zero judgement here since I was doing &lt;em&gt;exactly that&lt;/em&gt; for years. All I ask is for you to try it out for even a couple months. You&amp;#8217;ll soon realize that $10 doesn&amp;#8217;t break the bank, while at the same time, you get that &amp;#8220;warm, fuzzy feeling&amp;#8221; of supporting important projects&amp;#47;communities.&lt;/p&gt;
+&lt;p&gt;In a way, it&amp;#8217;s actually kind of selfish. You start doing it more for the &lt;em&gt;feel good&lt;/em&gt; endorphin that kicks in each time you donate. At least, that&amp;#8217;s been my experience&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;open-source-isnt-free&quot;&gt;Open Source isn&amp;#8217;t Free&lt;/h2&gt;
+&lt;p&gt;Maintaining any open source project takes years of prior design&amp;#47;development experience, along with sacrificing personal time. Contributors might enjoy working on their project. Most probably love connecting with their end-users and community - but their time is still a hard requirement.&lt;/p&gt;
+&lt;p&gt;I believe this time is worth paying for. If a project you depend on were to suddenly &amp;#8220;shut down&amp;#8221;, how much time, effort, and income do you stand to lose? Is it more than $10 a month?&lt;/p&gt;
+&lt;h2 id=&quot;donating-in-this-economy&quot;&gt;&amp;#8220;Donating? In THIS Economy?&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;Things aren&amp;#8217;t great for a lot of folks financially right now. I&amp;#8217;m not ignorant to this fact and completely understand people tightening their belts. We all have to. I&amp;#8217;m merely suggesting that if you &lt;em&gt;have the means&lt;/em&gt; to support FOSS communities with any disposable income, you should. And I&amp;#8217;m not suggesting a lot - &lt;strong&gt;just ten bucks&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;Allow me to put my money where my mouth is and showcase my own $10 donation breakdown:&lt;/p&gt;
+&lt;h2 id=&quot;my-10-breakdown&quot;&gt;My $10 Breakdown&lt;/h2&gt;
+&lt;table&gt;
+&lt;thead&gt;
+&lt;tr&gt;
+&lt;th&gt;Service&lt;/th&gt;
+&lt;th&gt;Cost&amp;#47;month&lt;/th&gt;
+&lt;/tr&gt;
+&lt;/thead&gt;
+&lt;tbody&gt;
+&lt;tr&gt;
+&lt;td&gt;&lt;a href=&quot;https://sourcehut.org&quot;&gt;sourcehut&lt;/a&gt;&lt;/td&gt;
+&lt;td&gt;$5.00&lt;/td&gt;
+&lt;/tr&gt;
+&lt;tr&gt;
+&lt;td&gt;&lt;a href=&quot;https://fosstodon.org&quot;&gt;fosstodon&lt;/a&gt;&lt;/td&gt;
+&lt;td&gt;$3.00&lt;/td&gt;
+&lt;/tr&gt;
+&lt;tr&gt;
+&lt;td&gt;&lt;a href=&quot;https://qutebrowser.org&quot;&gt;qutebrowser&lt;/a&gt;&lt;/td&gt;
+&lt;td&gt;$2.00&lt;/td&gt;
+&lt;/tr&gt;
+&lt;/tbody&gt;
+&lt;/table&gt;
+&lt;p&gt;&lt;em&gt;In case you are reading the post at a later point in time, the most up-to-date donation listing can always be found &lt;a href=&quot;/uses/&quot;&gt;on my official Uses page&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
+&lt;h2 id=&quot;sourcehut&quot;&gt;SourceHut&lt;/h2&gt;
+&lt;p&gt;To be fair, this is an active service which just so happens to be available for &amp;#8220;free&amp;#8221; in its current state. Drew &lt;a href=&quot;https://sourcehut.org/pricing/&quot;&gt;mentions on the main pricing page&lt;/a&gt; that payment is &lt;em&gt;currently&lt;/em&gt; optional, but will eventually require maintainers to upgrade (contributors will always have free access):&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;&lt;strong&gt;Author&amp;#8217;s Note:&lt;/strong&gt; This section is very subjective. The age, quality, and size of the X220&amp;#8217;s battery can have a massive impact on benchmarks. I should also mention that I run very lightweight operating systems and use DWM as opposed to a heavier desktop environment. Just something to keep in mind.&lt;/p&gt;
+&lt;p&gt;sr.ht is currently in alpha, and the quality of the service may reflect that. As such, payment is currently optional, and only encouraged for users who want to support the ongoing development of the site. &lt;/p&gt;
&lt;/blockquote&gt;
-&lt;p&gt;The battery life on my own X220 is fantastic. I have a brand-new 9-cell that lasts for roughly 5-6 hours of daily work. Obviously these numbers don&amp;#8217;t come close to the incredible battery life of Apple&amp;#8217;s M1&amp;#47;M2 chip devices, but it&amp;#8217;s still quite competitive against other &amp;#8220;newer&amp;#8221; laptops on the market.&lt;/p&gt;
-&lt;p&gt;Although, even if the uptime was lower than 5-6 hours, you have the ability to carry extra batteries with you. The beauty of swapping out your laptop&amp;#8217;s battery without needing to &lt;em&gt;open up&lt;/em&gt; the device itself is fantastic. Others might whine about the annoyance of carrying an extra battery in their travel bag, but doing so is completely &lt;em&gt;optional&lt;/em&gt;. A core part of what makes the X220 so wonderful is user control and choice. The X220&amp;#8217;s battery is another great example of that.&lt;/p&gt;
-&lt;h2 id=&quot;repairability&quot;&gt;Repairability&lt;/h2&gt;
-&lt;p&gt;The ability to completely disassemble and replace almost everything on the X220 has to be one of its biggest advantages over newer laptops. No glue to rip apart. No special proprietary tools required. Just some screws and plastic snaps. If someone as monkey-brained as me can completely strip down this laptop and put it back together again without issue, then the hardware designers have done something right!&lt;/p&gt;
-&lt;p&gt;Best of all, Lenovo provides a very detailed &lt;a href=&quot;https://download.lenovo.com/pccbbs/mobiles_pdf/0a60739_01.pdf&quot;&gt;hardware maintenance manual&lt;/a&gt; to help guide you through the entire process.&lt;/p&gt;
-&lt;p&gt;My disassembled X220 when I was reapplying the CPU thermal paste:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/x220-pieces.jpeg&quot; alt=&quot;My disassembled X220 laptop&quot; /&gt;&lt;/p&gt;
-&lt;h2 id=&quot;bonus-round-price&quot;&gt;Bonus Round: Price&lt;/h2&gt;
-&lt;p&gt;I didn&amp;#8217;t list this in my initial section &amp;#8220;breakdown&amp;#8221; but it&amp;#8217;s something to consider. I purchased my X220 off eBay for $175 Canadian. While this machine came with a HDD instead of an SSD and only 8GB of total memory, that was still an incredible deal. I simply swapped out the hard-drive with an SSD I had on hand, along with upgrading the DDR3 memory to its max of 16.&lt;/p&gt;
-&lt;p&gt;Even if you needed to buy those components separately you would be hard-pressed to find such a good deal for a decent machine. Not to mention you would be helping to prevent more e-waste!&lt;/p&gt;
-&lt;h2 id=&quot;what-more-can-i-say&quot;&gt;What More Can I Say?&lt;/h2&gt;
-&lt;p&gt;Obviously the title and tone of this article is all in good fun. Try not to take things so seriously! But, I still &lt;em&gt;personally&lt;/em&gt; believe the X220 is one of, if not &lt;em&gt;the&lt;/em&gt; best laptop in the world.&lt;/p&gt;</content>
- <link href="https://btxx.org/x220"/>
- <id>https://btxx.org/x220</id>
- <updated>2023-09-26T10:00:00Z</updated>
- <published>2023-09-26T10:00:00Z</published>
- </entry>
- <entry>
- <title>Bypassing the WiFi Hardware Switch on the Lenovo X201</title>
- <content type="html">&lt;h1 id=&quot;bypassing-the-wifi-hardware-switch-on-the-lenovo-x201&quot;&gt;Bypassing the WiFi Hardware Switch on the Lenovo X201&lt;/h1&gt;
-&lt;p&gt;2023-04-02&lt;/p&gt;
-&lt;p&gt;I recently received a ThinkPad X201 to start using as my daily driver. I purchased the X201 to replace my existing X260. Although some might look at this as a &amp;#8220;downgrade&amp;#8221; in terms of specs and hardware, I would have to disagree. &lt;/p&gt;
-&lt;p&gt;The X201 is an absolute masterpiece in laptop hardware design and only faulted by some of the constraints set by the motherboard, namely the lack to support more than 8GB of RAM. Other than that, I think it&amp;#8217;s perfect. Well&amp;#8230;&lt;em&gt;almost&lt;/em&gt; perfect. There is one small annoyance:&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;The physical WiFi kill switch&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;This thing can become really flaky on these older devices and countless people on the web report connection issues across multiple operating systems. I too ran into this issue not long after getting Alpine setup nicely on my machine.&lt;/p&gt;
-&lt;p&gt;Some remedies include re-installing hardware drivers, flicking the hardware toggle off and on repeatedly, or even simply logging out of the current user session. All these options seemed like a pain in the ass.&lt;/p&gt;
-&lt;p&gt;So I listed out my possible options:&lt;/p&gt;
+&lt;p&gt;I still consider this &amp;#8220;donating&amp;#8221; since it helps keep this specific instance alive. It&amp;#8217;s also my main code forge since I&amp;#8217;ve been &lt;a href=&quot;/srht2/&quot;&gt;migrating away from GitHub&lt;/a&gt;. I want to see SourceHut succeed, so while I &lt;em&gt;could&lt;/em&gt; use the service completely free, I believe it&amp;#8217;s more than worth it to coverage my usage.&lt;/p&gt;
+&lt;h2 id=&quot;fosstodon&quot;&gt;Fosstodon&lt;/h2&gt;
+&lt;p&gt;&lt;a href=&quot;https://fosstodon.org&quot;&gt;fosstodon.org&lt;/a&gt; is my main &amp;#8220;social&amp;#8221; platform and the Mastodon instance I chose to join some time ago. The people I&amp;#8217;ve interacted with have been nothing but helpful, insightful and fun. The maintainers are also very down to earth (shoutout to &lt;a href=&quot;https://kevquirk.com/&quot;&gt;Kev&lt;/a&gt; specifically for making my initial experience great!)&lt;/p&gt;
+&lt;p&gt;Hosting a large Mastodon instance can become expensive. Not to mention the recent influx of Twitter users flocking to the platform in general. Fosstodon recently &lt;a href=&quot;https://hub.fosstodon.org/more-upgrades-twitter-storm/&quot;&gt;posted an update&lt;/a&gt; detailing how their server costs are now &amp;#62;$1800. That&amp;#8217;s insane.&lt;/p&gt;
+&lt;p&gt;The least I can do is toss a few bucks towards the service. I know it isn&amp;#8217;t much, but it certainly feels better than using such an awesome platform for absolutely nothing. Keep up the great work maintainers&amp;#47;mods!&lt;/p&gt;
+&lt;h2 id=&quot;qutebrowser&quot;&gt;qutebrowser&lt;/h2&gt;
+&lt;p&gt;&lt;strong&gt;The best browser I have ever used&lt;/strong&gt;. I refuse to go back to Firefox or even FireDragon&amp;#47;Pale Moon. I&amp;#8217;m only currently donating $2 but my goal is to increase this in the future before adding any other services &amp;#47; communities to my &amp;#8220;collection&amp;#8221;. If you haven&amp;#8217;t yet tried it, I highly recommend it.&lt;/p&gt;
+&lt;h2 id=&quot;food-for-thought&quot;&gt;Food for Thought&lt;/h2&gt;
+&lt;p&gt;That&amp;#8217;s really all there is for me to say on the matter. It essentially comes down to personal preference and the financial ability to donate. As I said before: there is no judgement here. All I&amp;#8217;m suggesting is that people do what they can to help support the FOSS projects they love.&lt;/p&gt;
+&lt;p&gt;And really, it&amp;#8217;s just $10.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/$10"/>
+ <id>https://btxx.org/posts/$10</id>
+ <updated>2022-11-23T10:00:00Z</updated>
+ <published>2022-11-23T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Making a Website Under 1kB</title>
+ <content type="html">&lt;h1 id=&quot;making-a-website-under-1kb&quot;&gt;Making a Website Under 1kB&lt;/h1&gt;
+&lt;p&gt;2022-08-02&lt;/p&gt;
+&lt;p&gt;I recently launched (another) website club called the &lt;a href=&quot;https://1kb.club&quot;&gt;1kB Club&lt;/a&gt;. Unlike the &lt;a href=&quot;https://1mb.club&quot;&gt;1MB Club&lt;/a&gt;, it isn&amp;#8217;t as accessible for most modern websites to become official members. Building a website that actually serves useful content while squeezing its page size under 1,024 bytes is no easy feat.&lt;/p&gt;
+&lt;p&gt;But it is possible. And I did it myself!&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;Note:&lt;/em&gt; Big shout-out to &lt;a href=&quot;https://t0.vc&quot;&gt;Tanner&lt;/a&gt;, who inspired this whole &amp;#8220;movement&amp;#8221; with his own minimal website. (He also has some really great creations&amp;#47;articles there too!)&lt;/p&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;p&gt;For reference, you can view my &amp;#8220;mini&amp;#8221; website here: &lt;a href=&quot;https://cv.tdarb.org&quot;&gt;cv.tdarb.org&lt;/a&gt;. It is &lt;em&gt;very&lt;/em&gt; minimal and serves only as a personal curriculum vitae. It also weighs only &lt;strong&gt;920 bytes&lt;/strong&gt; and is valid HTML.&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s take a look at the full HTML and then break things down from there:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;!DOCTYPE html&amp;#62;&amp;#60;link rel=&quot;icon&quot; href=&quot;data:,&quot;&amp;#62;&amp;#60;meta name=&quot;viewport&quot; content=&quot;width=device-width,initial-scale=1.0&quot;&amp;#62;&amp;#60;title&amp;#62;CV&amp;#60;&amp;#47;title&amp;#62;&amp;#60;p&amp;#62;Hi, I&amp;#39;m &amp;#60;a href=&quot;t&quot;&amp;#62;Brad Taunt&amp;#60;&amp;#47;a&amp;#62;! I&amp;#39;m a UX designer.&amp;#60;p&amp;#62;Email: hello@tdarb.org&amp;#60;p&amp;#62;Resume&amp;#60;p&amp;#62;Senior Product Designer @ Donorbox, 2021-&amp;#60;br&amp;#62;Web Designer @ Purism, 2019-2021&amp;#60;br&amp;#62;Product Designer @ Benbria, 2013-2019&amp;#60;br&amp;#62;Web Designer @ Netvatise, 2009-2013&amp;#60;p&amp;#62;Projects&amp;#60;p&amp;#62;&amp;#60;a href=&quot;1&quot;&amp;#62;1MB Club&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;k&quot;&amp;#62;1kB Club&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;p&quot;&amp;#62;pblog&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;s&quot;&amp;#62;shinobi&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;h&quot;&amp;#62;PHPetite&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;v&quot;&amp;#62;Vanilla CSS&amp;#60;&amp;#47;a&amp;#62;&amp;#60;p&amp;#62;Writing&amp;#60;p&amp;#62;&amp;#60;a href=&quot;d&quot;&amp;#62;The Death of Personality&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;u&quot;&amp;#62;Simple Does Not Mean Ugly&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;e&quot;&amp;#62;Plain Text Emails, Please&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;tb&quot;&amp;#62;[more]&amp;#60;&amp;#47;a&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;sneaky-hacks&quot;&gt;Sneaky &amp;#8220;Hacks&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;The first thing you&amp;#8217;ll notice is that the HTML is compressed. White space adds extra bytes of data to the page weight - so it needs to go. Next, you might have caught the &lt;em&gt;odd&lt;/em&gt; favicon meta tag:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;link rel=&quot;icon&quot; href=&quot;data:,&quot;&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;This is required to stop the browser from making the standard favicon request (normally pulling from &lt;code&gt;favicon.ico&lt;/code&gt;). By adding this meta tag you are telling the browser to load in an empty image without running another server request. This saves about 400 bytes of bandwidth on its own!&lt;/p&gt;
+&lt;p&gt;The next two meta tags after the &lt;code&gt;icon&lt;/code&gt; are technically optional. These are the &lt;code&gt;viewport&lt;/code&gt; and &lt;code&gt;title&lt;/code&gt; tags. You could save a good amount of data by excluding them altogether, but I had my own personal reasons for keeping them:&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;Whitelist my BIOS WiFi settings (requires flashing BIOS) and install a newer wifi card, hoping the problem fixes itself&lt;/li&gt;
-&lt;li&gt;Purchase a replacement WiFi card (maybe mine was just buggy??)&lt;/li&gt;
-&lt;li&gt;Block PIN20 on the existing Wifi card&lt;/li&gt;
-&lt;li&gt;Somehow disconnect the hardware killswitch (requires soldering which I have ZERO experience with)&lt;/li&gt;
+&lt;li&gt;I wanted the web page to be responsive&lt;/li&gt;
+&lt;li&gt;I wanted the page to be &lt;a href=&quot;https://validator.w3.org/nu/?doc=https%3A%2F%2Fcv.tdarb.org%2F&quot;&gt;valid HTML&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;Out of pure laziness, I chose option &lt;strong&gt;three&lt;/strong&gt;. In case you were unaware, PIN20 on older PCIE WLAN cards is the &amp;#8220;wifi disable&amp;#8221; and used as an RF killswitch. By &amp;#8220;blocking&amp;#8221; this PIN, we stop the system from being able to disable the WiFi connection. Losing the ability to disable WiFi on the hardware level didn&amp;#8217;t bother me much, so I moved forward with this easier approach.&lt;/p&gt;
-&lt;h2 id=&quot;opening-up-the-x201&quot;&gt;Opening Up the X201&lt;/h2&gt;
-&lt;p&gt;To access the WiFi card, you&amp;#8217;ll need to remove the keyboard and touchpad palm rest cover. It might sound daunting for newcomers but I assure you it is very simple. These machines were built during a time when Lenovo &lt;em&gt;expected&lt;/em&gt; their users to tinker with their devices and built them with modular components in mind. Yet another reason for my decision to swap this laptop for my more &amp;#8220;locked down&amp;#8221; X260.&lt;/p&gt;
+&lt;p&gt;So, I kept these tags but made them as minimal as I possibly could (looking at you &lt;code&gt;title&lt;/code&gt; tag). After that, it was time to add my content!&lt;/p&gt;
+&lt;h2 id=&quot;where-were-going-we-dont-need-tags&quot;&gt;Where We&amp;#8217;re Going, We Don&amp;#8217;t Need Tags&amp;#8230;&lt;/h2&gt;
+&lt;p&gt;The beauty of using HTML5 is the ability to ditch &amp;#8220;default&amp;#8221; and closing tags on most elements. Think of all those bytes we can save!&lt;/p&gt;
+&lt;p&gt;In the HTML above you will notice:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;There is no &lt;code&gt;html&lt;/code&gt; element&lt;/li&gt;
+&lt;li&gt;There is no &lt;code&gt;head&lt;/code&gt; element&lt;/li&gt;
+&lt;li&gt;There is no &lt;code&gt;body&lt;/code&gt; element&lt;/li&gt;
+&lt;li&gt;There are no closing &lt;code&gt;p&lt;/code&gt; tags&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;Even with all those &amp;#8220;missing&amp;#8221; elements, the webpage is still valid HTML5! Craziness.&lt;/p&gt;
+&lt;p&gt;The final hack that saved a &lt;em&gt;ton&lt;/em&gt; of bandwidth was implementing custom &lt;code&gt;href&lt;/code&gt; URLs. Most of the links on the page take the user to another website altogether - which is fine. The problem is including these full domains inside the &lt;code&gt;a:href&lt;/code&gt; tag. Those can start to eat up a lot of data.&lt;/p&gt;
+&lt;p&gt;Luckily, I host this mini-site through Netlify so I can take full advantage of their optional &lt;code&gt;_redirects&lt;/code&gt; file. Links are now set with a single character (ie. &amp;#8220;1&amp;#8221; for the 1MB Club link) and the &lt;code&gt;_redirects&lt;/code&gt; file simply forwards the user to the custom domain. Pretty sneaky!&lt;/p&gt;
+&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
+&lt;p&gt;This is a silly project that isn&amp;#8217;t meant to be taken so seriously. That being said, I&amp;#8217;d love to see what other pages people are able to create while being limited to just 1kB.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/1kb"/>
+ <id>https://btxx.org/posts/1kb</id>
+ <updated>2022-08-02T10:00:00Z</updated>
+ <published>2022-08-02T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Building rbenv on OpenBSD 7.5</title>
+ <content type="html">&lt;h1 id=&quot;building-rbenv-on-openbsd-7.5&quot;&gt;Building rbenv on OpenBSD 7.5&lt;/h1&gt;
+&lt;p&gt;2024-06-02&lt;/p&gt;
+&lt;p&gt;I use Ruby (specifically with Jekyll) for a lot of my clubs&amp;#47;projects while using my personal laptop (&lt;a href=&quot;/posts/x220/&quot;&gt;X220 ThinkPad&lt;/a&gt;) which is runs OpenBSD. Since I recently upgraded to OpenBSD 7.5 I thought it could be helpful for others if I shared my process of building and using &lt;code&gt;rbenv&lt;/code&gt; to install different Ruby versions.&lt;/p&gt;
+&lt;h2 id=&quot;before-we-build&quot;&gt;Before We Build&lt;/h2&gt;
+&lt;p&gt;First, be sure to install the required packages in order to build from source, and then clone the core &lt;code&gt;rbenv&lt;/code&gt; repo:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;pkg_add git gcc gmake libffi libyaml openssl
+git clone https:&amp;#47;&amp;#47;github.com&amp;#47;rbenv&amp;#47;rbenv.git ~&amp;#47;.rbenv
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;building-&quot;&gt;Building &lt;code&gt;rbenv&lt;/code&gt;&lt;/h2&gt;
+&lt;p&gt;Add &lt;code&gt;rbenv&lt;/code&gt; to your PATH and initialize it (place this inside your &lt;code&gt;.bashrc&lt;/code&gt; or &lt;code&gt;.zshrc&lt;/code&gt; etc):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;export PATH=&quot;$HOME&amp;#47;.rbenv&amp;#47;bin:$PATH&quot;
+export PATH=&quot;$HOME&amp;#47;.rbenv&amp;#47;shims:$PATH&quot;
+export RUBY_CONFIGURE_OPTS=&quot;--with-openssl-dir=&amp;#47;usr&amp;#47;local&quot;
+eval &quot;$(rbenv init -)&quot;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Then reload your shell (zsh in this example): &lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;source ~&amp;#47;.zshrc
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Next we will need to install &lt;code&gt;ruby-build&lt;/code&gt; as a &lt;code&gt;rbenv&lt;/code&gt; plugin. Clone the ruby-build repository into the rbenv plugins directory:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;git clone https:&amp;#47;&amp;#47;github.com&amp;#47;rbenv&amp;#47;ruby-build.git ~&amp;#47;.rbenv&amp;#47;plugins&amp;#47;ruby-build
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;installing-ruby-and-setting-our-version&quot;&gt;Installing Ruby and Setting Our Version&lt;/h2&gt;
+&lt;p&gt;Now use &lt;code&gt;rbenv&lt;/code&gt; to install the desired version of Ruby (we will get an older version for this example):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;rbenv install 3.3.0
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;If you run into issues, you may need to specify your openssl directory:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;RUBY_CONFIGURE_OPTS=&quot;--with-openssl-dir=&amp;#47;usr&amp;#47;local&quot; rbenv install 3.3.0
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;If you&amp;#8217;re on a slower machine (like mine) this might take a little bit. Just grab a coffee or a snack while you wait!&lt;/p&gt;
+&lt;p&gt;Then navigate to your project of choice and set the &lt;code&gt;local&lt;/code&gt; Ruby version:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;rbenv local 3.3.0
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;That&amp;#8217;s it! If you&amp;#8217;d prefer to set this version of Ruby for all projects going forward, simply replace &lt;code&gt;local&lt;/code&gt; with &lt;code&gt;global&lt;/code&gt;.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/Building_rbenv_on_OpenBSD_7.5"/>
+ <id>https://btxx.org/posts/Building_rbenv_on_OpenBSD_7.5</id>
+ <updated>2024-06-02T10:00:00Z</updated>
+ <published>2024-06-02T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Installing WordPress on NearlyFreeSpeech</title>
+ <content type="html">&lt;h1 id=&quot;installing-wordpress-on-nearlyfreespeech&quot;&gt;Installing WordPress on NearlyFreeSpeech&lt;/h1&gt;
+&lt;p&gt;2024-05-27&lt;/p&gt;
+&lt;p&gt;I recently went through the process of porting over my wife&amp;#8217;s small business website (built off of WordPress + Woocommerce) from EasyWP to NearlyFreeSpeech. Although the process was fairly easy-going, I thought I would post my complete process here. That way, others who might wish to make the same switch can avoid running into any minor bumps along the way.&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;Note: I&amp;#8217;m not sure how important this is, but I made sure to set my WiFi hardware toggle switch into the &amp;#8220;ON&amp;#8221; position before doing any of the other steps.&lt;/p&gt;
+&lt;p&gt;Some of this information has been lifted from &lt;a href=&quot;https://members.nearlyfreespeech.net/tdarb/support/wordpress&quot;&gt;the official NFS docs&lt;/a&gt;, but these pages require a membership to access&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;p&gt;You can follow the very beautiful visual instructions provided by Lenovo below. Just remember to always power off you machine and remove the battery before tinkering.&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/x201-1.png&quot; alt=&quot;Unscrew the main keyboard and touchpad screws on the back of the laptop&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/x201-2.png&quot; alt=&quot;Gently push the keyboard towards the screen to remove&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/x201-3.png&quot; alt=&quot;The keyboard cable is very fragile, remove it carefully&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/x201-4.png&quot; alt=&quot;Slide the palm rest down and away from the laptop to remove safely&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/x201-5.png&quot; alt=&quot;Remove the two screws on the WiFi card to access it&quot; /&gt;&lt;/p&gt;
-&lt;h2 id=&quot;electrical-tape-fixes-everything&quot;&gt;Electrical Tape Fixes Everything&lt;/h2&gt;
-&lt;p&gt;Now that the WiFi card has been safely removed from its port (you most likely do not need to disconnect the cables though!) it is time to block PIN20.&lt;/p&gt;
-&lt;p&gt;On the Centrino Advanced-N 6200 card PIN20 is located on the back side, since the front is designated to all odd-set pins. You&amp;#8217;ll need to cut a ridiculously thin piece of electrical tape to cover this &lt;em&gt;single&lt;/em&gt; pin. I found this part to be the most taxing of my patience during the entire process. Just keep thinking happy thoughts and you can do it!&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/x201-tape.jpg&quot; alt=&quot;My hacky electrical tape job on PIN20&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;Once it is on PIN20, place your card back into its port, rebuild you X201, pop in your battery and boot up! If things were done properly, your WiFi should now be rock solid.&lt;/p&gt;
-&lt;p&gt;Best of all, you don&amp;#8217;t have to worry about accidentally toggling your WiFi toggle switch - it does nothing! Mine is actually set in the &amp;#8220;OFF&amp;#8221; position all the time now.&lt;/p&gt;
-&lt;p&gt;Enjoy less flaky WiFi.&lt;/p&gt;</content>
- <link href="https://btxx.org/x201"/>
- <id>https://btxx.org/x201</id>
- <updated>2023-04-02T10:00:00Z</updated>
- <published>2023-04-02T10:00:00Z</published>
- </entry>
- <entry>
- <title>WP Enqueue for Beginners</title>
- <content type="html">&lt;h1 id=&quot;wp-enqueue-for-beginners&quot;&gt;WP Enqueue for Beginners&lt;/h1&gt;
-&lt;p&gt;2020-05-05&lt;/p&gt;
-&lt;p&gt;Throughout my career designing, developing and auditing WordPress themes, I&amp;#8217;ve come across many that include their custom styles &amp;#47; scripts as static HTML elements inside their respective &lt;code&gt;header&lt;/code&gt; and &lt;code&gt;footer&lt;/code&gt; templates. This is perfectly &lt;em&gt;fine&lt;/em&gt;, but there is a cleaner way to include these files.&lt;/p&gt;
-&lt;p&gt;This post is purposefully catered for WordPress beginners, so if this seems overly simple, then you&amp;#8217;re probably already developing WordPress themes that utilize these techniques. (Which is awesome!)&lt;/p&gt;
-&lt;h2 id=&quot;introducing-wp-enqueue&quot;&gt;Introducing WP Enqueue&lt;/h2&gt;
-&lt;p&gt;The description of Wp Enqueue from the WordPress documentation:&lt;/p&gt;
-&lt;p&gt;In a nutshell: Placing a &lt;code&gt;wp_enqueue_script&lt;/code&gt; or &lt;code&gt;wp_enqueue_style&lt;/code&gt; script in the &lt;code&gt;functions.php&lt;/code&gt; of your custom theme tells WordPress to pull external files into the header or footer of your website. Best practice being: &lt;em&gt;styles into the header, scripts into the footer&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;I suggest you read the official documentation for more details: &lt;a href=&quot;https://developer.wordpress.org/reference/functions/wp_enqueue_script/&quot;&gt;wp_enqueue_script&lt;/a&gt; and &lt;a href=&quot;https://developer.wordpress.org/reference/functions/wp_enqueue_style/&quot;&gt;wp_enqueue_style&lt;/a&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;enqueue-stylesheets&quot;&gt;Enqueue Stylesheets&lt;/h2&gt;
-&lt;p&gt;The default script to enqueue a CSS stylesheet:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;wp_enqueue_style( $handle, $src, $deps, $ver, $media );
-&lt;/code&gt;&lt;/pre&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;code&gt;$handle&lt;/code&gt; - the name associated with your stylesheet&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$src&lt;/code&gt; - URL pointing to the directory of the stylesheet itself&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$deps&lt;/code&gt; - An array of any other stylesheets needed as dependencies&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$ver&lt;/code&gt; - The version number of the stylesheet (used for cache busting)&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$media&lt;/code&gt; - Specify media type (&lt;code&gt;all&lt;/code&gt;, &lt;code&gt;print&lt;/code&gt;, &lt;code&gt;screen&lt;/code&gt;, etc.)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;So, with all those parameters in mind, here is what a standard default enqueue of a CSS stylesheet looks like:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;wp_enqueue_style( &amp;#39;google-fonts&amp;#39;, &amp;#39;https:&amp;#47;&amp;#47;fonts.googleapis.com&amp;#47;css?family=Montserrat:200,300,300i,400,600,700,800,900&amp;#39;, &amp;#39;&amp;#39;, &amp;#39;1.0&amp;#39;, &amp;#39;&amp;#39;);
+&lt;h3 id=&quot;download-wordpress&quot;&gt;Download WordPress&lt;/h3&gt;
+&lt;p&gt;We will use the &lt;code&gt;wp-cli&lt;/code&gt; that comes packaged with NearlyFreeSpeech (NFS):&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Connect to your site via SSH.&lt;/li&gt;
+&lt;li&gt;Change to the directory you want to be the base of your blog (e.g. &amp;#47;home&amp;#47;public if WordPress will be running the whole site, or &amp;#47;home&amp;#47;public&amp;#47;blog if you want to share the site with other content).&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;For help using WP-CLI from the SSH command line, use this command:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;wp help
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;In this example we have rendered the following:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;code&gt;$handle&lt;/code&gt;: google-fonts&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$src&lt;/code&gt;: &lt;a href=&quot;https://fonts.googleapis.com/css?family=Montserrat:200,300,300i,400,600,700,800-&quot;&gt;https:&amp;#47;&amp;#47;fonts.googleapis.com&amp;#47;css?family=Montserrat:200,300,300i,400,600,700,800-&lt;/a&gt; 0&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$deps&lt;/code&gt;: Null (left blank)&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$ver&lt;/code&gt;: 1.0&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$media&lt;/code&gt;: Null (left blank)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; Keep in mind that the &lt;code&gt;wp_enqueue_style&lt;/code&gt; script will render the stylesheet link into the WordPress header automatically.&lt;/p&gt;
-&lt;h2 id=&quot;enqueue-scripts&quot;&gt;Enqueue Scripts&lt;/h2&gt;
-&lt;p&gt;The default script to enqueue an external JS file:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer );
+&lt;p&gt;To download and unpack the latest version of WordPress, enter the following command:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;wp core download
&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;create-a-mysql-process-and-database&quot;&gt;Create a MySQL Process and Database&lt;/h2&gt;
+&lt;p&gt;Follow the instructions in the NearlyFreeSpeech.NET FAQ to &lt;a href=&quot;https://members.nearlyfreespeech.net/faq?q=MySQL#MySQL&quot;&gt;create a MySQL process&lt;/a&gt; if you haven&amp;#8217;t already.&lt;/p&gt;
+&lt;p&gt;Next, &lt;a href=&quot;https://members.nearlyfreespeech.net/faq?q=CreateDatabase#CreateDatabase&quot;&gt;create a new database&lt;/a&gt; within that process. Note the name of the process and the name of the database.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: Do not use your own MySQL credentials to connect WordPress to your database. Instead, create a new user. This will protect your member password in the event that your site becomes compromised.&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;code&gt;$handle&lt;/code&gt; - the name associated with your script&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$src&lt;/code&gt; - URL pointing to the directory of the script itself&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$deps&lt;/code&gt; - An array of any other scripts needed as dependencies&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$ver&lt;/code&gt; - The version number of the script (used for cache busting)&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$in_footer&lt;/code&gt; - Set whether the script is loaded in the &lt;code&gt;&amp;#60;head&amp;#62;&lt;/code&gt; or just before the &lt;code&gt;&amp;#60;&amp;#47;body&amp;#62;&lt;/code&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;With all those parameters in mind, here is what a standard default enqueue of a Javascript file looks like:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;wp_enqueue_script( &amp;#39;bxslider&amp;#39;, get_template_directory_uri() . &amp;#39;&amp;#47;js&amp;#47;bxslider.js&amp;#39;, array(&amp;#39;jquery&amp;#39;), &amp;#39;1.0.0&amp;#39;, true );
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;In this example we have rendered the following:&lt;/p&gt;
+&lt;li&gt;Click on the &lt;a href=&quot;https://members.nearlyfreespeech.net/mysql&quot;&gt;MySQL tab&lt;/a&gt; in the member interface&lt;/li&gt;
+&lt;li&gt;Click &amp;#8220;[Open phpMyAdmin](&lt;a href=&quot;https://phpmyadmin.nearlyfreespeech.net/&quot;&gt;https:&amp;#47;&amp;#47;phpmyadmin.nearlyfreespeech.net&amp;#47;&lt;/a&gt;&amp;#8221; in the Actions box.&lt;/li&gt;
+&lt;li&gt;Enter the DSN (&amp;#8220;Server&amp;#8221;) of your MySQL Process, MySQL username, and MySQL password. The DSN and username can be found on the Process Information page in our member UI.&lt;/li&gt;
+&lt;li&gt;Click on the &amp;#8220;Users&amp;#8221; tab.&lt;/li&gt;
+&lt;li&gt;Click &amp;#8220;Add user.&amp;#8221; (It&amp;#8217;s toward the bottom left of the page.)&lt;/li&gt;
+&lt;li&gt;Give the user a descriptive name. We&amp;#8217;ll use exampledbuser here, but you should pick something better, like wpuser or something representative of your blog.&lt;/li&gt;
+&lt;li&gt;Make sure to leave the Host: selectbox on &amp;#8220;Any host.&amp;#8221;&lt;/li&gt;
+&lt;li&gt;Click the &amp;#8220;Generate&amp;#8221; link to generate a nice strong password.&lt;/li&gt;
+&lt;li&gt;Use cut and paste to copy the new password somewhere, you&amp;#8217;ll need it later. (We&amp;#8217;ll use dbpassword here.)&lt;/li&gt;
+&lt;li&gt;Grant the following permissions to the new user:
&lt;ul&gt;
-&lt;li&gt;&lt;code&gt;$handle&lt;/code&gt;: bxslider&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$src&lt;/code&gt;: get_template_directory_uri() . &amp;#47;js&amp;#47;bxslider.js&amp;#8217;&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$deps&lt;/code&gt;: array(jquery&amp;#8217;)&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$ver&lt;/code&gt;: 1.0.0&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$in_footer&lt;/code&gt;: True (&lt;em&gt;places script before closing body tag&lt;/em&gt;)&lt;/li&gt;
+&lt;li&gt;All the permissions except &amp;#8220;file&amp;#8221; in the &amp;#8220;data&amp;#8221; box,&lt;/li&gt;
+&lt;li&gt;Everything in the &amp;#8220;structure&amp;#8221; box, and&lt;/li&gt;
+&lt;li&gt;&amp;#8220;LOCK TABLES&amp;#8221; in the &amp;#8220;administration&amp;#8221; box.&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Click the &amp;#8220;Go&amp;#8221; button in the lower right.&lt;/li&gt;
+&lt;li&gt;Exit phpMyAdmin.&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;packaging-everything-together&quot;&gt;Packaging Everything Together&lt;/h2&gt;
-&lt;p&gt;Now that we have the custom stylesheet and script ready to be loaded into our custom WordPress theme, we just need to properly package them together as a function in our &lt;code&gt;functions.php&lt;/code&gt; file:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;&amp;#47; Add styles and scripts to the header&amp;#47;footer
-function custom_enqueue_scripts() {
- wp_enqueue_style( &amp;#39;google-fonts&amp;#39;, &amp;#39;https:&amp;#47;&amp;#47;fonts.googleapis.com&amp;#47;css?family=Montserrat:200,300,300i,400,600,700,800,900&amp;#39;);
- wp_enqueue_script( &amp;#39;bxslider&amp;#39;, get_template_directory_uri() . &amp;#39;&amp;#47;js&amp;#47;bxslider.js&amp;#39;, array(&amp;#39;jquery&amp;#39;), &amp;#39;1.0.0&amp;#39;, true );
-}
-
-add_action( &amp;#39;wp_enqueue_scripts&amp;#39;, &amp;#39;custom_enqueue_scripts&amp;#39;);
+&lt;h2 id=&quot;generate-a-wordpress-configuration-file&quot;&gt;Generate a WordPress Configuration File&lt;/h2&gt;
+&lt;p&gt;At the SSH command line (replace the examples with the info for the database and user you created above):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;wp core config --dbhost=example.db --dbname=exampledb --dbuser=exampledbuser --dbpass=dbpassword
+chmod 644 wp-config.php
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it! Hopefully this helps prevent WordPress newbies from statically rendering their external CSS and JS files directly in template files. Let WordPress do that for you!&lt;/p&gt;</content>
- <link href="https://btxx.org/wp-enqueue-for-beginners"/>
- <id>https://btxx.org/wp-enqueue-for-beginners</id>
- <updated>2020-05-05T10:00:00Z</updated>
- <published>2020-05-05T10:00:00Z</published>
- </entry>
- <entry>
- <title>Setting Up Jekyll on Windows </title>
- <content type="html">&lt;h1 id=&quot;setting-up-jekyll-on-windows&quot;&gt;Setting Up Jekyll on Windows&lt;/h1&gt;
-&lt;p&gt;2022-09-02&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ve recently been playing around with using Windows 10 as my daily operating system. So far, it has been going fairly well. Nothing will probably ever feel as &amp;#8220;optimized&amp;#8221; as running a Linux-based system but it works well for my current needs. Getting a Jekyll development environment setup was a different story though&amp;#8230;&lt;/p&gt;
-&lt;p&gt;One of the first issues with using Windows 10 is the need to run a few of my open source projects that are built off Jekyll locally. This process initially seemed a like complex process to get things running smoothly but in the end was very straightforward. The main issue came from needing to bounce around through a handful of separate tutorials to get everything running smoothly.&lt;/p&gt;
-&lt;p&gt;So, I thought I would make this quick write-up to help those in the same situation (or even for my future self the need arises). Let&amp;#8217;s get into it.&lt;/p&gt;
-&lt;h2 id=&quot;wsl&quot;&gt;WSL&lt;/h2&gt;
-&lt;p&gt;The first step involves installing &lt;a href=&quot;https://docs.microsoft.com/en-us/windows/wsl/install&quot;&gt;WSL&lt;/a&gt; in order to run Linux alongside the main Windows OS. The documentation is well written and will get you up-and-running in no time. For quick reference, it essentially comes down to:&lt;/p&gt;
+&lt;h2 id=&quot;run-the-wordpress-installation-and-setting-permissions&quot;&gt;Run the WordPress Installation and Setting Permissions&lt;/h2&gt;
+&lt;p&gt;To get your permalinks to work properly, you must set up an .htaccess file. &lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;Opening PowerShell or Command Prompt as an administrator&lt;/li&gt;
-&lt;li&gt;Installing via the command: &lt;code&gt;wsl --install&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;Restarting your machine after the install completes&lt;/li&gt;
-&lt;li&gt;Creating your UNIX username and password&lt;/li&gt;
+&lt;li&gt;Go to the Dashboard for your WordPress site. (e.g. &lt;a href=&quot;https://www.example.com/wp-admin/index.php&quot;&gt;https:&amp;#47;&amp;#47;www.example.com&amp;#47;wp-admin&amp;#47;index.php&lt;/a&gt;)&lt;/li&gt;
+&lt;li&gt;In the navigation sidebar, find Settings and, under that, Permalinks.&lt;/li&gt;
+&lt;li&gt;Select your preferred link style under &amp;#8220;Common Settings.&amp;#8221; (We like &amp;#8220;Day and name.&amp;#8221;)&lt;/li&gt;
+&lt;li&gt;Scroll down and select the &amp;#8220;Save Changes&amp;#8221; button.&lt;/li&gt;
&lt;/ol&gt;
-&lt;h2 id=&quot;installing-ruby-dependencies&quot;&gt;Installing Ruby &amp;#38; Dependencies&lt;/h2&gt;
-&lt;p&gt;Once logged into your UNIX terminal session (with your created user) you can begin installing everything we need for Jekyll to work properly. The first step is to installing &lt;code&gt;rvm&lt;/code&gt; and the &lt;a href=&quot;https://github.com/rvm/ubuntu_rvm&quot;&gt;official project documentation&lt;/a&gt; does a very good job of walking you through this.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;p&gt;Be sure dependencies as installed: &lt;code&gt;sudo apt-get install software-properties-common&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Add the PPA and install the package:&lt;/p&gt;
-&lt;p&gt;sudo apt-add-repository -y ppa:rael-gc&amp;#47;rvm
-sudo apt-get update
-sudo apt-get install rvm&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Add your existing user to the &lt;code&gt;rvm&lt;/code&gt; group: &lt;code&gt;sudo usermod -a -G rvm $USER&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;You will need to close and restart your session to your Ubuntu system for these changes to take. After that, we can use &lt;code&gt;rvm&lt;/code&gt; to install the latest version (at this time of writing) of ruby:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;rvm install 3.1.2
+&lt;p&gt;Next, create an &lt;code&gt;.htaccess&lt;/code&gt; file for your WordPress site. We suggest doing this directly from the SSH command line using the cat shell command:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;cat &amp;#62;.htaccess &amp;#60;&amp;#60;NFSNRULES # This line is a shell command, not part of .htaccess!
+RewriteEngine On
+RewriteBase &amp;#47;
+RewriteRule ^index\.php$ - [L]
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule . &amp;#47;index.php [L]
+NFSNRULES
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it!&lt;/p&gt;
-&lt;h2 id=&quot;jekyll---finally&quot;&gt;Jekyll - Finally!&lt;/h2&gt;
-&lt;p&gt;The final step is to update our gems and install Jekyll:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;gem update
-gem install jekyll bundler
+&lt;p&gt;If you prefer, you can copy-paste the text into an editor:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;RewriteEngine On
+RewriteBase &amp;#47;
+RewriteRule ^index\.php$ - [L]
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule . &amp;#47;index.php [L]
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Once complete you can now run your Jekyll projects locally through WSL! Nothing ground-breaking but still pretty helpful for first-time users. And best of all, at least I have a good reference point in the future if I ever run into this issue again!&lt;/p&gt;</content>
- <link href="https://btxx.org/windows"/>
- <id>https://btxx.org/windows</id>
- <updated>2022-09-02T10:00:00Z</updated>
- <published>2022-09-02T10:00:00Z</published>
- </entry>
- <entry>
- <title>Width or Flex-Basis?</title>
- <content type="html">&lt;h1 id=&quot;width-or-flex-basis&quot;&gt;Width or Flex-Basis?&lt;/h1&gt;
-&lt;p&gt;2018-11-28&lt;/p&gt;
-&lt;p&gt;Creating rows and columns of elements that adapt dynamically can be a little tricky depending on the desired outcome. Let&amp;#8217;s breakdown how to solve this issue using both &lt;code&gt;inline-block&lt;/code&gt; paired with &lt;code&gt;width&lt;/code&gt; and &lt;code&gt;flex-basis&lt;/code&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;width&quot;&gt;Width&lt;/h2&gt;
-&lt;p&gt;Setting the width of the inner children to a divisible value and setting their display to &lt;code&gt;inline-block&lt;/code&gt;, we are able to create self-wrapping elements:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.width-container {
- display: block;
-}
-.width-container__item {
- display: inline-block;
- width: calc(33% - 3px); &amp;#47;* Fix for wonky inline-block margins *&amp;#47;
-}
+&lt;p&gt;We need to run the following commands in order to install, uninstall, activate, and deactivate plugins&amp;#47;themes from within the admin web GUI of WordPress:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;chgrp web .htaccess
+chmod 664 .htaccess
+chgrp -R web *
+find . -type d -exec chmod 775 {} \;
+find . -type f -exec chmod 664 {} \;
+wp config set FS_METHOD direct
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;pros&quot;&gt;Pros&lt;/h3&gt;
+&lt;h2 id=&quot;enable-file-uploading&quot;&gt;Enable File Uploading&lt;/h2&gt;
+&lt;p&gt;In your main WordPress installation folder enter the following SSH commands:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;cd wp-content
+mkdir -p uploads
+chgrp -R web uploads
+chmod -R 775 uploads
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;keeping-wordpress-up-to-date-automatically-via-command-line&quot;&gt;Keeping WordPress Up-To-Date Automatically via Command Line&lt;/h2&gt;
+&lt;p&gt;It is &lt;strong&gt;critically&lt;/strong&gt; important to keep your WordPress installation up-to-date including, if applicable, your theme and plugins. PHP, WordPress, and WordPress themes and plugins all have a track record of security problems. Most of those get fixed quickly, but if you don&amp;#8217;t update, you don&amp;#8217;t get the fixes.&lt;/p&gt;
+&lt;p&gt;To help you keep WordPress up-to-date, NFS provides a streamlined script.&lt;/p&gt;
+&lt;p&gt;This command, which must be run from an interactive ssh session, will set up our system to check your WordPress install (and themes &amp;#38; plugins) for you every day, and update them automatically when needed:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;wp-update.sh -a
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;By default, it will tell you via email when updates happen. If you don&amp;#8217;t want that, just add &lt;code&gt;-q&lt;/code&gt; (for &amp;#8220;quiet&amp;#8221;) to the command. It will work silently unless there is an error.&lt;/p&gt;
+&lt;p&gt;If you get errors from wp-cron (not wp-update) about failed automatic updates, you may also wish to add this to your wp-config.php file:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;define( &amp;#39;AUTOMATIC_UPDATER_DISABLED&amp;#39;, true );
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;This disables the insecure automatic updater bundled with recent versions of WordPress.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Do not attempt&lt;/strong&gt; to use WordPress&amp;#8217;s built-in ability to update itself through its admin panel. That insecure, outdated approach should not still exist. It does not work on NFS, which is a feature, not a bug. Getting it to work requires almost completely destroying your site&amp;#8217;s security, thereby ensuring that any undiscovered security flaw can enable hackers to completely obliterate your site. The update methods described here are faster, easier, and safer.&lt;/p&gt;
+&lt;h2 id=&quot;logging-in&quot;&gt;Logging In&lt;/h2&gt;
+&lt;p&gt;You should be able to navigate to &lt;code&gt;yourwebsite.com&amp;#47;wp-admin&lt;/code&gt;, login and have everything work as expected. Congrats - enjoy your blog!&lt;/p&gt;
+&lt;p&gt;Below you can find more advanced configuration to get the most out of your WordPress project.&lt;/p&gt;
+&lt;hr/&gt;
+&lt;h2 id=&quot;backing-up-wordpress&quot;&gt;Backing up WordPress&lt;/h2&gt;
+&lt;p&gt;NFS recommends backing up your WordPress setup on a regular basis.&lt;/p&gt;
+&lt;p&gt;This is a two-step process. You must back up both the files and the database.&lt;/p&gt;
+&lt;h3 id=&quot;backing-up-wordpress-files&quot;&gt;Backing up WordPress Files&lt;/h3&gt;
+&lt;p&gt;To back up your WordPress files directly from a Unix-like system of your own, you can use a command like:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;ssh yourmembername_siteshortname@ssh.phx.nearlyfreespeech.net tar -C &amp;#47;home&amp;#47;public -cvf - . | gzip &amp;#62;name-of-wordpress-backup.tar.gz
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;To back up WordPress to a file on our system that you can transfer via SFTP to your own computer, you can use a command like:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;tar -C &amp;#47;home&amp;#47;public -cvzf &amp;#47;home&amp;#47;tmp&amp;#47;name-of-wordpress-backup.tar.gz .
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;This assumes that your WordPress install is in the default location (&lt;code&gt;&amp;#47;home&amp;#47;public&lt;/code&gt;). It will put your backup file in your &lt;code&gt;&amp;#47;home&amp;#47;tmp&lt;/code&gt; directory.&lt;/p&gt;
+&lt;p&gt;Do not try to back up your WordPress folder into your WordPress folder, as that occasionally results in attempts to use infinite disk space by trying to back up the backup of the backup of the backup of the&amp;#8230;&lt;/p&gt;
+&lt;h3 id=&quot;backing-up-the-wordpress-database&quot;&gt;Backing up the WordPress Database&lt;/h3&gt;
+&lt;p&gt;If you have a Unix-like system of your own (e.g. macOS or Linux), you can do the backup directly from there using your local command prompt using the MySQL username and password you created for WordPress:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;ssh yourmembername_siteshortname@ssh.phx.nearlyfreespeech.net wp db export - | gzip &amp;#62;wordpress-backup.sql.gz
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Or you can do it from the SSH command line via WP-CLI:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;wp db export &amp;#47;home&amp;#47;tmp&amp;#47;wordpress-backup.sql
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;The &lt;code&gt;wordpress-backup.sql&lt;/code&gt; file this generates will be stored in your site&amp;#8217;s &lt;code&gt;&amp;#47;home&amp;#47;tmp&lt;/code&gt; directory. Download it from there to have a local copy.&lt;/p&gt;
+&lt;h2 id=&quot;thats-it&quot;&gt;That&amp;#8217;s It!&lt;/h2&gt;
+&lt;p&gt;Your WordPress site should be up-and-running now. Further customization or extra plugins&amp;#47;services can be freely added if so desired. Enjoy your site!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/Installing_WordPress_on_NearlyFreeSpeech"/>
+ <id>https://btxx.org/posts/Installing_WordPress_on_NearlyFreeSpeech</id>
+ <updated>2024-05-27T10:00:00Z</updated>
+ <published>2024-05-27T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>My Text Edtior is Not Open Source</title>
+ <content type="html">&lt;h1 id=&quot;my-text-edtior-is-not-open-source&quot;&gt;My Text Edtior is Not Open Source&lt;/h1&gt;
+&lt;p&gt;2024-01-02&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ve been using Sublime Text on and off for longer than I can remember. I think Sublime has been around since the start of my &amp;#8220;real&amp;#8221; career over 10 years ago, but I could be mistaken&lt;sup id=&quot;fnref1&quot;&gt;&lt;a href=&quot;#fn1&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;. It certainly &lt;em&gt;feels&lt;/em&gt; that long. And in that time I have never gotten upset with Sublime. I&amp;#8217;ve never rage quit or ran into an issue of Sublime not being able to &lt;em&gt;do the thing I wanted it to do&lt;/em&gt;. As much of a cliche it may sound: it just works.&lt;/p&gt;
+&lt;p&gt;Even when I switch editors (VSCode, Geany, kitty+vim etc.) for a period of time, I find myself always coming back to Sublime. The only reason I try other editors is simply that: to try them. Maybe that&amp;#8217;s why these editors don&amp;#8217;t click with me. Maybe I&amp;#8217;m giving Sublime an unfair advantage since I&amp;#8217;m simply &amp;#8220;testing&amp;#8221; other editors, rather than looking for a solid alternative.&lt;/p&gt;
+&lt;p&gt;And don&amp;#8217;t get me wrong, I understand &lt;em&gt;why&lt;/em&gt; editors like VSCode are extremely popular. VSCode has a massive ecosystem and new plugins are generally developed for that editor before all others. Finding solutions to problems online is very easy, since it is so popular. But best of all - it&amp;#8217;s open source&lt;sup id=&quot;fnref2&quot;&gt;&lt;a href=&quot;#fn2&quot; rel=&quot;footnote&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;
+&lt;p&gt;So why am I using a &lt;em&gt;non&lt;/em&gt;-open source editor? (Spoilers: because it&amp;#8217;s a great editor)&lt;/p&gt;
+&lt;h2 id=&quot;a-proprietary-editor---how-could-you&quot;&gt;&amp;#8220;A Proprietary Editor - How Could You?!&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;I know, I know. If you&amp;#8217;re familiar with me or the things I write about it must seem odd that I would willingly use proprietary software over open source. This is something I struggle with constantly day-to-day in the realm of &amp;#8220;personal tech&amp;#8221;. I find with age I become more open-minded to having a diverse range of software and hardware choices. Open source is best in &lt;em&gt;concept&lt;/em&gt; but not always best in practice.&lt;/p&gt;
+&lt;p&gt;The problem is that Sublime is just such a &lt;em&gt;great&lt;/em&gt; editor. I can&amp;#8217;t ignore quality and refuse to use good software solely based on it&amp;#8217;s licensing. A few personal things I love about Sublime:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Full browser support (as far back as IE6)&lt;/li&gt;
-&lt;li&gt;No floats needed&lt;/li&gt;
+&lt;li&gt;Incredibly fast&lt;/li&gt;
+&lt;li&gt;Handles massive files without breaking a sweat&lt;/li&gt;
+&lt;li&gt;Minimal resource footprint (ex. uses &amp;#60;0.1% CPU working on huge projects)&lt;/li&gt;
+&lt;li&gt;Large ecosystem of plugins&amp;#47;themes&lt;/li&gt;
+&lt;li&gt;No Electron&lt;/li&gt;
&lt;/ul&gt;
-&lt;h3 id=&quot;cons&quot;&gt;Cons&lt;/h3&gt;
+&lt;p&gt;Other editors can certainly check off a few of those boxes as well, but you&amp;#8217;d be hard-pressed to find one that checks off them all.&lt;/p&gt;
+&lt;h2 id=&quot;being-a-cheapskate&quot;&gt;Being a Cheapskate&lt;/h2&gt;
+&lt;p&gt;I must confess something that I think most Sublime users are guilty of: I&amp;#8217;ve never &lt;a href=&quot;https://www.sublimehq.com/store/text&quot;&gt;bought a license&lt;/a&gt;. I&amp;#8217;ve installed and used Sublime on countless machines, on multiple operating systems from Linux to Windows to MacOS. That &lt;code&gt;Unregistered&lt;/code&gt; text in the top right application bar has been with me since the beginning. But that in no longer the case.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;I finally purchased a license.&lt;/strong&gt; I bundled it with &lt;a href=&quot;https://www.sublimemerge.com/&quot;&gt;Sublime Merge&lt;/a&gt;, so it ended up costing me $168 USD. When I initially looked at that price tag I must admit I was tempted to close the browser tab and forget the whole thing. But then I realized I have been using this editor &lt;em&gt;free of charge&lt;/em&gt; for over 10 years. (Not to mention using Sublime Merge for quite some time as well!)&lt;/p&gt;
+&lt;p&gt;So I did a little math:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;$168 &amp;#47; 10 years = $16.80
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Looking at it in that perspective, it&amp;#8217;s actually a great deal. Not to mention they have very respectable terms for their licenses:&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;Personal licenses come with 3 years of updates. After 3 years, you&amp;#8217;ll be able to continue to use the last version released within 3 years of purchase (in other words, licenses do not expire). Any versions released 3 years or more after the purchase date will require a paid upgrade to use.&lt;/p&gt;
+&lt;p&gt;Individual licenses are valid for 3 years of updates, but do not expire after 3 years. Only if you wish to use newer versions will an upgrade fee be required. &lt;/p&gt;
+&lt;p&gt;Licenses are per-user, so you&amp;#8217;re welcome to use the one license on all computers and operating systems where you are the primary user.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;I won&amp;#8217;t copy everything from their main &lt;a href=&quot;https://www.sublimehq.com/sales_faq&quot;&gt;FAQ page&lt;/a&gt; but as you can see it is very reasonable. I also get to feel decent for supporting developers who make very good software.&lt;/p&gt;
+&lt;h2 id=&quot;final-notes&quot;&gt;Final Notes&lt;/h2&gt;
+&lt;p&gt;This post is not meant to convince you to switch or anything of that nature. Use what works for you! I just wanted to share my own personal preference when it came to my main text editor. Maybe this will also convince &amp;#8220;hardcore&amp;#8221; open source people (like me!) to realize it is &lt;em&gt;okay&lt;/em&gt; to pay for software sometimes&amp;#8230;&lt;/p&gt;
+&lt;hr/&gt;
+&lt;p&gt;I should be very clear about something: this post &lt;em&gt;is not an advertisement&lt;/em&gt;. I have not received any money or &amp;#8220;kick backs&amp;#8221; to write about my happy times with Sublime. This is purely my own opinion that I wanted to share with the internet!&lt;/p&gt;
+&lt;p&gt;BTW if anyone from SublimeHQ happens to come across this post: PLEASE look into building a &amp;#8220;native&amp;#8221; version of Sublime Text for FreeBSD&amp;#47;OpenBSD. I (and many others) would be forever grateful!&lt;/p&gt;
+&lt;div class=&quot;footnotes&quot;&gt;
+&lt;hr/&gt;
+&lt;ol&gt;
+
+&lt;li id=&quot;fn1&quot;&gt;
+&lt;p&gt;Sublime does mention copyright since 2006&amp;#8230;&amp;#160;&lt;a href=&quot;#fnref1&quot; rev=&quot;footnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
+&lt;/li&gt;
+
+&lt;li id=&quot;fn2&quot;&gt;
+&lt;p&gt;Not the pre-packaged Microsoft version&amp;#160;&lt;a href=&quot;#fnref2&quot; rev=&quot;footnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
+&lt;/li&gt;
+
+&lt;/ol&gt;
+&lt;/div&gt;</content>
+ <link href="https://btxx.org/posts/My_Text_Editor_Is_Not_Open_Source"/>
+ <id>https://btxx.org/posts/My_Text_Editor_Is_Not_Open_Source</id>
+ <updated>2024-01-02T10:00:00Z</updated>
+ <published>2024-01-02T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>New Domain and Code Forge</title>
+ <content type="html">&lt;h1 id=&quot;new-domain-and-code-forge&quot;&gt;New Domain and Code Forge&lt;/h1&gt;
+&lt;p&gt;2024-01-29&lt;/p&gt;
+&lt;p&gt;As you can clearly see, my site&amp;#8217;s domain has switched over to &lt;strong&gt;btxx.org&lt;/strong&gt;. This post will go into details about the reason for this URL swap (spoilers: I&amp;#8217;m a cheapskate) - but that isn&amp;#8217;t all. I have moved my personal git repositories over to my own hosting. I will explain the reasoning for that switch as well.&lt;/p&gt;
+&lt;p&gt;But enough introductions, let&amp;#8217;s get into it!&lt;/p&gt;
+&lt;h2 id=&quot;bt.ht-is-no-more&quot;&gt;bt.ht is No More&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve abandoned &lt;code&gt;bt.ht&lt;/code&gt;. Well, kind of. That domain doesn&amp;#8217;t expire until 2025, which works out nicely since I can keep a complete web forward active for the entire year. This will avoid such a radical switch, similar to what I did years ago with my &amp;#8220;uglyduck&amp;#8221; domain&lt;sup id=&quot;fnref1&quot;&gt;&lt;a href=&quot;#fn1&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;. Hopefully anyone who follows my dumb ramblings will have more than enough time to become familiar with the new URL.&lt;/p&gt;
+&lt;p&gt;For reference, those interested in updating their RSS will need to use the latest URLs: &lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Buggy &lt;code&gt;margin&lt;/code&gt; workaround needed&lt;/li&gt;
-&lt;li&gt;Wrapped elements cannot dynamically fill remaining empty parent space&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://btxx.org/index.rss&quot;&gt;RSS&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://btxx.org/index.atom&quot;&gt;Atom&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;flex-basis&quot;&gt;Flex-basis&lt;/h2&gt;
-&lt;p&gt;This is my personal preference for dynamically wrapping inner children elements. Simply set the parent as &lt;code&gt;display: flex&lt;/code&gt;, allow flex-wrapping and then set the &lt;code&gt;flex-basis&lt;/code&gt; of the children to any percentage value.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.flex-container {
- display: flex;
- flex-wrap: wrap;
-}
-.flex-container__item {
- flex: 1 1 auto;
- flex-basis: 33%;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;You will also notice the &lt;code&gt;flex&lt;/code&gt; property set to &lt;code&gt;1 1 auto&lt;/code&gt;. This is important if you require your wrapped elements to fill the remaining space of the parent container.&lt;/p&gt;
-&lt;h3 id=&quot;pros-1&quot;&gt;Pros&lt;/h3&gt;
+&lt;p&gt;You have roughly a year to do so, since new posts should still automatically appear even with defaulting to the older URL (hooray for 301 redirects!).&lt;/p&gt;
+&lt;p&gt;There were two core reasons for switching domains. The first was based off a change in ownership with my previous domain registrar, Gandi. You can read more details &lt;a href=&quot;https://news.ycombinator.com/item?id=35080777&quot;&gt;here&lt;/a&gt;, but they were essentially bought out, then decided to cancel their free email service and raised their prices. Not many registrars support the &lt;code&gt;.ht&lt;/code&gt; TLD, so moving to another provider was already proving to be difficult. Once my mind was made up that I didn&amp;#8217;t want to support such shady actions from a company, I thought even more about the concept of spending &lt;em&gt;so much&lt;/em&gt; on a domain name in the first place. It was a novelty to have such a &amp;#8220;short&amp;#8221; domain, but that seems silly in hindsight.&lt;/p&gt;
+&lt;p&gt;Just take a look at the differences in domain costs and email services below:&lt;/p&gt;
+&lt;table&gt;
+&lt;thead&gt;
+&lt;tr&gt;
+&lt;th&gt;URL&lt;/th&gt;
+&lt;th&gt;Domain&amp;#47;year&lt;/th&gt;
+&lt;th&gt;Email&amp;#47;year&lt;/th&gt;
+&lt;th&gt;Total&lt;/th&gt;
+&lt;/tr&gt;
+&lt;/thead&gt;
+&lt;tbody&gt;
+&lt;tr&gt;
+&lt;td&gt;bt.ht&lt;/td&gt;
+&lt;td&gt;$172&lt;/td&gt;
+&lt;td&gt;$60&lt;/td&gt;
+&lt;td&gt;$232&lt;/td&gt;
+&lt;/tr&gt;
+&lt;tr&gt;
+&lt;td&gt;btxx.org&lt;/td&gt;
+&lt;td&gt;$17&lt;/td&gt;
+&lt;td&gt;$19&lt;/td&gt;
+&lt;td&gt;$36&lt;/td&gt;
+&lt;/tr&gt;
+&lt;/tbody&gt;
+&lt;/table&gt;
+&lt;p&gt;By making this switch (for both my domain and email service) I would save a yearly total of &lt;strong&gt;$196 USD&lt;/strong&gt;. This was a no-brainer. The minute I did the math I thought, &amp;#8220;Hell, I&amp;#8217;m already moving everything to a different registrar &lt;em&gt;and&lt;/em&gt; I need to look for a separate email provider&amp;#8230;why not just start fresh with a new, &lt;em&gt;cheaper&lt;/em&gt; domain?&amp;#8221;&lt;/p&gt;
+&lt;p&gt;So that&amp;#8217;s what I&amp;#8217;ve done.&lt;/p&gt;
+&lt;h2 id=&quot;my-own-code-forge&quot;&gt;My Own Code Forge&lt;/h2&gt;
+&lt;p&gt;As some people in the open source community might already be aware, &lt;a href=&quot;https://sourcehut.org&quot;&gt;sourcehut&lt;/a&gt; had a major outage a couple weeks back. It lasted a few days and all services were impacted. This meant that all publicly hosted websites, build processes and &lt;code&gt;git&lt;/code&gt; repositories were unavailable. It was no fault of sourcehut of course, they were viciously attacked for no &lt;em&gt;real&lt;/em&gt; reason. &lt;/p&gt;
+&lt;p&gt;But this outage did get me thinking about what it means to &amp;#8220;control&amp;#8221; my own code. I always liked the idea of hosting my own git projects but relied on third-party services since they were more convenient. The problem with entrusting anything, not just code storage, to third-party services is lack of oversight. You really have no idea what is happening behind the scenes. You don&amp;#8217;t control your own backups. You don&amp;#8217;t have the freedom to tweak UI or user flow of your project views (which I understand is certainly an edge-case).&lt;/p&gt;
+&lt;p&gt;These thoughts lead me to research some &amp;#8220;self-hosted&amp;#8221; code forge options. My main contenders were:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;No buggy margins to play with&lt;/li&gt;
-&lt;li&gt;Dynamically renders children to fill parent container if &lt;code&gt;flex&lt;/code&gt; is set&lt;/li&gt;
-&lt;li&gt;Scales well across screen &amp;#47; device sizes&lt;/li&gt;
+&lt;li&gt;GitWeb&lt;/li&gt;
+&lt;li&gt;cgit&lt;/li&gt;
+&lt;li&gt;Gitea&lt;/li&gt;
&lt;/ul&gt;
-&lt;h3 id=&quot;cons-1&quot;&gt;Cons&lt;/h3&gt;
+&lt;p&gt;I&amp;#8217;ll save you the suspense: I went with cgit. Getting GitWeb configured properly was giving me a lot of issues and Gitea seemed overkill for my person needs. I host through NearlyFreeSpeech (running FreeBSD) and they had a decent tutorial for setting cgit up on their servers. I&amp;#8217;ve updated my own wiki for those interested in doing something similar: &lt;a href=&quot;/wiki/cgit&quot;&gt;read the full step-by-step instructions for setting up cgit&lt;/a&gt;.&lt;/p&gt;
+&lt;p&gt;I still need to go through most of the existing projects on sourcehut and update their READMEs and purge the contents. The last thing I want to do is have users confused about which repo is the &amp;#8220;real&amp;#8221; one.&lt;/p&gt;
+&lt;p&gt;Fore reference the my repos are now located here: &lt;a href=&quot;https://git.btxx.org&quot;&gt;git.btxx.org&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;(I plan to place this in the main navigation soon&amp;#8230;)&lt;/p&gt;
+&lt;h2 id=&quot;mirror-mirror-on-the-wall&quot;&gt;Mirror, Mirror on the Wall&amp;#8230;&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;m aware that to have extra protection from &amp;#8220;downtime&amp;#8221; that I should also mirror my code on separate forges. I plan to do this sometime in the future, but this isn&amp;#8217;t a major priority for me currently. When the time comes I&amp;#8217;ll be sure to update my repos referring to the mirrors (whatever platform that is I choose).&lt;/p&gt;
+&lt;h2 id=&quot;room-for-improvement&quot;&gt;Room for Improvement&lt;/h2&gt;
+&lt;p&gt;My code forge is far from perfect. Mobile view is lacking, there is no dark mode support and things could be slightly more intuitive. But I love it. The beauty of hosting everything on my own is that I can improve these things myself. For now, I&amp;#8217;m happy with the outcome!&lt;/p&gt;
+&lt;div class=&quot;footnotes&quot;&gt;
+&lt;hr/&gt;
+&lt;ol&gt;
+
+&lt;li id=&quot;fn1&quot;&gt;
+&lt;p&gt;Someone oddly picked up that domain and piggybacked off the back-links. They happen to also be a designer&amp;#8230;Guess the naming was that cool? &amp;#160;&lt;a href=&quot;#fnref1&quot; rev=&quot;footnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
+&lt;/li&gt;
+
+&lt;/ol&gt;
+&lt;/div&gt;</content>
+ <link href="https://btxx.org/posts/New_Domain_and_Code_Forge"/>
+ <id>https://btxx.org/posts/New_Domain_and_Code_Forge</id>
+ <updated>2024-01-29T10:00:00Z</updated>
+ <published>2024-01-29T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>OpenBSD is a Cozy Operating System</title>
+ <content type="html">&lt;h1 id=&quot;openbsd-is-a-cozy-operating-system&quot;&gt;OpenBSD is a Cozy Operating System&lt;/h1&gt;
+&lt;p&gt;2024-04-11&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/open-suck-75.png&quot; alt=&quot;Screenshot of OpenBSD 7.5 running dwm&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;OpenBSD 7.5 running dwm on my X220&lt;/em&gt;&lt;/p&gt;
+&lt;p&gt;With the recent release of OpenBSD 7.5, I decided to run through my &lt;a href=&quot;https://git.btxx.org/open-suck/about/&quot;&gt;personal OpenBSD &amp;#8220;installer&amp;#8221;&lt;/a&gt; for laptop&amp;#47;desktop devices. The project is built off of the &lt;code&gt;dwm&lt;/code&gt; tiling window manager and only installs a few basic packages. The last time I updated it was with the release of 7.3, so it&amp;#8217;s been due for an minor rework.&lt;/p&gt;
+&lt;p&gt;While making these minor changes, I remembered how incredibly easy the entire install process for OpenBSD is and how &lt;em&gt;cozy&lt;/em&gt; the entire operating system feels. All the core systems just work out the box. Yes, you need to &amp;#8220;patch&amp;#8221; in WiFi with a firmware update, so you&amp;#8217;ll need an Ethernet connection during the initial setup. Yes, the default desktop environment is not intuitive or ideal for newcomers.&lt;/p&gt;
+&lt;p&gt;But the positives heavily outweigh the negatives (in my opinion):&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Some versions of IE struggle with browser support&lt;/li&gt;
+&lt;li&gt;Incredibly secure operating system (No &lt;code&gt;xz&lt;/code&gt; drama here&amp;#8230;)&lt;/li&gt;
+&lt;li&gt;Detailed documentation. Probably one of the best of any OS&lt;/li&gt;
+&lt;li&gt;Much smaller codebase and small core team&lt;/li&gt;
+&lt;li&gt;&lt;em&gt;Complete&lt;/em&gt; operating system (kernel, userland utilities, libraries, applications combined)&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;codepen-demo&quot;&gt;CodePen Demo&lt;/h2&gt;
-&lt;p&gt;Feel free to play around with a slightly more stylized version of both options below:&lt;/p&gt;
-&lt;p&gt;CodePen Demo: Width or flex-basis&lt;/p&gt;</content>
- <link href="https://btxx.org/width-vs-flex-basis"/>
- <id>https://btxx.org/width-vs-flex-basis</id>
- <updated>2018-11-28T10:00:00Z</updated>
- <published>2018-11-28T10:00:00Z</published>
- </entry>
- <entry>
- <title>Stop Using Custom Web Fonts</title>
- <content type="html">&lt;h1 id=&quot;stop-using-custom-web-fonts&quot;&gt;Stop Using Custom Web Fonts&lt;/h1&gt;
-&lt;p&gt;2023-03-14&lt;/p&gt;
-&lt;p&gt;I recently read an excellent post by Manu Moreale titled &lt;a href=&quot;https://manuelmoreale.com/a-rant-on-web-font-licenses&quot;&gt;A rant on web font licenses&lt;/a&gt;. I highly recommend you give it a read (it&amp;#8217;s relatively short) since Manu makes a solid argument against existing font licenses. After reading, I found myself thinking about it throughout the rest of the day.&lt;/p&gt;
-&lt;p&gt;I was trying to understand how we ended up in a situation where web&amp;#47;UI designers (myself included) have started to &lt;em&gt;insist&lt;/em&gt; on using proprietary, custom web fonts. Do any users actively benefit from custom web fonts? Are there any &lt;em&gt;useful&lt;/em&gt; and &lt;em&gt;measurable&lt;/em&gt; goals achieved by including them? Do end-users actually &lt;em&gt;care&lt;/em&gt; about a website&amp;#8217;s typeface?&lt;/p&gt;
-&lt;p&gt;For the most part, I believe the answer to all those questions is: &lt;strong&gt;not really&lt;/strong&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;system-fonts-look-good&quot;&gt;System Fonts Look Good&lt;/h2&gt;
-&lt;p&gt;We are no longer in the early days of the internet. Browsers have matured. Operating systems already ship with usable and often times pretty typefaces. The &amp;#8220;wow factor&amp;#8221; of having a custom web font on a website is completely gone. Not to mention, recent trends see designers including &lt;em&gt;terrible&lt;/em&gt; typefaces that actually make things more difficult to read and break basic accessibility.&lt;/p&gt;
-&lt;p&gt;All of this for the sake of a company&amp;#8217;s &amp;#8220;brand&amp;#8221;. I say: &lt;strong&gt;fuck your brand&lt;/strong&gt;. Your end-users should always trump your design &amp;#8220;guidelines&amp;#8221;. Period.&lt;/p&gt;
-&lt;h2 id=&quot;think-of-the-consistency&quot;&gt;&amp;#8220;Think of the Consistency!&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;Often times designers will argue that designs will look too different across browsers&amp;#47;operating systems. I&amp;#8217;m not sure why this is seen as a bad thing. First, users will be familiar with the fonts already available to them. Second, as designers our work should never rely on one point of failure (in this instance: fonts). Your designs should be agnostic of your typeface selection. &lt;/p&gt;
-&lt;p&gt;And what about users with browser extensions that already block your custom web fonts? Screw them I guess?&lt;/p&gt;
-&lt;p&gt;People work on different systems with different constraints and settings. Embrace that - don&amp;#8217;t try to override it.&lt;/p&gt;
-&lt;h2 id=&quot;loss-of-personality&quot;&gt;Loss of Personality&lt;/h2&gt;
-&lt;p&gt;The web is not the same medium as graphic design. Digital designers often get this confused. Web applications serve an action or purpose. The user wants to complete a &lt;em&gt;task&lt;/em&gt; - not look at a pretty poster. I understand this sounds harsh, but many designers design more for their own ego and portfolio rather than the end-user. That extra &lt;em&gt;flair&lt;/em&gt; on your lowercase &amp;#8220;t&amp;#8221; doesn&amp;#8217;t help the user better interact with your features or UI. It just slows them down.&lt;/p&gt;
-&lt;h2 id=&quot;hurting-performance-wasting-resources&quot;&gt;Hurting Performance &amp;#38; Wasting Resources&lt;/h2&gt;
-&lt;p&gt;A lot of designers I&amp;#8217;ve worked with or talked to in the past tend to be big supporters of reducing their carbon footprint and minimizing their individual output of &amp;#8220;waste&amp;#8221;. What I always find interesting is how that never seems to translate into their work.&lt;/p&gt;
-&lt;p&gt;It might be small in the grand scheme of things, but having an extra HTTP request (or more) for your custom fonts and requiring your users to consume more bandwidth on their end is not &amp;#8220;eco&amp;#8221;. As designers we should cut the fat and reduce software bloat in the small areas that we&amp;#8217;re able to: the front end.&lt;/p&gt;
-&lt;p&gt;My hope is that even one designer reading this decides to rollout a web app or marketing page without dumping a bunch of custom fonts on their users. It&amp;#8217;s just the &lt;em&gt;nice&lt;/em&gt; thing to do.&lt;/p&gt;</content>
- <link href="https://btxx.org/webfonts"/>
- <id>https://btxx.org/webfonts</id>
- <updated>2023-03-14T10:00:00Z</updated>
- <published>2023-03-14T10:00:00Z</published>
- </entry>
- <entry>
- <title>Running VSCode in Chromium on OpenBSD</title>
- <content type="html">&lt;h1 id=&quot;running-vscode-in-chromium-on-openbsd&quot;&gt;Running VSCode in Chromium on OpenBSD&lt;/h1&gt;
-&lt;p&gt;2023-06-05&lt;/p&gt;
-&lt;p&gt;VSCode and its many variations are not available on OpenBSD. This doesn&amp;#8217;t cause issue with many OpenBSD users, but those making the jump from Linux might miss access to such a popular editor. Lucky for us, there is a &lt;em&gt;hacky&lt;/em&gt; workaround to solve this problem.&lt;/p&gt;
-&lt;h2 id=&quot;vscode-in-the-browser&quot;&gt;VSCode in the Browser&lt;/h2&gt;
-&lt;p&gt;I tried my best to build something like &lt;code&gt;code-server&lt;/code&gt; locally and run that directly in my browser - but I failed miserably. Instead, I fell back on &lt;a href=&quot;https://vscode.dev&quot;&gt;vscode.dev&lt;/a&gt; which is essentially a remote version of &lt;code&gt;code-server&lt;/code&gt;.&lt;/p&gt;
-&lt;p&gt;Getting things to work seamlessly proved a little more challenging. I found the best performance was running everything through Chromium with special parameters enabled on launch.&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The following assumes you have already installed &lt;code&gt;chromium&lt;/code&gt;&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;First we need to disable &lt;a href=&quot;https://man.openbsd.org/unveil.2&quot;&gt;unveil&lt;/a&gt; for Chromium. This will allow us to access our system files through &lt;a href=&quot;https://vscode.dev&quot;&gt;vscode.dev&lt;/a&gt; using the &amp;#8220;Open folder&amp;#8230;&amp;#8221; or &amp;#8220;Open file&amp;#8230;&amp;#8221; commands without issue:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;chrome --disable-unveil
+&lt;p&gt;These points might not seem important to others, but they are to me. Maybe you&amp;#8217;re possibly interested in checking it out yourself? If you are, then read on&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;try-it-yourself&quot;&gt;Try it Yourself!&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve tried my best to write up a simplified, noob-friendly guide on both setting up the core OpenBSD system, along with installing a simple &lt;code&gt;dwm&lt;/code&gt; based desktop environment. These are both focused on personal devices (laptops&amp;#47;computers), so if you&amp;#8217;re looking for server-specific setups you won&amp;#8217;t find that here!&lt;/p&gt;
+&lt;p&gt;You can find both of those wiki-pages below:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;a href=&quot;https://btxx.org/wiki/openbsd/installation/&quot;&gt;Installing OpenBSD&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://btxx.org/wiki/openbsd/desktop_environment/&quot;&gt;Setting up a Desktop Environment for OpenBSD&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Some additional reading I highly recommend is: &lt;a href=&quot;https://www.c0ffee.net/blog/openbsd-on-a-laptop&quot;&gt;c0ffee.net&amp;#47;blog&amp;#47;openbsd-on-a-laptop&lt;/a&gt;&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/OpenBSD_is_a_Cozy_Operating_System"/>
+ <id>https://btxx.org/posts/OpenBSD_is_a_Cozy_Operating_System</id>
+ <updated>2024-04-11T10:00:00Z</updated>
+ <published>2024-04-11T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Please Make Your Table Headings Sticky</title>
+ <content type="html">&lt;h1 id=&quot;please-make-your-table-headings-sticky&quot;&gt;Please Make Your Table Headings Sticky&lt;/h1&gt;
+&lt;p&gt;2024-02-23&lt;/p&gt;
+&lt;p&gt;I often stumble upon large data sets or table layouts across the web. When these tables contain hundreds of rows of content, things become problematic once you start to scroll&amp;#8230;&lt;/p&gt;
+&lt;p&gt;Your browser does not support the video tag.
+&lt;/p&gt;
+&lt;p&gt;Look at that table header disappear! Now, if I scroll all the way down to item #300 (for example) will I remember what each column&amp;#8217;s data is associated with? If this is my first time looking at this table - probably not. Luckily we can fix this (no pun intended!) with a tiny amount of CSS.&lt;/p&gt;
+&lt;h2 id=&quot;sticky-header&quot;&gt;Sticky Header&lt;/h2&gt;
+&lt;p&gt;Check it out:&lt;/p&gt;
+&lt;p&gt;Your browser does not support the video tag.
+&lt;/p&gt;
+&lt;p&gt;Pretty awesome, right? It might look like magic but it&amp;#8217;s actually very easy to implement. You only need to add 2 CSS properties on your &lt;code&gt;thead&lt;/code&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;position: sticky;
+top: 0;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Everything should work pretty solid right out the box now - except it doesn&amp;#8217;t. Syntax highlighting does not work without enabling WASM&amp;#47;WebAssembly. Your experience might be different, but I had to include the following when launching Chromium from the terminal:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;ENABLE_WASM=1 chrome --enable-wasm
+&lt;p&gt;That&amp;#8217;s it! Best of all, &lt;code&gt;sticky&lt;/code&gt; has &lt;a href=&quot;https://caniuse.com/?search=sticky&quot;&gt;~96% global support&lt;/a&gt; which means this isn&amp;#8217;t some &amp;#8220;bleeding-edge&amp;#8221; property and can safely support a ton of browsers. Not to mention the improved experience for your end-users!&lt;/p&gt;
+&lt;p&gt;You can view a live demo of this table on the &lt;a href=&quot;https://codepen.io/bradleytaunt/pen/bGZyJBj&quot;&gt;CodePen example pen&lt;/a&gt;.&lt;/p&gt;
+&lt;p&gt;If you found this interesting, feel free to check out my other table-focused post: &lt;a href=&quot;https://btxx.org/posts/tables/&quot;&gt;Making Tables Responsive With Minimal CSS&lt;/a&gt;&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/Please_Make_Your_Table_Headings_Sticky"/>
+ <id>https://btxx.org/posts/Please_Make_Your_Table_Headings_Sticky</id>
+ <updated>2024-02-23T10:00:00Z</updated>
+ <published>2024-02-23T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Switching Things Over to ikiwiki</title>
+ <content type="html">&lt;h1 id=&quot;switching-things-over-to-ikiwiki&quot;&gt;Switching Things Over to ikiwiki&lt;/h1&gt;
+&lt;p&gt;2023-12-17&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ve done it again. My personal website is no longer generated with &lt;a href=&quot;https://barf.btxx.org&quot;&gt;barf&lt;/a&gt; but is instead built on top of ikiwiki. The old RSS feed (&lt;a href=&quot;https://btxx.org/atom.xml&quot;&gt;btxx.org&amp;#47;atom.xml&lt;/a&gt;) still exists but will no longer receive updates. The new feed can be found on the bottom of the homepage (&lt;a href=&quot;/index.rss&quot;&gt;index.rss&lt;/a&gt;)&lt;/p&gt;
+&lt;h2 id=&quot;why-a-wiki&quot;&gt;Why a Wiki?&lt;/h2&gt;
+&lt;p&gt;I love the simplicity of a minimal blog, which is why I always gravitated towards purely &amp;#8220;static&amp;#8221; site builders. Over time though, I found two minor issues that slowly chipped away at me: ease-of-use and flexibility.&lt;/p&gt;
+&lt;p&gt;I had a vision, back when I began tinkering with my own place on the web, of building out my own personal &amp;#8220;resource center&amp;#8221; or wiki. Often times through work or personal projects I stumble into little problems that I need to solve. Most times I find a solution and move on with my life. The problem with this approach is &lt;em&gt;lack of documentation&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;What if I come across that issue at a later point in time? Will I even remember my old solution? Probably not. So, I&amp;#8217;ve made the switch to a more flexible, personal wiki (which also happens to be a blog!)&lt;/p&gt;
+&lt;h2 id=&quot;text-editors-terminals-and-web-ui---oh-my&quot;&gt;Text Editors, Terminals, and Web UI - Oh My!&lt;/h2&gt;
+&lt;p&gt;ikiwiki comes packed with multiple ways to publish pages and posts. Since it is built with ikiwiki and git version control in mind, you have the ability to push out changes directly to your server similar to that of pre-existing static site generators. It also gives you the choice to &lt;code&gt;ssh&lt;/code&gt; directly into your server and publish content from your terminal if you so desire.&lt;/p&gt;
+&lt;p&gt;Best of all, ikiwiki offers a web UI interface. This is something I have long missed since leaving &amp;#8220;dynamic&amp;#8221; websites behind.&lt;/p&gt;
+&lt;h2 id=&quot;but-wait-theres-more&quot;&gt;But Wait, There&amp;#8217;s More!&lt;/h2&gt;
+&lt;p&gt;Did I mention that this site now supports a built-in search form &lt;em&gt;and&lt;/em&gt; a comment system? I&amp;#8217;ve been wanting comments or discussions directly on my personal web space for the longest time and now I do! The search function is really an added bonus, mostly for my own personal use to find something I documented quickly.&lt;/p&gt;
+&lt;h2 id=&quot;broken-links-and-bugs&quot;&gt;Broken Links and Bugs&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve done my best to properly forward all original posts and pages to their new URLs - but I&amp;#8217;m sure some things will be overlooked. So please feel free to reach out and let me know if anything seems broken.&lt;/p&gt;
+&lt;p&gt;I look forward to growing out this &amp;#8220;platform&amp;#8221; and seeing how it impacts my workflow writing documentation &amp;#47; blog posts. I hope you&amp;#8217;ll come along for the ride!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/Switching_Things_Over_to_ikiwiki"/>
+ <id>https://btxx.org/posts/Switching_Things_Over_to_ikiwiki</id>
+ <updated>2023-12-17T10:00:00Z</updated>
+ <published>2023-12-17T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Website Backups with Apple iCloud</title>
+ <content type="html">&lt;h1 id=&quot;website-backups-with-apple-icloud&quot;&gt;Website Backups with Apple iCloud&lt;/h1&gt;
+&lt;p&gt;2024-02-16&lt;/p&gt;
+&lt;p&gt;My main work machine, an M2 MacBook Air, meshes really well with my iPhone SE (they are in the same ecosystem after all - duh!). Since both of these devices are Apple products, it makes sense that I pay for the optional iCloud service for extra storage. 50GB to be exact. I only need to bare minimum which costs just $1.68 a month, making this storage option cheaper than most cups of coffee these days.&lt;/p&gt;
+&lt;p&gt;Recently I&amp;#8217;ve been using iCloud as my &amp;#8220;middle-man&amp;#8221; backup system. I still have local, offline storage for most personal data but having additional off-site backups is never a bad thing. I make things easier for myself by taking advantage of &lt;code&gt;rsync&lt;/code&gt;. You&amp;#8217;ll need to make sure you have that program installed before trying this yourself:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;# This assumes you have homebrew installed first
+brew install rsync
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Success! We can avoid typing out these complex commands everytime we want to launch our editor by setting up an &lt;code&gt;alias&lt;/code&gt; (in my case via &lt;code&gt;.zshrc&lt;/code&gt;):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;alias vscode=&quot;ENABLE_WASM=1 chrome --enable-wasm --disable-unveil&quot;
+&lt;p&gt;Then, whenever I feel like backing up an existing project or website I simply run:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;rsync -a user_name@ssh.webserver.domain:&amp;#47;home&amp;#47;var&amp;#47;www&amp;#47; &amp;#47;Users&amp;#47;username&amp;#47;Library&amp;#47;Mobile\ Documents&amp;#47;com\~apple\~CloudDocs&amp;#47;Backups&amp;#47;site-backup
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it! Now I can just pop open VSCode on OpenBSD by simply running &lt;code&gt;vscode&lt;/code&gt; in my terminal. Hopefully this can help others slowly transition over to OpenBSD - which you should do because it is amazing!&lt;/p&gt;</content>
- <link href="https://btxx.org/vscode"/>
- <id>https://btxx.org/vscode</id>
- <updated>2023-06-05T10:00:00Z</updated>
- <published>2023-06-05T10:00:00Z</published>
- </entry>
- <entry>
- <title>Using User-Select</title>
- <content type="html">&lt;h1 id=&quot;using-user-select&quot;&gt;Using User-Select&lt;/h1&gt;
-&lt;p&gt;2019-06-04&lt;/p&gt;
-&lt;p&gt;Highlighting text in order to copy, cut or paste content is a staple action across the web. Now, what if I told you the ability to control what a user can select is configurable with a single CSS property?&lt;/p&gt;
-&lt;h2 id=&quot;introducing-the-css-property&quot;&gt;Introducing the CSS property&lt;/h2&gt;
-&lt;p&gt;Simply put, the &lt;code&gt;user-select&lt;/code&gt; property is defined as follows:&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;&lt;code&gt;user-select&lt;/code&gt; controls whether the user can select text (cursor or otherwise)&lt;/p&gt;
+&lt;p&gt;Note: The &lt;code&gt;-a&lt;/code&gt; option tells &lt;code&gt;rsync&lt;/code&gt; to sync directories recursively, transfer special and block devices, preserve symbolic links, modification times, groups, ownership, and permissions.&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;The property&amp;#8217;s available attributes are very straightforward (just remember to target specific browsers for full support!)&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Default *&amp;#47;
-p.default {
- user-select: auto;
- -moz-user-select: auto;
- -webkit-user-select: auto;
-}
-
-&amp;#47;* Disable the user from selecting text *&amp;#47;
-p.no-select {
- user-select: none;
- -moz-user-select: none;
- -webkit-user-select: none;
-}
-
-&amp;#47;* Select all text when user clicks *&amp;#47;
-p.select-all {
- user-select: all;
- -moz-user-select: all;
- -webkit-user-select: all;
-}
+&lt;p&gt;The beautiful magic of &lt;code&gt;rsync&lt;/code&gt;! Obviously, you&amp;#8217;d want to properly name your directories (ie. &lt;code&gt;&amp;#47;Backups&amp;#47;site-backup&lt;/code&gt;) for a cleaner structure and ensure that your iCloud directory is set correctly. (remember to read code before just copy-pasting!). With this approach you can backup entire server directories or be specific with each individual project folder. I would also recommend setting up some alias in your &lt;code&gt;.bashrc&lt;/code&gt; or &lt;code&gt;.zshrc&lt;/code&gt; etc. to make things more streamlined when running backups manually:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;alias site-backup=&quot;rsync -a user_name@ssh.webserver.domain:&amp;#47;home&amp;#47;var&amp;#47;www&amp;#47; &amp;#47;Users&amp;#47;username&amp;#47;Library&amp;#47;Mobile\ Documents&amp;#47;com\~apple\~CloudDocs&amp;#47;Backups&amp;#47;site-backup&quot;
+# Then you simply run the following for a manual backup:
+site-backup
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;lets-see-it-in-action&quot;&gt;Let&amp;#8217;s see it in action&lt;/h2&gt;
-&lt;p&gt;Try selecting the separate paragraph elements in the CodePen below:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/QRooZp/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;browser-support&quot;&gt;Browser Support&lt;/h2&gt;
-&lt;p&gt;The great news is &lt;code&gt;user-select&lt;/code&gt; is fully supported across all modern browsers (even as far back as IE10!)&lt;/p&gt;</content>
- <link href="https://btxx.org/user-select"/>
- <id>https://btxx.org/user-select</id>
- <updated>2019-06-04T10:00:00Z</updated>
- <published>2019-06-04T10:00:00Z</published>
- </entry>
- <entry>
- <title>Icons Should be Complementary - Text is Always Better</title>
- <content type="html">&lt;h1 id=&quot;icons-should-be-complementary---text-is-always-better&quot;&gt;Icons Should be Complementary - Text is Always Better&lt;/h1&gt;
-&lt;p&gt;2021-12-17&lt;/p&gt;
-&lt;p&gt;Designing[^1] software is a complex thing. A great deal of real-world testing and user feedback is needed to create the best solution to the problem you are trying to fix. Obvious requirements are to keep things simple, make it easy to understand by &lt;em&gt;looking&lt;/em&gt; at it, and build it to be headache-resistant for future updates. All these things are easier said than done. This is the challenge of a designer&amp;#8217;s dat-to-day.&lt;/p&gt;
-&lt;p&gt;But with this term of &amp;#8220;simplicity&amp;#8221; modern designers tend to take this approach too much to heart. In my 12+ years involved in UI&amp;#47;UX software design, I have lost count how many initial iterations of interfaces suffer from the same &amp;#8220;dumbing down&amp;#8221; decision making:&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Using icons to represent an action or function without textual information&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;If you decide to stop reading the rest of this article, at least take away this one important thing:&lt;/p&gt;
+&lt;p&gt;You can take this further by automating things via cron jobs, but for my use case that is a little overkill. Hopefully this helps anyone looking for a quick and dirty backup system, especially one that can piggyback of your existing iCloud that you might be paying for already.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/Website_Backups_with_Apple_iCloud"/>
+ <id>https://btxx.org/posts/Website_Backups_with_Apple_iCloud</id>
+ <updated>2024-02-16T10:00:00Z</updated>
+ <published>2024-02-16T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Setting Up AdGuard Home with Eero</title>
+ <content type="html">&lt;h1 id=&quot;setting-up-adguard-home-with-eero&quot;&gt;Setting Up AdGuard Home with Eero&lt;/h1&gt;
+&lt;p&gt;2022-11-04&lt;/p&gt;
+&lt;p&gt;Eariler this year I posted &lt;a href=&quot;/eero&quot;&gt;detailed instructions on setting up Pi-Hole with Eero&lt;/a&gt; and it seemed to help out a few people having troubles. With AdGuard Home recently popping up on the &lt;a href=&quot;https://news.ycombinator.com/item?id=33387678&quot;&gt;frontpage of HackerNews&lt;/a&gt;, I thought now would be a great time to post instructions of setting up &lt;em&gt;that&lt;/em&gt; service alongside Eero devices.&lt;/p&gt;
+&lt;h2 id=&quot;what-youll-need&quot;&gt;What You&amp;#8217;ll Need&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;Raspberry Pi device (I recommend the Pi Zero for simplicity and low cost)&lt;/li&gt;
+&lt;li&gt;microSD card&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://www.raspberrypi.com/software/&quot;&gt;Raspberry Pi Imager&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;micro USB to ethernet adapter (check your local Amazon)&lt;/li&gt;
+&lt;li&gt;Patience!&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;setting-up-the-raspberry-pi&quot;&gt;Setting Up the Raspberry Pi&lt;/h2&gt;
+&lt;p&gt;The first thing we need to do is flash Raspberry Pi &lt;strong&gt;Lite&lt;/strong&gt; onto our SD card. Open Raspberry Pi Imager, select the &lt;strong&gt;Lite&lt;/strong&gt; version of the OS and your respective media (the SD card):&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/rpi-lite-os.webp&quot; alt=&quot;Raspberry Pi Lite&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;Don&amp;#8217;t flash anything just yet! Be sure to use the gear icon and edit the settings. Set a custom hostname, enable &lt;code&gt;ssh&lt;/code&gt; and setup a proper user:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/rpi-adguard-1.webp&quot; alt=&quot;Imager settings&quot; /&gt;&lt;/p&gt;
+&lt;h2 id=&quot;plug-it-in-and-boot&quot;&gt;Plug it in and Boot!&lt;/h2&gt;
+&lt;p&gt;Put the SD card into your Pi, connect power and ethernet. Give it a bit of time to boot up. Once you see a nice solid green LED, go back to your local computer&amp;#8217;s terminal and enter the following command:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;ssh piguard@piguard.local
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;If everything was set up properly you will be asked to trust this device. Next, you will be prompted to enter the device password you setup.&lt;/p&gt;
+&lt;p&gt;Once you are connected directly to the Pi, it&amp;#8217;s best to check for updates:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo apt update
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;&amp;#8230;and if updates are in fact available, install them via:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo apt upgrade
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;installing-adguard-home&quot;&gt;Installing AdGuard Home&lt;/h2&gt;
+&lt;p&gt;Simply run the automated installer:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;curl -s -S -L https:&amp;#47;&amp;#47;raw.githubusercontent.com&amp;#47;AdguardTeam&amp;#47;AdGuardHome&amp;#47;master&amp;#47;scripts&amp;#47;install.sh | sh -s -- -v
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Follow the instructions and you&amp;#8217;ll be setup in no time! To view your AdGuard dashboard at any time, you can now simply navigate to &lt;code&gt;piguard.local&lt;/code&gt;.&lt;/p&gt;
+&lt;p&gt;If you run into any issues, I strongly suggest &lt;a href=&quot;https://github.com/AdguardTeam/AdGuardHome#getting-started&quot;&gt;reading through the &amp;#8220;Getting Started&amp;#8221; guide&lt;/a&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;configuring-the-eero-app&quot;&gt;Configuring the Eero App&lt;/h2&gt;
+&lt;p&gt;Once your AdGuard Home server is installed and running, you can finally point your Eero network at it.&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Open the Eero app (iOS or Android)&lt;/li&gt;
+&lt;li&gt;Navigate to &lt;strong&gt;Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Network Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;DNS&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Select &lt;strong&gt;Customized DNS&lt;/strong&gt; and enter both your saved IPv4 &amp;#47; IPv6 values (These can be found under the &lt;code&gt;Setup Guide&lt;/code&gt; tab in the main AdGuard Dashboard)&lt;/li&gt;
+&lt;li&gt;Eero will prompt you to reboot your network - do it&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;After the system reboots everything &lt;em&gt;should&lt;/em&gt; be working as intended!&lt;/p&gt;
+&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve personally switched over from Pi-Hole to AdGuard Home - it just feels more robust and the UI is significantly cleaner. Hopefully this helps others trying to do the same!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/adguard"/>
+ <id>https://btxx.org/posts/adguard</id>
+ <updated>2022-11-04T10:00:00Z</updated>
+ <published>2022-11-04T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Avoiding Featurism</title>
+ <content type="html">&lt;h1 id=&quot;avoiding-featurism&quot;&gt;Avoiding Featurism&lt;/h1&gt;
+&lt;p&gt;2022-10-14&lt;/p&gt;
+&lt;p&gt;I rather enjoy the term &amp;#8220;featurism&amp;#8221;. I came across this term while reading the wonderful article &lt;a href=&quot;https://www.complang.tuwien.ac.at/anton/why-ancient-browsers.html&quot;&gt;Why I don&amp;#8217;t use Netscape&lt;/a&gt;, which the author credits to Bernd Paysan. Although it sums up the current &amp;#8220;digital product&amp;#8221; industry quite well the more specific terminology, &lt;em&gt;creeping featurism&lt;/em&gt;, works better:&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;&lt;em&gt;Always try to use text to convey your designs&lt;/em&gt;&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;creeping featurism&lt;/strong&gt; (&lt;em&gt;noun&lt;/em&gt;)&lt;/p&gt;
+&lt;p&gt;A condition in which one or more people, often in the form of a committee, progressively increase the scope and complexity of a project until the project is deemed infeasible and subsequently cancelled to the detriment of all involved.&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;p&gt;After achieving this, you should start reiterating those designs to include iconography. Even then, not all UI instances will require you to do that. Designers will find this process difficult, which is why it is important to get &lt;em&gt;right&lt;/em&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;icons-make-an-ass-out-of-u-and-me&quot;&gt;Icons make an &lt;em&gt;ass&lt;/em&gt; out of &lt;em&gt;u&lt;/em&gt; and &lt;em&gt;me&lt;/em&gt;&lt;/h2&gt;
-&lt;p&gt;Icons make general assumptions about what the user may or may not understand. Leading with this in your designs will end &lt;em&gt;poorly for you&lt;/em&gt;. Trust me - I&amp;#8217;ve learned this through failed designs many times over. A certain visualization might be common knowledge to you, while differing greatly to someone else with a different set of experiences.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ve found the only thing you should ever &lt;em&gt;assume&lt;/em&gt; is that the user knows nothing. Please note - I&amp;#8217;m not referring to their intelligence but instead their software literacy.&lt;/p&gt;
-&lt;p&gt;Take a look at our now &amp;#8220;famous&amp;#8221; save icon used in almost every piece of software; the floppy disk. Do any software users below the legal drinking age even understand the initial reasoning for using this icon? In all honesty, it was a terrible icon decision even when first introduced. No &amp;#8220;hard copy&amp;#8221; of the save action is taking place, software creates this save in a digital space[^2]. Yet, it was adopted and people (ie. designers) went along with it.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Quality is not measured by mass appeal.&lt;/strong&gt;&lt;/p&gt;
-&lt;p&gt;The argument could be made &amp;#8220;People learned to associate &amp;#8220;Save&amp;#8221; with a Floppy Disk icon&amp;#8230;&amp;#8221; and my response would be &amp;#8220;But what alternatives were they given?&amp;#8221;&lt;/p&gt;
-&lt;p&gt;Original software designers (and developers) held all the power in early UI decision making. General users didn&amp;#8217;t &lt;em&gt;know&lt;/em&gt; any better. Things were new and fresh. Now our response is to shrug our collective shoulders and say, &amp;#8220;That&amp;#8217;s how the save icon has to be now!&amp;#8221;&lt;/p&gt;
-&lt;p&gt;Hogwash. Make it a button that says, &lt;code&gt;Save File&lt;/code&gt;. I&amp;#8217;m not kidding. Oh, it doesn&amp;#8217;t work with your current design? Then your initial design wasn&amp;#8217;t future-proof then, was it? I sound snarky here but many designers put up imaginary walls around their design systems, making them incredibly rigid and difficult to adapt.&lt;/p&gt;
-&lt;p&gt;Take the time to do even a small thought &amp;#47; wireframe experiment: redo the layout and flow of your application without using a single piece of iconography. If you can&amp;#8217;t achieve this with even limited success, something is wrong with the design.&lt;/p&gt;
-&lt;h2 id=&quot;the-hamburger-menu-is-the-7th-circle-of-hell&quot;&gt;The hamburger menu is the 7th circle of Hell&lt;/h2&gt;
-&lt;p&gt;Normally, the inclusion of a hamburger menu is indicative of an overly complex application. Too many cooks and all that jazz. Enterprise applications don&amp;#8217;t get a pass here either, as they tend to be the worst culprits of pouring out everything on to the user as software vomit. Sweeping all this interaction under the hamburger &amp;#8220;rug&amp;#8221; does not make for a cleaner design.&lt;/p&gt;
-&lt;p&gt;New features are great, but stop dumping so much of it behind hidden, unintuitive sub-navigation. This design is such a &amp;#8220;quick fix&amp;#8221; and plagues far too many software apps[^3]. Both desktop computers and mobile devices allow users to &lt;em&gt;scroll&lt;/em&gt;, let them.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ve discussed this in further detail here: &lt;a href=&quot;https://bt.ht/hamburger-menu-alternative/&quot;&gt;Using Hamburger Menus? Try Sausage Links&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;but-what-of-the-advanced-users&quot;&gt;But what of the &amp;#8220;advanced&amp;#8221; users?&lt;/h2&gt;
-&lt;p&gt;I understand applications will have advanced or &amp;#8220;pro&amp;#8221; users that have full knowledge of the product and wouldn&amp;#8217;t need things &lt;em&gt;spoon fed&lt;/em&gt; to them. This is a more difficult problem that I myself haven&amp;#8217;t been able to solve without approaching each one on a case-by-case basis. Unfortunately, there is no &amp;#8220;one size fits all&amp;#8221; method to this. But, although solving for advanced users proves difficult doesn&amp;#8217;t mean we should dismiss the merits of avoiding icons as a crutch.&lt;/p&gt;
-&lt;h2 id=&quot;try-for-yourself&quot;&gt;Try for yourself&lt;/h2&gt;
-&lt;p&gt;As I stated above, try doing a quick design experiment by replacing all your existing iconography in your application with simple text. I assure you that at least you&amp;#8217;ll discover interesting design flaws in your system.&lt;/p&gt;
+&lt;p&gt;Throughout my career of designing and developing software I have run into this exact issue far too often. The major issue with getting sucked into a black-hole of &amp;#8220;featurism&amp;#8221; is there is no single person to blame. It probably seems easy to place all the responsibility on PMs or team leaders, but even &lt;em&gt;if&lt;/em&gt; they are the ones adding excessive complexity to a given project, it is the role of developers and designers to speak up. It requires a team effort. Therefore, the &lt;em&gt;whole team&lt;/em&gt; needs to be on-guard to avoid it.&lt;/p&gt;
+&lt;h3 id=&quot;simple-guidelines&quot;&gt;Simple Guidelines&lt;/h3&gt;
+&lt;p&gt;These &amp;#8220;tips&amp;#8221; are not perfect, nor will they work for every work environment. Hopefully they can at least be used as basic guidelines and expanded upon from there.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Explore the feature&amp;#8217;s &lt;em&gt;benefit&lt;/em&gt; to the product. You need to confirm that this addition will be a net-positive for both customers and your bottom-line.&lt;/li&gt;
+&lt;li&gt;All team members assigned to a feature need to scope it out. Far too often I see feature sets that require design input being estimated solely by developers and vice versa.&lt;/li&gt;
+&lt;li&gt;Radically limit the scope of each individual task[^1]. Each task should be clear-cut, bite-sized and look almost trivial.&lt;/li&gt;
+&lt;li&gt;Lock-in tickets. Once they are agreed upon they &lt;strong&gt;cannot&lt;/strong&gt; be altered[^2]. Anything that absolutely &lt;em&gt;needs&lt;/em&gt; to be added should become a future ticket itself.&lt;/li&gt;
+&lt;li&gt;Follow-up with feature reviews. When a sprint or milestone is reached, it is important to reflect on what worked and what didn&amp;#8217;t. Call out any instances where the team steered away from the guidelines above.&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;That&amp;#8217;s it. Just a nice, simple baseline to branch off from to avoid &amp;#8220;featurism&amp;#8221;. Some items listed won&amp;#8217;t make sense for certain teams and that&amp;#8217;s okay. If you take the time to at least reflect on your feature workflow, I guarantee you&amp;#8217;ll find areas to improve.&lt;/p&gt;
+&lt;p&gt;Creeping featurism can kill your product and the morale of your team. Avoid it like the plague!&lt;/p&gt;
&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;By &amp;#8220;design&amp;#8221; I&amp;#8217;m referring to visuals not programming or system engineering&lt;/li&gt;
-&lt;li&gt;Early software programs did save to an external floppy disk. My point stands that many digital file storage applications copied this iconography blindly.&lt;/li&gt;
-&lt;li&gt;Not to mention how rampant it is on plain ol&amp;#8217; regular websites. If you&amp;#8217;re hiding five menu items behind a hamburger menu for &amp;#8220;mobile users&amp;#8221;, you&amp;#8217;re doing it wrong.&lt;/li&gt;
+&lt;li&gt;This is easier said than done. Normally you will need to have developed some form of &amp;#8220;point system&amp;#8221; internally, so you know how to effectively divide features.&lt;/li&gt;
+&lt;li&gt;&lt;em&gt;Taking away&lt;/em&gt; complexity, making changes that do not impact workload or reducing the ticket is fine - within reason.&lt;/li&gt;
&lt;/ol&gt;</content>
- <link href="https://btxx.org/use-text-not-icons"/>
- <id>https://btxx.org/use-text-not-icons</id>
- <updated>2021-12-17T10:00:00Z</updated>
- <published>2021-12-17T10:00:00Z</published>
- </entry>
- <entry>
- <title>They Won't Wait: A Warning for Slow Websites</title>
- <content type="html">&lt;h1 id=&quot;they-wont-wait-a-warning-for-slow-websites&quot;&gt;They Won&amp;#8217;t Wait: A Warning for Slow Websites&lt;/h1&gt;
-&lt;p&gt;2019-06-25&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;Your website is probably slow&lt;/em&gt;. I&amp;#8217;m not trying to make you feel bad or dismiss all the hard work you&amp;#8217;ve put into your project. Heck, performance might have been a core value of the design. But websites can always be faster.&lt;/p&gt;
-&lt;p&gt;People have become increasingly more impatient over the last decade when it comes to technology, specifically non-native web-based interactions. Users expect your website to load almost instantly or they will leave and try another site, probably one of your competitors. Why should they stick around if your competitors&amp;#8217; websites load half a second faster?&lt;/p&gt;
-&lt;p&gt;Users are tired of being bombarded with tracking scripts, having to download massive component libraries, forced to deal with &amp;#8220;accept cookies&amp;#8221; prompts, playing a small mini-game of &amp;#8220;close those ads!&amp;#8221;, and then being subjected to never-ending loading screens. This is not the internet we were promised.&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;It&amp;#8217;s in my nature, I always liked &lt;strong&gt;speed&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;- Guy Lafleur&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;h2 id=&quot;we-can-do-better&quot;&gt;We can do better&lt;/h2&gt;
-&lt;p&gt;If there is only one thing that you learn from this post, hopefully it&amp;#8217;s knowing to better value the &lt;strong&gt;time and money of your users&lt;/strong&gt;. It&amp;#8217;s a user&amp;#8217;s &lt;em&gt;choice&lt;/em&gt; to visit your website, so taking advantage of their time is extremely careless. Don&amp;#8217;t be arrogant and ignore the cost of data on most mobile plans either. Eating up a chunk of someone&amp;#8217;s data just for hitting your website is rage-inducing. That&amp;#8217;s how you can lose customers permanently.&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s do an analogy, because &lt;strong&gt;I love stupid analogies&lt;/strong&gt;:&lt;/p&gt;
-&lt;p&gt;Imagine going to your local hardware store because you need to buy a new hammer. Once you get to the entrance a woman holds the the door closed and asks you if it&amp;#8217;s alright for someone to follow you around the store today. You say no. She then follows up by asking if you accept their hardware store agreement before proceeding inside - you tell her &amp;#8220;sure&amp;#8221;. She finally opens the door and lets you in. As you walk into the store she quickly stuffs a few advertisements for other local businesses into you hand. &amp;#8220;Thanks&amp;#8221;, you mutter.&lt;/p&gt;
-&lt;p&gt;Once inside you realize the hardware store is &lt;em&gt;very big&lt;/em&gt; and manually looking for a hammer might take a while. You walk up to the front desk to ask where you can find a hammer but notice the cashier is playing with their phone behind the counter. You try to get their attention but they simply raise their hand and shout &amp;#8220;Be with you in a minute&amp;#8221;. After a short while they get off their phone and &lt;em&gt;finally&lt;/em&gt; listen to your question. They then tell you where to find the hammers.&lt;/p&gt;
-&lt;p&gt;Does this sound like a &lt;em&gt;fast&lt;/em&gt; and easy experience?&lt;/p&gt;
-&lt;p&gt;As silly as this hypothetical trip to the hardware store might be, it&amp;#8217;s exactly what many current websites are putting their users through. Users - read &lt;em&gt;customers&lt;/em&gt; - are coming to your website with a specific goal in mind; checking out a product, consuming information or just satisfying their curiosity. Stop putting so many blockers and excessive bloat in front of them.&lt;/p&gt;
-&lt;h2 id=&quot;data-doesnt-lie&quot;&gt;Data doesn&amp;#8217;t lie&lt;/h2&gt;
-&lt;p&gt;If my terrible analogy wasn&amp;#8217;t enough to convince you to implement better performance on your website, then maybe some &amp;#8220;BIG DATA&amp;#8221; will.&lt;/p&gt;
+ <link href="https://btxx.org/posts/af"/>
+ <id>https://btxx.org/posts/af</id>
+ <updated>2022-10-14T10:00:00Z</updated>
+ <published>2022-10-14T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Adventures in Creating a Minimal Alpine Linux Installer</title>
+ <content type="html">&lt;h1 id=&quot;adventures-in-creating-a-minimal-alpine-linux-installer&quot;&gt;Adventures in Creating a Minimal Alpine Linux Installer&lt;/h1&gt;
+&lt;p&gt;2022-12-08&lt;/p&gt;
+&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve made the switch to Alpine Linux as my main laptop&amp;#47;desktop hybrid
+workstation and I love it - warts and all. This post will follow my process building my Alpine Linux &amp;#8220;installer&amp;#8221; I used for this workstation, along with covering some bugs I found during my adventure.&lt;/p&gt;
+&lt;p&gt;My main goals when starting this project were to have a daily driver that was:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://web.archive.org/web/20081117195303if_/http://home.blarg.net/~glinden/StanfordDataMining.2006-11-29.ppt&quot;&gt;Amazon (PowerPoint, slide #15)&lt;/a&gt;: 100 ms of latency resulted in 1% less sales.&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://youtu.be/6x0cAzQ7PVs?t=936&quot;&gt;Google (video)&lt;/a&gt;: 500 ms caused a 20% drop in traffic.&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://www.slideshare.net/devonauerswald/walmart-pagespeedslide&quot;&gt;Walmart (slide #46)&lt;/a&gt;: a 100 ms improvement brought up to 1% incremental revenue&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://blog.mozilla.org/metrics/2010/04/05/firefox-page-load-speed-%E2%80%93-part-ii/&quot;&gt;Mozilla&lt;/a&gt;: Shaving 2.2 seconds off page load time increased downloads by 15.4%&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://www.slideshare.net/stubbornella/designing-fast-websites-presentation/23-1_Create_a_component_library&quot;&gt;Yahoo&lt;/a&gt;: 400 ms resulted in a 5 to 9% drop in traffic&lt;/li&gt;
+&lt;li&gt;free of any &amp;#8220;real&amp;#8221; desktop environment&lt;/li&gt;
+&lt;li&gt;Wayland based with SwayWM&lt;/li&gt;
+&lt;li&gt;as lightweight as possible&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;All data taken from &lt;a href=&quot;https://instant.page&quot;&gt;instant.page&lt;/a&gt; (which I am a huge fan of &amp;hearts;)&lt;/p&gt;
-&lt;p&gt;The fact something as small as 100 ms can have such a profound impact on your bottom-line should be eye-opening. You&amp;#8217;re leaving money of the table by not tackling even the low-hanging, easy performance wins. You need to start valuing your users&amp;#8217; time and stop serving them excessive garbage they never asked for.&lt;/p&gt;
-&lt;h2 id=&quot;small-and-easy-wins&quot;&gt;Small and easy wins&lt;/h2&gt;
-&lt;p&gt;Not all of these suggestions can work for every project (due to restrictions, brand guidelines, required marketing targets, etc.) but for most developers&amp;#47;designers they should be easy to implement: (in no particular order of importance)&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Reduce the number of web requests
-&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://developers.google.com/web/fundamentals/performance/get-started/httprequests-5&quot;&gt;HTTP Requests&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Use web-safe fonts when available or if using custom fonts utilize the &lt;code&gt;font-display&lt;/code&gt; property
-&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://www.cssfontstack.com/&quot;&gt;CSS Font Stack&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://css-tricks.com/font-display-masses/&quot;&gt;Font Display for the Masses&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Make proper use of &lt;em&gt;critical CSS&lt;/em&gt;
+&lt;p&gt;Overall, I think I achieved what I was aiming for. After logging in (there is no login manager, you do it directly through the boot terminal) you will see:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/alpine-1.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;(You can view the &lt;a href=&quot;/public/images/alpine-1.jpg&quot;&gt;full res image here&lt;/a&gt;)&lt;/p&gt;
+&lt;p&gt;For reference this is running on a X260 ThinkPad with 16GB RAM, docked and connected to a 27&amp;#8221; 4K monitor.&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;If you&amp;#8217;d prefer to just go straight to the installer, feel free to jump over to the project repo: &lt;a href=&quot;https://git.sr.ht/~bt/alpine-linux-setup&quot;&gt;https:&amp;#47;&amp;#47;git.sr.ht&amp;#47;~bt&amp;#47;alpine-linux-setup&lt;/a&gt;&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;h2 id=&quot;getting-started&quot;&gt;Getting Started&lt;/h2&gt;
+&lt;p&gt;My main reasoning for switching away from my previous setup (Garuda Linux running Sway) to Alpine was two fold:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;I wanted a more lightweight, less resource hungry system&lt;/li&gt;
+&lt;li&gt;I wanted to go as &amp;#8220;full&amp;#8221; Wayland as possible&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h3 id=&quot;benchmarks-comparisons&quot;&gt;Benchmarks Comparisons&lt;/h3&gt;
+&lt;p&gt;I should mention that these are not official &amp;#8220;benchmark&amp;#8221; applications or proper testing. I merely reproduced the same tasks, using the same applications, for the same amount of time and compared the usage. Just keep that in mind!&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://alexwright.net/web-design-secrets/how-to-use-critical-css/&quot;&gt;How to Use Critical CSS&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Automatically generate CSS based on &amp;#8220;above the fold&amp;#8221;: &lt;a href=&quot;https://github.com/filamentgroup/criticalCSS&quot;&gt;criticalCSS&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Process all media (images &amp;#47; videos) through 3rd party tools
+&lt;li&gt;&lt;strong&gt;Garuda Linux&lt;/strong&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://cloudinary.com/&quot;&gt;Cloudinary&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://kraken.io/&quot;&gt;Kraken.io&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://piio.co/&quot;&gt;Piio&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Sidenote: this blog uses the &lt;a href=&quot;https://nhoizey.github.io/jekyll-cloudinary/&quot;&gt;jekyll-cloudinary&lt;/a&gt; plugin to automatically process images&lt;/li&gt;
+&lt;li&gt;SwayWM&lt;/li&gt;
+&lt;li&gt;Firefox: 9 tabs (Figma included)&lt;/li&gt;
+&lt;li&gt;qutebrowser: 7 tabs&lt;/li&gt;
+&lt;li&gt;aerc: open&amp;#47;running&lt;/li&gt;
+&lt;li&gt;tut: open-running&lt;/li&gt;
+&lt;li&gt;Sublime Text: single project open&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Memory usage (range): 6.0-7.2 GB&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Use &amp;#8220;just-in-time&amp;#8221; preloading (highly recommended for improved UX)
+&lt;li&gt;&lt;strong&gt;Alpine Linux&lt;/strong&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://instant.page/&quot;&gt;Instant Page&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;SwayWM&lt;/li&gt;
+&lt;li&gt;Firefox: 9 tabs (Figma included)&lt;/li&gt;
+&lt;li&gt;qutebrowser: 7 tabs&lt;/li&gt;
+&lt;li&gt;aerc: open&amp;#47;running&lt;/li&gt;
+&lt;li&gt;tut: open-running&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Memory usage (range): 1.0-3.5 GB&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Avoid using heavy tech-stacks whenever possible
+&lt;/ul&gt;
+&lt;p&gt;Switching over has basically cut my system memory usage &lt;strong&gt;in half&lt;/strong&gt;. That ended up being a much better improvement than I predicted. These are beyond just numbers too - the system &lt;em&gt;feels&lt;/em&gt; snappier.&lt;/p&gt;
+&lt;p&gt;So, from a speed and usability stand point I considered this a success already.&lt;/p&gt;
+&lt;h2 id=&quot;crashes-roadblocks&quot;&gt;Crashes &amp;#38; Roadblocks&lt;/h2&gt;
+&lt;p&gt;Of course, things didn&amp;#8217;t run 100% flawlessly out-of-the-box. There were some pretty annoying &lt;strong&gt;crashes&lt;/strong&gt; and issues.&lt;/p&gt;
+&lt;h3 id=&quot;greetings-tty&quot;&gt;Greetings, tty&lt;/h3&gt;
+&lt;p&gt;After installing &lt;code&gt;tut&lt;/code&gt; I started walking through its guided setup. Once it prompted me to login via browser in order to authenticate, I clicked the link provided in the terminal. I was immediately thrown out of my session and into &lt;code&gt;tty&lt;/code&gt;. Awesome.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ll save you both the headache and large amount of time I wasted on this silly &amp;#8220;bug&amp;#8221; and just say it had to do with my user settings trying to launch &amp;#8220;Chromium&amp;#8221; as my default browser. I normally set qutebrowser as much default, so this was a change I needed to make anyway.&lt;/p&gt;
+&lt;p&gt;I put the following in my &lt;code&gt;&amp;#47;etc&amp;#47;xdg&amp;#47;mimeapps.list&lt;/code&gt; (which is included by default with the installer)&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;[Default Applications]
+x-scheme-handler&amp;#47;http=org.qutebrowser.qutebrowser.desktop
+x-scheme-handler&amp;#47;https=org.qutebrowser.qutebrowser.desktop
+x-scheme-handler&amp;#47;ftp=org.qutebrowser.qutebrowser.desktop
+x-scheme-handler&amp;#47;chrome=org.qutebrowser.qutebrowser.desktop
+text&amp;#47;html=org.qutebrowser.qutebrowser.desktop
+application&amp;#47;x-extension-htm=org.qutebrowser.qutebrowser.desktop
+application&amp;#47;x-extension-html=org.qutebrowser.qutebrowser.desktop
+application&amp;#47;x-extension-shtml=org.qutebrowser.qutebrowser.desktop
+application&amp;#47;xhtml+xml=org.qutebrowser.qutebrowser.desktop
+application&amp;#47;x-extension-xhtml=org.qutebrowser.qutebrowser.desktop
+application&amp;#47;x-extension-xht=org.qutebrowser.qutebrowser.desktop
+image&amp;#47;bmp=feh.desktop
+image&amp;#47;gif=feh.desktop
+image&amp;#47;jpeg=feh.desktop
+image&amp;#47;jpg=feh.desktop
+image&amp;#47;png=feh.desktop
+image&amp;#47;tiff=feh.desktop
+image&amp;#47;x-bmp=feh.desktop
+image&amp;#47;x-pcx=feh.desktop
+image&amp;#47;x-tga=feh.desktop
+image&amp;#47;x-portable-pixmap=feh.desktop
+image&amp;#47;x-portable-bitmap=feh.desktop
+image&amp;#47;x-targa=feh.desktop
+image&amp;#47;x-portable-greymap=feh.desktop
+application&amp;#47;pcx=feh.desktop
+image&amp;#47;svg+xml=feh.desktop
+image&amp;#47;svg-xml=feh.desktop
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;You might have also noticed that I use &lt;code&gt;feh&lt;/code&gt; as my default image viewer as well. That&amp;#8217;s just my personal preference, feel free to switch that out as you see fit.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Sidenote:&lt;/strong&gt; Chromium now runs perfectly fine since the original crashes. I have no clue how or why. Wayland black magic, I assume? Maybe I installed a package that helped or an update occurred. &lt;em&gt;Shrug&lt;/em&gt;&lt;/p&gt;
+&lt;h3 id=&quot;screen-sharing&quot;&gt;Screen Sharing&lt;/h3&gt;
+&lt;p&gt;This has been a complete failure for me. I&amp;#8217;ve tried both the Chromium and Firefox &lt;a href=&quot;https://lr.vern.cc/r/swaywm/comments/l4e55v/guide_how_to_screenshare_from_chromiumfirefox/&quot;&gt;implementations of these &amp;#8220;hacks&amp;#8221;&lt;/a&gt; but neither work. For now I will fallback to my Garuda Linux OS boot and share my screen there. It&amp;#8217;s a silly workaround but I hardly ever need to &amp;#8220;show my screen&amp;#8221; in any capacity as is.&lt;/p&gt;
+&lt;p&gt;I can live without this for now. (Please &lt;a href=&quot;https://lists.sr.ht/~bt/public-inbox&quot;&gt;leave a message in my personal inbox&lt;/a&gt; if you know of another workaround for this!)&lt;/p&gt;
+&lt;h2 id=&quot;some-minor-tweaks&quot;&gt;Some Minor Tweaks&lt;/h2&gt;
+&lt;p&gt;Some of these &amp;#8220;hacks&amp;#8221; or tweaks I had to implement might help others who run into similar issues when setting up their own Alpine desktops.&lt;/p&gt;
+&lt;h3 id=&quot;aerc-mail&quot;&gt;aerc-mail&lt;/h3&gt;
+&lt;p&gt;It is important to install &lt;code&gt;gawk&lt;/code&gt; since &lt;code&gt;awk&lt;/code&gt; isn&amp;#8217;t &amp;#8220;real&amp;#8221; on Alpine. Once you have that on you system &lt;code&gt;aerc&lt;/code&gt; will render emails out-of-the-box.[^1]&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;apk add gawk
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;sublime-text&quot;&gt;Sublime Text&lt;/h3&gt;
+&lt;p&gt;Sublime Text requires flatpak, so if that isn&amp;#8217;t your &lt;em&gt;thing&lt;/em&gt; then you&amp;#8217;re better off snagging a different editor. I&amp;#8217;ve tried multiple times throughout my career to use an alternate editor (preferably 100% open source) but keep finding myself returning to Sublime. Maybe one day&amp;#8230;&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;apk add flatpak
+flatpak remote-add --if-not-exists flathub https:&amp;#47;&amp;#47;flathub.org&amp;#47;repo&amp;#47;flathub.flatpakrepo
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Then reboot your machine for the changes to take. Login again and run:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;flatpak install flathub com.sublimetext.three
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;FYI: You &lt;em&gt;might&lt;/em&gt; need to run the above commands under &lt;code&gt;sudo&lt;/code&gt; if your current user lacks proper permissions.&lt;/p&gt;
+&lt;h3 id=&quot;cursors&quot;&gt;Cursors&lt;/h3&gt;
+&lt;p&gt;This was an odd edge case. For the most part, the default system cursors worked out of the box. Then I installed Firefox. That caused me to go down a rabbit-hole of (still open) tickets referencing poor cursor rendering for Wayland Firefox. Apparently some users even have their cursors disappear completely!&lt;/p&gt;
+&lt;p&gt;Not to worry though - there is an easy fix!&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Install &lt;a href=&quot;https://github.com/keeferrourke/capitaine-cursors&quot;&gt;capitaine cursors&lt;/a&gt;:
+apk add capitaine-cursors&lt;/li&gt;
+&lt;li&gt;Make a new directory:
+mkdir -p ~&amp;#47;.icons&amp;#47;capitaine-cursors&lt;/li&gt;
+&lt;li&gt;Copy the files over:
+sudo cp -r &amp;#47;usr&amp;#47;share&amp;#47;icons&amp;#47;capitaine-cursors-dark ~&amp;#47;.icons&amp;#47;capitaine-cursors&lt;/li&gt;
+&lt;li&gt;The make your cursor changes using &lt;code&gt;gnome-tweaks&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Profit!&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
+&lt;p&gt;Overall I&amp;#8217;m decently satisfied with my &amp;#8220;installer&amp;#8221;. I&amp;#8217;ve included &lt;em&gt;just enough&lt;/em&gt; packages to hit the ground running when using this on new hardware or even needing to recover existing devices. This project certainly won&amp;#8217;t cover the needs of all users, but my hope is that others can always fork their own and give it a spin! (Please do report any bugs or issues as you come across them!)&lt;/p&gt;
+&lt;p&gt;Alpine Linux can be more than just a &amp;#8220;server distro&amp;#8221;. My daily driver proves it!&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;This is now included in my official installer script, but I originally had to install this manually.&lt;/li&gt;
+&lt;/ol&gt;</content>
+ <link href="https://btxx.org/posts/alpine"/>
+ <id>https://btxx.org/posts/alpine</id>
+ <updated>2022-12-08T10:00:00Z</updated>
+ <published>2022-12-08T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Animated Card Tiles</title>
+ <content type="html">&lt;h1 id=&quot;animated-card-tiles&quot;&gt;Animated Card Tiles&lt;/h1&gt;
+&lt;p&gt;2019-02-27&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;The design trend of using &amp;#8220;cards&amp;#8221; or &amp;#8220;tiles&amp;#8221; to display interactive&lt;/em&gt; sections&amp;#47;article headings in an app or website remains a popular choice among designers. So, let&amp;#8217;s build a set of animated cards with only HTML &amp;#38; CSS. &lt;/p&gt;
+&lt;h2 id=&quot;what-we-will-be-building-live-demo&quot;&gt;What we will be building (live demo)&lt;/h2&gt;
+&lt;p&gt;This is the set of animated card tiles we will be creating:&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;(try hovering)&lt;/em&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/rNjBpob&quot;&gt;Live CodePen&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;p&gt;For the base skeleton of these cards we only need:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Unless it is a critical use-case, users should not have to process or download extra resources&lt;/li&gt;
-&lt;li&gt;This also includes remove ads, pop-ups, 3rd party sign-up prompts, cookie notifications, over-the-top element animations, and all other &lt;strong&gt;garbage&lt;/strong&gt;. This impacts &lt;em&gt;UX&lt;/em&gt; performance, which is just as crucial as website loading speed&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;a &lt;code&gt;flexbox&lt;/code&gt; main container to hold everything&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;a &lt;code&gt;.card-tile&lt;/code&gt; parent element&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;the inner child element that will display on &lt;code&gt;:hover&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;proper &lt;code&gt;h4&lt;/code&gt; and &lt;code&gt;p&lt;/code&gt; tags inside that child element&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;no-need-to-be-extreme&quot;&gt;No need to be extreme&lt;/h2&gt;
-&lt;p&gt;These quick &amp;#8220;guidelines&amp;#8221; are just a solid jumping-off point when tackling new projects or re-working current websites. There isn&amp;#8217;t some agreed upon &lt;em&gt;golden standard&lt;/em&gt; when it comes to web performance, but I find these rules work as a great place to start. Hopefully it can help others as well.&lt;/p&gt;</content>
- <link href="https://btxx.org/they-wont-wait"/>
- <id>https://btxx.org/they-wont-wait</id>
- <updated>2019-06-25T10:00:00Z</updated>
- <published>2019-06-25T10:00:00Z</published>
- </entry>
- <entry>
- <title>Text Align: Justify</title>
- <content type="html">&lt;h1 id=&quot;text-align-justify&quot;&gt;Text Align: Justify&lt;/h1&gt;
-&lt;p&gt;2019-05-22&lt;/p&gt;
-&lt;p&gt;The text-align property is fairly well known in the world of CSS, even among those just starting out with the language. Values such as &lt;code&gt;center&lt;/code&gt;, &lt;code&gt;left&lt;/code&gt; and &lt;code&gt;right&lt;/code&gt; are used often with this property, but a more forgotten option is &lt;code&gt;justify&lt;/code&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;what-does-justify-do&quot;&gt;What does justify do?&lt;/h2&gt;
-&lt;p&gt;The MDN web docs define the &lt;code&gt;justify&lt;/code&gt; value for &lt;code&gt;text-align&lt;/code&gt; as such:&lt;/p&gt;
-&lt;h3 id=&quot;see-it-in-action&quot;&gt;See it in action&lt;/h3&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/vwpmNz/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;when-should-i-use-this&quot;&gt;When should I use this?&lt;/h2&gt;
-&lt;p&gt;It isn&amp;#8217;t always appropriate to use &lt;code&gt;justify&lt;/code&gt; in most instances, although it becomes very useful for long form articles or blog posts. Since it takes a heavy influence from original &lt;em&gt;print&lt;/em&gt; book layouts, the &lt;code&gt;justify&lt;/code&gt; value helps improve readability for larger chunks of content.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Fair warning&lt;/strong&gt;: it is best to remove any &lt;code&gt;justify&lt;/code&gt; values when targeting smaller screen sizes. Mobile devices and&amp;#47;or tablets tend to be small enough to break up the content already. This CSS value is better suited for larger viewports.&lt;/p&gt;
-&lt;h2 id=&quot;browser-support&quot;&gt;Browser support&lt;/h2&gt;
-&lt;p&gt;The good news is that all major browsers support the &lt;code&gt;justify&lt;/code&gt; value for the &lt;code&gt;text-align&lt;/code&gt; CSS property. So have some worry-free fun with it!&lt;/p&gt;</content>
- <link href="https://btxx.org/text-align-justify"/>
- <id>https://btxx.org/text-align-justify</id>
- <updated>2019-05-22T10:00:00Z</updated>
- <published>2019-05-22T10:00:00Z</published>
- </entry>
- <entry>
- <title>The Wonders of Text Ellipsis</title>
- <content type="html">&lt;h1 id=&quot;the-wonders-of-text-ellipsis&quot;&gt;The Wonders of Text Ellipsis&lt;/h1&gt;
-&lt;p&gt;2016-11-15&lt;/p&gt;
-&lt;p&gt;A common issue when working with constrained UI elements is text overflowing outside of it&amp;#8217;s parent or breaking into addition lines (thus breaking the layout).&lt;/p&gt;
-&lt;p&gt;This is most commonly seen with the direct and placeholder values for input fields on form elements. For example, the following input placeholder will be cutoff from the user&amp;#8217;s view:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/OgpzyY/&quot;&gt;CodePen live example&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;Luckily, 3 simple CSS parameters can fix this.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;input::placeholder {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
+&lt;p&gt;That&amp;#8217;s all that is needed - for now. We will be returning to this code shortly to add some extra classes to make our lives easier.&lt;/p&gt;
+&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
+&lt;p&gt;First we set the main housing container to use &lt;code&gt;flex&lt;/code&gt; so we save ourselves the headache of aligning all the cards in a nice row:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.card-tiles-container {
+ display: flex;
+ font-size: 14px;
+ margin: 20px 0;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This allows the user to understand there is more content cut out from their current view. It&amp;#8217;s not ideal to ever have content overflowing outside of the parent container, but if you need to the best workaround is to use text-overflow.&lt;/p&gt;</content>
- <link href="https://btxx.org/te"/>
- <id>https://btxx.org/te</id>
- <updated>2016-11-15T10:00:00Z</updated>
- <published>2016-11-15T10:00:00Z</published>
- </entry>
- <entry>
- <title>Making Tables Responsive With Minimal CSS</title>
- <content type="html">&lt;h1 id=&quot;making-tables-responsive-with-minimal-css&quot;&gt;Making Tables Responsive With Minimal CSS&lt;/h1&gt;
-&lt;p&gt;2019-06-11&lt;/p&gt;
-&lt;hr/&gt;
-&lt;p&gt;I find that the need to create responsive table layouts pops up far more often than most developers would expect. The gut reaction might to be implement some sort of custom grid-system or pull in a pre-built library. Don&amp;#8217;t do this - just use tables and some simple CSS.&lt;/p&gt;
-&lt;p&gt;My recent article, &lt;a href=&quot;/html-like-1999&quot;&gt;Write HTML Like It&amp;#8217;s 1999&lt;/a&gt;, received far more attention than I ever expected on HackerNews. With this attention came a few comments mentioning how &lt;code&gt;table&lt;/code&gt; elements don&amp;#8217;t play nice with mobile devices or that it&amp;#8217;s not possible to have a useable layout on smaller screens. &lt;em&gt;This simply isn&amp;#8217;t true&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;Included below are two separate demos showing how to optimize &lt;code&gt;table&lt;/code&gt; HTML for mobile devices using only a minimal amount of CSS. These implementations may not be perfect, but they are far superior to injecting a bunch of custom &lt;code&gt;div&lt;/code&gt; elements to &lt;em&gt;look&lt;/em&gt; like tables.&lt;/p&gt;
-&lt;h2 id=&quot;demo-1-just-let-them-scroll&quot;&gt;Demo 1: Just let them scroll&lt;/h2&gt;
-&lt;p&gt;Okay I will admit, this implementation isn&amp;#8217;t the &lt;em&gt;greatest&lt;/em&gt; but I find it does work well with huge datasets. Simply set a &lt;code&gt;min-width&lt;/code&gt; on your parent &lt;code&gt;table&lt;/code&gt; element and the browser will just require the user to scroll the contents horizontally.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;table {
- min-width: 800px; &amp;#47;* Set your desired min-width here *&amp;#47;
+&lt;p&gt;Next we create the default styling for our tile cards and set the &lt;code&gt;transform&lt;/code&gt; property to scale the card on &lt;code&gt;:hover&lt;/code&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Default card tile styles *&amp;#47;
+.card-tile {
+ border: 1px solid;
+ border-radius: 10px;
+ cursor: pointer;
+ height: 150px;
+ margin: 0 10px;
+ overflow: hidden;
+ position: relative;
+ width: 33.33%;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Check out the CodePen below to see it in action:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/ewObbW/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;I actually prefer this method because of its simplicity and function. Users on mobile are familiar with scrolling since it is one of the most basic actions required. Seeing a &amp;#8220;cut-off&amp;#8221; table gives them an instant visual cue that they have the ability to scroll the content.&lt;/p&gt;
-&lt;h2 id=&quot;demo-2-more-flexible-than-you-think&quot;&gt;Demo 2: More flexible than you think&lt;/h2&gt;
-&lt;p&gt;Using something like &lt;code&gt;flexbox&lt;/code&gt; tends to work better when you are working with smaller table datasets. All you need to do is add some minor &lt;code&gt;flexbox&lt;/code&gt; layout at your targeted mobile screen size.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Using 800px as mobile screen in this example *&amp;#47;
-@media(max-width: 800px) {
- &amp;#47;* Hide the table headings *&amp;#47;
- table thead {
- left: -9999px;
- position: absolute;
- visibility: hidden;
- }
- table tr {
- border-bottom: 0;
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- margin-bottom: 40px;
- }
- table td {
- border: 1px solid;
- margin: 0 -1px -1px 0; &amp;#47;* Removes double-borders *&amp;#47;
- width: 50%;
- }
+.card-tile:hover {
+ transform: scale(1.1);
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/mZbvOb/&quot;&gt;Check out the CodePen demo&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;There are some caveats with this approach:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;We currently hide the &lt;code&gt;thead&lt;/code&gt; row when in mobile view (only visually - screen readers can still scan it)&lt;/li&gt;
-&lt;li&gt;Some more custom work might be needed depending on how many items per &lt;code&gt;flexbox&lt;/code&gt; row makes sense (based on project and dataset)&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;You could keep the table headings and style them the same as the &lt;code&gt;tbody&lt;/code&gt; contents, but I find hiding them a little cleaner. That choice is entirely up to your personal preference. You can also decide to add heading &lt;code&gt;span&lt;/code&gt; elements inside the main &lt;code&gt;tbody&lt;/code&gt; elements like so:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Default span styling - hidden on desktop *&amp;#47;
-table td span {
- background: #eee;
- color: dimgrey;
- display: none;
- font-size: 10px;
- font-weight: bold;
- padding: 5px;
+&lt;h3 id=&quot;where-are-my-cards&quot;&gt;Where are my cards?!&lt;/h3&gt;
+&lt;p&gt;Don&amp;#8217;t panic if you can&amp;#8217;t &lt;em&gt;visually&lt;/em&gt; see any card elements in your demo yet - that&amp;#8217;s to be expected. We will be styling these card elements momentarily.&lt;/p&gt;
+&lt;p&gt;Our next step is to hide the default inner &lt;code&gt;text-content&lt;/code&gt; and only show it on hover. We achieve this by setting it&amp;#8217;s position to &lt;code&gt;absolute&lt;/code&gt;, placing it&amp;#8217;s opacity at 0 and pushing it&amp;#8217;s z-index back to -1.&lt;/p&gt;
+&lt;p&gt;When the user hovers over a main card tile, we change the &lt;code&gt;text-content&lt;/code&gt; values of both the opacity and z-index to 1.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Card tile text content *&amp;#47;
+.card-tile .text-content {
+ background: linear-gradient(rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
+ bottom: 10px;
+ border: 1px solid rgba(0,0,0,0.4);
+ border-radius: 5px;
+ box-shadow: inset 0 1px 1px rgba(255,255,255,0.8),
+ 0 2px 4px rgba(0,0,0,0.5);
+ height: 65px;
+ left: 10px;
+ opacity: 0;
+ padding: 10px;
position: absolute;
- text-transform: uppercase;
- top: 0;
- left: 0;
+ width: calc(100% - 20px);
+ z-index: -1;
}
-
-&amp;#47;* Simple CSS for flexbox table on mobile *&amp;#47;
-@media(max-width: 800px) {
- table thead {
- left: -9999px;
- position: absolute;
- visibility: hidden;
- }
- table tr {
- border-bottom: 0;
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- margin-bottom: 40px;
- }
- table td {
- border: 1px solid;
- margin: 0 -1px -1px 0;
- padding-top: 35px; &amp;#47;* additional padding to avoid heading overlap *&amp;#47;
- position: relative;
- width: 50%;
+.card-tile:hover .text-content {
+ opacity: 1;
+ z-index: 1;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Finally we add some minor styling for the inner header and paragraph tags:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.card-tile .text-content h4,
+.card-tile .text-content p {
+ color: #fff;
+ margin: 0;
+ text-shadow: 1px 1px 1px rgba(0,0,0,0.6);
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;dont-forget-mobile&quot;&gt;Don&amp;#8217;t forget mobile&lt;/h3&gt;
+&lt;p&gt;We want out UI to stack the cards if users are viewing them on smaller devices:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@media(max-width: 600px) {
+ .card-tiles-container {
+ flex-direction: column;
}
- &amp;#47;* Show the heading span *&amp;#47;
- table td span {
- display: block;
+ .card-tile {
+ margin: 0 0 10px 0;
+ width: 100%;
}
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/mZdzmZ/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Updated&lt;/strong&gt;: As pointed out by user &lt;a href=&quot;https://news.ycombinator.com/user?id=mmoez&quot;&gt;mmoez&lt;/a&gt;, it is far less repetitive to use &lt;code&gt;:nth-child&lt;/code&gt; pseudo selectors to implement the heading fields on mobile (as outlined in this &lt;a href=&quot;https://css-tricks.com/responsive-data-tables/&quot;&gt;CSS-Tricks article&lt;/a&gt;).&lt;/p&gt;
-&lt;h2 id=&quot;why-should-i-care-to-use-elements&quot;&gt;Why should I care to use &lt;code&gt;table&lt;/code&gt; elements?&lt;/h2&gt;
-&lt;p&gt;Simply put: &lt;strong&gt;accessibility&lt;/strong&gt; and &lt;strong&gt;proper semantics&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;Why use a screwdriver when you need a hammer? Sure, you can make that screwdriver look and &lt;em&gt;almost&lt;/em&gt; work the same as a hammer, but for what purpose? Just use the damn hammer1.&lt;/p&gt;
-&lt;p&gt;Have fun making your tables responsive!&lt;/p&gt;
-&lt;p&gt;1 I know, this is a terrible analogy&amp;#8230;&lt;/p&gt;</content>
- <link href="https://btxx.org/tables"/>
- <id>https://btxx.org/tables</id>
- <updated>2019-06-11T10:00:00Z</updated>
- <published>2019-06-11T10:00:00Z</published>
- </entry>
- <entry>
- <title>Tabbed Content Without JavaScript</title>
- <content type="html">&lt;h1 id=&quot;tabbed-content-without-javascript&quot;&gt;Tabbed Content Without JavaScript&lt;/h1&gt;
-&lt;p&gt;2019-01-28&lt;/p&gt;
-&lt;p&gt;Creating tabs is a fairly trivial and common practice in web design, but many times it requires JavaScript to properly implement. Fortunately it &lt;em&gt;is&lt;/em&gt; possible to create tabbed content with only using CSS.&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/tabbed-content.png&quot; alt=&quot;Tabbed elements with only CSS&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/abjmayw&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;hr/&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;The skeleton for this component is fairly basic - we just need the following structure:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;&lt;p&gt;Parent element for each tab item&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Default radio input&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Label linked to corresponding input&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Inner content associated with each tab item&lt;/p&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;Full HTML for reference:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;tabs&quot;&amp;#62;
-
- &amp;#60;div class=&quot;tab-item&quot;&amp;#62;
- &amp;#60;input class=&quot;tab-input&quot; type=&quot;radio&quot; name=&quot;tabs&quot; id=&quot;tab-1&quot;&amp;#62;
- &amp;#60;label class=&quot;tab-label&quot; for=&quot;tab-1&quot;&amp;#62;Tab 1&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;div class=&quot;tab-content&quot;&amp;#62;Content goes here&amp;#60;&amp;#47;div&amp;#62;
+&lt;h2 id=&quot;customizing-each-card&quot;&gt;Customizing each card&lt;/h2&gt;
+&lt;p&gt;Remember how I mentioned that we would be adding more classes to the original HTML? Now is the time. We will be including a simple class on each card tile to provide it&amp;#8217;s own custom coloring:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;card-tiles-container&quot;&amp;#62;
+ &amp;#60;!-- `Blue` class --&amp;#62;
+ &amp;#60;div class=&quot;card-tile blue&quot;&amp;#62;
+ &amp;#60;div class=&quot;text-content&quot;&amp;#62;
+ &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
+ &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
&amp;#60;&amp;#47;div&amp;#62;
-
- &amp;#60;div class=&quot;tab-item&quot;&amp;#62;
- &amp;#60;input class=&quot;tab-input&quot; type=&quot;radio&quot; name=&quot;tabs&quot; id=&quot;tab-2&quot;&amp;#62;
- &amp;#60;label class=&quot;tab-label&quot; for=&quot;tab-2&quot;&amp;#62;Tab 2&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;div class=&quot;tab-content&quot;&amp;#62;Content goes here&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;!-- `Orange` class --&amp;#62;
+ &amp;#60;div class=&quot;card-tile orange&quot;&amp;#62;
+ &amp;#60;div class=&quot;text-content&quot;&amp;#62;
+ &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
+ &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
&amp;#60;&amp;#47;div&amp;#62;
-
- &amp;#60;div class=&quot;tab-item&quot;&amp;#62;
- &amp;#60;input class=&quot;tab-input&quot; type=&quot;radio&quot; name=&quot;tabs&quot; id=&quot;tab-3&quot;&amp;#62;
- &amp;#60;label class=&quot;tab-label&quot; for=&quot;tab-3&quot;&amp;#62;Tab 3&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;div class=&quot;tab-content&quot;&amp;#62;Content goes here&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;!-- `Green` class --&amp;#62;
+ &amp;#60;div class=&quot;card-tile green&quot;&amp;#62;
+ &amp;#60;div class=&quot;text-content&quot;&amp;#62;
+ &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
+ &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
&amp;#60;&amp;#47;div&amp;#62;
-
&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;First, we need to set each &lt;code&gt;input&lt;/code&gt;, &lt;code&gt;label&lt;/code&gt; and inner content into their own parent containers:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Main parent that holds all contents *&amp;#47;
-.tabs {
- height: 100%;
- min-height: 250px;
- position: relative;
+&lt;p&gt;And these color classes correlate to some new CSS styling:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Blue Card *&amp;#47;
+.card-tile.blue {
+ background-color: #0093E9;
+ background-image: linear-gradient(0deg, #0093E9 0%, #80D0C7 100%);
+ border-color: #0093E9;
+ box-shadow: 0 4px 12px rgba(128,208,199,0.7),
+ inset 0 2px 1px rgba(255,255,255,0.6);
+}
+.card-tile.blue:hover {
+ box-shadow: 0 8px 18px rgba(128,208,199,0.4),
+ inset 0 2px 1px rgba(255,255,255,0.6);
}
-&amp;#47;* Each tab items (includes heading &amp;#38; content) *&amp;#47;
-.tab-item {
- display: inline;
+&amp;#47;* Orange Card *&amp;#47;
+.card-tile.orange {
+ background-color: #FAD961;
+ background-image: linear-gradient(180deg, #FAD961 0%, #F76B1C 100%);
+ border-color: #F76B1C;
+ box-shadow: 0 4px 12px rgba(247,107,28,0.7),
+ inset 0 2px 1px rgba(255,255,255,0.6);
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next, we will hide the default &lt;code&gt;radio&lt;/code&gt; input and design our labels to resemble a basic web tab element. The &lt;code&gt;z-index&lt;/code&gt; property on the label is important for how we will be stacking our content on the z-axis (labels above inner content for example).&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Hide the default radio inputs *&amp;#47;
-.tab-input {
- position: absolute;
- visibility: hidden;
+.card-tile.orange:hover {
+ box-shadow: 0 8px 18px rgba(247,107,28,0.4),
+ inset 0 2px 1px rgba(255,255,255,0.6);
}
-&amp;#47;* The main tab headings *&amp;#47;
-.tab-label {
- background: white;
- box-shadow: inset 0 -4px 4px rgba(0,0,0,0.02);
- color: lightgrey;
- cursor: pointer;
- display: inline-block;
- font-weight: 600;
- margin: 0 5px 0 0;
- padding: 10px 20px;
- position: relative;
- text-align: center;
- z-index: 0;
+&amp;#47;* Green Card *&amp;#47;
+.card-tile.green {
+ background-color: #096e40;
+ background-image: linear-gradient(0deg, #096e40 0%, #2AF598 100%);
+ border-color: #096e40;
+ box-shadow: 0 4px 12px rgba(9,110,64,0.7),
+ inset 0 2px 1px rgba(255,255,255,0.6);
+}
+.card-tile.green:hover {
+ box-shadow: 0 8px 18px rgba(9,110,64,0.4),
+ inset 0 2px 1px rgba(255,255,255,0.6);
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;The main inner content of each tab needs to have an &lt;code&gt;absolute&lt;/code&gt; position set as it&amp;#8217;s default, since the one currently selected will switch to &lt;code&gt;relative&lt;/code&gt; on mobile (more on that in a moment):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* The inner tab content *&amp;#47;
-.tab-content {
- background: white;
- bottom: 0;
- box-shadow: 0 6px 8px rgba(0,0,0,0.02);
- left: 0;
- overflow: scroll;
- padding: 20px;
- position: absolute;
- right: 0;
- top: 50px;
- z-index: 0;
+&lt;h3 id=&quot;adding-transitions&quot;&gt;Adding transitions&lt;/h3&gt;
+&lt;p&gt;We can now see the actual cards visually and have the ability to interact with them, but there is a problem - they don&amp;#8217;t animate.&lt;/p&gt;
+&lt;p&gt;Lucky we can target all elements we wish to animate with the &lt;code&gt;transition&lt;/code&gt; property, like so:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Shared transitions *&amp;#47;
+.card-tile,
+.card-tile .text-content {
+ transition: .3s ease all;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;The final step is just telling the browser to style both the &lt;code&gt;label&lt;/code&gt; and inner content of the currently selected radio &lt;code&gt;input&lt;/code&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Style the currently selected tab label *&amp;#47;
-.tab-input:checked + .tab-label {
- border: 1px solid #eee;
- border-bottom: 0;
- box-shadow: 0 -6px 8px rgba(0,0,0,0.02);
- color: #268bd2;
- z-index: 2;
+&lt;p&gt;Done and done.&lt;/p&gt;
+&lt;h2 id=&quot;the-final-code&quot;&gt;The final code&lt;/h2&gt;
+&lt;p&gt;To make things easier for reference, I have included all the &lt;code&gt;html&lt;/code&gt; and &lt;code&gt;css&lt;/code&gt; below. Please feel free to use these cards anywhere you like and change them as you see fit!&lt;/p&gt;
+&lt;h3 id=&quot;html&quot;&gt;HTML&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;card-tiles-container&quot;&amp;#62;
+ &amp;#60;div class=&quot;card-tile blue&quot;&amp;#62;
+ &amp;#60;div class=&quot;text-content&quot;&amp;#62;
+ &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
+ &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;card-tile orange&quot;&amp;#62;
+ &amp;#60;div class=&quot;text-content&quot;&amp;#62;
+ &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
+ &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;card-tile green&quot;&amp;#62;
+ &amp;#60;div class=&quot;text-content&quot;&amp;#62;
+ &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
+ &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;css&quot;&gt;CSS&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;.card-tiles-container {
+ display: flex;
+ font-size: 14px;
+ margin: 20px 0;
}
-
-&amp;#47;* Show the currently selected tab content *&amp;#47;
-.tab-input:checked ~ .tab-content {
- border: 1px solid #eee;
- z-index: 1;
+&amp;#47;* Shared transitions *&amp;#47;
+.card-tile,
+.card-tile .text-content {
+ transition: .3s ease all;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;It&amp;#8217;s as simple as that! For reference, here is the entire CSS file for easier access:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Main parent that holds all contents *&amp;#47;
-.tabs {
- height: 100%;
- min-height: 250px;
+&amp;#47;* Default card tile styles *&amp;#47;
+.card-tile {
+ border: 1px solid;
+ border-radius: 10px;
+ cursor: pointer;
+ height: 150px;
+ margin: 0 10px;
+ overflow: hidden;
position: relative;
+ width: 33.33%;
}
-
-&amp;#47;* Each tab items (includes heading &amp;#38; content) *&amp;#47;
-.tab-item {
- display: inline;
+&amp;#47;* Blue Card *&amp;#47;
+.card-tile.blue {
+ background-color: #0093E9;
+ background-image: linear-gradient(0deg, #0093E9 0%, #80D0C7 100%);
+ border-color: #0093E9;
+ box-shadow: 0 4px 12px rgba(128,208,199,0.7),
+ inset 0 2px 1px rgba(255,255,255,0.6);
}
-
-&amp;#47;* Hide the default radio inputs *&amp;#47;
-.tab-input {
- position: absolute;
- visibility: hidden;
+.card-tile.blue:hover {
+ box-shadow: 0 8px 18px rgba(128,208,199,0.4),
+ inset 0 2px 1px rgba(255,255,255,0.6);
}
-
-&amp;#47;* The main tab headings *&amp;#47;
-.tab-label {
- background: white;
- box-shadow: inset 0 -4px 4px rgba(0,0,0,0.02);
- color: lightgrey;
- cursor: pointer;
- display: inline-block;
- font-weight: 600;
- margin: 0 5px 0 0;
- padding: 10px 20px;
- position: relative;
- text-align: center;
- z-index: 0;
+&amp;#47;* Orange Card *&amp;#47;
+.card-tile.orange {
+ background-color: #FAD961;
+ background-image: linear-gradient(180deg, #FAD961 0%, #F76B1C 100%);
+ border-color: #F76B1C;
+ box-shadow: 0 4px 12px rgba(247,107,28,0.7),
+ inset 0 2px 1px rgba(255,255,255,0.6);
}
-
-&amp;#47;* The inner tab content *&amp;#47;
-.tab-content {
- background: white;
- bottom: 0;
- box-shadow: 0 6px 8px rgba(0,0,0,0.02);
- left: 0;
- overflow: scroll;
- padding: 20px;
+.card-tile.orange:hover {
+ box-shadow: 0 8px 18px rgba(247,107,28,0.4),
+ inset 0 2px 1px rgba(255,255,255,0.6);
+}
+&amp;#47;* Green Card *&amp;#47;
+.card-tile.green {
+ background-color: #096e40;
+ background-image: linear-gradient(0deg, #096e40 0%, #2AF598 100%);
+ border-color: #096e40;
+ box-shadow: 0 4px 12px rgba(9,110,64,0.7),
+ inset 0 2px 1px rgba(255,255,255,0.6);
+}
+.card-tile.green:hover {
+ box-shadow: 0 8px 18px rgba(9,110,64,0.4),
+ inset 0 2px 1px rgba(255,255,255,0.6);
+}
+&amp;#47;* Card tile text content *&amp;#47;
+.card-tile .text-content {
+ background: linear-gradient(rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
+ bottom: 10px;
+ border: 1px solid rgba(0,0,0,0.4);
+ border-radius: 5px;
+ box-shadow: inset 0 1px 1px rgba(255,255,255,0.8),
+ 0 2px 4px rgba(0,0,0,0.5);
+ height: 65px;
+ left: 10px;
+ opacity: 0;
+ padding: 10px;
position: absolute;
- right: 0;
- top: 50px;
- z-index: 0;
+ width: calc(100% - 20px);
+ z-index: -1;
}
-
-&amp;#47;* Style the currently selected tab label *&amp;#47;
-.tab-input:checked + .tab-label {
- border: 1px solid #eee;
- border-bottom: 0;
- box-shadow: 0 -6px 8px rgba(0,0,0,0.02);
- color: #268bd2;
- z-index: 2;
+.card-tile .text-content h4,
+.card-tile .text-content p {
+ color: #fff;
+ margin: 0;
+ text-shadow: 1px 1px 1px rgba(0,0,0,0.6);
}
-
-&amp;#47;* Show the currently selected tab content *&amp;#47;
-.tab-input:checked ~ .tab-content {
- border: 1px solid #eee;
+&amp;#47;* All animations on hover *&amp;#47;
+.card-tile:hover {
+ transform: scale(1.1);
+}
+.card-tile:hover .text-content {
+ opacity: 1;
z-index: 1;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;dont-forget-about-mobile&quot;&gt;Don&amp;#8217;t forget about mobile&lt;/h2&gt;
-&lt;p&gt;With only a few extra lines of CSS we can ensure that our custom tabs will stack on top of each other and look solid on mobile devices:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@media(max-width:38em) {
- .tab-label {
- display: block;
- width: 100%;
- }
- .tab-content {
- display: none;
+@media(max-width: 600px) {
+ .card-tiles-container {
+ flex-direction: column;
}
- .tab-input:checked ~ .tab-content {
- bottom: auto;
- display: block;
- position: relative;
- top: auto;
+ .card-tile {
+ margin: 0 0 10px 0;
+ width: 100%;
}
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;one-minor-caveat&quot;&gt;One minor caveat&lt;/h2&gt;
-&lt;p&gt;Even though I&amp;#8217;m a pretty big fan of implementing tabs this way, there is a small drawback:&lt;/p&gt;
-&lt;p&gt;The &lt;code&gt;height&lt;/code&gt; of the inner content doesn&amp;#8217;t grow dynamically since it defaults as &lt;code&gt;absolute&lt;/code&gt;, so a &lt;code&gt;min-height&lt;/code&gt; or &lt;code&gt;height&lt;/code&gt; value is required on the parent element. This could become a problem in certain situations where you don&amp;#8217;t have the luxury of setting a static height.&lt;/p&gt;
-&lt;p&gt;Other than that, enjoy building some JavaScript-free tabs!&lt;/p&gt;</content>
- <link href="https://btxx.org/tabbed-content"/>
- <id>https://btxx.org/tabbed-content</id>
- <updated>2019-01-28T10:00:00Z</updated>
- <published>2019-01-28T10:00:00Z</published>
- </entry>
- <entry>
- <title>Super Mario Blocks in CSS</title>
- <content type="html">&lt;h1 id=&quot;super-mario-blocks-in-css&quot;&gt;Super Mario Blocks in CSS&lt;/h1&gt;
-&lt;p&gt;2019-02-15&lt;/p&gt;
-&lt;p&gt;Just because we can, let&amp;#8217;s make a quick demo on how to build interactive elements based off the original Mario punch blocks.&lt;/p&gt;
-&lt;p&gt;What our final product will look like:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/mario-block.png&quot; alt=&quot;Mario blocks cretaed with CSS&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/JjEPOVe&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;The set of Mario blocks doesn&amp;#8217;t require a huge amount of effort for it&amp;#8217;s &lt;code&gt;html&lt;/code&gt; structure, we only need:&lt;/p&gt;
+&lt;/code&gt;&lt;/pre&gt;</content>
+ <link href="https://btxx.org/posts/animated-card-tiles"/>
+ <id>https://btxx.org/posts/animated-card-tiles</id>
+ <updated>2019-02-27T10:00:00Z</updated>
+ <published>2019-02-27T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Animated Radio Tab Toggles</title>
+ <content type="html">&lt;h1 id=&quot;animated-radio-tab-toggles&quot;&gt;Animated Radio Tab Toggles&lt;/h1&gt;
+&lt;p&gt;2021-01-05&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;In this demo tutorial, we are making the assumption&lt;/em&gt; that we need to create a radio slide toggle for our made-up payment options. For this we want to display 3 simple payment choices to the user:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Parent div for each block&lt;/li&gt;
-&lt;li&gt;Checkbox input&lt;/li&gt;
-&lt;li&gt;Checkbox label&lt;/li&gt;
-&lt;li&gt;Inner label divs to represent the block &amp;#8220;dots&amp;#8221;&lt;/li&gt;
+&lt;li&gt;One-time payment&lt;/li&gt;
+&lt;li&gt;Recurring payment&lt;/li&gt;
+&lt;li&gt;Free tier payment&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;&lt;strong&gt;Sidenote&lt;/strong&gt;: This is only how &lt;em&gt;I&lt;/em&gt; chose to add the inner dots to the Mario blocks. There are many other ways to create these, so please feel free to implement them however you see fit.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;!-- Main parent block --&amp;#62;
-&amp;#60;div class=&quot;mario-block&quot;&amp;#62;
-
- &amp;#60;!-- Checkbox input (disabled by default) --&amp;#62;
- &amp;#60;input type=&quot;checkbox&quot; id=&quot;1&quot; disabled&amp;#62;
-
- &amp;#60;!-- Checkbox label --&amp;#62;
- &amp;#60;label for=&quot;1&quot;&amp;#62;
- &amp;#60;!-- Inner dots for blocks --&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;label&amp;#62;
-
-&amp;#60;&amp;#47;div&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now we just add as many default blocks we want, along with the interactive punch block (&lt;code&gt;.mario-block--question&lt;/code&gt;):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;mario-block&quot;&amp;#62;
- &amp;#60;input type=&quot;checkbox&quot; id=&quot;1&quot; disabled&amp;#62;
- &amp;#60;label for=&quot;1&quot;&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;label&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
-
-&amp;#60;div class=&quot;mario-block&quot;&amp;#62;
- &amp;#60;input type=&quot;checkbox&quot; id=&quot;2&quot; disabled&amp;#62;
- &amp;#60;label for=&quot;2&quot;&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;label&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
-
-&amp;#60;div class=&quot;mario-block mario-block--question&quot;&amp;#62;
- &amp;#60;input type=&quot;checkbox&quot; id=&quot;3&quot;&amp;#62;
- &amp;#60;label for=&quot;3&quot;&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;question-mark&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;label&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
-
-&amp;#60;div class=&quot;mario-block&quot;&amp;#62;
- &amp;#60;input type=&quot;checkbox&quot; id=&quot;4&quot; disabled&amp;#62;
- &amp;#60;label for=&quot;4&quot;&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;label&amp;#62;
+&lt;h2 id=&quot;the-final-demo&quot;&gt;The Final Demo&lt;/h2&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/embed/vYXjpLO&quot;&gt;Live CodePen&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;Let’s get started with the base skeleton.&lt;/p&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;radio-toggles&quot;&amp;#62;
+ &amp;#60;input type=&quot;radio&quot; id=&quot;option-1&quot; name=&quot;radio-options&quot;&amp;#62;
+ &amp;#60;label for=&quot;option-1&quot;&amp;#62;One-Time&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;input type=&quot;radio&quot; id=&quot;option-2&quot; name=&quot;radio-options&quot; checked&amp;#62;
+ &amp;#60;label for=&quot;option-2&quot;&amp;#62;Recurring&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;input type=&quot;radio&quot; id=&quot;option-3&quot; name=&quot;radio-options&quot;&amp;#62;
+ &amp;#60;label for=&quot;option-3&quot;&amp;#62;Free&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;div class=&quot;slide-item&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;First we need to remove the default &lt;code&gt;checkbox&lt;/code&gt; input styling and place all new styling on it&amp;#8217;s corresponding &lt;code&gt;label&lt;/code&gt;.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Mario block parent div *&amp;#47;
-.mario-block {
- display: inline-block;
- height: 80px;
- margin-right: -7px; &amp;#47;* Fixes inline-block margin bug *&amp;#47;
+&lt;p&gt;Now for the main event – the CSS. First we want to style the wrapper that holds all of our pieces together. You can tweak this to your liking, but I prefer a simple and clean style:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.radio-toggles {
+ align-items: center;
+ background: #eee;
+ border: 1px solid lightgrey;
+ border-radius: 9999px;
+ display: flex;
+ justify-content: center;
+ margin: 20px auto;
+ max-width: 400px;
+ overflow: hidden;
+ padding: 4px;
position: relative;
- width: 80px;
}
-
-&amp;#47;* Hide default checkbox input *&amp;#47;
-.mario-block input {
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Next, we “hide” (only visually) the default &lt;code&gt;radio&lt;/code&gt; inputs:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;input[type=&quot;radio&quot;] {
+ left: -9999px;
position: absolute;
- visibility: hidden;
z-index: -1;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now to target the &lt;code&gt;label&lt;/code&gt; elements found inside the block:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Style checkbox label accordingly *&amp;#47;
-.mario-block label {
- background: #F88D2E;
- border: 4px solid #070000;
- box-shadow: inset -4px -4px 0 #965117, inset 4px 4px 0 #FAB89B;
- display: block;
- height: 100%;
- position: relative;
- width: 100%;
+&lt;p&gt;Then we give the corresponding &lt;code&gt;label&lt;/code&gt; elements a little spacing and breathing room:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;label {
+ cursor: pointer;
+ padding: 10px 20px;
+ text-align: center;
+ width: 33.33%;
+ z-index: 2;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next we style our included &lt;code&gt;.dots&lt;/code&gt; elements to be placed in the four corners of each block:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.mario-block .dot {
- background: #070000;
- height: 5px;
+&lt;p&gt;Remember that &lt;code&gt;.slide-item&lt;/code&gt; I referenced earlier? That element will be the visual “slider” that animates between the individual radio options. We style that like so:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.slide-item {
+ background: white;
+ border-radius: 9999px;
+ box-shadow: 0 2px 4px rgba(0,0,0,0.15);
+ height: calc(100% - 8px);
+ left: calc(33.33% + 4px);
position: absolute;
- width: 5px;
+ width: calc(33.33% - 8px);
+ transition: left .4s;
+ z-index: 0;
}
-.mario-block .dot:nth-child(1) {
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;You&amp;#8217;ll notice the &lt;code&gt;left&lt;/code&gt;, &lt;code&gt;height&lt;/code&gt;, and &lt;code&gt;width&lt;/code&gt; properties utilize the CSS &lt;code&gt;calc&lt;/code&gt; attributes – this just gives some much needed padding and visual clean-up to the whole tabbed interface.&lt;/p&gt;
+&lt;p&gt;For the finishing touches, we just need to tell the &lt;code&gt;.slide-item&lt;/code&gt; where to position itself based on which &lt;code&gt;radio&lt;/code&gt; input is currently selected:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;input[type=&quot;radio&quot;]:nth-of-type(1):checked ~ .slide-item {
left: 4px;
- top: 4px;
-}
-.mario-block .dot:nth-child(2) {
- right: 4px;
- top: 4px;
}
-.mario-block .dot:nth-child(3) {
- bottom: 4px;
- left: 4px;
+input[type=&quot;radio&quot;]:nth-of-type(3):checked ~ .slide-item {
+ left: calc(66.66% + 4px);
}
-.mario-block .dot:nth-child(4) {
- bottom: 4px;
- right: 4px;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;That&amp;#8217;s pretty much it! You now have a fully functional, animated toggle slider with just a set of simple &lt;code&gt;radio&lt;/code&gt; inputs and pure CSS.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/animated-toggle-tabs"/>
+ <id>https://btxx.org/posts/animated-toggle-tabs</id>
+ <updated>2021-01-05T10:00:00Z</updated>
+ <published>2021-01-05T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Audio Hotkeys on Linux Mint</title>
+ <content type="html">&lt;h1 id=&quot;audio-hotkeys-on-linux-mint&quot;&gt;Audio Hotkeys on Linux Mint&lt;/h1&gt;
+&lt;p&gt;2020-06-14&lt;/p&gt;
+&lt;p&gt;I recently switched out the OS on my old 2011 MacBook Air with Linux Mint. It&amp;#8217;s a distro I&amp;#8217;ve used a few times in the past, but never set it as one of my main daily drivers until now.&lt;/p&gt;
+&lt;p&gt;Setting up all my go-to applications (Sublime, LocalWP, Riot, Evolution, etc) was a breeze. The only snag I ran into was properly setting up the volume shortcuts on my wireless &lt;a href=&quot;https://www.amazon.com/gp/product/B01AROOL12/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=B01AROOL12&amp;amp;linkCode=as2&amp;amp;tag=uglyduck-20&amp;amp;linkId=5cfe5875a0f263b933692c381a6a88a9&quot;&gt;Logitech MK235 keyboard&lt;/a&gt;. After looking a little too long on DDG &amp;#38; even Google, I finally found &lt;a href=&quot;https://forums.linuxmint.com/viewtopic.php?t=253048&quot;&gt;this forum thread with the solution&lt;/a&gt;.&lt;/p&gt;
+&lt;p&gt;For my own personal reference, I&amp;#8217;m also going to include those code snippets here since you never know when you might need it again! And who knows, maybe this will help someone else stumbling around the internet.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;&amp;#47; Volume Up
+pactl set-sink-volume @DEFAULT_SINK@ +5%
+
+&amp;#47;&amp;#47; Volume Down
+pactl set-sink-volume @DEFAULT_SINK@ -5%
+
+&amp;#47;&amp;#47; Toggle Mute
+pactl set-sink-mute @DEFAULT_SINK@ toggle
+&lt;/code&gt;&lt;/pre&gt;</content>
+ <link href="https://btxx.org/posts/audio-hotkeys-on-linux-mint"/>
+ <id>https://btxx.org/posts/audio-hotkeys-on-linux-mint</id>
+ <updated>2020-06-14T10:00:00Z</updated>
+ <published>2020-06-14T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Aqua UI CSS Buttons</title>
+ <content type="html">&lt;h1 id=&quot;aqua-ui-css-buttons&quot;&gt;Aqua UI CSS Buttons&lt;/h1&gt;
+&lt;p&gt;2016-06-28&lt;/p&gt;
+&lt;p&gt;Though it may feel like nostalgia, the old OS design for Mac was arguably better than the current iteration (as of this writing - High Sierra). I recently designed a quick Dribbble shot showcasing how the older operating system used to have so much more character and depth.&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/aqua-ui-css-buttons.webp&quot; alt=&quot;Old macOS Buttons&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;My initial Dribbble shot, which can be found &lt;a href=&quot;https://dribbble.com/shots/4561658-Aqua-Buttons-UI&quot;&gt;here&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
+&lt;p&gt;Since I&amp;#8217;ve been wanting to dip my toes into more tutorial-based articles (maybe I&amp;#8217;ll even do some screencasts in the future), I decided to start out simple. Let&amp;#8217;s walk through how to implement these &amp;#8216;aqua&amp;#8217; UI buttons with pure CSS.&lt;/p&gt;
+&lt;h3 id=&quot;starting-with-a-basic-foundation&quot;&gt;Starting with a basic foundation&lt;/h3&gt;
+&lt;p&gt;Since this project consists of only two buttons elements, the HTML or skeleton of this project is very straightforward:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;button class=&quot;cancel&quot;&amp;#62;Cancel&amp;#60;&amp;#47;button&amp;#62;
+&amp;#60;button class=&quot;confirm&quot;&amp;#62;Confirm&amp;#60;&amp;#47;button&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;styling-the-buttons&quot;&gt;Styling the buttons&lt;/h3&gt;
+&lt;p&gt;The first step is to remove the browser&amp;#8217;s default button styling by using the &lt;code&gt;appearance&lt;/code&gt; property. This will help avoid having to fight against the browser and minimize our CSS code.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;button {
+ -webkit-appearance: none;
+ -moz-appearance: none;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;punch-able-block&quot;&gt;Punch-able block&lt;/h3&gt;
-&lt;p&gt;Now we need to include the &amp;#8220;question mark&amp;#8221; SVG and custom CSS for the interactive Mario block. You can download a copy of the custom &lt;code&gt;svg&lt;/code&gt; question mark I created.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.mario-block--question label {
+&lt;p&gt;Next, we apply a fairly simple set of CSS that will be shared across both the confirm and cancel buttons:&lt;/p&gt;
+&lt;p&gt;(Pay attention to the &lt;code&gt;transition&lt;/code&gt; property as we will be returning to that shortly)&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;button {
+ -webkit-appearance: none;
+ -moz-appearance: none;
+ border: 1px solid #ccc;
+ border-radius: 125px;
+ box-shadow: inset 0 13px 25px rgba(255,255,255,0.5), 0 3px 5px rgba(0,0,0,0.2), 0 10px 13px rgba(0,0,0,0.1);
cursor: pointer;
-}
-.mario-block--question .question-mark {
- background-image: url(&amp;#39;&amp;#47;public&amp;#47;images&amp;#47;mario-block-question-mark.svg&amp;#39;);
- background-position: center;
- background-repeat: no-repeat;
- background-size: 40px;
- bottom: 0;
- left: 0;
- position: absolute;
- right: 0;
- top: 0;
- z-index: 1;
+ font-family: &amp;#39;Lucida Grande&amp;#39;, Helvetica, Arial, sans-serif;
+ font-size: 2rem;
+ margin: 5rem 1rem;
+ padding: 1.2rem 4rem;
+ position: relative;
+ transition: all ease .3s;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;the-last-piece&quot;&gt;The last piece&lt;/h3&gt;
-&lt;p&gt;The last item we need to design is the &lt;code&gt;checked&lt;/code&gt; state of the interactive question mark block. The extra inner dark dashes will be added as &lt;code&gt;pseudo&lt;/code&gt; elements:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Mario block in `checked` state *&amp;#47;
-.mario-block input:checked + label {
- background: #885818;
- box-shadow: inset -4px -4px 0 #68400B, inset 4px 4px 0 #FAB89B;
+&lt;p&gt;Then we separate the specific confirm and cancel button styles into their own class selectors:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;button.confirm {
+ background: #4A90E2;
+ border-color: #3672B6;
+ color: #fff;
}
-&amp;#47;* Hide both the default dots and question mark svg on checked *&amp;#47;
-.mario-block input:checked + label .dot,
-.mario-block input:checked + label .question-mark {
- display: none;
+button.cancel {
+ background: #D0D0D0;
+ border-color: #B8B8B8;
+ color: #6F6F6F;
}
-
-&amp;#47;* Shared pseudo element styling *&amp;#47;
-.mario-block input:checked + label:before,
-.mario-block input:checked + label:after {
- content: &amp;#39;&amp;#39;;
- height: 20px;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;playing-with-pseudo-elements&quot;&gt;Playing with pseudo elements&lt;/h3&gt;
+&lt;p&gt;Now that the button is styled and structured with basic formatting, it&amp;#8217;s time to add that classic &amp;#8216;shine&amp;#8217; seen in the original Dribbble shot.&lt;/p&gt;
+&lt;p&gt;The cleanest way to do this is by using the &lt;code&gt;:before&lt;/code&gt; pseudo element paired with a linear-gradient background.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;button:before {
+ background: linear-gradient(rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
+ border-radius: 125px;
+ content:&amp;#39;&amp;#39;;
+ height: 50px;
+ left: 4%;
position: absolute;
- transform: rotate(45deg);
- width: 20px;
-}
-
-&amp;#47;* Right dash *&amp;#47;
-.mario-block input:checked + label:before {
- border-right: 4px solid #070000;
- right: 18px;
- top: 15px;
- transform: rotate(45deg);
+ top: 1px;
+ transition: all ease .3s;
+ width: 92%;
}
-
-&amp;#47;* Left dash *&amp;#47;
-.mario-block input:checked + label:after {
- border-left: 4px solid #070000;
- left: 18px;
- top: 15px;
- transform: rotate(-45deg);
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;adding-interaction&quot;&gt;Adding interaction&lt;/h3&gt;
+&lt;p&gt;The final step is adding the user hover interaction: (Remember that &lt;code&gt;transition&lt;/code&gt; property?)&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;button:hover {
+ box-shadow: inset 0 13px 25px rgba(255,255,255,0.8), 0 3px 5px rgba(0,0,0,0.2), 0 10px 13px rgba(0,0,0,0.2);
+ transform: scale(1.02);
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That&amp;#8217;s it!&lt;/p&gt;
-&lt;h2 id=&quot;taking-it-further&quot;&gt;Taking it further&lt;/h2&gt;
-&lt;p&gt;As always, you can take this concept and flesh it out even further. I was trying to mimic the &amp;#8220;pixel&amp;#8221; style of the original Mario games, but you could make the lighting and depth more realistic with some extra subtle gradients or &lt;code&gt;filter&lt;/code&gt; properties.&lt;/p&gt;</content>
- <link href="https://btxx.org/super-mario-blocks-css"/>
- <id>https://btxx.org/super-mario-blocks-css</id>
- <updated>2019-02-15T10:00:00Z</updated>
- <published>2019-02-15T10:00:00Z</published>
- </entry>
- <entry>
- <title>I Want to Suckless and You Can Too</title>
- <content type="html">&lt;h1 id=&quot;i-want-to-suckless-and-you-can-too&quot;&gt;I Want to Suckless and You Can Too&lt;/h1&gt;
-&lt;p&gt;2022-12-23&lt;/p&gt;
-&lt;h2 id=&quot;the-desire-to-suckless&quot;&gt;The Desire to Suckless&lt;/h2&gt;
-&lt;p&gt;While I have been happy with my &lt;a href=&quot;/alpine&quot;&gt;previous desktop setup&lt;/a&gt; using Wayland on Alpine Linux, I just couldn&amp;#8217;t shake the urge to fully embrace the &lt;a href=&quot;https://suckless.org&quot;&gt;suckless ecosystem&lt;/a&gt;. Although, this meant ditching Wayland and returning to X11, which is apparently the new &amp;#8220;cool thing to hate&amp;#8221; in Linux land. At least, that&amp;#8217;s what I&amp;#8217;ve seen online lately.&lt;/p&gt;
-&lt;p&gt;But I&amp;#8217;m getting ahead of myself&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;what-is-suckless&quot;&gt;What is Suckless?&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;m not going to spend too much time repeating what you can &lt;a href=&quot;https://suckless.org/philosophy/&quot;&gt;already read on the suckless.org website itself&lt;/a&gt;, but in a nutshell:&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;Software with a focus on simplicity, clarity, and frugality.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;The developers also pride themselves on catering to &lt;em&gt;advanced and experienced computer users&lt;/em&gt;, which is actually a refreshing take in my opinion. There are enough pre-existing open source solutions for non-technical or average Linux users looking for a desktop system. Having an option that requires users to deep-dive into the code, compile the programs manually, and better understand the software they are running is a welcome addition.&lt;/p&gt;
-&lt;p&gt;This process of &amp;#8220;owing your software&amp;#8221; was one of the core concepts that initially grabbed my attention. I&amp;#8217;ve always been mildly mediocre at reading and writing C (ie. enough to be dangerous), so the thought of jumping head first into a system that would require me to better learn that language was tempting[^1]. And that temptation was enough to give it a shot!&lt;/p&gt;
-&lt;h2 id=&quot;lets-get-started&quot;&gt;Let&amp;#8217;s Get Started&lt;/h2&gt;
-&lt;p&gt;So I made my decision. I would (at the very least) &lt;em&gt;try&lt;/em&gt; switching my daily driver over to a completely &amp;#8220;suckless&amp;#8221; system. But I was immediately faced with my first obstacle: &lt;em&gt;which distro should I use&lt;/em&gt;?&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m sure many would suggest Gentoo, since it follows the principles of suckless more than any other distribution on the market. But I don&amp;#8217;t hate myself enough to go down that insane rabbit-hole. I&amp;#8217;m hardly advanced enough to take on such a steep challenge, not to mention my plan was to build out a &amp;#8220;setup script&amp;#8221; so others could roll their own suckless build. Something like that looked daunting under Gentoo. Maybe in the future&amp;#8230;&lt;/p&gt;
-&lt;p&gt;So what&amp;#8217;s left? Void? Arch? Something fresh, like Metis? I really didn&amp;#8217;t know the &amp;#8220;best&amp;#8221; choice. Maybe there were just &lt;em&gt;too many&lt;/em&gt; options? &lt;/p&gt;
-&lt;p&gt;Luckily, I did know of a distro that was my go-to for most projects&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;trying-alpine&quot;&gt;Trying Alpine&lt;/h2&gt;
-&lt;p&gt;Alpine Linux is one of the best distributions available. If you disagree, you clearly haven&amp;#8217;t achieved galaxy-brain levels of intelligence and I feel sorry for you[^2].&lt;/p&gt;
-&lt;p&gt;Having just rolled my own &lt;a href=&quot;https://git.sr.ht/~bt/alpine-linux-setup&quot;&gt;installer script&lt;/a&gt; for Wayland&amp;#47;Sway on Alpine, I figured why not piggyback off that existing project? Work smart not hard, right? So I started putting together an absolute &lt;em&gt;bare minimum&lt;/em&gt; list of requirements I needed to get a proper desktop system running:&lt;/p&gt;
+&lt;h3 id=&quot;see-it-live-on-codepen&quot;&gt;See it live on CodePen&lt;/h3&gt;
+&lt;p&gt;You can view this project on CodePen here.&lt;/p&gt;
+&lt;p&gt;Feel free to fork it or implement your own!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/aui"/>
+ <id>https://btxx.org/posts/aui</id>
+ <updated>2016-06-28T10:00:00Z</updated>
+ <published>2016-06-28T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>A Warning for New Designers: Avoid Dribbble</title>
+ <content type="html">&lt;h1 id=&quot;a-warning-for-new-designers-avoid-dribbble&quot;&gt;A Warning for New Designers: Avoid Dribbble&lt;/h1&gt;
+&lt;p&gt;2022-09-08&lt;/p&gt;
+&lt;p&gt;Everyday a new designer begins their journey into the world of [&lt;em&gt;insert design industry here&lt;/em&gt;] and it is magical! Having a fresh pair of eyes untainted from the current trends of the time can help improve design as a whole. Newbies can even teach new things to older, grumpier luddites (like yours truly). But over the years I&amp;#8217;ve noticed a concerning trend among junior designers; &lt;strong&gt;they rely too heavily on Dribbble&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;Relying on Dribbble for minor inspiration is one thing. Referencing &amp;#8220;shots&amp;#8221; as justification for real-world design work? Not so much. I believe Dribbble shouldn&amp;#8217;t be used for either of these use cases, but I can at least give a pass at browsing for basic inspiration (colors, padding, layout).&lt;/p&gt;
+&lt;p&gt;Now, using concept shots to push for your own design decisions? That is a terrible idea. We &amp;#8220;senior&amp;#8221; designers need to step up and help newbies avoid this trap.&lt;/p&gt;
+&lt;h3 id=&quot;designing-for-other-designers&quot;&gt;Designing for Other Designers&lt;/h3&gt;
+&lt;p&gt;Dribbble is rarely a place for design feedback and discussion anymore. Hell, most people use it as a digital portfolio to share with prospective clients. Others use it like some form of &amp;#8220;design Linkedin&amp;#8221;, which has its own host of problems.&lt;/p&gt;
+&lt;p&gt;Dribble is now (mainly) a place where designers post &amp;#8220;work&amp;#8221; for other designers. There &lt;em&gt;is&lt;/em&gt; a small minority of users still looking for real, human feedback on their work - but they are a rarity.&lt;/p&gt;
+&lt;p&gt;Take a look at the &lt;a href=&quot;https://dribbble.com/shots/popular&quot;&gt;popular shots&lt;/a&gt; category at any give time. Most shots are promo pieces used to attract potential clients. Nearly all design concepts are impractical or simply impossible to create in a real-life setting. This is incredibly damaging to newcomers trying to learn &amp;#8220;good&amp;#8221; design practices. Dribbble shots simply ride the wave of the current trends, which doesn&amp;#8217;t provide junior designers with a solid foundation or core understanding of design as a whole. It just causes them to endlessly chase the &amp;#8220;latest and greatest&amp;#8221; trend.&lt;/p&gt;
+&lt;p&gt;Shot posters rarely go into the reasoning behind their design decisions. No research or iterations are shared to show the process. Instead it simply states &amp;#8220;here is a cool website layout for a company that doesn&amp;#8217;t exist&amp;#8221;. Zero constraints or goals needed to be met. No discussion about how one version of their design didn&amp;#8217;t perform as well when tested on real users. So of course it ends up looking &lt;em&gt;so cool and original&lt;/em&gt; - &lt;strong&gt;it wasn&amp;#8217;t designed in reality&lt;/strong&gt;.&lt;/p&gt;
+&lt;h3 id=&quot;i-dont-have-all-the-answers---but-ill-try&quot;&gt;I Don&amp;#8217;t Have All the Answers - But I&amp;#8217;ll Try&lt;/h3&gt;
+&lt;p&gt;I am not the holy savior of &lt;em&gt;all things design&lt;/em&gt;. I&amp;#8217;m just a designer who has been around the block a few times. If new designers want to keep using Dribbble as their main source of guidance and think I should go kick rocks - that&amp;#8217;s fine. I will. But for those with a little more passion for the profession, might I suggest some humble alternatives to get you on a more consistent path?&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;working suspend&amp;#47;awake&lt;/li&gt;
-&lt;li&gt;working audio&lt;/li&gt;
-&lt;li&gt;working wifi&amp;#47;networking&lt;/li&gt;
-&lt;li&gt;reduced screen tearing (X11 gave me problems in the past with this)&lt;/li&gt;
+&lt;li&gt;Read some good design books (to get you started):
+&lt;ul&gt;
+&lt;li&gt;&lt;a href=&quot;https://sensible.com/dont-make-me-think/&quot;&gt;Don&amp;#8217;t Make Me Think - Revisited&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/The_Design_of_Everyday_Things&quot;&gt;The Design of Everyday Things&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://www.edwardtufte.com/tufte/books_vdqi&quot;&gt;The Visual Display of Quantitative Information&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://www.amazon.ca/Dieter-Rams-Less-But-Better/dp/3899555252&quot;&gt;Less But Better&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Talk to &lt;em&gt;real&lt;/em&gt; people
+&lt;ul&gt;
+&lt;li&gt;Chat with your team&amp;#8217;s marketers, customer support specialists, senior design leads, and developers about new features (they often have better insights than you)&lt;/li&gt;
+&lt;li&gt;Perform customer interviews early and often (they use your product or service - let them tell you what they want!)&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;R ad through some quality UX reports and research
+&lt;ul&gt;
+&lt;li&gt;&lt;a href=&quot;https://www.nngroup.com/&quot;&gt;Nielsen Norman Group&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://baymard.com/&quot;&gt;Baymard Institute&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;P y attention to real world design (good and bad)
+&lt;ul&gt;
+&lt;li&gt;Grocery item designs, labels packaging&lt;/li&gt;
+&lt;li&gt;Vehicle analog and digital dashboards &amp;#47; safety features&lt;/li&gt;
+&lt;li&gt;Warning and safety labeling (great for universal and minimal design inspiration)&lt;/li&gt;
+&lt;li&gt;Government websites and applications (notoriously terrible - great for &amp;#8220;what not to do&amp;#8221; examples)&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Your own experience (over time)&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;As you can see, I have very low expectations. But there were issues&amp;#8230;.&lt;/p&gt;
+&lt;p&gt;These are just my own suggestions to help new designers get a better foundation of core design concepts &lt;em&gt;before&lt;/em&gt; falling down the Dribbble hole. Take it or leave it. I&amp;#8217;m not your dad.&lt;/p&gt;
+&lt;p&gt;Most designers who are pro-Dribbble will most likely write me off as a grumpy old man yelling at a cloud. That&amp;#8217;s only half true. But if just one person reading this even &lt;em&gt;considers&lt;/em&gt; avoiding Dribbble as a source for learning proper design - then it was worth it.&lt;/p&gt;
+&lt;p&gt;Now if you will excuse me, there are many more clouds to yell at&amp;#8230;&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/avoid"/>
+ <id>https://btxx.org/posts/avoid</id>
+ <updated>2022-09-08T10:00:00Z</updated>
+ <published>2022-09-08T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Base64 All The Things! (Sometimes)</title>
+ <content type="html">&lt;h1 id=&quot;base64-all-the-things-sometimes&quot;&gt;Base64 All The Things! (Sometimes)&lt;/h1&gt;
+&lt;p&gt;2020-03-18&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;An extremely overlooked process for displaying fonts&lt;/em&gt;, images, documents, spreadsheets, etc. on the web is the use of &lt;strong&gt;base64 encoding&lt;/strong&gt;. Although it may not be the most efficient (or easy) way to display and include these elements it can be a lifesaver in certain situations.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/base64-all-the-things"/>
+ <id>https://btxx.org/posts/base64-all-the-things</id>
+ <updated>2020-03-18T10:00:00Z</updated>
+ <published>2020-03-18T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Basic Gulp Build for Sass</title>
+ <content type="html">&lt;h1 id=&quot;basic-gulp-build-for-sass&quot;&gt;Basic Gulp Build for Sass&lt;/h1&gt;
+&lt;p&gt;2019-01-15&lt;/p&gt;
+&lt;p&gt;Some designers might shy away from build tools when first starting out and I can understand the reasoning - task runners like &lt;code&gt;gulp&lt;/code&gt; and &lt;code&gt;grunt&lt;/code&gt; can seem daunting at first. So, I&amp;#8217;ve decided to showcase my go-to setup for &lt;code&gt;gulp&lt;/code&gt; and explain what the heck it does step-by-step. &lt;/p&gt;
+&lt;p&gt;Here is the final &lt;code&gt;gulp.js&lt;/code&gt; file in all it&amp;#8217;s glory:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;var gulp = require(&amp;#39;gulp&amp;#39;);
+var shell = require(&amp;#39;gulp-shell&amp;#39;);
+var sass = require(&amp;#39;gulp-sass&amp;#39;);
+
+&amp;#47;* Build and watch Jekyll (change this task to whatever you need) *&amp;#47;
+gulp.task(&amp;#39;generate&amp;#39;, shell.task(&amp;#39;jekyll serve&amp;#39;));
+
+&amp;#47;* Compile SCSS files to CSS *&amp;#47;
+gulp.task(&amp;#39;styles&amp;#39;, function () {
+ return gulp.src(&amp;#39;_includes&amp;#47;assets&amp;#47;sass&amp;#47;styles.scss&amp;#39;)
+ .pipe(sass({
+ outputStyle: &amp;#39;compressed&amp;#39;
+ }).on(&amp;#39;error&amp;#39;, sass.logError))
+ .pipe(gulp.dest(&amp;#39;_includes&amp;#47;assets&amp;#47;css&amp;#47;&amp;#39;));
+});
+
+&amp;#47;* Compile the assets *&amp;#47;
+gulp.task(&amp;#39;assets&amp;#39;, gulp.parallel(
+ &amp;#39;styles&amp;#39;
+));
+
+&amp;#47;* Build *&amp;#47;
+gulp.task(&amp;#39;build&amp;#39;, gulp.series(
+ &amp;#39;assets&amp;#39;,
+ &amp;#39;generate&amp;#39;
+));
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Trust me, it&amp;#8217;s not complicated at all.&lt;/p&gt;
+&lt;h2 id=&quot;grabbing-what-we-need&quot;&gt;Grabbing what we need&lt;/h2&gt;
+&lt;p&gt;For our basic build file we are going to need only three modules: &lt;code&gt;gulp&lt;/code&gt;, &lt;code&gt;gulp-shell&lt;/code&gt; and &lt;code&gt;gulp-sass&lt;/code&gt;.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;var gulp = require(&amp;#39;gulp&amp;#39;);
+var shell = require(&amp;#39;gulp-shell&amp;#39;);
+var sass = require(&amp;#39;gulp-sass&amp;#39;);
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h4 id=&quot;gulp&quot;&gt;gulp&lt;/h4&gt;
+&lt;p&gt;This is the streaming build system, without it we can&amp;#8217;t do anything else.&lt;/p&gt;
+&lt;h4 id=&quot;gulp-shell&quot;&gt;gulp-shell&lt;/h4&gt;
+&lt;p&gt;A gulp command line interface for us to interact with our terminal.&lt;/p&gt;
+&lt;h4 id=&quot;gulp-sass&quot;&gt;gulp-sass&lt;/h4&gt;
+&lt;p&gt;Required for gulp to compile Sass into vanilla CSS.&lt;/p&gt;
+&lt;h4 id=&quot;bonus-tasks&quot;&gt;Bonus tasks&lt;/h4&gt;
+&lt;h2 id=&quot;generating-the-build&quot;&gt;Generating the build&lt;/h2&gt;
+&lt;p&gt;Our first step is to create the default task that will generate our build. In this example we are making the assumption that we&amp;#8217;re building a Jekyll website (but you can place any build command here):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;gulp.task(&amp;#39;generate&amp;#39;, shell.task(&amp;#39;jekyll serve&amp;#39;));
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Don&amp;#8217;t worry if this &lt;code&gt;generate&lt;/code&gt; isn&amp;#8217;t clear, we come back to that later.&lt;/p&gt;
+&lt;h2 id=&quot;processing-our-pre-processor&quot;&gt;Processing our pre-processor&lt;/h2&gt;
+&lt;p&gt;We will name this next task &lt;code&gt;styles&lt;/code&gt; since that&amp;#8217;s what it outputs - our styling. We start by telling gulp where our main &lt;code&gt;scss&lt;/code&gt; directory is:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Change this directory to match yours *&amp;#47;
+return gulp.src(&amp;#39;_includes&amp;#47;assets&amp;#47;sass&amp;#47;styles.scss&amp;#39;)
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;This next piece tells the plugin to compress our final compiled CSS, log any errors if there are issues with the build and then export it to our destination directory:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.pipe(sass({
+ outputStyle: &amp;#39;compressed&amp;#39;
+}).on(&amp;#39;error&amp;#39;, sass.logError))
+
+&amp;#47;* Change this to your destination directory *&amp;#47;
+.pipe(gulp.dest(&amp;#39;_includes&amp;#47;assets&amp;#47;css&amp;#47;&amp;#39;));
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;building-our-assets&quot;&gt;Building our assets&lt;/h2&gt;
+&lt;p&gt;This step isn&amp;#8217;t 100% needed, but I like to include it for when more assets need to be added (minifying JavaScript, compressing images, etc)&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;*
+Compile the assets
+*&amp;#47;
+gulp.task(&amp;#39;assets&amp;#39;, gulp.parallel(
+ &amp;#39;styles&amp;#39;
+));
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;altogether-now&quot;&gt;Altogether now!&lt;/h2&gt;
+&lt;p&gt;Now we add a task that runs all other tasks in our gulp file (in this case it will run both &lt;code&gt;assets&lt;/code&gt; and &lt;code&gt;generate&lt;/code&gt;)&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;*
+Build
+*&amp;#47;
+gulp.task(&amp;#39;build&amp;#39;, gulp.series(
+ &amp;#39;assets&amp;#39;,
+ &amp;#39;generate&amp;#39;
+));
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;And that&amp;#8217;s it - we&amp;#8217;re done! A very basic &lt;code&gt;gulp&lt;/code&gt; build for compiling Sass.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/basic-gulp-build-for-sass"/>
+ <id>https://btxx.org/posts/basic-gulp-build-for-sass</id>
+ <updated>2019-01-15T10:00:00Z</updated>
+ <published>2019-01-15T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Batch Converting Images to webp with macOS Automator</title>
+ <content type="html">&lt;h1 id=&quot;batch-converting-images-to-webp-with-macos-automator&quot;&gt;Batch Converting Images to webp with macOS Automator&lt;/h1&gt;
+&lt;p&gt;2021-10-15&lt;/p&gt;
+&lt;p&gt;A great deal of my time working as a web&amp;#47;UI designer is spent exporting and&amp;#47;or converting images for software products and websites. Although a lot of modern applications can render image conversions at build time, a custom conversion is sometimes requested for an image to be set as &lt;code&gt;webp&lt;/code&gt;.&lt;/p&gt;
+&lt;p&gt;You &lt;em&gt;could&lt;/em&gt; download one of the many native apps from the Mac App Store to do this for you - but why not create your own script and run it with a simple right-click directly inside Finder? &lt;strong&gt;Let&amp;#8217;s do just that!&lt;/strong&gt;&lt;/p&gt;
+&lt;h2 id=&quot;basic-requirements&quot;&gt;Basic requirements&lt;/h2&gt;
+&lt;p&gt;&lt;strong&gt;Important!&lt;/strong&gt;: As of this time of writing, the official &lt;code&gt;libwebp&lt;/code&gt; package release is &lt;em&gt;libwebp-1.2.1-mac-10.15&lt;/em&gt;. If this has been updated since then, change the command below to match that of the proper release version.&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;I could not build my blog locally (built via Jekyll) since the &lt;code&gt;sass-embedded&lt;/code&gt; dependencies has not been built against musl-libc.&lt;/li&gt;
-&lt;li&gt;VSCodium would require the extra &amp;#8220;bloat&amp;#8221; of the flatpak manager (not to mention the spotty support some applications have through flatpak&amp;#47;snap).&lt;/li&gt;
-&lt;li&gt;The distro&amp;#47;system &lt;em&gt;feels&lt;/em&gt; like it was better designed with Wayland in mind. Too often I felt like I was losing an uphill battle wrestling against Alpine.&lt;/li&gt;
+&lt;li&gt;First you will need to download the &lt;code&gt;libwebp&lt;/code&gt; package to your Downloads folder: &lt;a href=&quot;https://developers.google.com/speed/webp/download&quot;&gt;developers.google.com&amp;#47;speed&amp;#47;webp&amp;#47;download&lt;/a&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;em&gt;Look for the &amp;#8220;Download for macOS link&amp;#8221;&lt;/em&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Next we will need to copy the &lt;code&gt;cwebp&lt;/code&gt; folder to our &lt;code&gt;&amp;#47;usr&amp;#47;local&amp;#47;bin&lt;/code&gt; directory:
+&lt;ul&gt;
+&lt;li&gt;Open macOS Terminal&lt;/li&gt;
+&lt;li&gt;Run &lt;code&gt;sudo cp &amp;#47;Downloads&amp;#47;libwebp-1.2.1-mac-10.15&amp;#47;bin&amp;#47;cwebp &amp;#47;usr&amp;#47;local&amp;#47;bin&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;&lt;em&gt;Note:&lt;/em&gt; if the &lt;code&gt;&amp;#47;usr&amp;#47;local&amp;#47;bin&lt;/code&gt; directory doesn&amp;#8217;t exist, simply create it by running: &lt;code&gt;sudo cd &amp;#47;usr&amp;#47;local &amp;#38;&amp;#38; mkdir bin&lt;/code&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
&lt;/ol&gt;
-&lt;h2 id=&quot;getting-sucked-into-the-void&quot;&gt;Getting Sucked into the Void&lt;/h2&gt;
-&lt;p&gt;After mentioning my struggles on Mastodon, some &lt;a href=&quot;https://fosstodon.org/@tdarb/109554576434981872&quot;&gt;helpful friends suggested taking a look at Void&lt;/a&gt;. I always knew of the project but never used it as a &amp;#8220;daily driver&amp;#8221;. Since this was overall one &lt;em&gt;large&lt;/em&gt; experiment, I figured I&amp;#8217;d give it a shot.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m glad I did. Void Linux is &lt;em&gt;pretty great&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;The installer seemed more complex than Alpine at first, but I found an excellent walkthrough &lt;a href=&quot;https://linuxiac.com/void-linux-installation/&quot;&gt;here&lt;/a&gt; (which I was more beginner-friendly than the official docs). Once everything was set, it was time to run my suckless &amp;#8220;installer&amp;#8221;.&lt;/p&gt;
-&lt;h2 id=&quot;introducing-void-suck&quot;&gt;Introducing void-suck&lt;/h2&gt;
-&lt;p&gt;If you don&amp;#8217;t care about the nitty-gritty details, feel free to just jump over to the &lt;a href=&quot;https://git.sr.ht/~bt/void-suck&quot;&gt;void-suck repo on scourehut&lt;/a&gt; and read through the code yourself. There is nothing groundbreaking here. A huge inspiration came from &lt;a href=&quot;https://github.com/mad-ara/void-rice&quot;&gt;mad-ara&amp;#8217;s &amp;#8220;void-rice&amp;#8221; project on Github&lt;/a&gt; - so a big thanks to him for making that project in the first place!&lt;/p&gt;
-&lt;p&gt;You can find the basic instructions in the README of the project itself, but it pulls in just the required dependencies along with my own custom suckless tools. You can easily swap out these with your own or simply default to the standard ones provided by &lt;a href=&quot;https://suckless.org&quot;&gt;suckless.org&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;Everything &lt;em&gt;should&lt;/em&gt; work out of the box, but in case it doesn&amp;#8217;t please &lt;a href=&quot;https://todo.sr.ht/~bt/void-suck&quot;&gt;open a ticket&lt;/a&gt; or &lt;a href=&quot;https://lists.sr.ht/~bt/void-suck&quot;&gt;submit a patch&lt;/a&gt;. I&amp;#8217;m certain I overlooked some items!&lt;/p&gt;
-&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
-&lt;p&gt;We&amp;#8217;ll see how things go. So far I&amp;#8217;m enjoying my time with a much simpler desktop and the &amp;#8220;forced&amp;#8221; push towards getting better with C is an added bonus. I still love Alpine, but Void is slowly winning me over&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;h2 id=&quot;creating-our-custom-automator-script&quot;&gt;Creating our custom Automator script&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;I find this to be the best way to learn new things. Reading technical books are helpful, but concepts never stick with me unless I am forced to implement them.&lt;/li&gt;
-&lt;li&gt;This is a joke. Alpine is certainly not for everyone. There are many more &amp;#8220;fully featured&amp;#8221; distros available and everyone should use what they enjoy! Try not to take my blog posts so seriously&amp;#8230;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Open the macOS Automator from the Applications folder&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Select &lt;code&gt;Quick Option&lt;/code&gt; from the first prompt&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Set &amp;#8220;Workflow receives current&amp;#8221; to &lt;code&gt;image files&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Set the label &amp;#8220;in&amp;#8221; to &lt;code&gt;Finder&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;From the left pane, select &amp;#8220;Library &amp;#62; Utilities&amp;#8221;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;From the presented choices in the next pane, drag and drop &lt;code&gt;Run Shell Script&lt;/code&gt; into the far right pane&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Set the area &amp;#8220;Pass input&amp;#8221; to &lt;code&gt;as arguments&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Enter the following code below as your script and type &lt;code&gt;⌘-S&lt;/code&gt; to save (name it something like &amp;#8220;Convert to webp&amp;#8221;)&lt;/p&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;pre&gt;&lt;code&gt;for f in &quot;$@&quot;
+do
+&amp;#47;usr&amp;#47;local&amp;#47;bin&amp;#47;cwebp -q 85 &quot;$f&quot; -o &quot;${f%.*}.webp&quot;
+done
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;For visual reference, it should look something like this:&lt;/p&gt;
+&lt;p&gt;And when right-clicking an image file in the Finder window, it should now give you the option to convert:&lt;/p&gt;
+&lt;h2 id=&quot;making-edits-to-your-script&quot;&gt;Making edits to your script&lt;/h2&gt;
+&lt;p&gt;If you ever have the need to edit this script (for example, changing the default &lt;code&gt;85&lt;/code&gt; quality parameter), you will need to navigate to your &lt;code&gt;~&amp;#47;Library&amp;#47;Services&lt;/code&gt; folder and open your custom webp Quick Action in the Automator application. &lt;/p&gt;
+&lt;p&gt;Simple as that!&lt;/p&gt;
+&lt;h2 id=&quot;possible-hiccups&quot;&gt;Possible Hiccups&lt;/h2&gt;
+&lt;p&gt;I was contacted by the very helpful &lt;a href=&quot;https://kevq.uk&quot;&gt;Kev Quirk&lt;/a&gt; about a minor problem he encountered while following this tutorial. When trying to run &lt;code&gt;cwebp&lt;/code&gt; he received the following error message:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;cwebp cannot be opened because it&amp;#39;s from an unverified developer
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Doing the next steps seemed to have fixed this issue for him:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Click on the &amp;#8220;Open in Finder&amp;#8221; in the error message prompt&lt;/li&gt;
+&lt;li&gt;Double-click on the &lt;code&gt;cwebp&lt;/code&gt; utility to open in Terminal&lt;/li&gt;
+&lt;li&gt;You&amp;#8217;ll then be prompted with a pop-up asking if you wish to execute&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;After following these steps, the issue should be resolved.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/batch-webp-conversion"/>
+ <id>https://btxx.org/posts/batch-webp-conversion</id>
+ <updated>2021-10-15T10:00:00Z</updated>
+ <published>2021-10-15T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Improving Laptop Battery Performance on OpenBSD</title>
+ <content type="html">&lt;h1 id=&quot;improving-laptop-battery-performance-on-openbsd&quot;&gt;Improving Laptop Battery Performance on OpenBSD&lt;/h1&gt;
+&lt;p&gt;2023-06-13&lt;/p&gt;
+&lt;p&gt;It is no secret that OpenBSD has poor battery performance on laptops. Although not as impressive as something like Alpine Linux or FreeBSD, you can tweak OpenBSD &lt;em&gt;just enough&lt;/em&gt; to squeeze more life out of your machine&amp;#8217;s battery.&lt;/p&gt;
+&lt;h2 id=&quot;our-new-best-friend-&quot;&gt;Our New Best Friend: &lt;code&gt;ampd&lt;/code&gt;&lt;/h2&gt;
+&lt;p&gt;I won&amp;#8217;t go into great detail about &lt;code&gt;ampd&lt;/code&gt; here - that&amp;#8217;s what the incredible &lt;a href=&quot;https://man.openbsd.org/apmd&quot;&gt;documentation is for&lt;/a&gt;. You&amp;#8217;ll want to make sure to start it before trying to configure it:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;doas rcctl start apmd
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;If already running in a live session, you can default to &lt;code&gt;-A&lt;/code&gt; (auto) but I suggest setting cpu performance to low:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;apm -L
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;To make these changes permanent on boot:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;doas rcctl set apmd flags -L
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Optimizating battery life via &lt;code&gt;ampd&lt;/code&gt; will have the most noticable impact but you can improve things even further by implementing some extra &amp;#8220;small&amp;#8221; performance wins.&lt;/p&gt;
+&lt;h2 id=&quot;small-performance-wins&quot;&gt;Small Performance Wins&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;Reduce your screen&amp;#8217;s brightness (&lt;code&gt;xbacklight -set 50&lt;/code&gt;)&lt;/li&gt;
+&lt;li&gt;Use a lightweight window manager instead of a beefer desktop environment&lt;/li&gt;
+&lt;li&gt;Enable battery saving options in your system BIOS (if available)&lt;/li&gt;
+&lt;li&gt;Disable the fingerprint scanner and bluetooth in your system BIOS (if available)&lt;/li&gt;
+&lt;li&gt;Use utilities such as &lt;code&gt;mpv&lt;/code&gt; and &lt;code&gt;ffmpeg&lt;/code&gt; for media consumption&lt;/li&gt;
+&lt;li&gt;Reduce the number of open applications at any given time&lt;/li&gt;
&lt;/ol&gt;</content>
- <link href="https://btxx.org/suckless"/>
- <id>https://btxx.org/suckless</id>
- <updated>2022-12-23T10:00:00Z</updated>
- <published>2022-12-23T10:00:00Z</published>
- </entry>
- <entry>
- <title>Launching Sublime Text with dmenu on Alpine Linux</title>
- <content type="html">&lt;h1 id=&quot;launching-sublime-text-with-dmenu-on-alpine-linux&quot;&gt;Launching Sublime Text with dmenu on Alpine Linux&lt;/h1&gt;
-&lt;p&gt;2023-04-13&lt;/p&gt;
-&lt;p&gt;Everyone seems to be running some version of VSCode as their main editor these days. But not me. I find VSCode to be too bloated for my needs - not to mention being built on top of electron instead of &lt;em&gt;native&lt;/em&gt; code. I prefer running programs that don&amp;#8217;t try to devour all of my machine&amp;#8217;s available memory or spike my CPU.&lt;/p&gt;
+ <link href="https://btxx.org/posts/battery"/>
+ <id>https://btxx.org/posts/battery</id>
+ <updated>2023-06-13T10:00:00Z</updated>
+ <published>2023-06-13T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Being More Efficient as a Designer and Developer</title>
+ <content type="html">&lt;h1 id=&quot;being-more-efficient-as-a-designer-and-developer&quot;&gt;Being More Efficient as a Designer and Developer&lt;/h1&gt;
+&lt;p&gt;2019-09-28&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;I recently began working on a small side project&lt;/em&gt; (a marketing site &amp;#47; blog for an upcoming UX book I&amp;#8217;m writing, but I have nothing to promote yet - sorry) and found myself circling around different static site generators (SSG) in the initial design concepts. The thought of learning an entirely new blogging platform was inspiring and seemed like a good excuse to expand my skillset.&lt;/p&gt;
+&lt;p&gt;Although I&amp;#8217;ve used 11ty and Hugo in the past for client work, this personal website runs on Jekyll. I&amp;#8217;m very familiar with Jekyll and can push out a point-of-concept site in a flash with little-to-no effort. So, why was I looking to jump into a SSG I hadn&amp;#8217;t used before? &lt;/p&gt;
+&lt;p&gt;And that got me thinking&amp;#8230; &lt;strong&gt;Why am I moving away from being efficient?&lt;/strong&gt;&lt;/p&gt;
+&lt;h2 id=&quot;before-we-begin&quot;&gt;Before we begin&amp;#8230;&lt;/h2&gt;
+&lt;p&gt;I should preface everything else I&amp;#8217;m going to mention in this post with this: &lt;em&gt;learning new stuff is awesome&lt;/em&gt;. You should expand your knowledge as much as you can, no matter what industry you find yourself in. I&amp;#8217;ve found it to be a great catalyst for boosting my passion in design and development.&lt;/p&gt;
+&lt;p&gt;Okay, I&amp;#8217;ve made it clear that learning is important to the growth of your career - so please keep that in mind before you read my next statement:&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Just use what you already know.&lt;/strong&gt;&lt;/p&gt;
+&lt;p&gt;By using your current experience (maybe even expertise) with a design system, CSS framework, blogging platform, programming language, etc. you can get something &lt;em&gt;built&lt;/em&gt;. Not to mention you can get that thing built in a &lt;em&gt;fraction of the time&lt;/em&gt;. After all, building things is kind of the point of being a designer (or developer), right?&lt;/p&gt;
+&lt;p&gt;My current side project may be a slight edge case in this regard. Since it&amp;#8217;s a personal &amp;#8220;dev&amp;#8221; website, most of the tech stack choices comes down to personal preference - not client requirements. But I believe my point still remains: you shouldn&amp;#8217;t reach for something new and shiny &lt;em&gt;just because&lt;/em&gt; it&amp;#8217;s new and shiny.&lt;/p&gt;
+&lt;h2 id=&quot;some-vague-examples&quot;&gt;Some vague examples&lt;/h2&gt;
+&lt;p&gt;It might be easier to understand what I mean by using some possible real-world examples:&lt;/p&gt;
+&lt;table&gt;
+&lt;thead&gt;
+&lt;tr&gt;
+&lt;th&gt;Problem&lt;/th&gt;
+&lt;th&gt;New Way&lt;/th&gt;
+&lt;th&gt;Efficient Way&lt;/th&gt;
+&lt;/tr&gt;
+&lt;/thead&gt;
+&lt;tbody&gt;
+&lt;tr&gt;
+&lt;td&gt;A local bakery needs product and e-cart functionality&lt;/td&gt;
+&lt;td&gt;Learn a new custom ecommerce platform&lt;/td&gt;
+&lt;td&gt;Use a popular pre-existing library you&amp;#8217;re familiar with&lt;/td&gt;
+&lt;/tr&gt;
+&lt;tr&gt;
+&lt;td&gt;Create an add-on blog for a medical clinic&lt;/td&gt;
+&lt;td&gt;Try a custom built static site generator and hook in a git-based CMS&lt;/td&gt;
+&lt;td&gt;Spin up a quick WordPress site and hand-off&lt;/td&gt;
+&lt;/tr&gt;
+&lt;tr&gt;
+&lt;td&gt;UI mockups for a workout iOS app&lt;/td&gt;
+&lt;td&gt;Test out the newest design tool just released&lt;/td&gt;
+&lt;td&gt;Use your go-to default design tool you (Sketch, Figma, etc)&lt;/td&gt;
+&lt;/tr&gt;
+&lt;/tbody&gt;
+&lt;/table&gt;
+&lt;p&gt;I know all of this is very much &amp;#8220;common sense&amp;#8221;, but you would be surprised how often we reach out for the latest and greatest tools (we are creative problem-solvers, after-all). If a current project allots you the time to learn a new skillset alongside outputting a quality product - then more power to you. In my experience that&amp;#8217;s a rare luxury, so my advice is to focus on shipping quality work (whether that&amp;#8217;s code, design, analytics, content, etc) instead of getting caught up in the &amp;#8220;new and shiny&amp;#8221;.&lt;/p&gt;
+&lt;h2 id=&quot;but-wait-how-when-do-i-learn-new-things&quot;&gt;But wait, how &amp;#47; when do I learn new things?&lt;/h2&gt;
+&lt;p&gt;It isn&amp;#8217;t exactly ground breaking to state that you should keep things simple as a developer. There are probably hundreds of posts on the web advocating for the exact same thing - which is good. At the same time, we as designers and developers need to avoid stagnation - something that can happen all too easily.&lt;/p&gt;
+&lt;p&gt;So how do we learn new things? This is a hard thing to answer. Really, the best response would be: &lt;strong&gt;it depends on the designer &amp;#47; developer&lt;/strong&gt;. I know, &lt;em&gt;what a cop-out&lt;/em&gt;. Unfortunately, it&amp;#8217;s true. There is no one solution to learning anything new.&lt;/p&gt;
+&lt;p&gt;The best I can do is offer up some possible options:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Learn outside of work
+&lt;ul&gt;
+&lt;li&gt;Reading &amp;#47; listening to a technical book on your commute or before bed&lt;/li&gt;
+&lt;li&gt;Take an online course you can work on after hours&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Contribute to an open source project that you aren&amp;#8217;t familiar with but are interested in
+&lt;ul&gt;
+&lt;li&gt;Even tiny contributions go a long way, don&amp;#8217;t doubt yourself so much&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Ask your current company (if not a freelancer that is) to learn on their time
+&lt;ul&gt;
+&lt;li&gt;It&amp;#8217;s a valid argument that your company should have vested interest in you becoming a better developer &amp;#47; designer&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;easier-said-than-done&quot;&gt;Easier said than done&lt;/h2&gt;
+&lt;p&gt;Sometimes, even the suggestions above don&amp;#8217;t work for certain individuals. Life is hectic and other important things can pop-up taking precedence. Don&amp;#8217;t let it get you down - there are more important things in life than mastering the newest framework that released 25 minutes ago.&lt;/p&gt;
+&lt;p&gt;My motto is to keep shipping quality products that you actually give a shit about. Otherwise it doesn&amp;#8217;t matter how &amp;#8220;new&amp;#8221; it is.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/being-efficient"/>
+ <id>https://btxx.org/posts/being-efficient</id>
+ <updated>2019-09-28T10:00:00Z</updated>
+ <published>2019-09-28T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Hosting with Codeberg Pages</title>
+ <content type="html">&lt;h1 id=&quot;hosting-with-codeberg-pages&quot;&gt;Hosting with Codeberg Pages&lt;/h1&gt;
+&lt;p&gt;2022-07-29&lt;/p&gt;
+&lt;p&gt;I recently switched the &lt;a href=&quot;https://pblog.bt.ht&quot;&gt;pblog&lt;/a&gt; project repo over from Sourcehut to Codeberg (mostly for UX reasons) and it got me looking into &lt;a href=&quot;https://codeberg.page&quot;&gt;Codeberg Pages&lt;/a&gt;. It seemed like a cleaner approach to host my personal blog on the same platform I planned to also share the source code.&lt;/p&gt;
+&lt;p&gt;I decided to share the setup process here since I couldn&amp;#8217;t find a straightforward guide explaining everything required to get going. So, let&amp;#8217;s dig in.&lt;/p&gt;
+&lt;h2 id=&quot;create-the-repos&quot;&gt;Create the Repos&lt;/h2&gt;
+&lt;p&gt;&lt;strong&gt;Disclaimer&lt;/strong&gt;: My personal blog uses &lt;a href=&quot;https://pblog.bt.ht&quot;&gt;pblog&lt;/a&gt;, so although these instructions will be catered towards that SSG the same concept &lt;em&gt;should&lt;/em&gt; apply for any other generator (Jekyll, Hugo, Next, etc.).&lt;/p&gt;
+&lt;p&gt;The first step is to create the main repo that would house the core files of &lt;code&gt;pblog&lt;/code&gt;. Then we need to make a separate repo simply called &lt;code&gt;pages&lt;/code&gt;. This second project is where all the generated &amp;#8220;static&amp;#8221; files get rendered.&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;Side note&lt;/em&gt;: Be sure to at least include a &lt;code&gt;README&lt;/code&gt; file in that &lt;code&gt;pages&lt;/code&gt; repo. This will avoid any errors or warnings when setting up our submodules in the next steps.&lt;/p&gt;
+&lt;h2 id=&quot;configuration-edits&quot;&gt;Configuration Edits&lt;/h2&gt;
+&lt;p&gt;Once your two repos are created, you will need to make some minor edits to the &lt;code&gt;_config.sh&lt;/code&gt; in the core &lt;code&gt;pblog&lt;/code&gt; project to tell the build script where the generated files should go (in this case the &lt;code&gt;pages&lt;/code&gt; repo):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;OUTPUT=&quot;_output&amp;#47;pages&amp;#47;&quot;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;the-submodule&quot;&gt;The Submodule&lt;/h2&gt;
+&lt;p&gt;Using terminal, navigate to the &lt;code&gt;_output&amp;#47;&lt;/code&gt; directory in your core &lt;code&gt;pblog&lt;/code&gt; project. Run the following, remembering to replace the USERNAME parameter with your own:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;git submodule add git@codeberg.org:USERNAME&amp;#47;pages.git
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;If everything worked correctly you should now have a &lt;code&gt;.gitmodules&lt;/code&gt; file in your main &lt;code&gt;pblog&lt;/code&gt; project. If you get any errors, you might need to include the name of the directory at the end of the command:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;git submodule add git@codeberg.org:USERNAME&amp;#47;pages.git pages
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;the-workflow&quot;&gt;The Workflow&lt;/h2&gt;
+&lt;p&gt;Now you can make changes, add new posts and pages in the main &lt;code&gt;pblog&lt;/code&gt; project and have those generated files render into your other &lt;code&gt;pages&lt;/code&gt; repo. For this workflow, I simply push commits to both projects when I am happy with my changes but I&amp;#8217;m sure you could look into automating this process (ie. a single push from the &lt;code&gt;pblog&lt;/code&gt; repo forces a the &lt;code&gt;pages&lt;/code&gt; repo to also update).&lt;/p&gt;
+&lt;p&gt;Now you can navigate to the standard Codeberg Pages URL to see it in action:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;USERNAME.codeberg.page
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;If you want to use your own custom domain (who doesn&amp;#8217;t?) then continue reading.&lt;/p&gt;
+&lt;h2 id=&quot;custom-domains-optional&quot;&gt;Custom Domains (Optional)&lt;/h2&gt;
+&lt;p&gt;The first thing you will need to do is add a &lt;code&gt;.domains&lt;/code&gt; file to your &lt;code&gt;pages&lt;/code&gt; root directory. In this file you will want to list your custom domain on the first line, followed by the standard Codeberg pages URL below it. Like so:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;yourcustomdomain.com
+USERNAME.codeberg.page
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;I&amp;#8217;m keeping this very basic, but I suggest you look further into the &lt;a href=&quot;https://docs.codeberg.org/codeberg-pages/#custom-domains&quot;&gt;official documentation&lt;/a&gt; if there are any extra settings you&amp;#8217;d like to tinker with.&lt;/p&gt;
+&lt;p&gt;The final step is configuring a &lt;code&gt;CNAME&lt;/code&gt; DNS setting through your registrar:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@ -&amp;#62; USERNAME.codeberg.page
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Give the DNS settings a bit of time to take (24-48 hours) and you&amp;#8217;ll have your custom domain working just fine.&lt;/p&gt;
+&lt;p&gt;Happy hosting!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/berg"/>
+ <id>https://btxx.org/posts/berg</id>
+ <updated>2022-07-29T10:00:00Z</updated>
+ <published>2022-07-29T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Better Box Shadows</title>
+ <content type="html">&lt;h1 id=&quot;better-box-shadows&quot;&gt;Better Box Shadows&lt;/h1&gt;
+&lt;p&gt;2019-01-08&lt;/p&gt;
+&lt;p&gt;Box shadow on HTML elements has been widely supported across most browsers for a while now, but I find the default options don&amp;#8217;t allow for much visual manipulation of the shadows in general.&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s take a look at a default configuration of &lt;code&gt;box-shadow&lt;/code&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.box-container {
+ box-shadow: 0 4px 8px rgba(0,0,0,0.3);
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;In the example above the first property number is the origin of the &lt;em&gt;x-axis&lt;/em&gt;, the second number is the origin of the &lt;em&gt;y-axis&lt;/em&gt; and the third is the amount of &lt;em&gt;blur&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;We should also add some minimal styling to cleanup the &lt;code&gt;.box-container&lt;/code&gt; a little bit for our example:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;box-container&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+
+
+.box-container {
+ box-shadow: 0 4px 8px rgba(0,0,0,0.3);
+ &amp;#47;* Styles to make it less ugly *&amp;#47;
+ background: white;
+ border-radius: 10px;
+ border: 1px solid #eee;
+ height: 200px;
+ padding: 10px;
+ position: relative;
+ width: 250px;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Which would render as this:&lt;/p&gt;
+&lt;p&gt;Not bad - but we can do a lot better than this.&lt;/p&gt;
+&lt;h2 id=&quot;please-sir-i-want-some-more-depth&quot;&gt;Please sir, I want some more (depth)&lt;/h2&gt;
+&lt;p&gt;We just need to add a simple child &lt;code&gt;div&lt;/code&gt; (or use a &lt;code&gt;pseudo&lt;/code&gt; element if you prefer) inside our main element we want to apply the shadow to:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;box-container&quot;&amp;#62;
+ &amp;#60;div class=&quot;box-container-inner&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Now we make our inner child element &lt;code&gt;absolute&lt;/code&gt; and set it&amp;#8217;s &lt;code&gt;height&lt;/code&gt; and &lt;code&gt;width&lt;/code&gt; dynamically to be slightly smaller than it&amp;#8217;s parent (percentages work best for this). &lt;/p&gt;
+&lt;p&gt;Remember to set this child element behind it&amp;#8217;s parent by adding &lt;code&gt;z-index: -1&lt;/code&gt;.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.box-container {
+ &amp;#47;* No box-shadow needed on this element anymore *&amp;#47;
+ &amp;#47;* Styles to make it less ugly *&amp;#47;
+ background: white;
+ border-radius: 10px;
+ border: 1px solid #eee;
+ height: 200px;
+ padding: 10px;
+ position: relative;
+ width: 250px;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;inner-containers&quot;&gt;Inner Containers&lt;/h2&gt;
+&lt;p&gt;We also need to target the &lt;code&gt;box-container-inner&lt;/code&gt; element set inside the current parent to reflect our custom shadow styling:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.box-container-inner {
+ bottom: 0;
+ &amp;#47;* The box-shadow is added here now *&amp;#47;
+ box-shadow: 0 4px 12px rgba(0,0,0,0.3);
+ height: 94%;
+ left: 3%;
+ position: absolute;
+ width: 94%;
+ z-index: -1;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Which will make the drop-shadow render with a little more realistic depth:&lt;/p&gt;
+&lt;h2 id=&quot;but-wait---theres-more&quot;&gt;But wait - there&amp;#8217;s more!&lt;/h2&gt;
+&lt;p&gt;We could stop now and have a decent drop-shadow that is certainly easier on the eyes - but we can make this even better with one extra property - &lt;code&gt;filter:blur();&lt;/code&gt;. &lt;/p&gt;
+&lt;p&gt;So your final code would look like this:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.box-container {
+ &amp;#47;* Styles to make it less ugly *&amp;#47;
+ background: white;
+ border-radius: 10px;
+ border: 1px solid #eee;
+ height: 200px;
+ padding: 10px;
+ position: relative;
+ width: 250px;
+}
+
+.box-container-inner {
+ bottom: 0;
+ box-shadow: 0 4px 12px rgba(0,0,0,0.3);
+ filter: blur(6px);
+ height: 94%;
+ left: 3%;
+ position: absolute;
+ width: 94%;
+ z-index: -1;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Which renders out into a much smoother blend of a drop-shadow, creating a more realistic illusion of depth:&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/better-box-shadows"/>
+ <id>https://btxx.org/posts/better-box-shadows</id>
+ <updated>2019-01-08T10:00:00Z</updated>
+ <published>2019-01-08T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Bidirectional Scrolling: Why Not Both?</title>
+ <content type="html">&lt;h1 id=&quot;bidirectional-scrolling-why-not-both&quot;&gt;Bidirectional Scrolling: Why Not Both?&lt;/h1&gt;
+&lt;p&gt;2020-11-09&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;I recently came across Adam Silver&amp;#8217;s post &lt;a href=&quot;https://adamsilver.io/articles/bidirectional-scrolling-whats-not-to-like/&quot;&gt;about the merits and pitfalls of bidirectional scrolling&lt;/a&gt;&lt;/em&gt; and found myself conflicted with the design arguments put forth in the article. It&amp;#8217;s a very good article overall, and I suggest giving it a read before digging deeper into my post here.&lt;/p&gt;
+&lt;h2 id=&quot;the-premise&quot;&gt;The Premise&lt;/h2&gt;
+&lt;p&gt;The original article argues that displaying page content via horizontal scrolling (and therefore slightly hiding interactive content) creates a few major issues:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;it increases the chance users won&amp;#8217;t see it&lt;/li&gt;
+&lt;li&gt;there&amp;#8217;s a greater reliance on digital literacy&lt;/li&gt;
+&lt;li&gt;it&amp;#8217;s generally more labour intensive for users&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Adam also makes a solid statement here:&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: It&amp;#8217;s important to remember my personal machine is a ThinkPad X201 with only 6GB of RAM (plan to upgrade to 8GB soon!). Obviously your mileage may vary if you&amp;#8217;re using a beefier laptop or desktop&amp;#8230;&lt;/p&gt;
+&lt;p&gt;Having to scroll down and across in a zig zag fashion can be tiresome, especially for people with motor impairments.&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;p&gt;In case the title of this post didn&amp;#8217;t make this obvious, my editor of choice is Sublime Text. It&amp;#8217;s fast, has a robust plugin ecosystem, and a very friendly community of users. Because of its popularity, troubleshooting any issues you might encounter becomes much easier with the amount of information freely available online.&lt;/p&gt;
-&lt;p&gt;The only minor downside is that it isn&amp;#8217;t &lt;em&gt;fully&lt;/em&gt; open source. Personally, I think it is well worth buying a license directly from the developers to support their efforts.&lt;/p&gt;
-&lt;p&gt;If you haven&amp;#8217;t played around with it yet, I highly recommend giving it a try. At the very least, I guarantee you&amp;#8217;ll be impressed with the editor&amp;#8217;s performance and speed! [&amp;#60;#1&amp;#62;]&lt;/p&gt;
-&lt;h2 id=&quot;one-small-problem&quot;&gt;One Small Problem&amp;#8230;&lt;/h2&gt;
-&lt;p&gt;Sublime is precompiled against glibc and Alpine uses musl. This makes things a little difficult. Luckily we can get around this roadblock by falling back on flatpak (which is unfortunately still locked at version 3 for Sublime).&lt;/p&gt;
-&lt;p&gt;You&amp;#8217;ll need to install flatpak, give your current user permission to install flatpak apps, and then install Sublime.&lt;/p&gt;
-&lt;p&gt;(The following snippets assume you are using &lt;code&gt;doas&lt;/code&gt;. If you are using &lt;code&gt;sudo&lt;/code&gt;, be sure to swap accordingly)&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;apk add flatpak
-adduser &amp;#60;YourUsername&amp;#62; flatpak
-flatpak remote-add --user --if-not-exists flathub https:&amp;#47;&amp;#47;flathub.org&amp;#47;repo&amp;#47;flathub.flatpakrepo
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Congrats. You now have setup &lt;code&gt;flatpak&lt;/code&gt; on your machine! Next we install Sublime Text:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;flatpak install flathub com.sublimetext.three
+&lt;p&gt;But I don&amp;#8217;t believe these issues create a need to completely remove the horizontal &amp;#8220;scrolling&amp;#8221; design altogether. You can still implement the &lt;code&gt;See All Items&lt;/code&gt; category link, while allowing the horizontal content to load in &lt;em&gt;dynamically&lt;/em&gt;. Balance is always key.&lt;/p&gt;
+&lt;h2 id=&quot;not-all-at-once-please&quot;&gt;Not All At Once, Please!&lt;/h2&gt;
+&lt;p&gt;So what exactly do I mean by &lt;em&gt;dynamically&lt;/em&gt; loading in horizontal content?&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;The user is shown the top 4 items in a given category&lt;/li&gt;
+&lt;li&gt;From there, the user can use the &lt;code&gt;See All Items&lt;/code&gt; link to jump into a full category page&lt;/li&gt;
+&lt;li&gt;If they so desire, they can begin scroll horizontally in a given category row
+&lt;ul&gt;
+&lt;li&gt;Once they reach the end of the row, 4 more items will load in automatically to expand the list&lt;/li&gt;
+&lt;li&gt;To avoid a never-ending list, it might be best to limit total row items to ~20 items. At this point the UI could prompt the user to &lt;code&gt;View All Items&lt;/code&gt; in that category.&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;By loading the row content in piece-by-piece, initial loads for users will be faster and subsequent list items will load quickly as well (since they would limit to a set default - in this case only 4).&lt;/p&gt;
+&lt;h2 id=&quot;final-improvements&quot;&gt;Final Improvements&lt;/h2&gt;
+&lt;p&gt;Below you can find a quick, static version of this concept. Here you can see the horizontal list items, along with their corresponding &lt;code&gt;See All Items&lt;/code&gt; links. You&amp;#8217;ll have to use your imagination for how new items would load once you each the end of a horizontal row. (I&amp;#8217;m too lazy to spend extra time building out that functionality for a hypothetical blog post)&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/pobxpXz&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/bidirectional-scrolling"/>
+ <id>https://btxx.org/posts/bidirectional-scrolling</id>
+ <updated>2020-11-09T10:00:00Z</updated>
+ <published>2020-11-09T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Browser History Sucks</title>
+ <content type="html">&lt;h1 id=&quot;browser-history-sucks&quot;&gt;Browser History Sucks&lt;/h1&gt;
+&lt;p&gt;2019-04-20&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;Have you ever needed to step back through your browser history&lt;/em&gt; to find a particular site or product? Do you remember that experience being good? Most likely not.&lt;/p&gt;
+&lt;p&gt;Much like printers, the design of browser history interfaces hasn&amp;#8217;t changed in years. This would be fine if these UIs had been well thought out and optimized for an easy user experience - but they weren&amp;#8217;t.&lt;/p&gt;
+&lt;p&gt;Browser history views rely on the user&amp;#8217;s own memory for more in-depth searches. This defeats the whole purpose of having a robust, documented history. The browser should be doing this heavy-lifting.&lt;/p&gt;
+&lt;h2 id=&quot;what-browsers-get-wrong&quot;&gt;What browsers get wrong&lt;/h2&gt;
+&lt;p&gt;Modern browsers give the general public too much credit when it comes to memory (I don&amp;#8217;t mean this as an insult!). To assume users remember the URL or site name when browsing random pages is short-sighted. I find myself asking these types of questions when jumping back into my view history far too often:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&amp;#8220;That article had &lt;em&gt;something&lt;/em&gt; to do with CSS&amp;#8230;&amp;#8221;&lt;/li&gt;
+&lt;li&gt;&amp;#8220;I remember seeing a beautifully designed site a month ago but have no clue what the URL was&amp;#8230;&amp;#8221;&lt;/li&gt;
+&lt;li&gt;&amp;#8220;My browser crashed and I can&amp;#8217;t recall that [example website] I had pinned in my tab for weeks&amp;#8230;&amp;#8221;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;For reference, let&amp;#8217;s take a look at the current Chrome (73) history view:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/browser-history-01.webp&quot; alt=&quot;Default Chrome History&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;As you may have noticed - this UI is lackluster at best. An oversimplified search field in the header is the only means of filtering items.&lt;/p&gt;
+&lt;h2 id=&quot;why-not-use-extensions&quot;&gt;Why not use extensions?&lt;/h2&gt;
+&lt;p&gt;I know using browser extensions or tagging favorites can alleviate some of these issues. This is great, but why not simplify everything by having these features &lt;em&gt;inside&lt;/em&gt; the history view? If an extension can add these features, why not have those extras built-in?&lt;/p&gt;
+&lt;h2 id=&quot;two-subtle-improvements&quot;&gt;Two subtle improvements&lt;/h2&gt;
+&lt;p&gt;A little goes a long way. With just two small changes, we can drastically increase the history view&amp;#8217;s UX.&lt;/p&gt;
+&lt;p&gt;We start by adding a date picker. Users open the new calendar icon to filter by days, months or years before searching. Seems trivial, but this saves the headache of filtering through all saved history.&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/browser-history-02.webp&quot; alt=&quot;Chrome History with date picker&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;The second small functional change we can make is including extra subcategories. These new options allow users to focus their searches based on:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Session length&lt;/li&gt;
+&lt;li&gt;Number of return visits&lt;/li&gt;
+&lt;li&gt;Last restored tabs&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h3 id=&quot;session-length&quot;&gt;Session length&lt;/h3&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/browser-history-03.webp&quot; alt=&quot;Chrome History by session length&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;Allow users to display their history filtered by session duration. This helps when searching for an stagnant page or pinned site during a user&amp;#8217;s long session. An example default would allow filtering by:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;longest to shortest&lt;/li&gt;
+&lt;li&gt;shortest to longest&lt;/li&gt;
+&lt;li&gt;pinned tabs&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h3 id=&quot;return-visits&quot;&gt;Return visits&lt;/h3&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/browser-history-04.webp&quot; alt=&quot;Chrome History by return visits&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;When users make repeat visits to a site or web app, the browser should keep a record of return sessions. This allows the user to refine their search by many or singular visits.&lt;/p&gt;
+&lt;h3 id=&quot;last-restored-tabs&quot;&gt;Last restored tabs&lt;/h3&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/browser-history-05.webp&quot; alt=&quot;Chrome History by restored tabs&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;A basic concept, but the ability for users to view all previous instances of restored tabs is helpful. This would fix most edge cases not covered by the other two categories.&lt;/p&gt;
+&lt;h2 id=&quot;far-from-perfect&quot;&gt;Far from perfect&lt;/h2&gt;
+&lt;p&gt;The Chrome (or any browser for that matter) browser history view is simplistic to a fault. The current UI is prone to human error, since it makes assumptions and relies heavily on user memory.&lt;/p&gt;
+&lt;p&gt;These are simple fixes that attempt to boost the basic UX of the history view. Are these concepts absolutely perfect? Not at all. Is it at least an improvement? I believe it is. When products decrease the effort required of it&amp;#8217;s users, I see that as a positive.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/browser-history-sucks"/>
+ <id>https://btxx.org/posts/browser-history-sucks</id>
+ <updated>2019-04-20T10:00:00Z</updated>
+ <published>2019-04-20T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>CSS Character Unit</title>
+ <content type="html">&lt;h1 id=&quot;css-character-unit&quot;&gt;CSS Character Unit&lt;/h1&gt;
+&lt;p&gt;2019-04-23&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;When it comes to proper readability with large portions of text&lt;/em&gt;, the golden standard is to have no more than &lt;a href=&quot;http://webtypography.net/2.1.2&quot;&gt;75 characters per line&lt;/a&gt;. This is easy to achieve in the world of print but on the responsive, ever-changing web - statically defined typography becomes a little more difficult.&lt;/p&gt;
+&lt;p&gt;You could go through the long process of setting up media queries for every possible screen size, adjusting text size and padding accordingly - but there is a &lt;em&gt;better way&lt;/em&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;introducing-character-units&quot;&gt;Introducing character units&lt;/h2&gt;
+&lt;p&gt;By setting your main containers or text elements with the CSS character unit (&lt;code&gt;ch&lt;/code&gt;), you need to set the character length only once. Let&amp;#8217;s look at a simple example for reference.&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s say you have an article which will fill the entire length of the screen. Something like this:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;container&quot;&amp;#62;
+ &amp;#60;p&amp;#62;Reprehenderit aliqua in quis eiusmod ea culpa aliquip. Velit duis est irure voluptate occaecat labore laborum ut pariatur ex veniam deserunt esse est. Esse sunt exercitation id reprehenderit deserunt elit commodo sit ullamco amet commodo magna consequat. Excepteur voluptate tempor consectetur eu aliqua aliquip laboris aliquip veniam excepteur labore.&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p&amp;#62;Voluptate excepteur sint magna ipsum occaecat irure sit. In occaecat excepteur in id ullamco id est incididunt irure et. Consectetur veniam exercitation occaecat exercitation labore nulla excepteur irure ex anim. Commodo sint anim non ad excepteur exercitation eiusmod Lorem nisi. Tempor ut ipsum do adipisicing dolore.&amp;#60;&amp;#47;p&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;You could stop now and simply open Sublime anytime by running the following command in your terminal:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;flatpak run com.sublimetext.three
+&lt;p&gt;With this structure, you might normally set the default &lt;code&gt;max-width&lt;/code&gt; property with your desired maximum width (whatever you believe is the best reading length):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.container {
+ max-width: 38em;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This works perfectly fine but I find it a little cumbersome. I would much rather open my programs directly through dmenu. Let&amp;#8217;s set that up.&lt;/p&gt;
-&lt;h2 id=&quot;creating-system-links&quot;&gt;Creating System Links&lt;/h2&gt;
-&lt;pre&gt;&lt;code&gt;doas ln -s ~&amp;#47;.local&amp;#47;share&amp;#47;flatpak&amp;#47;exports&amp;#47;bin&amp;#47;com.sublimetext.three &amp;#47;usr&amp;#47;bin&amp;#47;sublimetext
+&lt;p&gt;This works - but it isn&amp;#8217;t ideal. Time for character units to save the day! You will still target the &lt;code&gt;max-width&lt;/code&gt; property but this time we set it to use the &lt;code&gt;ch&lt;/code&gt; value like so:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.container {
+ max-width: 66ch;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now that those directories are linked, simply open dmenu and start typing &lt;code&gt;sublimetext&lt;/code&gt;. Done and done. No more terminal commands needed to open Sublime!&lt;/p&gt;
+&lt;p&gt;This setting makes sure content will not exceed more than 66 characters per line, making for a better reading experience with little effort.&lt;/p&gt;
+&lt;h2 id=&quot;browser-support&quot;&gt;Browser support&lt;/h2&gt;
+&lt;p&gt;The character unit attribute has pretty great support - even partial IE11! Check out the supported browsers &lt;a href=&quot;https://caniuse.com/#feat=ch-unit&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/character-unit"/>
+ <id>https://btxx.org/posts/character-unit</id>
+ <updated>2019-04-23T10:00:00Z</updated>
+ <published>2019-04-23T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Chasing Performance</title>
+ <content type="html">&lt;h1 id=&quot;chasing-performance&quot;&gt;Chasing Performance&lt;/h1&gt;
+&lt;p&gt;2017-11-20&lt;/p&gt;
+&lt;h2 id=&quot;update&quot;&gt;Update&lt;/h2&gt;
+&lt;p&gt;This post is no longer relevant since this blog has been redesigned since. I&amp;#8217;m keeping this article up as a point of reference.&lt;/p&gt;
&lt;hr/&gt;
-&lt;p&gt;1. I am aware that using a terminal-based editor such as vim or emacs would be even &lt;em&gt;more&lt;/em&gt; efficient. For my own personal use I find more classical &amp;#8220;IDE&amp;#8221; applications to work best for me.
-&lt;/p&gt;</content>
- <link href="https://btxx.org/sublime"/>
- <id>https://btxx.org/sublime</id>
- <updated>2023-04-13T10:00:00Z</updated>
- <published>2023-04-13T10:00:00Z</published>
- </entry>
- <entry>
- <title>Stripe Menu Dropdowns (CSS)</title>
- <content type="html">&lt;h1 id=&quot;stripe-menu-dropdowns-css&quot;&gt;Stripe Menu Dropdowns (CSS)&lt;/h1&gt;
-&lt;p&gt;2020-03-31&lt;/p&gt;
-&lt;p&gt;In a previous article I wrote, &lt;a href=&quot;blog/minimal-css-menu&quot;&gt;Minimal CSS: Dropdown Menus&lt;/a&gt;, I showed how you could create a basic menu dropdown with only 121 bytes of CSS. While this demo is great for simple text-based menu dropdowns, it doesn&amp;#8217;t show just how complex (in a good way) you can make CSS-only menus. So, let&amp;#8217;s do just that.&lt;/p&gt;
-&lt;h2 id=&quot;what-we-want-to-emulate&quot;&gt;What we want to emulate&lt;/h2&gt;
-&lt;p&gt;I think, like most designers, that the UI and web design work from the &lt;a href=&quot;https://stripe.com/&quot;&gt;Stripe&lt;/a&gt; team is pretty fantastic. Their clean approach using subtle animations and minimal elements make for a pleasant experience. Unfortunately, there is one problem with their current dropdown menus on their main website:&lt;/p&gt;
-&lt;p&gt;They don&amp;#8217;t work if JavaScript is disabled.&lt;/p&gt;
-&lt;p&gt;But we can easily fix that. So enough chit-chat, let&amp;#8217;s rip-off their menu design and recreate it with only CSS!&lt;/p&gt;
-&lt;h3 id=&quot;original-stripe-website&quot;&gt;Original (&lt;a href=&quot;https://stripe.com&quot;&gt;Stripe Website&lt;/a&gt;)&lt;/h3&gt;
-&lt;h3 id=&quot;our-recreation-codepen-demo&quot;&gt;Our recreation (&lt;a href=&quot;https://codepen.io/bradleytaunt/full/ExjMjLL&quot;&gt;CodePen Demo&lt;/a&gt;)&lt;/h3&gt;
-&lt;p&gt;Although our redesign is far from an exact replica (some subtle animations are missing which could always be added) - it&amp;#8217;s still impressive what you can do with some bare-bones CSS. Just something to keep in mind the next time you decide to reach for a JavaScript library to implement a similar design.&lt;/p&gt;
-&lt;h2 id=&quot;see-it-live-in-action&quot;&gt;See it live in action&lt;/h2&gt;
-&lt;p&gt;Load in the CodePen below and play around with the menu dropdown. Feel free to re-use, break. share or steal this for any and all purposes. Enjoy!&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/ExjMjLL&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</content>
- <link href="https://btxx.org/stripe-menu-css"/>
- <id>https://btxx.org/stripe-menu-css</id>
- <updated>2020-03-31T10:00:00Z</updated>
- <published>2020-03-31T10:00:00Z</published>
- </entry>
- <entry>
- <title>Yes, I Still Use jQuery</title>
- <content type="html">&lt;h1 id=&quot;yes-i-still-use-jquery&quot;&gt;Yes, I Still Use jQuery&lt;/h1&gt;
-&lt;p&gt;2019-04-15&lt;/p&gt;
-&lt;p&gt;I have seen a handful of condescending comments from front-end developers since the newest build of jQuery (&lt;a href=&quot;http://blog.jquery.com/2019/04/10/jquery-3-4-0-released/&quot;&gt;3.4.0&lt;/a&gt;) released a couple of days ago. While I understand not all developers share the same work-style or are using the same tech-stack, dismissive comments towards any &lt;em&gt;useful&lt;/em&gt; library comes off as entitled or elitist.&lt;/p&gt;
+&lt;p&gt;So I decided to participate in Smashing Mag&amp;#8217;s Front End Performance Challenge, not only for the potential of winning the prize but to further experiment with optimizing my site. (Web performance is a passion of mine)&lt;/p&gt;
+&lt;p&gt;Below I will breakdown the before &amp;#38; after statistics of my personal site and what changes I made in great detail.&lt;/p&gt;
+&lt;p&gt;I will be using both my homepage and the image-heavy article I recently wrote, The Death of Personality, as the basis for my tests.&lt;/p&gt;
+&lt;h3 id=&quot;lighthouse-score---homepage&quot;&gt;Lighthouse Score - Homepage&lt;/h3&gt;
+&lt;p&gt;Full source original stats &amp;#47;&amp;#47; Full source updated stats&lt;/p&gt;
+&lt;h3 id=&quot;lighthouse-score---article-page&quot;&gt;Lighthouse Score - Article Page&lt;/h3&gt;
+&lt;p&gt;Full source original stats &amp;#47;&amp;#47; Full source updated stats&lt;/p&gt;
+&lt;h3 id=&quot;web-page-test---homepage&quot;&gt;Web Page Test - Homepage&lt;/h3&gt;
+&lt;p&gt;Full source original stats &amp;#47;&amp;#47; Full source updated stats&lt;/p&gt;
+&lt;h3 id=&quot;web-page-test---article-page&quot;&gt;Web Page Test - Article Page&lt;/h3&gt;
+&lt;p&gt;Full source original stats &amp;#47;&amp;#47; Full source updated stats&lt;/p&gt;
+&lt;h3 id=&quot;quick-look&quot;&gt;Quick Look&lt;/h3&gt;
+&lt;p&gt;Though my homepage only made some minor speed performance enhancements, my article post&amp;#8217;s initial load time was slimmed down by a &lt;strong&gt;whopping 4.2 seconds!&lt;/strong&gt; That&amp;#8217;s pretty incredible and very noticeable from an end-user&amp;#8217;s perspective.&lt;/p&gt;
+&lt;h3 id=&quot;so---what-changed&quot;&gt;So - What Changed?&lt;/h3&gt;
+&lt;p&gt;Webfonts&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m not using any webfonts but instead defaulting to the user&amp;#8217;s OS System Fonts. I love custom typefaces but performance takes just too much of a hit on my personal site to bother with them.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;body {
+font-family: -apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,Oxygen,Ubuntu,Cantarell,&quot;Open Sans&quot;,&quot;Helvetica Neue&quot;,sans-serif,&quot;Sans Serif&quot;,Icons;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;For reference, there are some things you should to look out for when using custom typefaces:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&amp;#8220;Why would you use jQuery nowadays?&amp;#8221; &lt;/li&gt;
-&lt;li&gt;&amp;#8220;People are still developing this library?&amp;#8221;&lt;/li&gt;
-&lt;li&gt;&amp;#8220;Why use jQuery when you can use [insert latest trendy web tech here]&amp;#8221;.&lt;/li&gt;
+&lt;li&gt;Readability and accessibility&lt;/li&gt;
+&lt;li&gt;Possible extra overhead loading in a custom @font-face&lt;/li&gt;
+&lt;li&gt;Try to avoid any FOUT, FOIT, FOFT&lt;/li&gt;
+&lt;li&gt;Don&amp;#8217;t go down the rabbit hole of using 3rd party plugins to optimize something as basic as a typeface&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;&lt;strong&gt;I still use jQuery&lt;/strong&gt;. Well, I may not use the library for all projects since every project is different - but I certainly don&amp;#8217;t avoid using it solely because &amp;#8220;its jQuery&amp;#8221;. I&amp;#8217;ve always believed in using the best tools for the job.&lt;/p&gt;
-&lt;h2 id=&quot;use-what-works-for-you&quot;&gt;Use what works for you&lt;/h2&gt;
-&lt;p&gt;If you produce better work in a shorter amount of time using one of the latest and greatest technologies (React, Vue.js, Angular, etc.) then you should absolutely do so. If another developer can be just as productive building their projects with jQuery, what does it matter in the grand scheme of things?&lt;/p&gt;
-&lt;p&gt;My thought-process is this: a large percentage of web projects are done for clients not involved in the day-to-day happenings of the developer world. What they want is a solution to a particular problem. Clients don&amp;#8217;t care how things are done behind the scenes - so long as it is done efficiently and &lt;em&gt;properly&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;I tend to follow these principles when working on a project (with shared equal importance):&lt;/p&gt;
+&lt;h3 id=&quot;critical-css&quot;&gt;Critical CSS&lt;/h3&gt;
+&lt;p&gt;This part was easy. In order to avoid the weird styling &amp;#8216;pops&amp;#8217; present on some websites when initially loading with slow connections, it&amp;#8217;s best to place all your most critical styling inline and then load your external CSS once everything else has loaded.&lt;/p&gt;
+&lt;p&gt;On top of that, I decided to also implement Filament Group&amp;#8217;s loadCSS function to load my CSS asynchronously. If you are not currently using this in any of your projects; stop reading this and go do it! It&amp;#8217;s a game changer.&lt;/p&gt;
+&lt;h3 id=&quot;critical-javascript&quot;&gt;Critical JavaScript&lt;/h3&gt;
+&lt;p&gt;My personal site only uses a small amount of JavaScript on the article post Jekyll template pages. By using the defer property I can be sure to load the IntersectionObserver API polyfill after the rest of the DOM as finished loading.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;script src=&quot;https:&amp;#47;&amp;#47;cdn.polyfill.io&amp;#47;v2&amp;#47;polyfill.min.js?features=IntersectionObserver&quot; defer&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;I could probably optimize this further by only calling these scripts if an image is actually present in the article post, but this fits my needs nicely as is.&lt;/p&gt;
+&lt;h3 id=&quot;responsive-images&quot;&gt;Responsive Images&lt;/h3&gt;
+&lt;p&gt;The only images I use are those included in supported blog posts, so the first step was making sure to only call iolazy.min.js on those specific template pages. The next step was defaulting to webp image formats with a lossless jpg fall-back with the help of the picture element:&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ve also included responsive image sizes for further optimization based on screen size and loading speeds.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;figure&amp;#62;
+&amp;#60;picture
+ &amp;#60;source type=&quot;image&amp;#47;webp&quot;
+ data-srcset=&quot;
+ &amp;#47;images&amp;#47;articles&amp;#47;webp&amp;#47;flat-design-toggles_p0v2hv_c_scale,w_200.webp 200w,
+ &amp;#47;images&amp;#47;articles&amp;#47;webp&amp;#47;flat-design-toggles_p0v2hv_c_scale,w_1400.webp 1400w&quot;
+ class=&quot;lazyload&quot;&amp;#47;&amp;#62;
+ &amp;#60;img
+ sizes=&quot;(max-width: 1400px) 100vw, 1400px&quot;
+ data-srcset=&quot;
+ &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_200.webp 200w,
+ &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_727.webp 727w,
+ &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_1065.webp 1065w,
+ &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_1400.webp 1400w&quot;
+ src=&quot;&amp;#47;images&amp;#47;placeholder.webp&quot;
+ alt=&quot;Toggles Comparison&quot;
+ class=&quot;lazyload&quot;&amp;#47;&amp;#62;
+&amp;#60;&amp;#47;picture&amp;#62;
+&amp;#60;&amp;#47;figure&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;What about users with JavaScript disabled I hear you ask? It&amp;#8217;s time for noscript to save the day:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;noscript&amp;#62;
+ &amp;#60;picture&amp;#62;
+ &amp;#60;source type=&quot;image&amp;#47;webp&quot;
+ srcset=&quot;
+ &amp;#47;images&amp;#47;articles&amp;#47;webp&amp;#47;flat-design-toggles_p0v2hv_c_scale,w_200.webp 200w,
+ &amp;#47;images&amp;#47;articles&amp;#47;webp&amp;#47;flat-design-toggles_p0v2hv_c_scale,w_1400.webp 1400w&quot;&amp;#62;
+ &amp;#60;img
+ sizes=&quot;(max-width: 1400px) 100vw, 1400px&quot;
+ srcset=&quot;
+ &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_200.webp 200w,
+ &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_727.webp 727w,
+ &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_1065.webp 1065w,
+ &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_1400.webp 1400w&quot;
+ src=&quot;&amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_1400.webp&quot;
+ alt=&quot;Toggles Comparison&quot;&amp;#47;&amp;#62;
+ &amp;#60;&amp;#47;picture&amp;#62;
+&amp;#60;&amp;#47;noscript&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;https-caching&quot;&gt;HTTPS &amp;#38; Caching&lt;/h3&gt;
+&lt;p&gt;The Lighthouse audit also suggested implementing an SSL certificate (something I&amp;#8217;ve been meaning to do for a while anyway) and also utilize CDN caching. So it was Cloudflare to the rescue!&lt;/p&gt;
+&lt;p&gt;Since my website is hosted through Github, setting up a &lt;em&gt;free&lt;/em&gt; SSL certificate and enabling site-wide caching was a breeze. If you&amp;#8217;re interested in setting this up yourself, step-by-step instructions can be found here.&lt;/p&gt;
+&lt;p&gt;This simple update helped boost my best practices score from a 69 to a 94. Yet another performance enhancement you should be enabling for all your current and future projects!&lt;/p&gt;
+&lt;h2 id=&quot;performance-happiness&quot;&gt;Performance Happiness&lt;/h2&gt;
+&lt;p&gt;Overall I&amp;#8217;m pretty content with the &lt;strong&gt;major&lt;/strong&gt; performance boost my site has received from these fairly &lt;em&gt;minor&lt;/em&gt; updates and I hope this article inspires other designers and developers to jump into updating their own site&amp;#47;app performance speeds. The pay-off is truly worth it!&lt;/p&gt;
+&lt;h3 id=&quot;some-extra-reading-material&quot;&gt;Some Extra Reading Material&lt;/h3&gt;
&lt;ul&gt;
-&lt;li&gt;fast performance&lt;/li&gt;
-&lt;li&gt;accessible&lt;/li&gt;
-&lt;li&gt;simple UI&lt;/li&gt;
-&lt;li&gt;intuitive UX&lt;/li&gt;
+&lt;li&gt;Web Performance in Action by Jeremy Wagner&lt;/li&gt;
+&lt;li&gt;Responsible Responsive Design by Scott Jehl&lt;/li&gt;
+&lt;li&gt;Designing with Progressive Enhancement: Building the Web that Works for Everyone by Todd Parker, Scott Jehl,‎ Maggie Costello Wachs,‎ Patty Toland&lt;/li&gt;
+&lt;/ul&gt;</content>
+ <link href="https://btxx.org/posts/chasing-performance"/>
+ <id>https://btxx.org/posts/chasing-performance</id>
+ <updated>2017-11-20T10:00:00Z</updated>
+ <published>2017-11-20T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Portable Pi: Cheap Raspberry Pi Zero Hacker Terminal</title>
+ <content type="html">&lt;h1 id=&quot;portable-pi-cheap-raspberry-pi-zero-hacker-terminal&quot;&gt;Portable Pi: Cheap Raspberry Pi Zero Hacker Terminal&lt;/h1&gt;
+&lt;p&gt;2020-09-16&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;I recently came across &lt;a href=&quot;https://n-o-d-e.net/zeroterminal3.html&quot;&gt;the incredibly cool design&lt;/a&gt; for an &amp;#8220;ultimate Raspberry Pi computer&amp;#8221;&lt;/em&gt; by NODE and was inspired to create my own &amp;#8220;portable&amp;#8221; Pi device. Although, with my concept, I decided to set a few restrictions on the build:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;I wanted to keep the total cost as low as possible
+&lt;ul&gt;
+&lt;li&gt;including the Pi Zero &lt;em&gt;and&lt;/em&gt; extra hardware&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;I wanted to avoid any custom casings or need for 3D printed materials&lt;/li&gt;
+&lt;li&gt;I wanted to make the full design extremely portable &amp;#47; lightweight&lt;/li&gt;
+&lt;li&gt;I wanted to keep the build as user-friendly as possible (no soldering, odd hacks etc.)&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;As long as all of these items are accomplished, I don&amp;#8217;t care if the project was a direct export from Microsoft Word straight to the web1. If it works great, then it works great.&lt;/p&gt;
-&lt;p&gt;So use whatever tools make you a happier developer, as long as your projects don&amp;#8217;t suffer because of them.&lt;/p&gt;
-&lt;p&gt;1This would obviously be terrible for development, but its just an extreme example&lt;/p&gt;</content>
- <link href="https://btxx.org/still-using-jquery"/>
- <id>https://btxx.org/still-using-jquery</id>
- <updated>2019-04-15T10:00:00Z</updated>
- <published>2019-04-15T10:00:00Z</published>
- </entry>
- <entry>
- <title>Stop Using Sticky Navigation on Mobile</title>
- <content type="html">&lt;h1 id=&quot;stop-using-sticky-navigation-on-mobile&quot;&gt;Stop Using Sticky Navigation on Mobile&lt;/h1&gt;
-&lt;p&gt;2019-10-06&lt;/p&gt;
-&lt;p&gt;Stop styling your web elements to be &amp;#8220;sticky&amp;#8221; on mobile. This creates a horrible experience for your users and also looks like trash from a UI perspective. Don&amp;#8217;t style your navigation (or any components for that matter) to be &amp;#8220;sticky&amp;#8221; on mobile. They create poor experiences for your users and take away valuable screen space.&lt;/p&gt;
-&lt;h2 id=&quot;what-do-you-mean-by-sticky&quot;&gt;What do you mean by &amp;#8220;sticky&amp;#8221;?&lt;/h2&gt;
-&lt;p&gt;The concept of &lt;em&gt;sticky&lt;/em&gt; elements include but are not exclusive to:&lt;/p&gt;
+&lt;p&gt;With these constraints put in place, I built my very own Raspberry Pi Zero &amp;#8220;hacker&amp;#8221; terminal. You can see the finished product below:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/portable-pi-1.webp&quot; alt=&quot;Portable Pi front&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/portable-pi-2.webp&quot; alt=&quot;Portable Pi back&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m pretty happy with the final outcome and best of all - you can easily recreate this yourself with little-to-no effort!&lt;/p&gt;
+&lt;p&gt;So enough chit-chat - let&amp;#8217;s build this bad-boy!&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Most items in the hardware section are Amazon affiliate links&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;h2 id=&quot;table-of-contents&quot;&gt;Table of Contents&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;a href=&quot;#expectations&quot;&gt;Setting Expectations&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#hardware&quot;&gt;The Hardware&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#software&quot;&gt;The Software&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#setup&quot;&gt;Getting Setup&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#summary&quot;&gt;Final Summary&lt;/a&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;&lt;strong&gt;This hardware will not&lt;/strong&gt; replace your laptop or any other &amp;#8220;high-powered&amp;#8221; portable device. Honestly, you&amp;#8217;re mobile phone would (most likely) work better in terms of a compact-sized computer. The concept behind this &amp;#8220;portable pi&amp;#8221; project was to make something &lt;em&gt;for fun&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;Please reserve any sassy comments about how buying a cheap $50 laptop off eBay would be more efficient than building out something like I have done here. You&amp;#8217;re missing the point entirely.&lt;/p&gt;
+&lt;p&gt;Moving on for those still interested&amp;#8230; &lt;/p&gt;
+&lt;p&gt;I live in Canada, so some of the options are based on available hardware near my location. You&amp;#8217;re likely to find similar hardware close to your own country for better pricing &amp;#47; shipping costs.&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: I&amp;#8217;ve decided to use a wireless, USB dongle-based keyboard. You can opt to use a bluetooth-based keyboard, but I just find them more trouble than they are worth (keeping a charge, losing connections, interference from other devices)&lt;/p&gt;
+&lt;/blockquote&gt;
&lt;ul&gt;
-&lt;li&gt;Navigations that follow users as they scroll&lt;/li&gt;
-&lt;li&gt;Chatbot prompt bubbles eating up half the bottom of the screen&lt;/li&gt;
-&lt;li&gt;Banners or modal prompts that pester the user to &amp;#8220;sign up, accept cookies&amp;#8221; etc.&lt;/li&gt;
+&lt;li&gt;SBC: &lt;a href=&quot;https://amzn.to/3jCVXHG&quot;&gt;Raspberry Pi Zero WH&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Storage &amp;#47; OS: &lt;a href=&quot;https://amzn.to/2GHm01R&quot;&gt;64GB Micro SD Card&lt;/a&gt; (Always have an SD backup!)&lt;/li&gt;
+&lt;li&gt;Battery HAT: &lt;a href=&quot;https://amzn.to/3jGq8xp&quot;&gt;Li-ion Battery HAT&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Battery: &lt;em&gt;This depends on your location. I was able to order &lt;a href=&quot;https://www.walmart.ca/en/ip/Brand-New-4-Pcs-2500mAh-TR14500-3-7V-Rechargeable-Li-ion-Battery-for-Flashlight-Torch/PRD3Z73LMZZ3VK9&quot;&gt;online through Walmart&lt;/a&gt;, but if you live in the USA there are plenty of battery-specific vendors available. Find whatever works best for your needs!&lt;/em&gt;&lt;/li&gt;
+&lt;li&gt;Display: &lt;a href=&quot;https://www.buyapi.ca/product/3-5-inch-raspberry-pi-tft-display/&quot;&gt;KeDei 3.5-inch TFT Display&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Keyboard: &lt;a href=&quot;https://amzn.to/2Gqkwt6&quot;&gt;Mini USB Wireless Keyboard&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Adapter: &lt;a href=&quot;https://amzn.to/36I6T3c&quot;&gt;Micro USB OTG Cable&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;&lt;strong&gt;These are bad and you should feel bad for implementing them.&lt;/strong&gt; Spacing and layout is a critical part of a product’s design and greatly impacts the experience of its users. Stop screwing it up with ugly sticky elements.&lt;/p&gt;
-&lt;p&gt;First, let&amp;#8217;s breakdown &amp;#8220;sticky&amp;#8221; navigations and why they&amp;#8217;re terrible. We&amp;#8217;ll also go over some easy solutions to avoid making these bad design decisions in the first place.&lt;/p&gt;
-&lt;h2 id=&quot;the-stalking-navigation&quot;&gt;The stalking navigation&lt;/h2&gt;
-&lt;p&gt;When you make a decision to eat away &lt;code&gt;&amp;#62;50px&lt;/code&gt; of space at the top of the page for your site&amp;#8217;s navigation - you&amp;#8217;re hurting your users. You&amp;#8217;re also making their time interacting with your website more painful.&lt;/p&gt;
-&lt;p&gt;&amp;#8220;Wait!&amp;#8221; I hear sticky-nav defenders exclaim, &amp;#8220;this navigation bar makes it so the user can &lt;em&gt;easily&lt;/em&gt; interact with the site&amp;#8217;s pages!&amp;#8221;&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;What absolute rubbish.&lt;/strong&gt; A user should only see a website&amp;#8217;s navigation when they &lt;em&gt;need to use it&lt;/em&gt;. This isn&amp;#8217;t rocket science.&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s a take a look at the problem:&lt;/p&gt;
-&lt;p&gt;Knowing when to show navigation can be easily solved where the user isn&amp;#8217;t bogged down with a chunk of their screen permanently taken away, all the while still having access to the navigation. This can be fixed by simply understanding the user context at a given time. See below:&lt;/p&gt;
-&lt;p&gt;Here the navigation flows up with the rest of the page as the user scrolls the main content into view. Don&amp;#8217;t worry about creating confusion - the user knows the navigation is still at the top of the page because they &lt;em&gt;watched it scroll out of view&lt;/em&gt;. This is best paired by having a matching navigation in the footer of the page as well. That way, when the user makes it to the end of a specific view they can change pages right in the &amp;#8220;footer&amp;#8221;. No need to scroll back to the top.&lt;/p&gt;
-&lt;h2 id=&quot;the-best-of-both-worlds&quot;&gt;The best of both worlds?&lt;/h2&gt;
-&lt;p&gt;Maybe you want to hide the navigation without losing the flexibility of it always being accessible at the top of the page? This is possible, although I find it still &lt;em&gt;somewhat&lt;/em&gt; intrusive on the user. An easy way achieve this is by displaying the navigation when users perform a specific action, such as:&lt;/p&gt;
+&lt;h4 id=&quot;raspberry-pi-zero-wh&quot;&gt;Raspberry Pi Zero WH&lt;/h4&gt;
+&lt;p&gt;You will need a Raspberry Pi Zero W with GPIO header pins already soldered on to the board. (You could also do this yourself manually if you have the tools and skill to do so)&lt;/p&gt;
+&lt;h4 id=&quot;li-ion-battery-hat&quot;&gt;Li-Ion Battery HAT&lt;/h4&gt;
+&lt;p&gt;This HAT holds a single li-ion battery and for our purposes will connect with our Pi Zero via the GPIO header pins. You could also look into double-set battery HATs if that is something you would prefer - for my needs a single rechargeable battery works fine.&lt;/p&gt;
+&lt;p&gt;Since our main &amp;#8220;OS&amp;#8221; is purely terminal based, I find you don&amp;#8217;t really need a li-ion battery with a massive amount of power storage. 2500mAh will easily last a handful of hours mucking about with emails, files and web browsing. Plus, you can always carry a few extras for swapping out on-the-go.&lt;/p&gt;
+&lt;h4 id=&quot;3.5-inch-tft-display&quot;&gt;3.5-inch TFT Display&lt;/h4&gt;
+&lt;p&gt;A simple and fairly cheap touchscreen display. We won&amp;#8217;t require our display to render videos or pretty graphics (since we will be entirely terminal-based) so this works just fine for our needs. I am using version 6.3 for this build.&lt;/p&gt;
+&lt;h4 id=&quot;micro-usb-otg-adapter&quot;&gt;Micro USB OTG Adapter&lt;/h4&gt;
+&lt;p&gt;As mentioned above, this item is optional if you feel more comfortable with using a pure bluetooth keyboard. I just personally prefer this method.&lt;/p&gt;
+&lt;h4 id=&quot;wireless-keyboard&quot;&gt;Wireless Keyboard&lt;/h4&gt;
+&lt;p&gt;In my product demo image at the beginning of the article, I&amp;#8217;m actually using an old Logitech wireless keyboard since this one still hasn&amp;#8217;t arrived. I plan to swap them out once I have it - the Logitech is far to large to be deemed &amp;#8220;portable&amp;#8221;.&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Long or multiple upward swipes on the page&lt;/li&gt;
-&lt;li&gt;Pull down menu from top of current view (easily shown to user)&lt;/li&gt;
+&lt;li&gt;Operating System: &lt;a href=&quot;https://www.raspberrypi.org/downloads/raspberry-pi-os/&quot;&gt;Raspberry Pi OS Lite&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Display Driver: &lt;a href=&quot;http://kedei.net/raspberry/raspberry.html&quot;&gt;KeDei 3.5 Driver&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Email: &lt;a href=&quot;https://github.com/LukeSmithxyz/mutt-wizard&quot;&gt;Neomutt&lt;/a&gt; (via Mutt Wizard)&lt;/li&gt;
+&lt;li&gt;Web Browser: &lt;a href=&quot;https://lynx.browser.org/&quot;&gt;Lynx&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Text Editor: &lt;a href=&quot;https://www.nano-editor.org/&quot;&gt;Nano&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Code Editor: &lt;a href=&quot;https://www.vim.org/&quot;&gt;Vim&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;navigations-arent-the-only-culprits&quot;&gt;Navigations aren&amp;#8217;t the only culprits&lt;/h2&gt;
-&lt;p&gt;I wish that navigation items were the only sinners of the &amp;#8220;sticky&amp;#8221; position on mobile - but they are not alone. A few other problematic components include:&lt;/p&gt;
+&lt;p&gt;I will be setting up this &amp;#8220;portable pi&amp;#8221; via &lt;a href=&quot;https://www.raspberrypi.org/documentation/configuration/wireless/headless.md&quot;&gt;headless installation&lt;/a&gt; with my main &lt;a href=&quot;https://uglyduck.ca/my-pi-desktop/&quot;&gt;Raspberry Pi 4 desktop&lt;/a&gt;. Included below are some quick instructions on how to setup the Raspberry Pi Zero for &lt;code&gt;ssh&lt;/code&gt; access.&lt;/p&gt;
+&lt;h4 id=&quot;preparing-the-microsd-card&quot;&gt;Preparing the microSD card&lt;/h4&gt;
&lt;ul&gt;
-&lt;li&gt;Chatbot or support &amp;#8220;bubbles&amp;#8221;&lt;/li&gt;
-&lt;li&gt;&amp;#8220;Agree to our cookies&amp;#8221; prompts&lt;/li&gt;
-&lt;li&gt;Time-based pop-up modals&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Use Raspberry Pi Imager to write the Raspberry Pi Lite OS to your microSD card
+&lt;ul&gt;
+&lt;li&gt;Once complete, remove the microSD storage device and then re-connect it&lt;/li&gt;
+&lt;/ul&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Navigate to the &lt;code&gt;boot&lt;/code&gt; folder of the microSD device - we will be adding 2 files here
+&lt;ul&gt;
+&lt;li&gt;First add a completely empty file and name it &lt;code&gt;ssh&lt;/code&gt; (no file extension)&lt;/li&gt;
+&lt;li&gt;Next add an empty file named &lt;code&gt;wpa_supplicant.conf&lt;/code&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Open the &lt;code&gt;wpa_supplicant.conf&lt;/code&gt; file in a code &amp;#47; text editor and paste the following (be sure to change &lt;code&gt;country&lt;/code&gt; to your proper country code, as well as properly setting your network name &amp;#47; password):&lt;/p&gt;
+&lt;p&gt;ctrl&lt;em&gt;interface=DIR=&amp;#47;var&amp;#47;run&amp;#47;wpa&lt;/em&gt;supplicant GROUP=netdev
+update_config=1
+country=US&lt;/p&gt;
+&lt;p&gt;network={
+ ssid=&quot;Your network name&amp;#47;SSID&amp;#8221;
+ psk=&quot;Your WPA&amp;#47;WPA2 security key&amp;#8221;
+ key_mgmt=WPA-PSK
+}&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Unmount the microSD device, then place the microSD card in your RPi Zero&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Assemble the Raspberry Pi Zero with the Battery HAT (li-ion battery attached) connected via GPIO pins, and the 3.5 display connected on-top of the battery HAT&amp;#8217;s pins&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Turn on the battery HAT switch to power the RPi Zero. Give the device roughly 90 seconds to perform the initial boot&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Every time you implement one of these components, somewhere in the world a puppy dies. Seriously - don&amp;#8217;t be part of the problem and build these things. Push back on &amp;#8220;marketing research&amp;#8221; or team leads who tell you that this crap works. You&amp;#8217;re making the mobile web worse for everyone and setting a terrible precedent for future developers.&lt;/p&gt;
-&lt;p&gt;Stay &lt;em&gt;static&lt;/em&gt;, my friends!&lt;/p&gt;</content>
- <link href="https://btxx.org/sticky-elements"/>
- <id>https://btxx.org/sticky-elements</id>
- <updated>2019-10-06T10:00:00Z</updated>
- <published>2019-10-06T10:00:00Z</published>
- </entry>
- <entry>
- <title>Stay Hungry</title>
- <content type="html">&lt;h1 id=&quot;stay-hungry&quot;&gt;Stay Hungry&lt;/h1&gt;
-&lt;p&gt;2018-02-12&lt;/p&gt;
-&lt;p&gt;It can feel daunting in this developer &amp;#47; designer landscape to keep yourself up-to-date with the latest and greatest technologies available. Which new framework should I invest the most time into? Will it even be maintained a couple years down the road? Is it just a fad?&lt;/p&gt;
-&lt;p&gt;What about programming languages? Should I learn as many as possible or should I become an expert in one specialized area? &lt;em&gt;Should designers code?&lt;/em&gt; The list of possible &lt;em&gt;new&lt;/em&gt; things you could be learning continues to grow.
-This is sarcasm. Please don&amp;#8217;t take this seriously&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;jumping-right-in&quot;&gt;Jumping right in&lt;/h2&gt;
-&lt;p&gt;Want my advice? Pick something and dive head first into it. Don&amp;#8217;t worry if it&amp;#8217;s not the most popular programming language or if it&amp;#8217;s a new design system that isn&amp;#8217;t gaining much traction. Do you find it interesting? Awesome - that&amp;#8217;s what matters most. How can you teach yourself something new when you have &lt;em&gt;zero&lt;/em&gt; interest in it?&lt;/p&gt;
-&lt;h2 id=&quot;less-talk-more-action&quot;&gt;Less talk, more action&lt;/h2&gt;
-&lt;p&gt;So what am I currently doing to keep my mind fresh and thinking outside of my comfort zone?&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: the display will turn on but only show a white screen - this is normal&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;h4 id=&quot;connecting-to-your-zero-via-ssh&quot;&gt;Connecting to your Zero via SSH&lt;/h4&gt;
+&lt;p&gt;Open the terminal on your Raspberry Pi desktop and enter the following command:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;ssh pi@raspberrypi.local
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;You will then be asked if you wish to trust this device (say yes), then prompted for the &lt;code&gt;pi&lt;/code&gt; user&amp;#8217;s password - which is &lt;code&gt;raspberry&lt;/code&gt;. After a moment you will be directly connected to your Raspberry Pi Zero. Hooray!&lt;/p&gt;
+&lt;p&gt;We just want to make a couple small configuration changes before going forward (mostly for security):&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Run the command &lt;code&gt;sudo raspi-config&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Select &amp;#8220;Change User Password&amp;#8221; from the menu and change the password
+&lt;img src=&quot;/public/images/raspi-config.webp&quot; alt=&quot;Raspberry config&quot; /&gt;&lt;/li&gt;
+&lt;li&gt;After that, select &amp;#8220;Network Options&amp;#8221; and change your device name
&lt;ul&gt;
-&lt;li&gt;Teaching myself the R programming language&lt;/li&gt;
-&lt;li&gt;Deep diving into the &lt;code&gt;ggplot2&lt;/code&gt; package&lt;/li&gt;
-&lt;li&gt;Developing my first side project website using &lt;code&gt;blogdown&lt;/code&gt; and Hugo&lt;/li&gt;
-&lt;li&gt;Trying out Figma as my exclusive design program for the next few months&lt;/li&gt;
+&lt;li&gt;This will avoid any conflicts of connecting to newer RPi devices down the line&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;That&amp;#8217;s it!&lt;/p&gt;
+&lt;h4 id=&quot;installing-display-driver&quot;&gt;Installing display driver&lt;/h4&gt;
+&lt;p&gt;Next we will need to download and run the drivers needed for our 3.5-inch display to play nicely with our Pi Zero (just a blank white screen doesn&amp;#8217;t help us much). While connected to our RPi Zero via SSH, run the following commands:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;wget http:&amp;#47;&amp;#47;kedei.net&amp;#47;raspberry&amp;#47;v6_1&amp;#47;LCD_show_v6_1_3.tar.gz
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;If you have snail-paced rural internet like I do, now is a good time to go and grab a coffee while this download completes.&lt;/p&gt;
+&lt;p&gt;Once the download has finished, extract the contents and navigate to the new directory and install the driver:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo tar xzf LCD_show_v6_1_3.tar.gz
+cd LCD_show_v6_1_3
+sudo .&amp;#47;LCD35_v
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Once completed, the RPi Zero will reboot and everything should work as expected!&lt;/p&gt;
+&lt;h4 id=&quot;installing-software&quot;&gt;Installing software&lt;/h4&gt;
+&lt;p&gt;I&amp;#8217;m not going to jump into heavy details about installing terminal-based software for this setup. The links I&amp;#8217;ve attached in the software section should provide you with more than enough information to get started. For reference, I&amp;#8217;m using a very basic set of applications:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Neomutt (emails)&lt;/li&gt;
+&lt;li&gt;Lynx (quick and simple web browsing)&lt;/li&gt;
+&lt;li&gt;Nano (writing notes &amp;#47; blog posts in a hurry)&lt;/li&gt;
+&lt;li&gt;Vim (making any config edits or project work)&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Programming your brain to learn something new can be frustrating and pull you out of your comfort zone. Don&amp;#8217;t let this become stressful - instead use it as inspiration to push yourself through the struggle.&lt;/p&gt;
-&lt;p&gt;There is no real reason to avoid learning something new outside your current circle of knowledge - only crappy excuses.&lt;/p&gt;
-&lt;p&gt;Get on it.&lt;/p&gt;</content>
- <link href="https://btxx.org/stay-hungry"/>
- <id>https://btxx.org/stay-hungry</id>
- <updated>2018-02-12T10:00:00Z</updated>
- <published>2018-02-12T10:00:00Z</published>
- </entry>
- <entry>
- <title>Migrating from GitHub to sourcehut</title>
- <content type="html">&lt;h1 id=&quot;migrating-from-github-to-sourcehut&quot;&gt;Migrating from GitHub to sourcehut&lt;/h1&gt;
-&lt;p&gt;2022-11-14&lt;/p&gt;
-&lt;p&gt;It has taken a little bit longer than I anticipated, but I have finally started to port over all my personal open-source projects to &lt;a href=&quot;https://sourcehut.org&quot;&gt;sourcehut.org&lt;/a&gt;. I&amp;#8217;ll get into the &lt;em&gt;why&lt;/em&gt; and &lt;em&gt;how&lt;/em&gt; momentarily, but first let&amp;#8217;s take a look at all the impacted projects:&lt;/p&gt;
-&lt;h2 id=&quot;ported-projects&quot;&gt;Ported Projects&lt;/h2&gt;
+&lt;p&gt;There you have it - a terminal-based, portable Raspberry Pi Zero &amp;#8220;hacker&amp;#8221; device. &lt;/p&gt;
+&lt;p&gt;Is it practical? Not really. Can it replace any other &lt;em&gt;portable&lt;/em&gt; device you might own? Probably not. Is it fun to make and experiment on? You bet! And in the end - isn&amp;#8217;t that what matters most with pet Pi projects?&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/cheap-portable-pi"/>
+ <id>https://btxx.org/posts/cheap-portable-pi</id>
+ <updated>2020-09-16T10:00:00Z</updated>
+ <published>2020-09-16T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Web Development on a $200 Chromebook</title>
+ <content type="html">&lt;h1 id=&quot;web-development-on-a-200-chromebook&quot;&gt;Web Development on a $200 Chromebook&lt;/h1&gt;
+&lt;p&gt;2020-01-07&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;This blog post was written, edited and tested locally&lt;/em&gt; on a cheap $200 Chromebook. The article draft was composed in Sublime Text. Jekyll (the SSG this website uses) was generated via the Linux Beta Terminal running alongside Chrome OS. It was then pushed to the Github repo from the same Terminal and published automatically to Netlify. But more on that later.&lt;/p&gt;
+&lt;p&gt;First, we need to ask an important question: why use a Chromebook for web development? Maybe a better question might be: why not?&lt;/p&gt;
+&lt;h2 id=&quot;mild-interest-turned-into-an-experiment&quot;&gt;Mild interest turned into an experiment&lt;/h2&gt;
+&lt;p&gt;Looking from the outside, I always liked the concept of the Chrome OS ecosystem. It had a solid list of features that appealed to me, specifically:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://vanillacss.com&quot;&gt;Vanilla CSS&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://1mb.club&quot;&gt;1mb.club&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://pblog.bt.ht&quot;&gt;pblog&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://shinobi.bt.ht&quot;&gt;shinobi&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://audit.bt.ht&quot;&gt;Web Audit&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Blazingly fast boot times&lt;/li&gt;
+&lt;li&gt;Long lasting battery life (roughly 8 hours with consistent usage)&lt;/li&gt;
+&lt;li&gt;Extremely cheap entry point for &amp;#8220;low-end&amp;#8221; devices&lt;/li&gt;
+&lt;li&gt;And, more recently, support for Android &amp;#38; Linux apps&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;still-wip&quot;&gt;Still WIP&lt;/h2&gt;
+&lt;p&gt;The obvious downside to using a Chromebook is the lack of a &amp;#8220;real&amp;#8221; operating system. A Windows, Mac or Linux machine will always have more flexibility and depth than a simple Chromebook. But I&amp;#8217;ve found that simple is all I need - or want.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Side note:&lt;/strong&gt; &lt;em&gt;I wrote an article not to long ago about &lt;a href=&quot;https://uglyduck.ca/stop-crawling-google/&quot;&gt;blocking Google from my website&lt;/a&gt; and I can see how this current post may come across as hypocritical. Since the search&amp;#47;AMP teams are not that same as the Chrome OS &amp;#47; Chromebook development team, I can view each of those projects based on their own merits. If you still view me as a hypocrite, that&amp;#8217;s fine&lt;/em&gt; :)&lt;/p&gt;
+&lt;h2 id=&quot;my-use-case-ymmv&quot;&gt;My use case (YMMV)&lt;/h2&gt;
+&lt;p&gt;I ended up grabbing the &lt;a href=&quot;https://amzn.to/2Xvx20q&quot;&gt;Acer 11 N7 Chromebook&lt;/a&gt; off of Amazon for $200 (on sale and in Canuck bucks). It comes packed with 4GB of RAM with an Intel Celeron (1.6GHz) and 32GB of storage. Fairly barebones stuff.&lt;/p&gt;
+&lt;p&gt;My day-to-day use cases are fairly straightforward. I work with git, static site generators, WordPress locally and on staging servers, edit documents, send emails and watch stupid YouTube videos. You know, the basics. My dirt-cheap Chromebook handles all of these things with ease.&lt;/p&gt;
+&lt;p&gt;My Chromebook setup is as follows:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://1kb.club&quot;&gt;1kb.club&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://phpetite.org&quot;&gt;phpetite.org&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Linux Beta (ships with &lt;code&gt;git&lt;/code&gt;, etc)&lt;/li&gt;
+&lt;li&gt;Sublime Text (you can always use VSCode if you prefer)&lt;/li&gt;
+&lt;li&gt;Terminal&lt;/li&gt;
+&lt;li&gt;Local by Flywheel (local WordPress development)&lt;/li&gt;
+&lt;li&gt;Figma in Chrome (UI design &amp;#47; mockups)&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;&lt;em&gt;Some others are being worked on but have less &amp;#8220;popularity&amp;#8221;&lt;/em&gt;&lt;/p&gt;
-&lt;h2 id=&quot;why&quot;&gt;Why?&lt;/h2&gt;
-&lt;p&gt;GitHub has landed itself in some hot water with their &lt;a href=&quot;https://githubcopilotlitigation.com/&quot;&gt;recent lawsuit(s) surrounding their Copilot feature&lt;/a&gt;. I was already on the fence about keeping GitHub as my main &amp;#8220;code forge&amp;#8221; after they were scooped up by Microsoft, who then killed off Atom and then started collecting telemetry data through VSCode. This seemed like a good excuse as any to finally leave the platform. The &lt;em&gt;straw&lt;/em&gt;, if you will.&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;&amp;#62;&amp;#62; Sourcehut has entered the chat &amp;#60;&amp;#60;&lt;/em&gt;&lt;/p&gt;
-&lt;p&gt;We, as designers and developers, shouldn&amp;#8217;t be supporting crap like this. I would much rather put my money where my mouth is and directly support a truly transparent alternative[^1]. Although I might only be paying for the &lt;strong&gt;Typical Hacker&lt;/strong&gt; tier on &lt;a href=&quot;https://sourcehut.org/pricing/&quot;&gt;sourcehut&lt;/a&gt;, I like to think that every little bit helps the platform. Even if you choose a different code forge, please consider donating to support independent alternatives!&lt;/p&gt;
-&lt;h2 id=&quot;git-email-jump-into-the-deep-end&quot;&gt;Git Email? Jump into the Deep End&lt;/h2&gt;
-&lt;p&gt;One aspect of sourcehut that initially scared me off was the lack of a proper &amp;#8220;PR-flow&amp;#8221;, web UI-based system[^2]. Instead, reporting bugs, creating tickets, and submitting PATCHES are generally done through regular, plain-text email.&lt;/p&gt;
-&lt;p&gt;In the end, I&amp;#8217;m glad I stuck it out. I&amp;#8217;m still pretty slow with this new workflow (so please be patient with me if you submit a patch on a project!) but it actually seems cleaner. The phrase &amp;#8220;streamlined&amp;#8221; is what comes to mind.&lt;/p&gt;
-&lt;p&gt;And really, if you think about it, at one point in time GitHub&amp;#8217;s PR system would have been &amp;#8220;new&amp;#8221; for most users. Everything takes time to learn. This workflow is no different.&lt;/p&gt;
-&lt;p&gt;Drew (creator of sourcehut) actually put together an extremely helpful guide on getting &lt;a href=&quot;https://git-send-email.io/&quot;&gt;setup with git send-email&lt;/a&gt;. I still reference back to this if&amp;#47;when I need to get up-and-running on a new machine. I highly recommend checking it out.&lt;/p&gt;
-&lt;h2 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h2&gt;
-&lt;p&gt;That&amp;#8217;s it really. I&amp;#8217;m still in the process of moving over some projects, archiving original GitHub repos and becoming more adapted to the whole sourcehut &amp;#8220;workflow&amp;#8221;. I&amp;#8217;m enjoying it and it feels good to pay for something that is not only useful but open source at its core.&lt;/p&gt;
-&lt;p&gt;Will I be deleting my GitHub profile outright? Maybe. I&amp;#8217;m not sure. For now the first step is removing any dependence I once had on that platform. Baby steps.&lt;/p&gt;
-&lt;p&gt;For those interested, my sourcehut public profile is: &lt;a href=&quot;https://sr.ht/~bt/&quot;&gt;https:&amp;#47;&amp;#47;sr.ht&amp;#47;~bt&amp;#47;&lt;/a&gt;. Maybe I&amp;#8217;ll see you on the other side ;)&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it. I understand other developers may require a lot more than this, but with Linux running in a container alongside Chrome OS you can pretty much run anything you could possibly need (excluding exclusive Mac &amp;#38; Windows apps, of course).&lt;/p&gt;
+&lt;h2 id=&quot;can-a-200-chromebook-be-your-next-web-dev-machine&quot;&gt;Can a $200 Chromebook be your next web dev machine?&lt;/h2&gt;
+&lt;p&gt;For me? Yes. For you? Maybe.&lt;/p&gt;
+&lt;p&gt;I mean, it really just depends on what you need your machine to accomplish. If you can be productive and the apps you use are just as fast and responsive as they would be on a more robust OS - then I say go for it. You don&amp;#8217;t even need to be a cheapo like me, instead you can snag a fancier Chromebook or Google&amp;#8217;s own Pixelbook. There are a ton of options when it comes to Chrome OS based devices.&lt;/p&gt;
+&lt;p&gt;If you wanted to experiment to see if the Chrome OS ecosystem could work with your development flow, you can always check out something like &lt;a href=&quot;https://www.neverware.com/freedownload&quot;&gt;CloudReady&lt;/a&gt; to test on your current machine before pulling the trigger.&lt;/p&gt;
+&lt;p&gt;In the end, it doesn&amp;#8217;t matter what operating system or apps you use to get your development work done - so long as it is productive and easy-to-use.&lt;/p&gt;
+&lt;p&gt;For my current situation, all I need is my cheap little Chromebook.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/chromebook-web-dev"/>
+ <id>https://btxx.org/posts/chromebook-web-dev</id>
+ <updated>2020-01-07T10:00:00Z</updated>
+ <published>2020-01-07T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>A Reality Where CSS and JavaScript Don't Exist</title>
+ <content type="html">&lt;h1 id=&quot;a-reality-where-css-and-javascript-dont-exist&quot;&gt;A Reality Where CSS and JavaScript Don&amp;#8217;t Exist&lt;/h1&gt;
+&lt;p&gt;2021-11-03&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;This is my personal opinion. Please leave your pitchforks at the door&amp;#8230;&lt;/em&gt;&lt;/p&gt;
+&lt;p&gt;I love CSS. I can spend hours deep diving into a website&amp;#8217;s CSS system and never find myself getting bored. It&amp;#8217;s pretty amazing to see the problems other designers are able to solve with just a little bit of custom styling and determination.&lt;/p&gt;
+&lt;p&gt;I like JavaScript. It serves it&amp;#8217;s purpose and makes complex functionality on the web easier to wrangle in and understand.&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;But I think both should have never come into existence&lt;/em&gt;.&lt;/p&gt;
+&lt;h3 id=&quot;heresey&quot;&gt;Heresey!&lt;/h3&gt;
+&lt;p&gt;I know, I know - this website itself uses a little, teeny-tiny amount of CSS. I am indeed a hypocrite - but did I ever claim that I &lt;em&gt;practice&lt;/em&gt; what I preach? At least this personal website is JavaScript-free&amp;#8230; (apart from a handful of CodePen examples embedded in some of the tutorials).&lt;/p&gt;
+&lt;h3 id=&quot;moving-on&quot;&gt;Moving On&amp;#8230;&lt;/h3&gt;
+&lt;p&gt;I&amp;#8217;m not a complete idiot. I realize that the web has evolved significantly over the years, and to propose that it should have remained stagnant with it&amp;#8217;s original concept of &amp;#8220;paged documents&amp;#8221; is foolish. But that &lt;em&gt;is&lt;/em&gt; what I&amp;#8217;m suggesting - at least, partially.&lt;/p&gt;
+&lt;h3 id=&quot;consistent-boring&quot;&gt;Consistent &amp;#38; Boring&lt;/h3&gt;
+&lt;p&gt;Out there in the multiverse is a reality where the web is a complete borefest. Information is the only driving factor to visit a &amp;#8220;web page&amp;#8221; and PWAs have never come to exist. Custom styling, fancy interactive animations and single-page functionality isn&amp;#8217;t even something that can be implemented. The web is just a system of HTML&amp;#47;plaintext documents sharing information and data. Users browse the web in quick bursts to satisfy their queries or read something interesting. Then, they return to &lt;em&gt;real life&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;My goodness what a &lt;em&gt;beautiful&lt;/em&gt; reality that would be. Consistent, boring and wonderful.&lt;/p&gt;
+&lt;h3 id=&quot;wait---arent-you-a-designer&quot;&gt;&amp;#8220;Wait - Aren&amp;#8217;t You a Designer?&amp;#8221;&lt;/h3&gt;
+&lt;p&gt;Yes - and again more hypocrisy. My livelihood depends on software requiring custom UIs and properly audited UX flows. By suggesting this change I am throwing myself under the bus and putting myself out of work. All my experience would become worthless and the world of software &lt;em&gt;design&lt;/em&gt; would cease to exist.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;I would be okay with that&lt;/strong&gt;. If it meant the web as a whole was a better place - so be it.&lt;/p&gt;
+&lt;h3 id=&quot;a-look-at-the-new-world&quot;&gt;A Look at the &amp;#8220;New World&amp;#8221;&lt;/h3&gt;
+&lt;p&gt;Sometimes it is easier to visualize a concept instead of just discussing it. Below you can find an example of a &amp;#8220;converted&amp;#8221; website[^1] showcasing how sites would look and feel in this design-less reality:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Wealthsimple: &lt;a href=&quot;https://www.wealthsimple.com/en-ca/&quot;&gt;Current Website&lt;/a&gt; &amp;#47; &lt;a href=&quot;/etc/html-only/wealthsimple/&quot;&gt;New Version&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;As you can see, all the &lt;em&gt;fluff&lt;/em&gt; has been removed from the existing design and only the content remains. No scroll-jacking or extra JavaScript libraries are downloaded. Users can easily skim through all the content and screen readers won&amp;#8217;t struggle through any custom elements. It also loads incredibly fast.&lt;/p&gt;
+&lt;p&gt;Of course, to our[^2] eyes, this design might look ugly or seem as though the site&amp;#8217;s CSS failed to load - but in a reality where this is the standard, it is beautifully minimal. Either way, I find that this was at least a fun thought experiment and hopefully leaves you thinking about how the web &lt;em&gt;could have been&lt;/em&gt; as well.&lt;/p&gt;
+&lt;p&gt;Now, back to designing UIs for the web&amp;#8230;&lt;/p&gt;
&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;I keep an up-to-date document of all the open source software&amp;#47;communities I pay for on &lt;a href=&quot;/uses&quot;&gt;my &amp;#8220;Uses&amp;#8221; page&lt;/a&gt; for reference.&lt;/li&gt;
-&lt;li&gt;Put your pitchforks and torches away - I&amp;#8217;m aware that a web-facing UI exists on sourcehut as well!&lt;/li&gt;
+&lt;li&gt;Selected site based on my own personal preference&lt;/li&gt;
+&lt;li&gt;Referring to current users of the web&lt;/li&gt;
&lt;/ol&gt;</content>
- <link href="https://btxx.org/srht2"/>
- <id>https://btxx.org/srht2</id>
- <updated>2022-11-14T10:00:00Z</updated>
- <published>2022-11-14T10:00:00Z</published>
- </entry>
- <entry>
- <title>Never Do Spec Work for Free</title>
- <content type="html">&lt;h1 id=&quot;never-do-spec-work-for-free&quot;&gt;Never Do Spec Work for Free&lt;/h1&gt;
-&lt;p&gt;2022-11-07&lt;/p&gt;
-&lt;p&gt;Your time is valuable and shouldn&amp;#8217;t be taken for granted. Let me say that again for the people in the back: &lt;em&gt;your time is valuable and shouldn&amp;#8217;t be taken for granted&lt;/em&gt;. Time is the most precious commodity we have as human beings, so never waste that time on free &amp;#8220;spec&amp;#8221; work. It&amp;#8217;s never worth it. Ever.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ve had up-and-coming designers reach out to me multiple times and ask specifically about completing spec work or &amp;#8220;challenges&amp;#8221; presented by hiring staff. My first question is normally, &amp;#8220;Are they paying you for it?&amp;#8221;. If the answer is no, then I tell these individuals to move on. The company and the role is not worth their time.&lt;/p&gt;
-&lt;p&gt;There are plenty of companies that respect the hiring process and will pay you for your time. Good on them. These are the places that you should be striving to work with&amp;#47;for. Avoid those who don&amp;#8217;t. If they don&amp;#8217;t respect your time before they even consider hiring you, what makes you think they&amp;#8217;ll respect it once you&amp;#8217;re on the team?&lt;/p&gt;
-&lt;h2 id=&quot;never&quot;&gt;Never?&lt;/h2&gt;
-&lt;p&gt;Never. If a company or individual is considering you for a role, so much so that they are interested in seeing how you would work with them directly, &lt;strong&gt;they need to pay you&lt;/strong&gt;. These companies (large or small) would &lt;em&gt;laugh&lt;/em&gt; at the concept of doing something free for you. Why is their time respected but yours isn&amp;#8217;t?&lt;/p&gt;
-&lt;h2 id=&quot;asking-for-free-spec-work-stop.&quot;&gt;Asking for Free Spec Work? Stop.&lt;/h2&gt;
-&lt;p&gt;If you&amp;#8217;re implementing these practices at your place of business, then you&amp;#8217;re part of the problem. Maybe you need a more robust candidate review process, so those interviewees you are willing to pay for &amp;#8220;code challenges&amp;#8221; or spec work are more finely tuned. Maybe you just need to re-evaluate how much you value the workers you&amp;#8217;re looking to hire.&lt;/p&gt;
-&lt;p&gt;The software world is a strange beast where we have adapted this &amp;#8220;work for free before we &lt;em&gt;think&lt;/em&gt; about paying you&amp;#8221;. Imagine implementing this system for something like a plumber?&lt;/p&gt;
-&lt;p&gt;&amp;#8220;Hey, could you install this new sink for me - for &lt;strong&gt;free&lt;/strong&gt;? Then, if I think you did a good job, I can start to pay you for other work around my house?&amp;#8221;&lt;/p&gt;
-&lt;p&gt;Good luck with that.&lt;/p&gt;
-&lt;h2 id=&quot;be-confident&quot;&gt;Be Confident&lt;/h2&gt;
-&lt;p&gt;This post is mostly targeted to new designers and developers, but can certainly still apply to those with years of experience under their belts. I&amp;#8217;ve been guilty of doing free spec work years ago when I was first starting out (my grey hairs are showing&amp;#8230;) and it &lt;strong&gt;never&lt;/strong&gt; paid off. Literally and figuratively. Learn through my own mistakes and just walk away from people asking you to work for free.&lt;/p&gt;
-&lt;p&gt;No matter what you think about your skill level or real-world experience, you need to have at least a bare-minimum standard for yourself: &lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Never work for free&lt;/strong&gt; &amp;#8211; Unless you &lt;em&gt;choose&lt;/em&gt; to work for free on something like a personal or open source project. That is obviously a different situation!&lt;/p&gt;</content>
- <link href="https://btxx.org/spec"/>
- <id>https://btxx.org/spec</id>
- <updated>2022-11-07T10:00:00Z</updated>
- <published>2022-11-07T10:00:00Z</published>
- </entry>
- <entry>
- <title>SOMA Inspired Terminal Display with CSS</title>
- <content type="html">&lt;h1 id=&quot;soma-inspired-terminal-display-with-css&quot;&gt;SOMA Inspired Terminal Display with CSS&lt;/h1&gt;
-&lt;p&gt;2021-05-29&lt;/p&gt;
-&lt;p&gt;A few years back I played (and loved) &lt;a href=&quot;https://store.steampowered.com/app/282140/SOMA/&quot;&gt;SOMA&lt;/a&gt;, a first-person sci-fi horror-adventure game. The story was intriguing and the developers nailed the overall atmosphere of Pathos-II. Though both those aspects were great, what I found the most enjoyable were the interactive computers and displays found sprinkled throughout the world.&lt;/p&gt;
-&lt;p&gt;Three years ago I wanted to see if I could recreate one of those terminal displays with HTML &amp;#38; CSS. And I did just that.&lt;/p&gt;
-&lt;p&gt;So, why am I writing about this &lt;em&gt;three years later&lt;/em&gt;? Well, I never did a proper write-up explaining how I achieved it. I&amp;#8217;m sure someone out there in the wild west of the web could get some value out of this tutorial, right? I hope so!&lt;/p&gt;
-&lt;h2 id=&quot;the-live-demo&quot;&gt;The Live Demo&lt;/h2&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/soma-terminal.png&quot; alt=&quot;Terminal based off the SOMA computers&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/ZEeLgmz&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+ <link href="https://btxx.org/posts/css-js-mistake"/>
+ <id>https://btxx.org/posts/css-js-mistake</id>
+ <updated>2021-11-03T10:00:00Z</updated>
+ <published>2021-11-03T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>CSS Slope Graphs</title>
+ <content type="html">&lt;h1 id=&quot;css-slope-graphs&quot;&gt;CSS Slope Graphs&lt;/h1&gt;
+&lt;p&gt;2021-06-07&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;I am a huge sucker for simplistic and beautifully designed visual data on the web&lt;/em&gt;. Most data tends to be graphed via line or bar systems - which is fine - but I think slope graphs are highly underrated. Let&amp;#8217;s change that, shall we?&lt;/p&gt;
+&lt;h2 id=&quot;the-demo&quot;&gt;The Demo&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;m basing this demo off the design patterns found in &lt;a href=&quot;https://www.edwardtufte.com/tufte/books_vdqi&quot;&gt;Edward Tufte&amp;#8217;s visualization work&lt;/a&gt;, specifically his slope graph designs:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/jOBzXMe&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;Nothing fancy going on here - just some simple &lt;code&gt;div&lt;/code&gt; elements holding a few paragraphs and spans:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;outer-frame&quot;&amp;#62;
- &amp;#60;div class=&quot;screen&quot;&amp;#62;
- &amp;#60;div class=&quot;screen-guts&quot;&amp;#62;
- &amp;#60;h2&amp;#62;Key Control&amp;#60;&amp;#47;h2&amp;#62;
- &amp;#60;p&amp;#62;&amp;#60;span&amp;#62;Panel Chip&amp;#60;&amp;#47;span&amp;#62; (Connector)&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p class=&quot;column&quot;&amp;#62;
- Security Keys: 023-027&amp;#60;br&amp;#62;C819738-23
- &amp;#60;br&amp;#62;
- &amp;#60;span class=&quot;error&quot;&amp;#62;Error: Key Expired&amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;br&amp;#62;
- &amp;#60;em&amp;#62;Please update...&amp;#60;&amp;#47;em&amp;#62;
- &amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p&amp;#62;
- &amp;#60;span&amp;#62;Permission&amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;br&amp;#62;
- Standard ThetaCipher
- &amp;#60;br&amp;#62;
- &amp;#60;span&amp;#62;Secop-Jstrohweier&amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;button class=&quot;update-button&quot;&amp;#62;Update Chip&amp;#60;&amp;#47;button&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;bottom-controls&quot;&amp;#62;
- &amp;#60;button class=&quot;back-button&quot;&amp;#62;Back 背部&amp;#60;&amp;#47;button&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
+&lt;p&gt;For this concept we will actually be building this graph out of &lt;code&gt;tables&lt;/code&gt; - crazy, right? The greatest benefit of rendering all the data inside of a &lt;code&gt;table&lt;/code&gt; element is the ability to easily support smaller screens and mobile devices. Larger viewports will get to see the pretty slope graph, while those below a certain threshold will view a simple table.&lt;/p&gt;
+&lt;p&gt;(But more on that in the CSS section)&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;p&amp;#62;Sales of the leading frozen pizza brands of the United States from 2011 to 2017 (in million US dollars) &amp;#60;br&amp;#62;&amp;#60;em&amp;#62;Source: Statisa 2018&amp;#60;&amp;#47;em&amp;#62;&amp;#60;&amp;#47;p&amp;#62;
+&amp;#60;table&amp;#62;
+ &amp;#60;thead&amp;#62;
+ &amp;#60;tr&amp;#62;
+ &amp;#60;th&amp;#62;Pizza Brand&amp;#60;&amp;#47;th&amp;#62;
+ &amp;#60;th&amp;#62;2011&amp;#60;&amp;#47;th&amp;#62;
+ &amp;#60;th&amp;#62;2017&amp;#60;&amp;#47;th&amp;#62;
+ &amp;#60;&amp;#47;tr&amp;#62;
+ &amp;#60;&amp;#47;thead&amp;#62;
+ &amp;#60;tbody&amp;#62;
+ &amp;#60;tr&amp;#62;
+ &amp;#60;td data-set=&quot;677.0&quot;&amp;#62;DiGiorno&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td&amp;#62;&amp;#60;span&amp;#62;677.0&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td data-name=&quot;DiGiorno&quot;&amp;#62;1014.6&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;&amp;#47;tr&amp;#62;
+ &amp;#60;tr&amp;#62;
+ &amp;#60;td data-set=&quot;294.8&quot;&amp;#62;Private Label&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td&amp;#62;&amp;#60;span&amp;#62;294.8&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td data-name=&quot;Private Label&quot;&amp;#62;524.8&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;&amp;#47;tr&amp;#62;
+ &amp;#60;tr&amp;#62;
+ &amp;#60;td data-set=&quot;286.1&quot;&amp;#62;Red Baron&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td&amp;#62;&amp;#60;span&amp;#62;286.1&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td data-name=&quot;Red Baron&quot;&amp;#62;572.3&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;&amp;#47;tr&amp;#62;
+ &amp;#60;tr&amp;#62;
+ &amp;#60;td data-set=&quot;257.9&quot;&amp;#62;Tombstone&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td&amp;#62;&amp;#60;span&amp;#62;257.9&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td data-name=&quot;Tombstone&quot;&amp;#62;270.6&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;&amp;#47;tr&amp;#62;
+ &amp;#60;tr&amp;#62;
+ &amp;#60;td data-set=&quot;164.5&quot;&amp;#62;Totino&amp;#39;s Party Pizza&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td&amp;#62;&amp;#60;span&amp;#62;164.5&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td data-name=&quot;Totino&amp;#39;s Party Pizza&quot;&amp;#62;347.2&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;&amp;#47;tr&amp;#62;
+ &amp;#60;&amp;#47;tbody&amp;#62;
+&amp;#60;&amp;#47;table&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;As you can see, nothing too fancy is happpening here. Pay close attention to the &lt;code&gt;data-set&lt;/code&gt; and &lt;code&gt;data-name&lt;/code&gt; variables though - those will be important for the CSS portion of this design, mainly the rendering of the line elements.&lt;/p&gt;
&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;Let&amp;#8217;s just dump all the CSS right here (don&amp;#8217;t worry, it looks far more complicated than it really is):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@import url(&amp;#39;https:&amp;#47;&amp;#47;opentype.netlify.com&amp;#47;sansation&amp;#47;index.css&amp;#39;);
-
+&lt;p&gt;To avoid overwhelming your brain all-at-once, let&amp;#8217;s break the CSS down into bite-sized chunks, starting with the base styling:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@import url(&amp;#39;https:&amp;#47;&amp;#47;opentype.netlify.com&amp;#47;et-book&amp;#47;index.css&amp;#39;);
* {
box-sizing: border-box;
}
-body {
- background: #333;
- font-family: &quot;Sansation&quot;, sans-serif;
- padding: 3rem 0;
+html {
+ height: 100%;
}
-button {
- appearance: none;
- border: 0;
- cursor: pointer;
- font-family: &quot;Inconsolata&quot;, &quot;Consolas&quot;, mono;
- font-size: 18px;
- transition: 0.3s ease all;
+body {
+ background: #fffff8;
+ font-family: &quot;et-book&quot;, serif;
+ height: 100%;
+ margin: 0 auto;
+ max-width: 800px;
+ padding: 0 0.5rem;
}
-.outer-frame,
-.screen {
- display: block;
- margin: 0 auto;
- position: relative;
+p {
+ font-size: 18px;
+ margin: 4rem 0 6rem;
}
-.outer-frame {
- background: #ccc url(&quot;https:&amp;#47;&amp;#47;preview.ibb.co&amp;#47;iS9nz7&amp;#47;screen_grunge.webp&quot;) no-repeat center;
- background-size: cover;
- border-radius: 5px;
- box-shadow: 0 5px 20px rgba(0,0,0,0.6);
- height: 560px;
- width: 750px;
+table {
+ border-collapse: collapse;
+ text-align: left;
+ width: 100%;
}
-.outer-frame:before {
- background: rgba(0,0,0,0.3);
- border-radius: 5px;
- box-shadow: inset 5px 5px 10px rgba(0,0,0,0.4), 1px 1px 1px rgba(255,255,255,0.3);
- content: &amp;#39;&amp;#39;;
- height: 538px;
- left: 15px;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Pretty basic stuff.&lt;/p&gt;
+&lt;p&gt;Now we need to design how our slope graph will look on larger screens &amp;#47; desktops. For this instance, we will target these larger devices with a &lt;code&gt;min-width&lt;/code&gt; media query of &lt;code&gt;800px&lt;/code&gt;. The rest of the CSS might look a little confusing but I assure you it is quite simple.&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;p&gt;On larger devices we hide the first &lt;code&gt;thead tr th&lt;/code&gt; element with &lt;code&gt;display: none&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;The first and second &lt;code&gt;td&lt;/code&gt; elements inside each &lt;code&gt;tbody&lt;/code&gt; row need to be set as &lt;code&gt;position: absolute&lt;/code&gt; to avoid duplicate content&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;The inner &lt;code&gt;span&lt;/code&gt; that we include in our HTML inside the second &lt;code&gt;tbody tr td&lt;/code&gt; also needs to be &lt;code&gt;display: none&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Remember that &lt;code&gt;data-set&lt;/code&gt; variable? We now use that for our &lt;code&gt;:before&lt;/code&gt; pseudo element for &lt;code&gt;table tbody tr td:nth-of-type(1)&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Remember that &lt;code&gt;data-name&lt;/code&gt; variable? We now use that for our &lt;code&gt;:before&lt;/code&gt; pseudo element for &lt;code&gt;table tbody tr td:nth-of-type(3)&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;After that, you can see the simple customization we include to render the angle &amp;#47; position of the slope lines and the corresponding labels&lt;/p&gt;
+&lt;p&gt;@media(min-width:800px) {
+ table {
+ display: block;
+ position: relative;
+ margin-bottom: 25rem;
+ }&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;table thead th {
+ border-bottom: 1px solid lightgrey;
+ font-size: 24px;
position: absolute;
- top: 11px;
- width: 720px;
+ top: -50px;
+ width: 45%;
}
+table thead th:nth-child(1){ display: none; }
+table thead th:nth-child(2){ left: 0; }
+table thead th:nth-child(3){ right: 0; text-align: right; }
-.screen {
- background: #000 url(&quot;https:&amp;#47;&amp;#47;image.ibb.co&amp;#47;gOqSz7&amp;#47;screen_dust.webp&quot;) no-repeat center;
- background-size: cover;
- border-radius: 5px;
- height: 450px;
- left: 75px;
- padding: 60px;
- position: absolute;
- top: 55px;
- width: 600px;
+table tbody tr td:nth-of-type(1),
+table tbody tr td:nth-of-type(2) { position: absolute;}
+
+table tbody tr td:nth-of-type(2) span { display: none; }
+table tbody tr td:nth-of-type(1):before {
+ content: attr(data-set);
+ margin-right: 10px;
+ position: relative;
}
-.screen:after {
- background: url(&quot;https:&amp;#47;&amp;#47;s13.postimg.org&amp;#47;85ryuy1o7&amp;#47;dust.webp&quot;) no-repeat center;
- background-size: cover;
- border-radius: 5px;
- box-shadow: inset 0 0 20px rgba(0,0,0,0.5), inset 5px 5px 10px rgba(0,0,0,0.4), 1px 1px 1px rgba(255,255,255,0.3);
- content: &amp;#39;&amp;#39;;
- height: 100%;
- left: 0;
- opacity: 0.8;
- pointer-events: none;
+
+table tbody tr td:nth-of-type(2) { padding-left: 10px; }
+
+table tbody tr td:nth-of-type(3) {
position: absolute;
- top: 0;
- width: 100%;
- z-index: 2;
+ right: 0;
}
-
-.screen-guts {
- border-bottom: 2px solid #8fc8c8;
- border-top: 2px solid #8fc8c8;
- height: calc(100% - 50px);
+table tbody tr td:nth-of-type(3):before {
+ content: attr(data-name);
+ margin-right: 10px;
position: relative;
- width: 100%;
- z-index: 0;
}
-.screen-guts:after {
- border: 2px solid #8fc8c8;
- color: #8fc8c8;
- content: &amp;#39;键&amp;#39;;
- padding: 5px 8px;
+
+&amp;#47;* Custom individual slopes -- Left *&amp;#47;
+tbody tr:nth-child(1) td:nth-child(1),
+tbody tr:nth-child(1) td:nth-child(2) { top: 60px; }
+tbody tr:nth-child(2) td:nth-child(1),
+tbody tr:nth-child(2) td:nth-child(2) { top: 140px; }
+tbody tr:nth-child(3) td:nth-child(1),
+tbody tr:nth-child(3) td:nth-child(2) { top: 165px; }
+tbody tr:nth-child(4) td:nth-child(1),
+tbody tr:nth-child(4) td:nth-child(2) { top: 220px; }
+tbody tr:nth-child(5) td:nth-child(1),
+tbody tr:nth-child(5) td:nth-child(2) { top: 270px; }
+
+&amp;#47;* Custom individual slopes -- Right *&amp;#47;
+[data-name=&quot;DiGiorno&quot;] { top: 0; }
+[data-name=&quot;Red Baron&quot;] { top: 65px; }
+[data-name=&quot;Private Label&quot;] { top: 100px; }
+[data-name=&quot;Tombstone&quot;] { top: 180px; }
+[data-name=&quot;Totino&amp;#39;s Party Pizza&quot;] { top: 150px; }
+
+&amp;#47;* The custom visual lines *&amp;#47;
+tbody tr:after {
+ background: black;
+ content: &amp;#39;&amp;#39;;
+ height: 1px;
+ left: 14.5%;
position: absolute;
- right: 0;
- top: 5px;
+ width: 70%;
}
-.screen-guts h2 {
- background: #8fc8c8;
- color: #fff;
- display: inline-block;
- font-size: 24px;
- margin: 0 0 30px 0;
- padding: 10px;
+tbody tr:nth-child(1):after {
+ top: 40px;
+ transform: rotate(-6deg);
}
-.screen-guts p {
- color: #8fc8c8;
- font-size: 18px;
- margin: 0 0 30px 0;
+tbody tr:nth-child(2):after {
+ left: 17.5%;
+ top: 130px;
+ transform: rotate(-4deg);
+ width: 65%;
}
-.screen-guts p.column {
- column-width: 200px;
+tbody tr:nth-child(3):after {
+ left: 15%;
+ top: 125px;
+ transform: rotate(-10.25deg);
+ width: 70%;
}
-.screen-guts p span {
- text-transform: uppercase;
+tbody tr:nth-child(4):after {
+ left: 16%;
+ top: 210px;
+ transform: rotate(-4deg);
+ width: 68%;
}
-.screen-guts p span.error {
- color: #f37c56;
+tbody tr:nth-child(5):after {
+ left: 22%;
+ top: 222px;
+ transform: rotate(-16deg);
+ width: 56%;
}
-.screen-guts p span em {
- text-transform: none;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;}&lt;/p&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;All that&amp;#8217;s left are some minor styles to make everything look nice on mobile:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@media(max-width:800px) {
+ p {
+ margin: 2rem 0;
+ }
+ table td, table th {
+ border-bottom: 1px solid grey;
+ padding: 10px;
+ }
+ table td:last-of-type, table th:last-of-type {
+ text-align: right;
+ }
}
-.screen-guts button.update-button {
- background: #889314;
- bottom: 10px;
- color: #fff;
- padding: 15px 20px;
- position: absolute;
- right: 0;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;not-the-most-practical&quot;&gt;Not the most practical&lt;/h2&gt;
+&lt;p&gt;This slope graph concept is far from perfect for use in real-world situations. The fact that you need to manually render each point of data yourself makes this implementation quite annoying for more in-depth projects.&lt;/p&gt;
+&lt;p&gt;But it was fun to mess around with and create, so who cares!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/css-slope-graphs"/>
+ <id>https://btxx.org/posts/css-slope-graphs</id>
+ <updated>2021-06-07T10:00:00Z</updated>
+ <published>2021-06-07T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>CSS Variables</title>
+ <content type="html">&lt;h1 id=&quot;css-variables&quot;&gt;CSS Variables&lt;/h1&gt;
+&lt;p&gt;2018-03-24&lt;/p&gt;
+&lt;p&gt;The CSS language is becoming even more awesome and powerful everyday. In this quick article I&amp;#8217;d like to focus specifically on the &amp;#8220;new&amp;#8221; CSS variable function that you can start using in your projects &lt;em&gt;right now&lt;/em&gt;.&lt;/p&gt;
+&lt;h3 id=&quot;getting-started-is-easy&quot;&gt;Getting started is easy&lt;/h3&gt;
+&lt;p&gt;Let&amp;#8217;s just jump right in - this is how you create variables in vanilla CSS:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;:root {
+ --base-color: #e0e0e0;
+ --text-color: #111;
}
-.screen-guts button.update-button:hover {
- background: #515905;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;We are using the &lt;code&gt;:root&lt;/code&gt; selector at the very top of our CSS file in order to call these variables into any elements in the rest of our document. This is normally the safest way to include variables.&lt;/p&gt;
+&lt;p&gt;As for the variables themselves, you declare that they are variables using the &lt;code&gt;--&lt;/code&gt; tags, followed by the variable&amp;#8217;s name and it&amp;#8217;s property. Pretty simple stuff, right?&lt;/p&gt;
+&lt;p&gt;Now let&amp;#8217;s use those variables:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.header {
+ border: 1px solid var(--base-color);
}
-.bottom-controls {
- background: #8fc8c8;
- border-radius: 0 0 5px 5px;
- bottom: 0;
- display: flex;
- left: 0;
- height: 50px;
- padding: 5px;
- position: absolute;
- width: 100%;
+.main-container {
+ background-color: var(--base-color);
+ color: var(--text-color);
}
-.bottom-controls button.back-button {
- background: rgba(0,0,0,0.2);
- color: #fff;
- line-height: 20px;
- padding: 8px 20px;
- text-transform: uppercase;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;That&amp;#8217;s it! It&amp;#8217;s also good to know that CSS variables have pretty decent &lt;a href=&quot;https://caniuse.com/#feat=css-variables&quot;&gt;browser support&lt;/a&gt; (who likes IE11 anyway).&lt;/p&gt;
+&lt;h3 id=&quot;why-not-just-use-a-preprocessor&quot;&gt;Why not just use a preprocessor?&lt;/h3&gt;
+&lt;p&gt;I&amp;#8217;m a pretty big fan of Sass and Stylus, but sometimes it&amp;#8217;s refreshing to just use vanilla CSS for certain projects. Most preprocessors have had the ability to use variables and mixins for a while, but I prefer to avoid build scripts when not absolutely necessary.&lt;/p&gt;
+&lt;p&gt;Get out there and have fun with some variables!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/css-variables"/>
+ <id>https://btxx.org/posts/css-variables</id>
+ <updated>2018-03-24T10:00:00Z</updated>
+ <published>2018-03-24T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>CSS Video Backgrounds</title>
+ <content type="html">&lt;h1 id=&quot;css-video-backgrounds&quot;&gt;CSS Video Backgrounds&lt;/h1&gt;
+&lt;p&gt;2018-04-16&lt;/p&gt;
+&lt;p&gt;With the release of Safari 11.1 on macOS and Safari on iOS 11.3, developers now have the ability to support background videos (mp4 support only - at the time of this article) with pure CSS.&lt;/p&gt;
+&lt;p&gt;Example:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.video-background {
+ background-image: url(&amp;#39;path-to-video.mp4);
}
-.bottom-controls button.back-button:hover {
- background: rgba(0,0,0,0.6);
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;see-it-in-action&quot;&gt;See it in action&lt;/h2&gt;
+&lt;p&gt;Check out the very basic CodePen I created below to see it live (make sure you view it in latest Safari or else you won&amp;#8217;t see anything :P)&lt;/p&gt;
+&lt;p&gt;CSS Video Background (Safari Only)&lt;/p&gt;
+&lt;p&gt;You can read up on all the new features implemented in 11.1 Safari here:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://webkit.org/blog/8216/new-webkit-features-in-safari-11-1/&quot;&gt;New WebKit Features in Safari 11.1&lt;/a&gt;&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/css-video-backgrounds"/>
+ <id>https://btxx.org/posts/css-video-backgrounds</id>
+ <updated>2018-04-16T10:00:00Z</updated>
+ <published>2018-04-16T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>CSS Value: `currentColor`</title>
+ <content type="html">&lt;h1 id=&quot;css-value-&quot;&gt;CSS Value: &lt;code&gt;currentColor&lt;/code&gt;&lt;/h1&gt;
+&lt;p&gt;2019-04-13&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;There are a large number of nuanced and mostly unheard of&lt;/em&gt; CSS value types, but today we are going to focus on &lt;code&gt;currentColor&lt;/code&gt;. So what is the &lt;code&gt;currentColor&lt;/code&gt; value type anyway?&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;The currentColor value type will apply the existing color value to other properties like background-color, etc.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;h2 id=&quot;see-it-in-action&quot;&gt;See it in action&lt;/h2&gt;
+&lt;p&gt;Let&amp;#8217;s assume with have a single div with the following properties:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;div {
+ color: dodgerblue;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;The overall styling is fairly simple (which is great for browser support) with only a couple pseudo elements. It&amp;#8217;s important to include the custom &lt;code&gt;Sansation&lt;/code&gt; typeface, since this is what the game uses for most UI elements and terminals. (I&amp;#8217;m loading in this font via my &lt;a href=&quot;https://opentype.netlify.app&quot;&gt;OpenType side project&lt;/a&gt;)&lt;/p&gt;
-&lt;p&gt;The most important properties that truly bring this design together are those associated with the &lt;code&gt;.outer-frame&lt;/code&gt; and &lt;code&gt;.screen&lt;/code&gt; pseudo elements. Both of these elements use custom &lt;code&gt;background-images&lt;/code&gt; that give a little more depth and life to the terminal - in this case fingerprints, dust and smudges.&lt;/p&gt;
-&lt;p&gt;Feel free to swap these image textures out with your own and alter the terminal as you see fit!&lt;/p&gt;</content>
- <link href="https://btxx.org/soma-terminal-css"/>
- <id>https://btxx.org/soma-terminal-css</id>
- <updated>2021-05-29T10:00:00Z</updated>
- <published>2021-05-29T10:00:00Z</published>
- </entry>
- <entry>
- <title>Embracing Slow Tech</title>
- <content type="html">&lt;h1 id=&quot;embracing-slow-tech&quot;&gt;Embracing Slow Tech&lt;/h1&gt;
-&lt;p&gt;2022-11-22&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m writing this post on my &amp;#8220;new&amp;#8221; X260 ThinkPad running &lt;a href=&quot;https://garudalinux.org/&quot;&gt;Garuda Linux&lt;/a&gt; through Wayland&amp;#47;Sway and it is going well so far. Setting things up was much easier than I initially expected. There were only a few minor tweaks I had to make, such as setting &lt;code&gt;vim&lt;/code&gt; as the default EDITOR and installing a small collection of applications (Bitwarden, qutebrowser etc).&lt;/p&gt;
-&lt;p&gt;I ran into some headaches with generating proper SSH keys but that was solved by calling in &lt;code&gt;ssh-agent&lt;/code&gt; whenever launching a new instance of Alacritty. This could certainly be cleaned up further, but for now everything works fine. (A more detailed post about this X260 is in the works!)&lt;/p&gt;
-&lt;p&gt;&amp;#8220;Okay&amp;#8221;, I hear you say, &amp;#8220;But what does this have to do with &lt;em&gt;slow tech&lt;/em&gt;?&amp;#8221;&lt;/p&gt;
-&lt;p&gt;Good question! Let me explain.&lt;/p&gt;
-&lt;h2 id=&quot;purposely-unplugged&quot;&gt;Purposely Unplugged&lt;/h2&gt;
-&lt;p&gt;For the longest time I have had some form of &amp;#8220;smart&amp;#8221; device on my persons while performing tasks away from my main computer. Whether that was grocery shopping, playing with the kids in the backyard, going on road trips - you name it. This was never a &lt;em&gt;bad thing&lt;/em&gt; or something I actively looked to change. In fact, I hardly used these devices to connect much to the internet anyway[^1]. But I did notice that I would check things like Mastodon or my email every so often. &lt;/p&gt;
-&lt;p&gt;What I started to realize was that I was checking these &amp;#8220;online&amp;#8221; items out of pure habit. I hardly ever responded to any email on my iPhone (it doesn&amp;#8217;t help that Apple Mail on iOS is horrendous for plain text emails) and engaging in Mastodon, while fun, was certainly not a priority while out of the office. My attitude towards being &amp;#8220;always online&amp;#8221; started to shift towards being what I call &lt;em&gt;purposely unplugged&lt;/em&gt;. I decided to make a personal change towards my online access:&lt;/p&gt;
+&lt;p&gt;If we wanted to use that same color for other properties on elements inside that initial &lt;code&gt;div&lt;/code&gt;, it&amp;#8217;s simple - we just need to call &lt;code&gt;currentColor&lt;/code&gt; like so:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;div {
+ color: dodgerblue;
+}
+
+div header {
+ background-color: currentColor;
+}
+
+div a {
+ border-bottom: 1px solid currentColor;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;&lt;strong&gt;Sidenote&lt;/strong&gt;: If you re-declare the default &lt;code&gt;color&lt;/code&gt; property further along in your CSS, the &lt;code&gt;currentColor&lt;/code&gt; value will update according to the last color set.&lt;/p&gt;
+&lt;p&gt;And that&amp;#8217;s it. Best of all, this value type is supported across all major browsers!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/current-color"/>
+ <id>https://btxx.org/posts/current-color</id>
+ <updated>2019-04-13T10:00:00Z</updated>
+ <published>2019-04-13T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Cut Your Forms in Half</title>
+ <content type="html">&lt;h1 id=&quot;cut-your-forms-in-half&quot;&gt;Cut Your Forms in Half&lt;/h1&gt;
+&lt;p&gt;2019-05-09&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;Building web forms can sometimes feel like a boring or daunting task&lt;/em&gt;. Don&amp;#8217;t pass this dread on to your users - rip out as many of your form fields as possible.&lt;/p&gt;
+&lt;p&gt;Web forms tend to get a bad rep, mainly because so many horrible design choices are made without the user experience set at the forefront. Often times clients demand that they &lt;strong&gt;need&lt;/strong&gt; those twenty input fields or else how will they collect critical information from their users? Normally when I&amp;#8217;m approached with such a statement I simply ask them:&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;If something is important, then I will take the time to complete that task at &lt;strong&gt;my office computer&lt;/strong&gt;. I do not need to be &amp;#8220;always online&amp;#8221;.&lt;/p&gt;
+&lt;p&gt;&amp;#8220;How many form fields would you be willing to fill out for an emergency situation?&amp;#8221;&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;p&gt;It really makes you wonder how people back in the late 90s or early 2000s ever managed their lives without being connected online 24&amp;#47;7. I certainly remember a time where you booted up a family computer to browse the internet, respond to emails, and complete work items. When you were done - you were done. You shutdown the machine and went about your life. &amp;#8220;I&amp;#8217;ll check back later tonight before bed&amp;#8221; or &amp;#8220;Hopefully there will be an email response by tomorrow morning&amp;#8221; was the normal thought process after logging off. Now there is no &amp;#8220;logging off&amp;#8221;. It&amp;#8217;s just switching devices. I don&amp;#8217;t think it is healthy and really who benefits? Certainly not the individual.&lt;/p&gt;
-&lt;p&gt;Hardware (computers specifically in this case) serve a purpose. They are meant to serve the individual using them. When did we cross-over into a world where we seem to be serving our devices? &lt;strong&gt;You are not important enough to be &amp;#8220;available online&amp;#8221; all the time&lt;/strong&gt;. Sorry, but it&amp;#8217;s true.&lt;/p&gt;
-&lt;h2 id=&quot;mobile-sucks-anyway&quot;&gt;Mobile Sucks Anyway&lt;/h2&gt;
-&lt;p&gt;Browsing the web is an absolute shitshow on mobile devices. Every service and their grandma begs you to install their native app. Adblockers are pretty much non-existent, which makes the modern web almost intolerable to visit. Then you have the issue of walled gardens, security breaches, planned EOL for perfectly functional hardware, increased e-waste - the list goes on.&lt;/p&gt;
-&lt;p&gt;Functional computing and online interactions have already been perfected. It&amp;#8217;s called a &lt;strong&gt;computer&lt;/strong&gt;[^3]. Computers (desktops and laptops) give us the ability to control our devices at the OS-level, granting us incredible freedom to tweak things to our individual preferences. Unless you are technical enough to fiddle around with &amp;#8220;beta&amp;#8221; mobile Linux devices, the majority of users are stuck with what they are given. And it isn&amp;#8217;t much.&lt;/p&gt;
-&lt;p&gt;The corporate push to move everyone over to &amp;#8220;mobile computing&amp;#8221; is no accident. The ability to ban certain apps, push ads to users, collect customer details, and harvest user data is more than enough motivation for companies to usher in a future of &amp;#8220;mobile&amp;#8221; computing.&lt;/p&gt;
-&lt;p&gt;Not to mention &lt;em&gt;cost&lt;/em&gt;. New, top-of-the-line mobile devices sell for the same, if not more, than a standard laptop or desktop. You give up flexibility, customization and freedom for what exactly? A really good camera? Built-in GPS navigation?&lt;/p&gt;
-&lt;p&gt;Get a &lt;em&gt;real&lt;/em&gt; camera and grab a standard GPS. I&amp;#8217;m serious. If that sounds ridiculous than you probably never really needed those things in the first place. Use the proper tool for the job. Smushing everything into one, locked-down device is a recipe for disaster.&lt;/p&gt;
-&lt;p&gt;Overall - just use a &lt;em&gt;real&lt;/em&gt; computer.&lt;/p&gt;
-&lt;h2 id=&quot;dont-flip-out&quot;&gt;Don&amp;#8217;t Flip-Out&lt;/h2&gt;
-&lt;p&gt;So, with all of that in mind, I swapped out my iPhone SE (2020) smart phone for the ZTE Cymbal 2 &amp;#8220;dumb&amp;#8221; flip phone. &lt;/p&gt;
-&lt;p&gt;The screen is extremely small with low resolution. The camera is absolute garbage. Writing text messages requires use (and knowledge) of the T9 composer[^2]. Most modern applications besides email or the photo gallery are non-existent.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;But I absolutely love it&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;It&amp;#8217;s a phone. It makes phone calls and allows me to send texts. Texts themselves are a little more time consuming, which forces me to be more concise in my writing. Anything that requires great detail should probably be an email - which is what my computer is for. What else do I need? If I ever drop it and smash into a million pieces I can replace it for &amp;#60;$50. I have the ability to replace the battery - not to mention battery life is measured in &lt;em&gt;days&lt;/em&gt; not hours. It&amp;#8217;s rugged, so I don&amp;#8217;t need to be so delicate with it or slap some huge protective case on it.&lt;/p&gt;
-&lt;p&gt;It does its job. No more, no less.&lt;/p&gt;
-&lt;h2 id=&quot;good-for-you&quot;&gt;&amp;#8220;Good for You&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;I know that some of you reading this might think that this workflow is fine for &lt;em&gt;me&lt;/em&gt; but would never be suitable for your needs. Maybe that&amp;#8217;s true, but I&amp;#8217;d probably disagree. I think people have just been conditioned to &lt;em&gt;believe&lt;/em&gt; that most day-to-day activites would be impossible without a smart device or a connection to the internet. If not, many would at least feel that without such access things would become far too inconvenient. My stance remains: the majority of people do not need constant access to a computer in their pocket.&lt;/p&gt;
-&lt;p&gt;It&amp;#8217;s completely fine to enjoy your own setup and device preferences - I&amp;#8217;m not trying to convert anyone but instead just describing my own experiences. So please, keep your torches and pitchforks at home.&lt;/p&gt;
-&lt;p&gt;Thanks for reading.&lt;/p&gt;
+&lt;p&gt;&amp;#8220;My form isn&amp;#8217;t for emergencies though&amp;#8221;, they might reply. In that case ask them why they feel it acceptable to waste their users&amp;#8217; time just because it isn&amp;#8217;t urgent. Time is valuable.&lt;/p&gt;
+&lt;h2 id=&quot;fixing-a-form-in-the-wild&quot;&gt;Fixing a form in the wild&lt;/h2&gt;
+&lt;p&gt;Let&amp;#8217;s use a real-world form off the &lt;a href=&quot;https://www.greatwestlife.com&quot;&gt;Great West Life Insurance&lt;/a&gt; website as an example (left is original, right is updated):&lt;/p&gt;
+&lt;h3 id=&quot;breaking-things-down&quot;&gt;Breaking things down&lt;/h3&gt;
+&lt;p&gt;So what exactly have we changed?&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Combined first and last name fields into a single input&lt;/li&gt;
+&lt;li&gt;Removed the overkill &amp;#8220;retype&amp;#8221; email &amp;#38; password field (with the optional &lt;code&gt;show password&lt;/code&gt; this becomes redundant)&lt;/li&gt;
+&lt;li&gt;Minor position changes for optional subscription sign up and input field descriptions&lt;/li&gt;
+&lt;li&gt;Removed &lt;code&gt;recovery email&lt;/code&gt;
+&lt;ul&gt;
+&lt;li&gt;This is something that should be prompted to the user after successful registration - don&amp;#8217;t bog them down before they even sign up&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;helpful-micro-improvements&quot;&gt;Helpful Micro improvements&lt;/h2&gt;
+&lt;p&gt;You don&amp;#8217;t need to be extreme when gutting form fields - just be practical.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Don&amp;#8217;t use &amp;#8220;first&amp;#8221; and &amp;#8220;last&amp;#8221; names as separate inputs, instead use something like &amp;#8220;Full Name&amp;#8221;&lt;/li&gt;
+&lt;li&gt;Make complex questions use preset answers via &lt;code&gt;checkbox&lt;/code&gt; or &lt;code&gt;radio&lt;/code&gt; inputs&lt;/li&gt;
+&lt;li&gt;Avoid &lt;code&gt;select&lt;/code&gt; items whenever possible (these are clunky and most times unnecessary)&lt;/li&gt;
+&lt;li&gt;Include easy to understand, real-time error prompts&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;further-reading&quot;&gt;Further reading&lt;/h2&gt;
+&lt;ul&gt;
+&lt;li&gt;Great place to deep-dive into UX form design: &lt;a href=&quot;https://uxmovement.com/category/forms/&quot;&gt;UX Movement&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;</content>
+ <link href="https://btxx.org/posts/cut-your-forms-in-half"/>
+ <id>https://btxx.org/posts/cut-your-forms-in-half</id>
+ <updated>2019-05-09T10:00:00Z</updated>
+ <published>2019-05-09T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>The Death of Personality</title>
+ <content type="html">&lt;h1 id=&quot;the-death-of-personality&quot;&gt;The Death of Personality&lt;/h1&gt;
+&lt;p&gt;2017-11-01&lt;/p&gt;
+&lt;p&gt;On September 18, 2013 truly original product design (everything from icon and app design to UI and experience interactions) began it&amp;#8217;s fast decline into the abyss with the release of Apple&amp;#8217;s iOS 7 update. It was called revolutionary. It was seen as a &amp;#8216;new age&amp;#8217; of design. I think it was a big mistake.&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/flat-design-tombstone_cfkyrq_c_scale,w_700.webp&quot; alt=&quot;Flat design tombstone&quot; /&gt;&lt;/p&gt;
+&lt;h3 id=&quot;stepping-backwards&quot;&gt;Stepping backwards&lt;/h3&gt;
+&lt;p&gt;Let me start off by saying I understand where they were trying to take mobile app design as a whole. &amp;#8220;Less is more&amp;#8221;, &amp;#8220;cleaner UI to let the content be the focus&amp;#8221;, &amp;#8220;more touch based interactions&amp;#8221;. The problem is that they cranked the dial too far in the other direction.&lt;/p&gt;
+&lt;p&gt;Because of this, a large movement was created based around the idea that skeuomorphic design is garbage, flat design is the future. And everyone drank the kool-aid without a single objection.
+I&amp;#8217;m using this ironically.&lt;/p&gt;
+&lt;h3 id=&quot;icons-with-no-identity&quot;&gt;Icons with no identity&lt;/h3&gt;
+&lt;p&gt;Do you remember Instagram&amp;#8217;s original app icon and UI? Do you remember how everyone initially praised it? Show those old designs to the same designers who loved it only a few years ago, and they will now laugh at how &amp;#8220;bad&amp;#8221; it is.&lt;/p&gt;
+&lt;p&gt;Unfortunately the same can be said for Apple&amp;#8217;s system icons across both iOS and macOS.&lt;/p&gt;
+&lt;p&gt;I believe Apple took the concept of a &amp;#8216;consistent&amp;#8217; design system across their iconography too literally. All the system icons should compliment one another, but they shouldn&amp;#8217;t lose their own individual look and feel.&lt;/p&gt;
+&lt;h3 id=&quot;lackluster-ui&quot;&gt;Lackluster UI&lt;/h3&gt;
+&lt;p&gt;The once inspiring and hierarchically consistent interface of both iOS and macOS was also quickly swatted away. In it&amp;#8217;s place we as users saw the removal of depth, initial visual cues as to what was interactive and what was static, and sadly even the overall color was muted.&lt;/p&gt;
+&lt;h3 id=&quot;impact-on-the-web&quot;&gt;Impact on the web&lt;/h3&gt;
+&lt;p&gt;This may not have been a bad thing if it was self-contained to Apple itself. The problem is that Apple has such a huge influence on the design industry - although that is starting to diminish, due to disasters like the iPhone X - that everyone starts to mimic and copy their style. This includes designers of sites and progressive web apps.&lt;/p&gt;
+&lt;p&gt;With the evolution of websites morphing into progressive web apps, designers have felt the need to start implementing this bland style for their design systems.&lt;/p&gt;
+&lt;p&gt;What we got in return:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;washed out colors&lt;/li&gt;
+&lt;li&gt;zero gradients for depth&lt;/li&gt;
+&lt;li&gt;the removal of all drop shadows (in meaningful ways that is)&lt;/li&gt;
+&lt;li&gt;the same generic Helvetica-based typefaces&lt;/li&gt;
+&lt;li&gt;the absence of hover states on interactive elements&lt;/li&gt;
+&lt;li&gt;a lack of any proper information density&lt;/li&gt;
+&lt;li&gt;an overkill of whitespace&lt;/li&gt;
+&lt;li&gt;one dimensional buttons (you know, the thing you want the user to interact with)&lt;/li&gt;
+&lt;li&gt;a complete disregard for original design not based off every other popular product&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h3 id=&quot;breaking-free-of-the-modern-era&quot;&gt;Breaking free of the &amp;#8216;modern era&amp;#8217;&lt;/h3&gt;
+&lt;p&gt;Thankfully, there are still a few good designers who continue to create original and inspiring work not based solely on current trends.&lt;/p&gt;
+&lt;p&gt;Flexibits recently launched a new contact app for macOS called Cardhop. While the UI still shifts a little too far to the &amp;#8216;flat trend&amp;#8217; for my liking, they thankfully hired the very talented David Lanham to design the beautiful application icon.&lt;/p&gt;
+&lt;p&gt;This is where visual design shines. Icon designs like Cardhop&amp;#8217;s are what allow individual applications to stand out in the dock or mobile home-screen among all the others. So how is that not UX design?&lt;/p&gt;
+&lt;p&gt;The current trendy thought process from designers that &amp;#8220;visual design doesn&amp;#8217;t involve UX design&amp;#8221; is garbage. Neither are mutually exclusive and I think anyone who believes so is being incredibly short-sighted.&lt;/p&gt;
+&lt;p&gt;If you&amp;#8217;re a designer, please stop riding trends and make your work visually beautiful. That doesn&amp;#8217;t mean you need to sacrifice usability or function, but just put more love and confidence into your profession. Companies like Apple and Google don&amp;#8217;t control how everyone else&amp;#8217;s apps and sites should look, and based on their current design decisions - they shouldn&amp;#8217;t.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/death-of-personality"/>
+ <id>https://btxx.org/posts/death-of-personality</id>
+ <updated>2017-11-01T10:00:00Z</updated>
+ <published>2017-11-01T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Very Basic Form Styling</title>
+ <content type="html">&lt;h1 id=&quot;very-basic-form-styling&quot;&gt;Very Basic Form Styling&lt;/h1&gt;
+&lt;p&gt;2019-11-13&lt;/p&gt;
+&lt;p&gt;Web forms can be great - I&amp;#8217;m borderline obsessed with them. I love tinkering with pre-existing logins &amp;#47; sign up pages and I&amp;#8217;ve also open sourced a minimal CSS form-styling plugin: &lt;a href=&quot;https://normform.netlify.com/&quot;&gt;Normform&lt;/a&gt;. While simple CSS plugins like these can be helpful, I often feel like we are over-engineering our web forms. I&amp;#8217;m certainly guilty of it.&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s not to say developers should just use default browser styling for their forms and call it a day - that is far from ideal. Just pull-back on adding so much styling garbage to the forms themselves.&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s check out an embedded demo below to see what some bare-bones form styling could look like:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/oNwzvMa&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;This form isn&amp;#8217;t going to win any design awards or blow anyone away with its creativity. That&amp;#8217;s okay - because it gets the job done. Users understand it&amp;#8217;s a form and items are broken down into digestible chunks. Mission accomplished, right?&lt;/p&gt;
+&lt;h2 id=&quot;breaking-the-form-down&quot;&gt;Breaking the form down&lt;/h2&gt;
+&lt;p&gt;Let&amp;#8217;s take a look at the HTML of the entire form:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;form action=&quot;&quot;&amp;#62;
+ &amp;#60;fieldset&amp;#62;
+ &amp;#60;legend&amp;#62;Personal Details&amp;#60;&amp;#47;legend&amp;#62;
+ &amp;#60;label for=&quot;username&quot;&amp;#62;Desired Username:&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;input type=&quot;text&quot; id=&quot;username&quot;&amp;#62;
+ &amp;#60;label for=&quot;name&quot;&amp;#62;Full Name:&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;input type=&quot;text&quot; id=&quot;name&quot;&amp;#62;
+ &amp;#60;label for=&quot;email&quot;&amp;#62;Email Address:&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;input type=&quot;email&quot; id=&quot;email&quot;&amp;#62;
+ &amp;#60;label for=&quot;date&quot;&amp;#62;Date of Birth:&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;input type=&quot;date&quot; id=&quot;date&quot;&amp;#62;
+ &amp;#60;&amp;#47;fieldset&amp;#62;
+ &amp;#60;br&amp;#62;
+ &amp;#60;fieldset&amp;#62;
+ &amp;#60;legend&amp;#62;Contact Details&amp;#60;&amp;#47;legend&amp;#62;
+ &amp;#60;label for=&quot;address&quot;&amp;#62;Home Address:&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;input type=&quot;text&quot; id=&quot;address&quot;&amp;#62;
+ &amp;#60;label for=&quot;postal&quot;&amp;#62;Postal Code:&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;input type=&quot;text&quot; id=&quot;postal&quot;&amp;#62;
+ &amp;#60;label for=&quot;phone&quot;&amp;#62;Phone Number:&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;input type=&quot;tel&quot; id=&quot;phone&quot;&amp;#62;
+ &amp;#60;&amp;#47;fieldset&amp;#62;
+ &amp;#60;br&amp;#62;
+ &amp;#60;fieldset&amp;#62;
+ &amp;#60;legend&amp;#62;Select an Option&amp;#60;&amp;#47;legend&amp;#62;
+ &amp;#60;label for=&quot;radio-1&quot;&amp;#62;
+ &amp;#60;input type=&quot;radio&quot; id=&quot;radio-1&quot; name=&quot;radio-choice&quot;&amp;#62;
+ The option is pretty nice
+ &amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;label for=&quot;radio-2&quot;&amp;#62;
+ &amp;#60;input type=&quot;radio&quot; id=&quot;radio-2&quot; name=&quot;radio-choice&quot;&amp;#62;
+ This option is a little bit better
+ &amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;label for=&quot;radio-3&quot;&amp;#62;
+ &amp;#60;input type=&quot;radio&quot; id=&quot;radio-3&quot; name=&quot;radio-choice&quot;&amp;#62;
+ This option is the best
+ &amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;&amp;#47;fieldset&amp;#62;
+ &amp;#60;br&amp;#62;
+ &amp;#60;fieldset&amp;#62;
+ &amp;#60;legend&amp;#62;Notifications&amp;#60;&amp;#47;legend&amp;#62;
+ &amp;#60;label for=&quot;checkbox-1&quot;&amp;#62;
+ &amp;#60;input type=&quot;checkbox&quot; id=&quot;checkbox-1&quot;&amp;#62;
+ I would like to receive email notifications
+ &amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;label for=&quot;checkbox-2&quot;&amp;#62;
+ &amp;#60;input type=&quot;checkbox&quot; id=&quot;checkbox-2&quot;&amp;#62;
+ I would like to subscribe to the weekly newsletter
+ &amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;&amp;#47;fieldset&amp;#62;
+ &amp;#60;br&amp;#62;
+ &amp;#60;input type=&quot;reset&quot; value=&quot;Reset&quot;&amp;#62;
+ &amp;#60;input type=&quot;submit&quot; value=&quot;Submit&quot;&amp;#62;
+&amp;#60;&amp;#47;form&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Notice the &lt;code&gt;fieldset&lt;/code&gt; and &lt;code&gt;legend&lt;/code&gt; elements? I bet you don&amp;#8217;t see or hear about those HTML items very often. By default, &lt;code&gt;fieldset&lt;/code&gt; allows sibling or related inputs to be semantically grouped together. The &lt;code&gt;legend&lt;/code&gt; elements give the user great visual cues about which items are grouped together, helping to focus on each section individually as they complete the form. Use these grouping elements as much as possible (when it makes sense of course) for a better guided experience for your users. &lt;/p&gt;
+&lt;p&gt;Avoid making your own custom sections and instead use these existing HTML semantics.&lt;/p&gt;
+&lt;h2 id=&quot;almost-no-css-at-all&quot;&gt;Almost no CSS at all&lt;/h2&gt;
+&lt;p&gt;Now it&amp;#8217;s time to style this form with only 6 property declarations:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;form label {
+ display: block;
+}
+form input {
+ display: inline-block;
+ margin-bottom: 10px;
+ padding: 10px;
+ width: 100%;
+}
+form input[type=&quot;radio&quot;],
+form input[type=&quot;checkbox&quot;],
+form input[type=&quot;reset&quot;],
+form input[type=&quot;submit&quot;] {
+ width: auto;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Of course, you can always add minor adjustments (like in my demo example above)&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Legend typeface and sizing&lt;/li&gt;
+&lt;li&gt;Form and fieldset background colors&lt;/li&gt;
+&lt;li&gt;Extra margin and padding&lt;/li&gt;
+&lt;li&gt;Custom reset &amp;#47; submit buttons&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;But the main point of this post is to showcase how little CSS is needed to implement decent web forms - so any further improvements are up to you, dear reader. &lt;/p&gt;
+&lt;p&gt;Just try not to reinvent the wheel.&lt;/p&gt;
+&lt;h2 id=&quot;final-rant---dont-ignore-the-reset&quot;&gt;Final rant - don&amp;#8217;t ignore the reset&lt;/h2&gt;
+&lt;p&gt;A lot of &amp;#8220;modern&amp;#8221; web forms have moved away from including the reset input on their forms, which I think is fairly short-sighted. Resetting all form fields might be a smaller edge case, but it is certainly a better option than relying on the user to refresh or in some cases, individually deleting each input. Yikes.&lt;/p&gt;
+&lt;p&gt;Happy form building!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/default-brower-forms"/>
+ <id>https://btxx.org/posts/default-brower-forms</id>
+ <updated>2019-11-13T10:00:00Z</updated>
+ <published>2019-11-13T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Modern Improvements for Default Browser Styles</title>
+ <content type="html">&lt;h1 id=&quot;modern-improvements-for-default-browser-styles&quot;&gt;Modern Improvements for Default Browser Styles&lt;/h1&gt;
+&lt;p&gt;2021-11-09&lt;/p&gt;
+&lt;p&gt;This website &lt;em&gt;almost&lt;/em&gt; exclusively uses the browser&amp;#8217;s (whichever one that might be) default styling to render it&amp;#8217;s HTML. I firmly believe, and have &lt;a href=&quot;/css-js-mistake/&quot;&gt;stated in a previous post&lt;/a&gt;, that the default HTML styling across all browsers is a thing of beauty. &amp;#8220;Consistent and boring&amp;#8221; is how I tend to refer to default browser styles - and I mean that in a &lt;em&gt;good way&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;But that doesn&amp;#8217;t mean some minor, modern improvements couldn&amp;#8217;t be made&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;boosting-margins-and-increasing-font-size&quot;&gt;Boosting Margins and Increasing Font Size&lt;/h2&gt;
+&lt;p&gt;A little extra breathing room for a website&amp;#8217;s content never hurts. Browser defaults set the inner content too close to the main window borders, creating mild eye strain to focus on the far edges of the screen when reading. Pair this with a typeface set too small and you&amp;#8217;ve got a recipe for disaster (in terms of user experience and accessibility). Luckily for us, adding two basic CSS properties fixes all of our readability woes. All that is required is a simple boost to the existing &lt;code&gt;margin&lt;/code&gt; property set on the &lt;code&gt;body&lt;/code&gt; element (I personally lean towards a very specific &lt;code&gt;1.5em&lt;/code&gt;) and overriding the default &lt;code&gt;font-size&lt;/code&gt; to &lt;code&gt;18px&lt;/code&gt;[^1]:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;body {
+ font-size:18px;
+ margin:1.5em;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;There is one &lt;em&gt;small&lt;/em&gt; caveat with setting the &lt;code&gt;font-size&lt;/code&gt; across the whole &lt;code&gt;body&lt;/code&gt; element: code elements set in &lt;code&gt;monospace&lt;/code&gt;. They will stand out larger than the other fonts found in the document (due to variations in different typeface heights, spacing etc.) so we will need to target these elements specifically:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;code {
+ font-size:14px;
+ &amp;#47;* Word wrap is optional if you plan to have long inline code snippets *&amp;#47;
+ word-wrap:break-word;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;code-pre-tags&quot;&gt;Code &amp;#38; Pre Tags&lt;/h2&gt;
+&lt;p&gt;Since we&amp;#8217;ve mentioned &lt;code&gt;code&lt;/code&gt; elements, let&amp;#8217;s fix those as well. The existing styling for inline code snippets and larger pre-formatted text sections leave a lot to be desired. They don&amp;#8217;t provide any means to wrap their inner content or make use of &lt;code&gt;overflow&lt;/code&gt; properties to avoid vertically scrolling on smaller device screens. Sharing code examples becomes quite a pain when your webpage&amp;#8217;s flow and layout is broken just by including them. Browsers could fix this easily enough by defaulting to:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;pre {
+ overflow:auto;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;basic-dark-mode-support&quot;&gt;Basic Dark Mode Support&lt;/h2&gt;
+&lt;p&gt;Barebones styling in current web browsers have no sane defaults[^2] for system-level dark mode. What a huge letdown. This is where the most &amp;#8220;drastic&amp;#8221; changes will be implemented with our browser default updates. We will need the browser to change the main &lt;code&gt;background-color&lt;/code&gt;, along with resetting both the text and anchor link &lt;code&gt;color&lt;/code&gt; for improved accessibility. Browser defaults for anchor link color in &amp;#8220;light mode&amp;#8221; are blue&amp;#47;purple - so I&amp;#8217;ve opted towards using gold, orange and orangered in dark mode respectively:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Dark mode *&amp;#47;
+@media (prefers-color-scheme: dark) {
+ @media not print {
+ html {background:#0e0e0e;color:#e1e1e1; }
+ a {color: gold;}
+ a:visited {color: orange;}
+ a:hover,a:focus{color: orangered;}
+ }
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;That is probably the most streamlined dark mode on the web&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;the-reading-length-debate&quot;&gt;The &amp;#8220;Reading Length&amp;#8221; Debate&lt;/h2&gt;
+&lt;p&gt;Proper reading length tends to be quite the point of contention on the web. Hell, even I&amp;#8217;ve &lt;a href=&quot;/character-unit/&quot;&gt;written about it quite a bit&lt;/a&gt; in the past (and many of my side projects follow that standard). The main problem I have with this is lack of &lt;em&gt;user control&lt;/em&gt;. I don&amp;#8217;t think the browser (or designers for that matter) should determine the best reading length for my own personal reading preferences. UX testing and group feedback has (somewhat) agreed upon 66-75 characters per line to be the most optimal reading experience. That is good to know. I &lt;em&gt;still&lt;/em&gt; believe it should come down to user preference.&lt;/p&gt;
+&lt;p&gt;Do you want to know an incredible feature built into browsers? &lt;em&gt;Window resizing&lt;/em&gt;. Abandon the idea that you &amp;#8220;know better&amp;#8221; than your users and give them the power to adjust as they see fit. The web was meant to be personal and flexible.&lt;/p&gt;
+&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
+&lt;p&gt;There isn&amp;#8217;t much else to say, really. I think these tiny tweaks would greatly improve the default browser experience and maybe even convince others to just &lt;em&gt;use&lt;/em&gt; these defaults instead of falling down the CSS rabbit hole (as fun as that might be sometimes). For easier convenience, I&amp;#8217;ll leave the full set of CSS changes below:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;body {
+ font-size:18px;
+ margin:1.5em;
+}
+code {
+ font-size:14px;
+}
+pre {
+ overflow:auto;
+}
+@media (prefers-color-scheme: dark) {
+ @media not print {
+ html {background:#0e0e0e;color:#e1e1e1; }
+ a {color: gold;}
+ a:visited {color: orange;}
+ a:hover,a:focus{color: orangered;}
+ }
+}
+&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;It helps that I have pretty much zero active accounts across most &amp;#8220;popular&amp;#8221; social media platforms.&lt;/li&gt;
-&lt;li&gt;Some of you readers might not have ever experienced the wonders of T9&amp;#8230;&lt;/li&gt;
-&lt;li&gt;I understand that even smart phones can be classified as &amp;#8220;computers&amp;#8221;. I am using this term in the classical sense.&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;18px&lt;/code&gt; seems to be the perfect sweet spot between &amp;#8220;almost too large, yet not small enough to strain my eyes&amp;#8221;&lt;/li&gt;
+&lt;li&gt;At the time of this article&amp;#8217;s publish date&lt;/li&gt;
&lt;/ol&gt;</content>
- <link href="https://btxx.org/slow"/>
- <id>https://btxx.org/slow</id>
- <updated>2022-11-22T10:00:00Z</updated>
- <published>2022-11-22T10:00:00Z</published>
- </entry>
- <entry>
- <title>Converting My X201 ThinkPad into a Slabtop</title>
- <content type="html">&lt;h1 id=&quot;converting-my-x201-thinkpad-into-a-slabtop&quot;&gt;Converting My X201 ThinkPad into a Slabtop&lt;/h1&gt;
-&lt;p&gt;2023-05-01&lt;/p&gt;
-&lt;p&gt;I recently wrote &lt;a href=&quot;/x201/&quot;&gt;about physically disabling the WiFi toggle switch on my X201&lt;/a&gt; which was a fun &amp;#8220;hack&amp;#8221; to an annoying issue I was running into. Since then, the laptop has been running flawlessly.&lt;/p&gt;
-&lt;p&gt;The only other &lt;em&gt;minor&lt;/em&gt; issue I had was the poor display quality. The screen works perfectly fine but the X201&amp;#8217;s age prevents it from being the best possible display for day-to-day tasks. Both the resolution and viewing angles are quite poor.&lt;/p&gt;
-&lt;p&gt;So, what were my options to remedy this problem?&lt;/p&gt;
+ <link href="https://btxx.org/posts/default-html-style-updates"/>
+ <id>https://btxx.org/posts/default-html-style-updates</id>
+ <updated>2021-11-09T10:00:00Z</updated>
+ <published>2021-11-09T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Unsolicited Design Review - Dropbox</title>
+ <content type="html">&lt;h1 id=&quot;unsolicited-design-review---dropbox&quot;&gt;Unsolicited Design Review - Dropbox&lt;/h1&gt;
+&lt;p&gt;2017-10-10&lt;/p&gt;
+&lt;p&gt;Earlier last week the design team at Dropbox unveiled their new branding &amp;#47; design system for the company as a whole. If you haven&amp;#8217;t seen the updated design yet, you can do so here: &lt;a href=&quot;https://dropbox.design/&quot;&gt;dropbox.design&lt;/a&gt; (Take your time, I can wait).&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/dropbox-logo_djnecj_c_scale,w_1400.webp&quot; alt=&quot;Dropbox Logo&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;I won&amp;#8217;t mince words when I say I believe this is a huge step backwards for their brand. Not only is it uninspired and broken, but it also shows how our industry is plagued with a need to redesign things just for the sake of redesigning them.&lt;/p&gt;
+&lt;p&gt;So without anymore fluff - let&amp;#8217;s get into it. Please leave your bias at the door.&lt;/p&gt;
+&lt;h2 id=&quot;purpose&quot;&gt;Purpose&lt;/h2&gt;
+&lt;p&gt;It&amp;#8217;s good to try and understand the motive or problem that a company is trying to solve when redesigning something as fundamental as core branding, but this is where the first red flag appears for Dropbox. There is no real problem to solve.&lt;/p&gt;
+&lt;p&gt;On the marketing site promoting the new design system, the Dropbox team doesn&amp;#8217;t mention a single problem that this branding redesign is meant to fix. Were users confused by the previous system? Is there data showing large drop-off and a lack of conversion directly connected with the design system itself? All they state is they needed a change with zero reasoning as to why.&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;We realized our brand needs to change&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;As I stated at the beginning of this review - it&amp;#8217;s a redesign for the sake of a redesign. Sometimes this can be acceptable if done correctly, but this is not the case for Dropbox.&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;Our new brand system shows that Dropbox isn&amp;#8217;t just a place to store your files - &lt;strong&gt;it&amp;#8217;s a living workspace that brings teams and ideas together&lt;/strong&gt;&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;Let&amp;#8217;s stop right there. &amp;#8220;A place to store your files&amp;#8221; is literally 99% of what Dropbox does. I get that they want to be involved in more than that but Dropbox &lt;em&gt;is&lt;/em&gt; a cloud storage service. Why is there a desperate need to shift away from that?&lt;/p&gt;
+&lt;p&gt;There isn&amp;#8217;t much else to speak of in terms of &amp;#8216;purpose&amp;#8217; regarding the redesign since there doesn&amp;#8217;t seem to be one. Let&amp;#8217;s move on.&lt;/p&gt;
+&lt;h2 id=&quot;design-principles&quot;&gt;Design Principles&lt;/h2&gt;
+&lt;p&gt;I hate to be that guy who bases design on a written list of principles, but when it works it works. Dieter Rams states it best:&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;Swap out and upgrade the laptop&amp;#8217;s display (not many options for this though)&lt;/li&gt;
-&lt;li&gt;Connect an external display, keyboard, mouse and dock the X201&lt;/li&gt;
-&lt;li&gt;Something else?&lt;/li&gt;
+&lt;li&gt;Good design is innovative&lt;/li&gt;
+&lt;li&gt;Good design makes a product useful&lt;/li&gt;
+&lt;li&gt;Good design is aesthetic&lt;/li&gt;
+&lt;li&gt;Good design makes a product understandable&lt;/li&gt;
+&lt;li&gt;Good design is unobtrusive&lt;/li&gt;
+&lt;li&gt;Good design is honest&lt;/li&gt;
+&lt;li&gt;Good design is long-lasting&lt;/li&gt;
+&lt;li&gt;Good design is thorough down to the last detail&lt;/li&gt;
+&lt;li&gt;Good design is environmentally friendly&lt;/li&gt;
+&lt;li&gt;Good design is as little design as possible&lt;/li&gt;
&lt;/ol&gt;
-&lt;h2 id=&quot;looking-into-something-else&quot;&gt;Looking into &amp;#8220;Something Else&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;I found that the possible replacement screens weren&amp;#8217;t worth the cost&amp;#47;hassle to swap out. And setting the laptop aside, docked with external peripherals sounded fine in theory - but then I would be missing out on the X201&amp;#8217;s amazing classic keyboard&amp;#8230;&lt;/p&gt;
-&lt;p&gt;Then I thought to myself, &amp;#8220;Why not just remove the display &lt;em&gt;entirely&lt;/em&gt;?&amp;#8221;&lt;/p&gt;
-&lt;p&gt;So that&amp;#8217;s what I did.&lt;/p&gt;
-&lt;p&gt;Removing the entire top lid was easier than I initially thought it would be. The beautiful thing about these older, classic ThinkPads is the ability to completely dissemble them. I won&amp;#8217;t go into heavy details on how to take one of these machines apart, since great documentation &lt;a href=&quot;https://www.ifixit.com/Device/Lenovo_Thinkpad_X201_Tablet&quot;&gt;already exists&lt;/a&gt;. But once you have the keyboard and hinge screws removed it is essentially as easy as &lt;em&gt;lifting&lt;/em&gt; the lid out of the chassis. (After disconnecting the small display connectors, of course)&lt;/p&gt;
-&lt;h2 id=&quot;ditching-alpine-for-debian&quot;&gt;Ditching Alpine for Debian&lt;/h2&gt;
-&lt;p&gt;I love Alpine Linux. It&amp;#8217;s normally my &lt;a href=&quot;https://as.bt.ht&quot;&gt;go-to distro&lt;/a&gt; (paired with dwm) for most of my laptop devices. Unfortunately, I find tiling window managers a slight pain to use on larger, 4K displays. I also wanted this slabtop to &amp;#8220;just work&amp;#8221;, instead of needing to fiddle around with WiFi, &lt;code&gt;xrandr&lt;/code&gt;, audio etc. Not to mention that Debian is rock solid stable. Defaulting to the XFCE DE was a no-brainer as well since this device is somewhat &lt;em&gt;old&lt;/em&gt;.&lt;/p&gt;
+&lt;hr/&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is innovative&lt;/strong&gt;. There is zero innovation in this re-brand, it&amp;#8217;s simply following the trend of quirky &amp;#47; brutal &amp;#47; modern flat elitism that is currently sweeping the industry. It&amp;#8217;s a fad and will be out-of-date rather quickly.&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design makes a product useful&lt;/strong&gt;. Looking through their reasoning and explanations I can see no boost or improvement to the usefulness of the product. Not to repeat myself, but without any supporting data as to &lt;em&gt;why&lt;/em&gt; this change was made we have nothing to base it off of.&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is aesthetic&lt;/strong&gt;. See #1.&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design makes a product understandable&lt;/strong&gt;. Were customers not able to understand the Dropbox brand prior to this update? Were users misinformed about what the product could do for them? The previous design did a wonderful job of getting out of the way and showing the user exactly what they needed &amp;#47; wanted.&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is unobtrusive&lt;/strong&gt;. Talk about going backwards on this one. Original system was clean, readable and friendly to new users. Their current system uses an illegible typeface, colors with terrible contrast and a lack of support for the visually impaired, crude illustrations that give no explanation as to what they represent (more on that later), and a lack of browser support &amp;#47; performance issues.&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is honest&lt;/strong&gt;. Dropbox still maintains this principle. They don&amp;#8217;t over-promise or outright lie about who and what they are as a product.&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is long-lasting&lt;/strong&gt;. See #1 &amp;#38; #3 again.&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is thorough down to the last detail&lt;/strong&gt;. The fact that even their marketing site crashes latest Firefox, lags on Safari for iOS and stutters in Chrome on desktop shows the lack of performance testing that was done. Not to mention the complete disregard for those with visual impairments with their color palette, typeface and contrast selections.&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is environmentally friendly&lt;/strong&gt;. Doesn&amp;#8217;t really apply here.&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is as little design as possible&lt;/strong&gt;. This new brand system is incredibly over-designed.&lt;/p&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;blockquote&gt;
+&lt;p&gt;Our users&amp;#8230;tell us they feel overwhelmed and distracted during the workday&amp;#8230;we want to change this, by building products and a brand that help people focus on meaningful work, instead of busywork.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;Then maybe your design system should get out of the way. To me, this seems like you want your design to take center-stage over the user&amp;#8217;s content.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Remember: a great design system should go completely unnoticed.&lt;/strong&gt;&lt;/p&gt;
+&lt;h2 id=&quot;accessibility&quot;&gt;Accessibility&lt;/h2&gt;
+&lt;p&gt;Any persons with visual impairments need not apply. This design system is not built for you - seek shelter elsewhere.&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;With 259 fonts, our new typeface Sharp Grotesk gives us lots of versatility, allowing us to &amp;#8220;speak&amp;#8221; in a variety of tones.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/dropbox-fonts_vthivw_c_scale,w_1122.webp&quot; alt=&quot;DropBox fonts&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;Not a single one of these typeface styles is initially readable&amp;#8230;&lt;/p&gt;
+&lt;p&gt;The typeface they have chosen looks terrible at any view-port size and readability takes a backseat. I can&amp;#8217;t help but feel this falls into the &amp;#8220;let&amp;#8217;s be trendy&amp;#8221; category and ends up sacrificing almost all good usability practices for gimmicky type.&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;Our users run the gamut from business professionals to scientists and creative types. Most of these folks tell us they feel overwhelmed and distracted during the workday, and that this is one of the biggest barriers to creating work they’re proud of.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;Irony at it&amp;#8217;s finest. &amp;#8220;Our users tell us that they hate being distracted and overwhelmed, so we&amp;#8217;ve decided to use headache inducing color palettes, crude illustrations, a barely legible typeface, and some of the most visually loud photography throughout our system&amp;#8221;. I hate coming off as mean-spirited - but this is some elaborate joke, right?&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/dropbox-logos-color_fcogaj_c_scale,w_1400.webp&quot; alt=&quot;DropBox color logos&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;After running it through a color contrast accessibility checker:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/dropbox-contrast_plkfxb_c_scale,w_1400.webp&quot; alt=&quot;DropBox contrast&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;Multiple accessibility failures&amp;#8230;&lt;/p&gt;
+&lt;p&gt;Next we have the child-like &amp;#8216;scribble&amp;#8217; illustrations. Now don&amp;#8217;t get me wrong, I love seeing different illustration styles and I actively use &amp;#8216;sketch &amp;#47; scribble&amp;#8217; artwork myself, but I don&amp;#8217;t believe this is the best fit for a brand like Dropbox. These cartoon visuals conflict with the business enterprise service Dropbox should be trying to convey.&lt;/p&gt;
+&lt;p&gt;Another issue with these illustrations is their usage. Look at the image below and ask yourself if you would correlate it with an error page if no accompanying text was present.&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/dropbox-404_bovayg_c_scale,w_758.webp&quot; alt=&quot;DropBox 404 page design&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;What does this have to do with a 404 error page?&lt;/p&gt;
&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
-&lt;p&gt;This slabtop gives me those old-school &amp;#8220;Commodore64&amp;#8221; vibes (or more recent devices like the Raspberry Pi 400). This setup certainly isn&amp;#8217;t for everyone but for my use case it&amp;#8217;s working well. Traveling with a machine like this might prove a little more challenging - although you could simply pair it with a smaller travel monitor (I&amp;#8217;m sure the overall carrying weight would be similar to the standard X201).&lt;/p&gt;
-&lt;p&gt;If nothing else, it is good to keep this option in mind if you ever break your laptop&amp;#8217;s display and don&amp;#8217;t feel like spending the money to fix it. Just grab an external monitor you have laying around and make a slabtop!&lt;/p&gt;</content>
- <link href="https://btxx.org/slabtop"/>
- <id>https://btxx.org/slabtop</id>
- <updated>2023-05-01T10:00:00Z</updated>
- <published>2023-05-01T10:00:00Z</published>
- </entry>
- <entry>
- <title>Skip to Content Button</title>
- <content type="html">&lt;h1 id=&quot;skip-to-content-button&quot;&gt;Skip to Content Button&lt;/h1&gt;
-&lt;p&gt;2019-03-25&lt;/p&gt;
-&lt;p&gt;One of the golden rules for testing your website&amp;#8217;s accessibility is the &amp;#8220;keyboard-only&amp;#8221; audit. This is where you test navigating through your entire site without the use of a mouse, but instead rely solely on tabbing through your content.&lt;/p&gt;
-&lt;p&gt;Unfortunately, one item is normally overlooked during this audit - a &amp;#8220;skip to content&amp;#8221; context button. Including a &amp;#8220;skip to content&amp;#8221; navigation item in your project is extremely useful because:&lt;/p&gt;
+&lt;p&gt;I could go into even deeper analysis (including the oversimplification of their box logo, etc.) but I believe I&amp;#8217;ve spent enough time defending my initial reaction as well as my thoughts after a week of soak time. In my opinion this redesign was completely unnecessary. I think this was a problem of too many designers with too much time without a proper project to channel all that talent.&lt;/p&gt;
+&lt;p&gt;Unfortunately because they decided to just follow the current trend and design with a lack of purpose, I see Dropbox launching another redesign within the next year once this current design fad dies. My only hope is that the next brand system sets out to solve an actual problem, instead of just trying to be trendy.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/design-review-dropbox"/>
+ <id>https://btxx.org/posts/design-review-dropbox</id>
+ <updated>2017-10-10T10:00:00Z</updated>
+ <published>2017-10-10T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Disabling Comments in WordPress</title>
+ <content type="html">&lt;h1 id=&quot;disabling-comments-in-wordpress&quot;&gt;Disabling Comments in WordPress&lt;/h1&gt;
+&lt;p&gt;2020-12-28&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;I seem to come across a decent amount of clients&lt;/em&gt; and users online that have a difficult time knowing how to disable comments for both future &lt;em&gt;and&lt;/em&gt; previous blog posts. It isn’t the easiest for both use cases, so let’s break it down.&lt;/p&gt;
+&lt;h2 id=&quot;back-to-the-future&quot;&gt;Back to the future&lt;/h2&gt;
+&lt;p&gt;Disabling comments on all &lt;em&gt;future&lt;/em&gt; blog posts is fairly straightforward:&lt;/p&gt;
+&lt;h2 id=&quot;but-what-about-old-posts&quot;&gt;But what about old posts?&lt;/h2&gt;
+&lt;p&gt;Have no fear - “Bulk Actions” are here to save the day! In order to retroactively disable comments on older posts, do the following:&lt;/p&gt;
+&lt;p&gt;I hope this article saves others any headaches in the future. WordPress itself could certainly make this more streamlined, but for now what we have works. Happy (not) commenting!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/disabling-comments-in-wordpress"/>
+ <id>https://btxx.org/posts/disabling-comments-in-wordpress</id>
+ <updated>2020-12-28T10:00:00Z</updated>
+ <published>2020-12-28T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Designers Need Thicker Skin</title>
+ <content type="html">&lt;h1 id=&quot;designers-need-thicker-skin&quot;&gt;Designers Need Thicker Skin&lt;/h1&gt;
+&lt;p&gt;2017-07-10&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m not normally one to comment or even really care about &amp;#8220;drama&amp;#8221; within our design industry. Opinions are just that and should just be consumed at face value. But this week I was moderately annoyed with a subset of designers in design-land.&lt;/p&gt;
+&lt;h3 id=&quot;critique-the-critics&quot;&gt;Critique the critics&lt;/h3&gt;
+&lt;p&gt;Designer&amp;#47;design critic Eli Schiff tweeted his thoughts about the newly released promo video from Framer showcasing their new gradient feature. See the initial tweet below:&lt;/p&gt;
+&lt;p&gt;Let me begin by saying my views on this comment: I don&amp;#8217;t care. I honestly don’t feel strongly one way or the other about them making a video promo for gradients. Could it have just been a simple text tweet? Sure. Does it really matter that they decided to make a video for it? Not at all.&lt;/p&gt;
+&lt;p&gt;But this isn’t the problem.&lt;/p&gt;
+&lt;p&gt;Other designers took to Twitter and started attacking Eli, not even as a design critic but as a person. This was ugly to see. What happened to civil discussion and giving the other side a chance to say their piece? Calling to &amp;#8220;ban him&amp;#8221; from sites such as DesignerNews or suggesting to unfollow him on Twitter is unbelievably childish - in an industry that we tote as &amp;#8220;accepting of everyone&amp;#8221; no less.&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s all I&amp;#8217;m going to say because I don’t want to spend too much time on this foolishness, but honestly designers - get some thicker skin.&lt;/p&gt;
+&lt;p&gt;Yeesh.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/dts"/>
+ <id>https://btxx.org/posts/dts</id>
+ <updated>2017-07-10T10:00:00Z</updated>
+ <published>2017-07-10T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Two Weeks with the DuckDuckGo Browser</title>
+ <content type="html">&lt;h1 id=&quot;two-weeks-with-the-duckduckgo-browser&quot;&gt;Two Weeks with the DuckDuckGo Browser&lt;/h1&gt;
+&lt;p&gt;2022-05-17&lt;/p&gt;
+&lt;p&gt;After using the beta apps for the new DuckDuckGo browser for both macOS and iOS, I have returned to Safari.&lt;/p&gt;
+&lt;p&gt;This switch back doesn&amp;#8217;t mean that these browsers are &lt;em&gt;bad&lt;/em&gt; by any means. Both browsers are decently fine for casual users. Unfortunately, they aren&amp;#8217;t ready for prime time &amp;#8220;power&amp;#8221; users. I&amp;#8217;m happy to see another company jump into the browser market (and one that is using WebKit instead of another Chromium clone) but for my day-to-day needs it doesn&amp;#8217;t cut it.&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s break things down:&lt;/p&gt;
+&lt;h2 id=&quot;the-good&quot;&gt;The Good&lt;/h2&gt;
&lt;ul&gt;
-&lt;li&gt;speeds up user interaction with the content you &lt;strong&gt;want&lt;/strong&gt; them to see&lt;/li&gt;
-&lt;li&gt;on subsequent pages the user shouldn&amp;#8217;t need to tab through the entire navigation each time&lt;/li&gt;
+&lt;li&gt;Clean UI with a mix between Chrome and Safari&lt;/li&gt;
+&lt;li&gt;The &amp;#8220;Leave No Trace&amp;#8221; fire button to purge data, cache and cookies&lt;/li&gt;
+&lt;li&gt;Feels snappy and responsive&lt;/li&gt;
+&lt;li&gt;Based on WebKit NOT Chromium&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;For the sake of this demo we will assume that we currently have the following navigation setup in our project:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;nav role=&quot;navigation&quot;&amp;#62;
- &amp;#60;a href=&quot;&amp;#47;&quot;&amp;#62;Home&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;a href=&quot;&amp;#47;about&quot;&amp;#62;About&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;a href=&quot;&amp;#47;archive&quot;&amp;#62;Archive&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;a href=&quot;&amp;#47;atom.xml&quot;&amp;#62;RSS&amp;#60;&amp;#47;a&amp;#62;
-&amp;#60;&amp;#47;nav&amp;#62;
+&lt;h2 id=&quot;the-not-so-good&quot;&gt;The Not So Good&lt;/h2&gt;
+&lt;ul&gt;
+&lt;li&gt;No sync options between systems (that I could find)&lt;/li&gt;
+&lt;li&gt;No extension support&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Now you might look at this list and notice there are more listed points set under the &lt;code&gt;Good&lt;/code&gt; category. Keep in mind that quantity does not always equal quality. The main negative of not allowing user extensions cannot be overstated. I think that when building a browser in this $CURRENT_YEAR it&amp;#8217;s imperative to allow for total user control. Don&amp;#8217;t wall things off. Don&amp;#8217;t &lt;em&gt;assume&lt;/em&gt; you know best for your users.&lt;/p&gt;
+&lt;p&gt;This is a huge issue since a good majority of friends, family and coworkers I talk with use more elaborate ad-blocking. One of the first things I tested with the DuckDuckGo browser on desktop was to watch a YouTube video. I was immediately slammed with multiple ads - both in video form and as banner pop-ups.&lt;/p&gt;
+&lt;p&gt;Overlooks like this shouldn&amp;#8217;t happen. This is UX 101.&lt;/p&gt;
+&lt;p&gt;Another obvious overlook is history and account syncing across devices. Unless I missed something obvious, I could not figure out how to seamlessly sync content from my macOS browser to my iOS one. Again, this function greatly improves the experience of jumping between desktop and mobile clients. Don&amp;#8217;t make me think![^1]&lt;/p&gt;
+&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
+&lt;p&gt;I appreciate the effort from the DuckDuckGo team. I&amp;#8217;m certain this project will get better over time, as they are listening closely to user feedback during the beta. With future improvements I could see myself giving things a second chance.&lt;/p&gt;
+&lt;p&gt;As it stands now, this feels like something that should be an extension[^2], not a standalone browser.&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;a href=&quot;https://sensible.com/dont-make-me-think/&quot;&gt;https:&amp;#47;&amp;#47;sensible.com&amp;#47;dont-make-me-think&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Technically this already exists as a Safari extension &lt;a href=&quot;https://apps.apple.com/us/app/duckduckgo-privacy-essentials/id1482920575?mt=12&quot;&gt;here&lt;/a&gt;&lt;/li&gt;
+&lt;/ol&gt;</content>
+ <link href="https://btxx.org/posts/duckduckno"/>
+ <id>https://btxx.org/posts/duckduckno</id>
+ <updated>2022-05-17T10:00:00Z</updated>
+ <published>2022-05-17T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Don't Make a Blog, Make a Brain Dump</title>
+ <content type="html">&lt;h1 id=&quot;dont-make-a-blog-make-a-brain-dump&quot;&gt;Don&amp;#8217;t Make a Blog, Make a Brain Dump&lt;/h1&gt;
+&lt;p&gt;2022-09-10&lt;/p&gt;
+&lt;p&gt;Not enough people have personal blogs. This is a point brought up by many of those passionate about the &amp;#8220;golden age&amp;#8221; in the timeline of the modern internet. A time when websites were more like a small collection of winding side-streets and flea markets. Today, it&amp;#8217;s all shopping malls, hostile pedestrians, and corporate buildings. People have their one or two &amp;#8220;outlets&amp;#8221; that make it easier for them to meet-up with friends and family. There&amp;#8217;s no need for these people to have their &amp;#8220;own thing&amp;#8221;. Someone else has already built it for them. They&amp;#8217;re become fully adjusted to their internet slums.&lt;/p&gt;
+&lt;p&gt;Okay, sorry about the terrible metaphors. But you get my point. &lt;em&gt;Convenience breeds laziness&lt;/em&gt;. &lt;em&gt;Laziness breeds mediocrity&lt;/em&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;whats-a-brain-dump&quot;&gt;What&amp;#8217;s a &amp;#8220;Brain Dump&amp;#8221;?&lt;/h2&gt;
+&lt;p&gt;A brain dump is a better way to look at sharing your own experiences or thoughts on the web. The term &amp;#8220;blog&amp;#8221; has a lot of baggage connected to it, so newcomers are quickly scared away by the concept. Or even worse - they decide to only share themselves on locked-in, walled gardens&lt;sup id=&quot;fnref1&quot;&gt;&lt;a href=&quot;#fn1&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;
+&lt;p&gt;Another problem arises when you finally &lt;em&gt;do&lt;/em&gt; convince someone to start &amp;#8220;blogging&amp;#8221; online; self-doubt.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&amp;#8220;What could I possibly have to share?&amp;#8221;&lt;/li&gt;
+&lt;li&gt;&amp;#8220;What if everyone &lt;em&gt;hates&lt;/em&gt; what I post?&amp;#8221;&lt;/li&gt;
+&lt;li&gt;&amp;#8220;What if my content sucks?&amp;#8221;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Just dump it. Who cares. It&amp;#8217;s the internet after all, so who are you trying to impress? The point is that your sharing your own experiences that are unique to you as an individual. Posting something that you think is pointless or mundane might be extremely helpful or, at the very least, entertaining for someone else.&lt;/p&gt;
+&lt;p&gt;Write up what you did over the weekend, a new recipe you tried out, review a movie&amp;#47;book or video game you enjoyed, list step-by-step instructions on how you installed a new appliance in your house - anything! Just &lt;em&gt;write&lt;/em&gt; and be part of what made the internet fun, exciting and personal again.&lt;/p&gt;
+&lt;p&gt;But let me reiterate: &lt;strong&gt;stay away from walled gardens!&lt;/strong&gt; Control your own space on the internet. Be the master of your own brain dump! Say &amp;#8220;screw you&amp;#8221; to app algorithms and &lt;em&gt;trending&lt;/em&gt; bullshit. Just be you.&lt;/p&gt;
+&lt;p&gt;Convinced? Awesome. Now let&amp;#8217;s get into setting things up. I&amp;#8217;ll break these down into two separate categories: one for those with limited web&amp;#47;software experience, and one for those wanting a little more control.&lt;/p&gt;
+&lt;h3 id=&quot;no-code-solutions&quot;&gt;No Code Solutions&lt;/h3&gt;
+&lt;p&gt;Before I get into my suggested options in this &amp;#8220;no-code&amp;#8221; category, I would like to mention why WordPress &lt;em&gt;is not&lt;/em&gt; listed here. Personally, I think WordPress gets in the way of users wanting to &amp;#8220;just blog&amp;#8221;. There once was an era where blogging was WP&amp;#8217;s main focus, but that is now a time long forgotten. It tries to do too much. The back-end is a cluttered mess. Initial learning curves for security, plugins and themes is far too great for newbies. Gutenberg - dear God.&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s not even mentioning hosting costs, installation, backups, etc. My personal take - just steer clear. This option is better suited in the &lt;em&gt;second&lt;/em&gt; category for those with more web experience.&lt;/p&gt;
+&lt;p&gt;With that out of the way, let&amp;#8217;s see my top selections for &amp;#8220;no-code&amp;#8221;:&lt;/p&gt;
+&lt;h4 id=&quot;blot&quot;&gt;Blot&lt;/h4&gt;
+&lt;p&gt;&lt;a href=&quot;https://blot.im/&quot;&gt;Blot&lt;/a&gt; has been around for quite a while. You simply post to a third-party service like Dropbox, Google Drive or a &lt;code&gt;git&lt;/code&gt; repo and Blot takes care of the rest.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;$4&amp;#47;month (includes custom domain use, hosting &amp;#38; support)&lt;/li&gt;
+&lt;li&gt;Easy sign up&lt;/li&gt;
+&lt;li&gt;Multiple themes to choose from&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h4 id=&quot;bear-blog&quot;&gt;Bear Blog&lt;/h4&gt;
+&lt;p&gt;&lt;a href=&quot;https://bearblog.dev/&quot;&gt;Bear Blog&lt;/a&gt; is an excellent platform that focuses on content and not much else.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Free ($25&amp;#47;year for extras)&lt;/li&gt;
+&lt;li&gt;Easy sign up&lt;/li&gt;
+&lt;li&gt;No trackers, no javascript, no ads&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h4 id=&quot;mataroa-blog&quot;&gt;Mataroa Blog&lt;/h4&gt;
+&lt;p&gt;&lt;a href=&quot;https://mataroa.blog/&quot;&gt;Mataroa&lt;/a&gt; follows in the same vein as Bear Blog, a simple blogging platform focused on &lt;em&gt;writing&lt;/em&gt;.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Free (with optional $9&amp;#47;year for premium features)&lt;/li&gt;
+&lt;li&gt;No ads, no tracking&lt;/li&gt;
+&lt;li&gt;Open source&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h4 id=&quot;write.as&quot;&gt;Write.as&lt;/h4&gt;
+&lt;p&gt;&lt;a href=&quot;https://write.as/&quot;&gt;Write.as&lt;/a&gt; is another good option for those looking to just get words down and shared on the internet.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Free with optional paid tiers (custom domains, themes etc.)&lt;/li&gt;
+&lt;li&gt;Option to self host via &lt;a href=&quot;https://writefreely.org/&quot;&gt;Write Freely&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h3 id=&quot;build-your-own&quot;&gt;Build Your Own&lt;/h3&gt;
+&lt;p&gt;If you&amp;#8217;re deep into this section of the post, I think it&amp;#8217;s safe to assume your technical level is fairly &lt;em&gt;decent&lt;/em&gt;. So, I won&amp;#8217;t be into great detail with the options below:&lt;/p&gt;
+&lt;h4 id=&quot;sourcehut-pages&quot;&gt;SourceHut Pages&lt;/h4&gt;
+&lt;p&gt;This very website you&amp;#8217;re reading is built and run off of &lt;a href=&quot;https://srht.site/&quot;&gt;SourceHut Pages&lt;/a&gt;. I highly recommend the service.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;$3+&amp;#47;month (depending on what you &lt;em&gt;choose&lt;/em&gt; to pay)&lt;/li&gt;
+&lt;li&gt;No javascript, no trackers&lt;/li&gt;
+&lt;li&gt;Customizable build settings&lt;/li&gt;
+&lt;li&gt;Support open source software!&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;&lt;strong&gt;Sidenote:&lt;/strong&gt; If you&amp;#8217;re interested in setting up a SSG (such as Jekyll or Hugo) through SourceHut, feel free to &lt;a href=&quot;https://git.sr.ht/~bt/bt.ht&quot;&gt;fork this very website as a starting point&lt;/a&gt;. I also wrote up how to publish&amp;#47;build a Jekyll site on SourceHut in a &lt;a href=&quot;/srht&quot;&gt;separate post&lt;/a&gt; if you wish to see all the nitty-gritty details.&lt;/p&gt;
+&lt;h4 id=&quot;wordpress&quot;&gt;WordPress&lt;/h4&gt;
+&lt;p&gt;As I mentioned above, I find this platform can be a little overkill for a simple &amp;#8220;blog&amp;#8221; (or in this case, a brain dump). I&amp;#8217;m aware that many devs might already be familiar with WP, so it makes sense to include it here.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Free options (custom domains, premium features will require some form of paid hosting)&lt;/li&gt;
+&lt;li&gt;Room for growth with extensive plugins &amp;#47; themes&lt;/li&gt;
+&lt;li&gt;Huge amount of documentation and resources&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h4 id=&quot;static-html-and-a-web-host&quot;&gt;Static HTML and a Web Host&lt;/h4&gt;
+&lt;p&gt;Why not, right? Using a service like &lt;a href=&quot;https://www.nearlyfreespeech.net/&quot;&gt;NearlyFreeSpeech&lt;/a&gt; or spinning up a cheap VPS with &lt;a href=&quot;https://www.digitalocean.com/&quot;&gt;DigitalOcean&lt;/a&gt; and then dropping static HTML files on your server is pretty straightforward. You don&amp;#8217;t need any fancy scripts or syncing tools - an FTP client and a text editor is more than enough!&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;$2-5&amp;#47;month (depending on service provider)&lt;/li&gt;
+&lt;li&gt;&amp;#8220;Drag-and-drop&amp;#8221; workflow&lt;/li&gt;
+&lt;li&gt;Easily portable to other hosting services in the future&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h4 id=&quot;github-pages&quot;&gt;GitHub Pages&lt;/h4&gt;
+&lt;p&gt;Since GitHub is used by almost every developer across the globe, it makes sense to mention their free website hosting option via &lt;a href=&quot;https://pages.github.com/&quot;&gt;GitHub Pages&lt;/a&gt;. I personally &lt;em&gt;don&amp;#8217;t&lt;/em&gt; advise newcomers to use this platform, but you&amp;#8217;re free to do as you like!&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&amp;#8220;Free&amp;#8221;&lt;/li&gt;
+&lt;li&gt;Fairly limited (no static site plugin support)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h2&gt;
+&lt;p&gt;There are many services in both categories above that I did not include. That&amp;#8217;s okay. I didn&amp;#8217;t exclude them because I &lt;em&gt;dislike&lt;/em&gt; them but instead focused on what &lt;em&gt;I believe&lt;/em&gt; to be the easiest solutions for both camps (techies and non-techies).&lt;/p&gt;
+&lt;p&gt;At the end of the day - who cares what you choose. Just choose &lt;em&gt;something&lt;/em&gt;. Stop looking at it as &amp;#8220;blogging&amp;#8221; or trying to &amp;#8220;capture an audience&amp;#8221;. Dump your brain&amp;#8217;s thoughts out into the internet, on your &lt;em&gt;own piece&lt;/em&gt; of the internet, and help make the world wide web as fun as it used to be!&lt;/p&gt;
+&lt;div class=&quot;footnotes&quot;&gt;
+&lt;hr/&gt;
+&lt;ol&gt;
+
+&lt;li id=&quot;fn1&quot;&gt;
+&lt;p&gt;Facebook, Twitter, Reddit, Instagram, etc. These should be completely avoided for the sake of both your health and your internet freedom.&amp;#160;&lt;a href=&quot;#fnref1&quot; rev=&quot;footnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
+&lt;/li&gt;
+
+&lt;/ol&gt;
+&lt;/div&gt;</content>
+ <link href="https://btxx.org/posts/dump"/>
+ <id>https://btxx.org/posts/dump</id>
+ <updated>2022-09-10T10:00:00Z</updated>
+ <published>2022-09-10T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Dynamic Viewports with CSS</title>
+ <content type="html">&lt;h1 id=&quot;dynamic-viewports-with-css&quot;&gt;Dynamic Viewports with CSS&lt;/h1&gt;
+&lt;p&gt;2023-02-08&lt;/p&gt;
+&lt;p&gt;I think it&amp;#8217;s safe to assume most web designers and developers are familiar with the standard &lt;code&gt;vh&lt;/code&gt; and &lt;code&gt;vw&lt;/code&gt; parameters in CSS. These parameters are used for setting an element&amp;#8217;s height and&amp;#47;or width, relative to the viewport (v) height (h) or width (w). For example:&lt;/p&gt;
+&lt;p&gt;If I want my &lt;code&gt;.box&lt;/code&gt; element to take up the entire height of a device&amp;#8217;s screen:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.box {
+ height: 100vh;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now for the easy part - adding our simple content skip link with it&amp;#8217;s own custom &lt;code&gt;skip-content&lt;/code&gt; class:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;nav role=&quot;navigation&quot;&amp;#62;
- &amp;#60;!-- Skip to content button --&amp;#62;
- &amp;#60;a class=&quot;skip-content&quot; href=&quot;#main&quot;&amp;#62;Skip to Content (Press Enter)&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;a href=&quot;&amp;#47;&quot;&amp;#62;Home&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;a href=&quot;&amp;#47;about&quot;&amp;#62;About&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;a href=&quot;&amp;#47;archive&quot;&amp;#62;Archive&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;a href=&quot;&amp;#47;atom.xml&quot;&amp;#62;RSS&amp;#60;&amp;#47;a&amp;#62;
-&amp;#60;&amp;#47;nav&amp;#62;
+&lt;p&gt;Or I want my &lt;code&gt;.box&lt;/code&gt; element to take up the entire width of a device&amp;#8217;s screen:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.box {
+ width: 100vw;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;Our first task is to make sure this new link isn&amp;#8217;t visible or interactive by default unless the user explicitly tabs through the navigation. We do so by positioning the link outside of the main content view. It is important to use this &lt;code&gt;absolute&lt;/code&gt; position style instead of setting the display property to &lt;code&gt;none&lt;/code&gt;, since the display property technique will fully remove the element from the DOM (bad accessibility practices).&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;a.skip-content {
- background: grey;
- color: white;
- left: -9999px;
- padding: 0.5rem;
+&lt;p&gt;These are wonderful options to have - specifically for those of us designing web applications. But there are some &lt;em&gt;minor&lt;/em&gt; issues with &lt;code&gt;vh&lt;/code&gt; and &lt;code&gt;vw&lt;/code&gt;.&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;The setting does not take into account device-specific UI (status bars, toolbars, search fields etc.)&lt;/li&gt;
+&lt;li&gt;In some instances these will not play nice with &lt;code&gt;box-sizing&lt;/code&gt; properties&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;have-no-fear-dynamic-viewport-is-here&quot;&gt;Have No Fear, Dynamic Viewport is Here!&lt;/h2&gt;
+&lt;p&gt;Lucky for us there exists an awesome &lt;em&gt;new-ish&lt;/em&gt; CSS API called dynamic viewport-percentage units: &lt;code&gt;dvh&lt;/code&gt; &amp;#38; &lt;code&gt;dvw&lt;/code&gt;. They are defined as follows:&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;The dynamic viewport-percentage units (dv) are defined with respect to the dynamic viewport size: the viewport sized with dynamic consideration of any UA interfaces that are dynamically expanded and retracted. This allows authors to size content such that it can exactly fit within the viewport whether or not such interfaces are present.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;So our examples above would translate into:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.box {
+ height: 100dvh;
+ width: 100dvw;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;what-about-browser-support&quot;&gt;What About Browser Support?&lt;/h3&gt;
+&lt;p&gt;&lt;a href=&quot;https://caniuse.com/mdn-api_css_dvh&quot;&gt;Can I Use Stats&lt;/a&gt; &amp;#47; ~67.17% coverage.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Even though the caniuse page states that Firefox 109+ and iOS Safari 16.3 do not support &lt;code&gt;dvh&lt;/code&gt;, in my experiments they do. I&amp;#8217;m not sure what testing was done for those two browsers, so YMMV.&lt;/p&gt;
+&lt;p&gt;If you want to play it safe, use dynamic viewports with standard &amp;#8220;traditional&amp;#8221; viewports as backup. That way you support all use cases while still taking advantage of newer CSS properties.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/dv"/>
+ <id>https://btxx.org/posts/dv</id>
+ <updated>2023-02-08T10:00:00Z</updated>
+ <published>2023-02-08T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Bringing dwm Shortcuts to GNOME</title>
+ <content type="html">&lt;h1 id=&quot;bringing-dwm-shortcuts-to-gnome&quot;&gt;Bringing dwm Shortcuts to GNOME&lt;/h1&gt;
+&lt;p&gt;2023-11-02&lt;/p&gt;
+&lt;p&gt;The &lt;code&gt;dwm&lt;/code&gt; window manager is my standard &amp;#8220;go-to&amp;#8221; for most of my personal laptop environments. For desktops with larger, higher resolution monitors I tend to lean towards using GNOME. The GNOME DE is fairly solid for my own purposes. This article isn&amp;#8217;t going to deep dive into GNOME itself, but instead highlight some minor configuration changes I make to mimic a few &lt;code&gt;dwm&lt;/code&gt; shortcuts.&lt;/p&gt;
+&lt;p&gt;For reference, I&amp;#8217;m running GNOME 45.0 on Ubuntu 23.10&lt;/p&gt;
+&lt;h2 id=&quot;setting-up-fixed-workspaces&quot;&gt;Setting Up Fixed Workspaces&lt;/h2&gt;
+&lt;p&gt;When I use &lt;code&gt;dwm&lt;/code&gt; I tend to have a hard-set amount of &lt;code&gt;tags&lt;/code&gt; to cycle through (normally 4-5). Unfortunately, dynamic rendering is the default for workspaces (ie. tags) in GNOME. For my personal preference I set this setting to &lt;code&gt;fixed&lt;/code&gt;. We can achieve this by opening &lt;strong&gt;Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Multitasking&lt;/strong&gt; and selecting &amp;#8220;Fixed number of workspaces&amp;#8221;.&lt;/p&gt;
+&lt;h2 id=&quot;setting-our-keybindings&quot;&gt;Setting Our Keybindings&lt;/h2&gt;
+&lt;p&gt;Now all that is left is to mimic &lt;code&gt;dwm&lt;/code&gt; keyboard shortcuts, in this case: ALT + $num for switching between workspaces and ALT + SHIFT + $num for moving windows across workspaces. These keyboard shortcuts can be altered under &lt;strong&gt;Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Keyboard&lt;/strong&gt; &amp;#62; &lt;strong&gt;View and Customize Shortcuts&lt;/strong&gt; &amp;#62; &lt;strong&gt;Navigation&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;You&amp;#8217;ll want to make edits to both the &amp;#8220;Switch to workspace &lt;em&gt;n&lt;/em&gt;&amp;#8221; and &amp;#8220;Move window to workspace &lt;em&gt;n&lt;/em&gt;&amp;#8221;. &lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it. You&amp;#8217;re free to include even more custom keyboard shortcuts (open web browser, lock screen, hibernate, etc.) but this is a solid starting point. Enjoy tweaking GNOME!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/dwm-gnome"/>
+ <id>https://btxx.org/posts/dwm-gnome</id>
+ <updated>2023-11-02T10:00:00Z</updated>
+ <published>2023-11-02T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Dynamic Checkboxes</title>
+ <content type="html">&lt;h1 id=&quot;dynamic-checkboxes&quot;&gt;Dynamic Checkboxes&lt;/h1&gt;
+&lt;p&gt;2019-07-30&lt;/p&gt;
+&lt;p&gt;Checkboxes are used quite frequently on forms across the web. Whether you&amp;#8217;re selecting a pricing plan during a site&amp;#8217;s sign-up process or just simply selecting to opt-out from a newsletter, you have most likely interacted with some form of checkbox element.&lt;/p&gt;
+&lt;p&gt;What if we could make everyday checkboxes more beautiful &lt;em&gt;and&lt;/em&gt; more intuitive? &lt;em&gt;It&amp;#8217;s easier than you think&lt;/em&gt;. We only need a small amount of CSS and JavaScript to make considerable improvements to your average checkbox UX.&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s get into it.&lt;/p&gt;
+&lt;h2 id=&quot;what-we-are-building&quot;&gt;What we are building&lt;/h2&gt;
+&lt;p&gt;Take a look and play around with the CodePen below to get an idea of what we are going to build. The premise is a simple add-on pricing form which calculates the additional monthly total to the user in real-time.&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/rXWEpy/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;the-structure-html&quot;&gt;The Structure (HTML)&lt;/h2&gt;
+&lt;p&gt;As always, we will start by breaking down the &amp;#8220;bones&amp;#8221; of the HTML structure for this checkbox form. Let&amp;#8217;s take a look at the HTML in it&amp;#8217;s entirety (don&amp;#8217;t worry, it is a lot more simple than it seems at first glance):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;h2&amp;#62;Add-ons&amp;#60;&amp;#47;h2&amp;#62;
+
+&amp;#60;input class=&quot;checkbox-btn&quot; name=&quot;checkbox-collection&quot; id=&quot;checkbox-1&quot; type=&quot;checkbox&quot; value=&quot;49&quot;&amp;#62;
+&amp;#60;label class=&quot;checkbox-label&quot; for=&quot;checkbox-1&quot;&amp;#62;
+ &amp;#60;span&amp;#62;
+ White-labeled Domain
+ &amp;#60;em&amp;#62;Use your own custom domain with SSL security included.&amp;#60;&amp;#47;em&amp;#62;
+ &amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;span&amp;#62;$49&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
+&amp;#60;&amp;#47;label&amp;#62;
+
+&amp;#60;input class=&quot;checkbox-btn&quot; name=&quot;checkbox-collection&quot; id=&quot;checkbox-2&quot; type=&quot;checkbox&quot; value=&quot;49&quot;&amp;#62;
+&amp;#60;label class=&quot;checkbox-label&quot; for=&quot;checkbox-2&quot;&amp;#62;
+ &amp;#60;span&amp;#62;
+ API Access
+ &amp;#60;em&amp;#62;Make API calls to perform custom serving and account actions.&amp;#60;&amp;#47;em&amp;#62;
+ &amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;span&amp;#62;$49&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
+&amp;#60;&amp;#47;label&amp;#62;
+
+&amp;#60;input class=&quot;checkbox-btn&quot; name=&quot;checkbox-collection&quot; id=&quot;checkbox-3&quot; type=&quot;checkbox&quot; value=&quot;349&quot;&amp;#62;
+&amp;#60;label class=&quot;checkbox-label&quot; for=&quot;checkbox-3&quot;&amp;#62;
+ &amp;#60;span&amp;#62;
+ Priority Support
+ &amp;#60;em&amp;#62;A dedicated account manager to assist your team with ongoing deployments.&amp;#60;&amp;#47;em&amp;#62;
+ &amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;span&amp;#62;$349&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
+&amp;#60;&amp;#47;label&amp;#62;
+
+&amp;#60;div class=&quot;total-cost&quot;&amp;#62;
+ &amp;#60;h2&amp;#62;Your Plan&amp;#60;&amp;#47;h2&amp;#62;
+ &amp;#60;div&amp;#62;
+ &amp;#60;span&amp;#62;$&amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;span id=&quot;total-cost-inner&quot;&amp;#62;0&amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;input id=&quot;output&quot; type=&quot;text&quot; value=&quot;0&quot; disabled&amp;#47;&amp;#62;
+ &amp;#60;span&amp;#62;&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;the-checkbox-inputs-labels&quot;&gt;The checkbox inputs &amp;#38; labels&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;!-- #1 --&amp;#62;
+&amp;#60;input class=&quot;checkbox-btn&quot; name=&quot;checkbox-collection&quot; id=&quot;checkbox-1&quot; type=&quot;checkbox&quot; value=&quot;49&quot;&amp;#62;
+
+&amp;#60;!-- #2 --&amp;#62;
+&amp;#60;label class=&quot;checkbox-label&quot; for=&quot;checkbox-1&quot;&amp;#62;
+
+ &amp;#60;!-- #2i --&amp;#62;
+ &amp;#60;span&amp;#62;
+ White-labeled Domain
+ &amp;#60;em&amp;#62;Use your own custom domain with SSL security included.&amp;#60;&amp;#47;em&amp;#62;
+ &amp;#60;&amp;#47;span&amp;#62;
+
+ &amp;#60;!-- #2ii --&amp;#62;
+ &amp;#60;span&amp;#62;$49&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
+
+&amp;#60;&amp;#47;label&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;p&gt;This input will be hidden via &lt;code&gt;position:absolute&lt;/code&gt; by default. All checkbox inputs need to share the same &lt;code&gt;name&lt;/code&gt; value and all checkboxes require their our custom &lt;code&gt;id&lt;/code&gt; that will link with the corresponding &lt;code&gt;for&lt;/code&gt; value on the label.&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;This label needs it&amp;#8217;s &lt;code&gt;for&lt;/code&gt; value to correspond with it&amp;#8217;s partnered checkbox.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;i) The first span holds the title and description information of the add-on&lt;/li&gt;
+&lt;li&gt;ii) The last span holds the cost associated with the current add-on&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h3 id=&quot;the-total-cost-container-output&quot;&gt;The total cost container output&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;!-- #1 --&amp;#62;
+&amp;#60;div class=&quot;total-cost&quot;&amp;#62;
+
+ &amp;#60;h2&amp;#62;Your Plan&amp;#60;&amp;#47;h2&amp;#62;
+
+ &amp;#60;!-- #2 --&amp;#62;
+ &amp;#60;div&amp;#62;
+
+ &amp;#60;!-- #2i --&amp;#62;
+ &amp;#60;span&amp;#62;$&amp;#60;&amp;#47;span&amp;#62;
+
+ &amp;#60;!-- #2ii --&amp;#62;
+ &amp;#60;span id=&quot;total-cost-inner&quot;&amp;#62;0&amp;#60;&amp;#47;span&amp;#62;
+
+ &amp;#60;!-- #2iii --&amp;#62;
+ &amp;#60;input id=&quot;output&quot; type=&quot;text&quot; value=&quot;0&quot; disabled&amp;#47;&amp;#62;
+
+ &amp;#60;!-- #2iv --&amp;#62;
+ &amp;#60;span&amp;#62;&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
+
+ &amp;#60;&amp;#47;div&amp;#62;
+
+&amp;#60;&amp;#47;div&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;p&gt;A simple &lt;code&gt;div&lt;/code&gt; with a class we can easily target later&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;A &lt;code&gt;div&lt;/code&gt; parent container is needed to house all the total &lt;code&gt;spans&lt;/code&gt; together (more on this when we get into the CSS)&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;i) The first &lt;code&gt;span&lt;/code&gt; holds the static currency symbol&lt;/li&gt;
+&lt;li&gt;ii) The second &lt;code&gt;span&lt;/code&gt; is where our updated cost will be injected&lt;/li&gt;
+&lt;li&gt;iii) This input field is required for us to take-in the &lt;code&gt;value&lt;/code&gt; of the associated &lt;code&gt;:checked&lt;/code&gt; inputs and add them together. This current value is then used for the injection into the second &lt;code&gt;span&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;iv) The final &lt;code&gt;span&lt;/code&gt; simply holds the static monthly duration content&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;All that&amp;#8217;s all we need for the HTML!&lt;/p&gt;
+&lt;h2 id=&quot;the-visuals-css&quot;&gt;The Visuals (CSS)&lt;/h2&gt;
+&lt;p&gt;Again, lets take a look at the entire file before we break it down step-by-step:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.checkbox-label {
+ align-items: center;
+ background-color: none;
+ border: 1px solid lightgrey;
+ border-radius: 5px;
+ cursor: pointer;
+ display: flex;
+ font-weight: 600;
+ justify-content: space-between;
+ margin: 0 auto 10px;
+ padding: 20px 20px 20px 70px;
+ position: relative;
+ transition: .3s ease all;
+ width: 100%;
+}
+.checkbox-label span:last-child {
+ padding: 0 0 0 20px;
+}
+.checkbox-label:hover {
+ background-color: rgba(255,255,255,0.2);
+}
+.checkbox-label:before {
+ background-repeat: no-repeat;
+ background-position: center;
+ background-size: 15px;
+ border: 1px solid lightgrey;
+ border-radius: 50%;
+ content:&amp;#39;&amp;#39;;
+ height: 30px;
+ left: 20px;
position: absolute;
- top: 0;
+ top: calc(50% - 15px);
+ transition: .3s ease background-color;
+ width: 30px;
+}
+.checkbox-label:hover:before {
+ background-image:
+ url(&amp;#39;data:image&amp;#47;svg+xml;utf8,&amp;#60;svg xmlns=&quot;http:&amp;#47;&amp;#47;www.w3.org&amp;#47;2000&amp;#47;svg&quot; width=&quot;23.571429&quot; height=&quot;23.571429&quot; viewBox=&quot;0.000000 -47.142857 23.571429 23.571429&quot;&amp;#62;&amp;#60;path fill=&quot;lightgrey&quot; d=&quot;M23.571429 -36.964286L23.571429 -33.750000C23.571429 -33.303571 23.415179 -32.924107 23.102679 -32.611607C22.790179 -32.299107 22.410714 -32.142857 21.964286 -32.142857L15.000000 -32.142857L15.000000 -25.178571C15.000000 -24.732143 14.843750 -24.352679 14.531250 -24.040179C14.218750 -23.727679 13.839286 -23.571429 13.392857 -23.571429L10.178571 -23.571429C9.732143 -23.571429 9.352679 -23.727679 9.040179 -24.040179C8.727679 -24.352679 8.571429 -24.732143 8.571429 -25.178571L8.571429 -32.142857L1.607143 -32.142857C1.160714 -32.142857 0.781250 -32.299107 0.468750 -32.611607C0.156250 -32.924107 0.000000 -33.303571 0.000000 -33.750000L0.000000 -36.964286C0.000000 -37.410714 0.156250 -37.790179 0.468750 -38.102679C0.781250 -38.415179 1.160714 -38.571429 1.607143 -38.571429L8.571429 -38.571429L8.571429 -45.535714C8.571429 -45.982143 8.727679 -46.361607 9.040179 -46.674107C9.352679 -46.986607 9.732143 -47.142857 10.178571 -47.142857L13.392857 -47.142857C13.839286 -47.142857 14.218750 -46.986607 14.531250 -46.674107C14.843750 -46.361607 15.000000 -45.982143 15.000000 -45.535714L15.000000 -38.571429L21.964286 -38.571429C22.410714 -38.571429 22.790179 -38.415179 23.102679 -38.102679C23.415179 -37.790179 23.571429 -37.410714 23.571429 -36.964286ZM23.571429 -36.964286&quot;&amp;#62;&amp;#60;&amp;#47;path&amp;#62;&amp;#60;&amp;#47;svg&amp;#62;&amp;#39;);
+}
+.checkbox-label span {
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ user-select: none;
+}
+.checkbox-label span em {
+ display: block;
+ font-size: 80%;
+ font-style: normal;
+ font-weight: 400;
+ line-height: 1.2;
+}
+.checkbox-btn {
+ position: absolute;
+ visibility: hidden;
+}
+.checkbox-btn:checked + .checkbox-label {
+ background-color: white;
+ border-color: mediumpurple;
+ box-shadow: 0 2px 4px rgba(0,0,0,0.05);
+}
+.checkbox-btn:checked + .checkbox-label:before {
+ background-color: mediumpurple;
+ background-image:
+ url(&amp;#39;data:image&amp;#47;svg+xml;utf8,&amp;#60;svg xmlns=&quot;http:&amp;#47;&amp;#47;www.w3.org&amp;#47;2000&amp;#47;svg&quot; width=&quot;25.948661&quot; height=&quot;19.888393&quot; viewBox=&quot;2.025670 -40.011161 25.948661 19.888393&quot;&amp;#62;&amp;#60;path fill=&quot;white&quot; d=&quot;M27.974330 -36.127232C27.974330 -35.680804 27.818080 -35.301339 27.505580 -34.988839L15.385045 -22.868304L13.108259 -20.591518C12.795759 -20.279018 12.416295 -20.122768 11.969866 -20.122768C11.523438 -20.122768 11.143973 -20.279018 10.831473 -20.591518L8.554688 -22.868304L2.494420 -28.928571C2.181920 -29.241071 2.025670 -29.620536 2.025670 -30.066964C2.025670 -30.513393 2.181920 -30.892857 2.494420 -31.205357L4.771205 -33.482143C5.083705 -33.794643 5.463170 -33.950893 5.909598 -33.950893C6.356027 -33.950893 6.735491 -33.794643 7.047991 -33.482143L11.969866 -28.543527L22.952009 -39.542411C23.264509 -39.854911 23.643973 -40.011161 24.090402 -40.011161C24.536830 -40.011161 24.916295 -39.854911 25.228795 -39.542411L27.505580 -37.265625C27.818080 -36.953125 27.974330 -36.573661 27.974330 -36.127232ZM27.974330 -36.127232&quot;&amp;#62;&amp;#60;&amp;#47;path&amp;#62;&amp;#60;&amp;#47;svg&amp;#62;&amp;#39;);
+ border-color: mediumpurple;
+}
+
+.total-cost {
+ align-items: baseline;
+ border-top: 1px solid lightgrey;
+ display: flex;
+ justify-content: space-between;
+ margin-top: 40px;
+ padding: 40px 20px 0;
+}
+.total-cost div {
+ align-items: baseline;
+ display: flex;
+}
+.total-cost span:nth-child(1) {
+ align-self: flex-start;
+ padding-top: 5px;
+}
+.total-cost span:nth-child(2) {
+ font-size: 32px;
+ font-weight: bold;
+}
+.total-cost input {
+ display: none;
+}
+
+@media(max-width:480px) {
+ .checkbox-label {
+ align-items: flex-start;
+ flex-direction: column;
+ flex-wrap: wrap;
+ }
+ .checkbox-label span:last-child {
+ padding: 10px 0 0 0;
+ }
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;almost-there&quot;&gt;Almost there&lt;/h2&gt;
-&lt;p&gt;Now we just re-position the element when the user focuses on the link with a keyboard tab:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;a.skip-content:focus {
- left: 1rem; &amp;#47;* Whatever desired position *&amp;#47;
+&lt;h3 id=&quot;the-checkbox-label&quot;&gt;The checkbox label&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;*
+This is the main element for each checkbox &quot;container&quot;.
+Inside it houses the title, description and price.
+*&amp;#47;
+.checkbox-label {
+ align-items: center;
+ background-color: none;
+ border: 1px solid lightgrey;
+ border-radius: 5px;
+ cursor: pointer;
+ display: flex;
+ font-weight: 600;
+ justify-content: space-between;
+ margin: 0 auto 10px;
+ padding: 20px 20px 20px 70px;
+ position: relative;
+ transition: .3s ease all;
+ width: 100%;
+}
+.checkbox-label:hover {
+ background-color: rgba(255,255,255,0.2);
+}
+
+&amp;#47;* Update the label styling when the input is :checked *&amp;#47;
+.checkbox-btn:checked + .checkbox-label {
+ background-color: white;
+ border-color: mediumpurple;
+ box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;all-done&quot;&gt;All Done&lt;/h2&gt;
-&lt;p&gt;This is a very basic accessibility win you can implement in your current projects with next to zero effort. Enjoy!&lt;/p&gt;</content>
- <link href="https://btxx.org/skip-to-content"/>
- <id>https://btxx.org/skip-to-content</id>
- <updated>2019-03-25T10:00:00Z</updated>
- <published>2019-03-25T10:00:00Z</published>
- </entry>
- <entry>
- <title>Simple Navigation Setup in Jekyll 3.9.0</title>
- <content type="html">&lt;h1 id=&quot;simple-navigation-setup-in-jekyll-3.9.0&quot;&gt;Simple Navigation Setup in Jekyll 3.9.0&lt;/h1&gt;
-&lt;p&gt;2020-09-29&lt;/p&gt;
-&lt;p&gt;I have found that there is a lot of information on the internet in regards to setting up &amp;#8220;dynamic&amp;#8221; navigation in Jekyll. The problem I&amp;#8217;ve noticed is that a good amount of these implementations are overly complex. Here is the simplest way that I tend to use when building out &lt;code&gt;nav&lt;/code&gt; elements in Jekyll (3.9.0 as of this writing).&lt;/p&gt;
-&lt;h2 id=&quot;creating-the-directories-files&quot;&gt;Creating the Directories &amp;#38; Files&lt;/h2&gt;
-&lt;p&gt;In your Jekyll project, at the top level, you need to create a directory called &lt;code&gt;_data&lt;/code&gt;. Inside this folder we will be creating a new file called &lt;code&gt;navigation.yml&lt;/code&gt;. The contents of this file will contain all your navigation links and they are rendered like so:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;- title: Home
-url: &amp;#47;
+&lt;h3 id=&quot;the-custom-checkbox-input&quot;&gt;The custom checkbox input&lt;/h3&gt;
+&lt;p&gt;We need to hide the browser&amp;#8217;s default checkbox input and replace it with our own using pseudo selectors.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Hide browser default input *&amp;#47;
+.checkbox-btn {
+ position: absolute;
+ visibility: hidden;
+}
-- title: Articles
-url: &amp;#47;articles&amp;#47;
+&amp;#47;* Our custom input checkbox *&amp;#47;
+.checkbox-label:before {
+ background-repeat: no-repeat;
+ background-position: center;
+ background-size: 15px;
+ border: 1px solid lightgrey;
+ border-radius: 50%;
+ content:&amp;#39;&amp;#39;;
+ height: 30px;
+ left: 20px;
+ position: absolute;
+ top: calc(50% - 15px);
+ transition: .3s ease background-color;
+ width: 30px;
+}
-- title: About
-url: &amp;#47;about&amp;#47;
+&amp;#47;*
+Here we add a simple &amp;#39;+&amp;#39; icon on hover
+to our custom pseudo element.
+Adding it as an inline SVG gives us the
+ability to fully customize it&amp;#39;s styling
+*&amp;#47;
+.checkbox-label:hover:before {
+ background-image:
+ url(&amp;#39;data:image&amp;#47;svg+xml;utf8,&amp;#60;svg xmlns=&quot;http:&amp;#47;&amp;#47;www.w3.org&amp;#47;2000&amp;#47;svg&quot; width=&quot;23.571429&quot; height=&quot;23.571429&quot; viewBox=&quot;0.000000 -47.142857 23.571429 23.571429&quot;&amp;#62;&amp;#60;path fill=&quot;lightgrey&quot; d=&quot;M23.571429 -36.964286L23.571429 -33.750000C23.571429 -33.303571 23.415179 -32.924107 23.102679 -32.611607C22.790179 -32.299107 22.410714 -32.142857 21.964286 -32.142857L15.000000 -32.142857L15.000000 -25.178571C15.000000 -24.732143 14.843750 -24.352679 14.531250 -24.040179C14.218750 -23.727679 13.839286 -23.571429 13.392857 -23.571429L10.178571 -23.571429C9.732143 -23.571429 9.352679 -23.727679 9.040179 -24.040179C8.727679 -24.352679 8.571429 -24.732143 8.571429 -25.178571L8.571429 -32.142857L1.607143 -32.142857C1.160714 -32.142857 0.781250 -32.299107 0.468750 -32.611607C0.156250 -32.924107 0.000000 -33.303571 0.000000 -33.750000L0.000000 -36.964286C0.000000 -37.410714 0.156250 -37.790179 0.468750 -38.102679C0.781250 -38.415179 1.160714 -38.571429 1.607143 -38.571429L8.571429 -38.571429L8.571429 -45.535714C8.571429 -45.982143 8.727679 -46.361607 9.040179 -46.674107C9.352679 -46.986607 9.732143 -47.142857 10.178571 -47.142857L13.392857 -47.142857C13.839286 -47.142857 14.218750 -46.986607 14.531250 -46.674107C14.843750 -46.361607 15.000000 -45.982143 15.000000 -45.535714L15.000000 -38.571429L21.964286 -38.571429C22.410714 -38.571429 22.790179 -38.415179 23.102679 -38.102679C23.415179 -37.790179 23.571429 -37.410714 23.571429 -36.964286ZM23.571429 -36.964286&quot;&amp;#62;&amp;#60;&amp;#47;path&amp;#62;&amp;#60;&amp;#47;svg&amp;#62;&amp;#39;);
+}
+
+&amp;#47;*
+When the checkbox input is :checked we need to
+update the inline SVG to use a checkmark symbol
+*&amp;#47;
+.checkbox-btn:checked + .checkbox-label:before {
+ background-color: mediumpurple;
+ background-image:
+ url(&amp;#39;data:image&amp;#47;svg+xml;utf8,&amp;#60;svg xmlns=&quot;http:&amp;#47;&amp;#47;www.w3.org&amp;#47;2000&amp;#47;svg&quot; width=&quot;25.948661&quot; height=&quot;19.888393&quot; viewBox=&quot;2.025670 -40.011161 25.948661 19.888393&quot;&amp;#62;&amp;#60;path fill=&quot;white&quot; d=&quot;M27.974330 -36.127232C27.974330 -35.680804 27.818080 -35.301339 27.505580 -34.988839L15.385045 -22.868304L13.108259 -20.591518C12.795759 -20.279018 12.416295 -20.122768 11.969866 -20.122768C11.523438 -20.122768 11.143973 -20.279018 10.831473 -20.591518L8.554688 -22.868304L2.494420 -28.928571C2.181920 -29.241071 2.025670 -29.620536 2.025670 -30.066964C2.025670 -30.513393 2.181920 -30.892857 2.494420 -31.205357L4.771205 -33.482143C5.083705 -33.794643 5.463170 -33.950893 5.909598 -33.950893C6.356027 -33.950893 6.735491 -33.794643 7.047991 -33.482143L11.969866 -28.543527L22.952009 -39.542411C23.264509 -39.854911 23.643973 -40.011161 24.090402 -40.011161C24.536830 -40.011161 24.916295 -39.854911 25.228795 -39.542411L27.505580 -37.265625C27.818080 -36.953125 27.974330 -36.573661 27.974330 -36.127232ZM27.974330 -36.127232&quot;&amp;#62;&amp;#60;&amp;#47;path&amp;#62;&amp;#60;&amp;#47;svg&amp;#62;&amp;#39;);
+ border-color: mediumpurple;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;dynamically-rendering-the-navigation&quot;&gt;Dynamically Rendering the Navigation&lt;/h2&gt;
-&lt;p&gt;The next and final step is rendering out the navigation with a simple loop:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;{% for item in site.data.navigation %}
- &amp;#60;li&amp;#62;
- &amp;#60;a href=&quot;{{ item.url }}&quot;&amp;#62;&amp;#60;span&amp;#62;{{ item.title }}&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;&amp;#47;li&amp;#62;
-{% endfor %}
+&lt;h3 id=&quot;the-total-cost-container&quot;&gt;The total cost container&lt;/h3&gt;
+&lt;p&gt;We only need some very basic flexbox styling for our bottom &amp;#8220;total&amp;#8221; container:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.total-cost {
+ align-items: baseline;
+ border-top: 1px solid lightgrey;
+ display: flex;
+ justify-content: space-between;
+ margin-top: 40px;
+ padding: 40px 20px 0;
+}
+.total-cost div {
+ align-items: baseline;
+ display: flex;
+}
+.total-cost span:nth-child(1) {
+ align-self: flex-start;
+ padding-top: 5px;
+}
+.total-cost span:nth-child(2) {
+ font-size: 32px;
+ font-weight: bold;
+}
+
+&amp;#47;*
+This input is used in our JavaScript - look at the
+function part of this post to understand why
+*&amp;#47;
+.total-cost input {
+ display: none;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;highlight-current-page&quot;&gt;Highlight Current Page&lt;/h2&gt;
-&lt;p&gt;It&amp;#8217;s also very easy to extend this method to add a CSS class based on whether a user is on the currently selected page or not:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;{% for item in site.data.navigation %}
- &amp;#60;li&amp;#62;
- {% if item.url == page.url %}
- &amp;#60;a class=&quot;active&quot; href=&quot;{{ item.url }}&quot;&amp;#62;&amp;#60;span&amp;#62;{{ item.title }}&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
- {% else %}
- &amp;#60;a href=&quot;{{ item.url }}&quot;&amp;#62;&amp;#60;span&amp;#62;{{ item.title }}&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
- {% endif %}
- &amp;#60;&amp;#47;li&amp;#62;
-{% endfor %}
+&lt;h3 id=&quot;last-but-not-least---mobile&quot;&gt;Last but not least - mobile&lt;/h3&gt;
+&lt;p&gt;Now we just ensure that on smaller devices our checkbox labels render nicely:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@media(max-width:480px) {
+ &amp;#47;*
+ Avoids the inner label content from squishing together
+ and becoming unreadable
+ *&amp;#47;
+ .checkbox-label {
+ align-items: flex-start;
+ flex-direction: column;
+ flex-wrap: wrap;
+ }
+ .checkbox-label span:last-child {
+ padding: 10px 0 0 0;
+ }
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;That&amp;#8217;s it for the styling!&lt;/p&gt;
+&lt;h2 id=&quot;the-function-js&quot;&gt;The Function (JS)&lt;/h2&gt;
+&lt;p&gt;As you can see below, we only need a very minor amount of JavaScript to accomplish our total cost &amp;#8220;injection&amp;#8221;.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;window.onload=function(){
+&amp;#47;&amp;#47; Place the default browser checkbox inputs into a variable
+var inputs = document.getElementsByClassName(&amp;#39;checkbox-btn&amp;#39;)
+&amp;#47;&amp;#47; Now we loop through the inputs and check if they are
+&amp;#47;&amp;#47; greater than zero. If so, we run our function.
+for (var i=0; i &amp;#60; inputs.length; i++) {
-&amp;#47;* Custom styling for active class *&amp;#47;
-li a.active { color: red; }
+ inputs[i].onchange = function() {
+
+ &amp;#47;&amp;#47; Create `add` variable which takes the :checked input value
+ var add = this.value * (this.checked ? 1 : -1);
+
+ &amp;#47;&amp;#47; We grab the current total value on our hidden input field and return it
+ &amp;#47;&amp;#47; as a floating point number
+ &amp;#47;&amp;#47; (since in this use case it will be a price number based on currency)
+ var new_total = parseFloat(document.getElementById(&amp;#39;output&amp;#39;).value);
+
+ &amp;#47;&amp;#47; Now we simply add the existing total value with the newly &quot;:checked&quot; input value
+ var updated_total = document.getElementById(&amp;#39;output&amp;#39;).value=new_total + add
+
+ &amp;#47;&amp;#47; Place the new updated total directly inside the `total-cost-inner` span element
+ document.getElementById(&amp;#39;total-cost-inner&amp;#39;).innerHTML = updated_total;
+ }
+
+}
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Congrats! You now have fully functional, dynamic navigation on your Jekyll site.&lt;/p&gt;</content>
- <link href="https://btxx.org/simple-jekyll-navigation"/>
- <id>https://btxx.org/simple-jekyll-navigation</id>
- <updated>2020-09-29T10:00:00Z</updated>
- <published>2020-09-29T10:00:00Z</published>
- </entry>
- <entry>
- <title>Simple Does Not Mean Ugly</title>
- <content type="html">&lt;h1 id=&quot;simple-does-not-mean-ugly&quot;&gt;Simple Does Not Mean Ugly&lt;/h1&gt;
-&lt;p&gt;2019-03-26&lt;/p&gt;
-&lt;p&gt;I see new blog posts popping up now and again advocating for designers to keep their products as simple as possible - and I couldn&amp;#8217;t agree more.&lt;/p&gt;
-&lt;p&gt;A lot of designers tend to think they need to reinvent the wheel when it comes to UI concepts that are standard defaults and expected by most users. Not only does this add extra work for your design and development cycles, but also increases the potential of frustration for your users when they are using your product.&lt;/p&gt;
-&lt;p&gt;Your job as a designer is to focus on the user experience journey and understand what those users &lt;em&gt;expect&lt;/em&gt; to happen - not what &lt;em&gt;you want&lt;/em&gt; to happen. This is a very delicate balance of design “give and take”, hence why simple designs always seem to work best.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;But simple does not mean “ugly”&lt;/strong&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;ugly-simple&quot;&gt;Ugly Simple&lt;/h2&gt;
-&lt;p&gt;Anyone who has read some of my opinion pieces on here in regards to UI know that I have a profound distaste for the overused “flat design” trend. Many designers consider this trend a clean and “simple” approach to most UI conventions - which is complete nonsense to most professionals in the industry (at least those not drinking the kool-aid).&lt;/p&gt;
-&lt;p&gt;Using the term “simple” in the context of UI is currently quite damaging to modern application and product development. Designers take these definitions too literally, leading to stripped down interfaces with little to no usability for their end-users.&lt;/p&gt;
-&lt;p&gt;Cap Watkins wrote a post back in 2014 where he explained his admiration for &lt;a href=&quot;https://capwatkins.com/blog/the-boring-designer&quot;&gt;boring designers&lt;/a&gt; and how they tackled design problems using the most boring or “lazy” techniques. While I don’t agree completely with his arguments, nor do I think one should try to attain the status of “boring designer”, I can understand his main sentiment: everyone can appreciate obvious and clever design.&lt;/p&gt;
-&lt;h2 id=&quot;fixing-simple&quot;&gt;Fixing Simple&lt;/h2&gt;
-&lt;p&gt;I hate when people point out problems without at least attempting to suggest some sort of solution - which is exactly what I’m going to do here (with only a few set examples of course, otherwise the post would become a book). Let’s take a look at the major culprits I find around the web: navigations, buttons and form elements.&lt;/p&gt;
-&lt;h3 id=&quot;1.-hidden-navigations&quot;&gt;1. Hidden Navigations&lt;/h3&gt;
-&lt;p&gt;How many native apps that you use regularly rely on the trusty “hamburger” menu icon navigation system? What about news sites, video streaming services, or blogs? Maybe you’ve implemented this concept in your own projects as well, advocating for it’s “cleaner” approach to navigation. &lt;/p&gt;
-&lt;p&gt;The &lt;em&gt;hamburger&lt;/em&gt; is a great example of “ugly simple”. You are purposely hiding the main structure that allows your users to move around your product freely behind an &lt;strong&gt;additional&lt;/strong&gt; interaction. That is the opposite of simple.&lt;/p&gt;
-&lt;p&gt;The only time you should be using the “hamburger crutch” as I call it, is for very small screen sizes or when targeting mobile user agents directly. That’s it. If your users are viewing your product on a larger screen, for the love of God, &lt;strong&gt;use the space available&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/navigation.webp&quot; alt=&quot;Desktop Navigation&quot; /&gt;&lt;/p&gt;
-&lt;h3 id=&quot;2.-buttons-not-looking-like-buttons&quot;&gt;2. Buttons Not Looking Like Buttons&lt;/h3&gt;
-&lt;p&gt;It’s difficult for users to actually &lt;strong&gt;do&lt;/strong&gt; the action you want them to perform when your buttons look like text. I’m not exactly sure why designers have pivoted towards removing all stylings that regular users have come to expect from button elements, but it’s plaguing far too many websites.&lt;/p&gt;
-&lt;p&gt;Buttons should be eye-catching, colorful, fun to interact with, and support all proper CSS states. Clients and agencies will tend to push for “cleaner” buttons - which most of the time refers to setting the buttons as simple underlined text items. Do not be brainwashed into thinking this is better:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/buttons.webp&quot; alt=&quot;Button Comparsion&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;You tell me what looks more interactive&amp;#8230;&lt;/p&gt;
-&lt;h3 id=&quot;3.-overriding-form-elements&quot;&gt;3. Overriding Form Elements&lt;/h3&gt;
-&lt;p&gt;Designers should rarely rebuild the browser structure for web form elements in their projects. I should clarify - I’m not suggesting that you use the barebones default styles provided by the browser, I’m saying that you shouldn’t hide the elements themselves just to replace them with mimicking components. I find this practice is becoming more and more noticeable with the growing popularity of component-based frameworks. Don’t fall into these bad design habits.&lt;/p&gt;
-&lt;p&gt;For example, you should leave the following &lt;code&gt;select&lt;/code&gt; element as is:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;select&amp;#62;
- &amp;#60;option&amp;#62;
-&amp;#60;&amp;#47;select&amp;#62;
+&lt;p&gt;That&amp;#8217;s it! Feel free to play with the demo some more at the top of the post, or check out the &lt;a href=&quot;https://codepen.io/bradleytaunt/pen/rXWEpy&quot;&gt;CodePen source directly&lt;/a&gt;.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/dynamic-checkboxes"/>
+ <id>https://btxx.org/posts/dynamic-checkboxes</id>
+ <updated>2019-07-30T10:00:00Z</updated>
+ <published>2019-07-30T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Easy Custom Radio Inputs</title>
+ <content type="html">&lt;h1 id=&quot;easy-custom-radio-inputs&quot;&gt;Easy Custom Radio Inputs&lt;/h1&gt;
+&lt;p&gt;2019-01-21&lt;/p&gt;
+&lt;p&gt;Default radio inputs are notoriously horrible looking and are something designers tend to over-think when trying to customize them. Let&amp;#8217;s walk through how to create custom radio buttons with &lt;em&gt;pure CSS&lt;/em&gt;, while still preserving performance and accessibility.&lt;/p&gt;
+&lt;h2 id=&quot;the-final-product&quot;&gt;The Final Product&lt;/h2&gt;
+&lt;p&gt;This is what we will be designing:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/custom-radio-inputs.png&quot; alt=&quot;Custom radio inputs&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/oNjwMyX&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;hr/&gt;
+&lt;h2 id=&quot;the-bones-of-our-radio-inputs-html&quot;&gt;The bones of our radio inputs (HTML)&lt;/h2&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-1&quot; type=&quot;radio&quot;&amp;#62;
+&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-1&quot;&amp;#62;&amp;#60;span&amp;#62;I am very satisfied&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
+
+&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-2&quot; type=&quot;radio&quot;&amp;#62;
+&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-2&quot;&amp;#62;&amp;#60;span&amp;#62;I am satisfied&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
+
+&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-3&quot; type=&quot;radio&quot;&amp;#62;
+&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-3&quot;&amp;#62;&amp;#60;span&amp;#62;I am indifferent&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
+
+&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-4&quot; type=&quot;radio&quot;&amp;#62;
+&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-4&quot;&amp;#62;&amp;#60;span&amp;#62;I am unsatisfied&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
+
+&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-5&quot; type=&quot;radio&quot;&amp;#62;
+&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-5&quot;&amp;#62;&amp;#60;span&amp;#62;I am very unsatisfied&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Instead of doing something like this:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;select style=&quot;display:none;&quot;&amp;#62;&amp;#60;&amp;#47;select&amp;#62;
-&amp;#60;div class=&quot;custom-select-container&quot;&amp;#62;
- &amp;#60;span&amp;#62;Option&amp;#60;&amp;#47;span&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
+&lt;p&gt;I know it looks like a lot is going on here, but it&amp;#8217;s pretty straightforward so let&amp;#8217;s unpackage line by line:&lt;/p&gt;
+&lt;h3 id=&quot;radio-inputs&quot;&gt;Radio inputs&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-1&quot; type=&quot;radio&quot;&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;There are cleaner ways to customize web forms with straightforward CSS. Have a look at my own open source project &lt;a href=&quot;https://normform.netlify.com/&quot;&gt;Normform&lt;/a&gt; if you’d prefer to just use a lightweight plugin to do this for you. (Shameless plug, I know)&lt;/p&gt;
-&lt;h2 id=&quot;simple-can-be-good&quot;&gt;Simple Can Be Good&lt;/h2&gt;
-&lt;p&gt;Having a boring or lazy design thought-process doesn’t mean you should develop ugly UI for the sake of “simple”. Too often that word is associated with “minimalism” or “less content” and that is only half true.&lt;/p&gt;
-&lt;p&gt;The &lt;em&gt;experience&lt;/em&gt; is what needs to be simple for your users - the UI itself should still be beautiful.&lt;/p&gt;</content>
- <link href="https://btxx.org/simple-does-not-mean-ugly"/>
- <id>https://btxx.org/simple-does-not-mean-ugly</id>
- <updated>2019-03-26T10:00:00Z</updated>
- <published>2019-03-26T10:00:00Z</published>
- </entry>
- <entry>
- <title>Simple Accessibility</title>
- <content type="html">&lt;h1 id=&quot;simple-accessibility&quot;&gt;Simple Accessibility&lt;/h1&gt;
-&lt;p&gt;2018-09-07&lt;/p&gt;
-&lt;p&gt;Implementing proper accessibility practices can seem a little daunting at first, but there are a few basic standards you can introduce into your project work-flow that are fairly straightforward:&lt;/p&gt;
-&lt;h2 id=&quot;basic-design&quot;&gt;Basic design&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Test that your project has the proper contrast color settings between type, backgrounds, icons etc.&lt;/li&gt;
-&lt;li&gt;Only use &amp;#8220;fancy&amp;#8221; grid-ordering for minor layout design - avoid rearranging important content via CSS&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;content&quot;&gt;Content&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Use proper HTML structures (aside, header, main, footer elements as needed)&lt;/li&gt;
-&lt;li&gt;Make use of the &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-label_attribute&quot;&gt;aria-label attribute&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Ensure your website&amp;#47;app can be navigated completely (and properly) with only a keyboard&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;images&quot;&gt;Images&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Avoid using CSS backgrounds for content images (should only be used for patterns, layout design etc.)&lt;/li&gt;
-&lt;li&gt;Ensure proper &lt;code&gt;alt&lt;/code&gt; attributes are provided on all images&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;It isn&amp;#8217;t much - but follow these basics and you&amp;#8217;ll be one step closer to providing better accessibility to your users.&lt;/p&gt;</content>
- <link href="https://btxx.org/simple-accessibility"/>
- <id>https://btxx.org/simple-accessibility</id>
- <updated>2018-09-07T10:00:00Z</updated>
- <published>2018-09-07T10:00:00Z</published>
- </entry>
- <entry>
- <title>Shiny, Animated CSS Buttons</title>
- <content type="html">&lt;h1 id=&quot;shiny-animated-css-buttons&quot;&gt;Shiny, Animated CSS Buttons&lt;/h1&gt;
-&lt;p&gt;2021-04-27&lt;/p&gt;
-&lt;p&gt;Everyone can appreciate fancy, animated buttons - but often times they come with a performance cost: &lt;em&gt;JavaScript&lt;/em&gt;. Luckily for us, we can create our very own shiny, animated buttons with pure CSS.&lt;/p&gt;
-&lt;h2 id=&quot;the-demo&quot;&gt;The Demo&lt;/h2&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/shiny-buttons.png&quot; alt=&quot;Four buttons that shine when hovered&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/oNBQevj&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;Nothing fancy going on here, just a set of &lt;code&gt;ahref&lt;/code&gt; elements with specific &lt;code&gt;button&lt;/code&gt; classes added:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;a href=&quot;#&quot; class=&quot;button green&quot;&amp;#62;&amp;#60;span&amp;#62;Green Button&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
-&amp;#60;a href=&quot;#&quot; class=&quot;button blue&quot;&amp;#62;&amp;#60;span&amp;#62;Blue Button&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
-&amp;#60;a href=&quot;#&quot; class=&quot;button orange&quot;&amp;#62;&amp;#60;span&amp;#62;Orange Button&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
-&amp;#60;a href=&quot;#&quot; class=&quot;button purple&quot;&amp;#62;&amp;#60;span&amp;#62;Purple Button&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+&lt;p&gt;This is the default &lt;code&gt;radio&lt;/code&gt; input. We give it:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;a &lt;code&gt;name&lt;/code&gt; (inputs with a shared &lt;code&gt;name&lt;/code&gt; are grouped together)&lt;/li&gt;
+&lt;li&gt;an &lt;code&gt;id&lt;/code&gt; (so our label can target this input)&lt;/li&gt;
+&lt;li&gt;a &lt;code&gt;class&lt;/code&gt; (so we can style it later)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: be sure to have a unique &lt;code&gt;id&lt;/code&gt; for each input so your labels don&amp;#8217;t end up connected to multiple radios. In this demo we are simply incrementing them by one.&lt;/p&gt;
+&lt;h3 id=&quot;labels&quot;&gt;Labels&lt;/h3&gt;
+&lt;p&gt;Adding the labels is fairly straightforward, we just include the corresponding input&amp;#8217;s &lt;code&gt;id&lt;/code&gt; in the label&amp;#8217;s &lt;code&gt;for&lt;/code&gt; attribute. The label content is wrapped in a &lt;code&gt;span&lt;/code&gt; - which I will explain the reasoning for later.&lt;/p&gt;
+&lt;p&gt;For styling purposes we also add the &lt;code&gt;radio-label&lt;/code&gt; class.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-1&quot;&amp;#62;&amp;#60;span&amp;#62;I am very satisfied&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;First we set the default base styling for all the buttons. We also place the inner text into &lt;code&gt;span&lt;/code&gt; elements (I will explain why in a little bit):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.button {
+&lt;p&gt;This is looking pretty terrible - but that&amp;#8217;s nothing some good ol&amp;#8217; CSS can&amp;#8217;t fix!&lt;/p&gt;
+&lt;h2 id=&quot;the-flesh-of-our-radio-inputs-css&quot;&gt;The flesh of our radio inputs (CSS)&lt;/h2&gt;
+&lt;p&gt;First we give some basic styling to our &lt;code&gt;label&lt;/code&gt; and &lt;code&gt;input&lt;/code&gt; classes (along with hover states). The &lt;code&gt;radio&lt;/code&gt; element is actually hidden from view, but by using the &lt;code&gt;visibility&lt;/code&gt; attribute we still keep it accessible for screen-readers.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.radio-label {
background: white;
- border: 1px solid #a5b1c2;
- border-radius: 6px;
- box-shadow: 0 4px 8px rgba(0,0,0,0.1);
- color: #111111;
+ border: 1px solid #eee;
+ border-radius: 5px;
+ box-shadow: 0 2px 4px rgba(0,0,0,0.05);
+ cursor: pointer;
display: inline-block;
- margin: 1rem auto;
- min-width: 180px;
- overflow: hidden;
- padding: 15px 30px;
+ font-weight: 600;
+ margin: 0 auto 10px;
+ &amp;#47;* This 65px padding makes room for the custom input *&amp;#47;
+ padding: 20px 20px 20px 65px;
position: relative;
- text-align: center;
- text-decoration: none;
- transition: .3s ease-in-out all;
+ transition: .3s ease all;
+ width: 100%;
}
-.button span {
- position: relative;
- z-index: 2;
+.radio-label:hover {
+ box-shadow: 0 4px 8px rgba(0,0,0,0.05);
+}
+.radio-btn {
+ position: absolute;
+ visibility: hidden;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now we need to create our &lt;em&gt;shiny&lt;/em&gt; element that will pass across the button on &lt;code&gt;hover&lt;/code&gt; or &lt;code&gt;focus&lt;/code&gt;. For this object we will use the &lt;code&gt;before&lt;/code&gt; pseudo element:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.button:before {
- background: linear-gradient(transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
+&lt;p&gt;Remember that &lt;code&gt;span&lt;/code&gt; element inside the label? We set it&amp;#8217;s &lt;code&gt;user-select&lt;/code&gt; property to &lt;code&gt;none&lt;/code&gt; so we avoid any possible issue with the user selecting the text on-click:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.radio-label span {
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ user-select: none;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Next we include the default empty selection element (to mimic the original radio input) via a pseudo element:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.radio-label:before {
+ background: #eee;
+ border-radius: 50%;
content:&amp;#39;&amp;#39;;
- height: 200%;
+ height: 30px;
+ left: 20px;
position: absolute;
- right: calc(100% + 20px);
- top: -55%;
- transform: rotate(-70deg);
- transition: .6s ease-in-out right;
- width: 80px;
- z-index: 0;
+ &amp;#47;* Half the height of it&amp;#39;s parent minus half of it&amp;#39;s own height *&amp;#47;
+ top: calc(50% - 15px);
+ transition: .3s ease background-color;
+ width: 30px;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next, we tell the &lt;code&gt;before&lt;/code&gt; element to swipe across the main &lt;code&gt;.button&lt;/code&gt; parent element when the user hovers or focuses on it. Remember placing our inner content into a &lt;code&gt;span&lt;/code&gt; element? That insures that our shiny&amp;#47;swipe element doesn&amp;#8217;t position itself &lt;em&gt;over&lt;/em&gt; the text, but instead flows under it:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.button:hover:before {
- right: -100%;
+&lt;h2 id=&quot;a-few-final-steps&quot;&gt;A Few Final Steps&lt;/h2&gt;
+&lt;p&gt;The final step is adding the custom styling for when an &lt;code&gt;input&lt;/code&gt; item is selected (&lt;code&gt;:checked&lt;/code&gt;).&lt;/p&gt;
+&lt;p&gt;You will notice the use of a &lt;code&gt;base64&lt;/code&gt; element for the custom checkmark - feel free to subsitute this for an actual image or none at all (this is just my personal design preference).&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.radio-btn:checked + .radio-label {
+ background: #ECF5FF;
+ border-color: #4A90E2;
}
-&amp;#47;* Extra visual styling for buttons on hover - optional *&amp;#47;
-.button:hover, button:focus {
- box-shadow: 0 8px 12px rgba(0,0,0,0.1), inset 0 10px 30px rgba(255,255,255,0.3), inset 0 2px 2px rgba(255,255,255,0.2);
- color: white;
+.radio-btn:checked + .radio-label:before {
+ background-color: #4A90E2;
+ background-image: url(&amp;#39;data:image&amp;#47;svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIyNiIgaGVpZ2h0PSIyMCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIyLjAyOTY4IC00MC4wOTAzIDI2IDIwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj48IS0tR2VuZXJhdGVkIGJ5IElKU1ZHIChodHRwczovL2dpdGh1Yi5jb20vaWNvbmphci9JSlNWRyktLT48cGF0aCBkPSJNMjcuOTc0MywtMzYuMTI3MmMwLDAuNDQ2NDI4IC0wLjE1NjI1LDAuODI1ODkzIC0wLjQ2ODc1LDEuMTM4MzlsLTEyLjEyMDUsMTIuMTIwNWwtMi4yNzY3OSwyLjI3Njc5Yy0wLjMxMjUsMC4zMTI1IC0wLjY5MTk2NCwwLjQ2ODc1IC0xLjEzODM5LDAuNDY4NzVjLTAuNDQ2NDI4LDAgLTAuODI1ODkzLC0wLjE1NjI1IC0xLjEzODM5LC0wLjQ2ODc1bC0yLjI3Njc5LC0yLjI3Njc5bC02LjA2MDI3LC02LjA2MDI3Yy0wLjMxMjUsLTAuMzEyNSAtMC40Njg3NSwtMC42OTE5NjUgLTAuNDY4NzUsLTEuMTM4MzljMCwtMC40NDY0MjkgMC4xNTYyNSwtMC44MjU4OTMgMC40Njg3NSwtMS4xMzgzOWwyLjI3Njc5LC0yLjI3Njc5YzAuMzEyNSwtMC4zMTI1IDAuNjkxOTY1LC0wLjQ2ODc1IDEuMTM4MzksLTAuNDY4NzVjMC40NDY0MjksMCAwLjgyNTg5MywwLjE1NjI1IDEuMTM4MzksMC40Njg3NWw0LjkyMTg4LDQuOTM4NjJsMTAuOTgyMSwtMTAuOTk4OWMwLjMxMjUsLTAuMzEyNSAwLjY5MTk2NCwtMC40Njg3NSAxLjEzODM5LC0wLjQ2ODc1YzAuNDQ2NDI4LDAgMC44MjU4OTMsMC4xNTYyNSAxLjEzODM5LDAuNDY4NzVsMi4yNzY3OCwyLjI3Njc5YzAuMzEyNSwwLjMxMjUgMC40Njg3NSwwLjY5MTk2NCAwLjQ2ODc1LDEuMTM4MzlaIiB0cmFuc2Zvcm09InNjYWxlKDEuMDAxOTgpIiBmaWxsPSIjZmZmIj48L3BhdGg+PC9zdmc+&amp;#39;);
+ background-repeat: no-repeat;
+ background-position: center;
+ background-size: 15px;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;All that&amp;#8217;s left is adding some visual flare to each individual button - in this case background-color and border-color:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.button.green:hover, button.green:focus { background: #20bf6b; border-color: #20bf6b; }
-.button.blue:hover, button.blue:focus { background: #0984e3; border-color: #0984e3; }
-.button.orange:hover, button.orange:focus { background: #ff793f; border-color: #ff793f; }
-.button.purple:hover, button.purple:focus { background: #6c5ce7; border-color: #6c5ce7; }
+&lt;p&gt;&lt;strong&gt;And that&amp;#8217;s it.&lt;/strong&gt;&lt;/p&gt;
+&lt;p&gt;For easier reference the entire CSS file can be found below:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.radio-label {
+ background: white;
+ border: 1px solid #eee;
+ border-radius: 5px;
+ box-shadow: 0 2px 4px rgba(0,0,0,0.05);
+ cursor: pointer;
+ display: inline-block;
+ font-weight: 600;
+ margin: 0 auto 10px;
+ padding: 20px 20px 20px 65px;
+ position: relative;
+ transition: .3s ease all;
+ width: 100%;
+}
+.radio-label:hover {
+ box-shadow: 0 4px 8px rgba(0,0,0,0.05);
+}
+.radio-label:before {
+ background: #eee;
+ border-radius: 50%;
+ content:&amp;#39;&amp;#39;;
+ height: 30px;
+ left: 20px;
+ position: absolute;
+ top: calc(50% - 15px);
+ transition: .3s ease background-color;
+ width: 30px;
+}
+.radio-label span {
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ user-select: none;
+}
+.radio-btn {
+ position: absolute;
+ visibility: hidden;
+}
+.radio-btn:checked + .radio-label {
+ background: #ECF5FF;
+ border-color: #4A90E2;
+}
+.radio-btn:checked + .radio-label:before {
+ background-color: #4A90E2;
+ background-image: url(&amp;#39;data:image&amp;#47;svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIyNiIgaGVpZ2h0PSIyMCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIyLjAyOTY4IC00MC4wOTAzIDI2IDIwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj48IS0tR2VuZXJhdGVkIGJ5IElKU1ZHIChodHRwczovL2dpdGh1Yi5jb20vaWNvbmphci9JSlNWRyktLT48cGF0aCBkPSJNMjcuOTc0MywtMzYuMTI3MmMwLDAuNDQ2NDI4IC0wLjE1NjI1LDAuODI1ODkzIC0wLjQ2ODc1LDEuMTM4MzlsLTEyLjEyMDUsMTIuMTIwNWwtMi4yNzY3OSwyLjI3Njc5Yy0wLjMxMjUsMC4zMTI1IC0wLjY5MTk2NCwwLjQ2ODc1IC0xLjEzODM5LDAuNDY4NzVjLTAuNDQ2NDI4LDAgLTAuODI1ODkzLC0wLjE1NjI1IC0xLjEzODM5LC0wLjQ2ODc1bC0yLjI3Njc5LC0yLjI3Njc5bC02LjA2MDI3LC02LjA2MDI3Yy0wLjMxMjUsLTAuMzEyNSAtMC40Njg3NSwtMC42OTE5NjUgLTAuNDY4NzUsLTEuMTM4MzljMCwtMC40NDY0MjkgMC4xNTYyNSwtMC44MjU4OTMgMC40Njg3NSwtMS4xMzgzOWwyLjI3Njc5LC0yLjI3Njc5YzAuMzEyNSwtMC4zMTI1IDAuNjkxOTY1LC0wLjQ2ODc1IDEuMTM4MzksLTAuNDY4NzVjMC40NDY0MjksMCAwLjgyNTg5MywwLjE1NjI1IDEuMTM4MzksMC40Njg3NWw0LjkyMTg4LDQuOTM4NjJsMTAuOTgyMSwtMTAuOTk4OWMwLjMxMjUsLTAuMzEyNSAwLjY5MTk2NCwtMC40Njg3NSAxLjEzODM5LC0wLjQ2ODc1YzAuNDQ2NDI4LDAgMC44MjU4OTMsMC4xNTYyNSAxLjEzODM5LDAuNDY4NzVsMi4yNzY3OCwyLjI3Njc5YzAuMzEyNSwwLjMxMjUgMC40Njg3NSwwLjY5MTk2NCAwLjQ2ODc1LDEuMTM4MzlaIiB0cmFuc2Zvcm09InNjYWxlKDEuMDAxOTgpIiBmaWxsPSIjZmZmIj48L3BhdGg+PC9zdmc+&amp;#39;);
+ background-repeat: no-repeat;
+ background-position: center;
+ background-size: 15px;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;browser-support&quot;&gt;Browser Support&lt;/h2&gt;
-&lt;p&gt;These buttons work across all browsers flawlessly. See the details &lt;a href=&quot;https://caniuse.com/css-gencontent&quot;&gt;on the caniuse report itself&lt;/a&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;the-live-codepen&quot;&gt;The Live CodePen&lt;/h2&gt;
-&lt;p&gt;You can find the live demo embedded at the top of this post, or &lt;a href=&quot;https://codepen.io/bradleytaunt/pen/oNBQevj&quot;&gt;directly on CodePen here&lt;/a&gt;.&lt;/p&gt;</content>
- <link href="https://btxx.org/shiny-css-buttons"/>
- <id>https://btxx.org/shiny-css-buttons</id>
- <updated>2021-04-27T10:00:00Z</updated>
- <published>2021-04-27T10:00:00Z</published>
- </entry>
- <entry>
- <title>This Site is Now a Shinobi Website</title>
- <content type="html">&lt;h1 id=&quot;this-site-is-now-a-shinobi-website&quot;&gt;This Site is Now a Shinobi Website&lt;/h1&gt;
-&lt;p&gt;2022-05-13&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Update 2023&lt;/strong&gt;: this website is now built with &lt;a href=&quot;https://barf.bt.ht&quot;&gt;barf&lt;/a&gt;&lt;/p&gt;
&lt;hr/&gt;
-&lt;p&gt;My personal website is now an RSS-focused blog, generated from a collection of plain text files.&lt;/p&gt;
-&lt;p&gt;But before we get into greater details about the switch, let me first introduce the concept of a &amp;#8220;shinobi website&amp;#8221;.&lt;/p&gt;
-&lt;h2 id=&quot;the-shinobi-website-project&quot;&gt;The Shinobi Website Project&lt;/h2&gt;
-&lt;p&gt;Instead of repeating myself in this post, feel free to read up about the project at the official site:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://shinobi.bt.ht&quot;&gt;https:&amp;#47;&amp;#47;shinobi.bt.ht&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;To summarize: by using a simple &lt;code&gt;shell&lt;/code&gt; script I&amp;#8217;m able to render all my plain text files (which is now how I solely write my articles) into a structured RSS 2.0 &lt;code&gt;xml&lt;/code&gt; file. Subscribers can now consume my posts directly in their RSS reader of choice without the need to directly visit the article&amp;#8217;s URL.[^0]&lt;/p&gt;
-&lt;h2 id=&quot;why-the-change&quot;&gt;Why the Change?&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;m a hardcore minimalist at heart and have a tendency to make my own personal projects &lt;em&gt;leaner&lt;/em&gt; all the time. I also have been trying my best to find the most refined writing workflow to keep myself posting consistently (and hopefully keeping the quality high). My first iteration towards this step was switching over to hand-coding everything via HTML &amp;#38; CSS[^1]. That worked well - for a very brief time.&lt;/p&gt;
-&lt;p&gt;After recently launching the Shinobi project, I kept toying with the idea of switching my personal website over to use the same format. There was a heavy internal debate about ditching HTML in favour of plain text. What kind of impact would this have on both my site and audience? Would people be pissed about yet &lt;em&gt;another&lt;/em&gt; radical change?&lt;/p&gt;
-&lt;p&gt;After sleeping on it for a couple nights, I decide to say screw it. This is my personal website and it should ultimately reflect who I am and what I prefer. Dwelling too long on the opinion of others (as much as I respect any of you kind enough to follow along) can lead to decisions that negatively impact ones own well being.&lt;/p&gt;
-&lt;p&gt;So here we are. Blogging in plain text.&lt;/p&gt;
-&lt;h2 id=&quot;avoiding-link-rot&quot;&gt;Avoiding Link-Rot&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve manually added this blog post to my original &lt;code&gt;feed.xml&lt;/code&gt;, in order to help inform those of you following that feed of this change. But this will be the last entry of that feed.&lt;/p&gt;
-&lt;p&gt;If you decide not to re-sub, I completely understand and thank you for your time! Those of you choosing to still follow along: welcome aboard a new adventure!&lt;/p&gt;
-&lt;p&gt;As for the older HTML-based articles, no worries. They will remain on this site under the standard &lt;code&gt;blog&lt;/code&gt; directory so that old links don&amp;#8217;t break or cause conflicts. You can find that directory here:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://tdarb.org/feeds/posts.xml&quot;&gt;https:&amp;#47;&amp;#47;tdarb.org&amp;#47;feeds&amp;#47;posts.xml&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;tutorials-and-demos&quot;&gt;Tutorials and Demos&lt;/h2&gt;
-&lt;p&gt;I will still be writing up detailed tutorials and interactive demos going forward - no need to worry. My plan is to link directly to a collaborative coding site like CodePen, etc. I haven&amp;#8217;t decided on the best option yet (want to keep things as easy for my readers as possible) so only time will tell what my decision will be.&lt;/p&gt;
-&lt;p&gt;Feel free to comment below if you have any suggestions! Preferably one that respects user privacy and advocates for a more open web.&lt;/p&gt;
-&lt;h2 id=&quot;speaking-of-comments&quot;&gt;Speaking of Comments&amp;#8230;&lt;/h2&gt;
-&lt;p&gt;Since the old commenting system[^2] required me to manually add each comment individually, I assumed I would just do the same here. Then I got a hack-y idea. What if I used a mailing list linked through this website&amp;#8217;s sourcehut project?&lt;/p&gt;
-&lt;p&gt;It might not be the most user friendly or sustainable but I think it could be an interesting experiment at the very least!&lt;/p&gt;
-&lt;p&gt;Now each new article will have a link (which I will generate manually) that users can email directly to in order to share their comments. I have no idea how spam will work with this concept. This whole idea could blow up in my face. Only time will tell.&lt;/p&gt;
-&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
-&lt;p&gt;This workflow is clean and simple. It allows me to open a blank text file and instantly start writing. Once I&amp;#8217;m happy with it, I run a simple shell command to update the RSS feed and sync it with my web server. Local testing is dead simple too since everything is set as &lt;code&gt;.txt&lt;/code&gt;.&lt;/p&gt;
-&lt;p&gt;Some may like the concept of reading my new articles in their RSS reader, others might hate it. I&amp;#8217;ve learned over the years that you can&amp;#8217;t please everyone.&lt;/p&gt;
-&lt;p&gt;Thanks for taking the time to read my jumbled thoughts.&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Users can &lt;em&gt;of course&lt;/em&gt; still visit the individual article &lt;code&gt;.txt&lt;/code&gt; files in their browser, if they so wish.&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://tdarb.org/blog/my-static-blog-publishing-setup.html&quot;&gt;https:&amp;#47;&amp;#47;tdarb.org&amp;#47;blog&amp;#47;my-static-blog-publishing-setup.html&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://tdarb.org/blog/poormans-comment-system.html&quot;&gt;https:&amp;#47;&amp;#47;tdarb.org&amp;#47;blog&amp;#47;poormans-comment-system.html&lt;/a&gt;&lt;/li&gt;
-&lt;/ol&gt;</content>
- <link href="https://btxx.org/shinobi-website"/>
- <id>https://btxx.org/shinobi-website</id>
- <updated>2022-05-13T10:00:00Z</updated>
- <published>2022-05-13T10:00:00Z</published>
- </entry>
- <entry>
- <title>Sharing The Things We Use</title>
- <content type="html">&lt;h1 id=&quot;sharing-the-things-we-use&quot;&gt;Sharing The Things We Use&lt;/h1&gt;
-&lt;p&gt;2021-07-24&lt;/p&gt;
-&lt;p&gt;I always love stumbling across personal websites that include some form of a &amp;#8220;uses&amp;#8221; page. A place where the author lists out all the tools they use on a regular basis - whether it be hardware, software or something else entirely. It allows readers to get a slightly more personal peek into the daily work-life of that author and maybe even provides better context for &lt;em&gt;how&lt;/em&gt; they work.&lt;/p&gt;
-&lt;p&gt;Since I realized how much I enjoy reading other people&amp;#8217;s &lt;em&gt;uses&lt;/em&gt; pages, I&amp;#8217;ve decided to finally publish my own! My list of hardware and software is fairly boring and predictable for a designer&amp;#47;developer - but sharing is caring! My hope is that even one personal out in the great-wide web can find something useful (pun intended!) or least inspiring about my personal setup.&lt;/p&gt;
-&lt;p&gt;Fell free to check it out: &lt;a href=&quot;/uses&quot;&gt;The Things I Use&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;PS. I plan to add a desktop picture of my complete setup once I find the time!&lt;/em&gt;&lt;/p&gt;</content>
- <link href="https://btxx.org/sharing-the-things-we-use"/>
- <id>https://btxx.org/sharing-the-things-we-use</id>
- <updated>2021-07-24T10:00:00Z</updated>
- <published>2021-07-24T10:00:00Z</published>
- </entry>
- <entry>
- <title>Blogging for 7 Years</title>
- <content type="html">&lt;h1 id=&quot;blogging-for-7-years&quot;&gt;Blogging for 7 Years&lt;/h1&gt;
-&lt;p&gt;2023-06-24&lt;/p&gt;
-&lt;p&gt;My &lt;a href=&quot;/aui&quot;&gt;first public article&lt;/a&gt; was posted on June 28th 2016. That was &lt;em&gt;seven&lt;/em&gt; years ago.&lt;/p&gt;
-&lt;p&gt;In that time, quite a lot has changed in my life both personally and professionally. So, I figured it would be interesting to reflect on these years and document it for my own personal records. My hope is that this is something I could start doing every 5 or 10 years (if I can keep going that long!). This way, my blog also serves as a &amp;#8220;time capsule&amp;#8221; or museum of the past&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;fun-facts&quot;&gt;Fun Facts&lt;/h2&gt;
-&lt;p&gt;&lt;strong&gt;This Blog&lt;/strong&gt;:&lt;/p&gt;
-&lt;p&gt;I originally started blogging on &lt;code&gt;bradleytaunt.com&lt;/code&gt; using WordPress, but since then I have changed both my main domain and blog infrastructure multiple times. At a glance I have used:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Jekyll&lt;/li&gt;
-&lt;li&gt;Hugo&lt;/li&gt;
-&lt;li&gt;Blot&lt;/li&gt;
-&lt;li&gt;Static HTML&amp;#47;CSS&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://phpetite.bt.ht&quot;&gt;PHPetite&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://shinobi.bt.ht&quot;&gt;Shinobi&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://pblog.bt.ht&quot;&gt;pblog&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://barf.bt.ht&quot;&gt;barf&lt;/a&gt; &lt;em&gt;Currently using!&lt;/em&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;&lt;strong&gt;Personal:&lt;/strong&gt;&lt;/p&gt;
-&lt;p&gt;As with anyone over time, the personal side of my life has seen the biggest &lt;em&gt;updates&lt;/em&gt;:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Married the love of my life (after knowing each other for ~14 years!)&lt;/li&gt;
-&lt;li&gt;Moved out into rural Ontario for some peace and quiet&lt;/li&gt;
-&lt;li&gt;Had three wonderful kids with said wife (two boys and a girl)&lt;/li&gt;
-&lt;li&gt;Started noticing grey sprinkles in my stubble (I guess I can officially call myself a &amp;#8220;grey beard&amp;#8221;?)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;&lt;strong&gt;Professionally:&lt;/strong&gt;&lt;/p&gt;
+&lt;h2 id=&quot;but-wait---we-can-get-even-fancier&quot;&gt;But wait - we can get even fancier!&lt;/h2&gt;
+&lt;p&gt;Since this demo is based off a survey-type questionaire, wouldn&amp;#8217;t it be interesting to give the different selectable options their own styling based on their context? Take a look at the further customized version below:&lt;/p&gt;
+&lt;p&gt;We can do so by adding &lt;code&gt;positive&lt;/code&gt;, &lt;code&gt;neutral&lt;/code&gt; and &lt;code&gt;negative&lt;/code&gt; class names to the radio inputs with their own respective properties:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.radio-btn.positive:checked + .radio-label {
+ background: #EAFFF6;
+ border-color: #32B67A;
+}
+.radio-btn.positive:checked + .radio-label:before {
+ background-color: #32B67A;
+}
+.radio-btn.neutral:checked + .radio-label:before {
+ background-image: url(&amp;#39;data:image&amp;#47;svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAtMTUgMzAgOC41NzE0MyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PCEtLUdlbmVyYXRlZCBieSBJSlNWRyAoaHR0cHM6Ly9naXRodWIuY29tL2ljb25qYXIvSUpTVkcpLS0+PHBhdGggZD0iTTMwLC0xMi4zMjE0djMuMjE0MjljMCwwLjczNjYwNyAtMC4yNjIyNzcsMS4zNjcxOSAtMC43ODY4MywxLjg5MTc0Yy0wLjUyNDU1NCwwLjUyNDU1NCAtMS4xNTUxMywwLjc4NjgzMSAtMS44OTE3NCwwLjc4NjgzMWgtMjQuNjQyOWMtMC43MzY2MDcsMCAtMS4zNjcxOSwtMC4yNjIyNzcgLTEuODkxNzQsLTAuNzg2ODMxYy0wLjUyNDU1MywtMC41MjQ1NTMgLTAuNzg2ODMsLTEuMTU1MTMgLTAuNzg2ODMsLTEuODkxNzR2LTMuMjE0MjljMCwtMC43MzY2MDcgMC4yNjIyNzcsLTEuMzY3MTkgMC43ODY4MywtMS44OTE3NGMwLjUyNDU1NCwtMC41MjQ1NTMgMS4xNTUxMywtMC43ODY4MyAxLjg5MTc0LC0wLjc4NjgzaDI0LjY0MjljMC43MzY2MDcsMCAxLjM2NzE5LDAuMjYyMjc3IDEuODkxNzQsMC43ODY4M2MwLjUyNDU1MywwLjUyNDU1NCAwLjc4NjgzLDEuMTU1MTMgMC43ODY4MywxLjg5MTc0WiIgZmlsbD0iI2ZmZiI+PC9wYXRoPjwvc3ZnPg==&amp;#39;);
+}
+.radio-btn.negative:checked + .radio-label {
+ background: #FFF2F2;
+ border-color: #E75153;
+}
+.radio-btn.negative:checked + .radio-label:before {
+ background-color: #E75153;
+ background-image: url(&amp;#39;data:image&amp;#47;svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIxLjg1MTg1IC0zOS42OTcgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjwhLS1HZW5lcmF0ZWQgYnkgSUpTVkcgKGh0dHBzOi8vZ2l0aHViLmNvbS9pY29uamFyL0lKU1ZHKS0tPjxwYXRoIGQ9Ik0yMS43Mjk5LC0yMy40NzFjMCwwLjQ0NjQyOCAtMC4xNTYyNSwwLjgyNTg5MyAtMC40Njg3NSwxLjEzODM5bC0yLjI3Njc5LDIuMjc2NzljLTAuMzEyNSwwLjMxMjUgLTAuNjkxOTY0LDAuNDY4NzUgLTEuMTM4MzksMC40Njg3NWMtMC40NDY0MjgsMCAtMC44MjU4OTMsLTAuMTU2MjUgLTEuMTM4MzksLTAuNDY4NzVsLTQuOTIxODcsLTQuOTIxODhsLTQuOTIxODgsNC45MjE4OGMtMC4zMTI1LDAuMzEyNSAtMC42OTE5NjQsMC40Njg3NSAtMS4xMzgzOSwwLjQ2ODc1Yy0wLjQ0NjQyOCwwIC0wLjgyNTg5MiwtMC4xNTYyNSAtMS4xMzgzOSwtMC40Njg3NWwtMi4yNzY3OSwtMi4yNzY3OWMtMC4zMTI1LC0wLjMxMjUgLTAuNDY4NzUsLTAuNjkxOTY1IC0wLjQ2ODc1LC0xLjEzODM5YzAsLTAuNDQ2NDI5IDAuMTU2MjUsLTAuODI1ODkzIDAuNDY4NzUsLTEuMTM4MzlsNC45MjE4OCwtNC45MjE4OGwtNC45MjE4OCwtNC45MjE4OGMtMC4zMTI1LC0wLjMxMjUgLTAuNDY4NzUsLTAuNjkxOTY0IC0wLjQ2ODc1LC0xLjEzODM5YzAsLTAuNDQ2NDI4IDAuMTU2MjUsLTAuODI1ODkzIDAuNDY4NzUsLTEuMTM4MzlsMi4yNzY3OSwtMi4yNzY3OGMwLjMxMjUsLTAuMzEyNSAwLjY5MTk2NCwtMC40Njg3NSAxLjEzODM5LC0wLjQ2ODc1YzAuNDQ2NDI5LDAgMC44MjU4OTMsMC4xNTYyNSAxLjEzODM5LDAuNDY4NzVsNC45MjE4OCw0LjkyMTg4bDQuOTIxODcsLTQuOTIxODhjMC4zMTI1LC0wLjMxMjUgMC42OTE5NjUsLTAuNDY4NzUgMS4xMzgzOSwtMC40Njg3NWMwLjQ0NjQyOSwwIDAuODI1ODkzLDAuMTU2MjUgMS4xMzgzOSwwLjQ2ODc1bDIuMjc2NzksMi4yNzY3OGMwLjMxMjUsMC4zMTI1IDAuNDY4NzUsMC42OTE5NjUgMC40Njg3NSwxLjEzODM5YzAsMC40NDY0MjkgLTAuMTU2MjUsMC44MjU4OTMgLTAuNDY4NzUsMS4xMzgzOWwtNC45MjE4OCw0LjkyMTg4bDQuOTIxODgsNC45MjE4OGMwLjMxMjUsMC4zMTI1IDAuNDY4NzUsMC42OTE5NjQgMC40Njg3NSwxLjEzODM5WiIgdHJhbnNmb3JtPSJzY2FsZSgxLjAwNTYxKSIgZmlsbD0iI2ZmZiI+PC9wYXRoPjwvc3ZnPg==&amp;#39;);
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;I hope this shows new designers that simple custom radio inputs aren&amp;#8217;t so hard to implement after-all and can actually be pretty fun to design.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/easy-custom-radio-inputs"/>
+ <id>https://btxx.org/posts/easy-custom-radio-inputs</id>
+ <updated>2019-01-21T10:00:00Z</updated>
+ <published>2019-01-21T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Easy Toggle Switches</title>
+ <content type="html">&lt;h1 id=&quot;easy-toggle-switches&quot;&gt;Easy Toggle Switches&lt;/h1&gt;
+&lt;p&gt;2019-02-18&lt;/p&gt;
+&lt;p&gt;Sometimes there is a need to use toggle elements in-place of the default &lt;code&gt;checkbox&lt;/code&gt; inputs. The problem is, I tend to see a lot of developers reaching for plugins or JavaScript components in order to implement these toggles.&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;This is overkill&lt;/em&gt;. You can create your own custom &lt;code&gt;input&lt;/code&gt; elements to mimic toggles perfectly with just a small amount of CSS.&lt;/p&gt;
+&lt;h2 id=&quot;what-we-will-be-building&quot;&gt;What we will be building&lt;/h2&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/easy-toggle-switches.png&quot; alt=&quot;Easy toggle switches&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/bGgbajY&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;p&gt;The build structure for these toggles is really simple, we only need:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Pivoted heavily into UX research and design for a handful of years (after working mostly with web front-ends)&lt;/li&gt;
-&lt;li&gt;Recently switched back into a more fullstack development role to challenge myself and learn more&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;a parent container to hold all our corresponding elements&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;a checkbox &lt;code&gt;input&lt;/code&gt; element (which we will hide)&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;an empty label designed to represent the slider&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;a text label that references the &lt;code&gt;input&lt;/code&gt; &lt;/p&gt;
+&lt;p&gt;&amp;#47;* Main toggle parent container &lt;em&gt;&amp;#47;
+
+ &amp;#47;&lt;/em&gt; Checkbox input, hidden with CSS &lt;em&gt;&amp;#47;
+
+ &amp;#47;&lt;/em&gt; The toggle slider element &lt;em&gt;&amp;#47;
+
+ &amp;#47;&lt;/em&gt; The text label to the right of the slider *&amp;#47;
+ Toggle Switch
+&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;nothing-special&quot;&gt;Nothing Special&lt;/h2&gt;
-&lt;p&gt;This post isn&amp;#8217;t anything ground-breaking but for me it&amp;#8217;s nice to reflect on the time passed and remember how much can change in such little time. Hopefully I&amp;#8217;ll be right back here in another 7 years and maybe you&amp;#8217;ll still be reading along with me!&lt;/p&gt;</content>
- <link href="https://btxx.org/seven-years"/>
- <id>https://btxx.org/seven-years</id>
- <updated>2023-06-24T10:00:00Z</updated>
- <published>2023-06-24T10:00:00Z</published>
- </entry>
- <entry>
- <title>Setting Up a Free SSL</title>
- <content type="html">&lt;h1 id=&quot;setting-up-a-free-ssl&quot;&gt;Setting Up a Free SSL&lt;/h1&gt;
-&lt;p&gt;2018-08-07&lt;/p&gt;
-&lt;p&gt;I never had to worry about SSL certificates when I originally hosted my blog through Github Pages, but since switching over to Surge.sh I lost my ability to utilize &lt;code&gt;https&lt;/code&gt; protocol.&lt;/p&gt;
-&lt;p&gt;Luckily, Cloudflare offers a very simple way to implement SSL on your website - and it&amp;#8217;s free!&lt;/p&gt;
-&lt;h3 id=&quot;ssl-in-3-easy-steps&quot;&gt;SSL in 3 easy steps&lt;/h3&gt;
-&lt;ol&gt;
-&lt;li&gt;You will need to have a Cloudflare account - you can setup one here. Be sure to select the &amp;#8216;Free&amp;#8217; pricing plan (unless you want some extras features)&lt;/li&gt;
-&lt;li&gt;Follow the process on updating your nameservers to the proper Cloudflare servers and wait for your domain to update the changes. (This can take up to 24 hours)&lt;/li&gt;
-&lt;li&gt;From the main Cloudflare dashboard navigate to the Crypto tab. Then under the SSL section, select &amp;#8220;Flexible&amp;#8221; from the dropdown.&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h3 id=&quot;enjoy-your-newly-secure-site&quot;&gt;Enjoy your newly secure site&lt;/h3&gt;
-&lt;p&gt;That&amp;#8217;s it! Give it a bit of time and soon your website will support &lt;code&gt;https&lt;/code&gt; and best of all it costs you nothing!&lt;/p&gt;
-&lt;p&gt;I suggest checking out the other interesting features Cloudflare offers while your playing with the dashboard as well. They have a lot of impressive options that can really improve the overall performance of your site &amp;#47; web app.&lt;/p&gt;</content>
- <link href="https://btxx.org/setting-up-free-ssl"/>
- <id>https://btxx.org/setting-up-free-ssl</id>
- <updated>2018-08-07T10:00:00Z</updated>
- <published>2018-08-07T10:00:00Z</published>
- </entry>
- <entry>
- <title>Self-Hosting Fathom Analytics with DigitalOcean</title>
- <content type="html">&lt;h1 id=&quot;self-hosting-fathom-analytics-with-digitalocean&quot;&gt;Self-Hosting Fathom Analytics with DigitalOcean&lt;/h1&gt;
-&lt;p&gt;2021-02-02&lt;/p&gt;
-&lt;p&gt;Since my previous post walked through the process of setting up Fathom PRO on Netlify, I figured it made sense to create a similar tutorial for the &amp;#8220;Lite&amp;#8221; variation, self-hosted on DigitalOcean.&lt;/p&gt;
-&lt;p&gt;Please note that while I think the PRO version of Fathom Analytics is truly great, for my small, niche blog it seemed overkill compared to self-hosting. Switching over from $14&amp;#47;mo to $5&amp;#47;mo while retaining most of the same functionality was a no-brainer. Choose the option that best suits your needs (or in the case - budget &amp;#38; bandwidth).&lt;/p&gt;
-&lt;p&gt;With that cleared up - let&amp;#8217;s get into it!&lt;/p&gt;
-&lt;h2 id=&quot;prerequisites&quot;&gt;Prerequisites&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;One or more website(s) where you would like to include analytics&lt;/li&gt;
-&lt;li&gt;DigitalOcean account (&lt;strong&gt;this link will give you a $100 credit!&lt;/strong&gt;)&lt;/li&gt;
-&lt;li&gt;Positive attitude and passion for privacy-respecting analytics!&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;create-a-droplet&quot;&gt;Create a Droplet&lt;/h2&gt;
-&lt;p&gt;Once your DigitalOcean account is setup, navigate to the Marketplace and search for &lt;code&gt;Fathom Analytics&lt;/code&gt;. Then click the &lt;code&gt;Create Fathom Analytics Droplet&lt;/code&gt;.&lt;/p&gt;
-&lt;p&gt;From here you&amp;#8217;ll be brought to a page that allows you to customize the specifications of your new droplet. If you&amp;#8217;re a smaller traffic site (personal blog, etc) selecting the &lt;strong&gt;$5&amp;#47;month&lt;/strong&gt; Basic Shared CPU option is your best bet.&lt;/p&gt;
-&lt;p&gt;Select the data-center region based on where most of your traffic originates from. I would suggest enabling &lt;code&gt;IPv6&lt;/code&gt; and setting up your authentication via SSH instead of a regular password system. Adding backups is entirely at your own discretion.&lt;/p&gt;
-&lt;p&gt;Once you&amp;#8217;re ready, click &lt;strong&gt;Create Droplet&lt;/strong&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;enter-the-matrix-not-really&quot;&gt;Enter the Matrix (not really)&lt;/h2&gt;
-&lt;p&gt;Once DigitalOcean finishes spinning up your new droplet, open a terminal and connect to it by entering:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;ssh root@YOUR_DROPLET_IP
+&lt;p&gt;And that&amp;#8217;s everything we need for the HTML.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;ProTip:&lt;/strong&gt; Don&amp;#8217;t forget to increment both the &lt;code&gt;id&lt;/code&gt; and &lt;code&gt;for&lt;/code&gt; attributes when adding additional toggles. This seems like a no-brainer but it&amp;#8217;s overlooked more than you think.&lt;/p&gt;
+&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
+&lt;p&gt;To get things started we will add the styling to the &lt;code&gt;.toggle-switch&lt;/code&gt; item directly (using &lt;code&gt;flexbox&lt;/code&gt; in this demo for easier layout).&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Sidenote&lt;/strong&gt;: You will notice the inclusion of CSS variables in this demo - if you are unfamiliar with how to use root variables in CSS, take a look at one of my previous posts: CSS variables.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;:root {
+ --primary-color: #4A90E2;
+}
+
+.toggle-switch {
+ align-items: center;
+ display: flex;
+ font-size: 14px;
+ justify-content: center;
+ margin: 20px 0;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If you setup your login via SSH everything should work as-is. If you went the password route, you&amp;#8217;ll given a prompt to enter it.&lt;/p&gt;
-&lt;p&gt;Now that you&amp;#8217;re connected, Fathom will guide you through a simple configuration setup. It&amp;#8217;s fairly straightforward and painless. Once complete, move to the next step.&lt;/p&gt;
-&lt;h2 id=&quot;domains&quot;&gt;Domains&lt;/h2&gt;
-&lt;p&gt;You&amp;#8217;ll most likely want to host this instance on your own domain or subdomain - instead of connecting directly via the droplet&amp;#8217;s &lt;code&gt;IP&lt;/code&gt;. Head over to your &lt;strong&gt;Networking&lt;/strong&gt; page in the sidebar of DigitalOcean and add your custom domain.&lt;/p&gt;
-&lt;p&gt;Then, click on that newly added domain - we need to add some new records. You&amp;#8217;re going to add two new &lt;code&gt;A&lt;/code&gt; records to this domain:&lt;/p&gt;
-&lt;p&gt;The last thing you need to do is set your nameservers to point to DigitalOcean:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;ns1.digitalocean.com
-ns2.digitalocean.com
-ns3.digitalocean.com
+&lt;p&gt;Next we will hide the default browser checkbox element since we won&amp;#8217;t be needing it:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.toggle-input {
+ position: absolute;
+ visibility: hidden;
+ z-index: -1;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Give it some time to propagate and you&amp;#8217;ll be in business!&lt;/p&gt;
-&lt;h2 id=&quot;ssl-ftw&quot;&gt;SSL FTW&lt;/h2&gt;
-&lt;p&gt;There is hardly a good reason not to practice security on the web, so setting up your new analytics to be served over &lt;code&gt;HTTPS&lt;/code&gt; is just the smart thing to do. Did I mention that this is completely free as well? See - no excuses.&lt;/p&gt;
-&lt;p&gt;In order to get a free SSL certificate setup, you&amp;#8217;ll need to install &lt;code&gt;certbot&lt;/code&gt;. While connected to your droplet, enter the following:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo apt-get install python-certbot-nginx
+&lt;p&gt;Let&amp;#8217;s also add some base styling for the &lt;code&gt;label&lt;/code&gt; containing the text corresponding to it&amp;#8217;s &lt;code&gt;input&lt;/code&gt; sibling:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.toggle-label {
+ color: #ccc;
+ cursor: pointer;
+ font-weight: bold;
+ padding-left: 10px;
+ text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
+ transition: ease all .3s;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Once installed, enter the following to setup SSL (remember to swap out the domain with your own):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;certbot --nginx -d your-cool-domain.com
+&lt;p&gt;Now we target the &lt;code&gt;.toggle-slider&lt;/code&gt; label and add the styling for the main slider base:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* This is just the main slider base *&amp;#47;
+.toggle-slider {
+ background: #eee;
+ border-radius: 9999px;
+ box-shadow: inset 0 2px 4px rgba(0,0,0,0.1),
+ inset 0 4px 8px rgba(0,0,0,0.1),
+ 0 1px 1px rgba(255,255,255,1);
+ cursor: pointer;
+ display: inline-block;
+ height: 20px;
+ position: relative;
+ transition: all ease .3s;
+ width: 40px;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Follow the steps (it&amp;#8217;s very quick and easy) and you&amp;#8217;ll have &lt;code&gt;HTTPS&lt;/code&gt; setup in a jiffy!&lt;/p&gt;
-&lt;h2 id=&quot;the-final-lap&quot;&gt;The Final Lap&lt;/h2&gt;
-&lt;p&gt;The last thing to do is login to your newly self-hosted Fathom instance, add your site you wish to track, grab the generated tracking code and then slap that badboy on whatever pages you need to track!&lt;/p&gt;
-&lt;p&gt;Congrats! You&amp;#8217;re now officially running your own set of analytics tools. You should be happy about what you&amp;#8217;ve accomplished and proud for respecting your users&amp;#8217; privacy!&lt;/p&gt;</content>
- <link href="https://btxx.org/self-hosting-fathom"/>
- <id>https://btxx.org/self-hosting-fathom</id>
- <updated>2021-02-02T10:00:00Z</updated>
- <published>2021-02-02T10:00:00Z</published>
- </entry>
- <entry>
- <title>What Happened to Self-Hosted Blogs?</title>
- <content type="html">&lt;h1 id=&quot;what-happened-to-self-hosted-blogs&quot;&gt;What Happened to Self-Hosted Blogs?&lt;/h1&gt;
-&lt;p&gt;2018-10-18&lt;/p&gt;
-&lt;p&gt;I remember a time on the internet1 when everyone and their grandmother was running a personal blog. And I mean &lt;em&gt;personal&lt;/em&gt; - not hosted on some side platform or a tacked-on addition to the rest of their website.&lt;/p&gt;
-&lt;p&gt;Nowadays companies and individuals alike use platforms like Medium to host and promote all of their articles, essays and case studies. I understand the draw, and can even list out the positives:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;A large community already exists under the Medium brand&lt;/li&gt;
-&lt;li&gt;It&amp;#8217;s easy to promote your own work and follow others&lt;/li&gt;
-&lt;li&gt;The platform is fairly easy to setup and implement&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;Unfortunately this has had a pretty severe impact on the blogging community as a whole - no one controls their own blogs anymore. I remember when finding a new blog was an interesting and fun experience:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;how did they decide to layout the page design?&lt;/li&gt;
-&lt;li&gt;what typefaces have they decided to use?&lt;/li&gt;
-&lt;li&gt;what back-end are they using?&lt;/li&gt;
-&lt;li&gt;how does it look and feel on mobile?&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;These custom self-hosted blogs inspired other developers and designers to create their own blogs or tweak current ones. In a way it was a small factor in pushing what we could do on the web further and further, as designers engaged in friendly competition trying to one-up each others&amp;#8217; creations.&lt;/p&gt;
-&lt;p&gt;I also believe this inspired people to write better content instead of opting for clickbait garbage in order to get &amp;#8220;featured&amp;#8221; or boosted promotion on the main blogging platform. But I don&amp;#8217;t even think that&amp;#8217;s the worst to come of this mass-migration to a singular blogging platform.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;All2 blogs look identical now.&lt;/strong&gt; I&amp;#8217;m not sure if that was Medium&amp;#8217;s intention, but either way I personally think it&amp;#8217;s horrible. The individual personality of most design and development blogs has been completely stripped away.&lt;/p&gt;
-&lt;p&gt;Maybe I&amp;#8217;m just a salty designer with a narrow-minded, pessimistic view on where our blogging communities seem to be heading - or maybe I just have higher standards.&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;p&gt;1 the design world of the internet
-2 by &amp;#8220;All&amp;#8221; I mean the majority&lt;/p&gt;</content>
- <link href="https://btxx.org/self-hosted-blogs"/>
- <id>https://btxx.org/self-hosted-blogs</id>
- <updated>2018-10-18T10:00:00Z</updated>
- <published>2018-10-18T10:00:00Z</published>
- </entry>
- <entry>
- <title>Schools Should Be Using Open Source Software</title>
- <content type="html">&lt;h1 id=&quot;schools-should-be-using-open-source-software&quot;&gt;Schools Should Be Using Open Source Software&lt;/h1&gt;
-&lt;p&gt;2022-05-30&lt;/p&gt;
-&lt;p&gt;I firmly believe that proprietary software has no business in any school environment. Educational institutions lean heavily on Windows systems in the name of &amp;#8220;security&amp;#8221; or &amp;#8220;easier platform management&amp;#8221;. This approach forces students into using locked-down, closed sourced software applications.&lt;/p&gt;
-&lt;p&gt;Word, Excel, PowerPoint. Why have these become the &amp;#8220;standard&amp;#8221; of text manipulation and processing?&lt;/p&gt;
-&lt;p&gt;Photoshop. Illustrator. Why are these the first applications used for image editing and creation?&lt;/p&gt;
-&lt;p&gt;Schools should only be allowed to use and teach with open source software. Starting students off down the path of vendor lock-in is only beneficial to the companies building those software systems.&lt;/p&gt;
-&lt;h2 id=&quot;the-internet&quot;&gt;The Internet&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;m an older fart, so my elementary school experience only included computers near the tail-end of mid-school. As such, it was forgivable to have students locked-in to using Internet Explorer (which would have been version 4 or 5 during my time) since there wasn&amp;#8217;t a great deal of competition.&lt;/p&gt;
-&lt;p&gt;The major problem is that IE&amp;#47;Edge is still the default and often times ONLY browser available in these classrooms. Again, I believe IT departments use the excuse of &amp;#8220;security&amp;#8221; to keep students on such dated browsers.&lt;/p&gt;
-&lt;p&gt;Firefox, anyone? LibreWolf? Pale Moon?&lt;/p&gt;
-&lt;p&gt;Any of these browsers can be easily managed and secured by school IT departments. It doesn&amp;#8217;t HAVE to be IE&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;reducing-hardware-cost&quot;&gt;Reducing Hardware Cost&lt;/h2&gt;
-&lt;p&gt;By shifting towards a purely &amp;#8220;open&amp;#8221; software stack, schools then have the ability to purchase older, cheaper hardware. Instead of running bloated spyware (Windows) IT departments could opt to use any one of the lightweight Linux distros available.&lt;/p&gt;
-&lt;p&gt;This would reduce e-waste, save school districts significant amounts of money (no need to purchase Windows licenses or beefy hardware to be able to even &lt;em&gt;run&lt;/em&gt; the operating system) all while still maintaining a high level of user&amp;#47;network security.&lt;/p&gt;
-&lt;p&gt;Heck, you could even have a fleet of Raspberry Pi devices as your main student &amp;#8220;computers&amp;#8221;. The cost of replacement also becomes less significant (these are children using these devices remember).&lt;/p&gt;
-&lt;h2 id=&quot;security&quot;&gt;Security&lt;/h2&gt;
-&lt;p&gt;I briefly mentioned user and network security above but figured it deserved its own section. A great deal of push-back comes from stubborn IT professionals[^0] determined to keep things running on Windows - since this is mostly what they are familiar with.&lt;/p&gt;
-&lt;p&gt;My mother-in-law was an &amp;#8220;at-risk&amp;#8221; educator for most of her career. She explained to me that their IT department did a major switch over to use BRAND NEW Apple laptops for all the students just before her retirement. I can&amp;#8217;t even begin to imagine the cost associated with this change. Not to mention the cost of repair for any of these devices when (not if) damaged.&lt;/p&gt;
-&lt;p&gt;Who the hell is making these decisions? Even worse, who is approving them?! The school board had the opportunity to switch away from Windows devices and decided on Apple? Education reform is greatly needed[^1].&lt;/p&gt;
-&lt;h2 id=&quot;what-about-the-job-market&quot;&gt;What About The &amp;#8220;Job Market&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;m not ignorant to the fact that many businesses in the real world require familiarity with some of these more popular closed source applications (Word, Excel). I don&amp;#8217;t have a magic solution to instantly convert all applications used by the companies, but beginning the process in the education system is a solid start. Over time, the standard will &lt;em&gt;become&lt;/em&gt; these open platforms. The initial change just needs to be made.&lt;/p&gt;
-&lt;p&gt;It should also be mentioned that these open source applications carry over a lot of similar functionality to their closed-sourced counterparts. So it isn&amp;#8217;t as if a user with extensive LibreOffice experience would be utterly lost while using Microsoft Word.&lt;/p&gt;
-&lt;h2 id=&quot;looking-under-the-hood&quot;&gt;Looking Under the Hood&lt;/h2&gt;
-&lt;p&gt;Another bonus in using fully open source software is the ability for the students to deep dive into the code itself. This can be a great resource for early programming fundamentals and beginner coding classes. Why not dissect the very program used in your other classes? Here&amp;#8217;s an example of a possible class project: students could build out their own plugins or extensions for an existing application!&lt;/p&gt;
-&lt;h2 id=&quot;suggested-alternatives&quot;&gt;Suggested Alternatives&lt;/h2&gt;
-&lt;p&gt;So what are these &amp;#8220;open source&amp;#8221; alternatives? Check out my simple suggestions below:&lt;/p&gt;
-&lt;p&gt;MS Office Suite ==&amp;#62; LibreOffice Suite[^2]&lt;/p&gt;
-&lt;p&gt;Photoshop ==&amp;#62; GIMP&lt;/p&gt;
-&lt;p&gt;Illustrator ==&amp;#62; Inkscape&lt;/p&gt;
-&lt;p&gt;IE&amp;#47;Edge ==&amp;#62; Firefox[^3]&lt;/p&gt;
-&lt;p&gt;Coding IDE (optional) ===&amp;#62; vim&lt;/p&gt;
-&lt;p&gt;You could easily expand upon these options, but for most elementary school task these are more than enough.&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Not &lt;em&gt;all&lt;/em&gt; IT workers in the school system fall into this category. But most of the underlining structure prevents them from changing much.&lt;/li&gt;
-&lt;li&gt;At least in my country of Canada. I can&amp;#8217;t speak for others.&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;groff&lt;/code&gt; would be my personal suggestion instead, since it helps introduce children into the structure of basic file formatting and &amp;#8220;programming&amp;#8221;. I&amp;#8217;ll go into greater details about this in another post.&lt;/li&gt;
-&lt;li&gt;As mentioned in the beginning of the post, I&amp;#8217;d even suggest forks of Firefox -&amp;#62; LibreWolf or Pale Moon (if possible)&lt;/li&gt;
-&lt;/ol&gt;</content>
- <link href="https://btxx.org/schools"/>
- <id>https://btxx.org/schools</id>
- <updated>2022-05-30T10:00:00Z</updated>
- <published>2022-05-30T10:00:00Z</published>
- </entry>
- <entry>
- <title>Enabling Safari Extensions with the macOS Catalina Patcher</title>
- <content type="html">&lt;h1 id=&quot;enabling-safari-extensions-with-the-macos-catalina-patcher&quot;&gt;Enabling Safari Extensions with the macOS Catalina Patcher&lt;/h1&gt;
-&lt;p&gt;2021-09-23&lt;/p&gt;
-&lt;p&gt;I have an old 2011 MacBook Air that is running the latest version of macOS Catalina thanks to the very wonderful &lt;a href=&quot;http://dosdude1.com/catalina/&quot;&gt;Catalina Patcher&lt;/a&gt; by dosdude1. This project has made it possible for me to run and test some of the latest software from Apple - namely Safari 15.&lt;/p&gt;
-&lt;p&gt;I ran into a small bug early on though – Safari extensions couldn’t be activated via the preferences menu. Luckily I discovered a very simple fix. My hope is this might help others (as small of a demographic that might be) who run into the same issue with the Catalina Patcher.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Close&amp;#47;Quit Safari completely&lt;/li&gt;
-&lt;li&gt;Open the Finder and use the shortcut &lt;code&gt;⌘ Shift G&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;Paste the following to navigate to the proper folder: &lt;code&gt;~&amp;#47;Library&amp;#47;Containers&amp;#47;com.apple.Safari&amp;#47;Data&amp;#47;Library&amp;#47;Safari&amp;#47;AppExtensions&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;Open the &lt;code&gt;Extensions.plist&lt;/code&gt; in your favourite text editor (I’m a big fan of Panic&amp;#8217;s Nova)&lt;/li&gt;
-&lt;li&gt;Below each extensions &lt;code&gt;&amp;#60;dict&amp;#62;&lt;/code&gt; tag, add the following: &lt;code&gt;&amp;#60;key&amp;#62;Enabled&amp;#60;&amp;#47;key&amp;#62;&amp;#60;true&amp;#47;&amp;#62;&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;Save the file and relaunch Safari&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Reference of what it should look like (AdBlock for this example):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;key&amp;#62;org.adblockplus...&amp;#60;&amp;#47;key&amp;#62;
- &amp;#60;dict&amp;#62;
- &amp;#60;key&amp;#62;AddedDate&amp;#60;&amp;#47;key&amp;#62;
- &amp;#60;date&amp;#62;2021-09-23T14:00:47Z&amp;#60;&amp;#47;date&amp;#62;
- &amp;#60;key&amp;#62;Enabled&amp;#60;&amp;#47;key&amp;#62;
- &amp;#60;true&amp;#47;&amp;#62;
- &amp;#60;key&amp;#62;WebsiteAccess&amp;#60;&amp;#47;key&amp;#62;
- &amp;#60;dict&amp;#62;
- &amp;#60;key&amp;#62;Allowed Domains&amp;#60;&amp;#47;key&amp;#62;
- &amp;#60;array&amp;#47;&amp;#62;
- &amp;#60;key&amp;#62;Has Injected Content&amp;#60;&amp;#47;key&amp;#62;
- &amp;#60;true&amp;#47;&amp;#62;
- &amp;#60;key&amp;#62;Level&amp;#60;&amp;#47;key&amp;#62;
- &amp;#60;string&amp;#62;All&amp;#60;&amp;#47;string&amp;#62;
- &amp;#60;&amp;#47;dict&amp;#62;
- &amp;#60;&amp;#47;dict&amp;#62;
+&lt;p&gt;We &lt;em&gt;could&lt;/em&gt; include a separate element for the circle toggle switcher itself, but instead we will use the &lt;code&gt;:before&lt;/code&gt; pseudo element:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.toggle-slider:before {
+ background: white;
+ border-radius: 9999px;
+ box-shadow: 0 4px 8px rgba(0,0,0,0.1),
+ 0 2px 4px rgba(0,0,0,0.2);
+ content:&amp;#39;&amp;#39;;
+ height: 16px;
+ left: 2px;
+ position: absolute;
+ top: 2px;
+ transition: all ease .3s;
+ width: 16px;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;After following those simple steps you should have working extensions in Safari. Have fun on your old, &amp;#8220;unsupported&amp;#8221; Apple devices!&lt;/p&gt;</content>
- <link href="https://btxx.org/safari-extensions-catalina-patcher"/>
- <id>https://btxx.org/safari-extensions-catalina-patcher</id>
- <updated>2021-09-23T10:00:00Z</updated>
- <published>2021-09-23T10:00:00Z</published>
- </entry>
- <entry>
- <title>Dear Apple, Please Fix Safari's Default Dark Mode Link Color</title>
- <content type="html">&lt;h1 id=&quot;dear-apple-please-fix-safaris-default-dark-mode-link-color&quot;&gt;Dear Apple, Please Fix Safari&amp;#8217;s Default Dark Mode Link Color&lt;/h1&gt;
-&lt;p&gt;2022-04-18&lt;/p&gt;
-&lt;p&gt;Supporting dark mode on the modern web falls under the realm of accessibility and should not be ignored. It is important and helps keep the visual flow of your content to match that of your users&amp;#8217; operating system UI. Not to mention, it&amp;#8217;s easy to implement and keep consistent across browsers.&lt;/p&gt;
-&lt;h2 id=&quot;support-dark-mode-with-zero-css&quot;&gt;Support Dark Mode with Zero CSS&lt;/h2&gt;
-&lt;p&gt;A common practice is to include a &lt;code&gt;@media&lt;/code&gt; query via CSS to target styling changes based on whether &lt;code&gt;dark-mode&lt;/code&gt; is active. I tend to believe this is overkill for basic websites. Many developers aren&amp;#8217;t aware of the HTML &lt;code&gt;color-scheme&lt;/code&gt; parameter. (This website itself is using it in place of CSS media queries)&lt;/p&gt;
-&lt;h3 id=&quot;html-color-scheme&quot;&gt;HTML &amp;#8220;color-scheme&amp;#8221;&lt;/h3&gt;
-&lt;p&gt;Adding the following meta tag inside your document&amp;#8217;s &lt;code&gt;head&lt;/code&gt; element, you can enable dark mode instantly with zero configuration:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;meta name=&quot;color-scheme&quot; content=&quot;dark light&quot; &amp;#47;&amp;#62;
+&lt;h3 id=&quot;interaction&quot;&gt;Interaction&lt;/h3&gt;
+&lt;p&gt;Right now we just have a static toggle that does nothing when the user interacts with it. Let&amp;#8217;s change that by moving the pseudo element&amp;#8217;s position based on the checkbox &lt;code&gt;input&lt;/code&gt; state and updating the label text color:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.toggle-input:checked + .toggle-slider {
+ background: var(--primary-color);
+}
+.toggle-input:checked + .toggle-slider:before {
+ &amp;#47;* Move 100% of the width minus it&amp;#39;s own width plus initial &amp;#39;left&amp;#39; *&amp;#47;
+ left: calc(100% - 18px);
+}
+
+.toggle-input:checked ~ .toggle-label {
+ color: var(--primary-color);
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;There are minor caveats:&lt;/p&gt;
+&lt;p&gt;And because we already included the &lt;code&gt;transition&lt;/code&gt; property on both the base slider and label text, everything animates nicely between state changes.&lt;/p&gt;
+&lt;h2 id=&quot;final-code&quot;&gt;Final code&lt;/h2&gt;
+&lt;p&gt;To make things easier, you can find the HTML &amp;#38; CSS is their entirety below:&lt;/p&gt;
+&lt;h3 id=&quot;html&quot;&gt;HTML&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;toggle-switch&quot;&amp;#62;
+ &amp;#60;input class=&quot;toggle-input&quot; type=&quot;checkbox&quot; id=&quot;toggle-1&quot;&amp;#62;
+ &amp;#60;label class=&quot;toggle-slider&quot; for=&quot;toggle-1&quot;&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;label class=&quot;toggle-label&quot; for=&quot;toggle-1&quot;&amp;#62;Toggle Switch&amp;#60;&amp;#47;label&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
+&amp;#60;div class=&quot;toggle-switch&quot;&amp;#62;
+ &amp;#60;input class=&quot;toggle-input&quot; type=&quot;checkbox&quot; id=&quot;toggle-2&quot;&amp;#62;
+ &amp;#60;label class=&quot;toggle-slider&quot; for=&quot;toggle-2&quot;&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;label class=&quot;toggle-label&quot; for=&quot;toggle-2&quot;&amp;#62;Toggle Switch&amp;#60;&amp;#47;label&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
+&amp;#60;div class=&quot;toggle-switch&quot;&amp;#62;
+ &amp;#60;input class=&quot;toggle-input&quot; type=&quot;checkbox&quot; id=&quot;toggle-3&quot; checked&amp;#62;
+ &amp;#60;label class=&quot;toggle-slider&quot; for=&quot;toggle-3&quot;&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;label class=&quot;toggle-label&quot; for=&quot;toggle-3&quot;&amp;#62;Toggle Switch&amp;#60;&amp;#47;label&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
+&amp;#60;div class=&quot;toggle-switch&quot;&amp;#62;
+ &amp;#60;input class=&quot;toggle-input&quot; type=&quot;checkbox&quot; id=&quot;toggle-4&quot;&amp;#62;
+ &amp;#60;label class=&quot;toggle-slider&quot; for=&quot;toggle-4&quot;&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;label class=&quot;toggle-label&quot; for=&quot;toggle-4&quot;&amp;#62;Toggle Switch&amp;#60;&amp;#47;label&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;the-css-1&quot;&gt;The CSS&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;:root {
+ --primary-color: #4A90E2;
+}
+.toggle-switch {
+ align-items: center;
+ display: flex;
+ font-size: 14px;
+ justify-content: center;
+ margin: 20px 0;
+}
+.toggle-input {
+ position: absolute;
+ visibility: hidden;
+ z-index: -1;
+}
+.toggle-slider {
+ background: #eee;
+ border-radius: 9999px;
+ box-shadow: inset 0 2px 4px rgba(0,0,0,0.1),
+ inset 0 4px 8px rgba(0,0,0,0.1),
+ 0 1px 1px rgba(255,255,255,1);
+ cursor: pointer;
+ display: inline-block;
+ height: 20px;
+ position: relative;
+ transition: all ease .3s;
+ width: 40px;
+}
+.toggle-slider:before {
+ background: white;
+ border-radius: 9999px;
+ box-shadow: 0 4px 8px rgba(0,0,0,0.1),
+ 0 2px 4px rgba(0,0,0,0.2);
+ content:&amp;#39;&amp;#39;;
+ height: 16px;
+ left: 2px;
+ position: absolute;
+ top: 2px;
+ transition: all ease .3s;
+ width: 16px;
+}
+.toggle-input:checked + .toggle-slider {
+ background: var(--primary-color);
+}
+.toggle-input:checked + .toggle-slider:before {
+ left: calc(100% - 18px);
+}
+.toggle-label {
+ color: #ccc;
+ cursor: pointer;
+ font-weight: bold;
+ padding-left: 10px;
+ text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
+ transition: ease all .3s;
+}
+.toggle-input:checked ~ .toggle-label {
+ color: var(--primary-color);
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Enjoy your custom toggles!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/easy-toggle-switches"/>
+ <id>https://btxx.org/posts/easy-toggle-switches</id>
+ <updated>2019-02-18T10:00:00Z</updated>
+ <published>2019-02-18T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Setting Up a Pi-hole Server with Eero</title>
+ <content type="html">&lt;h1 id=&quot;setting-up-a-pi-hole-server-with-eero&quot;&gt;Setting Up a Pi-hole Server with Eero&lt;/h1&gt;
+&lt;p&gt;2022-03-14&lt;/p&gt;
+&lt;p&gt;For the past few years, I&amp;#8217;ve been using a set of Eero routers as my home mesh network. It&amp;#8217;s worked fairly great in that time and even seamlessly transitioned without any hiccups when my family moved house. During the initial setup, I installed Pi-hole on a Raspberry Pi Zero WH because advertisements and tracking scripts suck.&lt;/p&gt;
+&lt;p&gt;It was an easy process to get everything up and running, but I did notice a lack of detailed steps online for those specifically using Eero systems. So, I thought I would document this process here with the hope that it will help someone else along the way (or at the very least remain a semi-permanent place for my own reference).&lt;/p&gt;
+&lt;hr/&gt;
+&lt;p&gt;FYI: You can pay for Eero Secure and allow them to handle ad&amp;#47;tracker blocking for you. Personally, I prefer to have complete control over my blocklists and usage data. YMMV.&lt;/p&gt;
+&lt;hr/&gt;
+&lt;h2 id=&quot;setting-up-the-pi-hole-server&quot;&gt;Setting Up the Pi-hole Server&lt;/h2&gt;
+&lt;p&gt;Before we get into the step-by-step details, here are the required items you&amp;#8217;ll need:&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;You should not be specifying any &lt;code&gt;background&lt;/code&gt; styling to your &lt;code&gt;body&lt;/code&gt; or &lt;code&gt;html&lt;/code&gt; elements&lt;/li&gt;
-&lt;li&gt;You should be not specifying any &lt;code&gt;color&lt;/code&gt; styling across any of your readable content (paragraphs, headings, lists, blockquotes)&lt;/li&gt;
+&lt;li&gt;Raspberry Pi device (I recommend the Pi Zero for simplicity and low cost)&lt;/li&gt;
+&lt;li&gt;microSD card preloaded with &lt;a href=&quot;https://www.raspberrypi.com/software/operating-systems/&quot;&gt;Raspberry Pi OS Lite&lt;/a&gt; (having a desktop GUI is overkill for our use case)&lt;/li&gt;
+&lt;li&gt;micro USB to ethernet adapter (check your local Amazon)&lt;/li&gt;
+&lt;li&gt;Patience!&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;That&amp;#8217;s it! In case you were curious, all major browsers support this color scheme meta tag: &lt;a href=&quot;https://caniuse.com/mdn-html_elements_meta_name_color-scheme&quot;&gt;https:&amp;#47;&amp;#47;caniuse.com&amp;#47;mdn-html&lt;em&gt;elements&lt;/em&gt;meta&lt;em&gt;name&lt;/em&gt;color-scheme&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;but-wait-whats-this-about-safari&quot;&gt;But Wait, What&amp;#8217;s This About Safari?&lt;/h2&gt;
-&lt;p&gt;Even though by adding the color-scheme meta tag we get ourselves good dark mode support across all browsers - Safari has one big oversight: link color. Take a look at the comparison screenshots below (based on one of my older articles). The first one is taken in Firefox, the second in Safari:&lt;/p&gt;
-&lt;p&gt;Luckily for us there is a simple solution using minimal amounts of CSS[^1]:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@supports (color-scheme: dark light) {
- @media screen and (prefers-color-scheme: dark) {
- a:link {color: #9e9eff;}
- a:visited {color: #d0adf0;}
- a:active {color: red;}
- }
+&lt;p&gt;Before you place your microSD card into the Pi and boot it up, connect it to your local computer (via USB adapter) - we will need to add some files first. Once loaded into the &lt;code&gt;boot&lt;/code&gt; folder, add an empty file simply called &lt;code&gt;ssh&lt;/code&gt; (no extensions). Next open your preferred text editor and enter the following code, editing the content to match your own country code and home network settings:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;country=US
+ctrl_interface=DIR=&amp;#47;var&amp;#47;run&amp;#47;wpa_supplicant GROUP=netdev
+update_config=1
+
+network={
+ ssid=&quot;WIFI_SSID&quot;
+ scan_ssid=1
+ psk=&quot;WIFI_PASSWORD&quot;
+ key_mgmt=WPA-PSK
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;We are brute-forcing Safari to implement the same color HEX codes used by both Firefox and Chrome browsers. How a horrible accessibility oversight could happen within a company as large as Apple is astounding&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;apple-fix-your-browsers-dark-mode&quot;&gt;Apple: Fix Your Browser&amp;#8217;s Dark Mode&lt;/h2&gt;
-&lt;p&gt;My hope if that even one Safari design or development team member stumbles across this article and raises this ticket to the rest of the team[^2]. It&amp;#8217;s an unbelievably easy fix and would save developers the headache of overriding these things ourselves.&lt;/p&gt;
-&lt;p&gt;Thanks for reading and happy dark mode to you all!&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Special thanks to &lt;a href=&quot;https://seirdy.one/&quot;&gt;Seirdy&lt;/a&gt; for suggesting the use of :link and :active support. I recommend you check out his take on &lt;a href=&quot;https://seirdy.one/2020/11/23/website-best-practices.html#dark-themes&quot;&gt;dark mode &amp;#47; theme support&lt;/a&gt;.&lt;/li&gt;
-&lt;li&gt;This has an open ticket through &lt;a href=&quot;https://bugs.webkit.org/show_bug.cgi?id=209851&quot;&gt;Webkit Bugzilla&lt;/a&gt;&lt;/li&gt;
-&lt;/ol&gt;</content>
- <link href="https://btxx.org/safari-default-dark-mode"/>
- <id>https://btxx.org/safari-default-dark-mode</id>
- <updated>2022-04-18T10:00:00Z</updated>
- <published>2022-04-18T10:00:00Z</published>
- </entry>
- <entry>
- <title>Installing Ruby with RVM on Alpine Linux</title>
- <content type="html">&lt;h1 id=&quot;installing-ruby-with-rvm-on-alpine-linux&quot;&gt;Installing Ruby with RVM on Alpine Linux&lt;/h1&gt;
-&lt;p&gt;2023-03-16&lt;/p&gt;
-&lt;p&gt;For some on-going projects I need to switch to different versions of &lt;code&gt;ruby&lt;/code&gt;. Although there exist many step-by-step instructions on installing and configuring &lt;code&gt;rvm&lt;/code&gt; for most Linux distros, there aren&amp;#8217;t many focused on Alpine &amp;#8220;daily drivers&amp;#8221;.&lt;/p&gt;
-&lt;p&gt;So this post is more or less a helpful document for my future self. If it happens to help others then that&amp;#8217;s an added bonus!&lt;/p&gt;
-&lt;h2 id=&quot;simple-setup&quot;&gt;Simple Setup&lt;/h2&gt;
-&lt;p&gt;Make sure you have the basic packages first:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;apk update
-apk add curl gcc gnupg gpg dirmngr procps musl-dev linux-headers zlib zlib-dev openssl openssl-dev libssl1.1
+&lt;p&gt;Save this file as &lt;code&gt;wpa_supplicant.conf&lt;/code&gt; and add it to the &lt;code&gt;boot&lt;/code&gt; directory as well.&lt;/p&gt;
+&lt;p&gt;You can now safely eject the microSD card and place it into your Raspberry Pi.&lt;/p&gt;
+&lt;h2 id=&quot;plug-it-in-and-boot&quot;&gt;Plug it in and Boot!&lt;/h2&gt;
+&lt;p&gt;Connect power to your Pi and give it a bit of time to boot up. Once you see a nice solid green LED, go back to your local computer&amp;#8217;s terminal and enter the following command:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;ssh pi@raspberrypi.local
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next download the latest &lt;code&gt;stable&lt;/code&gt; version of &lt;code&gt;rvm&lt;/code&gt; from Github, unpack it, place it in the proper user directory (~&amp;#47;.rvm) and install any required libs:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;curl -sSL https:&amp;#47;&amp;#47;github.com&amp;#47;rvm&amp;#47;rvm&amp;#47;tarball&amp;#47;stable -o rvm-stable.tar.gz
-echo &amp;#39;export rvm_prefix=&quot;$HOME&quot;&amp;#39; &amp;#62; ~&amp;#47;.rvmrc
-echo &amp;#39;export rvm_path=&quot;$HOME&amp;#47;.rvm&quot;&amp;#39; &amp;#62;&amp;#62; ~&amp;#47;.rvmrc
-mkdir rvm &amp;#38;&amp;#38; cd rvm
-tar --strip-components=1 -xzf ..&amp;#47;rvm-stable.tar.gz
-.&amp;#47;install --auto-dotfiles --autolibs=0
+&lt;p&gt;If everything was set up properly you will be asked to trust this device. Next, you will be prompted to enter the device password. The default password will be: &lt;code&gt;raspberry&lt;/code&gt;&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: This is assuming you don&amp;#8217;t currently have any other Pi devices using this hostname parameter!&lt;/p&gt;
+&lt;p&gt;Once you are connected directly to the Pi, it&amp;#8217;s best to check for updates:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo apt update
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now we can remove everything and properly link to &lt;code&gt;rvm&lt;/code&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;cd ..&amp;#47; &amp;#38;&amp;#38; rm -rf rvm-stable stable.tar.gz rvm
-source ~&amp;#47;.rvm&amp;#47;scripts&amp;#47;rvm
+&lt;p&gt;&amp;#8230;and if updates are in fact available, install them via:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo apt upgrade
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now you can freely install any version of Ruby that you desire!&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;rvm install ruby-X.X.X
-&lt;/code&gt;&lt;/pre&gt;</content>
- <link href="https://btxx.org/rvm"/>
- <id>https://btxx.org/rvm</id>
- <updated>2023-03-16T10:00:00Z</updated>
- <published>2023-03-16T10:00:00Z</published>
- </entry>
- <entry>
- <title>RSS Hacks With XSLT</title>
- <content type="html">&lt;h1 id=&quot;rss-hacks-with-xslt&quot;&gt;RSS Hacks With XSLT&lt;/h1&gt;
-&lt;p&gt;2022-05-23&lt;/p&gt;
-&lt;p&gt;In my spare time I&amp;#8217;ve been further tinkering (hopefully for the better) with my humble Shinobi Website[^0] script. The most recent update in &lt;code&gt;patch-1&lt;/code&gt; came with a solid amount of QoL improvements. If you&amp;#8217;re interested, I wrote about it on the official Shinobi blog[^1].&lt;/p&gt;
-&lt;p&gt;The next feature I wanted to tackle was designing a custom layout for the XML files directly in the browser. I was greatly inspired to create something similar to Len Falken&amp;#8217;s main directory listing[^2], since that blog was one of the original inspirations for Shinobi. I&amp;#8217;m not able to copy what&amp;#8217;s there though, since our feed builds are quite a bit different.&lt;/p&gt;
-&lt;p&gt;I then proceeded to fall down the XSLT rabbit hole.&lt;/p&gt;
-&lt;h2 id=&quot;it-never-works-the-first-time-does-it&quot;&gt;It Never Works the First Time, Does It?&lt;/h2&gt;
-&lt;p&gt;Since the shinobi script generates valid RSS code by default, I didn&amp;#8217;t want to mess around &lt;em&gt;too&lt;/em&gt; much via XSLT and risk breaking validation. I also wanted to keep the &amp;#8220;plain text&amp;#8221; look-and-feel for consistency with the rest of the site, even though the XSLT template would render into standard HTML. Minor CSS styling and placing the content directly inside &lt;code&gt;pre&lt;/code&gt; tags solved these issues.&lt;/p&gt;
-&lt;p&gt;My first attempt was to use the available &lt;code&gt;sort&lt;/code&gt; parameter (in XSL version 1.1+) targeting the &lt;code&gt;dc:date&lt;/code&gt; type linked to the &lt;code&gt;pubDate&lt;/code&gt; element:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;xsl:sort select=&quot;pubDate&quot; data-type=&quot;dc:date&quot; order=&quot;descending&quot;&amp;#47;&amp;#62;
-&amp;#60;!-- each individual post&amp;#39;s content here --&amp;#62;
+&lt;p&gt;This next step is optional but I highly recommend it for security purposes. You should change both the hostname and password of this soon-to-be Pi-hole server. To do this simply run:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo raspi-config
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This did not work as intended. RSS 2.0 requires that the &lt;code&gt;pubDate&lt;/code&gt; content is set to comply with the RFC-822 date-time[^3], which shinobi handles perfectly fine. The issue came from the XSL &lt;code&gt;sort&lt;/code&gt; parameter not honoring this setting across all dates. My best guess is that it struggles to properly organize posts from their &amp;#8220;month&amp;#8221; parameter, so it sets the posts in order of date in what I refer to as &amp;#8220;monthly sections&amp;#8221;.&lt;/p&gt;
-&lt;p&gt;If anyone knows why this failed to consistently order the posts via &lt;code&gt;pubDate&lt;/code&gt;, please let me know using the comment link below. I&amp;#8217;m far from an XSLT expert and might have overlooked something painfully obvious!&lt;/p&gt;
-&lt;h2 id=&quot;rss-hack-categories&quot;&gt;RSS Hack: Categories&lt;/h2&gt;
-&lt;p&gt;After spending far too much time reading over documentation, official manual pages and Stack Overflow comments I gave up on the &lt;code&gt;dc:date&lt;/code&gt; sort. I realized I could sort the posts much easier if they were converted into a format similar to ISO 8601. But &lt;code&gt;pubDate&lt;/code&gt; is required to be in RFC-822, so I couldn&amp;#8217;t alter that in the final XML file.&lt;/p&gt;
-&lt;p&gt;Then I remembered the &lt;code&gt;category&lt;/code&gt; tag which shinobi does not utilize by default.&lt;/p&gt;
-&lt;p&gt;First I needed to convert the RFC-822 formatted date (found on the first line of all blog post text files) and render it inside a &lt;code&gt;category&lt;/code&gt; tag. This was simple enough:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;$(date -j -f &quot;%a, %d %b %Y&quot; &quot;$(head -n 1 $file)&quot; +&quot;%Y&amp;#47;%m&amp;#47;%d&amp;#47;%u&quot;)
+&lt;ol&gt;
+&lt;li&gt;Edit Hostname: navigate to &lt;code&gt;System Settings&lt;/code&gt; &amp;#8211;&amp;#62; &lt;code&gt;Hostname&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Edit Password: navigate to &lt;code&gt;System Settings&lt;/code&gt; &amp;#8211;&amp;#62; &lt;code&gt;Password&lt;/code&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;Once complete, reboot the Pi. Just remember that when you try to reconnect to this device via SSH you&amp;#8217;ll need to use both of these new parameters instead of the defaults.&lt;/p&gt;
+&lt;h2 id=&quot;installing-pi-hole&quot;&gt;Installing Pi-hole&lt;/h2&gt;
+&lt;p&gt;This is the easy part:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;curl -sSL https:&amp;#47;&amp;#47;install.pi-hole.net | bash
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;In a nutshell, this converts the RFC-822 date into the format &amp;#8220;2022&amp;#47;05&amp;#47;24&amp;#47;2&amp;#8221;. Simple numbers that can be sorted much easier by XSL. Now all that was needed was setting to &lt;code&gt;sort&lt;/code&gt; parameter properly:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;xsl:sort select=&quot;category&quot; order=&quot;descending&quot;&amp;#47;&amp;#62;
+&lt;p&gt;Pi-hole runs a full install script that walks you through step-by-step on setting things up. It&amp;#8217;s best to use the suggested defaults during the install - everything is pretty simple.&lt;/p&gt;
+&lt;p&gt;Near the end of the setup you&amp;#8217;ll be show the newly created static IP for this Pi-hole server (both IPv4 and IPv6). Write these down for easy reference in a moment.&lt;/p&gt;
+&lt;p&gt;Once it&amp;#8217;s finished, shutdown the Pi safely by running:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo shutdown now
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Everything worked perfectly and the RSS was still valid!&lt;/p&gt;
-&lt;h3 id=&quot;patch-2-pending&quot;&gt;Patch-2 Pending&lt;/h3&gt;
-&lt;p&gt;I&amp;#8217;ve ported these changes over to this blog to perform some &amp;#8220;in the wild&amp;#8221; testing. You can see the custom feed list in your supported browser by visiting:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://pblog.bt.ht/feed.xml&quot;&gt;https:&amp;#47;&amp;#47;pblog.bt.ht&amp;#47;feed.xml&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;As for the shinobi project itself, I have not merged these updates into the main master branch (at the time of publishing this article). They can be found sitting on patch-2[^4]. My plan is to get this merged ASAP once a little more real-world testing is finished and I can include a better &amp;#8220;setup&amp;#47;install&amp;#8221; section for newcomers.&lt;/p&gt;
-&lt;h2 id=&quot;shinobi-updates&quot;&gt;Shinobi Updates&lt;/h2&gt;
-&lt;p&gt;If you&amp;#8217;re interested in more updates and details about the shinobi project itself, feel free to sub to that specific feed below. This post was more focused on hacking RSS parameters that happened to involve shinobi, but in the future all updates specific to the project will be posted there:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://shinobi.bt.ht/feed.xml&quot;&gt;https:&amp;#47;&amp;#47;shinobi.bt.ht&amp;#47;feed.xml&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;h2 id=&quot;hardware-setup&quot;&gt;Hardware Setup&lt;/h2&gt;
+&lt;p&gt;With the Pi shutdown you can safely relocate it to where you have your modem and gateway Eero setup. Connect your new Pi-hole device to the secondary ethernet port on your gateway Eero[^1] and power it up. (This is where the microUSB to ethernet adapter for our Pi device is needed)&lt;/p&gt;
+&lt;p&gt;See the crude diagram below for visual reference:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;strong&gt;Grey Wire&lt;/strong&gt;: Incoming internet connection from ISP&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Blue Wire&lt;/strong&gt;: Ethernet cord connecting modem to gateway Eero&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Red Wire&lt;/strong&gt;: Ethernet cord connecting secondary Eero port to Pi Zero&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;That&amp;#8217;s all we need to do on the hardware side of things.&lt;/p&gt;
+&lt;h2 id=&quot;configuring-the-eero-app&quot;&gt;Configuring the Eero App&lt;/h2&gt;
+&lt;p&gt;With everything connected properly it&amp;#8217;s finally time to setup our custom DNS settings through Eero.&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;&lt;a href=&quot;https://shinobi.website/&quot;&gt;https:&amp;#47;&amp;#47;shinobi.website&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://shinobi.website/posts/patch-1.txt&quot;&gt;https:&amp;#47;&amp;#47;shinobi.website&amp;#47;posts&amp;#47;patch-1.txt&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;http://len.falken.directory/&quot;&gt;http:&amp;#47;&amp;#47;len.falken.directory&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://validator.w3.org/feed/docs/error/InvalidRFC2822Date.html&quot;&gt;https:&amp;#47;&amp;#47;validator.w3.org&amp;#47;feed&amp;#47;docs&amp;#47;error&amp;#47;InvalidRFC2822Date.html&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://git.sr.ht/~tdarb/shinobi-script/tree/patch-2&quot;&gt;https:&amp;#47;&amp;#47;git.sr.ht&amp;#47;~tdarb&amp;#47;shinobi-script&amp;#47;tree&amp;#47;patch-2&lt;/a&gt;&lt;/li&gt;
-&lt;/ol&gt;</content>
- <link href="https://btxx.org/rss-hacks"/>
- <id>https://btxx.org/rss-hacks</id>
- <updated>2022-05-23T10:00:00Z</updated>
- <published>2022-05-23T10:00:00Z</published>
- </entry>
- <entry>
- <title>Clickable Links Inside XML</title>
- <content type="html">&lt;h1 id=&quot;clickable-links-inside-xml&quot;&gt;Clickable Links Inside XML&lt;/h1&gt;
-&lt;p&gt;2022-06-20&lt;/p&gt;
-&lt;p&gt;With the recent patch to the Shinobi Website project, I thought it would be best to share my experience implementing clickable links inside a rendered XML RSS file directly through a browser. This is made possible thanks to the awesome power of XSL formatting.&lt;/p&gt;
-&lt;p&gt;Before we begin, it should be noted that both Safari for macOS and &lt;em&gt;all&lt;/em&gt; browsers on iOS do NOT support the ability to render XML files. Instead you are required to download the feeds as static files to your system. Major bummmer. Hopefully this will be fixed in the near future.&lt;/p&gt;
-&lt;h2 id=&quot;the-code&quot;&gt;The Code&lt;/h2&gt;
-&lt;p&gt;Rendering your entry links as interactive URLs is fairly intuitive. You just need to:&lt;/p&gt;
+&lt;li&gt;Open the Eero app (iOS or Android)&lt;/li&gt;
+&lt;li&gt;Navigate to &lt;strong&gt;Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Network Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;DNS&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Select &lt;strong&gt;Customized DNS&lt;/strong&gt; and enter both your saved IPv4 &amp;#47; IPv6 values&lt;/li&gt;
+&lt;li&gt;Eero will prompt you to reboot your network - do it&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;Next we need to add your Pi-hole&amp;#8217;s address as an IPv4 reservation:[^2]&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;&lt;p&gt;Tell the file which tag it needs to render as the &amp;#8220;a:link&amp;#8221; element&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Set the inner child attribute to &amp;#8220;href&amp;#8221;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Set the value of that attribute to use the entry&amp;#8217;s &lt;code&gt;link&lt;/code&gt; parameter&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;/xsl:attribute&quot;&gt;&amp;#47;xsl:attribute&lt;/a&gt;
-
-&lt;a href=&quot;/xsl:element&quot;&gt;&amp;#47;xsl:element&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;In the Eero app, navigate to &lt;strong&gt;Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Network Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Reservations &amp;#38; port forwarding&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Tap &lt;strong&gt;Add a reservation&lt;/strong&gt; and include your Pi-hole&amp;#8217;s IP address&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;In the instance above I am rendering the entry title as a clickable element which will direct users to the specific entry URL. You could simply render the full entry link URL text as the interactive link if you prefer. Something like:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;xsl:element name=&quot;a&quot;&amp;#62;
- &amp;#60;xsl:attribute name=&quot;href&quot;&amp;#62;
- &amp;#60;xsl:value-of select=&quot;link&quot;&amp;#47;&amp;#62;
- &amp;#60;&amp;#47;xsl:attribute&amp;#62;
- &amp;#60;pre&amp;#62;&amp;#60;xsl:value-of select=&quot;link&quot;&amp;#47;&amp;#62;&amp;#60;&amp;#47;pre&amp;#62;
-&amp;#60;&amp;#47;xsl:element&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;live-example&quot;&gt;Live Example&lt;/h2&gt;
-&lt;p&gt;In a supported browser, you can see the code in action here: &lt;a href=&quot;https://pblog.bt.ht/feed.xml&quot;&gt;https:&amp;#47;&amp;#47;pblog.bt.ht&amp;#47;feed.xml&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;That&amp;#8217;s really all there is to it.&lt;/p&gt;
+&lt;p&gt;After the system reboots everything &lt;em&gt;should&lt;/em&gt; be working as intended! You can check by navigating to your Pi-hole IP address in your browser.&lt;/p&gt;
+&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
+&lt;p&gt;None of this stuff if groundbreaking, but my hope is that even one person across the internet finds this helpful! If you run into any major bugs, please leave a comment below and I&amp;#8217;ll do my best to help out!&lt;/p&gt;
+&lt;p&gt;Best of luck blocking those pesky ads and trackers!&lt;/p&gt;
&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;&lt;a href=&quot;https://shinobi.bt.ht/posts/patch-3.txt&quot;&gt;https:&amp;#47;&amp;#47;shinobi.bt.ht&amp;#47;posts&amp;#47;patch-3.txt&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;You don&amp;#8217;t &lt;em&gt;have&lt;/em&gt; to use your Eero gateway for this step (credit: &lt;a href=&quot;https://old.reddit.com/user/RollMeAway83&quot;&gt;&amp;#47;u&amp;#47;RollMeAway83&lt;/a&gt;)&lt;/li&gt;
+&lt;li&gt;Thanks to &lt;a href=&quot;https://old.reddit.com/user/YankeesIT&quot;&gt;u&amp;#47;YankeesIT&lt;/a&gt; for pointing out that this is required not &lt;em&gt;optional&lt;/em&gt;&lt;/li&gt;
&lt;/ol&gt;</content>
- <link href="https://btxx.org/rss-click"/>
- <id>https://btxx.org/rss-click</id>
- <updated>2022-06-20T10:00:00Z</updated>
- <published>2022-06-20T10:00:00Z</published>
- </entry>
- <entry>
- <title>Quick and Dirty Theme Switcher</title>
- <content type="html">&lt;h1 id=&quot;quick-and-dirty-theme-switcher&quot;&gt;Quick and Dirty Theme Switcher&lt;/h1&gt;
-&lt;p&gt;2020-06-04&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: This article is no longer relevant since my blog design has changed. I&amp;#8217;m keeping this post up since it will still be useful for those wanting to implement a theme switcher on their own site.&lt;/p&gt;
-&lt;hr/&gt;
-&lt;p&gt;&lt;em&gt;I recently added a fairly straightforward color scheme (theme) switcher&lt;/em&gt; to my personal website. You can toggle this simple color switcher in the footer of the site to see it in action. In case anyone else had the desire to add such functionality to their own sites&amp;#47;projects, I figured I&amp;#8217;d write up a quick post explaining how to do so. Let&amp;#8217;s get into it.&lt;/p&gt;
+ <link href="https://btxx.org/posts/eero"/>
+ <id>https://btxx.org/posts/eero</id>
+ <updated>2022-03-14T10:00:00Z</updated>
+ <published>2022-03-14T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Styling Empty Table Cells</title>
+ <content type="html">&lt;h1 id=&quot;styling-empty-table-cells&quot;&gt;Styling Empty Table Cells&lt;/h1&gt;
+&lt;p&gt;2019-07-17&lt;/p&gt;
+&lt;p&gt;Often when designing tables on the web you&amp;#8217;re bound to come across empty pockets of data. These will be rendered as &amp;#8220;blank&amp;#8221; table cells, which isn&amp;#8217;t always the intended outcome. Let&amp;#8217;s take a quick look at how to target and style empty table cells.&lt;/p&gt;
+&lt;h2 id=&quot;the-easy-way&quot;&gt;The easy &lt;code&gt;:empty&lt;/code&gt; way&lt;/h2&gt;
+&lt;p&gt;The most popular way to target &lt;em&gt;any&lt;/em&gt; empty element is by using - you guessed it - the &lt;code&gt;empty&lt;/code&gt; pseudo-class. This pseudo-class is incredibly simple. You target an element&amp;#8217;s &lt;code&gt;empty&lt;/code&gt; state that same way you would target &lt;code&gt;hover&lt;/code&gt; or &lt;code&gt;active&lt;/code&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;table tr td:empty {
+ opacity: 0;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Check out the CodePen examples below for more advanced styling options:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/EBBLEx/&quot;&gt;Live CodePen Example 1&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;You can also include additional pseudo elements to give the user more context about what the empty cells represent:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/bPXqLa/&quot;&gt;Live CodePen Example 2&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;more-specific-property&quot;&gt;More specific &lt;code&gt;empty-cells&lt;/code&gt; property&lt;/h2&gt;
+&lt;p&gt;Although using the &lt;code&gt;:empty&lt;/code&gt; pseudo-class can be helpful, it isn&amp;#8217;t used just for tables. It can be used for any HTML elements that have a lack of content. So, is there a CSS specific property that can target &lt;em&gt;just&lt;/em&gt; table cells? &lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s take a look at the &lt;code&gt;empty-cells&lt;/code&gt; property:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;table {
+ empty-cells: hide;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/XLLqOW/&quot;&gt;Live CodePen Example 3&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;Pros of using &lt;code&gt;empty-cells&lt;/code&gt;:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Only one CSS property&lt;/li&gt;
+&lt;li&gt;Targets the table elements specifically&lt;/li&gt;
+&lt;li&gt;No need for custom styles since it simply &lt;em&gt;hides&lt;/em&gt; empty cell borders&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Some downsides to using this property:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;No styling customization&lt;/li&gt;
+&lt;li&gt;Trickier to use pseudo-element helpers without invoking the &lt;code&gt;:empty&lt;/code&gt; state&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;pick-your-preference&quot;&gt;Pick your preference&lt;/h2&gt;
+&lt;p&gt;It doesn&amp;#8217;t matter semantically which option you decide to take when styling &amp;#47; hiding empty table cells. Using the &lt;code&gt;:empty&lt;/code&gt; state gives you a lot more flexibility in terms of what you can target (full rows, columns etc), but using the &lt;code&gt;empty-cells&lt;/code&gt; property let&amp;#8217;s you simply hide the cells and focus on more important items.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/empty-table-cells"/>
+ <id>https://btxx.org/posts/empty-table-cells</id>
+ <updated>2019-07-17T10:00:00Z</updated>
+ <published>2019-07-17T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>ET-Jekyll Theme</title>
+ <content type="html">&lt;h1 id=&quot;et-jekyll-theme&quot;&gt;ET-Jekyll Theme&lt;/h1&gt;
+&lt;p&gt;2018-01-14&lt;/p&gt;
+&lt;p&gt;ET-Jekyll theme is based off of Dave Liepmann&amp;#8217;s awesome Tufte CSS - which takes it&amp;#8217;s style and inspiration from the wonderful book and handout designs of Edward Tufte.&lt;/p&gt;
+&lt;p&gt;The differences are subtle when comparing my variation to Tufte CSS, but these changes were made out of personal preference and are not in any way &amp;#8220;better&amp;#8221;. If you prefer the original CSS styling - please use it!&lt;/p&gt;
+&lt;p&gt;This theme is an open source side project by Bradley Taunt - made with passion and care. Edit, improve, customize or butcher this theme as much as you&amp;#8217;d like. If you spot an issue or find a better solution for any user pain-spots, please don&amp;#8217;t hesitate to open a PR with your changes.&lt;/p&gt;
+&lt;p&gt;Enjoy ET-Jekyll!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/et-jekyll-theme"/>
+ <id>https://btxx.org/posts/et-jekyll-theme</id>
+ <updated>2018-01-14T10:00:00Z</updated>
+ <published>2018-01-14T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Faking 3D Elements with CSS</title>
+ <content type="html">&lt;h1 id=&quot;faking-3d-elements-with-css&quot;&gt;Faking 3D Elements with CSS&lt;/h1&gt;
+&lt;p&gt;2020-04-29&lt;/p&gt;
+&lt;p&gt;Although not always practical, creating the illusion that some of your web elements are 3D can be a fun experiment. I set out to see if I was able to create such an illusion with only 2 HTML elements and as little CSS as possible.&lt;/p&gt;
+&lt;p&gt;This is what I ended up creating:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/css-orb.png&quot; alt=&quot;Blue 3D orb made out pure CSS&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/VwvzKyb&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;First we need to include the &amp;#8220;buttons&amp;#8221; that will trigger the theme to switch based on which one is selected. (Note: you could always render these as &lt;code&gt;options&lt;/code&gt; in a &lt;code&gt;select&lt;/code&gt; element if you preferred that method)&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;color-select&quot;&amp;#62;
- &amp;#60;button onclick=&quot;toggleDefaultTheme()&quot;&amp;#62;&amp;#60;&amp;#47;button&amp;#62;
- &amp;#60;button onclick=&quot;toggleSecondTheme()&quot;&amp;#62;&amp;#60;&amp;#47;button&amp;#62;
- &amp;#60;button onclick=&quot;toggleThirdTheme()&quot;&amp;#62;&amp;#60;&amp;#47;button&amp;#62;
+&lt;p&gt;Prepare for your mind to be blown:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;main-orb&quot;&amp;#62;
+ &amp;#60;div class=&quot;inner-orb&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it! Don&amp;#8217;t worry too much about the &lt;code&gt;onclick&lt;/code&gt; parameter right now, we&amp;#8217;ll come back to that when adding our JavaScript. The only remaining item is adding a default theme class to our &lt;code&gt;html&lt;/code&gt; element, like so:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;html class=&quot;theme-default&quot;&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;That&amp;#8217;s it - I wasn&amp;#8217;t kidding when I said we would use only 2 HTML elements. The &lt;code&gt;.main-orb&lt;/code&gt; is the core shape (set to 400x400) and the &lt;code&gt;.inner-orb&lt;/code&gt; is placed on top of it&amp;#8217;s parent at a slightly smaller size (360x360) - but more on that below in the CSS portion.&lt;/p&gt;
&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;Next we need to style both the &lt;code&gt;color-select&lt;/code&gt; buttons, along with the custom color schemes that will alter the entire website. We will start with the color schemes.&lt;/p&gt;
-&lt;p&gt;For these themes to swap seamlessly between each other, we will be setting our altering color sets as CSS variables:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.theme-default {
---accent-color: #72f1b8;
---font-color: #34294f;
+&lt;p&gt;First we give the bigger orb element (&lt;code&gt;.main-orb&lt;/code&gt;) the default styling needed to represent a 2D circle:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.main-orb {
+ background: linear-gradient(#fff 0%, #eee 10%, #2E86FB 50%, #1A237E 100%);
+ border-radius: 9999px;
+ height: 400px;
+ margin: 4rem auto;
+ position: relative; &amp;#47;* This is important for the inner orb element later *&amp;#47;
+ width: 400px;
}
-
-.theme-second {
- --accent-color: #FFBF00;
- --font-color: #59316B;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Next, we include both &lt;code&gt;:before&lt;/code&gt; and &lt;code&gt;:after&lt;/code&gt; pseudo elements for our orb&amp;#8217;s drop shadow. You &lt;em&gt;could&lt;/em&gt; do this with a simple &lt;code&gt;box-shadow&lt;/code&gt; property on the &lt;code&gt;.main-orb&lt;/code&gt; itself, but I&amp;#8217;ve explained in a previous post why &lt;a href=&quot;/blog/better-box-shadows.html&quot;&gt;that&amp;#8217;s not the best approach&lt;/a&gt;.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Shared styling for both pseudo elements - Remember DRY *&amp;#47;
+.main-orb:before, .main-orb:after {
+ border-radius: 200px 200px 9999px 9999px;
+ bottom: -10px;
+ content:&amp;#39;&amp;#39;;
+ filter: blur(20px);
+ height: 40px;
+ position: absolute;
+ z-index: -1;
}
-.theme-third {
- --accent-color: #d9455f;
- --font-color: #303960;
+&amp;#47;* Bigger, lighter shadow *&amp;#47;
+.main-orb:before {
+ background: rgba(0,0,0,0.4);
+ left: 7.5%;
+ width: 85%;
}
-body {
- background-color: var(--accent-color);
- color: var(--font-color);
+&amp;#47;* Smaller, darker shadow *&amp;#47;
+.main-orb:after {
+ background: rgba(0,0,0,0.7);
+ left: 20%;
+ width: 60%;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Finally, we style the user-facing color swatches:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.color-select button {
- -moz-appearance: none;
- appearance: none;
- border: 2px solid;
+&lt;p&gt;With our main orb complete we can move on to the &lt;code&gt;.inner-orb&lt;/code&gt; element to help bring slightly more depth to our floating ball of CSS:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.inner-orb {
+ background: linear-gradient(#fff 0%, #2E86FB 60%, #283593 100%);
border-radius: 9999px;
- cursor: pointer;
- height: 20px;
- margin: 0 0.8rem 0.8rem 0;
- outline: 0;
- width: 20px;
-}
-
-&amp;#47;* Style each swatch to match the corresponding theme *&amp;#47;
-.color-select button:nth-child(1) { background: #72f1b8; border-color: #34294f; }
-.color-select button:nth-child(2) { background: #FFBF00; border-color: #59316B; }
-.color-select button:nth-child(3) { background: #d9455f; border-color: #303960; }
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;the-javascript&quot;&gt;The JavaScript&lt;/h2&gt;
-&lt;p&gt;We need to have each color swatch button trigger it&amp;#8217;s corresponding theme and swap out the &lt;code&gt;theme-default&lt;/code&gt; class that we have originally attached to the main &lt;code&gt;html&lt;/code&gt; element. We also need to store what the user has selected into &lt;code&gt;localStorage&lt;/code&gt;, so their choice persists when reloading or navigating to other pages.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;&amp;#47; Set a given theme&amp;#47;color-scheme
-function setTheme(themeName) {
- localStorage.setItem(&amp;#39;theme&amp;#39;, themeName);
- document.documentElement.className = themeName;
-}
-
-&amp;#47;&amp;#47; Toggle between color themes
-function toggleDefaultTheme() {
- if (localStorage.getItem(&amp;#39;theme&amp;#39;) !== &amp;#39;theme-default&amp;#39;){
- setTheme(&amp;#39;theme-default&amp;#39;);
- }
-}
-function toggleSecondTheme() {
- if (localStorage.getItem(&amp;#39;theme&amp;#39;) !== &amp;#39;theme-second&amp;#39;){
- setTheme(&amp;#39;theme-second&amp;#39;);
- }
-}
-function toggleThirdTheme() {
- if (localStorage.getItem(&amp;#39;theme&amp;#39;) !== &amp;#39;theme-third&amp;#39;){
- setTheme(&amp;#39;theme-third&amp;#39;);
- }
+ box-shadow: 0 8px 20px rgba(0,0,0,0.5);
+ height: 360px;
+ filter: blur(18px);
+ left: 20px;
+ position: absolute;
+ top: 15px;
+ width: 360px;
}
-
-&amp;#47;&amp;#47; Immediately set the theme on initial load
-(function () {
- if (localStorage.getItem(&amp;#39;theme&amp;#39;) === &amp;#39;theme-default&amp;#39;) {
- setTheme(&amp;#39;theme-default&amp;#39;);
- }
- if (localStorage.getItem(&amp;#39;theme&amp;#39;) === &amp;#39;theme-second&amp;#39;) {
- setTheme(&amp;#39;theme-second&amp;#39;);
- }
- if (localStorage.getItem(&amp;#39;theme&amp;#39;) === &amp;#39;theme-third&amp;#39;) {
- setTheme(&amp;#39;theme-third&amp;#39;);
- }
-})();
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;And that&amp;#8217;s it! Now it just depends on how custom you want each individual theme style to be. The possibilities are endless!&lt;/p&gt;
-&lt;h2 id=&quot;extra-improvements&quot;&gt;Extra Improvements&lt;/h2&gt;
-&lt;p&gt;You could improve this concept even further hiding the &lt;code&gt;color-select&lt;/code&gt; item if the user has JavaScript disabled. For my needs, I felt it was a fine trade-off to keep the non-functioning color swatch pickers if JavaScript was disabled. However, your project&amp;#47;site might need better fallbacks.&lt;/p&gt;</content>
- <link href="https://btxx.org/quick-dirty-theme-switcher"/>
- <id>https://btxx.org/quick-dirty-theme-switcher</id>
- <updated>2020-06-04T10:00:00Z</updated>
- <published>2020-06-04T10:00:00Z</published>
- </entry>
- <entry>
- <title>Pure CSS Simple Dropdown Plugin</title>
- <content type="html">&lt;h1 id=&quot;pure-css-simple-dropdown-plugin&quot;&gt;Pure CSS Simple Dropdown Plugin&lt;/h1&gt;
-&lt;p&gt;2018-09-20&lt;/p&gt;
-&lt;p&gt;I find myself blowing away default browser &lt;code&gt;select&lt;/code&gt; styling and implementing my own custom dropdowns far more often than I&amp;#8217;d like. So, I recently created a very simple and clean component using just pure CSS.&lt;/p&gt;
-&lt;p&gt;Check out the CodePen below and feel free to morph it as you see fit for your own projects!&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/plug-play.png&quot; alt=&quot;Three dropdown elements styled differently&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/rZPzWy/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</content>
- <link href="https://btxx.org/pure-css-simple-dropdown-plugin"/>
- <id>https://btxx.org/pure-css-simple-dropdown-plugin</id>
- <updated>2018-09-20T10:00:00Z</updated>
- <published>2018-09-20T10:00:00Z</published>
- </entry>
- <entry>
- <title>Publishing Simple Books With Jekyll</title>
- <content type="html">&lt;h1 id=&quot;publishing-simple-books-with-jekyll&quot;&gt;Publishing Simple Books With Jekyll&lt;/h1&gt;
-&lt;p&gt;2019-06-20&lt;/p&gt;
-&lt;p&gt;When thinking about writing, designing and ultimately publishing an ebook, most people don&amp;#8217;t think of using a static site generator. Having products like Amazon Publishing, LaTeX or even Microsoft Word available, why should you use Jekyll?&lt;/p&gt;
-&lt;p&gt;Two reasons:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;extremely easy to use&lt;/li&gt;
-&lt;li&gt;total customization&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;I know these same arguments could be made towards the other options mentioned above, but I&amp;#8217;m biased towards Jekyll since I love the simplicity of HTML and CSS. Hopefully, after reading this post, you will feel the same as well!&lt;/p&gt;
-&lt;h2 id=&quot;no-developer-skills-needed&quot;&gt;No developer skills needed&lt;/h2&gt;
-&lt;p&gt;You won&amp;#8217;t need any hardcore development skills or in-depth knowledge of Jekyll to get the most out of this publishing technique. The theme (&lt;a href=&quot;https://github.com/henrythemes/jekyll-book-theme&quot;&gt;Jekyll Book Theme&lt;/a&gt;) will allow you to focus on your book&amp;#8217;s content rather than wrestling with typography and page layouts. A basic command line script will perform all the heavy lifting for us at the end.&lt;/p&gt;
-&lt;h2 id=&quot;what-are-we-creating&quot;&gt;What are we creating?&lt;/h2&gt;
-&lt;p&gt;You can see the demo of the &lt;em&gt;online&lt;/em&gt; and PDF versions of the book below: &lt;/p&gt;
+&lt;h2 id=&quot;poor-mans-3d-elements&quot;&gt;Poor-man&amp;#8217;s 3D elements&lt;/h2&gt;
+&lt;p&gt;Clearly implementing something like this will never come close to generating true 3D renders on a website, but it is a fun exercise to see how much further we can push simple CSS. Feel free to fork the above CodePen to play around with different colors and shadow placements.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/fake-3d-elements-with-css"/>
+ <id>https://btxx.org/posts/fake-3d-elements-with-css</id>
+ <updated>2020-04-29T10:00:00Z</updated>
+ <published>2020-04-29T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Setting Up Fathom Analytics with Netlify</title>
+ <content type="html">&lt;h1 id=&quot;setting-up-fathom-analytics-with-netlify&quot;&gt;Setting Up Fathom Analytics with Netlify&lt;/h1&gt;
+&lt;p&gt;2021-01-19&lt;/p&gt;
+&lt;p&gt;It&amp;#8217;s no secret that I&amp;#8217;m passionate about open source software, but I&amp;#8217;m also extremely adamant about protecting the privacy of all users across the web. So when I decided to implement analytics on my own personal website, I ended up choosing Fathom (&lt;em&gt;get a $10 credit using that link!&lt;/em&gt;).&lt;/p&gt;
+&lt;p&gt;You should research further into the company yourself if you&amp;#8217;re interested, but in a nutshell the Fathom platform provides:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;http://henrythemes.github.io/jekyll-book-theme/&quot;&gt;Jekyll Book Theme (Website)&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;/public/jekyll-book-theme-sample.pdf&quot;&gt;Jekyll Book Theme (PDF Sample)&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;GDPR, ePrivacy, PECR and CCPA compliance&lt;/li&gt;
+&lt;li&gt;ad-blocker bypasses (in a good way -&amp;#62; zero impact on users)&lt;/li&gt;
+&lt;li&gt;anonymous visitor stats&lt;/li&gt;
+&lt;li&gt;software created by indie developers&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;So without wasting anymore time, let&amp;#8217;s get started!&lt;/p&gt;
-&lt;h2 id=&quot;table-of-contents&quot;&gt;Table of Contents&lt;/h2&gt;
+&lt;p&gt;Although this might sound like a &amp;#8220;paid&amp;#8221; blog post, I can assure you this is completely based on my own opinions and experience with the service. I&amp;#8217;m just very pleased with the product :)&lt;/p&gt;
+&lt;p&gt;Enough chit-chat - let&amp;#8217;s breakdown how to setup Fathom on your own site hosted through Netlify!&lt;/p&gt;
+&lt;h2 id=&quot;step-0-assumptions&quot;&gt;Step 0: Assumptions&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;m going into this tutorial with the assumption that you:&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;&lt;a href=&quot;#setup-jekyll&quot;&gt;Setup Jekyll&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#book-theme&quot;&gt;Using the &amp;#8220;Book&amp;#8221; Jekyll Theme&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#chapter-collections&quot;&gt;Writing Chapters&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#html-to-pdf&quot;&gt;HTML to PDF&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#closing-thoughts&quot;&gt;Closing Thoughts&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Have an active Fathom account (or are at least trying the 7-day free trial)&lt;/li&gt;
+&lt;li&gt;Have a website already setup on Netlify (custom domain optional)&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;Before we can really do anything else, you will need to install and setup Jekyll. The best way to do so is by following the instructions on the official Jekyll website:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://jekyllrb.com/docs/installation/&quot;&gt;Installing Jekyll&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Run through the simple step-by-step installation instructions based on your operating system.&lt;/p&gt;
-&lt;h3 id=&quot;basic-requirements&quot;&gt;Basic requirements&lt;/h3&gt;
-&lt;ul&gt;
-&lt;li&gt;Ruby version 2.4.0 or above&lt;/li&gt;
-&lt;li&gt;RubyGems&lt;/li&gt;
-&lt;li&gt;GCC and Make (in case your system doesn’t have them installed)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;The example we will be referencing in this post is the open source Jekyll theme called &amp;#8220;Jekyll Book Theme&amp;#8221;. This theme as been designed and optimized for publishing ebooks with Jekyll.&lt;/p&gt;
-&lt;p&gt;Simply following the instructions on the main README page of the &lt;a href=&quot;https://github.com/henrythemes/jekyll-book-theme&quot;&gt;jekyll-book-theme repo&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: Take the time to edit the &lt;code&gt;title&lt;/code&gt;, and &lt;code&gt;author&lt;/code&gt; properties in the &lt;code&gt;_config.yml&lt;/code&gt; file in the root directory. Make sure these reflect your own book&amp;#8217;s content.&lt;/p&gt;
-&lt;p&gt;That&amp;#8217;s it. Now let&amp;#8217;s tell Jekyll how we want it to format our chapters.&lt;/p&gt;
-&lt;p&gt;By default, Jekyll will look for latest posts in the &lt;code&gt;_post&lt;/code&gt; directory. This is useful for blogs and basic static websites - but not for us. We want chapters.&lt;/p&gt;
-&lt;h3 id=&quot;using-custom-collections&quot;&gt;Using custom collections&lt;/h3&gt;
-&lt;p&gt;Thankfully, Jekyll is flexible and allows us to set our own custom &amp;#8220;collections&amp;#8221;. Collections are ways to group related content together for easier use dynamically. Our plan is to setup a collection that will house our chapter markdown files in numeric order. You can see this in the &amp;#8220;book&amp;#8221; template top level directory. It should look like the following:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;code&gt;_chapters&lt;/code&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;code&gt;01.md&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;02.md&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;03.md&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;etc..&lt;/code&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h3 id=&quot;but-the-template-already-has-this-setup&quot;&gt;But the template already has this setup&lt;/h3&gt;
-&lt;p&gt;By default the Jekyll Book Theme template has this chapters collection implemented and working as intended. The reason I broke it down step-by-step is so that you can have some better understanding about what is happening &amp;#8220;under the hood&amp;#8221;. &lt;/p&gt;
-&lt;p&gt;Teach a person to fish and all that jazz.&lt;/p&gt;
-&lt;p&gt;Now all you need to do is break your chapters down into their own numbered markdown files inside &lt;code&gt;_chapters&lt;/code&gt;.&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/publishing-with-jekyll.webp&quot; alt=&quot;Publishing with Jekyll&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;Before you can convert your digital book &amp;#8220;website&amp;#8221;, you need to install the &lt;code&gt;wkhtmltopdf&lt;/code&gt; package. Download and follow the instructions below:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://wkhtmltopdf.org/&quot;&gt;wkhtmltopdf&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h3 id=&quot;command-line-conversion&quot;&gt;Command line conversion&lt;/h3&gt;
-&lt;p&gt;In your terminal, navigate inside the &lt;code&gt;_site&lt;/code&gt; folder of your jekyll build and then run the following command:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;for f in *.html; do wkhtmltopdf -g -s Letter --no-background &quot;$f&quot; &quot;${f&amp;#47;_*_&amp;#47;_}.pdf&quot;;done
+&lt;p&gt;And that&amp;#8217;s all you need.&lt;/p&gt;
+&lt;h2 id=&quot;step-1-adding-a-custom-domain-dns-setup&quot;&gt;Step 1: Adding a Custom Domain (DNS Setup)&lt;/h2&gt;
+&lt;p&gt;Even though you have the option to use the &lt;code&gt;default&lt;/code&gt; tracking script URL, I would highly recommend setting it up through your own domain. This helps avoid any browser extensions or firewalls that might block outside URL request made by individual sites.&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Navigate to the Fathom &lt;strong&gt;Settings&lt;/strong&gt; page in the bottom footer (must be logged in)&lt;/li&gt;
+&lt;li&gt;Select &lt;strong&gt;Domains&lt;/strong&gt; from the sidebar&lt;/li&gt;
+&lt;li&gt;Enter your custom domain in the &lt;code&gt;Add a new custom domain&lt;/code&gt; input&lt;/li&gt;
+&lt;li&gt;Select &lt;strong&gt;Start Process&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Keep note of both the &lt;code&gt;CNAME&lt;/code&gt; and &lt;code&gt;VALUE&lt;/code&gt; (we will copy this in a moment)&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;Open a new tab, and login to your Netlify account:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;From your &lt;code&gt;Team Overview&lt;/code&gt; page, navigate to the top-level &lt;code&gt;Domains&lt;/code&gt; page&lt;/li&gt;
+&lt;li&gt;Select the domain you plan to add Fathom to&lt;/li&gt;
+&lt;li&gt;Under &lt;strong&gt;DNS settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;DNS records&lt;/strong&gt; select &lt;code&gt;Add New Record&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Select &lt;code&gt;CNAME&lt;/code&gt; from the dropdown of available options&lt;/li&gt;
+&lt;li&gt;Paste the Fathom &lt;code&gt;CNAME&lt;/code&gt; (from the steps above) into the &lt;strong&gt;Name&lt;/strong&gt; input&lt;/li&gt;
+&lt;li&gt;Paste the Fathom &lt;code&gt;VALUE&lt;/code&gt; (from the steps above) into the &lt;strong&gt;Value&lt;/strong&gt; input&lt;/li&gt;
+&lt;li&gt;Click &lt;strong&gt;Save&lt;/strong&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;That&amp;#8217;s it for DNS setup!&lt;/p&gt;
+&lt;h2 id=&quot;step-2-adding-fathom-your-website&quot;&gt;Step 2: Adding Fathom Your Website&lt;/h2&gt;
+&lt;p&gt;Now that we will be using our own custom domain for the script, it&amp;#8217;s time to actually &lt;em&gt;add it&lt;/em&gt; to our website. From the same Fathom &lt;strong&gt;Settings&lt;/strong&gt; page as before:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Navigate to the &lt;strong&gt;Sites&lt;/strong&gt; page in the sidebar&lt;/li&gt;
+&lt;li&gt;Enter your custom domain in the &lt;code&gt;Add a new site&lt;/code&gt; input and click &lt;strong&gt;Get site code&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;In the modal prompt, select your custom domain from the dropdown list (you&amp;#8217;ll see the script code change accordingly)&lt;/li&gt;
+&lt;li&gt;Copy the tracking code snippet and add it to all the pages you plan to track on your site&lt;/li&gt;
+&lt;li&gt;When ready, select &lt;strong&gt;Verify site code&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;If everything went correctly you should be done!&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;step-3-watch-those-live-stats&quot;&gt;Step 3: Watch Those Live Stats!&lt;/h2&gt;
+&lt;p&gt;Open a cold beer (or a bubbly soda if you prefer) and watch your website visitor stats come rolling in on the dashboard! Not only do you now have solid analytics on your website but you have the piece of mind that your users&amp;#8217; privacy isn&amp;#8217;t being invaded. Everybody wins!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/fathom-analytics-netlify"/>
+ <id>https://btxx.org/posts/fathom-analytics-netlify</id>
+ <updated>2021-01-19T10:00:00Z</updated>
+ <published>2021-01-19T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>February 2022 Update</title>
+ <content type="html">&lt;h1 id=&quot;february-2022-update&quot;&gt;February 2022 Update&lt;/h1&gt;
+&lt;p&gt;2022-02-23&lt;/p&gt;
+&lt;p&gt;It&amp;#8217;s been a little quiet around here lately and for good reason: my wife gave birth to our third child last Thursday. Her name is Harmony and she was born in the late afternoon weighing in at 7 pounds 8 ounces.&lt;/p&gt;
+&lt;p&gt;Besides the lack of sleep, everything has been going very well and our boys are happy to finally have their sister “out” in the real world. She caught a small cold at the beginning but soldiered through it well.&lt;/p&gt;
+&lt;p&gt;As for personal life &amp;#47; work life, I&amp;#8217;ve taken a couple weeks off until Harmony is in a bit more of a routine to make transitioning back to full time easier. I still have a few articles in the works (like setting up a T60 Thinkpad with Linux Mint and using FreeBSD for the first time on an EOL Chromebook) but those will come in time.&lt;/p&gt;
+&lt;p&gt;I guess I should get back to being a proper dad (I&amp;#8217;m writing this on my phone as she sleeps on me and the boys are napping) but I&amp;#8217;ll be back here posting stupid things in no time.&lt;/p&gt;
+&lt;p&gt;See you on the other side!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/february-updates"/>
+ <id>https://btxx.org/posts/february-updates</id>
+ <updated>2022-02-23T10:00:00Z</updated>
+ <published>2022-02-23T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>First Letter Pseudo Element</title>
+ <content type="html">&lt;h1 id=&quot;first-letter-pseudo-element&quot;&gt;First Letter Pseudo Element&lt;/h1&gt;
+&lt;p&gt;2019-05-03&lt;/p&gt;
+&lt;p&gt;In today&amp;#8217;s TypeTip we will be taking a look at the often overlooked &lt;code&gt;:first-letter&lt;/code&gt; CSS pseudo element. Though you might only use this for specific article-format web pages, it&amp;#8217;s still a nice-to-have in your web dev toolset.&lt;/p&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;p&gt;Like most pseudo elements, nothing has to change with your pre-existing HTML structure:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;article&amp;#62;
+ &amp;#60;p&amp;#62;It was a bright cold day in April, and the clocks were striking thirteen.&amp;#60;&amp;#47;p&amp;#62;
+&amp;#60;&amp;#47;article&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Shortly after you should have a generated PDF file inside the &lt;code&gt;_site&lt;/code&gt; folder - most likely named &lt;code&gt;index.html.pdf&lt;/code&gt;. That&amp;#8217;s it! Enjoy your fully formatted PDF version of your book!&lt;/p&gt;
-&lt;p&gt;There are a good amount of pros and cons to this approach of &amp;#8220;publishing&amp;#8221; PDF versions of your book. Since I&amp;#8217;m a sucker for &lt;em&gt;good&lt;/em&gt; and &lt;em&gt;bad&lt;/em&gt; bullet lists, let&amp;#8217;s do just that:&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;The Good&lt;/strong&gt;&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Online version and PDF versions share same styling (keeps things consistent)&lt;/li&gt;
-&lt;li&gt;Chapters are written in &lt;code&gt;markdown&lt;/code&gt; (increased flexibility of writing apps etc.)&lt;/li&gt;
-&lt;li&gt;Very fast and streamlined build process&lt;/li&gt;
-&lt;li&gt;PDF format renders out the chapter headers for built-in navigation&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;&lt;strong&gt;The Bad&lt;/strong&gt;&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Chapters are spit out as one long, single page (I&amp;#8217;m sure this could be rectified with some custom work)&lt;/li&gt;
-&lt;li&gt;More suited for short stories, papers, essay articles (not so great for epic novels)&lt;/li&gt;
-&lt;li&gt;I&amp;#8217;m sure there are other cons I am missing?&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;In the end, using something like LaTeX would certainly grant the user more flexibility in design and layout of the final &amp;#8220;print&amp;#8221; PDF product - but I&amp;#8217;m a sucker for using Jekyll when I can. &lt;/p&gt;
-&lt;p&gt;Please let me know if you decide to use this method and end up publishing your own book 😀 I would love to check it out!&lt;/p&gt;</content>
- <link href="https://btxx.org/publish-with-jekyll"/>
- <id>https://btxx.org/publish-with-jekyll</id>
- <updated>2019-06-20T10:00:00Z</updated>
- <published>2019-06-20T10:00:00Z</published>
- </entry>
- <entry>
- <title>PS4 Download UI with Pure CSS</title>
- <content type="html">&lt;h1 id=&quot;ps4-download-ui-with-pure-css&quot;&gt;PS4 Download UI with Pure CSS&lt;/h1&gt;
-&lt;p&gt;2021-06-20&lt;/p&gt;
-&lt;p&gt;Overall, I&amp;#8217;m fairly impressed with the user interface design of Sony&amp;#8217;s PS4 system OS. It&amp;#8217;s minimal and keeps the content front and center. Even with it&amp;#8217;s sometimes spotty performance hiccups, I&amp;#8217;ve come to enjoy interacting with it.&lt;/p&gt;
-&lt;p&gt;One of the key UI items I&amp;#8217;ve always been a fan of is the download progress view under the &lt;code&gt;Notifications&lt;/code&gt; settings. So I figured I&amp;#8217;d try my hand at recreating this with pure CSS. Here is the final result:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/ps4-loading.png&quot; alt=&quot;PS4 loading screen bar&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/qBroORG&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;Although I&amp;#8217;ve added some of my own improvements (typography spacing, tweaks to the progress bar animation) - the concept it still pretty close to the original.&lt;/p&gt;
-&lt;p&gt;But enough chit-chat, let&amp;#8217;s walkthrough how to make it!&lt;/p&gt;
+&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
+&lt;p&gt;Here&amp;#8217;s where the magic happens:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;p:first-letter {
+ color: orangered;
+ font-size: 250%;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;live-codepen&quot;&gt;Live CodePen&lt;/h2&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/gJYbev/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/first-letter"/>
+ <id>https://btxx.org/posts/first-letter</id>
+ <updated>2019-05-03T10:00:00Z</updated>
+ <published>2019-05-03T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Pure CSS Bar Graphs with Graceful Mobile Fallbacks</title>
+ <content type="html">&lt;h1 id=&quot;pure-css-bar-graphs-with-graceful-mobile-fallbacks&quot;&gt;Pure CSS Bar Graphs with Graceful Mobile Fallbacks&lt;/h1&gt;
+&lt;p&gt;2020-12-08&lt;/p&gt;
+&lt;p&gt;I recently published a new open source project, Flexbox Bar Graphs, and wanted to share a simple breakdown of how it was built. It isn&amp;#8217;t anything mind-blowing, but I like the idea of placing bar graphs in a web page with &lt;em&gt;zero&lt;/em&gt; Javascript.&lt;/p&gt;
+&lt;p&gt;So in the end, this is what our bar graphs will look like on desktop:&lt;/p&gt;
+&lt;p&gt;And this is how it will look on smaller devices:&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s get into the details!&lt;/p&gt;
&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;As with most of my demos, the HTML is very minimal and straightforward. The PS4 system OS download view needs to show the following:&lt;/p&gt;
+&lt;p&gt;The main &amp;#8220;secret&amp;#8221; of this project is that our graphs are constructed out of HTML &lt;em&gt;tables&lt;/em&gt;. Now before you freak out - this is perfectly fine and works in our favor quite well.&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;The game&amp;#8217;s title&lt;/li&gt;
-&lt;li&gt;Full game size, amount downloaded and time remaining&lt;/li&gt;
-&lt;li&gt;Visual progress bar&lt;/li&gt;
+&lt;li&gt;If the user has JS disabled &amp;#8211;&amp;#62; they will still see our graphs&lt;/li&gt;
+&lt;li&gt;If the user has CSS disabled &amp;#8211;&amp;#62; they will see a standard data table set&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;So we will place the game&amp;#8217;s title inside our &lt;code&gt;h2&lt;/code&gt; with a class of &lt;code&gt;title&lt;/code&gt; (shocking, I know). The details about game size, downloaded amount and time remaining gets placed under a parent &lt;code&gt;div&lt;/code&gt; with an accompanying &lt;code&gt;details&lt;/code&gt; class. Finally, we create our progress bar by including a parent &lt;code&gt;div&lt;/code&gt; with a class of &lt;code&gt;progress&lt;/code&gt; that contains a child &lt;code&gt;div&lt;/code&gt; with a class of &lt;code&gt;inner-progress&lt;/code&gt;.&lt;/p&gt;
-&lt;p&gt;Pretty clean and easy to understand.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;wrapper&quot;&amp;#62;
- &amp;#60;img src=&quot;https:&amp;#47;&amp;#47;upload.wikimedia.org&amp;#47;wikipedia&amp;#47;commons&amp;#47;0&amp;#47;00&amp;#47;PlayStation_logo.svg&quot; alt=&quot;PS4&quot; class=&quot;logo&quot;&amp;#62;
- &amp;#60;h2 class=&quot;title&quot;&amp;#62;Detroit: Become Human&amp;#60;&amp;#47;h2&amp;#62;
- &amp;#60;div class=&quot;details&quot;&amp;#62;
- &amp;#60;p&amp;#62;Update File&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p&amp;#62;13.45&amp;#47;17.50 GB (21 Minutes Left)&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;progress&quot;&amp;#62;
- &amp;#60;div class=&quot;inner-progress&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
+&lt;p&gt;All bases are covered!&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;!-- Using a basic table with our custom data-id --&amp;#62;
+&amp;#60;table data-id=&quot;flexbox-bar-graph&quot;&amp;#62;
+ &amp;#60;caption&amp;#62;Web Performance Results&amp;#60;&amp;#47;caption&amp;#62;
+ &amp;#60;thead&amp;#62;
+ &amp;#60;tr&amp;#62;
+ &amp;#60;th&amp;#62;Test Performed&amp;#60;&amp;#47;th&amp;#62;
+ &amp;#60;th&amp;#62;Before&amp;#60;&amp;#47;th&amp;#62;
+ &amp;#60;th&amp;#62;After&amp;#60;&amp;#47;th&amp;#62;
+ &amp;#60;th&amp;#62;Difference&amp;#60;&amp;#47;th&amp;#62;
+ &amp;#60;&amp;#47;tr&amp;#62;
+ &amp;#60;&amp;#47;thead&amp;#62;
+ &amp;#60;tbody&amp;#62;
+ &amp;#60;tr&amp;#62;
+ &amp;#60;th&amp;#62;Initial Load Time&amp;#60;&amp;#47;th&amp;#62;
+ &amp;#60;td&amp;#62;
+ &amp;#60;!--
+ WTF are these CSS variables?
+ See the CSS section below
+ --&amp;#62;
+ &amp;#60;span style=&quot;--data-set:4.7&amp;#47;5;&quot;&amp;#62;&amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;p&amp;#62;4.7&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td&amp;#62;
+ &amp;#60;span style=&quot;--data-set:2.7&amp;#47;5;&quot;&amp;#62;&amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;p&amp;#62;2.7&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td&amp;#62;
+ &amp;#60;span style=&quot;--data-set:2&amp;#47;5;&quot;&amp;#62;&amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;p&amp;#62;2&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;&amp;#47;tr&amp;#62;
+ &amp;#60;&amp;#47;tbody&amp;#62;
+&amp;#60;&amp;#47;table&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Nothing crazy is happening here - just your standard HTML table structure. The one main thing to notice is the &lt;code&gt;--data-set&lt;/code&gt; CSS variable placed inline on each data point. This will be important for our CSS to configure the individual bar graphs properly.&lt;/p&gt;
&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;Now it&amp;#8217;s time to utilize all those classes in the HTML above to craft our PS4 UI recreation. I&amp;#8217;ll break this section down into digestible chunks to avoid overwhelming you by vomiting out a bunch of CSS spaghetti.&lt;/p&gt;
-&lt;p&gt;First we&amp;#8217;ll add a bunch of QOL improvements to help better showcase the demo (adding custom fonts, center content etc.).&lt;/p&gt;
-&lt;p&gt;This part is completely &lt;em&gt;optional&lt;/em&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Import fonts *&amp;#47;
-@import url(&amp;#39;https:&amp;#47;&amp;#47;fonts.googleapis.com&amp;#47;css2?family=Source+Sans+Pro:wght@200;400&amp;#38;display=swap&amp;#39;);
-
-&amp;#47;* Gradient background styling, height overrides *&amp;#47;
-body {
- background: linear-gradient(#226AB6 0%, #144E8A 100%) no-repeat;
- color: white;
- display: block;
- font-family: &amp;#39;Source Sans Pro&amp;#39;, sans-serif;
- font-weight: 200;
- height: 100vh;
+&lt;p&gt;This might look overwhelming if I just dumped the whole CSS file in one big code block, so instead I&amp;#8217;m going to break them down into two parts:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Baseline styling (mobile)&lt;/li&gt;
+&lt;li&gt;Desktop styling&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h3 id=&quot;baseline&quot;&gt;Baseline&lt;/h3&gt;
+&lt;p&gt;Here we target just our table elements with the &lt;code&gt;data-id&lt;/code&gt; of &lt;code&gt;flexbox-bar-graph&lt;/code&gt;. This allows us to avoid worrying about adding classes or IDs and also avoids conflicts with other non-graph styled tables in our projects.&lt;/p&gt;
+&lt;p&gt;The base &lt;code&gt;:root&lt;/code&gt; element holds all of our bar graph colors. Change these as you see fit!&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Bar Graph color variables *&amp;#47;
+:root {
+ --bar-color-1: #357EC7;
+ --bar-color-2: #E42217;
+ --bar-color-3: #4CC417;
+ --bar-color-4: #7D0541;
+ --bar-color-5: #FFD801;
}
-&amp;#47;* Wrapper to center content *&amp;#47;
-.wrapper {
- margin: 0 auto;
- max-width: 800px;
- padding: 4rem 0 0;
+[data-id=&quot;flexbox-bar-graph&quot;] {
+ border-collapse: collapse;
+ margin: 4rem 0 6rem;
+ width: 100%;
+}
+[data-id=&quot;flexbox-bar-graph&quot;] caption {
+ text-align: left;
+}
+[data-id=&quot;flexbox-bar-graph&quot;] thead th {
+ text-align: right;
+}
+[data-id=&quot;flexbox-bar-graph&quot;] thead th:nth-child(1),
+[data-id=&quot;flexbox-bar-graph&quot;] tbody th {
+ text-align: left;
+}
+[data-id=&quot;flexbox-bar-graph&quot;] tbody th {
+ font-weight: normal;
+ font-style: italic;
+}
+[data-id=&quot;flexbox-bar-graph&quot;] tbody td {
+ text-align: right;
+}
+[data-id=&quot;flexbox-bar-graph&quot;] tbody td p {
+ margin: 0;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;desktop&quot;&gt;Desktop&lt;/h3&gt;
+&lt;p&gt;Now we set your &amp;#8220;visual&amp;#8221; bar graphs to show at a set width (in this example it is 1000px and above). That way the &amp;#8220;default&amp;#8221; styling can target the mobile device screen sizes.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;p&gt;The &lt;code&gt;thead tr th:nth-child(x):before&lt;/code&gt; elements create the square &amp;#8220;legends&amp;#8221; beside each individual data point heading&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;The &lt;code&gt;tbody tr td:nth-of-type(x) span&lt;/code&gt; elements are the bars themselves&lt;/p&gt;
+&lt;p&gt;@media(min-width: 1000px) {
+ [data-id=&quot;flexbox-bar-graph&amp;#8221;] {
+ background: transparent;
+ display: block;
+ min-height: 400px;
+ padding: 0;
+ position: relative;
+ width: 100%;
+ }&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;[data-id=&quot;flexbox-bar-graph&quot;] caption {
+ display: block;
+ font-size: 2rem;
+ text-align: center;
+ width: 100%;
}
-&amp;#47;* Optional PS4 logo *&amp;#47;
-.logo {
+[data-id=&quot;flexbox-bar-graph&quot;] thead {
display: block;
- filter: invert(1);
- margin: 0 0 2rem 0;
- opacity: 0.5;
- width: 60px;
+ margin: 2rem 0 3rem;
+ width: 100%;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now for the styling that &lt;em&gt;actually matters&lt;/em&gt;. First we will style the game&amp;#8217;s title and accompanying details (&lt;code&gt;flexbox&lt;/code&gt; to the rescue again!):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;h2.title {
- font-weight: 400;
+[data-id=&quot;flexbox-bar-graph&quot;] thead tr {
+ border-bottom: 1px solid lightgrey;
+ display: flex;
+ justify-content: center;
+ padding-bottom: 1rem;
+}
+
+[data-id=&quot;flexbox-bar-graph&quot;] thead tr th {
+ display: inline-block;
margin: 0;
+ padding: 0;
+ position: relative;
+ text-align: right;
+}
+[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:before {
+ content:&amp;#39;&amp;#39;;
+ display: inline-block;
+ height: 10px;
+ margin: 0 0.5rem 0 2rem;
+ position: relative;
+ width: 10px;
+}
+[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(1),
+[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(1):before {
+ display: none;
+}
+[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(2):before {
+ background: var(--bar-color-1);
+}
+[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(3):before {
+ background: var(--bar-color-2);
+}
+[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(4):before {
+ background: var(--bar-color-3);
+}
+[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(5):before {
+ background: var(--bar-color-4);
+}
+[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(6):before {
+ background: var(--bar-color-5);
}
-.details {
+[data-id=&quot;flexbox-bar-graph&quot;] tbody {
display: flex;
justify-content: space-between;
- margin: 0.2rem 0 0;
-}
-.details p {
- margin: 0;
+ min-height: 300px;
+ width: 100%;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Not a whole lot of code to get things looking proper, eh? Next we move on to the progress bar. This is &lt;em&gt;slightly&lt;/em&gt; more interesting since we are going to utilize the &lt;code&gt;before&lt;/code&gt; pseudo element - which sounds more complex than it actually is. Pay close attention to the pseudo element and how it calls the &lt;code&gt;progress-bar-shine&lt;/code&gt; animation - more on that later.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.progress {
- background: #226AB6;
- border: 1px solid white;
- height: 15px;
- margin: 2rem 0 0;
+
+[data-id=&quot;flexbox-bar-graph&quot;] tbody tr {
+ display: flex;
+ flex-direction: column-reverse;
+ flex-wrap: wrap;
+ justify-content: flex-end;
+ padding: 0 50px;
position: relative;
width: 100%;
}
-.progress:before {
- animation: progress-bar-shine 2.5s infinite;
- background: linear-gradient(to left, white 0%, transparent 100%);
- border-radius: 10px;
- content:&amp;#39;&amp;#39;;
- filter: blur(8px);
- height: 100%;
- opacity: 0.8;
+[data-id=&quot;flexbox-bar-graph&quot;] tbody tr th {
+ font-size: 90%;
position: absolute;
- transform:translateX(0);
- width: 50px;
+ text-align: center;
+ top: 100%;
+ width: calc(100% - 100px);
}
-.inner-progress {
- background: white;
- height: 100%;
- opacity: 0.6;
- width: 450px;
+[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td {
+ align-items: center;
+ display: flex;
+ flex-direction: column;
+ height: 95%;
+ justify-content: flex-end;
+}
+
+[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td span {
+ display: block;
+ height: calc(var(--data-set) * 100%);
+ width: 20px;
+}
+[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td:nth-of-type(1) span {
+ background: var(--bar-color-1);
+}
+[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td:nth-of-type(2) span {
+ background: var(--bar-color-2);
+}
+[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td:nth-of-type(3) span {
+ background: var(--bar-color-3);
+}
+[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td:nth-of-type(4) span {
+ background: var(--bar-color-4);
+}
+[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td:nth-of-type(5) span {
+ background: var(--bar-color-5);
+}
+
+[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td p {
+ font-size: 90%;
+ margin: 0;
+ text-align: center;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Almost finished! We just need to animate that &lt;code&gt;before&lt;/code&gt; pseudo element with a simple &lt;code&gt;keyframes&lt;/code&gt; at-rule:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@keyframes progress-bar-shine {
- to {
- transform:translateX(450px);
- opacity:0;
- }
+&lt;p&gt;}&lt;/p&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;bonus-styling&quot;&gt;Bonus Styling&lt;/h2&gt;
+&lt;p&gt;In the Flexbox Bar Graph repo, I&amp;#8217;ve also included the ability to display these bar graphs horizontally, like so:&lt;/p&gt;
+&lt;p&gt;The change in CSS is actually quite simple to pull this off - you just need to include the &lt;code&gt;data-layout&lt;/code&gt; attribute on the table itself.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;[data-layout=&quot;horizontal&quot;] tbody {
+ min-height: auto;
+}
+
+[data-layout=&quot;horizontal&quot;] tbody tr {
+ flex-direction: column;
+ padding: 0 40px;
+}
+[data-layout=&quot;horizontal&quot;] tbody tr th {
+ width: calc(100% - 80px);
+}
+
+[data-layout=&quot;horizontal&quot;] tbody tr th {
+ text-align: left;
+ top: calc(100% + 20px);
+}
+
+[data-layout=&quot;horizontal&quot;] tbody tr td {
+ flex-direction: row;
+ height: auto;
+ justify-content: start;
+ margin: 10px 0;
+}
+
+[data-layout=&quot;horizontal&quot;] tbody tr td span {
+ height: 20px;
+ width: calc(var(--data-set) * 100%);
+}
+
+[data-layout=&quot;horizontal&quot;] tbody tr td p {
+ margin-left: 10px;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h2&gt;
-&lt;p&gt;Although far from perfect, this experiment still explores what can be created (or in this case, &lt;em&gt;re&lt;/em&gt;created) in the browser using just pure CSS. Remember, you don&amp;#8217;t have to reach for JavaScript just because you can!&lt;/p&gt;</content>
- <link href="https://btxx.org/ps4-download-ui"/>
- <id>https://btxx.org/ps4-download-ui</id>
- <updated>2021-06-20T10:00:00Z</updated>
- <published>2021-06-20T10:00:00Z</published>
- </entry>
- <entry>
- <title>Proper UI Hierarchy</title>
- <content type="html">&lt;h1 id=&quot;proper-ui-hierarchy&quot;&gt;Proper UI Hierarchy&lt;/h1&gt;
-&lt;p&gt;2019-02-05&lt;/p&gt;
-&lt;p&gt;I often feel like an old man when I complain about flat design and how designers these days have lost (or willfully forgotten) the skill to create accessible UIs with proper visual hierarchy. A skill which at it&amp;#8217;s core seems so simple - yet is overlooked in almost every current modern interface.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m unable to pinpoint the exact reason why designers swapped out depth, hierarchical layouts and accessibility for muted colors, abstract imagery, illegible typography, and unimaginative flat designs.&lt;/p&gt;
-&lt;p&gt;But then again, maybe I&amp;#8217;m just a design-dinosaur of a time long forgotten. Maybe I need to adapt and move with the times. Or maybe the current design trends are just lazy.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m pretty sure it&amp;#8217;s lazy design trends.&lt;/p&gt;
-&lt;h2 id=&quot;stop-complaining-and-do-something&quot;&gt;Stop complaining and do something&lt;/h2&gt;
-&lt;p&gt;As an example, I&amp;#8217;m going to breakdown the process of improving the overall design on a set of &amp;#8220;flat&amp;#8221; button elements.&lt;/p&gt;
-&lt;p&gt;Hopefully this demo article inspires even one designer to rethink their method when approaching UI design and push away from what is currently accepted as the &amp;#8220;correct way to design UI&amp;#8221;.&lt;/p&gt;
-&lt;p&gt;And one final note before we deep dive into this demo: &lt;/p&gt;
-&lt;p&gt;The statement that flat design is inherently worse than it&amp;#8217;s predecessor &lt;strong&gt;is not subjective&lt;/strong&gt;. By stripping away the visual cues that help users distinguish between interface elements you are purposely making a worse experience for them. Designers need to stop designing for other designers.&lt;/p&gt;
-&lt;h2 id=&quot;what-we-will-be-designing&quot;&gt;What we will be designing&lt;/h2&gt;
-&lt;p&gt;In this demo we will be improving the default flat design inspired button layout of the following:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/proper-ui.png&quot; alt=&quot;Proper UI buttons, blue and green&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/yLXJmdy&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;thats-all-folks&quot;&gt;That&amp;#8217;s All Folks!&lt;/h2&gt;
+&lt;p&gt;That just about sums things up. Feel free to check out the Github repo itself, open any issues you find or fork it for your own!&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Github: &lt;a href=&quot;https://github.com/bradleytaunt/flexbox-bar-graphs&quot;&gt;https:&amp;#47;&amp;#47;github.com&amp;#47;bradleytaunt&amp;#47;flexbox-bar-graphs&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Live Demo: &lt;a href=&quot;https://flexbox-bar-graphs.netlify.app/&quot;&gt;https:&amp;#47;&amp;#47;flexbox-bar-graphs.netlify.app&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;</content>
+ <link href="https://btxx.org/posts/flexbox-bar-graphs"/>
+ <id>https://btxx.org/posts/flexbox-bar-graphs</id>
+ <updated>2020-12-08T10:00:00Z</updated>
+ <published>2020-12-08T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Adaptable Flexbox Grid</title>
+ <content type="html">&lt;h1 id=&quot;adaptable-flexbox-grid&quot;&gt;Adaptable Flexbox Grid&lt;/h1&gt;
+&lt;p&gt;2018-11-22&lt;/p&gt;
+&lt;p&gt;You can use &lt;code&gt;flexbox&lt;/code&gt; for many tricky layout &amp;#8220;hacks&amp;#8221; and implementing a grid layout is no different.&lt;/p&gt;
+&lt;p&gt;Check out the CodePen below to see how you can implement a flexbox grid system that adapts automatically based on how many items you insert per row (maximum 6 children in this example).&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/rQdLxv/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/flexbox-grid"/>
+ <id>https://btxx.org/posts/flexbox-grid</id>
+ <updated>2018-11-22T10:00:00Z</updated>
+ <published>2018-11-22T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Prescription Form UI Improvements</title>
+ <content type="html">&lt;h1 id=&quot;prescription-form-ui-improvements&quot;&gt;Prescription Form UI Improvements&lt;/h1&gt;
+&lt;p&gt;2019-03-13&lt;/p&gt;
+&lt;p&gt;I was browsing the Clearly website a few days ago and ended up using their prescription form to update my worsening eyesight. The design of this form wasn&amp;#8217;t &lt;em&gt;bad&lt;/em&gt; per se, but it could certainly be improved.&lt;/p&gt;
+&lt;h2 id=&quot;current-design-of-the-prescription-view&quot;&gt;Current design of the prescription view&lt;/h2&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/prescription-ui.webp&quot; alt=&quot;Default prescription UI&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;As I stated, this design isn&amp;#8217;t horrible by any means, but right away we can notice some problems:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;the layout causes the users&amp;#8217; eyes to jump between left-to-right and top-to-bottom without good correlation&lt;/li&gt;
+&lt;li&gt;title content and &lt;code&gt;next&lt;/code&gt; buttons are centered, while dropdowns are presented as left-to-right&lt;/li&gt;
+&lt;li&gt;anchor link coloring is inconsistent&lt;/li&gt;
+&lt;li&gt;too much whitespace between interactive sections&lt;/li&gt;
+&lt;li&gt;dropdown height overly large&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;starting-to-make-some-changes&quot;&gt;Starting to make some changes&lt;/h2&gt;
+&lt;p&gt;Let&amp;#8217;s tackle these problems one at a time. First, we want a more defined page layout so the user can scan through the content more easily (left-to-right, down to the next line, then repeat).&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/prescription-ui-update-1.webp&quot; alt=&quot;Layout wireframe UI&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;We have now left-aligned the title content to be flush with the OD&amp;#47;OS elements below it to help keep the reading flow consistent. &lt;/p&gt;
+&lt;p&gt;The previous layout also had the &lt;code&gt;PD&lt;/code&gt; in-line with the OD&amp;#47;OS element rows which created a problem of resetting the user thought-process. Since it requires the user to jump from the &amp;#8220;right eye&amp;#8221; option to the &amp;#8220;PD&amp;#8221; option, then back to &amp;#8220;left eye&amp;#8221; option it breaks the flow of user &amp;#8220;tasks&amp;#8221;. The new UI shifts the &lt;code&gt;PD&lt;/code&gt; down into it&amp;#8217;s own row, grouping the unrelated tasks on the page separately.&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;You&amp;#8217;ll also notice that I&amp;#8217;ve updated the dropdowns to use a monospace font to convey that these options are number inputs.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;Finally we place the button actions in-line with the &lt;code&gt;PD&lt;/code&gt; block since it previously ate up far more real estate than was necessary.&lt;/p&gt;
+&lt;h2 id=&quot;adding-some-color&quot;&gt;Adding some color&lt;/h2&gt;
+&lt;p&gt;The original design has some inconsistencies with the link coloring - some being a muted grey while others use the accented blue. Updating all interactive links to use Clearly&amp;#8217;s default blue accent color would make for a better disconnect from non-interactive elements.&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/prescription-ui-update-2.webp&quot; alt=&quot;Layout UI with color&quot; /&gt;&lt;/p&gt;
+&lt;h2 id=&quot;finishing-touches&quot;&gt;Finishing touches&lt;/h2&gt;
+&lt;p&gt;Now that the most important aspects of the refreshed UI are complete (layout, UX flow), we can implement all the visual extras to cleanup our basic wireframe.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;make default select styling include depth and importance (this is the main action of the page afterall)&lt;/li&gt;
+&lt;li&gt;round out harsh corner edges on elements&lt;/li&gt;
+&lt;li&gt;set labels and row items with more pleasing backgrounds (while still maintaining contrast)&lt;/li&gt;
+&lt;li&gt;give the &lt;code&gt;next&lt;/code&gt; button visual importance (make it look like a real button)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/prescription-ui-update-final.webp&quot; alt=&quot;Layout UI with color&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/form-ui-improvements"/>
+ <id>https://btxx.org/posts/form-ui-improvements</id>
+ <updated>2019-03-13T10:00:00Z</updated>
+ <published>2019-03-13T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Chrome OS Could Become the Future Leader of Computing</title>
+ <content type="html">&lt;h1 id=&quot;chrome-os-could-become-the-future-leader-of-computing&quot;&gt;Chrome OS Could Become the Future Leader of Computing&lt;/h1&gt;
+&lt;p&gt;2022-01-06&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;FOSS Enthusiasts&lt;/strong&gt;: This article discusses the use of proprietary software and places it in a &lt;em&gt;positive&lt;/em&gt; light. You have been warned. No angry emails please&amp;#8230;&lt;/p&gt;
&lt;hr/&gt;
-&lt;h2 id=&quot;designing-the-skeleton&quot;&gt;Designing the skeleton&lt;/h2&gt;
-&lt;p&gt;This will be our basic HTML structure, along with it&amp;#8217;s default styling (based on today&amp;#8217;s UI standards):&lt;/p&gt;
-&lt;h3 id=&quot;the-html&quot;&gt;The HTML&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;buttons-container&quot;&amp;#62;
- &amp;#60;button&amp;#62;Sign Up&amp;#60;&amp;#47;button&amp;#62;
- &amp;#60;button&amp;#62;Log in&amp;#60;&amp;#47;button&amp;#62;
+&lt;p&gt;Google has created one of the best operating systems designed with the everyday user1 in mind: &lt;a href=&quot;https://www.google.com/chromebook/chrome-os/&quot;&gt;Chrome OS&lt;/a&gt;. It is undeniably simple, reliable, easy to setup, and ships with several years of support before any form of EOL kicks in. New models have built-in support for the Google Play Store and Android applications, which is helpful for application development and debugging.&lt;/p&gt;
+&lt;p&gt;In addition, Chrome OS devices allow you to run Linux in a separate container alongside the main OS (on supported devices). You can&amp;#8217;t complain about that!&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s take a quick look at other positive features worth mentioning:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Verified boot&lt;/li&gt;
+&lt;li&gt;Sandboxed environment (similar to how Chrome tabs work)&lt;/li&gt;
+&lt;li&gt;Automatic updates[^2]&lt;/li&gt;
+&lt;li&gt;&lt;em&gt;Incredible&lt;/em&gt; battery life (were talking 10+ hours with heavy usage)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;my-personal-experience&quot;&gt;My Personal Experience&lt;/h2&gt;
+&lt;p&gt;A handful of months ago I snagged the Lenovo Chromebook Duet when it was on sale for my wife. Since she does all her work directly through an Android phone, I thought of this as a nice companion device. And indeed it was&amp;#47;is.&lt;/p&gt;
+&lt;p&gt;In that time, I played around with the tablet myself to have a better grasp of the ecosystem and it&amp;#8217;s obvious limitations. But a funny thing happened. I found that those &amp;#8220;limitations&amp;#8221; slowly started to disappear the longer I worked with the device.&lt;/p&gt;
+&lt;p&gt;I decided to get my own Chrome OS device and snagged the &lt;a href=&quot;https://www.lenovo.com/ca/en/laptops/lenovo/student-chromebooks/Lenovo-10e-Chromebook-Tablet/p/82AM000EUS&quot;&gt;Lenovo 10e Chromebook Tablet&lt;/a&gt; (on sale).&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;10.1&amp;#8221; display (1920 x 1200) &amp;#47; 400 nits&lt;/li&gt;
+&lt;li&gt;4GB of RAM&lt;/li&gt;
+&lt;li&gt;32GB of eMMC storage&lt;/li&gt;
+&lt;li&gt;Processor: MediaTek MT8183 Processor (2.00 GHz, 4 Cores, 1 MB Cache)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Now, I know that your initial reaction is likely: &amp;#8220;Wow, those specs are pretty barebones!&amp;#8221; and you would be correct. But it&amp;#8217;s all you need for this ecosystem to work. As cringe-inducing as it may sound, everything you plan to do on these devices should happen &lt;em&gt;in the cloud&lt;/em&gt;. (Let&amp;#8217;s take a moment to avoid vomiting in our collective mouths)&lt;/p&gt;
+&lt;p&gt;Instead of using a few marketing buzz words, let me breakdown how I personally tailor Chrome OS to my needs as a designer &amp;#47; developer:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;a href=&quot;#daily-tasks&quot;&gt;Daily Tasks&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#programming&quot;&gt;Programming&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#design&quot;&gt;Design&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#gaming&quot;&gt;Gaming&lt;/a&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;daily-tasks&quot;&gt;Daily Tasks&lt;/h2&gt;
+&lt;p&gt;I feel like going into &lt;em&gt;great&lt;/em&gt; detail explaining how to do basic, daily computing tasks is a little overkill here. Spreadsheets, word documents, Zoom meetings, and streaming media work as expected. You have the ability to use Google&amp;#8217;s own web apps for these things or reach for other vendors such as Microsoft and Libre Office. Not being &amp;#8220;locked in&amp;#8221; to Google software is nice and I appreciate the Chrome OS team being flexible.&lt;/p&gt;
+&lt;h2 id=&quot;programming&quot;&gt;Programming&lt;/h2&gt;
+&lt;p&gt;This one is a mixed bag and your own mileage may vary depending on your specific requirements. Personally, I use Github for almost all my main development work. Because of this, I utilize &lt;a href=&quot;https://github.com/features/codespaces&quot;&gt;Codespaces&lt;/a&gt;. For those unfamiliar with the service, you are running your Github repo in VSCode through the browser. It&amp;#8217;s pretty impressive.&lt;/p&gt;
+&lt;p&gt;If you happen to be a user who uses GitLab or BitBucket to store your project files, &lt;a href=&quot;https://www.gitpod.io/&quot;&gt;Gitpod&lt;/a&gt; is a similar product to Codespaces (which I&amp;#8217;ve used on occasion). This works if your prefer.&lt;/p&gt;
+&lt;p&gt;Others may not like this programming setup but for me it works great. If running code remotely isn&amp;#8217;t your jam, you could always take a look at running &lt;a href=&quot;https://vscodium.com/&quot;&gt;VSCodium&lt;/a&gt; locally via Linux.&lt;/p&gt;
+&lt;h2 id=&quot;design&quot;&gt;Design&lt;/h2&gt;
+&lt;p&gt;There is flexibility yet again in this category. Personally, I tend to use Figma almost exclusively as my main design tool. The best thing about Figma? It runs directly in the browser. A perfect fit for Chromebooks[^3].&lt;/p&gt;
+&lt;p&gt;I do open Gimp periodically for photo-specific work. It runs in its own Linux container and chugs along smoothly, even with 4GB of available memory. If all else fails, one could use &lt;a href=&quot;https://www.photopea.com/&quot;&gt;Photopea&lt;/a&gt; to keep everything working through the browser (if Linux isn&amp;#8217;t your cup of tea).&lt;/p&gt;
+&lt;p&gt;Those of you in love with MacOS specific apps like Sketch - I can&amp;#8217;t help you. You&amp;#8217;re stuck with Apple&amp;#8217;s ecosystem. (Not that there is anything wrong with Sketch!)&lt;/p&gt;
+&lt;h2 id=&quot;gaming&quot;&gt;Gaming&lt;/h2&gt;
+&lt;p&gt;There are other options (that we will get into) but the main gaming champion here is &lt;strong&gt;Stadia&lt;/strong&gt;[^4]. As long as your internet speeds are over 10mbps, mind you. I use garbage satellite internet (counting down the days for Starlink to become available here&amp;#8230;) with an average speed of 18-20mbps and Stadia runs like a dream. Even &lt;em&gt;wirelessly&lt;/em&gt;. Now pair this with the portability of a Chromebook device and you&amp;#8217;ve got yourself a beefier Nintendo Switch.&lt;/p&gt;
+&lt;p&gt;You have solid secondary options like &lt;a href=&quot;https://play.geforcenow.com/mall/#/layout/games&quot;&gt;GeForce Now&lt;/a&gt; and &lt;a href=&quot;https://www.xbox.com/en-CA/xbox-game-pass/cloud-gaming&quot;&gt;Microsoft&amp;#8217;s xCloud (beta)&lt;/a&gt; for an even larger catalogue of games. Not to mention the ability to play a lot of Android games natively on Chromebooks that support Play Store applications.&lt;/p&gt;
+&lt;h2 id=&quot;eye-rolling-scoffing&quot;&gt;Eye Rolling &amp;#38; Scoffing&lt;/h2&gt;
+&lt;p&gt;I can hear the screeching across the interwebs: &amp;#8220;&lt;em&gt;Wait - this is Google! They are literally Satan in disguise! No one can use products from that evil mega corporation!&lt;/em&gt;&amp;#8221;. And while I agree with the sentiment, I think going down this pure, 100% elitist approach to software &lt;em&gt;doesn&amp;#8217;t work&lt;/em&gt; with the everyday casual user. Not to mention the large swath of developers&amp;#47;designers screaming &amp;#8220;Google is bad!&amp;#8221; while working off an &lt;em&gt;Apple&lt;/em&gt; device&amp;#8230;&lt;/p&gt;
+&lt;p&gt;Hell even I, a vocal advocate for open source software and privacy, can see the great benefits to using Chrome OS as a daily driver. &lt;/p&gt;
+&lt;p&gt;Testing out Chrome OS with your non-technical friends and family could help reduce a lot of headaches found in more &amp;#8220;popular&amp;#8221; systems. That doesn&amp;#8217;t mean advanced users have to switch over. Use what works the best for you. For my immediate family members and social circles, I have nothing but positive things to say about Chrome OS.&lt;/p&gt;
+&lt;p&gt;I have no crystal ball to see what the future of Chrome OS holds but it looks pretty promising to me.&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;&amp;#8220;Users&amp;#8221; referring to those mainly using their devices for word documents, spread sheets, media consumption, programming, messaging, minor interactivity (no heavy video or production editing)&lt;/li&gt;
+&lt;li&gt;These updates go unnoticed, compared to that of MacOS or Windows&amp;#8230;&lt;/li&gt;
+&lt;li&gt;Your mileage may vary depending on how much RAM you have on your device&lt;/li&gt;
+&lt;li&gt;Although, Stadia&amp;#8217;s current game selection leaves a lot to be desired&lt;/li&gt;
+&lt;/ol&gt;</content>
+ <link href="https://btxx.org/posts/future-os-google"/>
+ <id>https://btxx.org/posts/future-os-google</id>
+ <updated>2022-01-06T10:00:00Z</updated>
+ <published>2022-01-06T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Simplifying the Craigslist Gallery</title>
+ <content type="html">&lt;h1 id=&quot;simplifying-the-craigslist-gallery&quot;&gt;Simplifying the Craigslist Gallery&lt;/h1&gt;
+&lt;p&gt;2022-10-03&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;This article was updated on October 11, 2022&lt;/strong&gt;&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m a big fan of &lt;a href=&quot;https://craigslist.org&quot;&gt;craigslist.org&lt;/a&gt; and the overall UX used throughout their application. My own website is an ever-changing example of &amp;#8220;brutalist&amp;#8221; or minimalist design, so I&amp;#8217;m always inspired by existing web apps out in the wild using the same principles.&lt;/p&gt;
+&lt;p&gt;One nitpick I have with the current craigslist design is their approach to image galleries inside their listings. They use a chunk of bloated JavaScript (more than &lt;code&gt;380kB&lt;/code&gt; total) to render something as simple as a collection of images. This seems like overkill to me.&lt;/p&gt;
+&lt;h2 id=&quot;simplifying-things&quot;&gt;Simplifying Things&lt;/h2&gt;
+&lt;p&gt;My first suggestion would be to remove JavaScript altogether. We can replicate most of the required features with just HTML &amp;#38; CSS. Let&amp;#8217;s start with our core HTML structure:&lt;/p&gt;
+&lt;h3 id=&quot;html&quot;&gt;HTML&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;gallery-wrapper&quot;&amp;#62;
+ &amp;#60;div class=&quot;full-size&quot;&amp;#62;
+ &amp;#60;a name=&quot;p1&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;100&amp;#47;400&quot; alt=&quot;Picture 1&quot; class=&quot;gallery-item&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;a name=&quot;p2&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;101&amp;#47;400&quot; alt=&quot;Picture 2&quot; class=&quot;gallery-item&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;a name=&quot;p3&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;106&amp;#47;400&quot; alt=&quot;Picture 3&quot; class=&quot;gallery-item&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;thumbnails&quot;&amp;#62;
+ &amp;#60;a href=&quot;#p1&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;100&amp;#47;100&quot; alt=&quot;Picture 1 Thumbnail&quot; class=&quot;thumbnail-1&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;a href=&quot;#p2&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;101&amp;#47;100&quot; alt=&quot;Picture 2 Thumbnail&quot; class=&quot;thumbnail-2&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;a href=&quot;#p3&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;106&amp;#47;100&quot; alt=&quot;Picture 3 Thumbnail&quot; class=&quot;thumbnail-3&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;the-css&quot;&gt;The CSS&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Parent container for the buttons *&amp;#47;
-.buttons-container {
- background: #E0E9EE;
- border-radius: 5px;
- display: flex;
- padding: 20px;
- margin: 0 auto;
- max-width: 300px;
- width: 100%;
+&lt;p&gt;Here we are placing the full-size gallery images directly inside a single &lt;code&gt;div.full-size&lt;/code&gt; as - you guessed it - &lt;code&gt;img&lt;/code&gt; elements. This already helps us avoid the pitfall of building out spaghetti &lt;code&gt;div&lt;/code&gt; containers.&lt;/p&gt;
+&lt;p&gt;Below this parent container we have another element, &lt;code&gt;div.thumbnails&lt;/code&gt;, which will be used for our separate, smaller thumbnail versions of our main images. The most important items to note are the associated &lt;code&gt;ahref&lt;/code&gt; elements surrounding each &lt;code&gt;img&lt;/code&gt; element. By setting the &lt;code&gt;id&lt;/code&gt; parameter on our thumbnails to match that of the &lt;code&gt;name&lt;/code&gt; on our full-sized images, we can &amp;#8220;scroll&amp;#8221; the proper image into view without the need for JavaScript.&lt;/p&gt;
+&lt;p&gt;Now for the &lt;em&gt;fancy&lt;/em&gt; stuff - the CSS!&lt;/p&gt;
+&lt;h3 id=&quot;css&quot;&gt;CSS&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;.gallery-wrapper {
+ position: relative;
}
-
-&amp;#47;*Shared button styles *&amp;#47;
-button {
- appearance: none;
- border: 0;
- border-radius: 5px;
- color: #fff;
- cursor: pointer;
- display: inline-block;
- font-size: 14px;
- font-weight: bold;
- padding: 15px 20px;
- width: 50%;
+.gallery-wrapper:before {
+ background: rgba(255,255,255,0.8);
+ content: &quot;Scroll &amp;#47; Swipe 🡢&quot;;
+ display: block;
+ padding: 5px;
+ position: relative;
}
-&amp;#47;* Sign up button *&amp;#47;
-button:first-child {
- background: #2FBC3D;
- margin-right: 10px;
+.full-size {
+ display: flex;
+ scroll-snap-type: x mandatory;
+ margin-bottom: 10px;
+ max-width: 400px;
+ overflow-x: scroll;
+}
+.full-size .gallery-item {
+ scroll-snap-align: start;
}
-&amp;#47;* Log in button *&amp;#47;
-button:last-child {
- background: #459BCF;
+.thumbnails img {
+ cursor: pointer;
+ margin-right: 10px;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;adding-simple-improvements&quot;&gt;Adding simple improvements&lt;/h2&gt;
-&lt;p&gt;Gradients (not solely on their own mind you) within UI systems were initially used to help humans make connections with their analog counterparts. Something like toggles or switches matching those found in the real world, allowed users to mentally connect what that element&amp;#8217;s function did almost instantly. &lt;/p&gt;
-&lt;p&gt;Be warned not to confuse this with skeuomorphic design - an element sharing similar qualities as it&amp;#8217;s analog sibling does not instantly make it so.&lt;/p&gt;
-&lt;p&gt;If you ever run into a designer who rolls their eyes or scoffs at you for proposing the use of something such as gradients (in a tactful way, of course) it is safe to assume they have been brainwashed by the modern design hive-mind.&lt;/p&gt;
-&lt;p&gt;To disregard the use of gradients simply because the belief is &amp;#8220;gradients are bad&amp;#8221; is idiotic. Worse still is to do so based on the belief that &amp;#8220;gradients aren&amp;#8217;t &lt;em&gt;in&lt;/em&gt; right now&amp;#8221;. As a designer, your job is to design a beautiful and &lt;em&gt;usable&lt;/em&gt; product - not win high-fives among your peers. &amp;#47;end rant.&lt;/p&gt;
-&lt;h3 id=&quot;adding-subtle-gradients&quot;&gt;Adding subtle gradients&lt;/h3&gt;
-&lt;p&gt;When gradients are implemented properly, most users won&amp;#8217;t even be aware of their presence. The difference in color (specifically on buttons in this example) helps give the illusion of a light source in the interface, which designers can use to their advantage (ie. pull more attention to elements by &amp;#8220;lifting&amp;#8221; them forward on the page).&lt;/p&gt;
-&lt;h3 id=&quot;the-subtly-improved-css&quot;&gt;The subtly improved CSS&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Sign up button *&amp;#47;
-button:first-child {
- background-image: linear-gradient(-180deg, #1EB52A 0%, #0D941C 100%);
+&lt;p&gt;Okay, so it isn&amp;#8217;t &lt;em&gt;that&lt;/em&gt; fancy. It&amp;#8217;s actually very basic, which is exactly what we were going for. The images are &amp;#8220;stacked&amp;#8221; inline thanks to the parent container being set to &lt;code&gt;display: flex&lt;/code&gt;, even though it has a set width of &lt;code&gt;600px&lt;/code&gt;. The included &lt;code&gt;scroll-snap-type: x mandatory&lt;/code&gt; tells the browser to allow users to scroll&amp;#47;swipe horizontally through the parent container.&lt;/p&gt;
+&lt;p&gt;The last important piece of this CSS is the &lt;code&gt;scroll-snap-align: start&lt;/code&gt; added to the individual image elements. This parameter &lt;em&gt;snaps&lt;/em&gt; the next image into the starting position of the parent container on scroll, giving a behavior users have come to expect from media galleries.&lt;/p&gt;
+&lt;p&gt;You will also see the included &lt;code&gt;:before&lt;/code&gt; pseudo element attached to the main &lt;code&gt;.gallery-wrapper&lt;/code&gt; element. This isn&amp;#8217;t &lt;em&gt;required&lt;/em&gt; but it certainly helps from a UX standpoint.&lt;/p&gt;
+&lt;h2 id=&quot;live-demo&quot;&gt;Live Demo&lt;/h2&gt;
+&lt;p&gt;Check out the embedded CodePen below to see it in action. More functionality could always be built on top of this, such as rendering all images dynamically on &amp;#8220;build&amp;#8221;, but for a starting point I think it&amp;#8217;s great.&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/ExLRyXz&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/gallery"/>
+ <id>https://btxx.org/posts/gallery</id>
+ <updated>2022-10-03T10:00:00Z</updated>
+ <published>2022-10-03T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Applying Email-Based Git Patches in Evolution on Linux</title>
+ <content type="html">&lt;h1 id=&quot;applying-email-based-git-patches-in-evolution-on-linux&quot;&gt;Applying Email-Based Git Patches in Evolution on Linux&lt;/h1&gt;
+&lt;p&gt;2023-04-25&lt;/p&gt;
+&lt;p&gt;Users who work with git patches through email most likely use a terminal-based program such as &lt;code&gt;aerc&lt;/code&gt; or &lt;code&gt;mutt&lt;/code&gt;. CLI email clients tend to have built-in support for easily applying patches directly to their local repos. But what about people who prefer to use graphical email apps?&lt;/p&gt;
+&lt;p&gt;Lucky for us, it is actually fairly simple to replicate a similar workflow to that of a CLI client. In this example I will be focusing on the Evolution email client, but the core principles should work in most other GUIs.&lt;/p&gt;
+&lt;h2 id=&quot;the-basics&quot;&gt;The Basics&lt;/h2&gt;
+&lt;blockquote&gt;
+&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The following assumes you already have &lt;code&gt;git&lt;/code&gt; installed and setup on your existing system.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;I find it best to first create a top-level folder on your system named &lt;code&gt;patches&lt;/code&gt;. We will use this folder as a temporary location for reviewing any &lt;code&gt;git&lt;/code&gt; patches submitted via email. I normally place this under &lt;code&gt;&amp;#47;home&amp;#47;&amp;#60;username&amp;#62;&amp;#47;patches&lt;/code&gt;.&lt;/p&gt;
+&lt;p&gt;Next, locate the email patch in Evolution and right-click on it. Select &amp;#8220;Save as mbox&amp;#8230;&amp;#8221; and place this file inside your newly created &lt;code&gt;patches&lt;/code&gt; folder.&lt;/p&gt;
+&lt;p&gt;Now simply open your terminal, navigate to your project and run:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;git am &amp;#60;path-to-patches-folder&amp;#62;&amp;#47;&amp;#60;patch-filename&amp;#62;.mbox
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;This should apply the patch directly to your project without issue. You are now free to test these changes locally. If everything looks good, you&amp;#8217;re able to instantly push these changes remotely.&lt;/p&gt;
+&lt;p&gt;Done and done.&lt;/p&gt;
+&lt;p&gt;Feel free to purge your &lt;code&gt;patches&lt;/code&gt; folder regularly or keep them around for future reference if you prefer!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/git-patches"/>
+ <id>https://btxx.org/posts/git-patches</id>
+ <updated>2023-04-25T10:00:00Z</updated>
+ <published>2023-04-25T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Goodbye CSS Preprocessors</title>
+ <content type="html">&lt;h1 id=&quot;goodbye-css-preprocessors&quot;&gt;Goodbye CSS Preprocessors&lt;/h1&gt;
+&lt;p&gt;2017-09-07&lt;/p&gt;
+&lt;p&gt;I have been using preprocessors across all my side projects since they first popped onto the scene. Sass, Stylus, LESS — you name the CSS preprocessor and I&amp;#8217;ve most likely used it because CSS preprocessors are awesome.&lt;/p&gt;
+&lt;p&gt;But that all changes moving forward. I&amp;#8217;m going back to basics with CSS. Straight vanilla, man.&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/sass-cancel_rl1fsw_c_scale,w_800.webp&quot; alt=&quot;No Sass&quot; /&gt;&lt;/p&gt;
+&lt;h2 id=&quot;why-and-who-cares&quot;&gt;Why? And who cares?&lt;/h2&gt;
+&lt;p&gt;Let&amp;#8217;s start by breaking down the main positives about preprocessors:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Nested syntax&lt;/li&gt;
+&lt;li&gt;Definable variables&lt;/li&gt;
+&lt;li&gt;Advanced mathematical functions&lt;/li&gt;
+&lt;li&gt;Reusable mixins&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;All of these features are great and I completely understand the draw (I was also sucked into the hype) - but now let&amp;#8217;s see the negatives.&lt;/p&gt;
+&lt;h2 id=&quot;1.-debugging-is-a-chore&quot;&gt;1. Debugging is a chore&lt;/h2&gt;
+&lt;p&gt;So you found some weird padding clobbering an element&amp;#8217;s default styles on line 255 of your main complied CSS file? Excellent! Now you just need to figure out which file that property comes from.&lt;/p&gt;
+&lt;p&gt;This might sound trivial or that you can fix this with rendered comments but if you ever work on a project with hundreds of Sass&amp;#47;Stylus&amp;#47;LESS files all importing and compiling into each other - it can get out of hand.&lt;/p&gt;
+&lt;p&gt;Solution: Using plain CSS makes using browser dev tools a breeze. See a bug on line 255? No problem, let me fix line 255.&lt;/p&gt;
+&lt;h2 id=&quot;2.-dependencies-for-development&quot;&gt;2. Dependencies for development&lt;/h2&gt;
+&lt;p&gt;Building a project with a preprocessor brings with it unnecessary baggage; dependencies. You&amp;#8217;ll need to be running some sort of task runner (see grunt or gulp) that will compile and minify your CSS. I see this as extra overhead both during the initial setup of the project for new team members and the testing environment.&lt;/p&gt;
+&lt;p&gt;By using plain CSS, you avoid including an extra package in your package.json file (if applicable) or having to rely on third party compilers such as codekit (although I do recommend this app).&lt;/p&gt;
+&lt;h2 id=&quot;3.-variables-mixins-become-unwieldily&quot;&gt;3. Variables &amp;#38; mixins become unwieldily&lt;/h2&gt;
+&lt;p&gt;Both variables and mixins are great in small doses, but if your project has any real size to it these helpers become a hinderance. By using comma-delimited CSS selectors you can achieve the same outcome without the horror of needing a specific preprocessor file to handle just variables and mixins.&lt;/p&gt;
+&lt;p&gt;Basic example:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;selector, selectTwo, .css-class {
+ &amp;#47;* shared styling *&amp;#47;
}
-
-&amp;#47;* Log in button *&amp;#47;
-button:last-child {
- background-image: linear-gradient(-180deg, #489FD2 0%, #0A6DAC 100%);
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;4.-welcome-to-nesting-hell&quot;&gt;4. Welcome to nesting hell&lt;/h2&gt;
+&lt;p&gt;Honestly, I&amp;#8217;ve never been a fan of nesting. From a file structure perspective it is indeed very &amp;#8220;clean&amp;#8221;, but you sacrifice that cleanliness in the final compiled production code. You&amp;#8217;re making your development environment easier to glance at and work through at the cost of your production-ready, customer facing code.&lt;/p&gt;
+&lt;p&gt;You also run into another big no-no in my eyes: extreme selector specificity. The DOM target search starts to get out of control once you start having classes and selectors building up towards 10 or more steps.&lt;/p&gt;
+&lt;p&gt;Bad:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;body #home .container .modal nav .inner-nav &amp;#62; ul &amp;#62; li &amp;#62; a {
+ color: red;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;more-depth-light&quot;&gt;More depth &amp;#38; light&lt;/h2&gt;
-&lt;p&gt;With our subtle gradients we are closer to creating a solid contrast between interactive elements, but we can improve this even further. By adding some more depth with a harder light source and more pronounced outlines, we allow the button elements to stand out on their own more strongly.&lt;/p&gt;
-&lt;p&gt;This is fairly easy to accomplish with CSS using the very basic &lt;code&gt;box-shadow&lt;/code&gt;, &lt;code&gt;text-shadow&lt;/code&gt; and &lt;code&gt;border&lt;/code&gt; properties:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Parent container *&amp;#47;
-.buttons-container {
- background-image: linear-gradient(0deg, #BBC6CD 3%, #E2EBF0 100%);
- border: 1px solid #8D8D8D;
- box-shadow: 0 2px 4px 0 rgba(42,42,42,0.40), inset 0 1px 3px 0 rgba(255,255,255,0.50);
+&lt;p&gt;Good:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.inner-nav a {
+ color: red;
}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Don&amp;#8217;t forget the amount of work needed to override styling with such deep selector specificity. That&amp;#8217;s where you end up diving into the world of !important tags.&lt;/p&gt;
+&lt;h2 id=&quot;final-thoughts&quot;&gt;Final thoughts&lt;/h2&gt;
+&lt;p&gt;It should go without saying that this is just my personal preference, there is no law behind this. If you use and absolutely love preprocessors - more power to you. All I suggest is using plain old vanilla CSS for your next project and see how it works out.&lt;/p&gt;
+&lt;p&gt;And do you know what I&amp;#8217;ve learned to appreciate after switching back to vanilla? CSS is more beautiful when developed in it&amp;#8217;s rawest form.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/goodbye-css-preprocessors"/>
+ <id>https://btxx.org/posts/goodbye-css-preprocessors</id>
+ <updated>2017-09-07T10:00:00Z</updated>
+ <published>2017-09-07T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Using Hamburger Menus? Try Sausage Links</title>
+ <content type="html">&lt;h1 id=&quot;using-hamburger-menus-try-sausage-links&quot;&gt;Using Hamburger Menus? Try Sausage Links&lt;/h1&gt;
+&lt;p&gt;2019-06-14&lt;/p&gt;
+&lt;p&gt;When designing medium to large sized menu navigations on the mobile web the default go-to, for some time now, has been hamburger menus. This isn&amp;#8217;t necessarily a bad thing, but there is a simpler alternative for certain use cases.&lt;/p&gt;
+&lt;p&gt;Before we get into the nitty-gritty details (and a simple demo) of the &lt;em&gt;sausage link&lt;/em&gt; concept, let&amp;#8217;s take a quick look at the pros and cons of hamburger menus.&lt;/p&gt;
+&lt;h2 id=&quot;hamburger-menus&quot;&gt;Hamburger Menus&lt;/h2&gt;
+&lt;p&gt;The concept of the &lt;a href=&quot;https://codepen.io/search/pens?q=hamburger%20menu&amp;amp;page=1&amp;amp;order=popularity&amp;amp;depth=everything&quot;&gt;hamburger menu&lt;/a&gt; isn&amp;#8217;t &lt;em&gt;horrible&lt;/em&gt; by any means, in fact it does solve a lot of problems from a visual perspective. Unfortunately, that doesn&amp;#8217;t mean it exists without some annoying flaws.&lt;/p&gt;
+&lt;h3 id=&quot;the-good&quot;&gt;The Good&lt;/h3&gt;
+&lt;ul&gt;
+&lt;li&gt;Minimizes the amount visual space the menu requires&lt;/li&gt;
+&lt;li&gt;Fairly commonplace now that a good portion of users understand it&amp;#8217;s functionality&lt;/li&gt;
+&lt;li&gt;Makes the lives of designers easier by tucking all items away on mobile 😛&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h3 id=&quot;the-bad&quot;&gt;The Bad&lt;/h3&gt;
+&lt;ul&gt;
+&lt;li&gt;Requires extra testing&amp;#47;work to ensure the menu will play nice with screen readers and keyboard-only users&lt;/li&gt;
+&lt;li&gt;Can get overly complex with the presence of children dropdown elements, help text etc.&lt;/li&gt;
+&lt;li&gt;Adds bloat to projects that might require additional JavaScript to render these menus (CSS only hamburger menus avoid this issue)&lt;/li&gt;
+&lt;li&gt;Adds an additional point of interaction from the user (click to open, then proceed to read through available options)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;As you can see, the bad points listed above aren&amp;#8217;t &lt;em&gt;that&lt;/em&gt; bad. I see them more as minor potholes along the UX journey for your end-users. A good portion of hamburger menu examples in the wild work perfectly fine and should remain as they are. However, those outliers who abuse or misuse the hamburger concept should be introduced to &lt;strong&gt;sausage links&lt;/strong&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;sausage-links&quot;&gt;Sausage Links&lt;/h2&gt;
+&lt;p&gt;I should start by mentioning that this concept is far from &lt;strong&gt;new&lt;/strong&gt;. There are a good number of websites that already implement this menu type in some form or another. The point of this post isn&amp;#8217;t to blow your mind with some new-never-thought-of navigation design. I&amp;#8217;m just trying to bring awareness to another available menu concept.&lt;/p&gt;
+&lt;p&gt;Enough chit-chat, let&amp;#8217;s take a look at sausage links in action:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/scrolling-navigation.png&quot; alt=&quot;Scrolling menu with sausage links&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/QXjjbE/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;The above CodePen adds a good amount of visual design fluff, so let&amp;#8217;s take a look at the bare minimum HTML &amp;#38; CSS needed to accomplish this menu:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;nav class=&quot;sausage-links&quot;&amp;#62;
+ &amp;#60;ul&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Homepage&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Categories&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Filter Properties&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Edit Optional Tags&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Research Papers&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Contact Our Team&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;&amp;#47;ul&amp;#62;
+&amp;#60;&amp;#47;nav&amp;#62;
-&amp;#47;* Shared button styling with text-shadows *&amp;#47;
-.buttons-container button {
- text-shadow: 0 2px 4px rgba(0,0,0,0.30);
-}
-&amp;#47;* Sign up button *&amp;#47;
-.buttons-container button:first-child {
- background-image: linear-gradient(-180deg, #1EB52A 0%, #0D941C 100%);
- border: 1px solid #0C6B16;
- box-shadow: 0 1px 5px 0 rgba(9,116,21,0.50), inset 0 -1px 6px 0 rgba(0,0,0,0.20), inset 0 1px 0 0 rgba(255,255,255,0.50), inset 0 2px 4px 0 rgba(255,255,255,0.50);
+
+&amp;#47;* Sausage Links Nav Container *&amp;#47;
+.sausage-links {
+ position: relative;
}
-&amp;#47;* Log in button *&amp;#47;
-.buttons-container button:last-child {
- background-image: linear-gradient(-180deg, #489FD2 0%, #0A6DAC 100%);
- border: 1px solid #0A486E;
- box-shadow: 0 1px 5px 0 rgba(9,85,133,0.50), inset 0 -1px 6px 0 rgba(0,0,0,0.20), inset 0 1px 0 0 rgba(255,255,255,0.50), inset 0 2px 4px 0 rgba(255,255,255,0.50);
+&amp;#47;* The left and right &quot;faded&quot; pseudo elements *&amp;#47;
+.sausage-links:before, .sausage-links:after {
+ content: &amp;#39;&amp;#39;;
+ height: calc(100% - 2em);
+ pointer-events: none;
+ position: absolute;
+ top: 1em;
+ width: 10px;
+ z-index: 2;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;For easy reference, here is the CSS styling in it&amp;#8217;s entirety:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Parent container *&amp;#47;
-.buttons-container {
- background-image: linear-gradient(0deg, #BBC6CD 3%, #E2EBF0 100%);
- border-radius: 5px;
- border: 1px solid #8D8D8D;
- box-shadow: 0 2px 4px 0 rgba(42,42,42,0.40), inset 0 1px 3px 0 rgba(255,255,255,0.50);
- display: flex;
- padding: 20px;
- margin: 0 auto;
- max-width: 300px;
- width: 100%;
+.sausage-links:before {
+ background: linear-gradient(to right, rgba(255,255,255,0) 0%, white 100%);
+ right: 0;
+}
+.sausage-links:after {
+ background: linear-gradient(to left, rgba(255,255,255,0) 0%, white 100%);
+ left: 0;
}
-&amp;#47;* Shared button styling *&amp;#47;
-button {
- appearance: none;
- border: 0;
- border-radius: 5px;
- color: #fff;
- cursor: pointer;
- display: inline-block;
- font-size: 14px;
- font-weight: bold;
- padding: 15px 20px;
- text-shadow: 0 2px 4px rgba(0,0,0,0.30);
- width: 50%;
+&amp;#47;* Basic flexbox to prevent items from breaking lines *&amp;#47;
+.sausage-links ul {
+ display: flex;
+ flex-wrap: nowrap;
+ overflow: auto;
+ -webkit-overflow-scrolling: touch;
}
-&amp;#47;* Sign up button *&amp;#47;
-button:first-child {
- background-image: linear-gradient(-180deg, #1EB52A 0%, #0D941C 100%);
- border: 1px solid #0C6B16;
- box-shadow: 0 1px 5px 0 rgba(9,116,21,0.50), inset 0 1px 0 0 rgba(255,255,255,0.50), inset 0 2px 4px 0 rgba(255,255,255,0.50);
- margin-right: 10px;
+.sausage-links ul li {
+ white-space: nowrap;
}
-&amp;#47;* Log in button *&amp;#47;
-button:last-child {
- background-image: linear-gradient(-180deg, #489FD2 0%, #0A6DAC 100%);
- border: 1px solid #0A486E;
- box-shadow: 0 1px 5px 0 rgba(9,85,133,0.50), inset 0 1px 0 0 rgba(255,255,255,0.50), inset 0 2px 4px 0 rgba(255,255,255,0.50);
+.sausage-links ul li a, .sausage-links ul li a:visited {
+ display: inline-block;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;going-even-further-with-this-ui&quot;&gt;Going even further with this UI&lt;/h2&gt;
-&lt;p&gt;This demo article only showcases how to improve on a basic button UI structure with a focus on proper hierarchy between elements.&lt;/p&gt;
-&lt;p&gt;Once completely developed, these element should support all interactive states (&lt;code&gt;hover&lt;/code&gt;, &lt;code&gt;active&lt;/code&gt;, &lt;code&gt;disabled&lt;/code&gt;) and animations to make for a more engaging experience.&lt;/p&gt;</content>
- <link href="https://btxx.org/proper-ui-hierarchy"/>
- <id>https://btxx.org/proper-ui-hierarchy</id>
- <updated>2019-02-05T10:00:00Z</updated>
- <published>2019-02-05T10:00:00Z</published>
- </entry>
- <entry>
- <title>My Cheapskate Commenting System</title>
- <content type="html">&lt;h1 id=&quot;my-cheapskate-commenting-system&quot;&gt;My Cheapskate Commenting System&lt;/h1&gt;
-&lt;p&gt;2022-02-03&lt;/p&gt;
-&lt;p&gt;My blog now has comments! Well, &lt;em&gt;kind of&lt;/em&gt;&amp;#8230;&lt;/p&gt;
-&lt;p&gt;I went down a two day long rabbit-hole trying to find the best solution for implementing comments on my static website (generated via Jekyll FYI). There are a ton of options out there and many open source models that allow you to spin up your own instance with something like DigitalOcean or AWS. But I&amp;#8217;m a cheap bastard. I refuse to spend $5&amp;#47;month on a blog mostly used for fun and one that I have zero incentive to &amp;#8220;monetize&amp;#8221;.&lt;/p&gt;
-&lt;p&gt;So, what &lt;em&gt;free&lt;/em&gt; options did this old miser have left to chose from? To my surprise, there were two solid options that initially caught my eye! Let&amp;#8217;s take a look then, shall we?&lt;/p&gt;
-&lt;h2 id=&quot;remarkbox&quot;&gt;Remarkbox&lt;/h2&gt;
-&lt;p&gt;Overall I don&amp;#8217;t have many bad things to say about &lt;a href=&quot;https://www.remarkbox.com&quot;&gt;Remarkbox&lt;/a&gt;. It looks nice, is easy to implement and runs a &amp;#8220;pay what you can&amp;#8221; pricing model. What more could you ask for?! The major issue (for me, &lt;em&gt;personally&lt;/em&gt;) is precisely &lt;strong&gt;that&lt;/strong&gt;; the free model. This makes it difficult for me to trust 100% that this system will still be around in 3-4 years. Now I know - even paid systems can shutdown unexpectedly, but I find free tier options end up shutting their doors sooner. There is an option to self-host Remarkbox, but that requires a yearly license and also comes back to the point I made about not wanting to pay for hosting&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;utterances-github-based&quot;&gt;Utterances (Github-based)&lt;/h2&gt;
-&lt;p&gt;The other major option was &lt;a href=&quot;https://utteranc.es&quot;&gt;Utterances&lt;/a&gt;. This system was almost the winner due to it&amp;#8217;s pretty great feature set:&lt;/p&gt;
+&lt;p&gt;Pretty simple, eh?&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: Thanks to &lt;a href=&quot;https://twitter.com/dany0w&quot;&gt;@dany0w&lt;/a&gt; for pointing out that I forgot to include &lt;code&gt;-webkit-overflow-scrolling: touch&lt;/code&gt; for momentum scrolling on iOS.&lt;/p&gt;
+&lt;h3 id=&quot;the-good-1&quot;&gt;The Good&lt;/h3&gt;
+&lt;ul&gt;
+&lt;li&gt;Extremely minimal amount of CSS required&lt;/li&gt;
+&lt;li&gt;Screen reader &amp;#47; keyboard-only safe&lt;/li&gt;
+&lt;li&gt;Zero JavaScript needed&lt;/li&gt;
+&lt;li&gt;No need for hacky hidden &lt;code&gt;radio&lt;/code&gt; inputs for toggling parent containers etc.&lt;/li&gt;
+&lt;li&gt;Users can see first few available options without any interaction&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h3 id=&quot;the-bad-1&quot;&gt;The Bad&lt;/h3&gt;
+&lt;ul&gt;
+&lt;li&gt;May not look the most visually appealing for certain project designs (ugly scrollbar in some instances)&lt;/li&gt;
+&lt;li&gt;Better suited for small to medium menu lists compared to massive sitemaps&lt;/li&gt;
+&lt;li&gt;Without proper fade &amp;#47; cut off visual cues, users may not understand they can scroll&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;so-should-i-use-hamburger-menus-or-sausage-links&quot;&gt;So, should I use hamburger menus or sausage links?&lt;/h2&gt;
+&lt;p&gt;That really depends on your project or overall mobile design (I know, such a helpful answer). I&amp;#8217;m sure there are even a few use cases where it would make sense to have sausage links within a toggle-based hamburger menu. The menu possibilities could be endless!&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it. I hope I&amp;#8217;ve inspired you to try out sausage links in the near future or at least made you think more deeply about mobile navigation design!&lt;/p&gt;
+&lt;p&gt;&amp;#8230;is anyone else really hungry now?&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/hamburger-menu-alternative"/>
+ <id>https://btxx.org/posts/hamburger-menu-alternative</id>
+ <updated>2019-06-14T10:00:00Z</updated>
+ <published>2019-06-14T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Stop Using Hamburger Menus (Sometimes)</title>
+ <content type="html">&lt;h1 id=&quot;stop-using-hamburger-menus-sometimes&quot;&gt;Stop Using Hamburger Menus (Sometimes)&lt;/h1&gt;
+&lt;p&gt;2023-05-05&lt;/p&gt;
+&lt;p&gt;I recently &lt;a href=&quot;https://fosstodon.org/@tdarb/110264983268249599&quot;&gt;tooted about my hatred of website hamburger menus&lt;/a&gt; which was met with a surprising amount of support from other users. It seems like most people &lt;em&gt;don&amp;#8217;t actually like hamburger menus&lt;/em&gt;. So why do we, as developers, keep using them in our products and designs? Is it our only option? Or is it because we have become conditioned to expect it?&lt;/p&gt;
+&lt;h2 id=&quot;the-core-problem-with-hamburger-menus&quot;&gt;The Core Problem with Hamburger Menus&lt;/h2&gt;
+&lt;p&gt;The biggest headache when coming across these menus on the web is the complete disregard for &lt;strong&gt;accessibility&lt;/strong&gt;. Performance and solid user experience is almost always thrown out the window in favour of a &amp;#8220;prettier&amp;#8221; design layout. You might have made the overall design &amp;#8220;cleaner&amp;#8221; for your users, but you sacrificed all usability to do so.&lt;/p&gt;
+&lt;p&gt;I challenge you to visit a webpage or web app with a hamburger menu and try to navigate solely with your keyboard and screen-readers (or better yet - try these screen readers on mobile!). Within seconds you will find a whole mess of issues. Now try the same test with JavaScript disabled&amp;#8230; Yikes.&lt;/p&gt;
+&lt;h2 id=&quot;but-i-have-no-choice&quot;&gt;&amp;#8220;But I Have No Choice!&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;I see this argument pop-up frequently when taking to design leaders or developers. I call bullshit on this excuse. You &lt;em&gt;absolutely&lt;/em&gt; have the choice to avoid implementing bad designs - that&amp;#8217;s your job! Either you&amp;#8217;re not fighting hard enough against those pushing for it, or you&amp;#8217;re just trying to build a &amp;#8220;pretty&amp;#8221; portfolio.&lt;/p&gt;
+&lt;h2 id=&quot;best-alternative-sitemap-footer&quot;&gt;Best Alternative: Sitemap Footer&lt;/h2&gt;
+&lt;p&gt;So instead of just whining about hamburger menus, I will actually offer up a solid replacement: &lt;strong&gt;sitemap footers&lt;/strong&gt;. Simply place all your website&amp;#47;application links into the bottom footer and link directly to them from your header. Be sure to also include some form of &amp;#8220;Top of the page&amp;#8221; link for quick access back to the initial scroll view.&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it. There is nothing else you need to do for this to &lt;em&gt;just work&lt;/em&gt;. It might sound oversimplified and that&amp;#8217;s because it is. Looking for an example? This very website utilizes this technique, so give it a spin! Try using just your keyboard or even better - use a screen reader. Disable JS and CSS and watch it work flawlessly still.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt;&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Keyboard navigation accessible&lt;/li&gt;
+&lt;li&gt;Excellent screen-reader support&lt;/li&gt;
+&lt;li&gt;Works on all devices&amp;#47;screens by default (no media queries!)&lt;/li&gt;
+&lt;li&gt;Stays out of the way until called upon (UX goodness)&lt;/li&gt;
+&lt;li&gt;Requires ZERO CSS or JavaScript&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;&lt;strong&gt;Cons:&lt;/strong&gt;&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Footer can become large with many links (although I &lt;em&gt;really&lt;/em&gt; don&amp;#8217;t see this as a big deal)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;no-excuse&quot;&gt;No Excuse&lt;/h2&gt;
+&lt;p&gt;There really is no excuse to still be using hamburger menus. Users expect them to be present only because we as designers have conditioned them think that way. They deserve a better experience on the web. The &lt;em&gt;least&lt;/em&gt; we can do is improve something as simple as website navigation&amp;#8230;&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/hamburgers"/>
+ <id>https://btxx.org/posts/hamburgers</id>
+ <updated>2023-05-05T10:00:00Z</updated>
+ <published>2023-05-05T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Converting HEIF Images with macOS Automator</title>
+ <content type="html">&lt;h1 id=&quot;converting-heif-images-with-macos-automator&quot;&gt;Converting HEIF Images with macOS Automator&lt;/h1&gt;
+&lt;p&gt;2023-07-21&lt;/p&gt;
+&lt;p&gt;Often times when you save or export photos from iOS to iCloud they often render themselves into &lt;code&gt;heif&lt;/code&gt; or &lt;code&gt;heic&lt;/code&gt; formats. Both macOS and iOS have no problem working with these formats, but a lot of software programs will not even recognize these filetypes. The obvious step would just be to convert them via an application or online service, right?&lt;/p&gt;
+&lt;p&gt;Not so fast! Wouldn&amp;#8217;t it be much cleaner if we could simply right-click our &lt;code&gt;heif&lt;/code&gt; or &lt;code&gt;heic&lt;/code&gt; files and convert them directly in Finder? Well, I&amp;#8217;ve got some good news for you&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;basic-requirements&quot;&gt;Basic Requirements&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;Open source&lt;/li&gt;
-&lt;li&gt;No tracking, no ads&lt;/li&gt;
-&lt;li&gt;All data stored in GitHub issues&lt;/li&gt;
-&lt;li&gt;Free!&lt;/li&gt;
+&lt;li&gt;You will need to have &lt;a href=&quot;https://homebrew.sh&quot;&gt;Homebrew&lt;/a&gt; installed&lt;/li&gt;
+&lt;li&gt;You will need to install the &lt;code&gt;libheif&lt;/code&gt; package through Homebrew: &lt;code&gt;brew install libheif&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;But take a look above at point number three. The fact that readers wishing to leave a comment are &lt;strong&gt;required to have a Github account&lt;/strong&gt;. For me, this is a non-starter. I don&amp;#8217;t want to force my audience to sign up for or sign in to &lt;em&gt;any&lt;/em&gt; account just to leave a simple comment on my humble blog. Considering a number of my readers are part of the FOSS community, this just seemed like a bad fit.&lt;/p&gt;
-&lt;h2 id=&quot;finding-inspiration&quot;&gt;Finding Inspiration&lt;/h2&gt;
-&lt;p&gt;I absolutely love the &lt;a href=&quot;https://solar.lowtechmagazine.com&quot;&gt;solar.lowtechmagazine.com&lt;/a&gt; website (both for it&amp;#8217;s content and design) and indirectly found my comment system inspiration there. Okay let&amp;#8217;s be honest, I completely stole their commenting system &amp;#8220;concept&amp;#8221;. Imitation is the sincerest form of flattery, right?&lt;/p&gt;
-&lt;h2 id=&quot;my-comment-system-is&quot;&gt;My Comment System is&amp;#8230;&lt;/h2&gt;
-&lt;p&gt;E-mail. It&amp;#8217;s just &lt;strong&gt;plain e-mail&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ve setup a basic &lt;code&gt;comment-prompt.html&lt;/code&gt; in my &lt;code&gt;_includes&lt;/code&gt; folder that contains a &lt;code&gt;mailto&lt;/code&gt; action button[^1]:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;a href=&quot;mailto:myemail.com?subject=RE: { { page.title | uri_escape } }&quot;&amp;#62;
- &amp;#60;button&amp;#62;Comment via email&amp;#60;&amp;#47;button&amp;#62;
-&amp;#60;&amp;#47;a&amp;#62;
+&lt;h2 id=&quot;creating-our-custom-automator-script&quot;&gt;Creating our custom Automator script&lt;/h2&gt;
+&lt;p&gt;For this example script we are going to convert the image to JPG format. You can freely change this to whatever format you wish (PNG, TIFF, etc.). We&amp;#8217;re just keeping things basic for this tutorial. Don&amp;#8217;t worry if you&amp;#8217;ve never worked with Automator before because setting things up is incredibly simple.&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Open the macOS Automator from the Applications folder&lt;/li&gt;
+&lt;li&gt;Select &lt;code&gt;Quick Option&lt;/code&gt; from the first prompt&lt;/li&gt;
+&lt;li&gt;Set &amp;#8220;Workflow receives current&amp;#8221; to &lt;code&gt;image files&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Set the label &amp;#8220;in&amp;#8221; to &lt;code&gt;Finder&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;From the left pane, select &amp;#8220;Library &amp;#62; Utilities&amp;#8221;&lt;/li&gt;
+&lt;li&gt;From the presented choices in the next pane, drag and drop &lt;code&gt;Run Shell Script&lt;/code&gt; into the far right pane&lt;/li&gt;
+&lt;li&gt;Set the area &amp;#8220;Pass input&amp;#8221; to &lt;code&gt;as arguments&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Enter the following code below as your script and type &lt;code&gt;⌘-S&lt;/code&gt; to save (name it something like &amp;#8220;Convert HEIC&amp;#47;HEIF to JPG&amp;#8221;)&lt;/li&gt;
+&lt;/ol&gt;
+&lt;pre&gt;&lt;code&gt;for f in &quot;$@&quot;
+do
+&amp;#47;opt&amp;#47;homebrew&amp;#47;bin&amp;#47;heif-convert &quot;$f&quot; &quot;${f%.*}.jpg&quot;
+done
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This include template is placed at the bottom of every article automatically. Then, that action pulls in the article&amp;#8217;s title as the e-mail subject line in the user&amp;#8217;s default mailing app. That&amp;#8217;s it.&lt;/p&gt;
-&lt;h2 id=&quot;pros&quot;&gt;Pros&lt;/h2&gt;
+&lt;h2 id=&quot;making-edits&quot;&gt;Making Edits&lt;/h2&gt;
+&lt;p&gt;If you ever have the need to edit this script (for example, changing the default format to &lt;code&gt;png&lt;/code&gt;), you will need to navigate to your &lt;code&gt;~&amp;#47;Library&amp;#47;Services&lt;/code&gt; folder and open your custom heif Quick Action in the Automator application. &lt;/p&gt;
+&lt;p&gt;Simple as that. Happy converting!&lt;/p&gt;
+&lt;p&gt;If you&amp;#8217;re interested, I also have some other Automator scripts available:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;No third party application needed&lt;/li&gt;
-&lt;li&gt;Privacy focused&lt;/li&gt;
-&lt;li&gt;More direct interaction with my audience&amp;#47;readers&lt;/li&gt;
-&lt;li&gt;Builds a much more close-knit community&lt;/li&gt;
-&lt;li&gt;Completely free!&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;cons&quot;&gt;Cons&lt;/h2&gt;
+&lt;li&gt;&lt;a href=&quot;/batch-webp-conversion/&quot;&gt;Batch Converting Images to webp with macOS Automator&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;/macos-convert-to-html/&quot;&gt;Convert Files to HTML with macOS Automator Quick Actions&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;</content>
+ <link href="https://btxx.org/posts/heif"/>
+ <id>https://btxx.org/posts/heif</id>
+ <updated>2023-07-21T10:00:00Z</updated>
+ <published>2023-07-21T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Goodbye WordPress, Hello Jekyll (Again)</title>
+ <content type="html">&lt;h1 id=&quot;goodbye-wordpress-hello-jekyll-again&quot;&gt;Goodbye WordPress, Hello Jekyll (Again)&lt;/h1&gt;
+&lt;p&gt;2020-08-13&lt;/p&gt;
+&lt;p&gt;For the past four months this blog has been running on WordPress - but that ended today. I&amp;#8217;ve officially switched back over to Jekyll. I&amp;#8217;m not going to spend too much time delving into &lt;em&gt;why&lt;/em&gt; I made the transition back, but I&amp;#8217;ll leave some cliff-notes for any interested parties.&lt;/p&gt;
+&lt;h2 id=&quot;the-big-issues-with-my-wordpress-setup&quot;&gt;The big issues with &lt;em&gt;my&lt;/em&gt; WordPress setup&lt;/h2&gt;
+&lt;p&gt;I have to state that these problems existed based on &lt;em&gt;my own&lt;/em&gt; setup &amp;#47; hosting choices with WordPress - this is not a direct reflection of WP itself.&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;strong&gt;No theme editor access&lt;/strong&gt;
&lt;ul&gt;
-&lt;li&gt;Must be manually curated and posted&lt;/li&gt;
-&lt;li&gt;No notifications&lt;/li&gt;
-&lt;li&gt;No &amp;#8220;built-in&amp;#8221; reply functionality&lt;/li&gt;
-&lt;li&gt;Has the potential to become unwieldy&amp;#8230;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;fun-experiment&quot;&gt;Fun Experiment&lt;/h2&gt;
-&lt;p&gt;I figure either way, this will be an interesting experiment. I don&amp;#8217;t know my audience size (since I don&amp;#8217;t use any type of tracking) but I assume it&amp;#8217;s very small. Those willing to write me a personal e-mail in order to share their thoughts on my stupid little blog probably have something interesting to say. At least I hope so. &lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s see how this thing goes&amp;#8230;&lt;/p&gt;</content>
- <link href="https://btxx.org/poormans-comment-system"/>
- <id>https://btxx.org/poormans-comment-system</id>
- <updated>2022-02-03T10:00:00Z</updated>
- <published>2022-02-03T10:00:00Z</published>
- </entry>
- <entry>
- <title>Poor Man's CSS Full-Bleed Layout</title>
- <content type="html">&lt;h1 id=&quot;poor-mans-css-full-bleed-layout&quot;&gt;Poor Man&amp;#8217;s CSS Full-Bleed Layout&lt;/h1&gt;
-&lt;p&gt;2020-10-07&lt;/p&gt;
-&lt;p&gt;I recently came across the very well written and interesting article, &lt;a href=&quot;https://joshwcomeau.com/css/full-bleed/&quot;&gt;Full-Bleed Layout Using CSS Grid&lt;/a&gt;, while browsing my daily designer feeds. I won&amp;#8217;t go into the post&amp;#8217;s specifics here (I recommend you read the article for yourself) but it details how to render full-bleed element effects utilizing the CSS &lt;code&gt;grid&lt;/code&gt; property.&lt;/p&gt;
-&lt;p&gt;While the approach in the article works perfectly fine, I thought to myself, &amp;#8220;Is there not a simpler, more backwards compatible way to do this?&amp;#8221;. Indeed there is.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Don&amp;#8217;t care about the tutorial?&lt;/strong&gt; &lt;a href=&quot;#live-demo&quot;&gt;Skip down to the live demo&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;make-the-web-backwards-compatible&quot;&gt;Make the Web Backwards Compatible&lt;/h2&gt;
-&lt;p&gt;I try my best when creating specific element designs or layouts to have everything render consistently across almost &lt;em&gt;all&lt;/em&gt; browsers. This tends to include the obvious front-runners: Chrome, Firefox, Safari - but I also try my best not to ignore the oldies: IE11, Edge and older versions of Opera. I believe if most web designers even loosely followed this concept we wouldn&amp;#8217;t be stringing together barely implemented CSS properties and hacking together polyfills for all the unsupported browsers. Just my two cents.&lt;/p&gt;
-&lt;p&gt;What does this have to do with full-bleed exactly? Well, the CSS we will be using in this demo is fully compatible with pretty much &lt;em&gt;any browser&lt;/em&gt; that can run the basic version of CSS rendering. If the browser you&amp;#8217;re targeting supports &lt;code&gt;max-width&lt;/code&gt; and &lt;code&gt;margins&lt;/code&gt; - then have no fear, full-bleeds are here.&lt;/p&gt;
-&lt;h2 id=&quot;our-html-example&quot;&gt;Our HTML Example&lt;/h2&gt;
-&lt;p&gt;Let&amp;#8217;s create a single-column blog layout for this example. We will include a heading, some paragraphs, an image, and a blockquote to keep it simple:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;main&amp;#62;
- &amp;#60;article&amp;#62;
- &amp;#60;h1&amp;#62;Main Heading&amp;#60;&amp;#47;h1&amp;#62;
- &amp;#60;p&amp;#62;Et non consequat eiusmod minim fugiat. Magna duis veniam ex reprehenderit occaecat sit. Nisi ut ex aliquip magna enim.&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Laborum repellat ab earum commodi, consequuntur totam adipisci doloremque asperiores quae at quia non temporibus ipsam voluptate voluptatem ipsa nostrum suscipit aliquid!&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;img src=&amp;#39;https:&amp;#47;&amp;#47;images.unsplash.com&amp;#47;photo-1569083692634-f8db90c093ef?ixlib=rb-1.2.1&amp;#38;q=85&amp;#38;fm=jpg&amp;#38;crop=entropy&amp;#38;cs=srgb&amp;#38;ixid=eyJhcHBfaWQiOjE0NTg5fQ&amp;#39; alt=&quot;Some Image&quot;&amp;#62;
- &amp;#60;p&amp;#62;Ex excepteur Lorem reprehenderit dolore in consequat voluptate commodo ipsum consequat ea et. Nisi tempor proident anim tempor. Laboris est sunt cillum deserunt culpa proident cillum laborum voluptate. Est exercitation Lorem reprehenderit eu ipsum nisi et.&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus dicta perspiciatis vel ex officiis, nisi optio nihil aspernatur exercitationem sed nobis architecto maxime eaque omnis eos, repellendus necessitatibus provident explicabo?&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid placeat ipsum totam, facere animi tenetur explicabo at veniam, culpa vitae debitis hic modi velit cum perferendis minima quos sit quisquam.&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;blockquote&amp;#62;
- &amp;#60;p&amp;#62;To be, or not to be, that is the question:&amp;#60;br&amp;#62;Whether &amp;#39;tis nobler in the mind to suffer&amp;#60;br&amp;#62;The slings and arrows of outrageous fortune,&amp;#60;br&amp;#62;Or to take Arms against a Sea of troubles,&amp;#60;br&amp;#62;And by opposing end them: to die, to sleep;&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;cite&amp;#62;- Some guy&amp;#60;&amp;#47;cite&amp;#62;
- &amp;#60;&amp;#47;blockquote&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus dicta perspiciatis vel ex officiis, nisi optio nihil aspernatur exercitationem sed nobis architecto maxime eaque omnis eos, repellendus necessitatibus provident explicabo?&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid placeat ipsum totam, facere animi tenetur explicabo at veniam, culpa vitae debitis hic modi velit cum perferendis minima quos sit quisquam.&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;article&amp;#62;
-&amp;#60;&amp;#47;main&amp;#62;
+&lt;li&gt;I was using EasyWP (Namecheap etc.) for my web hosting. It only cost me $3.88&amp;#47;month, which was very cheap for the quality of service provided. Unfortunately, this low price came with some setbacks. EasyWP doesn&amp;#8217;t allow users to edit &lt;code&gt;header.php&lt;/code&gt; or &lt;code&gt;functions.php&lt;/code&gt; files directly in the theme editor. Having to resort to FTP for simple one-line change was annoying.&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Super cache&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;Caching web pages is wonderful for users on subsequent visits, but EasyWP took this to the extreme. Making minor styling updates sometimes required code changes in the &lt;code&gt;header.php&lt;/code&gt; file directly in order to persist (see problem with editing these files in point #1).&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Monthly cost&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;As I stated above, spending $3.88 on a monthly basis was peanuts in the grand scheme of things. Still, an extra monthly subscription for a side hobby seemed overkill for my use case.&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Future proofing&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;In the end, having the core website generate itself into static files means it will stand the test of time on the interwebs. HTML &amp;#38; CSS FTW.&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;what-i-lost-in-the-switch&quot;&gt;What I lost in the switch&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;strong&gt;Comments&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;I loved the concept of owing &amp;#47; hosting comments directly on each post but this seemed like a fair trade-off when compared to the positives listed above. I might circle back around and use something like &lt;a href=&quot;https://commento.io/&quot;&gt;Commento&lt;/a&gt; or &lt;a href=&quot;https://github.com/imsun/gitment&quot;&gt;Gitment&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Blog anywhere&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;Having the ability to hop on any machine, log in to my site and blog was awesome. Over time though, I found myself not doing this very often. Most times when composing an article I found I would write it out, edit and publish all in one sitting. Cool concept - just not as useful.&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;moving-forward&quot;&gt;Moving forward&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve learned to stick with what keeps me productive (and in this case, keeps me writing consistently). I still love WordPress and won&amp;#8217;t hesitate to reach for it when the need arrives. Unfortunately, it seems my personal website isn&amp;#8217;t one of those instances.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/hello-jekyll"/>
+ <id>https://btxx.org/posts/hello-jekyll</id>
+ <updated>2020-08-13T10:00:00Z</updated>
+ <published>2020-08-13T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>HTML Dark Mode</title>
+ <content type="html">&lt;h1 id=&quot;html-dark-mode&quot;&gt;HTML Dark Mode&lt;/h1&gt;
+&lt;p&gt;2023-04-11&lt;/p&gt;
+&lt;p&gt;I wrote an article back in 2021 called &lt;a href=&quot;https://bt.ht/lazy-dev-dark-mode/&quot;&gt;The Lazy Developer&amp;#8217;s Dark
+Mode&lt;/a&gt; where I explained how to implement
+a very basic &amp;#8220;dark mode&amp;#8221; by using the &lt;code&gt;prefers-color-scheme&lt;/code&gt; CSS attribute.
+This stills works perfectly fine, and in fact there is a cleaner variation of
+this created by &lt;em&gt;jacksonchen666&lt;/em&gt;: &lt;a href=&quot;https://jacksonchen666.com/posts/2023-04-09/13-47-16/&quot;&gt;These 3 Lines of CSS Will Give You Dark Mode for Free&lt;/a&gt;.&lt;/p&gt;
+&lt;p&gt;But today I wanted to show how to add dark mode functionality to a website
+without &lt;em&gt;any CSS at all&lt;/em&gt;.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;meta name=&quot;color-scheme&quot; content=&quot;dark light&quot;&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This works well as it is, but we will need to &amp;#8220;section&amp;#8221; off our different areas of content based on whether we want them &lt;code&gt;full-bleed&lt;/code&gt; or not. We do this with - you guessed it - the &lt;code&gt;section&lt;/code&gt; element. In this demo we want the image and blockquote to become &lt;code&gt;full-bleed&lt;/code&gt; when rendered, so we&amp;#8217;ll add the &lt;code&gt;full-bleed&lt;/code&gt; class to those sections for now (more on that later):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;main&amp;#62;
- &amp;#60;article&amp;#62;
- &amp;#60;section&amp;#62;
- &amp;#60;h1&amp;#62;Main Heading&amp;#60;&amp;#47;h1&amp;#62;
- &amp;#60;p&amp;#62;Et non consequat eiusmod minim fugiat. Magna duis veniam ex reprehenderit occaecat sit. Nisi ut ex aliquip magna enim.&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Laborum repellat ab earum commodi, consequuntur totam adipisci doloremque asperiores quae at quia non temporibus ipsam voluptate voluptatem ipsa nostrum suscipit aliquid!&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;section&amp;#62;
- &amp;#60;section class=&quot;full-bleed&quot;&amp;#62;
- &amp;#60;img src=&amp;#39;https:&amp;#47;&amp;#47;images.unsplash.com&amp;#47;photo-1569083692634-f8db90c093ef?ixlib=rb-1.2.1&amp;#38;q=85&amp;#38;fm=jpg&amp;#38;crop=entropy&amp;#38;cs=srgb&amp;#38;ixid=eyJhcHBfaWQiOjE0NTg5fQ&amp;#39; alt=&quot;Some Image&quot;&amp;#62;
- &amp;#60;&amp;#47;section&amp;#62;
- &amp;#60;section&amp;#62;
- &amp;#60;p&amp;#62;Ex excepteur Lorem reprehenderit dolore in consequat voluptate commodo ipsum consequat ea et. Nisi tempor proident anim tempor. Laboris est sunt cillum deserunt culpa proident cillum laborum voluptate. Est exercitation Lorem reprehenderit eu ipsum nisi et.&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus dicta perspiciatis vel ex officiis, nisi optio nihil aspernatur exercitationem sed nobis architecto maxime eaque omnis eos, repellendus necessitatibus provident explicabo?&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid placeat ipsum totam, facere animi tenetur explicabo at veniam, culpa vitae debitis hic modi velit cum perferendis minima quos sit quisquam.&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;section&amp;#62;
- &amp;#60;section class=&quot;full-bleed&quot;&amp;#62;
- &amp;#60;blockquote&amp;#62;
- &amp;#60;p&amp;#62;To be, or not to be, that is the question:&amp;#60;br&amp;#62;Whether &amp;#39;tis nobler in the mind to suffer&amp;#60;br&amp;#62;The slings and arrows of outrageous fortune,&amp;#60;br&amp;#62;Or to take Arms against a Sea of troubles,&amp;#60;br&amp;#62;And by opposing end them: to die, to sleep;&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;cite&amp;#62;- Some guy&amp;#60;&amp;#47;cite&amp;#62;
- &amp;#60;&amp;#47;blockquote&amp;#62;
- &amp;#60;&amp;#47;section&amp;#62;
- &amp;#60;section&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus dicta perspiciatis vel ex officiis, nisi optio nihil aspernatur exercitationem sed nobis architecto maxime eaque omnis eos, repellendus necessitatibus provident explicabo?&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid placeat ipsum totam, facere animi tenetur explicabo at veniam, culpa vitae debitis hic modi velit cum perferendis minima quos sit quisquam.&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;section&amp;#62;
- &amp;#60;&amp;#47;article&amp;#62;
-&amp;#60;&amp;#47;main&amp;#62;
+&lt;p&gt;Add that line inside the &lt;code&gt;head&lt;/code&gt; tags on your HTML files and you&amp;#8217;re good to go.&lt;/p&gt;
+&lt;h2 id=&quot;minor-caveat&quot;&gt;Minor Caveat&lt;/h2&gt;
+&lt;p&gt;I mentioned this same issue on the official &lt;a href=&quot;https://barf.bt.ht/dark-mode/&quot;&gt;barf blog
+post&lt;/a&gt; but it doesn&amp;#8217;t hurt to repeat it here.
+Safari still has minor ahref &amp;#47; link color issue when defaulting to browser dark
+mode. If supporting that browser is a deal-breaker for you, I suggest looking
+at my &lt;a href=&quot;https://bt.ht/safari-default-dark-mode/&quot;&gt;hacky solution&lt;/a&gt;.&lt;/p&gt;
+&lt;p&gt;Hopefully this helps others to add dark mode to their existing websites and
+projects with minimal effort!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/html-dark-mode"/>
+ <id>https://btxx.org/posts/html-dark-mode</id>
+ <updated>2023-04-11T10:00:00Z</updated>
+ <published>2023-04-11T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Write HTML Like It's 1999</title>
+ <content type="html">&lt;h1 id=&quot;write-html-like-its-1999&quot;&gt;Write HTML Like It&amp;#8217;s 1999&lt;/h1&gt;
+&lt;p&gt;2019-06-06&lt;/p&gt;
+&lt;p&gt;I am sure it&amp;#8217;s safe to say that most developers love to use the latest and greatest web tools available. Helpful resources such as preprocessors, template engines, syntax formatters - you name it - can all make a developer&amp;#8217;s life easier. Unfortunately, this sometimes comes at a cost: the HTML structure.&lt;/p&gt;
+&lt;p&gt;This is why I try my best to write HTML as if I&amp;#8217;m stuck with the constraints of the 90s (within reason). What does this mean exactly? It means that &lt;code&gt;tables&lt;/code&gt; are coded with &lt;code&gt;table&lt;/code&gt; elements. Navigations are coded with &lt;code&gt;nav&lt;/code&gt; and ordered&amp;#47;unordered list-items. Form inputs are not set with &lt;code&gt;display: none&lt;/code&gt; and replaced with custom containers. You know, &lt;em&gt;semantic&lt;/em&gt; HTML.&lt;/p&gt;
+&lt;p&gt;To be clear, I&amp;#8217;m not advocating for creating projects that &lt;em&gt;look&lt;/em&gt; like they belong in the 1990s. I would just prefer developers &amp;#47; designers be more conscious of their HTML &lt;em&gt;skeleton&lt;/em&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;bad-html-practices&quot;&gt;Bad HTML practices&lt;/h2&gt;
+&lt;p&gt;Let&amp;#8217;s do a very simple breakdown of some of the more common HTML no-nos:&lt;/p&gt;
+&lt;h2 id=&quot;good-html-practices&quot;&gt;Good HTML practices&lt;/h2&gt;
+&lt;p&gt;So what should you do in place of these bad HTML implementations?&lt;/p&gt;
+&lt;h2 id=&quot;my-basic-structure-test&quot;&gt;My basic &amp;#8220;structure&amp;#8221; test&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve found a pretty simple starting point for testing the &lt;em&gt;bones of a website&lt;/em&gt; by using the following single line of CSS:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;* {
+ border: 2px dotted black;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it for the HTML!&lt;/p&gt;
-&lt;h2 id=&quot;the-magic-css-not-really&quot;&gt;The Magic CSS (Not Really)&lt;/h2&gt;
-&lt;p&gt;Now take a deep breath and get ready for some hard CSS work:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;article {
- width: 100%;
+&lt;p&gt;This property simply outlines all elements on the current page in a dotted border. By placing a border on every HTML element you can instantly see how overly complex or &lt;em&gt;ugly&lt;/em&gt; your structure might be under the hood.&lt;/p&gt;
+&lt;h2 id=&quot;thanks-captain-obvious&quot;&gt;&amp;#8220;Thanks, Captain Obvious!&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;I know, this stuff is pretty basic. The point of this post isn&amp;#8217;t to tell you (developers) something brand new or mind-blowing, but instead should inspire you to keep things simple.&lt;/p&gt;
+&lt;p&gt;Don&amp;#8217;t forget that there is always someone new into the world of design and development. Hopefully this post steers others towards keeping HTML code semantic and clean.&lt;/p&gt;
+&lt;h2 id=&quot;update-to-this-article&quot;&gt;Update to this article&lt;/h2&gt;
+&lt;p&gt;Since this post received &lt;a href=&quot;https://news.ycombinator.com/item?id=20133817&quot;&gt;so much more attention&lt;/a&gt; than I ever expected, I&amp;#8217;ve decided to touch on a few small points brought up in the comments.&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;strong&gt;What is the benefit of semantic HTML?&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;Accessibility. Programs like screen readers are built around the foundation of proper HTML hierarchy. I highly recommend testing all your projects with a screen reader - it will open your eyes to a lot of issues users with disabilities suffer through.&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Tables not being responsive&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;This simply isn&amp;#8217;t true. It is much more semantic to layout your tables as you would normally, then for mobile devices you can target specific inner elements and alter them with &lt;code&gt;flexbox&lt;/code&gt; etc. (You can see responsive tables in action &lt;a href=&quot;/responsive-tables&quot;&gt;here&lt;/a&gt;)&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Instead of the CSS one-liner, simply use Firefox debugger&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;Fair point. Firefox is great!&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;/ol&gt;</content>
+ <link href="https://btxx.org/posts/html-like-1999"/>
+ <id>https://btxx.org/posts/html-like-1999</id>
+ <updated>2019-06-06T10:00:00Z</updated>
+ <published>2019-06-06T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Using HTML Validator Badges Again</title>
+ <content type="html">&lt;h1 id=&quot;using-html-validator-badges-again&quot;&gt;Using HTML Validator Badges Again&lt;/h1&gt;
+&lt;p&gt;2019-07-05&lt;/p&gt;
+&lt;p&gt;There was a time on the Internet when websites wore badges of honor, declaring that their code was semantic and followed the W3C guidelines. The validators we used weren&amp;#8217;t great (and &lt;strong&gt;still&lt;/strong&gt; aren&amp;#8217;t perfect) but they represented a community that took pride in caring about the quality of their work. I think it&amp;#8217;s time we bring HTML badges back.&lt;/p&gt;
+&lt;h2 id=&quot;getting-the-flaws-out-of-the-way&quot;&gt;Getting the flaws out of the way&lt;/h2&gt;
+&lt;p&gt;Of course, there were reasons why these badges slowly faded out of popularity. Some of the reasoning made sense, but most felt like a stretch in logic from my perspective. I always looked at it as a &amp;#8220;the good outweighs the bad&amp;#8221;.&lt;/p&gt;
+&lt;p&gt;Jukka Korpela&amp;#8217;s post way back in 2003, &lt;a href=&quot;http://jkorpela.fi/html/validation.html&quot;&gt;HTML validation is a good tool but just a tool&lt;/a&gt;, highlighted a lot of problems with relying so heavily on these HTML validators. I suggest you give it a read if this kind of thing interests you. I found it fascinating, even though I disagree with most of the points he makes.&lt;/p&gt;
+&lt;p&gt;Some negatives used to dismiss HTML badges:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;strong&gt;The badge system is outdated&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;Dismissing the worth of something based on how long it has been around is foolish. Many tools and frameworks are &amp;#8220;outdated&amp;#8221; but are still used to this day with great success.&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;HTML5 doesn&amp;#8217;t &lt;em&gt;require&lt;/em&gt; validation&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;Technically &lt;em&gt;no subset of HTML&lt;/em&gt; requires validation - but developers should aim for it. The W3C validators perform a solid job of keeping a standard for web development, so by following a standard we can keep experiences consistent for users.&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Validation is too formal&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;I believe in the ability to achieve your desired outcome based on almost any constraints. If a project leans you towards invalid or non-semantic structure to fulfill requirements, a better approach needs to be evaluated. We as developers tend to settle too quickly on the easiest option available to us.&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Websites &amp;#47; web apps are just &lt;em&gt;too complex&lt;/em&gt; to follow the W3C guidelines&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;I call &lt;em&gt;BS&lt;/em&gt; on this argument. The complexity of a website should have nothing to do with keeping semantic standards. &lt;em&gt;This is your job.&lt;/em&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;It only exists to catch syntax errors&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;For the record, I still see this more of a positive take on using validators. Subtle and nuanced syntax mistakes can be easily overlooked by the human eye.&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;nobody-puts-badges-in-a-corner&quot;&gt;&amp;#8220;Nobody puts &lt;em&gt;badges&lt;/em&gt; in a corner&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;A large of amount of designers &amp;#47; developers tend to forget that there are new people entering our industry everyday and they might not be as well versed in the basics of the web (HTML &amp;#38; CSS specifically). Since so many newcomers start out with JavaScript frameworks or jump onto pre-existing projects, they don&amp;#8217;t always grasp the core foundation of valid markup. Some frameworks even break basic standards for visuals or easier development environments - setting their initial expectations that ugly semantics is acceptable code. The ends justify the means, etc.&lt;/p&gt;
+&lt;p&gt;Guiding first-timers towards HTML validators let&amp;#8217;s them rethink their structure when building products or at least give some forethought to their outputted code. We, the more &lt;em&gt;verteran&lt;/em&gt; members of the community, have the knowledge of proper semantics since we grew our careers around this &amp;#8220;trend&amp;#8221;. We shouldn&amp;#8217;t assume newbies have the same understanding. The basics are important.&lt;/p&gt;
+&lt;h2 id=&quot;open-source-html5-badge&quot;&gt;Open source HTML5 badge&lt;/h2&gt;
+&lt;p&gt;Since the W3C doesn&amp;#8217;t officially produce any badges for HTML5 validation 1, I&amp;#8217;ve gone ahead and open sourced &lt;code&gt;SVG&lt;/code&gt; and &lt;code&gt;PNG&lt;/code&gt; versions of a badge based off the current W3C designs. You can check out the Github repo: &lt;a href=&quot;https://github.com/bradleytaunt/html5-valid-badge&quot;&gt;HTML5 Valid Badge&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;If you decide to use these badges, be sure to link these images to your valid passing URL (&lt;a href=&quot;https://html5.validator.nu&quot;&gt;html5.validator.nu&lt;/a&gt;). You can see an example of the link in the footer of this website.&lt;/p&gt;
+&lt;p&gt;Please feel free to reach out and share your websites &amp;#47; projects that pass as valid HTML and include an HTML valid badge. I&amp;#8217;d love to check them out!&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;p&gt;1 &lt;a href=&quot;http://html5doctor.com/html5-check-it-before-you-wreck-it-with-miketm-smith/&quot;&gt;Interview with Mike Smith&lt;/a&gt;: &amp;#8220;There won&amp;#8217;t be any proper Valid HTML5 icon forthcoming, so if you&amp;#8217;d like to use one in your content, you&amp;#8217;ll probably need to create one on your own.&amp;#8221;&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/html5-validator-badge"/>
+ <id>https://btxx.org/posts/html5-validator-badge</id>
+ <updated>2019-07-05T10:00:00Z</updated>
+ <published>2019-07-05T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Improving Github's New Design</title>
+ <content type="html">&lt;h1 id=&quot;improving-githubs-new-design&quot;&gt;Improving Github&amp;#8217;s New Design&lt;/h1&gt;
+&lt;p&gt;2020-07-07&lt;/p&gt;
+&lt;p&gt;Like many other Github users, I am not a big fan of their recent repository page redesign. In my mind it seems like a change just for the sake of change - the original UI worked perfectly fine.&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;Sigh.&lt;/em&gt;&lt;/p&gt;
+&lt;p&gt;I was planning on recreating the original Github layout with custom CSS but decided against it. Tackling such a big change in design would cause headaches if Github ever changed even one simple class or id on a given element. My final conclusion was to just improve their new design with my own personal quality of life improvements.&lt;/p&gt;
+&lt;p&gt;So, enough chit-chat. Let&amp;#8217;s get into it.&lt;/p&gt;
+&lt;h2 id=&quot;current-design-2020&quot;&gt;Current Design (2020)&lt;/h2&gt;
+&lt;p&gt;The default view for a repo&amp;#8217;s homepage and ticket items are locked at a set &lt;code&gt;max-width&lt;/code&gt;. This causes some visual strain in comparison to the full-width headers and navigations directly above. I use a decently sized montior when using your app Gitub - &lt;strong&gt;let me use all the space available to me&lt;/strong&gt;!&lt;/p&gt;
+&lt;h2 id=&quot;my-improvements&quot;&gt;My Improvements&lt;/h2&gt;
+&lt;p&gt;Your users shouldn&amp;#8217;t have to jump around the page looking for the important information they want to see. Resetting the basic repo information to the left side of the screen allows user to &lt;em&gt;instantly&lt;/em&gt; read-up on the project details. (This design is catered towards left-to-right readers mind you).&lt;/p&gt;
+&lt;p&gt;We now also utilize all the available screen space, dependent on the user&amp;#8217;s browser window size.&lt;/p&gt;
+&lt;p&gt;We make similar updates to the ticket item view and also remove the out-of-place &lt;code&gt;margin-bottom&lt;/code&gt; from the project link headers.&lt;/p&gt;
+&lt;h2 id=&quot;try-it-yourself&quot;&gt;Try It Yourself!&lt;/h2&gt;
+&lt;p&gt;You can very easily implement these custom CSS changes with an extension for the browser of your choice:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Firefox: &lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/styl-us/&quot;&gt;Stylus&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Chrome: &lt;a href=&quot;https://chrome.google.com/webstore/detail/stylebot/oiaejidbmkiecgbjeifoejpgmdaleoha&quot;&gt;Stylebot&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Then create a new custom CSS file to target &lt;code&gt;github.com&lt;/code&gt; with the following properties:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.container-xl {
+ max-width: 100%;
}
-article section {
- margin: 0 auto;
- max-width: 480px; &amp;#47;* This can be whatever you want *&amp;#47;
- width: 100%;
+.repository-content .gutter-condensed.gutter-lg {
+ flex-direction: row-reverse !important;
}
-article section.full-bleed {
- max-width: 100%;
+
+.repository-content #discussion_bucket .gutter-condensed.gutter-lg {
+ flex-direction: row !important;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it. &lt;em&gt;Really&lt;/em&gt;. Now any element (blockquotes, specific headers, navigations, footers, etc) that you want to layout as &amp;#8220;full-bleed&amp;#8221;, just wrap it in a &lt;code&gt;section&lt;/code&gt; tag and sick the &lt;code&gt;full-bleed&lt;/code&gt; class on it. Done and done.&lt;/p&gt;
-&lt;p&gt;Obviously you&amp;#8217;ll want to add more styling to clean-up and make your full-bleed layouts more beautiful. This demo was just more of a starting point.&lt;/p&gt;
-&lt;h3 id=&quot;maybe-not-quite-full-bleed&quot;&gt;Maybe Not-Quite-Full-Bleed?&lt;/h3&gt;
-&lt;p&gt;You could also further customize your options by including a class like &lt;code&gt;half-bleed&lt;/code&gt;, which maybe only expands slightly outside the main section &lt;code&gt;max-width&lt;/code&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;article section.half-bleed {
- max-width: 960px;
+
+.repohead &amp;#62; div.d-flex {
+ margin-bottom: 0 !important;
+}
+
+#show_issue {
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+}
+
+.repository-content #discussion_bucket,
+#partial-discussion-header {
+ width: 100%;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;sidenote&quot;&gt;Sidenote&lt;/h3&gt;
-&lt;p&gt;For those concerned about accessibility: The &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section&quot;&gt;section element&lt;/a&gt; is a flow content element, so it can contain almost all HTML elements.&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/mdEdjzz&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</content>
- <link href="https://btxx.org/poor-mans-full-bleed"/>
- <id>https://btxx.org/poor-mans-full-bleed</id>
- <updated>2020-10-07T10:00:00Z</updated>
- <published>2020-10-07T10:00:00Z</published>
- </entry>
- <entry>
- <title>Plain Text Emails, Please</title>
- <content type="html">&lt;h1 id=&quot;plain-text-emails-please&quot;&gt;Plain Text Emails, Please&lt;/h1&gt;
-&lt;p&gt;2019-09-09&lt;/p&gt;
-&lt;p&gt;When it comes to website &amp;#47; product design and development most devs should try to keep things simple. By only using as much code as absolutely necessary, projects avoid growing out of scope or becoming bloated. So, why isn&amp;#8217;t this same approach taken for email?&lt;/p&gt;
-&lt;h2 id=&quot;a-brief-history-of-email&quot;&gt;A brief history of email&lt;/h2&gt;
-&lt;p&gt;Email has been possible since the 1960s with &lt;a href=&quot;https://en.wikipedia.org/wiki/Time-sharing&quot;&gt;time-sharing computers&lt;/a&gt; being used to share files and messages across early devices. Around the 80s and 90s it seemed as though &lt;a href=&quot;https://en.wikipedia.org/wiki/Government_Open_Systems_Interconnection_Profile&quot;&gt;GOSIP&lt;/a&gt; would dominate the market, but this was knocked out in favor of SMTP, POP3 and IMAP in 1995 when the &lt;a href=&quot;http://www.walthowe.com/navnet/history.html&quot;&gt;National Science Foundation ended its sponsorship of the Internet backbone&lt;/a&gt;, and all traffic relied on commercial networks.&lt;/p&gt;
-&lt;p&gt;Things were looking pretty good at this point. Most operating systems now had a shared foundation of sending and receiving emails on the internet, allowing for a set of standards to be slowly developed and agreed upon over time. These were simpler times, with the default content sent between machines being plain text. No embedded images, no CSS3 fallback support, no &lt;em&gt;fluff&lt;/em&gt; - just content.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Sidenote:&lt;/strong&gt;
-Now, I&amp;#8217;m not going to sit here and pretend to be some expert on the history of email (or the internet in general), so I suggest you take the time to read about &lt;a href=&quot;http://www.walthowe.com/navnet/history.html&quot;&gt;the history of the internet&lt;/a&gt; if you&amp;#8217;re into that kind of thing.&lt;/p&gt;
-&lt;h2 id=&quot;looking-at-some-data&quot;&gt;Looking at some data&lt;/h2&gt;
-&lt;blockquote&gt;
-&lt;p&gt;Data isn&amp;#8217;t everything&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;I understand that the data being used is currently 16 years old - but not many extensive research studies have been performed (specifically for email-type preference in general)&lt;/p&gt;
-&lt;p&gt;In 2002[1], &lt;a href=&quot;https://www.clickz.com/real-world-email-client-usage-the-hard-data/47429/&quot;&gt;a small-set survey was run by ClickZ&lt;/a&gt; was created to gauge the details of personal email data. The main data we will focus on is the user preference between HTML or plain text formats:&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Do you prefer receiving HTML or text email?&lt;/strong&gt;&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it! Feel free to improve on this and further make it your own! I might create a new repo for this project if I end up adding even more improvements to the core CSS.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/improving-githubs-new-design"/>
+ <id>https://btxx.org/posts/improving-githubs-new-design</id>
+ <updated>2020-07-07T10:00:00Z</updated>
+ <published>2020-07-07T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Improving Receipt UX</title>
+ <content type="html">&lt;h1 id=&quot;improving-receipt-ux&quot;&gt;Improving Receipt UX&lt;/h1&gt;
+&lt;p&gt;2019-05-15&lt;/p&gt;
+&lt;p&gt;There was a pretty interesting article posted a couple days ago about rethinking the standard receipt design that I found quite compelling. Although, as good as the concept is, I think it can be improved (simplified) even further.&lt;/p&gt;
+&lt;h2 id=&quot;what-was-the-redesign-exaclty&quot;&gt;What was the redesign exaclty?&lt;/h2&gt;
+&lt;p&gt;Overall &lt;a href=&quot;https://twitter.com/datatoviz?lang=en&quot;&gt;Susie Lu&lt;/a&gt; did a wonderful job tackling such an old and forgotten design. She fixed some major pain points with the current receipt layout:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Bubble chart to visually indicate total spent per category&lt;/li&gt;
+&lt;li&gt;Categorized items by percentage of total spent&lt;/li&gt;
+&lt;li&gt;List individual items in descending order based on cost&lt;/li&gt;
+&lt;li&gt;Bar charts to compliment the item listing order&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Curious how her redesign looks? &lt;a href=&quot;https://www.fastcompany.com/90347782/the-humble-receipt-gets-a-brilliant-redesign&quot;&gt;Take a look at the original article&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;what-did-this-concept-get-wrong&quot;&gt;What did this concept get wrong?&lt;/h2&gt;
+&lt;p&gt;Simply put: &lt;strong&gt;paper waste&lt;/strong&gt;. &lt;/p&gt;
+&lt;p&gt;Using bubble and bar charts from a visual design perspective is great - but not so eco-friendly in this instance (since we are dealing with physical paper waste). It might seem like a small nitpick but with hundreds of thousands (if not millions) of receipts printed daily, this extra paper space required would add up quickly.&lt;/p&gt;
+&lt;p&gt;Fortunately, I think with some minor tweaks we can keep the underlying principles of the new redesign, while creating a more eco-friendly layout. We can save more space and therefore save on the overall paper needed.&lt;/p&gt;
+&lt;h2 id=&quot;receipt-redesign&quot;&gt;Receipt Redesign&lt;/h2&gt;
+&lt;p&gt;Let&amp;#8217;s take a look at my redesign concept:&lt;/p&gt;
+&lt;p&gt;With this layout we are able to keep all the key concepts that &lt;a href=&quot;https://twitter.com/datatoviz?lang=en&quot;&gt;Susie Lu&lt;/a&gt; initially introduced with her receipt design while preserving more space.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Categories are still listed by percentage of total spent&lt;/li&gt;
+&lt;li&gt;Individual items are organized in descending order based on cost&lt;/li&gt;
+&lt;li&gt;Uppercase and lowercase elements are used to distinguish parent &amp;#47; child items instead of additional space or dividers&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;final-thoughts&quot;&gt;Final thoughts&lt;/h2&gt;
+&lt;p&gt;The original redesign from a visual perspective is &lt;em&gt;wonderful&lt;/em&gt; but when you start to think about implementing it into the real world, it seems slightly impractical. My redesign concept is far from perfect (I&amp;#8217;m sure I&amp;#8217;ve overlooked some use cases) but I think it&amp;#8217;s a strong step forward for redesigning our archaic receipt layouts.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/improving-receipt-ux"/>
+ <id>https://btxx.org/posts/improving-receipt-ux</id>
+ <updated>2019-05-15T10:00:00Z</updated>
+ <published>2019-05-15T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Improving Tufte CSS for Jekyll</title>
+ <content type="html">&lt;h1 id=&quot;improving-tufte-css-for-jekyll&quot;&gt;Improving Tufte CSS for Jekyll&lt;/h1&gt;
+&lt;p&gt;2019-11-01&lt;/p&gt;
+&lt;p&gt;After creating the ET-Jekyll theme almost two years ago, I finally got around to revamping the structure and improving a lot of minor performance issues. Items that have been surely needing of updates for the last couple of years.&lt;/p&gt;
+&lt;h2 id=&quot;introductions&quot;&gt;Introductions&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve always been a sucker for Edward Tufte&amp;#8217;s incredibly simple, yet powerful design work used in his books and handout projects. So, in 2018 I released a Tufte CSS inspired Jekyll theme for the open source community. I called it &lt;a href=&quot;https://et-jekyll.netlify.com&quot;&gt;ET-Jekyll&lt;/a&gt; (so original, I know). Tufte CSS was a great starting point for my Jekyll theme, but there were areas I thought could use some minor improvements.&lt;/p&gt;
+&lt;p&gt;Feel free to read all the details on the design here: &lt;a href=&quot;https://et-jekyll.netlify.com/et-jekyll-theme/&quot;&gt;ET-Jekyll theme details&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;minor-fixes-one-year-later&quot;&gt;Minor Fixes One Year Later&lt;/h2&gt;
+&lt;p&gt;When I finally circled back to this project recently, I noticed some minor issues that could be improved right away with little to no effort. Let&amp;#8217;s see the changes made at a glance:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Sidenote, marginnote and figure element restyling (flexbox)&lt;/li&gt;
+&lt;li&gt;Table styling fixes (right alignment issues)&lt;/li&gt;
+&lt;li&gt;Switch MathJax over to SVG embeds (performance fixes)&lt;/li&gt;
+&lt;li&gt;Simplify HTML skeleton of main pages, remove overkill classes&lt;/li&gt;
+&lt;li&gt;Remove lazysizes.js to save on load times&lt;/li&gt;
+&lt;li&gt;Fallback on font-display for font loading&lt;/li&gt;
+&lt;li&gt;Inline all CSS for faster initial paint&lt;/li&gt;
+&lt;li&gt;Minor link :hover coloring (accessibility)&lt;/li&gt;
+&lt;li&gt;Add missing image link on example page&lt;/li&gt;
+&lt;li&gt;Update details post structure&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;You can view all the updates in more detail &lt;a href=&quot;https://github.com/bradleytaunt/ET-Jekyll/commit/254f9e8f28764c9525ba7405bbbfa18a3867d241&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;So what did this accomplish?&lt;/strong&gt; Let&amp;#8217;s break it down below.&lt;/p&gt;
+&lt;h2 id=&quot;first-contentful-paint-input-delay&quot;&gt;First Contentful Paint &amp;#38; Input Delay&lt;/h2&gt;
+&lt;p&gt;The new improvements have netted the theme a savings of 300ms on first paint and reduced the input delay by 150ms. Small wins - but wins nonetheless since every millisecond counts.&lt;/p&gt;
+&lt;h2 id=&quot;fixing-render-blocking-items&quot;&gt;Fixing Render Blocking Items&lt;/h2&gt;
+&lt;p&gt;The original theme reported a few items that were slowing down the initial render for the end-users:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
-&lt;th&gt;Response&lt;/th&gt;
-&lt;th&gt;Percentage (%)&lt;/th&gt;
+&lt;th&gt;URL&lt;/th&gt;
+&lt;th&gt;Size (KB)&lt;/th&gt;
+&lt;th&gt;Savings (ms)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
-&lt;td&gt;HTML&lt;/td&gt;
-&lt;td&gt;41.95&lt;/td&gt;
+&lt;td&gt;&amp;#47;css&amp;#47;style.css&lt;/td&gt;
+&lt;td&gt;2.0&lt;/td&gt;
+&lt;td&gt;150&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
-&lt;td&gt;Plain Text&lt;/td&gt;
-&lt;td&gt;31.52&lt;/td&gt;
+&lt;td&gt;&amp;#47;lazysizes@4.0.1&amp;#47;lazysizes.js&lt;/td&gt;
+&lt;td&gt;5.0&lt;/td&gt;
+&lt;td&gt;960&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
-&lt;td&gt;No Preference&lt;/td&gt;
-&lt;td&gt;26.53&lt;/td&gt;
+&lt;td&gt;MathJax.js?config=TeX-MML-AM_CHTML&lt;/td&gt;
+&lt;td&gt;18.0&lt;/td&gt;
+&lt;td&gt;1,260&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
-&lt;p&gt;On initial review, one could make the argument that the general public &lt;em&gt;prefers&lt;/em&gt; HTML email over plain text (~42% vs ~32%) - but I would disagree with this analysis. The roughly 27% of respondents who answered with &lt;em&gt;No Preference&lt;/em&gt; should not be dismissed so easily.&lt;/p&gt;
-&lt;p&gt;Since the &lt;em&gt;No Preference&lt;/em&gt; respondents don&amp;#8217;t care whether emails they receive are designed in HTML format, why not send them plain text variations by default? The positives of plain text greatly outweigh those of HTML:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Plain text has reduced file size
-&lt;ul&gt;
-&lt;li&gt;Don&amp;#8217;t forget that many users have limited data usage across much of the world&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;HTML is more likely to be flagged as spam by email clients
+&lt;p&gt;These items were resolved by:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;This is due to extra code, tracking scripts, 3rd party assets &amp;#47; resources being called&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;HTML &amp;#47; CSS can be inconsistent or even limited in support across email clients&lt;/li&gt;
-&lt;li&gt;Text only requires less design work for your development team
+&lt;li&gt;Rendering all styling inline (therefore removing the extra HTTP request)&lt;/li&gt;
+&lt;li&gt;Removing the lazysizes library altogether (browsers plan to support lazy loading natively in the future)
&lt;ul&gt;
-&lt;li&gt;Don&amp;#8217;t forget about testing all the various email clients too&lt;/li&gt;
+&lt;li&gt;The future plan is to integrate something like Cloudinary for out-of-the-box image processing&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Switch over MathJax to render equations as embedded SVGs (saves on bandwidth rendering an entire extra typeface)&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Add to this that &lt;a href=&quot;https://litmus.com/blog/53-of-emails-opened-on-mobile-outlook-opens-decrease-33&quot;&gt;53% of emails are opened on mobile&lt;/a&gt; - so any &amp;#8220;fancy&amp;#8221; marketing email designs need to look great on mobile screens and also take into account slower connections. What looks better and loads faster than simple plain text? 😛&lt;/p&gt;
-&lt;h2 id=&quot;but-what-about-marketing&quot;&gt;But what about marketing!?&lt;/h2&gt;
-&lt;p&gt;Sorry to say, but marketing should never trump user experience. Teams love to track email opens &amp;#47; click ratios, who subscribed &amp;#47; unsubscribed or who shared the campaign with others - but &lt;strong&gt;it&amp;#8217;s all bloat on the user&amp;#8217;s end&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;Greg Kogan wrote up a great article &amp;#47; case study about his experience &lt;a href=&quot;https://www.gkogan.co/blog/dont-design-emails/&quot;&gt;switching over a client&amp;#8217;s campaign from HTML templates to plain text&lt;/a&gt; with some really interesting results. I highly recommend you give it a read for a better understanding about how the marketing goals and customer goals don&amp;#8217;t always align.&lt;/p&gt;
-&lt;h2 id=&quot;simple-or-lazy---it-doesnt-matter&quot;&gt;Simple or lazy - it doesn&amp;#8217;t matter&lt;/h2&gt;
-&lt;p&gt;Plain text can certainly have a reputation for looking lazy or cheap, but I feel this is mostly perpetuated in the design and marketing communities. I can assure you that your average day-to-day users are much less opinionated about your email campaign design than you are. Look to satisfy your customers&amp;#8217; needs before your own.&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;Life is really simple, but we insist on making it complicated.&lt;/p&gt;
-&lt;p&gt;- Confucius&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;That being said, at the end of the day, companies will justify their own reasons to use HTML email templates over plain text. You can&amp;#8217;t convince everyone. My own personal experience with email template design, along with analyzing some of the data, leaves me to believe that most businesses should default to plain text. At the very least, you should try to convince your team to perform some simple A&amp;#47;B testing with your next email campaign.&lt;/p&gt;
-&lt;p&gt;The results might just surprise you.&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;This is the &amp;#8220;latest&amp;#8221; detailed survey I could find on email design preference&lt;/li&gt;
-&lt;/ol&gt;</content>
- <link href="https://btxx.org/plain-text-emails"/>
- <id>https://btxx.org/plain-text-emails</id>
- <updated>2019-09-09T10:00:00Z</updated>
- <published>2019-09-09T10:00:00Z</published>
- </entry>
- <entry>
- <title>Setting Up 1.1.1.1 for Families on a Pi-Hole</title>
- <content type="html">&lt;h1 id=&quot;setting-up-1.1.1.1-for-families-on-a-pi-hole&quot;&gt;Setting Up 1.1.1.1 for Families on a Pi-Hole&lt;/h1&gt;
-&lt;p&gt;2021-10-28&lt;/p&gt;
-&lt;p&gt;After seeing Cloudflare&amp;#8217;s 1.1.1.1 for Families mentioned on the &lt;a href=&quot;https://news.ycombinator.com/item?id=29024195&quot;&gt;front page of HackerNews&lt;/a&gt;, I thought it might be helpful to show those currently using a &lt;a href=&quot;https://pi-hole.net&quot;&gt;pi-hole device&lt;/a&gt; how to include 1.1.1.1 alongside it.&lt;/p&gt;
-&lt;h2 id=&quot;keeping-things-updated&quot;&gt;Keeping Things Updated&lt;/h2&gt;
-&lt;p&gt;It should go without saying that you should be running the latest stable pi-hole version for security and full feature support. To do so, simply &lt;code&gt;ssh&lt;/code&gt; into your device (or connect to it directly if you prefer) and run the following to check your pi-hole version:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;pihole -v
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;And if your version is out of date, run:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;pihole -up
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Once it completes the update everything will be good to go!&lt;/p&gt;
-&lt;h2 id=&quot;adding-1.1.1.1-1.1.1.2&quot;&gt;Adding 1.1.1.1 (1.1.1.2)&lt;/h2&gt;
-&lt;p&gt;Now you need to navigate to your main pi-hole admin in your browser (most likely the url will be &lt;em&gt;pi.hole&lt;/em&gt;). Login in using your credentials and the do the following steps:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Navigate to &lt;strong&gt;Settings&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Navigate to &lt;strong&gt;DNS&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Under &amp;#8220;Upstream DNS Servers&amp;#8221; enter:&lt;/li&gt;
-&lt;/ol&gt;
-&lt;ul&gt;
-&lt;li&gt;Custom 1 (IPv4): 1.1.1.2&lt;/li&gt;
-&lt;li&gt;Custom 2 (IPv4): 1.0.0.2&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;ad-block-malware-protection&quot;&gt;Ad-Block &amp;#38; Malware Protection&lt;/h2&gt;
-&lt;p&gt;You now officially have protection against both intrusive advertisements &lt;em&gt;and&lt;/em&gt; sites flagged with malware. Happy (and now safer) browsing!&lt;/p&gt;</content>
- <link href="https://btxx.org/pihole-cloudflare"/>
- <id>https://btxx.org/pihole-cloudflare</id>
- <updated>2021-10-28T10:00:00Z</updated>
- <published>2021-10-28T10:00:00Z</published>
- </entry>
- <entry>
- <title>Stuffing an SSD Inside the Raspberry Pi 400</title>
- <content type="html">&lt;h1 id=&quot;stuffing-an-ssd-inside-the-raspberry-pi-400&quot;&gt;Stuffing an SSD Inside the Raspberry Pi 400&lt;/h1&gt;
-&lt;p&gt;2021-08-13&lt;/p&gt;
-&lt;p&gt;I have successfully jammed an mSATA SSD into the main shell of my Raspberry Pi 400. It wasn&amp;#8217;t as straightforward as I thought it would be - in fact, most &lt;em&gt;real&lt;/em&gt; hardware tinkerers will probably vomit in their mouths once they see how I achieved this&amp;#8230;&lt;/p&gt;
-&lt;p&gt;But I&amp;#8217;m happy with my build. Those with better skills and knowledge can most likely improve upon this concept (and please do if you can - I&amp;#8217;d love to see it!)&lt;/p&gt;
-&lt;p&gt;Enough chit-chat - on to the build!&lt;/p&gt;
-&lt;h2 id=&quot;the-finished-masterpiece&quot;&gt;The Finished &amp;#8220;Masterpiece&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;Below you can see the final look of my modded Raspberry Pi 400, which I have personally named the &lt;strong&gt;Raspberry Pi 400X&lt;/strong&gt;:&lt;/p&gt;
-&lt;p&gt;Do you see that ugly black USB-C to USB-A cable jutting out from the top? That little guy connects directly to the mSATA SSD &lt;em&gt;inside&lt;/em&gt; the plastic keyboard structure and allows us to boot via USB. It also gives us the flexibility to easily &lt;em&gt;unplug&lt;/em&gt; the internal SSD for times when we desire to boot from micro SD or a different USB device altogether.&lt;/p&gt;
-&lt;p&gt;So, how did I make this?&lt;/p&gt;
-&lt;h2 id=&quot;the-shopping-list&quot;&gt;The Shopping List&lt;/h2&gt;
-&lt;p&gt;Before we deep dive into the terrible hardware modifications I&amp;#8217;ve made to my Pi, I&amp;#8217;ll list out all the items&amp;#47;tools I used during the making of this monstrosity:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;mSATA 64GB SSD Half Size (KingSpec) &amp;#8594; &lt;a href=&quot;https://www.aliexpress.com/item/32385499968.html?spm=a2g0s.9042311.0.0.210e4c4dIH8xWv&quot;&gt;AliExpress&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;mSATA to USB 3.1 enclosure (gutted) &amp;#8594; &lt;a href=&quot;https://www.amazon.ca/gp/product/B07BBM3BVS/ref=ppx_yo_dt_b_asin_title_o09_s00?ie=UTF8&amp;amp;psc=1&quot;&gt;Amazon&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Dremel rotary tool with soft sanding bits&lt;/li&gt;
-&lt;li&gt;Metal cutting scissors &amp;#47; knife&lt;/li&gt;
-&lt;li&gt;Electrical tape&lt;/li&gt;
-&lt;li&gt;Patience&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;modding-the-raspberry-pi-400&quot;&gt;Modding the Raspberry Pi 400&lt;/h2&gt;
-&lt;p&gt;The final product requires us to attach the half size mSATA SSD to the (gutted) enclosure and then insert that directly inside the Pi (next to the lock port &amp;#47; ethernet). Our first step will be to disassemble the Pi 400, safely remove the keyboard module and remove the metal heatsink.&lt;/p&gt;
-&lt;p&gt;With your trusty metal cutting scissors (or whatever tool you prefer) you will need to cut out room for our enclosure internals to fit within:&lt;/p&gt;
-&lt;p&gt;Next you will need to carefully remove the Pi board itself from the red part of the case. Once placed safely aside, it&amp;#8217;s time to bust out our sanding dremel and remove the jutting plastic blocking our soon-to-be-added SSD. Remember to wear a mask during this phase, since breathing in plastic dust and fumes is not fun!&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Important to note:&lt;/strong&gt; this will remove one of the screw slots needed to secure the heatsink into the board. Not a big deal if you ask me&amp;#8230;&lt;/p&gt;
-&lt;p&gt;While you have the Pi board removed you should also cut out a slot for the USB-C to USB-A cable to connect our mSATA to one of our USB 3 ports on the Pi. For this I&amp;#8217;ve opted to butcher the lock port (will I ever really use that anyway?)&lt;/p&gt;
-&lt;p&gt;Now all that&amp;#8217;s left is to insert our gutted mSATA enclosure (with the half size SSD attached of course)
-, tape it down with some hideous electrical tape and close this bad boy back up!&lt;/p&gt;
-&lt;p&gt;That&amp;#8217;s it! You now have the portable power of the Raspberry Pi 400, but now with the speed and performance of an SSD!&lt;/p&gt;
-&lt;h2 id=&quot;the-performance-gains&quot;&gt;The Performance Gains&lt;/h2&gt;
+&lt;h2 id=&quot;lighthouse-numbers&quot;&gt;Lighthouse Numbers&lt;/h2&gt;
+&lt;p&gt;Though it might not look like much, the updated theme receives a 4-point boost to its performance rating during a Lighthouse audit. Having a perfect score would be even better, but I can settle for 2-points under (for now).&lt;/p&gt;
+&lt;h4 id=&quot;old-version&quot;&gt;Old Version&lt;/h4&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
-&lt;th&gt;Storage Type&lt;/th&gt;
-&lt;th&gt;Seq. Write&lt;/th&gt;
-&lt;th&gt;Random W&lt;/th&gt;
-&lt;th&gt;Random R&lt;/th&gt;
+&lt;th&gt;Performance&lt;/th&gt;
+&lt;th&gt;Accessibility&lt;/th&gt;
+&lt;th&gt;Best Practices&lt;/th&gt;
+&lt;th&gt;SEO&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
-&lt;td&gt;Micro SD Card&lt;/td&gt;
-&lt;td&gt;17818 KB&amp;#47;sec&lt;/td&gt;
-&lt;td&gt;812 IOPS&lt;/td&gt;
-&lt;td&gt;2335 IOPS&lt;/td&gt;
+&lt;td&gt;94&lt;/td&gt;
+&lt;td&gt;100&lt;/td&gt;
+&lt;td&gt;100&lt;/td&gt;
+&lt;td&gt;100&lt;/td&gt;
&lt;/tr&gt;
+&lt;/tbody&gt;
+&lt;/table&gt;
+&lt;h4 id=&quot;new-version&quot;&gt;New Version&lt;/h4&gt;
+&lt;table&gt;
+&lt;thead&gt;
&lt;tr&gt;
-&lt;td&gt;mSATA SSD&lt;/td&gt;
-&lt;td&gt;206738 KB&amp;#47;sec&lt;/td&gt;
-&lt;td&gt;14615 IOPS&lt;/td&gt;
-&lt;td&gt;17925 IOPS&lt;/td&gt;
+&lt;th&gt;Performance&lt;/th&gt;
+&lt;th&gt;Accessibility&lt;/th&gt;
+&lt;th&gt;Best Practices&lt;/th&gt;
+&lt;th&gt;SEO&lt;/th&gt;
+&lt;/tr&gt;
+&lt;/thead&gt;
+&lt;tbody&gt;
+&lt;tr&gt;
+&lt;td&gt;98&lt;/td&gt;
+&lt;td&gt;100&lt;/td&gt;
+&lt;td&gt;100&lt;/td&gt;
+&lt;td&gt;100&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
-&lt;p&gt;I think it&amp;#8217;s pretty clear that the SSD blows the default micro SD card out of the water&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
-&lt;p&gt;Now clearly you could just plug-in an external SSD and walk away with the same performance boosts - but where is the fun in that?&lt;/p&gt;
-&lt;p&gt;If anyone decides to improve on this or make a cleaner approach, please do share it with me. I&amp;#8217;d love to see it!&lt;/p&gt;</content>
- <link href="https://btxx.org/pi-400-internal-ssd"/>
- <id>https://btxx.org/pi-400-internal-ssd</id>
- <updated>2021-08-13T10:00:00Z</updated>
- <published>2021-08-13T10:00:00Z</published>
- </entry>
- <entry>
- <title>89 Blog Posts in a Single HTML File</title>
- <content type="html">&lt;h1 id=&quot;89-blog-posts-in-a-single-html-file&quot;&gt;89 Blog Posts in a Single HTML File&lt;/h1&gt;
-&lt;p&gt;2021-04-22&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;This is no longer the current setup of my blog&lt;/em&gt;. I have switched back to Jekyll for performance reasons. I&amp;#8217;ll be leaving this post up as a point of reference though :)&lt;/p&gt;
-&lt;hr/&gt;
-&lt;p&gt;This is my personal blog (if that wasn&amp;#8217;t already obvious). I currently have 89 blog posts living here. But I have done something magical today:&lt;/p&gt;
-&lt;p&gt;All of these articles are rendered inside a &lt;em&gt;single HTML file&lt;/em&gt;. 🤯&lt;/p&gt;
-&lt;h2 id=&quot;what-sorcery-is-this&quot;&gt;What Sorcery is This?!&lt;/h2&gt;
-&lt;p&gt;No magic here - I&amp;#8217;m just using my own personal static site generator called &lt;a href=&quot;https://phpetite.org&quot;&gt;PHPetite&lt;/a&gt;. You can find all the code and more information about PHPetite on the &lt;a href=&quot;https://github.com/bradleytaunt/phpetite&quot;&gt;official Github repo page&lt;/a&gt;. Please note that this project is still very much a WIP, so go easy on me when pointing out bugs or issues!&lt;/p&gt;
-&lt;h2 id=&quot;pingdom-stats&quot;&gt;Pingdom Stats&lt;/h2&gt;
-&lt;p&gt;Before we get into more details on how everything is built, let&amp;#8217;s take a quick look at some of my website stats (not that pure numbers are 100% accurate of user experience):&lt;/p&gt;
+&lt;h2 id=&quot;final-thoughts&quot;&gt;Final Thoughts&lt;/h2&gt;
+&lt;p&gt;This project could still use some more fine-tuning, but for now I&amp;#8217;m fairly happy with the outcome. Even the smallest boost in performance and rendering time makes me feel like I accomplished something worthwhile. &lt;/p&gt;
+&lt;p&gt;Please don&amp;#8217;t hesitate to suggest features or point out any issues you happen to stumble across if you plan to use ET-Jekyll. Thanks for reading!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/improving-tufte-jekyll"/>
+ <id>https://btxx.org/posts/improving-tufte-jekyll</id>
+ <updated>2019-11-01T10:00:00Z</updated>
+ <published>2019-11-01T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Introducing Notez</title>
+ <content type="html">&lt;h1 id=&quot;introducing-notez&quot;&gt;Introducing Notez&lt;/h1&gt;
+&lt;p&gt;2021-01-13&lt;/p&gt;
+&lt;p&gt;I have always been a fan of simple note taking applications, since I tend to take a lot of random notes throughout the work day. Sometimes I reach for simple pen and paper, but other times it&amp;#8217;s nice to stay focused jotting down notes on the same device I&amp;#8217;m working on.&lt;/p&gt;
+&lt;p&gt;Previously, I just created quick &lt;code&gt;notes.txt&lt;/code&gt; files in my open code editor or fell back on the default OS note apps. These worked perfectly fine but often got in my way (or even worse - lost among everything else).&lt;/p&gt;
+&lt;p&gt;So I said the hell with it and built Notez.&lt;/p&gt;
+&lt;h2 id=&quot;what-makes-notez-special&quot;&gt;What makes Notez special?&lt;/h2&gt;
+&lt;p&gt;Nothing, really. It&amp;#8217;s actually a pretty &amp;#8220;stupid&amp;#8221; app compared to others on the market. But this one is &lt;em&gt;mine&lt;/em&gt;. Plus, it was fun to piece it together on a random evening before bed.&lt;/p&gt;
+&lt;p&gt;For those curious, let&amp;#8217;s take a look at the feature list:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;99 Performance Grade&lt;/li&gt;
-&lt;li&gt;951 ms Load Time&lt;/li&gt;
-&lt;li&gt;231.3 KB Page Size (thank you Netlify compression!)&lt;/li&gt;
+&lt;li&gt;free and open source (github.com&amp;#47;bradleytaunt&amp;#47;notez)&lt;/li&gt;
+&lt;li&gt;uses &lt;code&gt;localStorage&lt;/code&gt; to keep changes persistent (helpful for browser crashes, etc)&lt;/li&gt;
+&lt;li&gt;includes basic export functionality to download content as a simple &lt;code&gt;output.txt&lt;/code&gt; file&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;&lt;a href=&quot;https://tools.pingdom.com/#5e169d6a82000000&quot;&gt;See all the Pingdom details for yourself&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;Now the &lt;code&gt;Page Size&lt;/code&gt; will certainly change as more blog posts are added over time, but if the total webpage size is roughly 230 KB with 89 blog posts, I figure that gives me the ability to add another 200 or so posts before I cross the &lt;a href=&quot;https://1mb.club&quot;&gt;1MB threshold&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ll deal with how to load in the content more efficiently when that times comes&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;what-about-images&quot;&gt;What About Images?&lt;/h2&gt;
-&lt;p&gt;Good question. Since a large portion of my articles tend to be focused on design and CSS, visual examples are somewhat important. So how do I avoid loading in all the individual images on every single post into this single HTML &amp;#8220;website&amp;#8221;?&lt;/p&gt;
-&lt;p&gt;Easy - I don&amp;#8217;t load any images at all.&lt;/p&gt;
-&lt;p&gt;I now simply set any images that are not included in the current, visible &lt;code&gt;section&lt;/code&gt; to &lt;code&gt;display: none&lt;/code&gt;. This avoids breaking things with the RSS feed.&lt;/p&gt;
-&lt;p&gt;Here is an image example of an old Dribbble shot I created years ago:&lt;/p&gt;
-&lt;p&gt;I have noticed that Safari &amp;#47; Firefox on iOS renders the imagery as broken image links - I plan to look into this further to avoid that confusion. For now it works well on desktop Chromium and Firefox.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;figure&amp;#62;
- &amp;#60;div class=&quot;img-parent&quot;&amp;#62;
- &amp;#60;img loading=&quot;lazy&quot; src=&quot;&amp;#47;placeholder-image.webp&quot; onclick=&quot;this.src=&amp;#39;https:&amp;#47;&amp;#47;res.cloudinary.com&amp;#47;bradtaunt&amp;#47;image&amp;#47;fetch&amp;#47;q_auto:low&amp;#47;v1570124593&amp;#47;https:&amp;#47;&amp;#47;uglyduck.ca&amp;#47;public&amp;#47;images&amp;#47;aqua-ui-css-buttons.webp&amp;#39;&quot; alt=&quot;Aqua UI buttons&quot;&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;figcaption&amp;#62;&amp;#60;b&amp;#62;Click the placeholder to load in the real image&amp;#60;&amp;#47;b&amp;#62;&amp;#60;br&amp;#62;Example Dribbble shot for testing. Feel free to click the default image in order to load the correct Dribbble source. &amp;#60;a href=&quot;https:&amp;#47;&amp;#47;res.cloudinary.com&amp;#47;bradtaunt&amp;#47;image&amp;#47;fetch&amp;#47;q_auto:low&amp;#47;v1570124593&amp;#47;https:&amp;#47;&amp;#47;uglyduck.ca&amp;#47;public&amp;#47;images&amp;#47;aqua-ui-css-buttons.webp&quot;&amp;#62;View full size image&amp;#60;&amp;#47;a&amp;#62;.&amp;#60;&amp;#47;figcaption&amp;#62;
-&amp;#60;&amp;#47;figure&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;hows-the-seo&quot;&gt;How&amp;#8217;s the SEO?&lt;/h2&gt;
-&lt;p&gt;Probably terrible to be honest. One single file for all blog posts is something Google will most likely frown upon. Whatever - it&amp;#8217;s my personal blog so I don&amp;#8217;t really give a shit.&lt;/p&gt;
-&lt;h2 id=&quot;rss-feed&quot;&gt;RSS Feed&lt;/h2&gt;
-&lt;p&gt;If you recently added my old RSS feed, I&amp;#8217;m sorry, but you&amp;#8217;ll have to update. The new feed is located at &lt;a href=&quot;https://tdarb.org/feeds/posts.xml&quot;&gt;tdarb.org&amp;#47;feeds&amp;#47;posts.xml&lt;/a&gt;. I made this change to avoid spamming the current feed users.&lt;/p&gt;
-&lt;h2 id=&quot;tasty-dog-food&quot;&gt;Tasty Dog Food&lt;/h2&gt;
-&lt;p&gt;At the end of the day, by moving my personal blog over to PHPetite, it makes me more aware of current bugs and restrictions within the project. I feel like this will help me to improve this static site generator even more over time, instead of letting it die a slow death ignored on Github.&lt;/p&gt;
-&lt;p&gt;I hope you enjoyed this little breakdown and maybe even want to try out PHPetite for yourself? 😉&lt;/p&gt;</content>
- <link href="https://btxx.org/phpetite"/>
- <id>https://btxx.org/phpetite</id>
- <updated>2021-04-22T10:00:00Z</updated>
- <published>2021-04-22T10:00:00Z</published>
- </entry>
- <entry>
- <title>My Changing Opinion on Personal Website Design</title>
- <content type="html">&lt;h1 id=&quot;my-changing-opinion-on-personal-website-design&quot;&gt;My Changing Opinion on Personal Website Design&lt;/h1&gt;
-&lt;p&gt;2021-05-19&lt;/p&gt;
-&lt;p&gt;Hey would you look at that - my personal blog has been redesigned &lt;em&gt;again&lt;/em&gt;! Although I am still using good ol&amp;#8217; Jekyll for the backend, I have now added a more fleshed-out CSS design which also includes a set of open source custom typefaces.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Gasp!&lt;/strong&gt; &amp;#8220;How &lt;em&gt;could&lt;/em&gt; you?!&amp;#8221; I hear you ask. Let me explain.&lt;/p&gt;
-&lt;h2 id=&quot;personal-sites-should-feel-personal&quot;&gt;Personal sites should feel personal&lt;/h2&gt;
-&lt;p&gt;I can see how this change might seem hypocritical (it took some convincing myself) but I decided to follow in to footsteps of Kev Quirk and &lt;a href=&quot;https://kevq.uk/adding-some-whimsy-character/&quot;&gt;added a little whimsy and character&lt;/a&gt; to my website. After all, personal websites should &lt;em&gt;feel personal&lt;/em&gt;. My obsession with barebones HTML &amp;#38; CSS serves its purpose on other public projects, but seems limiting for my own little space on the interwebs.&lt;/p&gt;
-&lt;h2 id=&quot;banned-from-my-own-club&quot;&gt;Banned from my own club&lt;/h2&gt;
-&lt;p&gt;I had originally converted this blog&amp;#8217;s design to use &lt;em&gt;zero&lt;/em&gt; CSS and instead rely solely on default browser styling. The main reasoning for doing so, was to have the ability to include my own personal website in the &lt;a href=&quot;https://xhtml.club&quot;&gt;XHTML Club&lt;/a&gt; project. (I never said it was a &lt;em&gt;good&lt;/em&gt; reason)&lt;/p&gt;
-&lt;p&gt;After giving it some thought, I&amp;#8217;ve decided that this limitation seemed too extreme even for me.&lt;/p&gt;
-&lt;h2 id=&quot;moving-forward&quot;&gt;Moving forward&lt;/h2&gt;
-&lt;p&gt;I know I always say &amp;#8220;With this new design, I can finally focus on just writing content!&amp;#8221; - but this is a lie. I&amp;#8217;ll probably be fiddling with my personal website until the day I die. The good news is that I &lt;em&gt;do&lt;/em&gt; have a few tutorial blog posts lined up to publish soon - so be on the lookout for those!&lt;/p&gt;
-&lt;p&gt;Thanks for reading through my pointless ramblings about personal websites. It&amp;#8217;s good to just vent about these things sometimes&amp;#8230;&lt;/p&gt;</content>
- <link href="https://btxx.org/personal-website-opinions"/>
- <id>https://btxx.org/personal-website-opinions</id>
- <updated>2021-05-19T10:00:00Z</updated>
- <published>2021-05-19T10:00:00Z</published>
- </entry>
- <entry>
- <title>Create a Performance-Focused WordPress Blog</title>
- <content type="html">&lt;h1 id=&quot;create-a-performance-focused-wordpress-blog&quot;&gt;Create a Performance-Focused WordPress Blog&lt;/h1&gt;
-&lt;p&gt;2021-09-08&lt;/p&gt;
-&lt;p&gt;With my recent switch back to WordPress, and having read Kev Quirk’s latest post about Core Web Vitals, I wanted to make sure my blog still prioritized speed and performance above all else. I’m happy to say that I have closely replicated the same speed of my original &lt;em&gt;static&lt;/em&gt; Jekyll-based version of this blog.&lt;/p&gt;
-&lt;p&gt;And I&amp;#8217;ve achieved this with barely any effort at all. All that&amp;#8217;s needed is: &lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it. Mind blowing stuff, eh?&lt;/p&gt;
+&lt;h2 id=&quot;making-stuff-is-fun&quot;&gt;Making stuff is fun&lt;/h2&gt;
+&lt;p&gt;My main takeaway when building this tiny, dumb app was to just &lt;em&gt;enjoy building fun stuff&lt;/em&gt;. It crossed my mind several times how there are already hundreds of note taking apps across the vast Internet. I also thought about how others might look at the code I wrote and go, &amp;#8220;Oh my God - why did he do it that way? What an idiot!&amp;#8221;. But I don&amp;#8217;t care - I had fun making it.&lt;/p&gt;
+&lt;p&gt;Hopefully you enjoy using it as well!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/introducing-notez"/>
+ <id>https://btxx.org/posts/introducing-notez</id>
+ <updated>2021-01-13T10:00:00Z</updated>
+ <published>2021-01-13T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Introducing PageRoast</title>
+ <content type="html">&lt;h1 id=&quot;introducing-pageroast&quot;&gt;Introducing PageRoast&lt;/h1&gt;
+&lt;p&gt;2021-03-11&lt;/p&gt;
+&lt;p&gt;Following up with my concept of releasing small side projects weekly, I have officially launched &lt;a href=&quot;https://pageroast.com&quot;&gt;PageRoast&lt;/a&gt;. What is PageRoast I hear you ask?&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;Receive a detailed report analyzing your landing page with actionable items to improve your conversion rate.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;In simple terms that just means I will &lt;strong&gt;roast your landing page&lt;/strong&gt;. Included in a page roast report is:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;a lightweight WordPress theme&lt;/li&gt;
-&lt;li&gt;two free WordPress plugins&lt;/li&gt;
-&lt;li&gt;cheap &amp;#38; fast web hosting&lt;/li&gt;
+&lt;li&gt;Fully detailed ABCD Framework report&lt;/li&gt;
+&lt;li&gt;Proposed content &amp;#38; design changes&lt;/li&gt;
+&lt;li&gt;Page performance audit&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Let me breakdown each component so those of you interested can do the same without hitting any roadblocks.&lt;/p&gt;
-&lt;h2 id=&quot;choosing-your-wordpress-theme&quot;&gt;Choosing Your WordPress Theme&lt;/h2&gt;
-&lt;p&gt;Selecting an existing theme or trying to build your own can be a daunting experience. For my needs, I forced myself to find an existing theme and just run with it. This gives me more time to focus on writing instead of constantly tweaking the blog’s visuals.&lt;/p&gt;
-&lt;p&gt;I would suggest either using the default starter theme (as of this writing: Twenty Twenty One theme by Automattic) or looking for specific “lightweight” themes across the web. I highly recommend checking out Anders Norén’s &lt;a href=&quot;https://andersnoren.se/teman/&quot;&gt;theme collection&lt;/a&gt;. Others can be found on the official &lt;a href=&quot;https://wordpress.org/&quot;&gt;wordpress.org&lt;/a&gt; website.&lt;/p&gt;
-&lt;h2 id=&quot;two-simple-plugins&quot;&gt;Two Simple Plugins&lt;/h2&gt;
-&lt;p&gt;Once you have decided on a theme, you&amp;#8217;ll also want to be sure to install two very important plugins that greatly help with performance:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Jetpack Boost – &lt;a href=&quot;https://wordpress.org/plugins/jetpack-boost/&quot;&gt;wordpress.org&amp;#47;plugins&amp;#47;jetpack-boost&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Yoast SEO – &lt;a href=&quot;https://wordpress.org/plugins/wordpress-seo/&quot;&gt;wordpress.org&amp;#47;plugins&amp;#47;wordpress-seo&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;jetpack-boost&quot;&gt;Jetpack Boost&lt;/h2&gt;
-&lt;p&gt;This plugin is fantastic. Not only will it run a proper audit (based off Google’s Lighthouse tool) but also gives you the ability to activate optimized CSS, lazy image loading and deferring non-essential JavaScript (if applicable). All of this is done in a super-clean user interface directly inside your WordPress admin.&lt;/p&gt;
-&lt;p&gt;Check out my own testing site metrics below:&lt;/p&gt;
-&lt;h2 id=&quot;yoast-seo&quot;&gt;Yoast SEO&lt;/h2&gt;
-&lt;p&gt;If you’ve worked with WordPress at all you have surely heard of Yoast. Adding this plugin to your site is really a no-brainer. The automatic generation of meta data and SEO tags can save you a lot of time while also improving your overall Lighthouse score.&lt;/p&gt;
-&lt;p&gt;Here is the Lighthouse audit for the test WordPress website:&lt;/p&gt;
-&lt;p&gt;Those scores were achieved without any custom work on my end – I simply activated the plugin and let it work it’s magic. Great stuff.&lt;/p&gt;
-&lt;h2 id=&quot;host-everything-on-easywp&quot;&gt;Host Everything on EasyWP&lt;/h2&gt;
-&lt;p&gt;Up to this point we haven’t spent a single penny. Unfortunately, web hosting isn’t free and you’re going to need it if you actually want your website to have a home on the interwebs!&lt;/p&gt;
-&lt;p&gt;I know – I can hear your collective voices shouting out:&lt;/p&gt;
+&lt;p&gt;And you get all of this for just &lt;strong&gt;$100&lt;/strong&gt; (currently 50% until April 1st with coupon code PHROAST). Alright, enough with the &amp;#8220;sales pitch&amp;#8221; - why did I make this side project?&lt;/p&gt;
+&lt;p&gt;From the main &lt;a href=&quot;https://pageroast.com/#2021-03-10-pageroast-has-launched&quot;&gt;launch blog post on PageRoast itself&lt;/a&gt; I wrote:&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;Isn&amp;#8217;t web hosting a little expensive just for my simple hobby blog&amp;#47;site?&lt;/p&gt;
-&lt;p&gt;&amp;#8211; Some of you&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ve always been obsessed with developing landing pages that produce high conversion rates. It&amp;#8217;s what I&amp;#8217;ve done for a large portion of my web development career.So I thought to myself, &amp;#8220;Why not launch a small-scale audit service to help indie devs and startups?&amp;#8221;&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;p&gt;I host this test blog for just &lt;strong&gt;$3.88&amp;#47;month&lt;/strong&gt; and the service is actually good. Unreal, right? That’s the price of a medium coffee, so I’m pretty sure it won’t break the bank.&lt;/p&gt;
-&lt;p&gt;This “cheap” hosting is through EasyWP and the Starter plan ($3.88&amp;#47;month) comes with the following:&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s really all there is to it. If you would like to learn more, check out the following links:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;10 GB SSD storage&lt;/li&gt;
-&lt;li&gt;50k visitors&amp;#47;month&lt;/li&gt;
-&lt;li&gt;Unlimited bandwidth&lt;/li&gt;
-&lt;li&gt;Backups (though not automatic)&lt;/li&gt;
-&lt;li&gt;SFTP access&lt;/li&gt;
-&lt;li&gt;EasyWP Cache plugin (and it&amp;#8217;s actually good!)&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://pageroast.com&quot;&gt;PageRoast main website&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://pageroast.com/#2021-03-10-pageroast-has-launched&quot;&gt;PageRoast official launch blog post&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;</content>
+ <link href="https://btxx.org/posts/introducing-pageroast"/>
+ <id>https://btxx.org/posts/introducing-pageroast</id>
+ <updated>2021-03-11T10:00:00Z</updated>
+ <published>2021-03-11T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Hosting a Jekyll Site on Sourcehut</title>
+ <content type="html">&lt;h1 id=&quot;hosting-a-jekyll-site-on-sourcehut&quot;&gt;Hosting a Jekyll Site on Sourcehut&lt;/h1&gt;
+&lt;p&gt;2021-12-06&lt;/p&gt;
+&lt;p&gt;I recently decided to switch my personal, static site&amp;#8217;s hosting from Netlify to &lt;a href=&quot;https://srht.site&quot;&gt;sourcehut pages&lt;/a&gt;. The process went &lt;em&gt;fairly&lt;/em&gt; smoothly with only a couple minor hiccups; nothing rage-inducing. After everything was up and running smoothly, I figured writing out a step-by-step tutorial might help others who are thinking of doing a similar switch (or looking to host their first static site).&lt;/p&gt;
+&lt;p&gt;But first, let me briefly explain why I made the switch in the first place&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;why-sourcehut-pages&quot;&gt;Why sourcehut pages?&lt;/h2&gt;
+&lt;p&gt;Using Netlify as your static host is simple, intuitive and comes packed with a great deal of extra functionality you can easily add-on. So, why would I decide to switch over to sourcehut? The best answer comes directly off the main homepage of &lt;a href=&quot;https://sourcehut.org&quot;&gt;sourcehut.org&lt;/a&gt;:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Absolutely no tracking or advertising&lt;/li&gt;
+&lt;li&gt;All features work without JavaScript&lt;/li&gt;
+&lt;li&gt;Many features work without an account&lt;/li&gt;
+&lt;li&gt;The fastest &amp;#38; lightest software forge&lt;/li&gt;
+&lt;li&gt;100% free and open source software&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;You will need to snag your own SSL certificate though, but this is easily obtained with something like &lt;a href=&quot;https://letsencrypt.org&quot;&gt;letsencrypt.org&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;Best of all, if in the future you require more features the next pricing tier is still only $7.88. Not too shabby!&lt;/p&gt;
-&lt;h2 id=&quot;try-yourself&quot;&gt;Try Yourself&lt;/h2&gt;
-&lt;p&gt;The fact that EasyWP gives you a free month trial, there really is no reason not to try spinning up your own blog or online store or whatever the heck you want to build. The more people with personal spaces on the web the better.&lt;/p&gt;</content>
- <link href="https://btxx.org/performance-focused-wordpress-theme"/>
- <id>https://btxx.org/performance-focused-wordpress-theme</id>
- <updated>2021-09-08T10:00:00Z</updated>
- <published>2021-09-08T10:00:00Z</published>
- </entry>
- <entry>
- <title>Yet Another Static Site Generator Switch</title>
- <content type="html">&lt;h1 id=&quot;yet-another-static-site-generator-switch&quot;&gt;Yet Another Static Site Generator Switch&lt;/h1&gt;
-&lt;p&gt;2022-07-06&lt;/p&gt;
-&lt;p&gt;If you&amp;#8217;re an RSS subscriber, I&amp;#8217;ve probably blown up your feed reader (again). This seems to be an on-going theme with this blog. I can&amp;#8217;t help it.&lt;/p&gt;
-&lt;p&gt;This website now uses my &lt;em&gt;new&lt;/em&gt; Pandoc-based static blog generator: &lt;a href=&quot;https://pblog.bt.ht&quot;&gt;pblog&lt;/a&gt;. I won&amp;#8217;t go into great detail about it&amp;#8217;s features (or lack thereof) - if you&amp;#8217;re interested in that, check out the &lt;a href=&quot;https://pblog.bt.ht/blog/pblog-intro.html&quot;&gt;&amp;#8220;Introducing pblog&amp;#8221; article&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;The bigger question is, &amp;#8220;Why the change?&amp;#8221;&lt;/p&gt;
-&lt;h2 id=&quot;wheres-the-love-for-shinobi&quot;&gt;Where&amp;#8217;s the Love for &amp;#8220;Shinobi&amp;#8221;?&lt;/h2&gt;
-&lt;p&gt;Switching over to &lt;code&gt;pblog&lt;/code&gt; wasn&amp;#8217;t caused by a dislike of using &lt;a href=&quot;https://shinobi.bt.ht&quot;&gt;Shinobi&lt;/a&gt;. In fact, I still really enjoy the work flow that that plain-text focused SSG provides. The main issues that popped up for my own blog was &lt;em&gt;accessibility&lt;/em&gt; and &lt;em&gt;poor user experience&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;I had multiple readers reach out and mention poor rendering of content in their RSS reader of choice. That&amp;#8217;s kind of a &lt;strong&gt;big deal&lt;/strong&gt;. I test that project as best I can with my limited access to all available RSS readers - but I can only test so much. It became one of those &amp;#8220;Well, it works on my machine!&amp;#8221; meme. So instead of spending an untold amount of time debugging every RSS reader known to man, I figured my best bet was to render things as &lt;code&gt;HTML&lt;/code&gt;.&lt;/p&gt;
-&lt;p&gt;The next big issue was &lt;em&gt;accessibility&lt;/em&gt;. Screen readers can read &lt;code&gt;txt&lt;/code&gt; formatted files perfectly fine but since elements aren&amp;#8217;t categorized everything ends up with the same level hierarchy. This can cause confusion between headers, list items, URLs, footers etc. For my personal use-case (sharing tutorials and covering design topics) it didn&amp;#8217;t make sense to sacrifice user accessibility for minimalism.&lt;/p&gt;
-&lt;h2 id=&quot;the-search-for-simplicity&quot;&gt;The Search for Simplicity&lt;/h2&gt;
-&lt;p&gt;My initial thought process was to include some form of &amp;#8220;plus&amp;#8221; add-on to the existing Shinobi build script. The idea was to render &lt;code&gt;HTML&lt;/code&gt; versions of each post and dump those into the generated RSS file. Although maybe good in theory, it ended up impractical because:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;No utility or existing tool could render the style of text-based formatting I implemented as semantic HTML (at least not without heavy customization and tinkering)&lt;/li&gt;
-&lt;li&gt;I was actually adding extra bloat to the Shinobi project (true minimalism is the point, right?)&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;So, that option was ruled out pretty quickly.&lt;/p&gt;
-&lt;p&gt;The next option didn&amp;#8217;t take me long to land on: &lt;em&gt;Pandoc&lt;/em&gt;. I&amp;#8217;ve used Pandoc for years and have nothing but great experiences tweaking it for my own needs. I knew that I could piggyback off the original &lt;code&gt;shell&lt;/code&gt; commands in the Shinobi project and alter them as needed to incorporate Pandoc.&lt;/p&gt;
-&lt;p&gt;I honestly didn&amp;#8217;t run into many issues while rolling this out. Fairly seamless!&lt;/p&gt;
-&lt;h2 id=&quot;new-workflow&quot;&gt;New Workflow&lt;/h2&gt;
-&lt;p&gt;With this new blog switch I also decided to try out a new &lt;em&gt;deploy&lt;/em&gt; workflow. I&amp;#8217;ve used &lt;code&gt;rsync&lt;/code&gt; for the longest time but wanted to have something more GUI-based on macOS. I know, &lt;em&gt;blasphemy&lt;/em&gt;!&lt;/p&gt;
-&lt;p&gt;Since I already have a Transmit license, that seemed like the best fit since it is designed specifically for macOS. Now my workflow process is as follows:&lt;/p&gt;
+&lt;p&gt;After realizing all that, it&amp;#8217;s pretty difficult to stick with Netlify&amp;#8217;s &lt;em&gt;proprietary&lt;/em&gt; stack&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;free-but-not-free&quot;&gt;Free but not &lt;em&gt;&amp;#8220;free&amp;#8221;&lt;/em&gt;&lt;/h2&gt;
+&lt;p&gt;I should note that using sourcehut pages &lt;em&gt;does&lt;/em&gt; require you to be a contributing (read: paying) member on the platform. I&amp;#8217;m a cheapo and selected the $2&amp;#47;month option but you might be inclined to donate more. Paying this &amp;#8220;fee&amp;#8221; is perfectly fine for me, considering the hosting quality (speed and storage) it affords me. It also doesn&amp;#8217;t hurt that I get the &amp;#8220;feel good vibes&amp;#8221; of supporting an important, open source product.&lt;/p&gt;
+&lt;p&gt;Keeping that in mind, let&amp;#8217;s get into setting up our static site!&lt;/p&gt;
+&lt;h2 id=&quot;setting-up-your-repo-locally&quot;&gt;Setting up your repo locally&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;Write new posts in my root &lt;code&gt;posts&lt;/code&gt; folder&lt;/li&gt;
-&lt;li&gt;Rebuild the &lt;code&gt;pblog&lt;/code&gt; with &lt;code&gt;make&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;Use the built-in sync function of Transmit to mirror my local &lt;code&gt;_output&lt;/code&gt; with my web server&lt;/li&gt;
+&lt;li&gt;Create a new account on &lt;a href=&quot;https://sourcehut.org&quot;&gt;sourcehut&lt;/a&gt; (or log in to an existing one)&lt;/li&gt;
+&lt;li&gt;Setup your billing to contribute monthly (tier amount is up to you)&lt;/li&gt;
+&lt;li&gt;Create a new repo under the &lt;strong&gt;git&lt;/strong&gt; section&lt;sup id=&quot;fnref1&quot;&gt;&lt;a href=&quot;#fn1&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
+&lt;li&gt;Connect this repo locally (as you would via any other git host)&lt;/li&gt;
+&lt;li&gt;In this new local directory, place all your Jekyll files as you would with any other static hosting provider&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/transmit-ftp.webp&quot; alt=&quot;The Transmit UI in all of its wonderful glory (before I updated)&quot; /&gt;&lt;/p&gt;
-&lt;h3 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h3&gt;
-&lt;p&gt;Will there be bugs with this switch-over? Most likely. Will some URLs be left behind or broken? Possibly. These small issues will be ironed out over time. For now, I&amp;#8217;m quite happy with keeping things minimal on the workflow side of things, while preserving accessibility and user experience with the output.&lt;/p&gt;
-&lt;p&gt;Thanks for reading!&lt;/p&gt;</content>
- <link href="https://btxx.org/pblog"/>
- <id>https://btxx.org/pblog</id>
- <updated>2022-07-06T10:00:00Z</updated>
- <published>2022-07-06T10:00:00Z</published>
- </entry>
- <entry>
- <title>Happily Paying For macOS Apps</title>
- <content type="html">&lt;h1 id=&quot;happily-paying-for-macos-apps&quot;&gt;Happily Paying For macOS Apps&lt;/h1&gt;
-&lt;p&gt;2022-06-29&lt;/p&gt;
-&lt;p&gt;It&amp;#8217;s no secret that I am a huge advocate for open source software. A solid chunk of my day-to-day workload is done so via FOSS[^0] systems. I also manage a handful of fun side projects that are normally shipped under either MIT or GPL licensing. But that doesn&amp;#8217;t mean I still don&amp;#8217;t enjoy &lt;em&gt;some&lt;/em&gt; non-free, proprietary software.&lt;/p&gt;
-&lt;p&gt;So, I thought I would share my collection of macOS applications that I happily paid for. (There aren&amp;#8217;t many since my needs are limited)&lt;/p&gt;
-&lt;h2 id=&quot;design-tool-sketch&quot;&gt;Design Tool: Sketch&lt;/h2&gt;
-&lt;p&gt;My day job requires me to use Figma, which is totally fine but not nearly as polished as Sketch. Yes, Figma is cross-platform. Yes, Figma can run directly in the browser. Yes, Figma is free for most smaller team sizes.&lt;/p&gt;
-&lt;p&gt;But sorry - Sketch is just better.&lt;/p&gt;
-&lt;p&gt;Since the team at Bohemian Coding have crafted Sketch specifically for macOS it feels native, runs extremely well and fits in with the rest of the ecosystem. The pricing model is okay in my books too, balancing a fine line between &lt;em&gt;optional&lt;/em&gt; yearly subscriptions and one-time purchases. It&amp;#8217;s a smart move and I much prefer it to a forced subscription plan.&lt;/p&gt;
-&lt;p&gt;URL: &lt;a href=&quot;https://www.sketch.com/&quot;&gt;https:&amp;#47;&amp;#47;www.sketch.com&amp;#47;&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;password-manager-secrets&quot;&gt;Password Manager: Secrets&lt;/h2&gt;
-&lt;p&gt;I was originally a subscriber to 1Password but couldn&amp;#8217;t justify spending $7CDN a month for what it was offering. Also, subscriptions suck. After doing some research I stumbled upon Secrets and noticed some things about it that instantly caught my eye:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;No subscriptions! One-time price forever.&lt;/li&gt;
-&lt;li&gt;iCloud Sync across devices&lt;/li&gt;
-&lt;li&gt;Browser extension support (although I don&amp;#8217;t use this personally)&lt;/li&gt;
-&lt;li&gt;Developed by a one-man team (support indie devs!)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;I purchased both the macOS and iOS versions of Secrets after trying out the free version almost immediately. It&amp;#8217;s wonderful. The UI is clean and flows well with the rest of the Mac ecosystem to give it a native &amp;#8220;Apple&amp;#8221; feel. Syncing my laptop and iPhone works seamless via iCloud.&lt;/p&gt;
-&lt;p&gt;And best of all - no monthly fees.&lt;/p&gt;
-&lt;p&gt;URL: &lt;a href=&quot;https://outercorner.com/secrets-mac/&quot;&gt;https:&amp;#47;&amp;#47;outercorner.com&amp;#47;secrets-mac&amp;#47;&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;transferring-files-transmit-5&quot;&gt;Transferring Files: Transmit 5&lt;/h2&gt;
-&lt;p&gt;The folks at Panic make incredible Mac and iOS apps. I see them as one of the best in the industry. In the early days of my web development career, I used to run Coda exclusively. I&amp;#8217;ve since moved on the Sublime Text but I still have fond memories of the old Panic editor.&lt;/p&gt;
-&lt;p&gt;As for FTP access, I still use Panic&amp;#8217;s Transmit to this day. Beautiful UI that feels snappy even when transferring massive files across servers. Transmit is also a one-time purchase. Thank goodness. (Have I mentioned that I hate software subscriptions?)&lt;/p&gt;
-&lt;p&gt;URL: &lt;a href=&quot;https://panic.com/transmit/&quot;&gt;https:&amp;#47;&amp;#47;panic.com&amp;#47;transmit&amp;#47;&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;the-sourcehut-build-file&quot;&gt;The sourcehut build file&lt;/h2&gt;
+&lt;p&gt;In order to have your Jekyll site build and push the correct files live, you will need to use sourcehut&amp;#8217;s build system. This will run every time you push out a new change to your repo (new blog post, page content changes, styling updates).&lt;/p&gt;
+&lt;p&gt;To make things easier, you can copy the build file below (remember to use your &lt;em&gt;own&lt;/em&gt; information for usernames, git repo naming etc):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;image: debian&amp;#47;stable
+oauth: pages.sr.ht&amp;#47;PAGES:RW
+packages:
+- ruby-full
+- ruby-dev
+environment:
+site: yourusername.srht.site
+sources:
+- https:&amp;#47;&amp;#47;git.sr.ht&amp;#47;~yourusername&amp;#47;your-repo-name
+tasks:
+- install-bundler: |
+ sudo gem install bundler
+- build: |
+ cd your-repo-name
+ bundle install
+ bundle exec jekyll build
+- package: |
+ cd your-repo-name&amp;#47;_site
+ tar -cvz . &amp;#62; ..&amp;#47;..&amp;#47;site.tar.gz
+- upload: |
+ acurl -f https:&amp;#47;&amp;#47;pages.sr.ht&amp;#47;publish&amp;#47;$site -Fcontent=@site.tar.gz
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Save this file as &lt;code&gt;.build.yml&lt;/code&gt; and place it in the root directory of your Jekyll source code.&lt;/p&gt;
+&lt;p&gt;Then, you just need to push your changes to the repo. If everything was setup properly, you&amp;#8217;ll be able to see your live site at &lt;code&gt;https:&amp;#47;&amp;#47;yourusername.srht.site&lt;/code&gt; (just give it a little bit of time to run the full build process)&lt;/p&gt;
+&lt;h2 id=&quot;custom-domains&quot;&gt;Custom Domains&lt;/h2&gt;
+&lt;p&gt;If you&amp;#8217;re like me and want to use your own custom domain - have no fear! This process is actually quite easy.&lt;/p&gt;
+&lt;p&gt;First, add a new A Record through your domain provider:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@ IN A 173.195.146.139
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Then change the following &lt;code&gt;environment&lt;/code&gt; parameter inside your existing &lt;code&gt;.build.yml&lt;/code&gt; file:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;environment:
+site: yourcustomdomain.com
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;And that&amp;#8217;s it - custom domain set! If you run into any issues check out the &lt;a href=&quot;https://srht.site/custom-domains&quot;&gt;official documentation on custom domains&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h2&gt;
-&lt;p&gt;I know this list only includes 3 applications, but that&amp;#8217;s truly all the ones I&amp;#8217;ve spent money on. If in the future I happen to purchase any others I will be sure to update this post accordingly.&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;p&gt;Hopefully this helps to streamline the process for others to host their static sites through sourcehut. Having open and healthy competition among host providers and &lt;code&gt;git&lt;/code&gt; workflows is essential to avoiding vendor lock-in. &lt;/p&gt;
+&lt;p&gt;Even low-effort support for open-source products (like where you host your static site or FOSS projects) can go a long way. Just some food for thought.&lt;/p&gt;
+&lt;div class=&quot;footnotes&quot;&gt;
+&lt;hr/&gt;
&lt;ol&gt;
-&lt;li&gt;Free &amp;#38; open source software&lt;/li&gt;
-&lt;/ol&gt;</content>
- <link href="https://btxx.org/paid-mac-apps"/>
- <id>https://btxx.org/paid-mac-apps</id>
- <updated>2022-06-29T10:00:00Z</updated>
- <published>2022-06-29T10:00:00Z</published>
- </entry>
- <entry>
- <title>Over-Nesting</title>
- <content type="html">&lt;h1 id=&quot;over-nesting&quot;&gt;Over-Nesting&lt;/h1&gt;
-&lt;p&gt;2019-01-06&lt;/p&gt;
-&lt;p&gt;I think since our design industry moves so quickly and exciting new technologies get released almost daily, that we often forget some of the basics when writing CSS. I bring this up because I&amp;#8217;ve recently worked on a few projects that show a slight disregard for proper class&amp;#47;selector nesting.&lt;/p&gt;
-&lt;p&gt;Now it&amp;#8217;s completely understandable why designers and teams alike shrug off the concept of &amp;#8220;over-nesting&amp;#8221;:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;As a team we know the structure of our code (no outside party needs to interact with it)&lt;/li&gt;
-&lt;li&gt;Everything is written in &lt;code&gt;insert pre-processor here&lt;/code&gt; - so it&amp;#8217;s cleaner&amp;#47;compiled anyway&lt;/li&gt;
-&lt;li&gt;It&amp;#8217;s &lt;em&gt;technically&lt;/em&gt; DRY&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;I personally believe these are all weak excuses that don&amp;#8217;t justify the poor experience future maintainers of your code will face. &lt;em&gt;You should always write your code with the idea someone completely new to the project will have to maintain it&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s look at an average example of poor nesting that I&amp;#8217;ve seen out in the wild:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* These children elements can&amp;#39;t be used outside
-of the parent - not very flexible *&amp;#47;
-.main-container {
- .child-container {
- &amp;#47;* This class specificity is too deep *&amp;#47;
- .sub-child-container {}
- }
-}
+
+&lt;li id=&quot;fn1&quot;&gt;
+&lt;p&gt;Thanks to &lt;a href=&quot;https://cnx.srht.site/&quot;&gt;McSinyx&lt;/a&gt; for pointing out that the repo used for creating your website can be named anything (instead of defaulting to your sourcehut username)&amp;#160;&lt;a href=&quot;#fnref1&quot; rev=&quot;footnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
+&lt;/li&gt;
+
+&lt;/ol&gt;
+&lt;/div&gt;</content>
+ <link href="https://btxx.org/posts/jekyll-sourcehut"/>
+ <id>https://btxx.org/posts/jekyll-sourcehut</id>
+ <updated>2021-12-06T10:00:00Z</updated>
+ <published>2021-12-06T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Setup Jekyll from Scratch on a New Linux System</title>
+ <content type="html">&lt;h1 id=&quot;setup-jekyll-from-scratch-on-a-new-linux-system&quot;&gt;Setup Jekyll from Scratch on a New Linux System&lt;/h1&gt;
+&lt;p&gt;2022-09-19&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Special Note:&lt;/strong&gt; Credit needs to be given to user &lt;a href=&quot;https://stackoverflow.com/users/4974784/achraf-jeday&quot;&gt;Achraf JEDAY&lt;/a&gt; for putting these instructions together on Stack Overflow (although his comments were targeting an older version of Ruby). This post is more for my own personal notes than anything else.&lt;/p&gt;
+&lt;p&gt;I find myself constantly running into small issues when trying to setup existing Jekyll projects on new Linux systems. I &lt;em&gt;could&lt;/em&gt; use something like Docker, but that just seems so beefy and slow to me. So here is a step-by-step way (and foolproof from my own testing) to get Jekyll running smoothly in no time!&lt;/p&gt;
+&lt;h2 id=&quot;figuring-out-ruby-first&quot;&gt;Figuring out Ruby First&lt;/h2&gt;
+&lt;p&gt;The first item of business is removing the default Ruby that ships with most Linux distros:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo apt-get remove ruby
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Even if you know a child element will never be structured outside of it&amp;#8217;s parent, what harm does it cause to still place it out of such deep specificity?&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* This code is far more reusable *&amp;#47;
-.main-container {}
-.child-container {}
-.sub-child-container {}
+&lt;p&gt;Then we check for updates and install everything we need:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo apt update
+sudo apt install git curl libssl-dev libreadline-dev zlib1g-dev autoconf bison build-essential libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;exceptions&quot;&gt;Exceptions&lt;/h3&gt;
-&lt;p&gt;As with anything, there are exceptions to the &lt;em&gt;rule&lt;/em&gt;. If the nested elements pertain to the parent itself, it makes complete sense to group these stylings together. A button or link item are excellent examples of this:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.btn-lg {
- &amp;#38;:hover {}
- &amp;#38;:active {}
- &amp;#38;:disabled{}
-}
-
-.link-item {
- &amp;#38;:hover{}
- &amp;#38;:focus{}
-}
+&lt;p&gt;Now we can install &lt;code&gt;rbenv&lt;/code&gt; and &lt;code&gt;ruby-build&lt;/code&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;curl -sL https:&amp;#47;&amp;#47;github.com&amp;#47;rbenv&amp;#47;rbenv-installer&amp;#47;raw&amp;#47;main&amp;#47;bin&amp;#47;rbenv-installer | bash -
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Of course, this is all easier said than done. Limitations exist within teams or even on an individual level that might make this impossible to change. Maybe you don&amp;#8217;t have the authority to rework your current CSS or it would eat up too many cycles and time is valuable - especially in the world of startups. &lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m not saying this is &lt;strong&gt;the only way to structure CSS&lt;/strong&gt; - I&amp;#8217;m only trying to make the lives of future designers&amp;#47;developers easier moving forward. &lt;/p&gt;</content>
- <link href="https://btxx.org/over-nesting"/>
- <id>https://btxx.org/over-nesting</id>
- <updated>2019-01-06T10:00:00Z</updated>
- <published>2019-01-06T10:00:00Z</published>
- </entry>
- <entry>
- <title>Over-Engineering an Oil Tank Gauge</title>
- <content type="html">&lt;h1 id=&quot;over-engineering-an-oil-tank-gauge&quot;&gt;Over-Engineering an Oil Tank Gauge&lt;/h1&gt;
-&lt;p&gt;2020-09-09&lt;/p&gt;
-&lt;p&gt;I almost went down the path of investing a huge amount of time and effort into fixing a stuck oil fuel tank float-gauge in my house. Recently, the float mechanism became stuck and permanently displayed &lt;code&gt;empty&lt;/code&gt; regardless of how much fuel was in the tank - not ideal. It&amp;#8217;s a 20 year-old tank, so I wasn&amp;#8217;t surprised that the float finally gave out. &lt;/p&gt;
-&lt;p&gt;Being the wannabe tinkerer that I am, a light bulb went off in my head and I started thinking on how to incorporate some ultrasonic system to display the accurate fuel reading digitally. Obviously my first thought was just to replace the float gauge with a new one and be done with it. That didn&amp;#8217;t sound very &lt;em&gt;fun&lt;/em&gt; though.&lt;/p&gt;
-&lt;p&gt;I briefly looked at other similar projects and started brainstorming the best way I would implement this for my own situation. The best option I came across seemed to be this: &lt;a href=&quot;https://scottiestech.info/2017/10/24/diy-ultrasonic-fuel-gauge-level-sensor/&quot;&gt;DIY Ultrasonic Fuel Gauge &amp;#47; Level Sensor&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;An ultrasonic system with a cool mini display sounded pretty rad - much cooler than just replacing the broken gauge with a new float arm. So it was settled.&lt;/p&gt;
-&lt;h2 id=&quot;my-oil-think-tank&quot;&gt;My oil think-tank&lt;/h2&gt;
-&lt;p&gt;I quickly thought through my options in my head before jumping too far into things (and even included a &amp;#8220;poor-mans&amp;#8221; temperature strip option):&lt;/p&gt;
-&lt;table&gt;
-&lt;thead&gt;
-&lt;tr&gt;
-&lt;th&gt;Solution&lt;/th&gt;
-&lt;th&gt;Cost&lt;/th&gt;
-&lt;th&gt;Time&lt;/th&gt;
-&lt;/tr&gt;
-&lt;/thead&gt;
-&lt;tbody&gt;
-&lt;tr&gt;
-&lt;td&gt;Ultrasonic Gauge&lt;/td&gt;
-&lt;td&gt;$40-50&lt;/td&gt;
-&lt;td&gt;~2-3 hours&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;New Float Gauge&lt;/td&gt;
-&lt;td&gt;$25-30&lt;/td&gt;
-&lt;td&gt;~45 minutes&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;Temperature Strips&lt;/td&gt;
-&lt;td&gt;$10&lt;/td&gt;
-&lt;td&gt;~2 minutes&lt;/td&gt;
-&lt;/tr&gt;
-&lt;/tbody&gt;
-&lt;/table&gt;
-&lt;p&gt;My mind was still set on building and implementing the ultrasonic option. It would be a great learning experience at the very least!&lt;/p&gt;
-&lt;p&gt;So, before I ordered any parts or started designing a case that would house this new super-cool device, I went to investigate&amp;#47;remove the float gauge to get a better look at the damage. With the help of some penetrating oil (the original installer went crazy with the pipe dope) and my trusty wrench, I opened up the gauge cap, partly lifting the float from the tank. Right away I noticed that the float and shaft were slightly stuck together in one small area. I poked it with my finger.&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;The float set itself back into the correct position. It was fixed.&lt;/em&gt;&lt;/p&gt;
-&lt;p&gt;How could I have been so dumb. I was so excited about &lt;em&gt;building something&lt;/em&gt; that I jumped into implementation before fully realizing the problem. Talk about a metaphor for web dev, am I right?&lt;/p&gt;
-&lt;h2 id=&quot;overthinking-simple-problems&quot;&gt;Overthinking simple problems&lt;/h2&gt;
-&lt;p&gt;I can&amp;#8217;t speak for all designers &amp;#47; developers out there, but I catch myself (far more often than I&amp;#8217;d like to admit) over-engineering a solution because of some perceived notion that it is the &amp;#8220;best&amp;#8221; option. Most of the time it isn&amp;#8217;t actually better, it just seems more &lt;em&gt;fun&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;Now don&amp;#8217;t get me wrong, fun is a good thing most of the time. It&amp;#8217;s just that some instances call for the quickest, cleanest, easiest solution in the name of efficiency - just be sure to have fully explored the problem &lt;em&gt;first&lt;/em&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;final-decision&quot;&gt;Final decision&lt;/h2&gt;
-&lt;p&gt;So I ended up doing nothing. I simply re-threaded the cap and placed the float back inside the tank. I know I saved myself time and money, but I can&amp;#8217;t help but feel like I failed&amp;#8230;&lt;/p&gt;
-&lt;p&gt;Just like in the world of software, it&amp;#8217;s best to avoid over-engineering simple problems.&lt;/p&gt;</content>
- <link href="https://btxx.org/over-engineering-an-oil-tank"/>
- <id>https://btxx.org/over-engineering-an-oil-tank</id>
- <updated>2020-09-09T10:00:00Z</updated>
- <published>2020-09-09T10:00:00Z</published>
- </entry>
- <entry>
- <title>Building openring with Jekyll Build</title>
- <content type="html">&lt;h1 id=&quot;building-openring-with-jekyll-build&quot;&gt;Building openring with Jekyll Build&lt;/h1&gt;
-&lt;p&gt;2022-12-02&lt;/p&gt;
-&lt;p&gt;I think it&amp;#8217;s great when bloggers post their own personal &amp;#8220;reading list&amp;#8221; of blogs they themselves follow. Whether this is a customized Blogroll page or footnotes in their individual articles, I find it really helpful to find more interesting content on the &amp;#8220;indie&amp;#8221; web. This isn&amp;#8217;t a new concept by any means, but I wanted something a little more &amp;#8220;dynamic&amp;#8221;[^1] for my own blog.&lt;/p&gt;
-&lt;p&gt;After some digging I came across &lt;a href=&quot;https://sr.ht/~sircmpwn/openring/&quot;&gt;openring&lt;/a&gt; and it&amp;#8217;s great. Fully customizable, lightweight and completely open source. What more could you ask for?&lt;/p&gt;
-&lt;p&gt;So, I thought others might be interested in how I&amp;#8217;ve implemented openring through my own Jekyll build system.&lt;/p&gt;
-&lt;h2 id=&quot;installing-openring&quot;&gt;Installing openring&lt;/h2&gt;
-&lt;p&gt;You can pull the project &lt;a href=&quot;https://sr.ht/~sircmpwn/openring/&quot;&gt;directly via SourceHut&lt;/a&gt; if you wish, but I would recommend installing through your default package manager. I&amp;#8217;m running Arch, so for me it was as simple as running:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;yay -S openring
+&lt;p&gt;After both of those install, you will want to add those to your system &lt;strong&gt;PATH&lt;/strong&gt;:&lt;/p&gt;
+&lt;h3 id=&quot;bash&quot;&gt;Bash&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;echo &amp;#39;export PATH=&quot;$HOME&amp;#47;.rbenv&amp;#47;bin:$PATH&quot;&amp;#39; &amp;#62;&amp;#62; ~&amp;#47;.bashrc
+echo &amp;#39;eval &quot;$(rbenv init -)&quot;&amp;#39; &amp;#62;&amp;#62; ~&amp;#47;.bashrc
+source ~&amp;#47;.bashrc
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it. I now have full local access to openring!&lt;/p&gt;
-&lt;h2 id=&quot;jekyll-includes&quot;&gt;Jekyll Includes&lt;/h2&gt;
-&lt;p&gt;You &lt;em&gt;could&lt;/em&gt; setup a whole new directory specifically for your openring files, but that seems like overkill. Instead, we will simply add two new files to our existing &lt;code&gt;_includes&lt;/code&gt; directory. We will name these files &lt;code&gt;openring-in.html&lt;/code&gt; and &lt;code&gt;openring-out.html&lt;/code&gt;.&lt;/p&gt;
-&lt;h3 id=&quot;openring-in.html-contents&quot;&gt;openring-in.html Contents&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;!-- License-Id: CC0-1.0 --&amp;#62;
-&amp;#60;section class=&quot;webring&quot;&amp;#62;
- &amp;#60;h3&amp;#62;Articles from blogs I follow around the world wide web&amp;#60;&amp;#47;h3&amp;#62;
- &amp;#60;section class=&quot;articles&quot;&amp;#62;
- {{range .Articles}}
- &amp;#60;div class=&quot;article&quot;&amp;#62;
- &amp;#60;h4 class=&quot;title&quot;&amp;#62;
- &amp;#60;a href=&quot;{{.Link}}&quot; rel=&quot;noopener&quot;&amp;#62;{{.Title}}&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;&amp;#47;h4&amp;#62;
- &amp;#60;p class=&quot;summary&quot;&amp;#62;{{.Summary}}&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;small class=&quot;source&quot;&amp;#62;
- via &amp;#60;a href=&quot;{{.SourceLink}}&quot;&amp;#62;{{.SourceTitle}}&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;&amp;#47;small&amp;#62;
- &amp;#60;small class=&quot;date&quot;&amp;#62;{{.Date | datef &quot;January 2, 2006&quot;}}&amp;#60;&amp;#47;small&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- {{end}}
- &amp;#60;&amp;#47;section&amp;#62;
- &amp;#60;p class=&quot;attribution&quot;&amp;#62;
- Generated by
- &amp;#60;a href=&quot;https:&amp;#47;&amp;#47;git.sr.ht&amp;#47;~sircmpwn&amp;#47;openring&quot;&amp;#62;openring&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;&amp;#47;p&amp;#62;
-&amp;#60;&amp;#47;section&amp;#62;
-&amp;#60;style&amp;#62;
-.webring .articles {
- display: flex;
- flex-wrap: wrap;
- margin: -0.5rem;
-}
-.webring .title {
- margin: 0;
-}
-.webring .article {
- flex: 1 1 0;
- display: flex;
- flex-direction: column;
- margin: 0.5rem;
- padding: 0.5rem;
- background: #eee;
- min-width: 10rem;
-}
-.webring .summary {
- font-size: 0.8rem;
- flex: 1 1 0;
-}
-.webring .attribution {
- text-align: right;
- font-size: 0.8rem;
- color: #555;
-}
-&amp;#60;&amp;#47;style&amp;#62;
+&lt;h3 id=&quot;zsh&quot;&gt;ZSH&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;echo &amp;#39;export PATH=&quot;$HOME&amp;#47;.rbenv&amp;#47;bin:$PATH&quot;&amp;#39; &amp;#62;&amp;#62; ~&amp;#47;.zshrc
+echo &amp;#39;eval &quot;$(rbenv init -)&quot;&amp;#39; &amp;#62;&amp;#62; ~&amp;#47;.zshrc
+source ~&amp;#47;.zshrc
&lt;/code&gt;&lt;/pre&gt;
-&lt;blockquote&gt;
-&lt;p&gt;Sidenote: You will get minor Liquid Syntax warnings in the console when running your website via &lt;code&gt;serve&lt;/code&gt; or &lt;code&gt;build&lt;/code&gt;. I don&amp;#8217;t really mind those warnings but if you do, feel free to move these files out into their own sub-directory in your project folder.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;h3 id=&quot;openring-out.html-contents&quot;&gt;openring-out.html Contents&lt;/h3&gt;
-&lt;p&gt;This will generate itself for us every time we rebuild our Jekyll website. It is important to note that any changes you make in this file will be overwritten the next time you rebuild! All custom styling or layout changes should be made in the &lt;code&gt;openring-in.html&lt;/code&gt; file.&lt;/p&gt;
-&lt;h2 id=&quot;our-new-build-script&quot;&gt;Our &amp;#8220;New&amp;#8221; Build Script&lt;/h2&gt;
-&lt;p&gt;To simplify things, we are going to place our main commands in a single build script in the root directory of our Jekyll project. For my personal blog, I&amp;#8217;ve named this file &lt;code&gt;build-site.sh&lt;/code&gt;. I know - I&amp;#8217;m extremely creative.&lt;/p&gt;
-&lt;p&gt;Place the following inside that file:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;openring \
- -s https:&amp;#47;&amp;#47;example.com&amp;#47;feed.xml \
- -s https:&amp;#47;&amp;#47;example.com&amp;#47;feed.xml \
- -s https:&amp;#47;&amp;#47;example.com&amp;#47;feed.xml \
- &amp;#60; _includes&amp;#47;openring-in.html \
- &amp;#62; _includes&amp;#47;openring-out.html
-bundle exec jekyll build
+&lt;p&gt;With that complete, we can now install the version of Ruby we wish to use and set it globally (at this time of writing it is &lt;code&gt;3.1.2&lt;/code&gt;):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;rbenv install 3.1.2
+rbenv global 3.1.2
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;edit-&quot;&gt;Edit &lt;code&gt;_config.yml&lt;/code&gt;&lt;/h2&gt;
-&lt;p&gt;Next we need to make sure we exclude our new &lt;code&gt;build-site&lt;/code&gt; script file, since we really don&amp;#8217;t need that pushed up to the main server:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;# Includes &amp;#47; Excludes
-exclude:
- - build-site.sh
+&lt;p&gt;And &lt;code&gt;rehash&lt;/code&gt; so our changes take:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;rbenv rehash
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;almost-done&quot;&gt;Almost Done&amp;#8230;&lt;/h2&gt;
-&lt;p&gt;Now you just need to decide where you want your &lt;code&gt;openring&lt;/code&gt; feed outputs to render. For this example, we will place them at the bottom of every blog post inside the &lt;code&gt;_layouts&amp;#47;post.html&lt;/code&gt; file, like so:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;{% raw %}{% include openring-out.html %}{% endraw %}
+&lt;p&gt;Now you should see the properly set Ruby version when you run the following:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;ruby -v
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;getting-ruby-gems&quot;&gt;Getting Ruby Gems&lt;/h2&gt;
+&lt;p&gt;In case you don&amp;#8217;t have it installed already, be sure to grab &lt;code&gt;rubygems&lt;/code&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo apt install rubygems
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;running-jekyll&quot;&gt;Running Jekyll&lt;/h2&gt;
+&lt;p&gt;We are almost done! Navigate to your Jekyll project&amp;#8217;s directory and run:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;gem install jekyll bundler
+bundle install
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;That&amp;#8217;s it! Now if you run &lt;code&gt;bundle exec jekyll serve&lt;/code&gt; you&amp;#8217;ll find your Jekyll project running locally! Hopefully this helps others when needing to port any Jekyll projects over to a new Linux system. I know it will save me time!&lt;/p&gt;
+&lt;h2 id=&quot;alpine-linux-on-wayland&quot;&gt;Alpine Linux on Wayland&lt;/h2&gt;
+&lt;p&gt;Save yourself a world of trouble: just use &lt;code&gt;docker&lt;/code&gt;. The docker image below (jekyll-serve) works out-of-the-box:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://github.com/BretFisher/jekyll-serve&quot;&gt;https:&amp;#47;&amp;#47;github.com&amp;#47;BretFisher&amp;#47;jekyll-serve&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;Then run the following inside your project:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;docker run -p 4000:4000 -v $(pwd):&amp;#47;site bretfisher&amp;#47;jekyll-serve
+&lt;/code&gt;&lt;/pre&gt;</content>
+ <link href="https://btxx.org/posts/jekyll"/>
+ <id>https://btxx.org/posts/jekyll</id>
+ <updated>2022-09-19T10:00:00Z</updated>
+ <published>2022-09-19T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Transferring Media from macOS to a Jellyfin Server (Raspberry Pi 4)</title>
+ <content type="html">&lt;h1 id=&quot;transferring-media-from-macos-to-a-jellyfin-server-raspberry-pi-4&quot;&gt;Transferring Media from macOS to a Jellyfin Server (Raspberry Pi 4)&lt;/h1&gt;
+&lt;p&gt;2022-03-12&lt;/p&gt;
+&lt;p&gt;I run a personal media server using Jellyfin on a Raspberry Pi 4 in my home. It&amp;#8217;s pretty great and works well across most devices - Google TV, iOS and Android devices, Chromebooks, etc.&lt;/p&gt;
+&lt;p&gt;The only small headache is adding content (ie. audio, videos) to the existing hard drive that Jellyfin reads from. The last thing you want to do is connect a keyboard and monitor to your Pi to add a few files. Especially if your Pi is setup like mine and buried at the back of a hidden cabinet.&lt;/p&gt;
+&lt;p&gt;More annoying would be the need to remove the hard drive itself, connect it to your device that has the new files you wish to transfer and then port them over. Big ol&amp;#8217; pass on that system.&lt;/p&gt;
+&lt;h2 id=&quot;sshscp-to-the-rescue&quot;&gt;SSH&amp;#47;SCP to the Rescue&lt;/h2&gt;
+&lt;p&gt;&lt;em&gt;Important&lt;/em&gt;: before we begin, I should mention that this article assumes the following:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;The files you plan to transfer from are on a macOS device&lt;/li&gt;
+&lt;li&gt;You have setup Jellyfin on your Raspberry Pi device&lt;/li&gt;
+&lt;li&gt;SSH is enabled and accessible on the Pi (across your local network)&lt;/li&gt;
+&lt;li&gt;The Jellyfin server&amp;#8217;s hard drive is mounted in the root directory via something like &lt;code&gt;&amp;#47;mnt&lt;/code&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Good? Moving on then&amp;#8230;&lt;/p&gt;
+&lt;p&gt;Open your terminal of choice and use the following command:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;scp movie.mp4 pi_user_name@PI_IP_ADDRESS:&amp;#47;mnt&amp;#47;movies&amp;#47;movie.mp4
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;build-it-they-will-come&quot;&gt;Build It &amp;#38; They Will Come&lt;/h2&gt;
-&lt;p&gt;This next step is only for those using &lt;a href=&quot;https://srht.site&quot;&gt;SourceHut Pages&lt;/a&gt; to build and host their websites. If you use a different platform (ie Netlify, Vercel, GitHub Pages) the concept should be similar but will most likely require more tweaking on your end. Just a fair warning.&lt;/p&gt;
-&lt;p&gt;I won&amp;#8217;t go into great detail about build script for SourceHut Pages, but feel free to take a look at my &lt;a href=&quot;https://git.sr.ht/~bt/bt.ht/tree/master/item/.build.yml&quot;&gt;very own build file for this website&lt;/a&gt;. That &lt;em&gt;should&lt;/em&gt; work out-of-the-box for most standard Jekyll websites. (Just be sure to edit with your own details!)&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;That&amp;#8217;s it&lt;/strong&gt;. You now have links to blogs you enjoy that will update with each build. Of course, the &amp;#8220;latest&amp;#8221; blog posts shown will become out-of-date if you don&amp;#8217;t blog (or at least re-build your website) on a regular basis. But for me, I see this as a good motivator to keep pushing out content!&lt;/p&gt;
-&lt;p&gt;Happy sharing!&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;Well, as dynamic as a static website can be!&lt;/li&gt;
-&lt;/ol&gt;</content>
- <link href="https://btxx.org/openring"/>
- <id>https://btxx.org/openring</id>
- <updated>2022-12-02T10:00:00Z</updated>
- <published>2022-12-02T10:00:00Z</published>
- </entry>
- <entry>
- <title>Open Source Typeface Pairings</title>
- <content type="html">&lt;h1 id=&quot;open-source-typeface-pairings&quot;&gt;Open Source Typeface Pairings&lt;/h1&gt;
-&lt;p&gt;2018-01-25&lt;/p&gt;
-&lt;p&gt;I always love finding new typeface pairings to use across my personal and client projects, but I find many suggested pairings come with a hefty price tag (rightly so - premium typefaces are normally always worth their cost).&lt;/p&gt;
-&lt;p&gt;So, I&amp;#8217;ve curated this personal list of 5 exceptionally beautiful typeface pairings that will cost you absolutely nothing. Open source FTW.&lt;/p&gt;
-&lt;h2 id=&quot;et-book-gill-sans&quot;&gt;ET-Book &amp;#38; Gill Sans&lt;/h2&gt;
-&lt;p&gt;Download: ET Book, Gill Sans&lt;/p&gt;
-&lt;h2 id=&quot;playfair-display-roboto&quot;&gt;Playfair Display &amp;#38; Roboto&lt;/h2&gt;
-&lt;p&gt;Download: Playfair Display, Roboto&lt;/p&gt;
-&lt;h2 id=&quot;karma-open-sans&quot;&gt;Karma &amp;#38; Open Sans&lt;/h2&gt;
-&lt;p&gt;Download: Karma, Open Sans&lt;/p&gt;
-&lt;h2 id=&quot;libre-baskerville-oswald&quot;&gt;Libre Baskerville &amp;#38; Oswald&lt;/h2&gt;
-&lt;p&gt;Download: Libre Baskerville, Oswald&lt;/p&gt;
-&lt;h2 id=&quot;fanwood-league-spartan&quot;&gt;Fanwood &amp;#38; League Spartan&lt;/h2&gt;
-&lt;p&gt;Download: Fanwood, League Spartan&lt;/p&gt;</content>
- <link href="https://btxx.org/open-source-typeface-pairings"/>
- <id>https://btxx.org/open-source-typeface-pairings</id>
- <updated>2018-01-25T10:00:00Z</updated>
- <published>2018-01-25T10:00:00Z</published>
- </entry>
- <entry>
- <title>My Coffee Maker Just Makes Coffee</title>
- <content type="html">&lt;h1 id=&quot;my-coffee-maker-just-makes-coffee&quot;&gt;My Coffee Maker Just Makes Coffee&lt;/h1&gt;
-&lt;p&gt;2023-01-09&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/coffee-couple.svg&quot; alt=&quot;Couple drinking cups of coffee&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;I had to replace my dual Keurig coffee maker &lt;em&gt;twice&lt;/em&gt; over a period of five months. This occurred a year ago and these are my findings.&lt;/p&gt;
-&lt;h2 id=&quot;built-to-fail&quot;&gt;Built to Fail?&lt;/h2&gt;
-&lt;p&gt;I followed the manufactor&amp;#8217;s suggested cleaning schedule and took care of the appliances. My initial conclusion was that the product&amp;#8217;s design wasn&amp;#8217;t thought-out well. &amp;#8220;It&amp;#8217;s built to fail!&amp;#8221; I said to my wife the morning of the &lt;em&gt;second&lt;/em&gt; machine&amp;#8217;s failure. Another product replaced under warranty, while the broken one&amp;#8217;s tossed aside. More e-waste because why not?&lt;/p&gt;
-&lt;p&gt;But after some further reflection, I came to realize the &amp;#8220;poor design&amp;#8221; was a symptom of a greater cause:&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;The product tries to do too much&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m beating a dead horse by referencing &lt;a href=&quot;https://suckless.org&quot;&gt;suckless&lt;/a&gt; software again, but that core philosophy applies here too. Both digital and industrial design suffer from bloat. Far too often I witness fellow designers over-engineer customer requests. Or they add excessive bloat to new product features. It&amp;#8217;s almost a rarity these days to find designers who tackle work as &lt;em&gt;single items&lt;/em&gt;. Everything expands. Everything needs to do one little extra &amp;#8220;cool&amp;#8221; thing. Nothing is ever &lt;em&gt;taken away&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m sure the designers meant well with the creation of this dual coffee maker. It&amp;#8217;s interesting to combine both a standard 12-cup percolator and &amp;#8220;pod-based&amp;#8221; serving options. In theory it sounds quite handy. One appliance that tackles two use-cases. Think of the counter space you&amp;#8217;ll save! &lt;/p&gt;
-&lt;p&gt;Unfortunately, in practice, it fails.&lt;/p&gt;
-&lt;h2 id=&quot;product-decline&quot;&gt;Product Decline&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve felt product quality decline in both household appliances and software. Companies no longer seem content with doing &lt;em&gt;one thing well&lt;/em&gt;. Everyone needs to reach out into many verticals. Everyone copies their competitors.The need to &amp;#8220;grow&amp;#8221; their existing features. Adding things that no one asked for. Products are getting &lt;em&gt;slower&lt;/em&gt; and losing focus.&lt;/p&gt;
-&lt;p&gt;People tend to place all that blame on top-level management or developers. They do deserve some blame - but not all. Designers cause a lot of these issues on their own and it&amp;#8217;s easy to understand why.&lt;/p&gt;
-&lt;p&gt;The design field drops new designers into a &lt;em&gt;world of bloat&lt;/em&gt;. They don&amp;#8217;t stand a chance. The initial programs introduced to them are behemoth, proprietary pieces of garbage. No other options are available. No one is making strides in this field of &amp;#8220;design tool software&amp;#8221; because it&amp;#8217;s a massive uphill battle. Those that &lt;em&gt;try&lt;/em&gt;, get &lt;a href=&quot;https://www.theverge.com/2022/9/15/23354532/adobe-figma-acquisition-20-billion-official&quot;&gt;snatched up by existing platforms&lt;/a&gt;. Designers don&amp;#8217;t have the luxury of &amp;#8220;choice&amp;#8221; as much as developers do (within reason). It&amp;#8217;s a very locked-down industry.&lt;/p&gt;
-&lt;p&gt;So of course designers will carry this mentality into their own work. It&amp;#8217;s all they have known. &amp;#8220;X and Y companies designed their &lt;code&gt;insert-feature-here&lt;/code&gt; with all these &lt;em&gt;extras&lt;/em&gt;, so we&amp;#8217;ll do the same&amp;#8221;. Everything is &lt;a href=&quot;https://invidious.snopyta.org/watch?v=dC1yHLp9bWA&quot;&gt;a copy of a copy of a copy&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;The only advice I can give to designers is this: try not to add to the problem. I&amp;#8217;m not asking you to move mountains. But consider working somewhere else if your career only adds more bloat to the world. (Easier said than done, I know). Or keep doing what you&amp;#8217;re doing. What do I know - I&amp;#8217;m only some guy who rambles on the web.&lt;/p&gt;
-&lt;h2 id=&quot;back-to-the-coffee-maker&quot;&gt;Back to the Coffee Maker&lt;/h2&gt;
-&lt;p&gt;So the Keurig is gone. Trashed. The company doesn&amp;#8217;t want the product back, they tell you to scrap it. &amp;#8220;We&amp;#8217;ll send you a new one for free&amp;#8221;. Such a waste.&lt;/p&gt;
-&lt;p&gt;Instead, I snagged the cheapest and most basic coffee maker I could find. It cost me $12. It has no clock, no programming options, no base settings or cleaning functions. Hell, there aren&amp;#8217;t even level numbers on the water reservoir tank. &lt;/p&gt;
-&lt;p&gt;You add your scoops of coffee grounds, along with desired amount of water. Then you switch on the (only) button at the side of the machine. After a handful of minutes, you have coffee.&lt;/p&gt;
-&lt;p&gt;And it&amp;#8217;s been running &lt;em&gt;perfect&lt;/em&gt; for over 8 months now. I clean it every so often by brewing with a small mixture of vinegar and water. That&amp;#8217;s it. No need for &amp;#8220;specialty cleaners&amp;#8221; that cost almost as much as the machine itself. The points of failure get reduced as well, since the machine is bare-bones. Nothing can break when there is nothing to break&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;brewing-software&quot;&gt;&amp;#8220;Brewing&amp;#8221; Software&lt;/h2&gt;
-&lt;p&gt;At least, for me, I plan to only design what &lt;em&gt;needs to be&lt;/em&gt;. If someone asks for a &amp;#8220;coffee&amp;#8221;, they&amp;#8217;ll get a cup of hot, black coffee and nothing else.&lt;/p&gt;</content>
- <link href="https://btxx.org/one-thing"/>
- <id>https://btxx.org/one-thing</id>
- <updated>2023-01-09T10:00:00Z</updated>
- <published>2023-01-09T10:00:00Z</published>
- </entry>
- <entry>
- <title>Billing for One CSS Change</title>
- <content type="html">&lt;h1 id=&quot;billing-for-one-css-change&quot;&gt;Billing for One CSS Change&lt;/h1&gt;
-&lt;p&gt;2019-11-29&lt;/p&gt;
-&lt;p&gt;Every second you spend working as a designer should be billed back to the client. A simple button color change? Bill them. Additional links added to an existing menu? Send that invoice over. Some basic typeface changes? Don&amp;#8217;t do it for free.&lt;/p&gt;
-&lt;p&gt;You need to be charging for &lt;em&gt;all&lt;/em&gt; design work, regardless of difficulty or time required.&lt;/p&gt;
-&lt;p&gt;This concept might seem extremely obvious to more senior level workers but I have seen a good amount of junior devs make the mistake of &amp;#8220;working for experience&amp;#8221; or better yet &amp;#8220;strengthening the client relationship&amp;#8221;. Early on in my career I was just as guilty of doing this kind of thing. It was and still is a very foolish practice.&lt;/p&gt;
-&lt;h2 id=&quot;do-you-really-bill-for-one-css-change&quot;&gt;Do you really bill for &lt;em&gt;one&lt;/em&gt; CSS change?&lt;/h2&gt;
-&lt;p&gt;Absolutely. From the client&amp;#8217;s perspective it may seem like they are being billed for one CSS change and 30 seconds of a designer&amp;#8217;s time. In reality, they are paying for the designer&amp;#8217;s years of experience to be able to solve that problem in &lt;em&gt;only&lt;/em&gt; 30 seconds.&lt;/p&gt;
-&lt;p&gt;Would the client be happier with a significantly less qualified designer charging the same amount of money but taking 3 &lt;em&gt;hours&lt;/em&gt; to complete the task? In the end, what&amp;#8217;s the difference?&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;If it is a simple change that they believe should cost nothing, then why aren&amp;#8217;t they doing it themselves?&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;We as developers and designers work in an odd industry. A lot of people (read clients) outside of our bubble tend to think they have a much better understanding of the work we do. Because of this, they tend to preface work requests with phrases like:&lt;/p&gt;
+&lt;li&gt;&lt;code&gt;movie.mp4&lt;/code&gt; is the file in the current macOS directory we plan to copy over&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;pi_user_name&lt;/code&gt; is the username you setup on your Raspberry Pi&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;PI_IP_ADDRESS&lt;/code&gt; is, of course, your Pi&amp;#8217;s IP address&lt;/li&gt;
+&lt;li&gt;The appended &lt;code&gt;:&amp;#47;mnt&amp;#47;movies&amp;#47;movie.mp4&lt;/code&gt; is the directory your Jellyfin server uses to pull-in media&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;You&amp;#8217;ll be prompted for the user password. Once entered the file will begin copying over to your remote Jellyfin server. That&amp;#8217;s it! Although, I should mention a little bonus feature that you should always have in your back pocket, since Jellyfin can sometimes be picky with media file formats:&lt;/p&gt;
+&lt;h2 id=&quot;converting-media-files-with-ease&quot;&gt;Converting Media Files with Ease&lt;/h2&gt;
+&lt;p&gt;This is where your new best friend &lt;code&gt;FFmpeg&lt;/code&gt; comes into your life (if they weren&amp;#8217;t there already).&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&amp;#8220;This should be a simple change&amp;#8221;&lt;/li&gt;
-&lt;li&gt;&amp;#8220;This shouldn&amp;#8217;t take more than a couple of minutes&amp;#8221;&lt;/li&gt;
-&lt;li&gt;&amp;#8220;This seems like an easy fix&amp;#8221;&lt;/li&gt;
+&lt;li&gt;Download and install &lt;code&gt;FFmpeg&lt;/code&gt; &amp;#8211;&amp;#62; &lt;a href=&quot;https://www.ffmpeg.org/download.html&quot;&gt;ffmpeg.org&amp;#47;download.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Most of the time these comments are harmless, but other times they are a subtle way of downplaying your skill and experience required to complete these work items. That skill and experience shouldn&amp;#8217;t ever come free. It makes you wonder if these same people expect free work from trades-people (electricians, plumbers, etc) when they need what they think is a &amp;#8220;simple&amp;#8221; fix in their house.&lt;/p&gt;
-&lt;p&gt;Do you think workers in &lt;em&gt;most&lt;/em&gt; other industries travel out to someone&amp;#8217;s home and fix &amp;#8220;small&amp;#8221; issues for free? Hell no.&lt;/p&gt;
-&lt;p&gt;So why are developers and designers doing work for free? I truly don&amp;#8217;t know - but it needs to stop.&lt;/p&gt;
-&lt;h2 id=&quot;a-simple-but-useful-system&quot;&gt;A simple but useful system&lt;/h2&gt;
-&lt;p&gt;You should live by the rule that every &lt;em&gt;second&lt;/em&gt; you spend working for someone else is billable. I don&amp;#8217;t mean that you should literally bill per second, but instead round to nearest estimated time slot (whether you are billing hourly, daily, sprint-based or per project). This ensures that your efforts are paid for and that the client will begin to truly value your time. Doing this from the get-go will save you headaches in the future.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m sorry if this comes off as preachy, but I&amp;#8217;m just trying to inspire designers to value their work more. Don&amp;#8217;t sell yourself short - your talent is valuable and shouldn&amp;#8217;t be taken for granted.&lt;/p&gt;</content>
- <link href="https://btxx.org/one-css-property"/>
- <id>https://btxx.org/one-css-property</id>
- <updated>2019-11-29T10:00:00Z</updated>
- <published>2019-11-29T10:00:00Z</published>
- </entry>
- <entry>
- <title>Obvious Javascript 'Injection' Fallback</title>
- <content type="html">&lt;h1 id=&quot;obvious-javascript-injection-fallback&quot;&gt;Obvious Javascript &amp;#8216;Injection&amp;#8217; Fallback&lt;/h1&gt;
-&lt;p&gt;2020-12-04&lt;/p&gt;
-&lt;p&gt;Sometimes websites and web apps might require content to be &amp;#8220;injected&amp;#8221; via Javascript. I should mention that I am strongly against this practice - but often this kind of thing is out of one&amp;#8217;s hands. So, the least I can do is setup these &amp;#8220;injections&amp;#8221; to have proper fallbacks for users who disable JS. You would be surprised how many developers build &lt;em&gt;empty&lt;/em&gt; HTML elements with the assumption they will be filled via Javascript.&lt;/p&gt;
-&lt;h2 id=&quot;our-hypothetical-project&quot;&gt;Our Hypothetical Project&lt;/h2&gt;
-&lt;p&gt;Let&amp;#8217;s pretend that we have a total tally that pulls in the number of current users using our fake SaaS app. We would do something like this:&lt;/p&gt;
-&lt;h3 id=&quot;html&quot;&gt;HTML&lt;/h3&gt;
-&lt;p&gt;Here we create an empty &lt;code&gt;h2&lt;/code&gt; tag that will update with the current number of users via js:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;main&amp;#62;
- &amp;#60;h2 class=&quot;total-tally&quot;&amp;#62;&amp;#60;&amp;#47;h2&amp;#62;
-&amp;#60;&amp;#47;main&amp;#62;
+&lt;p&gt;Now navigate to the directory containing the media file you wish to convert via your Terminal and run the following command:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;ffmpeg -i input.mp4 output.mkv
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;javascript&quot;&gt;Javascript&lt;/h3&gt;
-&lt;p&gt;You&amp;#8217;ll have to use your imagination here and assume that the &lt;code&gt;totalTally&lt;/code&gt; variable pulls in the numbers dynamically via API:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;var totalTally = &quot;273,677&quot; &amp;#47;* This would pull something dynamically in prod *&amp;#47;
-document.getElementsByClassName(&quot;total-tally&quot;)[0].innerHTML=totalTally;
+&lt;ol&gt;
+&lt;li&gt;&lt;code&gt;input.mp4&lt;/code&gt; is the initial file we wish to convert&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;output.mkv&lt;/code&gt; will be the name and file type of our converted media&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;Now you can circle back and run the previous &lt;code&gt;scp&lt;/code&gt; command once you have converted your files to the desired format. Hopefully Jellyfin doesn&amp;#8217;t complain about the formatting!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/jelly"/>
+ <id>https://btxx.org/posts/jelly</id>
+ <updated>2022-03-12T10:00:00Z</updated>
+ <published>2022-03-12T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Using Parent Selectors in CSS</title>
+ <content type="html">&lt;h1 id=&quot;using-parent-selectors-in-css&quot;&gt;Using Parent Selectors in CSS&lt;/h1&gt;
+&lt;p&gt;2018-12-19&lt;/p&gt;
+&lt;p&gt;I recently saw a Twitter thread posted by Tommy Hodgins on implementing highly requested styling features in CSS with only a minimal amount of JavaScript. Many of his examples are great, but the &lt;code&gt;parent&lt;/code&gt; selector instantly peaked my interest.&lt;/p&gt;
+&lt;p&gt;Being able to target an element&amp;#8217;s parent always becomes a minor annoyance (since vanilla CSS does not support it) - so you always end up having to do something a little ugly like:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;var el = document.getElementById(&amp;#39;custom-div&amp;#39;);
+var parent = el.closest(selectors);
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;the-problem&quot;&gt;The Problem&lt;/h2&gt;
-&lt;p&gt;The big issue we have now occurs when a user visits this page without JS enabled. The &lt;code&gt;h2&lt;/code&gt; tag will remain empty and they won&amp;#8217;t see anything. I know this seems like a very avoidable issue, but you would be surprised how often it actually happens on the web.&lt;/p&gt;
-&lt;h2 id=&quot;the-overly-simple-solution&quot;&gt;The (overly simple) Solution&lt;/h2&gt;
-&lt;p&gt;The easiest way to avoid these types of empty tags - add static content. I know - mind blowing, right?&lt;/p&gt;
-&lt;h3 id=&quot;html-updated&quot;&gt;HTML (updated)&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;main&amp;#62;
- &amp;#60;h2 class=&quot;total-tally&quot;&amp;#62;200,000+&amp;#60;&amp;#47;h2&amp;#62;
-&amp;#60;&amp;#47;main&amp;#62;
+&lt;p&gt;And then add any custom styling to the parent element directly in JavaScript - or toggle a class which opens a whole other can of worms.&lt;/p&gt;
+&lt;h2 id=&quot;save-the-day-with-jsincss-parent-selector-and-qaffeine&quot;&gt;Save the day with jsincss-parent-selector and qaffeine&lt;/h2&gt;
+&lt;p&gt;By using the &lt;code&gt;jsincss-parent-selector&lt;/code&gt; and &lt;code&gt;qaffeine&lt;/code&gt; plugins we can target an element&amp;#8217;s parent in CSS without breaking a sweat. Let&amp;#8217;s break it down:&lt;/p&gt;
+&lt;h3 id=&quot;import-the-packages&quot;&gt;Import the packages&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;npm install jsincss-parent-selector qaffeine
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;You might be reading this and saying to yourself, &amp;#8220;Wow! Thanks Captain Obvious!&amp;#8221; and that&amp;#8217;s a fair reaction. This is an &lt;em&gt;obvious&lt;/em&gt; demo on purpose. If even one single reader learns to avoid leaving empty HTML tags that are solely dependent on Javascript injection, then I&amp;#8217;d say this demo was a huge success.&lt;/p&gt;
-&lt;p&gt;Rule of thumb: don&amp;#8217;t make assumption about your users. Play it safe.&lt;/p&gt;</content>
- <link href="https://btxx.org/obvious-js-injection-fallback"/>
- <id>https://btxx.org/obvious-js-injection-fallback</id>
- <updated>2020-12-04T10:00:00Z</updated>
- <published>2020-12-04T10:00:00Z</published>
- </entry>
- <entry>
- <title>RE: Creating a Simple HTML/CSS Notice Box</title>
- <content type="html">&lt;h1 id=&quot;re-creating-a-simple-htmlcss-notice-box&quot;&gt;RE: Creating a Simple HTML&amp;#47;CSS Notice Box&lt;/h1&gt;
-&lt;p&gt;2022-09-22&lt;/p&gt;
-&lt;p&gt;I recently read Kev Quirk&amp;#8217;s post, &lt;a href=&quot;https://kevquirk.com/how-to-create-a-simple-html-css-notice-box/&quot;&gt;How to Create a Simple HTML&amp;#47;CSS Notice Box&lt;/a&gt; and loved the simplicity of it. I&amp;#8217;m a sucker for using pseudo elements in creative ways but still managing to make them useful. Of course, this got me thinking as to whether or not the same style of box could be achieved &lt;em&gt;without&lt;/em&gt; the use of static, pseudo elements&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;bad-semantics&quot;&gt;Bad Semantics&lt;/h2&gt;
-&lt;p&gt;I need to make it clear right away: &lt;strong&gt;these implementations are not semantic&lt;/strong&gt;. They are valid HTML, but I am technically using these tags incorrectly. &lt;em&gt;You have been warned!&lt;/em&gt;&lt;/p&gt;
-&lt;h2 id=&quot;setting-fieldsets&quot;&gt;Setting Fieldsets&lt;/h2&gt;
-&lt;p&gt;The first approach is to wrap everything inside HTML &lt;code&gt;fieldset&lt;/code&gt; tags:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;fieldset&amp;#62;
- &amp;#60;legend&amp;#62;Notice&amp;#60;&amp;#47;legend&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum, dolor sit amet consectetur adipisicing elit. Totam nihil velit vitae sed beatae earum assumenda deleniti, inventore repellendus, sequi distinctio delectus porro explicabo quidem hic quo quasi voluptas temporibus.&amp;#60;&amp;#47;p&amp;#62;
-&amp;#60;&amp;#47;fieldset&amp;#62;
+&lt;h3 id=&quot;html-ex.-index.html&quot;&gt;HTML (ex. index.html)&lt;/h3&gt;
+&lt;p&gt;Now we add our very simple HTML skeleton:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;!doctype html&amp;#62;
+&amp;#60;html&amp;#62;
+ &amp;#60;head&amp;#62;
+ &amp;#60;link rel=&quot;stylesheet&quot; href=&quot;output.css&quot;&amp;#62;
+ &amp;#60;&amp;#47;head&amp;#62;
+ &amp;#60;body&amp;#62;
+ &amp;#60;header&amp;#62;
+ &amp;#60;main&amp;#62;
+ &amp;#60;h2&amp;#62;This is a header&amp;#60;&amp;#47;h2&amp;#62;
+ &amp;#60;&amp;#47;main&amp;#62;
+ &amp;#60;&amp;#47;header&amp;#62;
+ &amp;#60;&amp;#47;body&amp;#62;
+ &amp;#60;script src=output.js&amp;#62;&amp;#60;&amp;#47;script&amp;#62;
+&amp;#60;&amp;#47;html&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then you can include minor styling to closely match the design of Kev&amp;#8217;s notice box:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;fieldset {
- border: 3px solid;
- font-family: sans-serif;
- padding: 30px 10px 10px;
- position: relative;
+&lt;h3 id=&quot;javascript-ex.-input.js&quot;&gt;JavaScript (ex. input.js)&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;const qaffeine = require(&amp;#39;qaffeine&amp;#39;)
+const parent = require(&amp;#39;jsincss-parent-selector&amp;#39;)
+
+qaffeine(
+{
+ stylesheet: {},
+ rules: {
+ parent
+ }
+},
+&amp;#39;input.css&amp;#39;,
+&amp;#39;output.js&amp;#39;,
+&amp;#39;output.css&amp;#39;
+)
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;css-ex.-input.css&quot;&gt;CSS (ex. input.css)&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;header {
+ display: block;
}
-fieldset legend {
- background: #AACCFF;
- border-bottom: 3px solid;
- border-right: 3px solid;
- left: 0;
- margin: 0;
- padding: 5px 10px;
- position: absolute;
- top: 0;
- text-transform: uppercase;
+main[--js-parent] {
+ background: blue;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;the-devil-is-in-the-details&quot;&gt;The Devil is in the Details&lt;/h2&gt;
-&lt;p&gt;The other option is utilizing the HTML &lt;code&gt;details&lt;/code&gt; tag:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;details open&amp;#62;
- &amp;#60;summary&amp;#62;Notice&amp;#60;&amp;#47;summary&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Assumenda sequi esse reprehenderit facilis aperiam labore optio minus doloremque nesciunt! Voluptatem esse tempore asperiores recusandae rerum facere, reiciendis officia repudiandae similique?&amp;#60;&amp;#47;p&amp;#62;
-&amp;#60;&amp;#47;details&amp;#62;
+&lt;p&gt;Then simply run &lt;code&gt;node&lt;/code&gt; against your &lt;code&gt;js&lt;/code&gt; file. That&amp;#8217;s it! I would also suggest checking out Tommy&amp;#8217;s video covering this topic if you prefer to follow along.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/jsincss-parent-selector"/>
+ <id>https://btxx.org/posts/jsincss-parent-selector</id>
+ <updated>2018-12-19T10:00:00Z</updated>
+ <published>2018-12-19T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Keynote Slides with Pure CSS</title>
+ <content type="html">&lt;h1 id=&quot;keynote-slides-with-pure-css&quot;&gt;Keynote Slides with Pure CSS&lt;/h1&gt;
+&lt;p&gt;2020-06-22&lt;/p&gt;
+&lt;p&gt;There are a great deal of options available on the web and built into most operating systems when you need to create presentation &amp;#47; keynote slides. You could use native software like LibremOffice Impress, Powerpoint, Apple&amp;#8217;s Keynote, etc. You could also decide to use preexisting web-based apps like Google Slides or an open source project such as RevealJS. All of these are good options.&lt;/p&gt;
+&lt;p&gt;But thinking more about how overly complex these apps are implemented, it got me wondering if I could quickly code up a presentation slide framework with pure CSS and barely any code.&lt;/p&gt;
+&lt;p&gt;This is what I came up with:&lt;/p&gt;
+&lt;h2 id=&quot;the-demo&quot;&gt;The Demo&lt;/h2&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/jOWBJZb&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;Yes, I know this is &lt;em&gt;ugly&lt;/em&gt;, but this was created as a barebones skeleton for others to build upon. The demo uses a simple set of &lt;code&gt;radio&lt;/code&gt; inputs that correspond to their own individual &lt;code&gt;slide&lt;/code&gt; element. The framework looks at the currently &lt;code&gt;checked&lt;/code&gt; input, then changes the &lt;code&gt;opacity&lt;/code&gt; and &lt;code&gt;z-index&lt;/code&gt; of its corresponding slide item. Pretty straightforward stuff!&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s break down each piece:&lt;/p&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;slider&quot;&amp;#62;
+ &amp;#60;input type=&quot;radio&quot; name=&quot;pagination&quot; value=&quot;1&quot; checked&amp;#62;
+ &amp;#60;input type=&quot;radio&quot; name=&quot;pagination&quot; value=&quot;2&quot;&amp;#62;
+ &amp;#60;input type=&quot;radio&quot; name=&quot;pagination&quot; value=&quot;3&quot;&amp;#62;
+ &amp;#60;input type=&quot;radio&quot; name=&quot;pagination&quot; value=&quot;4&quot;&amp;#62;
+ &amp;#60;input type=&quot;radio&quot; name=&quot;pagination&quot; value=&quot;5&quot;&amp;#62;
+
+ &amp;#60;div class=&quot;slide&quot;&amp;#62;
+ &amp;#60;h2&amp;#62;Slide 1&amp;#60;&amp;#47;h2&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;slide&quot;&amp;#62;
+ &amp;#60;h2&amp;#62;Slide 2&amp;#60;&amp;#47;h2&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;slide&quot;&amp;#62;
+ &amp;#60;h2&amp;#62;Slide 3&amp;#60;&amp;#47;h2&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;slide&quot;&amp;#62;
+ &amp;#60;h2&amp;#62;Slide 4&amp;#60;&amp;#47;h2&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;slide&quot;&amp;#62;
+ &amp;#60;h2&amp;#62;Slide 5&amp;#60;&amp;#47;h2&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;You&amp;#8217;ll obviously want to include the &lt;code&gt;open&lt;/code&gt; attribute to avoid users needing to toggle the content manually (unless that is your desired UX). Then add similar styling options to match the &lt;code&gt;fieldset&lt;/code&gt; example:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;details {
- border: 3px solid;
- font-family: sans-serif;
- padding: 0 10px 10px;
+&lt;p&gt;There isn&amp;#8217;t a whole lot going on here. We are just including a set of &lt;code&gt;radio&lt;/code&gt; inputs (based on how many slides are desired) along with their corresponding &lt;code&gt;slide&lt;/code&gt; class elements. You might notice we don&amp;#8217;t do anything to specifically target each individual slide item - you&amp;#8217;ll see why we don&amp;#8217;t need to in the CSS section!&lt;/p&gt;
+&lt;h2 id=&quot;the-css-scss&quot;&gt;The CSS (SCSS)&lt;/h2&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Basic default styles *&amp;#47;
+.slider {
+ height: 100%;
+ left: 0;
+ position: fixed;
+ top: 0;
+ width: 100%;
+
+ .slide {
+ height: 100%;
+ opacity: 0;
+ position: absolute;
+ width: 100%;
+ z-index: -2;
+ }
}
-details summary {
- background: #AACCFF;
- border-bottom: 3px solid;
- border-right: 3px solid;
- display: inline-block;
- margin-left: -10px;
- padding: 5px 10px;
- text-transform: uppercase;
+
+input[type=&quot;radio&quot;] { cursor: pointer; }
+
+&amp;#47;* Target slide item based on currently checked radio *&amp;#47;
+input[type=&quot;radio&quot;]:nth-of-type(1):checked ~ .slide:nth-of-type(1),
+input[type=&quot;radio&quot;]:nth-of-type(2):checked ~ .slide:nth-of-type(2),
+input[type=&quot;radio&quot;]:nth-of-type(3):checked ~ .slide:nth-of-type(3),
+input[type=&quot;radio&quot;]:nth-of-type(4):checked ~ .slide:nth-of-type(4),
+input[type=&quot;radio&quot;]:nth-of-type(5):checked ~ .slide:nth-of-type(5) {
+ opacity: 1;
+ z-index: 1;
}
+
+&amp;#47;* Individual slide styling *&amp;#47;
+.slide:nth-of-type(1) { background: dodgerblue; }
+.slide:nth-of-type(2) { background: crimson; }
+.slide:nth-of-type(3) { background: rebeccapurple; }
+.slide:nth-of-type(4) { background: goldenrod; }
+.slide:nth-of-type(5) { background: pink; }
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Important to note: you can hide the default &amp;#8220;arrow toggle&amp;#8221; on &lt;code&gt;summary&lt;/code&gt; elements by including the following:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;details &amp;#62; summary {
-list-style: none;
+&lt;p&gt;Again, not much to see here. We use CSS to look down through the DOM for each &lt;code&gt;radio&lt;/code&gt; elements slide &amp;#8220;partner&amp;#8221;. We do this by targeting the &lt;code&gt;nth-of-type&lt;/code&gt; on both elements. Simple stuff.&lt;/p&gt;
+&lt;p&gt;Some drawbacks to this approach:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;You need to manually target each new slide you add (color, styling, content, etc.)&lt;/li&gt;
+&lt;li&gt;Lack of animations might require extra work to implement (maybe 3rd party libraries- ke AOS?)&lt;/li&gt;
+&lt;li&gt;Probably won&amp;#8217;t be best for extremely long&amp;#47;complex presentation slides&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;That&amp;#8217;s it! Hope you enjoy playing around with it.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/keynote-slides-css"/>
+ <id>https://btxx.org/posts/keynote-slides-css</id>
+ <updated>2020-06-22T10:00:00Z</updated>
+ <published>2020-06-22T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>ThriftyName: $5 Brand Names</title>
+ <content type="html">&lt;h1 id=&quot;thriftyname-5-brand-names&quot;&gt;ThriftyName: $5 Brand Names&lt;/h1&gt;
+&lt;p&gt;2021-02-25&lt;/p&gt;
+&lt;p&gt;It&amp;#8217;s been a while since I&amp;#8217;ve written anything on this blog, but for good reason - &lt;strong&gt;I&amp;#8217;ve been working on a handful of side projects&lt;/strong&gt;. I plan to drip-feed release these projects over time, but for today I&amp;#8217;m announcing &lt;a href=&quot;https://thrifty.name&quot;&gt;ThriftyName&lt;/a&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;what-is-thriftyname&quot;&gt;What is ThriftyName?&lt;/h2&gt;
+&lt;p&gt;In case this post title wasn&amp;#8217;t clear enough (or you avoided going to the product site itself) ThriftyName is a place where indie devs, start-ups or entrepreneurs can go to get a custom brand name for &lt;strong&gt;just $10&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;This &amp;#8220;service&amp;#8221; started out as an almost gimmicky joke in my head, but once I began building out the main website I realized that this could be quite useful for cash-strapped indies. After all, not all developers &lt;em&gt;love&lt;/em&gt; to sit around wasting precious time thinking about product names, when they could use that time to &lt;em&gt;build their product&lt;/em&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;learn-more&quot;&gt;Learn More&lt;/h2&gt;
+&lt;p&gt;If you&amp;#8217;re really interested in the reasoning behind making this project, check out the &lt;a href=&quot;https://thrifty.name/#about&quot;&gt;official about page on the site itself&lt;/a&gt;. I go into a little more depth about my thought process.&lt;/p&gt;
+&lt;h2 id=&quot;more-side-projects-incoming&quot;&gt;More Side Projects Incoming&amp;#8230;&lt;/h2&gt;
+&lt;p&gt;Like I said at the beginning of the post, keep a look out for my other side projects that I&amp;#8217;ll be rolling out slowing. I&amp;#8217;m still not sure of the best &amp;#8220;method&amp;#8221; to do this (release one every week? every month?) - but I&amp;#8217;ll figure it out as I go along.&lt;/p&gt;
+&lt;p&gt;Thanks for reading!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/launching-thriftyname"/>
+ <id>https://btxx.org/posts/launching-thriftyname</id>
+ <updated>2021-02-25T10:00:00Z</updated>
+ <published>2021-02-25T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>The Lazy Developer's Dark Mode</title>
+ <content type="html">&lt;h1 id=&quot;the-lazy-developers-dark-mode&quot;&gt;The Lazy Developer&amp;#8217;s Dark Mode&lt;/h1&gt;
+&lt;p&gt;2021-04-12&lt;/p&gt;
+&lt;p&gt;After recently jumping back to Jekyll for my personal blog, I decided to take a closer look at how I was supporting &lt;code&gt;dark mode&lt;/code&gt; for my visitors. I was using the proper CSS query to target those who had system-wide dark mode enabled, but I found that the code had far too many caveats and targeted too many custom classes.&lt;/p&gt;
+&lt;p&gt;So I thought to myself, &amp;#8220;There &lt;em&gt;has&lt;/em&gt; to be a simpler way&amp;#8230;&amp;#8221;&lt;/p&gt;
+&lt;h2 id=&quot;introducing-dark-mode---the-lazy-way&quot;&gt;Introducing Dark Mode - The Lazy Way&lt;/h2&gt;
+&lt;p&gt;Here is the default dark mode for my current website in all it&amp;#8217;s glory:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@media (prefers-color-scheme: dark) {
+ body{background:#2d2d2d;filter:invert(1);}
+ img,.cp_embed_wrapper,pre{filter:invert(1);}
}
-details &amp;#62; summary::-webkit-details-marker {
-display: none;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Not much to look at, eh? Well, let&amp;#8217;s still break it down.&lt;/p&gt;
+&lt;p&gt;First we set the &lt;code&gt;body&lt;/code&gt; to use a nice dark background color (avoid using &lt;code&gt;#000000&lt;/code&gt; directly since that can cause some minor eye strain). Next we tell the browser to invert all the child elements by using &lt;code&gt;filter:invert(1)&lt;/code&gt;. At this point, you could consider your work done - but there are some edge case elements&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;images-codepens-code---oh-my&quot;&gt;Images, CodePens &amp;#38; Code - Oh My!&lt;/h2&gt;
+&lt;p&gt;Most of my articles on this site will include either an image(s), embedded CodePen examples or code snippets directly in the page. For these elements we probably &lt;em&gt;don&amp;#8217;t&lt;/em&gt; want to invert their color&amp;#47;text etc. All we need to do is run the filter property on these a second time (&lt;em&gt;after&lt;/em&gt; the main &lt;code&gt;body&lt;/code&gt; attribute):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@media (prefers-color-scheme: dark) {
+ img,.cp_embed_wrapper,pre{filter:invert(1);}
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;seeing-is-believing&quot;&gt;Seeing is Believing&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve put together two versions of each implementation (one custom designed and one using default browser styling). You can check them out in the CodePen below:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/jOxLdQP&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</content>
- <link href="https://btxx.org/notice"/>
- <id>https://btxx.org/notice</id>
- <updated>2022-09-22T10:00:00Z</updated>
- <published>2022-09-22T10:00:00Z</published>
- </entry>
- <entry>
- <title>News Websites Are Dumpster Fires</title>
- <content type="html">&lt;h1 id=&quot;news-websites-are-dumpster-fires&quot;&gt;News Websites Are Dumpster Fires&lt;/h1&gt;
-&lt;p&gt;2019-05-29&lt;/p&gt;
-&lt;p&gt;Online news outlets are a dying breed and many users have decided to consume information elsewhere. Why? Because the news industry has become a cesspool of anti-consumer and blackhat practices that has eroded trust for the sake of money.&lt;/p&gt;
-&lt;h2 id=&quot;what-news-sites-get-wrong&quot;&gt;What news sites get wrong&lt;/h2&gt;
-&lt;p&gt;I could write up an entire essay about all the shady practices that &lt;em&gt;most&lt;/em&gt; news sites are guilty of, but here are just a few top level issues:&lt;/p&gt;
+&lt;p&gt;Of course, YMMV depending on what other custom elements you want to avoid inverting.&lt;/p&gt;
+&lt;h2 id=&quot;minor-caveats&quot;&gt;Minor Caveats&lt;/h2&gt;
+&lt;p&gt;I should mention that since my website doesn&amp;#8217;t use any custom coloring for anchor links, inverting &lt;code&gt;ahref&lt;/code&gt; elements works out of the box. Certain projects might still require some custom overrides if the inverted version of a certain custom color looks poor.&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it - enjoy being lazy!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/lazy-dev-dark-mode"/>
+ <id>https://btxx.org/posts/lazy-dev-dark-mode</id>
+ <updated>2021-04-12T10:00:00Z</updated>
+ <published>2021-04-12T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>How to "FLOSS" as a Web Designer</title>
+ <content type="html">&lt;h1 id=&quot;how-to-floss-as-a-web-designer&quot;&gt;How to &amp;#8220;FLOSS&amp;#8221; as a Web Designer&lt;/h1&gt;
+&lt;p&gt;2020-02-07&lt;/p&gt;
+&lt;p&gt;I have a profound respect for the open source community. I most likely wouldn&amp;#8217;t have the skills or knowledge I do today with it. Unfortunately, when I was just starting out in &amp;#8220;web dev&amp;#8221; some 10 years ago, proprietary software was the main go-to for a newbie designer. &lt;/p&gt;
+&lt;p&gt;Dreamweaver. Fireworks (those were the days). Photoshop. Illustrator. Adobe products basically had a stranglehold on the web design community. Any company you joined at the time more than likely required you to know and use these tools, making it hard for designers to try out new software for their day-to-day needs. Not to mention the &lt;em&gt;cost&lt;/em&gt; associated with these products.&lt;/p&gt;
+&lt;p&gt;Fast forward a handful of years and we have a lot more options in terms of design &amp;#47; development software (whether Windows, Mac or Linux). UI design tools like Figma, Sketch and Adobe XD have since popped up and become the most popular among designers. New text editors and terminals hit the scene, fighting for developer attention (Atom, Sublime Text, VSCode, LightTable, iTerm2, Hyper, etc.).&lt;/p&gt;
+&lt;p&gt;But what if a designer wanted to go completely FLOSS?&lt;/p&gt;
+&lt;p&gt;Below you will find my own personal list of FLOSS applications I use across design, development and simple document management:&lt;/p&gt;
+&lt;h3 id=&quot;web-browsers&quot;&gt;Web Browsers&lt;/h3&gt;
&lt;ul&gt;
-&lt;li&gt;Clickbait headings with misleading information&lt;/li&gt;
-&lt;li&gt;Disabling the user from reading if ad-block is present&lt;/li&gt;
-&lt;li&gt;Tracking the user with 3rd party scripts&lt;/li&gt;
-&lt;li&gt;Taking massive performance hits (specifically on mobile due to huge JavaScript blocks)&lt;/li&gt;
-&lt;li&gt;Pop-up ads&lt;/li&gt;
-&lt;li&gt;Fixed headers or footers which leads to harder readability &amp;#47; accidental element interactions&lt;/li&gt;
+&lt;li&gt;Firefox &lt;a href=&quot;https://www.mozilla.org/en-CA/firefox/&quot;&gt;https:&amp;#47;&amp;#47;www.mozilla.org&amp;#47;en-CA&amp;#47;firefox&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Brave &lt;a href=&quot;https://brave.com/&quot;&gt;https:&amp;#47;&amp;#47;brave.com&amp;#47;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;but-they-need-ad-revenue&quot;&gt;But they need ad revenue!&lt;/h2&gt;
-&lt;p&gt;If your business is solely dependent on tracking scripts, tricking users with clickbait titles and using archaic ads - then you&amp;#8217;re destined to fail regardless. These practices create an unsafe and unhealthy web for everyday users - not to mention most browsers have announced that future updates &lt;a href=&quot;https://support.mozilla.org/en-US/kb/content-blocking&quot;&gt;will be blocking ads by default&lt;/a&gt;. &lt;em&gt;News outlets need to adapt or die&lt;/em&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;whats-the-solution&quot;&gt;What&amp;#8217;s the solution?&lt;/h2&gt;
-&lt;p&gt;I don&amp;#8217;t have a &lt;em&gt;fix all&lt;/em&gt; band-aid to replace current revenue streams for news websites. I&amp;#8217;m sure someone much smarter than I can come up with better ideas, but just off the top of my head:&lt;/p&gt;
+&lt;h3 id=&quot;visual-design&quot;&gt;Visual Design&lt;/h3&gt;
&lt;ul&gt;
-&lt;li&gt;Switch over to a monthly subscription plan (if no one pays for it maybe you weren&amp;#8217;t as useful of a source as you thought)&lt;/li&gt;
-&lt;li&gt;Partner with brands to create sponsored articles (without ruining the user experience of course)&lt;/li&gt;
-&lt;li&gt;Place a larger emphasis on user donations or promotions&lt;/li&gt;
+&lt;li&gt;GIMP &lt;a href=&quot;https://www.gimp.org/&quot;&gt;https:&amp;#47;&amp;#47;www.gimp.org&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Inkscape &lt;a href=&quot;https://inkscape.org/&quot;&gt;https:&amp;#47;&amp;#47;inkscape.org&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Pencil &lt;a href=&quot;https://pencil.evolus.vn/&quot;&gt;https:&amp;#47;&amp;#47;pencil.evolus.vn&amp;#47;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;the-news-shouldnt-be-spam&quot;&gt;The News Shouldn&amp;#8217;t be Spam&lt;/h2&gt;
-&lt;p&gt;Most traffic flowing into news websites are there for one thing: &lt;em&gt;the content&lt;/em&gt;. News outlets should not be spamming their main revenue supply (&lt;strong&gt;the users&lt;/strong&gt;) or misleading people with false information.&lt;/p&gt;
-&lt;p&gt;If you&amp;#8217;re a regular consumer of news and you happen to run across a platform that is guilty of any of these practices, shoot them an email explaining why you won&amp;#8217;t be returning to their website (unless they change their ways). These anti-consumer practices will only stop when these organizations start losing money.&lt;/p&gt;</content>
- <link href="https://btxx.org/news-websites-are-dumpster-fires"/>
- <id>https://btxx.org/news-websites-are-dumpster-fires</id>
- <updated>2019-05-29T10:00:00Z</updated>
- <published>2019-05-29T10:00:00Z</published>
- </entry>
- <entry>
- <title>Using Netlify for Dynamic URL Redirects</title>
- <content type="html">&lt;h1 id=&quot;using-netlify-for-dynamic-url-redirects&quot;&gt;Using Netlify for Dynamic URL Redirects&lt;/h1&gt;
-&lt;p&gt;2021-12-03&lt;/p&gt;
-&lt;p&gt;With the &lt;a href=&quot;/minor-website-changes/&quot;&gt;recent domain switch&lt;/a&gt; that took place on this website, I needed to have a dependable setup to forward my old domain URLs to the new one. While using something like &amp;#8220;URL forwarding&amp;#8221; through your domain provider could work, it doesn&amp;#8217;t natively support &lt;em&gt;dynamic&lt;/em&gt; linking. Let me explain using a basic example:&lt;/p&gt;
+&lt;h3 id=&quot;code-text-editors&quot;&gt;Code &amp;#47; Text Editors&lt;/h3&gt;
&lt;ul&gt;
-&lt;li&gt;A user clicks on a link that targets a post on your old domain: &lt;code&gt;olddomain.com&amp;#47;random-post&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;You want that link to forward using the same permalink structure: &lt;code&gt;newdomain.com&amp;#47;random-post&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;&amp;#8220;URL forwarding&amp;#8221; through your domain provider &lt;strong&gt;does not&lt;/strong&gt; support this&lt;/li&gt;
+&lt;li&gt;Brackets &lt;a href=&quot;http://brackets.io/&quot;&gt;http:&amp;#47;&amp;#47;brackets.io&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Visual Studio Code &lt;a href=&quot;https://github.com/Microsoft/vscode&quot;&gt;https:&amp;#47;&amp;#47;github.com&amp;#47;Microsoft&amp;#47;vscode&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Atom &lt;a href=&quot;https://atom.io/&quot;&gt;https:&amp;#47;&amp;#47;atom.io&amp;#47;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Simple stuff. So, let&amp;#8217;s breakdown how to easily set this up on Netlify &lt;em&gt;for free&lt;/em&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;setting-up-netlify&quot;&gt;Setting Up Netlify&lt;/h2&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;p&gt;Create an account (or login to an existing one) and setup a new site[^1]&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Change your &amp;#8220;old&amp;#8221; domain name nameservers to match Netlify&amp;#8217;s (normally done through your domain register)
+&lt;h3 id=&quot;terminal-shells&quot;&gt;Terminal Shells&lt;/h3&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;code&gt;dns1.p03.nsone.net&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;dns2.p03.nsone.net&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;dns3.p03.nsone.net&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;dns4.p03.nsone.net&lt;/code&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Back in Netlify: under &lt;strong&gt;Domain Settings&lt;/strong&gt; you need to add your custom &amp;#8220;old&amp;#8221; domain under the &lt;strong&gt;Custom domains&lt;/strong&gt; section under &lt;strong&gt;Domain management&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Lastly, add the following content inside a &lt;code&gt;_redirects&lt;/code&gt; file (no extension) to your website content&amp;#47;build (changing to your own domains, of course)&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://olddomain.com/*&quot;&gt;https:&amp;#47;&amp;#47;olddomain.com&amp;#47;*&lt;/a&gt; &lt;a href=&quot;https://newdomain.com/:splat&quot;&gt;https:&amp;#47;&amp;#47;newdomain.com&amp;#47;:splat&lt;/a&gt; 301!&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;Terminus &lt;a href=&quot;https://eugeny.github.io/terminus/&quot;&gt;https:&amp;#47;&amp;#47;eugeny.github.io&amp;#47;terminus&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Hyper &lt;a href=&quot;https://hyper.is/&quot;&gt;https:&amp;#47;&amp;#47;hyper.is&amp;#47;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;That&amp;#8217;s it! Now Netlify will dynamically forward all your pre-existing URLs from your old domain to the new one. No pesky &lt;code&gt;.htaccess&lt;/code&gt; files or running your own basic web server(s)!&lt;/p&gt;
-&lt;p&gt;Hopefully this helps others trying to dynamically redirect their domains without the headache.&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;I normally set this up through Github &amp;#47; git hosting&lt;/li&gt;
-&lt;/ol&gt;</content>
- <link href="https://btxx.org/netlify-urls"/>
- <id>https://btxx.org/netlify-urls</id>
- <updated>2021-12-03T10:00:00Z</updated>
- <published>2021-12-03T10:00:00Z</published>
- </entry>
- <entry>
- <title>CSS: Indenting Text</title>
- <content type="html">&lt;h1 id=&quot;css-indenting-text&quot;&gt;CSS: Indenting Text&lt;/h1&gt;
-&lt;p&gt;2019-04-05&lt;/p&gt;
-&lt;p&gt;A lot of developers tend to do the bare minimum when it comes to implementing proper website typography. This isn&amp;#8217;t an insult - I&amp;#8217;m happy that typography is given any thought at all during development, I just believe more can always be done to improve upon it.&lt;/p&gt;
-&lt;p&gt;In today&amp;#8217;s &lt;em&gt;TypeTip&lt;/em&gt; we&amp;#8217;re going to play around with the &lt;code&gt;text-indent&lt;/code&gt; property, look into when it&amp;#8217;s best to use it and how to implement it properly.&lt;/p&gt;
-&lt;h2 id=&quot;the-property-and-browser-support&quot;&gt;The property and browser support&lt;/h2&gt;
-&lt;p&gt;Browser support is actually pretty great for such a regularly over-looked CSS property. All major desktop and mobile browsers support it:&lt;/p&gt;
-&lt;p&gt;Now that doesn&amp;#8217;t mean you should just slap this property on all your type elements and call it a day - there are specific use cases for &lt;code&gt;text-indent&lt;/code&gt; and some basic rules to follow:&lt;/p&gt;
-&lt;h2 id=&quot;use-cases&quot;&gt;Use Cases&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Increasing readability of large text blocks that would otherwise overwhelm the reader&lt;/li&gt;
-&lt;li&gt;Replicating book or report typography layouts&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;basic-rules&quot;&gt;Basic Rules&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Best to set this property on inner type children only - meaning items like &lt;code&gt;p&lt;/code&gt; or &lt;code&gt;blockquotes&lt;/code&gt; instead of main headings&lt;/li&gt;
-&lt;li&gt;When used on paragraph tags it&amp;#8217;s best to target only &lt;code&gt;p&lt;/code&gt; elements that directly follow a sibling tag (see &amp;#8220;The CSS&amp;#8221; below)&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;Adding the property is extremely trivial, all you need is the following:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Best practice for paragraphs *&amp;#47;
-p + p {
- text-indent: 1rem; &amp;#47;* whatever you want *&amp;#47;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;lets-see-it-in-action&quot;&gt;Let&amp;#8217;s see it in action&lt;/h2&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/OGXLEd/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</content>
- <link href="https://btxx.org/ndenting-text-with-css"/>
- <id>https://btxx.org/ndenting-text-with-css</id>
- <updated>2019-04-05T10:00:00Z</updated>
- <published>2019-04-05T10:00:00Z</published>
- </entry>
- <entry>
- <title>My Static Blog Publishing Setup and an Apology to RSS Subscribers</title>
- <content type="html">&lt;h1 id=&quot;my-static-blog-publishing-setup-and-an-apology-to-rss-subscribers&quot;&gt;My Static Blog Publishing Setup and an Apology to RSS Subscribers&lt;/h1&gt;
-&lt;p&gt;2022-03-21&lt;/p&gt;
-&lt;p&gt;In case you missed it, this website is now generated with pure HTML &amp;#38; CSS. Although, generated isn&amp;#8217;t the proper way to describe it anymore. &lt;em&gt;Written&lt;/em&gt; is a better description.&lt;/p&gt;
-&lt;p&gt;No more Markdown files. No more build scripts. No more Jekyll. Clean, simple, static HTML &amp;#38; CSS is my &amp;#8220;CMS&amp;#8221;. More on that in a moment. First, I must apologize.&lt;/p&gt;
-&lt;h2 id=&quot;im-sorry-dear-rss-subscribers&quot;&gt;I&amp;#8217;m Sorry Dear RSS Subscribers&lt;/h2&gt;
-&lt;p&gt;RSS feeds are tricky things for me personally. I always botch them with a site redesign or a re-structure of my previous posts. Those of you subscribed via RSS were likely bombarded with post spam when I rebuilt this website. Sorry about that - I know how annoying that can be.&lt;/p&gt;
-&lt;p&gt;Fortunately, that all stops today. Moving forward my RSS feed (Atom) will be edited manually with every new post I write. Each entry will feature the post title, post url, and post date. No summaries or full-inline content will be included (since that would involve a great amount of extra overhead). RSS subs will need to follow the link directly if they are interested in the article itself. I hope this doesn&amp;#8217;t anger too many readers&amp;#8230;&lt;/p&gt;
-&lt;p&gt;Again, sorry everyone.&lt;/p&gt;
-&lt;h2 id=&quot;what-is-this-new-blog-system&quot;&gt;What is this New Blog &amp;#8220;System&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;This publishing flow isn&amp;#8217;t for everyone and is less flexible than pre-existing static site generators (referred to as SSGs moving forward). For me though, it works. I find it more flexible than most SSGs.&lt;/p&gt;
-&lt;p&gt;There are a couple articles that explain the reasoning behind this system better than I could (plus, why would I repeat the same points?):&lt;/p&gt;
+&lt;h3 id=&quot;documents&quot;&gt;Documents&lt;/h3&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;http://john.ankarstrom.se/html/&quot;&gt;Writing HTML in HTML&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://blog.steren.fr/2020/my-stack-will-outlive-yours/&quot;&gt;My stack will outlive yours&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;LibreOffice &lt;a href=&quot;https://www.libreoffice.org/&quot;&gt;https:&amp;#47;&amp;#47;www.libreoffice.org&amp;#47;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;So, what does my blog-posting system look like?&lt;/p&gt;
-&lt;h2 id=&quot;simple-explanation&quot;&gt;Simple Explanation&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Copy an existing article&amp;#8217;s &lt;code&gt;HTML&lt;/code&gt; file&lt;/li&gt;
-&lt;li&gt;Change file name, edit the page title, heading, post date and comment link&lt;/li&gt;
-&lt;li&gt;Write the new article content&lt;/li&gt;
-&lt;li&gt;Make manual new entry in RSS feed&lt;/li&gt;
-&lt;li&gt;Save changes, push to git repo&lt;/li&gt;
-&lt;li&gt;Sync new file(s) &amp;#47; changes to remote server&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;Pretty simple, eh? Let&amp;#8217;s break things down into greater detail though&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;detailed-explanation&quot;&gt;Detailed Explanation&lt;/h2&gt;
-&lt;h4 id=&quot;text-editor&quot;&gt;Text Editor&lt;/h4&gt;
-&lt;p&gt;I code and write everything exclusively in Sublime Text on my MacBook Air. I know, it&amp;#8217;s not an open source editor, but I love how incredibly fast and intuitive it is. I used VSCode in the past but ended up requiring far too many plugins to get things setup the way I like it. Sublime Text works best for me even right out of the box. (I do need Emmet and theming changes though).&lt;/p&gt;
-&lt;p&gt;I perform the following for a new article:&lt;/p&gt;
+&lt;h2 id=&quot;nothing-special&quot;&gt;Nothing special&lt;/h2&gt;
+&lt;p&gt;This small list I&amp;#8217;ve compiled isn&amp;#8217;t earth-shattering by any means, but I wanted to put this out into the world for any newbie designer that might be starting out. You don&amp;#8217;t need to spend a ridiculous amount of money just to get your feet wet in the design industry. By using the tools listed above, beginners can get a solid head-start on creating for the web without burning a hole in their pocket. &lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/learning-to-floss"/>
+ <id>https://btxx.org/posts/learning-to-floss</id>
+ <updated>2020-02-07T10:00:00Z</updated>
+ <published>2020-02-07T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Installing Custom Fonts on Linux from the Command Line</title>
+ <content type="html">&lt;h1 id=&quot;installing-custom-fonts-on-linux-from-the-command-line&quot;&gt;Installing Custom Fonts on Linux from the Command Line&lt;/h1&gt;
+&lt;p&gt;2022-09-20&lt;/p&gt;
+&lt;p&gt;Installing custom fonts is a fairly streamlined feature on operating systems like MacOS and Windows. Linux, on the other hand, struggles to make this workflow &lt;em&gt;easy&lt;/em&gt; for everyday users. Many newcomers tend to get frustrated with using the default &amp;#8220;Fonts&amp;#8221; application managers shipped with most Linux distros.&lt;/p&gt;
+&lt;p&gt;But I&amp;#8217;m here to tell you to &lt;strong&gt;ditch&lt;/strong&gt; those GUI font installers. Let&amp;#8217;s install our custom fonts in the command line!&lt;/p&gt;
+&lt;h2 id=&quot;get-your-font-files&quot;&gt;Get Your Font Files&lt;/h2&gt;
+&lt;p&gt;You can&amp;#8217;t install custom fonts if you don&amp;#8217;t have any. For this tutorial we are going to assume that we are trying to install a typeface set named &lt;code&gt;LinuxFont&lt;/code&gt;. We are going to assume that we have already downloaded and extracted a folder named &lt;code&gt;LinuxFont&lt;/code&gt; into our &lt;code&gt;Downloads&lt;/code&gt; directory.&lt;/p&gt;
+&lt;p&gt;Inside this hypothetical folder is a collection of &lt;code&gt;OTF&lt;/code&gt; (opentype) font files. This will be important information in a moment.&lt;/p&gt;
+&lt;h2 id=&quot;terminal-time&quot;&gt;Terminal Time&lt;/h2&gt;
+&lt;p&gt;Now our goal is to simply copy this new typeface folder into our user font directory. Open Terminal and run the following from your &lt;code&gt;Downloads&lt;/code&gt; directory:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo cp -r LinuxFont &amp;#47;usr&amp;#47;local&amp;#47;share&amp;#47;fonts&amp;#47;opentype&amp;#47;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: If your font files are NOT opentype format, be sure to copy your files to the proper directory (truetype for TTF, etc.)&lt;/p&gt;
+&lt;p&gt;Next we need to make sure we have full read and write privileges for this new folder:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo chmod -R 0777 &amp;#47;usr&amp;#47;local&amp;#47;share&amp;#47;fonts&amp;#47;opentype&amp;#47;LinuxFont
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;The last thing we need to do is reload the font cache on our system:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo fc-cache -fv
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;That&amp;#8217;s it! You should now have access to your custom typeface in all your applications system wide.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/lf"/>
+ <id>https://btxx.org/posts/lf</id>
+ <updated>2022-09-20T10:00:00Z</updated>
+ <published>2022-09-20T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>The Linux Desktop is Hard to Love</title>
+ <content type="html">&lt;h1 id=&quot;the-linux-desktop-is-hard-to-love&quot;&gt;The Linux Desktop is Hard to Love&lt;/h1&gt;
+&lt;p&gt;2022-07-14&lt;/p&gt;
+&lt;p&gt;I want to love the &amp;#8220;Linux Desktop&amp;#8221;. I really do. But I&amp;#8217;ve come to the realization that what I love is the &lt;em&gt;idea&lt;/em&gt; of the Linux Desktop. The community. The security and core focus on open source. The customizable environments. Tweaking as much or as little of the operating system as I please!&lt;/p&gt;
+&lt;p&gt;I just can&amp;#8217;t &lt;em&gt;stick with it&lt;/em&gt;. I always end up back on macOS. And I&amp;#8217;m starting to understand why.&lt;/p&gt;
+&lt;h2 id=&quot;what-the-linux-desktop-gets-right&quot;&gt;What the Linux Desktop Gets Right&lt;/h2&gt;
+&lt;p&gt;To be fair, there is an incredible amount of things that the Linux desktop does really well:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Copy an existing article, ie. &lt;code&gt;blog-post-1.html&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;Rename article file name, ie. &lt;code&gt;blog-post-2.html&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;Open this newly created file and change:
+&lt;li&gt;Complete user control&lt;/li&gt;
+&lt;li&gt;Ability to drastically change the desktop UI
&lt;ul&gt;
-&lt;li&gt;page &lt;code&gt;title&lt;/code&gt; tag&lt;/li&gt;
-&lt;li&gt;page &lt;code&gt;h1&lt;/code&gt; heading and top bar text&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;time&lt;/code&gt; tag to match publish date&lt;/li&gt;
-&lt;li&gt;comment &lt;code&gt;mailto:&lt;/code&gt; link url&lt;/li&gt;
+&lt;li&gt;Gnome, KDE, XFCE, etc.&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Start writing content inside the &lt;code&gt;article&lt;/code&gt; section&lt;/li&gt;
+&lt;li&gt;Overall good and welcoming communities&lt;/li&gt;
+&lt;li&gt;Extensive documentation for almost everything&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Once the article is complete, I add a static entry in my &lt;code&gt;feed.xml&lt;/code&gt; and run a crude rsync script. More on that below.&lt;/p&gt;
-&lt;h4 id=&quot;git&quot;&gt;Git&lt;/h4&gt;
-&lt;p&gt;Normally I would pull, commit and push directly in my Terminal - but lately I&amp;#8217;ve been enjoying my time using Sublime Merge. I&amp;#8217;m a sucker for visually appealing GUI applications and Merge is the perfect balance of simplicity and beauty. I recommend it if you haven&amp;#8217;t tried it yet.&lt;/p&gt;
-&lt;h4 id=&quot;hosting&quot;&gt;Hosting&lt;/h4&gt;
-&lt;p&gt;This blog is now hosted through NearlyFreeSpeech. I could opt for a free service like Netlify or DigitalOcean Apps but I feel it&amp;#8217;s important to help support communities that align with my own core beliefs. From their &lt;a href=&quot;https://www.nearlyfreespeech.net/about/&quot;&gt;about page&lt;/a&gt;:&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;NearlyFreeSpeech.NET is about three things: fairness, innovation, and free speech.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;Hard to argue with those principles. If you&amp;#8217;re feeling generous, I&amp;#8217;d greatly appreciate anyone who considers contributing to &lt;a href=&quot;https://www.nearlyfreespeech.net/contribute/tdarb.org&quot;&gt;offset this website&amp;#8217;s hosting costs through NearlyFreeSpeech&lt;/a&gt; (code: tdarb). No money is directly handed to me, it pays NFS directly for hosting fees. Donate if you feel like this humble blog of mine has helped you in any way. No pressure!&lt;/p&gt;
-&lt;p&gt;NFS gives me server access via &lt;code&gt;SSH&lt;/code&gt; (and even &lt;code&gt;SFTP&lt;/code&gt; if I desire) which makes things simple to sync my local files with production code. This is handled via rsync with a basic &lt;code&gt;deploy.sh&lt;/code&gt; script:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;rsync -vrzc --exclude &amp;#39;deploy.sh&amp;#39; --exclude &amp;#39;.git&amp;#39; --delete .&amp;#47; username@my.remote.nfs.server:
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;The included parameters ensure files with a conflicting checksum are updated on the server, instead of re-syncing all the files every time the script runs. That would be overkill.&lt;/p&gt;
-&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
-&lt;p&gt;I love this new setup. It&amp;#8217;s portable, lightweight, has zero dependencies, and gives me the opportunity to write directly in HTML. Others may find this workflow idiotic or cumbersome but I couldn&amp;#8217;t disagree more. Site wide changes can be made with simple &lt;code&gt;Find&amp;#47;Replace&lt;/code&gt; actions or even whipping up a basic script. Things should be as complex as you wish to make them!&lt;/p&gt;
-&lt;p&gt;At the end of the day, anything that helps you be more efficient and gets you producing more content is a winning strategy in my book. Who knows, this concept could even inspire one random reader out there to do the same.&lt;/p&gt;</content>
- <link href="https://btxx.org/my-static-blog-publishing-setup"/>
- <id>https://btxx.org/my-static-blog-publishing-setup</id>
- <updated>2022-03-21T10:00:00Z</updated>
- <published>2022-03-21T10:00:00Z</published>
- </entry>
- <entry>
- <title>My Raspberry Pi Desktop</title>
- <content type="html">&lt;h1 id=&quot;my-raspberry-pi-desktop&quot;&gt;My Raspberry Pi Desktop&lt;/h1&gt;
-&lt;p&gt;2020-09-02&lt;/p&gt;
-&lt;p&gt;I use a Raspberry Pi 4 as my personal daily driver and it&amp;#8217;s pretty great. I know these types of devices tend to be used for smaller pet-projects or fun experiments, but I thought I would share my experience using one as my main computer. Hopefully this can be a solid guide to help others who might be interested in creating a similar setup.&lt;/p&gt;
-&lt;p&gt;My desktop Pi working away on a regular morning:&lt;/p&gt;
-&lt;h2 id=&quot;table-of-contents&quot;&gt;Table of Contents&lt;/h2&gt;
+&lt;p&gt;These things make Linux a solid experience overall - but not a &lt;em&gt;great&lt;/em&gt; one&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;what-the-linux-desktop-gets-wrong&quot;&gt;What the Linux Desktop Gets Wrong&lt;/h2&gt;
+&lt;p&gt;If I had to summarize in a word what Linux lacks compared to macOS it would be: &lt;em&gt;cohesion&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;Apple&amp;#8217;s macOS keeps a solid consistency throughout its entire design. Everything looks and feels like it is part of the same system. Which is what a fully-fledged OS &lt;em&gt;should&lt;/em&gt; feel like. The argument can be made that macOS suffers some fragmentation with things like &lt;code&gt;homebrew&lt;/code&gt;, applications directly from developers vs. applications via the Mac App Store.&lt;/p&gt;
+&lt;p&gt;While this is true, I believe Linux desktops suffer far worse in terms of fragmented systems. Users building applications from source, &lt;code&gt;snap&lt;/code&gt; packages, &lt;code&gt;flathub&lt;/code&gt; packages, custom package managers shipped with separate distros, etc. And with this fragmentation comes the constant debates and discussions around which to use and which to avoid.&lt;/p&gt;
+&lt;p&gt;This can become overwhelming for average computer users. This is something we tend to forget in our &amp;#8220;tech hubs&amp;#8221;. Most users want to boot up their machine and get to work. Linux can absolutely do this, but if a user hits a minor snag, then I guarantee they will have more difficulty fixing it compared to an issue found in macOS.&lt;/p&gt;
+&lt;h2 id=&quot;user-experience&quot;&gt;User Experience&lt;/h2&gt;
+&lt;p&gt;Design is important. The user experience will make or break an operating system. This is another issue I&amp;#8217;ve found with many Linux desktops.&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s take Bluetooth for example. It works flawlessly in macOS. I have never had a single device bug-out or refuse to connect. Devices connect almost immediately when pairing. The UI is intuitive and gives the user clear feedback to what the system is doing while pairing, disconnecting, and so on.&lt;/p&gt;
+&lt;p&gt;Now, compare this to an average Linux DE experience - not so seamless. The fact that some distros require you to hop into a terminal in order to properly configure Bluetooth is pretty terrible. Sure, most have GUIs setup similar to that of macOS, but I find myself time and time again needing to pop open that trusty ol&amp;#8217; Terminal. This is fine for someone like myself, but for the average computer user? No way.&lt;/p&gt;
+&lt;p&gt;Looking for another example? Printers. Yes, printers are terrible machines created in the depths of Hell itself, but they are a necessary evil. And again, macOS handles &amp;#8220;plug-and-play&amp;#8221; printer functionality like a champ. Linux on the other hand is a mixed bag. I&amp;#8217;ve had some luck with specific Linux distros working with printers in this &amp;#8220;plug-and-play&amp;#8221; fashion, while others become a battle of attrition[^1]. Let&amp;#8217;s not even begin to talk about wireless &lt;em&gt;only&lt;/em&gt; printers and setting up their proper drivers on Linux.&lt;/p&gt;
+&lt;h2 id=&quot;quality-hardware&quot;&gt;Quality Hardware&lt;/h2&gt;
+&lt;p&gt;Another advantage macOS has over most other Linux desktops is tailored hardware. Apple produces the hardware created to run their own operating system, meaning it was specifically built for that task. Linux desktops are designed to run on almost any[^2] piece of hardware. Though this is fantastic in terms of technological sustainability (avoids dumping old devices when they lose &amp;#8220;support&amp;#8221;) it ends up causing more support issues. Needing to support such a wide range of chip sets and drivers spreads the focus on a streamlined UX a little more thin. It becomes difficult to perfect a cohesive experience user-to-user when some many variables can be different. I should note that some distros[^3] are making fantastic strides in this area but are still far from ideal.&lt;/p&gt;
+&lt;h2 id=&quot;i-still-use-linux&quot;&gt;I Still Use Linux&lt;/h2&gt;
+&lt;p&gt;I might have attacked the overall Linux desktop experience in favor of macOS a little harshly in this post, but it&amp;#8217;s a simple reflection of a individual who has used both extensively. I still work with multiple Linux machines daily. I still &lt;em&gt;like&lt;/em&gt; using Linux.&lt;/p&gt;
+&lt;p&gt;I just don&amp;#8217;t &lt;em&gt;love&lt;/em&gt; it.&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;&lt;a href=&quot;#use-case&quot;&gt;My Use Case&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#hardware&quot;&gt;The Hardware&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#software&quot;&gt;The Software&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#stats&quot;&gt;Performance &amp;#38; Stats&lt;/a&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;I&amp;#8217;m a web designer and developer by trade. Therefore, I require a decent amount of functionality from my computer - more than just simple web browsing and document editing. When I first set out testing if the RPi4 &lt;em&gt;could&lt;/em&gt; become my main device, I was surprised at how capable the hardware &amp;#47; software was at running all my required applications. My workload comprises of:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Using Github&amp;#47;Gitlab to pull&amp;#47;push repos, open PRs, etc&lt;/li&gt;
-&lt;li&gt;Run SSG (Jekyll mostly) locally for testing&lt;/li&gt;
-&lt;li&gt;Run multiple WordPress instances locally&lt;/li&gt;
-&lt;li&gt;Edit design files (Photoshop, Illustrator, direct SVGs)&lt;/li&gt;
-&lt;li&gt;Simple web chat &amp;#47; email&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Basic stuff, but I was originally doubtful of the RPi4 to be able to handle it all smoothly. I&amp;#8217;m happy to say I was wrong.&lt;/p&gt;
-&lt;p&gt;The following hardware list is what I use specifically for my intended use case. I&amp;#8217;m also a sucker for having cool looking SBC builds. By no means is this the &amp;#8220;best setup&amp;#8221; for everyone - I&amp;#8217;m sure other combinations of gear might better suit your own personal needs.&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: products in the hardware section are Amazon affiliate links&lt;/p&gt;
-&lt;/blockquote&gt;
+&lt;li&gt;People swear by CUPS working well on Linux, but this has caused issues for me in the past as well. Unsure why macOS handles it fine&amp;#8230;&lt;/li&gt;
+&lt;li&gt;Depending on the desired distro, resources required, etc.&lt;/li&gt;
+&lt;li&gt;A couple that come to mind are Zorin OS and elementary OS&lt;/li&gt;
+&lt;/ol&gt;</content>
+ <link href="https://btxx.org/posts/linux-love"/>
+ <id>https://btxx.org/posts/linux-love</id>
+ <updated>2022-07-14T10:00:00Z</updated>
+ <published>2022-07-14T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Linux Mint MacBook Air Setup</title>
+ <content type="html">&lt;h1 id=&quot;linux-mint-macbook-air-setup&quot;&gt;Linux Mint MacBook Air Setup&lt;/h1&gt;
+&lt;p&gt;2020-08-16&lt;/p&gt;
+&lt;p&gt;I don&amp;#8217;t like the idea of throwing away old or outdated tech (within reason), so I try to find a new purpose for some of my &amp;#8220;retired&amp;#8221; devices. This article will cover how to switch over a mid-2011 model MacBook Air to utilize Linux Mint.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: This setup will completely wipe your existing disk and create a fresh install of Linux Mint on the SSD. You have been warned.&lt;/p&gt;
+&lt;h2 id=&quot;the-specs&quot;&gt;The Specs&lt;/h2&gt;
+&lt;p&gt;My old MacBook Air has a pretty decent spec sheet:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Raspberry Pi 4&lt;/li&gt;
-&lt;li&gt;X857 V1.0 mSATA SSD Shield Expansion Board (I&amp;#8217;m using the X856)&lt;/li&gt;
-&lt;li&gt;128GB mSATA SSD&lt;/li&gt;
-&lt;li&gt;Acrylic Case with Heatsinks &amp;#38; Fan&lt;/li&gt;
-&lt;li&gt;Raspberry Pi Keyboard &amp;#38; Mouse&lt;/li&gt;
-&lt;li&gt;21.5&amp;#8221; Acer Monitor&lt;/li&gt;
+&lt;li&gt;Processor: &lt;strong&gt;1.7GHz dual-core Intel Core i5&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Memory: &lt;strong&gt;4GB of 1333MHz DDR3&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Graphics: &lt;strong&gt;Advanced Intel HD Graphics 3000&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;SSD: &lt;strong&gt;128 GB&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;The 32-bit version of Raspberry Pi OS (&amp;#8216;Debian Buster&amp;#8217; at the time of writing) is my OS of choice. Stable, reliable, and officially supported by the RPi community. It does the job.&lt;/p&gt;
-&lt;p&gt;The Pi has been overclocked to 2GHz in order to squeeze just a &lt;em&gt;little&lt;/em&gt; extra out of the hardware. This has caused zero issues.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m also booting directly from the mSATA SSD (via USB booting) instead of relying on a slower microSD card. You can find tons of tutorials online on how to do the same, but I would recommend this one: &lt;a href=&quot;https://www.tomshardware.com/how-to/boot-raspberry-pi-4-usb&quot;&gt;How to Boot Raspberry Pi 4 From a USB SSD or Flash Drive&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;After that, I simply installed my required apps &amp;#47; configs (where applicable):&lt;/p&gt;
+&lt;p&gt;And let&amp;#8217;s take a look at the basic system requirements Linux Mint suggests:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Chromium (&lt;em&gt;preinstalled&lt;/em&gt;)&lt;/li&gt;
-&lt;li&gt;Firefox ESR&lt;/li&gt;
-&lt;li&gt;Pale Moon&lt;/li&gt;
-&lt;li&gt;Code OSS&lt;/li&gt;
-&lt;li&gt;Terminal (&lt;em&gt;preinstalled&lt;/em&gt;)&lt;/li&gt;
-&lt;li&gt;Libre Office Suite&lt;/li&gt;
-&lt;li&gt;Evolution&lt;/li&gt;
-&lt;li&gt;Figma (Web - no install needed)&lt;/li&gt;
-&lt;li&gt;Apache2 &amp;#47; MySQL&lt;/li&gt;
-&lt;li&gt;Blueman (helpful GUI for bluetooth)&lt;/li&gt;
+&lt;li&gt;2GB RAM&lt;/li&gt;
+&lt;li&gt;Dual Core Processor&lt;/li&gt;
+&lt;li&gt;20GB free disk space&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;What my plain desktop looks like:&lt;/p&gt;
-&lt;p&gt;Using this build day-to-day, I can honestly say I don&amp;#8217;t hit any hiccups or lag at all. Multiple applications and WordPress instances are running in the background, while 10-15 tabs are open in the Chromium browser. The little Pi just chugs along without breaking a sweat.&lt;/p&gt;
-&lt;p&gt;My average CPU temperature sits around 51&amp;#176; (with heatsinks &amp;#38; fan active) while CPU usage never really cranks past 90% during even &amp;#8220;intensive&amp;#8221; processes.&lt;/p&gt;
-&lt;p&gt;Since &lt;em&gt;actual&lt;/em&gt; data speaks louder than anecdotal chit-chat, I performed a very simple read&amp;#47;write test on my mSATA SSD.&lt;/p&gt;
-&lt;p&gt;First, clear the cache to avoid conflicting data:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sync; echo 3 | sudo tee &amp;#47;proc&amp;#47;sys&amp;#47;vm&amp;#47;drop_caches
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;write&quot;&gt;Write&lt;/h3&gt;
-&lt;p&gt;Write script run:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;dd if=&amp;#47;dev&amp;#47;zero of=~&amp;#47;test.tmp bs=500K count=1024
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Write output:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;524288000 bytes (524 MB, 500 MiB) copied, 1.95478 s, 268 MB&amp;#47;s
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;read&quot;&gt;Read&lt;/h3&gt;
-&lt;p&gt;Read script:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;dd if=~&amp;#47;test.tmp of=&amp;#47;dev&amp;#47;null bs=500K count=1024
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Read output:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;524288000 bytes (524 MB, 500 MiB) copied, 0.770993 s, 680 MB&amp;#47;s
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This gives a total read&amp;#47;write value of: &lt;strong&gt;268 MB &amp;#47; 680 MB&lt;/strong&gt; per second. Compare that to average microSD card speeds floating around &lt;strong&gt;22 MB &amp;#47; 170MB&lt;/strong&gt; per second and you can see (and feel) the massive speed difference. Things are just snappier.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: Obviously extremely high-end (read: expensive) microSD cards &lt;em&gt;might&lt;/em&gt; hit read&amp;#47;write speeds similar to that of an SSD. The issue is that you are more likely to corrupt or reach end-of-life with a microSD card - hence why I don&amp;#8217;t recommend them.&lt;/p&gt;
-&lt;h2 id=&quot;final-thoughts&quot;&gt;Final Thoughts&lt;/h2&gt;
-&lt;p&gt;I love that I can use a fairly cheap Raspberry Pi 4 as my main, personal desktop. Of course, some people might roll their eyes at this build and say, &amp;#8220;why not just get a cheaper, more powerful laptop off eBay?&amp;#8221;. To that I would respond: &lt;em&gt;you&amp;#8217;re missing the point&lt;/em&gt;. &lt;/p&gt;
-&lt;p&gt;It was fun to put together this simple desktop. The fact that it runs fast and stable enough to be my daily driver is a great bonus. If this build interests you at all, I highly recommend giving it a go.&lt;/p&gt;</content>
- <link href="https://btxx.org/my-pi-desktop"/>
- <id>https://btxx.org/my-pi-desktop</id>
- <updated>2020-09-02T10:00:00Z</updated>
- <published>2020-09-02T10:00:00Z</published>
- </entry>
- <entry>
- <title>Using Multiple CSS Background Images</title>
- <content type="html">&lt;h1 id=&quot;using-multiple-css-background-images&quot;&gt;Using Multiple CSS Background Images&lt;/h1&gt;
-&lt;p&gt;2018-09-28&lt;/p&gt;
-&lt;p&gt;It isn&amp;#8217;t something developers have a need to do very often, but you &lt;em&gt;can&lt;/em&gt; set multiple background images on a single element.&lt;/p&gt;
-&lt;p&gt;Example:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.element {
- background: url(&amp;#39;image_path&amp;#39;) center repeat, linear-gradient(transparent 0%, #000 100%) no-repeat;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;What can you do with this? It&amp;#8217;s only limited by your imagination, but I&amp;#8217;m personally a fan of always using as few elements as possible when working on a project.&lt;/p&gt;</content>
- <link href="https://btxx.org/multiple-css-background-images"/>
- <id>https://btxx.org/multiple-css-background-images</id>
- <updated>2018-09-28T10:00:00Z</updated>
- <published>2018-09-28T10:00:00Z</published>
- </entry>
- <entry>
- <title>Why I Stopped Using an External Monitor</title>
- <content type="html">&lt;h1 id=&quot;why-i-stopped-using-an-external-monitor&quot;&gt;Why I Stopped Using an External Monitor&lt;/h1&gt;
-&lt;p&gt;2023-03-03&lt;/p&gt;
-&lt;p&gt;For the longest time I&amp;#8217;ve been using a Samsung 27&amp;#8221; UHD monitor as my main display. This monitor was connected to my ThinkPad X260 (in clamshell mode) through the official Lenovo dock. It wasn&amp;#8217;t a bad setup, but I have since changed my ways.&lt;/p&gt;
-&lt;p&gt;Instead, I now &lt;em&gt;only&lt;/em&gt; use the X260&amp;#8217;s panel as my main display. Let me explain my reasoning&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;the-switch-to-suckless&quot;&gt;The Switch to Suckless&lt;/h2&gt;
-&lt;p&gt;Over the past year I switched away from a traditional desktop environment to a window manager - &lt;a href=&quot;https://dwm.suckless.org/&quot;&gt;dwm&lt;/a&gt; to be specific. This also involved changing most of my daily software programs to utilize the full suckless &amp;#8220;suite&amp;#8221;. In doing so, the shift away from floating windows and virtualized desktops happened quickly.&lt;/p&gt;
-&lt;p&gt;I continued to use my UHD monitor with this new environment but slowly started running into minor (yet still inconvenient) roadblocks:&lt;/p&gt;
+&lt;p&gt;We are looking pretty good!&lt;/p&gt;
+&lt;h2 id=&quot;step-1-download-linux-mint&quot;&gt;Step 1: Download Linux Mint&lt;/h2&gt;
+&lt;p&gt;For this setup we will be using the latest, stable version (at this time of writing) of Linux Mint 20 &amp;#8220;Ulyana&amp;#8221; - Xfce which is 20. You can download the necessary files here: &lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Tiled mode was not the most optimized for such a large monitor. I found myself defaulting into &amp;#8220;floating&amp;#8221; mode which defeats the purpose of a WM.&lt;/li&gt;
-&lt;li&gt;The screen was almost &lt;em&gt;too&lt;/em&gt; large - making content placed on the far edges of the screen difficult to view at a glance.&lt;/li&gt;
-&lt;li&gt;I stopped using tags, since I ended up piling applications on top of one another in a single view. Again - defeating the point of a WM.&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://www.linuxmint.com/edition.php?id=283&quot;&gt;Linux Mint 20 &amp;#8220;Ulyana&amp;#8221; - Xfce&lt;/a&gt; [1.8GB]&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;All of these issues were close to making me ditch the external monitor altogether, but it was my day-to-day job that struck the final blow&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;designing-for-everyday-users&quot;&gt;Designing for Everyday Users&lt;/h2&gt;
-&lt;p&gt;As a UX&amp;#47;UI front-end designer by trade, my job requires me to create and tweak interfaces that essentially go &lt;em&gt;unnoticed&lt;/em&gt; by the end-users. If you finish a task you sought out to complete without even thinking about &lt;em&gt;how&lt;/em&gt; you did it - then I succeeded at my job. The problem is, we designers and developers tend to forget the constraints a majority of our users experience. In this case - screen resolution.&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://www.browserstack.com/guide/ideal-screen-sizes-for-responsive-design&quot;&gt;A study performed by BrowserStack via statcounter (2022)&lt;/a&gt; shows the worldwide market share based on device type:&lt;/p&gt;
+&lt;h2 id=&quot;step-2-flash-linux-mint-to-usb-stick&quot;&gt;Step 2: Flash Linux Mint to USB Stick&lt;/h2&gt;
+&lt;p&gt;Next we just need to flash the Linux Mint OS to a USB storage device. If you need to purchase some, you can easily find them on Amazon (affliate link):&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;58.33% mobile&lt;/li&gt;
-&lt;li&gt;39.65% desktop&lt;/li&gt;
-&lt;li&gt;2.02% tablet&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://www.amazon.com/gp/product/B00JB3NXIS/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=B00JB3NXIS&amp;amp;linkCode=as2&amp;amp;tag=uglyduck-20&amp;amp;linkId=494f4c1dd4e21782ecb865bcaa5a526b&quot;&gt;Kootion 10 Pack 4GB Flash Drive 4gb USB 2.0 Flash Drives Keychain USB Drive Bulk Thumb Drive Swivel Memory Stick Black&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Download &lt;a href=&quot;https://www.balena.io/etcher/&quot;&gt;Balena Etcher&lt;/a&gt; for your current operating system&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Run the installer&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;The mobile aspect is certainly important, but we are focusing on the desktop data. Of that total the top two screen resolutions are:&lt;/p&gt;
+&lt;p&gt;Once installed, open Etcher do the following:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Select your downloaded Linux Mint ISO file&lt;/li&gt;
+&lt;li&gt;Select your USB stick&amp;#47;device as the media&lt;/li&gt;
+&lt;li&gt;Flash media&lt;/li&gt;
+&lt;li&gt;???&lt;/li&gt;
+&lt;li&gt;Profit!!&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;step-3-boot-from-usb&quot;&gt;Step 3: Boot from USB&lt;/h2&gt;
&lt;ul&gt;
-&lt;li&gt;1920×1080 (9.94%)&lt;/li&gt;
-&lt;li&gt;1366×768 (6.22%)&lt;/li&gt;
+&lt;li&gt;Make sure your Macbook Air is turned off&lt;/li&gt;
+&lt;li&gt;Plug your newly flashed USB stick into the MacBook Air&lt;/li&gt;
+&lt;li&gt;Turn on the MacBook Air&lt;/li&gt;
+&lt;li&gt;Immediately hold down the &lt;strong&gt;alt&amp;#47;option&lt;/strong&gt; button (keep holding until the prompt screen is visible)&lt;/li&gt;
+&lt;li&gt;You will be shown drive &amp;#8220;icons&amp;#8221; - you want to select your USB drive (normally the far right icon)&lt;/li&gt;
+&lt;li&gt;Press &lt;strong&gt;Enter&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Select the first item in the list that appears &amp;#8220;Start Linux Mint&amp;#8221;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;That is a fairly significant chunk of desktop users. Although almost 10% have access to screens set at &lt;code&gt;1920x1080&lt;/code&gt;, I found the amount of those stuck at &lt;code&gt;1366x768&lt;/code&gt; to be quite shocking. Here I was, developing large-set interfaces on an UHD 4K monitor while a large portion of my end-users would never benefit from those &amp;#8220;pixel-perfect&amp;#8221; designs. &lt;/p&gt;
-&lt;p&gt;Hell, some of these users were being shown the &lt;em&gt;tablet&lt;/em&gt;-based view of the applications since our breakpoints were so ridiculously large. Yikes.&lt;/p&gt;
-&lt;p&gt;So, I said screw it and retired the external monitor. Now my X260 is propped up and proudly showing off its 1366x768 display. It only took a day or so to adapt to this new setup and I don&amp;#8217;t think I could go back to another massive display.&lt;/p&gt;
-&lt;p&gt;Here are some benefits at a glance:&lt;/p&gt;
+&lt;p&gt;After this you will boot into a &amp;#8220;live session&amp;#8221; of the Linux Mint operating system.&lt;/p&gt;
+&lt;h2 id=&quot;step-4-installing-linux-mint&quot;&gt;Step 4: Installing Linux Mint&lt;/h2&gt;
+&lt;p&gt;Linux Mint makes it very easy for you to install it&amp;#8217;s OS step-by-step (similar to most other Linux distros). Simply &lt;strong&gt;double-click&lt;/strong&gt; on the &amp;#8220;Install Linux Mint&amp;#8221; CD icon on the main desktop.&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;I no longer have to worry about &amp;#8220;context switching&amp;#8221; if I decide to un-dock my laptop and work somewhere mobile. The desktop experience remains intact.&lt;/li&gt;
-&lt;li&gt;Working inside &lt;code&gt;dwm&lt;/code&gt; is a much cleaner experience. I mostly operate single applications within their own confined tag - with some exceptions of course.&lt;/li&gt;
-&lt;li&gt;I&amp;#8217;m able to instantly understand frustrations of everyday users while developing new features or tweaking existing UIs. Being able to advocate for our end-users by using legit use cases is extremely helpful. (Removes the &amp;#8220;design by gut-feeling&amp;#8221; mistakes)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;a-little-extreme&quot;&gt;A Little Extreme&lt;/h2&gt;
-&lt;p&gt;Yes, I am aware that I could simply keep the UHD monitor and perform my work within a constrained portion of the screen. The problem that remains is &amp;#8220;quality&amp;#8221;. Most 1366x768 panels are not even close to the level of hi-res found on most 4K monitors. By using such a display I would be cheating myself of the standard experience a good portion of my end-users endure. &lt;/p&gt;
-&lt;p&gt;I want to see the fuzzy text, slightly blurred imagery and muted button shadows. I want to see these things because that&amp;#8217;s how some &lt;em&gt;users&lt;/em&gt; will experience it.&lt;/p&gt;
-&lt;p&gt;Maybe that&amp;#8217;s extreme - but it works for me.&lt;/p&gt;</content>
- <link href="https://btxx.org/monitor"/>
- <id>https://btxx.org/monitor</id>
- <updated>2023-03-03T10:00:00Z</updated>
- <published>2023-03-03T10:00:00Z</published>
- </entry>
- <entry>
- <title>Installing Older Versions of MongoDB on Arch Linux</title>
- <content type="html">&lt;h1 id=&quot;installing-older-versions-of-mongodb-on-arch-linux&quot;&gt;Installing Older Versions of MongoDB on Arch Linux&lt;/h1&gt;
-&lt;p&gt;2023-09-11&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ve recently been using Arch Linux for my main work environment on my ThinkPad X260. It&amp;#8217;s been great. As someone who is constantly drawn to minimalist operating systems such as Alpine or OpenBSD, it&amp;#8217;s nice to use something like Arch that boasts that same minimalist approach but with greater documentation&amp;#47;support.&lt;/p&gt;
-&lt;p&gt;Another major reason for the switch was the need to run older versions of &amp;#8220;services&amp;#8221; locally. Most people would simply suggest using Docker or vmm, but I personally run projects in self-contained, personalized directories on my system itself. I am aware of the irony in that statement&amp;#8230; but that&amp;#8217;s just my personal preference.&lt;/p&gt;
-&lt;p&gt;So I thought I would share my process of setting up an older version of MongoDB (3.4 to be precise) on Arch Linux.&lt;/p&gt;
-&lt;h2 id=&quot;aur-to-the-rescue&quot;&gt;AUR to the Rescue&lt;/h2&gt;
-&lt;p&gt;You will need to target the specific version of MongoDB using the very awesome AUR packages:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;yay -S mongodb34-bin
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Follow the instructions and you&amp;#8217;ll be good to go. Don&amp;#8217;t forget to create the &lt;code&gt;&amp;#47;data&amp;#47;db&lt;/code&gt; directory and give it proper permissions:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;mkdir -p &amp;#47;data&amp;#47;db&amp;#47;
-chmod -R 777 &amp;#47;date&amp;#47;db
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;what-about-my-tools&quot;&gt;What About My &amp;#8220;Tools&amp;#8221;?&lt;/h2&gt;
-&lt;p&gt;If you plan to use MongoDB, then you most likely want to utilize the core database tools (restore, dump, etc). The problem is you can&amp;#8217;t use the default &lt;code&gt;mongodb-tools&lt;/code&gt; package when trying to work with older versions of MongoDB itself. The package will complain about conflicts and ask you to override your existing version. This is &lt;em&gt;not&lt;/em&gt; what we want.&lt;/p&gt;
-&lt;p&gt;So, you&amp;#8217;ll have to build from source locally:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;git clone https:&amp;#47;&amp;#47;github.com&amp;#47;mongodb&amp;#47;mongo-tools
-cd mongodb-tools
-.&amp;#47;make build
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then you&amp;#8217;ll need to copy the built executables into the proper directory in order to use them from the terminal:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;cp bin&amp;#47;* &amp;#47;usr&amp;#47;local&amp;#47;bin&amp;#47;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;And that&amp;#8217;s it! Now you can run &lt;code&gt;mongod&lt;/code&gt; directly or use &lt;code&gt;systemctl&lt;/code&gt; to enable it by default. Hopefully this helps anyone else curious about running older (or even outdated!) versions of MongoDB.&lt;/p&gt;</content>
- <link href="https://btxx.org/mongodb-arch"/>
- <id>https://btxx.org/mongodb-arch</id>
- <updated>2023-09-11T10:00:00Z</updated>
- <published>2023-09-11T10:00:00Z</published>
- </entry>
- <entry>
- <title>Using a New Domain and Switching Static Hosts</title>
- <content type="html">&lt;h1 id=&quot;using-a-new-domain-and-switching-static-hosts&quot;&gt;Using a New Domain and Switching Static Hosts&lt;/h1&gt;
-&lt;p&gt;2021-11-25&lt;/p&gt;
-&lt;p&gt;As you can most likely tell by looking at your browser&amp;#8217;s URL - I&amp;#8217;ve swapped over to a new domain for my personal website: &lt;a href=&quot;https://tdarb.org&quot;&gt;tdarb.org&lt;/a&gt;. I&amp;#8217;m a fickle person and this is a random change - but it is one I&amp;#8217;ve been planning to do for some time.&lt;/p&gt;
-&lt;p&gt;Let me give some minor background information and then get into the changes&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;what-about-ugly-duck&quot;&gt;What about Ugly Duck?&lt;/h2&gt;
-&lt;p&gt;I had originally used the &lt;a href=&quot;https://uglyduck.ca&quot;&gt;uglyduck.ca&lt;/a&gt; domain for this personal blog as a &lt;em&gt;loosely&lt;/em&gt; based reference to the &amp;#8220;ugly duckling&amp;#8221; story. This was based on the fact that I &lt;em&gt;mainly&lt;/em&gt; focus on CSS and making the web more visually appealing - or beautiful, if you will - so the comparison to an ugly duckling becoming a swan made sense in my oddball mind.&lt;/p&gt;
-&lt;p&gt;But overtime I came to somewhat dislike[^1] it and set out to change it.&lt;/p&gt;
-&lt;h2 id=&quot;so-what-the-heck-is-tdarb&quot;&gt;So what the heck is &amp;#8220;tdarb&amp;#8221;?&lt;/h2&gt;
-&lt;p&gt;I explain this on my updated &lt;a href=&quot;/about&quot;&gt;about page&lt;/a&gt; but I will mention it again here:&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;tdarb&lt;/strong&gt;[^2] is simply my first name and last initial spelt backwards – Brad T. Mind blowing, right?&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ve switched over to this naming convention to avoid having such a random &amp;#8220;phrase&amp;#8221; domain name while at the same time having a little more fun than just &lt;em&gt;mylegalname.com&lt;/em&gt;. I also am a sucker for &lt;code&gt;.org&lt;/code&gt; TLDs (although I don&amp;#8217;t know why).&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m sure some readers will prefer it, some will be indifferent and others will hate it. Either way, it&amp;#8217;s my personal site and I&amp;#8217;ll do as I please!&lt;/p&gt;
-&lt;h2 id=&quot;breaking-my-website-for-a-day-and-fixing-potential-link-rot&quot;&gt;Breaking My Website for a Day and Fixing Potential Link Rot&lt;/h2&gt;
-&lt;p&gt;The transition I made yesterday from &lt;a href=&quot;https://uglyduck.ca&quot;&gt;uglyduck.ca&lt;/a&gt; to &lt;a href=&quot;https://tdarb.org&quot;&gt;tdarb.org&lt;/a&gt; was &lt;em&gt;rough&lt;/em&gt;. I thought that I could simply launch the identical content on the new domain, test everything, and then simply set a URL redirect from the old domain through Namecheap[^3]. Oh boy, was I wrong!&lt;/p&gt;
-&lt;p&gt;The bulk of my evening was spent figuring out why the redirect wouldn&amp;#8217;t propagate across all networks and why multiple forwards were occurring. In the end, I just tossed &lt;a href=&quot;https://uglyduck.ca&quot;&gt;uglyduck.ca&lt;/a&gt; back up on Netlify and set global redirect rules in their handy-dandy &lt;code&gt;_redirects&lt;/code&gt; file. (I will write-up a small post about this soon to help others). After a few minutes everything was working perfectly fine and best of all - no broken links or potential link rot! All thanks to the &lt;code&gt;:splat&lt;/code&gt; parameter in the redirects.&lt;/p&gt;
-&lt;p&gt;As for my RSS feed, everything &lt;em&gt;should&lt;/em&gt; forward correctly? I state that as a question since I can&amp;#8217;t confirm this 100% and RSS feeds are not my expertise. If I broke this for any of you, I apologize. I will pray to the internet gods for your forgiveness&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;from-github-to-sourcehut&quot;&gt;From Github to Sourcehut&lt;/h2&gt;
-&lt;p&gt;That&amp;#8217;s right, I&amp;#8217;ve switched this static site&amp;#8217;s hosting over to &lt;a href=&quot;https://srht.site&quot;&gt;sourcehut pages&lt;/a&gt; and couldn&amp;#8217;t be happier. My reasons for switching:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;I&amp;#8217;m happy to pay and support the ongoing work at sourcehut (open source alternatives to Netlify, Github, etc. is important)&lt;/li&gt;
-&lt;li&gt;I&amp;#8217;ve been wanting to become more comfortable with the sourcehut ecosystem - there might be projects in the future I would like to help with on that platform and it helps if you know how to use it :P&lt;/li&gt;
-&lt;li&gt;Sourcehut pages are fast - I mean &lt;em&gt;really&lt;/em&gt; fast&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;It &lt;em&gt;was&lt;/em&gt; slightly confusing for my ape brain to figure out the setup, but I got there eventually. I plan to do a detailed step-by-step tutorial to help those like me who may find it a little daunting. It&amp;#8217;s well worth the minor effort.&lt;/p&gt;
-&lt;h2 id=&quot;the-lifespan-of-uglyduck.ca&quot;&gt;The Lifespan of uglyduck.ca&lt;/h2&gt;
-&lt;p&gt;I still have ownership of the old domain for almost another full year. I feel like that gives users enough time to adjust and become accustomed to the new one. My plan is to let the domain die entirely when it goes up for renewal but who knows - I might very well keep it going if the mood strikes me.&lt;/p&gt;
-&lt;h2 id=&quot;thats-all-folks&quot;&gt;That&amp;#8217;s All Folks!&lt;/h2&gt;
-&lt;p&gt;I don&amp;#8217;t have much else to report besides having made minor tweaks to this website design (yet again) and I have also finally added a picture of &lt;a href=&quot;/uses&quot;&gt;workstation on the &amp;#8220;Things I Use&amp;#8221; page&lt;/a&gt;. That&amp;#8217;s it.&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;not &lt;em&gt;hate&lt;/em&gt; - just discontent&lt;/li&gt;
-&lt;li&gt;pronounced tee-darb&lt;/li&gt;
-&lt;li&gt;Namecheap support were very helpful - this was more of a limitation of what their redirects can do&lt;/li&gt;
-&lt;/ol&gt;</content>
- <link href="https://btxx.org/minor-website-changes"/>
- <id>https://btxx.org/minor-website-changes</id>
- <updated>2021-11-25T10:00:00Z</updated>
- <published>2021-11-25T10:00:00Z</published>
- </entry>
- <entry>
- <title>Minimal CSS: Dropdown Menu</title>
- <content type="html">&lt;h1 id=&quot;minimal-css-dropdown-menu&quot;&gt;Minimal CSS: Dropdown Menu&lt;/h1&gt;
-&lt;p&gt;2019-04-26&lt;/p&gt;
-&lt;p&gt;I love the idea of stripping away as much CSS as possible, while still maintaining the original UI concept. Let&amp;#8217;s build out a demo example with a simple menu dropdown element.&lt;/p&gt;
-&lt;p&gt;Interesting facts about our final CSS menu:&lt;/p&gt;
+&lt;li&gt;Choose your language. then hit &lt;strong&gt;Continue&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Select your preferred keyboard layout, then hit &lt;strong&gt;Continue&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;&lt;em&gt;Optional&lt;/em&gt;: You might be asked to connect to a WiFi network, if you are set it up now&lt;/li&gt;
+&lt;li&gt;I would suggest downloading the multimedia codecs to make things easier, then hit &lt;strong&gt;Continue&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;For installation type, select &amp;#8220;Erase disk and install Linux Mint&amp;#8221;, then hit &lt;strong&gt;Continue&lt;/strong&gt;
&lt;ul&gt;
-&lt;li&gt;Total weight 121 bytes minified! (not including any resets etc.)&lt;/li&gt;
-&lt;li&gt;No complex HTML structures&lt;/li&gt;
-&lt;li&gt;Accessibility support&lt;/li&gt;
+&lt;li&gt;WARNING: This will wipe your current drive completely - make sure you are okay with this!&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;It will issue you with a warning prompt, simply click &lt;strong&gt;Continue&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Select your timezone, then hit &lt;strong&gt;Continue&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Enter your name, a username, a name for your computer, and set a password (you will use this to login moving forward)&lt;/li&gt;
+&lt;li&gt;Wait for the installation to complete&lt;/li&gt;
+&lt;li&gt;Once complete, you will be prompted to &lt;strong&gt;reboot your system&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;After a reboot you will be prompted to remove the USB device and then press &lt;strong&gt;Enter&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Welcome to Linux Mint!&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Now to see the final code in all it&amp;#8217;s glory:&lt;/p&gt;
-&lt;h3 id=&quot;html&quot;&gt;HTML&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;nav&amp;#62;
- &amp;#60;ul&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Home&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;About&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Services&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;ul&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Design&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Development&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Custom Pizzas&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;&amp;#47;ul&amp;#62;
- &amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Contact&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;&amp;#47;ul&amp;#62;
-&amp;#60;&amp;#47;nav&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;css&quot;&gt;CSS&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* resets - optional *&amp;#47;
-ul { list-style: none; padding: 0; }
-ul li { display: inline-block; position: relative; }
-
-&amp;#47;* minimal dropdown CSS *&amp;#47;
-ul li &amp;#62; ul {
- left: -9999px;
- position: absolute;
- visibility: hidden;
-}
-ul li:hover &amp;#62; ul, ul li:focus-within &amp;#62; ul {
- left: 0;
- visibility: visible;
-}
+&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
+&lt;p&gt;Linux Mint is not only a great operating system, but it is also an excellent starting point for newcomers to Linux in general. It&amp;#8217;s stable enough to be used as a daily driver and popular enough that most minor issues can be solved with a quick internet search.&lt;/p&gt;
+&lt;p&gt;Hopefully this inspires others to try &amp;#8220;recycling&amp;#8221; their older Apple products instead of tossing them away or having them collect dust.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/linux-mint-macbook-air"/>
+ <id>https://btxx.org/posts/linux-mint-macbook-air</id>
+ <updated>2020-08-16T10:00:00Z</updated>
+ <published>2020-08-16T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Click to Load Website Images</title>
+ <content type="html">&lt;h1 id=&quot;click-to-load-website-images&quot;&gt;Click to Load Website Images&lt;/h1&gt;
+&lt;p&gt;2021-03-25&lt;/p&gt;
+&lt;p&gt;In my previous post about &lt;a href=&quot;https://uglyduck.ca/#2021-03-22-89-posts-one-file&quot;&gt;switching my Jekyll blog over to PHPetite&lt;/a&gt;, I briefly mentioned how I only loaded in article images if the user &lt;em&gt;clicked or tapped&lt;/em&gt; the empty file element.&lt;/p&gt;
+&lt;p&gt;In this post, I&amp;#8217;m going to quickly breakdown the update I&amp;#8217;ve done to my blog&amp;#8217;s images since then and how you can easily implement the same thing in your own project.&lt;/p&gt;
+&lt;h2 id=&quot;update&quot;&gt;Update&lt;/h2&gt;
+&lt;p&gt;As pointed out by Gabriel &lt;a href=&quot;https://github.com/bradleytaunt/phpetite/issues/1&quot;&gt;in this Github issue&lt;/a&gt;, this concept breaks things slightly for RSS users. Since then, I have just set the default images on this blog to &lt;code&gt;display: none&lt;/code&gt; and render them as &lt;code&gt;block&lt;/code&gt; elements when their specific &lt;code&gt;section&lt;/code&gt; is loaded into the DOM visibly.&lt;/p&gt;
+&lt;p&gt;The example below is remaining the same as it was, to still provide context for this post.&lt;/p&gt;
+&lt;h2 id=&quot;live-demo&quot;&gt;Live Demo&lt;/h2&gt;
+&lt;p&gt;Before we jump head first into the details, let&amp;#8217;s take a look at what we will be creating:&lt;/p&gt;
+&lt;p&gt;Pretty neat, eh? Well let&amp;#8217;s get into the nitty gritty.&lt;/p&gt;
+&lt;h2 id=&quot;the-code&quot;&gt;The Code&lt;/h2&gt;
+&lt;p&gt;Personally, I place everything into a &lt;code&gt;figure&lt;/code&gt; element to keep things contained and clean - but this isn&amp;#8217;t required by any means. We then include our &lt;code&gt;img&lt;/code&gt; and &lt;code&gt;figcaption&lt;/code&gt; elements. That&amp;#8217;s it.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;figure&amp;#62;
+ &amp;#60;img src=&quot;&amp;#47;placeholder-image.webp&quot; onclick=&quot;this.src=&amp;#39;https:&amp;#47;&amp;#47;res.cloudinary.com&amp;#47;bradtaunt&amp;#47;image&amp;#47;fetch&amp;#47;q_auto:low&amp;#47;v1570124593&amp;#47;https:&amp;#47;&amp;#47;uglyduck.ca&amp;#47;public&amp;#47;images&amp;#47;aqua-ui-css-buttons.webp&amp;#39;&quot; alt=&quot;Aqua UI buttons&quot;&amp;#62;
+ &amp;#60;figcaption&amp;#62;&amp;#60;b&amp;#62;Click the placeholder to load in the real image&amp;#60;&amp;#47;b&amp;#62;&amp;#60;br&amp;#62;
+ Example Dribbble shot for testing. Feel free to click the default image in order to load the correct Dribbble source.
+ &amp;#60;a href=&quot;https:&amp;#47;&amp;#47;res.cloudinary.com&amp;#47;bradtaunt&amp;#47;image&amp;#47;fetch&amp;#47;q_auto:low&amp;#47;v1570124593&amp;#47;https:&amp;#47;&amp;#47;uglyduck.ca&amp;#47;public&amp;#47;images&amp;#47;aqua-ui-css-buttons.webp&quot;&amp;#62;View full size image&amp;#60;&amp;#47;a&amp;#62;.
+ &amp;#60;&amp;#47;figcaption&amp;#62;
+&amp;#60;&amp;#47;figure&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;live-demo-on-codepen&quot;&gt;Live demo on CodePen&lt;/h2&gt;
-&lt;p&gt;Feel free to check out the live demo on CodePen &lt;a href=&quot;https://codepen.io/bradleytaunt/pen/MRLevy&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;</content>
- <link href="https://btxx.org/minimal-css-menu"/>
- <id>https://btxx.org/minimal-css-menu</id>
- <updated>2019-04-26T10:00:00Z</updated>
- <published>2019-04-26T10:00:00Z</published>
- </entry>
- <entry>
- <title>Mini Interactive Keyboard with Pure CSS</title>
- <content type="html">&lt;h1 id=&quot;mini-interactive-keyboard-with-pure-css&quot;&gt;Mini Interactive Keyboard with Pure CSS&lt;/h1&gt;
-&lt;p&gt;2020-05-13&lt;/p&gt;
-&lt;p&gt;Lately, I&amp;#8217;ve become obsessed with trying to see what I can create using only HTML and CSS (besides websites of course). Since playing with the concept of &lt;a href=&quot;https://uglyduck.ca/fake-3d-elements-with-css/&quot;&gt;faking 3D elements&lt;/a&gt;, I wanted to circle back around to an older CodePen I created: a mini, interactive undo keyboard.&lt;/p&gt;
-&lt;h2 id=&quot;see-it-in-action&quot;&gt;See it in action&lt;/h2&gt;
-&lt;p&gt;Below you can view a live demo of the mini keyboard itself. This demo is nothing special, but takes design inspiration from Apple&amp;#8217;s magic keyboards (if that wasn&amp;#8217;t already obvious).&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/undo-keyboard.png&quot; alt=&quot;Undo keyboard with two buttons to click&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/PadQMP&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;So now that we have seen what we plan to build, let&amp;#8217;s break down the process of creating this stupid, fun project!&lt;/p&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;The core skeleton of this project is very simple, since the keyboard consists of only 2 interactive buttons on top of a basic base element: &lt;/p&gt;
+&lt;h3 id=&quot;the-image-element&quot;&gt;The Image Element&lt;/h3&gt;
+&lt;p&gt;This is where the &lt;em&gt;magic&lt;/em&gt; happens. By default all images will target the default placeholder image: &lt;code&gt;placeholder-image.webp&lt;/code&gt;. This image is just 16KB in size and only needs to load in once.&lt;/p&gt;
+&lt;p&gt;Next we include an inline &lt;code&gt;onclick&lt;/code&gt; attribute, which targets the current image&amp;#8217;s &lt;code&gt;src&lt;/code&gt; attribute and changes it based on the URL provided. (Note: I use Cloudinary for my blog&amp;#8217;s image storage, but you could even host your images relative to your root directory if you wanted)&lt;/p&gt;
+&lt;p&gt;Now when a user clicks on the placeholder image, the inline &lt;code&gt;onclick&lt;/code&gt; pulls in the correct image in it&amp;#8217;s place.&lt;/p&gt;
+&lt;h3 id=&quot;disabled-javascript&quot;&gt;Disabled JavaScript&lt;/h3&gt;
+&lt;p&gt;For users who have JavaScript blocked or disabled we have a decent backup. By including a direct link to the image URL in the &lt;code&gt;figcaption&lt;/code&gt; element, we give the user the ability to still view the image in a separate browser tab.&lt;/p&gt;
+&lt;p&gt;You could get extra fancy and include some &lt;code&gt;noscript&lt;/code&gt; tags in your project that maybe render a different placeholder image mentioning they have JavaScript disabled etc, but for my needs that would be overkill.&lt;/p&gt;
+&lt;h2 id=&quot;cool---but-why-do-this&quot;&gt;Cool - But Why Do This?&lt;/h2&gt;
+&lt;p&gt;Bandwidth is a limited resource for a lot of users around the world. As designers and developers it&amp;#8217;s best to respect this fact and only load in elements as the user &lt;em&gt;requires&lt;/em&gt; them. Every little bit helps.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/load-image-on-click"/>
+ <id>https://btxx.org/posts/load-image-on-click</id>
+ <updated>2021-03-25T10:00:00Z</updated>
+ <published>2021-03-25T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Fixing LocalWP on Fedora 32</title>
+ <content type="html">&lt;h1 id=&quot;fixing-localwp-on-fedora-32&quot;&gt;Fixing LocalWP on Fedora 32&lt;/h1&gt;
+&lt;p&gt;2020-05-06&lt;/p&gt;
+&lt;p&gt;I recently upgraded from Fedora 31 to 32 and everything went very smoothly - except for one application: &lt;strong&gt;LocalWP&lt;/strong&gt;. After the upgrade, all local WordPress builds would fail and complain about two missing packages:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;p&gt;Keyboard base&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Command button&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;&amp;#8216;Z&amp;#8217; letter button&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;libnettle6&lt;/li&gt;
+&lt;li&gt;libhogweed4&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;Here is where all the magic happens. Let&amp;#8217;s break these elements into their own sections, starting with the &lt;strong&gt;base styling&lt;/strong&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Custom typeface *&amp;#47;
-@import url(&quot;https:&amp;#47;&amp;#47;fonts.googleapis.com&amp;#47;css?family=Muli&quot;);
-
-&amp;#47;* Basic layout styling *&amp;#47;
-body {
-background: #d2dcff;
-margin: 80px 0 40px;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;We then tackle the basic &lt;strong&gt;keyboard base&lt;/strong&gt; element:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.base {
-background: linear-gradient(180deg, #eee 0%, #d8d8d8 100%);
-border-radius: 20px;
-box-shadow: inset 0 3px 5px rgba(255,255,255,0.3), inset 0 1px 3px rgba(255,255,255,0.5), 0 10px 0 #afafaf;
-display: flex;
-height: 310px;
-margin: 0 auto;
-position: relative;
-width: 620px;
-}
-
-&amp;#47;* This pseudo element is used for more realistic drop-shadows *&amp;#47;
-.base:after {
-bottom: 0;
-box-shadow: 0 10px 80px rgba(0,0,0,0.5);
-content: &amp;#39;&amp;#39;;
-height: 50px;
-left: 7.5%;
-position: absolute;
-width: 85%;
-z-index: -1;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next, we target all shared styles between the &lt;strong&gt;2 keyboard buttons&lt;/strong&gt; to avoid repeating ourselves later on:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.command, .z {
- -webkit-appearance: none;
- background: linear-gradient(180deg, #fff 0%, #f2f2f2 100%);
- border: 0;
- border-radius: 20px;
- box-shadow: inset 0 1px 3px rgba(255,255,255,0.5), 0 10px 0 #c9c9c9, 0 10px 6px rgba(0,0,0,0.3), 0 12px 8px rgba(0,0,0,0.5);
- cursor: pointer;
- display: inline-block;
- height: 260px;
- margin: 15px 0 0 20px;
- outline: 0;
- position: relative;
- width: 300px;
- z-index: 2;
-}
-
-.command span, .z span {
- font-family: &amp;#39;Muli&amp;#39;, &amp;#39;Helvetica&amp;#39;, sans-serif;
-}
-
-&amp;#47;* Styling when pressed *&amp;#47;
-.command:active, .z:active {
- box-shadow: inset 0 10px 10px rgba(0,0,0,0.2), inset 0 10px 30px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.6);
- margin: 25px 0 0 20px;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;All that remains is to add the custom styling for each independent button:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Custom Command styling *&amp;#47;
-.command svg {
- height: 60px;
- right: 15px;
- position: absolute;
- stroke: #9f9f9f;
- top: 15px;
- width: 60px;
-}
-.command span {
- bottom: 15px;
- color: #9f9f9f;
- font-size: 58px;
- left: 0;
- position: absolute;
- width: 100%;
-}
-
-&amp;#47;* Custom &quot;Z&quot; Letter styling *&amp;#47;
-.z {
- width: 260px;
-}
-.z span {
- color: #9f9f9f;
- font-size: 150px;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;taking-it-further&quot;&gt;Taking it further&lt;/h2&gt;
-&lt;p&gt;You could easily improve upon this concept by rendering an entire interactive keyboard, if you so desired. But this is maybe something I would tackle at a later date when I have a little more free time 😉 For now, a simple mini undo keyboard is fun enough to play with.&lt;/p&gt;</content>
- <link href="https://btxx.org/mini-interactive-keyboard-with-pure-css"/>
- <id>https://btxx.org/mini-interactive-keyboard-with-pure-css</id>
- <updated>2020-05-13T10:00:00Z</updated>
- <published>2020-05-13T10:00:00Z</published>
- </entry>
- <entry>
- <title>Menu Toggle with Pure CSS</title>
- <content type="html">&lt;h1 id=&quot;menu-toggle-with-pure-css&quot;&gt;Menu Toggle with Pure CSS&lt;/h1&gt;
-&lt;p&gt;2020-10-19&lt;/p&gt;
-&lt;p&gt;When thinking through navigation designs for mobile devices sometimes the best option is to store away the content behind a toggle button. This button would then display the menu items upon interaction. Let me show you how to create such an element with only CSS - no need for JavaScript today!&lt;/p&gt;
-&lt;h2 id=&quot;before-we-begin&quot;&gt;Before we begin&lt;/h2&gt;
-&lt;p&gt;I would like to point out that the concept of &amp;#8220;toggling&amp;#8221; the main menu (even for mobile) is not always the best solution. If you&amp;#8217;re interested, you can take a look at a previous article I wrote explaining why: &lt;a href=&quot;/hamburger-menu-alternative.html&quot;&gt;Using Hamburger Menus? Try Sausage Links&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;Now that we have mentioned possible pitfalls of relying so heavily on toggle menus, let&amp;#8217;s build one!&lt;/p&gt;
-&lt;h2 id=&quot;our-final-product&quot;&gt;Our Final Product&lt;/h2&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/menu-toggle-css.png&quot; alt=&quot;Menu toggle made from pure CSS&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/mdEEvEX&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;To implement this design you really don&amp;#8217;t need much in terms of HTML:&lt;/p&gt;
+&lt;p&gt;After wasting far too much time rolling back to older LocalWP versions and reaching out into the community forums, I found a simply solution to the problem. You just need to download and install the following packages manually:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;p&gt;A single &lt;code&gt;checkbox&lt;/code&gt; input&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;A &lt;code&gt;label&lt;/code&gt; that corresponds to the &lt;code&gt;checkbox&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;A &lt;code&gt;nav&lt;/code&gt; element to house our unordered list items&lt;/p&gt;
-&lt;p&gt;Menu&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;libnettle6: &lt;a href=&quot;https://pkgs.org/download/libnettle6&quot;&gt;libnettle6-3.4.1-lp152.3.1.x86_64.rpm&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;libhogweed4: &lt;a href=&quot;https://pkgs.org/download/libhogweed4&quot;&gt;libhogweed4-3.4.1-lp152.3.1.x86_64.rpm&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;That&amp;#8217;s it!&lt;/p&gt;
-&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;The first thing we need to do is &amp;#8220;hide&amp;#8221; the &lt;code&gt;checkbox&lt;/code&gt; input element. It&amp;#8217;s important to avoid using &lt;code&gt;display: none&lt;/code&gt; or &lt;code&gt;visibility: hidden&lt;/code&gt; in order to achieve this. Those CSS properties can negatively impact accessibility (specifically screen readers). So we will be relying on the &lt;code&gt;position&lt;/code&gt;, &lt;code&gt;z-index&lt;/code&gt; and &lt;code&gt;opacity&lt;/code&gt; properties to help us out.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Set the input position to absolute, send it off screen with zero opacity *&amp;#47;
-input[type=&quot;checkbox&quot;] {
- left: -9999px;
- opacity: 0;
- position: absolute;
-}
+&lt;p&gt;Although these packages are built for OpenSuse, it still worked perfectly fine for me. My hope is that this quick post might be helpful for others who possibly run into the same issue.&lt;/p&gt;
+&lt;p&gt;For reference, here is the Local Community ticket I created: &lt;a href=&quot;https://localwp.com/community/t/local-not-working-fedora-32-workstation-edition/19219&quot;&gt;Local not working with Fedora 32&lt;/a&gt;&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/localwp-fedora"/>
+ <id>https://btxx.org/posts/localwp-fedora</id>
+ <updated>2020-05-06T10:00:00Z</updated>
+ <published>2020-05-06T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Looping Through Jekyll Collections</title>
+ <content type="html">&lt;h1 id=&quot;looping-through-jekyll-collections&quot;&gt;Looping Through Jekyll Collections&lt;/h1&gt;
+&lt;p&gt;2022-08-12&lt;/p&gt;
+&lt;p&gt;I recently needed to add a couple new items to my wife&amp;#8217;s personal recipe website (&lt;a href=&quot;https://cookingwith.casa&quot;&gt;cookingwith.casa&lt;/a&gt;) which I hadn&amp;#8217;t touched in quite a while. The Jekyll build still worked fine, but I realized I was statically adding each &lt;code&gt;collection&lt;/code&gt; by hand on the main homepage[^1].&lt;/p&gt;
+&lt;p&gt;Not so good.&lt;/p&gt;
+&lt;p&gt;Of course, this wasn&amp;#8217;t difficult at all to fix. Now everything is much more &amp;#8220;hands free&amp;#8221; moving forward. I figured I would share the details here in the hopes that others mind find it useful. Plus, it&amp;#8217;s my blog - so I&amp;#8217;ll do what I want!&lt;/p&gt;
+&lt;h2 id=&quot;looping-our-collections&quot;&gt;Looping Our Collections&lt;/h2&gt;
+&lt;p&gt;We want Jekyll to make things as streamlined as possible for us. This means that if I decide to add a new collection it will automatically render it along the others on the homepage.&lt;/p&gt;
+&lt;p&gt;Work smart not hard!&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s take a look at the bare-bones collections loop:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;{% for collection in site.collections %}
+ &amp;#60;!-- Our code goes here --&amp;#62;
+{% endfor %}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then we give our corresponding &lt;code&gt;label&lt;/code&gt; a minor face-lift to make it appear more button-like:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Minor visual styling to make the label more button-y *&amp;#47;
-label {
- border: 1px solid currentColor;
- border-radius: 4px;
- cursor: pointer;
- padding: 10px;
-}
+&lt;p&gt;Then we need to include an &lt;code&gt;if&lt;/code&gt; statement to avoid pulling in standard &lt;code&gt;post&lt;/code&gt; items (or leave this in if that is desired):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;{% for collection in site.collections %}
+ {% if collection.label != &amp;#39;posts&amp;#39; %}
+ {% endif %}
+{% endfor %}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;For our main &lt;code&gt;nav&lt;/code&gt; element, we want to set it&amp;#8217;s position to &lt;code&gt;absolute&lt;/code&gt; in order to avoid any janky page rendering issues that might occur when toggling the menu:&lt;/p&gt;
-&lt;p&gt;`
- &amp;#47;* Set nav to absolute (avoids odd page rendering space pop-in) *&amp;#47;
- nav {
- opacity: 0;
- position: absolute;
- z-index: -2;
- }&lt;/p&gt;
-&lt;p&gt;The last step is to actually &lt;em&gt;show&lt;/em&gt; the menu if the user toggles the &lt;code&gt;checkbox&lt;/code&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Show nav when checkbox is checked *&amp;#47;
-input[type=&quot;checkbox&quot;]:checked ~ nav {
- opacity: 1;
- z-index: 1;
-}
+&lt;p&gt;Now for my specific use case, we want to display each collection label and then list its corresponding items below that label (see the &lt;code&gt;site[collection.label]&lt;/code&gt; for reference)&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;{% for collection in site.collections %}
+ {% if collection.label != &amp;#39;posts&amp;#39; %}
+ &amp;#60;h2&amp;#62;{{ collection.label }}&amp;#60;&amp;#47;h2&amp;#62;
+ &amp;#60;ul class=&quot;recipe-list&quot;&amp;#62;
+ {% for item in site[collection.label] %}
+ &amp;#60;li&amp;#62;
+ &amp;#60;a href=&quot;{{ item.url }}&quot;&amp;#62;{{ item.title }}&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;&amp;#47;li&amp;#62;
+ {% endfor %}
+ &amp;#60;&amp;#47;ul&amp;#62;
+ &amp;#60;hr&amp;#62;
+ {% endif %}
+{% endfor %}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;It might not look like much, but you now have a fully functional menu toggle - &lt;strong&gt;made with pure CSS&lt;/strong&gt;! &lt;/p&gt;
-&lt;h2 id=&quot;with-great-power&quot;&gt;With Great Power&amp;#8230;&lt;/h2&gt;
-&lt;p&gt;Although this design is very simple to implement, please remember to use these types of menus wisely. Just because you &lt;em&gt;can&lt;/em&gt; do something, doesn&amp;#8217;t always mean you &lt;em&gt;should&lt;/em&gt;.&lt;/p&gt;</content>
- <link href="https://btxx.org/menu-toggle-css"/>
- <id>https://btxx.org/menu-toggle-css</id>
- <updated>2020-10-19T10:00:00Z</updated>
- <published>2020-10-19T10:00:00Z</published>
- </entry>
- <entry>
- <title>Replacing My Eero Mesh Network with Two Mangos</title>
- <content type="html">&lt;h1 id=&quot;replacing-my-eero-mesh-network-with-two-mangos&quot;&gt;Replacing My Eero Mesh Network with Two Mangos&lt;/h1&gt;
-&lt;p&gt;2023-03-09&lt;/p&gt;
-&lt;p&gt;It has been one week since I retired my Eero mesh network setup and replaced it with two &lt;a href=&quot;https://www.gl-inet.com/products/gl-mt300n-v2/&quot;&gt;Mango Mini Travel Routers (GL-MT300N-V2)&lt;/a&gt;. There were some obvious reasons to make this switch but I was initially unsure how the overall performance on the Mangos would hold up compared to the &amp;#8220;cutting edge&amp;#8221; tech that Eero devices claim to have.&lt;/p&gt;
-&lt;p&gt;Spoiler (in case the post title didn&amp;#8217;t give it away): I was pleasantly surprised.&lt;/p&gt;
-&lt;h2 id=&quot;goodbye-amazon&quot;&gt;Goodbye Amazon&lt;/h2&gt;
-&lt;p&gt;I was a big supporter of the original &amp;#8220;kickstarter&amp;#8221; project when Eero first launched. I pre-ordered and they even sent me a device free-of-charge since there were logistic problems shipping to Canada. I received my V1 routers, hooked them up and enjoyed a seamless, wifi mesh system. Everything was going great.&lt;/p&gt;
-&lt;p&gt;Then, in 2019 &lt;a href=&quot;https://mashable.com/article/amazon-acquires-eero&quot;&gt;they were acquired by Amazon&lt;/a&gt;. Sigh&amp;#8230;&lt;/p&gt;
-&lt;p&gt;I should have jumped ship then, but I waited to see what would happen. After all, my internet was still working perfectly fine. Then the half-baked and sometimes completely broken updates started rolling out. On more than one occasion they needed to perform complete version roll-backs. This sometimes knocked out my internet for hours at a time.&lt;/p&gt;
-&lt;p&gt;They also started pushing (although not outright requiring) users to login using their Amazon account. While not a massive deal breaker, the constant pestering to do so rubbed me the wrong way. &lt;/p&gt;
-&lt;p&gt;During this time, my first son was born and we moved out of the city into our first house. So fiddling with my internet setup took the backseat for a while. Once everything settled down, I started seeing more broken updates and certain features being put behind their premium &amp;#8220;Eero Secure&amp;#8221; platform. Features that were available as &lt;em&gt;default&lt;/em&gt; for most other router hardware providers.&lt;/p&gt;
-&lt;p&gt;So, I started to look at other options.&lt;/p&gt;
-&lt;h2 id=&quot;why-the-mango&quot;&gt;Why the Mango?&lt;/h2&gt;
-&lt;p&gt;It is important to mention, that because I live out in rural Canada, my internet options are extremely limited. All providers are satellite-based since fiber cables are unheard of out in these areas. Because of this, my main internet speeds are limited to 25Mbps &lt;em&gt;baseline&lt;/em&gt;. This is important to note, since my experience and router choice took this into consideration. If you&amp;#8217;re a current Eero user with 300Mbps+ speeds and are looking to switch wifi systems - the Mango is probably not the best for you.&lt;/p&gt;
-&lt;p&gt;Luckily for me, the Mini Mangos were perfect for my basic requirements:&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it! Now if I plan to add any new collections down the line, I just need to include it in the &lt;code&gt;_config.yml&lt;/code&gt; file and I&amp;#8217;m set. The homepage will take care of the rest once rendered.&lt;/p&gt;
+&lt;p&gt;Enjoy looping through your Jekyll collections!&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;Just the sections were statically rendered. All the recipes were pulled in dynamically - I&amp;#8217;m not that insane!&lt;/li&gt;
+&lt;/ol&gt;</content>
+ <link href="https://btxx.org/posts/loop"/>
+ <id>https://btxx.org/posts/loop</id>
+ <updated>2022-08-12T10:00:00Z</updated>
+ <published>2022-08-12T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>My Robotic Mower Woes</title>
+ <content type="html">&lt;h1 id=&quot;my-robotic-mower-woes&quot;&gt;My Robotic Mower Woes&lt;/h1&gt;
+&lt;p&gt;2023-05-19&lt;/p&gt;
+&lt;h2 id=&quot;a-brief-background&quot;&gt;A Brief Background&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;m no stranger to robotic lawnmowers. When my wife and I moved into our rural home just over five years ago, we picked up the Husqvarna 450X Automower since I was far too lazy to manually mow my property and the cost was equal to that of a standard riding mower. It was a no-brainer.&lt;/p&gt;
+&lt;p&gt;Fast-forward five years. Everything is still going great with the Automower. Some minor repairs were needed but that was mostly my fault since I was allowing the mower into places it shouldn&amp;#8217;t have been (ie. root systems and dirt &amp;#8220;craters&amp;#8221;). Then lightning struck our backyard at the beginning of April this year. The mower was fine, since we stow it away inside for the winter but the charging station, charging brick and perimeter wire we &lt;em&gt;not&lt;/em&gt; so lucky&amp;#8230;&lt;/p&gt;
+&lt;p&gt;The lightning traveled along the main perimeter wire and went straight to the charging station. Boom. The charging dock was quite literally blown up into a million tiny pieces and scattered across my backyard. Giant trenches were carved up where the perimeter wire had been embedded in the lawn. This surge also followed the path towards the main power adapter and exploded that as well. All of this happened even with the charging station &amp;#47; adapter &lt;em&gt;turned off and unplugged from any outlet&lt;/em&gt;. At least my mower was safe&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;shopping-for-automower-parts&quot;&gt;Shopping for Automower Parts&lt;/h2&gt;
+&lt;p&gt;I realized I was going to have to buy another charging station, power adapter and also pay for a dealer to re-install the perimeter wire. This idea didn&amp;#8217;t thrill me but at least all-in the expense wouldn&amp;#8217;t be that high. Or so I thought&amp;#8230;&lt;/p&gt;
+&lt;p&gt;I contacted my local dealer and he quoted me directly from the Husqvarna supplier:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Max. 300Mbps Wi-Fi Speed (more than enough for my use-case)&lt;/li&gt;
-&lt;li&gt;Running open-source software via &lt;a href=&quot;https://openwrt.org/&quot;&gt;openwrt&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Hardware VPN toggle&lt;/li&gt;
-&lt;li&gt;Tiny physical footprint&lt;/li&gt;
-&lt;li&gt;Extremely portable&lt;/li&gt;
+&lt;li&gt;Charging base station: $749 CDN&lt;/li&gt;
+&lt;li&gt;Power adapter: $599 CDN&lt;/li&gt;
+&lt;li&gt;Perimeter wire install: ~$550 CDN&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;setting-up-the-yellow-squares&quot;&gt;Setting Up the Yellow Squares&lt;/h2&gt;
-&lt;p&gt;Setup was a breeze compared to the Eero experience (which could only be performed through their mobile app via bluetooth and a great deal of repositioning the devices). The full process is essentially:&lt;/p&gt;
+&lt;p&gt;I thought the cost for both the charging station and the wire install seemed about right - but &lt;strong&gt;$599&lt;/strong&gt; for a power adapter?! Are you kidding me? Best of all, these parts were on &lt;em&gt;back-order&lt;/em&gt;. So even if I shelled out the ridiculous asking price, it was anyone&amp;#8217;s guess when I would get them. May was fast approaching and I would need to start cutting my property soon. I started to look at other options.&lt;/p&gt;
+&lt;h2 id=&quot;husqvarna-epos-mowers&quot;&gt;Husqvarna EPOS Mowers&lt;/h2&gt;
+&lt;p&gt;Husqvarna recently launched their &amp;#8220;perimeter-free&amp;#8221; automowers for the general public (originally designed only for &amp;#8220;fleet&amp;#8221; enterprise use). These units use GPS and RTK position to map the desired cutting area of a property. Already my interest was piqued. Moving away from a perimeter wire seemed like a significant upgrade. It would also make my wife happy by allow her to garden freely, without worrying about severing an embedded lawn wire.&lt;/p&gt;
+&lt;p&gt;So I contacted my local dealer again about these specific units. I came away with some interesting information:&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;Power up the first Mango&lt;/li&gt;
-&lt;li&gt;Connect laptop to the Mango via ethernet (you can also connect through wifi)&lt;/li&gt;
-&lt;li&gt;Follow the login instructions&lt;/li&gt;
-&lt;li&gt;Change SSID name, set device in router mode&lt;/li&gt;
-&lt;li&gt;Enjoy your internet!&lt;/li&gt;
+&lt;li&gt;They were quite expensive for my taste ($5000+ CDN - before install!)&lt;/li&gt;
+&lt;li&gt;They were &lt;em&gt;also&lt;/em&gt; on back-order here in Canada&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;Since my office is fairly far away from the placement of the &amp;#8220;main&amp;#8221; Mango router, I placed the second device near my desk. I followed the same setup as above, except I set the mode as &amp;#8220;repeater&amp;#8221;.&lt;/p&gt;
-&lt;p&gt;For my use case I actually set this device up with a separate SSID. This was just my personal preference. You don&amp;#8217;t have to do this. If you give both devices the same SSID name most modern devices will treat your network as if it &lt;em&gt;was&lt;/em&gt; a mesh network. Pretty neat stuff.&lt;/p&gt;
-&lt;p&gt;I plan to eventually add my Pi Zero running AdGuard Home back into the mix, but for now I just installed a small adblock package directly onto the router:&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;Sigh&lt;/em&gt;. The mower gods were trying to tell me something. It seemed Husqvarna was just not meant for me anymore.&lt;/p&gt;
+&lt;h2 id=&quot;luba-to-the-rescue&quot;&gt;Luba to the Rescue!&lt;/h2&gt;
+&lt;p&gt;While researching &amp;#8220;wireless&amp;#8221; automowers, I came across the &lt;a href=&quot;https://mammotion.com/?ref=bpjfzw7s&quot;&gt;Luba Series 5000&lt;/a&gt; (referral link) and kept it in my &amp;#8220;maybe&amp;#8221; pile to follow-up on if needed. So follow-up I did.&lt;/p&gt;
+&lt;p&gt;This mower seemed to check all my boxes:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://github.com/openwrt/packages/tree/master/net/adblock&quot;&gt;adblock package&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Decently priced&lt;/li&gt;
+&lt;li&gt;2-year warranty&lt;/li&gt;
+&lt;li&gt;All wheel drive&lt;/li&gt;
+&lt;li&gt;I could set it up myself&lt;/li&gt;
+&lt;li&gt;No perimeter wires&lt;/li&gt;
+&lt;li&gt;No-go zones available&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;performance-comparisons&quot;&gt;Performance Comparisons&lt;/h2&gt;
-&lt;p&gt;Everything below is just some basic testing I performed. Obviously it should be noted that your experience might be entirely different based on interference, building size, amount of devices connected, etc.&lt;/p&gt;
-&lt;p&gt;Stats for my original Eero mesh setup:&lt;/p&gt;
+&lt;p&gt;It did have a few minor cons associated with it:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;1 eero 6 pro, 1 eero 6+, 1 eero beacon&lt;/li&gt;
-&lt;li&gt;Average internet testing speed: 25Mbps&lt;/li&gt;
-&lt;li&gt;Consistent signal throughout the house&lt;/li&gt;
+&lt;li&gt;Fairly new product &amp;#47; company&lt;/li&gt;
+&lt;li&gt;No close dealer in my area&lt;/li&gt;
+&lt;li&gt;iOS and Android apps are more or less &amp;#8220;beta&amp;#8221;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Stats for the new Mini Mango setup:&lt;/p&gt;
+&lt;p&gt;Next, I watched a few early reviews and went through some comments&amp;#47;feedback from beta users. I was convinced enough and bought the AWD 5000 model.&lt;/p&gt;
+&lt;h2 id=&quot;arrival-and-setup&quot;&gt;Arrival and Setup&lt;/h2&gt;
+&lt;p&gt;The mower (who we named Lawna, and shall be referred to as such moving forward) arrived just after the first week of May. The hardware setup (charging station and RTK antenna) was very straight-forward, so I won&amp;#8217;t go into great detail about that here. Once Lawna was synced with the RTK and GPS system, it was time to map my property.&lt;/p&gt;
+&lt;p&gt;I broke my property into 4 main &amp;#8220;tasks&amp;#8221; as the app calls them. The 5000 model allows you to create up to 10, but for my needs 4 was fine for full coverage. I mapped each one, added a handful of no-go zones to each and told Lawna to get to work. She happily obliged.&lt;/p&gt;
+&lt;h2 id=&quot;the-first-week&quot;&gt;The First Week&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve had (almost) zero issues with Lawna after a week and a half of running her daily. She alternates from the front to the back of the property every other day. The app allows you to setup automatic scheduling, but I prefer to run things manually every morning, based on whether an area should be skipped, grass it dried out etc.&lt;/p&gt;
+&lt;p&gt;The only minor problem I have run into is the need to manually clean grass build-up from under the small cutting blades after Lawna cuts a couple &amp;#8220;task&amp;#8221; areas. I swapped the default blades to use Husqvarna&amp;#8217;s &lt;em&gt;endurance&lt;/em&gt; type, since they use a large slotted insert hole as opposed to Mammotion&amp;#8217;s two single insert holes. This change makes cleaning the blades faster, safer, and easier to maintain. I realize that a riding mower would require similar maintenance but a truly &lt;em&gt;autonomous&lt;/em&gt; device shouldn&amp;#8217;t require human intervention.&lt;/p&gt;
+&lt;h2 id=&quot;moving-forward&quot;&gt;Moving Forward&lt;/h2&gt;
+&lt;p&gt;My hope is that the software continues to improve over time and that the core hardware lasts as long as my 450X did. Which now reminds me - I need to sell that thing&amp;#8230;&lt;/p&gt;
+&lt;p&gt;Hopefully this post helps others looking to snag their own robotic mower. So far, I can safely recommend Luba.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/luba"/>
+ <id>https://btxx.org/posts/luba</id>
+ <updated>2023-05-19T10:00:00Z</updated>
+ <published>2023-05-19T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Convert Files to HTML with macOS Automator Quick Actions</title>
+ <content type="html">&lt;h1 id=&quot;convert-files-to-html-with-macos-automator-quick-actions&quot;&gt;Convert Files to HTML with macOS Automator Quick Actions&lt;/h1&gt;
+&lt;p&gt;2022-01-28&lt;/p&gt;
+&lt;p&gt;Since a few people have reached out and thanked me for my previous post &lt;a href=&quot;/batch-webp-conversion&quot;&gt;Batch Converting Images to webp with macOS Automator&lt;/a&gt;, I thought I would continue to share more of my own custom Automator Quick Actions. Today&amp;#8217;s post will cover the ability to convert &lt;em&gt;any&lt;/em&gt; text-based document into pure HTML.&lt;/p&gt;
+&lt;p&gt;I know - there are over 6 billion conversion apps that do this very same thing. But our way of doing it is &lt;em&gt;cooler&lt;/em&gt;. Our conversion tool:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;2 mini mangos (one in router mode, the other set as repeater)&lt;/li&gt;
-&lt;li&gt;Average internet testing speed: 25Mbps&lt;/li&gt;
-&lt;li&gt;Consistent signal throughout the house&lt;/li&gt;
+&lt;li&gt;Will run directly inside macOS Finder (right-click actions FTW)&lt;/li&gt;
+&lt;li&gt;Can batch convert multiple files at once&lt;/li&gt;
+&lt;li&gt;Can convert mixed files types at the same time&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;extras&quot;&gt;Extras&lt;/h2&gt;
-&lt;p&gt;Some additional data comparisons for those interested. Prices shown are in Canadian dollars.&lt;/p&gt;
-&lt;table&gt;
-&lt;thead&gt;
-&lt;tr&gt;
-&lt;th&gt;&lt;/th&gt;
-&lt;th&gt;Eero&lt;/th&gt;
-&lt;th&gt;Mango&lt;/th&gt;
-&lt;/tr&gt;
-&lt;/thead&gt;
-&lt;tbody&gt;
-&lt;tr&gt;
-&lt;td&gt;&lt;strong&gt;Power&lt;/strong&gt;&lt;/td&gt;
-&lt;td&gt;5W&lt;/td&gt;
-&lt;td&gt;2.75W&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;&lt;strong&gt;Size&lt;/strong&gt; (mm)&lt;/td&gt;
-&lt;td&gt;139x139x55&lt;/td&gt;
-&lt;td&gt;58x58x22&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;&lt;strong&gt;Bands&lt;/strong&gt; (GHz)&lt;/td&gt;
-&lt;td&gt;2.4&amp;#47;5&lt;/td&gt;
-&lt;td&gt;2.4&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;&lt;strong&gt;Cost&lt;/strong&gt; (per unit)&lt;/td&gt;
-&lt;td&gt;$99+&lt;/td&gt;
-&lt;td&gt;$39&lt;/td&gt;
-&lt;/tr&gt;
-&lt;/tbody&gt;
-&lt;/table&gt;
-&lt;p&gt;That mostly covers it. I&amp;#8217;m extremely happy with my switch away from the locked-down, &amp;#8220;upsell&amp;#8221; heavy Eeros. My only regret is that I didn&amp;#8217;t make this change sooner.&lt;/p&gt;</content>
- <link href="https://btxx.org/mango"/>
- <id>https://btxx.org/mango</id>
- <updated>2023-03-09T10:00:00Z</updated>
- <published>2023-03-09T10:00:00Z</published>
- </entry>
- <entry>
- <title>Working with `git` Patches in Apple Mail</title>
- <content type="html">&lt;h1 id=&quot;working-with-patches-in-apple-mail&quot;&gt;Working with &lt;code&gt;git&lt;/code&gt; Patches in Apple Mail&lt;/h1&gt;
-&lt;p&gt;2023-05-11&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;&lt;strong&gt;Before we begin&lt;/strong&gt;: You could likely automate this process in a more streamlined way, but for most use cases this workflow should be fine.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;I recently covered how to &lt;a href=&quot;/git-patches&quot;&gt;work with git email patches in Evolution on Linux&lt;/a&gt;, so I thought it would make sense to walk through a similar workflow for those using Apple Mail on MacOS. The idea is essentially the same, with just a little extra work involved.&lt;/p&gt;
-&lt;h2 id=&quot;create-a-patches-mailbox&quot;&gt;Create a &amp;#8220;Patches&amp;#8221; Mailbox&lt;/h2&gt;
-&lt;p&gt;The first thing you&amp;#8217;ll need to do is make a new &lt;code&gt;Patches&lt;/code&gt; mailbox folder inside your existing mail account. Once done, your default Mail sidebar should look similar to the following:&lt;/p&gt;
-&lt;h2 id=&quot;applying-patches&quot;&gt;Applying Patches&lt;/h2&gt;
-&lt;p&gt;Now navigate to the email message containing a &lt;code&gt;git&lt;/code&gt; patch. Right-click and select &lt;em&gt;Move to&lt;/em&gt; &amp;#62; &lt;em&gt;Patches&lt;/em&gt;. Now in the sidebar, right-click your &lt;em&gt;Patches&lt;/em&gt; folder and select &lt;em&gt;Export Mailbox&amp;#8230;&lt;/em&gt;. You&amp;#8217;ll be prompted to save this folder locally. I suggest having a top-level folder named &lt;strong&gt;Patches&lt;/strong&gt; to make things consistent.&lt;/p&gt;
-&lt;p&gt;Inside this folder you should see something similar to the following structure:&lt;/p&gt;
-&lt;p&gt;Once saved, open your terminal, navigate to the project you wish to apply this new patch to:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;cd my-path&amp;#47;very-cool-project
+&lt;p&gt;And it can do all of this for free on your existing macOS system. No apps required. So, enough chit-chat, let&amp;#8217;s get started!&lt;/p&gt;
+&lt;h2 id=&quot;the-dependencies&quot;&gt;The Dependencies&lt;/h2&gt;
+&lt;p&gt;Unfortunately, setting things up isn&amp;#8217;t as simple as clicking a single &lt;code&gt;Install&lt;/code&gt; button and calling it a day. But don&amp;#8217;t start to panic! I assure you everything we&amp;#8217;ll be doing is actually quite easy to breeze through - &lt;em&gt;trust me&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;Our main requirements will consistent of the following:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Homebrew&lt;/li&gt;
+&lt;li&gt;Pandoc&lt;/li&gt;
+&lt;li&gt;Ability to open Terminal&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;installing-homebrew&quot;&gt;Installing Homebrew&lt;/h2&gt;
+&lt;p&gt;Homebrew is a simple package manager for macOS. The beauty of having Homebrew is the flexibility in the future for installing other custom packages. Overall it&amp;#8217;s just a nice piece of software to have on your machine.&lt;/p&gt;
+&lt;p&gt;If you have already installed Homebrew in the past, ignore this step and continue down the page. If not, simply open your Terminal and run:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;bin&amp;#47;bash -c &quot;$(curl -fsSL https:&amp;#47;&amp;#47;raw.githubusercontent.com&amp;#47;Homebrew&amp;#47;install&amp;#47;HEAD&amp;#47;install.sh)&quot;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;and then run:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;git apply ~&amp;#47;Patches&amp;#47;&amp;#60;saved-patches-mailbox-folder&amp;#62;&amp;#47;mbox
+&lt;p&gt;Let that finish and you&amp;#8217;re done! Also feel free to read more about Homebrew on the &lt;a href=&quot;https://brew.sh&quot;&gt;official website&lt;/a&gt;. Knowledge is power!&lt;/p&gt;
+&lt;h2 id=&quot;installing-pandoc&quot;&gt;Installing Pandoc&lt;/h2&gt;
+&lt;p&gt;The package that is going to be doing all the heavy-lifting for us is &lt;a href=&quot;https://pandoc.org&quot;&gt;pandoc&lt;/a&gt;. Because we have Homebrew on our machine now, installing this package is as simple as opening our Terminal again and running:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;brew install pandoc
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Congrats! You&amp;#8217;ve successfully applied a git email patch through Apple Mail! Well, kind of. The terminal did most of the &lt;em&gt;real&lt;/em&gt; work. Just be sure to periodically &lt;em&gt;purge&lt;/em&gt; your local &lt;em&gt;Patches&lt;/em&gt; folder to keep things clean!&lt;/p&gt;</content>
- <link href="https://btxx.org/mail"/>
- <id>https://btxx.org/mail</id>
- <updated>2023-05-11T10:00:00Z</updated>
- <published>2023-05-11T10:00:00Z</published>
- </entry>
- <entry>
- <title>Create a Mac App Icon with Pure HTML and CSS</title>
- <content type="html">&lt;h1 id=&quot;create-a-mac-app-icon-with-pure-html-and-css&quot;&gt;Create a Mac App Icon with Pure HTML and CSS&lt;/h1&gt;
+&lt;p&gt;Wait for everything to finish and you&amp;#8217;re done!&lt;/p&gt;
+&lt;h2 id=&quot;our-custom-automator-quick-action&quot;&gt;Our Custom Automator Quick Action&lt;/h2&gt;
+&lt;p&gt;Next you&amp;#8217;ll want to open the macOS Automator app and create a new &amp;#8220;Quick Action&amp;#8221; when given the prompt to do so.&lt;/p&gt;
+&lt;p&gt;Now do the following (reference the image further below to make sure your parameters match):&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Set &amp;#8220;Workflow receives current&amp;#8221; to documents in any application&lt;/li&gt;
+&lt;li&gt;In the search bar type in &amp;#8220;Run Shell Script&amp;#8221;&lt;/li&gt;
+&lt;li&gt;Drag-and-drop the &amp;#8220;Run Shell Script&amp;#8221; from the left pane into the right pane&lt;/li&gt;
+&lt;li&gt;Set the &amp;#8220;Shell&amp;#8221; parameter to &amp;#47;bin&amp;#47;bash&lt;/li&gt;
+&lt;li&gt;Set &amp;#8220;Pass input&amp;#8221; as as arguments&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;Once all that is done, simply paste the following in the open text field within the &amp;#8220;Run Shell Script&amp;#8221; item:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;for f in &quot;$@&quot;
+do
+&amp;#47;opt&amp;#47;homebrew&amp;#47;bin&amp;#47;pandoc -o &quot;${f%.*}.html&quot; &quot;$f&quot;
+done
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;If you&amp;#8217;ve done everything correctly it should look something like this:&lt;/p&gt;
+&lt;p&gt;Save this new Quick Action (Name is something like &amp;#8220;Convert to HTML&amp;#8221; to keep things simple). That&amp;#8217;s it! Amazing, right?&lt;/p&gt;
+&lt;h2 id=&quot;time-to-convert&quot;&gt;Time to Convert&lt;/h2&gt;
+&lt;p&gt;Now it is finally time to see our Quick Action is &lt;em&gt;action&lt;/em&gt;! Navigate to any document file in a Finder window and follow along.&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;First, right-click on the file you wish to convert. (&lt;a href=&quot;#fig-1&quot;&gt;Figure 1&lt;/a&gt;)&lt;/li&gt;
+&lt;li&gt;In the pop-up container, scroll down and hover over &lt;code&gt;Quick Actions&lt;/code&gt;.&lt;/li&gt;
+&lt;li&gt;A secondary pop-out will appear. Look for the action &lt;code&gt;Convert File to HTML&lt;/code&gt; and click it. (&lt;a href=&quot;#fig-2&quot;&gt;Figure 2&lt;/a&gt;)&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;If everything was set up properly (and depending on the size of the file) you should see your converted HTML file show up right next to your existing document. Time to celebrate!&lt;/p&gt;
+&lt;p&gt;Don&amp;#8217;t forget - you can also &lt;em&gt;batch&lt;/em&gt; convert multiple files and multiple file &lt;em&gt;types&lt;/em&gt; at once. The possibilities are endless!&lt;/p&gt;
+&lt;h2 id=&quot;no-limits&quot;&gt;No Limits&lt;/h2&gt;
+&lt;p&gt;Although this article has mainly focused on converting documents to HTML, &lt;code&gt;pandoc&lt;/code&gt; is so powerful you could do any number of conversions. Re-using these steps above, you have the ability to make as many different conversion quick actions as your heart desires!&lt;/p&gt;
+&lt;p&gt;Have fun converting!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/macos-convert-to-html"/>
+ <id>https://btxx.org/posts/macos-convert-to-html</id>
+ <updated>2022-01-28T10:00:00Z</updated>
+ <published>2022-01-28T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Create a Mac App Icon with Pure HTML and CSS</title>
+ <content type="html">&lt;h1 id=&quot;create-a-mac-app-icon-with-pure-html-and-css&quot;&gt;Create a Mac App Icon with Pure HTML and CSS&lt;/h1&gt;
&lt;p&gt;2021-04-13&lt;/p&gt;
&lt;p&gt;I have always been a huge fan of &lt;a href=&quot;https://dribbble.com/bg-d&quot;&gt;Bogdan&amp;#8217;s work on Dribbble&lt;/a&gt; and was recently inspired to see if I could replicate one of his awesome icon designs with only HTML &amp;#38; CSS. What was the outcome? I think it&amp;#8217;s a half-way decent copy - of course the original will always look significantly better.&lt;/p&gt;
&lt;p&gt;Don&amp;#8217;t care about reading through the tutorial? No problem! You can &lt;a href=&quot;#demo&quot;&gt;jump right down to the live demo&lt;/a&gt;&lt;/p&gt;
@@ -4575,5917 +6146,4354 @@ input[type=&quot;checkbox&quot;]:checked ~ nav {
&lt;/ul&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/bGgBRaV&quot;&gt;Live CodePen Demo&lt;/a&gt;&lt;/p&gt;</content>
- <link href="https://btxx.org/macos-icon-css"/>
- <id>https://btxx.org/macos-icon-css</id>
- <updated>2021-04-13T10:00:00Z</updated>
- <published>2021-04-13T10:00:00Z</published>
- </entry>
- <entry>
- <title>Convert Files to HTML with macOS Automator Quick Actions</title>
- <content type="html">&lt;h1 id=&quot;convert-files-to-html-with-macos-automator-quick-actions&quot;&gt;Convert Files to HTML with macOS Automator Quick Actions&lt;/h1&gt;
-&lt;p&gt;2022-01-28&lt;/p&gt;
-&lt;p&gt;Since a few people have reached out and thanked me for my previous post &lt;a href=&quot;/batch-webp-conversion&quot;&gt;Batch Converting Images to webp with macOS Automator&lt;/a&gt;, I thought I would continue to share more of my own custom Automator Quick Actions. Today&amp;#8217;s post will cover the ability to convert &lt;em&gt;any&lt;/em&gt; text-based document into pure HTML.&lt;/p&gt;
-&lt;p&gt;I know - there are over 6 billion conversion apps that do this very same thing. But our way of doing it is &lt;em&gt;cooler&lt;/em&gt;. Our conversion tool:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Will run directly inside macOS Finder (right-click actions FTW)&lt;/li&gt;
-&lt;li&gt;Can batch convert multiple files at once&lt;/li&gt;
-&lt;li&gt;Can convert mixed files types at the same time&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;And it can do all of this for free on your existing macOS system. No apps required. So, enough chit-chat, let&amp;#8217;s get started!&lt;/p&gt;
-&lt;h2 id=&quot;the-dependencies&quot;&gt;The Dependencies&lt;/h2&gt;
-&lt;p&gt;Unfortunately, setting things up isn&amp;#8217;t as simple as clicking a single &lt;code&gt;Install&lt;/code&gt; button and calling it a day. But don&amp;#8217;t start to panic! I assure you everything we&amp;#8217;ll be doing is actually quite easy to breeze through - &lt;em&gt;trust me&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;Our main requirements will consistent of the following:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Homebrew&lt;/li&gt;
-&lt;li&gt;Pandoc&lt;/li&gt;
-&lt;li&gt;Ability to open Terminal&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;installing-homebrew&quot;&gt;Installing Homebrew&lt;/h2&gt;
-&lt;p&gt;Homebrew is a simple package manager for macOS. The beauty of having Homebrew is the flexibility in the future for installing other custom packages. Overall it&amp;#8217;s just a nice piece of software to have on your machine.&lt;/p&gt;
-&lt;p&gt;If you have already installed Homebrew in the past, ignore this step and continue down the page. If not, simply open your Terminal and run:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;bin&amp;#47;bash -c &quot;$(curl -fsSL https:&amp;#47;&amp;#47;raw.githubusercontent.com&amp;#47;Homebrew&amp;#47;install&amp;#47;HEAD&amp;#47;install.sh)&quot;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Let that finish and you&amp;#8217;re done! Also feel free to read more about Homebrew on the &lt;a href=&quot;https://brew.sh&quot;&gt;official website&lt;/a&gt;. Knowledge is power!&lt;/p&gt;
-&lt;h2 id=&quot;installing-pandoc&quot;&gt;Installing Pandoc&lt;/h2&gt;
-&lt;p&gt;The package that is going to be doing all the heavy-lifting for us is &lt;a href=&quot;https://pandoc.org&quot;&gt;pandoc&lt;/a&gt;. Because we have Homebrew on our machine now, installing this package is as simple as opening our Terminal again and running:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;brew install pandoc
+ <link href="https://btxx.org/posts/macos-icon-css"/>
+ <id>https://btxx.org/posts/macos-icon-css</id>
+ <updated>2021-04-13T10:00:00Z</updated>
+ <published>2021-04-13T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Working with `git` Patches in Apple Mail</title>
+ <content type="html">&lt;h1 id=&quot;working-with-patches-in-apple-mail&quot;&gt;Working with &lt;code&gt;git&lt;/code&gt; Patches in Apple Mail&lt;/h1&gt;
+&lt;p&gt;2023-05-11&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;&lt;strong&gt;Before we begin&lt;/strong&gt;: You could likely automate this process in a more streamlined way, but for most use cases this workflow should be fine.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;I recently covered how to &lt;a href=&quot;/git-patches&quot;&gt;work with git email patches in Evolution on Linux&lt;/a&gt;, so I thought it would make sense to walk through a similar workflow for those using Apple Mail on MacOS. The idea is essentially the same, with just a little extra work involved.&lt;/p&gt;
+&lt;h2 id=&quot;create-a-patches-mailbox&quot;&gt;Create a &amp;#8220;Patches&amp;#8221; Mailbox&lt;/h2&gt;
+&lt;p&gt;The first thing you&amp;#8217;ll need to do is make a new &lt;code&gt;Patches&lt;/code&gt; mailbox folder inside your existing mail account. Once done, your default Mail sidebar should look similar to the following:&lt;/p&gt;
+&lt;h2 id=&quot;applying-patches&quot;&gt;Applying Patches&lt;/h2&gt;
+&lt;p&gt;Now navigate to the email message containing a &lt;code&gt;git&lt;/code&gt; patch. Right-click and select &lt;em&gt;Move to&lt;/em&gt; &amp;#62; &lt;em&gt;Patches&lt;/em&gt;. Now in the sidebar, right-click your &lt;em&gt;Patches&lt;/em&gt; folder and select &lt;em&gt;Export Mailbox&amp;#8230;&lt;/em&gt;. You&amp;#8217;ll be prompted to save this folder locally. I suggest having a top-level folder named &lt;strong&gt;Patches&lt;/strong&gt; to make things consistent.&lt;/p&gt;
+&lt;p&gt;Inside this folder you should see something similar to the following structure:&lt;/p&gt;
+&lt;p&gt;Once saved, open your terminal, navigate to the project you wish to apply this new patch to:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;cd my-path&amp;#47;very-cool-project
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Wait for everything to finish and you&amp;#8217;re done!&lt;/p&gt;
-&lt;h2 id=&quot;our-custom-automator-quick-action&quot;&gt;Our Custom Automator Quick Action&lt;/h2&gt;
-&lt;p&gt;Next you&amp;#8217;ll want to open the macOS Automator app and create a new &amp;#8220;Quick Action&amp;#8221; when given the prompt to do so.&lt;/p&gt;
-&lt;p&gt;Now do the following (reference the image further below to make sure your parameters match):&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Set &amp;#8220;Workflow receives current&amp;#8221; to documents in any application&lt;/li&gt;
-&lt;li&gt;In the search bar type in &amp;#8220;Run Shell Script&amp;#8221;&lt;/li&gt;
-&lt;li&gt;Drag-and-drop the &amp;#8220;Run Shell Script&amp;#8221; from the left pane into the right pane&lt;/li&gt;
-&lt;li&gt;Set the &amp;#8220;Shell&amp;#8221; parameter to &amp;#47;bin&amp;#47;bash&lt;/li&gt;
-&lt;li&gt;Set &amp;#8220;Pass input&amp;#8221; as as arguments&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;Once all that is done, simply paste the following in the open text field within the &amp;#8220;Run Shell Script&amp;#8221; item:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;for f in &quot;$@&quot;
-do
-&amp;#47;opt&amp;#47;homebrew&amp;#47;bin&amp;#47;pandoc -o &quot;${f%.*}.html&quot; &quot;$f&quot;
-done
+&lt;p&gt;and then run:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;git apply ~&amp;#47;Patches&amp;#47;&amp;#60;saved-patches-mailbox-folder&amp;#62;&amp;#47;mbox
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If you&amp;#8217;ve done everything correctly it should look something like this:&lt;/p&gt;
-&lt;p&gt;Save this new Quick Action (Name is something like &amp;#8220;Convert to HTML&amp;#8221; to keep things simple). That&amp;#8217;s it! Amazing, right?&lt;/p&gt;
-&lt;h2 id=&quot;time-to-convert&quot;&gt;Time to Convert&lt;/h2&gt;
-&lt;p&gt;Now it is finally time to see our Quick Action is &lt;em&gt;action&lt;/em&gt;! Navigate to any document file in a Finder window and follow along.&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;First, right-click on the file you wish to convert. (&lt;a href=&quot;#fig-1&quot;&gt;Figure 1&lt;/a&gt;)&lt;/li&gt;
-&lt;li&gt;In the pop-up container, scroll down and hover over &lt;code&gt;Quick Actions&lt;/code&gt;.&lt;/li&gt;
-&lt;li&gt;A secondary pop-out will appear. Look for the action &lt;code&gt;Convert File to HTML&lt;/code&gt; and click it. (&lt;a href=&quot;#fig-2&quot;&gt;Figure 2&lt;/a&gt;)&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;If everything was set up properly (and depending on the size of the file) you should see your converted HTML file show up right next to your existing document. Time to celebrate!&lt;/p&gt;
-&lt;p&gt;Don&amp;#8217;t forget - you can also &lt;em&gt;batch&lt;/em&gt; convert multiple files and multiple file &lt;em&gt;types&lt;/em&gt; at once. The possibilities are endless!&lt;/p&gt;
-&lt;h2 id=&quot;no-limits&quot;&gt;No Limits&lt;/h2&gt;
-&lt;p&gt;Although this article has mainly focused on converting documents to HTML, &lt;code&gt;pandoc&lt;/code&gt; is so powerful you could do any number of conversions. Re-using these steps above, you have the ability to make as many different conversion quick actions as your heart desires!&lt;/p&gt;
-&lt;p&gt;Have fun converting!&lt;/p&gt;</content>
- <link href="https://btxx.org/macos-convert-to-html"/>
- <id>https://btxx.org/macos-convert-to-html</id>
- <updated>2022-01-28T10:00:00Z</updated>
- <published>2022-01-28T10:00:00Z</published>
- </entry>
- <entry>
- <title>My Robotic Mower Woes</title>
- <content type="html">&lt;h1 id=&quot;my-robotic-mower-woes&quot;&gt;My Robotic Mower Woes&lt;/h1&gt;
-&lt;p&gt;2023-05-19&lt;/p&gt;
-&lt;h2 id=&quot;a-brief-background&quot;&gt;A Brief Background&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;m no stranger to robotic lawnmowers. When my wife and I moved into our rural home just over five years ago, we picked up the Husqvarna 450X Automower since I was far too lazy to manually mow my property and the cost was equal to that of a standard riding mower. It was a no-brainer.&lt;/p&gt;
-&lt;p&gt;Fast-forward five years. Everything is still going great with the Automower. Some minor repairs were needed but that was mostly my fault since I was allowing the mower into places it shouldn&amp;#8217;t have been (ie. root systems and dirt &amp;#8220;craters&amp;#8221;). Then lightning struck our backyard at the beginning of April this year. The mower was fine, since we stow it away inside for the winter but the charging station, charging brick and perimeter wire we &lt;em&gt;not&lt;/em&gt; so lucky&amp;#8230;&lt;/p&gt;
-&lt;p&gt;The lightning traveled along the main perimeter wire and went straight to the charging station. Boom. The charging dock was quite literally blown up into a million tiny pieces and scattered across my backyard. Giant trenches were carved up where the perimeter wire had been embedded in the lawn. This surge also followed the path towards the main power adapter and exploded that as well. All of this happened even with the charging station &amp;#47; adapter &lt;em&gt;turned off and unplugged from any outlet&lt;/em&gt;. At least my mower was safe&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;shopping-for-automower-parts&quot;&gt;Shopping for Automower Parts&lt;/h2&gt;
-&lt;p&gt;I realized I was going to have to buy another charging station, power adapter and also pay for a dealer to re-install the perimeter wire. This idea didn&amp;#8217;t thrill me but at least all-in the expense wouldn&amp;#8217;t be that high. Or so I thought&amp;#8230;&lt;/p&gt;
-&lt;p&gt;I contacted my local dealer and he quoted me directly from the Husqvarna supplier:&lt;/p&gt;
+&lt;p&gt;Congrats! You&amp;#8217;ve successfully applied a git email patch through Apple Mail! Well, kind of. The terminal did most of the &lt;em&gt;real&lt;/em&gt; work. Just be sure to periodically &lt;em&gt;purge&lt;/em&gt; your local &lt;em&gt;Patches&lt;/em&gt; folder to keep things clean!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/mail"/>
+ <id>https://btxx.org/posts/mail</id>
+ <updated>2023-05-11T10:00:00Z</updated>
+ <published>2023-05-11T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Replacing My Eero Mesh Network with Two Mangos</title>
+ <content type="html">&lt;h1 id=&quot;replacing-my-eero-mesh-network-with-two-mangos&quot;&gt;Replacing My Eero Mesh Network with Two Mangos&lt;/h1&gt;
+&lt;p&gt;2023-03-09&lt;/p&gt;
+&lt;p&gt;It has been one week since I retired my Eero mesh network setup and replaced it with two &lt;a href=&quot;https://www.gl-inet.com/products/gl-mt300n-v2/&quot;&gt;Mango Mini Travel Routers (GL-MT300N-V2)&lt;/a&gt;. There were some obvious reasons to make this switch but I was initially unsure how the overall performance on the Mangos would hold up compared to the &amp;#8220;cutting edge&amp;#8221; tech that Eero devices claim to have.&lt;/p&gt;
+&lt;p&gt;Spoiler (in case the post title didn&amp;#8217;t give it away): I was pleasantly surprised.&lt;/p&gt;
+&lt;h2 id=&quot;goodbye-amazon&quot;&gt;Goodbye Amazon&lt;/h2&gt;
+&lt;p&gt;I was a big supporter of the original &amp;#8220;kickstarter&amp;#8221; project when Eero first launched. I pre-ordered and they even sent me a device free-of-charge since there were logistic problems shipping to Canada. I received my V1 routers, hooked them up and enjoyed a seamless, wifi mesh system. Everything was going great.&lt;/p&gt;
+&lt;p&gt;Then, in 2019 &lt;a href=&quot;https://mashable.com/article/amazon-acquires-eero&quot;&gt;they were acquired by Amazon&lt;/a&gt;. Sigh&amp;#8230;&lt;/p&gt;
+&lt;p&gt;I should have jumped ship then, but I waited to see what would happen. After all, my internet was still working perfectly fine. Then the half-baked and sometimes completely broken updates started rolling out. On more than one occasion they needed to perform complete version roll-backs. This sometimes knocked out my internet for hours at a time.&lt;/p&gt;
+&lt;p&gt;They also started pushing (although not outright requiring) users to login using their Amazon account. While not a massive deal breaker, the constant pestering to do so rubbed me the wrong way. &lt;/p&gt;
+&lt;p&gt;During this time, my first son was born and we moved out of the city into our first house. So fiddling with my internet setup took the backseat for a while. Once everything settled down, I started seeing more broken updates and certain features being put behind their premium &amp;#8220;Eero Secure&amp;#8221; platform. Features that were available as &lt;em&gt;default&lt;/em&gt; for most other router hardware providers.&lt;/p&gt;
+&lt;p&gt;So, I started to look at other options.&lt;/p&gt;
+&lt;h2 id=&quot;why-the-mango&quot;&gt;Why the Mango?&lt;/h2&gt;
+&lt;p&gt;It is important to mention, that because I live out in rural Canada, my internet options are extremely limited. All providers are satellite-based since fiber cables are unheard of out in these areas. Because of this, my main internet speeds are limited to 25Mbps &lt;em&gt;baseline&lt;/em&gt;. This is important to note, since my experience and router choice took this into consideration. If you&amp;#8217;re a current Eero user with 300Mbps+ speeds and are looking to switch wifi systems - the Mango is probably not the best for you.&lt;/p&gt;
+&lt;p&gt;Luckily for me, the Mini Mangos were perfect for my basic requirements:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Charging base station: $749 CDN&lt;/li&gt;
-&lt;li&gt;Power adapter: $599 CDN&lt;/li&gt;
-&lt;li&gt;Perimeter wire install: ~$550 CDN&lt;/li&gt;
+&lt;li&gt;Max. 300Mbps Wi-Fi Speed (more than enough for my use-case)&lt;/li&gt;
+&lt;li&gt;Running open-source software via &lt;a href=&quot;https://openwrt.org/&quot;&gt;openwrt&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Hardware VPN toggle&lt;/li&gt;
+&lt;li&gt;Tiny physical footprint&lt;/li&gt;
+&lt;li&gt;Extremely portable&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;I thought the cost for both the charging station and the wire install seemed about right - but &lt;strong&gt;$599&lt;/strong&gt; for a power adapter?! Are you kidding me? Best of all, these parts were on &lt;em&gt;back-order&lt;/em&gt;. So even if I shelled out the ridiculous asking price, it was anyone&amp;#8217;s guess when I would get them. May was fast approaching and I would need to start cutting my property soon. I started to look at other options.&lt;/p&gt;
-&lt;h2 id=&quot;husqvarna-epos-mowers&quot;&gt;Husqvarna EPOS Mowers&lt;/h2&gt;
-&lt;p&gt;Husqvarna recently launched their &amp;#8220;perimeter-free&amp;#8221; automowers for the general public (originally designed only for &amp;#8220;fleet&amp;#8221; enterprise use). These units use GPS and RTK position to map the desired cutting area of a property. Already my interest was piqued. Moving away from a perimeter wire seemed like a significant upgrade. It would also make my wife happy by allow her to garden freely, without worrying about severing an embedded lawn wire.&lt;/p&gt;
-&lt;p&gt;So I contacted my local dealer again about these specific units. I came away with some interesting information:&lt;/p&gt;
+&lt;h2 id=&quot;setting-up-the-yellow-squares&quot;&gt;Setting Up the Yellow Squares&lt;/h2&gt;
+&lt;p&gt;Setup was a breeze compared to the Eero experience (which could only be performed through their mobile app via bluetooth and a great deal of repositioning the devices). The full process is essentially:&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;They were quite expensive for my taste ($5000+ CDN - before install!)&lt;/li&gt;
-&lt;li&gt;They were &lt;em&gt;also&lt;/em&gt; on back-order here in Canada&lt;/li&gt;
+&lt;li&gt;Power up the first Mango&lt;/li&gt;
+&lt;li&gt;Connect laptop to the Mango via ethernet (you can also connect through wifi)&lt;/li&gt;
+&lt;li&gt;Follow the login instructions&lt;/li&gt;
+&lt;li&gt;Change SSID name, set device in router mode&lt;/li&gt;
+&lt;li&gt;Enjoy your internet!&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;&lt;em&gt;Sigh&lt;/em&gt;. The mower gods were trying to tell me something. It seemed Husqvarna was just not meant for me anymore.&lt;/p&gt;
-&lt;h2 id=&quot;luba-to-the-rescue&quot;&gt;Luba to the Rescue!&lt;/h2&gt;
-&lt;p&gt;While researching &amp;#8220;wireless&amp;#8221; automowers, I came across the &lt;a href=&quot;https://mammotion.com/?ref=bpjfzw7s&quot;&gt;Luba Series 5000&lt;/a&gt; (referral link) and kept it in my &amp;#8220;maybe&amp;#8221; pile to follow-up on if needed. So follow-up I did.&lt;/p&gt;
-&lt;p&gt;This mower seemed to check all my boxes:&lt;/p&gt;
+&lt;p&gt;Since my office is fairly far away from the placement of the &amp;#8220;main&amp;#8221; Mango router, I placed the second device near my desk. I followed the same setup as above, except I set the mode as &amp;#8220;repeater&amp;#8221;.&lt;/p&gt;
+&lt;p&gt;For my use case I actually set this device up with a separate SSID. This was just my personal preference. You don&amp;#8217;t have to do this. If you give both devices the same SSID name most modern devices will treat your network as if it &lt;em&gt;was&lt;/em&gt; a mesh network. Pretty neat stuff.&lt;/p&gt;
+&lt;p&gt;I plan to eventually add my Pi Zero running AdGuard Home back into the mix, but for now I just installed a small adblock package directly onto the router:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Decently priced&lt;/li&gt;
-&lt;li&gt;2-year warranty&lt;/li&gt;
-&lt;li&gt;All wheel drive&lt;/li&gt;
-&lt;li&gt;I could set it up myself&lt;/li&gt;
-&lt;li&gt;No perimeter wires&lt;/li&gt;
-&lt;li&gt;No-go zones available&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://github.com/openwrt/packages/tree/master/net/adblock&quot;&gt;adblock package&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;It did have a few minor cons associated with it:&lt;/p&gt;
+&lt;h2 id=&quot;performance-comparisons&quot;&gt;Performance Comparisons&lt;/h2&gt;
+&lt;p&gt;Everything below is just some basic testing I performed. Obviously it should be noted that your experience might be entirely different based on interference, building size, amount of devices connected, etc.&lt;/p&gt;
+&lt;p&gt;Stats for my original Eero mesh setup:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Fairly new product &amp;#47; company&lt;/li&gt;
-&lt;li&gt;No close dealer in my area&lt;/li&gt;
-&lt;li&gt;iOS and Android apps are more or less &amp;#8220;beta&amp;#8221;&lt;/li&gt;
+&lt;li&gt;1 eero 6 pro, 1 eero 6+, 1 eero beacon&lt;/li&gt;
+&lt;li&gt;Average internet testing speed: 25Mbps&lt;/li&gt;
+&lt;li&gt;Consistent signal throughout the house&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Next, I watched a few early reviews and went through some comments&amp;#47;feedback from beta users. I was convinced enough and bought the AWD 5000 model.&lt;/p&gt;
-&lt;h2 id=&quot;arrival-and-setup&quot;&gt;Arrival and Setup&lt;/h2&gt;
-&lt;p&gt;The mower (who we named Lawna, and shall be referred to as such moving forward) arrived just after the first week of May. The hardware setup (charging station and RTK antenna) was very straight-forward, so I won&amp;#8217;t go into great detail about that here. Once Lawna was synced with the RTK and GPS system, it was time to map my property.&lt;/p&gt;
-&lt;p&gt;I broke my property into 4 main &amp;#8220;tasks&amp;#8221; as the app calls them. The 5000 model allows you to create up to 10, but for my needs 4 was fine for full coverage. I mapped each one, added a handful of no-go zones to each and told Lawna to get to work. She happily obliged.&lt;/p&gt;
-&lt;h2 id=&quot;the-first-week&quot;&gt;The First Week&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve had (almost) zero issues with Lawna after a week and a half of running her daily. She alternates from the front to the back of the property every other day. The app allows you to setup automatic scheduling, but I prefer to run things manually every morning, based on whether an area should be skipped, grass it dried out etc.&lt;/p&gt;
-&lt;p&gt;The only minor problem I have run into is the need to manually clean grass build-up from under the small cutting blades after Lawna cuts a couple &amp;#8220;task&amp;#8221; areas. I swapped the default blades to use Husqvarna&amp;#8217;s &lt;em&gt;endurance&lt;/em&gt; type, since they use a large slotted insert hole as opposed to Mammotion&amp;#8217;s two single insert holes. This change makes cleaning the blades faster, safer, and easier to maintain. I realize that a riding mower would require similar maintenance but a truly &lt;em&gt;autonomous&lt;/em&gt; device shouldn&amp;#8217;t require human intervention.&lt;/p&gt;
-&lt;h2 id=&quot;moving-forward&quot;&gt;Moving Forward&lt;/h2&gt;
-&lt;p&gt;My hope is that the software continues to improve over time and that the core hardware lasts as long as my 450X did. Which now reminds me - I need to sell that thing&amp;#8230;&lt;/p&gt;
-&lt;p&gt;Hopefully this post helps others looking to snag their own robotic mower. So far, I can safely recommend Luba.&lt;/p&gt;</content>
- <link href="https://btxx.org/luba"/>
- <id>https://btxx.org/luba</id>
- <updated>2023-05-19T10:00:00Z</updated>
- <published>2023-05-19T10:00:00Z</published>
- </entry>
- <entry>
- <title>Looping Through Jekyll Collections</title>
- <content type="html">&lt;h1 id=&quot;looping-through-jekyll-collections&quot;&gt;Looping Through Jekyll Collections&lt;/h1&gt;
-&lt;p&gt;2022-08-12&lt;/p&gt;
-&lt;p&gt;I recently needed to add a couple new items to my wife&amp;#8217;s personal recipe website (&lt;a href=&quot;https://cookingwith.casa&quot;&gt;cookingwith.casa&lt;/a&gt;) which I hadn&amp;#8217;t touched in quite a while. The Jekyll build still worked fine, but I realized I was statically adding each &lt;code&gt;collection&lt;/code&gt; by hand on the main homepage[^1].&lt;/p&gt;
-&lt;p&gt;Not so good.&lt;/p&gt;
-&lt;p&gt;Of course, this wasn&amp;#8217;t difficult at all to fix. Now everything is much more &amp;#8220;hands free&amp;#8221; moving forward. I figured I would share the details here in the hopes that others mind find it useful. Plus, it&amp;#8217;s my blog - so I&amp;#8217;ll do what I want!&lt;/p&gt;
-&lt;h2 id=&quot;looping-our-collections&quot;&gt;Looping Our Collections&lt;/h2&gt;
-&lt;p&gt;We want Jekyll to make things as streamlined as possible for us. This means that if I decide to add a new collection it will automatically render it along the others on the homepage.&lt;/p&gt;
-&lt;p&gt;Work smart not hard!&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s take a look at the bare-bones collections loop:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;{% for collection in site.collections %}
- &amp;#60;!-- Our code goes here --&amp;#62;
-{% endfor %}
+&lt;p&gt;Stats for the new Mini Mango setup:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;2 mini mangos (one in router mode, the other set as repeater)&lt;/li&gt;
+&lt;li&gt;Average internet testing speed: 25Mbps&lt;/li&gt;
+&lt;li&gt;Consistent signal throughout the house&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;extras&quot;&gt;Extras&lt;/h2&gt;
+&lt;p&gt;Some additional data comparisons for those interested. Prices shown are in Canadian dollars.&lt;/p&gt;
+&lt;table&gt;
+&lt;thead&gt;
+&lt;tr&gt;
+&lt;th&gt;&lt;/th&gt;
+&lt;th&gt;Eero&lt;/th&gt;
+&lt;th&gt;Mango&lt;/th&gt;
+&lt;/tr&gt;
+&lt;/thead&gt;
+&lt;tbody&gt;
+&lt;tr&gt;
+&lt;td&gt;&lt;strong&gt;Power&lt;/strong&gt;&lt;/td&gt;
+&lt;td&gt;5W&lt;/td&gt;
+&lt;td&gt;2.75W&lt;/td&gt;
+&lt;/tr&gt;
+&lt;tr&gt;
+&lt;td&gt;&lt;strong&gt;Size&lt;/strong&gt; (mm)&lt;/td&gt;
+&lt;td&gt;139x139x55&lt;/td&gt;
+&lt;td&gt;58x58x22&lt;/td&gt;
+&lt;/tr&gt;
+&lt;tr&gt;
+&lt;td&gt;&lt;strong&gt;Bands&lt;/strong&gt; (GHz)&lt;/td&gt;
+&lt;td&gt;2.4&amp;#47;5&lt;/td&gt;
+&lt;td&gt;2.4&lt;/td&gt;
+&lt;/tr&gt;
+&lt;tr&gt;
+&lt;td&gt;&lt;strong&gt;Cost&lt;/strong&gt; (per unit)&lt;/td&gt;
+&lt;td&gt;$99+&lt;/td&gt;
+&lt;td&gt;$39&lt;/td&gt;
+&lt;/tr&gt;
+&lt;/tbody&gt;
+&lt;/table&gt;
+&lt;p&gt;That mostly covers it. I&amp;#8217;m extremely happy with my switch away from the locked-down, &amp;#8220;upsell&amp;#8221; heavy Eeros. My only regret is that I didn&amp;#8217;t make this change sooner.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/mango"/>
+ <id>https://btxx.org/posts/mango</id>
+ <updated>2023-03-09T10:00:00Z</updated>
+ <published>2023-03-09T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Menu Toggle with Pure CSS</title>
+ <content type="html">&lt;h1 id=&quot;menu-toggle-with-pure-css&quot;&gt;Menu Toggle with Pure CSS&lt;/h1&gt;
+&lt;p&gt;2020-10-19&lt;/p&gt;
+&lt;p&gt;When thinking through navigation designs for mobile devices sometimes the best option is to store away the content behind a toggle button. This button would then display the menu items upon interaction. Let me show you how to create such an element with only CSS - no need for JavaScript today!&lt;/p&gt;
+&lt;h2 id=&quot;before-we-begin&quot;&gt;Before we begin&lt;/h2&gt;
+&lt;p&gt;I would like to point out that the concept of &amp;#8220;toggling&amp;#8221; the main menu (even for mobile) is not always the best solution. If you&amp;#8217;re interested, you can take a look at a previous article I wrote explaining why: &lt;a href=&quot;/hamburger-menu-alternative.html&quot;&gt;Using Hamburger Menus? Try Sausage Links&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;Now that we have mentioned possible pitfalls of relying so heavily on toggle menus, let&amp;#8217;s build one!&lt;/p&gt;
+&lt;h2 id=&quot;our-final-product&quot;&gt;Our Final Product&lt;/h2&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/menu-toggle-css.png&quot; alt=&quot;Menu toggle made from pure CSS&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/mdEEvEX&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;p&gt;To implement this design you really don&amp;#8217;t need much in terms of HTML:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;p&gt;A single &lt;code&gt;checkbox&lt;/code&gt; input&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;A &lt;code&gt;label&lt;/code&gt; that corresponds to the &lt;code&gt;checkbox&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;A &lt;code&gt;nav&lt;/code&gt; element to house our unordered list items&lt;/p&gt;
+&lt;p&gt;Menu&lt;/p&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;That&amp;#8217;s it!&lt;/p&gt;
+&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
+&lt;p&gt;The first thing we need to do is &amp;#8220;hide&amp;#8221; the &lt;code&gt;checkbox&lt;/code&gt; input element. It&amp;#8217;s important to avoid using &lt;code&gt;display: none&lt;/code&gt; or &lt;code&gt;visibility: hidden&lt;/code&gt; in order to achieve this. Those CSS properties can negatively impact accessibility (specifically screen readers). So we will be relying on the &lt;code&gt;position&lt;/code&gt;, &lt;code&gt;z-index&lt;/code&gt; and &lt;code&gt;opacity&lt;/code&gt; properties to help us out.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Set the input position to absolute, send it off screen with zero opacity *&amp;#47;
+input[type=&quot;checkbox&quot;] {
+ left: -9999px;
+ opacity: 0;
+ position: absolute;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then we need to include an &lt;code&gt;if&lt;/code&gt; statement to avoid pulling in standard &lt;code&gt;post&lt;/code&gt; items (or leave this in if that is desired):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;{% for collection in site.collections %}
- {% if collection.label != &amp;#39;posts&amp;#39; %}
- {% endif %}
-{% endfor %}
+&lt;p&gt;Then we give our corresponding &lt;code&gt;label&lt;/code&gt; a minor face-lift to make it appear more button-like:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Minor visual styling to make the label more button-y *&amp;#47;
+label {
+ border: 1px solid currentColor;
+ border-radius: 4px;
+ cursor: pointer;
+ padding: 10px;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now for my specific use case, we want to display each collection label and then list its corresponding items below that label (see the &lt;code&gt;site[collection.label]&lt;/code&gt; for reference)&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;{% for collection in site.collections %}
- {% if collection.label != &amp;#39;posts&amp;#39; %}
- &amp;#60;h2&amp;#62;{{ collection.label }}&amp;#60;&amp;#47;h2&amp;#62;
- &amp;#60;ul class=&quot;recipe-list&quot;&amp;#62;
- {% for item in site[collection.label] %}
- &amp;#60;li&amp;#62;
- &amp;#60;a href=&quot;{{ item.url }}&quot;&amp;#62;{{ item.title }}&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;&amp;#47;li&amp;#62;
- {% endfor %}
- &amp;#60;&amp;#47;ul&amp;#62;
- &amp;#60;hr&amp;#62;
- {% endif %}
-{% endfor %}
+&lt;p&gt;For our main &lt;code&gt;nav&lt;/code&gt; element, we want to set it&amp;#8217;s position to &lt;code&gt;absolute&lt;/code&gt; in order to avoid any janky page rendering issues that might occur when toggling the menu:&lt;/p&gt;
+&lt;p&gt;`
+ &amp;#47;* Set nav to absolute (avoids odd page rendering space pop-in) *&amp;#47;
+ nav {
+ opacity: 0;
+ position: absolute;
+ z-index: -2;
+ }&lt;/p&gt;
+&lt;p&gt;The last step is to actually &lt;em&gt;show&lt;/em&gt; the menu if the user toggles the &lt;code&gt;checkbox&lt;/code&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Show nav when checkbox is checked *&amp;#47;
+input[type=&quot;checkbox&quot;]:checked ~ nav {
+ opacity: 1;
+ z-index: 1;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it! Now if I plan to add any new collections down the line, I just need to include it in the &lt;code&gt;_config.yml&lt;/code&gt; file and I&amp;#8217;m set. The homepage will take care of the rest once rendered.&lt;/p&gt;
-&lt;p&gt;Enjoy looping through your Jekyll collections!&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Just the sections were statically rendered. All the recipes were pulled in dynamically - I&amp;#8217;m not that insane!&lt;/li&gt;
-&lt;/ol&gt;</content>
- <link href="https://btxx.org/loop"/>
- <id>https://btxx.org/loop</id>
- <updated>2022-08-12T10:00:00Z</updated>
- <published>2022-08-12T10:00:00Z</published>
- </entry>
- <entry>
- <title>Fixing LocalWP on Fedora 32</title>
- <content type="html">&lt;h1 id=&quot;fixing-localwp-on-fedora-32&quot;&gt;Fixing LocalWP on Fedora 32&lt;/h1&gt;
-&lt;p&gt;2020-05-06&lt;/p&gt;
-&lt;p&gt;I recently upgraded from Fedora 31 to 32 and everything went very smoothly - except for one application: &lt;strong&gt;LocalWP&lt;/strong&gt;. After the upgrade, all local WordPress builds would fail and complain about two missing packages:&lt;/p&gt;
+&lt;p&gt;It might not look like much, but you now have a fully functional menu toggle - &lt;strong&gt;made with pure CSS&lt;/strong&gt;! &lt;/p&gt;
+&lt;h2 id=&quot;with-great-power&quot;&gt;With Great Power&amp;#8230;&lt;/h2&gt;
+&lt;p&gt;Although this design is very simple to implement, please remember to use these types of menus wisely. Just because you &lt;em&gt;can&lt;/em&gt; do something, doesn&amp;#8217;t always mean you &lt;em&gt;should&lt;/em&gt;.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/menu-toggle-css"/>
+ <id>https://btxx.org/posts/menu-toggle-css</id>
+ <updated>2020-10-19T10:00:00Z</updated>
+ <published>2020-10-19T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Mini Interactive Keyboard with Pure CSS</title>
+ <content type="html">&lt;h1 id=&quot;mini-interactive-keyboard-with-pure-css&quot;&gt;Mini Interactive Keyboard with Pure CSS&lt;/h1&gt;
+&lt;p&gt;2020-05-13&lt;/p&gt;
+&lt;p&gt;Lately, I&amp;#8217;ve become obsessed with trying to see what I can create using only HTML and CSS (besides websites of course). Since playing with the concept of &lt;a href=&quot;https://uglyduck.ca/fake-3d-elements-with-css/&quot;&gt;faking 3D elements&lt;/a&gt;, I wanted to circle back around to an older CodePen I created: a mini, interactive undo keyboard.&lt;/p&gt;
+&lt;h2 id=&quot;see-it-in-action&quot;&gt;See it in action&lt;/h2&gt;
+&lt;p&gt;Below you can view a live demo of the mini keyboard itself. This demo is nothing special, but takes design inspiration from Apple&amp;#8217;s magic keyboards (if that wasn&amp;#8217;t already obvious).&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/undo-keyboard.png&quot; alt=&quot;Undo keyboard with two buttons to click&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/PadQMP&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;So now that we have seen what we plan to build, let&amp;#8217;s break down the process of creating this stupid, fun project!&lt;/p&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;p&gt;The core skeleton of this project is very simple, since the keyboard consists of only 2 interactive buttons on top of a basic base element: &lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;libnettle6&lt;/li&gt;
-&lt;li&gt;libhogweed4&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Keyboard base&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Command button&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;&amp;#8216;Z&amp;#8217; letter button&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;After wasting far too much time rolling back to older LocalWP versions and reaching out into the community forums, I found a simply solution to the problem. You just need to download and install the following packages manually:&lt;/p&gt;
+&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
+&lt;p&gt;Here is where all the magic happens. Let&amp;#8217;s break these elements into their own sections, starting with the &lt;strong&gt;base styling&lt;/strong&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Custom typeface *&amp;#47;
+@import url(&quot;https:&amp;#47;&amp;#47;fonts.googleapis.com&amp;#47;css?family=Muli&quot;);
+
+&amp;#47;* Basic layout styling *&amp;#47;
+body {
+background: #d2dcff;
+margin: 80px 0 40px;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;We then tackle the basic &lt;strong&gt;keyboard base&lt;/strong&gt; element:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.base {
+background: linear-gradient(180deg, #eee 0%, #d8d8d8 100%);
+border-radius: 20px;
+box-shadow: inset 0 3px 5px rgba(255,255,255,0.3), inset 0 1px 3px rgba(255,255,255,0.5), 0 10px 0 #afafaf;
+display: flex;
+height: 310px;
+margin: 0 auto;
+position: relative;
+width: 620px;
+}
+
+&amp;#47;* This pseudo element is used for more realistic drop-shadows *&amp;#47;
+.base:after {
+bottom: 0;
+box-shadow: 0 10px 80px rgba(0,0,0,0.5);
+content: &amp;#39;&amp;#39;;
+height: 50px;
+left: 7.5%;
+position: absolute;
+width: 85%;
+z-index: -1;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Next, we target all shared styles between the &lt;strong&gt;2 keyboard buttons&lt;/strong&gt; to avoid repeating ourselves later on:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.command, .z {
+ -webkit-appearance: none;
+ background: linear-gradient(180deg, #fff 0%, #f2f2f2 100%);
+ border: 0;
+ border-radius: 20px;
+ box-shadow: inset 0 1px 3px rgba(255,255,255,0.5), 0 10px 0 #c9c9c9, 0 10px 6px rgba(0,0,0,0.3), 0 12px 8px rgba(0,0,0,0.5);
+ cursor: pointer;
+ display: inline-block;
+ height: 260px;
+ margin: 15px 0 0 20px;
+ outline: 0;
+ position: relative;
+ width: 300px;
+ z-index: 2;
+}
+
+.command span, .z span {
+ font-family: &amp;#39;Muli&amp;#39;, &amp;#39;Helvetica&amp;#39;, sans-serif;
+}
+
+&amp;#47;* Styling when pressed *&amp;#47;
+.command:active, .z:active {
+ box-shadow: inset 0 10px 10px rgba(0,0,0,0.2), inset 0 10px 30px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.6);
+ margin: 25px 0 0 20px;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;All that remains is to add the custom styling for each independent button:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Custom Command styling *&amp;#47;
+.command svg {
+ height: 60px;
+ right: 15px;
+ position: absolute;
+ stroke: #9f9f9f;
+ top: 15px;
+ width: 60px;
+}
+.command span {
+ bottom: 15px;
+ color: #9f9f9f;
+ font-size: 58px;
+ left: 0;
+ position: absolute;
+ width: 100%;
+}
+
+&amp;#47;* Custom &quot;Z&quot; Letter styling *&amp;#47;
+.z {
+ width: 260px;
+}
+.z span {
+ color: #9f9f9f;
+ font-size: 150px;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;taking-it-further&quot;&gt;Taking it further&lt;/h2&gt;
+&lt;p&gt;You could easily improve upon this concept by rendering an entire interactive keyboard, if you so desired. But this is maybe something I would tackle at a later date when I have a little more free time 😉 For now, a simple mini undo keyboard is fun enough to play with.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/mini-interactive-keyboard-with-pure-css"/>
+ <id>https://btxx.org/posts/mini-interactive-keyboard-with-pure-css</id>
+ <updated>2020-05-13T10:00:00Z</updated>
+ <published>2020-05-13T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Minimal CSS: Dropdown Menu</title>
+ <content type="html">&lt;h1 id=&quot;minimal-css-dropdown-menu&quot;&gt;Minimal CSS: Dropdown Menu&lt;/h1&gt;
+&lt;p&gt;2019-04-26&lt;/p&gt;
+&lt;p&gt;I love the idea of stripping away as much CSS as possible, while still maintaining the original UI concept. Let&amp;#8217;s build out a demo example with a simple menu dropdown element.&lt;/p&gt;
+&lt;p&gt;Interesting facts about our final CSS menu:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;libnettle6: &lt;a href=&quot;https://pkgs.org/download/libnettle6&quot;&gt;libnettle6-3.4.1-lp152.3.1.x86_64.rpm&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;libhogweed4: &lt;a href=&quot;https://pkgs.org/download/libhogweed4&quot;&gt;libhogweed4-3.4.1-lp152.3.1.x86_64.rpm&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Total weight 121 bytes minified! (not including any resets etc.)&lt;/li&gt;
+&lt;li&gt;No complex HTML structures&lt;/li&gt;
+&lt;li&gt;Accessibility support&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Although these packages are built for OpenSuse, it still worked perfectly fine for me. My hope is that this quick post might be helpful for others who possibly run into the same issue.&lt;/p&gt;
-&lt;p&gt;For reference, here is the Local Community ticket I created: &lt;a href=&quot;https://localwp.com/community/t/local-not-working-fedora-32-workstation-edition/19219&quot;&gt;Local not working with Fedora 32&lt;/a&gt;&lt;/p&gt;</content>
- <link href="https://btxx.org/localwp-fedora"/>
- <id>https://btxx.org/localwp-fedora</id>
- <updated>2020-05-06T10:00:00Z</updated>
- <published>2020-05-06T10:00:00Z</published>
- </entry>
- <entry>
- <title>Click to Load Website Images</title>
- <content type="html">&lt;h1 id=&quot;click-to-load-website-images&quot;&gt;Click to Load Website Images&lt;/h1&gt;
-&lt;p&gt;2021-03-25&lt;/p&gt;
-&lt;p&gt;In my previous post about &lt;a href=&quot;https://uglyduck.ca/#2021-03-22-89-posts-one-file&quot;&gt;switching my Jekyll blog over to PHPetite&lt;/a&gt;, I briefly mentioned how I only loaded in article images if the user &lt;em&gt;clicked or tapped&lt;/em&gt; the empty file element.&lt;/p&gt;
-&lt;p&gt;In this post, I&amp;#8217;m going to quickly breakdown the update I&amp;#8217;ve done to my blog&amp;#8217;s images since then and how you can easily implement the same thing in your own project.&lt;/p&gt;
-&lt;h2 id=&quot;update&quot;&gt;Update&lt;/h2&gt;
-&lt;p&gt;As pointed out by Gabriel &lt;a href=&quot;https://github.com/bradleytaunt/phpetite/issues/1&quot;&gt;in this Github issue&lt;/a&gt;, this concept breaks things slightly for RSS users. Since then, I have just set the default images on this blog to &lt;code&gt;display: none&lt;/code&gt; and render them as &lt;code&gt;block&lt;/code&gt; elements when their specific &lt;code&gt;section&lt;/code&gt; is loaded into the DOM visibly.&lt;/p&gt;
-&lt;p&gt;The example below is remaining the same as it was, to still provide context for this post.&lt;/p&gt;
-&lt;h2 id=&quot;live-demo&quot;&gt;Live Demo&lt;/h2&gt;
-&lt;p&gt;Before we jump head first into the details, let&amp;#8217;s take a look at what we will be creating:&lt;/p&gt;
-&lt;p&gt;Pretty neat, eh? Well let&amp;#8217;s get into the nitty gritty.&lt;/p&gt;
-&lt;h2 id=&quot;the-code&quot;&gt;The Code&lt;/h2&gt;
-&lt;p&gt;Personally, I place everything into a &lt;code&gt;figure&lt;/code&gt; element to keep things contained and clean - but this isn&amp;#8217;t required by any means. We then include our &lt;code&gt;img&lt;/code&gt; and &lt;code&gt;figcaption&lt;/code&gt; elements. That&amp;#8217;s it.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;figure&amp;#62;
- &amp;#60;img src=&quot;&amp;#47;placeholder-image.webp&quot; onclick=&quot;this.src=&amp;#39;https:&amp;#47;&amp;#47;res.cloudinary.com&amp;#47;bradtaunt&amp;#47;image&amp;#47;fetch&amp;#47;q_auto:low&amp;#47;v1570124593&amp;#47;https:&amp;#47;&amp;#47;uglyduck.ca&amp;#47;public&amp;#47;images&amp;#47;aqua-ui-css-buttons.webp&amp;#39;&quot; alt=&quot;Aqua UI buttons&quot;&amp;#62;
- &amp;#60;figcaption&amp;#62;&amp;#60;b&amp;#62;Click the placeholder to load in the real image&amp;#60;&amp;#47;b&amp;#62;&amp;#60;br&amp;#62;
- Example Dribbble shot for testing. Feel free to click the default image in order to load the correct Dribbble source.
- &amp;#60;a href=&quot;https:&amp;#47;&amp;#47;res.cloudinary.com&amp;#47;bradtaunt&amp;#47;image&amp;#47;fetch&amp;#47;q_auto:low&amp;#47;v1570124593&amp;#47;https:&amp;#47;&amp;#47;uglyduck.ca&amp;#47;public&amp;#47;images&amp;#47;aqua-ui-css-buttons.webp&quot;&amp;#62;View full size image&amp;#60;&amp;#47;a&amp;#62;.
- &amp;#60;&amp;#47;figcaption&amp;#62;
-&amp;#60;&amp;#47;figure&amp;#62;
+&lt;p&gt;Now to see the final code in all it&amp;#8217;s glory:&lt;/p&gt;
+&lt;h3 id=&quot;html&quot;&gt;HTML&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;nav&amp;#62;
+ &amp;#60;ul&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Home&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;About&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Services&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;ul&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Design&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Development&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Custom Pizzas&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;&amp;#47;ul&amp;#62;
+ &amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Contact&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;&amp;#47;ul&amp;#62;
+&amp;#60;&amp;#47;nav&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;the-image-element&quot;&gt;The Image Element&lt;/h3&gt;
-&lt;p&gt;This is where the &lt;em&gt;magic&lt;/em&gt; happens. By default all images will target the default placeholder image: &lt;code&gt;placeholder-image.webp&lt;/code&gt;. This image is just 16KB in size and only needs to load in once.&lt;/p&gt;
-&lt;p&gt;Next we include an inline &lt;code&gt;onclick&lt;/code&gt; attribute, which targets the current image&amp;#8217;s &lt;code&gt;src&lt;/code&gt; attribute and changes it based on the URL provided. (Note: I use Cloudinary for my blog&amp;#8217;s image storage, but you could even host your images relative to your root directory if you wanted)&lt;/p&gt;
-&lt;p&gt;Now when a user clicks on the placeholder image, the inline &lt;code&gt;onclick&lt;/code&gt; pulls in the correct image in it&amp;#8217;s place.&lt;/p&gt;
-&lt;h3 id=&quot;disabled-javascript&quot;&gt;Disabled JavaScript&lt;/h3&gt;
-&lt;p&gt;For users who have JavaScript blocked or disabled we have a decent backup. By including a direct link to the image URL in the &lt;code&gt;figcaption&lt;/code&gt; element, we give the user the ability to still view the image in a separate browser tab.&lt;/p&gt;
-&lt;p&gt;You could get extra fancy and include some &lt;code&gt;noscript&lt;/code&gt; tags in your project that maybe render a different placeholder image mentioning they have JavaScript disabled etc, but for my needs that would be overkill.&lt;/p&gt;
-&lt;h2 id=&quot;cool---but-why-do-this&quot;&gt;Cool - But Why Do This?&lt;/h2&gt;
-&lt;p&gt;Bandwidth is a limited resource for a lot of users around the world. As designers and developers it&amp;#8217;s best to respect this fact and only load in elements as the user &lt;em&gt;requires&lt;/em&gt; them. Every little bit helps.&lt;/p&gt;</content>
- <link href="https://btxx.org/load-image-on-click"/>
- <id>https://btxx.org/load-image-on-click</id>
- <updated>2021-03-25T10:00:00Z</updated>
- <published>2021-03-25T10:00:00Z</published>
- </entry>
- <entry>
- <title>Linux Mint MacBook Air Setup</title>
- <content type="html">&lt;h1 id=&quot;linux-mint-macbook-air-setup&quot;&gt;Linux Mint MacBook Air Setup&lt;/h1&gt;
-&lt;p&gt;2020-08-16&lt;/p&gt;
-&lt;p&gt;I don&amp;#8217;t like the idea of throwing away old or outdated tech (within reason), so I try to find a new purpose for some of my &amp;#8220;retired&amp;#8221; devices. This article will cover how to switch over a mid-2011 model MacBook Air to utilize Linux Mint.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: This setup will completely wipe your existing disk and create a fresh install of Linux Mint on the SSD. You have been warned.&lt;/p&gt;
-&lt;h2 id=&quot;the-specs&quot;&gt;The Specs&lt;/h2&gt;
-&lt;p&gt;My old MacBook Air has a pretty decent spec sheet:&lt;/p&gt;
+&lt;h3 id=&quot;css&quot;&gt;CSS&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* resets - optional *&amp;#47;
+ul { list-style: none; padding: 0; }
+ul li { display: inline-block; position: relative; }
+
+&amp;#47;* minimal dropdown CSS *&amp;#47;
+ul li &amp;#62; ul {
+ left: -9999px;
+ position: absolute;
+ visibility: hidden;
+}
+ul li:hover &amp;#62; ul, ul li:focus-within &amp;#62; ul {
+ left: 0;
+ visibility: visible;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;live-demo-on-codepen&quot;&gt;Live demo on CodePen&lt;/h2&gt;
+&lt;p&gt;Feel free to check out the live demo on CodePen &lt;a href=&quot;https://codepen.io/bradleytaunt/pen/MRLevy&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/minimal-css-menu"/>
+ <id>https://btxx.org/posts/minimal-css-menu</id>
+ <updated>2019-04-26T10:00:00Z</updated>
+ <published>2019-04-26T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Using a New Domain and Switching Static Hosts</title>
+ <content type="html">&lt;h1 id=&quot;using-a-new-domain-and-switching-static-hosts&quot;&gt;Using a New Domain and Switching Static Hosts&lt;/h1&gt;
+&lt;p&gt;2021-11-25&lt;/p&gt;
+&lt;p&gt;As you can most likely tell by looking at your browser&amp;#8217;s URL - I&amp;#8217;ve swapped over to a new domain for my personal website: &lt;a href=&quot;https://tdarb.org&quot;&gt;tdarb.org&lt;/a&gt;. I&amp;#8217;m a fickle person and this is a random change - but it is one I&amp;#8217;ve been planning to do for some time.&lt;/p&gt;
+&lt;p&gt;Let me give some minor background information and then get into the changes&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;what-about-ugly-duck&quot;&gt;What about Ugly Duck?&lt;/h2&gt;
+&lt;p&gt;I had originally used the &lt;a href=&quot;https://uglyduck.ca&quot;&gt;uglyduck.ca&lt;/a&gt; domain for this personal blog as a &lt;em&gt;loosely&lt;/em&gt; based reference to the &amp;#8220;ugly duckling&amp;#8221; story. This was based on the fact that I &lt;em&gt;mainly&lt;/em&gt; focus on CSS and making the web more visually appealing - or beautiful, if you will - so the comparison to an ugly duckling becoming a swan made sense in my oddball mind.&lt;/p&gt;
+&lt;p&gt;But overtime I came to somewhat dislike[^1] it and set out to change it.&lt;/p&gt;
+&lt;h2 id=&quot;so-what-the-heck-is-tdarb&quot;&gt;So what the heck is &amp;#8220;tdarb&amp;#8221;?&lt;/h2&gt;
+&lt;p&gt;I explain this on my updated &lt;a href=&quot;/about&quot;&gt;about page&lt;/a&gt; but I will mention it again here:&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;tdarb&lt;/strong&gt;[^2] is simply my first name and last initial spelt backwards – Brad T. Mind blowing, right?&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ve switched over to this naming convention to avoid having such a random &amp;#8220;phrase&amp;#8221; domain name while at the same time having a little more fun than just &lt;em&gt;mylegalname.com&lt;/em&gt;. I also am a sucker for &lt;code&gt;.org&lt;/code&gt; TLDs (although I don&amp;#8217;t know why).&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m sure some readers will prefer it, some will be indifferent and others will hate it. Either way, it&amp;#8217;s my personal site and I&amp;#8217;ll do as I please!&lt;/p&gt;
+&lt;h2 id=&quot;breaking-my-website-for-a-day-and-fixing-potential-link-rot&quot;&gt;Breaking My Website for a Day and Fixing Potential Link Rot&lt;/h2&gt;
+&lt;p&gt;The transition I made yesterday from &lt;a href=&quot;https://uglyduck.ca&quot;&gt;uglyduck.ca&lt;/a&gt; to &lt;a href=&quot;https://tdarb.org&quot;&gt;tdarb.org&lt;/a&gt; was &lt;em&gt;rough&lt;/em&gt;. I thought that I could simply launch the identical content on the new domain, test everything, and then simply set a URL redirect from the old domain through Namecheap[^3]. Oh boy, was I wrong!&lt;/p&gt;
+&lt;p&gt;The bulk of my evening was spent figuring out why the redirect wouldn&amp;#8217;t propagate across all networks and why multiple forwards were occurring. In the end, I just tossed &lt;a href=&quot;https://uglyduck.ca&quot;&gt;uglyduck.ca&lt;/a&gt; back up on Netlify and set global redirect rules in their handy-dandy &lt;code&gt;_redirects&lt;/code&gt; file. (I will write-up a small post about this soon to help others). After a few minutes everything was working perfectly fine and best of all - no broken links or potential link rot! All thanks to the &lt;code&gt;:splat&lt;/code&gt; parameter in the redirects.&lt;/p&gt;
+&lt;p&gt;As for my RSS feed, everything &lt;em&gt;should&lt;/em&gt; forward correctly? I state that as a question since I can&amp;#8217;t confirm this 100% and RSS feeds are not my expertise. If I broke this for any of you, I apologize. I will pray to the internet gods for your forgiveness&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;from-github-to-sourcehut&quot;&gt;From Github to Sourcehut&lt;/h2&gt;
+&lt;p&gt;That&amp;#8217;s right, I&amp;#8217;ve switched this static site&amp;#8217;s hosting over to &lt;a href=&quot;https://srht.site&quot;&gt;sourcehut pages&lt;/a&gt; and couldn&amp;#8217;t be happier. My reasons for switching:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;I&amp;#8217;m happy to pay and support the ongoing work at sourcehut (open source alternatives to Netlify, Github, etc. is important)&lt;/li&gt;
+&lt;li&gt;I&amp;#8217;ve been wanting to become more comfortable with the sourcehut ecosystem - there might be projects in the future I would like to help with on that platform and it helps if you know how to use it :P&lt;/li&gt;
+&lt;li&gt;Sourcehut pages are fast - I mean &lt;em&gt;really&lt;/em&gt; fast&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;It &lt;em&gt;was&lt;/em&gt; slightly confusing for my ape brain to figure out the setup, but I got there eventually. I plan to do a detailed step-by-step tutorial to help those like me who may find it a little daunting. It&amp;#8217;s well worth the minor effort.&lt;/p&gt;
+&lt;h2 id=&quot;the-lifespan-of-uglyduck.ca&quot;&gt;The Lifespan of uglyduck.ca&lt;/h2&gt;
+&lt;p&gt;I still have ownership of the old domain for almost another full year. I feel like that gives users enough time to adjust and become accustomed to the new one. My plan is to let the domain die entirely when it goes up for renewal but who knows - I might very well keep it going if the mood strikes me.&lt;/p&gt;
+&lt;h2 id=&quot;thats-all-folks&quot;&gt;That&amp;#8217;s All Folks!&lt;/h2&gt;
+&lt;p&gt;I don&amp;#8217;t have much else to report besides having made minor tweaks to this website design (yet again) and I have also finally added a picture of &lt;a href=&quot;/uses&quot;&gt;workstation on the &amp;#8220;Things I Use&amp;#8221; page&lt;/a&gt;. That&amp;#8217;s it.&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;not &lt;em&gt;hate&lt;/em&gt; - just discontent&lt;/li&gt;
+&lt;li&gt;pronounced tee-darb&lt;/li&gt;
+&lt;li&gt;Namecheap support were very helpful - this was more of a limitation of what their redirects can do&lt;/li&gt;
+&lt;/ol&gt;</content>
+ <link href="https://btxx.org/posts/minor-website-changes"/>
+ <id>https://btxx.org/posts/minor-website-changes</id>
+ <updated>2021-11-25T10:00:00Z</updated>
+ <published>2021-11-25T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Installing Older Versions of MongoDB on Arch Linux</title>
+ <content type="html">&lt;h1 id=&quot;installing-older-versions-of-mongodb-on-arch-linux&quot;&gt;Installing Older Versions of MongoDB on Arch Linux&lt;/h1&gt;
+&lt;p&gt;2023-09-11&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ve recently been using Arch Linux for my main work environment on my ThinkPad X260. It&amp;#8217;s been great. As someone who is constantly drawn to minimalist operating systems such as Alpine or OpenBSD, it&amp;#8217;s nice to use something like Arch that boasts that same minimalist approach but with greater documentation&amp;#47;support.&lt;/p&gt;
+&lt;p&gt;Another major reason for the switch was the need to run older versions of &amp;#8220;services&amp;#8221; locally. Most people would simply suggest using Docker or vmm, but I personally run projects in self-contained, personalized directories on my system itself. I am aware of the irony in that statement&amp;#8230; but that&amp;#8217;s just my personal preference.&lt;/p&gt;
+&lt;p&gt;So I thought I would share my process of setting up an older version of MongoDB (3.4 to be precise) on Arch Linux.&lt;/p&gt;
+&lt;h2 id=&quot;aur-to-the-rescue&quot;&gt;AUR to the Rescue&lt;/h2&gt;
+&lt;p&gt;You will need to target the specific version of MongoDB using the very awesome AUR packages:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;yay -S mongodb34-bin
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Follow the instructions and you&amp;#8217;ll be good to go. Don&amp;#8217;t forget to create the &lt;code&gt;&amp;#47;data&amp;#47;db&lt;/code&gt; directory and give it proper permissions:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;mkdir -p &amp;#47;data&amp;#47;db&amp;#47;
+chmod -R 777 &amp;#47;date&amp;#47;db
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;what-about-my-tools&quot;&gt;What About My &amp;#8220;Tools&amp;#8221;?&lt;/h2&gt;
+&lt;p&gt;If you plan to use MongoDB, then you most likely want to utilize the core database tools (restore, dump, etc). The problem is you can&amp;#8217;t use the default &lt;code&gt;mongodb-tools&lt;/code&gt; package when trying to work with older versions of MongoDB itself. The package will complain about conflicts and ask you to override your existing version. This is &lt;em&gt;not&lt;/em&gt; what we want.&lt;/p&gt;
+&lt;p&gt;So, you&amp;#8217;ll have to build from source locally:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;git clone https:&amp;#47;&amp;#47;github.com&amp;#47;mongodb&amp;#47;mongo-tools
+cd mongodb-tools
+.&amp;#47;make build
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Then you&amp;#8217;ll need to copy the built executables into the proper directory in order to use them from the terminal:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;cp bin&amp;#47;* &amp;#47;usr&amp;#47;local&amp;#47;bin&amp;#47;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;And that&amp;#8217;s it! Now you can run &lt;code&gt;mongod&lt;/code&gt; directly or use &lt;code&gt;systemctl&lt;/code&gt; to enable it by default. Hopefully this helps anyone else curious about running older (or even outdated!) versions of MongoDB.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/mongodb-arch"/>
+ <id>https://btxx.org/posts/mongodb-arch</id>
+ <updated>2023-09-11T10:00:00Z</updated>
+ <published>2023-09-11T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Why I Stopped Using an External Monitor</title>
+ <content type="html">&lt;h1 id=&quot;why-i-stopped-using-an-external-monitor&quot;&gt;Why I Stopped Using an External Monitor&lt;/h1&gt;
+&lt;p&gt;2023-03-03&lt;/p&gt;
+&lt;p&gt;For the longest time I&amp;#8217;ve been using a Samsung 27&amp;#8221; UHD monitor as my main display. This monitor was connected to my ThinkPad X260 (in clamshell mode) through the official Lenovo dock. It wasn&amp;#8217;t a bad setup, but I have since changed my ways.&lt;/p&gt;
+&lt;p&gt;Instead, I now &lt;em&gt;only&lt;/em&gt; use the X260&amp;#8217;s panel as my main display. Let me explain my reasoning&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;the-switch-to-suckless&quot;&gt;The Switch to Suckless&lt;/h2&gt;
+&lt;p&gt;Over the past year I switched away from a traditional desktop environment to a window manager - &lt;a href=&quot;https://dwm.suckless.org/&quot;&gt;dwm&lt;/a&gt; to be specific. This also involved changing most of my daily software programs to utilize the full suckless &amp;#8220;suite&amp;#8221;. In doing so, the shift away from floating windows and virtualized desktops happened quickly.&lt;/p&gt;
+&lt;p&gt;I continued to use my UHD monitor with this new environment but slowly started running into minor (yet still inconvenient) roadblocks:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Processor: &lt;strong&gt;1.7GHz dual-core Intel Core i5&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Memory: &lt;strong&gt;4GB of 1333MHz DDR3&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Graphics: &lt;strong&gt;Advanced Intel HD Graphics 3000&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;SSD: &lt;strong&gt;128 GB&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Tiled mode was not the most optimized for such a large monitor. I found myself defaulting into &amp;#8220;floating&amp;#8221; mode which defeats the purpose of a WM.&lt;/li&gt;
+&lt;li&gt;The screen was almost &lt;em&gt;too&lt;/em&gt; large - making content placed on the far edges of the screen difficult to view at a glance.&lt;/li&gt;
+&lt;li&gt;I stopped using tags, since I ended up piling applications on top of one another in a single view. Again - defeating the point of a WM.&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;And let&amp;#8217;s take a look at the basic system requirements Linux Mint suggests:&lt;/p&gt;
+&lt;p&gt;All of these issues were close to making me ditch the external monitor altogether, but it was my day-to-day job that struck the final blow&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;designing-for-everyday-users&quot;&gt;Designing for Everyday Users&lt;/h2&gt;
+&lt;p&gt;As a UX&amp;#47;UI front-end designer by trade, my job requires me to create and tweak interfaces that essentially go &lt;em&gt;unnoticed&lt;/em&gt; by the end-users. If you finish a task you sought out to complete without even thinking about &lt;em&gt;how&lt;/em&gt; you did it - then I succeeded at my job. The problem is, we designers and developers tend to forget the constraints a majority of our users experience. In this case - screen resolution.&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://www.browserstack.com/guide/ideal-screen-sizes-for-responsive-design&quot;&gt;A study performed by BrowserStack via statcounter (2022)&lt;/a&gt; shows the worldwide market share based on device type:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;2GB RAM&lt;/li&gt;
-&lt;li&gt;Dual Core Processor&lt;/li&gt;
-&lt;li&gt;20GB free disk space&lt;/li&gt;
+&lt;li&gt;58.33% mobile&lt;/li&gt;
+&lt;li&gt;39.65% desktop&lt;/li&gt;
+&lt;li&gt;2.02% tablet&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;We are looking pretty good!&lt;/p&gt;
-&lt;h2 id=&quot;step-1-download-linux-mint&quot;&gt;Step 1: Download Linux Mint&lt;/h2&gt;
-&lt;p&gt;For this setup we will be using the latest, stable version (at this time of writing) of Linux Mint 20 &amp;#8220;Ulyana&amp;#8221; - Xfce which is 20. You can download the necessary files here: &lt;/p&gt;
+&lt;p&gt;The mobile aspect is certainly important, but we are focusing on the desktop data. Of that total the top two screen resolutions are:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://www.linuxmint.com/edition.php?id=283&quot;&gt;Linux Mint 20 &amp;#8220;Ulyana&amp;#8221; - Xfce&lt;/a&gt; [1.8GB]&lt;/li&gt;
+&lt;li&gt;1920×1080 (9.94%)&lt;/li&gt;
+&lt;li&gt;1366×768 (6.22%)&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;step-2-flash-linux-mint-to-usb-stick&quot;&gt;Step 2: Flash Linux Mint to USB Stick&lt;/h2&gt;
-&lt;p&gt;Next we just need to flash the Linux Mint OS to a USB storage device. If you need to purchase some, you can easily find them on Amazon (affliate link):&lt;/p&gt;
+&lt;p&gt;That is a fairly significant chunk of desktop users. Although almost 10% have access to screens set at &lt;code&gt;1920x1080&lt;/code&gt;, I found the amount of those stuck at &lt;code&gt;1366x768&lt;/code&gt; to be quite shocking. Here I was, developing large-set interfaces on an UHD 4K monitor while a large portion of my end-users would never benefit from those &amp;#8220;pixel-perfect&amp;#8221; designs. &lt;/p&gt;
+&lt;p&gt;Hell, some of these users were being shown the &lt;em&gt;tablet&lt;/em&gt;-based view of the applications since our breakpoints were so ridiculously large. Yikes.&lt;/p&gt;
+&lt;p&gt;So, I said screw it and retired the external monitor. Now my X260 is propped up and proudly showing off its 1366x768 display. It only took a day or so to adapt to this new setup and I don&amp;#8217;t think I could go back to another massive display.&lt;/p&gt;
+&lt;p&gt;Here are some benefits at a glance:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://www.amazon.com/gp/product/B00JB3NXIS/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=B00JB3NXIS&amp;amp;linkCode=as2&amp;amp;tag=uglyduck-20&amp;amp;linkId=494f4c1dd4e21782ecb865bcaa5a526b&quot;&gt;Kootion 10 Pack 4GB Flash Drive 4gb USB 2.0 Flash Drives Keychain USB Drive Bulk Thumb Drive Swivel Memory Stick Black&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Download &lt;a href=&quot;https://www.balena.io/etcher/&quot;&gt;Balena Etcher&lt;/a&gt; for your current operating system&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Run the installer&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;I no longer have to worry about &amp;#8220;context switching&amp;#8221; if I decide to un-dock my laptop and work somewhere mobile. The desktop experience remains intact.&lt;/li&gt;
+&lt;li&gt;Working inside &lt;code&gt;dwm&lt;/code&gt; is a much cleaner experience. I mostly operate single applications within their own confined tag - with some exceptions of course.&lt;/li&gt;
+&lt;li&gt;I&amp;#8217;m able to instantly understand frustrations of everyday users while developing new features or tweaking existing UIs. Being able to advocate for our end-users by using legit use cases is extremely helpful. (Removes the &amp;#8220;design by gut-feeling&amp;#8221; mistakes)&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Once installed, open Etcher do the following:&lt;/p&gt;
+&lt;h2 id=&quot;a-little-extreme&quot;&gt;A Little Extreme&lt;/h2&gt;
+&lt;p&gt;Yes, I am aware that I could simply keep the UHD monitor and perform my work within a constrained portion of the screen. The problem that remains is &amp;#8220;quality&amp;#8221;. Most 1366x768 panels are not even close to the level of hi-res found on most 4K monitors. By using such a display I would be cheating myself of the standard experience a good portion of my end-users endure. &lt;/p&gt;
+&lt;p&gt;I want to see the fuzzy text, slightly blurred imagery and muted button shadows. I want to see these things because that&amp;#8217;s how some &lt;em&gt;users&lt;/em&gt; will experience it.&lt;/p&gt;
+&lt;p&gt;Maybe that&amp;#8217;s extreme - but it works for me.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/monitor"/>
+ <id>https://btxx.org/posts/monitor</id>
+ <updated>2023-03-03T10:00:00Z</updated>
+ <published>2023-03-03T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Using Multiple CSS Background Images</title>
+ <content type="html">&lt;h1 id=&quot;using-multiple-css-background-images&quot;&gt;Using Multiple CSS Background Images&lt;/h1&gt;
+&lt;p&gt;2018-09-28&lt;/p&gt;
+&lt;p&gt;It isn&amp;#8217;t something developers have a need to do very often, but you &lt;em&gt;can&lt;/em&gt; set multiple background images on a single element.&lt;/p&gt;
+&lt;p&gt;Example:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.element {
+ background: url(&amp;#39;image_path&amp;#39;) center repeat, linear-gradient(transparent 0%, #000 100%) no-repeat;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;What can you do with this? It&amp;#8217;s only limited by your imagination, but I&amp;#8217;m personally a fan of always using as few elements as possible when working on a project.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/multiple-css-background-images"/>
+ <id>https://btxx.org/posts/multiple-css-background-images</id>
+ <updated>2018-09-28T10:00:00Z</updated>
+ <published>2018-09-28T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>My Raspberry Pi Desktop</title>
+ <content type="html">&lt;h1 id=&quot;my-raspberry-pi-desktop&quot;&gt;My Raspberry Pi Desktop&lt;/h1&gt;
+&lt;p&gt;2020-09-02&lt;/p&gt;
+&lt;p&gt;I use a Raspberry Pi 4 as my personal daily driver and it&amp;#8217;s pretty great. I know these types of devices tend to be used for smaller pet-projects or fun experiments, but I thought I would share my experience using one as my main computer. Hopefully this can be a solid guide to help others who might be interested in creating a similar setup.&lt;/p&gt;
+&lt;p&gt;My desktop Pi working away on a regular morning:&lt;/p&gt;
+&lt;h2 id=&quot;table-of-contents&quot;&gt;Table of Contents&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;Select your downloaded Linux Mint ISO file&lt;/li&gt;
-&lt;li&gt;Select your USB stick&amp;#47;device as the media&lt;/li&gt;
-&lt;li&gt;Flash media&lt;/li&gt;
-&lt;li&gt;???&lt;/li&gt;
-&lt;li&gt;Profit!!&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#use-case&quot;&gt;My Use Case&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#hardware&quot;&gt;The Hardware&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#software&quot;&gt;The Software&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#stats&quot;&gt;Performance &amp;#38; Stats&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
-&lt;h2 id=&quot;step-3-boot-from-usb&quot;&gt;Step 3: Boot from USB&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;m a web designer and developer by trade. Therefore, I require a decent amount of functionality from my computer - more than just simple web browsing and document editing. When I first set out testing if the RPi4 &lt;em&gt;could&lt;/em&gt; become my main device, I was surprised at how capable the hardware &amp;#47; software was at running all my required applications. My workload comprises of:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Make sure your Macbook Air is turned off&lt;/li&gt;
-&lt;li&gt;Plug your newly flashed USB stick into the MacBook Air&lt;/li&gt;
-&lt;li&gt;Turn on the MacBook Air&lt;/li&gt;
-&lt;li&gt;Immediately hold down the &lt;strong&gt;alt&amp;#47;option&lt;/strong&gt; button (keep holding until the prompt screen is visible)&lt;/li&gt;
-&lt;li&gt;You will be shown drive &amp;#8220;icons&amp;#8221; - you want to select your USB drive (normally the far right icon)&lt;/li&gt;
-&lt;li&gt;Press &lt;strong&gt;Enter&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Select the first item in the list that appears &amp;#8220;Start Linux Mint&amp;#8221;&lt;/li&gt;
+&lt;li&gt;Using Github&amp;#47;Gitlab to pull&amp;#47;push repos, open PRs, etc&lt;/li&gt;
+&lt;li&gt;Run SSG (Jekyll mostly) locally for testing&lt;/li&gt;
+&lt;li&gt;Run multiple WordPress instances locally&lt;/li&gt;
+&lt;li&gt;Edit design files (Photoshop, Illustrator, direct SVGs)&lt;/li&gt;
+&lt;li&gt;Simple web chat &amp;#47; email&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;After this you will boot into a &amp;#8220;live session&amp;#8221; of the Linux Mint operating system.&lt;/p&gt;
-&lt;h2 id=&quot;step-4-installing-linux-mint&quot;&gt;Step 4: Installing Linux Mint&lt;/h2&gt;
-&lt;p&gt;Linux Mint makes it very easy for you to install it&amp;#8217;s OS step-by-step (similar to most other Linux distros). Simply &lt;strong&gt;double-click&lt;/strong&gt; on the &amp;#8220;Install Linux Mint&amp;#8221; CD icon on the main desktop.&lt;/p&gt;
+&lt;p&gt;Basic stuff, but I was originally doubtful of the RPi4 to be able to handle it all smoothly. I&amp;#8217;m happy to say I was wrong.&lt;/p&gt;
+&lt;p&gt;The following hardware list is what I use specifically for my intended use case. I&amp;#8217;m also a sucker for having cool looking SBC builds. By no means is this the &amp;#8220;best setup&amp;#8221; for everyone - I&amp;#8217;m sure other combinations of gear might better suit your own personal needs.&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: products in the hardware section are Amazon affiliate links&lt;/p&gt;
+&lt;/blockquote&gt;
&lt;ul&gt;
-&lt;li&gt;Choose your language. then hit &lt;strong&gt;Continue&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Select your preferred keyboard layout, then hit &lt;strong&gt;Continue&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;&lt;em&gt;Optional&lt;/em&gt;: You might be asked to connect to a WiFi network, if you are set it up now&lt;/li&gt;
-&lt;li&gt;I would suggest downloading the multimedia codecs to make things easier, then hit &lt;strong&gt;Continue&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;For installation type, select &amp;#8220;Erase disk and install Linux Mint&amp;#8221;, then hit &lt;strong&gt;Continue&lt;/strong&gt;
+&lt;li&gt;Raspberry Pi 4&lt;/li&gt;
+&lt;li&gt;X857 V1.0 mSATA SSD Shield Expansion Board (I&amp;#8217;m using the X856)&lt;/li&gt;
+&lt;li&gt;128GB mSATA SSD&lt;/li&gt;
+&lt;li&gt;Acrylic Case with Heatsinks &amp;#38; Fan&lt;/li&gt;
+&lt;li&gt;Raspberry Pi Keyboard &amp;#38; Mouse&lt;/li&gt;
+&lt;li&gt;21.5&amp;#8221; Acer Monitor&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;The 32-bit version of Raspberry Pi OS (&amp;#8216;Debian Buster&amp;#8217; at the time of writing) is my OS of choice. Stable, reliable, and officially supported by the RPi community. It does the job.&lt;/p&gt;
+&lt;p&gt;The Pi has been overclocked to 2GHz in order to squeeze just a &lt;em&gt;little&lt;/em&gt; extra out of the hardware. This has caused zero issues.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m also booting directly from the mSATA SSD (via USB booting) instead of relying on a slower microSD card. You can find tons of tutorials online on how to do the same, but I would recommend this one: &lt;a href=&quot;https://www.tomshardware.com/how-to/boot-raspberry-pi-4-usb&quot;&gt;How to Boot Raspberry Pi 4 From a USB SSD or Flash Drive&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;After that, I simply installed my required apps &amp;#47; configs (where applicable):&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;WARNING: This will wipe your current drive completely - make sure you are okay with this!&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;It will issue you with a warning prompt, simply click &lt;strong&gt;Continue&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Select your timezone, then hit &lt;strong&gt;Continue&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Enter your name, a username, a name for your computer, and set a password (you will use this to login moving forward)&lt;/li&gt;
-&lt;li&gt;Wait for the installation to complete&lt;/li&gt;
-&lt;li&gt;Once complete, you will be prompted to &lt;strong&gt;reboot your system&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;After a reboot you will be prompted to remove the USB device and then press &lt;strong&gt;Enter&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Welcome to Linux Mint!&lt;/li&gt;
+&lt;li&gt;Chromium (&lt;em&gt;preinstalled&lt;/em&gt;)&lt;/li&gt;
+&lt;li&gt;Firefox ESR&lt;/li&gt;
+&lt;li&gt;Pale Moon&lt;/li&gt;
+&lt;li&gt;Code OSS&lt;/li&gt;
+&lt;li&gt;Terminal (&lt;em&gt;preinstalled&lt;/em&gt;)&lt;/li&gt;
+&lt;li&gt;Libre Office Suite&lt;/li&gt;
+&lt;li&gt;Evolution&lt;/li&gt;
+&lt;li&gt;Figma (Web - no install needed)&lt;/li&gt;
+&lt;li&gt;Apache2 &amp;#47; MySQL&lt;/li&gt;
+&lt;li&gt;Blueman (helpful GUI for bluetooth)&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
-&lt;p&gt;Linux Mint is not only a great operating system, but it is also an excellent starting point for newcomers to Linux in general. It&amp;#8217;s stable enough to be used as a daily driver and popular enough that most minor issues can be solved with a quick internet search.&lt;/p&gt;
-&lt;p&gt;Hopefully this inspires others to try &amp;#8220;recycling&amp;#8221; their older Apple products instead of tossing them away or having them collect dust.&lt;/p&gt;</content>
- <link href="https://btxx.org/linux-mint-macbook-air"/>
- <id>https://btxx.org/linux-mint-macbook-air</id>
- <updated>2020-08-16T10:00:00Z</updated>
- <published>2020-08-16T10:00:00Z</published>
- </entry>
- <entry>
- <title>The Linux Desktop is Hard to Love</title>
- <content type="html">&lt;h1 id=&quot;the-linux-desktop-is-hard-to-love&quot;&gt;The Linux Desktop is Hard to Love&lt;/h1&gt;
-&lt;p&gt;2022-07-14&lt;/p&gt;
-&lt;p&gt;I want to love the &amp;#8220;Linux Desktop&amp;#8221;. I really do. But I&amp;#8217;ve come to the realization that what I love is the &lt;em&gt;idea&lt;/em&gt; of the Linux Desktop. The community. The security and core focus on open source. The customizable environments. Tweaking as much or as little of the operating system as I please!&lt;/p&gt;
-&lt;p&gt;I just can&amp;#8217;t &lt;em&gt;stick with it&lt;/em&gt;. I always end up back on macOS. And I&amp;#8217;m starting to understand why.&lt;/p&gt;
-&lt;h2 id=&quot;what-the-linux-desktop-gets-right&quot;&gt;What the Linux Desktop Gets Right&lt;/h2&gt;
-&lt;p&gt;To be fair, there is an incredible amount of things that the Linux desktop does really well:&lt;/p&gt;
+&lt;p&gt;What my plain desktop looks like:&lt;/p&gt;
+&lt;p&gt;Using this build day-to-day, I can honestly say I don&amp;#8217;t hit any hiccups or lag at all. Multiple applications and WordPress instances are running in the background, while 10-15 tabs are open in the Chromium browser. The little Pi just chugs along without breaking a sweat.&lt;/p&gt;
+&lt;p&gt;My average CPU temperature sits around 51&amp;#176; (with heatsinks &amp;#38; fan active) while CPU usage never really cranks past 90% during even &amp;#8220;intensive&amp;#8221; processes.&lt;/p&gt;
+&lt;p&gt;Since &lt;em&gt;actual&lt;/em&gt; data speaks louder than anecdotal chit-chat, I performed a very simple read&amp;#47;write test on my mSATA SSD.&lt;/p&gt;
+&lt;p&gt;First, clear the cache to avoid conflicting data:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sync; echo 3 | sudo tee &amp;#47;proc&amp;#47;sys&amp;#47;vm&amp;#47;drop_caches
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;write&quot;&gt;Write&lt;/h3&gt;
+&lt;p&gt;Write script run:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;dd if=&amp;#47;dev&amp;#47;zero of=~&amp;#47;test.tmp bs=500K count=1024
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Write output:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;524288000 bytes (524 MB, 500 MiB) copied, 1.95478 s, 268 MB&amp;#47;s
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;read&quot;&gt;Read&lt;/h3&gt;
+&lt;p&gt;Read script:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;dd if=~&amp;#47;test.tmp of=&amp;#47;dev&amp;#47;null bs=500K count=1024
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Read output:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;524288000 bytes (524 MB, 500 MiB) copied, 0.770993 s, 680 MB&amp;#47;s
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;This gives a total read&amp;#47;write value of: &lt;strong&gt;268 MB &amp;#47; 680 MB&lt;/strong&gt; per second. Compare that to average microSD card speeds floating around &lt;strong&gt;22 MB &amp;#47; 170MB&lt;/strong&gt; per second and you can see (and feel) the massive speed difference. Things are just snappier.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: Obviously extremely high-end (read: expensive) microSD cards &lt;em&gt;might&lt;/em&gt; hit read&amp;#47;write speeds similar to that of an SSD. The issue is that you are more likely to corrupt or reach end-of-life with a microSD card - hence why I don&amp;#8217;t recommend them.&lt;/p&gt;
+&lt;h2 id=&quot;final-thoughts&quot;&gt;Final Thoughts&lt;/h2&gt;
+&lt;p&gt;I love that I can use a fairly cheap Raspberry Pi 4 as my main, personal desktop. Of course, some people might roll their eyes at this build and say, &amp;#8220;why not just get a cheaper, more powerful laptop off eBay?&amp;#8221;. To that I would respond: &lt;em&gt;you&amp;#8217;re missing the point&lt;/em&gt;. &lt;/p&gt;
+&lt;p&gt;It was fun to put together this simple desktop. The fact that it runs fast and stable enough to be my daily driver is a great bonus. If this build interests you at all, I highly recommend giving it a go.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/my-pi-desktop"/>
+ <id>https://btxx.org/posts/my-pi-desktop</id>
+ <updated>2020-09-02T10:00:00Z</updated>
+ <published>2020-09-02T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>My Static Blog Publishing Setup and an Apology to RSS Subscribers</title>
+ <content type="html">&lt;h1 id=&quot;my-static-blog-publishing-setup-and-an-apology-to-rss-subscribers&quot;&gt;My Static Blog Publishing Setup and an Apology to RSS Subscribers&lt;/h1&gt;
+&lt;p&gt;2022-03-21&lt;/p&gt;
+&lt;p&gt;In case you missed it, this website is now generated with pure HTML &amp;#38; CSS. Although, generated isn&amp;#8217;t the proper way to describe it anymore. &lt;em&gt;Written&lt;/em&gt; is a better description.&lt;/p&gt;
+&lt;p&gt;No more Markdown files. No more build scripts. No more Jekyll. Clean, simple, static HTML &amp;#38; CSS is my &amp;#8220;CMS&amp;#8221;. More on that in a moment. First, I must apologize.&lt;/p&gt;
+&lt;h2 id=&quot;im-sorry-dear-rss-subscribers&quot;&gt;I&amp;#8217;m Sorry Dear RSS Subscribers&lt;/h2&gt;
+&lt;p&gt;RSS feeds are tricky things for me personally. I always botch them with a site redesign or a re-structure of my previous posts. Those of you subscribed via RSS were likely bombarded with post spam when I rebuilt this website. Sorry about that - I know how annoying that can be.&lt;/p&gt;
+&lt;p&gt;Fortunately, that all stops today. Moving forward my RSS feed (Atom) will be edited manually with every new post I write. Each entry will feature the post title, post url, and post date. No summaries or full-inline content will be included (since that would involve a great amount of extra overhead). RSS subs will need to follow the link directly if they are interested in the article itself. I hope this doesn&amp;#8217;t anger too many readers&amp;#8230;&lt;/p&gt;
+&lt;p&gt;Again, sorry everyone.&lt;/p&gt;
+&lt;h2 id=&quot;what-is-this-new-blog-system&quot;&gt;What is this New Blog &amp;#8220;System&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;This publishing flow isn&amp;#8217;t for everyone and is less flexible than pre-existing static site generators (referred to as SSGs moving forward). For me though, it works. I find it more flexible than most SSGs.&lt;/p&gt;
+&lt;p&gt;There are a couple articles that explain the reasoning behind this system better than I could (plus, why would I repeat the same points?):&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Complete user control&lt;/li&gt;
-&lt;li&gt;Ability to drastically change the desktop UI
+&lt;li&gt;&lt;a href=&quot;http://john.ankarstrom.se/html/&quot;&gt;Writing HTML in HTML&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://blog.steren.fr/2020/my-stack-will-outlive-yours/&quot;&gt;My stack will outlive yours&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;So, what does my blog-posting system look like?&lt;/p&gt;
+&lt;h2 id=&quot;simple-explanation&quot;&gt;Simple Explanation&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;Copy an existing article&amp;#8217;s &lt;code&gt;HTML&lt;/code&gt; file&lt;/li&gt;
+&lt;li&gt;Change file name, edit the page title, heading, post date and comment link&lt;/li&gt;
+&lt;li&gt;Write the new article content&lt;/li&gt;
+&lt;li&gt;Make manual new entry in RSS feed&lt;/li&gt;
+&lt;li&gt;Save changes, push to git repo&lt;/li&gt;
+&lt;li&gt;Sync new file(s) &amp;#47; changes to remote server&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;Pretty simple, eh? Let&amp;#8217;s break things down into greater detail though&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;detailed-explanation&quot;&gt;Detailed Explanation&lt;/h2&gt;
+&lt;h4 id=&quot;text-editor&quot;&gt;Text Editor&lt;/h4&gt;
+&lt;p&gt;I code and write everything exclusively in Sublime Text on my MacBook Air. I know, it&amp;#8217;s not an open source editor, but I love how incredibly fast and intuitive it is. I used VSCode in the past but ended up requiring far too many plugins to get things setup the way I like it. Sublime Text works best for me even right out of the box. (I do need Emmet and theming changes though).&lt;/p&gt;
+&lt;p&gt;I perform the following for a new article:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Gnome, KDE, XFCE, etc.&lt;/li&gt;
+&lt;li&gt;Copy an existing article, ie. &lt;code&gt;blog-post-1.html&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Rename article file name, ie. &lt;code&gt;blog-post-2.html&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Open this newly created file and change:
+&lt;ul&gt;
+&lt;li&gt;page &lt;code&gt;title&lt;/code&gt; tag&lt;/li&gt;
+&lt;li&gt;page &lt;code&gt;h1&lt;/code&gt; heading and top bar text&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;time&lt;/code&gt; tag to match publish date&lt;/li&gt;
+&lt;li&gt;comment &lt;code&gt;mailto:&lt;/code&gt; link url&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Overall good and welcoming communities&lt;/li&gt;
-&lt;li&gt;Extensive documentation for almost everything&lt;/li&gt;
+&lt;li&gt;Start writing content inside the &lt;code&gt;article&lt;/code&gt; section&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;These things make Linux a solid experience overall - but not a &lt;em&gt;great&lt;/em&gt; one&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;what-the-linux-desktop-gets-wrong&quot;&gt;What the Linux Desktop Gets Wrong&lt;/h2&gt;
-&lt;p&gt;If I had to summarize in a word what Linux lacks compared to macOS it would be: &lt;em&gt;cohesion&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;Apple&amp;#8217;s macOS keeps a solid consistency throughout its entire design. Everything looks and feels like it is part of the same system. Which is what a fully-fledged OS &lt;em&gt;should&lt;/em&gt; feel like. The argument can be made that macOS suffers some fragmentation with things like &lt;code&gt;homebrew&lt;/code&gt;, applications directly from developers vs. applications via the Mac App Store.&lt;/p&gt;
-&lt;p&gt;While this is true, I believe Linux desktops suffer far worse in terms of fragmented systems. Users building applications from source, &lt;code&gt;snap&lt;/code&gt; packages, &lt;code&gt;flathub&lt;/code&gt; packages, custom package managers shipped with separate distros, etc. And with this fragmentation comes the constant debates and discussions around which to use and which to avoid.&lt;/p&gt;
-&lt;p&gt;This can become overwhelming for average computer users. This is something we tend to forget in our &amp;#8220;tech hubs&amp;#8221;. Most users want to boot up their machine and get to work. Linux can absolutely do this, but if a user hits a minor snag, then I guarantee they will have more difficulty fixing it compared to an issue found in macOS.&lt;/p&gt;
-&lt;h2 id=&quot;user-experience&quot;&gt;User Experience&lt;/h2&gt;
-&lt;p&gt;Design is important. The user experience will make or break an operating system. This is another issue I&amp;#8217;ve found with many Linux desktops.&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s take Bluetooth for example. It works flawlessly in macOS. I have never had a single device bug-out or refuse to connect. Devices connect almost immediately when pairing. The UI is intuitive and gives the user clear feedback to what the system is doing while pairing, disconnecting, and so on.&lt;/p&gt;
-&lt;p&gt;Now, compare this to an average Linux DE experience - not so seamless. The fact that some distros require you to hop into a terminal in order to properly configure Bluetooth is pretty terrible. Sure, most have GUIs setup similar to that of macOS, but I find myself time and time again needing to pop open that trusty ol&amp;#8217; Terminal. This is fine for someone like myself, but for the average computer user? No way.&lt;/p&gt;
-&lt;p&gt;Looking for another example? Printers. Yes, printers are terrible machines created in the depths of Hell itself, but they are a necessary evil. And again, macOS handles &amp;#8220;plug-and-play&amp;#8221; printer functionality like a champ. Linux on the other hand is a mixed bag. I&amp;#8217;ve had some luck with specific Linux distros working with printers in this &amp;#8220;plug-and-play&amp;#8221; fashion, while others become a battle of attrition[^1]. Let&amp;#8217;s not even begin to talk about wireless &lt;em&gt;only&lt;/em&gt; printers and setting up their proper drivers on Linux.&lt;/p&gt;
-&lt;h2 id=&quot;quality-hardware&quot;&gt;Quality Hardware&lt;/h2&gt;
-&lt;p&gt;Another advantage macOS has over most other Linux desktops is tailored hardware. Apple produces the hardware created to run their own operating system, meaning it was specifically built for that task. Linux desktops are designed to run on almost any[^2] piece of hardware. Though this is fantastic in terms of technological sustainability (avoids dumping old devices when they lose &amp;#8220;support&amp;#8221;) it ends up causing more support issues. Needing to support such a wide range of chip sets and drivers spreads the focus on a streamlined UX a little more thin. It becomes difficult to perfect a cohesive experience user-to-user when some many variables can be different. I should note that some distros[^3] are making fantastic strides in this area but are still far from ideal.&lt;/p&gt;
-&lt;h2 id=&quot;i-still-use-linux&quot;&gt;I Still Use Linux&lt;/h2&gt;
-&lt;p&gt;I might have attacked the overall Linux desktop experience in favor of macOS a little harshly in this post, but it&amp;#8217;s a simple reflection of a individual who has used both extensively. I still work with multiple Linux machines daily. I still &lt;em&gt;like&lt;/em&gt; using Linux.&lt;/p&gt;
-&lt;p&gt;I just don&amp;#8217;t &lt;em&gt;love&lt;/em&gt; it.&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;People swear by CUPS working well on Linux, but this has caused issues for me in the past as well. Unsure why macOS handles it fine&amp;#8230;&lt;/li&gt;
-&lt;li&gt;Depending on the desired distro, resources required, etc.&lt;/li&gt;
-&lt;li&gt;A couple that come to mind are Zorin OS and elementary OS&lt;/li&gt;
-&lt;/ol&gt;</content>
- <link href="https://btxx.org/linux-love"/>
- <id>https://btxx.org/linux-love</id>
- <updated>2022-07-14T10:00:00Z</updated>
- <published>2022-07-14T10:00:00Z</published>
- </entry>
- <entry>
- <title>Installing Custom Fonts on Linux from the Command Line</title>
- <content type="html">&lt;h1 id=&quot;installing-custom-fonts-on-linux-from-the-command-line&quot;&gt;Installing Custom Fonts on Linux from the Command Line&lt;/h1&gt;
-&lt;p&gt;2022-09-20&lt;/p&gt;
-&lt;p&gt;Installing custom fonts is a fairly streamlined feature on operating systems like MacOS and Windows. Linux, on the other hand, struggles to make this workflow &lt;em&gt;easy&lt;/em&gt; for everyday users. Many newcomers tend to get frustrated with using the default &amp;#8220;Fonts&amp;#8221; application managers shipped with most Linux distros.&lt;/p&gt;
-&lt;p&gt;But I&amp;#8217;m here to tell you to &lt;strong&gt;ditch&lt;/strong&gt; those GUI font installers. Let&amp;#8217;s install our custom fonts in the command line!&lt;/p&gt;
-&lt;h2 id=&quot;get-your-font-files&quot;&gt;Get Your Font Files&lt;/h2&gt;
-&lt;p&gt;You can&amp;#8217;t install custom fonts if you don&amp;#8217;t have any. For this tutorial we are going to assume that we are trying to install a typeface set named &lt;code&gt;LinuxFont&lt;/code&gt;. We are going to assume that we have already downloaded and extracted a folder named &lt;code&gt;LinuxFont&lt;/code&gt; into our &lt;code&gt;Downloads&lt;/code&gt; directory.&lt;/p&gt;
-&lt;p&gt;Inside this hypothetical folder is a collection of &lt;code&gt;OTF&lt;/code&gt; (opentype) font files. This will be important information in a moment.&lt;/p&gt;
-&lt;h2 id=&quot;terminal-time&quot;&gt;Terminal Time&lt;/h2&gt;
-&lt;p&gt;Now our goal is to simply copy this new typeface folder into our user font directory. Open Terminal and run the following from your &lt;code&gt;Downloads&lt;/code&gt; directory:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo cp -r LinuxFont &amp;#47;usr&amp;#47;local&amp;#47;share&amp;#47;fonts&amp;#47;opentype&amp;#47;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: If your font files are NOT opentype format, be sure to copy your files to the proper directory (truetype for TTF, etc.)&lt;/p&gt;
-&lt;p&gt;Next we need to make sure we have full read and write privileges for this new folder:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo chmod -R 0777 &amp;#47;usr&amp;#47;local&amp;#47;share&amp;#47;fonts&amp;#47;opentype&amp;#47;LinuxFont
+&lt;p&gt;Once the article is complete, I add a static entry in my &lt;code&gt;feed.xml&lt;/code&gt; and run a crude rsync script. More on that below.&lt;/p&gt;
+&lt;h4 id=&quot;git&quot;&gt;Git&lt;/h4&gt;
+&lt;p&gt;Normally I would pull, commit and push directly in my Terminal - but lately I&amp;#8217;ve been enjoying my time using Sublime Merge. I&amp;#8217;m a sucker for visually appealing GUI applications and Merge is the perfect balance of simplicity and beauty. I recommend it if you haven&amp;#8217;t tried it yet.&lt;/p&gt;
+&lt;h4 id=&quot;hosting&quot;&gt;Hosting&lt;/h4&gt;
+&lt;p&gt;This blog is now hosted through NearlyFreeSpeech. I could opt for a free service like Netlify or DigitalOcean Apps but I feel it&amp;#8217;s important to help support communities that align with my own core beliefs. From their &lt;a href=&quot;https://www.nearlyfreespeech.net/about/&quot;&gt;about page&lt;/a&gt;:&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;NearlyFreeSpeech.NET is about three things: fairness, innovation, and free speech.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;Hard to argue with those principles. If you&amp;#8217;re feeling generous, I&amp;#8217;d greatly appreciate anyone who considers contributing to &lt;a href=&quot;https://www.nearlyfreespeech.net/contribute/tdarb.org&quot;&gt;offset this website&amp;#8217;s hosting costs through NearlyFreeSpeech&lt;/a&gt; (code: tdarb). No money is directly handed to me, it pays NFS directly for hosting fees. Donate if you feel like this humble blog of mine has helped you in any way. No pressure!&lt;/p&gt;
+&lt;p&gt;NFS gives me server access via &lt;code&gt;SSH&lt;/code&gt; (and even &lt;code&gt;SFTP&lt;/code&gt; if I desire) which makes things simple to sync my local files with production code. This is handled via rsync with a basic &lt;code&gt;deploy.sh&lt;/code&gt; script:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;rsync -vrzc --exclude &amp;#39;deploy.sh&amp;#39; --exclude &amp;#39;.git&amp;#39; --delete .&amp;#47; username@my.remote.nfs.server:
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;The last thing we need to do is reload the font cache on our system:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo fc-cache -fv
+&lt;p&gt;The included parameters ensure files with a conflicting checksum are updated on the server, instead of re-syncing all the files every time the script runs. That would be overkill.&lt;/p&gt;
+&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
+&lt;p&gt;I love this new setup. It&amp;#8217;s portable, lightweight, has zero dependencies, and gives me the opportunity to write directly in HTML. Others may find this workflow idiotic or cumbersome but I couldn&amp;#8217;t disagree more. Site wide changes can be made with simple &lt;code&gt;Find&amp;#47;Replace&lt;/code&gt; actions or even whipping up a basic script. Things should be as complex as you wish to make them!&lt;/p&gt;
+&lt;p&gt;At the end of the day, anything that helps you be more efficient and gets you producing more content is a winning strategy in my book. Who knows, this concept could even inspire one random reader out there to do the same.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/my-static-blog-publishing-setup"/>
+ <id>https://btxx.org/posts/my-static-blog-publishing-setup</id>
+ <updated>2022-03-21T10:00:00Z</updated>
+ <published>2022-03-21T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>CSS: Indenting Text</title>
+ <content type="html">&lt;h1 id=&quot;css-indenting-text&quot;&gt;CSS: Indenting Text&lt;/h1&gt;
+&lt;p&gt;2019-04-05&lt;/p&gt;
+&lt;p&gt;A lot of developers tend to do the bare minimum when it comes to implementing proper website typography. This isn&amp;#8217;t an insult - I&amp;#8217;m happy that typography is given any thought at all during development, I just believe more can always be done to improve upon it.&lt;/p&gt;
+&lt;p&gt;In today&amp;#8217;s &lt;em&gt;TypeTip&lt;/em&gt; we&amp;#8217;re going to play around with the &lt;code&gt;text-indent&lt;/code&gt; property, look into when it&amp;#8217;s best to use it and how to implement it properly.&lt;/p&gt;
+&lt;h2 id=&quot;the-property-and-browser-support&quot;&gt;The property and browser support&lt;/h2&gt;
+&lt;p&gt;Browser support is actually pretty great for such a regularly over-looked CSS property. All major desktop and mobile browsers support it:&lt;/p&gt;
+&lt;p&gt;Now that doesn&amp;#8217;t mean you should just slap this property on all your type elements and call it a day - there are specific use cases for &lt;code&gt;text-indent&lt;/code&gt; and some basic rules to follow:&lt;/p&gt;
+&lt;h2 id=&quot;use-cases&quot;&gt;Use Cases&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;Increasing readability of large text blocks that would otherwise overwhelm the reader&lt;/li&gt;
+&lt;li&gt;Replicating book or report typography layouts&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;basic-rules&quot;&gt;Basic Rules&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;Best to set this property on inner type children only - meaning items like &lt;code&gt;p&lt;/code&gt; or &lt;code&gt;blockquotes&lt;/code&gt; instead of main headings&lt;/li&gt;
+&lt;li&gt;When used on paragraph tags it&amp;#8217;s best to target only &lt;code&gt;p&lt;/code&gt; elements that directly follow a sibling tag (see &amp;#8220;The CSS&amp;#8221; below)&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
+&lt;p&gt;Adding the property is extremely trivial, all you need is the following:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Best practice for paragraphs *&amp;#47;
+p + p {
+ text-indent: 1rem; &amp;#47;* whatever you want *&amp;#47;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it! You should now have access to your custom typeface in all your applications system wide.&lt;/p&gt;</content>
- <link href="https://btxx.org/lf"/>
- <id>https://btxx.org/lf</id>
- <updated>2022-09-20T10:00:00Z</updated>
- <published>2022-09-20T10:00:00Z</published>
- </entry>
- <entry>
- <title>How to "FLOSS" as a Web Designer</title>
- <content type="html">&lt;h1 id=&quot;how-to-floss-as-a-web-designer&quot;&gt;How to &amp;#8220;FLOSS&amp;#8221; as a Web Designer&lt;/h1&gt;
-&lt;p&gt;2020-02-07&lt;/p&gt;
-&lt;p&gt;I have a profound respect for the open source community. I most likely wouldn&amp;#8217;t have the skills or knowledge I do today with it. Unfortunately, when I was just starting out in &amp;#8220;web dev&amp;#8221; some 10 years ago, proprietary software was the main go-to for a newbie designer. &lt;/p&gt;
-&lt;p&gt;Dreamweaver. Fireworks (those were the days). Photoshop. Illustrator. Adobe products basically had a stranglehold on the web design community. Any company you joined at the time more than likely required you to know and use these tools, making it hard for designers to try out new software for their day-to-day needs. Not to mention the &lt;em&gt;cost&lt;/em&gt; associated with these products.&lt;/p&gt;
-&lt;p&gt;Fast forward a handful of years and we have a lot more options in terms of design &amp;#47; development software (whether Windows, Mac or Linux). UI design tools like Figma, Sketch and Adobe XD have since popped up and become the most popular among designers. New text editors and terminals hit the scene, fighting for developer attention (Atom, Sublime Text, VSCode, LightTable, iTerm2, Hyper, etc.).&lt;/p&gt;
-&lt;p&gt;But what if a designer wanted to go completely FLOSS?&lt;/p&gt;
-&lt;p&gt;Below you will find my own personal list of FLOSS applications I use across design, development and simple document management:&lt;/p&gt;
-&lt;h3 id=&quot;web-browsers&quot;&gt;Web Browsers&lt;/h3&gt;
+&lt;h2 id=&quot;lets-see-it-in-action&quot;&gt;Let&amp;#8217;s see it in action&lt;/h2&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/OGXLEd/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/ndenting-text-with-css"/>
+ <id>https://btxx.org/posts/ndenting-text-with-css</id>
+ <updated>2019-04-05T10:00:00Z</updated>
+ <published>2019-04-05T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Using Netlify for Dynamic URL Redirects</title>
+ <content type="html">&lt;h1 id=&quot;using-netlify-for-dynamic-url-redirects&quot;&gt;Using Netlify for Dynamic URL Redirects&lt;/h1&gt;
+&lt;p&gt;2021-12-03&lt;/p&gt;
+&lt;p&gt;With the &lt;a href=&quot;/minor-website-changes/&quot;&gt;recent domain switch&lt;/a&gt; that took place on this website, I needed to have a dependable setup to forward my old domain URLs to the new one. While using something like &amp;#8220;URL forwarding&amp;#8221; through your domain provider could work, it doesn&amp;#8217;t natively support &lt;em&gt;dynamic&lt;/em&gt; linking. Let me explain using a basic example:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Firefox &lt;a href=&quot;https://www.mozilla.org/en-CA/firefox/&quot;&gt;https:&amp;#47;&amp;#47;www.mozilla.org&amp;#47;en-CA&amp;#47;firefox&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Brave &lt;a href=&quot;https://brave.com/&quot;&gt;https:&amp;#47;&amp;#47;brave.com&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;A user clicks on a link that targets a post on your old domain: &lt;code&gt;olddomain.com&amp;#47;random-post&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;You want that link to forward using the same permalink structure: &lt;code&gt;newdomain.com&amp;#47;random-post&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;&amp;#8220;URL forwarding&amp;#8221; through your domain provider &lt;strong&gt;does not&lt;/strong&gt; support this&lt;/li&gt;
&lt;/ul&gt;
-&lt;h3 id=&quot;visual-design&quot;&gt;Visual Design&lt;/h3&gt;
+&lt;p&gt;Simple stuff. So, let&amp;#8217;s breakdown how to easily set this up on Netlify &lt;em&gt;for free&lt;/em&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;setting-up-netlify&quot;&gt;Setting Up Netlify&lt;/h2&gt;
&lt;ul&gt;
-&lt;li&gt;GIMP &lt;a href=&quot;https://www.gimp.org/&quot;&gt;https:&amp;#47;&amp;#47;www.gimp.org&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Inkscape &lt;a href=&quot;https://inkscape.org/&quot;&gt;https:&amp;#47;&amp;#47;inkscape.org&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Pencil &lt;a href=&quot;https://pencil.evolus.vn/&quot;&gt;https:&amp;#47;&amp;#47;pencil.evolus.vn&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h3 id=&quot;code-text-editors&quot;&gt;Code &amp;#47; Text Editors&lt;/h3&gt;
+&lt;li&gt;&lt;p&gt;Create an account (or login to an existing one) and setup a new site[^1]&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Change your &amp;#8220;old&amp;#8221; domain name nameservers to match Netlify&amp;#8217;s (normally done through your domain register)
&lt;ul&gt;
-&lt;li&gt;Brackets &lt;a href=&quot;http://brackets.io/&quot;&gt;http:&amp;#47;&amp;#47;brackets.io&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Visual Studio Code &lt;a href=&quot;https://github.com/Microsoft/vscode&quot;&gt;https:&amp;#47;&amp;#47;github.com&amp;#47;Microsoft&amp;#47;vscode&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Atom &lt;a href=&quot;https://atom.io/&quot;&gt;https:&amp;#47;&amp;#47;atom.io&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;dns1.p03.nsone.net&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;dns2.p03.nsone.net&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;dns3.p03.nsone.net&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;dns4.p03.nsone.net&lt;/code&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Back in Netlify: under &lt;strong&gt;Domain Settings&lt;/strong&gt; you need to add your custom &amp;#8220;old&amp;#8221; domain under the &lt;strong&gt;Custom domains&lt;/strong&gt; section under &lt;strong&gt;Domain management&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Lastly, add the following content inside a &lt;code&gt;_redirects&lt;/code&gt; file (no extension) to your website content&amp;#47;build (changing to your own domains, of course)&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://olddomain.com/*&quot;&gt;https:&amp;#47;&amp;#47;olddomain.com&amp;#47;*&lt;/a&gt; &lt;a href=&quot;https://newdomain.com/:splat&quot;&gt;https:&amp;#47;&amp;#47;newdomain.com&amp;#47;:splat&lt;/a&gt; 301!&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;h3 id=&quot;terminal-shells&quot;&gt;Terminal Shells&lt;/h3&gt;
+&lt;p&gt;That&amp;#8217;s it! Now Netlify will dynamically forward all your pre-existing URLs from your old domain to the new one. No pesky &lt;code&gt;.htaccess&lt;/code&gt; files or running your own basic web server(s)!&lt;/p&gt;
+&lt;p&gt;Hopefully this helps others trying to dynamically redirect their domains without the headache.&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;I normally set this up through Github &amp;#47; git hosting&lt;/li&gt;
+&lt;/ol&gt;</content>
+ <link href="https://btxx.org/posts/netlify-urls"/>
+ <id>https://btxx.org/posts/netlify-urls</id>
+ <updated>2021-12-03T10:00:00Z</updated>
+ <published>2021-12-03T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>News Websites Are Dumpster Fires</title>
+ <content type="html">&lt;h1 id=&quot;news-websites-are-dumpster-fires&quot;&gt;News Websites Are Dumpster Fires&lt;/h1&gt;
+&lt;p&gt;2019-05-29&lt;/p&gt;
+&lt;p&gt;Online news outlets are a dying breed and many users have decided to consume information elsewhere. Why? Because the news industry has become a cesspool of anti-consumer and blackhat practices that has eroded trust for the sake of money.&lt;/p&gt;
+&lt;h2 id=&quot;what-news-sites-get-wrong&quot;&gt;What news sites get wrong&lt;/h2&gt;
+&lt;p&gt;I could write up an entire essay about all the shady practices that &lt;em&gt;most&lt;/em&gt; news sites are guilty of, but here are just a few top level issues:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Terminus &lt;a href=&quot;https://eugeny.github.io/terminus/&quot;&gt;https:&amp;#47;&amp;#47;eugeny.github.io&amp;#47;terminus&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Hyper &lt;a href=&quot;https://hyper.is/&quot;&gt;https:&amp;#47;&amp;#47;hyper.is&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Clickbait headings with misleading information&lt;/li&gt;
+&lt;li&gt;Disabling the user from reading if ad-block is present&lt;/li&gt;
+&lt;li&gt;Tracking the user with 3rd party scripts&lt;/li&gt;
+&lt;li&gt;Taking massive performance hits (specifically on mobile due to huge JavaScript blocks)&lt;/li&gt;
+&lt;li&gt;Pop-up ads&lt;/li&gt;
+&lt;li&gt;Fixed headers or footers which leads to harder readability &amp;#47; accidental element interactions&lt;/li&gt;
&lt;/ul&gt;
-&lt;h3 id=&quot;documents&quot;&gt;Documents&lt;/h3&gt;
+&lt;h2 id=&quot;but-they-need-ad-revenue&quot;&gt;But they need ad revenue!&lt;/h2&gt;
+&lt;p&gt;If your business is solely dependent on tracking scripts, tricking users with clickbait titles and using archaic ads - then you&amp;#8217;re destined to fail regardless. These practices create an unsafe and unhealthy web for everyday users - not to mention most browsers have announced that future updates &lt;a href=&quot;https://support.mozilla.org/en-US/kb/content-blocking&quot;&gt;will be blocking ads by default&lt;/a&gt;. &lt;em&gt;News outlets need to adapt or die&lt;/em&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;whats-the-solution&quot;&gt;What&amp;#8217;s the solution?&lt;/h2&gt;
+&lt;p&gt;I don&amp;#8217;t have a &lt;em&gt;fix all&lt;/em&gt; band-aid to replace current revenue streams for news websites. I&amp;#8217;m sure someone much smarter than I can come up with better ideas, but just off the top of my head:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;LibreOffice &lt;a href=&quot;https://www.libreoffice.org/&quot;&gt;https:&amp;#47;&amp;#47;www.libreoffice.org&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Switch over to a monthly subscription plan (if no one pays for it maybe you weren&amp;#8217;t as useful of a source as you thought)&lt;/li&gt;
+&lt;li&gt;Partner with brands to create sponsored articles (without ruining the user experience of course)&lt;/li&gt;
+&lt;li&gt;Place a larger emphasis on user donations or promotions&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;nothing-special&quot;&gt;Nothing special&lt;/h2&gt;
-&lt;p&gt;This small list I&amp;#8217;ve compiled isn&amp;#8217;t earth-shattering by any means, but I wanted to put this out into the world for any newbie designer that might be starting out. You don&amp;#8217;t need to spend a ridiculous amount of money just to get your feet wet in the design industry. By using the tools listed above, beginners can get a solid head-start on creating for the web without burning a hole in their pocket. &lt;/p&gt;</content>
- <link href="https://btxx.org/learning-to-floss"/>
- <id>https://btxx.org/learning-to-floss</id>
- <updated>2020-02-07T10:00:00Z</updated>
- <published>2020-02-07T10:00:00Z</published>
- </entry>
- <entry>
- <title>The Lazy Developer's Dark Mode</title>
- <content type="html">&lt;h1 id=&quot;the-lazy-developers-dark-mode&quot;&gt;The Lazy Developer&amp;#8217;s Dark Mode&lt;/h1&gt;
-&lt;p&gt;2021-04-12&lt;/p&gt;
-&lt;p&gt;After recently jumping back to Jekyll for my personal blog, I decided to take a closer look at how I was supporting &lt;code&gt;dark mode&lt;/code&gt; for my visitors. I was using the proper CSS query to target those who had system-wide dark mode enabled, but I found that the code had far too many caveats and targeted too many custom classes.&lt;/p&gt;
-&lt;p&gt;So I thought to myself, &amp;#8220;There &lt;em&gt;has&lt;/em&gt; to be a simpler way&amp;#8230;&amp;#8221;&lt;/p&gt;
-&lt;h2 id=&quot;introducing-dark-mode---the-lazy-way&quot;&gt;Introducing Dark Mode - The Lazy Way&lt;/h2&gt;
-&lt;p&gt;Here is the default dark mode for my current website in all it&amp;#8217;s glory:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@media (prefers-color-scheme: dark) {
- body{background:#2d2d2d;filter:invert(1);}
- img,.cp_embed_wrapper,pre{filter:invert(1);}
-}
+&lt;h2 id=&quot;the-news-shouldnt-be-spam&quot;&gt;The News Shouldn&amp;#8217;t be Spam&lt;/h2&gt;
+&lt;p&gt;Most traffic flowing into news websites are there for one thing: &lt;em&gt;the content&lt;/em&gt;. News outlets should not be spamming their main revenue supply (&lt;strong&gt;the users&lt;/strong&gt;) or misleading people with false information.&lt;/p&gt;
+&lt;p&gt;If you&amp;#8217;re a regular consumer of news and you happen to run across a platform that is guilty of any of these practices, shoot them an email explaining why you won&amp;#8217;t be returning to their website (unless they change their ways). These anti-consumer practices will only stop when these organizations start losing money.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/news-websites-are-dumpster-fires"/>
+ <id>https://btxx.org/posts/news-websites-are-dumpster-fires</id>
+ <updated>2019-05-29T10:00:00Z</updated>
+ <published>2019-05-29T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>RE: Creating a Simple HTML/CSS Notice Box</title>
+ <content type="html">&lt;h1 id=&quot;re-creating-a-simple-htmlcss-notice-box&quot;&gt;RE: Creating a Simple HTML&amp;#47;CSS Notice Box&lt;/h1&gt;
+&lt;p&gt;2022-09-22&lt;/p&gt;
+&lt;p&gt;I recently read Kev Quirk&amp;#8217;s post, &lt;a href=&quot;https://kevquirk.com/how-to-create-a-simple-html-css-notice-box/&quot;&gt;How to Create a Simple HTML&amp;#47;CSS Notice Box&lt;/a&gt; and loved the simplicity of it. I&amp;#8217;m a sucker for using pseudo elements in creative ways but still managing to make them useful. Of course, this got me thinking as to whether or not the same style of box could be achieved &lt;em&gt;without&lt;/em&gt; the use of static, pseudo elements&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;bad-semantics&quot;&gt;Bad Semantics&lt;/h2&gt;
+&lt;p&gt;I need to make it clear right away: &lt;strong&gt;these implementations are not semantic&lt;/strong&gt;. They are valid HTML, but I am technically using these tags incorrectly. &lt;em&gt;You have been warned!&lt;/em&gt;&lt;/p&gt;
+&lt;h2 id=&quot;setting-fieldsets&quot;&gt;Setting Fieldsets&lt;/h2&gt;
+&lt;p&gt;The first approach is to wrap everything inside HTML &lt;code&gt;fieldset&lt;/code&gt; tags:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;fieldset&amp;#62;
+ &amp;#60;legend&amp;#62;Notice&amp;#60;&amp;#47;legend&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum, dolor sit amet consectetur adipisicing elit. Totam nihil velit vitae sed beatae earum assumenda deleniti, inventore repellendus, sequi distinctio delectus porro explicabo quidem hic quo quasi voluptas temporibus.&amp;#60;&amp;#47;p&amp;#62;
+&amp;#60;&amp;#47;fieldset&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Not much to look at, eh? Well, let&amp;#8217;s still break it down.&lt;/p&gt;
-&lt;p&gt;First we set the &lt;code&gt;body&lt;/code&gt; to use a nice dark background color (avoid using &lt;code&gt;#000000&lt;/code&gt; directly since that can cause some minor eye strain). Next we tell the browser to invert all the child elements by using &lt;code&gt;filter:invert(1)&lt;/code&gt;. At this point, you could consider your work done - but there are some edge case elements&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;images-codepens-code---oh-my&quot;&gt;Images, CodePens &amp;#38; Code - Oh My!&lt;/h2&gt;
-&lt;p&gt;Most of my articles on this site will include either an image(s), embedded CodePen examples or code snippets directly in the page. For these elements we probably &lt;em&gt;don&amp;#8217;t&lt;/em&gt; want to invert their color&amp;#47;text etc. All we need to do is run the filter property on these a second time (&lt;em&gt;after&lt;/em&gt; the main &lt;code&gt;body&lt;/code&gt; attribute):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@media (prefers-color-scheme: dark) {
- img,.cp_embed_wrapper,pre{filter:invert(1);}
+&lt;p&gt;Then you can include minor styling to closely match the design of Kev&amp;#8217;s notice box:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;fieldset {
+ border: 3px solid;
+ font-family: sans-serif;
+ padding: 30px 10px 10px;
+ position: relative;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Of course, YMMV depending on what other custom elements you want to avoid inverting.&lt;/p&gt;
-&lt;h2 id=&quot;minor-caveats&quot;&gt;Minor Caveats&lt;/h2&gt;
-&lt;p&gt;I should mention that since my website doesn&amp;#8217;t use any custom coloring for anchor links, inverting &lt;code&gt;ahref&lt;/code&gt; elements works out of the box. Certain projects might still require some custom overrides if the inverted version of a certain custom color looks poor.&lt;/p&gt;
-&lt;p&gt;That&amp;#8217;s it - enjoy being lazy!&lt;/p&gt;</content>
- <link href="https://btxx.org/lazy-dev-dark-mode"/>
- <id>https://btxx.org/lazy-dev-dark-mode</id>
- <updated>2021-04-12T10:00:00Z</updated>
- <published>2021-04-12T10:00:00Z</published>
- </entry>
- <entry>
- <title>ThriftyName: $5 Brand Names</title>
- <content type="html">&lt;h1 id=&quot;thriftyname-5-brand-names&quot;&gt;ThriftyName: $5 Brand Names&lt;/h1&gt;
-&lt;p&gt;2021-02-25&lt;/p&gt;
-&lt;p&gt;It&amp;#8217;s been a while since I&amp;#8217;ve written anything on this blog, but for good reason - &lt;strong&gt;I&amp;#8217;ve been working on a handful of side projects&lt;/strong&gt;. I plan to drip-feed release these projects over time, but for today I&amp;#8217;m announcing &lt;a href=&quot;https://thrifty.name&quot;&gt;ThriftyName&lt;/a&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;what-is-thriftyname&quot;&gt;What is ThriftyName?&lt;/h2&gt;
-&lt;p&gt;In case this post title wasn&amp;#8217;t clear enough (or you avoided going to the product site itself) ThriftyName is a place where indie devs, start-ups or entrepreneurs can go to get a custom brand name for &lt;strong&gt;just $10&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;This &amp;#8220;service&amp;#8221; started out as an almost gimmicky joke in my head, but once I began building out the main website I realized that this could be quite useful for cash-strapped indies. After all, not all developers &lt;em&gt;love&lt;/em&gt; to sit around wasting precious time thinking about product names, when they could use that time to &lt;em&gt;build their product&lt;/em&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;learn-more&quot;&gt;Learn More&lt;/h2&gt;
-&lt;p&gt;If you&amp;#8217;re really interested in the reasoning behind making this project, check out the &lt;a href=&quot;https://thrifty.name/#about&quot;&gt;official about page on the site itself&lt;/a&gt;. I go into a little more depth about my thought process.&lt;/p&gt;
-&lt;h2 id=&quot;more-side-projects-incoming&quot;&gt;More Side Projects Incoming&amp;#8230;&lt;/h2&gt;
-&lt;p&gt;Like I said at the beginning of the post, keep a look out for my other side projects that I&amp;#8217;ll be rolling out slowing. I&amp;#8217;m still not sure of the best &amp;#8220;method&amp;#8221; to do this (release one every week? every month?) - but I&amp;#8217;ll figure it out as I go along.&lt;/p&gt;
-&lt;p&gt;Thanks for reading!&lt;/p&gt;</content>
- <link href="https://btxx.org/launching-thriftyname"/>
- <id>https://btxx.org/launching-thriftyname</id>
- <updated>2021-02-25T10:00:00Z</updated>
- <published>2021-02-25T10:00:00Z</published>
- </entry>
- <entry>
- <title>Keynote Slides with Pure CSS</title>
- <content type="html">&lt;h1 id=&quot;keynote-slides-with-pure-css&quot;&gt;Keynote Slides with Pure CSS&lt;/h1&gt;
-&lt;p&gt;2020-06-22&lt;/p&gt;
-&lt;p&gt;There are a great deal of options available on the web and built into most operating systems when you need to create presentation &amp;#47; keynote slides. You could use native software like LibremOffice Impress, Powerpoint, Apple&amp;#8217;s Keynote, etc. You could also decide to use preexisting web-based apps like Google Slides or an open source project such as RevealJS. All of these are good options.&lt;/p&gt;
-&lt;p&gt;But thinking more about how overly complex these apps are implemented, it got me wondering if I could quickly code up a presentation slide framework with pure CSS and barely any code.&lt;/p&gt;
-&lt;p&gt;This is what I came up with:&lt;/p&gt;
-&lt;h2 id=&quot;the-demo&quot;&gt;The Demo&lt;/h2&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/jOWBJZb&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;Yes, I know this is &lt;em&gt;ugly&lt;/em&gt;, but this was created as a barebones skeleton for others to build upon. The demo uses a simple set of &lt;code&gt;radio&lt;/code&gt; inputs that correspond to their own individual &lt;code&gt;slide&lt;/code&gt; element. The framework looks at the currently &lt;code&gt;checked&lt;/code&gt; input, then changes the &lt;code&gt;opacity&lt;/code&gt; and &lt;code&gt;z-index&lt;/code&gt; of its corresponding slide item. Pretty straightforward stuff!&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s break down each piece:&lt;/p&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;slider&quot;&amp;#62;
- &amp;#60;input type=&quot;radio&quot; name=&quot;pagination&quot; value=&quot;1&quot; checked&amp;#62;
- &amp;#60;input type=&quot;radio&quot; name=&quot;pagination&quot; value=&quot;2&quot;&amp;#62;
- &amp;#60;input type=&quot;radio&quot; name=&quot;pagination&quot; value=&quot;3&quot;&amp;#62;
- &amp;#60;input type=&quot;radio&quot; name=&quot;pagination&quot; value=&quot;4&quot;&amp;#62;
- &amp;#60;input type=&quot;radio&quot; name=&quot;pagination&quot; value=&quot;5&quot;&amp;#62;
-
- &amp;#60;div class=&quot;slide&quot;&amp;#62;
- &amp;#60;h2&amp;#62;Slide 1&amp;#60;&amp;#47;h2&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;slide&quot;&amp;#62;
- &amp;#60;h2&amp;#62;Slide 2&amp;#60;&amp;#47;h2&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;slide&quot;&amp;#62;
- &amp;#60;h2&amp;#62;Slide 3&amp;#60;&amp;#47;h2&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;slide&quot;&amp;#62;
- &amp;#60;h2&amp;#62;Slide 4&amp;#60;&amp;#47;h2&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;slide&quot;&amp;#62;
- &amp;#60;h2&amp;#62;Slide 5&amp;#60;&amp;#47;h2&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;There isn&amp;#8217;t a whole lot going on here. We are just including a set of &lt;code&gt;radio&lt;/code&gt; inputs (based on how many slides are desired) along with their corresponding &lt;code&gt;slide&lt;/code&gt; class elements. You might notice we don&amp;#8217;t do anything to specifically target each individual slide item - you&amp;#8217;ll see why we don&amp;#8217;t need to in the CSS section!&lt;/p&gt;
-&lt;h2 id=&quot;the-css-scss&quot;&gt;The CSS (SCSS)&lt;/h2&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Basic default styles *&amp;#47;
-.slider {
- height: 100%;
+fieldset legend {
+ background: #AACCFF;
+ border-bottom: 3px solid;
+ border-right: 3px solid;
left: 0;
- position: fixed;
+ margin: 0;
+ padding: 5px 10px;
+ position: absolute;
top: 0;
- width: 100%;
-
- .slide {
- height: 100%;
- opacity: 0;
- position: absolute;
- width: 100%;
- z-index: -2;
- }
-}
-
-input[type=&quot;radio&quot;] { cursor: pointer; }
-
-&amp;#47;* Target slide item based on currently checked radio *&amp;#47;
-input[type=&quot;radio&quot;]:nth-of-type(1):checked ~ .slide:nth-of-type(1),
-input[type=&quot;radio&quot;]:nth-of-type(2):checked ~ .slide:nth-of-type(2),
-input[type=&quot;radio&quot;]:nth-of-type(3):checked ~ .slide:nth-of-type(3),
-input[type=&quot;radio&quot;]:nth-of-type(4):checked ~ .slide:nth-of-type(4),
-input[type=&quot;radio&quot;]:nth-of-type(5):checked ~ .slide:nth-of-type(5) {
- opacity: 1;
- z-index: 1;
+ text-transform: uppercase;
}
-
-&amp;#47;* Individual slide styling *&amp;#47;
-.slide:nth-of-type(1) { background: dodgerblue; }
-.slide:nth-of-type(2) { background: crimson; }
-.slide:nth-of-type(3) { background: rebeccapurple; }
-.slide:nth-of-type(4) { background: goldenrod; }
-.slide:nth-of-type(5) { background: pink; }
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Again, not much to see here. We use CSS to look down through the DOM for each &lt;code&gt;radio&lt;/code&gt; elements slide &amp;#8220;partner&amp;#8221;. We do this by targeting the &lt;code&gt;nth-of-type&lt;/code&gt; on both elements. Simple stuff.&lt;/p&gt;
-&lt;p&gt;Some drawbacks to this approach:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;You need to manually target each new slide you add (color, styling, content, etc.)&lt;/li&gt;
-&lt;li&gt;Lack of animations might require extra work to implement (maybe 3rd party libraries- ke AOS?)&lt;/li&gt;
-&lt;li&gt;Probably won&amp;#8217;t be best for extremely long&amp;#47;complex presentation slides&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;That&amp;#8217;s it! Hope you enjoy playing around with it.&lt;/p&gt;</content>
- <link href="https://btxx.org/keynote-slides-css"/>
- <id>https://btxx.org/keynote-slides-css</id>
- <updated>2020-06-22T10:00:00Z</updated>
- <published>2020-06-22T10:00:00Z</published>
- </entry>
- <entry>
- <title>Using Parent Selectors in CSS</title>
- <content type="html">&lt;h1 id=&quot;using-parent-selectors-in-css&quot;&gt;Using Parent Selectors in CSS&lt;/h1&gt;
-&lt;p&gt;2018-12-19&lt;/p&gt;
-&lt;p&gt;I recently saw a Twitter thread posted by Tommy Hodgins on implementing highly requested styling features in CSS with only a minimal amount of JavaScript. Many of his examples are great, but the &lt;code&gt;parent&lt;/code&gt; selector instantly peaked my interest.&lt;/p&gt;
-&lt;p&gt;Being able to target an element&amp;#8217;s parent always becomes a minor annoyance (since vanilla CSS does not support it) - so you always end up having to do something a little ugly like:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;var el = document.getElementById(&amp;#39;custom-div&amp;#39;);
-var parent = el.closest(selectors);
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;And then add any custom styling to the parent element directly in JavaScript - or toggle a class which opens a whole other can of worms.&lt;/p&gt;
-&lt;h2 id=&quot;save-the-day-with-jsincss-parent-selector-and-qaffeine&quot;&gt;Save the day with jsincss-parent-selector and qaffeine&lt;/h2&gt;
-&lt;p&gt;By using the &lt;code&gt;jsincss-parent-selector&lt;/code&gt; and &lt;code&gt;qaffeine&lt;/code&gt; plugins we can target an element&amp;#8217;s parent in CSS without breaking a sweat. Let&amp;#8217;s break it down:&lt;/p&gt;
-&lt;h3 id=&quot;import-the-packages&quot;&gt;Import the packages&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;npm install jsincss-parent-selector qaffeine
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;html-ex.-index.html&quot;&gt;HTML (ex. index.html)&lt;/h3&gt;
-&lt;p&gt;Now we add our very simple HTML skeleton:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;!doctype html&amp;#62;
-&amp;#60;html&amp;#62;
- &amp;#60;head&amp;#62;
- &amp;#60;link rel=&quot;stylesheet&quot; href=&quot;output.css&quot;&amp;#62;
- &amp;#60;&amp;#47;head&amp;#62;
- &amp;#60;body&amp;#62;
- &amp;#60;header&amp;#62;
- &amp;#60;main&amp;#62;
- &amp;#60;h2&amp;#62;This is a header&amp;#60;&amp;#47;h2&amp;#62;
- &amp;#60;&amp;#47;main&amp;#62;
- &amp;#60;&amp;#47;header&amp;#62;
- &amp;#60;&amp;#47;body&amp;#62;
- &amp;#60;script src=output.js&amp;#62;&amp;#60;&amp;#47;script&amp;#62;
-&amp;#60;&amp;#47;html&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;javascript-ex.-input.js&quot;&gt;JavaScript (ex. input.js)&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;const qaffeine = require(&amp;#39;qaffeine&amp;#39;)
-const parent = require(&amp;#39;jsincss-parent-selector&amp;#39;)
-
-qaffeine(
-{
- stylesheet: {},
- rules: {
- parent
- }
-},
-&amp;#39;input.css&amp;#39;,
-&amp;#39;output.js&amp;#39;,
-&amp;#39;output.css&amp;#39;
-)
+&lt;h2 id=&quot;the-devil-is-in-the-details&quot;&gt;The Devil is in the Details&lt;/h2&gt;
+&lt;p&gt;The other option is utilizing the HTML &lt;code&gt;details&lt;/code&gt; tag:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;details open&amp;#62;
+ &amp;#60;summary&amp;#62;Notice&amp;#60;&amp;#47;summary&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Assumenda sequi esse reprehenderit facilis aperiam labore optio minus doloremque nesciunt! Voluptatem esse tempore asperiores recusandae rerum facere, reiciendis officia repudiandae similique?&amp;#60;&amp;#47;p&amp;#62;
+&amp;#60;&amp;#47;details&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;css-ex.-input.css&quot;&gt;CSS (ex. input.css)&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;header {
- display: block;
+&lt;p&gt;You&amp;#8217;ll obviously want to include the &lt;code&gt;open&lt;/code&gt; attribute to avoid users needing to toggle the content manually (unless that is your desired UX). Then add similar styling options to match the &lt;code&gt;fieldset&lt;/code&gt; example:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;details {
+ border: 3px solid;
+ font-family: sans-serif;
+ padding: 0 10px 10px;
}
-main[--js-parent] {
- background: blue;
+details summary {
+ background: #AACCFF;
+ border-bottom: 3px solid;
+ border-right: 3px solid;
+ display: inline-block;
+ margin-left: -10px;
+ padding: 5px 10px;
+ text-transform: uppercase;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then simply run &lt;code&gt;node&lt;/code&gt; against your &lt;code&gt;js&lt;/code&gt; file. That&amp;#8217;s it! I would also suggest checking out Tommy&amp;#8217;s video covering this topic if you prefer to follow along.&lt;/p&gt;</content>
- <link href="https://btxx.org/jsincss-parent-selector"/>
- <id>https://btxx.org/jsincss-parent-selector</id>
- <updated>2018-12-19T10:00:00Z</updated>
- <published>2018-12-19T10:00:00Z</published>
- </entry>
- <entry>
- <title>Transferring Media from macOS to a Jellyfin Server (Raspberry Pi 4)</title>
- <content type="html">&lt;h1 id=&quot;transferring-media-from-macos-to-a-jellyfin-server-raspberry-pi-4&quot;&gt;Transferring Media from macOS to a Jellyfin Server (Raspberry Pi 4)&lt;/h1&gt;
-&lt;p&gt;2022-03-12&lt;/p&gt;
-&lt;p&gt;I run a personal media server using Jellyfin on a Raspberry Pi 4 in my home. It&amp;#8217;s pretty great and works well across most devices - Google TV, iOS and Android devices, Chromebooks, etc.&lt;/p&gt;
-&lt;p&gt;The only small headache is adding content (ie. audio, videos) to the existing hard drive that Jellyfin reads from. The last thing you want to do is connect a keyboard and monitor to your Pi to add a few files. Especially if your Pi is setup like mine and buried at the back of a hidden cabinet.&lt;/p&gt;
-&lt;p&gt;More annoying would be the need to remove the hard drive itself, connect it to your device that has the new files you wish to transfer and then port them over. Big ol&amp;#8217; pass on that system.&lt;/p&gt;
-&lt;h2 id=&quot;sshscp-to-the-rescue&quot;&gt;SSH&amp;#47;SCP to the Rescue&lt;/h2&gt;
-&lt;p&gt;&lt;em&gt;Important&lt;/em&gt;: before we begin, I should mention that this article assumes the following:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;The files you plan to transfer from are on a macOS device&lt;/li&gt;
-&lt;li&gt;You have setup Jellyfin on your Raspberry Pi device&lt;/li&gt;
-&lt;li&gt;SSH is enabled and accessible on the Pi (across your local network)&lt;/li&gt;
-&lt;li&gt;The Jellyfin server&amp;#8217;s hard drive is mounted in the root directory via something like &lt;code&gt;&amp;#47;mnt&lt;/code&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Good? Moving on then&amp;#8230;&lt;/p&gt;
-&lt;p&gt;Open your terminal of choice and use the following command:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;scp movie.mp4 pi_user_name@PI_IP_ADDRESS:&amp;#47;mnt&amp;#47;movies&amp;#47;movie.mp4
+&lt;p&gt;Important to note: you can hide the default &amp;#8220;arrow toggle&amp;#8221; on &lt;code&gt;summary&lt;/code&gt; elements by including the following:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;details &amp;#62; summary {
+list-style: none;
+}
+details &amp;#62; summary::-webkit-details-marker {
+display: none;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;ol&gt;
-&lt;li&gt;&lt;code&gt;movie.mp4&lt;/code&gt; is the file in the current macOS directory we plan to copy over&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;pi_user_name&lt;/code&gt; is the username you setup on your Raspberry Pi&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;PI_IP_ADDRESS&lt;/code&gt; is, of course, your Pi&amp;#8217;s IP address&lt;/li&gt;
-&lt;li&gt;The appended &lt;code&gt;:&amp;#47;mnt&amp;#47;movies&amp;#47;movie.mp4&lt;/code&gt; is the directory your Jellyfin server uses to pull-in media&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;You&amp;#8217;ll be prompted for the user password. Once entered the file will begin copying over to your remote Jellyfin server. That&amp;#8217;s it! Although, I should mention a little bonus feature that you should always have in your back pocket, since Jellyfin can sometimes be picky with media file formats:&lt;/p&gt;
-&lt;h2 id=&quot;converting-media-files-with-ease&quot;&gt;Converting Media Files with Ease&lt;/h2&gt;
-&lt;p&gt;This is where your new best friend &lt;code&gt;FFmpeg&lt;/code&gt; comes into your life (if they weren&amp;#8217;t there already).&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Download and install &lt;code&gt;FFmpeg&lt;/code&gt; &amp;#8211;&amp;#62; &lt;a href=&quot;https://www.ffmpeg.org/download.html&quot;&gt;ffmpeg.org&amp;#47;download.html&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Now navigate to the directory containing the media file you wish to convert via your Terminal and run the following command:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;ffmpeg -i input.mp4 output.mkv
+&lt;h2 id=&quot;seeing-is-believing&quot;&gt;Seeing is Believing&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve put together two versions of each implementation (one custom designed and one using default browser styling). You can check them out in the CodePen below:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/jOxLdQP&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/notice"/>
+ <id>https://btxx.org/posts/notice</id>
+ <updated>2022-09-22T10:00:00Z</updated>
+ <published>2022-09-22T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Obvious Javascript 'Injection' Fallback</title>
+ <content type="html">&lt;h1 id=&quot;obvious-javascript-injection-fallback&quot;&gt;Obvious Javascript &amp;#8216;Injection&amp;#8217; Fallback&lt;/h1&gt;
+&lt;p&gt;2020-12-04&lt;/p&gt;
+&lt;p&gt;Sometimes websites and web apps might require content to be &amp;#8220;injected&amp;#8221; via Javascript. I should mention that I am strongly against this practice - but often this kind of thing is out of one&amp;#8217;s hands. So, the least I can do is setup these &amp;#8220;injections&amp;#8221; to have proper fallbacks for users who disable JS. You would be surprised how many developers build &lt;em&gt;empty&lt;/em&gt; HTML elements with the assumption they will be filled via Javascript.&lt;/p&gt;
+&lt;h2 id=&quot;our-hypothetical-project&quot;&gt;Our Hypothetical Project&lt;/h2&gt;
+&lt;p&gt;Let&amp;#8217;s pretend that we have a total tally that pulls in the number of current users using our fake SaaS app. We would do something like this:&lt;/p&gt;
+&lt;h3 id=&quot;html&quot;&gt;HTML&lt;/h3&gt;
+&lt;p&gt;Here we create an empty &lt;code&gt;h2&lt;/code&gt; tag that will update with the current number of users via js:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;main&amp;#62;
+ &amp;#60;h2 class=&quot;total-tally&quot;&amp;#62;&amp;#60;&amp;#47;h2&amp;#62;
+&amp;#60;&amp;#47;main&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;ol&gt;
-&lt;li&gt;&lt;code&gt;input.mp4&lt;/code&gt; is the initial file we wish to convert&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;output.mkv&lt;/code&gt; will be the name and file type of our converted media&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;Now you can circle back and run the previous &lt;code&gt;scp&lt;/code&gt; command once you have converted your files to the desired format. Hopefully Jellyfin doesn&amp;#8217;t complain about the formatting!&lt;/p&gt;</content>
- <link href="https://btxx.org/jelly"/>
- <id>https://btxx.org/jelly</id>
- <updated>2022-03-12T10:00:00Z</updated>
- <published>2022-03-12T10:00:00Z</published>
- </entry>
- <entry>
- <title>Setup Jekyll from Scratch on a New Linux System</title>
- <content type="html">&lt;h1 id=&quot;setup-jekyll-from-scratch-on-a-new-linux-system&quot;&gt;Setup Jekyll from Scratch on a New Linux System&lt;/h1&gt;
-&lt;p&gt;2022-09-19&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Special Note:&lt;/strong&gt; Credit needs to be given to user &lt;a href=&quot;https://stackoverflow.com/users/4974784/achraf-jeday&quot;&gt;Achraf JEDAY&lt;/a&gt; for putting these instructions together on Stack Overflow (although his comments were targeting an older version of Ruby). This post is more for my own personal notes than anything else.&lt;/p&gt;
-&lt;p&gt;I find myself constantly running into small issues when trying to setup existing Jekyll projects on new Linux systems. I &lt;em&gt;could&lt;/em&gt; use something like Docker, but that just seems so beefy and slow to me. So here is a step-by-step way (and foolproof from my own testing) to get Jekyll running smoothly in no time!&lt;/p&gt;
-&lt;h2 id=&quot;figuring-out-ruby-first&quot;&gt;Figuring out Ruby First&lt;/h2&gt;
-&lt;p&gt;The first item of business is removing the default Ruby that ships with most Linux distros:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo apt-get remove ruby
+&lt;h3 id=&quot;javascript&quot;&gt;Javascript&lt;/h3&gt;
+&lt;p&gt;You&amp;#8217;ll have to use your imagination here and assume that the &lt;code&gt;totalTally&lt;/code&gt; variable pulls in the numbers dynamically via API:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;var totalTally = &quot;273,677&quot; &amp;#47;* This would pull something dynamically in prod *&amp;#47;
+document.getElementsByClassName(&quot;total-tally&quot;)[0].innerHTML=totalTally;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then we check for updates and install everything we need:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo apt update
-sudo apt install git curl libssl-dev libreadline-dev zlib1g-dev autoconf bison build-essential libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev
+&lt;h2 id=&quot;the-problem&quot;&gt;The Problem&lt;/h2&gt;
+&lt;p&gt;The big issue we have now occurs when a user visits this page without JS enabled. The &lt;code&gt;h2&lt;/code&gt; tag will remain empty and they won&amp;#8217;t see anything. I know this seems like a very avoidable issue, but you would be surprised how often it actually happens on the web.&lt;/p&gt;
+&lt;h2 id=&quot;the-overly-simple-solution&quot;&gt;The (overly simple) Solution&lt;/h2&gt;
+&lt;p&gt;The easiest way to avoid these types of empty tags - add static content. I know - mind blowing, right?&lt;/p&gt;
+&lt;h3 id=&quot;html-updated&quot;&gt;HTML (updated)&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;main&amp;#62;
+ &amp;#60;h2 class=&quot;total-tally&quot;&amp;#62;200,000+&amp;#60;&amp;#47;h2&amp;#62;
+&amp;#60;&amp;#47;main&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now we can install &lt;code&gt;rbenv&lt;/code&gt; and &lt;code&gt;ruby-build&lt;/code&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;curl -sL https:&amp;#47;&amp;#47;github.com&amp;#47;rbenv&amp;#47;rbenv-installer&amp;#47;raw&amp;#47;main&amp;#47;bin&amp;#47;rbenv-installer | bash -
+&lt;p&gt;You might be reading this and saying to yourself, &amp;#8220;Wow! Thanks Captain Obvious!&amp;#8221; and that&amp;#8217;s a fair reaction. This is an &lt;em&gt;obvious&lt;/em&gt; demo on purpose. If even one single reader learns to avoid leaving empty HTML tags that are solely dependent on Javascript injection, then I&amp;#8217;d say this demo was a huge success.&lt;/p&gt;
+&lt;p&gt;Rule of thumb: don&amp;#8217;t make assumption about your users. Play it safe.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/obvious-js-injection-fallback"/>
+ <id>https://btxx.org/posts/obvious-js-injection-fallback</id>
+ <updated>2020-12-04T10:00:00Z</updated>
+ <published>2020-12-04T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Billing for One CSS Change</title>
+ <content type="html">&lt;h1 id=&quot;billing-for-one-css-change&quot;&gt;Billing for One CSS Change&lt;/h1&gt;
+&lt;p&gt;2019-11-29&lt;/p&gt;
+&lt;p&gt;Every second you spend working as a designer should be billed back to the client. A simple button color change? Bill them. Additional links added to an existing menu? Send that invoice over. Some basic typeface changes? Don&amp;#8217;t do it for free.&lt;/p&gt;
+&lt;p&gt;You need to be charging for &lt;em&gt;all&lt;/em&gt; design work, regardless of difficulty or time required.&lt;/p&gt;
+&lt;p&gt;This concept might seem extremely obvious to more senior level workers but I have seen a good amount of junior devs make the mistake of &amp;#8220;working for experience&amp;#8221; or better yet &amp;#8220;strengthening the client relationship&amp;#8221;. Early on in my career I was just as guilty of doing this kind of thing. It was and still is a very foolish practice.&lt;/p&gt;
+&lt;h2 id=&quot;do-you-really-bill-for-one-css-change&quot;&gt;Do you really bill for &lt;em&gt;one&lt;/em&gt; CSS change?&lt;/h2&gt;
+&lt;p&gt;Absolutely. From the client&amp;#8217;s perspective it may seem like they are being billed for one CSS change and 30 seconds of a designer&amp;#8217;s time. In reality, they are paying for the designer&amp;#8217;s years of experience to be able to solve that problem in &lt;em&gt;only&lt;/em&gt; 30 seconds.&lt;/p&gt;
+&lt;p&gt;Would the client be happier with a significantly less qualified designer charging the same amount of money but taking 3 &lt;em&gt;hours&lt;/em&gt; to complete the task? In the end, what&amp;#8217;s the difference?&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;If it is a simple change that they believe should cost nothing, then why aren&amp;#8217;t they doing it themselves?&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;We as developers and designers work in an odd industry. A lot of people (read clients) outside of our bubble tend to think they have a much better understanding of the work we do. Because of this, they tend to preface work requests with phrases like:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&amp;#8220;This should be a simple change&amp;#8221;&lt;/li&gt;
+&lt;li&gt;&amp;#8220;This shouldn&amp;#8217;t take more than a couple of minutes&amp;#8221;&lt;/li&gt;
+&lt;li&gt;&amp;#8220;This seems like an easy fix&amp;#8221;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Most of the time these comments are harmless, but other times they are a subtle way of downplaying your skill and experience required to complete these work items. That skill and experience shouldn&amp;#8217;t ever come free. It makes you wonder if these same people expect free work from trades-people (electricians, plumbers, etc) when they need what they think is a &amp;#8220;simple&amp;#8221; fix in their house.&lt;/p&gt;
+&lt;p&gt;Do you think workers in &lt;em&gt;most&lt;/em&gt; other industries travel out to someone&amp;#8217;s home and fix &amp;#8220;small&amp;#8221; issues for free? Hell no.&lt;/p&gt;
+&lt;p&gt;So why are developers and designers doing work for free? I truly don&amp;#8217;t know - but it needs to stop.&lt;/p&gt;
+&lt;h2 id=&quot;a-simple-but-useful-system&quot;&gt;A simple but useful system&lt;/h2&gt;
+&lt;p&gt;You should live by the rule that every &lt;em&gt;second&lt;/em&gt; you spend working for someone else is billable. I don&amp;#8217;t mean that you should literally bill per second, but instead round to nearest estimated time slot (whether you are billing hourly, daily, sprint-based or per project). This ensures that your efforts are paid for and that the client will begin to truly value your time. Doing this from the get-go will save you headaches in the future.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m sorry if this comes off as preachy, but I&amp;#8217;m just trying to inspire designers to value their work more. Don&amp;#8217;t sell yourself short - your talent is valuable and shouldn&amp;#8217;t be taken for granted.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/one-css-property"/>
+ <id>https://btxx.org/posts/one-css-property</id>
+ <updated>2019-11-29T10:00:00Z</updated>
+ <published>2019-11-29T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>My Coffee Maker Just Makes Coffee</title>
+ <content type="html">&lt;h1 id=&quot;my-coffee-maker-just-makes-coffee&quot;&gt;My Coffee Maker Just Makes Coffee&lt;/h1&gt;
+&lt;p&gt;2023-01-09&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/coffee-couple.svg&quot; alt=&quot;Couple drinking cups of coffee&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;I had to replace my dual Keurig coffee maker &lt;em&gt;twice&lt;/em&gt; over a period of five months. This occurred a year ago and these are my findings.&lt;/p&gt;
+&lt;h2 id=&quot;built-to-fail&quot;&gt;Built to Fail?&lt;/h2&gt;
+&lt;p&gt;I followed the manufactor&amp;#8217;s suggested cleaning schedule and took care of the appliances. My initial conclusion was that the product&amp;#8217;s design wasn&amp;#8217;t thought-out well. &amp;#8220;It&amp;#8217;s built to fail!&amp;#8221; I said to my wife the morning of the &lt;em&gt;second&lt;/em&gt; machine&amp;#8217;s failure. Another product replaced under warranty, while the broken one&amp;#8217;s tossed aside. More e-waste because why not?&lt;/p&gt;
+&lt;p&gt;But after some further reflection, I came to realize the &amp;#8220;poor design&amp;#8221; was a symptom of a greater cause:&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;The product tries to do too much&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m beating a dead horse by referencing &lt;a href=&quot;https://suckless.org&quot;&gt;suckless&lt;/a&gt; software again, but that core philosophy applies here too. Both digital and industrial design suffer from bloat. Far too often I witness fellow designers over-engineer customer requests. Or they add excessive bloat to new product features. It&amp;#8217;s almost a rarity these days to find designers who tackle work as &lt;em&gt;single items&lt;/em&gt;. Everything expands. Everything needs to do one little extra &amp;#8220;cool&amp;#8221; thing. Nothing is ever &lt;em&gt;taken away&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m sure the designers meant well with the creation of this dual coffee maker. It&amp;#8217;s interesting to combine both a standard 12-cup percolator and &amp;#8220;pod-based&amp;#8221; serving options. In theory it sounds quite handy. One appliance that tackles two use-cases. Think of the counter space you&amp;#8217;ll save! &lt;/p&gt;
+&lt;p&gt;Unfortunately, in practice, it fails.&lt;/p&gt;
+&lt;h2 id=&quot;product-decline&quot;&gt;Product Decline&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve felt product quality decline in both household appliances and software. Companies no longer seem content with doing &lt;em&gt;one thing well&lt;/em&gt;. Everyone needs to reach out into many verticals. Everyone copies their competitors.The need to &amp;#8220;grow&amp;#8221; their existing features. Adding things that no one asked for. Products are getting &lt;em&gt;slower&lt;/em&gt; and losing focus.&lt;/p&gt;
+&lt;p&gt;People tend to place all that blame on top-level management or developers. They do deserve some blame - but not all. Designers cause a lot of these issues on their own and it&amp;#8217;s easy to understand why.&lt;/p&gt;
+&lt;p&gt;The design field drops new designers into a &lt;em&gt;world of bloat&lt;/em&gt;. They don&amp;#8217;t stand a chance. The initial programs introduced to them are behemoth, proprietary pieces of garbage. No other options are available. No one is making strides in this field of &amp;#8220;design tool software&amp;#8221; because it&amp;#8217;s a massive uphill battle. Those that &lt;em&gt;try&lt;/em&gt;, get &lt;a href=&quot;https://www.theverge.com/2022/9/15/23354532/adobe-figma-acquisition-20-billion-official&quot;&gt;snatched up by existing platforms&lt;/a&gt;. Designers don&amp;#8217;t have the luxury of &amp;#8220;choice&amp;#8221; as much as developers do (within reason). It&amp;#8217;s a very locked-down industry.&lt;/p&gt;
+&lt;p&gt;So of course designers will carry this mentality into their own work. It&amp;#8217;s all they have known. &amp;#8220;X and Y companies designed their &lt;code&gt;insert-feature-here&lt;/code&gt; with all these &lt;em&gt;extras&lt;/em&gt;, so we&amp;#8217;ll do the same&amp;#8221;. Everything is &lt;a href=&quot;https://invidious.snopyta.org/watch?v=dC1yHLp9bWA&quot;&gt;a copy of a copy of a copy&lt;/a&gt;.&lt;/p&gt;
+&lt;p&gt;The only advice I can give to designers is this: try not to add to the problem. I&amp;#8217;m not asking you to move mountains. But consider working somewhere else if your career only adds more bloat to the world. (Easier said than done, I know). Or keep doing what you&amp;#8217;re doing. What do I know - I&amp;#8217;m only some guy who rambles on the web.&lt;/p&gt;
+&lt;h2 id=&quot;back-to-the-coffee-maker&quot;&gt;Back to the Coffee Maker&lt;/h2&gt;
+&lt;p&gt;So the Keurig is gone. Trashed. The company doesn&amp;#8217;t want the product back, they tell you to scrap it. &amp;#8220;We&amp;#8217;ll send you a new one for free&amp;#8221;. Such a waste.&lt;/p&gt;
+&lt;p&gt;Instead, I snagged the cheapest and most basic coffee maker I could find. It cost me $12. It has no clock, no programming options, no base settings or cleaning functions. Hell, there aren&amp;#8217;t even level numbers on the water reservoir tank. &lt;/p&gt;
+&lt;p&gt;You add your scoops of coffee grounds, along with desired amount of water. Then you switch on the (only) button at the side of the machine. After a handful of minutes, you have coffee.&lt;/p&gt;
+&lt;p&gt;And it&amp;#8217;s been running &lt;em&gt;perfect&lt;/em&gt; for over 8 months now. I clean it every so often by brewing with a small mixture of vinegar and water. That&amp;#8217;s it. No need for &amp;#8220;specialty cleaners&amp;#8221; that cost almost as much as the machine itself. The points of failure get reduced as well, since the machine is bare-bones. Nothing can break when there is nothing to break&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;brewing-software&quot;&gt;&amp;#8220;Brewing&amp;#8221; Software&lt;/h2&gt;
+&lt;p&gt;At least, for me, I plan to only design what &lt;em&gt;needs to be&lt;/em&gt;. If someone asks for a &amp;#8220;coffee&amp;#8221;, they&amp;#8217;ll get a cup of hot, black coffee and nothing else.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/one-thing"/>
+ <id>https://btxx.org/posts/one-thing</id>
+ <updated>2023-01-09T10:00:00Z</updated>
+ <published>2023-01-09T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Open Source Typeface Pairings</title>
+ <content type="html">&lt;h1 id=&quot;open-source-typeface-pairings&quot;&gt;Open Source Typeface Pairings&lt;/h1&gt;
+&lt;p&gt;2018-01-25&lt;/p&gt;
+&lt;p&gt;I always love finding new typeface pairings to use across my personal and client projects, but I find many suggested pairings come with a hefty price tag (rightly so - premium typefaces are normally always worth their cost).&lt;/p&gt;
+&lt;p&gt;So, I&amp;#8217;ve curated this personal list of 5 exceptionally beautiful typeface pairings that will cost you absolutely nothing. Open source FTW.&lt;/p&gt;
+&lt;h2 id=&quot;et-book-gill-sans&quot;&gt;ET-Book &amp;#38; Gill Sans&lt;/h2&gt;
+&lt;p&gt;Download: ET Book, Gill Sans&lt;/p&gt;
+&lt;h2 id=&quot;playfair-display-roboto&quot;&gt;Playfair Display &amp;#38; Roboto&lt;/h2&gt;
+&lt;p&gt;Download: Playfair Display, Roboto&lt;/p&gt;
+&lt;h2 id=&quot;karma-open-sans&quot;&gt;Karma &amp;#38; Open Sans&lt;/h2&gt;
+&lt;p&gt;Download: Karma, Open Sans&lt;/p&gt;
+&lt;h2 id=&quot;libre-baskerville-oswald&quot;&gt;Libre Baskerville &amp;#38; Oswald&lt;/h2&gt;
+&lt;p&gt;Download: Libre Baskerville, Oswald&lt;/p&gt;
+&lt;h2 id=&quot;fanwood-league-spartan&quot;&gt;Fanwood &amp;#38; League Spartan&lt;/h2&gt;
+&lt;p&gt;Download: Fanwood, League Spartan&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/open-source-typeface-pairings"/>
+ <id>https://btxx.org/posts/open-source-typeface-pairings</id>
+ <updated>2018-01-25T10:00:00Z</updated>
+ <published>2018-01-25T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Building openring with Jekyll Build</title>
+ <content type="html">&lt;h1 id=&quot;building-openring-with-jekyll-build&quot;&gt;Building openring with Jekyll Build&lt;/h1&gt;
+&lt;p&gt;2022-12-02&lt;/p&gt;
+&lt;p&gt;I think it&amp;#8217;s great when bloggers post their own personal &amp;#8220;reading list&amp;#8221; of blogs they themselves follow. Whether this is a customized Blogroll page or footnotes in their individual articles, I find it really helpful to find more interesting content on the &amp;#8220;indie&amp;#8221; web. This isn&amp;#8217;t a new concept by any means, but I wanted something a little more &amp;#8220;dynamic&amp;#8221;[^1] for my own blog.&lt;/p&gt;
+&lt;p&gt;After some digging I came across &lt;a href=&quot;https://sr.ht/~sircmpwn/openring/&quot;&gt;openring&lt;/a&gt; and it&amp;#8217;s great. Fully customizable, lightweight and completely open source. What more could you ask for?&lt;/p&gt;
+&lt;p&gt;So, I thought others might be interested in how I&amp;#8217;ve implemented openring through my own Jekyll build system.&lt;/p&gt;
+&lt;h2 id=&quot;installing-openring&quot;&gt;Installing openring&lt;/h2&gt;
+&lt;p&gt;You can pull the project &lt;a href=&quot;https://sr.ht/~sircmpwn/openring/&quot;&gt;directly via SourceHut&lt;/a&gt; if you wish, but I would recommend installing through your default package manager. I&amp;#8217;m running Arch, so for me it was as simple as running:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;yay -S openring
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;After both of those install, you will want to add those to your system &lt;strong&gt;PATH&lt;/strong&gt;:&lt;/p&gt;
-&lt;h3 id=&quot;bash&quot;&gt;Bash&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;echo &amp;#39;export PATH=&quot;$HOME&amp;#47;.rbenv&amp;#47;bin:$PATH&quot;&amp;#39; &amp;#62;&amp;#62; ~&amp;#47;.bashrc
-echo &amp;#39;eval &quot;$(rbenv init -)&quot;&amp;#39; &amp;#62;&amp;#62; ~&amp;#47;.bashrc
-source ~&amp;#47;.bashrc
+&lt;p&gt;That&amp;#8217;s it. I now have full local access to openring!&lt;/p&gt;
+&lt;h2 id=&quot;jekyll-includes&quot;&gt;Jekyll Includes&lt;/h2&gt;
+&lt;p&gt;You &lt;em&gt;could&lt;/em&gt; setup a whole new directory specifically for your openring files, but that seems like overkill. Instead, we will simply add two new files to our existing &lt;code&gt;_includes&lt;/code&gt; directory. We will name these files &lt;code&gt;openring-in.html&lt;/code&gt; and &lt;code&gt;openring-out.html&lt;/code&gt;.&lt;/p&gt;
+&lt;h3 id=&quot;openring-in.html-contents&quot;&gt;openring-in.html Contents&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;!-- License-Id: CC0-1.0 --&amp;#62;
+&amp;#60;section class=&quot;webring&quot;&amp;#62;
+ &amp;#60;h3&amp;#62;Articles from blogs I follow around the world wide web&amp;#60;&amp;#47;h3&amp;#62;
+ &amp;#60;section class=&quot;articles&quot;&amp;#62;
+ {{range .Articles}}
+ &amp;#60;div class=&quot;article&quot;&amp;#62;
+ &amp;#60;h4 class=&quot;title&quot;&amp;#62;
+ &amp;#60;a href=&quot;{{.Link}}&quot; rel=&quot;noopener&quot;&amp;#62;{{.Title}}&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;&amp;#47;h4&amp;#62;
+ &amp;#60;p class=&quot;summary&quot;&amp;#62;{{.Summary}}&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;small class=&quot;source&quot;&amp;#62;
+ via &amp;#60;a href=&quot;{{.SourceLink}}&quot;&amp;#62;{{.SourceTitle}}&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;&amp;#47;small&amp;#62;
+ &amp;#60;small class=&quot;date&quot;&amp;#62;{{.Date | datef &quot;January 2, 2006&quot;}}&amp;#60;&amp;#47;small&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ {{end}}
+ &amp;#60;&amp;#47;section&amp;#62;
+ &amp;#60;p class=&quot;attribution&quot;&amp;#62;
+ Generated by
+ &amp;#60;a href=&quot;https:&amp;#47;&amp;#47;git.sr.ht&amp;#47;~sircmpwn&amp;#47;openring&quot;&amp;#62;openring&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;&amp;#47;p&amp;#62;
+&amp;#60;&amp;#47;section&amp;#62;
+&amp;#60;style&amp;#62;
+.webring .articles {
+ display: flex;
+ flex-wrap: wrap;
+ margin: -0.5rem;
+}
+.webring .title {
+ margin: 0;
+}
+.webring .article {
+ flex: 1 1 0;
+ display: flex;
+ flex-direction: column;
+ margin: 0.5rem;
+ padding: 0.5rem;
+ background: #eee;
+ min-width: 10rem;
+}
+.webring .summary {
+ font-size: 0.8rem;
+ flex: 1 1 0;
+}
+.webring .attribution {
+ text-align: right;
+ font-size: 0.8rem;
+ color: #555;
+}
+&amp;#60;&amp;#47;style&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;zsh&quot;&gt;ZSH&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;echo &amp;#39;export PATH=&quot;$HOME&amp;#47;.rbenv&amp;#47;bin:$PATH&quot;&amp;#39; &amp;#62;&amp;#62; ~&amp;#47;.zshrc
-echo &amp;#39;eval &quot;$(rbenv init -)&quot;&amp;#39; &amp;#62;&amp;#62; ~&amp;#47;.zshrc
-source ~&amp;#47;.zshrc
+&lt;blockquote&gt;
+&lt;p&gt;Sidenote: You will get minor Liquid Syntax warnings in the console when running your website via &lt;code&gt;serve&lt;/code&gt; or &lt;code&gt;build&lt;/code&gt;. I don&amp;#8217;t really mind those warnings but if you do, feel free to move these files out into their own sub-directory in your project folder.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;h3 id=&quot;openring-out.html-contents&quot;&gt;openring-out.html Contents&lt;/h3&gt;
+&lt;p&gt;This will generate itself for us every time we rebuild our Jekyll website. It is important to note that any changes you make in this file will be overwritten the next time you rebuild! All custom styling or layout changes should be made in the &lt;code&gt;openring-in.html&lt;/code&gt; file.&lt;/p&gt;
+&lt;h2 id=&quot;our-new-build-script&quot;&gt;Our &amp;#8220;New&amp;#8221; Build Script&lt;/h2&gt;
+&lt;p&gt;To simplify things, we are going to place our main commands in a single build script in the root directory of our Jekyll project. For my personal blog, I&amp;#8217;ve named this file &lt;code&gt;build-site.sh&lt;/code&gt;. I know - I&amp;#8217;m extremely creative.&lt;/p&gt;
+&lt;p&gt;Place the following inside that file:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;openring \
+ -s https:&amp;#47;&amp;#47;example.com&amp;#47;feed.xml \
+ -s https:&amp;#47;&amp;#47;example.com&amp;#47;feed.xml \
+ -s https:&amp;#47;&amp;#47;example.com&amp;#47;feed.xml \
+ &amp;#60; _includes&amp;#47;openring-in.html \
+ &amp;#62; _includes&amp;#47;openring-out.html
+bundle exec jekyll build
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;With that complete, we can now install the version of Ruby we wish to use and set it globally (at this time of writing it is &lt;code&gt;3.1.2&lt;/code&gt;):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;rbenv install 3.1.2
-rbenv global 3.1.2
+&lt;h2 id=&quot;edit-&quot;&gt;Edit &lt;code&gt;_config.yml&lt;/code&gt;&lt;/h2&gt;
+&lt;p&gt;Next we need to make sure we exclude our new &lt;code&gt;build-site&lt;/code&gt; script file, since we really don&amp;#8217;t need that pushed up to the main server:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;# Includes &amp;#47; Excludes
+exclude:
+ - build-site.sh
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;And &lt;code&gt;rehash&lt;/code&gt; so our changes take:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;rbenv rehash
+&lt;h2 id=&quot;almost-done&quot;&gt;Almost Done&amp;#8230;&lt;/h2&gt;
+&lt;p&gt;Now you just need to decide where you want your &lt;code&gt;openring&lt;/code&gt; feed outputs to render. For this example, we will place them at the bottom of every blog post inside the &lt;code&gt;_layouts&amp;#47;post.html&lt;/code&gt; file, like so:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;{% raw %}{% include openring-out.html %}{% endraw %}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now you should see the properly set Ruby version when you run the following:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;ruby -v
+&lt;h2 id=&quot;build-it-they-will-come&quot;&gt;Build It &amp;#38; They Will Come&lt;/h2&gt;
+&lt;p&gt;This next step is only for those using &lt;a href=&quot;https://srht.site&quot;&gt;SourceHut Pages&lt;/a&gt; to build and host their websites. If you use a different platform (ie Netlify, Vercel, GitHub Pages) the concept should be similar but will most likely require more tweaking on your end. Just a fair warning.&lt;/p&gt;
+&lt;p&gt;I won&amp;#8217;t go into great detail about build script for SourceHut Pages, but feel free to take a look at my &lt;a href=&quot;https://git.sr.ht/~bt/bt.ht/tree/master/item/.build.yml&quot;&gt;very own build file for this website&lt;/a&gt;. That &lt;em&gt;should&lt;/em&gt; work out-of-the-box for most standard Jekyll websites. (Just be sure to edit with your own details!)&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;That&amp;#8217;s it&lt;/strong&gt;. You now have links to blogs you enjoy that will update with each build. Of course, the &amp;#8220;latest&amp;#8221; blog posts shown will become out-of-date if you don&amp;#8217;t blog (or at least re-build your website) on a regular basis. But for me, I see this as a good motivator to keep pushing out content!&lt;/p&gt;
+&lt;p&gt;Happy sharing!&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;Well, as dynamic as a static website can be!&lt;/li&gt;
+&lt;/ol&gt;</content>
+ <link href="https://btxx.org/posts/openring"/>
+ <id>https://btxx.org/posts/openring</id>
+ <updated>2022-12-02T10:00:00Z</updated>
+ <published>2022-12-02T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Over-Engineering an Oil Tank Gauge</title>
+ <content type="html">&lt;h1 id=&quot;over-engineering-an-oil-tank-gauge&quot;&gt;Over-Engineering an Oil Tank Gauge&lt;/h1&gt;
+&lt;p&gt;2020-09-09&lt;/p&gt;
+&lt;p&gt;I almost went down the path of investing a huge amount of time and effort into fixing a stuck oil fuel tank float-gauge in my house. Recently, the float mechanism became stuck and permanently displayed &lt;code&gt;empty&lt;/code&gt; regardless of how much fuel was in the tank - not ideal. It&amp;#8217;s a 20 year-old tank, so I wasn&amp;#8217;t surprised that the float finally gave out. &lt;/p&gt;
+&lt;p&gt;Being the wannabe tinkerer that I am, a light bulb went off in my head and I started thinking on how to incorporate some ultrasonic system to display the accurate fuel reading digitally. Obviously my first thought was just to replace the float gauge with a new one and be done with it. That didn&amp;#8217;t sound very &lt;em&gt;fun&lt;/em&gt; though.&lt;/p&gt;
+&lt;p&gt;I briefly looked at other similar projects and started brainstorming the best way I would implement this for my own situation. The best option I came across seemed to be this: &lt;a href=&quot;https://scottiestech.info/2017/10/24/diy-ultrasonic-fuel-gauge-level-sensor/&quot;&gt;DIY Ultrasonic Fuel Gauge &amp;#47; Level Sensor&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;An ultrasonic system with a cool mini display sounded pretty rad - much cooler than just replacing the broken gauge with a new float arm. So it was settled.&lt;/p&gt;
+&lt;h2 id=&quot;my-oil-think-tank&quot;&gt;My oil think-tank&lt;/h2&gt;
+&lt;p&gt;I quickly thought through my options in my head before jumping too far into things (and even included a &amp;#8220;poor-mans&amp;#8221; temperature strip option):&lt;/p&gt;
+&lt;table&gt;
+&lt;thead&gt;
+&lt;tr&gt;
+&lt;th&gt;Solution&lt;/th&gt;
+&lt;th&gt;Cost&lt;/th&gt;
+&lt;th&gt;Time&lt;/th&gt;
+&lt;/tr&gt;
+&lt;/thead&gt;
+&lt;tbody&gt;
+&lt;tr&gt;
+&lt;td&gt;Ultrasonic Gauge&lt;/td&gt;
+&lt;td&gt;$40-50&lt;/td&gt;
+&lt;td&gt;~2-3 hours&lt;/td&gt;
+&lt;/tr&gt;
+&lt;tr&gt;
+&lt;td&gt;New Float Gauge&lt;/td&gt;
+&lt;td&gt;$25-30&lt;/td&gt;
+&lt;td&gt;~45 minutes&lt;/td&gt;
+&lt;/tr&gt;
+&lt;tr&gt;
+&lt;td&gt;Temperature Strips&lt;/td&gt;
+&lt;td&gt;$10&lt;/td&gt;
+&lt;td&gt;~2 minutes&lt;/td&gt;
+&lt;/tr&gt;
+&lt;/tbody&gt;
+&lt;/table&gt;
+&lt;p&gt;My mind was still set on building and implementing the ultrasonic option. It would be a great learning experience at the very least!&lt;/p&gt;
+&lt;p&gt;So, before I ordered any parts or started designing a case that would house this new super-cool device, I went to investigate&amp;#47;remove the float gauge to get a better look at the damage. With the help of some penetrating oil (the original installer went crazy with the pipe dope) and my trusty wrench, I opened up the gauge cap, partly lifting the float from the tank. Right away I noticed that the float and shaft were slightly stuck together in one small area. I poked it with my finger.&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;The float set itself back into the correct position. It was fixed.&lt;/em&gt;&lt;/p&gt;
+&lt;p&gt;How could I have been so dumb. I was so excited about &lt;em&gt;building something&lt;/em&gt; that I jumped into implementation before fully realizing the problem. Talk about a metaphor for web dev, am I right?&lt;/p&gt;
+&lt;h2 id=&quot;overthinking-simple-problems&quot;&gt;Overthinking simple problems&lt;/h2&gt;
+&lt;p&gt;I can&amp;#8217;t speak for all designers &amp;#47; developers out there, but I catch myself (far more often than I&amp;#8217;d like to admit) over-engineering a solution because of some perceived notion that it is the &amp;#8220;best&amp;#8221; option. Most of the time it isn&amp;#8217;t actually better, it just seems more &lt;em&gt;fun&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;Now don&amp;#8217;t get me wrong, fun is a good thing most of the time. It&amp;#8217;s just that some instances call for the quickest, cleanest, easiest solution in the name of efficiency - just be sure to have fully explored the problem &lt;em&gt;first&lt;/em&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;final-decision&quot;&gt;Final decision&lt;/h2&gt;
+&lt;p&gt;So I ended up doing nothing. I simply re-threaded the cap and placed the float back inside the tank. I know I saved myself time and money, but I can&amp;#8217;t help but feel like I failed&amp;#8230;&lt;/p&gt;
+&lt;p&gt;Just like in the world of software, it&amp;#8217;s best to avoid over-engineering simple problems.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/over-engineering-an-oil-tank"/>
+ <id>https://btxx.org/posts/over-engineering-an-oil-tank</id>
+ <updated>2020-09-09T10:00:00Z</updated>
+ <published>2020-09-09T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Over-Nesting</title>
+ <content type="html">&lt;h1 id=&quot;over-nesting&quot;&gt;Over-Nesting&lt;/h1&gt;
+&lt;p&gt;2019-01-06&lt;/p&gt;
+&lt;p&gt;I think since our design industry moves so quickly and exciting new technologies get released almost daily, that we often forget some of the basics when writing CSS. I bring this up because I&amp;#8217;ve recently worked on a few projects that show a slight disregard for proper class&amp;#47;selector nesting.&lt;/p&gt;
+&lt;p&gt;Now it&amp;#8217;s completely understandable why designers and teams alike shrug off the concept of &amp;#8220;over-nesting&amp;#8221;:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;As a team we know the structure of our code (no outside party needs to interact with it)&lt;/li&gt;
+&lt;li&gt;Everything is written in &lt;code&gt;insert pre-processor here&lt;/code&gt; - so it&amp;#8217;s cleaner&amp;#47;compiled anyway&lt;/li&gt;
+&lt;li&gt;It&amp;#8217;s &lt;em&gt;technically&lt;/em&gt; DRY&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;I personally believe these are all weak excuses that don&amp;#8217;t justify the poor experience future maintainers of your code will face. &lt;em&gt;You should always write your code with the idea someone completely new to the project will have to maintain it&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s look at an average example of poor nesting that I&amp;#8217;ve seen out in the wild:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* These children elements can&amp;#39;t be used outside
+of the parent - not very flexible *&amp;#47;
+.main-container {
+ .child-container {
+ &amp;#47;* This class specificity is too deep *&amp;#47;
+ .sub-child-container {}
+ }
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;getting-ruby-gems&quot;&gt;Getting Ruby Gems&lt;/h2&gt;
-&lt;p&gt;In case you don&amp;#8217;t have it installed already, be sure to grab &lt;code&gt;rubygems&lt;/code&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo apt install rubygems
+&lt;p&gt;Even if you know a child element will never be structured outside of it&amp;#8217;s parent, what harm does it cause to still place it out of such deep specificity?&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* This code is far more reusable *&amp;#47;
+.main-container {}
+.child-container {}
+.sub-child-container {}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;running-jekyll&quot;&gt;Running Jekyll&lt;/h2&gt;
-&lt;p&gt;We are almost done! Navigate to your Jekyll project&amp;#8217;s directory and run:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;gem install jekyll bundler
-bundle install
+&lt;h3 id=&quot;exceptions&quot;&gt;Exceptions&lt;/h3&gt;
+&lt;p&gt;As with anything, there are exceptions to the &lt;em&gt;rule&lt;/em&gt;. If the nested elements pertain to the parent itself, it makes complete sense to group these stylings together. A button or link item are excellent examples of this:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.btn-lg {
+ &amp;#38;:hover {}
+ &amp;#38;:active {}
+ &amp;#38;:disabled{}
+}
+
+.link-item {
+ &amp;#38;:hover{}
+ &amp;#38;:focus{}
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it! Now if you run &lt;code&gt;bundle exec jekyll serve&lt;/code&gt; you&amp;#8217;ll find your Jekyll project running locally! Hopefully this helps others when needing to port any Jekyll projects over to a new Linux system. I know it will save me time!&lt;/p&gt;
-&lt;h2 id=&quot;alpine-linux-on-wayland&quot;&gt;Alpine Linux on Wayland&lt;/h2&gt;
-&lt;p&gt;Save yourself a world of trouble: just use &lt;code&gt;docker&lt;/code&gt;. The docker image below (jekyll-serve) works out-of-the-box:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://github.com/BretFisher/jekyll-serve&quot;&gt;https:&amp;#47;&amp;#47;github.com&amp;#47;BretFisher&amp;#47;jekyll-serve&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;Then run the following inside your project:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;docker run -p 4000:4000 -v $(pwd):&amp;#47;site bretfisher&amp;#47;jekyll-serve
-&lt;/code&gt;&lt;/pre&gt;</content>
- <link href="https://btxx.org/jekyll"/>
- <id>https://btxx.org/jekyll</id>
- <updated>2022-09-19T10:00:00Z</updated>
- <published>2022-09-19T10:00:00Z</published>
- </entry>
- <entry>
- <title>Hosting a Jekyll Site on Sourcehut</title>
- <content type="html">&lt;h1 id=&quot;hosting-a-jekyll-site-on-sourcehut&quot;&gt;Hosting a Jekyll Site on Sourcehut&lt;/h1&gt;
-&lt;p&gt;2021-12-06&lt;/p&gt;
-&lt;p&gt;I recently decided to switch my personal, static site&amp;#8217;s hosting from Netlify to &lt;a href=&quot;https://srht.site&quot;&gt;sourcehut pages&lt;/a&gt;. The process went &lt;em&gt;fairly&lt;/em&gt; smoothly with only a couple minor hiccups; nothing rage-inducing. After everything was up and running smoothly, I figured writing out a step-by-step tutorial might help others who are thinking of doing a similar switch (or looking to host their first static site).&lt;/p&gt;
-&lt;p&gt;But first, let me briefly explain why I made the switch in the first place&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;why-sourcehut-pages&quot;&gt;Why sourcehut pages?&lt;/h2&gt;
-&lt;p&gt;Using Netlify as your static host is simple, intuitive and comes packed with a great deal of extra functionality you can easily add-on. So, why would I decide to switch over to sourcehut? The best answer comes directly off the main homepage of &lt;a href=&quot;https://sourcehut.org&quot;&gt;sourcehut.org&lt;/a&gt;:&lt;/p&gt;
+&lt;p&gt;Of course, this is all easier said than done. Limitations exist within teams or even on an individual level that might make this impossible to change. Maybe you don&amp;#8217;t have the authority to rework your current CSS or it would eat up too many cycles and time is valuable - especially in the world of startups. &lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m not saying this is &lt;strong&gt;the only way to structure CSS&lt;/strong&gt; - I&amp;#8217;m only trying to make the lives of future designers&amp;#47;developers easier moving forward. &lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/over-nesting"/>
+ <id>https://btxx.org/posts/over-nesting</id>
+ <updated>2019-01-06T10:00:00Z</updated>
+ <published>2019-01-06T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Happily Paying For macOS Apps</title>
+ <content type="html">&lt;h1 id=&quot;happily-paying-for-macos-apps&quot;&gt;Happily Paying For macOS Apps&lt;/h1&gt;
+&lt;p&gt;2022-06-29&lt;/p&gt;
+&lt;p&gt;It&amp;#8217;s no secret that I am a huge advocate for open source software. A solid chunk of my day-to-day workload is done so via FOSS[^0] systems. I also manage a handful of fun side projects that are normally shipped under either MIT or GPL licensing. But that doesn&amp;#8217;t mean I still don&amp;#8217;t enjoy &lt;em&gt;some&lt;/em&gt; non-free, proprietary software.&lt;/p&gt;
+&lt;p&gt;So, I thought I would share my collection of macOS applications that I happily paid for. (There aren&amp;#8217;t many since my needs are limited)&lt;/p&gt;
+&lt;h2 id=&quot;design-tool-sketch&quot;&gt;Design Tool: Sketch&lt;/h2&gt;
+&lt;p&gt;My day job requires me to use Figma, which is totally fine but not nearly as polished as Sketch. Yes, Figma is cross-platform. Yes, Figma can run directly in the browser. Yes, Figma is free for most smaller team sizes.&lt;/p&gt;
+&lt;p&gt;But sorry - Sketch is just better.&lt;/p&gt;
+&lt;p&gt;Since the team at Bohemian Coding have crafted Sketch specifically for macOS it feels native, runs extremely well and fits in with the rest of the ecosystem. The pricing model is okay in my books too, balancing a fine line between &lt;em&gt;optional&lt;/em&gt; yearly subscriptions and one-time purchases. It&amp;#8217;s a smart move and I much prefer it to a forced subscription plan.&lt;/p&gt;
+&lt;p&gt;URL: &lt;a href=&quot;https://www.sketch.com/&quot;&gt;https:&amp;#47;&amp;#47;www.sketch.com&amp;#47;&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;password-manager-secrets&quot;&gt;Password Manager: Secrets&lt;/h2&gt;
+&lt;p&gt;I was originally a subscriber to 1Password but couldn&amp;#8217;t justify spending $7CDN a month for what it was offering. Also, subscriptions suck. After doing some research I stumbled upon Secrets and noticed some things about it that instantly caught my eye:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Absolutely no tracking or advertising&lt;/li&gt;
-&lt;li&gt;All features work without JavaScript&lt;/li&gt;
-&lt;li&gt;Many features work without an account&lt;/li&gt;
-&lt;li&gt;The fastest &amp;#38; lightest software forge&lt;/li&gt;
-&lt;li&gt;100% free and open source software&lt;/li&gt;
+&lt;li&gt;No subscriptions! One-time price forever.&lt;/li&gt;
+&lt;li&gt;iCloud Sync across devices&lt;/li&gt;
+&lt;li&gt;Browser extension support (although I don&amp;#8217;t use this personally)&lt;/li&gt;
+&lt;li&gt;Developed by a one-man team (support indie devs!)&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;After realizing all that, it&amp;#8217;s pretty difficult to stick with Netlify&amp;#8217;s &lt;em&gt;proprietary&lt;/em&gt; stack&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;free-but-not-free&quot;&gt;Free but not &lt;em&gt;&amp;#8220;free&amp;#8221;&lt;/em&gt;&lt;/h2&gt;
-&lt;p&gt;I should note that using sourcehut pages &lt;em&gt;does&lt;/em&gt; require you to be a contributing (read: paying) member on the platform. I&amp;#8217;m a cheapo and selected the $2&amp;#47;month option but you might be inclined to donate more. Paying this &amp;#8220;fee&amp;#8221; is perfectly fine for me, considering the hosting quality (speed and storage) it affords me. It also doesn&amp;#8217;t hurt that I get the &amp;#8220;feel good vibes&amp;#8221; of supporting an important, open source product.&lt;/p&gt;
-&lt;p&gt;Keeping that in mind, let&amp;#8217;s get into setting up our static site!&lt;/p&gt;
-&lt;h2 id=&quot;setting-up-your-repo-locally&quot;&gt;Setting up your repo locally&lt;/h2&gt;
+&lt;p&gt;I purchased both the macOS and iOS versions of Secrets after trying out the free version almost immediately. It&amp;#8217;s wonderful. The UI is clean and flows well with the rest of the Mac ecosystem to give it a native &amp;#8220;Apple&amp;#8221; feel. Syncing my laptop and iPhone works seamless via iCloud.&lt;/p&gt;
+&lt;p&gt;And best of all - no monthly fees.&lt;/p&gt;
+&lt;p&gt;URL: &lt;a href=&quot;https://outercorner.com/secrets-mac/&quot;&gt;https:&amp;#47;&amp;#47;outercorner.com&amp;#47;secrets-mac&amp;#47;&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;transferring-files-transmit-5&quot;&gt;Transferring Files: Transmit 5&lt;/h2&gt;
+&lt;p&gt;The folks at Panic make incredible Mac and iOS apps. I see them as one of the best in the industry. In the early days of my web development career, I used to run Coda exclusively. I&amp;#8217;ve since moved on the Sublime Text but I still have fond memories of the old Panic editor.&lt;/p&gt;
+&lt;p&gt;As for FTP access, I still use Panic&amp;#8217;s Transmit to this day. Beautiful UI that feels snappy even when transferring massive files across servers. Transmit is also a one-time purchase. Thank goodness. (Have I mentioned that I hate software subscriptions?)&lt;/p&gt;
+&lt;p&gt;URL: &lt;a href=&quot;https://panic.com/transmit/&quot;&gt;https:&amp;#47;&amp;#47;panic.com&amp;#47;transmit&amp;#47;&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h2&gt;
+&lt;p&gt;I know this list only includes 3 applications, but that&amp;#8217;s truly all the ones I&amp;#8217;ve spent money on. If in the future I happen to purchase any others I will be sure to update this post accordingly.&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;Create a new account on &lt;a href=&quot;https://sourcehut.org&quot;&gt;sourcehut&lt;/a&gt; (or log in to an existing one)&lt;/li&gt;
-&lt;li&gt;Setup your billing to contribute monthly (tier amount is up to you)&lt;/li&gt;
-&lt;li&gt;Create a new repo under the &lt;strong&gt;git&lt;/strong&gt; section&lt;sup id=&quot;fnref1&quot;&gt;&lt;a href=&quot;#fn1&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
-&lt;li&gt;Connect this repo locally (as you would via any other git host)&lt;/li&gt;
-&lt;li&gt;In this new local directory, place all your Jekyll files as you would with any other static hosting provider&lt;/li&gt;
+&lt;li&gt;Free &amp;#38; open source software&lt;/li&gt;
+&lt;/ol&gt;</content>
+ <link href="https://btxx.org/posts/paid-mac-apps"/>
+ <id>https://btxx.org/posts/paid-mac-apps</id>
+ <updated>2022-06-29T10:00:00Z</updated>
+ <published>2022-06-29T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Yet Another Static Site Generator Switch</title>
+ <content type="html">&lt;h1 id=&quot;yet-another-static-site-generator-switch&quot;&gt;Yet Another Static Site Generator Switch&lt;/h1&gt;
+&lt;p&gt;2022-07-06&lt;/p&gt;
+&lt;p&gt;If you&amp;#8217;re an RSS subscriber, I&amp;#8217;ve probably blown up your feed reader (again). This seems to be an on-going theme with this blog. I can&amp;#8217;t help it.&lt;/p&gt;
+&lt;p&gt;This website now uses my &lt;em&gt;new&lt;/em&gt; Pandoc-based static blog generator: &lt;a href=&quot;https://pblog.bt.ht&quot;&gt;pblog&lt;/a&gt;. I won&amp;#8217;t go into great detail about it&amp;#8217;s features (or lack thereof) - if you&amp;#8217;re interested in that, check out the &lt;a href=&quot;https://pblog.bt.ht/blog/pblog-intro.html&quot;&gt;&amp;#8220;Introducing pblog&amp;#8221; article&lt;/a&gt;.&lt;/p&gt;
+&lt;p&gt;The bigger question is, &amp;#8220;Why the change?&amp;#8221;&lt;/p&gt;
+&lt;h2 id=&quot;wheres-the-love-for-shinobi&quot;&gt;Where&amp;#8217;s the Love for &amp;#8220;Shinobi&amp;#8221;?&lt;/h2&gt;
+&lt;p&gt;Switching over to &lt;code&gt;pblog&lt;/code&gt; wasn&amp;#8217;t caused by a dislike of using &lt;a href=&quot;https://shinobi.bt.ht&quot;&gt;Shinobi&lt;/a&gt;. In fact, I still really enjoy the work flow that that plain-text focused SSG provides. The main issues that popped up for my own blog was &lt;em&gt;accessibility&lt;/em&gt; and &lt;em&gt;poor user experience&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;I had multiple readers reach out and mention poor rendering of content in their RSS reader of choice. That&amp;#8217;s kind of a &lt;strong&gt;big deal&lt;/strong&gt;. I test that project as best I can with my limited access to all available RSS readers - but I can only test so much. It became one of those &amp;#8220;Well, it works on my machine!&amp;#8221; meme. So instead of spending an untold amount of time debugging every RSS reader known to man, I figured my best bet was to render things as &lt;code&gt;HTML&lt;/code&gt;.&lt;/p&gt;
+&lt;p&gt;The next big issue was &lt;em&gt;accessibility&lt;/em&gt;. Screen readers can read &lt;code&gt;txt&lt;/code&gt; formatted files perfectly fine but since elements aren&amp;#8217;t categorized everything ends up with the same level hierarchy. This can cause confusion between headers, list items, URLs, footers etc. For my personal use-case (sharing tutorials and covering design topics) it didn&amp;#8217;t make sense to sacrifice user accessibility for minimalism.&lt;/p&gt;
+&lt;h2 id=&quot;the-search-for-simplicity&quot;&gt;The Search for Simplicity&lt;/h2&gt;
+&lt;p&gt;My initial thought process was to include some form of &amp;#8220;plus&amp;#8221; add-on to the existing Shinobi build script. The idea was to render &lt;code&gt;HTML&lt;/code&gt; versions of each post and dump those into the generated RSS file. Although maybe good in theory, it ended up impractical because:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;No utility or existing tool could render the style of text-based formatting I implemented as semantic HTML (at least not without heavy customization and tinkering)&lt;/li&gt;
+&lt;li&gt;I was actually adding extra bloat to the Shinobi project (true minimalism is the point, right?)&lt;/li&gt;
&lt;/ol&gt;
-&lt;h2 id=&quot;the-sourcehut-build-file&quot;&gt;The sourcehut build file&lt;/h2&gt;
-&lt;p&gt;In order to have your Jekyll site build and push the correct files live, you will need to use sourcehut&amp;#8217;s build system. This will run every time you push out a new change to your repo (new blog post, page content changes, styling updates).&lt;/p&gt;
-&lt;p&gt;To make things easier, you can copy the build file below (remember to use your &lt;em&gt;own&lt;/em&gt; information for usernames, git repo naming etc):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;image: debian&amp;#47;stable
-oauth: pages.sr.ht&amp;#47;PAGES:RW
-packages:
-- ruby-full
-- ruby-dev
-environment:
-site: yourusername.srht.site
-sources:
-- https:&amp;#47;&amp;#47;git.sr.ht&amp;#47;~yourusername&amp;#47;your-repo-name
-tasks:
-- install-bundler: |
- sudo gem install bundler
-- build: |
- cd your-repo-name
- bundle install
- bundle exec jekyll build
-- package: |
- cd your-repo-name&amp;#47;_site
- tar -cvz . &amp;#62; ..&amp;#47;..&amp;#47;site.tar.gz
-- upload: |
- acurl -f https:&amp;#47;&amp;#47;pages.sr.ht&amp;#47;publish&amp;#47;$site -Fcontent=@site.tar.gz
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Save this file as &lt;code&gt;.build.yml&lt;/code&gt; and place it in the root directory of your Jekyll source code.&lt;/p&gt;
-&lt;p&gt;Then, you just need to push your changes to the repo. If everything was setup properly, you&amp;#8217;ll be able to see your live site at &lt;code&gt;https:&amp;#47;&amp;#47;yourusername.srht.site&lt;/code&gt; (just give it a little bit of time to run the full build process)&lt;/p&gt;
-&lt;h2 id=&quot;custom-domains&quot;&gt;Custom Domains&lt;/h2&gt;
-&lt;p&gt;If you&amp;#8217;re like me and want to use your own custom domain - have no fear! This process is actually quite easy.&lt;/p&gt;
-&lt;p&gt;First, add a new A Record through your domain provider:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@ IN A 173.195.146.139
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then change the following &lt;code&gt;environment&lt;/code&gt; parameter inside your existing &lt;code&gt;.build.yml&lt;/code&gt; file:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;environment:
-site: yourcustomdomain.com
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;And that&amp;#8217;s it - custom domain set! If you run into any issues check out the &lt;a href=&quot;https://srht.site/custom-domains&quot;&gt;official documentation on custom domains&lt;/a&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h2&gt;
-&lt;p&gt;Hopefully this helps to streamline the process for others to host their static sites through sourcehut. Having open and healthy competition among host providers and &lt;code&gt;git&lt;/code&gt; workflows is essential to avoiding vendor lock-in. &lt;/p&gt;
-&lt;p&gt;Even low-effort support for open-source products (like where you host your static site or FOSS projects) can go a long way. Just some food for thought.&lt;/p&gt;
-&lt;div class=&quot;footnotes&quot;&gt;
-&lt;hr/&gt;
+&lt;p&gt;So, that option was ruled out pretty quickly.&lt;/p&gt;
+&lt;p&gt;The next option didn&amp;#8217;t take me long to land on: &lt;em&gt;Pandoc&lt;/em&gt;. I&amp;#8217;ve used Pandoc for years and have nothing but great experiences tweaking it for my own needs. I knew that I could piggyback off the original &lt;code&gt;shell&lt;/code&gt; commands in the Shinobi project and alter them as needed to incorporate Pandoc.&lt;/p&gt;
+&lt;p&gt;I honestly didn&amp;#8217;t run into many issues while rolling this out. Fairly seamless!&lt;/p&gt;
+&lt;h2 id=&quot;new-workflow&quot;&gt;New Workflow&lt;/h2&gt;
+&lt;p&gt;With this new blog switch I also decided to try out a new &lt;em&gt;deploy&lt;/em&gt; workflow. I&amp;#8217;ve used &lt;code&gt;rsync&lt;/code&gt; for the longest time but wanted to have something more GUI-based on macOS. I know, &lt;em&gt;blasphemy&lt;/em&gt;!&lt;/p&gt;
+&lt;p&gt;Since I already have a Transmit license, that seemed like the best fit since it is designed specifically for macOS. Now my workflow process is as follows:&lt;/p&gt;
&lt;ol&gt;
-
-&lt;li id=&quot;fn1&quot;&gt;
-&lt;p&gt;Thanks to &lt;a href=&quot;https://cnx.srht.site/&quot;&gt;McSinyx&lt;/a&gt; for pointing out that the repo used for creating your website can be named anything (instead of defaulting to your sourcehut username)&amp;#160;&lt;a href=&quot;#fnref1&quot; rev=&quot;footnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
-&lt;/li&gt;
-
+&lt;li&gt;Write new posts in my root &lt;code&gt;posts&lt;/code&gt; folder&lt;/li&gt;
+&lt;li&gt;Rebuild the &lt;code&gt;pblog&lt;/code&gt; with &lt;code&gt;make&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Use the built-in sync function of Transmit to mirror my local &lt;code&gt;_output&lt;/code&gt; with my web server&lt;/li&gt;
&lt;/ol&gt;
-&lt;/div&gt;</content>
- <link href="https://btxx.org/jekyll-sourcehut"/>
- <id>https://btxx.org/jekyll-sourcehut</id>
- <updated>2021-12-06T10:00:00Z</updated>
- <published>2021-12-06T10:00:00Z</published>
- </entry>
- <entry>
- <title>Introducing PageRoast</title>
- <content type="html">&lt;h1 id=&quot;introducing-pageroast&quot;&gt;Introducing PageRoast&lt;/h1&gt;
-&lt;p&gt;2021-03-11&lt;/p&gt;
-&lt;p&gt;Following up with my concept of releasing small side projects weekly, I have officially launched &lt;a href=&quot;https://pageroast.com&quot;&gt;PageRoast&lt;/a&gt;. What is PageRoast I hear you ask?&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;Receive a detailed report analyzing your landing page with actionable items to improve your conversion rate.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;In simple terms that just means I will &lt;strong&gt;roast your landing page&lt;/strong&gt;. Included in a page roast report is:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/transmit-ftp.webp&quot; alt=&quot;The Transmit UI in all of its wonderful glory (before I updated)&quot; /&gt;&lt;/p&gt;
+&lt;h3 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h3&gt;
+&lt;p&gt;Will there be bugs with this switch-over? Most likely. Will some URLs be left behind or broken? Possibly. These small issues will be ironed out over time. For now, I&amp;#8217;m quite happy with keeping things minimal on the workflow side of things, while preserving accessibility and user experience with the output.&lt;/p&gt;
+&lt;p&gt;Thanks for reading!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/pblog"/>
+ <id>https://btxx.org/posts/pblog</id>
+ <updated>2022-07-06T10:00:00Z</updated>
+ <published>2022-07-06T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Create a Performance-Focused WordPress Blog</title>
+ <content type="html">&lt;h1 id=&quot;create-a-performance-focused-wordpress-blog&quot;&gt;Create a Performance-Focused WordPress Blog&lt;/h1&gt;
+&lt;p&gt;2021-09-08&lt;/p&gt;
+&lt;p&gt;With my recent switch back to WordPress, and having read Kev Quirk’s latest post about Core Web Vitals, I wanted to make sure my blog still prioritized speed and performance above all else. I’m happy to say that I have closely replicated the same speed of my original &lt;em&gt;static&lt;/em&gt; Jekyll-based version of this blog.&lt;/p&gt;
+&lt;p&gt;And I&amp;#8217;ve achieved this with barely any effort at all. All that&amp;#8217;s needed is: &lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Fully detailed ABCD Framework report&lt;/li&gt;
-&lt;li&gt;Proposed content &amp;#38; design changes&lt;/li&gt;
-&lt;li&gt;Page performance audit&lt;/li&gt;
+&lt;li&gt;a lightweight WordPress theme&lt;/li&gt;
+&lt;li&gt;two free WordPress plugins&lt;/li&gt;
+&lt;li&gt;cheap &amp;#38; fast web hosting&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;And you get all of this for just &lt;strong&gt;$100&lt;/strong&gt; (currently 50% until April 1st with coupon code PHROAST). Alright, enough with the &amp;#8220;sales pitch&amp;#8221; - why did I make this side project?&lt;/p&gt;
-&lt;p&gt;From the main &lt;a href=&quot;https://pageroast.com/#2021-03-10-pageroast-has-launched&quot;&gt;launch blog post on PageRoast itself&lt;/a&gt; I wrote:&lt;/p&gt;
+&lt;p&gt;Let me breakdown each component so those of you interested can do the same without hitting any roadblocks.&lt;/p&gt;
+&lt;h2 id=&quot;choosing-your-wordpress-theme&quot;&gt;Choosing Your WordPress Theme&lt;/h2&gt;
+&lt;p&gt;Selecting an existing theme or trying to build your own can be a daunting experience. For my needs, I forced myself to find an existing theme and just run with it. This gives me more time to focus on writing instead of constantly tweaking the blog’s visuals.&lt;/p&gt;
+&lt;p&gt;I would suggest either using the default starter theme (as of this writing: Twenty Twenty One theme by Automattic) or looking for specific “lightweight” themes across the web. I highly recommend checking out Anders Norén’s &lt;a href=&quot;https://andersnoren.se/teman/&quot;&gt;theme collection&lt;/a&gt;. Others can be found on the official &lt;a href=&quot;https://wordpress.org/&quot;&gt;wordpress.org&lt;/a&gt; website.&lt;/p&gt;
+&lt;h2 id=&quot;two-simple-plugins&quot;&gt;Two Simple Plugins&lt;/h2&gt;
+&lt;p&gt;Once you have decided on a theme, you&amp;#8217;ll also want to be sure to install two very important plugins that greatly help with performance:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Jetpack Boost – &lt;a href=&quot;https://wordpress.org/plugins/jetpack-boost/&quot;&gt;wordpress.org&amp;#47;plugins&amp;#47;jetpack-boost&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Yoast SEO – &lt;a href=&quot;https://wordpress.org/plugins/wordpress-seo/&quot;&gt;wordpress.org&amp;#47;plugins&amp;#47;wordpress-seo&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;jetpack-boost&quot;&gt;Jetpack Boost&lt;/h2&gt;
+&lt;p&gt;This plugin is fantastic. Not only will it run a proper audit (based off Google’s Lighthouse tool) but also gives you the ability to activate optimized CSS, lazy image loading and deferring non-essential JavaScript (if applicable). All of this is done in a super-clean user interface directly inside your WordPress admin.&lt;/p&gt;
+&lt;p&gt;Check out my own testing site metrics below:&lt;/p&gt;
+&lt;h2 id=&quot;yoast-seo&quot;&gt;Yoast SEO&lt;/h2&gt;
+&lt;p&gt;If you’ve worked with WordPress at all you have surely heard of Yoast. Adding this plugin to your site is really a no-brainer. The automatic generation of meta data and SEO tags can save you a lot of time while also improving your overall Lighthouse score.&lt;/p&gt;
+&lt;p&gt;Here is the Lighthouse audit for the test WordPress website:&lt;/p&gt;
+&lt;p&gt;Those scores were achieved without any custom work on my end – I simply activated the plugin and let it work it’s magic. Great stuff.&lt;/p&gt;
+&lt;h2 id=&quot;host-everything-on-easywp&quot;&gt;Host Everything on EasyWP&lt;/h2&gt;
+&lt;p&gt;Up to this point we haven’t spent a single penny. Unfortunately, web hosting isn’t free and you’re going to need it if you actually want your website to have a home on the interwebs!&lt;/p&gt;
+&lt;p&gt;I know – I can hear your collective voices shouting out:&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;I&amp;#8217;ve always been obsessed with developing landing pages that produce high conversion rates. It&amp;#8217;s what I&amp;#8217;ve done for a large portion of my web development career.So I thought to myself, &amp;#8220;Why not launch a small-scale audit service to help indie devs and startups?&amp;#8221;&lt;/p&gt;
+&lt;p&gt;Isn&amp;#8217;t web hosting a little expensive just for my simple hobby blog&amp;#47;site?&lt;/p&gt;
+&lt;p&gt;&amp;#8211; Some of you&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;p&gt;That&amp;#8217;s really all there is to it. If you would like to learn more, check out the following links:&lt;/p&gt;
+&lt;p&gt;I host this test blog for just &lt;strong&gt;$3.88&amp;#47;month&lt;/strong&gt; and the service is actually good. Unreal, right? That’s the price of a medium coffee, so I’m pretty sure it won’t break the bank.&lt;/p&gt;
+&lt;p&gt;This “cheap” hosting is through EasyWP and the Starter plan ($3.88&amp;#47;month) comes with the following:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://pageroast.com&quot;&gt;PageRoast main website&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://pageroast.com/#2021-03-10-pageroast-has-launched&quot;&gt;PageRoast official launch blog post&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;</content>
- <link href="https://btxx.org/introducing-pageroast"/>
- <id>https://btxx.org/introducing-pageroast</id>
- <updated>2021-03-11T10:00:00Z</updated>
- <published>2021-03-11T10:00:00Z</published>
- </entry>
- <entry>
- <title>Introducing Notez</title>
- <content type="html">&lt;h1 id=&quot;introducing-notez&quot;&gt;Introducing Notez&lt;/h1&gt;
-&lt;p&gt;2021-01-13&lt;/p&gt;
-&lt;p&gt;I have always been a fan of simple note taking applications, since I tend to take a lot of random notes throughout the work day. Sometimes I reach for simple pen and paper, but other times it&amp;#8217;s nice to stay focused jotting down notes on the same device I&amp;#8217;m working on.&lt;/p&gt;
-&lt;p&gt;Previously, I just created quick &lt;code&gt;notes.txt&lt;/code&gt; files in my open code editor or fell back on the default OS note apps. These worked perfectly fine but often got in my way (or even worse - lost among everything else).&lt;/p&gt;
-&lt;p&gt;So I said the hell with it and built Notez.&lt;/p&gt;
-&lt;h2 id=&quot;what-makes-notez-special&quot;&gt;What makes Notez special?&lt;/h2&gt;
-&lt;p&gt;Nothing, really. It&amp;#8217;s actually a pretty &amp;#8220;stupid&amp;#8221; app compared to others on the market. But this one is &lt;em&gt;mine&lt;/em&gt;. Plus, it was fun to piece it together on a random evening before bed.&lt;/p&gt;
-&lt;p&gt;For those curious, let&amp;#8217;s take a look at the feature list:&lt;/p&gt;
+&lt;li&gt;10 GB SSD storage&lt;/li&gt;
+&lt;li&gt;50k visitors&amp;#47;month&lt;/li&gt;
+&lt;li&gt;Unlimited bandwidth&lt;/li&gt;
+&lt;li&gt;Backups (though not automatic)&lt;/li&gt;
+&lt;li&gt;SFTP access&lt;/li&gt;
+&lt;li&gt;EasyWP Cache plugin (and it&amp;#8217;s actually good!)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;You will need to snag your own SSL certificate though, but this is easily obtained with something like &lt;a href=&quot;https://letsencrypt.org&quot;&gt;letsencrypt.org&lt;/a&gt;.&lt;/p&gt;
+&lt;p&gt;Best of all, if in the future you require more features the next pricing tier is still only $7.88. Not too shabby!&lt;/p&gt;
+&lt;h2 id=&quot;try-yourself&quot;&gt;Try Yourself&lt;/h2&gt;
+&lt;p&gt;The fact that EasyWP gives you a free month trial, there really is no reason not to try spinning up your own blog or online store or whatever the heck you want to build. The more people with personal spaces on the web the better.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/performance-focused-wordpress-theme"/>
+ <id>https://btxx.org/posts/performance-focused-wordpress-theme</id>
+ <updated>2021-09-08T10:00:00Z</updated>
+ <published>2021-09-08T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>My Changing Opinion on Personal Website Design</title>
+ <content type="html">&lt;h1 id=&quot;my-changing-opinion-on-personal-website-design&quot;&gt;My Changing Opinion on Personal Website Design&lt;/h1&gt;
+&lt;p&gt;2021-05-19&lt;/p&gt;
+&lt;p&gt;Hey would you look at that - my personal blog has been redesigned &lt;em&gt;again&lt;/em&gt;! Although I am still using good ol&amp;#8217; Jekyll for the backend, I have now added a more fleshed-out CSS design which also includes a set of open source custom typefaces.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Gasp!&lt;/strong&gt; &amp;#8220;How &lt;em&gt;could&lt;/em&gt; you?!&amp;#8221; I hear you ask. Let me explain.&lt;/p&gt;
+&lt;h2 id=&quot;personal-sites-should-feel-personal&quot;&gt;Personal sites should feel personal&lt;/h2&gt;
+&lt;p&gt;I can see how this change might seem hypocritical (it took some convincing myself) but I decided to follow in to footsteps of Kev Quirk and &lt;a href=&quot;https://kevq.uk/adding-some-whimsy-character/&quot;&gt;added a little whimsy and character&lt;/a&gt; to my website. After all, personal websites should &lt;em&gt;feel personal&lt;/em&gt;. My obsession with barebones HTML &amp;#38; CSS serves its purpose on other public projects, but seems limiting for my own little space on the interwebs.&lt;/p&gt;
+&lt;h2 id=&quot;banned-from-my-own-club&quot;&gt;Banned from my own club&lt;/h2&gt;
+&lt;p&gt;I had originally converted this blog&amp;#8217;s design to use &lt;em&gt;zero&lt;/em&gt; CSS and instead rely solely on default browser styling. The main reasoning for doing so, was to have the ability to include my own personal website in the &lt;a href=&quot;https://xhtml.club&quot;&gt;XHTML Club&lt;/a&gt; project. (I never said it was a &lt;em&gt;good&lt;/em&gt; reason)&lt;/p&gt;
+&lt;p&gt;After giving it some thought, I&amp;#8217;ve decided that this limitation seemed too extreme even for me.&lt;/p&gt;
+&lt;h2 id=&quot;moving-forward&quot;&gt;Moving forward&lt;/h2&gt;
+&lt;p&gt;I know I always say &amp;#8220;With this new design, I can finally focus on just writing content!&amp;#8221; - but this is a lie. I&amp;#8217;ll probably be fiddling with my personal website until the day I die. The good news is that I &lt;em&gt;do&lt;/em&gt; have a few tutorial blog posts lined up to publish soon - so be on the lookout for those!&lt;/p&gt;
+&lt;p&gt;Thanks for reading through my pointless ramblings about personal websites. It&amp;#8217;s good to just vent about these things sometimes&amp;#8230;&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/personal-website-opinions"/>
+ <id>https://btxx.org/posts/personal-website-opinions</id>
+ <updated>2021-05-19T10:00:00Z</updated>
+ <published>2021-05-19T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>89 Blog Posts in a Single HTML File</title>
+ <content type="html">&lt;h1 id=&quot;89-blog-posts-in-a-single-html-file&quot;&gt;89 Blog Posts in a Single HTML File&lt;/h1&gt;
+&lt;p&gt;2021-04-22&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;This is no longer the current setup of my blog&lt;/em&gt;. I have switched back to Jekyll for performance reasons. I&amp;#8217;ll be leaving this post up as a point of reference though :)&lt;/p&gt;
+&lt;hr/&gt;
+&lt;p&gt;This is my personal blog (if that wasn&amp;#8217;t already obvious). I currently have 89 blog posts living here. But I have done something magical today:&lt;/p&gt;
+&lt;p&gt;All of these articles are rendered inside a &lt;em&gt;single HTML file&lt;/em&gt;. 🤯&lt;/p&gt;
+&lt;h2 id=&quot;what-sorcery-is-this&quot;&gt;What Sorcery is This?!&lt;/h2&gt;
+&lt;p&gt;No magic here - I&amp;#8217;m just using my own personal static site generator called &lt;a href=&quot;https://phpetite.org&quot;&gt;PHPetite&lt;/a&gt;. You can find all the code and more information about PHPetite on the &lt;a href=&quot;https://github.com/bradleytaunt/phpetite&quot;&gt;official Github repo page&lt;/a&gt;. Please note that this project is still very much a WIP, so go easy on me when pointing out bugs or issues!&lt;/p&gt;
+&lt;h2 id=&quot;pingdom-stats&quot;&gt;Pingdom Stats&lt;/h2&gt;
+&lt;p&gt;Before we get into more details on how everything is built, let&amp;#8217;s take a quick look at some of my website stats (not that pure numbers are 100% accurate of user experience):&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;free and open source (github.com&amp;#47;bradleytaunt&amp;#47;notez)&lt;/li&gt;
-&lt;li&gt;uses &lt;code&gt;localStorage&lt;/code&gt; to keep changes persistent (helpful for browser crashes, etc)&lt;/li&gt;
-&lt;li&gt;includes basic export functionality to download content as a simple &lt;code&gt;output.txt&lt;/code&gt; file&lt;/li&gt;
+&lt;li&gt;99 Performance Grade&lt;/li&gt;
+&lt;li&gt;951 ms Load Time&lt;/li&gt;
+&lt;li&gt;231.3 KB Page Size (thank you Netlify compression!)&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;That&amp;#8217;s it. Mind blowing stuff, eh?&lt;/p&gt;
-&lt;h2 id=&quot;making-stuff-is-fun&quot;&gt;Making stuff is fun&lt;/h2&gt;
-&lt;p&gt;My main takeaway when building this tiny, dumb app was to just &lt;em&gt;enjoy building fun stuff&lt;/em&gt;. It crossed my mind several times how there are already hundreds of note taking apps across the vast Internet. I also thought about how others might look at the code I wrote and go, &amp;#8220;Oh my God - why did he do it that way? What an idiot!&amp;#8221;. But I don&amp;#8217;t care - I had fun making it.&lt;/p&gt;
-&lt;p&gt;Hopefully you enjoy using it as well!&lt;/p&gt;</content>
- <link href="https://btxx.org/introducing-notez"/>
- <id>https://btxx.org/introducing-notez</id>
- <updated>2021-01-13T10:00:00Z</updated>
- <published>2021-01-13T10:00:00Z</published>
- </entry>
- <entry>
- <title>Improving Tufte CSS for Jekyll</title>
- <content type="html">&lt;h1 id=&quot;improving-tufte-css-for-jekyll&quot;&gt;Improving Tufte CSS for Jekyll&lt;/h1&gt;
-&lt;p&gt;2019-11-01&lt;/p&gt;
-&lt;p&gt;After creating the ET-Jekyll theme almost two years ago, I finally got around to revamping the structure and improving a lot of minor performance issues. Items that have been surely needing of updates for the last couple of years.&lt;/p&gt;
-&lt;h2 id=&quot;introductions&quot;&gt;Introductions&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve always been a sucker for Edward Tufte&amp;#8217;s incredibly simple, yet powerful design work used in his books and handout projects. So, in 2018 I released a Tufte CSS inspired Jekyll theme for the open source community. I called it &lt;a href=&quot;https://et-jekyll.netlify.com&quot;&gt;ET-Jekyll&lt;/a&gt; (so original, I know). Tufte CSS was a great starting point for my Jekyll theme, but there were areas I thought could use some minor improvements.&lt;/p&gt;
-&lt;p&gt;Feel free to read all the details on the design here: &lt;a href=&quot;https://et-jekyll.netlify.com/et-jekyll-theme/&quot;&gt;ET-Jekyll theme details&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;minor-fixes-one-year-later&quot;&gt;Minor Fixes One Year Later&lt;/h2&gt;
-&lt;p&gt;When I finally circled back to this project recently, I noticed some minor issues that could be improved right away with little to no effort. Let&amp;#8217;s see the changes made at a glance:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://tools.pingdom.com/#5e169d6a82000000&quot;&gt;See all the Pingdom details for yourself&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;Now the &lt;code&gt;Page Size&lt;/code&gt; will certainly change as more blog posts are added over time, but if the total webpage size is roughly 230 KB with 89 blog posts, I figure that gives me the ability to add another 200 or so posts before I cross the &lt;a href=&quot;https://1mb.club&quot;&gt;1MB threshold&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ll deal with how to load in the content more efficiently when that times comes&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;what-about-images&quot;&gt;What About Images?&lt;/h2&gt;
+&lt;p&gt;Good question. Since a large portion of my articles tend to be focused on design and CSS, visual examples are somewhat important. So how do I avoid loading in all the individual images on every single post into this single HTML &amp;#8220;website&amp;#8221;?&lt;/p&gt;
+&lt;p&gt;Easy - I don&amp;#8217;t load any images at all.&lt;/p&gt;
+&lt;p&gt;I now simply set any images that are not included in the current, visible &lt;code&gt;section&lt;/code&gt; to &lt;code&gt;display: none&lt;/code&gt;. This avoids breaking things with the RSS feed.&lt;/p&gt;
+&lt;p&gt;Here is an image example of an old Dribbble shot I created years ago:&lt;/p&gt;
+&lt;p&gt;I have noticed that Safari &amp;#47; Firefox on iOS renders the imagery as broken image links - I plan to look into this further to avoid that confusion. For now it works well on desktop Chromium and Firefox.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;figure&amp;#62;
+ &amp;#60;div class=&quot;img-parent&quot;&amp;#62;
+ &amp;#60;img loading=&quot;lazy&quot; src=&quot;&amp;#47;placeholder-image.webp&quot; onclick=&quot;this.src=&amp;#39;https:&amp;#47;&amp;#47;res.cloudinary.com&amp;#47;bradtaunt&amp;#47;image&amp;#47;fetch&amp;#47;q_auto:low&amp;#47;v1570124593&amp;#47;https:&amp;#47;&amp;#47;uglyduck.ca&amp;#47;public&amp;#47;images&amp;#47;aqua-ui-css-buttons.webp&amp;#39;&quot; alt=&quot;Aqua UI buttons&quot;&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;figcaption&amp;#62;&amp;#60;b&amp;#62;Click the placeholder to load in the real image&amp;#60;&amp;#47;b&amp;#62;&amp;#60;br&amp;#62;Example Dribbble shot for testing. Feel free to click the default image in order to load the correct Dribbble source. &amp;#60;a href=&quot;https:&amp;#47;&amp;#47;res.cloudinary.com&amp;#47;bradtaunt&amp;#47;image&amp;#47;fetch&amp;#47;q_auto:low&amp;#47;v1570124593&amp;#47;https:&amp;#47;&amp;#47;uglyduck.ca&amp;#47;public&amp;#47;images&amp;#47;aqua-ui-css-buttons.webp&quot;&amp;#62;View full size image&amp;#60;&amp;#47;a&amp;#62;.&amp;#60;&amp;#47;figcaption&amp;#62;
+&amp;#60;&amp;#47;figure&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;hows-the-seo&quot;&gt;How&amp;#8217;s the SEO?&lt;/h2&gt;
+&lt;p&gt;Probably terrible to be honest. One single file for all blog posts is something Google will most likely frown upon. Whatever - it&amp;#8217;s my personal blog so I don&amp;#8217;t really give a shit.&lt;/p&gt;
+&lt;h2 id=&quot;rss-feed&quot;&gt;RSS Feed&lt;/h2&gt;
+&lt;p&gt;If you recently added my old RSS feed, I&amp;#8217;m sorry, but you&amp;#8217;ll have to update. The new feed is located at &lt;a href=&quot;https://tdarb.org/feeds/posts.xml&quot;&gt;tdarb.org&amp;#47;feeds&amp;#47;posts.xml&lt;/a&gt;. I made this change to avoid spamming the current feed users.&lt;/p&gt;
+&lt;h2 id=&quot;tasty-dog-food&quot;&gt;Tasty Dog Food&lt;/h2&gt;
+&lt;p&gt;At the end of the day, by moving my personal blog over to PHPetite, it makes me more aware of current bugs and restrictions within the project. I feel like this will help me to improve this static site generator even more over time, instead of letting it die a slow death ignored on Github.&lt;/p&gt;
+&lt;p&gt;I hope you enjoyed this little breakdown and maybe even want to try out PHPetite for yourself? 😉&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/phpetite"/>
+ <id>https://btxx.org/posts/phpetite</id>
+ <updated>2021-04-22T10:00:00Z</updated>
+ <published>2021-04-22T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Stuffing an SSD Inside the Raspberry Pi 400</title>
+ <content type="html">&lt;h1 id=&quot;stuffing-an-ssd-inside-the-raspberry-pi-400&quot;&gt;Stuffing an SSD Inside the Raspberry Pi 400&lt;/h1&gt;
+&lt;p&gt;2021-08-13&lt;/p&gt;
+&lt;p&gt;I have successfully jammed an mSATA SSD into the main shell of my Raspberry Pi 400. It wasn&amp;#8217;t as straightforward as I thought it would be - in fact, most &lt;em&gt;real&lt;/em&gt; hardware tinkerers will probably vomit in their mouths once they see how I achieved this&amp;#8230;&lt;/p&gt;
+&lt;p&gt;But I&amp;#8217;m happy with my build. Those with better skills and knowledge can most likely improve upon this concept (and please do if you can - I&amp;#8217;d love to see it!)&lt;/p&gt;
+&lt;p&gt;Enough chit-chat - on to the build!&lt;/p&gt;
+&lt;h2 id=&quot;the-finished-masterpiece&quot;&gt;The Finished &amp;#8220;Masterpiece&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;Below you can see the final look of my modded Raspberry Pi 400, which I have personally named the &lt;strong&gt;Raspberry Pi 400X&lt;/strong&gt;:&lt;/p&gt;
+&lt;p&gt;Do you see that ugly black USB-C to USB-A cable jutting out from the top? That little guy connects directly to the mSATA SSD &lt;em&gt;inside&lt;/em&gt; the plastic keyboard structure and allows us to boot via USB. It also gives us the flexibility to easily &lt;em&gt;unplug&lt;/em&gt; the internal SSD for times when we desire to boot from micro SD or a different USB device altogether.&lt;/p&gt;
+&lt;p&gt;So, how did I make this?&lt;/p&gt;
+&lt;h2 id=&quot;the-shopping-list&quot;&gt;The Shopping List&lt;/h2&gt;
+&lt;p&gt;Before we deep dive into the terrible hardware modifications I&amp;#8217;ve made to my Pi, I&amp;#8217;ll list out all the items&amp;#47;tools I used during the making of this monstrosity:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Sidenote, marginnote and figure element restyling (flexbox)&lt;/li&gt;
-&lt;li&gt;Table styling fixes (right alignment issues)&lt;/li&gt;
-&lt;li&gt;Switch MathJax over to SVG embeds (performance fixes)&lt;/li&gt;
-&lt;li&gt;Simplify HTML skeleton of main pages, remove overkill classes&lt;/li&gt;
-&lt;li&gt;Remove lazysizes.js to save on load times&lt;/li&gt;
-&lt;li&gt;Fallback on font-display for font loading&lt;/li&gt;
-&lt;li&gt;Inline all CSS for faster initial paint&lt;/li&gt;
-&lt;li&gt;Minor link :hover coloring (accessibility)&lt;/li&gt;
-&lt;li&gt;Add missing image link on example page&lt;/li&gt;
-&lt;li&gt;Update details post structure&lt;/li&gt;
+&lt;li&gt;mSATA 64GB SSD Half Size (KingSpec) &amp;#8594; &lt;a href=&quot;https://www.aliexpress.com/item/32385499968.html?spm=a2g0s.9042311.0.0.210e4c4dIH8xWv&quot;&gt;AliExpress&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;mSATA to USB 3.1 enclosure (gutted) &amp;#8594; &lt;a href=&quot;https://www.amazon.ca/gp/product/B07BBM3BVS/ref=ppx_yo_dt_b_asin_title_o09_s00?ie=UTF8&amp;amp;psc=1&quot;&gt;Amazon&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Dremel rotary tool with soft sanding bits&lt;/li&gt;
+&lt;li&gt;Metal cutting scissors &amp;#47; knife&lt;/li&gt;
+&lt;li&gt;Electrical tape&lt;/li&gt;
+&lt;li&gt;Patience&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;You can view all the updates in more detail &lt;a href=&quot;https://github.com/bradleytaunt/ET-Jekyll/commit/254f9e8f28764c9525ba7405bbbfa18a3867d241&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;So what did this accomplish?&lt;/strong&gt; Let&amp;#8217;s break it down below.&lt;/p&gt;
-&lt;h2 id=&quot;first-contentful-paint-input-delay&quot;&gt;First Contentful Paint &amp;#38; Input Delay&lt;/h2&gt;
-&lt;p&gt;The new improvements have netted the theme a savings of 300ms on first paint and reduced the input delay by 150ms. Small wins - but wins nonetheless since every millisecond counts.&lt;/p&gt;
-&lt;h2 id=&quot;fixing-render-blocking-items&quot;&gt;Fixing Render Blocking Items&lt;/h2&gt;
-&lt;p&gt;The original theme reported a few items that were slowing down the initial render for the end-users:&lt;/p&gt;
+&lt;h2 id=&quot;modding-the-raspberry-pi-400&quot;&gt;Modding the Raspberry Pi 400&lt;/h2&gt;
+&lt;p&gt;The final product requires us to attach the half size mSATA SSD to the (gutted) enclosure and then insert that directly inside the Pi (next to the lock port &amp;#47; ethernet). Our first step will be to disassemble the Pi 400, safely remove the keyboard module and remove the metal heatsink.&lt;/p&gt;
+&lt;p&gt;With your trusty metal cutting scissors (or whatever tool you prefer) you will need to cut out room for our enclosure internals to fit within:&lt;/p&gt;
+&lt;p&gt;Next you will need to carefully remove the Pi board itself from the red part of the case. Once placed safely aside, it&amp;#8217;s time to bust out our sanding dremel and remove the jutting plastic blocking our soon-to-be-added SSD. Remember to wear a mask during this phase, since breathing in plastic dust and fumes is not fun!&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Important to note:&lt;/strong&gt; this will remove one of the screw slots needed to secure the heatsink into the board. Not a big deal if you ask me&amp;#8230;&lt;/p&gt;
+&lt;p&gt;While you have the Pi board removed you should also cut out a slot for the USB-C to USB-A cable to connect our mSATA to one of our USB 3 ports on the Pi. For this I&amp;#8217;ve opted to butcher the lock port (will I ever really use that anyway?)&lt;/p&gt;
+&lt;p&gt;Now all that&amp;#8217;s left is to insert our gutted mSATA enclosure (with the half size SSD attached of course)
+, tape it down with some hideous electrical tape and close this bad boy back up!&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it! You now have the portable power of the Raspberry Pi 400, but now with the speed and performance of an SSD!&lt;/p&gt;
+&lt;h2 id=&quot;the-performance-gains&quot;&gt;The Performance Gains&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
-&lt;th&gt;URL&lt;/th&gt;
-&lt;th&gt;Size (KB)&lt;/th&gt;
-&lt;th&gt;Savings (ms)&lt;/th&gt;
+&lt;th&gt;Storage Type&lt;/th&gt;
+&lt;th&gt;Seq. Write&lt;/th&gt;
+&lt;th&gt;Random W&lt;/th&gt;
+&lt;th&gt;Random R&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
-&lt;td&gt;&amp;#47;css&amp;#47;style.css&lt;/td&gt;
-&lt;td&gt;2.0&lt;/td&gt;
-&lt;td&gt;150&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;&amp;#47;lazysizes@4.0.1&amp;#47;lazysizes.js&lt;/td&gt;
-&lt;td&gt;5.0&lt;/td&gt;
-&lt;td&gt;960&lt;/td&gt;
+&lt;td&gt;Micro SD Card&lt;/td&gt;
+&lt;td&gt;17818 KB&amp;#47;sec&lt;/td&gt;
+&lt;td&gt;812 IOPS&lt;/td&gt;
+&lt;td&gt;2335 IOPS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
-&lt;td&gt;MathJax.js?config=TeX-MML-AM_CHTML&lt;/td&gt;
-&lt;td&gt;18.0&lt;/td&gt;
-&lt;td&gt;1,260&lt;/td&gt;
+&lt;td&gt;mSATA SSD&lt;/td&gt;
+&lt;td&gt;206738 KB&amp;#47;sec&lt;/td&gt;
+&lt;td&gt;14615 IOPS&lt;/td&gt;
+&lt;td&gt;17925 IOPS&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
-&lt;p&gt;These items were resolved by:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Rendering all styling inline (therefore removing the extra HTTP request)&lt;/li&gt;
-&lt;li&gt;Removing the lazysizes library altogether (browsers plan to support lazy loading natively in the future)
+&lt;p&gt;I think it&amp;#8217;s pretty clear that the SSD blows the default micro SD card out of the water&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
+&lt;p&gt;Now clearly you could just plug-in an external SSD and walk away with the same performance boosts - but where is the fun in that?&lt;/p&gt;
+&lt;p&gt;If anyone decides to improve on this or make a cleaner approach, please do share it with me. I&amp;#8217;d love to see it!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/pi-400-internal-ssd"/>
+ <id>https://btxx.org/posts/pi-400-internal-ssd</id>
+ <updated>2021-08-13T10:00:00Z</updated>
+ <published>2021-08-13T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Setting Up 1.1.1.1 for Families on a Pi-Hole</title>
+ <content type="html">&lt;h1 id=&quot;setting-up-1.1.1.1-for-families-on-a-pi-hole&quot;&gt;Setting Up 1.1.1.1 for Families on a Pi-Hole&lt;/h1&gt;
+&lt;p&gt;2021-10-28&lt;/p&gt;
+&lt;p&gt;After seeing Cloudflare&amp;#8217;s 1.1.1.1 for Families mentioned on the &lt;a href=&quot;https://news.ycombinator.com/item?id=29024195&quot;&gt;front page of HackerNews&lt;/a&gt;, I thought it might be helpful to show those currently using a &lt;a href=&quot;https://pi-hole.net&quot;&gt;pi-hole device&lt;/a&gt; how to include 1.1.1.1 alongside it.&lt;/p&gt;
+&lt;h2 id=&quot;keeping-things-updated&quot;&gt;Keeping Things Updated&lt;/h2&gt;
+&lt;p&gt;It should go without saying that you should be running the latest stable pi-hole version for security and full feature support. To do so, simply &lt;code&gt;ssh&lt;/code&gt; into your device (or connect to it directly if you prefer) and run the following to check your pi-hole version:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;pihole -v
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;And if your version is out of date, run:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;pihole -up
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Once it completes the update everything will be good to go!&lt;/p&gt;
+&lt;h2 id=&quot;adding-1.1.1.1-1.1.1.2&quot;&gt;Adding 1.1.1.1 (1.1.1.2)&lt;/h2&gt;
+&lt;p&gt;Now you need to navigate to your main pi-hole admin in your browser (most likely the url will be &lt;em&gt;pi.hole&lt;/em&gt;). Login in using your credentials and the do the following steps:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Navigate to &lt;strong&gt;Settings&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Navigate to &lt;strong&gt;DNS&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Under &amp;#8220;Upstream DNS Servers&amp;#8221; enter:&lt;/li&gt;
+&lt;/ol&gt;
&lt;ul&gt;
-&lt;li&gt;The future plan is to integrate something like Cloudinary for out-of-the-box image processing&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Switch over MathJax to render equations as embedded SVGs (saves on bandwidth rendering an entire extra typeface)&lt;/li&gt;
+&lt;li&gt;Custom 1 (IPv4): 1.1.1.2&lt;/li&gt;
+&lt;li&gt;Custom 2 (IPv4): 1.0.0.2&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;lighthouse-numbers&quot;&gt;Lighthouse Numbers&lt;/h2&gt;
-&lt;p&gt;Though it might not look like much, the updated theme receives a 4-point boost to its performance rating during a Lighthouse audit. Having a perfect score would be even better, but I can settle for 2-points under (for now).&lt;/p&gt;
-&lt;h4 id=&quot;old-version&quot;&gt;Old Version&lt;/h4&gt;
+&lt;h2 id=&quot;ad-block-malware-protection&quot;&gt;Ad-Block &amp;#38; Malware Protection&lt;/h2&gt;
+&lt;p&gt;You now officially have protection against both intrusive advertisements &lt;em&gt;and&lt;/em&gt; sites flagged with malware. Happy (and now safer) browsing!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/pihole-cloudflare"/>
+ <id>https://btxx.org/posts/pihole-cloudflare</id>
+ <updated>2021-10-28T10:00:00Z</updated>
+ <published>2021-10-28T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Plain Text Emails, Please</title>
+ <content type="html">&lt;h1 id=&quot;plain-text-emails-please&quot;&gt;Plain Text Emails, Please&lt;/h1&gt;
+&lt;p&gt;2019-09-09&lt;/p&gt;
+&lt;p&gt;When it comes to website &amp;#47; product design and development most devs should try to keep things simple. By only using as much code as absolutely necessary, projects avoid growing out of scope or becoming bloated. So, why isn&amp;#8217;t this same approach taken for email?&lt;/p&gt;
+&lt;h2 id=&quot;a-brief-history-of-email&quot;&gt;A brief history of email&lt;/h2&gt;
+&lt;p&gt;Email has been possible since the 1960s with &lt;a href=&quot;https://en.wikipedia.org/wiki/Time-sharing&quot;&gt;time-sharing computers&lt;/a&gt; being used to share files and messages across early devices. Around the 80s and 90s it seemed as though &lt;a href=&quot;https://en.wikipedia.org/wiki/Government_Open_Systems_Interconnection_Profile&quot;&gt;GOSIP&lt;/a&gt; would dominate the market, but this was knocked out in favor of SMTP, POP3 and IMAP in 1995 when the &lt;a href=&quot;http://www.walthowe.com/navnet/history.html&quot;&gt;National Science Foundation ended its sponsorship of the Internet backbone&lt;/a&gt;, and all traffic relied on commercial networks.&lt;/p&gt;
+&lt;p&gt;Things were looking pretty good at this point. Most operating systems now had a shared foundation of sending and receiving emails on the internet, allowing for a set of standards to be slowly developed and agreed upon over time. These were simpler times, with the default content sent between machines being plain text. No embedded images, no CSS3 fallback support, no &lt;em&gt;fluff&lt;/em&gt; - just content.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Sidenote:&lt;/strong&gt;
+Now, I&amp;#8217;m not going to sit here and pretend to be some expert on the history of email (or the internet in general), so I suggest you take the time to read about &lt;a href=&quot;http://www.walthowe.com/navnet/history.html&quot;&gt;the history of the internet&lt;/a&gt; if you&amp;#8217;re into that kind of thing.&lt;/p&gt;
+&lt;h2 id=&quot;looking-at-some-data&quot;&gt;Looking at some data&lt;/h2&gt;
+&lt;blockquote&gt;
+&lt;p&gt;Data isn&amp;#8217;t everything&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;I understand that the data being used is currently 16 years old - but not many extensive research studies have been performed (specifically for email-type preference in general)&lt;/p&gt;
+&lt;p&gt;In 2002[1], &lt;a href=&quot;https://www.clickz.com/real-world-email-client-usage-the-hard-data/47429/&quot;&gt;a small-set survey was run by ClickZ&lt;/a&gt; was created to gauge the details of personal email data. The main data we will focus on is the user preference between HTML or plain text formats:&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Do you prefer receiving HTML or text email?&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
-&lt;th&gt;Performance&lt;/th&gt;
-&lt;th&gt;Accessibility&lt;/th&gt;
-&lt;th&gt;Best Practices&lt;/th&gt;
-&lt;th&gt;SEO&lt;/th&gt;
+&lt;th&gt;Response&lt;/th&gt;
+&lt;th&gt;Percentage (%)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
-&lt;td&gt;94&lt;/td&gt;
-&lt;td&gt;100&lt;/td&gt;
-&lt;td&gt;100&lt;/td&gt;
-&lt;td&gt;100&lt;/td&gt;
+&lt;td&gt;HTML&lt;/td&gt;
+&lt;td&gt;41.95&lt;/td&gt;
&lt;/tr&gt;
-&lt;/tbody&gt;
-&lt;/table&gt;
-&lt;h4 id=&quot;new-version&quot;&gt;New Version&lt;/h4&gt;
-&lt;table&gt;
-&lt;thead&gt;
&lt;tr&gt;
-&lt;th&gt;Performance&lt;/th&gt;
-&lt;th&gt;Accessibility&lt;/th&gt;
-&lt;th&gt;Best Practices&lt;/th&gt;
-&lt;th&gt;SEO&lt;/th&gt;
+&lt;td&gt;Plain Text&lt;/td&gt;
+&lt;td&gt;31.52&lt;/td&gt;
&lt;/tr&gt;
-&lt;/thead&gt;
-&lt;tbody&gt;
&lt;tr&gt;
-&lt;td&gt;98&lt;/td&gt;
-&lt;td&gt;100&lt;/td&gt;
-&lt;td&gt;100&lt;/td&gt;
-&lt;td&gt;100&lt;/td&gt;
+&lt;td&gt;No Preference&lt;/td&gt;
+&lt;td&gt;26.53&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
-&lt;h2 id=&quot;final-thoughts&quot;&gt;Final Thoughts&lt;/h2&gt;
-&lt;p&gt;This project could still use some more fine-tuning, but for now I&amp;#8217;m fairly happy with the outcome. Even the smallest boost in performance and rendering time makes me feel like I accomplished something worthwhile. &lt;/p&gt;
-&lt;p&gt;Please don&amp;#8217;t hesitate to suggest features or point out any issues you happen to stumble across if you plan to use ET-Jekyll. Thanks for reading!&lt;/p&gt;</content>
- <link href="https://btxx.org/improving-tufte-jekyll"/>
- <id>https://btxx.org/improving-tufte-jekyll</id>
- <updated>2019-11-01T10:00:00Z</updated>
- <published>2019-11-01T10:00:00Z</published>
- </entry>
- <entry>
- <title>Improving Receipt UX</title>
- <content type="html">&lt;h1 id=&quot;improving-receipt-ux&quot;&gt;Improving Receipt UX&lt;/h1&gt;
-&lt;p&gt;2019-05-15&lt;/p&gt;
-&lt;p&gt;There was a pretty interesting article posted a couple days ago about rethinking the standard receipt design that I found quite compelling. Although, as good as the concept is, I think it can be improved (simplified) even further.&lt;/p&gt;
-&lt;h2 id=&quot;what-was-the-redesign-exaclty&quot;&gt;What was the redesign exaclty?&lt;/h2&gt;
-&lt;p&gt;Overall &lt;a href=&quot;https://twitter.com/datatoviz?lang=en&quot;&gt;Susie Lu&lt;/a&gt; did a wonderful job tackling such an old and forgotten design. She fixed some major pain points with the current receipt layout:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Bubble chart to visually indicate total spent per category&lt;/li&gt;
-&lt;li&gt;Categorized items by percentage of total spent&lt;/li&gt;
-&lt;li&gt;List individual items in descending order based on cost&lt;/li&gt;
-&lt;li&gt;Bar charts to compliment the item listing order&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Curious how her redesign looks? &lt;a href=&quot;https://www.fastcompany.com/90347782/the-humble-receipt-gets-a-brilliant-redesign&quot;&gt;Take a look at the original article&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;what-did-this-concept-get-wrong&quot;&gt;What did this concept get wrong?&lt;/h2&gt;
-&lt;p&gt;Simply put: &lt;strong&gt;paper waste&lt;/strong&gt;. &lt;/p&gt;
-&lt;p&gt;Using bubble and bar charts from a visual design perspective is great - but not so eco-friendly in this instance (since we are dealing with physical paper waste). It might seem like a small nitpick but with hundreds of thousands (if not millions) of receipts printed daily, this extra paper space required would add up quickly.&lt;/p&gt;
-&lt;p&gt;Fortunately, I think with some minor tweaks we can keep the underlying principles of the new redesign, while creating a more eco-friendly layout. We can save more space and therefore save on the overall paper needed.&lt;/p&gt;
-&lt;h2 id=&quot;receipt-redesign&quot;&gt;Receipt Redesign&lt;/h2&gt;
-&lt;p&gt;Let&amp;#8217;s take a look at my redesign concept:&lt;/p&gt;
-&lt;p&gt;With this layout we are able to keep all the key concepts that &lt;a href=&quot;https://twitter.com/datatoviz?lang=en&quot;&gt;Susie Lu&lt;/a&gt; initially introduced with her receipt design while preserving more space.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Categories are still listed by percentage of total spent&lt;/li&gt;
-&lt;li&gt;Individual items are organized in descending order based on cost&lt;/li&gt;
-&lt;li&gt;Uppercase and lowercase elements are used to distinguish parent &amp;#47; child items instead of additional space or dividers&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;final-thoughts&quot;&gt;Final thoughts&lt;/h2&gt;
-&lt;p&gt;The original redesign from a visual perspective is &lt;em&gt;wonderful&lt;/em&gt; but when you start to think about implementing it into the real world, it seems slightly impractical. My redesign concept is far from perfect (I&amp;#8217;m sure I&amp;#8217;ve overlooked some use cases) but I think it&amp;#8217;s a strong step forward for redesigning our archaic receipt layouts.&lt;/p&gt;</content>
- <link href="https://btxx.org/improving-receipt-ux"/>
- <id>https://btxx.org/improving-receipt-ux</id>
- <updated>2019-05-15T10:00:00Z</updated>
- <published>2019-05-15T10:00:00Z</published>
- </entry>
- <entry>
- <title>Improving Github's New Design</title>
- <content type="html">&lt;h1 id=&quot;improving-githubs-new-design&quot;&gt;Improving Github&amp;#8217;s New Design&lt;/h1&gt;
-&lt;p&gt;2020-07-07&lt;/p&gt;
-&lt;p&gt;Like many other Github users, I am not a big fan of their recent repository page redesign. In my mind it seems like a change just for the sake of change - the original UI worked perfectly fine.&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;Sigh.&lt;/em&gt;&lt;/p&gt;
-&lt;p&gt;I was planning on recreating the original Github layout with custom CSS but decided against it. Tackling such a big change in design would cause headaches if Github ever changed even one simple class or id on a given element. My final conclusion was to just improve their new design with my own personal quality of life improvements.&lt;/p&gt;
-&lt;p&gt;So, enough chit-chat. Let&amp;#8217;s get into it.&lt;/p&gt;
-&lt;h2 id=&quot;current-design-2020&quot;&gt;Current Design (2020)&lt;/h2&gt;
-&lt;p&gt;The default view for a repo&amp;#8217;s homepage and ticket items are locked at a set &lt;code&gt;max-width&lt;/code&gt;. This causes some visual strain in comparison to the full-width headers and navigations directly above. I use a decently sized montior when using your app Gitub - &lt;strong&gt;let me use all the space available to me&lt;/strong&gt;!&lt;/p&gt;
-&lt;h2 id=&quot;my-improvements&quot;&gt;My Improvements&lt;/h2&gt;
-&lt;p&gt;Your users shouldn&amp;#8217;t have to jump around the page looking for the important information they want to see. Resetting the basic repo information to the left side of the screen allows user to &lt;em&gt;instantly&lt;/em&gt; read-up on the project details. (This design is catered towards left-to-right readers mind you).&lt;/p&gt;
-&lt;p&gt;We now also utilize all the available screen space, dependent on the user&amp;#8217;s browser window size.&lt;/p&gt;
-&lt;p&gt;We make similar updates to the ticket item view and also remove the out-of-place &lt;code&gt;margin-bottom&lt;/code&gt; from the project link headers.&lt;/p&gt;
-&lt;h2 id=&quot;try-it-yourself&quot;&gt;Try It Yourself!&lt;/h2&gt;
-&lt;p&gt;You can very easily implement these custom CSS changes with an extension for the browser of your choice:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Firefox: &lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/styl-us/&quot;&gt;Stylus&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Chrome: &lt;a href=&quot;https://chrome.google.com/webstore/detail/stylebot/oiaejidbmkiecgbjeifoejpgmdaleoha&quot;&gt;Stylebot&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Then create a new custom CSS file to target &lt;code&gt;github.com&lt;/code&gt; with the following properties:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.container-xl {
- max-width: 100%;
-}
-
-.repository-content .gutter-condensed.gutter-lg {
- flex-direction: row-reverse !important;
-}
-
-.repository-content #discussion_bucket .gutter-condensed.gutter-lg {
- flex-direction: row !important;
-}
-
-.repohead &amp;#62; div.d-flex {
- margin-bottom: 0 !important;
-}
-
-#show_issue {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
-}
-
-.repository-content #discussion_bucket,
-#partial-discussion-header {
- width: 100%;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it! Feel free to improve on this and further make it your own! I might create a new repo for this project if I end up adding even more improvements to the core CSS.&lt;/p&gt;</content>
- <link href="https://btxx.org/improving-githubs-new-design"/>
- <id>https://btxx.org/improving-githubs-new-design</id>
- <updated>2020-07-07T10:00:00Z</updated>
- <published>2020-07-07T10:00:00Z</published>
- </entry>
- <entry>
- <title>Using HTML Validator Badges Again</title>
- <content type="html">&lt;h1 id=&quot;using-html-validator-badges-again&quot;&gt;Using HTML Validator Badges Again&lt;/h1&gt;
-&lt;p&gt;2019-07-05&lt;/p&gt;
-&lt;p&gt;There was a time on the Internet when websites wore badges of honor, declaring that their code was semantic and followed the W3C guidelines. The validators we used weren&amp;#8217;t great (and &lt;strong&gt;still&lt;/strong&gt; aren&amp;#8217;t perfect) but they represented a community that took pride in caring about the quality of their work. I think it&amp;#8217;s time we bring HTML badges back.&lt;/p&gt;
-&lt;h2 id=&quot;getting-the-flaws-out-of-the-way&quot;&gt;Getting the flaws out of the way&lt;/h2&gt;
-&lt;p&gt;Of course, there were reasons why these badges slowly faded out of popularity. Some of the reasoning made sense, but most felt like a stretch in logic from my perspective. I always looked at it as a &amp;#8220;the good outweighs the bad&amp;#8221;.&lt;/p&gt;
-&lt;p&gt;Jukka Korpela&amp;#8217;s post way back in 2003, &lt;a href=&quot;http://jkorpela.fi/html/validation.html&quot;&gt;HTML validation is a good tool but just a tool&lt;/a&gt;, highlighted a lot of problems with relying so heavily on these HTML validators. I suggest you give it a read if this kind of thing interests you. I found it fascinating, even though I disagree with most of the points he makes.&lt;/p&gt;
-&lt;p&gt;Some negatives used to dismiss HTML badges:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;strong&gt;The badge system is outdated&lt;/strong&gt;
-&lt;ul&gt;
-&lt;li&gt;Dismissing the worth of something based on how long it has been around is foolish. Many tools and frameworks are &amp;#8220;outdated&amp;#8221; but are still used to this day with great success.&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;HTML5 doesn&amp;#8217;t &lt;em&gt;require&lt;/em&gt; validation&lt;/strong&gt;
+&lt;p&gt;On initial review, one could make the argument that the general public &lt;em&gt;prefers&lt;/em&gt; HTML email over plain text (~42% vs ~32%) - but I would disagree with this analysis. The roughly 27% of respondents who answered with &lt;em&gt;No Preference&lt;/em&gt; should not be dismissed so easily.&lt;/p&gt;
+&lt;p&gt;Since the &lt;em&gt;No Preference&lt;/em&gt; respondents don&amp;#8217;t care whether emails they receive are designed in HTML format, why not send them plain text variations by default? The positives of plain text greatly outweigh those of HTML:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Technically &lt;em&gt;no subset of HTML&lt;/em&gt; requires validation - but developers should aim for it. The W3C validators perform a solid job of keeping a standard for web development, so by following a standard we can keep experiences consistent for users.&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Validation is too formal&lt;/strong&gt;
+&lt;li&gt;Plain text has reduced file size
&lt;ul&gt;
-&lt;li&gt;I believe in the ability to achieve your desired outcome based on almost any constraints. If a project leans you towards invalid or non-semantic structure to fulfill requirements, a better approach needs to be evaluated. We as developers tend to settle too quickly on the easiest option available to us.&lt;/li&gt;
+&lt;li&gt;Don&amp;#8217;t forget that many users have limited data usage across much of the world&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Websites &amp;#47; web apps are just &lt;em&gt;too complex&lt;/em&gt; to follow the W3C guidelines&lt;/strong&gt;
+&lt;li&gt;HTML is more likely to be flagged as spam by email clients
&lt;ul&gt;
-&lt;li&gt;I call &lt;em&gt;BS&lt;/em&gt; on this argument. The complexity of a website should have nothing to do with keeping semantic standards. &lt;em&gt;This is your job.&lt;/em&gt;&lt;/li&gt;
+&lt;li&gt;This is due to extra code, tracking scripts, 3rd party assets &amp;#47; resources being called&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;It only exists to catch syntax errors&lt;/strong&gt;
+&lt;li&gt;HTML &amp;#47; CSS can be inconsistent or even limited in support across email clients&lt;/li&gt;
+&lt;li&gt;Text only requires less design work for your development team
&lt;ul&gt;
-&lt;li&gt;For the record, I still see this more of a positive take on using validators. Subtle and nuanced syntax mistakes can be easily overlooked by the human eye.&lt;/li&gt;
+&lt;li&gt;Don&amp;#8217;t forget about testing all the various email clients too&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;nobody-puts-badges-in-a-corner&quot;&gt;&amp;#8220;Nobody puts &lt;em&gt;badges&lt;/em&gt; in a corner&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;A large of amount of designers &amp;#47; developers tend to forget that there are new people entering our industry everyday and they might not be as well versed in the basics of the web (HTML &amp;#38; CSS specifically). Since so many newcomers start out with JavaScript frameworks or jump onto pre-existing projects, they don&amp;#8217;t always grasp the core foundation of valid markup. Some frameworks even break basic standards for visuals or easier development environments - setting their initial expectations that ugly semantics is acceptable code. The ends justify the means, etc.&lt;/p&gt;
-&lt;p&gt;Guiding first-timers towards HTML validators let&amp;#8217;s them rethink their structure when building products or at least give some forethought to their outputted code. We, the more &lt;em&gt;verteran&lt;/em&gt; members of the community, have the knowledge of proper semantics since we grew our careers around this &amp;#8220;trend&amp;#8221;. We shouldn&amp;#8217;t assume newbies have the same understanding. The basics are important.&lt;/p&gt;
-&lt;h2 id=&quot;open-source-html5-badge&quot;&gt;Open source HTML5 badge&lt;/h2&gt;
-&lt;p&gt;Since the W3C doesn&amp;#8217;t officially produce any badges for HTML5 validation 1, I&amp;#8217;ve gone ahead and open sourced &lt;code&gt;SVG&lt;/code&gt; and &lt;code&gt;PNG&lt;/code&gt; versions of a badge based off the current W3C designs. You can check out the Github repo: &lt;a href=&quot;https://github.com/bradleytaunt/html5-valid-badge&quot;&gt;HTML5 Valid Badge&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;If you decide to use these badges, be sure to link these images to your valid passing URL (&lt;a href=&quot;https://html5.validator.nu&quot;&gt;html5.validator.nu&lt;/a&gt;). You can see an example of the link in the footer of this website.&lt;/p&gt;
-&lt;p&gt;Please feel free to reach out and share your websites &amp;#47; projects that pass as valid HTML and include an HTML valid badge. I&amp;#8217;d love to check them out!&lt;/p&gt;
+&lt;p&gt;Add to this that &lt;a href=&quot;https://litmus.com/blog/53-of-emails-opened-on-mobile-outlook-opens-decrease-33&quot;&gt;53% of emails are opened on mobile&lt;/a&gt; - so any &amp;#8220;fancy&amp;#8221; marketing email designs need to look great on mobile screens and also take into account slower connections. What looks better and loads faster than simple plain text? 😛&lt;/p&gt;
+&lt;h2 id=&quot;but-what-about-marketing&quot;&gt;But what about marketing!?&lt;/h2&gt;
+&lt;p&gt;Sorry to say, but marketing should never trump user experience. Teams love to track email opens &amp;#47; click ratios, who subscribed &amp;#47; unsubscribed or who shared the campaign with others - but &lt;strong&gt;it&amp;#8217;s all bloat on the user&amp;#8217;s end&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;Greg Kogan wrote up a great article &amp;#47; case study about his experience &lt;a href=&quot;https://www.gkogan.co/blog/dont-design-emails/&quot;&gt;switching over a client&amp;#8217;s campaign from HTML templates to plain text&lt;/a&gt; with some really interesting results. I highly recommend you give it a read for a better understanding about how the marketing goals and customer goals don&amp;#8217;t always align.&lt;/p&gt;
+&lt;h2 id=&quot;simple-or-lazy---it-doesnt-matter&quot;&gt;Simple or lazy - it doesn&amp;#8217;t matter&lt;/h2&gt;
+&lt;p&gt;Plain text can certainly have a reputation for looking lazy or cheap, but I feel this is mostly perpetuated in the design and marketing communities. I can assure you that your average day-to-day users are much less opinionated about your email campaign design than you are. Look to satisfy your customers&amp;#8217; needs before your own.&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;Life is really simple, but we insist on making it complicated.&lt;/p&gt;
+&lt;p&gt;- Confucius&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;That being said, at the end of the day, companies will justify their own reasons to use HTML email templates over plain text. You can&amp;#8217;t convince everyone. My own personal experience with email template design, along with analyzing some of the data, leaves me to believe that most businesses should default to plain text. At the very least, you should try to convince your team to perform some simple A&amp;#47;B testing with your next email campaign.&lt;/p&gt;
+&lt;p&gt;The results might just surprise you.&lt;/p&gt;
&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;p&gt;1 &lt;a href=&quot;http://html5doctor.com/html5-check-it-before-you-wreck-it-with-miketm-smith/&quot;&gt;Interview with Mike Smith&lt;/a&gt;: &amp;#8220;There won&amp;#8217;t be any proper Valid HTML5 icon forthcoming, so if you&amp;#8217;d like to use one in your content, you&amp;#8217;ll probably need to create one on your own.&amp;#8221;&lt;/p&gt;</content>
- <link href="https://btxx.org/html5-validator-badge"/>
- <id>https://btxx.org/html5-validator-badge</id>
- <updated>2019-07-05T10:00:00Z</updated>
- <published>2019-07-05T10:00:00Z</published>
- </entry>
- <entry>
- <title>Write HTML Like It's 1999</title>
- <content type="html">&lt;h1 id=&quot;write-html-like-its-1999&quot;&gt;Write HTML Like It&amp;#8217;s 1999&lt;/h1&gt;
-&lt;p&gt;2019-06-06&lt;/p&gt;
-&lt;p&gt;I am sure it&amp;#8217;s safe to say that most developers love to use the latest and greatest web tools available. Helpful resources such as preprocessors, template engines, syntax formatters - you name it - can all make a developer&amp;#8217;s life easier. Unfortunately, this sometimes comes at a cost: the HTML structure.&lt;/p&gt;
-&lt;p&gt;This is why I try my best to write HTML as if I&amp;#8217;m stuck with the constraints of the 90s (within reason). What does this mean exactly? It means that &lt;code&gt;tables&lt;/code&gt; are coded with &lt;code&gt;table&lt;/code&gt; elements. Navigations are coded with &lt;code&gt;nav&lt;/code&gt; and ordered&amp;#47;unordered list-items. Form inputs are not set with &lt;code&gt;display: none&lt;/code&gt; and replaced with custom containers. You know, &lt;em&gt;semantic&lt;/em&gt; HTML.&lt;/p&gt;
-&lt;p&gt;To be clear, I&amp;#8217;m not advocating for creating projects that &lt;em&gt;look&lt;/em&gt; like they belong in the 1990s. I would just prefer developers &amp;#47; designers be more conscious of their HTML &lt;em&gt;skeleton&lt;/em&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;bad-html-practices&quot;&gt;Bad HTML practices&lt;/h2&gt;
-&lt;p&gt;Let&amp;#8217;s do a very simple breakdown of some of the more common HTML no-nos:&lt;/p&gt;
-&lt;h2 id=&quot;good-html-practices&quot;&gt;Good HTML practices&lt;/h2&gt;
-&lt;p&gt;So what should you do in place of these bad HTML implementations?&lt;/p&gt;
-&lt;h2 id=&quot;my-basic-structure-test&quot;&gt;My basic &amp;#8220;structure&amp;#8221; test&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve found a pretty simple starting point for testing the &lt;em&gt;bones of a website&lt;/em&gt; by using the following single line of CSS:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;* {
- border: 2px dotted black;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This property simply outlines all elements on the current page in a dotted border. By placing a border on every HTML element you can instantly see how overly complex or &lt;em&gt;ugly&lt;/em&gt; your structure might be under the hood.&lt;/p&gt;
-&lt;h2 id=&quot;thanks-captain-obvious&quot;&gt;&amp;#8220;Thanks, Captain Obvious!&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;I know, this stuff is pretty basic. The point of this post isn&amp;#8217;t to tell you (developers) something brand new or mind-blowing, but instead should inspire you to keep things simple.&lt;/p&gt;
-&lt;p&gt;Don&amp;#8217;t forget that there is always someone new into the world of design and development. Hopefully this post steers others towards keeping HTML code semantic and clean.&lt;/p&gt;
-&lt;h2 id=&quot;update-to-this-article&quot;&gt;Update to this article&lt;/h2&gt;
-&lt;p&gt;Since this post received &lt;a href=&quot;https://news.ycombinator.com/item?id=20133817&quot;&gt;so much more attention&lt;/a&gt; than I ever expected, I&amp;#8217;ve decided to touch on a few small points brought up in the comments.&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;&lt;strong&gt;What is the benefit of semantic HTML?&lt;/strong&gt;
-&lt;ul&gt;
-&lt;li&gt;Accessibility. Programs like screen readers are built around the foundation of proper HTML hierarchy. I highly recommend testing all your projects with a screen reader - it will open your eyes to a lot of issues users with disabilities suffer through.&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Tables not being responsive&lt;/strong&gt;
-&lt;ul&gt;
-&lt;li&gt;This simply isn&amp;#8217;t true. It is much more semantic to layout your tables as you would normally, then for mobile devices you can target specific inner elements and alter them with &lt;code&gt;flexbox&lt;/code&gt; etc. (You can see responsive tables in action &lt;a href=&quot;/responsive-tables&quot;&gt;here&lt;/a&gt;)&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Instead of the CSS one-liner, simply use Firefox debugger&lt;/strong&gt;
-&lt;ul&gt;
-&lt;li&gt;Fair point. Firefox is great!&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;This is the &amp;#8220;latest&amp;#8221; detailed survey I could find on email design preference&lt;/li&gt;
&lt;/ol&gt;</content>
- <link href="https://btxx.org/html-like-1999"/>
- <id>https://btxx.org/html-like-1999</id>
- <updated>2019-06-06T10:00:00Z</updated>
- <published>2019-06-06T10:00:00Z</published>
- </entry>
- <entry>
- <title>HTML Dark Mode</title>
- <content type="html">&lt;h1 id=&quot;html-dark-mode&quot;&gt;HTML Dark Mode&lt;/h1&gt;
-&lt;p&gt;2023-04-11&lt;/p&gt;
-&lt;p&gt;I wrote an article back in 2021 called &lt;a href=&quot;https://bt.ht/lazy-dev-dark-mode/&quot;&gt;The Lazy Developer&amp;#8217;s Dark
-Mode&lt;/a&gt; where I explained how to implement
-a very basic &amp;#8220;dark mode&amp;#8221; by using the &lt;code&gt;prefers-color-scheme&lt;/code&gt; CSS attribute.
-This stills works perfectly fine, and in fact there is a cleaner variation of
-this created by &lt;em&gt;jacksonchen666&lt;/em&gt;: &lt;a href=&quot;https://jacksonchen666.com/posts/2023-04-09/13-47-16/&quot;&gt;These 3 Lines of CSS Will Give You Dark Mode for Free&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;But today I wanted to show how to add dark mode functionality to a website
-without &lt;em&gt;any CSS at all&lt;/em&gt;.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;meta name=&quot;color-scheme&quot; content=&quot;dark light&quot;&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Add that line inside the &lt;code&gt;head&lt;/code&gt; tags on your HTML files and you&amp;#8217;re good to go.&lt;/p&gt;
-&lt;h2 id=&quot;minor-caveat&quot;&gt;Minor Caveat&lt;/h2&gt;
-&lt;p&gt;I mentioned this same issue on the official &lt;a href=&quot;https://barf.bt.ht/dark-mode/&quot;&gt;barf blog
-post&lt;/a&gt; but it doesn&amp;#8217;t hurt to repeat it here.
-Safari still has minor ahref &amp;#47; link color issue when defaulting to browser dark
-mode. If supporting that browser is a deal-breaker for you, I suggest looking
-at my &lt;a href=&quot;https://bt.ht/safari-default-dark-mode/&quot;&gt;hacky solution&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;Hopefully this helps others to add dark mode to their existing websites and
-projects with minimal effort!&lt;/p&gt;</content>
- <link href="https://btxx.org/html-dark-mode"/>
- <id>https://btxx.org/html-dark-mode</id>
- <updated>2023-04-11T10:00:00Z</updated>
- <published>2023-04-11T10:00:00Z</published>
- </entry>
- <entry>
- <title>Goodbye WordPress, Hello Jekyll (Again)</title>
- <content type="html">&lt;h1 id=&quot;goodbye-wordpress-hello-jekyll-again&quot;&gt;Goodbye WordPress, Hello Jekyll (Again)&lt;/h1&gt;
-&lt;p&gt;2020-08-13&lt;/p&gt;
-&lt;p&gt;For the past four months this blog has been running on WordPress - but that ended today. I&amp;#8217;ve officially switched back over to Jekyll. I&amp;#8217;m not going to spend too much time delving into &lt;em&gt;why&lt;/em&gt; I made the transition back, but I&amp;#8217;ll leave some cliff-notes for any interested parties.&lt;/p&gt;
-&lt;h2 id=&quot;the-big-issues-with-my-wordpress-setup&quot;&gt;The big issues with &lt;em&gt;my&lt;/em&gt; WordPress setup&lt;/h2&gt;
-&lt;p&gt;I have to state that these problems existed based on &lt;em&gt;my own&lt;/em&gt; setup &amp;#47; hosting choices with WordPress - this is not a direct reflection of WP itself.&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;&lt;strong&gt;No theme editor access&lt;/strong&gt;
-&lt;ul&gt;
-&lt;li&gt;I was using EasyWP (Namecheap etc.) for my web hosting. It only cost me $3.88&amp;#47;month, which was very cheap for the quality of service provided. Unfortunately, this low price came with some setbacks. EasyWP doesn&amp;#8217;t allow users to edit &lt;code&gt;header.php&lt;/code&gt; or &lt;code&gt;functions.php&lt;/code&gt; files directly in the theme editor. Having to resort to FTP for simple one-line change was annoying.&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Super cache&lt;/strong&gt;
-&lt;ul&gt;
-&lt;li&gt;Caching web pages is wonderful for users on subsequent visits, but EasyWP took this to the extreme. Making minor styling updates sometimes required code changes in the &lt;code&gt;header.php&lt;/code&gt; file directly in order to persist (see problem with editing these files in point #1).&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Monthly cost&lt;/strong&gt;
-&lt;ul&gt;
-&lt;li&gt;As I stated above, spending $3.88 on a monthly basis was peanuts in the grand scheme of things. Still, an extra monthly subscription for a side hobby seemed overkill for my use case.&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Future proofing&lt;/strong&gt;
-&lt;ul&gt;
-&lt;li&gt;In the end, having the core website generate itself into static files means it will stand the test of time on the interwebs. HTML &amp;#38; CSS FTW.&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;what-i-lost-in-the-switch&quot;&gt;What I lost in the switch&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;&lt;strong&gt;Comments&lt;/strong&gt;
-&lt;ul&gt;
-&lt;li&gt;I loved the concept of owing &amp;#47; hosting comments directly on each post but this seemed like a fair trade-off when compared to the positives listed above. I might circle back around and use something like &lt;a href=&quot;https://commento.io/&quot;&gt;Commento&lt;/a&gt; or &lt;a href=&quot;https://github.com/imsun/gitment&quot;&gt;Gitment&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Blog anywhere&lt;/strong&gt;
-&lt;ul&gt;
-&lt;li&gt;Having the ability to hop on any machine, log in to my site and blog was awesome. Over time though, I found myself not doing this very often. Most times when composing an article I found I would write it out, edit and publish all in one sitting. Cool concept - just not as useful.&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;moving-forward&quot;&gt;Moving forward&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve learned to stick with what keeps me productive (and in this case, keeps me writing consistently). I still love WordPress and won&amp;#8217;t hesitate to reach for it when the need arrives. Unfortunately, it seems my personal website isn&amp;#8217;t one of those instances.&lt;/p&gt;</content>
- <link href="https://btxx.org/hello-jekyll"/>
- <id>https://btxx.org/hello-jekyll</id>
- <updated>2020-08-13T10:00:00Z</updated>
- <published>2020-08-13T10:00:00Z</published>
- </entry>
- <entry>
- <title>Converting HEIF Images with macOS Automator</title>
- <content type="html">&lt;h1 id=&quot;converting-heif-images-with-macos-automator&quot;&gt;Converting HEIF Images with macOS Automator&lt;/h1&gt;
-&lt;p&gt;2023-07-21&lt;/p&gt;
-&lt;p&gt;Often times when you save or export photos from iOS to iCloud they often render themselves into &lt;code&gt;heif&lt;/code&gt; or &lt;code&gt;heic&lt;/code&gt; formats. Both macOS and iOS have no problem working with these formats, but a lot of software programs will not even recognize these filetypes. The obvious step would just be to convert them via an application or online service, right?&lt;/p&gt;
-&lt;p&gt;Not so fast! Wouldn&amp;#8217;t it be much cleaner if we could simply right-click our &lt;code&gt;heif&lt;/code&gt; or &lt;code&gt;heic&lt;/code&gt; files and convert them directly in Finder? Well, I&amp;#8217;ve got some good news for you&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;basic-requirements&quot;&gt;Basic Requirements&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;You will need to have &lt;a href=&quot;https://homebrew.sh&quot;&gt;Homebrew&lt;/a&gt; installed&lt;/li&gt;
-&lt;li&gt;You will need to install the &lt;code&gt;libheif&lt;/code&gt; package through Homebrew: &lt;code&gt;brew install libheif&lt;/code&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;creating-our-custom-automator-script&quot;&gt;Creating our custom Automator script&lt;/h2&gt;
-&lt;p&gt;For this example script we are going to convert the image to JPG format. You can freely change this to whatever format you wish (PNG, TIFF, etc.). We&amp;#8217;re just keeping things basic for this tutorial. Don&amp;#8217;t worry if you&amp;#8217;ve never worked with Automator before because setting things up is incredibly simple.&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;&lt;p&gt;Open the macOS Automator from the Applications folder&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Select &lt;code&gt;Quick Option&lt;/code&gt; from the first prompt&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Set &amp;#8220;Workflow receives current&amp;#8221; to &lt;code&gt;image files&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Set the label &amp;#8220;in&amp;#8221; to &lt;code&gt;Finder&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;From the left pane, select &amp;#8220;Library &amp;#62; Utilities&amp;#8221;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;From the presented choices in the next pane, drag and drop &lt;code&gt;Run Shell Script&lt;/code&gt; into the far right pane&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Set the area &amp;#8220;Pass input&amp;#8221; to &lt;code&gt;as arguments&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Enter the following code below as your script and type &lt;code&gt;⌘-S&lt;/code&gt; to save (name it something like &amp;#8220;Convert HEIC&amp;#47;HEIF to JPG&amp;#8221;)&lt;/p&gt;
-&lt;p&gt;for f in &amp;#8220;$@&amp;#8221;
-do
-&amp;#47;opt&amp;#47;homebrew&amp;#47;bin&amp;#47;heif-convert &amp;#8220;$f&amp;#8221; &amp;#8220;${f%.*}.jpg&amp;#8221;
-done&lt;/p&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;making-edits&quot;&gt;Making Edits&lt;/h2&gt;
-&lt;p&gt;If you ever have the need to edit this script (for example, changing the default format to &lt;code&gt;png&lt;/code&gt;), you will need to navigate to your &lt;code&gt;~&amp;#47;Library&amp;#47;Services&lt;/code&gt; folder and open your custom heif Quick Action in the Automator application. &lt;/p&gt;
-&lt;p&gt;Simple as that. Happy converting!&lt;/p&gt;
-&lt;p&gt;If you&amp;#8217;re interested, I also have some other Automator scripts available:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;/batch-webp-conversion/&quot;&gt;Batch Converting Images to webp with macOS Automator&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;/macos-convert-to-html/&quot;&gt;Convert Files to HTML with macOS Automator Quick Actions&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;</content>
- <link href="https://btxx.org/heif"/>
- <id>https://btxx.org/heif</id>
- <updated>2023-07-21T10:00:00Z</updated>
- <published>2023-07-21T10:00:00Z</published>
- </entry>
- <entry>
- <title>Stop Using Hamburger Menus (Sometimes)</title>
- <content type="html">&lt;h1 id=&quot;stop-using-hamburger-menus-sometimes&quot;&gt;Stop Using Hamburger Menus (Sometimes)&lt;/h1&gt;
-&lt;p&gt;2023-05-05&lt;/p&gt;
-&lt;p&gt;I recently &lt;a href=&quot;https://fosstodon.org/@tdarb/110264983268249599&quot;&gt;tooted about my hatred of website hamburger menus&lt;/a&gt; which was met with a surprising amount of support from other users. It seems like most people &lt;em&gt;don&amp;#8217;t actually like hamburger menus&lt;/em&gt;. So why do we, as developers, keep using them in our products and designs? Is it our only option? Or is it because we have become conditioned to expect it?&lt;/p&gt;
-&lt;h2 id=&quot;the-core-problem-with-hamburger-menus&quot;&gt;The Core Problem with Hamburger Menus&lt;/h2&gt;
-&lt;p&gt;The biggest headache when coming across these menus on the web is the complete disregard for &lt;strong&gt;accessibility&lt;/strong&gt;. Performance and solid user experience is almost always thrown out the window in favour of a &amp;#8220;prettier&amp;#8221; design layout. You might have made the overall design &amp;#8220;cleaner&amp;#8221; for your users, but you sacrificed all usability to do so.&lt;/p&gt;
-&lt;p&gt;I challenge you to visit a webpage or web app with a hamburger menu and try to navigate solely with your keyboard and screen-readers (or better yet - try these screen readers on mobile!). Within seconds you will find a whole mess of issues. Now try the same test with JavaScript disabled&amp;#8230; Yikes.&lt;/p&gt;
-&lt;h2 id=&quot;but-i-have-no-choice&quot;&gt;&amp;#8220;But I Have No Choice!&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;I see this argument pop-up frequently when taking to design leaders or developers. I call bullshit on this excuse. You &lt;em&gt;absolutely&lt;/em&gt; have the choice to avoid implementing bad designs - that&amp;#8217;s your job! Either you&amp;#8217;re not fighting hard enough against those pushing for it, or you&amp;#8217;re just trying to build a &amp;#8220;pretty&amp;#8221; portfolio.&lt;/p&gt;
-&lt;h2 id=&quot;best-alternative-sitemap-footer&quot;&gt;Best Alternative: Sitemap Footer&lt;/h2&gt;
-&lt;p&gt;So instead of just whining about hamburger menus, I will actually offer up a solid replacement: &lt;strong&gt;sitemap footers&lt;/strong&gt;. Simply place all your website&amp;#47;application links into the bottom footer and link directly to them from your header. Be sure to also include some form of &amp;#8220;Top of the page&amp;#8221; link for quick access back to the initial scroll view.&lt;/p&gt;
-&lt;p&gt;That&amp;#8217;s it. There is nothing else you need to do for this to &lt;em&gt;just work&lt;/em&gt;. It might sound oversimplified and that&amp;#8217;s because it is. Looking for an example? This very website utilizes this technique, so give it a spin! Try using just your keyboard or even better - use a screen reader. Disable JS and CSS and watch it work flawlessly still.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt;&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Keyboard navigation accessible&lt;/li&gt;
-&lt;li&gt;Excellent screen-reader support&lt;/li&gt;
-&lt;li&gt;Works on all devices&amp;#47;screens by default (no media queries!)&lt;/li&gt;
-&lt;li&gt;Stays out of the way until called upon (UX goodness)&lt;/li&gt;
-&lt;li&gt;Requires ZERO CSS or JavaScript&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;&lt;strong&gt;Cons:&lt;/strong&gt;&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Footer can become large with many links (although I &lt;em&gt;really&lt;/em&gt; don&amp;#8217;t see this as a big deal)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;no-excuse&quot;&gt;No Excuse&lt;/h2&gt;
-&lt;p&gt;There really is no excuse to still be using hamburger menus. Users expect them to be present only because we as designers have conditioned them think that way. They deserve a better experience on the web. The &lt;em&gt;least&lt;/em&gt; we can do is improve something as simple as website navigation&amp;#8230;&lt;/p&gt;</content>
- <link href="https://btxx.org/hamburgers"/>
- <id>https://btxx.org/hamburgers</id>
- <updated>2023-05-05T10:00:00Z</updated>
- <published>2023-05-05T10:00:00Z</published>
- </entry>
- <entry>
- <title>Using Hamburger Menus? Try Sausage Links</title>
- <content type="html">&lt;h1 id=&quot;using-hamburger-menus-try-sausage-links&quot;&gt;Using Hamburger Menus? Try Sausage Links&lt;/h1&gt;
-&lt;p&gt;2019-06-14&lt;/p&gt;
-&lt;p&gt;When designing medium to large sized menu navigations on the mobile web the default go-to, for some time now, has been hamburger menus. This isn&amp;#8217;t necessarily a bad thing, but there is a simpler alternative for certain use cases.&lt;/p&gt;
-&lt;p&gt;Before we get into the nitty-gritty details (and a simple demo) of the &lt;em&gt;sausage link&lt;/em&gt; concept, let&amp;#8217;s take a quick look at the pros and cons of hamburger menus.&lt;/p&gt;
-&lt;h2 id=&quot;hamburger-menus&quot;&gt;Hamburger Menus&lt;/h2&gt;
-&lt;p&gt;The concept of the &lt;a href=&quot;https://codepen.io/search/pens?q=hamburger%20menu&amp;amp;page=1&amp;amp;order=popularity&amp;amp;depth=everything&quot;&gt;hamburger menu&lt;/a&gt; isn&amp;#8217;t &lt;em&gt;horrible&lt;/em&gt; by any means, in fact it does solve a lot of problems from a visual perspective. Unfortunately, that doesn&amp;#8217;t mean it exists without some annoying flaws.&lt;/p&gt;
-&lt;h3 id=&quot;the-good&quot;&gt;The Good&lt;/h3&gt;
-&lt;ul&gt;
-&lt;li&gt;Minimizes the amount visual space the menu requires&lt;/li&gt;
-&lt;li&gt;Fairly commonplace now that a good portion of users understand it&amp;#8217;s functionality&lt;/li&gt;
-&lt;li&gt;Makes the lives of designers easier by tucking all items away on mobile 😛&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h3 id=&quot;the-bad&quot;&gt;The Bad&lt;/h3&gt;
-&lt;ul&gt;
-&lt;li&gt;Requires extra testing&amp;#47;work to ensure the menu will play nice with screen readers and keyboard-only users&lt;/li&gt;
-&lt;li&gt;Can get overly complex with the presence of children dropdown elements, help text etc.&lt;/li&gt;
-&lt;li&gt;Adds bloat to projects that might require additional JavaScript to render these menus (CSS only hamburger menus avoid this issue)&lt;/li&gt;
-&lt;li&gt;Adds an additional point of interaction from the user (click to open, then proceed to read through available options)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;As you can see, the bad points listed above aren&amp;#8217;t &lt;em&gt;that&lt;/em&gt; bad. I see them more as minor potholes along the UX journey for your end-users. A good portion of hamburger menu examples in the wild work perfectly fine and should remain as they are. However, those outliers who abuse or misuse the hamburger concept should be introduced to &lt;strong&gt;sausage links&lt;/strong&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;sausage-links&quot;&gt;Sausage Links&lt;/h2&gt;
-&lt;p&gt;I should start by mentioning that this concept is far from &lt;strong&gt;new&lt;/strong&gt;. There are a good number of websites that already implement this menu type in some form or another. The point of this post isn&amp;#8217;t to blow your mind with some new-never-thought-of navigation design. I&amp;#8217;m just trying to bring awareness to another available menu concept.&lt;/p&gt;
-&lt;p&gt;Enough chit-chat, let&amp;#8217;s take a look at sausage links in action:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/scrolling-navigation.png&quot; alt=&quot;Scrolling menu with sausage links&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/QXjjbE/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;The above CodePen adds a good amount of visual design fluff, so let&amp;#8217;s take a look at the bare minimum HTML &amp;#38; CSS needed to accomplish this menu:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;nav class=&quot;sausage-links&quot;&amp;#62;
- &amp;#60;ul&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Homepage&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Categories&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Filter Properties&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Edit Optional Tags&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Research Papers&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Contact Our Team&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;&amp;#47;ul&amp;#62;
-&amp;#60;&amp;#47;nav&amp;#62;
-
-
-
-&amp;#47;* Sausage Links Nav Container *&amp;#47;
-.sausage-links {
- position: relative;
-}
-
-&amp;#47;* The left and right &quot;faded&quot; pseudo elements *&amp;#47;
-.sausage-links:before, .sausage-links:after {
- content: &amp;#39;&amp;#39;;
- height: calc(100% - 2em);
- pointer-events: none;
- position: absolute;
- top: 1em;
- width: 10px;
- z-index: 2;
-}
-.sausage-links:before {
- background: linear-gradient(to right, rgba(255,255,255,0) 0%, white 100%);
- right: 0;
-}
-.sausage-links:after {
- background: linear-gradient(to left, rgba(255,255,255,0) 0%, white 100%);
- left: 0;
-}
-
-&amp;#47;* Basic flexbox to prevent items from breaking lines *&amp;#47;
-.sausage-links ul {
- display: flex;
- flex-wrap: nowrap;
- overflow: auto;
- -webkit-overflow-scrolling: touch;
-}
-
-.sausage-links ul li {
- white-space: nowrap;
-}
-
-.sausage-links ul li a, .sausage-links ul li a:visited {
- display: inline-block;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Pretty simple, eh?&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: Thanks to &lt;a href=&quot;https://twitter.com/dany0w&quot;&gt;@dany0w&lt;/a&gt; for pointing out that I forgot to include &lt;code&gt;-webkit-overflow-scrolling: touch&lt;/code&gt; for momentum scrolling on iOS.&lt;/p&gt;
-&lt;h3 id=&quot;the-good-1&quot;&gt;The Good&lt;/h3&gt;
-&lt;ul&gt;
-&lt;li&gt;Extremely minimal amount of CSS required&lt;/li&gt;
-&lt;li&gt;Screen reader &amp;#47; keyboard-only safe&lt;/li&gt;
-&lt;li&gt;Zero JavaScript needed&lt;/li&gt;
-&lt;li&gt;No need for hacky hidden &lt;code&gt;radio&lt;/code&gt; inputs for toggling parent containers etc.&lt;/li&gt;
-&lt;li&gt;Users can see first few available options without any interaction&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h3 id=&quot;the-bad-1&quot;&gt;The Bad&lt;/h3&gt;
-&lt;ul&gt;
-&lt;li&gt;May not look the most visually appealing for certain project designs (ugly scrollbar in some instances)&lt;/li&gt;
-&lt;li&gt;Better suited for small to medium menu lists compared to massive sitemaps&lt;/li&gt;
-&lt;li&gt;Without proper fade &amp;#47; cut off visual cues, users may not understand they can scroll&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;so-should-i-use-hamburger-menus-or-sausage-links&quot;&gt;So, should I use hamburger menus or sausage links?&lt;/h2&gt;
-&lt;p&gt;That really depends on your project or overall mobile design (I know, such a helpful answer). I&amp;#8217;m sure there are even a few use cases where it would make sense to have sausage links within a toggle-based hamburger menu. The menu possibilities could be endless!&lt;/p&gt;
-&lt;p&gt;That&amp;#8217;s it. I hope I&amp;#8217;ve inspired you to try out sausage links in the near future or at least made you think more deeply about mobile navigation design!&lt;/p&gt;
-&lt;p&gt;&amp;#8230;is anyone else really hungry now?&lt;/p&gt;</content>
- <link href="https://btxx.org/hamburger-menu-alternative"/>
- <id>https://btxx.org/hamburger-menu-alternative</id>
- <updated>2019-06-14T10:00:00Z</updated>
- <published>2019-06-14T10:00:00Z</published>
- </entry>
- <entry>
- <title>Goodbye CSS Preprocessors</title>
- <content type="html">&lt;h1 id=&quot;goodbye-css-preprocessors&quot;&gt;Goodbye CSS Preprocessors&lt;/h1&gt;
-&lt;p&gt;2017-09-07&lt;/p&gt;
-&lt;p&gt;I have been using preprocessors across all my side projects since they first popped onto the scene. Sass, Stylus, LESS — you name the CSS preprocessor and I&amp;#8217;ve most likely used it because CSS preprocessors are awesome.&lt;/p&gt;
-&lt;p&gt;But that all changes moving forward. I&amp;#8217;m going back to basics with CSS. Straight vanilla, man.&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/sass-cancel_rl1fsw_c_scale,w_800.webp&quot; alt=&quot;No Sass&quot; /&gt;&lt;/p&gt;
-&lt;h2 id=&quot;why-and-who-cares&quot;&gt;Why? And who cares?&lt;/h2&gt;
-&lt;p&gt;Let&amp;#8217;s start by breaking down the main positives about preprocessors:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Nested syntax&lt;/li&gt;
-&lt;li&gt;Definable variables&lt;/li&gt;
-&lt;li&gt;Advanced mathematical functions&lt;/li&gt;
-&lt;li&gt;Reusable mixins&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;All of these features are great and I completely understand the draw (I was also sucked into the hype) - but now let&amp;#8217;s see the negatives.&lt;/p&gt;
-&lt;h2 id=&quot;1.-debugging-is-a-chore&quot;&gt;1. Debugging is a chore&lt;/h2&gt;
-&lt;p&gt;So you found some weird padding clobbering an element&amp;#8217;s default styles on line 255 of your main complied CSS file? Excellent! Now you just need to figure out which file that property comes from.&lt;/p&gt;
-&lt;p&gt;This might sound trivial or that you can fix this with rendered comments but if you ever work on a project with hundreds of Sass&amp;#47;Stylus&amp;#47;LESS files all importing and compiling into each other - it can get out of hand.&lt;/p&gt;
-&lt;p&gt;Solution: Using plain CSS makes using browser dev tools a breeze. See a bug on line 255? No problem, let me fix line 255.&lt;/p&gt;
-&lt;h2 id=&quot;2.-dependencies-for-development&quot;&gt;2. Dependencies for development&lt;/h2&gt;
-&lt;p&gt;Building a project with a preprocessor brings with it unnecessary baggage; dependencies. You&amp;#8217;ll need to be running some sort of task runner (see grunt or gulp) that will compile and minify your CSS. I see this as extra overhead both during the initial setup of the project for new team members and the testing environment.&lt;/p&gt;
-&lt;p&gt;By using plain CSS, you avoid including an extra package in your package.json file (if applicable) or having to rely on third party compilers such as codekit (although I do recommend this app).&lt;/p&gt;
-&lt;h2 id=&quot;3.-variables-mixins-become-unwieldily&quot;&gt;3. Variables &amp;#38; mixins become unwieldily&lt;/h2&gt;
-&lt;p&gt;Both variables and mixins are great in small doses, but if your project has any real size to it these helpers become a hinderance. By using comma-delimited CSS selectors you can achieve the same outcome without the horror of needing a specific preprocessor file to handle just variables and mixins.&lt;/p&gt;
-&lt;p&gt;Basic example:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;selector, selectTwo, .css-class {
- &amp;#47;* shared styling *&amp;#47;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;4.-welcome-to-nesting-hell&quot;&gt;4. Welcome to nesting hell&lt;/h2&gt;
-&lt;p&gt;Honestly, I&amp;#8217;ve never been a fan of nesting. From a file structure perspective it is indeed very &amp;#8220;clean&amp;#8221;, but you sacrifice that cleanliness in the final compiled production code. You&amp;#8217;re making your development environment easier to glance at and work through at the cost of your production-ready, customer facing code.&lt;/p&gt;
-&lt;p&gt;You also run into another big no-no in my eyes: extreme selector specificity. The DOM target search starts to get out of control once you start having classes and selectors building up towards 10 or more steps.&lt;/p&gt;
-&lt;p&gt;Bad:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;body #home .container .modal nav .inner-nav &amp;#62; ul &amp;#62; li &amp;#62; a {
- color: red;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Good:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.inner-nav a {
- color: red;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Don&amp;#8217;t forget the amount of work needed to override styling with such deep selector specificity. That&amp;#8217;s where you end up diving into the world of !important tags.&lt;/p&gt;
-&lt;h2 id=&quot;final-thoughts&quot;&gt;Final thoughts&lt;/h2&gt;
-&lt;p&gt;It should go without saying that this is just my personal preference, there is no law behind this. If you use and absolutely love preprocessors - more power to you. All I suggest is using plain old vanilla CSS for your next project and see how it works out.&lt;/p&gt;
-&lt;p&gt;And do you know what I&amp;#8217;ve learned to appreciate after switching back to vanilla? CSS is more beautiful when developed in it&amp;#8217;s rawest form.&lt;/p&gt;</content>
- <link href="https://btxx.org/goodbye-css-preprocessors"/>
- <id>https://btxx.org/goodbye-css-preprocessors</id>
- <updated>2017-09-07T10:00:00Z</updated>
- <published>2017-09-07T10:00:00Z</published>
- </entry>
- <entry>
- <title>Applying Email-Based Git Patches in Evolution on Linux</title>
- <content type="html">&lt;h1 id=&quot;applying-email-based-git-patches-in-evolution-on-linux&quot;&gt;Applying Email-Based Git Patches in Evolution on Linux&lt;/h1&gt;
-&lt;p&gt;2023-04-25&lt;/p&gt;
-&lt;p&gt;Users who work with git patches through email most likely use a terminal-based program such as &lt;code&gt;aerc&lt;/code&gt; or &lt;code&gt;mutt&lt;/code&gt;. CLI email clients tend to have built-in support for easily applying patches directly to their local repos. But what about people who prefer to use graphical email apps?&lt;/p&gt;
-&lt;p&gt;Lucky for us, it is actually fairly simple to replicate a similar workflow to that of a CLI client. In this example I will be focusing on the Evolution email client, but the core principles should work in most other GUIs.&lt;/p&gt;
-&lt;h2 id=&quot;the-basics&quot;&gt;The Basics&lt;/h2&gt;
-&lt;blockquote&gt;
-&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The following assumes you already have &lt;code&gt;git&lt;/code&gt; installed and setup on your existing system.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;I find it best to first create a top-level folder on your system named &lt;code&gt;patches&lt;/code&gt;. We will use this folder as a temporary location for reviewing any &lt;code&gt;git&lt;/code&gt; patches submitted via email. I normally place this under &lt;code&gt;&amp;#47;home&amp;#47;&amp;#60;username&amp;#62;&amp;#47;patches&lt;/code&gt;.&lt;/p&gt;
-&lt;p&gt;Next, locate the email patch in Evolution and right-click on it. Select &amp;#8220;Save as mbox&amp;#8230;&amp;#8221; and place this file inside your newly created &lt;code&gt;patches&lt;/code&gt; folder.&lt;/p&gt;
-&lt;p&gt;Now simply open your terminal, navigate to your project and run:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;git am &amp;#60;path-to-patches-folder&amp;#62;&amp;#47;&amp;#60;patch-filename&amp;#62;.mbox
+ <link href="https://btxx.org/posts/plain-text-emails"/>
+ <id>https://btxx.org/posts/plain-text-emails</id>
+ <updated>2019-09-09T10:00:00Z</updated>
+ <published>2019-09-09T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Poor Man's CSS Full-Bleed Layout</title>
+ <content type="html">&lt;h1 id=&quot;poor-mans-css-full-bleed-layout&quot;&gt;Poor Man&amp;#8217;s CSS Full-Bleed Layout&lt;/h1&gt;
+&lt;p&gt;2020-10-07&lt;/p&gt;
+&lt;p&gt;I recently came across the very well written and interesting article, &lt;a href=&quot;https://joshwcomeau.com/css/full-bleed/&quot;&gt;Full-Bleed Layout Using CSS Grid&lt;/a&gt;, while browsing my daily designer feeds. I won&amp;#8217;t go into the post&amp;#8217;s specifics here (I recommend you read the article for yourself) but it details how to render full-bleed element effects utilizing the CSS &lt;code&gt;grid&lt;/code&gt; property.&lt;/p&gt;
+&lt;p&gt;While the approach in the article works perfectly fine, I thought to myself, &amp;#8220;Is there not a simpler, more backwards compatible way to do this?&amp;#8221;. Indeed there is.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Don&amp;#8217;t care about the tutorial?&lt;/strong&gt; &lt;a href=&quot;#live-demo&quot;&gt;Skip down to the live demo&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;make-the-web-backwards-compatible&quot;&gt;Make the Web Backwards Compatible&lt;/h2&gt;
+&lt;p&gt;I try my best when creating specific element designs or layouts to have everything render consistently across almost &lt;em&gt;all&lt;/em&gt; browsers. This tends to include the obvious front-runners: Chrome, Firefox, Safari - but I also try my best not to ignore the oldies: IE11, Edge and older versions of Opera. I believe if most web designers even loosely followed this concept we wouldn&amp;#8217;t be stringing together barely implemented CSS properties and hacking together polyfills for all the unsupported browsers. Just my two cents.&lt;/p&gt;
+&lt;p&gt;What does this have to do with full-bleed exactly? Well, the CSS we will be using in this demo is fully compatible with pretty much &lt;em&gt;any browser&lt;/em&gt; that can run the basic version of CSS rendering. If the browser you&amp;#8217;re targeting supports &lt;code&gt;max-width&lt;/code&gt; and &lt;code&gt;margins&lt;/code&gt; - then have no fear, full-bleeds are here.&lt;/p&gt;
+&lt;h2 id=&quot;our-html-example&quot;&gt;Our HTML Example&lt;/h2&gt;
+&lt;p&gt;Let&amp;#8217;s create a single-column blog layout for this example. We will include a heading, some paragraphs, an image, and a blockquote to keep it simple:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;main&amp;#62;
+ &amp;#60;article&amp;#62;
+ &amp;#60;h1&amp;#62;Main Heading&amp;#60;&amp;#47;h1&amp;#62;
+ &amp;#60;p&amp;#62;Et non consequat eiusmod minim fugiat. Magna duis veniam ex reprehenderit occaecat sit. Nisi ut ex aliquip magna enim.&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Laborum repellat ab earum commodi, consequuntur totam adipisci doloremque asperiores quae at quia non temporibus ipsam voluptate voluptatem ipsa nostrum suscipit aliquid!&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;img src=&amp;#39;https:&amp;#47;&amp;#47;images.unsplash.com&amp;#47;photo-1569083692634-f8db90c093ef?ixlib=rb-1.2.1&amp;#38;q=85&amp;#38;fm=jpg&amp;#38;crop=entropy&amp;#38;cs=srgb&amp;#38;ixid=eyJhcHBfaWQiOjE0NTg5fQ&amp;#39; alt=&quot;Some Image&quot;&amp;#62;
+ &amp;#60;p&amp;#62;Ex excepteur Lorem reprehenderit dolore in consequat voluptate commodo ipsum consequat ea et. Nisi tempor proident anim tempor. Laboris est sunt cillum deserunt culpa proident cillum laborum voluptate. Est exercitation Lorem reprehenderit eu ipsum nisi et.&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus dicta perspiciatis vel ex officiis, nisi optio nihil aspernatur exercitationem sed nobis architecto maxime eaque omnis eos, repellendus necessitatibus provident explicabo?&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid placeat ipsum totam, facere animi tenetur explicabo at veniam, culpa vitae debitis hic modi velit cum perferendis minima quos sit quisquam.&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;blockquote&amp;#62;
+ &amp;#60;p&amp;#62;To be, or not to be, that is the question:&amp;#60;br&amp;#62;Whether &amp;#39;tis nobler in the mind to suffer&amp;#60;br&amp;#62;The slings and arrows of outrageous fortune,&amp;#60;br&amp;#62;Or to take Arms against a Sea of troubles,&amp;#60;br&amp;#62;And by opposing end them: to die, to sleep;&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;cite&amp;#62;- Some guy&amp;#60;&amp;#47;cite&amp;#62;
+ &amp;#60;&amp;#47;blockquote&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus dicta perspiciatis vel ex officiis, nisi optio nihil aspernatur exercitationem sed nobis architecto maxime eaque omnis eos, repellendus necessitatibus provident explicabo?&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid placeat ipsum totam, facere animi tenetur explicabo at veniam, culpa vitae debitis hic modi velit cum perferendis minima quos sit quisquam.&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;article&amp;#62;
+&amp;#60;&amp;#47;main&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This should apply the patch directly to your project without issue. You are now free to test these changes locally. If everything looks good, you&amp;#8217;re able to instantly push these changes remotely.&lt;/p&gt;
-&lt;p&gt;Done and done.&lt;/p&gt;
-&lt;p&gt;Feel free to purge your &lt;code&gt;patches&lt;/code&gt; folder regularly or keep them around for future reference if you prefer!&lt;/p&gt;</content>
- <link href="https://btxx.org/git-patches"/>
- <id>https://btxx.org/git-patches</id>
- <updated>2023-04-25T10:00:00Z</updated>
- <published>2023-04-25T10:00:00Z</published>
- </entry>
- <entry>
- <title>Simplifying the Craigslist Gallery</title>
- <content type="html">&lt;h1 id=&quot;simplifying-the-craigslist-gallery&quot;&gt;Simplifying the Craigslist Gallery&lt;/h1&gt;
-&lt;p&gt;2022-10-03&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;This article was updated on October 11, 2022&lt;/strong&gt;&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m a big fan of &lt;a href=&quot;https://craigslist.org&quot;&gt;craigslist.org&lt;/a&gt; and the overall UX used throughout their application. My own website is an ever-changing example of &amp;#8220;brutalist&amp;#8221; or minimalist design, so I&amp;#8217;m always inspired by existing web apps out in the wild using the same principles.&lt;/p&gt;
-&lt;p&gt;One nitpick I have with the current craigslist design is their approach to image galleries inside their listings. They use a chunk of bloated JavaScript (more than &lt;code&gt;380kB&lt;/code&gt; total) to render something as simple as a collection of images. This seems like overkill to me.&lt;/p&gt;
-&lt;h2 id=&quot;simplifying-things&quot;&gt;Simplifying Things&lt;/h2&gt;
-&lt;p&gt;My first suggestion would be to remove JavaScript altogether. We can replicate most of the required features with just HTML &amp;#38; CSS. Let&amp;#8217;s start with our core HTML structure:&lt;/p&gt;
-&lt;h3 id=&quot;html&quot;&gt;HTML&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;gallery-wrapper&quot;&amp;#62;
- &amp;#60;div class=&quot;full-size&quot;&amp;#62;
- &amp;#60;a name=&quot;p1&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;100&amp;#47;400&quot; alt=&quot;Picture 1&quot; class=&quot;gallery-item&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;a name=&quot;p2&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;101&amp;#47;400&quot; alt=&quot;Picture 2&quot; class=&quot;gallery-item&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;a name=&quot;p3&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;106&amp;#47;400&quot; alt=&quot;Picture 3&quot; class=&quot;gallery-item&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;thumbnails&quot;&amp;#62;
- &amp;#60;a href=&quot;#p1&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;100&amp;#47;100&quot; alt=&quot;Picture 1 Thumbnail&quot; class=&quot;thumbnail-1&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;a href=&quot;#p2&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;101&amp;#47;100&quot; alt=&quot;Picture 2 Thumbnail&quot; class=&quot;thumbnail-2&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;a href=&quot;#p3&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;106&amp;#47;100&quot; alt=&quot;Picture 3 Thumbnail&quot; class=&quot;thumbnail-3&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
+&lt;p&gt;This works well as it is, but we will need to &amp;#8220;section&amp;#8221; off our different areas of content based on whether we want them &lt;code&gt;full-bleed&lt;/code&gt; or not. We do this with - you guessed it - the &lt;code&gt;section&lt;/code&gt; element. In this demo we want the image and blockquote to become &lt;code&gt;full-bleed&lt;/code&gt; when rendered, so we&amp;#8217;ll add the &lt;code&gt;full-bleed&lt;/code&gt; class to those sections for now (more on that later):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;main&amp;#62;
+ &amp;#60;article&amp;#62;
+ &amp;#60;section&amp;#62;
+ &amp;#60;h1&amp;#62;Main Heading&amp;#60;&amp;#47;h1&amp;#62;
+ &amp;#60;p&amp;#62;Et non consequat eiusmod minim fugiat. Magna duis veniam ex reprehenderit occaecat sit. Nisi ut ex aliquip magna enim.&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Laborum repellat ab earum commodi, consequuntur totam adipisci doloremque asperiores quae at quia non temporibus ipsam voluptate voluptatem ipsa nostrum suscipit aliquid!&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;section&amp;#62;
+ &amp;#60;section class=&quot;full-bleed&quot;&amp;#62;
+ &amp;#60;img src=&amp;#39;https:&amp;#47;&amp;#47;images.unsplash.com&amp;#47;photo-1569083692634-f8db90c093ef?ixlib=rb-1.2.1&amp;#38;q=85&amp;#38;fm=jpg&amp;#38;crop=entropy&amp;#38;cs=srgb&amp;#38;ixid=eyJhcHBfaWQiOjE0NTg5fQ&amp;#39; alt=&quot;Some Image&quot;&amp;#62;
+ &amp;#60;&amp;#47;section&amp;#62;
+ &amp;#60;section&amp;#62;
+ &amp;#60;p&amp;#62;Ex excepteur Lorem reprehenderit dolore in consequat voluptate commodo ipsum consequat ea et. Nisi tempor proident anim tempor. Laboris est sunt cillum deserunt culpa proident cillum laborum voluptate. Est exercitation Lorem reprehenderit eu ipsum nisi et.&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus dicta perspiciatis vel ex officiis, nisi optio nihil aspernatur exercitationem sed nobis architecto maxime eaque omnis eos, repellendus necessitatibus provident explicabo?&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid placeat ipsum totam, facere animi tenetur explicabo at veniam, culpa vitae debitis hic modi velit cum perferendis minima quos sit quisquam.&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;section&amp;#62;
+ &amp;#60;section class=&quot;full-bleed&quot;&amp;#62;
+ &amp;#60;blockquote&amp;#62;
+ &amp;#60;p&amp;#62;To be, or not to be, that is the question:&amp;#60;br&amp;#62;Whether &amp;#39;tis nobler in the mind to suffer&amp;#60;br&amp;#62;The slings and arrows of outrageous fortune,&amp;#60;br&amp;#62;Or to take Arms against a Sea of troubles,&amp;#60;br&amp;#62;And by opposing end them: to die, to sleep;&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;cite&amp;#62;- Some guy&amp;#60;&amp;#47;cite&amp;#62;
+ &amp;#60;&amp;#47;blockquote&amp;#62;
+ &amp;#60;&amp;#47;section&amp;#62;
+ &amp;#60;section&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus dicta perspiciatis vel ex officiis, nisi optio nihil aspernatur exercitationem sed nobis architecto maxime eaque omnis eos, repellendus necessitatibus provident explicabo?&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid placeat ipsum totam, facere animi tenetur explicabo at veniam, culpa vitae debitis hic modi velit cum perferendis minima quos sit quisquam.&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;section&amp;#62;
+ &amp;#60;&amp;#47;article&amp;#62;
+&amp;#60;&amp;#47;main&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Here we are placing the full-size gallery images directly inside a single &lt;code&gt;div.full-size&lt;/code&gt; as - you guessed it - &lt;code&gt;img&lt;/code&gt; elements. This already helps us avoid the pitfall of building out spaghetti &lt;code&gt;div&lt;/code&gt; containers.&lt;/p&gt;
-&lt;p&gt;Below this parent container we have another element, &lt;code&gt;div.thumbnails&lt;/code&gt;, which will be used for our separate, smaller thumbnail versions of our main images. The most important items to note are the associated &lt;code&gt;ahref&lt;/code&gt; elements surrounding each &lt;code&gt;img&lt;/code&gt; element. By setting the &lt;code&gt;id&lt;/code&gt; parameter on our thumbnails to match that of the &lt;code&gt;name&lt;/code&gt; on our full-sized images, we can &amp;#8220;scroll&amp;#8221; the proper image into view without the need for JavaScript.&lt;/p&gt;
-&lt;p&gt;Now for the &lt;em&gt;fancy&lt;/em&gt; stuff - the CSS!&lt;/p&gt;
-&lt;h3 id=&quot;css&quot;&gt;CSS&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;.gallery-wrapper {
- position: relative;
-}
-.gallery-wrapper:before {
- background: rgba(255,255,255,0.8);
- content: &quot;Scroll &amp;#47; Swipe 🡢&quot;;
- display: block;
- padding: 5px;
- position: relative;
+&lt;p&gt;That&amp;#8217;s it for the HTML!&lt;/p&gt;
+&lt;h2 id=&quot;the-magic-css-not-really&quot;&gt;The Magic CSS (Not Really)&lt;/h2&gt;
+&lt;p&gt;Now take a deep breath and get ready for some hard CSS work:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;article {
+ width: 100%;
}
-.full-size {
- display: flex;
- scroll-snap-type: x mandatory;
- margin-bottom: 10px;
- max-width: 400px;
- overflow-x: scroll;
+article section {
+ margin: 0 auto;
+ max-width: 480px; &amp;#47;* This can be whatever you want *&amp;#47;
+ width: 100%;
}
-.full-size .gallery-item {
- scroll-snap-align: start;
+article section.full-bleed {
+ max-width: 100%;
}
-
-.thumbnails img {
- cursor: pointer;
- margin-right: 10px;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;That&amp;#8217;s it. &lt;em&gt;Really&lt;/em&gt;. Now any element (blockquotes, specific headers, navigations, footers, etc) that you want to layout as &amp;#8220;full-bleed&amp;#8221;, just wrap it in a &lt;code&gt;section&lt;/code&gt; tag and sick the &lt;code&gt;full-bleed&lt;/code&gt; class on it. Done and done.&lt;/p&gt;
+&lt;p&gt;Obviously you&amp;#8217;ll want to add more styling to clean-up and make your full-bleed layouts more beautiful. This demo was just more of a starting point.&lt;/p&gt;
+&lt;h3 id=&quot;maybe-not-quite-full-bleed&quot;&gt;Maybe Not-Quite-Full-Bleed?&lt;/h3&gt;
+&lt;p&gt;You could also further customize your options by including a class like &lt;code&gt;half-bleed&lt;/code&gt;, which maybe only expands slightly outside the main section &lt;code&gt;max-width&lt;/code&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;article section.half-bleed {
+ max-width: 960px;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Okay, so it isn&amp;#8217;t &lt;em&gt;that&lt;/em&gt; fancy. It&amp;#8217;s actually very basic, which is exactly what we were going for. The images are &amp;#8220;stacked&amp;#8221; inline thanks to the parent container being set to &lt;code&gt;display: flex&lt;/code&gt;, even though it has a set width of &lt;code&gt;600px&lt;/code&gt;. The included &lt;code&gt;scroll-snap-type: x mandatory&lt;/code&gt; tells the browser to allow users to scroll&amp;#47;swipe horizontally through the parent container.&lt;/p&gt;
-&lt;p&gt;The last important piece of this CSS is the &lt;code&gt;scroll-snap-align: start&lt;/code&gt; added to the individual image elements. This parameter &lt;em&gt;snaps&lt;/em&gt; the next image into the starting position of the parent container on scroll, giving a behavior users have come to expect from media galleries.&lt;/p&gt;
-&lt;p&gt;You will also see the included &lt;code&gt;:before&lt;/code&gt; pseudo element attached to the main &lt;code&gt;.gallery-wrapper&lt;/code&gt; element. This isn&amp;#8217;t &lt;em&gt;required&lt;/em&gt; but it certainly helps from a UX standpoint.&lt;/p&gt;
-&lt;h2 id=&quot;live-demo&quot;&gt;Live Demo&lt;/h2&gt;
-&lt;p&gt;Check out the embedded CodePen below to see it in action. More functionality could always be built on top of this, such as rendering all images dynamically on &amp;#8220;build&amp;#8221;, but for a starting point I think it&amp;#8217;s great.&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/ExLRyXz&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</content>
- <link href="https://btxx.org/gallery"/>
- <id>https://btxx.org/gallery</id>
- <updated>2022-10-03T10:00:00Z</updated>
- <published>2022-10-03T10:00:00Z</published>
- </entry>
- <entry>
- <title>Chrome OS Could Become the Future Leader of Computing</title>
- <content type="html">&lt;h1 id=&quot;chrome-os-could-become-the-future-leader-of-computing&quot;&gt;Chrome OS Could Become the Future Leader of Computing&lt;/h1&gt;
-&lt;p&gt;2022-01-06&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;FOSS Enthusiasts&lt;/strong&gt;: This article discusses the use of proprietary software and places it in a &lt;em&gt;positive&lt;/em&gt; light. You have been warned. No angry emails please&amp;#8230;&lt;/p&gt;
-&lt;hr/&gt;
-&lt;p&gt;Google has created one of the best operating systems designed with the everyday user1 in mind: &lt;a href=&quot;https://www.google.com/chromebook/chrome-os/&quot;&gt;Chrome OS&lt;/a&gt;. It is undeniably simple, reliable, easy to setup, and ships with several years of support before any form of EOL kicks in. New models have built-in support for the Google Play Store and Android applications, which is helpful for application development and debugging.&lt;/p&gt;
-&lt;p&gt;In addition, Chrome OS devices allow you to run Linux in a separate container alongside the main OS (on supported devices). You can&amp;#8217;t complain about that!&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s take a quick look at other positive features worth mentioning:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Verified boot&lt;/li&gt;
-&lt;li&gt;Sandboxed environment (similar to how Chrome tabs work)&lt;/li&gt;
-&lt;li&gt;Automatic updates[^2]&lt;/li&gt;
-&lt;li&gt;&lt;em&gt;Incredible&lt;/em&gt; battery life (were talking 10+ hours with heavy usage)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;my-personal-experience&quot;&gt;My Personal Experience&lt;/h2&gt;
-&lt;p&gt;A handful of months ago I snagged the Lenovo Chromebook Duet when it was on sale for my wife. Since she does all her work directly through an Android phone, I thought of this as a nice companion device. And indeed it was&amp;#47;is.&lt;/p&gt;
-&lt;p&gt;In that time, I played around with the tablet myself to have a better grasp of the ecosystem and it&amp;#8217;s obvious limitations. But a funny thing happened. I found that those &amp;#8220;limitations&amp;#8221; slowly started to disappear the longer I worked with the device.&lt;/p&gt;
-&lt;p&gt;I decided to get my own Chrome OS device and snagged the &lt;a href=&quot;https://www.lenovo.com/ca/en/laptops/lenovo/student-chromebooks/Lenovo-10e-Chromebook-Tablet/p/82AM000EUS&quot;&gt;Lenovo 10e Chromebook Tablet&lt;/a&gt; (on sale).&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;10.1&amp;#8221; display (1920 x 1200) &amp;#47; 400 nits&lt;/li&gt;
-&lt;li&gt;4GB of RAM&lt;/li&gt;
-&lt;li&gt;32GB of eMMC storage&lt;/li&gt;
-&lt;li&gt;Processor: MediaTek MT8183 Processor (2.00 GHz, 4 Cores, 1 MB Cache)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Now, I know that your initial reaction is likely: &amp;#8220;Wow, those specs are pretty barebones!&amp;#8221; and you would be correct. But it&amp;#8217;s all you need for this ecosystem to work. As cringe-inducing as it may sound, everything you plan to do on these devices should happen &lt;em&gt;in the cloud&lt;/em&gt;. (Let&amp;#8217;s take a moment to avoid vomiting in our collective mouths)&lt;/p&gt;
-&lt;p&gt;Instead of using a few marketing buzz words, let me breakdown how I personally tailor Chrome OS to my needs as a designer &amp;#47; developer:&lt;/p&gt;
+&lt;h3 id=&quot;sidenote&quot;&gt;Sidenote&lt;/h3&gt;
+&lt;p&gt;For those concerned about accessibility: The &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section&quot;&gt;section element&lt;/a&gt; is a flow content element, so it can contain almost all HTML elements.&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/mdEdjzz&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/poor-mans-full-bleed"/>
+ <id>https://btxx.org/posts/poor-mans-full-bleed</id>
+ <updated>2020-10-07T10:00:00Z</updated>
+ <published>2020-10-07T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>My Cheapskate Commenting System</title>
+ <content type="html">&lt;h1 id=&quot;my-cheapskate-commenting-system&quot;&gt;My Cheapskate Commenting System&lt;/h1&gt;
+&lt;p&gt;2022-02-03&lt;/p&gt;
+&lt;p&gt;My blog now has comments! Well, &lt;em&gt;kind of&lt;/em&gt;&amp;#8230;&lt;/p&gt;
+&lt;p&gt;I went down a two day long rabbit-hole trying to find the best solution for implementing comments on my static website (generated via Jekyll FYI). There are a ton of options out there and many open source models that allow you to spin up your own instance with something like DigitalOcean or AWS. But I&amp;#8217;m a cheap bastard. I refuse to spend $5&amp;#47;month on a blog mostly used for fun and one that I have zero incentive to &amp;#8220;monetize&amp;#8221;.&lt;/p&gt;
+&lt;p&gt;So, what &lt;em&gt;free&lt;/em&gt; options did this old miser have left to chose from? To my surprise, there were two solid options that initially caught my eye! Let&amp;#8217;s take a look then, shall we?&lt;/p&gt;
+&lt;h2 id=&quot;remarkbox&quot;&gt;Remarkbox&lt;/h2&gt;
+&lt;p&gt;Overall I don&amp;#8217;t have many bad things to say about &lt;a href=&quot;https://www.remarkbox.com&quot;&gt;Remarkbox&lt;/a&gt;. It looks nice, is easy to implement and runs a &amp;#8220;pay what you can&amp;#8221; pricing model. What more could you ask for?! The major issue (for me, &lt;em&gt;personally&lt;/em&gt;) is precisely &lt;strong&gt;that&lt;/strong&gt;; the free model. This makes it difficult for me to trust 100% that this system will still be around in 3-4 years. Now I know - even paid systems can shutdown unexpectedly, but I find free tier options end up shutting their doors sooner. There is an option to self-host Remarkbox, but that requires a yearly license and also comes back to the point I made about not wanting to pay for hosting&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;utterances-github-based&quot;&gt;Utterances (Github-based)&lt;/h2&gt;
+&lt;p&gt;The other major option was &lt;a href=&quot;https://utteranc.es&quot;&gt;Utterances&lt;/a&gt;. This system was almost the winner due to it&amp;#8217;s pretty great feature set:&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;&lt;a href=&quot;#daily-tasks&quot;&gt;Daily Tasks&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#programming&quot;&gt;Programming&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#design&quot;&gt;Design&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#gaming&quot;&gt;Gaming&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Open source&lt;/li&gt;
+&lt;li&gt;No tracking, no ads&lt;/li&gt;
+&lt;li&gt;All data stored in GitHub issues&lt;/li&gt;
+&lt;li&gt;Free!&lt;/li&gt;
&lt;/ol&gt;
-&lt;h2 id=&quot;daily-tasks&quot;&gt;Daily Tasks&lt;/h2&gt;
-&lt;p&gt;I feel like going into &lt;em&gt;great&lt;/em&gt; detail explaining how to do basic, daily computing tasks is a little overkill here. Spreadsheets, word documents, Zoom meetings, and streaming media work as expected. You have the ability to use Google&amp;#8217;s own web apps for these things or reach for other vendors such as Microsoft and Libre Office. Not being &amp;#8220;locked in&amp;#8221; to Google software is nice and I appreciate the Chrome OS team being flexible.&lt;/p&gt;
-&lt;h2 id=&quot;programming&quot;&gt;Programming&lt;/h2&gt;
-&lt;p&gt;This one is a mixed bag and your own mileage may vary depending on your specific requirements. Personally, I use Github for almost all my main development work. Because of this, I utilize &lt;a href=&quot;https://github.com/features/codespaces&quot;&gt;Codespaces&lt;/a&gt;. For those unfamiliar with the service, you are running your Github repo in VSCode through the browser. It&amp;#8217;s pretty impressive.&lt;/p&gt;
-&lt;p&gt;If you happen to be a user who uses GitLab or BitBucket to store your project files, &lt;a href=&quot;https://www.gitpod.io/&quot;&gt;Gitpod&lt;/a&gt; is a similar product to Codespaces (which I&amp;#8217;ve used on occasion). This works if your prefer.&lt;/p&gt;
-&lt;p&gt;Others may not like this programming setup but for me it works great. If running code remotely isn&amp;#8217;t your jam, you could always take a look at running &lt;a href=&quot;https://vscodium.com/&quot;&gt;VSCodium&lt;/a&gt; locally via Linux.&lt;/p&gt;
-&lt;h2 id=&quot;design&quot;&gt;Design&lt;/h2&gt;
-&lt;p&gt;There is flexibility yet again in this category. Personally, I tend to use Figma almost exclusively as my main design tool. The best thing about Figma? It runs directly in the browser. A perfect fit for Chromebooks[^3].&lt;/p&gt;
-&lt;p&gt;I do open Gimp periodically for photo-specific work. It runs in its own Linux container and chugs along smoothly, even with 4GB of available memory. If all else fails, one could use &lt;a href=&quot;https://www.photopea.com/&quot;&gt;Photopea&lt;/a&gt; to keep everything working through the browser (if Linux isn&amp;#8217;t your cup of tea).&lt;/p&gt;
-&lt;p&gt;Those of you in love with MacOS specific apps like Sketch - I can&amp;#8217;t help you. You&amp;#8217;re stuck with Apple&amp;#8217;s ecosystem. (Not that there is anything wrong with Sketch!)&lt;/p&gt;
-&lt;h2 id=&quot;gaming&quot;&gt;Gaming&lt;/h2&gt;
-&lt;p&gt;There are other options (that we will get into) but the main gaming champion here is &lt;strong&gt;Stadia&lt;/strong&gt;[^4]. As long as your internet speeds are over 10mbps, mind you. I use garbage satellite internet (counting down the days for Starlink to become available here&amp;#8230;) with an average speed of 18-20mbps and Stadia runs like a dream. Even &lt;em&gt;wirelessly&lt;/em&gt;. Now pair this with the portability of a Chromebook device and you&amp;#8217;ve got yourself a beefier Nintendo Switch.&lt;/p&gt;
-&lt;p&gt;You have solid secondary options like &lt;a href=&quot;https://play.geforcenow.com/mall/#/layout/games&quot;&gt;GeForce Now&lt;/a&gt; and &lt;a href=&quot;https://www.xbox.com/en-CA/xbox-game-pass/cloud-gaming&quot;&gt;Microsoft&amp;#8217;s xCloud (beta)&lt;/a&gt; for an even larger catalogue of games. Not to mention the ability to play a lot of Android games natively on Chromebooks that support Play Store applications.&lt;/p&gt;
-&lt;h2 id=&quot;eye-rolling-scoffing&quot;&gt;Eye Rolling &amp;#38; Scoffing&lt;/h2&gt;
-&lt;p&gt;I can hear the screeching across the interwebs: &amp;#8220;&lt;em&gt;Wait - this is Google! They are literally Satan in disguise! No one can use products from that evil mega corporation!&lt;/em&gt;&amp;#8221;. And while I agree with the sentiment, I think going down this pure, 100% elitist approach to software &lt;em&gt;doesn&amp;#8217;t work&lt;/em&gt; with the everyday casual user. Not to mention the large swath of developers&amp;#47;designers screaming &amp;#8220;Google is bad!&amp;#8221; while working off an &lt;em&gt;Apple&lt;/em&gt; device&amp;#8230;&lt;/p&gt;
-&lt;p&gt;Hell even I, a vocal advocate for open source software and privacy, can see the great benefits to using Chrome OS as a daily driver. &lt;/p&gt;
-&lt;p&gt;Testing out Chrome OS with your non-technical friends and family could help reduce a lot of headaches found in more &amp;#8220;popular&amp;#8221; systems. That doesn&amp;#8217;t mean advanced users have to switch over. Use what works the best for you. For my immediate family members and social circles, I have nothing but positive things to say about Chrome OS.&lt;/p&gt;
-&lt;p&gt;I have no crystal ball to see what the future of Chrome OS holds but it looks pretty promising to me.&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;&amp;#8220;Users&amp;#8221; referring to those mainly using their devices for word documents, spread sheets, media consumption, programming, messaging, minor interactivity (no heavy video or production editing)&lt;/li&gt;
-&lt;li&gt;These updates go unnoticed, compared to that of MacOS or Windows&amp;#8230;&lt;/li&gt;
-&lt;li&gt;Your mileage may vary depending on how much RAM you have on your device&lt;/li&gt;
-&lt;li&gt;Although, Stadia&amp;#8217;s current game selection leaves a lot to be desired&lt;/li&gt;
-&lt;/ol&gt;</content>
- <link href="https://btxx.org/future-os-google"/>
- <id>https://btxx.org/future-os-google</id>
- <updated>2022-01-06T10:00:00Z</updated>
- <published>2022-01-06T10:00:00Z</published>
- </entry>
- <entry>
- <title>Prescription Form UI Improvements</title>
- <content type="html">&lt;h1 id=&quot;prescription-form-ui-improvements&quot;&gt;Prescription Form UI Improvements&lt;/h1&gt;
-&lt;p&gt;2019-03-13&lt;/p&gt;
-&lt;p&gt;I was browsing the Clearly website a few days ago and ended up using their prescription form to update my worsening eyesight. The design of this form wasn&amp;#8217;t &lt;em&gt;bad&lt;/em&gt; per se, but it could certainly be improved.&lt;/p&gt;
-&lt;h2 id=&quot;current-design-of-the-prescription-view&quot;&gt;Current design of the prescription view&lt;/h2&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/prescription-ui.webp&quot; alt=&quot;Default prescription UI&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;As I stated, this design isn&amp;#8217;t horrible by any means, but right away we can notice some problems:&lt;/p&gt;
+&lt;p&gt;But take a look above at point number three. The fact that readers wishing to leave a comment are &lt;strong&gt;required to have a Github account&lt;/strong&gt;. For me, this is a non-starter. I don&amp;#8217;t want to force my audience to sign up for or sign in to &lt;em&gt;any&lt;/em&gt; account just to leave a simple comment on my humble blog. Considering a number of my readers are part of the FOSS community, this just seemed like a bad fit.&lt;/p&gt;
+&lt;h2 id=&quot;finding-inspiration&quot;&gt;Finding Inspiration&lt;/h2&gt;
+&lt;p&gt;I absolutely love the &lt;a href=&quot;https://solar.lowtechmagazine.com&quot;&gt;solar.lowtechmagazine.com&lt;/a&gt; website (both for it&amp;#8217;s content and design) and indirectly found my comment system inspiration there. Okay let&amp;#8217;s be honest, I completely stole their commenting system &amp;#8220;concept&amp;#8221;. Imitation is the sincerest form of flattery, right?&lt;/p&gt;
+&lt;h2 id=&quot;my-comment-system-is&quot;&gt;My Comment System is&amp;#8230;&lt;/h2&gt;
+&lt;p&gt;E-mail. It&amp;#8217;s just &lt;strong&gt;plain e-mail&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ve setup a basic &lt;code&gt;comment-prompt.html&lt;/code&gt; in my &lt;code&gt;_includes&lt;/code&gt; folder that contains a &lt;code&gt;mailto&lt;/code&gt; action button[^1]:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;a href=&quot;mailto:myemail.com?subject=RE: { { page.title | uri_escape } }&quot;&amp;#62;
+ &amp;#60;button&amp;#62;Comment via email&amp;#60;&amp;#47;button&amp;#62;
+&amp;#60;&amp;#47;a&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;This include template is placed at the bottom of every article automatically. Then, that action pulls in the article&amp;#8217;s title as the e-mail subject line in the user&amp;#8217;s default mailing app. That&amp;#8217;s it.&lt;/p&gt;
+&lt;h2 id=&quot;pros&quot;&gt;Pros&lt;/h2&gt;
&lt;ul&gt;
-&lt;li&gt;the layout causes the users&amp;#8217; eyes to jump between left-to-right and top-to-bottom without good correlation&lt;/li&gt;
-&lt;li&gt;title content and &lt;code&gt;next&lt;/code&gt; buttons are centered, while dropdowns are presented as left-to-right&lt;/li&gt;
-&lt;li&gt;anchor link coloring is inconsistent&lt;/li&gt;
-&lt;li&gt;too much whitespace between interactive sections&lt;/li&gt;
-&lt;li&gt;dropdown height overly large&lt;/li&gt;
+&lt;li&gt;No third party application needed&lt;/li&gt;
+&lt;li&gt;Privacy focused&lt;/li&gt;
+&lt;li&gt;More direct interaction with my audience&amp;#47;readers&lt;/li&gt;
+&lt;li&gt;Builds a much more close-knit community&lt;/li&gt;
+&lt;li&gt;Completely free!&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;starting-to-make-some-changes&quot;&gt;Starting to make some changes&lt;/h2&gt;
-&lt;p&gt;Let&amp;#8217;s tackle these problems one at a time. First, we want a more defined page layout so the user can scan through the content more easily (left-to-right, down to the next line, then repeat).&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/prescription-ui-update-1.webp&quot; alt=&quot;Layout wireframe UI&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;We have now left-aligned the title content to be flush with the OD&amp;#47;OS elements below it to help keep the reading flow consistent. &lt;/p&gt;
-&lt;p&gt;The previous layout also had the &lt;code&gt;PD&lt;/code&gt; in-line with the OD&amp;#47;OS element rows which created a problem of resetting the user thought-process. Since it requires the user to jump from the &amp;#8220;right eye&amp;#8221; option to the &amp;#8220;PD&amp;#8221; option, then back to &amp;#8220;left eye&amp;#8221; option it breaks the flow of user &amp;#8220;tasks&amp;#8221;. The new UI shifts the &lt;code&gt;PD&lt;/code&gt; down into it&amp;#8217;s own row, grouping the unrelated tasks on the page separately.&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;You&amp;#8217;ll also notice that I&amp;#8217;ve updated the dropdowns to use a monospace font to convey that these options are number inputs.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;Finally we place the button actions in-line with the &lt;code&gt;PD&lt;/code&gt; block since it previously ate up far more real estate than was necessary.&lt;/p&gt;
-&lt;h2 id=&quot;adding-some-color&quot;&gt;Adding some color&lt;/h2&gt;
-&lt;p&gt;The original design has some inconsistencies with the link coloring - some being a muted grey while others use the accented blue. Updating all interactive links to use Clearly&amp;#8217;s default blue accent color would make for a better disconnect from non-interactive elements.&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/prescription-ui-update-2.webp&quot; alt=&quot;Layout UI with color&quot; /&gt;&lt;/p&gt;
-&lt;h2 id=&quot;finishing-touches&quot;&gt;Finishing touches&lt;/h2&gt;
-&lt;p&gt;Now that the most important aspects of the refreshed UI are complete (layout, UX flow), we can implement all the visual extras to cleanup our basic wireframe.&lt;/p&gt;
+&lt;h2 id=&quot;cons&quot;&gt;Cons&lt;/h2&gt;
&lt;ul&gt;
-&lt;li&gt;make default select styling include depth and importance (this is the main action of the page afterall)&lt;/li&gt;
-&lt;li&gt;round out harsh corner edges on elements&lt;/li&gt;
-&lt;li&gt;set labels and row items with more pleasing backgrounds (while still maintaining contrast)&lt;/li&gt;
-&lt;li&gt;give the &lt;code&gt;next&lt;/code&gt; button visual importance (make it look like a real button)&lt;/li&gt;
+&lt;li&gt;Must be manually curated and posted&lt;/li&gt;
+&lt;li&gt;No notifications&lt;/li&gt;
+&lt;li&gt;No &amp;#8220;built-in&amp;#8221; reply functionality&lt;/li&gt;
+&lt;li&gt;Has the potential to become unwieldy&amp;#8230;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/prescription-ui-update-final.webp&quot; alt=&quot;Layout UI with color&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;That&amp;#8217;s it!&lt;/p&gt;</content>
- <link href="https://btxx.org/form-ui-improvements"/>
- <id>https://btxx.org/form-ui-improvements</id>
- <updated>2019-03-13T10:00:00Z</updated>
- <published>2019-03-13T10:00:00Z</published>
- </entry>
- <entry>
- <title>Adaptable Flexbox Grid</title>
- <content type="html">&lt;h1 id=&quot;adaptable-flexbox-grid&quot;&gt;Adaptable Flexbox Grid&lt;/h1&gt;
-&lt;p&gt;2018-11-22&lt;/p&gt;
-&lt;p&gt;You can use &lt;code&gt;flexbox&lt;/code&gt; for many tricky layout &amp;#8220;hacks&amp;#8221; and implementing a grid layout is no different.&lt;/p&gt;
-&lt;p&gt;Check out the CodePen below to see how you can implement a flexbox grid system that adapts automatically based on how many items you insert per row (maximum 6 children in this example).&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/rQdLxv/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</content>
- <link href="https://btxx.org/flexbox-grid"/>
- <id>https://btxx.org/flexbox-grid</id>
- <updated>2018-11-22T10:00:00Z</updated>
- <published>2018-11-22T10:00:00Z</published>
- </entry>
- <entry>
- <title>Pure CSS Bar Graphs with Graceful Mobile Fallbacks</title>
- <content type="html">&lt;h1 id=&quot;pure-css-bar-graphs-with-graceful-mobile-fallbacks&quot;&gt;Pure CSS Bar Graphs with Graceful Mobile Fallbacks&lt;/h1&gt;
-&lt;p&gt;2020-12-08&lt;/p&gt;
-&lt;p&gt;I recently published a new open source project, Flexbox Bar Graphs, and wanted to share a simple breakdown of how it was built. It isn&amp;#8217;t anything mind-blowing, but I like the idea of placing bar graphs in a web page with &lt;em&gt;zero&lt;/em&gt; Javascript.&lt;/p&gt;
-&lt;p&gt;So in the end, this is what our bar graphs will look like on desktop:&lt;/p&gt;
-&lt;p&gt;And this is how it will look on smaller devices:&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s get into the details!&lt;/p&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;The main &amp;#8220;secret&amp;#8221; of this project is that our graphs are constructed out of HTML &lt;em&gt;tables&lt;/em&gt;. Now before you freak out - this is perfectly fine and works in our favor quite well.&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;If the user has JS disabled &amp;#8211;&amp;#62; they will still see our graphs&lt;/li&gt;
-&lt;li&gt;If the user has CSS disabled &amp;#8211;&amp;#62; they will see a standard data table set&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;All bases are covered!&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;!-- Using a basic table with our custom data-id --&amp;#62;
-&amp;#60;table data-id=&quot;flexbox-bar-graph&quot;&amp;#62;
- &amp;#60;caption&amp;#62;Web Performance Results&amp;#60;&amp;#47;caption&amp;#62;
- &amp;#60;thead&amp;#62;
- &amp;#60;tr&amp;#62;
- &amp;#60;th&amp;#62;Test Performed&amp;#60;&amp;#47;th&amp;#62;
- &amp;#60;th&amp;#62;Before&amp;#60;&amp;#47;th&amp;#62;
- &amp;#60;th&amp;#62;After&amp;#60;&amp;#47;th&amp;#62;
- &amp;#60;th&amp;#62;Difference&amp;#60;&amp;#47;th&amp;#62;
- &amp;#60;&amp;#47;tr&amp;#62;
- &amp;#60;&amp;#47;thead&amp;#62;
- &amp;#60;tbody&amp;#62;
- &amp;#60;tr&amp;#62;
- &amp;#60;th&amp;#62;Initial Load Time&amp;#60;&amp;#47;th&amp;#62;
- &amp;#60;td&amp;#62;
- &amp;#60;!--
- WTF are these CSS variables?
- See the CSS section below
- --&amp;#62;
- &amp;#60;span style=&quot;--data-set:4.7&amp;#47;5;&quot;&amp;#62;&amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;p&amp;#62;4.7&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td&amp;#62;
- &amp;#60;span style=&quot;--data-set:2.7&amp;#47;5;&quot;&amp;#62;&amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;p&amp;#62;2.7&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td&amp;#62;
- &amp;#60;span style=&quot;--data-set:2&amp;#47;5;&quot;&amp;#62;&amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;p&amp;#62;2&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;&amp;#47;tr&amp;#62;
- &amp;#60;&amp;#47;tbody&amp;#62;
-&amp;#60;&amp;#47;table&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Nothing crazy is happening here - just your standard HTML table structure. The one main thing to notice is the &lt;code&gt;--data-set&lt;/code&gt; CSS variable placed inline on each data point. This will be important for our CSS to configure the individual bar graphs properly.&lt;/p&gt;
-&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;This might look overwhelming if I just dumped the whole CSS file in one big code block, so instead I&amp;#8217;m going to break them down into two parts:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Baseline styling (mobile)&lt;/li&gt;
-&lt;li&gt;Desktop styling&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h3 id=&quot;baseline&quot;&gt;Baseline&lt;/h3&gt;
-&lt;p&gt;Here we target just our table elements with the &lt;code&gt;data-id&lt;/code&gt; of &lt;code&gt;flexbox-bar-graph&lt;/code&gt;. This allows us to avoid worrying about adding classes or IDs and also avoids conflicts with other non-graph styled tables in our projects.&lt;/p&gt;
-&lt;p&gt;The base &lt;code&gt;:root&lt;/code&gt; element holds all of our bar graph colors. Change these as you see fit!&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Bar Graph color variables *&amp;#47;
-:root {
- --bar-color-1: #357EC7;
- --bar-color-2: #E42217;
- --bar-color-3: #4CC417;
- --bar-color-4: #7D0541;
- --bar-color-5: #FFD801;
-}
-
-[data-id=&quot;flexbox-bar-graph&quot;] {
- border-collapse: collapse;
- margin: 4rem 0 6rem;
- width: 100%;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] caption {
- text-align: left;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] thead th {
- text-align: right;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] thead th:nth-child(1),
-[data-id=&quot;flexbox-bar-graph&quot;] tbody th {
- text-align: left;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody th {
- font-weight: normal;
- font-style: italic;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody td {
- text-align: right;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody td p {
- margin: 0;
-}
+&lt;h2 id=&quot;fun-experiment&quot;&gt;Fun Experiment&lt;/h2&gt;
+&lt;p&gt;I figure either way, this will be an interesting experiment. I don&amp;#8217;t know my audience size (since I don&amp;#8217;t use any type of tracking) but I assume it&amp;#8217;s very small. Those willing to write me a personal e-mail in order to share their thoughts on my stupid little blog probably have something interesting to say. At least I hope so. &lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s see how this thing goes&amp;#8230;&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/poormans-comment-system"/>
+ <id>https://btxx.org/posts/poormans-comment-system</id>
+ <updated>2022-02-03T10:00:00Z</updated>
+ <published>2022-02-03T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Proper UI Hierarchy</title>
+ <content type="html">&lt;h1 id=&quot;proper-ui-hierarchy&quot;&gt;Proper UI Hierarchy&lt;/h1&gt;
+&lt;p&gt;2019-02-05&lt;/p&gt;
+&lt;p&gt;I often feel like an old man when I complain about flat design and how designers these days have lost (or willfully forgotten) the skill to create accessible UIs with proper visual hierarchy. A skill which at it&amp;#8217;s core seems so simple - yet is overlooked in almost every current modern interface.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m unable to pinpoint the exact reason why designers swapped out depth, hierarchical layouts and accessibility for muted colors, abstract imagery, illegible typography, and unimaginative flat designs.&lt;/p&gt;
+&lt;p&gt;But then again, maybe I&amp;#8217;m just a design-dinosaur of a time long forgotten. Maybe I need to adapt and move with the times. Or maybe the current design trends are just lazy.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m pretty sure it&amp;#8217;s lazy design trends.&lt;/p&gt;
+&lt;h2 id=&quot;stop-complaining-and-do-something&quot;&gt;Stop complaining and do something&lt;/h2&gt;
+&lt;p&gt;As an example, I&amp;#8217;m going to breakdown the process of improving the overall design on a set of &amp;#8220;flat&amp;#8221; button elements.&lt;/p&gt;
+&lt;p&gt;Hopefully this demo article inspires even one designer to rethink their method when approaching UI design and push away from what is currently accepted as the &amp;#8220;correct way to design UI&amp;#8221;.&lt;/p&gt;
+&lt;p&gt;And one final note before we deep dive into this demo: &lt;/p&gt;
+&lt;p&gt;The statement that flat design is inherently worse than it&amp;#8217;s predecessor &lt;strong&gt;is not subjective&lt;/strong&gt;. By stripping away the visual cues that help users distinguish between interface elements you are purposely making a worse experience for them. Designers need to stop designing for other designers.&lt;/p&gt;
+&lt;h2 id=&quot;what-we-will-be-designing&quot;&gt;What we will be designing&lt;/h2&gt;
+&lt;p&gt;In this demo we will be improving the default flat design inspired button layout of the following:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/proper-ui.png&quot; alt=&quot;Proper UI buttons, blue and green&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/yLXJmdy&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;hr/&gt;
+&lt;h2 id=&quot;designing-the-skeleton&quot;&gt;Designing the skeleton&lt;/h2&gt;
+&lt;p&gt;This will be our basic HTML structure, along with it&amp;#8217;s default styling (based on today&amp;#8217;s UI standards):&lt;/p&gt;
+&lt;h3 id=&quot;the-html&quot;&gt;The HTML&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;buttons-container&quot;&amp;#62;
+ &amp;#60;button&amp;#62;Sign Up&amp;#60;&amp;#47;button&amp;#62;
+ &amp;#60;button&amp;#62;Log in&amp;#60;&amp;#47;button&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;desktop&quot;&gt;Desktop&lt;/h3&gt;
-&lt;p&gt;Now we set your &amp;#8220;visual&amp;#8221; bar graphs to show at a set width (in this example it is 1000px and above). That way the &amp;#8220;default&amp;#8221; styling can target the mobile device screen sizes.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;p&gt;The &lt;code&gt;thead tr th:nth-child(x):before&lt;/code&gt; elements create the square &amp;#8220;legends&amp;#8221; beside each individual data point heading&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;The &lt;code&gt;tbody tr td:nth-of-type(x) span&lt;/code&gt; elements are the bars themselves&lt;/p&gt;
-&lt;p&gt;@media(min-width: 1000px) {
- [data-id=&quot;flexbox-bar-graph&amp;#8221;] {
- background: transparent;
- display: block;
- min-height: 400px;
- padding: 0;
- position: relative;
- width: 100%;
- }&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;[data-id=&quot;flexbox-bar-graph&quot;] caption {
- display: block;
- font-size: 2rem;
- text-align: center;
- width: 100%;
-}
-
-[data-id=&quot;flexbox-bar-graph&quot;] thead {
- display: block;
- margin: 2rem 0 3rem;
- width: 100%;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] thead tr {
- border-bottom: 1px solid lightgrey;
+&lt;h3 id=&quot;the-css&quot;&gt;The CSS&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Parent container for the buttons *&amp;#47;
+.buttons-container {
+ background: #E0E9EE;
+ border-radius: 5px;
display: flex;
- justify-content: center;
- padding-bottom: 1rem;
+ padding: 20px;
+ margin: 0 auto;
+ max-width: 300px;
+ width: 100%;
}
-[data-id=&quot;flexbox-bar-graph&quot;] thead tr th {
- display: inline-block;
- margin: 0;
- padding: 0;
- position: relative;
- text-align: right;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:before {
- content:&amp;#39;&amp;#39;;
+&amp;#47;*Shared button styles *&amp;#47;
+button {
+ appearance: none;
+ border: 0;
+ border-radius: 5px;
+ color: #fff;
+ cursor: pointer;
display: inline-block;
- height: 10px;
- margin: 0 0.5rem 0 2rem;
- position: relative;
- width: 10px;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(1),
-[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(1):before {
- display: none;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(2):before {
- background: var(--bar-color-1);
-}
-[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(3):before {
- background: var(--bar-color-2);
-}
-[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(4):before {
- background: var(--bar-color-3);
-}
-[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(5):before {
- background: var(--bar-color-4);
-}
-[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(6):before {
- background: var(--bar-color-5);
-}
-
-[data-id=&quot;flexbox-bar-graph&quot;] tbody {
- display: flex;
- justify-content: space-between;
- min-height: 300px;
- width: 100%;
+ font-size: 14px;
+ font-weight: bold;
+ padding: 15px 20px;
+ width: 50%;
}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody tr {
- display: flex;
- flex-direction: column-reverse;
- flex-wrap: wrap;
- justify-content: flex-end;
- padding: 0 50px;
- position: relative;
- width: 100%;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody tr th {
- font-size: 90%;
- position: absolute;
- text-align: center;
- top: 100%;
- width: calc(100% - 100px);
-}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td {
- align-items: center;
- display: flex;
- flex-direction: column;
- height: 95%;
- justify-content: flex-end;
+&amp;#47;* Sign up button *&amp;#47;
+button:first-child {
+ background: #2FBC3D;
+ margin-right: 10px;
}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td span {
- display: block;
- height: calc(var(--data-set) * 100%);
- width: 20px;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td:nth-of-type(1) span {
- background: var(--bar-color-1);
-}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td:nth-of-type(2) span {
- background: var(--bar-color-2);
-}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td:nth-of-type(3) span {
- background: var(--bar-color-3);
-}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td:nth-of-type(4) span {
- background: var(--bar-color-4);
+&amp;#47;* Log in button *&amp;#47;
+button:last-child {
+ background: #459BCF;
}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td:nth-of-type(5) span {
- background: var(--bar-color-5);
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;adding-simple-improvements&quot;&gt;Adding simple improvements&lt;/h2&gt;
+&lt;p&gt;Gradients (not solely on their own mind you) within UI systems were initially used to help humans make connections with their analog counterparts. Something like toggles or switches matching those found in the real world, allowed users to mentally connect what that element&amp;#8217;s function did almost instantly. &lt;/p&gt;
+&lt;p&gt;Be warned not to confuse this with skeuomorphic design - an element sharing similar qualities as it&amp;#8217;s analog sibling does not instantly make it so.&lt;/p&gt;
+&lt;p&gt;If you ever run into a designer who rolls their eyes or scoffs at you for proposing the use of something such as gradients (in a tactful way, of course) it is safe to assume they have been brainwashed by the modern design hive-mind.&lt;/p&gt;
+&lt;p&gt;To disregard the use of gradients simply because the belief is &amp;#8220;gradients are bad&amp;#8221; is idiotic. Worse still is to do so based on the belief that &amp;#8220;gradients aren&amp;#8217;t &lt;em&gt;in&lt;/em&gt; right now&amp;#8221;. As a designer, your job is to design a beautiful and &lt;em&gt;usable&lt;/em&gt; product - not win high-fives among your peers. &amp;#47;end rant.&lt;/p&gt;
+&lt;h3 id=&quot;adding-subtle-gradients&quot;&gt;Adding subtle gradients&lt;/h3&gt;
+&lt;p&gt;When gradients are implemented properly, most users won&amp;#8217;t even be aware of their presence. The difference in color (specifically on buttons in this example) helps give the illusion of a light source in the interface, which designers can use to their advantage (ie. pull more attention to elements by &amp;#8220;lifting&amp;#8221; them forward on the page).&lt;/p&gt;
+&lt;h3 id=&quot;the-subtly-improved-css&quot;&gt;The subtly improved CSS&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Sign up button *&amp;#47;
+button:first-child {
+ background-image: linear-gradient(-180deg, #1EB52A 0%, #0D941C 100%);
}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td p {
- font-size: 90%;
- margin: 0;
- text-align: center;
+&amp;#47;* Log in button *&amp;#47;
+button:last-child {
+ background-image: linear-gradient(-180deg, #489FD2 0%, #0A6DAC 100%);
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;}&lt;/p&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;bonus-styling&quot;&gt;Bonus Styling&lt;/h2&gt;
-&lt;p&gt;In the Flexbox Bar Graph repo, I&amp;#8217;ve also included the ability to display these bar graphs horizontally, like so:&lt;/p&gt;
-&lt;p&gt;The change in CSS is actually quite simple to pull this off - you just need to include the &lt;code&gt;data-layout&lt;/code&gt; attribute on the table itself.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;[data-layout=&quot;horizontal&quot;] tbody {
- min-height: auto;
+&lt;h2 id=&quot;more-depth-light&quot;&gt;More depth &amp;#38; light&lt;/h2&gt;
+&lt;p&gt;With our subtle gradients we are closer to creating a solid contrast between interactive elements, but we can improve this even further. By adding some more depth with a harder light source and more pronounced outlines, we allow the button elements to stand out on their own more strongly.&lt;/p&gt;
+&lt;p&gt;This is fairly easy to accomplish with CSS using the very basic &lt;code&gt;box-shadow&lt;/code&gt;, &lt;code&gt;text-shadow&lt;/code&gt; and &lt;code&gt;border&lt;/code&gt; properties:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Parent container *&amp;#47;
+.buttons-container {
+ background-image: linear-gradient(0deg, #BBC6CD 3%, #E2EBF0 100%);
+ border: 1px solid #8D8D8D;
+ box-shadow: 0 2px 4px 0 rgba(42,42,42,0.40), inset 0 1px 3px 0 rgba(255,255,255,0.50);
}
-[data-layout=&quot;horizontal&quot;] tbody tr {
- flex-direction: column;
- padding: 0 40px;
+&amp;#47;* Shared button styling with text-shadows *&amp;#47;
+.buttons-container button {
+ text-shadow: 0 2px 4px rgba(0,0,0,0.30);
}
-[data-layout=&quot;horizontal&quot;] tbody tr th {
- width: calc(100% - 80px);
+
+&amp;#47;* Sign up button *&amp;#47;
+.buttons-container button:first-child {
+ background-image: linear-gradient(-180deg, #1EB52A 0%, #0D941C 100%);
+ border: 1px solid #0C6B16;
+ box-shadow: 0 1px 5px 0 rgba(9,116,21,0.50), inset 0 -1px 6px 0 rgba(0,0,0,0.20), inset 0 1px 0 0 rgba(255,255,255,0.50), inset 0 2px 4px 0 rgba(255,255,255,0.50);
}
-[data-layout=&quot;horizontal&quot;] tbody tr th {
- text-align: left;
- top: calc(100% + 20px);
+&amp;#47;* Log in button *&amp;#47;
+.buttons-container button:last-child {
+ background-image: linear-gradient(-180deg, #489FD2 0%, #0A6DAC 100%);
+ border: 1px solid #0A486E;
+ box-shadow: 0 1px 5px 0 rgba(9,85,133,0.50), inset 0 -1px 6px 0 rgba(0,0,0,0.20), inset 0 1px 0 0 rgba(255,255,255,0.50), inset 0 2px 4px 0 rgba(255,255,255,0.50);
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;For easy reference, here is the CSS styling in it&amp;#8217;s entirety:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Parent container *&amp;#47;
+.buttons-container {
+ background-image: linear-gradient(0deg, #BBC6CD 3%, #E2EBF0 100%);
+ border-radius: 5px;
+ border: 1px solid #8D8D8D;
+ box-shadow: 0 2px 4px 0 rgba(42,42,42,0.40), inset 0 1px 3px 0 rgba(255,255,255,0.50);
+ display: flex;
+ padding: 20px;
+ margin: 0 auto;
+ max-width: 300px;
+ width: 100%;
}
-[data-layout=&quot;horizontal&quot;] tbody tr td {
- flex-direction: row;
- height: auto;
- justify-content: start;
- margin: 10px 0;
+&amp;#47;* Shared button styling *&amp;#47;
+button {
+ appearance: none;
+ border: 0;
+ border-radius: 5px;
+ color: #fff;
+ cursor: pointer;
+ display: inline-block;
+ font-size: 14px;
+ font-weight: bold;
+ padding: 15px 20px;
+ text-shadow: 0 2px 4px rgba(0,0,0,0.30);
+ width: 50%;
}
-[data-layout=&quot;horizontal&quot;] tbody tr td span {
- height: 20px;
- width: calc(var(--data-set) * 100%);
+&amp;#47;* Sign up button *&amp;#47;
+button:first-child {
+ background-image: linear-gradient(-180deg, #1EB52A 0%, #0D941C 100%);
+ border: 1px solid #0C6B16;
+ box-shadow: 0 1px 5px 0 rgba(9,116,21,0.50), inset 0 1px 0 0 rgba(255,255,255,0.50), inset 0 2px 4px 0 rgba(255,255,255,0.50);
+ margin-right: 10px;
}
-[data-layout=&quot;horizontal&quot;] tbody tr td p {
- margin-left: 10px;
+&amp;#47;* Log in button *&amp;#47;
+button:last-child {
+ background-image: linear-gradient(-180deg, #489FD2 0%, #0A6DAC 100%);
+ border: 1px solid #0A486E;
+ box-shadow: 0 1px 5px 0 rgba(9,85,133,0.50), inset 0 1px 0 0 rgba(255,255,255,0.50), inset 0 2px 4px 0 rgba(255,255,255,0.50);
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;thats-all-folks&quot;&gt;That&amp;#8217;s All Folks!&lt;/h2&gt;
-&lt;p&gt;That just about sums things up. Feel free to check out the Github repo itself, open any issues you find or fork it for your own!&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Github: &lt;a href=&quot;https://github.com/bradleytaunt/flexbox-bar-graphs&quot;&gt;https:&amp;#47;&amp;#47;github.com&amp;#47;bradleytaunt&amp;#47;flexbox-bar-graphs&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Live Demo: &lt;a href=&quot;https://flexbox-bar-graphs.netlify.app/&quot;&gt;https:&amp;#47;&amp;#47;flexbox-bar-graphs.netlify.app&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;</content>
- <link href="https://btxx.org/flexbox-bar-graphs"/>
- <id>https://btxx.org/flexbox-bar-graphs</id>
- <updated>2020-12-08T10:00:00Z</updated>
- <published>2020-12-08T10:00:00Z</published>
- </entry>
- <entry>
- <title>First Letter Pseudo Element</title>
- <content type="html">&lt;h1 id=&quot;first-letter-pseudo-element&quot;&gt;First Letter Pseudo Element&lt;/h1&gt;
-&lt;p&gt;2019-05-03&lt;/p&gt;
-&lt;p&gt;In today&amp;#8217;s TypeTip we will be taking a look at the often overlooked &lt;code&gt;:first-letter&lt;/code&gt; CSS pseudo element. Though you might only use this for specific article-format web pages, it&amp;#8217;s still a nice-to-have in your web dev toolset.&lt;/p&gt;
+&lt;h2 id=&quot;going-even-further-with-this-ui&quot;&gt;Going even further with this UI&lt;/h2&gt;
+&lt;p&gt;This demo article only showcases how to improve on a basic button UI structure with a focus on proper hierarchy between elements.&lt;/p&gt;
+&lt;p&gt;Once completely developed, these element should support all interactive states (&lt;code&gt;hover&lt;/code&gt;, &lt;code&gt;active&lt;/code&gt;, &lt;code&gt;disabled&lt;/code&gt;) and animations to make for a more engaging experience.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/proper-ui-hierarchy"/>
+ <id>https://btxx.org/posts/proper-ui-hierarchy</id>
+ <updated>2019-02-05T10:00:00Z</updated>
+ <published>2019-02-05T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>PS4 Download UI with Pure CSS</title>
+ <content type="html">&lt;h1 id=&quot;ps4-download-ui-with-pure-css&quot;&gt;PS4 Download UI with Pure CSS&lt;/h1&gt;
+&lt;p&gt;2021-06-20&lt;/p&gt;
+&lt;p&gt;Overall, I&amp;#8217;m fairly impressed with the user interface design of Sony&amp;#8217;s PS4 system OS. It&amp;#8217;s minimal and keeps the content front and center. Even with it&amp;#8217;s sometimes spotty performance hiccups, I&amp;#8217;ve come to enjoy interacting with it.&lt;/p&gt;
+&lt;p&gt;One of the key UI items I&amp;#8217;ve always been a fan of is the download progress view under the &lt;code&gt;Notifications&lt;/code&gt; settings. So I figured I&amp;#8217;d try my hand at recreating this with pure CSS. Here is the final result:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/ps4-loading.png&quot; alt=&quot;PS4 loading screen bar&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/qBroORG&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;Although I&amp;#8217;ve added some of my own improvements (typography spacing, tweaks to the progress bar animation) - the concept it still pretty close to the original.&lt;/p&gt;
+&lt;p&gt;But enough chit-chat, let&amp;#8217;s walkthrough how to make it!&lt;/p&gt;
&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;Like most pseudo elements, nothing has to change with your pre-existing HTML structure:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;article&amp;#62;
- &amp;#60;p&amp;#62;It was a bright cold day in April, and the clocks were striking thirteen.&amp;#60;&amp;#47;p&amp;#62;
-&amp;#60;&amp;#47;article&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;Here&amp;#8217;s where the magic happens:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;p:first-letter {
- color: orangered;
- font-size: 250%;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;live-codepen&quot;&gt;Live CodePen&lt;/h2&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/gJYbev/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</content>
- <link href="https://btxx.org/first-letter"/>
- <id>https://btxx.org/first-letter</id>
- <updated>2019-05-03T10:00:00Z</updated>
- <published>2019-05-03T10:00:00Z</published>
- </entry>
- <entry>
- <title>February 2022 Update</title>
- <content type="html">&lt;h1 id=&quot;february-2022-update&quot;&gt;February 2022 Update&lt;/h1&gt;
-&lt;p&gt;2022-02-23&lt;/p&gt;
-&lt;p&gt;It&amp;#8217;s been a little quiet around here lately and for good reason: my wife gave birth to our third child last Thursday. Her name is Harmony and she was born in the late afternoon weighing in at 7 pounds 8 ounces.&lt;/p&gt;
-&lt;p&gt;Besides the lack of sleep, everything has been going very well and our boys are happy to finally have their sister “out” in the real world. She caught a small cold at the beginning but soldiered through it well.&lt;/p&gt;
-&lt;p&gt;As for personal life &amp;#47; work life, I&amp;#8217;ve taken a couple weeks off until Harmony is in a bit more of a routine to make transitioning back to full time easier. I still have a few articles in the works (like setting up a T60 Thinkpad with Linux Mint and using FreeBSD for the first time on an EOL Chromebook) but those will come in time.&lt;/p&gt;
-&lt;p&gt;I guess I should get back to being a proper dad (I&amp;#8217;m writing this on my phone as she sleeps on me and the boys are napping) but I&amp;#8217;ll be back here posting stupid things in no time.&lt;/p&gt;
-&lt;p&gt;See you on the other side!&lt;/p&gt;</content>
- <link href="https://btxx.org/february-updates"/>
- <id>https://btxx.org/february-updates</id>
- <updated>2022-02-23T10:00:00Z</updated>
- <published>2022-02-23T10:00:00Z</published>
- </entry>
- <entry>
- <title>Setting Up Fathom Analytics with Netlify</title>
- <content type="html">&lt;h1 id=&quot;setting-up-fathom-analytics-with-netlify&quot;&gt;Setting Up Fathom Analytics with Netlify&lt;/h1&gt;
-&lt;p&gt;2021-01-19&lt;/p&gt;
-&lt;p&gt;It&amp;#8217;s no secret that I&amp;#8217;m passionate about open source software, but I&amp;#8217;m also extremely adamant about protecting the privacy of all users across the web. So when I decided to implement analytics on my own personal website, I ended up choosing Fathom (&lt;em&gt;get a $10 credit using that link!&lt;/em&gt;).&lt;/p&gt;
-&lt;p&gt;You should research further into the company yourself if you&amp;#8217;re interested, but in a nutshell the Fathom platform provides:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;GDPR, ePrivacy, PECR and CCPA compliance&lt;/li&gt;
-&lt;li&gt;ad-blocker bypasses (in a good way -&amp;#62; zero impact on users)&lt;/li&gt;
-&lt;li&gt;anonymous visitor stats&lt;/li&gt;
-&lt;li&gt;software created by indie developers&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Although this might sound like a &amp;#8220;paid&amp;#8221; blog post, I can assure you this is completely based on my own opinions and experience with the service. I&amp;#8217;m just very pleased with the product :)&lt;/p&gt;
-&lt;p&gt;Enough chit-chat - let&amp;#8217;s breakdown how to setup Fathom on your own site hosted through Netlify!&lt;/p&gt;
-&lt;h2 id=&quot;step-0-assumptions&quot;&gt;Step 0: Assumptions&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;m going into this tutorial with the assumption that you:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Have an active Fathom account (or are at least trying the 7-day free trial)&lt;/li&gt;
-&lt;li&gt;Have a website already setup on Netlify (custom domain optional)&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;And that&amp;#8217;s all you need.&lt;/p&gt;
-&lt;h2 id=&quot;step-1-adding-a-custom-domain-dns-setup&quot;&gt;Step 1: Adding a Custom Domain (DNS Setup)&lt;/h2&gt;
-&lt;p&gt;Even though you have the option to use the &lt;code&gt;default&lt;/code&gt; tracking script URL, I would highly recommend setting it up through your own domain. This helps avoid any browser extensions or firewalls that might block outside URL request made by individual sites.&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Navigate to the Fathom &lt;strong&gt;Settings&lt;/strong&gt; page in the bottom footer (must be logged in)&lt;/li&gt;
-&lt;li&gt;Select &lt;strong&gt;Domains&lt;/strong&gt; from the sidebar&lt;/li&gt;
-&lt;li&gt;Enter your custom domain in the &lt;code&gt;Add a new custom domain&lt;/code&gt; input&lt;/li&gt;
-&lt;li&gt;Select &lt;strong&gt;Start Process&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Keep note of both the &lt;code&gt;CNAME&lt;/code&gt; and &lt;code&gt;VALUE&lt;/code&gt; (we will copy this in a moment)&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;Open a new tab, and login to your Netlify account:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;From your &lt;code&gt;Team Overview&lt;/code&gt; page, navigate to the top-level &lt;code&gt;Domains&lt;/code&gt; page&lt;/li&gt;
-&lt;li&gt;Select the domain you plan to add Fathom to&lt;/li&gt;
-&lt;li&gt;Under &lt;strong&gt;DNS settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;DNS records&lt;/strong&gt; select &lt;code&gt;Add New Record&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;Select &lt;code&gt;CNAME&lt;/code&gt; from the dropdown of available options&lt;/li&gt;
-&lt;li&gt;Paste the Fathom &lt;code&gt;CNAME&lt;/code&gt; (from the steps above) into the &lt;strong&gt;Name&lt;/strong&gt; input&lt;/li&gt;
-&lt;li&gt;Paste the Fathom &lt;code&gt;VALUE&lt;/code&gt; (from the steps above) into the &lt;strong&gt;Value&lt;/strong&gt; input&lt;/li&gt;
-&lt;li&gt;Click &lt;strong&gt;Save&lt;/strong&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;That&amp;#8217;s it for DNS setup!&lt;/p&gt;
-&lt;h2 id=&quot;step-2-adding-fathom-your-website&quot;&gt;Step 2: Adding Fathom Your Website&lt;/h2&gt;
-&lt;p&gt;Now that we will be using our own custom domain for the script, it&amp;#8217;s time to actually &lt;em&gt;add it&lt;/em&gt; to our website. From the same Fathom &lt;strong&gt;Settings&lt;/strong&gt; page as before:&lt;/p&gt;
+&lt;p&gt;As with most of my demos, the HTML is very minimal and straightforward. The PS4 system OS download view needs to show the following:&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;Navigate to the &lt;strong&gt;Sites&lt;/strong&gt; page in the sidebar&lt;/li&gt;
-&lt;li&gt;Enter your custom domain in the &lt;code&gt;Add a new site&lt;/code&gt; input and click &lt;strong&gt;Get site code&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;In the modal prompt, select your custom domain from the dropdown list (you&amp;#8217;ll see the script code change accordingly)&lt;/li&gt;
-&lt;li&gt;Copy the tracking code snippet and add it to all the pages you plan to track on your site&lt;/li&gt;
-&lt;li&gt;When ready, select &lt;strong&gt;Verify site code&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;If everything went correctly you should be done!&lt;/li&gt;
+&lt;li&gt;The game&amp;#8217;s title&lt;/li&gt;
+&lt;li&gt;Full game size, amount downloaded and time remaining&lt;/li&gt;
+&lt;li&gt;Visual progress bar&lt;/li&gt;
&lt;/ol&gt;
-&lt;h2 id=&quot;step-3-watch-those-live-stats&quot;&gt;Step 3: Watch Those Live Stats!&lt;/h2&gt;
-&lt;p&gt;Open a cold beer (or a bubbly soda if you prefer) and watch your website visitor stats come rolling in on the dashboard! Not only do you now have solid analytics on your website but you have the piece of mind that your users&amp;#8217; privacy isn&amp;#8217;t being invaded. Everybody wins!&lt;/p&gt;</content>
- <link href="https://btxx.org/fathom-analytics-netlify"/>
- <id>https://btxx.org/fathom-analytics-netlify</id>
- <updated>2021-01-19T10:00:00Z</updated>
- <published>2021-01-19T10:00:00Z</published>
- </entry>
- <entry>
- <title>Faking 3D Elements with CSS</title>
- <content type="html">&lt;h1 id=&quot;faking-3d-elements-with-css&quot;&gt;Faking 3D Elements with CSS&lt;/h1&gt;
-&lt;p&gt;2020-04-29&lt;/p&gt;
-&lt;p&gt;Although not always practical, creating the illusion that some of your web elements are 3D can be a fun experiment. I set out to see if I was able to create such an illusion with only 2 HTML elements and as little CSS as possible.&lt;/p&gt;
-&lt;p&gt;This is what I ended up creating:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/css-orb.png&quot; alt=&quot;Blue 3D orb made out pure CSS&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/VwvzKyb&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;Prepare for your mind to be blown:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;main-orb&quot;&amp;#62;
- &amp;#60;div class=&quot;inner-orb&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+&lt;p&gt;So we will place the game&amp;#8217;s title inside our &lt;code&gt;h2&lt;/code&gt; with a class of &lt;code&gt;title&lt;/code&gt; (shocking, I know). The details about game size, downloaded amount and time remaining gets placed under a parent &lt;code&gt;div&lt;/code&gt; with an accompanying &lt;code&gt;details&lt;/code&gt; class. Finally, we create our progress bar by including a parent &lt;code&gt;div&lt;/code&gt; with a class of &lt;code&gt;progress&lt;/code&gt; that contains a child &lt;code&gt;div&lt;/code&gt; with a class of &lt;code&gt;inner-progress&lt;/code&gt;.&lt;/p&gt;
+&lt;p&gt;Pretty clean and easy to understand.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;wrapper&quot;&amp;#62;
+ &amp;#60;img src=&quot;https:&amp;#47;&amp;#47;upload.wikimedia.org&amp;#47;wikipedia&amp;#47;commons&amp;#47;0&amp;#47;00&amp;#47;PlayStation_logo.svg&quot; alt=&quot;PS4&quot; class=&quot;logo&quot;&amp;#62;
+ &amp;#60;h2 class=&quot;title&quot;&amp;#62;Detroit: Become Human&amp;#60;&amp;#47;h2&amp;#62;
+ &amp;#60;div class=&quot;details&quot;&amp;#62;
+ &amp;#60;p&amp;#62;Update File&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p&amp;#62;13.45&amp;#47;17.50 GB (21 Minutes Left)&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;progress&quot;&amp;#62;
+ &amp;#60;div class=&quot;inner-progress&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it - I wasn&amp;#8217;t kidding when I said we would use only 2 HTML elements. The &lt;code&gt;.main-orb&lt;/code&gt; is the core shape (set to 400x400) and the &lt;code&gt;.inner-orb&lt;/code&gt; is placed on top of it&amp;#8217;s parent at a slightly smaller size (360x360) - but more on that below in the CSS portion.&lt;/p&gt;
&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;First we give the bigger orb element (&lt;code&gt;.main-orb&lt;/code&gt;) the default styling needed to represent a 2D circle:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.main-orb {
- background: linear-gradient(#fff 0%, #eee 10%, #2E86FB 50%, #1A237E 100%);
- border-radius: 9999px;
- height: 400px;
- margin: 4rem auto;
- position: relative; &amp;#47;* This is important for the inner orb element later *&amp;#47;
- width: 400px;
+&lt;p&gt;Now it&amp;#8217;s time to utilize all those classes in the HTML above to craft our PS4 UI recreation. I&amp;#8217;ll break this section down into digestible chunks to avoid overwhelming you by vomiting out a bunch of CSS spaghetti.&lt;/p&gt;
+&lt;p&gt;First we&amp;#8217;ll add a bunch of QOL improvements to help better showcase the demo (adding custom fonts, center content etc.).&lt;/p&gt;
+&lt;p&gt;This part is completely &lt;em&gt;optional&lt;/em&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Import fonts *&amp;#47;
+@import url(&amp;#39;https:&amp;#47;&amp;#47;fonts.googleapis.com&amp;#47;css2?family=Source+Sans+Pro:wght@200;400&amp;#38;display=swap&amp;#39;);
+
+&amp;#47;* Gradient background styling, height overrides *&amp;#47;
+body {
+ background: linear-gradient(#226AB6 0%, #144E8A 100%) no-repeat;
+ color: white;
+ display: block;
+ font-family: &amp;#39;Source Sans Pro&amp;#39;, sans-serif;
+ font-weight: 200;
+ height: 100vh;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next, we include both &lt;code&gt;:before&lt;/code&gt; and &lt;code&gt;:after&lt;/code&gt; pseudo elements for our orb&amp;#8217;s drop shadow. You &lt;em&gt;could&lt;/em&gt; do this with a simple &lt;code&gt;box-shadow&lt;/code&gt; property on the &lt;code&gt;.main-orb&lt;/code&gt; itself, but I&amp;#8217;ve explained in a previous post why &lt;a href=&quot;/blog/better-box-shadows.html&quot;&gt;that&amp;#8217;s not the best approach&lt;/a&gt;.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Shared styling for both pseudo elements - Remember DRY *&amp;#47;
-.main-orb:before, .main-orb:after {
- border-radius: 200px 200px 9999px 9999px;
- bottom: -10px;
- content:&amp;#39;&amp;#39;;
- filter: blur(20px);
- height: 40px;
- position: absolute;
- z-index: -1;
+
+&amp;#47;* Wrapper to center content *&amp;#47;
+.wrapper {
+ margin: 0 auto;
+ max-width: 800px;
+ padding: 4rem 0 0;
}
-&amp;#47;* Bigger, lighter shadow *&amp;#47;
-.main-orb:before {
- background: rgba(0,0,0,0.4);
- left: 7.5%;
- width: 85%;
+&amp;#47;* Optional PS4 logo *&amp;#47;
+.logo {
+ display: block;
+ filter: invert(1);
+ margin: 0 0 2rem 0;
+ opacity: 0.5;
+ width: 60px;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Now for the styling that &lt;em&gt;actually matters&lt;/em&gt;. First we will style the game&amp;#8217;s title and accompanying details (&lt;code&gt;flexbox&lt;/code&gt; to the rescue again!):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;h2.title {
+ font-weight: 400;
+ margin: 0;
}
-&amp;#47;* Smaller, darker shadow *&amp;#47;
-.main-orb:after {
- background: rgba(0,0,0,0.7);
- left: 20%;
- width: 60%;
+.details {
+ display: flex;
+ justify-content: space-between;
+ margin: 0.2rem 0 0;
+}
+.details p {
+ margin: 0;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;With our main orb complete we can move on to the &lt;code&gt;.inner-orb&lt;/code&gt; element to help bring slightly more depth to our floating ball of CSS:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.inner-orb {
- background: linear-gradient(#fff 0%, #2E86FB 60%, #283593 100%);
- border-radius: 9999px;
- box-shadow: 0 8px 20px rgba(0,0,0,0.5);
- height: 360px;
- filter: blur(18px);
- left: 20px;
+&lt;p&gt;Not a whole lot of code to get things looking proper, eh? Next we move on to the progress bar. This is &lt;em&gt;slightly&lt;/em&gt; more interesting since we are going to utilize the &lt;code&gt;before&lt;/code&gt; pseudo element - which sounds more complex than it actually is. Pay close attention to the pseudo element and how it calls the &lt;code&gt;progress-bar-shine&lt;/code&gt; animation - more on that later.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.progress {
+ background: #226AB6;
+ border: 1px solid white;
+ height: 15px;
+ margin: 2rem 0 0;
+ position: relative;
+ width: 100%;
+}
+.progress:before {
+ animation: progress-bar-shine 2.5s infinite;
+ background: linear-gradient(to left, white 0%, transparent 100%);
+ border-radius: 10px;
+ content:&amp;#39;&amp;#39;;
+ filter: blur(8px);
+ height: 100%;
+ opacity: 0.8;
position: absolute;
- top: 15px;
- width: 360px;
+ transform:translateX(0);
+ width: 50px;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;poor-mans-3d-elements&quot;&gt;Poor-man&amp;#8217;s 3D elements&lt;/h2&gt;
-&lt;p&gt;Clearly implementing something like this will never come close to generating true 3D renders on a website, but it is a fun exercise to see how much further we can push simple CSS. Feel free to fork the above CodePen to play around with different colors and shadow placements.&lt;/p&gt;</content>
- <link href="https://btxx.org/fake-3d-elements-with-css"/>
- <id>https://btxx.org/fake-3d-elements-with-css</id>
- <updated>2020-04-29T10:00:00Z</updated>
- <published>2020-04-29T10:00:00Z</published>
- </entry>
- <entry>
- <title>ET-Jekyll Theme</title>
- <content type="html">&lt;h1 id=&quot;et-jekyll-theme&quot;&gt;ET-Jekyll Theme&lt;/h1&gt;
-&lt;p&gt;2018-01-14&lt;/p&gt;
-&lt;p&gt;ET-Jekyll theme is based off of Dave Liepmann&amp;#8217;s awesome Tufte CSS - which takes it&amp;#8217;s style and inspiration from the wonderful book and handout designs of Edward Tufte.&lt;/p&gt;
-&lt;p&gt;The differences are subtle when comparing my variation to Tufte CSS, but these changes were made out of personal preference and are not in any way &amp;#8220;better&amp;#8221;. If you prefer the original CSS styling - please use it!&lt;/p&gt;
-&lt;p&gt;This theme is an open source side project by Bradley Taunt - made with passion and care. Edit, improve, customize or butcher this theme as much as you&amp;#8217;d like. If you spot an issue or find a better solution for any user pain-spots, please don&amp;#8217;t hesitate to open a PR with your changes.&lt;/p&gt;
-&lt;p&gt;Enjoy ET-Jekyll!&lt;/p&gt;</content>
- <link href="https://btxx.org/et-jekyll-theme"/>
- <id>https://btxx.org/et-jekyll-theme</id>
- <updated>2018-01-14T10:00:00Z</updated>
- <published>2018-01-14T10:00:00Z</published>
- </entry>
- <entry>
- <title>Styling Empty Table Cells</title>
- <content type="html">&lt;h1 id=&quot;styling-empty-table-cells&quot;&gt;Styling Empty Table Cells&lt;/h1&gt;
-&lt;p&gt;2019-07-17&lt;/p&gt;
-&lt;p&gt;Often when designing tables on the web you&amp;#8217;re bound to come across empty pockets of data. These will be rendered as &amp;#8220;blank&amp;#8221; table cells, which isn&amp;#8217;t always the intended outcome. Let&amp;#8217;s take a quick look at how to target and style empty table cells.&lt;/p&gt;
-&lt;h2 id=&quot;the-easy-way&quot;&gt;The easy &lt;code&gt;:empty&lt;/code&gt; way&lt;/h2&gt;
-&lt;p&gt;The most popular way to target &lt;em&gt;any&lt;/em&gt; empty element is by using - you guessed it - the &lt;code&gt;empty&lt;/code&gt; pseudo-class. This pseudo-class is incredibly simple. You target an element&amp;#8217;s &lt;code&gt;empty&lt;/code&gt; state that same way you would target &lt;code&gt;hover&lt;/code&gt; or &lt;code&gt;active&lt;/code&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;table tr td:empty {
- opacity: 0;
+.inner-progress {
+ background: white;
+ height: 100%;
+ opacity: 0.6;
+ width: 450px;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Check out the CodePen examples below for more advanced styling options:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/EBBLEx/&quot;&gt;Live CodePen Example 1&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;You can also include additional pseudo elements to give the user more context about what the empty cells represent:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/bPXqLa/&quot;&gt;Live CodePen Example 2&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;more-specific-property&quot;&gt;More specific &lt;code&gt;empty-cells&lt;/code&gt; property&lt;/h2&gt;
-&lt;p&gt;Although using the &lt;code&gt;:empty&lt;/code&gt; pseudo-class can be helpful, it isn&amp;#8217;t used just for tables. It can be used for any HTML elements that have a lack of content. So, is there a CSS specific property that can target &lt;em&gt;just&lt;/em&gt; table cells? &lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s take a look at the &lt;code&gt;empty-cells&lt;/code&gt; property:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;table {
- empty-cells: hide;
+&lt;p&gt;Almost finished! We just need to animate that &lt;code&gt;before&lt;/code&gt; pseudo element with a simple &lt;code&gt;keyframes&lt;/code&gt; at-rule:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@keyframes progress-bar-shine {
+ to {
+ transform:translateX(450px);
+ opacity:0;
+ }
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/XLLqOW/&quot;&gt;Live CodePen Example 3&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;Pros of using &lt;code&gt;empty-cells&lt;/code&gt;:&lt;/p&gt;
+&lt;h2 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h2&gt;
+&lt;p&gt;Although far from perfect, this experiment still explores what can be created (or in this case, &lt;em&gt;re&lt;/em&gt;created) in the browser using just pure CSS. Remember, you don&amp;#8217;t have to reach for JavaScript just because you can!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/ps4-download-ui"/>
+ <id>https://btxx.org/posts/ps4-download-ui</id>
+ <updated>2021-06-20T10:00:00Z</updated>
+ <published>2021-06-20T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Publishing Simple Books With Jekyll</title>
+ <content type="html">&lt;h1 id=&quot;publishing-simple-books-with-jekyll&quot;&gt;Publishing Simple Books With Jekyll&lt;/h1&gt;
+&lt;p&gt;2019-06-20&lt;/p&gt;
+&lt;p&gt;When thinking about writing, designing and ultimately publishing an ebook, most people don&amp;#8217;t think of using a static site generator. Having products like Amazon Publishing, LaTeX or even Microsoft Word available, why should you use Jekyll?&lt;/p&gt;
+&lt;p&gt;Two reasons:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Only one CSS property&lt;/li&gt;
-&lt;li&gt;Targets the table elements specifically&lt;/li&gt;
-&lt;li&gt;No need for custom styles since it simply &lt;em&gt;hides&lt;/em&gt; empty cell borders&lt;/li&gt;
+&lt;li&gt;extremely easy to use&lt;/li&gt;
+&lt;li&gt;total customization&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Some downsides to using this property:&lt;/p&gt;
+&lt;p&gt;I know these same arguments could be made towards the other options mentioned above, but I&amp;#8217;m biased towards Jekyll since I love the simplicity of HTML and CSS. Hopefully, after reading this post, you will feel the same as well!&lt;/p&gt;
+&lt;h2 id=&quot;no-developer-skills-needed&quot;&gt;No developer skills needed&lt;/h2&gt;
+&lt;p&gt;You won&amp;#8217;t need any hardcore development skills or in-depth knowledge of Jekyll to get the most out of this publishing technique. The theme (&lt;a href=&quot;https://github.com/henrythemes/jekyll-book-theme&quot;&gt;Jekyll Book Theme&lt;/a&gt;) will allow you to focus on your book&amp;#8217;s content rather than wrestling with typography and page layouts. A basic command line script will perform all the heavy lifting for us at the end.&lt;/p&gt;
+&lt;h2 id=&quot;what-are-we-creating&quot;&gt;What are we creating?&lt;/h2&gt;
+&lt;p&gt;You can see the demo of the &lt;em&gt;online&lt;/em&gt; and PDF versions of the book below: &lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;No styling customization&lt;/li&gt;
-&lt;li&gt;Trickier to use pseudo-element helpers without invoking the &lt;code&gt;:empty&lt;/code&gt; state&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;http://henrythemes.github.io/jekyll-book-theme/&quot;&gt;Jekyll Book Theme (Website)&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;/public/jekyll-book-theme-sample.pdf&quot;&gt;Jekyll Book Theme (PDF Sample)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;pick-your-preference&quot;&gt;Pick your preference&lt;/h2&gt;
-&lt;p&gt;It doesn&amp;#8217;t matter semantically which option you decide to take when styling &amp;#47; hiding empty table cells. Using the &lt;code&gt;:empty&lt;/code&gt; state gives you a lot more flexibility in terms of what you can target (full rows, columns etc), but using the &lt;code&gt;empty-cells&lt;/code&gt; property let&amp;#8217;s you simply hide the cells and focus on more important items.&lt;/p&gt;</content>
- <link href="https://btxx.org/empty-table-cells"/>
- <id>https://btxx.org/empty-table-cells</id>
- <updated>2019-07-17T10:00:00Z</updated>
- <published>2019-07-17T10:00:00Z</published>
- </entry>
- <entry>
- <title>Setting Up a Pi-hole Server with Eero</title>
- <content type="html">&lt;h1 id=&quot;setting-up-a-pi-hole-server-with-eero&quot;&gt;Setting Up a Pi-hole Server with Eero&lt;/h1&gt;
-&lt;p&gt;2022-03-14&lt;/p&gt;
-&lt;p&gt;For the past few years, I&amp;#8217;ve been using a set of Eero routers as my home mesh network. It&amp;#8217;s worked fairly great in that time and even seamlessly transitioned without any hiccups when my family moved house. During the initial setup, I installed Pi-hole on a Raspberry Pi Zero WH because advertisements and tracking scripts suck.&lt;/p&gt;
-&lt;p&gt;It was an easy process to get everything up and running, but I did notice a lack of detailed steps online for those specifically using Eero systems. So, I thought I would document this process here with the hope that it will help someone else along the way (or at the very least remain a semi-permanent place for my own reference).&lt;/p&gt;
-&lt;hr/&gt;
-&lt;p&gt;FYI: You can pay for Eero Secure and allow them to handle ad&amp;#47;tracker blocking for you. Personally, I prefer to have complete control over my blocklists and usage data. YMMV.&lt;/p&gt;
-&lt;hr/&gt;
-&lt;h2 id=&quot;setting-up-the-pi-hole-server&quot;&gt;Setting Up the Pi-hole Server&lt;/h2&gt;
-&lt;p&gt;Before we get into the step-by-step details, here are the required items you&amp;#8217;ll need:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Raspberry Pi device (I recommend the Pi Zero for simplicity and low cost)&lt;/li&gt;
-&lt;li&gt;microSD card preloaded with &lt;a href=&quot;https://www.raspberrypi.com/software/operating-systems/&quot;&gt;Raspberry Pi OS Lite&lt;/a&gt; (having a desktop GUI is overkill for our use case)&lt;/li&gt;
-&lt;li&gt;micro USB to ethernet adapter (check your local Amazon)&lt;/li&gt;
-&lt;li&gt;Patience!&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;Before you place your microSD card into the Pi and boot it up, connect it to your local computer (via USB adapter) - we will need to add some files first. Once loaded into the &lt;code&gt;boot&lt;/code&gt; folder, add an empty file simply called &lt;code&gt;ssh&lt;/code&gt; (no extensions). Next open your preferred text editor and enter the following code, editing the content to match your own country code and home network settings:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;country=US
-ctrl_interface=DIR=&amp;#47;var&amp;#47;run&amp;#47;wpa_supplicant GROUP=netdev
-update_config=1
-
-network={
- ssid=&quot;WIFI_SSID&quot;
- scan_ssid=1
- psk=&quot;WIFI_PASSWORD&quot;
- key_mgmt=WPA-PSK
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Save this file as &lt;code&gt;wpa_supplicant.conf&lt;/code&gt; and add it to the &lt;code&gt;boot&lt;/code&gt; directory as well.&lt;/p&gt;
-&lt;p&gt;You can now safely eject the microSD card and place it into your Raspberry Pi.&lt;/p&gt;
-&lt;h2 id=&quot;plug-it-in-and-boot&quot;&gt;Plug it in and Boot!&lt;/h2&gt;
-&lt;p&gt;Connect power to your Pi and give it a bit of time to boot up. Once you see a nice solid green LED, go back to your local computer&amp;#8217;s terminal and enter the following command:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;ssh pi@raspberrypi.local
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If everything was set up properly you will be asked to trust this device. Next, you will be prompted to enter the device password. The default password will be: &lt;code&gt;raspberry&lt;/code&gt;&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: This is assuming you don&amp;#8217;t currently have any other Pi devices using this hostname parameter!&lt;/p&gt;
-&lt;p&gt;Once you are connected directly to the Pi, it&amp;#8217;s best to check for updates:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo apt update
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;&amp;#8230;and if updates are in fact available, install them via:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo apt upgrade
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This next step is optional but I highly recommend it for security purposes. You should change both the hostname and password of this soon-to-be Pi-hole server. To do this simply run:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo raspi-config
-&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;So without wasting anymore time, let&amp;#8217;s get started!&lt;/p&gt;
+&lt;h2 id=&quot;table-of-contents&quot;&gt;Table of Contents&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;Edit Hostname: navigate to &lt;code&gt;System Settings&lt;/code&gt; &amp;#8211;&amp;#62; &lt;code&gt;Hostname&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;Edit Password: navigate to &lt;code&gt;System Settings&lt;/code&gt; &amp;#8211;&amp;#62; &lt;code&gt;Password&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#setup-jekyll&quot;&gt;Setup Jekyll&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#book-theme&quot;&gt;Using the &amp;#8220;Book&amp;#8221; Jekyll Theme&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#chapter-collections&quot;&gt;Writing Chapters&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#html-to-pdf&quot;&gt;HTML to PDF&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#closing-thoughts&quot;&gt;Closing Thoughts&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;Once complete, reboot the Pi. Just remember that when you try to reconnect to this device via SSH you&amp;#8217;ll need to use both of these new parameters instead of the defaults.&lt;/p&gt;
-&lt;h2 id=&quot;installing-pi-hole&quot;&gt;Installing Pi-hole&lt;/h2&gt;
-&lt;p&gt;This is the easy part:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;curl -sSL https:&amp;#47;&amp;#47;install.pi-hole.net | bash
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Pi-hole runs a full install script that walks you through step-by-step on setting things up. It&amp;#8217;s best to use the suggested defaults during the install - everything is pretty simple.&lt;/p&gt;
-&lt;p&gt;Near the end of the setup you&amp;#8217;ll be show the newly created static IP for this Pi-hole server (both IPv4 and IPv6). Write these down for easy reference in a moment.&lt;/p&gt;
-&lt;p&gt;Once it&amp;#8217;s finished, shutdown the Pi safely by running:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo shutdown now
+&lt;p&gt;Before we can really do anything else, you will need to install and setup Jekyll. The best way to do so is by following the instructions on the official Jekyll website:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;a href=&quot;https://jekyllrb.com/docs/installation/&quot;&gt;Installing Jekyll&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Run through the simple step-by-step installation instructions based on your operating system.&lt;/p&gt;
+&lt;h3 id=&quot;basic-requirements&quot;&gt;Basic requirements&lt;/h3&gt;
+&lt;ul&gt;
+&lt;li&gt;Ruby version 2.4.0 or above&lt;/li&gt;
+&lt;li&gt;RubyGems&lt;/li&gt;
+&lt;li&gt;GCC and Make (in case your system doesn’t have them installed)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;The example we will be referencing in this post is the open source Jekyll theme called &amp;#8220;Jekyll Book Theme&amp;#8221;. This theme as been designed and optimized for publishing ebooks with Jekyll.&lt;/p&gt;
+&lt;p&gt;Simply following the instructions on the main README page of the &lt;a href=&quot;https://github.com/henrythemes/jekyll-book-theme&quot;&gt;jekyll-book-theme repo&lt;/a&gt;.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: Take the time to edit the &lt;code&gt;title&lt;/code&gt;, and &lt;code&gt;author&lt;/code&gt; properties in the &lt;code&gt;_config.yml&lt;/code&gt; file in the root directory. Make sure these reflect your own book&amp;#8217;s content.&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it. Now let&amp;#8217;s tell Jekyll how we want it to format our chapters.&lt;/p&gt;
+&lt;p&gt;By default, Jekyll will look for latest posts in the &lt;code&gt;_post&lt;/code&gt; directory. This is useful for blogs and basic static websites - but not for us. We want chapters.&lt;/p&gt;
+&lt;h3 id=&quot;using-custom-collections&quot;&gt;Using custom collections&lt;/h3&gt;
+&lt;p&gt;Thankfully, Jekyll is flexible and allows us to set our own custom &amp;#8220;collections&amp;#8221;. Collections are ways to group related content together for easier use dynamically. Our plan is to setup a collection that will house our chapter markdown files in numeric order. You can see this in the &amp;#8220;book&amp;#8221; template top level directory. It should look like the following:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;code&gt;_chapters&lt;/code&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;code&gt;01.md&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;02.md&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;03.md&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;etc..&lt;/code&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h3 id=&quot;but-the-template-already-has-this-setup&quot;&gt;But the template already has this setup&lt;/h3&gt;
+&lt;p&gt;By default the Jekyll Book Theme template has this chapters collection implemented and working as intended. The reason I broke it down step-by-step is so that you can have some better understanding about what is happening &amp;#8220;under the hood&amp;#8221;. &lt;/p&gt;
+&lt;p&gt;Teach a person to fish and all that jazz.&lt;/p&gt;
+&lt;p&gt;Now all you need to do is break your chapters down into their own numbered markdown files inside &lt;code&gt;_chapters&lt;/code&gt;.&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/publishing-with-jekyll.webp&quot; alt=&quot;Publishing with Jekyll&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;Before you can convert your digital book &amp;#8220;website&amp;#8221;, you need to install the &lt;code&gt;wkhtmltopdf&lt;/code&gt; package. Download and follow the instructions below:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;a href=&quot;https://wkhtmltopdf.org/&quot;&gt;wkhtmltopdf&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h3 id=&quot;command-line-conversion&quot;&gt;Command line conversion&lt;/h3&gt;
+&lt;p&gt;In your terminal, navigate inside the &lt;code&gt;_site&lt;/code&gt; folder of your jekyll build and then run the following command:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;for f in *.html; do wkhtmltopdf -g -s Letter --no-background &quot;$f&quot; &quot;${f&amp;#47;_*_&amp;#47;_}.pdf&quot;;done
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;hardware-setup&quot;&gt;Hardware Setup&lt;/h2&gt;
-&lt;p&gt;With the Pi shutdown you can safely relocate it to where you have your modem and gateway Eero setup. Connect your new Pi-hole device to the secondary ethernet port on your gateway Eero[^1] and power it up. (This is where the microUSB to ethernet adapter for our Pi device is needed)&lt;/p&gt;
-&lt;p&gt;See the crude diagram below for visual reference:&lt;/p&gt;
+&lt;p&gt;Shortly after you should have a generated PDF file inside the &lt;code&gt;_site&lt;/code&gt; folder - most likely named &lt;code&gt;index.html.pdf&lt;/code&gt;. That&amp;#8217;s it! Enjoy your fully formatted PDF version of your book!&lt;/p&gt;
+&lt;p&gt;There are a good amount of pros and cons to this approach of &amp;#8220;publishing&amp;#8221; PDF versions of your book. Since I&amp;#8217;m a sucker for &lt;em&gt;good&lt;/em&gt; and &lt;em&gt;bad&lt;/em&gt; bullet lists, let&amp;#8217;s do just that:&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;The Good&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;strong&gt;Grey Wire&lt;/strong&gt;: Incoming internet connection from ISP&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Blue Wire&lt;/strong&gt;: Ethernet cord connecting modem to gateway Eero&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Red Wire&lt;/strong&gt;: Ethernet cord connecting secondary Eero port to Pi Zero&lt;/li&gt;
+&lt;li&gt;Online version and PDF versions share same styling (keeps things consistent)&lt;/li&gt;
+&lt;li&gt;Chapters are written in &lt;code&gt;markdown&lt;/code&gt; (increased flexibility of writing apps etc.)&lt;/li&gt;
+&lt;li&gt;Very fast and streamlined build process&lt;/li&gt;
+&lt;li&gt;PDF format renders out the chapter headers for built-in navigation&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;That&amp;#8217;s all we need to do on the hardware side of things.&lt;/p&gt;
-&lt;h2 id=&quot;configuring-the-eero-app&quot;&gt;Configuring the Eero App&lt;/h2&gt;
-&lt;p&gt;With everything connected properly it&amp;#8217;s finally time to setup our custom DNS settings through Eero.&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Open the Eero app (iOS or Android)&lt;/li&gt;
-&lt;li&gt;Navigate to &lt;strong&gt;Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Network Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;DNS&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Select &lt;strong&gt;Customized DNS&lt;/strong&gt; and enter both your saved IPv4 &amp;#47; IPv6 values&lt;/li&gt;
-&lt;li&gt;Eero will prompt you to reboot your network - do it&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;Next we need to add your Pi-hole&amp;#8217;s address as an IPv4 reservation:[^2]&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;In the Eero app, navigate to &lt;strong&gt;Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Network Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Reservations &amp;#38; port forwarding&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Tap &lt;strong&gt;Add a reservation&lt;/strong&gt; and include your Pi-hole&amp;#8217;s IP address&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;After the system reboots everything &lt;em&gt;should&lt;/em&gt; be working as intended! You can check by navigating to your Pi-hole IP address in your browser.&lt;/p&gt;
-&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
-&lt;p&gt;None of this stuff if groundbreaking, but my hope is that even one person across the internet finds this helpful! If you run into any major bugs, please leave a comment below and I&amp;#8217;ll do my best to help out!&lt;/p&gt;
-&lt;p&gt;Best of luck blocking those pesky ads and trackers!&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;You don&amp;#8217;t &lt;em&gt;have&lt;/em&gt; to use your Eero gateway for this step (credit: &lt;a href=&quot;https://old.reddit.com/user/RollMeAway83&quot;&gt;&amp;#47;u&amp;#47;RollMeAway83&lt;/a&gt;)&lt;/li&gt;
-&lt;li&gt;Thanks to &lt;a href=&quot;https://old.reddit.com/user/YankeesIT&quot;&gt;u&amp;#47;YankeesIT&lt;/a&gt; for pointing out that this is required not &lt;em&gt;optional&lt;/em&gt;&lt;/li&gt;
-&lt;/ol&gt;</content>
- <link href="https://btxx.org/eero"/>
- <id>https://btxx.org/eero</id>
- <updated>2022-03-14T10:00:00Z</updated>
- <published>2022-03-14T10:00:00Z</published>
- </entry>
- <entry>
- <title>Easy Toggle Switches</title>
- <content type="html">&lt;h1 id=&quot;easy-toggle-switches&quot;&gt;Easy Toggle Switches&lt;/h1&gt;
-&lt;p&gt;2019-02-18&lt;/p&gt;
-&lt;p&gt;Sometimes there is a need to use toggle elements in-place of the default &lt;code&gt;checkbox&lt;/code&gt; inputs. The problem is, I tend to see a lot of developers reaching for plugins or JavaScript components in order to implement these toggles.&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;This is overkill&lt;/em&gt;. You can create your own custom &lt;code&gt;input&lt;/code&gt; elements to mimic toggles perfectly with just a small amount of CSS.&lt;/p&gt;
-&lt;h2 id=&quot;what-we-will-be-building&quot;&gt;What we will be building&lt;/h2&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/easy-toggle-switches.png&quot; alt=&quot;Easy toggle switches&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/bGgbajY&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;The build structure for these toggles is really simple, we only need:&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;The Bad&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;p&gt;a parent container to hold all our corresponding elements&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;a checkbox &lt;code&gt;input&lt;/code&gt; element (which we will hide)&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;an empty label designed to represent the slider&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;a text label that references the &lt;code&gt;input&lt;/code&gt; &lt;/p&gt;
-&lt;p&gt;&amp;#47;* Main toggle parent container &lt;em&gt;&amp;#47;
-
- &amp;#47;&lt;/em&gt; Checkbox input, hidden with CSS &lt;em&gt;&amp;#47;
-
- &amp;#47;&lt;/em&gt; The toggle slider element &lt;em&gt;&amp;#47;
-
- &amp;#47;&lt;/em&gt; The text label to the right of the slider *&amp;#47;
- Toggle Switch
-&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;Chapters are spit out as one long, single page (I&amp;#8217;m sure this could be rectified with some custom work)&lt;/li&gt;
+&lt;li&gt;More suited for short stories, papers, essay articles (not so great for epic novels)&lt;/li&gt;
+&lt;li&gt;I&amp;#8217;m sure there are other cons I am missing?&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;And that&amp;#8217;s everything we need for the HTML.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;ProTip:&lt;/strong&gt; Don&amp;#8217;t forget to increment both the &lt;code&gt;id&lt;/code&gt; and &lt;code&gt;for&lt;/code&gt; attributes when adding additional toggles. This seems like a no-brainer but it&amp;#8217;s overlooked more than you think.&lt;/p&gt;
+&lt;p&gt;In the end, using something like LaTeX would certainly grant the user more flexibility in design and layout of the final &amp;#8220;print&amp;#8221; PDF product - but I&amp;#8217;m a sucker for using Jekyll when I can. &lt;/p&gt;
+&lt;p&gt;Please let me know if you decide to use this method and end up publishing your own book 😀 I would love to check it out!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/publish-with-jekyll"/>
+ <id>https://btxx.org/posts/publish-with-jekyll</id>
+ <updated>2019-06-20T10:00:00Z</updated>
+ <published>2019-06-20T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Pure CSS Simple Dropdown Plugin</title>
+ <content type="html">&lt;h1 id=&quot;pure-css-simple-dropdown-plugin&quot;&gt;Pure CSS Simple Dropdown Plugin&lt;/h1&gt;
+&lt;p&gt;2018-09-20&lt;/p&gt;
+&lt;p&gt;I find myself blowing away default browser &lt;code&gt;select&lt;/code&gt; styling and implementing my own custom dropdowns far more often than I&amp;#8217;d like. So, I recently created a very simple and clean component using just pure CSS.&lt;/p&gt;
+&lt;p&gt;Check out the CodePen below and feel free to morph it as you see fit for your own projects!&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/plug-play.png&quot; alt=&quot;Three dropdown elements styled differently&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/rZPzWy/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/pure-css-simple-dropdown-plugin"/>
+ <id>https://btxx.org/posts/pure-css-simple-dropdown-plugin</id>
+ <updated>2018-09-20T10:00:00Z</updated>
+ <published>2018-09-20T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Quick and Dirty Theme Switcher</title>
+ <content type="html">&lt;h1 id=&quot;quick-and-dirty-theme-switcher&quot;&gt;Quick and Dirty Theme Switcher&lt;/h1&gt;
+&lt;p&gt;2020-06-04&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: This article is no longer relevant since my blog design has changed. I&amp;#8217;m keeping this post up since it will still be useful for those wanting to implement a theme switcher on their own site.&lt;/p&gt;
+&lt;hr/&gt;
+&lt;p&gt;&lt;em&gt;I recently added a fairly straightforward color scheme (theme) switcher&lt;/em&gt; to my personal website. You can toggle this simple color switcher in the footer of the site to see it in action. In case anyone else had the desire to add such functionality to their own sites&amp;#47;projects, I figured I&amp;#8217;d write up a quick post explaining how to do so. Let&amp;#8217;s get into it.&lt;/p&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;p&gt;First we need to include the &amp;#8220;buttons&amp;#8221; that will trigger the theme to switch based on which one is selected. (Note: you could always render these as &lt;code&gt;options&lt;/code&gt; in a &lt;code&gt;select&lt;/code&gt; element if you preferred that method)&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;color-select&quot;&amp;#62;
+ &amp;#60;button onclick=&quot;toggleDefaultTheme()&quot;&amp;#62;&amp;#60;&amp;#47;button&amp;#62;
+ &amp;#60;button onclick=&quot;toggleSecondTheme()&quot;&amp;#62;&amp;#60;&amp;#47;button&amp;#62;
+ &amp;#60;button onclick=&quot;toggleThirdTheme()&quot;&amp;#62;&amp;#60;&amp;#47;button&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;That&amp;#8217;s it! Don&amp;#8217;t worry too much about the &lt;code&gt;onclick&lt;/code&gt; parameter right now, we&amp;#8217;ll come back to that when adding our JavaScript. The only remaining item is adding a default theme class to our &lt;code&gt;html&lt;/code&gt; element, like so:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;html class=&quot;theme-default&quot;&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;To get things started we will add the styling to the &lt;code&gt;.toggle-switch&lt;/code&gt; item directly (using &lt;code&gt;flexbox&lt;/code&gt; in this demo for easier layout).&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Sidenote&lt;/strong&gt;: You will notice the inclusion of CSS variables in this demo - if you are unfamiliar with how to use root variables in CSS, take a look at one of my previous posts: CSS variables.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;:root {
- --primary-color: #4A90E2;
+&lt;p&gt;Next we need to style both the &lt;code&gt;color-select&lt;/code&gt; buttons, along with the custom color schemes that will alter the entire website. We will start with the color schemes.&lt;/p&gt;
+&lt;p&gt;For these themes to swap seamlessly between each other, we will be setting our altering color sets as CSS variables:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.theme-default {
+--accent-color: #72f1b8;
+--font-color: #34294f;
}
-.toggle-switch {
- align-items: center;
- display: flex;
- font-size: 14px;
- justify-content: center;
- margin: 20px 0;
+.theme-second {
+ --accent-color: #FFBF00;
+ --font-color: #59316B;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next we will hide the default browser checkbox element since we won&amp;#8217;t be needing it:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.toggle-input {
- position: absolute;
- visibility: hidden;
- z-index: -1;
+
+.theme-third {
+ --accent-color: #d9455f;
+ --font-color: #303960;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Let&amp;#8217;s also add some base styling for the &lt;code&gt;label&lt;/code&gt; containing the text corresponding to it&amp;#8217;s &lt;code&gt;input&lt;/code&gt; sibling:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.toggle-label {
- color: #ccc;
- cursor: pointer;
- font-weight: bold;
- padding-left: 10px;
- text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
- transition: ease all .3s;
+
+body {
+ background-color: var(--accent-color);
+ color: var(--font-color);
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now we target the &lt;code&gt;.toggle-slider&lt;/code&gt; label and add the styling for the main slider base:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* This is just the main slider base *&amp;#47;
-.toggle-slider {
- background: #eee;
+&lt;p&gt;Finally, we style the user-facing color swatches:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.color-select button {
+ -moz-appearance: none;
+ appearance: none;
+ border: 2px solid;
border-radius: 9999px;
- box-shadow: inset 0 2px 4px rgba(0,0,0,0.1),
- inset 0 4px 8px rgba(0,0,0,0.1),
- 0 1px 1px rgba(255,255,255,1);
cursor: pointer;
- display: inline-block;
height: 20px;
- position: relative;
- transition: all ease .3s;
- width: 40px;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;We &lt;em&gt;could&lt;/em&gt; include a separate element for the circle toggle switcher itself, but instead we will use the &lt;code&gt;:before&lt;/code&gt; pseudo element:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.toggle-slider:before {
- background: white;
- border-radius: 9999px;
- box-shadow: 0 4px 8px rgba(0,0,0,0.1),
- 0 2px 4px rgba(0,0,0,0.2);
- content:&amp;#39;&amp;#39;;
- height: 16px;
- left: 2px;
- position: absolute;
- top: 2px;
- transition: all ease .3s;
- width: 16px;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;interaction&quot;&gt;Interaction&lt;/h3&gt;
-&lt;p&gt;Right now we just have a static toggle that does nothing when the user interacts with it. Let&amp;#8217;s change that by moving the pseudo element&amp;#8217;s position based on the checkbox &lt;code&gt;input&lt;/code&gt; state and updating the label text color:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.toggle-input:checked + .toggle-slider {
- background: var(--primary-color);
-}
-.toggle-input:checked + .toggle-slider:before {
- &amp;#47;* Move 100% of the width minus it&amp;#39;s own width plus initial &amp;#39;left&amp;#39; *&amp;#47;
- left: calc(100% - 18px);
+ margin: 0 0.8rem 0.8rem 0;
+ outline: 0;
+ width: 20px;
}
-.toggle-input:checked ~ .toggle-label {
- color: var(--primary-color);
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;And because we already included the &lt;code&gt;transition&lt;/code&gt; property on both the base slider and label text, everything animates nicely between state changes.&lt;/p&gt;
-&lt;h2 id=&quot;final-code&quot;&gt;Final code&lt;/h2&gt;
-&lt;p&gt;To make things easier, you can find the HTML &amp;#38; CSS is their entirety below:&lt;/p&gt;
-&lt;h3 id=&quot;html&quot;&gt;HTML&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;toggle-switch&quot;&amp;#62;
- &amp;#60;input class=&quot;toggle-input&quot; type=&quot;checkbox&quot; id=&quot;toggle-1&quot;&amp;#62;
- &amp;#60;label class=&quot;toggle-slider&quot; for=&quot;toggle-1&quot;&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;label class=&quot;toggle-label&quot; for=&quot;toggle-1&quot;&amp;#62;Toggle Switch&amp;#60;&amp;#47;label&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
-&amp;#60;div class=&quot;toggle-switch&quot;&amp;#62;
- &amp;#60;input class=&quot;toggle-input&quot; type=&quot;checkbox&quot; id=&quot;toggle-2&quot;&amp;#62;
- &amp;#60;label class=&quot;toggle-slider&quot; for=&quot;toggle-2&quot;&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;label class=&quot;toggle-label&quot; for=&quot;toggle-2&quot;&amp;#62;Toggle Switch&amp;#60;&amp;#47;label&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
-&amp;#60;div class=&quot;toggle-switch&quot;&amp;#62;
- &amp;#60;input class=&quot;toggle-input&quot; type=&quot;checkbox&quot; id=&quot;toggle-3&quot; checked&amp;#62;
- &amp;#60;label class=&quot;toggle-slider&quot; for=&quot;toggle-3&quot;&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;label class=&quot;toggle-label&quot; for=&quot;toggle-3&quot;&amp;#62;Toggle Switch&amp;#60;&amp;#47;label&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
-&amp;#60;div class=&quot;toggle-switch&quot;&amp;#62;
- &amp;#60;input class=&quot;toggle-input&quot; type=&quot;checkbox&quot; id=&quot;toggle-4&quot;&amp;#62;
- &amp;#60;label class=&quot;toggle-slider&quot; for=&quot;toggle-4&quot;&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;label class=&quot;toggle-label&quot; for=&quot;toggle-4&quot;&amp;#62;Toggle Switch&amp;#60;&amp;#47;label&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
+&amp;#47;* Style each swatch to match the corresponding theme *&amp;#47;
+.color-select button:nth-child(1) { background: #72f1b8; border-color: #34294f; }
+.color-select button:nth-child(2) { background: #FFBF00; border-color: #59316B; }
+.color-select button:nth-child(3) { background: #d9455f; border-color: #303960; }
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;the-css-1&quot;&gt;The CSS&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;:root {
- --primary-color: #4A90E2;
-}
-.toggle-switch {
- align-items: center;
- display: flex;
- font-size: 14px;
- justify-content: center;
- margin: 20px 0;
-}
-.toggle-input {
- position: absolute;
- visibility: hidden;
- z-index: -1;
-}
-.toggle-slider {
- background: #eee;
- border-radius: 9999px;
- box-shadow: inset 0 2px 4px rgba(0,0,0,0.1),
- inset 0 4px 8px rgba(0,0,0,0.1),
- 0 1px 1px rgba(255,255,255,1);
- cursor: pointer;
- display: inline-block;
- height: 20px;
- position: relative;
- transition: all ease .3s;
- width: 40px;
-}
-.toggle-slider:before {
- background: white;
- border-radius: 9999px;
- box-shadow: 0 4px 8px rgba(0,0,0,0.1),
- 0 2px 4px rgba(0,0,0,0.2);
- content:&amp;#39;&amp;#39;;
- height: 16px;
- left: 2px;
- position: absolute;
- top: 2px;
- transition: all ease .3s;
- width: 16px;
-}
-.toggle-input:checked + .toggle-slider {
- background: var(--primary-color);
+&lt;h2 id=&quot;the-javascript&quot;&gt;The JavaScript&lt;/h2&gt;
+&lt;p&gt;We need to have each color swatch button trigger it&amp;#8217;s corresponding theme and swap out the &lt;code&gt;theme-default&lt;/code&gt; class that we have originally attached to the main &lt;code&gt;html&lt;/code&gt; element. We also need to store what the user has selected into &lt;code&gt;localStorage&lt;/code&gt;, so their choice persists when reloading or navigating to other pages.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;&amp;#47; Set a given theme&amp;#47;color-scheme
+function setTheme(themeName) {
+ localStorage.setItem(&amp;#39;theme&amp;#39;, themeName);
+ document.documentElement.className = themeName;
}
-.toggle-input:checked + .toggle-slider:before {
- left: calc(100% - 18px);
+
+&amp;#47;&amp;#47; Toggle between color themes
+function toggleDefaultTheme() {
+ if (localStorage.getItem(&amp;#39;theme&amp;#39;) !== &amp;#39;theme-default&amp;#39;){
+ setTheme(&amp;#39;theme-default&amp;#39;);
+ }
}
-.toggle-label {
- color: #ccc;
- cursor: pointer;
- font-weight: bold;
- padding-left: 10px;
- text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
- transition: ease all .3s;
+function toggleSecondTheme() {
+ if (localStorage.getItem(&amp;#39;theme&amp;#39;) !== &amp;#39;theme-second&amp;#39;){
+ setTheme(&amp;#39;theme-second&amp;#39;);
+ }
}
-.toggle-input:checked ~ .toggle-label {
- color: var(--primary-color);
+function toggleThirdTheme() {
+ if (localStorage.getItem(&amp;#39;theme&amp;#39;) !== &amp;#39;theme-third&amp;#39;){
+ setTheme(&amp;#39;theme-third&amp;#39;);
+ }
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Enjoy your custom toggles!&lt;/p&gt;</content>
- <link href="https://btxx.org/easy-toggle-switches"/>
- <id>https://btxx.org/easy-toggle-switches</id>
- <updated>2019-02-18T10:00:00Z</updated>
- <published>2019-02-18T10:00:00Z</published>
- </entry>
- <entry>
- <title>Easy Custom Radio Inputs</title>
- <content type="html">&lt;h1 id=&quot;easy-custom-radio-inputs&quot;&gt;Easy Custom Radio Inputs&lt;/h1&gt;
-&lt;p&gt;2019-01-21&lt;/p&gt;
-&lt;p&gt;Default radio inputs are notoriously horrible looking and are something designers tend to over-think when trying to customize them. Let&amp;#8217;s walk through how to create custom radio buttons with &lt;em&gt;pure CSS&lt;/em&gt;, while still preserving performance and accessibility.&lt;/p&gt;
-&lt;h2 id=&quot;the-final-product&quot;&gt;The Final Product&lt;/h2&gt;
-&lt;p&gt;This is what we will be designing:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/custom-radio-inputs.png&quot; alt=&quot;Custom radio inputs&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/oNjwMyX&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;hr/&gt;
-&lt;h2 id=&quot;the-bones-of-our-radio-inputs-html&quot;&gt;The bones of our radio inputs (HTML)&lt;/h2&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-1&quot; type=&quot;radio&quot;&amp;#62;
-&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-1&quot;&amp;#62;&amp;#60;span&amp;#62;I am very satisfied&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
-&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-2&quot; type=&quot;radio&quot;&amp;#62;
-&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-2&quot;&amp;#62;&amp;#60;span&amp;#62;I am satisfied&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
-
-&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-3&quot; type=&quot;radio&quot;&amp;#62;
-&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-3&quot;&amp;#62;&amp;#60;span&amp;#62;I am indifferent&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
-
-&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-4&quot; type=&quot;radio&quot;&amp;#62;
-&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-4&quot;&amp;#62;&amp;#60;span&amp;#62;I am unsatisfied&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
-
-&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-5&quot; type=&quot;radio&quot;&amp;#62;
-&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-5&quot;&amp;#62;&amp;#60;span&amp;#62;I am very unsatisfied&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;I know it looks like a lot is going on here, but it&amp;#8217;s pretty straightforward so let&amp;#8217;s unpackage line by line:&lt;/p&gt;
-&lt;h3 id=&quot;radio-inputs&quot;&gt;Radio inputs&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-1&quot; type=&quot;radio&quot;&amp;#62;
+&amp;#47;&amp;#47; Immediately set the theme on initial load
+(function () {
+ if (localStorage.getItem(&amp;#39;theme&amp;#39;) === &amp;#39;theme-default&amp;#39;) {
+ setTheme(&amp;#39;theme-default&amp;#39;);
+ }
+ if (localStorage.getItem(&amp;#39;theme&amp;#39;) === &amp;#39;theme-second&amp;#39;) {
+ setTheme(&amp;#39;theme-second&amp;#39;);
+ }
+ if (localStorage.getItem(&amp;#39;theme&amp;#39;) === &amp;#39;theme-third&amp;#39;) {
+ setTheme(&amp;#39;theme-third&amp;#39;);
+ }
+})();
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This is the default &lt;code&gt;radio&lt;/code&gt; input. We give it:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;a &lt;code&gt;name&lt;/code&gt; (inputs with a shared &lt;code&gt;name&lt;/code&gt; are grouped together)&lt;/li&gt;
-&lt;li&gt;an &lt;code&gt;id&lt;/code&gt; (so our label can target this input)&lt;/li&gt;
-&lt;li&gt;a &lt;code&gt;class&lt;/code&gt; (so we can style it later)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: be sure to have a unique &lt;code&gt;id&lt;/code&gt; for each input so your labels don&amp;#8217;t end up connected to multiple radios. In this demo we are simply incrementing them by one.&lt;/p&gt;
-&lt;h3 id=&quot;labels&quot;&gt;Labels&lt;/h3&gt;
-&lt;p&gt;Adding the labels is fairly straightforward, we just include the corresponding input&amp;#8217;s &lt;code&gt;id&lt;/code&gt; in the label&amp;#8217;s &lt;code&gt;for&lt;/code&gt; attribute. The label content is wrapped in a &lt;code&gt;span&lt;/code&gt; - which I will explain the reasoning for later.&lt;/p&gt;
-&lt;p&gt;For styling purposes we also add the &lt;code&gt;radio-label&lt;/code&gt; class.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-1&quot;&amp;#62;&amp;#60;span&amp;#62;I am very satisfied&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
+&lt;p&gt;And that&amp;#8217;s it! Now it just depends on how custom you want each individual theme style to be. The possibilities are endless!&lt;/p&gt;
+&lt;h2 id=&quot;extra-improvements&quot;&gt;Extra Improvements&lt;/h2&gt;
+&lt;p&gt;You could improve this concept even further hiding the &lt;code&gt;color-select&lt;/code&gt; item if the user has JavaScript disabled. For my needs, I felt it was a fine trade-off to keep the non-functioning color swatch pickers if JavaScript was disabled. However, your project&amp;#47;site might need better fallbacks.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/quick-dirty-theme-switcher"/>
+ <id>https://btxx.org/posts/quick-dirty-theme-switcher</id>
+ <updated>2020-06-04T10:00:00Z</updated>
+ <published>2020-06-04T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Clickable Links Inside XML</title>
+ <content type="html">&lt;h1 id=&quot;clickable-links-inside-xml&quot;&gt;Clickable Links Inside XML&lt;/h1&gt;
+&lt;p&gt;2022-06-20&lt;/p&gt;
+&lt;p&gt;With the recent patch to the Shinobi Website project, I thought it would be best to share my experience implementing clickable links inside a rendered XML RSS file directly through a browser. This is made possible thanks to the awesome power of XSL formatting.&lt;/p&gt;
+&lt;p&gt;Before we begin, it should be noted that both Safari for macOS and &lt;em&gt;all&lt;/em&gt; browsers on iOS do NOT support the ability to render XML files. Instead you are required to download the feeds as static files to your system. Major bummmer. Hopefully this will be fixed in the near future.&lt;/p&gt;
+&lt;h2 id=&quot;the-code&quot;&gt;The Code&lt;/h2&gt;
+&lt;p&gt;Rendering your entry links as interactive URLs is fairly intuitive. You just need to:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;p&gt;Tell the file which tag it needs to render as the &amp;#8220;a:link&amp;#8221; element&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Set the inner child attribute to &amp;#8220;href&amp;#8221;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Set the value of that attribute to use the entry&amp;#8217;s &lt;code&gt;link&lt;/code&gt; parameter&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;/xsl:attribute&quot;&gt;&amp;#47;xsl:attribute&lt;/a&gt;
+
+&lt;a href=&quot;/xsl:element&quot;&gt;&amp;#47;xsl:element&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;In the instance above I am rendering the entry title as a clickable element which will direct users to the specific entry URL. You could simply render the full entry link URL text as the interactive link if you prefer. Something like:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;xsl:element name=&quot;a&quot;&amp;#62;
+ &amp;#60;xsl:attribute name=&quot;href&quot;&amp;#62;
+ &amp;#60;xsl:value-of select=&quot;link&quot;&amp;#47;&amp;#62;
+ &amp;#60;&amp;#47;xsl:attribute&amp;#62;
+ &amp;#60;pre&amp;#62;&amp;#60;xsl:value-of select=&quot;link&quot;&amp;#47;&amp;#62;&amp;#60;&amp;#47;pre&amp;#62;
+&amp;#60;&amp;#47;xsl:element&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This is looking pretty terrible - but that&amp;#8217;s nothing some good ol&amp;#8217; CSS can&amp;#8217;t fix!&lt;/p&gt;
-&lt;h2 id=&quot;the-flesh-of-our-radio-inputs-css&quot;&gt;The flesh of our radio inputs (CSS)&lt;/h2&gt;
-&lt;p&gt;First we give some basic styling to our &lt;code&gt;label&lt;/code&gt; and &lt;code&gt;input&lt;/code&gt; classes (along with hover states). The &lt;code&gt;radio&lt;/code&gt; element is actually hidden from view, but by using the &lt;code&gt;visibility&lt;/code&gt; attribute we still keep it accessible for screen-readers.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.radio-label {
- background: white;
- border: 1px solid #eee;
- border-radius: 5px;
- box-shadow: 0 2px 4px rgba(0,0,0,0.05);
- cursor: pointer;
- display: inline-block;
- font-weight: 600;
- margin: 0 auto 10px;
- &amp;#47;* This 65px padding makes room for the custom input *&amp;#47;
- padding: 20px 20px 20px 65px;
- position: relative;
- transition: .3s ease all;
- width: 100%;
-}
-.radio-label:hover {
- box-shadow: 0 4px 8px rgba(0,0,0,0.05);
-}
-.radio-btn {
- position: absolute;
- visibility: hidden;
-}
+&lt;h2 id=&quot;live-example&quot;&gt;Live Example&lt;/h2&gt;
+&lt;p&gt;In a supported browser, you can see the code in action here: &lt;a href=&quot;https://pblog.bt.ht/feed.xml&quot;&gt;https:&amp;#47;&amp;#47;pblog.bt.ht&amp;#47;feed.xml&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s really all there is to it.&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;a href=&quot;https://shinobi.bt.ht/posts/patch-3.txt&quot;&gt;https:&amp;#47;&amp;#47;shinobi.bt.ht&amp;#47;posts&amp;#47;patch-3.txt&lt;/a&gt;&lt;/li&gt;
+&lt;/ol&gt;</content>
+ <link href="https://btxx.org/posts/rss-click"/>
+ <id>https://btxx.org/posts/rss-click</id>
+ <updated>2022-06-20T10:00:00Z</updated>
+ <published>2022-06-20T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>RSS Hacks With XSLT</title>
+ <content type="html">&lt;h1 id=&quot;rss-hacks-with-xslt&quot;&gt;RSS Hacks With XSLT&lt;/h1&gt;
+&lt;p&gt;2022-05-23&lt;/p&gt;
+&lt;p&gt;In my spare time I&amp;#8217;ve been further tinkering (hopefully for the better) with my humble Shinobi Website[^0] script. The most recent update in &lt;code&gt;patch-1&lt;/code&gt; came with a solid amount of QoL improvements. If you&amp;#8217;re interested, I wrote about it on the official Shinobi blog[^1].&lt;/p&gt;
+&lt;p&gt;The next feature I wanted to tackle was designing a custom layout for the XML files directly in the browser. I was greatly inspired to create something similar to Len Falken&amp;#8217;s main directory listing[^2], since that blog was one of the original inspirations for Shinobi. I&amp;#8217;m not able to copy what&amp;#8217;s there though, since our feed builds are quite a bit different.&lt;/p&gt;
+&lt;p&gt;I then proceeded to fall down the XSLT rabbit hole.&lt;/p&gt;
+&lt;h2 id=&quot;it-never-works-the-first-time-does-it&quot;&gt;It Never Works the First Time, Does It?&lt;/h2&gt;
+&lt;p&gt;Since the shinobi script generates valid RSS code by default, I didn&amp;#8217;t want to mess around &lt;em&gt;too&lt;/em&gt; much via XSLT and risk breaking validation. I also wanted to keep the &amp;#8220;plain text&amp;#8221; look-and-feel for consistency with the rest of the site, even though the XSLT template would render into standard HTML. Minor CSS styling and placing the content directly inside &lt;code&gt;pre&lt;/code&gt; tags solved these issues.&lt;/p&gt;
+&lt;p&gt;My first attempt was to use the available &lt;code&gt;sort&lt;/code&gt; parameter (in XSL version 1.1+) targeting the &lt;code&gt;dc:date&lt;/code&gt; type linked to the &lt;code&gt;pubDate&lt;/code&gt; element:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;xsl:sort select=&quot;pubDate&quot; data-type=&quot;dc:date&quot; order=&quot;descending&quot;&amp;#47;&amp;#62;
+&amp;#60;!-- each individual post&amp;#39;s content here --&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Remember that &lt;code&gt;span&lt;/code&gt; element inside the label? We set it&amp;#8217;s &lt;code&gt;user-select&lt;/code&gt; property to &lt;code&gt;none&lt;/code&gt; so we avoid any possible issue with the user selecting the text on-click:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.radio-label span {
- -webkit-user-select: none;
- -moz-user-select: none;
- user-select: none;
-}
+&lt;p&gt;This did not work as intended. RSS 2.0 requires that the &lt;code&gt;pubDate&lt;/code&gt; content is set to comply with the RFC-822 date-time[^3], which shinobi handles perfectly fine. The issue came from the XSL &lt;code&gt;sort&lt;/code&gt; parameter not honoring this setting across all dates. My best guess is that it struggles to properly organize posts from their &amp;#8220;month&amp;#8221; parameter, so it sets the posts in order of date in what I refer to as &amp;#8220;monthly sections&amp;#8221;.&lt;/p&gt;
+&lt;p&gt;If anyone knows why this failed to consistently order the posts via &lt;code&gt;pubDate&lt;/code&gt;, please let me know using the comment link below. I&amp;#8217;m far from an XSLT expert and might have overlooked something painfully obvious!&lt;/p&gt;
+&lt;h2 id=&quot;rss-hack-categories&quot;&gt;RSS Hack: Categories&lt;/h2&gt;
+&lt;p&gt;After spending far too much time reading over documentation, official manual pages and Stack Overflow comments I gave up on the &lt;code&gt;dc:date&lt;/code&gt; sort. I realized I could sort the posts much easier if they were converted into a format similar to ISO 8601. But &lt;code&gt;pubDate&lt;/code&gt; is required to be in RFC-822, so I couldn&amp;#8217;t alter that in the final XML file.&lt;/p&gt;
+&lt;p&gt;Then I remembered the &lt;code&gt;category&lt;/code&gt; tag which shinobi does not utilize by default.&lt;/p&gt;
+&lt;p&gt;First I needed to convert the RFC-822 formatted date (found on the first line of all blog post text files) and render it inside a &lt;code&gt;category&lt;/code&gt; tag. This was simple enough:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;$(date -j -f &quot;%a, %d %b %Y&quot; &quot;$(head -n 1 $file)&quot; +&quot;%Y&amp;#47;%m&amp;#47;%d&amp;#47;%u&quot;)
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next we include the default empty selection element (to mimic the original radio input) via a pseudo element:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.radio-label:before {
- background: #eee;
- border-radius: 50%;
- content:&amp;#39;&amp;#39;;
- height: 30px;
- left: 20px;
- position: absolute;
- &amp;#47;* Half the height of it&amp;#39;s parent minus half of it&amp;#39;s own height *&amp;#47;
- top: calc(50% - 15px);
- transition: .3s ease background-color;
- width: 30px;
-}
+&lt;p&gt;In a nutshell, this converts the RFC-822 date into the format &amp;#8220;2022&amp;#47;05&amp;#47;24&amp;#47;2&amp;#8221;. Simple numbers that can be sorted much easier by XSL. Now all that was needed was setting to &lt;code&gt;sort&lt;/code&gt; parameter properly:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;xsl:sort select=&quot;category&quot; order=&quot;descending&quot;&amp;#47;&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;a-few-final-steps&quot;&gt;A Few Final Steps&lt;/h2&gt;
-&lt;p&gt;The final step is adding the custom styling for when an &lt;code&gt;input&lt;/code&gt; item is selected (&lt;code&gt;:checked&lt;/code&gt;).&lt;/p&gt;
-&lt;p&gt;You will notice the use of a &lt;code&gt;base64&lt;/code&gt; element for the custom checkmark - feel free to subsitute this for an actual image or none at all (this is just my personal design preference).&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.radio-btn:checked + .radio-label {
- background: #ECF5FF;
- border-color: #4A90E2;
-}
-.radio-btn:checked + .radio-label:before {
- background-color: #4A90E2;
- background-image: url(&amp;#39;data:image&amp;#47;svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIyNiIgaGVpZ2h0PSIyMCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIyLjAyOTY4IC00MC4wOTAzIDI2IDIwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj48IS0tR2VuZXJhdGVkIGJ5IElKU1ZHIChodHRwczovL2dpdGh1Yi5jb20vaWNvbmphci9JSlNWRyktLT48cGF0aCBkPSJNMjcuOTc0MywtMzYuMTI3MmMwLDAuNDQ2NDI4IC0wLjE1NjI1LDAuODI1ODkzIC0wLjQ2ODc1LDEuMTM4MzlsLTEyLjEyMDUsMTIuMTIwNWwtMi4yNzY3OSwyLjI3Njc5Yy0wLjMxMjUsMC4zMTI1IC0wLjY5MTk2NCwwLjQ2ODc1IC0xLjEzODM5LDAuNDY4NzVjLTAuNDQ2NDI4LDAgLTAuODI1ODkzLC0wLjE1NjI1IC0xLjEzODM5LC0wLjQ2ODc1bC0yLjI3Njc5LC0yLjI3Njc5bC02LjA2MDI3LC02LjA2MDI3Yy0wLjMxMjUsLTAuMzEyNSAtMC40Njg3NSwtMC42OTE5NjUgLTAuNDY4NzUsLTEuMTM4MzljMCwtMC40NDY0MjkgMC4xNTYyNSwtMC44MjU4OTMgMC40Njg3NSwtMS4xMzgzOWwyLjI3Njc5LC0yLjI3Njc5YzAuMzEyNSwtMC4zMTI1IDAuNjkxOTY1LC0wLjQ2ODc1IDEuMTM4MzksLTAuNDY4NzVjMC40NDY0MjksMCAwLjgyNTg5MywwLjE1NjI1IDEuMTM4MzksMC40Njg3NWw0LjkyMTg4LDQuOTM4NjJsMTAuOTgyMSwtMTAuOTk4OWMwLjMxMjUsLTAuMzEyNSAwLjY5MTk2NCwtMC40Njg3NSAxLjEzODM5LC0wLjQ2ODc1YzAuNDQ2NDI4LDAgMC44MjU4OTMsMC4xNTYyNSAxLjEzODM5LDAuNDY4NzVsMi4yNzY3OCwyLjI3Njc5YzAuMzEyNSwwLjMxMjUgMC40Njg3NSwwLjY5MTk2NCAwLjQ2ODc1LDEuMTM4MzlaIiB0cmFuc2Zvcm09InNjYWxlKDEuMDAxOTgpIiBmaWxsPSIjZmZmIj48L3BhdGg+PC9zdmc+&amp;#39;);
- background-repeat: no-repeat;
- background-position: center;
- background-size: 15px;
-}
+&lt;p&gt;Everything worked perfectly and the RSS was still valid!&lt;/p&gt;
+&lt;h3 id=&quot;patch-2-pending&quot;&gt;Patch-2 Pending&lt;/h3&gt;
+&lt;p&gt;I&amp;#8217;ve ported these changes over to this blog to perform some &amp;#8220;in the wild&amp;#8221; testing. You can see the custom feed list in your supported browser by visiting:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://pblog.bt.ht/feed.xml&quot;&gt;https:&amp;#47;&amp;#47;pblog.bt.ht&amp;#47;feed.xml&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;As for the shinobi project itself, I have not merged these updates into the main master branch (at the time of publishing this article). They can be found sitting on patch-2[^4]. My plan is to get this merged ASAP once a little more real-world testing is finished and I can include a better &amp;#8220;setup&amp;#47;install&amp;#8221; section for newcomers.&lt;/p&gt;
+&lt;h2 id=&quot;shinobi-updates&quot;&gt;Shinobi Updates&lt;/h2&gt;
+&lt;p&gt;If you&amp;#8217;re interested in more updates and details about the shinobi project itself, feel free to sub to that specific feed below. This post was more focused on hacking RSS parameters that happened to involve shinobi, but in the future all updates specific to the project will be posted there:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://shinobi.bt.ht/feed.xml&quot;&gt;https:&amp;#47;&amp;#47;shinobi.bt.ht&amp;#47;feed.xml&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;a href=&quot;https://shinobi.website/&quot;&gt;https:&amp;#47;&amp;#47;shinobi.website&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://shinobi.website/posts/patch-1.txt&quot;&gt;https:&amp;#47;&amp;#47;shinobi.website&amp;#47;posts&amp;#47;patch-1.txt&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;http://len.falken.directory/&quot;&gt;http:&amp;#47;&amp;#47;len.falken.directory&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://validator.w3.org/feed/docs/error/InvalidRFC2822Date.html&quot;&gt;https:&amp;#47;&amp;#47;validator.w3.org&amp;#47;feed&amp;#47;docs&amp;#47;error&amp;#47;InvalidRFC2822Date.html&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://git.sr.ht/~tdarb/shinobi-script/tree/patch-2&quot;&gt;https:&amp;#47;&amp;#47;git.sr.ht&amp;#47;~tdarb&amp;#47;shinobi-script&amp;#47;tree&amp;#47;patch-2&lt;/a&gt;&lt;/li&gt;
+&lt;/ol&gt;</content>
+ <link href="https://btxx.org/posts/rss-hacks"/>
+ <id>https://btxx.org/posts/rss-hacks</id>
+ <updated>2022-05-23T10:00:00Z</updated>
+ <published>2022-05-23T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Installing Ruby with RVM on Alpine Linux</title>
+ <content type="html">&lt;h1 id=&quot;installing-ruby-with-rvm-on-alpine-linux&quot;&gt;Installing Ruby with RVM on Alpine Linux&lt;/h1&gt;
+&lt;p&gt;2023-03-16&lt;/p&gt;
+&lt;p&gt;For some on-going projects I need to switch to different versions of &lt;code&gt;ruby&lt;/code&gt;. Although there exist many step-by-step instructions on installing and configuring &lt;code&gt;rvm&lt;/code&gt; for most Linux distros, there aren&amp;#8217;t many focused on Alpine &amp;#8220;daily drivers&amp;#8221;.&lt;/p&gt;
+&lt;p&gt;So this post is more or less a helpful document for my future self. If it happens to help others then that&amp;#8217;s an added bonus!&lt;/p&gt;
+&lt;h2 id=&quot;simple-setup&quot;&gt;Simple Setup&lt;/h2&gt;
+&lt;p&gt;Make sure you have the basic packages first:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;apk update
+apk add curl gcc gnupg gpg dirmngr procps musl-dev linux-headers zlib zlib-dev openssl openssl-dev libssl1.1
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;&lt;strong&gt;And that&amp;#8217;s it.&lt;/strong&gt;&lt;/p&gt;
-&lt;p&gt;For easier reference the entire CSS file can be found below:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.radio-label {
- background: white;
- border: 1px solid #eee;
- border-radius: 5px;
- box-shadow: 0 2px 4px rgba(0,0,0,0.05);
- cursor: pointer;
- display: inline-block;
- font-weight: 600;
- margin: 0 auto 10px;
- padding: 20px 20px 20px 65px;
- position: relative;
- transition: .3s ease all;
- width: 100%;
-}
-.radio-label:hover {
- box-shadow: 0 4px 8px rgba(0,0,0,0.05);
-}
-.radio-label:before {
- background: #eee;
- border-radius: 50%;
- content:&amp;#39;&amp;#39;;
- height: 30px;
- left: 20px;
- position: absolute;
- top: calc(50% - 15px);
- transition: .3s ease background-color;
- width: 30px;
-}
-.radio-label span {
- -webkit-user-select: none;
- -moz-user-select: none;
- user-select: none;
-}
-.radio-btn {
- position: absolute;
- visibility: hidden;
-}
-.radio-btn:checked + .radio-label {
- background: #ECF5FF;
- border-color: #4A90E2;
-}
-.radio-btn:checked + .radio-label:before {
- background-color: #4A90E2;
- background-image: url(&amp;#39;data:image&amp;#47;svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIyNiIgaGVpZ2h0PSIyMCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIyLjAyOTY4IC00MC4wOTAzIDI2IDIwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj48IS0tR2VuZXJhdGVkIGJ5IElKU1ZHIChodHRwczovL2dpdGh1Yi5jb20vaWNvbmphci9JSlNWRyktLT48cGF0aCBkPSJNMjcuOTc0MywtMzYuMTI3MmMwLDAuNDQ2NDI4IC0wLjE1NjI1LDAuODI1ODkzIC0wLjQ2ODc1LDEuMTM4MzlsLTEyLjEyMDUsMTIuMTIwNWwtMi4yNzY3OSwyLjI3Njc5Yy0wLjMxMjUsMC4zMTI1IC0wLjY5MTk2NCwwLjQ2ODc1IC0xLjEzODM5LDAuNDY4NzVjLTAuNDQ2NDI4LDAgLTAuODI1ODkzLC0wLjE1NjI1IC0xLjEzODM5LC0wLjQ2ODc1bC0yLjI3Njc5LC0yLjI3Njc5bC02LjA2MDI3LC02LjA2MDI3Yy0wLjMxMjUsLTAuMzEyNSAtMC40Njg3NSwtMC42OTE5NjUgLTAuNDY4NzUsLTEuMTM4MzljMCwtMC40NDY0MjkgMC4xNTYyNSwtMC44MjU4OTMgMC40Njg3NSwtMS4xMzgzOWwyLjI3Njc5LC0yLjI3Njc5YzAuMzEyNSwtMC4zMTI1IDAuNjkxOTY1LC0wLjQ2ODc1IDEuMTM4MzksLTAuNDY4NzVjMC40NDY0MjksMCAwLjgyNTg5MywwLjE1NjI1IDEuMTM4MzksMC40Njg3NWw0LjkyMTg4LDQuOTM4NjJsMTAuOTgyMSwtMTAuOTk4OWMwLjMxMjUsLTAuMzEyNSAwLjY5MTk2NCwtMC40Njg3NSAxLjEzODM5LC0wLjQ2ODc1YzAuNDQ2NDI4LDAgMC44MjU4OTMsMC4xNTYyNSAxLjEzODM5LDAuNDY4NzVsMi4yNzY3OCwyLjI3Njc5YzAuMzEyNSwwLjMxMjUgMC40Njg3NSwwLjY5MTk2NCAwLjQ2ODc1LDEuMTM4MzlaIiB0cmFuc2Zvcm09InNjYWxlKDEuMDAxOTgpIiBmaWxsPSIjZmZmIj48L3BhdGg+PC9zdmc+&amp;#39;);
- background-repeat: no-repeat;
- background-position: center;
- background-size: 15px;
-}
+&lt;p&gt;Next download the latest &lt;code&gt;stable&lt;/code&gt; version of &lt;code&gt;rvm&lt;/code&gt; from Github, unpack it, place it in the proper user directory (~&amp;#47;.rvm) and install any required libs:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;curl -sSL https:&amp;#47;&amp;#47;github.com&amp;#47;rvm&amp;#47;rvm&amp;#47;tarball&amp;#47;stable -o rvm-stable.tar.gz
+echo &amp;#39;export rvm_prefix=&quot;$HOME&quot;&amp;#39; &amp;#62; ~&amp;#47;.rvmrc
+echo &amp;#39;export rvm_path=&quot;$HOME&amp;#47;.rvm&quot;&amp;#39; &amp;#62;&amp;#62; ~&amp;#47;.rvmrc
+mkdir rvm &amp;#38;&amp;#38; cd rvm
+tar --strip-components=1 -xzf ..&amp;#47;rvm-stable.tar.gz
+.&amp;#47;install --auto-dotfiles --autolibs=0
&lt;/code&gt;&lt;/pre&gt;
-&lt;hr/&gt;
-&lt;h2 id=&quot;but-wait---we-can-get-even-fancier&quot;&gt;But wait - we can get even fancier!&lt;/h2&gt;
-&lt;p&gt;Since this demo is based off a survey-type questionaire, wouldn&amp;#8217;t it be interesting to give the different selectable options their own styling based on their context? Take a look at the further customized version below:&lt;/p&gt;
-&lt;p&gt;We can do so by adding &lt;code&gt;positive&lt;/code&gt;, &lt;code&gt;neutral&lt;/code&gt; and &lt;code&gt;negative&lt;/code&gt; class names to the radio inputs with their own respective properties:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.radio-btn.positive:checked + .radio-label {
- background: #EAFFF6;
- border-color: #32B67A;
-}
-.radio-btn.positive:checked + .radio-label:before {
- background-color: #32B67A;
-}
-.radio-btn.neutral:checked + .radio-label:before {
- background-image: url(&amp;#39;data:image&amp;#47;svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAtMTUgMzAgOC41NzE0MyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PCEtLUdlbmVyYXRlZCBieSBJSlNWRyAoaHR0cHM6Ly9naXRodWIuY29tL2ljb25qYXIvSUpTVkcpLS0+PHBhdGggZD0iTTMwLC0xMi4zMjE0djMuMjE0MjljMCwwLjczNjYwNyAtMC4yNjIyNzcsMS4zNjcxOSAtMC43ODY4MywxLjg5MTc0Yy0wLjUyNDU1NCwwLjUyNDU1NCAtMS4xNTUxMywwLjc4NjgzMSAtMS44OTE3NCwwLjc4NjgzMWgtMjQuNjQyOWMtMC43MzY2MDcsMCAtMS4zNjcxOSwtMC4yNjIyNzcgLTEuODkxNzQsLTAuNzg2ODMxYy0wLjUyNDU1MywtMC41MjQ1NTMgLTAuNzg2ODMsLTEuMTU1MTMgLTAuNzg2ODMsLTEuODkxNzR2LTMuMjE0MjljMCwtMC43MzY2MDcgMC4yNjIyNzcsLTEuMzY3MTkgMC43ODY4MywtMS44OTE3NGMwLjUyNDU1NCwtMC41MjQ1NTMgMS4xNTUxMywtMC43ODY4MyAxLjg5MTc0LC0wLjc4NjgzaDI0LjY0MjljMC43MzY2MDcsMCAxLjM2NzE5LDAuMjYyMjc3IDEuODkxNzQsMC43ODY4M2MwLjUyNDU1MywwLjUyNDU1NCAwLjc4NjgzLDEuMTU1MTMgMC43ODY4MywxLjg5MTc0WiIgZmlsbD0iI2ZmZiI+PC9wYXRoPjwvc3ZnPg==&amp;#39;);
-}
-.radio-btn.negative:checked + .radio-label {
- background: #FFF2F2;
- border-color: #E75153;
-}
-.radio-btn.negative:checked + .radio-label:before {
- background-color: #E75153;
- background-image: url(&amp;#39;data:image&amp;#47;svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIxLjg1MTg1IC0zOS42OTcgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjwhLS1HZW5lcmF0ZWQgYnkgSUpTVkcgKGh0dHBzOi8vZ2l0aHViLmNvbS9pY29uamFyL0lKU1ZHKS0tPjxwYXRoIGQ9Ik0yMS43Mjk5LC0yMy40NzFjMCwwLjQ0NjQyOCAtMC4xNTYyNSwwLjgyNTg5MyAtMC40Njg3NSwxLjEzODM5bC0yLjI3Njc5LDIuMjc2NzljLTAuMzEyNSwwLjMxMjUgLTAuNjkxOTY0LDAuNDY4NzUgLTEuMTM4MzksMC40Njg3NWMtMC40NDY0MjgsMCAtMC44MjU4OTMsLTAuMTU2MjUgLTEuMTM4MzksLTAuNDY4NzVsLTQuOTIxODcsLTQuOTIxODhsLTQuOTIxODgsNC45MjE4OGMtMC4zMTI1LDAuMzEyNSAtMC42OTE5NjQsMC40Njg3NSAtMS4xMzgzOSwwLjQ2ODc1Yy0wLjQ0NjQyOCwwIC0wLjgyNTg5MiwtMC4xNTYyNSAtMS4xMzgzOSwtMC40Njg3NWwtMi4yNzY3OSwtMi4yNzY3OWMtMC4zMTI1LC0wLjMxMjUgLTAuNDY4NzUsLTAuNjkxOTY1IC0wLjQ2ODc1LC0xLjEzODM5YzAsLTAuNDQ2NDI5IDAuMTU2MjUsLTAuODI1ODkzIDAuNDY4NzUsLTEuMTM4MzlsNC45MjE4OCwtNC45MjE4OGwtNC45MjE4OCwtNC45MjE4OGMtMC4zMTI1LC0wLjMxMjUgLTAuNDY4NzUsLTAuNjkxOTY0IC0wLjQ2ODc1LC0xLjEzODM5YzAsLTAuNDQ2NDI4IDAuMTU2MjUsLTAuODI1ODkzIDAuNDY4NzUsLTEuMTM4MzlsMi4yNzY3OSwtMi4yNzY3OGMwLjMxMjUsLTAuMzEyNSAwLjY5MTk2NCwtMC40Njg3NSAxLjEzODM5LC0wLjQ2ODc1YzAuNDQ2NDI5LDAgMC44MjU4OTMsMC4xNTYyNSAxLjEzODM5LDAuNDY4NzVsNC45MjE4OCw0LjkyMTg4bDQuOTIxODcsLTQuOTIxODhjMC4zMTI1LC0wLjMxMjUgMC42OTE5NjUsLTAuNDY4NzUgMS4xMzgzOSwtMC40Njg3NWMwLjQ0NjQyOSwwIDAuODI1ODkzLDAuMTU2MjUgMS4xMzgzOSwwLjQ2ODc1bDIuMjc2NzksMi4yNzY3OGMwLjMxMjUsMC4zMTI1IDAuNDY4NzUsMC42OTE5NjUgMC40Njg3NSwxLjEzODM5YzAsMC40NDY0MjkgLTAuMTU2MjUsMC44MjU4OTMgLTAuNDY4NzUsMS4xMzgzOWwtNC45MjE4OCw0LjkyMTg4bDQuOTIxODgsNC45MjE4OGMwLjMxMjUsMC4zMTI1IDAuNDY4NzUsMC42OTE5NjQgMC40Njg3NSwxLjEzODM5WiIgdHJhbnNmb3JtPSJzY2FsZSgxLjAwNTYxKSIgZmlsbD0iI2ZmZiI+PC9wYXRoPjwvc3ZnPg==&amp;#39;);
-}
+&lt;p&gt;Now we can remove everything and properly link to &lt;code&gt;rvm&lt;/code&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;cd ..&amp;#47; &amp;#38;&amp;#38; rm -rf rvm-stable stable.tar.gz rvm
+source ~&amp;#47;.rvm&amp;#47;scripts&amp;#47;rvm
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;I hope this shows new designers that simple custom radio inputs aren&amp;#8217;t so hard to implement after-all and can actually be pretty fun to design.&lt;/p&gt;</content>
- <link href="https://btxx.org/easy-custom-radio-inputs"/>
- <id>https://btxx.org/easy-custom-radio-inputs</id>
- <updated>2019-01-21T10:00:00Z</updated>
- <published>2019-01-21T10:00:00Z</published>
- </entry>
- <entry>
- <title>Dynamic Checkboxes</title>
- <content type="html">&lt;h1 id=&quot;dynamic-checkboxes&quot;&gt;Dynamic Checkboxes&lt;/h1&gt;
-&lt;p&gt;2019-07-30&lt;/p&gt;
-&lt;p&gt;Checkboxes are used quite frequently on forms across the web. Whether you&amp;#8217;re selecting a pricing plan during a site&amp;#8217;s sign-up process or just simply selecting to opt-out from a newsletter, you have most likely interacted with some form of checkbox element.&lt;/p&gt;
-&lt;p&gt;What if we could make everyday checkboxes more beautiful &lt;em&gt;and&lt;/em&gt; more intuitive? &lt;em&gt;It&amp;#8217;s easier than you think&lt;/em&gt;. We only need a small amount of CSS and JavaScript to make considerable improvements to your average checkbox UX.&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s get into it.&lt;/p&gt;
-&lt;h2 id=&quot;what-we-are-building&quot;&gt;What we are building&lt;/h2&gt;
-&lt;p&gt;Take a look and play around with the CodePen below to get an idea of what we are going to build. The premise is a simple add-on pricing form which calculates the additional monthly total to the user in real-time.&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/rXWEpy/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;the-structure-html&quot;&gt;The Structure (HTML)&lt;/h2&gt;
-&lt;p&gt;As always, we will start by breaking down the &amp;#8220;bones&amp;#8221; of the HTML structure for this checkbox form. Let&amp;#8217;s take a look at the HTML in it&amp;#8217;s entirety (don&amp;#8217;t worry, it is a lot more simple than it seems at first glance):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;h2&amp;#62;Add-ons&amp;#60;&amp;#47;h2&amp;#62;
-
-&amp;#60;input class=&quot;checkbox-btn&quot; name=&quot;checkbox-collection&quot; id=&quot;checkbox-1&quot; type=&quot;checkbox&quot; value=&quot;49&quot;&amp;#62;
-&amp;#60;label class=&quot;checkbox-label&quot; for=&quot;checkbox-1&quot;&amp;#62;
- &amp;#60;span&amp;#62;
- White-labeled Domain
- &amp;#60;em&amp;#62;Use your own custom domain with SSL security included.&amp;#60;&amp;#47;em&amp;#62;
- &amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;span&amp;#62;$49&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
-&amp;#60;&amp;#47;label&amp;#62;
-
-&amp;#60;input class=&quot;checkbox-btn&quot; name=&quot;checkbox-collection&quot; id=&quot;checkbox-2&quot; type=&quot;checkbox&quot; value=&quot;49&quot;&amp;#62;
-&amp;#60;label class=&quot;checkbox-label&quot; for=&quot;checkbox-2&quot;&amp;#62;
- &amp;#60;span&amp;#62;
- API Access
- &amp;#60;em&amp;#62;Make API calls to perform custom serving and account actions.&amp;#60;&amp;#47;em&amp;#62;
- &amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;span&amp;#62;$49&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
-&amp;#60;&amp;#47;label&amp;#62;
-
-&amp;#60;input class=&quot;checkbox-btn&quot; name=&quot;checkbox-collection&quot; id=&quot;checkbox-3&quot; type=&quot;checkbox&quot; value=&quot;349&quot;&amp;#62;
-&amp;#60;label class=&quot;checkbox-label&quot; for=&quot;checkbox-3&quot;&amp;#62;
- &amp;#60;span&amp;#62;
- Priority Support
- &amp;#60;em&amp;#62;A dedicated account manager to assist your team with ongoing deployments.&amp;#60;&amp;#47;em&amp;#62;
- &amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;span&amp;#62;$349&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
-&amp;#60;&amp;#47;label&amp;#62;
-
-&amp;#60;div class=&quot;total-cost&quot;&amp;#62;
- &amp;#60;h2&amp;#62;Your Plan&amp;#60;&amp;#47;h2&amp;#62;
- &amp;#60;div&amp;#62;
- &amp;#60;span&amp;#62;$&amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;span id=&quot;total-cost-inner&quot;&amp;#62;0&amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;input id=&quot;output&quot; type=&quot;text&quot; value=&quot;0&quot; disabled&amp;#47;&amp;#62;
- &amp;#60;span&amp;#62;&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
+&lt;p&gt;Now you can freely install any version of Ruby that you desire!&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;rvm install ruby-X.X.X
+&lt;/code&gt;&lt;/pre&gt;</content>
+ <link href="https://btxx.org/posts/rvm"/>
+ <id>https://btxx.org/posts/rvm</id>
+ <updated>2023-03-16T10:00:00Z</updated>
+ <published>2023-03-16T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Dear Apple, Please Fix Safari's Default Dark Mode Link Color</title>
+ <content type="html">&lt;h1 id=&quot;dear-apple-please-fix-safaris-default-dark-mode-link-color&quot;&gt;Dear Apple, Please Fix Safari&amp;#8217;s Default Dark Mode Link Color&lt;/h1&gt;
+&lt;p&gt;2022-04-18&lt;/p&gt;
+&lt;p&gt;Supporting dark mode on the modern web falls under the realm of accessibility and should not be ignored. It is important and helps keep the visual flow of your content to match that of your users&amp;#8217; operating system UI. Not to mention, it&amp;#8217;s easy to implement and keep consistent across browsers.&lt;/p&gt;
+&lt;h2 id=&quot;support-dark-mode-with-zero-css&quot;&gt;Support Dark Mode with Zero CSS&lt;/h2&gt;
+&lt;p&gt;A common practice is to include a &lt;code&gt;@media&lt;/code&gt; query via CSS to target styling changes based on whether &lt;code&gt;dark-mode&lt;/code&gt; is active. I tend to believe this is overkill for basic websites. Many developers aren&amp;#8217;t aware of the HTML &lt;code&gt;color-scheme&lt;/code&gt; parameter. (This website itself is using it in place of CSS media queries)&lt;/p&gt;
+&lt;h3 id=&quot;html-color-scheme&quot;&gt;HTML &amp;#8220;color-scheme&amp;#8221;&lt;/h3&gt;
+&lt;p&gt;Adding the following meta tag inside your document&amp;#8217;s &lt;code&gt;head&lt;/code&gt; element, you can enable dark mode instantly with zero configuration:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;meta name=&quot;color-scheme&quot; content=&quot;dark light&quot; &amp;#47;&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;the-checkbox-inputs-labels&quot;&gt;The checkbox inputs &amp;#38; labels&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;!-- #1 --&amp;#62;
-&amp;#60;input class=&quot;checkbox-btn&quot; name=&quot;checkbox-collection&quot; id=&quot;checkbox-1&quot; type=&quot;checkbox&quot; value=&quot;49&quot;&amp;#62;
-
-&amp;#60;!-- #2 --&amp;#62;
-&amp;#60;label class=&quot;checkbox-label&quot; for=&quot;checkbox-1&quot;&amp;#62;
-
- &amp;#60;!-- #2i --&amp;#62;
- &amp;#60;span&amp;#62;
- White-labeled Domain
- &amp;#60;em&amp;#62;Use your own custom domain with SSL security included.&amp;#60;&amp;#47;em&amp;#62;
- &amp;#60;&amp;#47;span&amp;#62;
-
- &amp;#60;!-- #2ii --&amp;#62;
- &amp;#60;span&amp;#62;$49&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
-
-&amp;#60;&amp;#47;label&amp;#62;
+&lt;p&gt;There are minor caveats:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;You should not be specifying any &lt;code&gt;background&lt;/code&gt; styling to your &lt;code&gt;body&lt;/code&gt; or &lt;code&gt;html&lt;/code&gt; elements&lt;/li&gt;
+&lt;li&gt;You should be not specifying any &lt;code&gt;color&lt;/code&gt; styling across any of your readable content (paragraphs, headings, lists, blockquotes)&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;That&amp;#8217;s it! In case you were curious, all major browsers support this color scheme meta tag: &lt;a href=&quot;https://caniuse.com/mdn-html_elements_meta_name_color-scheme&quot;&gt;https:&amp;#47;&amp;#47;caniuse.com&amp;#47;mdn-html&lt;em&gt;elements&lt;/em&gt;meta&lt;em&gt;name&lt;/em&gt;color-scheme&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;but-wait-whats-this-about-safari&quot;&gt;But Wait, What&amp;#8217;s This About Safari?&lt;/h2&gt;
+&lt;p&gt;Even though by adding the color-scheme meta tag we get ourselves good dark mode support across all browsers - Safari has one big oversight: link color. Take a look at the comparison screenshots below (based on one of my older articles). The first one is taken in Firefox, the second in Safari:&lt;/p&gt;
+&lt;p&gt;Luckily for us there is a simple solution using minimal amounts of CSS[^1]:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@supports (color-scheme: dark light) {
+ @media screen and (prefers-color-scheme: dark) {
+ a:link {color: #9e9eff;}
+ a:visited {color: #d0adf0;}
+ a:active {color: red;}
+ }
+}
&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;We are brute-forcing Safari to implement the same color HEX codes used by both Firefox and Chrome browsers. How a horrible accessibility oversight could happen within a company as large as Apple is astounding&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;apple-fix-your-browsers-dark-mode&quot;&gt;Apple: Fix Your Browser&amp;#8217;s Dark Mode&lt;/h2&gt;
+&lt;p&gt;My hope if that even one Safari design or development team member stumbles across this article and raises this ticket to the rest of the team[^2]. It&amp;#8217;s an unbelievably easy fix and would save developers the headache of overriding these things ourselves.&lt;/p&gt;
+&lt;p&gt;Thanks for reading and happy dark mode to you all!&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;&lt;p&gt;This input will be hidden via &lt;code&gt;position:absolute&lt;/code&gt; by default. All checkbox inputs need to share the same &lt;code&gt;name&lt;/code&gt; value and all checkboxes require their our custom &lt;code&gt;id&lt;/code&gt; that will link with the corresponding &lt;code&gt;for&lt;/code&gt; value on the label.&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;This label needs it&amp;#8217;s &lt;code&gt;for&lt;/code&gt; value to correspond with it&amp;#8217;s partnered checkbox.&lt;/p&gt;
+&lt;li&gt;Special thanks to &lt;a href=&quot;https://seirdy.one/&quot;&gt;Seirdy&lt;/a&gt; for suggesting the use of :link and :active support. I recommend you check out his take on &lt;a href=&quot;https://seirdy.one/2020/11/23/website-best-practices.html#dark-themes&quot;&gt;dark mode &amp;#47; theme support&lt;/a&gt;.&lt;/li&gt;
+&lt;li&gt;This has an open ticket through &lt;a href=&quot;https://bugs.webkit.org/show_bug.cgi?id=209851&quot;&gt;Webkit Bugzilla&lt;/a&gt;&lt;/li&gt;
+&lt;/ol&gt;</content>
+ <link href="https://btxx.org/posts/safari-default-dark-mode"/>
+ <id>https://btxx.org/posts/safari-default-dark-mode</id>
+ <updated>2022-04-18T10:00:00Z</updated>
+ <published>2022-04-18T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Enabling Safari Extensions with the macOS Catalina Patcher</title>
+ <content type="html">&lt;h1 id=&quot;enabling-safari-extensions-with-the-macos-catalina-patcher&quot;&gt;Enabling Safari Extensions with the macOS Catalina Patcher&lt;/h1&gt;
+&lt;p&gt;2021-09-23&lt;/p&gt;
+&lt;p&gt;I have an old 2011 MacBook Air that is running the latest version of macOS Catalina thanks to the very wonderful &lt;a href=&quot;http://dosdude1.com/catalina/&quot;&gt;Catalina Patcher&lt;/a&gt; by dosdude1. This project has made it possible for me to run and test some of the latest software from Apple - namely Safari 15.&lt;/p&gt;
+&lt;p&gt;I ran into a small bug early on though – Safari extensions couldn’t be activated via the preferences menu. Luckily I discovered a very simple fix. My hope is this might help others (as small of a demographic that might be) who run into the same issue with the Catalina Patcher.&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;i) The first span holds the title and description information of the add-on&lt;/li&gt;
-&lt;li&gt;ii) The last span holds the cost associated with the current add-on&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h3 id=&quot;the-total-cost-container-output&quot;&gt;The total cost container output&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;!-- #1 --&amp;#62;
-&amp;#60;div class=&quot;total-cost&quot;&amp;#62;
-
- &amp;#60;h2&amp;#62;Your Plan&amp;#60;&amp;#47;h2&amp;#62;
-
- &amp;#60;!-- #2 --&amp;#62;
- &amp;#60;div&amp;#62;
-
- &amp;#60;!-- #2i --&amp;#62;
- &amp;#60;span&amp;#62;$&amp;#60;&amp;#47;span&amp;#62;
-
- &amp;#60;!-- #2ii --&amp;#62;
- &amp;#60;span id=&quot;total-cost-inner&quot;&amp;#62;0&amp;#60;&amp;#47;span&amp;#62;
-
- &amp;#60;!-- #2iii --&amp;#62;
- &amp;#60;input id=&quot;output&quot; type=&quot;text&quot; value=&quot;0&quot; disabled&amp;#47;&amp;#62;
-
- &amp;#60;!-- #2iv --&amp;#62;
- &amp;#60;span&amp;#62;&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
-
- &amp;#60;&amp;#47;div&amp;#62;
-
-&amp;#60;&amp;#47;div&amp;#62;
+&lt;li&gt;Close&amp;#47;Quit Safari completely&lt;/li&gt;
+&lt;li&gt;Open the Finder and use the shortcut &lt;code&gt;⌘ Shift G&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Paste the following to navigate to the proper folder: &lt;code&gt;~&amp;#47;Library&amp;#47;Containers&amp;#47;com.apple.Safari&amp;#47;Data&amp;#47;Library&amp;#47;Safari&amp;#47;AppExtensions&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Open the &lt;code&gt;Extensions.plist&lt;/code&gt; in your favourite text editor (I’m a big fan of Panic&amp;#8217;s Nova)&lt;/li&gt;
+&lt;li&gt;Below each extensions &lt;code&gt;&amp;#60;dict&amp;#62;&lt;/code&gt; tag, add the following: &lt;code&gt;&amp;#60;key&amp;#62;Enabled&amp;#60;&amp;#47;key&amp;#62;&amp;#60;true&amp;#47;&amp;#62;&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Save the file and relaunch Safari&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Reference of what it should look like (AdBlock for this example):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;key&amp;#62;org.adblockplus...&amp;#60;&amp;#47;key&amp;#62;
+ &amp;#60;dict&amp;#62;
+ &amp;#60;key&amp;#62;AddedDate&amp;#60;&amp;#47;key&amp;#62;
+ &amp;#60;date&amp;#62;2021-09-23T14:00:47Z&amp;#60;&amp;#47;date&amp;#62;
+ &amp;#60;key&amp;#62;Enabled&amp;#60;&amp;#47;key&amp;#62;
+ &amp;#60;true&amp;#47;&amp;#62;
+ &amp;#60;key&amp;#62;WebsiteAccess&amp;#60;&amp;#47;key&amp;#62;
+ &amp;#60;dict&amp;#62;
+ &amp;#60;key&amp;#62;Allowed Domains&amp;#60;&amp;#47;key&amp;#62;
+ &amp;#60;array&amp;#47;&amp;#62;
+ &amp;#60;key&amp;#62;Has Injected Content&amp;#60;&amp;#47;key&amp;#62;
+ &amp;#60;true&amp;#47;&amp;#62;
+ &amp;#60;key&amp;#62;Level&amp;#60;&amp;#47;key&amp;#62;
+ &amp;#60;string&amp;#62;All&amp;#60;&amp;#47;string&amp;#62;
+ &amp;#60;&amp;#47;dict&amp;#62;
+ &amp;#60;&amp;#47;dict&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;After following those simple steps you should have working extensions in Safari. Have fun on your old, &amp;#8220;unsupported&amp;#8221; Apple devices!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/safari-extensions-catalina-patcher"/>
+ <id>https://btxx.org/posts/safari-extensions-catalina-patcher</id>
+ <updated>2021-09-23T10:00:00Z</updated>
+ <published>2021-09-23T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Schools Should Be Using Open Source Software</title>
+ <content type="html">&lt;h1 id=&quot;schools-should-be-using-open-source-software&quot;&gt;Schools Should Be Using Open Source Software&lt;/h1&gt;
+&lt;p&gt;2022-05-30&lt;/p&gt;
+&lt;p&gt;I firmly believe that proprietary software has no business in any school environment. Educational institutions lean heavily on Windows systems in the name of &amp;#8220;security&amp;#8221; or &amp;#8220;easier platform management&amp;#8221;. This approach forces students into using locked-down, closed sourced software applications.&lt;/p&gt;
+&lt;p&gt;Word, Excel, PowerPoint. Why have these become the &amp;#8220;standard&amp;#8221; of text manipulation and processing?&lt;/p&gt;
+&lt;p&gt;Photoshop. Illustrator. Why are these the first applications used for image editing and creation?&lt;/p&gt;
+&lt;p&gt;Schools should only be allowed to use and teach with open source software. Starting students off down the path of vendor lock-in is only beneficial to the companies building those software systems.&lt;/p&gt;
+&lt;h2 id=&quot;the-internet&quot;&gt;The Internet&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;m an older fart, so my elementary school experience only included computers near the tail-end of mid-school. As such, it was forgivable to have students locked-in to using Internet Explorer (which would have been version 4 or 5 during my time) since there wasn&amp;#8217;t a great deal of competition.&lt;/p&gt;
+&lt;p&gt;The major problem is that IE&amp;#47;Edge is still the default and often times ONLY browser available in these classrooms. Again, I believe IT departments use the excuse of &amp;#8220;security&amp;#8221; to keep students on such dated browsers.&lt;/p&gt;
+&lt;p&gt;Firefox, anyone? LibreWolf? Pale Moon?&lt;/p&gt;
+&lt;p&gt;Any of these browsers can be easily managed and secured by school IT departments. It doesn&amp;#8217;t HAVE to be IE&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;reducing-hardware-cost&quot;&gt;Reducing Hardware Cost&lt;/h2&gt;
+&lt;p&gt;By shifting towards a purely &amp;#8220;open&amp;#8221; software stack, schools then have the ability to purchase older, cheaper hardware. Instead of running bloated spyware (Windows) IT departments could opt to use any one of the lightweight Linux distros available.&lt;/p&gt;
+&lt;p&gt;This would reduce e-waste, save school districts significant amounts of money (no need to purchase Windows licenses or beefy hardware to be able to even &lt;em&gt;run&lt;/em&gt; the operating system) all while still maintaining a high level of user&amp;#47;network security.&lt;/p&gt;
+&lt;p&gt;Heck, you could even have a fleet of Raspberry Pi devices as your main student &amp;#8220;computers&amp;#8221;. The cost of replacement also becomes less significant (these are children using these devices remember).&lt;/p&gt;
+&lt;h2 id=&quot;security&quot;&gt;Security&lt;/h2&gt;
+&lt;p&gt;I briefly mentioned user and network security above but figured it deserved its own section. A great deal of push-back comes from stubborn IT professionals[^0] determined to keep things running on Windows - since this is mostly what they are familiar with.&lt;/p&gt;
+&lt;p&gt;My mother-in-law was an &amp;#8220;at-risk&amp;#8221; educator for most of her career. She explained to me that their IT department did a major switch over to use BRAND NEW Apple laptops for all the students just before her retirement. I can&amp;#8217;t even begin to imagine the cost associated with this change. Not to mention the cost of repair for any of these devices when (not if) damaged.&lt;/p&gt;
+&lt;p&gt;Who the hell is making these decisions? Even worse, who is approving them?! The school board had the opportunity to switch away from Windows devices and decided on Apple? Education reform is greatly needed[^1].&lt;/p&gt;
+&lt;h2 id=&quot;what-about-the-job-market&quot;&gt;What About The &amp;#8220;Job Market&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;m not ignorant to the fact that many businesses in the real world require familiarity with some of these more popular closed source applications (Word, Excel). I don&amp;#8217;t have a magic solution to instantly convert all applications used by the companies, but beginning the process in the education system is a solid start. Over time, the standard will &lt;em&gt;become&lt;/em&gt; these open platforms. The initial change just needs to be made.&lt;/p&gt;
+&lt;p&gt;It should also be mentioned that these open source applications carry over a lot of similar functionality to their closed-sourced counterparts. So it isn&amp;#8217;t as if a user with extensive LibreOffice experience would be utterly lost while using Microsoft Word.&lt;/p&gt;
+&lt;h2 id=&quot;looking-under-the-hood&quot;&gt;Looking Under the Hood&lt;/h2&gt;
+&lt;p&gt;Another bonus in using fully open source software is the ability for the students to deep dive into the code itself. This can be a great resource for early programming fundamentals and beginner coding classes. Why not dissect the very program used in your other classes? Here&amp;#8217;s an example of a possible class project: students could build out their own plugins or extensions for an existing application!&lt;/p&gt;
+&lt;h2 id=&quot;suggested-alternatives&quot;&gt;Suggested Alternatives&lt;/h2&gt;
+&lt;p&gt;So what are these &amp;#8220;open source&amp;#8221; alternatives? Check out my simple suggestions below:&lt;/p&gt;
+&lt;p&gt;MS Office Suite ==&amp;#62; LibreOffice Suite[^2]&lt;/p&gt;
+&lt;p&gt;Photoshop ==&amp;#62; GIMP&lt;/p&gt;
+&lt;p&gt;Illustrator ==&amp;#62; Inkscape&lt;/p&gt;
+&lt;p&gt;IE&amp;#47;Edge ==&amp;#62; Firefox[^3]&lt;/p&gt;
+&lt;p&gt;Coding IDE (optional) ===&amp;#62; vim&lt;/p&gt;
+&lt;p&gt;You could easily expand upon these options, but for most elementary school task these are more than enough.&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;&lt;p&gt;A simple &lt;code&gt;div&lt;/code&gt; with a class we can easily target later&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;A &lt;code&gt;div&lt;/code&gt; parent container is needed to house all the total &lt;code&gt;spans&lt;/code&gt; together (more on this when we get into the CSS)&lt;/p&gt;
+&lt;li&gt;Not &lt;em&gt;all&lt;/em&gt; IT workers in the school system fall into this category. But most of the underlining structure prevents them from changing much.&lt;/li&gt;
+&lt;li&gt;At least in my country of Canada. I can&amp;#8217;t speak for others.&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;groff&lt;/code&gt; would be my personal suggestion instead, since it helps introduce children into the structure of basic file formatting and &amp;#8220;programming&amp;#8221;. I&amp;#8217;ll go into greater details about this in another post.&lt;/li&gt;
+&lt;li&gt;As mentioned in the beginning of the post, I&amp;#8217;d even suggest forks of Firefox -&amp;#62; LibreWolf or Pale Moon (if possible)&lt;/li&gt;
+&lt;/ol&gt;</content>
+ <link href="https://btxx.org/posts/schools"/>
+ <id>https://btxx.org/posts/schools</id>
+ <updated>2022-05-30T10:00:00Z</updated>
+ <published>2022-05-30T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>What Happened to Self-Hosted Blogs?</title>
+ <content type="html">&lt;h1 id=&quot;what-happened-to-self-hosted-blogs&quot;&gt;What Happened to Self-Hosted Blogs?&lt;/h1&gt;
+&lt;p&gt;2018-10-18&lt;/p&gt;
+&lt;p&gt;I remember a time on the internet1 when everyone and their grandmother was running a personal blog. And I mean &lt;em&gt;personal&lt;/em&gt; - not hosted on some side platform or a tacked-on addition to the rest of their website.&lt;/p&gt;
+&lt;p&gt;Nowadays companies and individuals alike use platforms like Medium to host and promote all of their articles, essays and case studies. I understand the draw, and can even list out the positives:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;A large community already exists under the Medium brand&lt;/li&gt;
+&lt;li&gt;It&amp;#8217;s easy to promote your own work and follow others&lt;/li&gt;
+&lt;li&gt;The platform is fairly easy to setup and implement&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;Unfortunately this has had a pretty severe impact on the blogging community as a whole - no one controls their own blogs anymore. I remember when finding a new blog was an interesting and fun experience:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;i) The first &lt;code&gt;span&lt;/code&gt; holds the static currency symbol&lt;/li&gt;
-&lt;li&gt;ii) The second &lt;code&gt;span&lt;/code&gt; is where our updated cost will be injected&lt;/li&gt;
-&lt;li&gt;iii) This input field is required for us to take-in the &lt;code&gt;value&lt;/code&gt; of the associated &lt;code&gt;:checked&lt;/code&gt; inputs and add them together. This current value is then used for the injection into the second &lt;code&gt;span&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;iv) The final &lt;code&gt;span&lt;/code&gt; simply holds the static monthly duration content&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;how did they decide to layout the page design?&lt;/li&gt;
+&lt;li&gt;what typefaces have they decided to use?&lt;/li&gt;
+&lt;li&gt;what back-end are they using?&lt;/li&gt;
+&lt;li&gt;how does it look and feel on mobile?&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;These custom self-hosted blogs inspired other developers and designers to create their own blogs or tweak current ones. In a way it was a small factor in pushing what we could do on the web further and further, as designers engaged in friendly competition trying to one-up each others&amp;#8217; creations.&lt;/p&gt;
+&lt;p&gt;I also believe this inspired people to write better content instead of opting for clickbait garbage in order to get &amp;#8220;featured&amp;#8221; or boosted promotion on the main blogging platform. But I don&amp;#8217;t even think that&amp;#8217;s the worst to come of this mass-migration to a singular blogging platform.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;All2 blogs look identical now.&lt;/strong&gt; I&amp;#8217;m not sure if that was Medium&amp;#8217;s intention, but either way I personally think it&amp;#8217;s horrible. The individual personality of most design and development blogs has been completely stripped away.&lt;/p&gt;
+&lt;p&gt;Maybe I&amp;#8217;m just a salty designer with a narrow-minded, pessimistic view on where our blogging communities seem to be heading - or maybe I just have higher standards.&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;p&gt;1 the design world of the internet
+2 by &amp;#8220;All&amp;#8221; I mean the majority&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/self-hosted-blogs"/>
+ <id>https://btxx.org/posts/self-hosted-blogs</id>
+ <updated>2018-10-18T10:00:00Z</updated>
+ <published>2018-10-18T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Self-Hosting Fathom Analytics with DigitalOcean</title>
+ <content type="html">&lt;h1 id=&quot;self-hosting-fathom-analytics-with-digitalocean&quot;&gt;Self-Hosting Fathom Analytics with DigitalOcean&lt;/h1&gt;
+&lt;p&gt;2021-02-02&lt;/p&gt;
+&lt;p&gt;Since my previous post walked through the process of setting up Fathom PRO on Netlify, I figured it made sense to create a similar tutorial for the &amp;#8220;Lite&amp;#8221; variation, self-hosted on DigitalOcean.&lt;/p&gt;
+&lt;p&gt;Please note that while I think the PRO version of Fathom Analytics is truly great, for my small, niche blog it seemed overkill compared to self-hosting. Switching over from $14&amp;#47;mo to $5&amp;#47;mo while retaining most of the same functionality was a no-brainer. Choose the option that best suits your needs (or in the case - budget &amp;#38; bandwidth).&lt;/p&gt;
+&lt;p&gt;With that cleared up - let&amp;#8217;s get into it!&lt;/p&gt;
+&lt;h2 id=&quot;prerequisites&quot;&gt;Prerequisites&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;One or more website(s) where you would like to include analytics&lt;/li&gt;
+&lt;li&gt;DigitalOcean account (&lt;strong&gt;this link will give you a $100 credit!&lt;/strong&gt;)&lt;/li&gt;
+&lt;li&gt;Positive attitude and passion for privacy-respecting analytics!&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;All that&amp;#8217;s all we need for the HTML!&lt;/p&gt;
-&lt;h2 id=&quot;the-visuals-css&quot;&gt;The Visuals (CSS)&lt;/h2&gt;
-&lt;p&gt;Again, lets take a look at the entire file before we break it down step-by-step:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.checkbox-label {
- align-items: center;
- background-color: none;
- border: 1px solid lightgrey;
- border-radius: 5px;
- cursor: pointer;
- display: flex;
- font-weight: 600;
- justify-content: space-between;
- margin: 0 auto 10px;
- padding: 20px 20px 20px 70px;
- position: relative;
- transition: .3s ease all;
- width: 100%;
-}
-.checkbox-label span:last-child {
- padding: 0 0 0 20px;
-}
-.checkbox-label:hover {
- background-color: rgba(255,255,255,0.2);
-}
-.checkbox-label:before {
- background-repeat: no-repeat;
- background-position: center;
- background-size: 15px;
- border: 1px solid lightgrey;
- border-radius: 50%;
- content:&amp;#39;&amp;#39;;
- height: 30px;
- left: 20px;
- position: absolute;
- top: calc(50% - 15px);
- transition: .3s ease background-color;
- width: 30px;
-}
-.checkbox-label:hover:before {
- background-image:
- url(&amp;#39;data:image&amp;#47;svg+xml;utf8,&amp;#60;svg xmlns=&quot;http:&amp;#47;&amp;#47;www.w3.org&amp;#47;2000&amp;#47;svg&quot; width=&quot;23.571429&quot; height=&quot;23.571429&quot; viewBox=&quot;0.000000 -47.142857 23.571429 23.571429&quot;&amp;#62;&amp;#60;path fill=&quot;lightgrey&quot; d=&quot;M23.571429 -36.964286L23.571429 -33.750000C23.571429 -33.303571 23.415179 -32.924107 23.102679 -32.611607C22.790179 -32.299107 22.410714 -32.142857 21.964286 -32.142857L15.000000 -32.142857L15.000000 -25.178571C15.000000 -24.732143 14.843750 -24.352679 14.531250 -24.040179C14.218750 -23.727679 13.839286 -23.571429 13.392857 -23.571429L10.178571 -23.571429C9.732143 -23.571429 9.352679 -23.727679 9.040179 -24.040179C8.727679 -24.352679 8.571429 -24.732143 8.571429 -25.178571L8.571429 -32.142857L1.607143 -32.142857C1.160714 -32.142857 0.781250 -32.299107 0.468750 -32.611607C0.156250 -32.924107 0.000000 -33.303571 0.000000 -33.750000L0.000000 -36.964286C0.000000 -37.410714 0.156250 -37.790179 0.468750 -38.102679C0.781250 -38.415179 1.160714 -38.571429 1.607143 -38.571429L8.571429 -38.571429L8.571429 -45.535714C8.571429 -45.982143 8.727679 -46.361607 9.040179 -46.674107C9.352679 -46.986607 9.732143 -47.142857 10.178571 -47.142857L13.392857 -47.142857C13.839286 -47.142857 14.218750 -46.986607 14.531250 -46.674107C14.843750 -46.361607 15.000000 -45.982143 15.000000 -45.535714L15.000000 -38.571429L21.964286 -38.571429C22.410714 -38.571429 22.790179 -38.415179 23.102679 -38.102679C23.415179 -37.790179 23.571429 -37.410714 23.571429 -36.964286ZM23.571429 -36.964286&quot;&amp;#62;&amp;#60;&amp;#47;path&amp;#62;&amp;#60;&amp;#47;svg&amp;#62;&amp;#39;);
-}
-.checkbox-label span {
- -webkit-user-select: none;
- -moz-user-select: none;
- user-select: none;
-}
-.checkbox-label span em {
- display: block;
- font-size: 80%;
- font-style: normal;
- font-weight: 400;
- line-height: 1.2;
-}
-.checkbox-btn {
- position: absolute;
- visibility: hidden;
-}
-.checkbox-btn:checked + .checkbox-label {
- background-color: white;
- border-color: mediumpurple;
- box-shadow: 0 2px 4px rgba(0,0,0,0.05);
-}
-.checkbox-btn:checked + .checkbox-label:before {
- background-color: mediumpurple;
- background-image:
- url(&amp;#39;data:image&amp;#47;svg+xml;utf8,&amp;#60;svg xmlns=&quot;http:&amp;#47;&amp;#47;www.w3.org&amp;#47;2000&amp;#47;svg&quot; width=&quot;25.948661&quot; height=&quot;19.888393&quot; viewBox=&quot;2.025670 -40.011161 25.948661 19.888393&quot;&amp;#62;&amp;#60;path fill=&quot;white&quot; d=&quot;M27.974330 -36.127232C27.974330 -35.680804 27.818080 -35.301339 27.505580 -34.988839L15.385045 -22.868304L13.108259 -20.591518C12.795759 -20.279018 12.416295 -20.122768 11.969866 -20.122768C11.523438 -20.122768 11.143973 -20.279018 10.831473 -20.591518L8.554688 -22.868304L2.494420 -28.928571C2.181920 -29.241071 2.025670 -29.620536 2.025670 -30.066964C2.025670 -30.513393 2.181920 -30.892857 2.494420 -31.205357L4.771205 -33.482143C5.083705 -33.794643 5.463170 -33.950893 5.909598 -33.950893C6.356027 -33.950893 6.735491 -33.794643 7.047991 -33.482143L11.969866 -28.543527L22.952009 -39.542411C23.264509 -39.854911 23.643973 -40.011161 24.090402 -40.011161C24.536830 -40.011161 24.916295 -39.854911 25.228795 -39.542411L27.505580 -37.265625C27.818080 -36.953125 27.974330 -36.573661 27.974330 -36.127232ZM27.974330 -36.127232&quot;&amp;#62;&amp;#60;&amp;#47;path&amp;#62;&amp;#60;&amp;#47;svg&amp;#62;&amp;#39;);
- border-color: mediumpurple;
-}
-
-.total-cost {
- align-items: baseline;
- border-top: 1px solid lightgrey;
- display: flex;
- justify-content: space-between;
- margin-top: 40px;
- padding: 40px 20px 0;
-}
-.total-cost div {
- align-items: baseline;
- display: flex;
-}
-.total-cost span:nth-child(1) {
- align-self: flex-start;
- padding-top: 5px;
-}
-.total-cost span:nth-child(2) {
- font-size: 32px;
- font-weight: bold;
-}
-.total-cost input {
- display: none;
-}
-
-@media(max-width:480px) {
- .checkbox-label {
- align-items: flex-start;
- flex-direction: column;
- flex-wrap: wrap;
- }
- .checkbox-label span:last-child {
- padding: 10px 0 0 0;
- }
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;the-checkbox-label&quot;&gt;The checkbox label&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;*
-This is the main element for each checkbox &quot;container&quot;.
-Inside it houses the title, description and price.
-*&amp;#47;
-.checkbox-label {
- align-items: center;
- background-color: none;
- border: 1px solid lightgrey;
- border-radius: 5px;
- cursor: pointer;
- display: flex;
- font-weight: 600;
- justify-content: space-between;
- margin: 0 auto 10px;
- padding: 20px 20px 20px 70px;
- position: relative;
- transition: .3s ease all;
- width: 100%;
-}
-.checkbox-label:hover {
- background-color: rgba(255,255,255,0.2);
-}
-
-&amp;#47;* Update the label styling when the input is :checked *&amp;#47;
-.checkbox-btn:checked + .checkbox-label {
- background-color: white;
- border-color: mediumpurple;
- box-shadow: 0 2px 4px rgba(0,0,0,0.05);
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;the-custom-checkbox-input&quot;&gt;The custom checkbox input&lt;/h3&gt;
-&lt;p&gt;We need to hide the browser&amp;#8217;s default checkbox input and replace it with our own using pseudo selectors.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Hide browser default input *&amp;#47;
-.checkbox-btn {
- position: absolute;
- visibility: hidden;
-}
-
-&amp;#47;* Our custom input checkbox *&amp;#47;
-.checkbox-label:before {
- background-repeat: no-repeat;
- background-position: center;
- background-size: 15px;
- border: 1px solid lightgrey;
- border-radius: 50%;
- content:&amp;#39;&amp;#39;;
- height: 30px;
- left: 20px;
- position: absolute;
- top: calc(50% - 15px);
- transition: .3s ease background-color;
- width: 30px;
-}
-
-&amp;#47;*
-Here we add a simple &amp;#39;+&amp;#39; icon on hover
-to our custom pseudo element.
-Adding it as an inline SVG gives us the
-ability to fully customize it&amp;#39;s styling
-*&amp;#47;
-.checkbox-label:hover:before {
- background-image:
- url(&amp;#39;data:image&amp;#47;svg+xml;utf8,&amp;#60;svg xmlns=&quot;http:&amp;#47;&amp;#47;www.w3.org&amp;#47;2000&amp;#47;svg&quot; width=&quot;23.571429&quot; height=&quot;23.571429&quot; viewBox=&quot;0.000000 -47.142857 23.571429 23.571429&quot;&amp;#62;&amp;#60;path fill=&quot;lightgrey&quot; d=&quot;M23.571429 -36.964286L23.571429 -33.750000C23.571429 -33.303571 23.415179 -32.924107 23.102679 -32.611607C22.790179 -32.299107 22.410714 -32.142857 21.964286 -32.142857L15.000000 -32.142857L15.000000 -25.178571C15.000000 -24.732143 14.843750 -24.352679 14.531250 -24.040179C14.218750 -23.727679 13.839286 -23.571429 13.392857 -23.571429L10.178571 -23.571429C9.732143 -23.571429 9.352679 -23.727679 9.040179 -24.040179C8.727679 -24.352679 8.571429 -24.732143 8.571429 -25.178571L8.571429 -32.142857L1.607143 -32.142857C1.160714 -32.142857 0.781250 -32.299107 0.468750 -32.611607C0.156250 -32.924107 0.000000 -33.303571 0.000000 -33.750000L0.000000 -36.964286C0.000000 -37.410714 0.156250 -37.790179 0.468750 -38.102679C0.781250 -38.415179 1.160714 -38.571429 1.607143 -38.571429L8.571429 -38.571429L8.571429 -45.535714C8.571429 -45.982143 8.727679 -46.361607 9.040179 -46.674107C9.352679 -46.986607 9.732143 -47.142857 10.178571 -47.142857L13.392857 -47.142857C13.839286 -47.142857 14.218750 -46.986607 14.531250 -46.674107C14.843750 -46.361607 15.000000 -45.982143 15.000000 -45.535714L15.000000 -38.571429L21.964286 -38.571429C22.410714 -38.571429 22.790179 -38.415179 23.102679 -38.102679C23.415179 -37.790179 23.571429 -37.410714 23.571429 -36.964286ZM23.571429 -36.964286&quot;&amp;#62;&amp;#60;&amp;#47;path&amp;#62;&amp;#60;&amp;#47;svg&amp;#62;&amp;#39;);
-}
-
-&amp;#47;*
-When the checkbox input is :checked we need to
-update the inline SVG to use a checkmark symbol
-*&amp;#47;
-.checkbox-btn:checked + .checkbox-label:before {
- background-color: mediumpurple;
- background-image:
- url(&amp;#39;data:image&amp;#47;svg+xml;utf8,&amp;#60;svg xmlns=&quot;http:&amp;#47;&amp;#47;www.w3.org&amp;#47;2000&amp;#47;svg&quot; width=&quot;25.948661&quot; height=&quot;19.888393&quot; viewBox=&quot;2.025670 -40.011161 25.948661 19.888393&quot;&amp;#62;&amp;#60;path fill=&quot;white&quot; d=&quot;M27.974330 -36.127232C27.974330 -35.680804 27.818080 -35.301339 27.505580 -34.988839L15.385045 -22.868304L13.108259 -20.591518C12.795759 -20.279018 12.416295 -20.122768 11.969866 -20.122768C11.523438 -20.122768 11.143973 -20.279018 10.831473 -20.591518L8.554688 -22.868304L2.494420 -28.928571C2.181920 -29.241071 2.025670 -29.620536 2.025670 -30.066964C2.025670 -30.513393 2.181920 -30.892857 2.494420 -31.205357L4.771205 -33.482143C5.083705 -33.794643 5.463170 -33.950893 5.909598 -33.950893C6.356027 -33.950893 6.735491 -33.794643 7.047991 -33.482143L11.969866 -28.543527L22.952009 -39.542411C23.264509 -39.854911 23.643973 -40.011161 24.090402 -40.011161C24.536830 -40.011161 24.916295 -39.854911 25.228795 -39.542411L27.505580 -37.265625C27.818080 -36.953125 27.974330 -36.573661 27.974330 -36.127232ZM27.974330 -36.127232&quot;&amp;#62;&amp;#60;&amp;#47;path&amp;#62;&amp;#60;&amp;#47;svg&amp;#62;&amp;#39;);
- border-color: mediumpurple;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;the-total-cost-container&quot;&gt;The total cost container&lt;/h3&gt;
-&lt;p&gt;We only need some very basic flexbox styling for our bottom &amp;#8220;total&amp;#8221; container:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.total-cost {
- align-items: baseline;
- border-top: 1px solid lightgrey;
- display: flex;
- justify-content: space-between;
- margin-top: 40px;
- padding: 40px 20px 0;
-}
-.total-cost div {
- align-items: baseline;
- display: flex;
-}
-.total-cost span:nth-child(1) {
- align-self: flex-start;
- padding-top: 5px;
-}
-.total-cost span:nth-child(2) {
- font-size: 32px;
- font-weight: bold;
-}
-
-&amp;#47;*
-This input is used in our JavaScript - look at the
-function part of this post to understand why
-*&amp;#47;
-.total-cost input {
- display: none;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;last-but-not-least---mobile&quot;&gt;Last but not least - mobile&lt;/h3&gt;
-&lt;p&gt;Now we just ensure that on smaller devices our checkbox labels render nicely:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@media(max-width:480px) {
- &amp;#47;*
- Avoids the inner label content from squishing together
- and becoming unreadable
- *&amp;#47;
- .checkbox-label {
- align-items: flex-start;
- flex-direction: column;
- flex-wrap: wrap;
- }
- .checkbox-label span:last-child {
- padding: 10px 0 0 0;
- }
-}
+&lt;h2 id=&quot;create-a-droplet&quot;&gt;Create a Droplet&lt;/h2&gt;
+&lt;p&gt;Once your DigitalOcean account is setup, navigate to the Marketplace and search for &lt;code&gt;Fathom Analytics&lt;/code&gt;. Then click the &lt;code&gt;Create Fathom Analytics Droplet&lt;/code&gt;.&lt;/p&gt;
+&lt;p&gt;From here you&amp;#8217;ll be brought to a page that allows you to customize the specifications of your new droplet. If you&amp;#8217;re a smaller traffic site (personal blog, etc) selecting the &lt;strong&gt;$5&amp;#47;month&lt;/strong&gt; Basic Shared CPU option is your best bet.&lt;/p&gt;
+&lt;p&gt;Select the data-center region based on where most of your traffic originates from. I would suggest enabling &lt;code&gt;IPv6&lt;/code&gt; and setting up your authentication via SSH instead of a regular password system. Adding backups is entirely at your own discretion.&lt;/p&gt;
+&lt;p&gt;Once you&amp;#8217;re ready, click &lt;strong&gt;Create Droplet&lt;/strong&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;enter-the-matrix-not-really&quot;&gt;Enter the Matrix (not really)&lt;/h2&gt;
+&lt;p&gt;Once DigitalOcean finishes spinning up your new droplet, open a terminal and connect to it by entering:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;ssh root@YOUR_DROPLET_IP
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it for the styling!&lt;/p&gt;
-&lt;h2 id=&quot;the-function-js&quot;&gt;The Function (JS)&lt;/h2&gt;
-&lt;p&gt;As you can see below, we only need a very minor amount of JavaScript to accomplish our total cost &amp;#8220;injection&amp;#8221;.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;window.onload=function(){
-
-&amp;#47;&amp;#47; Place the default browser checkbox inputs into a variable
-var inputs = document.getElementsByClassName(&amp;#39;checkbox-btn&amp;#39;)
-
-&amp;#47;&amp;#47; Now we loop through the inputs and check if they are
-&amp;#47;&amp;#47; greater than zero. If so, we run our function.
-for (var i=0; i &amp;#60; inputs.length; i++) {
-
- inputs[i].onchange = function() {
-
- &amp;#47;&amp;#47; Create `add` variable which takes the :checked input value
- var add = this.value * (this.checked ? 1 : -1);
-
- &amp;#47;&amp;#47; We grab the current total value on our hidden input field and return it
- &amp;#47;&amp;#47; as a floating point number
- &amp;#47;&amp;#47; (since in this use case it will be a price number based on currency)
- var new_total = parseFloat(document.getElementById(&amp;#39;output&amp;#39;).value);
-
- &amp;#47;&amp;#47; Now we simply add the existing total value with the newly &quot;:checked&quot; input value
- var updated_total = document.getElementById(&amp;#39;output&amp;#39;).value=new_total + add
-
- &amp;#47;&amp;#47; Place the new updated total directly inside the `total-cost-inner` span element
- document.getElementById(&amp;#39;total-cost-inner&amp;#39;).innerHTML = updated_total;
- }
-
-}
-}
+&lt;p&gt;If you setup your login via SSH everything should work as-is. If you went the password route, you&amp;#8217;ll given a prompt to enter it.&lt;/p&gt;
+&lt;p&gt;Now that you&amp;#8217;re connected, Fathom will guide you through a simple configuration setup. It&amp;#8217;s fairly straightforward and painless. Once complete, move to the next step.&lt;/p&gt;
+&lt;h2 id=&quot;domains&quot;&gt;Domains&lt;/h2&gt;
+&lt;p&gt;You&amp;#8217;ll most likely want to host this instance on your own domain or subdomain - instead of connecting directly via the droplet&amp;#8217;s &lt;code&gt;IP&lt;/code&gt;. Head over to your &lt;strong&gt;Networking&lt;/strong&gt; page in the sidebar of DigitalOcean and add your custom domain.&lt;/p&gt;
+&lt;p&gt;Then, click on that newly added domain - we need to add some new records. You&amp;#8217;re going to add two new &lt;code&gt;A&lt;/code&gt; records to this domain:&lt;/p&gt;
+&lt;p&gt;The last thing you need to do is set your nameservers to point to DigitalOcean:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;ns1.digitalocean.com
+ns2.digitalocean.com
+ns3.digitalocean.com
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it! Feel free to play with the demo some more at the top of the post, or check out the &lt;a href=&quot;https://codepen.io/bradleytaunt/pen/rXWEpy&quot;&gt;CodePen source directly&lt;/a&gt;.&lt;/p&gt;</content>
- <link href="https://btxx.org/dynamic-checkboxes"/>
- <id>https://btxx.org/dynamic-checkboxes</id>
- <updated>2019-07-30T10:00:00Z</updated>
- <published>2019-07-30T10:00:00Z</published>
- </entry>
- <entry>
- <title>Bringing dwm Shortcuts to GNOME</title>
- <content type="html">&lt;h1 id=&quot;bringing-dwm-shortcuts-to-gnome&quot;&gt;Bringing dwm Shortcuts to GNOME&lt;/h1&gt;
-&lt;p&gt;2023-11-02&lt;/p&gt;
-&lt;p&gt;The &lt;code&gt;dwm&lt;/code&gt; window manager is my standard &amp;#8220;go-to&amp;#8221; for most of my personal laptop environments. For desktops with larger, higher resolution monitors I tend to lean towards using GNOME. The GNOME DE is fairly solid for my own purposes. This article isn&amp;#8217;t going to deep dive into GNOME itself, but instead highlight some minor configuration changes I make to mimic a few &lt;code&gt;dwm&lt;/code&gt; shortcuts.&lt;/p&gt;
-&lt;p&gt;For reference, I&amp;#8217;m running GNOME 45.0 on Ubuntu 23.10&lt;/p&gt;
-&lt;h2 id=&quot;setting-up-fixed-workspaces&quot;&gt;Setting Up Fixed Workspaces&lt;/h2&gt;
-&lt;p&gt;When I use &lt;code&gt;dwm&lt;/code&gt; I tend to have a hard-set amount of &lt;code&gt;tags&lt;/code&gt; to cycle through (normally 4-5). Unfortunately, dynamic rendering is the default for workspaces (ie. tags) in GNOME. For my personal preference I set this setting to &lt;code&gt;fixed&lt;/code&gt;. We can achieve this by opening &lt;strong&gt;Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Multitasking&lt;/strong&gt; and selecting &amp;#8220;Fixed number of workspaces&amp;#8221;.&lt;/p&gt;
-&lt;h2 id=&quot;setting-our-keybindings&quot;&gt;Setting Our Keybindings&lt;/h2&gt;
-&lt;p&gt;Now all that is left is to mimic &lt;code&gt;dwm&lt;/code&gt; keyboard shortcuts, in this case: ALT + $num for switching between workspaces and ALT + SHIFT + $num for moving windows across workspaces. These keyboard shortcuts can be altered under &lt;strong&gt;Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Keyboard&lt;/strong&gt; &amp;#62; &lt;strong&gt;View and Customize Shortcuts&lt;/strong&gt; &amp;#62; &lt;strong&gt;Navigation&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;You&amp;#8217;ll want to make edits to both the &amp;#8220;Switch to workspace &lt;em&gt;n&lt;/em&gt;&amp;#8221; and &amp;#8220;Move window to workspace &lt;em&gt;n&lt;/em&gt;&amp;#8221;. &lt;/p&gt;
-&lt;p&gt;That&amp;#8217;s it. You&amp;#8217;re free to include even more custom keyboard shortcuts (open web browser, lock screen, hibernate, etc.) but this is a solid starting point. Enjoy tweaking GNOME!&lt;/p&gt;</content>
- <link href="https://btxx.org/dwm-gnome"/>
- <id>https://btxx.org/dwm-gnome</id>
- <updated>2023-11-02T10:00:00Z</updated>
- <published>2023-11-02T10:00:00Z</published>
- </entry>
- <entry>
- <title>Dynamic Viewports with CSS</title>
- <content type="html">&lt;h1 id=&quot;dynamic-viewports-with-css&quot;&gt;Dynamic Viewports with CSS&lt;/h1&gt;
-&lt;p&gt;2023-02-08&lt;/p&gt;
-&lt;p&gt;I think it&amp;#8217;s safe to assume most web designers and developers are familiar with the standard &lt;code&gt;vh&lt;/code&gt; and &lt;code&gt;vw&lt;/code&gt; parameters in CSS. These parameters are used for setting an element&amp;#8217;s height and&amp;#47;or width, relative to the viewport (v) height (h) or width (w). For example:&lt;/p&gt;
-&lt;p&gt;If I want my &lt;code&gt;.box&lt;/code&gt; element to take up the entire height of a device&amp;#8217;s screen:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.box {
- height: 100vh;
-}
+&lt;p&gt;Give it some time to propagate and you&amp;#8217;ll be in business!&lt;/p&gt;
+&lt;h2 id=&quot;ssl-ftw&quot;&gt;SSL FTW&lt;/h2&gt;
+&lt;p&gt;There is hardly a good reason not to practice security on the web, so setting up your new analytics to be served over &lt;code&gt;HTTPS&lt;/code&gt; is just the smart thing to do. Did I mention that this is completely free as well? See - no excuses.&lt;/p&gt;
+&lt;p&gt;In order to get a free SSL certificate setup, you&amp;#8217;ll need to install &lt;code&gt;certbot&lt;/code&gt;. While connected to your droplet, enter the following:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo apt-get install python-certbot-nginx
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Or I want my &lt;code&gt;.box&lt;/code&gt; element to take up the entire width of a device&amp;#8217;s screen:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.box {
- width: 100vw;
-}
+&lt;p&gt;Once installed, enter the following to setup SSL (remember to swap out the domain with your own):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;certbot --nginx -d your-cool-domain.com
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;These are wonderful options to have - specifically for those of us designing web applications. But there are some &lt;em&gt;minor&lt;/em&gt; issues with &lt;code&gt;vh&lt;/code&gt; and &lt;code&gt;vw&lt;/code&gt;.&lt;/p&gt;
+&lt;p&gt;Follow the steps (it&amp;#8217;s very quick and easy) and you&amp;#8217;ll have &lt;code&gt;HTTPS&lt;/code&gt; setup in a jiffy!&lt;/p&gt;
+&lt;h2 id=&quot;the-final-lap&quot;&gt;The Final Lap&lt;/h2&gt;
+&lt;p&gt;The last thing to do is login to your newly self-hosted Fathom instance, add your site you wish to track, grab the generated tracking code and then slap that badboy on whatever pages you need to track!&lt;/p&gt;
+&lt;p&gt;Congrats! You&amp;#8217;re now officially running your own set of analytics tools. You should be happy about what you&amp;#8217;ve accomplished and proud for respecting your users&amp;#8217; privacy!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/self-hosting-fathom"/>
+ <id>https://btxx.org/posts/self-hosting-fathom</id>
+ <updated>2021-02-02T10:00:00Z</updated>
+ <published>2021-02-02T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Setting Up a Free SSL</title>
+ <content type="html">&lt;h1 id=&quot;setting-up-a-free-ssl&quot;&gt;Setting Up a Free SSL&lt;/h1&gt;
+&lt;p&gt;2018-08-07&lt;/p&gt;
+&lt;p&gt;I never had to worry about SSL certificates when I originally hosted my blog through Github Pages, but since switching over to Surge.sh I lost my ability to utilize &lt;code&gt;https&lt;/code&gt; protocol.&lt;/p&gt;
+&lt;p&gt;Luckily, Cloudflare offers a very simple way to implement SSL on your website - and it&amp;#8217;s free!&lt;/p&gt;
+&lt;h3 id=&quot;ssl-in-3-easy-steps&quot;&gt;SSL in 3 easy steps&lt;/h3&gt;
&lt;ol&gt;
-&lt;li&gt;The setting does not take into account device-specific UI (status bars, toolbars, search fields etc.)&lt;/li&gt;
-&lt;li&gt;In some instances these will not play nice with &lt;code&gt;box-sizing&lt;/code&gt; properties&lt;/li&gt;
+&lt;li&gt;You will need to have a Cloudflare account - you can setup one here. Be sure to select the &amp;#8216;Free&amp;#8217; pricing plan (unless you want some extras features)&lt;/li&gt;
+&lt;li&gt;Follow the process on updating your nameservers to the proper Cloudflare servers and wait for your domain to update the changes. (This can take up to 24 hours)&lt;/li&gt;
+&lt;li&gt;From the main Cloudflare dashboard navigate to the Crypto tab. Then under the SSL section, select &amp;#8220;Flexible&amp;#8221; from the dropdown.&lt;/li&gt;
&lt;/ol&gt;
-&lt;h2 id=&quot;have-no-fear-dynamic-viewport-is-here&quot;&gt;Have No Fear, Dynamic Viewport is Here!&lt;/h2&gt;
-&lt;p&gt;Lucky for us there exists an awesome &lt;em&gt;new-ish&lt;/em&gt; CSS API called dynamic viewport-percentage units: &lt;code&gt;dvh&lt;/code&gt; &amp;#38; &lt;code&gt;dvw&lt;/code&gt;. They are defined as follows:&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;The dynamic viewport-percentage units (dv) are defined with respect to the dynamic viewport size: the viewport sized with dynamic consideration of any UA interfaces that are dynamically expanded and retracted. This allows authors to size content such that it can exactly fit within the viewport whether or not such interfaces are present.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;So our examples above would translate into:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.box {
- height: 100dvh;
- width: 100dvw;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;what-about-browser-support&quot;&gt;What About Browser Support?&lt;/h3&gt;
-&lt;p&gt;&lt;a href=&quot;https://caniuse.com/mdn-api_css_dvh&quot;&gt;Can I Use Stats&lt;/a&gt; &amp;#47; ~67.17% coverage.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Even though the caniuse page states that Firefox 109+ and iOS Safari 16.3 do not support &lt;code&gt;dvh&lt;/code&gt;, in my experiments they do. I&amp;#8217;m not sure what testing was done for those two browsers, so YMMV.&lt;/p&gt;
-&lt;p&gt;If you want to play it safe, use dynamic viewports with standard &amp;#8220;traditional&amp;#8221; viewports as backup. That way you support all use cases while still taking advantage of newer CSS properties.&lt;/p&gt;</content>
- <link href="https://btxx.org/dv"/>
- <id>https://btxx.org/dv</id>
- <updated>2023-02-08T10:00:00Z</updated>
- <published>2023-02-08T10:00:00Z</published>
- </entry>
- <entry>
- <title>Don't Make a Blog, Make a Brain Dump</title>
- <content type="html">&lt;h1 id=&quot;dont-make-a-blog-make-a-brain-dump&quot;&gt;Don&amp;#8217;t Make a Blog, Make a Brain Dump&lt;/h1&gt;
-&lt;p&gt;2022-09-10&lt;/p&gt;
-&lt;p&gt;Not enough people have personal blogs. This is a point brought up by many of those passionate about the &amp;#8220;golden age&amp;#8221; in the timeline of the modern internet. A time when websites were more like a small collection of winding side-streets and flea markets. Today, it&amp;#8217;s all shopping malls, hostile pedestrians, and corporate buildings. People have their one or two &amp;#8220;outlets&amp;#8221; that make it easier for them to meet-up with friends and family. There&amp;#8217;s no need for these people to have their &amp;#8220;own thing&amp;#8221;. Someone else has already built it for them. They&amp;#8217;re become fully adjusted to their internet slums.&lt;/p&gt;
-&lt;p&gt;Okay, sorry about the terrible metaphors. But you get my point. &lt;em&gt;Convenience breeds laziness&lt;/em&gt;. &lt;em&gt;Laziness breeds mediocrity&lt;/em&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;whats-a-brain-dump&quot;&gt;What&amp;#8217;s a &amp;#8220;Brain Dump&amp;#8221;?&lt;/h2&gt;
-&lt;p&gt;A brain dump is a better way to look at sharing your own experiences or thoughts on the web. The term &amp;#8220;blog&amp;#8221; has a lot of baggage connected to it, so newcomers are quickly scared away by the concept. Or even worse - they decide to only share themselves on locked-in, walled gardens&lt;sup id=&quot;fnref1&quot;&gt;&lt;a href=&quot;#fn1&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;
-&lt;p&gt;Another problem arises when you finally &lt;em&gt;do&lt;/em&gt; convince someone to start &amp;#8220;blogging&amp;#8221; online; self-doubt.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;&amp;#8220;What could I possibly have to share?&amp;#8221;&lt;/li&gt;
-&lt;li&gt;&amp;#8220;What if everyone &lt;em&gt;hates&lt;/em&gt; what I post?&amp;#8221;&lt;/li&gt;
-&lt;li&gt;&amp;#8220;What if my content sucks?&amp;#8221;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Just dump it. Who cares. It&amp;#8217;s the internet after all, so who are you trying to impress? The point is that your sharing your own experiences that are unique to you as an individual. Posting something that you think is pointless or mundane might be extremely helpful or, at the very least, entertaining for someone else.&lt;/p&gt;
-&lt;p&gt;Write up what you did over the weekend, a new recipe you tried out, review a movie&amp;#47;book or video game you enjoyed, list step-by-step instructions on how you installed a new appliance in your house - anything! Just &lt;em&gt;write&lt;/em&gt; and be part of what made the internet fun, exciting and personal again.&lt;/p&gt;
-&lt;p&gt;But let me reiterate: &lt;strong&gt;stay away from walled gardens!&lt;/strong&gt; Control your own space on the internet. Be the master of your own brain dump! Say &amp;#8220;screw you&amp;#8221; to app algorithms and &lt;em&gt;trending&lt;/em&gt; bullshit. Just be you.&lt;/p&gt;
-&lt;p&gt;Convinced? Awesome. Now let&amp;#8217;s get into setting things up. I&amp;#8217;ll break these down into two separate categories: one for those with limited web&amp;#47;software experience, and one for those wanting a little more control.&lt;/p&gt;
-&lt;h3 id=&quot;no-code-solutions&quot;&gt;No Code Solutions&lt;/h3&gt;
-&lt;p&gt;Before I get into my suggested options in this &amp;#8220;no-code&amp;#8221; category, I would like to mention why WordPress &lt;em&gt;is not&lt;/em&gt; listed here. Personally, I think WordPress gets in the way of users wanting to &amp;#8220;just blog&amp;#8221;. There once was an era where blogging was WP&amp;#8217;s main focus, but that is now a time long forgotten. It tries to do too much. The back-end is a cluttered mess. Initial learning curves for security, plugins and themes is far too great for newbies. Gutenberg - dear God.&lt;/p&gt;
-&lt;p&gt;That&amp;#8217;s not even mentioning hosting costs, installation, backups, etc. My personal take - just steer clear. This option is better suited in the &lt;em&gt;second&lt;/em&gt; category for those with more web experience.&lt;/p&gt;
-&lt;p&gt;With that out of the way, let&amp;#8217;s see my top selections for &amp;#8220;no-code&amp;#8221;:&lt;/p&gt;
-&lt;h4 id=&quot;blot&quot;&gt;Blot&lt;/h4&gt;
-&lt;p&gt;&lt;a href=&quot;https://blot.im/&quot;&gt;Blot&lt;/a&gt; has been around for quite a while. You simply post to a third-party service like Dropbox, Google Drive or a &lt;code&gt;git&lt;/code&gt; repo and Blot takes care of the rest.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;$4&amp;#47;month (includes custom domain use, hosting &amp;#38; support)&lt;/li&gt;
-&lt;li&gt;Easy sign up&lt;/li&gt;
-&lt;li&gt;Multiple themes to choose from&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h4 id=&quot;bear-blog&quot;&gt;Bear Blog&lt;/h4&gt;
-&lt;p&gt;&lt;a href=&quot;https://bearblog.dev/&quot;&gt;Bear Blog&lt;/a&gt; is an excellent platform that focuses on content and not much else.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Free ($25&amp;#47;year for extras)&lt;/li&gt;
-&lt;li&gt;Easy sign up&lt;/li&gt;
-&lt;li&gt;No trackers, no javascript, no ads&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h4 id=&quot;mataroa-blog&quot;&gt;Mataroa Blog&lt;/h4&gt;
-&lt;p&gt;&lt;a href=&quot;https://mataroa.blog/&quot;&gt;Mataroa&lt;/a&gt; follows in the same vein as Bear Blog, a simple blogging platform focused on &lt;em&gt;writing&lt;/em&gt;.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Free (with optional $9&amp;#47;year for premium features)&lt;/li&gt;
-&lt;li&gt;No ads, no tracking&lt;/li&gt;
-&lt;li&gt;Open source&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h4 id=&quot;write.as&quot;&gt;Write.as&lt;/h4&gt;
-&lt;p&gt;&lt;a href=&quot;https://write.as/&quot;&gt;Write.as&lt;/a&gt; is another good option for those looking to just get words down and shared on the internet.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Free with optional paid tiers (custom domains, themes etc.)&lt;/li&gt;
-&lt;li&gt;Option to self host via &lt;a href=&quot;https://writefreely.org/&quot;&gt;Write Freely&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h3 id=&quot;build-your-own&quot;&gt;Build Your Own&lt;/h3&gt;
-&lt;p&gt;If you&amp;#8217;re deep into this section of the post, I think it&amp;#8217;s safe to assume your technical level is fairly &lt;em&gt;decent&lt;/em&gt;. So, I won&amp;#8217;t be into great detail with the options below:&lt;/p&gt;
-&lt;h4 id=&quot;sourcehut-pages&quot;&gt;SourceHut Pages&lt;/h4&gt;
-&lt;p&gt;This very website you&amp;#8217;re reading is built and run off of &lt;a href=&quot;https://srht.site/&quot;&gt;SourceHut Pages&lt;/a&gt;. I highly recommend the service.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;$3+&amp;#47;month (depending on what you &lt;em&gt;choose&lt;/em&gt; to pay)&lt;/li&gt;
-&lt;li&gt;No javascript, no trackers&lt;/li&gt;
-&lt;li&gt;Customizable build settings&lt;/li&gt;
-&lt;li&gt;Support open source software!&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;&lt;strong&gt;Sidenote:&lt;/strong&gt; If you&amp;#8217;re interested in setting up a SSG (such as Jekyll or Hugo) through SourceHut, feel free to &lt;a href=&quot;https://git.sr.ht/~bt/bt.ht&quot;&gt;fork this very website as a starting point&lt;/a&gt;. I also wrote up how to publish&amp;#47;build a Jekyll site on SourceHut in a &lt;a href=&quot;/srht&quot;&gt;separate post&lt;/a&gt; if you wish to see all the nitty-gritty details.&lt;/p&gt;
-&lt;h4 id=&quot;wordpress&quot;&gt;WordPress&lt;/h4&gt;
-&lt;p&gt;As I mentioned above, I find this platform can be a little overkill for a simple &amp;#8220;blog&amp;#8221; (or in this case, a brain dump). I&amp;#8217;m aware that many devs might already be familiar with WP, so it makes sense to include it here.&lt;/p&gt;
+&lt;h3 id=&quot;enjoy-your-newly-secure-site&quot;&gt;Enjoy your newly secure site&lt;/h3&gt;
+&lt;p&gt;That&amp;#8217;s it! Give it a bit of time and soon your website will support &lt;code&gt;https&lt;/code&gt; and best of all it costs you nothing!&lt;/p&gt;
+&lt;p&gt;I suggest checking out the other interesting features Cloudflare offers while your playing with the dashboard as well. They have a lot of impressive options that can really improve the overall performance of your site &amp;#47; web app.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/setting-up-free-ssl"/>
+ <id>https://btxx.org/posts/setting-up-free-ssl</id>
+ <updated>2018-08-07T10:00:00Z</updated>
+ <published>2018-08-07T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Blogging for 7 Years</title>
+ <content type="html">&lt;h1 id=&quot;blogging-for-7-years&quot;&gt;Blogging for 7 Years&lt;/h1&gt;
+&lt;p&gt;2023-06-24&lt;/p&gt;
+&lt;p&gt;My &lt;a href=&quot;/aui&quot;&gt;first public article&lt;/a&gt; was posted on June 28th 2016. That was &lt;em&gt;seven&lt;/em&gt; years ago.&lt;/p&gt;
+&lt;p&gt;In that time, quite a lot has changed in my life both personally and professionally. So, I figured it would be interesting to reflect on these years and document it for my own personal records. My hope is that this is something I could start doing every 5 or 10 years (if I can keep going that long!). This way, my blog also serves as a &amp;#8220;time capsule&amp;#8221; or museum of the past&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;fun-facts&quot;&gt;Fun Facts&lt;/h2&gt;
+&lt;p&gt;&lt;strong&gt;This Blog&lt;/strong&gt;:&lt;/p&gt;
+&lt;p&gt;I originally started blogging on &lt;code&gt;bradleytaunt.com&lt;/code&gt; using WordPress, but since then I have changed both my main domain and blog infrastructure multiple times. At a glance I have used:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Free options (custom domains, premium features will require some form of paid hosting)&lt;/li&gt;
-&lt;li&gt;Room for growth with extensive plugins &amp;#47; themes&lt;/li&gt;
-&lt;li&gt;Huge amount of documentation and resources&lt;/li&gt;
+&lt;li&gt;Jekyll&lt;/li&gt;
+&lt;li&gt;Hugo&lt;/li&gt;
+&lt;li&gt;Blot&lt;/li&gt;
+&lt;li&gt;Static HTML&amp;#47;CSS&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://phpetite.bt.ht&quot;&gt;PHPetite&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://shinobi.bt.ht&quot;&gt;Shinobi&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://pblog.bt.ht&quot;&gt;pblog&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://barf.bt.ht&quot;&gt;barf&lt;/a&gt; &lt;em&gt;Currently using!&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;h4 id=&quot;static-html-and-a-web-host&quot;&gt;Static HTML and a Web Host&lt;/h4&gt;
-&lt;p&gt;Why not, right? Using a service like &lt;a href=&quot;https://www.nearlyfreespeech.net/&quot;&gt;NearlyFreeSpeech&lt;/a&gt; or spinning up a cheap VPS with &lt;a href=&quot;https://www.digitalocean.com/&quot;&gt;DigitalOcean&lt;/a&gt; and then dropping static HTML files on your server is pretty straightforward. You don&amp;#8217;t need any fancy scripts or syncing tools - an FTP client and a text editor is more than enough!&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Personal:&lt;/strong&gt;&lt;/p&gt;
+&lt;p&gt;As with anyone over time, the personal side of my life has seen the biggest &lt;em&gt;updates&lt;/em&gt;:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;$2-5&amp;#47;month (depending on service provider)&lt;/li&gt;
-&lt;li&gt;&amp;#8220;Drag-and-drop&amp;#8221; workflow&lt;/li&gt;
-&lt;li&gt;Easily portable to other hosting services in the future&lt;/li&gt;
+&lt;li&gt;Married the love of my life (after knowing each other for ~14 years!)&lt;/li&gt;
+&lt;li&gt;Moved out into rural Ontario for some peace and quiet&lt;/li&gt;
+&lt;li&gt;Had three wonderful kids with said wife (two boys and a girl)&lt;/li&gt;
+&lt;li&gt;Started noticing grey sprinkles in my stubble (I guess I can officially call myself a &amp;#8220;grey beard&amp;#8221;?)&lt;/li&gt;
&lt;/ul&gt;
-&lt;h4 id=&quot;github-pages&quot;&gt;GitHub Pages&lt;/h4&gt;
-&lt;p&gt;Since GitHub is used by almost every developer across the globe, it makes sense to mention their free website hosting option via &lt;a href=&quot;https://pages.github.com/&quot;&gt;GitHub Pages&lt;/a&gt;. I personally &lt;em&gt;don&amp;#8217;t&lt;/em&gt; advise newcomers to use this platform, but you&amp;#8217;re free to do as you like!&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Professionally:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&amp;#8220;Free&amp;#8221;&lt;/li&gt;
-&lt;li&gt;Fairly limited (no static site plugin support)&lt;/li&gt;
+&lt;li&gt;Pivoted heavily into UX research and design for a handful of years (after working mostly with web front-ends)&lt;/li&gt;
+&lt;li&gt;Recently switched back into a more fullstack development role to challenge myself and learn more&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h2&gt;
-&lt;p&gt;There are many services in both categories above that I did not include. That&amp;#8217;s okay. I didn&amp;#8217;t exclude them because I &lt;em&gt;dislike&lt;/em&gt; them but instead focused on what &lt;em&gt;I believe&lt;/em&gt; to be the easiest solutions for both camps (techies and non-techies).&lt;/p&gt;
-&lt;p&gt;At the end of the day - who cares what you choose. Just choose &lt;em&gt;something&lt;/em&gt;. Stop looking at it as &amp;#8220;blogging&amp;#8221; or trying to &amp;#8220;capture an audience&amp;#8221;. Dump your brain&amp;#8217;s thoughts out into the internet, on your &lt;em&gt;own piece&lt;/em&gt; of the internet, and help make the world wide web as fun as it used to be!&lt;/p&gt;
-&lt;div class=&quot;footnotes&quot;&gt;
+&lt;h2 id=&quot;nothing-special&quot;&gt;Nothing Special&lt;/h2&gt;
+&lt;p&gt;This post isn&amp;#8217;t anything ground-breaking but for me it&amp;#8217;s nice to reflect on the time passed and remember how much can change in such little time. Hopefully I&amp;#8217;ll be right back here in another 7 years and maybe you&amp;#8217;ll still be reading along with me!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/seven-years"/>
+ <id>https://btxx.org/posts/seven-years</id>
+ <updated>2023-06-24T10:00:00Z</updated>
+ <published>2023-06-24T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Sharing The Things We Use</title>
+ <content type="html">&lt;h1 id=&quot;sharing-the-things-we-use&quot;&gt;Sharing The Things We Use&lt;/h1&gt;
+&lt;p&gt;2021-07-24&lt;/p&gt;
+&lt;p&gt;I always love stumbling across personal websites that include some form of a &amp;#8220;uses&amp;#8221; page. A place where the author lists out all the tools they use on a regular basis - whether it be hardware, software or something else entirely. It allows readers to get a slightly more personal peek into the daily work-life of that author and maybe even provides better context for &lt;em&gt;how&lt;/em&gt; they work.&lt;/p&gt;
+&lt;p&gt;Since I realized how much I enjoy reading other people&amp;#8217;s &lt;em&gt;uses&lt;/em&gt; pages, I&amp;#8217;ve decided to finally publish my own! My list of hardware and software is fairly boring and predictable for a designer&amp;#47;developer - but sharing is caring! My hope is that even one personal out in the great-wide web can find something useful (pun intended!) or least inspiring about my personal setup.&lt;/p&gt;
+&lt;p&gt;Fell free to check it out: &lt;a href=&quot;/uses&quot;&gt;The Things I Use&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;PS. I plan to add a desktop picture of my complete setup once I find the time!&lt;/em&gt;&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/sharing-the-things-we-use"/>
+ <id>https://btxx.org/posts/sharing-the-things-we-use</id>
+ <updated>2021-07-24T10:00:00Z</updated>
+ <published>2021-07-24T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>This Site is Now a Shinobi Website</title>
+ <content type="html">&lt;h1 id=&quot;this-site-is-now-a-shinobi-website&quot;&gt;This Site is Now a Shinobi Website&lt;/h1&gt;
+&lt;p&gt;2022-05-13&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Update 2023&lt;/strong&gt;: this website is now built with &lt;a href=&quot;https://barf.bt.ht&quot;&gt;barf&lt;/a&gt;&lt;/p&gt;
&lt;hr/&gt;
-&lt;ol&gt;
-
-&lt;li id=&quot;fn1&quot;&gt;
-&lt;p&gt;Facebook, Twitter, Reddit, Instagram, etc. These should be completely avoided for the sake of both your health and your internet freedom.&amp;#160;&lt;a href=&quot;#fnref1&quot; rev=&quot;footnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
-&lt;/li&gt;
-
-&lt;/ol&gt;
-&lt;/div&gt;</content>
- <link href="https://btxx.org/dump"/>
- <id>https://btxx.org/dump</id>
- <updated>2022-09-10T10:00:00Z</updated>
- <published>2022-09-10T10:00:00Z</published>
- </entry>
- <entry>
- <title>Two Weeks with the DuckDuckGo Browser</title>
- <content type="html">&lt;h1 id=&quot;two-weeks-with-the-duckduckgo-browser&quot;&gt;Two Weeks with the DuckDuckGo Browser&lt;/h1&gt;
-&lt;p&gt;2022-05-17&lt;/p&gt;
-&lt;p&gt;After using the beta apps for the new DuckDuckGo browser for both macOS and iOS, I have returned to Safari.&lt;/p&gt;
-&lt;p&gt;This switch back doesn&amp;#8217;t mean that these browsers are &lt;em&gt;bad&lt;/em&gt; by any means. Both browsers are decently fine for casual users. Unfortunately, they aren&amp;#8217;t ready for prime time &amp;#8220;power&amp;#8221; users. I&amp;#8217;m happy to see another company jump into the browser market (and one that is using WebKit instead of another Chromium clone) but for my day-to-day needs it doesn&amp;#8217;t cut it.&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s break things down:&lt;/p&gt;
-&lt;h2 id=&quot;the-good&quot;&gt;The Good&lt;/h2&gt;
-&lt;ul&gt;
-&lt;li&gt;Clean UI with a mix between Chrome and Safari&lt;/li&gt;
-&lt;li&gt;The &amp;#8220;Leave No Trace&amp;#8221; fire button to purge data, cache and cookies&lt;/li&gt;
-&lt;li&gt;Feels snappy and responsive&lt;/li&gt;
-&lt;li&gt;Based on WebKit NOT Chromium&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;the-not-so-good&quot;&gt;The Not So Good&lt;/h2&gt;
-&lt;ul&gt;
-&lt;li&gt;No sync options between systems (that I could find)&lt;/li&gt;
-&lt;li&gt;No extension support&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Now you might look at this list and notice there are more listed points set under the &lt;code&gt;Good&lt;/code&gt; category. Keep in mind that quantity does not always equal quality. The main negative of not allowing user extensions cannot be overstated. I think that when building a browser in this $CURRENT_YEAR it&amp;#8217;s imperative to allow for total user control. Don&amp;#8217;t wall things off. Don&amp;#8217;t &lt;em&gt;assume&lt;/em&gt; you know best for your users.&lt;/p&gt;
-&lt;p&gt;This is a huge issue since a good majority of friends, family and coworkers I talk with use more elaborate ad-blocking. One of the first things I tested with the DuckDuckGo browser on desktop was to watch a YouTube video. I was immediately slammed with multiple ads - both in video form and as banner pop-ups.&lt;/p&gt;
-&lt;p&gt;Overlooks like this shouldn&amp;#8217;t happen. This is UX 101.&lt;/p&gt;
-&lt;p&gt;Another obvious overlook is history and account syncing across devices. Unless I missed something obvious, I could not figure out how to seamlessly sync content from my macOS browser to my iOS one. Again, this function greatly improves the experience of jumping between desktop and mobile clients. Don&amp;#8217;t make me think![^1]&lt;/p&gt;
+&lt;p&gt;My personal website is now an RSS-focused blog, generated from a collection of plain text files.&lt;/p&gt;
+&lt;p&gt;But before we get into greater details about the switch, let me first introduce the concept of a &amp;#8220;shinobi website&amp;#8221;.&lt;/p&gt;
+&lt;h2 id=&quot;the-shinobi-website-project&quot;&gt;The Shinobi Website Project&lt;/h2&gt;
+&lt;p&gt;Instead of repeating myself in this post, feel free to read up about the project at the official site:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://shinobi.bt.ht&quot;&gt;https:&amp;#47;&amp;#47;shinobi.bt.ht&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;To summarize: by using a simple &lt;code&gt;shell&lt;/code&gt; script I&amp;#8217;m able to render all my plain text files (which is now how I solely write my articles) into a structured RSS 2.0 &lt;code&gt;xml&lt;/code&gt; file. Subscribers can now consume my posts directly in their RSS reader of choice without the need to directly visit the article&amp;#8217;s URL.[^0]&lt;/p&gt;
+&lt;h2 id=&quot;why-the-change&quot;&gt;Why the Change?&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;m a hardcore minimalist at heart and have a tendency to make my own personal projects &lt;em&gt;leaner&lt;/em&gt; all the time. I also have been trying my best to find the most refined writing workflow to keep myself posting consistently (and hopefully keeping the quality high). My first iteration towards this step was switching over to hand-coding everything via HTML &amp;#38; CSS[^1]. That worked well - for a very brief time.&lt;/p&gt;
+&lt;p&gt;After recently launching the Shinobi project, I kept toying with the idea of switching my personal website over to use the same format. There was a heavy internal debate about ditching HTML in favour of plain text. What kind of impact would this have on both my site and audience? Would people be pissed about yet &lt;em&gt;another&lt;/em&gt; radical change?&lt;/p&gt;
+&lt;p&gt;After sleeping on it for a couple nights, I decide to say screw it. This is my personal website and it should ultimately reflect who I am and what I prefer. Dwelling too long on the opinion of others (as much as I respect any of you kind enough to follow along) can lead to decisions that negatively impact ones own well being.&lt;/p&gt;
+&lt;p&gt;So here we are. Blogging in plain text.&lt;/p&gt;
+&lt;h2 id=&quot;avoiding-link-rot&quot;&gt;Avoiding Link-Rot&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve manually added this blog post to my original &lt;code&gt;feed.xml&lt;/code&gt;, in order to help inform those of you following that feed of this change. But this will be the last entry of that feed.&lt;/p&gt;
+&lt;p&gt;If you decide not to re-sub, I completely understand and thank you for your time! Those of you choosing to still follow along: welcome aboard a new adventure!&lt;/p&gt;
+&lt;p&gt;As for the older HTML-based articles, no worries. They will remain on this site under the standard &lt;code&gt;blog&lt;/code&gt; directory so that old links don&amp;#8217;t break or cause conflicts. You can find that directory here:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://tdarb.org/feeds/posts.xml&quot;&gt;https:&amp;#47;&amp;#47;tdarb.org&amp;#47;feeds&amp;#47;posts.xml&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;tutorials-and-demos&quot;&gt;Tutorials and Demos&lt;/h2&gt;
+&lt;p&gt;I will still be writing up detailed tutorials and interactive demos going forward - no need to worry. My plan is to link directly to a collaborative coding site like CodePen, etc. I haven&amp;#8217;t decided on the best option yet (want to keep things as easy for my readers as possible) so only time will tell what my decision will be.&lt;/p&gt;
+&lt;p&gt;Feel free to comment below if you have any suggestions! Preferably one that respects user privacy and advocates for a more open web.&lt;/p&gt;
+&lt;h2 id=&quot;speaking-of-comments&quot;&gt;Speaking of Comments&amp;#8230;&lt;/h2&gt;
+&lt;p&gt;Since the old commenting system[^2] required me to manually add each comment individually, I assumed I would just do the same here. Then I got a hack-y idea. What if I used a mailing list linked through this website&amp;#8217;s sourcehut project?&lt;/p&gt;
+&lt;p&gt;It might not be the most user friendly or sustainable but I think it could be an interesting experiment at the very least!&lt;/p&gt;
+&lt;p&gt;Now each new article will have a link (which I will generate manually) that users can email directly to in order to share their comments. I have no idea how spam will work with this concept. This whole idea could blow up in my face. Only time will tell.&lt;/p&gt;
&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
-&lt;p&gt;I appreciate the effort from the DuckDuckGo team. I&amp;#8217;m certain this project will get better over time, as they are listening closely to user feedback during the beta. With future improvements I could see myself giving things a second chance.&lt;/p&gt;
-&lt;p&gt;As it stands now, this feels like something that should be an extension[^2], not a standalone browser.&lt;/p&gt;
+&lt;p&gt;This workflow is clean and simple. It allows me to open a blank text file and instantly start writing. Once I&amp;#8217;m happy with it, I run a simple shell command to update the RSS feed and sync it with my web server. Local testing is dead simple too since everything is set as &lt;code&gt;.txt&lt;/code&gt;.&lt;/p&gt;
+&lt;p&gt;Some may like the concept of reading my new articles in their RSS reader, others might hate it. I&amp;#8217;ve learned over the years that you can&amp;#8217;t please everyone.&lt;/p&gt;
+&lt;p&gt;Thanks for taking the time to read my jumbled thoughts.&lt;/p&gt;
&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;&lt;a href=&quot;https://sensible.com/dont-make-me-think/&quot;&gt;https:&amp;#47;&amp;#47;sensible.com&amp;#47;dont-make-me-think&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Technically this already exists as a Safari extension &lt;a href=&quot;https://apps.apple.com/us/app/duckduckgo-privacy-essentials/id1482920575?mt=12&quot;&gt;here&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Users can &lt;em&gt;of course&lt;/em&gt; still visit the individual article &lt;code&gt;.txt&lt;/code&gt; files in their browser, if they so wish.&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://tdarb.org/blog/my-static-blog-publishing-setup.html&quot;&gt;https:&amp;#47;&amp;#47;tdarb.org&amp;#47;blog&amp;#47;my-static-blog-publishing-setup.html&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://tdarb.org/blog/poormans-comment-system.html&quot;&gt;https:&amp;#47;&amp;#47;tdarb.org&amp;#47;blog&amp;#47;poormans-comment-system.html&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</content>
- <link href="https://btxx.org/duckduckno"/>
- <id>https://btxx.org/duckduckno</id>
- <updated>2022-05-17T10:00:00Z</updated>
- <published>2022-05-17T10:00:00Z</published>
- </entry>
- <entry>
- <title>Designers Need Thicker Skin</title>
- <content type="html">&lt;h1 id=&quot;designers-need-thicker-skin&quot;&gt;Designers Need Thicker Skin&lt;/h1&gt;
-&lt;p&gt;2017-07-10&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m not normally one to comment or even really care about &amp;#8220;drama&amp;#8221; within our design industry. Opinions are just that and should just be consumed at face value. But this week I was moderately annoyed with a subset of designers in design-land.&lt;/p&gt;
-&lt;h3 id=&quot;critique-the-critics&quot;&gt;Critique the critics&lt;/h3&gt;
-&lt;p&gt;Designer&amp;#47;design critic Eli Schiff tweeted his thoughts about the newly released promo video from Framer showcasing their new gradient feature. See the initial tweet below:&lt;/p&gt;
-&lt;p&gt;Let me begin by saying my views on this comment: I don&amp;#8217;t care. I honestly don’t feel strongly one way or the other about them making a video promo for gradients. Could it have just been a simple text tweet? Sure. Does it really matter that they decided to make a video for it? Not at all.&lt;/p&gt;
-&lt;p&gt;But this isn’t the problem.&lt;/p&gt;
-&lt;p&gt;Other designers took to Twitter and started attacking Eli, not even as a design critic but as a person. This was ugly to see. What happened to civil discussion and giving the other side a chance to say their piece? Calling to &amp;#8220;ban him&amp;#8221; from sites such as DesignerNews or suggesting to unfollow him on Twitter is unbelievably childish - in an industry that we tote as &amp;#8220;accepting of everyone&amp;#8221; no less.&lt;/p&gt;
-&lt;p&gt;That&amp;#8217;s all I&amp;#8217;m going to say because I don’t want to spend too much time on this foolishness, but honestly designers - get some thicker skin.&lt;/p&gt;
-&lt;p&gt;Yeesh.&lt;/p&gt;</content>
- <link href="https://btxx.org/dts"/>
- <id>https://btxx.org/dts</id>
- <updated>2017-07-10T10:00:00Z</updated>
- <published>2017-07-10T10:00:00Z</published>
- </entry>
- <entry>
- <title>Disabling Comments in WordPress</title>
- <content type="html">&lt;h1 id=&quot;disabling-comments-in-wordpress&quot;&gt;Disabling Comments in WordPress&lt;/h1&gt;
-&lt;p&gt;2020-12-28&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;I seem to come across a decent amount of clients&lt;/em&gt; and users online that have a difficult time knowing how to disable comments for both future &lt;em&gt;and&lt;/em&gt; previous blog posts. It isn’t the easiest for both use cases, so let’s break it down.&lt;/p&gt;
-&lt;h2 id=&quot;back-to-the-future&quot;&gt;Back to the future&lt;/h2&gt;
-&lt;p&gt;Disabling comments on all &lt;em&gt;future&lt;/em&gt; blog posts is fairly straightforward:&lt;/p&gt;
-&lt;h2 id=&quot;but-what-about-old-posts&quot;&gt;But what about old posts?&lt;/h2&gt;
-&lt;p&gt;Have no fear - “Bulk Actions” are here to save the day! In order to retroactively disable comments on older posts, do the following:&lt;/p&gt;
-&lt;p&gt;I hope this article saves others any headaches in the future. WordPress itself could certainly make this more streamlined, but for now what we have works. Happy (not) commenting!&lt;/p&gt;</content>
- <link href="https://btxx.org/disabling-comments-in-wordpress"/>
- <id>https://btxx.org/disabling-comments-in-wordpress</id>
- <updated>2020-12-28T10:00:00Z</updated>
- <published>2020-12-28T10:00:00Z</published>
- </entry>
- <entry>
- <title>Unsolicited Design Review - Dropbox</title>
- <content type="html">&lt;h1 id=&quot;unsolicited-design-review---dropbox&quot;&gt;Unsolicited Design Review - Dropbox&lt;/h1&gt;
-&lt;p&gt;2017-10-10&lt;/p&gt;
-&lt;p&gt;Earlier last week the design team at Dropbox unveiled their new branding &amp;#47; design system for the company as a whole. If you haven&amp;#8217;t seen the updated design yet, you can do so here: &lt;a href=&quot;https://dropbox.design/&quot;&gt;dropbox.design&lt;/a&gt; (Take your time, I can wait).&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/dropbox-logo_djnecj_c_scale,w_1400.webp&quot; alt=&quot;Dropbox Logo&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;I won&amp;#8217;t mince words when I say I believe this is a huge step backwards for their brand. Not only is it uninspired and broken, but it also shows how our industry is plagued with a need to redesign things just for the sake of redesigning them.&lt;/p&gt;
-&lt;p&gt;So without anymore fluff - let&amp;#8217;s get into it. Please leave your bias at the door.&lt;/p&gt;
-&lt;h2 id=&quot;purpose&quot;&gt;Purpose&lt;/h2&gt;
-&lt;p&gt;It&amp;#8217;s good to try and understand the motive or problem that a company is trying to solve when redesigning something as fundamental as core branding, but this is where the first red flag appears for Dropbox. There is no real problem to solve.&lt;/p&gt;
-&lt;p&gt;On the marketing site promoting the new design system, the Dropbox team doesn&amp;#8217;t mention a single problem that this branding redesign is meant to fix. Were users confused by the previous system? Is there data showing large drop-off and a lack of conversion directly connected with the design system itself? All they state is they needed a change with zero reasoning as to why.&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;We realized our brand needs to change&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;As I stated at the beginning of this review - it&amp;#8217;s a redesign for the sake of a redesign. Sometimes this can be acceptable if done correctly, but this is not the case for Dropbox.&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;Our new brand system shows that Dropbox isn&amp;#8217;t just a place to store your files - &lt;strong&gt;it&amp;#8217;s a living workspace that brings teams and ideas together&lt;/strong&gt;&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;Let&amp;#8217;s stop right there. &amp;#8220;A place to store your files&amp;#8221; is literally 99% of what Dropbox does. I get that they want to be involved in more than that but Dropbox &lt;em&gt;is&lt;/em&gt; a cloud storage service. Why is there a desperate need to shift away from that?&lt;/p&gt;
-&lt;p&gt;There isn&amp;#8217;t much else to speak of in terms of &amp;#8216;purpose&amp;#8217; regarding the redesign since there doesn&amp;#8217;t seem to be one. Let&amp;#8217;s move on.&lt;/p&gt;
-&lt;h2 id=&quot;design-principles&quot;&gt;Design Principles&lt;/h2&gt;
-&lt;p&gt;I hate to be that guy who bases design on a written list of principles, but when it works it works. Dieter Rams states it best:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Good design is innovative&lt;/li&gt;
-&lt;li&gt;Good design makes a product useful&lt;/li&gt;
-&lt;li&gt;Good design is aesthetic&lt;/li&gt;
-&lt;li&gt;Good design makes a product understandable&lt;/li&gt;
-&lt;li&gt;Good design is unobtrusive&lt;/li&gt;
-&lt;li&gt;Good design is honest&lt;/li&gt;
-&lt;li&gt;Good design is long-lasting&lt;/li&gt;
-&lt;li&gt;Good design is thorough down to the last detail&lt;/li&gt;
-&lt;li&gt;Good design is environmentally friendly&lt;/li&gt;
-&lt;li&gt;Good design is as little design as possible&lt;/li&gt;
-&lt;/ol&gt;
-&lt;hr/&gt;
-&lt;ol&gt;
-&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is innovative&lt;/strong&gt;. There is zero innovation in this re-brand, it&amp;#8217;s simply following the trend of quirky &amp;#47; brutal &amp;#47; modern flat elitism that is currently sweeping the industry. It&amp;#8217;s a fad and will be out-of-date rather quickly.&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design makes a product useful&lt;/strong&gt;. Looking through their reasoning and explanations I can see no boost or improvement to the usefulness of the product. Not to repeat myself, but without any supporting data as to &lt;em&gt;why&lt;/em&gt; this change was made we have nothing to base it off of.&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is aesthetic&lt;/strong&gt;. See #1.&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design makes a product understandable&lt;/strong&gt;. Were customers not able to understand the Dropbox brand prior to this update? Were users misinformed about what the product could do for them? The previous design did a wonderful job of getting out of the way and showing the user exactly what they needed &amp;#47; wanted.&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is unobtrusive&lt;/strong&gt;. Talk about going backwards on this one. Original system was clean, readable and friendly to new users. Their current system uses an illegible typeface, colors with terrible contrast and a lack of support for the visually impaired, crude illustrations that give no explanation as to what they represent (more on that later), and a lack of browser support &amp;#47; performance issues.&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is honest&lt;/strong&gt;. Dropbox still maintains this principle. They don&amp;#8217;t over-promise or outright lie about who and what they are as a product.&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is long-lasting&lt;/strong&gt;. See #1 &amp;#38; #3 again.&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is thorough down to the last detail&lt;/strong&gt;. The fact that even their marketing site crashes latest Firefox, lags on Safari for iOS and stutters in Chrome on desktop shows the lack of performance testing that was done. Not to mention the complete disregard for those with visual impairments with their color palette, typeface and contrast selections.&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is environmentally friendly&lt;/strong&gt;. Doesn&amp;#8217;t really apply here.&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is as little design as possible&lt;/strong&gt;. This new brand system is incredibly over-designed.&lt;/p&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;blockquote&gt;
-&lt;p&gt;Our users&amp;#8230;tell us they feel overwhelmed and distracted during the workday&amp;#8230;we want to change this, by building products and a brand that help people focus on meaningful work, instead of busywork.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;Then maybe your design system should get out of the way. To me, this seems like you want your design to take center-stage over the user&amp;#8217;s content.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Remember: a great design system should go completely unnoticed.&lt;/strong&gt;&lt;/p&gt;
-&lt;h2 id=&quot;accessibility&quot;&gt;Accessibility&lt;/h2&gt;
-&lt;p&gt;Any persons with visual impairments need not apply. This design system is not built for you - seek shelter elsewhere.&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;With 259 fonts, our new typeface Sharp Grotesk gives us lots of versatility, allowing us to &amp;#8220;speak&amp;#8221; in a variety of tones.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/dropbox-fonts_vthivw_c_scale,w_1122.webp&quot; alt=&quot;DropBox fonts&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;Not a single one of these typeface styles is initially readable&amp;#8230;&lt;/p&gt;
-&lt;p&gt;The typeface they have chosen looks terrible at any view-port size and readability takes a backseat. I can&amp;#8217;t help but feel this falls into the &amp;#8220;let&amp;#8217;s be trendy&amp;#8221; category and ends up sacrificing almost all good usability practices for gimmicky type.&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;Our users run the gamut from business professionals to scientists and creative types. Most of these folks tell us they feel overwhelmed and distracted during the workday, and that this is one of the biggest barriers to creating work they’re proud of.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;Irony at it&amp;#8217;s finest. &amp;#8220;Our users tell us that they hate being distracted and overwhelmed, so we&amp;#8217;ve decided to use headache inducing color palettes, crude illustrations, a barely legible typeface, and some of the most visually loud photography throughout our system&amp;#8221;. I hate coming off as mean-spirited - but this is some elaborate joke, right?&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/dropbox-logos-color_fcogaj_c_scale,w_1400.webp&quot; alt=&quot;DropBox color logos&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;After running it through a color contrast accessibility checker:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/dropbox-contrast_plkfxb_c_scale,w_1400.webp&quot; alt=&quot;DropBox contrast&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;Multiple accessibility failures&amp;#8230;&lt;/p&gt;
-&lt;p&gt;Next we have the child-like &amp;#8216;scribble&amp;#8217; illustrations. Now don&amp;#8217;t get me wrong, I love seeing different illustration styles and I actively use &amp;#8216;sketch &amp;#47; scribble&amp;#8217; artwork myself, but I don&amp;#8217;t believe this is the best fit for a brand like Dropbox. These cartoon visuals conflict with the business enterprise service Dropbox should be trying to convey.&lt;/p&gt;
-&lt;p&gt;Another issue with these illustrations is their usage. Look at the image below and ask yourself if you would correlate it with an error page if no accompanying text was present.&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/dropbox-404_bovayg_c_scale,w_758.webp&quot; alt=&quot;DropBox 404 page design&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;What does this have to do with a 404 error page?&lt;/p&gt;
-&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
-&lt;p&gt;I could go into even deeper analysis (including the oversimplification of their box logo, etc.) but I believe I&amp;#8217;ve spent enough time defending my initial reaction as well as my thoughts after a week of soak time. In my opinion this redesign was completely unnecessary. I think this was a problem of too many designers with too much time without a proper project to channel all that talent.&lt;/p&gt;
-&lt;p&gt;Unfortunately because they decided to just follow the current trend and design with a lack of purpose, I see Dropbox launching another redesign within the next year once this current design fad dies. My only hope is that the next brand system sets out to solve an actual problem, instead of just trying to be trendy.&lt;/p&gt;</content>
- <link href="https://btxx.org/design-review-dropbox"/>
- <id>https://btxx.org/design-review-dropbox</id>
- <updated>2017-10-10T10:00:00Z</updated>
- <published>2017-10-10T10:00:00Z</published>
- </entry>
- <entry>
- <title>Modern Improvements for Default Browser Styles</title>
- <content type="html">&lt;h1 id=&quot;modern-improvements-for-default-browser-styles&quot;&gt;Modern Improvements for Default Browser Styles&lt;/h1&gt;
-&lt;p&gt;2021-11-09&lt;/p&gt;
-&lt;p&gt;This website &lt;em&gt;almost&lt;/em&gt; exclusively uses the browser&amp;#8217;s (whichever one that might be) default styling to render it&amp;#8217;s HTML. I firmly believe, and have &lt;a href=&quot;/css-js-mistake/&quot;&gt;stated in a previous post&lt;/a&gt;, that the default HTML styling across all browsers is a thing of beauty. &amp;#8220;Consistent and boring&amp;#8221; is how I tend to refer to default browser styles - and I mean that in a &lt;em&gt;good way&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;But that doesn&amp;#8217;t mean some minor, modern improvements couldn&amp;#8217;t be made&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;boosting-margins-and-increasing-font-size&quot;&gt;Boosting Margins and Increasing Font Size&lt;/h2&gt;
-&lt;p&gt;A little extra breathing room for a website&amp;#8217;s content never hurts. Browser defaults set the inner content too close to the main window borders, creating mild eye strain to focus on the far edges of the screen when reading. Pair this with a typeface set too small and you&amp;#8217;ve got a recipe for disaster (in terms of user experience and accessibility). Luckily for us, adding two basic CSS properties fixes all of our readability woes. All that is required is a simple boost to the existing &lt;code&gt;margin&lt;/code&gt; property set on the &lt;code&gt;body&lt;/code&gt; element (I personally lean towards a very specific &lt;code&gt;1.5em&lt;/code&gt;) and overriding the default &lt;code&gt;font-size&lt;/code&gt; to &lt;code&gt;18px&lt;/code&gt;[^1]:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;body {
- font-size:18px;
- margin:1.5em;
-}
+ <link href="https://btxx.org/posts/shinobi-website"/>
+ <id>https://btxx.org/posts/shinobi-website</id>
+ <updated>2022-05-13T10:00:00Z</updated>
+ <published>2022-05-13T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Shiny, Animated CSS Buttons</title>
+ <content type="html">&lt;h1 id=&quot;shiny-animated-css-buttons&quot;&gt;Shiny, Animated CSS Buttons&lt;/h1&gt;
+&lt;p&gt;2021-04-27&lt;/p&gt;
+&lt;p&gt;Everyone can appreciate fancy, animated buttons - but often times they come with a performance cost: &lt;em&gt;JavaScript&lt;/em&gt;. Luckily for us, we can create our very own shiny, animated buttons with pure CSS.&lt;/p&gt;
+&lt;h2 id=&quot;the-demo&quot;&gt;The Demo&lt;/h2&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/shiny-buttons.png&quot; alt=&quot;Four buttons that shine when hovered&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/oNBQevj&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;p&gt;Nothing fancy going on here, just a set of &lt;code&gt;ahref&lt;/code&gt; elements with specific &lt;code&gt;button&lt;/code&gt; classes added:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;a href=&quot;#&quot; class=&quot;button green&quot;&amp;#62;&amp;#60;span&amp;#62;Green Button&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+&amp;#60;a href=&quot;#&quot; class=&quot;button blue&quot;&amp;#62;&amp;#60;span&amp;#62;Blue Button&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+&amp;#60;a href=&quot;#&quot; class=&quot;button orange&quot;&amp;#62;&amp;#60;span&amp;#62;Orange Button&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+&amp;#60;a href=&quot;#&quot; class=&quot;button purple&quot;&amp;#62;&amp;#60;span&amp;#62;Purple Button&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;There is one &lt;em&gt;small&lt;/em&gt; caveat with setting the &lt;code&gt;font-size&lt;/code&gt; across the whole &lt;code&gt;body&lt;/code&gt; element: code elements set in &lt;code&gt;monospace&lt;/code&gt;. They will stand out larger than the other fonts found in the document (due to variations in different typeface heights, spacing etc.) so we will need to target these elements specifically:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;code {
- font-size:14px;
- &amp;#47;* Word wrap is optional if you plan to have long inline code snippets *&amp;#47;
- word-wrap:break-word;
+&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
+&lt;p&gt;First we set the default base styling for all the buttons. We also place the inner text into &lt;code&gt;span&lt;/code&gt; elements (I will explain why in a little bit):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.button {
+ background: white;
+ border: 1px solid #a5b1c2;
+ border-radius: 6px;
+ box-shadow: 0 4px 8px rgba(0,0,0,0.1);
+ color: #111111;
+ display: inline-block;
+ margin: 1rem auto;
+ min-width: 180px;
+ overflow: hidden;
+ padding: 15px 30px;
+ position: relative;
+ text-align: center;
+ text-decoration: none;
+ transition: .3s ease-in-out all;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;code-pre-tags&quot;&gt;Code &amp;#38; Pre Tags&lt;/h2&gt;
-&lt;p&gt;Since we&amp;#8217;ve mentioned &lt;code&gt;code&lt;/code&gt; elements, let&amp;#8217;s fix those as well. The existing styling for inline code snippets and larger pre-formatted text sections leave a lot to be desired. They don&amp;#8217;t provide any means to wrap their inner content or make use of &lt;code&gt;overflow&lt;/code&gt; properties to avoid vertically scrolling on smaller device screens. Sharing code examples becomes quite a pain when your webpage&amp;#8217;s flow and layout is broken just by including them. Browsers could fix this easily enough by defaulting to:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;pre {
- overflow:auto;
+.button span {
+ position: relative;
+ z-index: 2;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;basic-dark-mode-support&quot;&gt;Basic Dark Mode Support&lt;/h2&gt;
-&lt;p&gt;Barebones styling in current web browsers have no sane defaults[^2] for system-level dark mode. What a huge letdown. This is where the most &amp;#8220;drastic&amp;#8221; changes will be implemented with our browser default updates. We will need the browser to change the main &lt;code&gt;background-color&lt;/code&gt;, along with resetting both the text and anchor link &lt;code&gt;color&lt;/code&gt; for improved accessibility. Browser defaults for anchor link color in &amp;#8220;light mode&amp;#8221; are blue&amp;#47;purple - so I&amp;#8217;ve opted towards using gold, orange and orangered in dark mode respectively:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Dark mode *&amp;#47;
-@media (prefers-color-scheme: dark) {
- @media not print {
- html {background:#0e0e0e;color:#e1e1e1; }
- a {color: gold;}
- a:visited {color: orange;}
- a:hover,a:focus{color: orangered;}
- }
+&lt;p&gt;Now we need to create our &lt;em&gt;shiny&lt;/em&gt; element that will pass across the button on &lt;code&gt;hover&lt;/code&gt; or &lt;code&gt;focus&lt;/code&gt;. For this object we will use the &lt;code&gt;before&lt;/code&gt; pseudo element:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.button:before {
+ background: linear-gradient(transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
+ content:&amp;#39;&amp;#39;;
+ height: 200%;
+ position: absolute;
+ right: calc(100% + 20px);
+ top: -55%;
+ transform: rotate(-70deg);
+ transition: .6s ease-in-out right;
+ width: 80px;
+ z-index: 0;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That is probably the most streamlined dark mode on the web&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;the-reading-length-debate&quot;&gt;The &amp;#8220;Reading Length&amp;#8221; Debate&lt;/h2&gt;
-&lt;p&gt;Proper reading length tends to be quite the point of contention on the web. Hell, even I&amp;#8217;ve &lt;a href=&quot;/character-unit/&quot;&gt;written about it quite a bit&lt;/a&gt; in the past (and many of my side projects follow that standard). The main problem I have with this is lack of &lt;em&gt;user control&lt;/em&gt;. I don&amp;#8217;t think the browser (or designers for that matter) should determine the best reading length for my own personal reading preferences. UX testing and group feedback has (somewhat) agreed upon 66-75 characters per line to be the most optimal reading experience. That is good to know. I &lt;em&gt;still&lt;/em&gt; believe it should come down to user preference.&lt;/p&gt;
-&lt;p&gt;Do you want to know an incredible feature built into browsers? &lt;em&gt;Window resizing&lt;/em&gt;. Abandon the idea that you &amp;#8220;know better&amp;#8221; than your users and give them the power to adjust as they see fit. The web was meant to be personal and flexible.&lt;/p&gt;
-&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
-&lt;p&gt;There isn&amp;#8217;t much else to say, really. I think these tiny tweaks would greatly improve the default browser experience and maybe even convince others to just &lt;em&gt;use&lt;/em&gt; these defaults instead of falling down the CSS rabbit hole (as fun as that might be sometimes). For easier convenience, I&amp;#8217;ll leave the full set of CSS changes below:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;body {
- font-size:18px;
- margin:1.5em;
-}
-code {
- font-size:14px;
-}
-pre {
- overflow:auto;
+&lt;p&gt;Next, we tell the &lt;code&gt;before&lt;/code&gt; element to swipe across the main &lt;code&gt;.button&lt;/code&gt; parent element when the user hovers or focuses on it. Remember placing our inner content into a &lt;code&gt;span&lt;/code&gt; element? That insures that our shiny&amp;#47;swipe element doesn&amp;#8217;t position itself &lt;em&gt;over&lt;/em&gt; the text, but instead flows under it:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.button:hover:before {
+ right: -100%;
}
-@media (prefers-color-scheme: dark) {
- @media not print {
- html {background:#0e0e0e;color:#e1e1e1; }
- a {color: gold;}
- a:visited {color: orange;}
- a:hover,a:focus{color: orangered;}
- }
+&amp;#47;* Extra visual styling for buttons on hover - optional *&amp;#47;
+.button:hover, button:focus {
+ box-shadow: 0 8px 12px rgba(0,0,0,0.1), inset 0 10px 30px rgba(255,255,255,0.3), inset 0 2px 2px rgba(255,255,255,0.2);
+ color: white;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;p&gt;All that&amp;#8217;s left is adding some visual flare to each individual button - in this case background-color and border-color:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.button.green:hover, button.green:focus { background: #20bf6b; border-color: #20bf6b; }
+.button.blue:hover, button.blue:focus { background: #0984e3; border-color: #0984e3; }
+.button.orange:hover, button.orange:focus { background: #ff793f; border-color: #ff793f; }
+.button.purple:hover, button.purple:focus { background: #6c5ce7; border-color: #6c5ce7; }
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;browser-support&quot;&gt;Browser Support&lt;/h2&gt;
+&lt;p&gt;These buttons work across all browsers flawlessly. See the details &lt;a href=&quot;https://caniuse.com/css-gencontent&quot;&gt;on the caniuse report itself&lt;/a&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;the-live-codepen&quot;&gt;The Live CodePen&lt;/h2&gt;
+&lt;p&gt;You can find the live demo embedded at the top of this post, or &lt;a href=&quot;https://codepen.io/bradleytaunt/pen/oNBQevj&quot;&gt;directly on CodePen here&lt;/a&gt;.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/shiny-css-buttons"/>
+ <id>https://btxx.org/posts/shiny-css-buttons</id>
+ <updated>2021-04-27T10:00:00Z</updated>
+ <published>2021-04-27T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Simple Accessibility</title>
+ <content type="html">&lt;h1 id=&quot;simple-accessibility&quot;&gt;Simple Accessibility&lt;/h1&gt;
+&lt;p&gt;2018-09-07&lt;/p&gt;
+&lt;p&gt;Implementing proper accessibility practices can seem a little daunting at first, but there are a few basic standards you can introduce into your project work-flow that are fairly straightforward:&lt;/p&gt;
+&lt;h2 id=&quot;basic-design&quot;&gt;Basic design&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;&lt;code&gt;18px&lt;/code&gt; seems to be the perfect sweet spot between &amp;#8220;almost too large, yet not small enough to strain my eyes&amp;#8221;&lt;/li&gt;
-&lt;li&gt;At the time of this article&amp;#8217;s publish date&lt;/li&gt;
-&lt;/ol&gt;</content>
- <link href="https://btxx.org/default-html-style-updates"/>
- <id>https://btxx.org/default-html-style-updates</id>
- <updated>2021-11-09T10:00:00Z</updated>
- <published>2021-11-09T10:00:00Z</published>
- </entry>
- <entry>
- <title>Very Basic Form Styling</title>
- <content type="html">&lt;h1 id=&quot;very-basic-form-styling&quot;&gt;Very Basic Form Styling&lt;/h1&gt;
-&lt;p&gt;2019-11-13&lt;/p&gt;
-&lt;p&gt;Web forms can be great - I&amp;#8217;m borderline obsessed with them. I love tinkering with pre-existing logins &amp;#47; sign up pages and I&amp;#8217;ve also open sourced a minimal CSS form-styling plugin: &lt;a href=&quot;https://normform.netlify.com/&quot;&gt;Normform&lt;/a&gt;. While simple CSS plugins like these can be helpful, I often feel like we are over-engineering our web forms. I&amp;#8217;m certainly guilty of it.&lt;/p&gt;
-&lt;p&gt;That&amp;#8217;s not to say developers should just use default browser styling for their forms and call it a day - that is far from ideal. Just pull-back on adding so much styling garbage to the forms themselves.&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s check out an embedded demo below to see what some bare-bones form styling could look like:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/oNwzvMa&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;This form isn&amp;#8217;t going to win any design awards or blow anyone away with its creativity. That&amp;#8217;s okay - because it gets the job done. Users understand it&amp;#8217;s a form and items are broken down into digestible chunks. Mission accomplished, right?&lt;/p&gt;
-&lt;h2 id=&quot;breaking-the-form-down&quot;&gt;Breaking the form down&lt;/h2&gt;
-&lt;p&gt;Let&amp;#8217;s take a look at the HTML of the entire form:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;form action=&quot;&quot;&amp;#62;
- &amp;#60;fieldset&amp;#62;
- &amp;#60;legend&amp;#62;Personal Details&amp;#60;&amp;#47;legend&amp;#62;
- &amp;#60;label for=&quot;username&quot;&amp;#62;Desired Username:&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;input type=&quot;text&quot; id=&quot;username&quot;&amp;#62;
- &amp;#60;label for=&quot;name&quot;&amp;#62;Full Name:&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;input type=&quot;text&quot; id=&quot;name&quot;&amp;#62;
- &amp;#60;label for=&quot;email&quot;&amp;#62;Email Address:&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;input type=&quot;email&quot; id=&quot;email&quot;&amp;#62;
- &amp;#60;label for=&quot;date&quot;&amp;#62;Date of Birth:&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;input type=&quot;date&quot; id=&quot;date&quot;&amp;#62;
- &amp;#60;&amp;#47;fieldset&amp;#62;
- &amp;#60;br&amp;#62;
- &amp;#60;fieldset&amp;#62;
- &amp;#60;legend&amp;#62;Contact Details&amp;#60;&amp;#47;legend&amp;#62;
- &amp;#60;label for=&quot;address&quot;&amp;#62;Home Address:&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;input type=&quot;text&quot; id=&quot;address&quot;&amp;#62;
- &amp;#60;label for=&quot;postal&quot;&amp;#62;Postal Code:&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;input type=&quot;text&quot; id=&quot;postal&quot;&amp;#62;
- &amp;#60;label for=&quot;phone&quot;&amp;#62;Phone Number:&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;input type=&quot;tel&quot; id=&quot;phone&quot;&amp;#62;
- &amp;#60;&amp;#47;fieldset&amp;#62;
- &amp;#60;br&amp;#62;
- &amp;#60;fieldset&amp;#62;
- &amp;#60;legend&amp;#62;Select an Option&amp;#60;&amp;#47;legend&amp;#62;
- &amp;#60;label for=&quot;radio-1&quot;&amp;#62;
- &amp;#60;input type=&quot;radio&quot; id=&quot;radio-1&quot; name=&quot;radio-choice&quot;&amp;#62;
- The option is pretty nice
- &amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;label for=&quot;radio-2&quot;&amp;#62;
- &amp;#60;input type=&quot;radio&quot; id=&quot;radio-2&quot; name=&quot;radio-choice&quot;&amp;#62;
- This option is a little bit better
- &amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;label for=&quot;radio-3&quot;&amp;#62;
- &amp;#60;input type=&quot;radio&quot; id=&quot;radio-3&quot; name=&quot;radio-choice&quot;&amp;#62;
- This option is the best
- &amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;&amp;#47;fieldset&amp;#62;
- &amp;#60;br&amp;#62;
- &amp;#60;fieldset&amp;#62;
- &amp;#60;legend&amp;#62;Notifications&amp;#60;&amp;#47;legend&amp;#62;
- &amp;#60;label for=&quot;checkbox-1&quot;&amp;#62;
- &amp;#60;input type=&quot;checkbox&quot; id=&quot;checkbox-1&quot;&amp;#62;
- I would like to receive email notifications
- &amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;label for=&quot;checkbox-2&quot;&amp;#62;
- &amp;#60;input type=&quot;checkbox&quot; id=&quot;checkbox-2&quot;&amp;#62;
- I would like to subscribe to the weekly newsletter
- &amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;&amp;#47;fieldset&amp;#62;
- &amp;#60;br&amp;#62;
- &amp;#60;input type=&quot;reset&quot; value=&quot;Reset&quot;&amp;#62;
- &amp;#60;input type=&quot;submit&quot; value=&quot;Submit&quot;&amp;#62;
-&amp;#60;&amp;#47;form&amp;#62;
+&lt;li&gt;Test that your project has the proper contrast color settings between type, backgrounds, icons etc.&lt;/li&gt;
+&lt;li&gt;Only use &amp;#8220;fancy&amp;#8221; grid-ordering for minor layout design - avoid rearranging important content via CSS&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;content&quot;&gt;Content&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;Use proper HTML structures (aside, header, main, footer elements as needed)&lt;/li&gt;
+&lt;li&gt;Make use of the &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-label_attribute&quot;&gt;aria-label attribute&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Ensure your website&amp;#47;app can be navigated completely (and properly) with only a keyboard&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;images&quot;&gt;Images&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;Avoid using CSS backgrounds for content images (should only be used for patterns, layout design etc.)&lt;/li&gt;
+&lt;li&gt;Ensure proper &lt;code&gt;alt&lt;/code&gt; attributes are provided on all images&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;It isn&amp;#8217;t much - but follow these basics and you&amp;#8217;ll be one step closer to providing better accessibility to your users.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/simple-accessibility"/>
+ <id>https://btxx.org/posts/simple-accessibility</id>
+ <updated>2018-09-07T10:00:00Z</updated>
+ <published>2018-09-07T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Simple Does Not Mean Ugly</title>
+ <content type="html">&lt;h1 id=&quot;simple-does-not-mean-ugly&quot;&gt;Simple Does Not Mean Ugly&lt;/h1&gt;
+&lt;p&gt;2019-03-26&lt;/p&gt;
+&lt;p&gt;I see new blog posts popping up now and again advocating for designers to keep their products as simple as possible - and I couldn&amp;#8217;t agree more.&lt;/p&gt;
+&lt;p&gt;A lot of designers tend to think they need to reinvent the wheel when it comes to UI concepts that are standard defaults and expected by most users. Not only does this add extra work for your design and development cycles, but also increases the potential of frustration for your users when they are using your product.&lt;/p&gt;
+&lt;p&gt;Your job as a designer is to focus on the user experience journey and understand what those users &lt;em&gt;expect&lt;/em&gt; to happen - not what &lt;em&gt;you want&lt;/em&gt; to happen. This is a very delicate balance of design “give and take”, hence why simple designs always seem to work best.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;But simple does not mean “ugly”&lt;/strong&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;ugly-simple&quot;&gt;Ugly Simple&lt;/h2&gt;
+&lt;p&gt;Anyone who has read some of my opinion pieces on here in regards to UI know that I have a profound distaste for the overused “flat design” trend. Many designers consider this trend a clean and “simple” approach to most UI conventions - which is complete nonsense to most professionals in the industry (at least those not drinking the kool-aid).&lt;/p&gt;
+&lt;p&gt;Using the term “simple” in the context of UI is currently quite damaging to modern application and product development. Designers take these definitions too literally, leading to stripped down interfaces with little to no usability for their end-users.&lt;/p&gt;
+&lt;p&gt;Cap Watkins wrote a post back in 2014 where he explained his admiration for &lt;a href=&quot;https://capwatkins.com/blog/the-boring-designer&quot;&gt;boring designers&lt;/a&gt; and how they tackled design problems using the most boring or “lazy” techniques. While I don’t agree completely with his arguments, nor do I think one should try to attain the status of “boring designer”, I can understand his main sentiment: everyone can appreciate obvious and clever design.&lt;/p&gt;
+&lt;h2 id=&quot;fixing-simple&quot;&gt;Fixing Simple&lt;/h2&gt;
+&lt;p&gt;I hate when people point out problems without at least attempting to suggest some sort of solution - which is exactly what I’m going to do here (with only a few set examples of course, otherwise the post would become a book). Let’s take a look at the major culprits I find around the web: navigations, buttons and form elements.&lt;/p&gt;
+&lt;h3 id=&quot;1.-hidden-navigations&quot;&gt;1. Hidden Navigations&lt;/h3&gt;
+&lt;p&gt;How many native apps that you use regularly rely on the trusty “hamburger” menu icon navigation system? What about news sites, video streaming services, or blogs? Maybe you’ve implemented this concept in your own projects as well, advocating for it’s “cleaner” approach to navigation. &lt;/p&gt;
+&lt;p&gt;The &lt;em&gt;hamburger&lt;/em&gt; is a great example of “ugly simple”. You are purposely hiding the main structure that allows your users to move around your product freely behind an &lt;strong&gt;additional&lt;/strong&gt; interaction. That is the opposite of simple.&lt;/p&gt;
+&lt;p&gt;The only time you should be using the “hamburger crutch” as I call it, is for very small screen sizes or when targeting mobile user agents directly. That’s it. If your users are viewing your product on a larger screen, for the love of God, &lt;strong&gt;use the space available&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/navigation.webp&quot; alt=&quot;Desktop Navigation&quot; /&gt;&lt;/p&gt;
+&lt;h3 id=&quot;2.-buttons-not-looking-like-buttons&quot;&gt;2. Buttons Not Looking Like Buttons&lt;/h3&gt;
+&lt;p&gt;It’s difficult for users to actually &lt;strong&gt;do&lt;/strong&gt; the action you want them to perform when your buttons look like text. I’m not exactly sure why designers have pivoted towards removing all stylings that regular users have come to expect from button elements, but it’s plaguing far too many websites.&lt;/p&gt;
+&lt;p&gt;Buttons should be eye-catching, colorful, fun to interact with, and support all proper CSS states. Clients and agencies will tend to push for “cleaner” buttons - which most of the time refers to setting the buttons as simple underlined text items. Do not be brainwashed into thinking this is better:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/buttons.webp&quot; alt=&quot;Button Comparsion&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;You tell me what looks more interactive&amp;#8230;&lt;/p&gt;
+&lt;h3 id=&quot;3.-overriding-form-elements&quot;&gt;3. Overriding Form Elements&lt;/h3&gt;
+&lt;p&gt;Designers should rarely rebuild the browser structure for web form elements in their projects. I should clarify - I’m not suggesting that you use the barebones default styles provided by the browser, I’m saying that you shouldn’t hide the elements themselves just to replace them with mimicking components. I find this practice is becoming more and more noticeable with the growing popularity of component-based frameworks. Don’t fall into these bad design habits.&lt;/p&gt;
+&lt;p&gt;For example, you should leave the following &lt;code&gt;select&lt;/code&gt; element as is:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;select&amp;#62;
+ &amp;#60;option&amp;#62;
+&amp;#60;&amp;#47;select&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Notice the &lt;code&gt;fieldset&lt;/code&gt; and &lt;code&gt;legend&lt;/code&gt; elements? I bet you don&amp;#8217;t see or hear about those HTML items very often. By default, &lt;code&gt;fieldset&lt;/code&gt; allows sibling or related inputs to be semantically grouped together. The &lt;code&gt;legend&lt;/code&gt; elements give the user great visual cues about which items are grouped together, helping to focus on each section individually as they complete the form. Use these grouping elements as much as possible (when it makes sense of course) for a better guided experience for your users. &lt;/p&gt;
-&lt;p&gt;Avoid making your own custom sections and instead use these existing HTML semantics.&lt;/p&gt;
-&lt;h2 id=&quot;almost-no-css-at-all&quot;&gt;Almost no CSS at all&lt;/h2&gt;
-&lt;p&gt;Now it&amp;#8217;s time to style this form with only 6 property declarations:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;form label {
- display: block;
-}
-form input {
- display: inline-block;
- margin-bottom: 10px;
- padding: 10px;
- width: 100%;
-}
-form input[type=&quot;radio&quot;],
-form input[type=&quot;checkbox&quot;],
-form input[type=&quot;reset&quot;],
-form input[type=&quot;submit&quot;] {
- width: auto;
-}
+&lt;p&gt;Instead of doing something like this:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;select style=&quot;display:none;&quot;&amp;#62;&amp;#60;&amp;#47;select&amp;#62;
+&amp;#60;div class=&quot;custom-select-container&quot;&amp;#62;
+ &amp;#60;span&amp;#62;Option&amp;#60;&amp;#47;span&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Of course, you can always add minor adjustments (like in my demo example above)&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Legend typeface and sizing&lt;/li&gt;
-&lt;li&gt;Form and fieldset background colors&lt;/li&gt;
-&lt;li&gt;Extra margin and padding&lt;/li&gt;
-&lt;li&gt;Custom reset &amp;#47; submit buttons&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;But the main point of this post is to showcase how little CSS is needed to implement decent web forms - so any further improvements are up to you, dear reader. &lt;/p&gt;
-&lt;p&gt;Just try not to reinvent the wheel.&lt;/p&gt;
-&lt;h2 id=&quot;final-rant---dont-ignore-the-reset&quot;&gt;Final rant - don&amp;#8217;t ignore the reset&lt;/h2&gt;
-&lt;p&gt;A lot of &amp;#8220;modern&amp;#8221; web forms have moved away from including the reset input on their forms, which I think is fairly short-sighted. Resetting all form fields might be a smaller edge case, but it is certainly a better option than relying on the user to refresh or in some cases, individually deleting each input. Yikes.&lt;/p&gt;
-&lt;p&gt;Happy form building!&lt;/p&gt;</content>
- <link href="https://btxx.org/default-brower-forms"/>
- <id>https://btxx.org/default-brower-forms</id>
- <updated>2019-11-13T10:00:00Z</updated>
- <published>2019-11-13T10:00:00Z</published>
- </entry>
- <entry>
- <title>The Death of Personality</title>
- <content type="html">&lt;h1 id=&quot;the-death-of-personality&quot;&gt;The Death of Personality&lt;/h1&gt;
-&lt;p&gt;2017-11-01&lt;/p&gt;
-&lt;p&gt;On September 18, 2013 truly original product design (everything from icon and app design to UI and experience interactions) began it&amp;#8217;s fast decline into the abyss with the release of Apple&amp;#8217;s iOS 7 update. It was called revolutionary. It was seen as a &amp;#8216;new age&amp;#8217; of design. I think it was a big mistake.&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/flat-design-tombstone_cfkyrq_c_scale,w_700.webp&quot; alt=&quot;Flat design tombstone&quot; /&gt;&lt;/p&gt;
-&lt;h3 id=&quot;stepping-backwards&quot;&gt;Stepping backwards&lt;/h3&gt;
-&lt;p&gt;Let me start off by saying I understand where they were trying to take mobile app design as a whole. &amp;#8220;Less is more&amp;#8221;, &amp;#8220;cleaner UI to let the content be the focus&amp;#8221;, &amp;#8220;more touch based interactions&amp;#8221;. The problem is that they cranked the dial too far in the other direction.&lt;/p&gt;
-&lt;p&gt;Because of this, a large movement was created based around the idea that skeuomorphic design is garbage, flat design is the future. And everyone drank the kool-aid without a single objection.
-I&amp;#8217;m using this ironically.&lt;/p&gt;
-&lt;h3 id=&quot;icons-with-no-identity&quot;&gt;Icons with no identity&lt;/h3&gt;
-&lt;p&gt;Do you remember Instagram&amp;#8217;s original app icon and UI? Do you remember how everyone initially praised it? Show those old designs to the same designers who loved it only a few years ago, and they will now laugh at how &amp;#8220;bad&amp;#8221; it is.&lt;/p&gt;
-&lt;p&gt;Unfortunately the same can be said for Apple&amp;#8217;s system icons across both iOS and macOS.&lt;/p&gt;
-&lt;p&gt;I believe Apple took the concept of a &amp;#8216;consistent&amp;#8217; design system across their iconography too literally. All the system icons should compliment one another, but they shouldn&amp;#8217;t lose their own individual look and feel.&lt;/p&gt;
-&lt;h3 id=&quot;lackluster-ui&quot;&gt;Lackluster UI&lt;/h3&gt;
-&lt;p&gt;The once inspiring and hierarchically consistent interface of both iOS and macOS was also quickly swatted away. In it&amp;#8217;s place we as users saw the removal of depth, initial visual cues as to what was interactive and what was static, and sadly even the overall color was muted.&lt;/p&gt;
-&lt;h3 id=&quot;impact-on-the-web&quot;&gt;Impact on the web&lt;/h3&gt;
-&lt;p&gt;This may not have been a bad thing if it was self-contained to Apple itself. The problem is that Apple has such a huge influence on the design industry - although that is starting to diminish, due to disasters like the iPhone X - that everyone starts to mimic and copy their style. This includes designers of sites and progressive web apps.&lt;/p&gt;
-&lt;p&gt;With the evolution of websites morphing into progressive web apps, designers have felt the need to start implementing this bland style for their design systems.&lt;/p&gt;
-&lt;p&gt;What we got in return:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;washed out colors&lt;/li&gt;
-&lt;li&gt;zero gradients for depth&lt;/li&gt;
-&lt;li&gt;the removal of all drop shadows (in meaningful ways that is)&lt;/li&gt;
-&lt;li&gt;the same generic Helvetica-based typefaces&lt;/li&gt;
-&lt;li&gt;the absence of hover states on interactive elements&lt;/li&gt;
-&lt;li&gt;a lack of any proper information density&lt;/li&gt;
-&lt;li&gt;an overkill of whitespace&lt;/li&gt;
-&lt;li&gt;one dimensional buttons (you know, the thing you want the user to interact with)&lt;/li&gt;
-&lt;li&gt;a complete disregard for original design not based off every other popular product&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h3 id=&quot;breaking-free-of-the-modern-era&quot;&gt;Breaking free of the &amp;#8216;modern era&amp;#8217;&lt;/h3&gt;
-&lt;p&gt;Thankfully, there are still a few good designers who continue to create original and inspiring work not based solely on current trends.&lt;/p&gt;
-&lt;p&gt;Flexibits recently launched a new contact app for macOS called Cardhop. While the UI still shifts a little too far to the &amp;#8216;flat trend&amp;#8217; for my liking, they thankfully hired the very talented David Lanham to design the beautiful application icon.&lt;/p&gt;
-&lt;p&gt;This is where visual design shines. Icon designs like Cardhop&amp;#8217;s are what allow individual applications to stand out in the dock or mobile home-screen among all the others. So how is that not UX design?&lt;/p&gt;
-&lt;p&gt;The current trendy thought process from designers that &amp;#8220;visual design doesn&amp;#8217;t involve UX design&amp;#8221; is garbage. Neither are mutually exclusive and I think anyone who believes so is being incredibly short-sighted.&lt;/p&gt;
-&lt;p&gt;If you&amp;#8217;re a designer, please stop riding trends and make your work visually beautiful. That doesn&amp;#8217;t mean you need to sacrifice usability or function, but just put more love and confidence into your profession. Companies like Apple and Google don&amp;#8217;t control how everyone else&amp;#8217;s apps and sites should look, and based on their current design decisions - they shouldn&amp;#8217;t.&lt;/p&gt;</content>
- <link href="https://btxx.org/death-of-personality"/>
- <id>https://btxx.org/death-of-personality</id>
- <updated>2017-11-01T10:00:00Z</updated>
- <published>2017-11-01T10:00:00Z</published>
- </entry>
- <entry>
- <title>Cut Your Forms in Half</title>
- <content type="html">&lt;h1 id=&quot;cut-your-forms-in-half&quot;&gt;Cut Your Forms in Half&lt;/h1&gt;
-&lt;p&gt;2019-05-09&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;Building web forms can sometimes feel like a boring or daunting task&lt;/em&gt;. Don&amp;#8217;t pass this dread on to your users - rip out as many of your form fields as possible.&lt;/p&gt;
-&lt;p&gt;Web forms tend to get a bad rep, mainly because so many horrible design choices are made without the user experience set at the forefront. Often times clients demand that they &lt;strong&gt;need&lt;/strong&gt; those twenty input fields or else how will they collect critical information from their users? Normally when I&amp;#8217;m approached with such a statement I simply ask them:&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;&amp;#8220;How many form fields would you be willing to fill out for an emergency situation?&amp;#8221;&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;&amp;#8220;My form isn&amp;#8217;t for emergencies though&amp;#8221;, they might reply. In that case ask them why they feel it acceptable to waste their users&amp;#8217; time just because it isn&amp;#8217;t urgent. Time is valuable.&lt;/p&gt;
-&lt;h2 id=&quot;fixing-a-form-in-the-wild&quot;&gt;Fixing a form in the wild&lt;/h2&gt;
-&lt;p&gt;Let&amp;#8217;s use a real-world form off the &lt;a href=&quot;https://www.greatwestlife.com&quot;&gt;Great West Life Insurance&lt;/a&gt; website as an example (left is original, right is updated):&lt;/p&gt;
-&lt;h3 id=&quot;breaking-things-down&quot;&gt;Breaking things down&lt;/h3&gt;
-&lt;p&gt;So what exactly have we changed?&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Combined first and last name fields into a single input&lt;/li&gt;
-&lt;li&gt;Removed the overkill &amp;#8220;retype&amp;#8221; email &amp;#38; password field (with the optional &lt;code&gt;show password&lt;/code&gt; this becomes redundant)&lt;/li&gt;
-&lt;li&gt;Minor position changes for optional subscription sign up and input field descriptions&lt;/li&gt;
-&lt;li&gt;Removed &lt;code&gt;recovery email&lt;/code&gt;
-&lt;ul&gt;
-&lt;li&gt;This is something that should be prompted to the user after successful registration - don&amp;#8217;t bog them down before they even sign up&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;helpful-micro-improvements&quot;&gt;Helpful Micro improvements&lt;/h2&gt;
-&lt;p&gt;You don&amp;#8217;t need to be extreme when gutting form fields - just be practical.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Don&amp;#8217;t use &amp;#8220;first&amp;#8221; and &amp;#8220;last&amp;#8221; names as separate inputs, instead use something like &amp;#8220;Full Name&amp;#8221;&lt;/li&gt;
-&lt;li&gt;Make complex questions use preset answers via &lt;code&gt;checkbox&lt;/code&gt; or &lt;code&gt;radio&lt;/code&gt; inputs&lt;/li&gt;
-&lt;li&gt;Avoid &lt;code&gt;select&lt;/code&gt; items whenever possible (these are clunky and most times unnecessary)&lt;/li&gt;
-&lt;li&gt;Include easy to understand, real-time error prompts&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;further-reading&quot;&gt;Further reading&lt;/h2&gt;
-&lt;ul&gt;
-&lt;li&gt;Great place to deep-dive into UX form design: &lt;a href=&quot;https://uxmovement.com/category/forms/&quot;&gt;UX Movement&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;</content>
- <link href="https://btxx.org/cut-your-forms-in-half"/>
- <id>https://btxx.org/cut-your-forms-in-half</id>
- <updated>2019-05-09T10:00:00Z</updated>
- <published>2019-05-09T10:00:00Z</published>
- </entry>
- <entry>
- <title>CSS Value: `currentColor`</title>
- <content type="html">&lt;h1 id=&quot;css-value-&quot;&gt;CSS Value: &lt;code&gt;currentColor&lt;/code&gt;&lt;/h1&gt;
-&lt;p&gt;2019-04-13&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;There are a large number of nuanced and mostly unheard of&lt;/em&gt; CSS value types, but today we are going to focus on &lt;code&gt;currentColor&lt;/code&gt;. So what is the &lt;code&gt;currentColor&lt;/code&gt; value type anyway?&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;The currentColor value type will apply the existing color value to other properties like background-color, etc.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;h2 id=&quot;see-it-in-action&quot;&gt;See it in action&lt;/h2&gt;
-&lt;p&gt;Let&amp;#8217;s assume with have a single div with the following properties:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;div {
- color: dodgerblue;
-}
+&lt;p&gt;There are cleaner ways to customize web forms with straightforward CSS. Have a look at my own open source project &lt;a href=&quot;https://normform.netlify.com/&quot;&gt;Normform&lt;/a&gt; if you’d prefer to just use a lightweight plugin to do this for you. (Shameless plug, I know)&lt;/p&gt;
+&lt;h2 id=&quot;simple-can-be-good&quot;&gt;Simple Can Be Good&lt;/h2&gt;
+&lt;p&gt;Having a boring or lazy design thought-process doesn’t mean you should develop ugly UI for the sake of “simple”. Too often that word is associated with “minimalism” or “less content” and that is only half true.&lt;/p&gt;
+&lt;p&gt;The &lt;em&gt;experience&lt;/em&gt; is what needs to be simple for your users - the UI itself should still be beautiful.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/simple-does-not-mean-ugly"/>
+ <id>https://btxx.org/posts/simple-does-not-mean-ugly</id>
+ <updated>2019-03-26T10:00:00Z</updated>
+ <published>2019-03-26T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Simple Navigation Setup in Jekyll 3.9.0</title>
+ <content type="html">&lt;h1 id=&quot;simple-navigation-setup-in-jekyll-3.9.0&quot;&gt;Simple Navigation Setup in Jekyll 3.9.0&lt;/h1&gt;
+&lt;p&gt;2020-09-29&lt;/p&gt;
+&lt;p&gt;I have found that there is a lot of information on the internet in regards to setting up &amp;#8220;dynamic&amp;#8221; navigation in Jekyll. The problem I&amp;#8217;ve noticed is that a good amount of these implementations are overly complex. Here is the simplest way that I tend to use when building out &lt;code&gt;nav&lt;/code&gt; elements in Jekyll (3.9.0 as of this writing).&lt;/p&gt;
+&lt;h2 id=&quot;creating-the-directories-files&quot;&gt;Creating the Directories &amp;#38; Files&lt;/h2&gt;
+&lt;p&gt;In your Jekyll project, at the top level, you need to create a directory called &lt;code&gt;_data&lt;/code&gt;. Inside this folder we will be creating a new file called &lt;code&gt;navigation.yml&lt;/code&gt;. The contents of this file will contain all your navigation links and they are rendered like so:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;- title: Home
+url: &amp;#47;
+
+- title: Articles
+url: &amp;#47;articles&amp;#47;
+
+- title: About
+url: &amp;#47;about&amp;#47;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If we wanted to use that same color for other properties on elements inside that initial &lt;code&gt;div&lt;/code&gt;, it&amp;#8217;s simple - we just need to call &lt;code&gt;currentColor&lt;/code&gt; like so:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;div {
- color: dodgerblue;
-}
+&lt;h2 id=&quot;dynamically-rendering-the-navigation&quot;&gt;Dynamically Rendering the Navigation&lt;/h2&gt;
+&lt;p&gt;The next and final step is rendering out the navigation with a simple loop:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;{% for item in site.data.navigation %}
+ &amp;#60;li&amp;#62;
+ &amp;#60;a href=&quot;{{ item.url }}&quot;&amp;#62;&amp;#60;span&amp;#62;{{ item.title }}&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;&amp;#47;li&amp;#62;
+{% endfor %}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;highlight-current-page&quot;&gt;Highlight Current Page&lt;/h2&gt;
+&lt;p&gt;It&amp;#8217;s also very easy to extend this method to add a CSS class based on whether a user is on the currently selected page or not:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;{% for item in site.data.navigation %}
+ &amp;#60;li&amp;#62;
+ {% if item.url == page.url %}
+ &amp;#60;a class=&quot;active&quot; href=&quot;{{ item.url }}&quot;&amp;#62;&amp;#60;span&amp;#62;{{ item.title }}&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+ {% else %}
+ &amp;#60;a href=&quot;{{ item.url }}&quot;&amp;#62;&amp;#60;span&amp;#62;{{ item.title }}&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+ {% endif %}
+ &amp;#60;&amp;#47;li&amp;#62;
+{% endfor %}
-div header {
- background-color: currentColor;
-}
-div a {
- border-bottom: 1px solid currentColor;
-}
+
+&amp;#47;* Custom styling for active class *&amp;#47;
+li a.active { color: red; }
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;&lt;strong&gt;Sidenote&lt;/strong&gt;: If you re-declare the default &lt;code&gt;color&lt;/code&gt; property further along in your CSS, the &lt;code&gt;currentColor&lt;/code&gt; value will update according to the last color set.&lt;/p&gt;
-&lt;p&gt;And that&amp;#8217;s it. Best of all, this value type is supported across all major browsers!&lt;/p&gt;</content>
- <link href="https://btxx.org/current-color"/>
- <id>https://btxx.org/current-color</id>
- <updated>2019-04-13T10:00:00Z</updated>
- <published>2019-04-13T10:00:00Z</published>
- </entry>
- <entry>
- <title>CSS Video Backgrounds</title>
- <content type="html">&lt;h1 id=&quot;css-video-backgrounds&quot;&gt;CSS Video Backgrounds&lt;/h1&gt;
-&lt;p&gt;2018-04-16&lt;/p&gt;
-&lt;p&gt;With the release of Safari 11.1 on macOS and Safari on iOS 11.3, developers now have the ability to support background videos (mp4 support only - at the time of this article) with pure CSS.&lt;/p&gt;
-&lt;p&gt;Example:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.video-background {
- background-image: url(&amp;#39;path-to-video.mp4);
-}
+&lt;p&gt;Congrats! You now have fully functional, dynamic navigation on your Jekyll site.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/simple-jekyll-navigation"/>
+ <id>https://btxx.org/posts/simple-jekyll-navigation</id>
+ <updated>2020-09-29T10:00:00Z</updated>
+ <published>2020-09-29T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Skip to Content Button</title>
+ <content type="html">&lt;h1 id=&quot;skip-to-content-button&quot;&gt;Skip to Content Button&lt;/h1&gt;
+&lt;p&gt;2019-03-25&lt;/p&gt;
+&lt;p&gt;One of the golden rules for testing your website&amp;#8217;s accessibility is the &amp;#8220;keyboard-only&amp;#8221; audit. This is where you test navigating through your entire site without the use of a mouse, but instead rely solely on tabbing through your content.&lt;/p&gt;
+&lt;p&gt;Unfortunately, one item is normally overlooked during this audit - a &amp;#8220;skip to content&amp;#8221; context button. Including a &amp;#8220;skip to content&amp;#8221; navigation item in your project is extremely useful because:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;speeds up user interaction with the content you &lt;strong&gt;want&lt;/strong&gt; them to see&lt;/li&gt;
+&lt;li&gt;on subsequent pages the user shouldn&amp;#8217;t need to tab through the entire navigation each time&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;p&gt;For the sake of this demo we will assume that we currently have the following navigation setup in our project:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;nav role=&quot;navigation&quot;&amp;#62;
+ &amp;#60;a href=&quot;&amp;#47;&quot;&amp;#62;Home&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;a href=&quot;&amp;#47;about&quot;&amp;#62;About&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;a href=&quot;&amp;#47;archive&quot;&amp;#62;Archive&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;a href=&quot;&amp;#47;atom.xml&quot;&amp;#62;RSS&amp;#60;&amp;#47;a&amp;#62;
+&amp;#60;&amp;#47;nav&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;see-it-in-action&quot;&gt;See it in action&lt;/h2&gt;
-&lt;p&gt;Check out the very basic CodePen I created below to see it live (make sure you view it in latest Safari or else you won&amp;#8217;t see anything :P)&lt;/p&gt;
-&lt;p&gt;CSS Video Background (Safari Only)&lt;/p&gt;
-&lt;p&gt;You can read up on all the new features implemented in 11.1 Safari here:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://webkit.org/blog/8216/new-webkit-features-in-safari-11-1/&quot;&gt;New WebKit Features in Safari 11.1&lt;/a&gt;&lt;/p&gt;</content>
- <link href="https://btxx.org/css-video-backgrounds"/>
- <id>https://btxx.org/css-video-backgrounds</id>
- <updated>2018-04-16T10:00:00Z</updated>
- <published>2018-04-16T10:00:00Z</published>
- </entry>
- <entry>
- <title>CSS Variables</title>
- <content type="html">&lt;h1 id=&quot;css-variables&quot;&gt;CSS Variables&lt;/h1&gt;
-&lt;p&gt;2018-03-24&lt;/p&gt;
-&lt;p&gt;The CSS language is becoming even more awesome and powerful everyday. In this quick article I&amp;#8217;d like to focus specifically on the &amp;#8220;new&amp;#8221; CSS variable function that you can start using in your projects &lt;em&gt;right now&lt;/em&gt;.&lt;/p&gt;
-&lt;h3 id=&quot;getting-started-is-easy&quot;&gt;Getting started is easy&lt;/h3&gt;
-&lt;p&gt;Let&amp;#8217;s just jump right in - this is how you create variables in vanilla CSS:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;:root {
- --base-color: #e0e0e0;
- --text-color: #111;
-}
+&lt;p&gt;Now for the easy part - adding our simple content skip link with it&amp;#8217;s own custom &lt;code&gt;skip-content&lt;/code&gt; class:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;nav role=&quot;navigation&quot;&amp;#62;
+ &amp;#60;!-- Skip to content button --&amp;#62;
+ &amp;#60;a class=&quot;skip-content&quot; href=&quot;#main&quot;&amp;#62;Skip to Content (Press Enter)&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;a href=&quot;&amp;#47;&quot;&amp;#62;Home&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;a href=&quot;&amp;#47;about&quot;&amp;#62;About&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;a href=&quot;&amp;#47;archive&quot;&amp;#62;Archive&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;a href=&quot;&amp;#47;atom.xml&quot;&amp;#62;RSS&amp;#60;&amp;#47;a&amp;#62;
+&amp;#60;&amp;#47;nav&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;We are using the &lt;code&gt;:root&lt;/code&gt; selector at the very top of our CSS file in order to call these variables into any elements in the rest of our document. This is normally the safest way to include variables.&lt;/p&gt;
-&lt;p&gt;As for the variables themselves, you declare that they are variables using the &lt;code&gt;--&lt;/code&gt; tags, followed by the variable&amp;#8217;s name and it&amp;#8217;s property. Pretty simple stuff, right?&lt;/p&gt;
-&lt;p&gt;Now let&amp;#8217;s use those variables:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.header {
- border: 1px solid var(--base-color);
+&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
+&lt;p&gt;Our first task is to make sure this new link isn&amp;#8217;t visible or interactive by default unless the user explicitly tabs through the navigation. We do so by positioning the link outside of the main content view. It is important to use this &lt;code&gt;absolute&lt;/code&gt; position style instead of setting the display property to &lt;code&gt;none&lt;/code&gt;, since the display property technique will fully remove the element from the DOM (bad accessibility practices).&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;a.skip-content {
+ background: grey;
+ color: white;
+ left: -9999px;
+ padding: 0.5rem;
+ position: absolute;
+ top: 0;
}
-
-.main-container {
- background-color: var(--base-color);
- color: var(--text-color);
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;almost-there&quot;&gt;Almost there&lt;/h2&gt;
+&lt;p&gt;Now we just re-position the element when the user focuses on the link with a keyboard tab:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;a.skip-content:focus {
+ left: 1rem; &amp;#47;* Whatever desired position *&amp;#47;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it! It&amp;#8217;s also good to know that CSS variables have pretty decent &lt;a href=&quot;https://caniuse.com/#feat=css-variables&quot;&gt;browser support&lt;/a&gt; (who likes IE11 anyway).&lt;/p&gt;
-&lt;h3 id=&quot;why-not-just-use-a-preprocessor&quot;&gt;Why not just use a preprocessor?&lt;/h3&gt;
-&lt;p&gt;I&amp;#8217;m a pretty big fan of Sass and Stylus, but sometimes it&amp;#8217;s refreshing to just use vanilla CSS for certain projects. Most preprocessors have had the ability to use variables and mixins for a while, but I prefer to avoid build scripts when not absolutely necessary.&lt;/p&gt;
-&lt;p&gt;Get out there and have fun with some variables!&lt;/p&gt;</content>
- <link href="https://btxx.org/css-variables"/>
- <id>https://btxx.org/css-variables</id>
- <updated>2018-03-24T10:00:00Z</updated>
- <published>2018-03-24T10:00:00Z</published>
- </entry>
- <entry>
- <title>CSS Slope Graphs</title>
- <content type="html">&lt;h1 id=&quot;css-slope-graphs&quot;&gt;CSS Slope Graphs&lt;/h1&gt;
-&lt;p&gt;2021-06-07&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;I am a huge sucker for simplistic and beautifully designed visual data on the web&lt;/em&gt;. Most data tends to be graphed via line or bar systems - which is fine - but I think slope graphs are highly underrated. Let&amp;#8217;s change that, shall we?&lt;/p&gt;
-&lt;h2 id=&quot;the-demo&quot;&gt;The Demo&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;m basing this demo off the design patterns found in &lt;a href=&quot;https://www.edwardtufte.com/tufte/books_vdqi&quot;&gt;Edward Tufte&amp;#8217;s visualization work&lt;/a&gt;, specifically his slope graph designs:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/jOBzXMe&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;all-done&quot;&gt;All Done&lt;/h2&gt;
+&lt;p&gt;This is a very basic accessibility win you can implement in your current projects with next to zero effort. Enjoy!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/skip-to-content"/>
+ <id>https://btxx.org/posts/skip-to-content</id>
+ <updated>2019-03-25T10:00:00Z</updated>
+ <published>2019-03-25T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Converting My X201 ThinkPad into a Slabtop</title>
+ <content type="html">&lt;h1 id=&quot;converting-my-x201-thinkpad-into-a-slabtop&quot;&gt;Converting My X201 ThinkPad into a Slabtop&lt;/h1&gt;
+&lt;p&gt;2023-05-01&lt;/p&gt;
+&lt;p&gt;I recently wrote &lt;a href=&quot;/x201/&quot;&gt;about physically disabling the WiFi toggle switch on my X201&lt;/a&gt; which was a fun &amp;#8220;hack&amp;#8221; to an annoying issue I was running into. Since then, the laptop has been running flawlessly.&lt;/p&gt;
+&lt;p&gt;The only other &lt;em&gt;minor&lt;/em&gt; issue I had was the poor display quality. The screen works perfectly fine but the X201&amp;#8217;s age prevents it from being the best possible display for day-to-day tasks. Both the resolution and viewing angles are quite poor.&lt;/p&gt;
+&lt;p&gt;So, what were my options to remedy this problem?&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Swap out and upgrade the laptop&amp;#8217;s display (not many options for this though)&lt;/li&gt;
+&lt;li&gt;Connect an external display, keyboard, mouse and dock the X201&lt;/li&gt;
+&lt;li&gt;Something else?&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;looking-into-something-else&quot;&gt;Looking into &amp;#8220;Something Else&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;I found that the possible replacement screens weren&amp;#8217;t worth the cost&amp;#47;hassle to swap out. And setting the laptop aside, docked with external peripherals sounded fine in theory - but then I would be missing out on the X201&amp;#8217;s amazing classic keyboard&amp;#8230;&lt;/p&gt;
+&lt;p&gt;Then I thought to myself, &amp;#8220;Why not just remove the display &lt;em&gt;entirely&lt;/em&gt;?&amp;#8221;&lt;/p&gt;
+&lt;p&gt;So that&amp;#8217;s what I did.&lt;/p&gt;
+&lt;p&gt;Removing the entire top lid was easier than I initially thought it would be. The beautiful thing about these older, classic ThinkPads is the ability to completely dissemble them. I won&amp;#8217;t go into heavy details on how to take one of these machines apart, since great documentation &lt;a href=&quot;https://www.ifixit.com/Device/Lenovo_Thinkpad_X201_Tablet&quot;&gt;already exists&lt;/a&gt;. But once you have the keyboard and hinge screws removed it is essentially as easy as &lt;em&gt;lifting&lt;/em&gt; the lid out of the chassis. (After disconnecting the small display connectors, of course)&lt;/p&gt;
+&lt;h2 id=&quot;ditching-alpine-for-debian&quot;&gt;Ditching Alpine for Debian&lt;/h2&gt;
+&lt;p&gt;I love Alpine Linux. It&amp;#8217;s normally my &lt;a href=&quot;https://as.bt.ht&quot;&gt;go-to distro&lt;/a&gt; (paired with dwm) for most of my laptop devices. Unfortunately, I find tiling window managers a slight pain to use on larger, 4K displays. I also wanted this slabtop to &amp;#8220;just work&amp;#8221;, instead of needing to fiddle around with WiFi, &lt;code&gt;xrandr&lt;/code&gt;, audio etc. Not to mention that Debian is rock solid stable. Defaulting to the XFCE DE was a no-brainer as well since this device is somewhat &lt;em&gt;old&lt;/em&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
+&lt;p&gt;This slabtop gives me those old-school &amp;#8220;Commodore64&amp;#8221; vibes (or more recent devices like the Raspberry Pi 400). This setup certainly isn&amp;#8217;t for everyone but for my use case it&amp;#8217;s working well. Traveling with a machine like this might prove a little more challenging - although you could simply pair it with a smaller travel monitor (I&amp;#8217;m sure the overall carrying weight would be similar to the standard X201).&lt;/p&gt;
+&lt;p&gt;If nothing else, it is good to keep this option in mind if you ever break your laptop&amp;#8217;s display and don&amp;#8217;t feel like spending the money to fix it. Just grab an external monitor you have laying around and make a slabtop!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/slabtop"/>
+ <id>https://btxx.org/posts/slabtop</id>
+ <updated>2023-05-01T10:00:00Z</updated>
+ <published>2023-05-01T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Embracing Slow Tech</title>
+ <content type="html">&lt;h1 id=&quot;embracing-slow-tech&quot;&gt;Embracing Slow Tech&lt;/h1&gt;
+&lt;p&gt;2022-11-22&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m writing this post on my &amp;#8220;new&amp;#8221; X260 ThinkPad running &lt;a href=&quot;https://garudalinux.org/&quot;&gt;Garuda Linux&lt;/a&gt; through Wayland&amp;#47;Sway and it is going well so far. Setting things up was much easier than I initially expected. There were only a few minor tweaks I had to make, such as setting &lt;code&gt;vim&lt;/code&gt; as the default EDITOR and installing a small collection of applications (Bitwarden, qutebrowser etc).&lt;/p&gt;
+&lt;p&gt;I ran into some headaches with generating proper SSH keys but that was solved by calling in &lt;code&gt;ssh-agent&lt;/code&gt; whenever launching a new instance of Alacritty. This could certainly be cleaned up further, but for now everything works fine. (A more detailed post about this X260 is in the works!)&lt;/p&gt;
+&lt;p&gt;&amp;#8220;Okay&amp;#8221;, I hear you say, &amp;#8220;But what does this have to do with &lt;em&gt;slow tech&lt;/em&gt;?&amp;#8221;&lt;/p&gt;
+&lt;p&gt;Good question! Let me explain.&lt;/p&gt;
+&lt;h2 id=&quot;purposely-unplugged&quot;&gt;Purposely Unplugged&lt;/h2&gt;
+&lt;p&gt;For the longest time I have had some form of &amp;#8220;smart&amp;#8221; device on my persons while performing tasks away from my main computer. Whether that was grocery shopping, playing with the kids in the backyard, going on road trips - you name it. This was never a &lt;em&gt;bad thing&lt;/em&gt; or something I actively looked to change. In fact, I hardly used these devices to connect much to the internet anyway[^1]. But I did notice that I would check things like Mastodon or my email every so often. &lt;/p&gt;
+&lt;p&gt;What I started to realize was that I was checking these &amp;#8220;online&amp;#8221; items out of pure habit. I hardly ever responded to any email on my iPhone (it doesn&amp;#8217;t help that Apple Mail on iOS is horrendous for plain text emails) and engaging in Mastodon, while fun, was certainly not a priority while out of the office. My attitude towards being &amp;#8220;always online&amp;#8221; started to shift towards being what I call &lt;em&gt;purposely unplugged&lt;/em&gt;. I decided to make a personal change towards my online access:&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;If something is important, then I will take the time to complete that task at &lt;strong&gt;my office computer&lt;/strong&gt;. I do not need to be &amp;#8220;always online&amp;#8221;.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;It really makes you wonder how people back in the late 90s or early 2000s ever managed their lives without being connected online 24&amp;#47;7. I certainly remember a time where you booted up a family computer to browse the internet, respond to emails, and complete work items. When you were done - you were done. You shutdown the machine and went about your life. &amp;#8220;I&amp;#8217;ll check back later tonight before bed&amp;#8221; or &amp;#8220;Hopefully there will be an email response by tomorrow morning&amp;#8221; was the normal thought process after logging off. Now there is no &amp;#8220;logging off&amp;#8221;. It&amp;#8217;s just switching devices. I don&amp;#8217;t think it is healthy and really who benefits? Certainly not the individual.&lt;/p&gt;
+&lt;p&gt;Hardware (computers specifically in this case) serve a purpose. They are meant to serve the individual using them. When did we cross-over into a world where we seem to be serving our devices? &lt;strong&gt;You are not important enough to be &amp;#8220;available online&amp;#8221; all the time&lt;/strong&gt;. Sorry, but it&amp;#8217;s true.&lt;/p&gt;
+&lt;h2 id=&quot;mobile-sucks-anyway&quot;&gt;Mobile Sucks Anyway&lt;/h2&gt;
+&lt;p&gt;Browsing the web is an absolute shitshow on mobile devices. Every service and their grandma begs you to install their native app. Adblockers are pretty much non-existent, which makes the modern web almost intolerable to visit. Then you have the issue of walled gardens, security breaches, planned EOL for perfectly functional hardware, increased e-waste - the list goes on.&lt;/p&gt;
+&lt;p&gt;Functional computing and online interactions have already been perfected. It&amp;#8217;s called a &lt;strong&gt;computer&lt;/strong&gt;[^3]. Computers (desktops and laptops) give us the ability to control our devices at the OS-level, granting us incredible freedom to tweak things to our individual preferences. Unless you are technical enough to fiddle around with &amp;#8220;beta&amp;#8221; mobile Linux devices, the majority of users are stuck with what they are given. And it isn&amp;#8217;t much.&lt;/p&gt;
+&lt;p&gt;The corporate push to move everyone over to &amp;#8220;mobile computing&amp;#8221; is no accident. The ability to ban certain apps, push ads to users, collect customer details, and harvest user data is more than enough motivation for companies to usher in a future of &amp;#8220;mobile&amp;#8221; computing.&lt;/p&gt;
+&lt;p&gt;Not to mention &lt;em&gt;cost&lt;/em&gt;. New, top-of-the-line mobile devices sell for the same, if not more, than a standard laptop or desktop. You give up flexibility, customization and freedom for what exactly? A really good camera? Built-in GPS navigation?&lt;/p&gt;
+&lt;p&gt;Get a &lt;em&gt;real&lt;/em&gt; camera and grab a standard GPS. I&amp;#8217;m serious. If that sounds ridiculous than you probably never really needed those things in the first place. Use the proper tool for the job. Smushing everything into one, locked-down device is a recipe for disaster.&lt;/p&gt;
+&lt;p&gt;Overall - just use a &lt;em&gt;real&lt;/em&gt; computer.&lt;/p&gt;
+&lt;h2 id=&quot;dont-flip-out&quot;&gt;Don&amp;#8217;t Flip-Out&lt;/h2&gt;
+&lt;p&gt;So, with all of that in mind, I swapped out my iPhone SE (2020) smart phone for the ZTE Cymbal 2 &amp;#8220;dumb&amp;#8221; flip phone. &lt;/p&gt;
+&lt;p&gt;The screen is extremely small with low resolution. The camera is absolute garbage. Writing text messages requires use (and knowledge) of the T9 composer[^2]. Most modern applications besides email or the photo gallery are non-existent.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;But I absolutely love it&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;It&amp;#8217;s a phone. It makes phone calls and allows me to send texts. Texts themselves are a little more time consuming, which forces me to be more concise in my writing. Anything that requires great detail should probably be an email - which is what my computer is for. What else do I need? If I ever drop it and smash into a million pieces I can replace it for &amp;#60;$50. I have the ability to replace the battery - not to mention battery life is measured in &lt;em&gt;days&lt;/em&gt; not hours. It&amp;#8217;s rugged, so I don&amp;#8217;t need to be so delicate with it or slap some huge protective case on it.&lt;/p&gt;
+&lt;p&gt;It does its job. No more, no less.&lt;/p&gt;
+&lt;h2 id=&quot;good-for-you&quot;&gt;&amp;#8220;Good for You&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;I know that some of you reading this might think that this workflow is fine for &lt;em&gt;me&lt;/em&gt; but would never be suitable for your needs. Maybe that&amp;#8217;s true, but I&amp;#8217;d probably disagree. I think people have just been conditioned to &lt;em&gt;believe&lt;/em&gt; that most day-to-day activites would be impossible without a smart device or a connection to the internet. If not, many would at least feel that without such access things would become far too inconvenient. My stance remains: the majority of people do not need constant access to a computer in their pocket.&lt;/p&gt;
+&lt;p&gt;It&amp;#8217;s completely fine to enjoy your own setup and device preferences - I&amp;#8217;m not trying to convert anyone but instead just describing my own experiences. So please, keep your torches and pitchforks at home.&lt;/p&gt;
+&lt;p&gt;Thanks for reading.&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;It helps that I have pretty much zero active accounts across most &amp;#8220;popular&amp;#8221; social media platforms.&lt;/li&gt;
+&lt;li&gt;Some of you readers might not have ever experienced the wonders of T9&amp;#8230;&lt;/li&gt;
+&lt;li&gt;I understand that even smart phones can be classified as &amp;#8220;computers&amp;#8221;. I am using this term in the classical sense.&lt;/li&gt;
+&lt;/ol&gt;</content>
+ <link href="https://btxx.org/posts/slow"/>
+ <id>https://btxx.org/posts/slow</id>
+ <updated>2022-11-22T10:00:00Z</updated>
+ <published>2022-11-22T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>SOMA Inspired Terminal Display with CSS</title>
+ <content type="html">&lt;h1 id=&quot;soma-inspired-terminal-display-with-css&quot;&gt;SOMA Inspired Terminal Display with CSS&lt;/h1&gt;
+&lt;p&gt;2021-05-29&lt;/p&gt;
+&lt;p&gt;A few years back I played (and loved) &lt;a href=&quot;https://store.steampowered.com/app/282140/SOMA/&quot;&gt;SOMA&lt;/a&gt;, a first-person sci-fi horror-adventure game. The story was intriguing and the developers nailed the overall atmosphere of Pathos-II. Though both those aspects were great, what I found the most enjoyable were the interactive computers and displays found sprinkled throughout the world.&lt;/p&gt;
+&lt;p&gt;Three years ago I wanted to see if I could recreate one of those terminal displays with HTML &amp;#38; CSS. And I did just that.&lt;/p&gt;
+&lt;p&gt;So, why am I writing about this &lt;em&gt;three years later&lt;/em&gt;? Well, I never did a proper write-up explaining how I achieved it. I&amp;#8217;m sure someone out there in the wild west of the web could get some value out of this tutorial, right? I hope so!&lt;/p&gt;
+&lt;h2 id=&quot;the-live-demo&quot;&gt;The Live Demo&lt;/h2&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/soma-terminal.png&quot; alt=&quot;Terminal based off the SOMA computers&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/ZEeLgmz&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;For this concept we will actually be building this graph out of &lt;code&gt;tables&lt;/code&gt; - crazy, right? The greatest benefit of rendering all the data inside of a &lt;code&gt;table&lt;/code&gt; element is the ability to easily support smaller screens and mobile devices. Larger viewports will get to see the pretty slope graph, while those below a certain threshold will view a simple table.&lt;/p&gt;
-&lt;p&gt;(But more on that in the CSS section)&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;p&amp;#62;Sales of the leading frozen pizza brands of the United States from 2011 to 2017 (in million US dollars) &amp;#60;br&amp;#62;&amp;#60;em&amp;#62;Source: Statisa 2018&amp;#60;&amp;#47;em&amp;#62;&amp;#60;&amp;#47;p&amp;#62;
-&amp;#60;table&amp;#62;
- &amp;#60;thead&amp;#62;
- &amp;#60;tr&amp;#62;
- &amp;#60;th&amp;#62;Pizza Brand&amp;#60;&amp;#47;th&amp;#62;
- &amp;#60;th&amp;#62;2011&amp;#60;&amp;#47;th&amp;#62;
- &amp;#60;th&amp;#62;2017&amp;#60;&amp;#47;th&amp;#62;
- &amp;#60;&amp;#47;tr&amp;#62;
- &amp;#60;&amp;#47;thead&amp;#62;
- &amp;#60;tbody&amp;#62;
- &amp;#60;tr&amp;#62;
- &amp;#60;td data-set=&quot;677.0&quot;&amp;#62;DiGiorno&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td&amp;#62;&amp;#60;span&amp;#62;677.0&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td data-name=&quot;DiGiorno&quot;&amp;#62;1014.6&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;&amp;#47;tr&amp;#62;
- &amp;#60;tr&amp;#62;
- &amp;#60;td data-set=&quot;294.8&quot;&amp;#62;Private Label&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td&amp;#62;&amp;#60;span&amp;#62;294.8&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td data-name=&quot;Private Label&quot;&amp;#62;524.8&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;&amp;#47;tr&amp;#62;
- &amp;#60;tr&amp;#62;
- &amp;#60;td data-set=&quot;286.1&quot;&amp;#62;Red Baron&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td&amp;#62;&amp;#60;span&amp;#62;286.1&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td data-name=&quot;Red Baron&quot;&amp;#62;572.3&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;&amp;#47;tr&amp;#62;
- &amp;#60;tr&amp;#62;
- &amp;#60;td data-set=&quot;257.9&quot;&amp;#62;Tombstone&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td&amp;#62;&amp;#60;span&amp;#62;257.9&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td data-name=&quot;Tombstone&quot;&amp;#62;270.6&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;&amp;#47;tr&amp;#62;
- &amp;#60;tr&amp;#62;
- &amp;#60;td data-set=&quot;164.5&quot;&amp;#62;Totino&amp;#39;s Party Pizza&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td&amp;#62;&amp;#60;span&amp;#62;164.5&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td data-name=&quot;Totino&amp;#39;s Party Pizza&quot;&amp;#62;347.2&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;&amp;#47;tr&amp;#62;
- &amp;#60;&amp;#47;tbody&amp;#62;
-&amp;#60;&amp;#47;table&amp;#62;
+&lt;p&gt;Nothing fancy going on here - just some simple &lt;code&gt;div&lt;/code&gt; elements holding a few paragraphs and spans:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;outer-frame&quot;&amp;#62;
+ &amp;#60;div class=&quot;screen&quot;&amp;#62;
+ &amp;#60;div class=&quot;screen-guts&quot;&amp;#62;
+ &amp;#60;h2&amp;#62;Key Control&amp;#60;&amp;#47;h2&amp;#62;
+ &amp;#60;p&amp;#62;&amp;#60;span&amp;#62;Panel Chip&amp;#60;&amp;#47;span&amp;#62; (Connector)&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p class=&quot;column&quot;&amp;#62;
+ Security Keys: 023-027&amp;#60;br&amp;#62;C819738-23
+ &amp;#60;br&amp;#62;
+ &amp;#60;span class=&quot;error&quot;&amp;#62;Error: Key Expired&amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;br&amp;#62;
+ &amp;#60;em&amp;#62;Please update...&amp;#60;&amp;#47;em&amp;#62;
+ &amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p&amp;#62;
+ &amp;#60;span&amp;#62;Permission&amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;br&amp;#62;
+ Standard ThetaCipher
+ &amp;#60;br&amp;#62;
+ &amp;#60;span&amp;#62;Secop-Jstrohweier&amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;button class=&quot;update-button&quot;&amp;#62;Update Chip&amp;#60;&amp;#47;button&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;bottom-controls&quot;&amp;#62;
+ &amp;#60;button class=&quot;back-button&quot;&amp;#62;Back 背部&amp;#60;&amp;#47;button&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;As you can see, nothing too fancy is happpening here. Pay close attention to the &lt;code&gt;data-set&lt;/code&gt; and &lt;code&gt;data-name&lt;/code&gt; variables though - those will be important for the CSS portion of this design, mainly the rendering of the line elements.&lt;/p&gt;
&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;To avoid overwhelming your brain all-at-once, let&amp;#8217;s break the CSS down into bite-sized chunks, starting with the base styling:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@import url(&amp;#39;https:&amp;#47;&amp;#47;opentype.netlify.com&amp;#47;et-book&amp;#47;index.css&amp;#39;);
+&lt;p&gt;Let&amp;#8217;s just dump all the CSS right here (don&amp;#8217;t worry, it looks far more complicated than it really is):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@import url(&amp;#39;https:&amp;#47;&amp;#47;opentype.netlify.com&amp;#47;sansation&amp;#47;index.css&amp;#39;);
+
* {
box-sizing: border-box;
}
-html {
- height: 100%;
-}
-
body {
- background: #fffff8;
- font-family: &quot;et-book&quot;, serif;
- height: 100%;
- margin: 0 auto;
- max-width: 800px;
- padding: 0 0.5rem;
+ background: #333;
+ font-family: &quot;Sansation&quot;, sans-serif;
+ padding: 3rem 0;
}
-p {
+button {
+ appearance: none;
+ border: 0;
+ cursor: pointer;
+ font-family: &quot;Inconsolata&quot;, &quot;Consolas&quot;, mono;
font-size: 18px;
- margin: 4rem 0 6rem;
+ transition: 0.3s ease all;
}
-table {
- border-collapse: collapse;
- text-align: left;
- width: 100%;
+.outer-frame,
+.screen {
+ display: block;
+ margin: 0 auto;
+ position: relative;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Pretty basic stuff.&lt;/p&gt;
-&lt;p&gt;Now we need to design how our slope graph will look on larger screens &amp;#47; desktops. For this instance, we will target these larger devices with a &lt;code&gt;min-width&lt;/code&gt; media query of &lt;code&gt;800px&lt;/code&gt;. The rest of the CSS might look a little confusing but I assure you it is quite simple.&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;&lt;p&gt;On larger devices we hide the first &lt;code&gt;thead tr th&lt;/code&gt; element with &lt;code&gt;display: none&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;The first and second &lt;code&gt;td&lt;/code&gt; elements inside each &lt;code&gt;tbody&lt;/code&gt; row need to be set as &lt;code&gt;position: absolute&lt;/code&gt; to avoid duplicate content&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;The inner &lt;code&gt;span&lt;/code&gt; that we include in our HTML inside the second &lt;code&gt;tbody tr td&lt;/code&gt; also needs to be &lt;code&gt;display: none&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Remember that &lt;code&gt;data-set&lt;/code&gt; variable? We now use that for our &lt;code&gt;:before&lt;/code&gt; pseudo element for &lt;code&gt;table tbody tr td:nth-of-type(1)&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Remember that &lt;code&gt;data-name&lt;/code&gt; variable? We now use that for our &lt;code&gt;:before&lt;/code&gt; pseudo element for &lt;code&gt;table tbody tr td:nth-of-type(3)&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;After that, you can see the simple customization we include to render the angle &amp;#47; position of the slope lines and the corresponding labels&lt;/p&gt;
-&lt;p&gt;@media(min-width:800px) {
- table {
- display: block;
- position: relative;
- margin-bottom: 25rem;
- }&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;table thead th {
- border-bottom: 1px solid lightgrey;
- font-size: 24px;
+
+.outer-frame {
+ background: #ccc url(&quot;https:&amp;#47;&amp;#47;preview.ibb.co&amp;#47;iS9nz7&amp;#47;screen_grunge.webp&quot;) no-repeat center;
+ background-size: cover;
+ border-radius: 5px;
+ box-shadow: 0 5px 20px rgba(0,0,0,0.6);
+ height: 560px;
+ width: 750px;
+}
+.outer-frame:before {
+ background: rgba(0,0,0,0.3);
+ border-radius: 5px;
+ box-shadow: inset 5px 5px 10px rgba(0,0,0,0.4), 1px 1px 1px rgba(255,255,255,0.3);
+ content: &amp;#39;&amp;#39;;
+ height: 538px;
+ left: 15px;
position: absolute;
- top: -50px;
- width: 45%;
+ top: 11px;
+ width: 720px;
}
-table thead th:nth-child(1){ display: none; }
-table thead th:nth-child(2){ left: 0; }
-table thead th:nth-child(3){ right: 0; text-align: right; }
-table tbody tr td:nth-of-type(1),
-table tbody tr td:nth-of-type(2) { position: absolute;}
+.screen {
+ background: #000 url(&quot;https:&amp;#47;&amp;#47;image.ibb.co&amp;#47;gOqSz7&amp;#47;screen_dust.webp&quot;) no-repeat center;
+ background-size: cover;
+ border-radius: 5px;
+ height: 450px;
+ left: 75px;
+ padding: 60px;
+ position: absolute;
+ top: 55px;
+ width: 600px;
+}
+.screen:after {
+ background: url(&quot;https:&amp;#47;&amp;#47;s13.postimg.org&amp;#47;85ryuy1o7&amp;#47;dust.webp&quot;) no-repeat center;
+ background-size: cover;
+ border-radius: 5px;
+ box-shadow: inset 0 0 20px rgba(0,0,0,0.5), inset 5px 5px 10px rgba(0,0,0,0.4), 1px 1px 1px rgba(255,255,255,0.3);
+ content: &amp;#39;&amp;#39;;
+ height: 100%;
+ left: 0;
+ opacity: 0.8;
+ pointer-events: none;
+ position: absolute;
+ top: 0;
+ width: 100%;
+ z-index: 2;
+}
-table tbody tr td:nth-of-type(2) span { display: none; }
-table tbody tr td:nth-of-type(1):before {
- content: attr(data-set);
- margin-right: 10px;
+.screen-guts {
+ border-bottom: 2px solid #8fc8c8;
+ border-top: 2px solid #8fc8c8;
+ height: calc(100% - 50px);
position: relative;
+ width: 100%;
+ z-index: 0;
}
-
-table tbody tr td:nth-of-type(2) { padding-left: 10px; }
-
-table tbody tr td:nth-of-type(3) {
+.screen-guts:after {
+ border: 2px solid #8fc8c8;
+ color: #8fc8c8;
+ content: &amp;#39;键&amp;#39;;
+ padding: 5px 8px;
position: absolute;
right: 0;
+ top: 5px;
}
-table tbody tr td:nth-of-type(3):before {
- content: attr(data-name);
- margin-right: 10px;
- position: relative;
+.screen-guts h2 {
+ background: #8fc8c8;
+ color: #fff;
+ display: inline-block;
+ font-size: 24px;
+ margin: 0 0 30px 0;
+ padding: 10px;
}
-
-&amp;#47;* Custom individual slopes -- Left *&amp;#47;
-tbody tr:nth-child(1) td:nth-child(1),
-tbody tr:nth-child(1) td:nth-child(2) { top: 60px; }
-tbody tr:nth-child(2) td:nth-child(1),
-tbody tr:nth-child(2) td:nth-child(2) { top: 140px; }
-tbody tr:nth-child(3) td:nth-child(1),
-tbody tr:nth-child(3) td:nth-child(2) { top: 165px; }
-tbody tr:nth-child(4) td:nth-child(1),
-tbody tr:nth-child(4) td:nth-child(2) { top: 220px; }
-tbody tr:nth-child(5) td:nth-child(1),
-tbody tr:nth-child(5) td:nth-child(2) { top: 270px; }
-
-&amp;#47;* Custom individual slopes -- Right *&amp;#47;
-[data-name=&quot;DiGiorno&quot;] { top: 0; }
-[data-name=&quot;Red Baron&quot;] { top: 65px; }
-[data-name=&quot;Private Label&quot;] { top: 100px; }
-[data-name=&quot;Tombstone&quot;] { top: 180px; }
-[data-name=&quot;Totino&amp;#39;s Party Pizza&quot;] { top: 150px; }
-
-&amp;#47;* The custom visual lines *&amp;#47;
-tbody tr:after {
- background: black;
- content: &amp;#39;&amp;#39;;
- height: 1px;
- left: 14.5%;
- position: absolute;
- width: 70%;
+.screen-guts p {
+ color: #8fc8c8;
+ font-size: 18px;
+ margin: 0 0 30px 0;
}
-tbody tr:nth-child(1):after {
- top: 40px;
- transform: rotate(-6deg);
+.screen-guts p.column {
+ column-width: 200px;
}
-tbody tr:nth-child(2):after {
- left: 17.5%;
- top: 130px;
- transform: rotate(-4deg);
- width: 65%;
+.screen-guts p span {
+ text-transform: uppercase;
}
-tbody tr:nth-child(3):after {
- left: 15%;
- top: 125px;
- transform: rotate(-10.25deg);
- width: 70%;
+.screen-guts p span.error {
+ color: #f37c56;
}
-tbody tr:nth-child(4):after {
- left: 16%;
- top: 210px;
- transform: rotate(-4deg);
- width: 68%;
+.screen-guts p span em {
+ text-transform: none;
}
-tbody tr:nth-child(5):after {
- left: 22%;
- top: 222px;
- transform: rotate(-16deg);
- width: 56%;
+.screen-guts button.update-button {
+ background: #889314;
+ bottom: 10px;
+ color: #fff;
+ padding: 15px 20px;
+ position: absolute;
+ right: 0;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;}&lt;/p&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;All that&amp;#8217;s left are some minor styles to make everything look nice on mobile:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@media(max-width:800px) {
- p {
- margin: 2rem 0;
- }
- table td, table th {
- border-bottom: 1px solid grey;
- padding: 10px;
- }
- table td:last-of-type, table th:last-of-type {
- text-align: right;
- }
+.screen-guts button.update-button:hover {
+ background: #515905;
+}
+
+.bottom-controls {
+ background: #8fc8c8;
+ border-radius: 0 0 5px 5px;
+ bottom: 0;
+ display: flex;
+ left: 0;
+ height: 50px;
+ padding: 5px;
+ position: absolute;
+ width: 100%;
+}
+.bottom-controls button.back-button {
+ background: rgba(0,0,0,0.2);
+ color: #fff;
+ line-height: 20px;
+ padding: 8px 20px;
+ text-transform: uppercase;
+}
+.bottom-controls button.back-button:hover {
+ background: rgba(0,0,0,0.6);
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;not-the-most-practical&quot;&gt;Not the most practical&lt;/h2&gt;
-&lt;p&gt;This slope graph concept is far from perfect for use in real-world situations. The fact that you need to manually render each point of data yourself makes this implementation quite annoying for more in-depth projects.&lt;/p&gt;
-&lt;p&gt;But it was fun to mess around with and create, so who cares!&lt;/p&gt;</content>
- <link href="https://btxx.org/css-slope-graphs"/>
- <id>https://btxx.org/css-slope-graphs</id>
- <updated>2021-06-07T10:00:00Z</updated>
- <published>2021-06-07T10:00:00Z</published>
- </entry>
- <entry>
- <title>A Reality Where CSS and JavaScript Don't Exist</title>
- <content type="html">&lt;h1 id=&quot;a-reality-where-css-and-javascript-dont-exist&quot;&gt;A Reality Where CSS and JavaScript Don&amp;#8217;t Exist&lt;/h1&gt;
-&lt;p&gt;2021-11-03&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;This is my personal opinion. Please leave your pitchforks at the door&amp;#8230;&lt;/em&gt;&lt;/p&gt;
-&lt;p&gt;I love CSS. I can spend hours deep diving into a website&amp;#8217;s CSS system and never find myself getting bored. It&amp;#8217;s pretty amazing to see the problems other designers are able to solve with just a little bit of custom styling and determination.&lt;/p&gt;
-&lt;p&gt;I like JavaScript. It serves it&amp;#8217;s purpose and makes complex functionality on the web easier to wrangle in and understand.&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;But I think both should have never come into existence&lt;/em&gt;.&lt;/p&gt;
-&lt;h3 id=&quot;heresey&quot;&gt;Heresey!&lt;/h3&gt;
-&lt;p&gt;I know, I know - this website itself uses a little, teeny-tiny amount of CSS. I am indeed a hypocrite - but did I ever claim that I &lt;em&gt;practice&lt;/em&gt; what I preach? At least this personal website is JavaScript-free&amp;#8230; (apart from a handful of CodePen examples embedded in some of the tutorials).&lt;/p&gt;
-&lt;h3 id=&quot;moving-on&quot;&gt;Moving On&amp;#8230;&lt;/h3&gt;
-&lt;p&gt;I&amp;#8217;m not a complete idiot. I realize that the web has evolved significantly over the years, and to propose that it should have remained stagnant with it&amp;#8217;s original concept of &amp;#8220;paged documents&amp;#8221; is foolish. But that &lt;em&gt;is&lt;/em&gt; what I&amp;#8217;m suggesting - at least, partially.&lt;/p&gt;
-&lt;h3 id=&quot;consistent-boring&quot;&gt;Consistent &amp;#38; Boring&lt;/h3&gt;
-&lt;p&gt;Out there in the multiverse is a reality where the web is a complete borefest. Information is the only driving factor to visit a &amp;#8220;web page&amp;#8221; and PWAs have never come to exist. Custom styling, fancy interactive animations and single-page functionality isn&amp;#8217;t even something that can be implemented. The web is just a system of HTML&amp;#47;plaintext documents sharing information and data. Users browse the web in quick bursts to satisfy their queries or read something interesting. Then, they return to &lt;em&gt;real life&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;My goodness what a &lt;em&gt;beautiful&lt;/em&gt; reality that would be. Consistent, boring and wonderful.&lt;/p&gt;
-&lt;h3 id=&quot;wait---arent-you-a-designer&quot;&gt;&amp;#8220;Wait - Aren&amp;#8217;t You a Designer?&amp;#8221;&lt;/h3&gt;
-&lt;p&gt;Yes - and again more hypocrisy. My livelihood depends on software requiring custom UIs and properly audited UX flows. By suggesting this change I am throwing myself under the bus and putting myself out of work. All my experience would become worthless and the world of software &lt;em&gt;design&lt;/em&gt; would cease to exist.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;I would be okay with that&lt;/strong&gt;. If it meant the web as a whole was a better place - so be it.&lt;/p&gt;
-&lt;h3 id=&quot;a-look-at-the-new-world&quot;&gt;A Look at the &amp;#8220;New World&amp;#8221;&lt;/h3&gt;
-&lt;p&gt;Sometimes it is easier to visualize a concept instead of just discussing it. Below you can find an example of a &amp;#8220;converted&amp;#8221; website[^1] showcasing how sites would look and feel in this design-less reality:&lt;/p&gt;
+&lt;p&gt;The overall styling is fairly simple (which is great for browser support) with only a couple pseudo elements. It&amp;#8217;s important to include the custom &lt;code&gt;Sansation&lt;/code&gt; typeface, since this is what the game uses for most UI elements and terminals. (I&amp;#8217;m loading in this font via my &lt;a href=&quot;https://opentype.netlify.app&quot;&gt;OpenType side project&lt;/a&gt;)&lt;/p&gt;
+&lt;p&gt;The most important properties that truly bring this design together are those associated with the &lt;code&gt;.outer-frame&lt;/code&gt; and &lt;code&gt;.screen&lt;/code&gt; pseudo elements. Both of these elements use custom &lt;code&gt;background-images&lt;/code&gt; that give a little more depth and life to the terminal - in this case fingerprints, dust and smudges.&lt;/p&gt;
+&lt;p&gt;Feel free to swap these image textures out with your own and alter the terminal as you see fit!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/soma-terminal-css"/>
+ <id>https://btxx.org/posts/soma-terminal-css</id>
+ <updated>2021-05-29T10:00:00Z</updated>
+ <published>2021-05-29T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Never Do Spec Work for Free</title>
+ <content type="html">&lt;h1 id=&quot;never-do-spec-work-for-free&quot;&gt;Never Do Spec Work for Free&lt;/h1&gt;
+&lt;p&gt;2022-11-07&lt;/p&gt;
+&lt;p&gt;Your time is valuable and shouldn&amp;#8217;t be taken for granted. Let me say that again for the people in the back: &lt;em&gt;your time is valuable and shouldn&amp;#8217;t be taken for granted&lt;/em&gt;. Time is the most precious commodity we have as human beings, so never waste that time on free &amp;#8220;spec&amp;#8221; work. It&amp;#8217;s never worth it. Ever.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ve had up-and-coming designers reach out to me multiple times and ask specifically about completing spec work or &amp;#8220;challenges&amp;#8221; presented by hiring staff. My first question is normally, &amp;#8220;Are they paying you for it?&amp;#8221;. If the answer is no, then I tell these individuals to move on. The company and the role is not worth their time.&lt;/p&gt;
+&lt;p&gt;There are plenty of companies that respect the hiring process and will pay you for your time. Good on them. These are the places that you should be striving to work with&amp;#47;for. Avoid those who don&amp;#8217;t. If they don&amp;#8217;t respect your time before they even consider hiring you, what makes you think they&amp;#8217;ll respect it once you&amp;#8217;re on the team?&lt;/p&gt;
+&lt;h2 id=&quot;never&quot;&gt;Never?&lt;/h2&gt;
+&lt;p&gt;Never. If a company or individual is considering you for a role, so much so that they are interested in seeing how you would work with them directly, &lt;strong&gt;they need to pay you&lt;/strong&gt;. These companies (large or small) would &lt;em&gt;laugh&lt;/em&gt; at the concept of doing something free for you. Why is their time respected but yours isn&amp;#8217;t?&lt;/p&gt;
+&lt;h2 id=&quot;asking-for-free-spec-work-stop.&quot;&gt;Asking for Free Spec Work? Stop.&lt;/h2&gt;
+&lt;p&gt;If you&amp;#8217;re implementing these practices at your place of business, then you&amp;#8217;re part of the problem. Maybe you need a more robust candidate review process, so those interviewees you are willing to pay for &amp;#8220;code challenges&amp;#8221; or spec work are more finely tuned. Maybe you just need to re-evaluate how much you value the workers you&amp;#8217;re looking to hire.&lt;/p&gt;
+&lt;p&gt;The software world is a strange beast where we have adapted this &amp;#8220;work for free before we &lt;em&gt;think&lt;/em&gt; about paying you&amp;#8221;. Imagine implementing this system for something like a plumber?&lt;/p&gt;
+&lt;p&gt;&amp;#8220;Hey, could you install this new sink for me - for &lt;strong&gt;free&lt;/strong&gt;? Then, if I think you did a good job, I can start to pay you for other work around my house?&amp;#8221;&lt;/p&gt;
+&lt;p&gt;Good luck with that.&lt;/p&gt;
+&lt;h2 id=&quot;be-confident&quot;&gt;Be Confident&lt;/h2&gt;
+&lt;p&gt;This post is mostly targeted to new designers and developers, but can certainly still apply to those with years of experience under their belts. I&amp;#8217;ve been guilty of doing free spec work years ago when I was first starting out (my grey hairs are showing&amp;#8230;) and it &lt;strong&gt;never&lt;/strong&gt; paid off. Literally and figuratively. Learn through my own mistakes and just walk away from people asking you to work for free.&lt;/p&gt;
+&lt;p&gt;No matter what you think about your skill level or real-world experience, you need to have at least a bare-minimum standard for yourself: &lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Never work for free&lt;/strong&gt; &amp;#8211; Unless you &lt;em&gt;choose&lt;/em&gt; to work for free on something like a personal or open source project. That is obviously a different situation!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/spec"/>
+ <id>https://btxx.org/posts/spec</id>
+ <updated>2022-11-07T10:00:00Z</updated>
+ <published>2022-11-07T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Migrating from GitHub to sourcehut</title>
+ <content type="html">&lt;h1 id=&quot;migrating-from-github-to-sourcehut&quot;&gt;Migrating from GitHub to sourcehut&lt;/h1&gt;
+&lt;p&gt;2022-11-14&lt;/p&gt;
+&lt;p&gt;It has taken a little bit longer than I anticipated, but I have finally started to port over all my personal open-source projects to &lt;a href=&quot;https://sourcehut.org&quot;&gt;sourcehut.org&lt;/a&gt;. I&amp;#8217;ll get into the &lt;em&gt;why&lt;/em&gt; and &lt;em&gt;how&lt;/em&gt; momentarily, but first let&amp;#8217;s take a look at all the impacted projects:&lt;/p&gt;
+&lt;h2 id=&quot;ported-projects&quot;&gt;Ported Projects&lt;/h2&gt;
&lt;ul&gt;
-&lt;li&gt;Wealthsimple: &lt;a href=&quot;https://www.wealthsimple.com/en-ca/&quot;&gt;Current Website&lt;/a&gt; &amp;#47; &lt;a href=&quot;/etc/html-only/wealthsimple/&quot;&gt;New Version&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://vanillacss.com&quot;&gt;Vanilla CSS&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://1mb.club&quot;&gt;1mb.club&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://pblog.bt.ht&quot;&gt;pblog&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://shinobi.bt.ht&quot;&gt;shinobi&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://audit.bt.ht&quot;&gt;Web Audit&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;As you can see, all the &lt;em&gt;fluff&lt;/em&gt; has been removed from the existing design and only the content remains. No scroll-jacking or extra JavaScript libraries are downloaded. Users can easily skim through all the content and screen readers won&amp;#8217;t struggle through any custom elements. It also loads incredibly fast.&lt;/p&gt;
-&lt;p&gt;Of course, to our[^2] eyes, this design might look ugly or seem as though the site&amp;#8217;s CSS failed to load - but in a reality where this is the standard, it is beautifully minimal. Either way, I find that this was at least a fun thought experiment and hopefully leaves you thinking about how the web &lt;em&gt;could have been&lt;/em&gt; as well.&lt;/p&gt;
-&lt;p&gt;Now, back to designing UIs for the web&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;still-wip&quot;&gt;Still WIP&lt;/h2&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;a href=&quot;https://1kb.club&quot;&gt;1kb.club&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://phpetite.org&quot;&gt;phpetite.org&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;&lt;em&gt;Some others are being worked on but have less &amp;#8220;popularity&amp;#8221;&lt;/em&gt;&lt;/p&gt;
+&lt;h2 id=&quot;why&quot;&gt;Why?&lt;/h2&gt;
+&lt;p&gt;GitHub has landed itself in some hot water with their &lt;a href=&quot;https://githubcopilotlitigation.com/&quot;&gt;recent lawsuit(s) surrounding their Copilot feature&lt;/a&gt;. I was already on the fence about keeping GitHub as my main &amp;#8220;code forge&amp;#8221; after they were scooped up by Microsoft, who then killed off Atom and then started collecting telemetry data through VSCode. This seemed like a good excuse as any to finally leave the platform. The &lt;em&gt;straw&lt;/em&gt;, if you will.&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;&amp;#62;&amp;#62; Sourcehut has entered the chat &amp;#60;&amp;#60;&lt;/em&gt;&lt;/p&gt;
+&lt;p&gt;We, as designers and developers, shouldn&amp;#8217;t be supporting crap like this. I would much rather put my money where my mouth is and directly support a truly transparent alternative[^1]. Although I might only be paying for the &lt;strong&gt;Typical Hacker&lt;/strong&gt; tier on &lt;a href=&quot;https://sourcehut.org/pricing/&quot;&gt;sourcehut&lt;/a&gt;, I like to think that every little bit helps the platform. Even if you choose a different code forge, please consider donating to support independent alternatives!&lt;/p&gt;
+&lt;h2 id=&quot;git-email-jump-into-the-deep-end&quot;&gt;Git Email? Jump into the Deep End&lt;/h2&gt;
+&lt;p&gt;One aspect of sourcehut that initially scared me off was the lack of a proper &amp;#8220;PR-flow&amp;#8221;, web UI-based system[^2]. Instead, reporting bugs, creating tickets, and submitting PATCHES are generally done through regular, plain-text email.&lt;/p&gt;
+&lt;p&gt;In the end, I&amp;#8217;m glad I stuck it out. I&amp;#8217;m still pretty slow with this new workflow (so please be patient with me if you submit a patch on a project!) but it actually seems cleaner. The phrase &amp;#8220;streamlined&amp;#8221; is what comes to mind.&lt;/p&gt;
+&lt;p&gt;And really, if you think about it, at one point in time GitHub&amp;#8217;s PR system would have been &amp;#8220;new&amp;#8221; for most users. Everything takes time to learn. This workflow is no different.&lt;/p&gt;
+&lt;p&gt;Drew (creator of sourcehut) actually put together an extremely helpful guide on getting &lt;a href=&quot;https://git-send-email.io/&quot;&gt;setup with git send-email&lt;/a&gt;. I still reference back to this if&amp;#47;when I need to get up-and-running on a new machine. I highly recommend checking it out.&lt;/p&gt;
+&lt;h2 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h2&gt;
+&lt;p&gt;That&amp;#8217;s it really. I&amp;#8217;m still in the process of moving over some projects, archiving original GitHub repos and becoming more adapted to the whole sourcehut &amp;#8220;workflow&amp;#8221;. I&amp;#8217;m enjoying it and it feels good to pay for something that is not only useful but open source at its core.&lt;/p&gt;
+&lt;p&gt;Will I be deleting my GitHub profile outright? Maybe. I&amp;#8217;m not sure. For now the first step is removing any dependence I once had on that platform. Baby steps.&lt;/p&gt;
+&lt;p&gt;For those interested, my sourcehut public profile is: &lt;a href=&quot;https://sr.ht/~bt/&quot;&gt;https:&amp;#47;&amp;#47;sr.ht&amp;#47;~bt&amp;#47;&lt;/a&gt;. Maybe I&amp;#8217;ll see you on the other side ;)&lt;/p&gt;
&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;Selected site based on my own personal preference&lt;/li&gt;
-&lt;li&gt;Referring to current users of the web&lt;/li&gt;
+&lt;li&gt;I keep an up-to-date document of all the open source software&amp;#47;communities I pay for on &lt;a href=&quot;/uses&quot;&gt;my &amp;#8220;Uses&amp;#8221; page&lt;/a&gt; for reference.&lt;/li&gt;
+&lt;li&gt;Put your pitchforks and torches away - I&amp;#8217;m aware that a web-facing UI exists on sourcehut as well!&lt;/li&gt;
&lt;/ol&gt;</content>
- <link href="https://btxx.org/css-js-mistake"/>
- <id>https://btxx.org/css-js-mistake</id>
- <updated>2021-11-03T10:00:00Z</updated>
- <published>2021-11-03T10:00:00Z</published>
- </entry>
- <entry>
- <title>Web Development on a $200 Chromebook</title>
- <content type="html">&lt;h1 id=&quot;web-development-on-a-200-chromebook&quot;&gt;Web Development on a $200 Chromebook&lt;/h1&gt;
-&lt;p&gt;2020-01-07&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;This blog post was written, edited and tested locally&lt;/em&gt; on a cheap $200 Chromebook. The article draft was composed in Sublime Text. Jekyll (the SSG this website uses) was generated via the Linux Beta Terminal running alongside Chrome OS. It was then pushed to the Github repo from the same Terminal and published automatically to Netlify. But more on that later.&lt;/p&gt;
-&lt;p&gt;First, we need to ask an important question: why use a Chromebook for web development? Maybe a better question might be: why not?&lt;/p&gt;
-&lt;h2 id=&quot;mild-interest-turned-into-an-experiment&quot;&gt;Mild interest turned into an experiment&lt;/h2&gt;
-&lt;p&gt;Looking from the outside, I always liked the concept of the Chrome OS ecosystem. It had a solid list of features that appealed to me, specifically:&lt;/p&gt;
+ <link href="https://btxx.org/posts/srht2"/>
+ <id>https://btxx.org/posts/srht2</id>
+ <updated>2022-11-14T10:00:00Z</updated>
+ <published>2022-11-14T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Stay Hungry</title>
+ <content type="html">&lt;h1 id=&quot;stay-hungry&quot;&gt;Stay Hungry&lt;/h1&gt;
+&lt;p&gt;2018-02-12&lt;/p&gt;
+&lt;p&gt;It can feel daunting in this developer &amp;#47; designer landscape to keep yourself up-to-date with the latest and greatest technologies available. Which new framework should I invest the most time into? Will it even be maintained a couple years down the road? Is it just a fad?&lt;/p&gt;
+&lt;p&gt;What about programming languages? Should I learn as many as possible or should I become an expert in one specialized area? &lt;em&gt;Should designers code?&lt;/em&gt; The list of possible &lt;em&gt;new&lt;/em&gt; things you could be learning continues to grow.
+This is sarcasm. Please don&amp;#8217;t take this seriously&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;jumping-right-in&quot;&gt;Jumping right in&lt;/h2&gt;
+&lt;p&gt;Want my advice? Pick something and dive head first into it. Don&amp;#8217;t worry if it&amp;#8217;s not the most popular programming language or if it&amp;#8217;s a new design system that isn&amp;#8217;t gaining much traction. Do you find it interesting? Awesome - that&amp;#8217;s what matters most. How can you teach yourself something new when you have &lt;em&gt;zero&lt;/em&gt; interest in it?&lt;/p&gt;
+&lt;h2 id=&quot;less-talk-more-action&quot;&gt;Less talk, more action&lt;/h2&gt;
+&lt;p&gt;So what am I currently doing to keep my mind fresh and thinking outside of my comfort zone?&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Blazingly fast boot times&lt;/li&gt;
-&lt;li&gt;Long lasting battery life (roughly 8 hours with consistent usage)&lt;/li&gt;
-&lt;li&gt;Extremely cheap entry point for &amp;#8220;low-end&amp;#8221; devices&lt;/li&gt;
-&lt;li&gt;And, more recently, support for Android &amp;#38; Linux apps&lt;/li&gt;
+&lt;li&gt;Teaching myself the R programming language&lt;/li&gt;
+&lt;li&gt;Deep diving into the &lt;code&gt;ggplot2&lt;/code&gt; package&lt;/li&gt;
+&lt;li&gt;Developing my first side project website using &lt;code&gt;blogdown&lt;/code&gt; and Hugo&lt;/li&gt;
+&lt;li&gt;Trying out Figma as my exclusive design program for the next few months&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;The obvious downside to using a Chromebook is the lack of a &amp;#8220;real&amp;#8221; operating system. A Windows, Mac or Linux machine will always have more flexibility and depth than a simple Chromebook. But I&amp;#8217;ve found that simple is all I need - or want.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Side note:&lt;/strong&gt; &lt;em&gt;I wrote an article not to long ago about &lt;a href=&quot;https://uglyduck.ca/stop-crawling-google/&quot;&gt;blocking Google from my website&lt;/a&gt; and I can see how this current post may come across as hypocritical. Since the search&amp;#47;AMP teams are not that same as the Chrome OS &amp;#47; Chromebook development team, I can view each of those projects based on their own merits. If you still view me as a hypocrite, that&amp;#8217;s fine&lt;/em&gt; :)&lt;/p&gt;
-&lt;h2 id=&quot;my-use-case-ymmv&quot;&gt;My use case (YMMV)&lt;/h2&gt;
-&lt;p&gt;I ended up grabbing the &lt;a href=&quot;https://amzn.to/2Xvx20q&quot;&gt;Acer 11 N7 Chromebook&lt;/a&gt; off of Amazon for $200 (on sale and in Canuck bucks). It comes packed with 4GB of RAM with an Intel Celeron (1.6GHz) and 32GB of storage. Fairly barebones stuff.&lt;/p&gt;
-&lt;p&gt;My day-to-day use cases are fairly straightforward. I work with git, static site generators, WordPress locally and on staging servers, edit documents, send emails and watch stupid YouTube videos. You know, the basics. My dirt-cheap Chromebook handles all of these things with ease.&lt;/p&gt;
-&lt;p&gt;My Chromebook setup is as follows:&lt;/p&gt;
+&lt;p&gt;Programming your brain to learn something new can be frustrating and pull you out of your comfort zone. Don&amp;#8217;t let this become stressful - instead use it as inspiration to push yourself through the struggle.&lt;/p&gt;
+&lt;p&gt;There is no real reason to avoid learning something new outside your current circle of knowledge - only crappy excuses.&lt;/p&gt;
+&lt;p&gt;Get on it.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/stay-hungry"/>
+ <id>https://btxx.org/posts/stay-hungry</id>
+ <updated>2018-02-12T10:00:00Z</updated>
+ <published>2018-02-12T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Stop Using Sticky Navigation on Mobile</title>
+ <content type="html">&lt;h1 id=&quot;stop-using-sticky-navigation-on-mobile&quot;&gt;Stop Using Sticky Navigation on Mobile&lt;/h1&gt;
+&lt;p&gt;2019-10-06&lt;/p&gt;
+&lt;p&gt;Stop styling your web elements to be &amp;#8220;sticky&amp;#8221; on mobile. This creates a horrible experience for your users and also looks like trash from a UI perspective. Don&amp;#8217;t style your navigation (or any components for that matter) to be &amp;#8220;sticky&amp;#8221; on mobile. They create poor experiences for your users and take away valuable screen space.&lt;/p&gt;
+&lt;h2 id=&quot;what-do-you-mean-by-sticky&quot;&gt;What do you mean by &amp;#8220;sticky&amp;#8221;?&lt;/h2&gt;
+&lt;p&gt;The concept of &lt;em&gt;sticky&lt;/em&gt; elements include but are not exclusive to:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Linux Beta (ships with &lt;code&gt;git&lt;/code&gt;, etc)&lt;/li&gt;
-&lt;li&gt;Sublime Text (you can always use VSCode if you prefer)&lt;/li&gt;
-&lt;li&gt;Terminal&lt;/li&gt;
-&lt;li&gt;Local by Flywheel (local WordPress development)&lt;/li&gt;
-&lt;li&gt;Figma in Chrome (UI design &amp;#47; mockups)&lt;/li&gt;
+&lt;li&gt;Navigations that follow users as they scroll&lt;/li&gt;
+&lt;li&gt;Chatbot prompt bubbles eating up half the bottom of the screen&lt;/li&gt;
+&lt;li&gt;Banners or modal prompts that pester the user to &amp;#8220;sign up, accept cookies&amp;#8221; etc.&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;That&amp;#8217;s it. I understand other developers may require a lot more than this, but with Linux running in a container alongside Chrome OS you can pretty much run anything you could possibly need (excluding exclusive Mac &amp;#38; Windows apps, of course).&lt;/p&gt;
-&lt;h2 id=&quot;can-a-200-chromebook-be-your-next-web-dev-machine&quot;&gt;Can a $200 Chromebook be your next web dev machine?&lt;/h2&gt;
-&lt;p&gt;For me? Yes. For you? Maybe.&lt;/p&gt;
-&lt;p&gt;I mean, it really just depends on what you need your machine to accomplish. If you can be productive and the apps you use are just as fast and responsive as they would be on a more robust OS - then I say go for it. You don&amp;#8217;t even need to be a cheapo like me, instead you can snag a fancier Chromebook or Google&amp;#8217;s own Pixelbook. There are a ton of options when it comes to Chrome OS based devices.&lt;/p&gt;
-&lt;p&gt;If you wanted to experiment to see if the Chrome OS ecosystem could work with your development flow, you can always check out something like &lt;a href=&quot;https://www.neverware.com/freedownload&quot;&gt;CloudReady&lt;/a&gt; to test on your current machine before pulling the trigger.&lt;/p&gt;
-&lt;p&gt;In the end, it doesn&amp;#8217;t matter what operating system or apps you use to get your development work done - so long as it is productive and easy-to-use.&lt;/p&gt;
-&lt;p&gt;For my current situation, all I need is my cheap little Chromebook.&lt;/p&gt;</content>
- <link href="https://btxx.org/chromebook-web-dev"/>
- <id>https://btxx.org/chromebook-web-dev</id>
- <updated>2020-01-07T10:00:00Z</updated>
- <published>2020-01-07T10:00:00Z</published>
- </entry>
- <entry>
- <title>Portable Pi: Cheap Raspberry Pi Zero Hacker Terminal</title>
- <content type="html">&lt;h1 id=&quot;portable-pi-cheap-raspberry-pi-zero-hacker-terminal&quot;&gt;Portable Pi: Cheap Raspberry Pi Zero Hacker Terminal&lt;/h1&gt;
-&lt;p&gt;2020-09-16&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;I recently came across &lt;a href=&quot;https://n-o-d-e.net/zeroterminal3.html&quot;&gt;the incredibly cool design&lt;/a&gt; for an &amp;#8220;ultimate Raspberry Pi computer&amp;#8221;&lt;/em&gt; by NODE and was inspired to create my own &amp;#8220;portable&amp;#8221; Pi device. Although, with my concept, I decided to set a few restrictions on the build:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;I wanted to keep the total cost as low as possible
+&lt;p&gt;&lt;strong&gt;These are bad and you should feel bad for implementing them.&lt;/strong&gt; Spacing and layout is a critical part of a product’s design and greatly impacts the experience of its users. Stop screwing it up with ugly sticky elements.&lt;/p&gt;
+&lt;p&gt;First, let&amp;#8217;s breakdown &amp;#8220;sticky&amp;#8221; navigations and why they&amp;#8217;re terrible. We&amp;#8217;ll also go over some easy solutions to avoid making these bad design decisions in the first place.&lt;/p&gt;
+&lt;h2 id=&quot;the-stalking-navigation&quot;&gt;The stalking navigation&lt;/h2&gt;
+&lt;p&gt;When you make a decision to eat away &lt;code&gt;&amp;#62;50px&lt;/code&gt; of space at the top of the page for your site&amp;#8217;s navigation - you&amp;#8217;re hurting your users. You&amp;#8217;re also making their time interacting with your website more painful.&lt;/p&gt;
+&lt;p&gt;&amp;#8220;Wait!&amp;#8221; I hear sticky-nav defenders exclaim, &amp;#8220;this navigation bar makes it so the user can &lt;em&gt;easily&lt;/em&gt; interact with the site&amp;#8217;s pages!&amp;#8221;&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;What absolute rubbish.&lt;/strong&gt; A user should only see a website&amp;#8217;s navigation when they &lt;em&gt;need to use it&lt;/em&gt;. This isn&amp;#8217;t rocket science.&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s a take a look at the problem:&lt;/p&gt;
+&lt;p&gt;Knowing when to show navigation can be easily solved where the user isn&amp;#8217;t bogged down with a chunk of their screen permanently taken away, all the while still having access to the navigation. This can be fixed by simply understanding the user context at a given time. See below:&lt;/p&gt;
+&lt;p&gt;Here the navigation flows up with the rest of the page as the user scrolls the main content into view. Don&amp;#8217;t worry about creating confusion - the user knows the navigation is still at the top of the page because they &lt;em&gt;watched it scroll out of view&lt;/em&gt;. This is best paired by having a matching navigation in the footer of the page as well. That way, when the user makes it to the end of a specific view they can change pages right in the &amp;#8220;footer&amp;#8221;. No need to scroll back to the top.&lt;/p&gt;
+&lt;h2 id=&quot;the-best-of-both-worlds&quot;&gt;The best of both worlds?&lt;/h2&gt;
+&lt;p&gt;Maybe you want to hide the navigation without losing the flexibility of it always being accessible at the top of the page? This is possible, although I find it still &lt;em&gt;somewhat&lt;/em&gt; intrusive on the user. An easy way achieve this is by displaying the navigation when users perform a specific action, such as:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;including the Pi Zero &lt;em&gt;and&lt;/em&gt; extra hardware&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;I wanted to avoid any custom casings or need for 3D printed materials&lt;/li&gt;
-&lt;li&gt;I wanted to make the full design extremely portable &amp;#47; lightweight&lt;/li&gt;
-&lt;li&gt;I wanted to keep the build as user-friendly as possible (no soldering, odd hacks etc.)&lt;/li&gt;
+&lt;li&gt;Long or multiple upward swipes on the page&lt;/li&gt;
+&lt;li&gt;Pull down menu from top of current view (easily shown to user)&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;With these constraints put in place, I built my very own Raspberry Pi Zero &amp;#8220;hacker&amp;#8221; terminal. You can see the finished product below:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/portable-pi-1.webp&quot; alt=&quot;Portable Pi front&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/portable-pi-2.webp&quot; alt=&quot;Portable Pi back&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m pretty happy with the final outcome and best of all - you can easily recreate this yourself with little-to-no effort!&lt;/p&gt;
-&lt;p&gt;So enough chit-chat - let&amp;#8217;s build this bad-boy!&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Most items in the hardware section are Amazon affiliate links&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;h2 id=&quot;table-of-contents&quot;&gt;Table of Contents&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;&lt;a href=&quot;#expectations&quot;&gt;Setting Expectations&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#hardware&quot;&gt;The Hardware&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#software&quot;&gt;The Software&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#setup&quot;&gt;Getting Setup&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#summary&quot;&gt;Final Summary&lt;/a&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;&lt;strong&gt;This hardware will not&lt;/strong&gt; replace your laptop or any other &amp;#8220;high-powered&amp;#8221; portable device. Honestly, you&amp;#8217;re mobile phone would (most likely) work better in terms of a compact-sized computer. The concept behind this &amp;#8220;portable pi&amp;#8221; project was to make something &lt;em&gt;for fun&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;Please reserve any sassy comments about how buying a cheap $50 laptop off eBay would be more efficient than building out something like I have done here. You&amp;#8217;re missing the point entirely.&lt;/p&gt;
-&lt;p&gt;Moving on for those still interested&amp;#8230; &lt;/p&gt;
-&lt;p&gt;I live in Canada, so some of the options are based on available hardware near my location. You&amp;#8217;re likely to find similar hardware close to your own country for better pricing &amp;#47; shipping costs.&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: I&amp;#8217;ve decided to use a wireless, USB dongle-based keyboard. You can opt to use a bluetooth-based keyboard, but I just find them more trouble than they are worth (keeping a charge, losing connections, interference from other devices)&lt;/p&gt;
-&lt;/blockquote&gt;
+&lt;h2 id=&quot;navigations-arent-the-only-culprits&quot;&gt;Navigations aren&amp;#8217;t the only culprits&lt;/h2&gt;
+&lt;p&gt;I wish that navigation items were the only sinners of the &amp;#8220;sticky&amp;#8221; position on mobile - but they are not alone. A few other problematic components include:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;SBC: &lt;a href=&quot;https://amzn.to/3jCVXHG&quot;&gt;Raspberry Pi Zero WH&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Storage &amp;#47; OS: &lt;a href=&quot;https://amzn.to/2GHm01R&quot;&gt;64GB Micro SD Card&lt;/a&gt; (Always have an SD backup!)&lt;/li&gt;
-&lt;li&gt;Battery HAT: &lt;a href=&quot;https://amzn.to/3jGq8xp&quot;&gt;Li-ion Battery HAT&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Battery: &lt;em&gt;This depends on your location. I was able to order &lt;a href=&quot;https://www.walmart.ca/en/ip/Brand-New-4-Pcs-2500mAh-TR14500-3-7V-Rechargeable-Li-ion-Battery-for-Flashlight-Torch/PRD3Z73LMZZ3VK9&quot;&gt;online through Walmart&lt;/a&gt;, but if you live in the USA there are plenty of battery-specific vendors available. Find whatever works best for your needs!&lt;/em&gt;&lt;/li&gt;
-&lt;li&gt;Display: &lt;a href=&quot;https://www.buyapi.ca/product/3-5-inch-raspberry-pi-tft-display/&quot;&gt;KeDei 3.5-inch TFT Display&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Keyboard: &lt;a href=&quot;https://amzn.to/2Gqkwt6&quot;&gt;Mini USB Wireless Keyboard&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Adapter: &lt;a href=&quot;https://amzn.to/36I6T3c&quot;&gt;Micro USB OTG Cable&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Chatbot or support &amp;#8220;bubbles&amp;#8221;&lt;/li&gt;
+&lt;li&gt;&amp;#8220;Agree to our cookies&amp;#8221; prompts&lt;/li&gt;
+&lt;li&gt;Time-based pop-up modals&lt;/li&gt;
&lt;/ul&gt;
-&lt;h4 id=&quot;raspberry-pi-zero-wh&quot;&gt;Raspberry Pi Zero WH&lt;/h4&gt;
-&lt;p&gt;You will need a Raspberry Pi Zero W with GPIO header pins already soldered on to the board. (You could also do this yourself manually if you have the tools and skill to do so)&lt;/p&gt;
-&lt;h4 id=&quot;li-ion-battery-hat&quot;&gt;Li-Ion Battery HAT&lt;/h4&gt;
-&lt;p&gt;This HAT holds a single li-ion battery and for our purposes will connect with our Pi Zero via the GPIO header pins. You could also look into double-set battery HATs if that is something you would prefer - for my needs a single rechargeable battery works fine.&lt;/p&gt;
-&lt;p&gt;Since our main &amp;#8220;OS&amp;#8221; is purely terminal based, I find you don&amp;#8217;t really need a li-ion battery with a massive amount of power storage. 2500mAh will easily last a handful of hours mucking about with emails, files and web browsing. Plus, you can always carry a few extras for swapping out on-the-go.&lt;/p&gt;
-&lt;h4 id=&quot;3.5-inch-tft-display&quot;&gt;3.5-inch TFT Display&lt;/h4&gt;
-&lt;p&gt;A simple and fairly cheap touchscreen display. We won&amp;#8217;t require our display to render videos or pretty graphics (since we will be entirely terminal-based) so this works just fine for our needs. I am using version 6.3 for this build.&lt;/p&gt;
-&lt;h4 id=&quot;micro-usb-otg-adapter&quot;&gt;Micro USB OTG Adapter&lt;/h4&gt;
-&lt;p&gt;As mentioned above, this item is optional if you feel more comfortable with using a pure bluetooth keyboard. I just personally prefer this method.&lt;/p&gt;
-&lt;h4 id=&quot;wireless-keyboard&quot;&gt;Wireless Keyboard&lt;/h4&gt;
-&lt;p&gt;In my product demo image at the beginning of the article, I&amp;#8217;m actually using an old Logitech wireless keyboard since this one still hasn&amp;#8217;t arrived. I plan to swap them out once I have it - the Logitech is far to large to be deemed &amp;#8220;portable&amp;#8221;.&lt;/p&gt;
+&lt;p&gt;Every time you implement one of these components, somewhere in the world a puppy dies. Seriously - don&amp;#8217;t be part of the problem and build these things. Push back on &amp;#8220;marketing research&amp;#8221; or team leads who tell you that this crap works. You&amp;#8217;re making the mobile web worse for everyone and setting a terrible precedent for future developers.&lt;/p&gt;
+&lt;p&gt;Stay &lt;em&gt;static&lt;/em&gt;, my friends!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/sticky-elements"/>
+ <id>https://btxx.org/posts/sticky-elements</id>
+ <updated>2019-10-06T10:00:00Z</updated>
+ <published>2019-10-06T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Yes, I Still Use jQuery</title>
+ <content type="html">&lt;h1 id=&quot;yes-i-still-use-jquery&quot;&gt;Yes, I Still Use jQuery&lt;/h1&gt;
+&lt;p&gt;2019-04-15&lt;/p&gt;
+&lt;p&gt;I have seen a handful of condescending comments from front-end developers since the newest build of jQuery (&lt;a href=&quot;http://blog.jquery.com/2019/04/10/jquery-3-4-0-released/&quot;&gt;3.4.0&lt;/a&gt;) released a couple of days ago. While I understand not all developers share the same work-style or are using the same tech-stack, dismissive comments towards any &lt;em&gt;useful&lt;/em&gt; library comes off as entitled or elitist.&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Operating System: &lt;a href=&quot;https://www.raspberrypi.org/downloads/raspberry-pi-os/&quot;&gt;Raspberry Pi OS Lite&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Display Driver: &lt;a href=&quot;http://kedei.net/raspberry/raspberry.html&quot;&gt;KeDei 3.5 Driver&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Email: &lt;a href=&quot;https://github.com/LukeSmithxyz/mutt-wizard&quot;&gt;Neomutt&lt;/a&gt; (via Mutt Wizard)&lt;/li&gt;
-&lt;li&gt;Web Browser: &lt;a href=&quot;https://lynx.browser.org/&quot;&gt;Lynx&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Text Editor: &lt;a href=&quot;https://www.nano-editor.org/&quot;&gt;Nano&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Code Editor: &lt;a href=&quot;https://www.vim.org/&quot;&gt;Vim&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&amp;#8220;Why would you use jQuery nowadays?&amp;#8221; &lt;/li&gt;
+&lt;li&gt;&amp;#8220;People are still developing this library?&amp;#8221;&lt;/li&gt;
+&lt;li&gt;&amp;#8220;Why use jQuery when you can use [insert latest trendy web tech here]&amp;#8221;.&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;I will be setting up this &amp;#8220;portable pi&amp;#8221; via &lt;a href=&quot;https://www.raspberrypi.org/documentation/configuration/wireless/headless.md&quot;&gt;headless installation&lt;/a&gt; with my main &lt;a href=&quot;https://uglyduck.ca/my-pi-desktop/&quot;&gt;Raspberry Pi 4 desktop&lt;/a&gt;. Included below are some quick instructions on how to setup the Raspberry Pi Zero for &lt;code&gt;ssh&lt;/code&gt; access.&lt;/p&gt;
-&lt;h4 id=&quot;preparing-the-microsd-card&quot;&gt;Preparing the microSD card&lt;/h4&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;p&gt;Use Raspberry Pi Imager to write the Raspberry Pi Lite OS to your microSD card
-&lt;ul&gt;
-&lt;li&gt;Once complete, remove the microSD storage device and then re-connect it&lt;/li&gt;
-&lt;/ul&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Navigate to the &lt;code&gt;boot&lt;/code&gt; folder of the microSD device - we will be adding 2 files here
+&lt;p&gt;&lt;strong&gt;I still use jQuery&lt;/strong&gt;. Well, I may not use the library for all projects since every project is different - but I certainly don&amp;#8217;t avoid using it solely because &amp;#8220;its jQuery&amp;#8221;. I&amp;#8217;ve always believed in using the best tools for the job.&lt;/p&gt;
+&lt;h2 id=&quot;use-what-works-for-you&quot;&gt;Use what works for you&lt;/h2&gt;
+&lt;p&gt;If you produce better work in a shorter amount of time using one of the latest and greatest technologies (React, Vue.js, Angular, etc.) then you should absolutely do so. If another developer can be just as productive building their projects with jQuery, what does it matter in the grand scheme of things?&lt;/p&gt;
+&lt;p&gt;My thought-process is this: a large percentage of web projects are done for clients not involved in the day-to-day happenings of the developer world. What they want is a solution to a particular problem. Clients don&amp;#8217;t care how things are done behind the scenes - so long as it is done efficiently and &lt;em&gt;properly&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;I tend to follow these principles when working on a project (with shared equal importance):&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;First add a completely empty file and name it &lt;code&gt;ssh&lt;/code&gt; (no file extension)&lt;/li&gt;
-&lt;li&gt;Next add an empty file named &lt;code&gt;wpa_supplicant.conf&lt;/code&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Open the &lt;code&gt;wpa_supplicant.conf&lt;/code&gt; file in a code &amp;#47; text editor and paste the following (be sure to change &lt;code&gt;country&lt;/code&gt; to your proper country code, as well as properly setting your network name &amp;#47; password):&lt;/p&gt;
-&lt;p&gt;ctrl&lt;em&gt;interface=DIR=&amp;#47;var&amp;#47;run&amp;#47;wpa&lt;/em&gt;supplicant GROUP=netdev
-update_config=1
-country=US&lt;/p&gt;
-&lt;p&gt;network={
- ssid=&quot;Your network name&amp;#47;SSID&amp;#8221;
- psk=&quot;Your WPA&amp;#47;WPA2 security key&amp;#8221;
- key_mgmt=WPA-PSK
-}&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Unmount the microSD device, then place the microSD card in your RPi Zero&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Assemble the Raspberry Pi Zero with the Battery HAT (li-ion battery attached) connected via GPIO pins, and the 3.5 display connected on-top of the battery HAT&amp;#8217;s pins&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Turn on the battery HAT switch to power the RPi Zero. Give the device roughly 90 seconds to perform the initial boot&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;fast performance&lt;/li&gt;
+&lt;li&gt;accessible&lt;/li&gt;
+&lt;li&gt;simple UI&lt;/li&gt;
+&lt;li&gt;intuitive UX&lt;/li&gt;
&lt;/ul&gt;
+&lt;p&gt;As long as all of these items are accomplished, I don&amp;#8217;t care if the project was a direct export from Microsoft Word straight to the web1. If it works great, then it works great.&lt;/p&gt;
+&lt;p&gt;So use whatever tools make you a happier developer, as long as your projects don&amp;#8217;t suffer because of them.&lt;/p&gt;
+&lt;p&gt;1This would obviously be terrible for development, but its just an extreme example&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/still-using-jquery"/>
+ <id>https://btxx.org/posts/still-using-jquery</id>
+ <updated>2019-04-15T10:00:00Z</updated>
+ <published>2019-04-15T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Stripe Menu Dropdowns (CSS)</title>
+ <content type="html">&lt;h1 id=&quot;stripe-menu-dropdowns-css&quot;&gt;Stripe Menu Dropdowns (CSS)&lt;/h1&gt;
+&lt;p&gt;2020-03-31&lt;/p&gt;
+&lt;p&gt;In a previous article I wrote, &lt;a href=&quot;blog/minimal-css-menu&quot;&gt;Minimal CSS: Dropdown Menus&lt;/a&gt;, I showed how you could create a basic menu dropdown with only 121 bytes of CSS. While this demo is great for simple text-based menu dropdowns, it doesn&amp;#8217;t show just how complex (in a good way) you can make CSS-only menus. So, let&amp;#8217;s do just that.&lt;/p&gt;
+&lt;h2 id=&quot;what-we-want-to-emulate&quot;&gt;What we want to emulate&lt;/h2&gt;
+&lt;p&gt;I think, like most designers, that the UI and web design work from the &lt;a href=&quot;https://stripe.com/&quot;&gt;Stripe&lt;/a&gt; team is pretty fantastic. Their clean approach using subtle animations and minimal elements make for a pleasant experience. Unfortunately, there is one problem with their current dropdown menus on their main website:&lt;/p&gt;
+&lt;p&gt;They don&amp;#8217;t work if JavaScript is disabled.&lt;/p&gt;
+&lt;p&gt;But we can easily fix that. So enough chit-chat, let&amp;#8217;s rip-off their menu design and recreate it with only CSS!&lt;/p&gt;
+&lt;h3 id=&quot;original-stripe-website&quot;&gt;Original (&lt;a href=&quot;https://stripe.com&quot;&gt;Stripe Website&lt;/a&gt;)&lt;/h3&gt;
+&lt;h3 id=&quot;our-recreation-codepen-demo&quot;&gt;Our recreation (&lt;a href=&quot;https://codepen.io/bradleytaunt/full/ExjMjLL&quot;&gt;CodePen Demo&lt;/a&gt;)&lt;/h3&gt;
+&lt;p&gt;Although our redesign is far from an exact replica (some subtle animations are missing which could always be added) - it&amp;#8217;s still impressive what you can do with some bare-bones CSS. Just something to keep in mind the next time you decide to reach for a JavaScript library to implement a similar design.&lt;/p&gt;
+&lt;h2 id=&quot;see-it-live-in-action&quot;&gt;See it live in action&lt;/h2&gt;
+&lt;p&gt;Load in the CodePen below and play around with the menu dropdown. Feel free to re-use, break. share or steal this for any and all purposes. Enjoy!&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/ExjMjLL&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/stripe-menu-css"/>
+ <id>https://btxx.org/posts/stripe-menu-css</id>
+ <updated>2020-03-31T10:00:00Z</updated>
+ <published>2020-03-31T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Launching Sublime Text with dmenu on Alpine Linux</title>
+ <content type="html">&lt;h1 id=&quot;launching-sublime-text-with-dmenu-on-alpine-linux&quot;&gt;Launching Sublime Text with dmenu on Alpine Linux&lt;/h1&gt;
+&lt;p&gt;2023-04-13&lt;/p&gt;
+&lt;p&gt;Everyone seems to be running some version of VSCode as their main editor these days. But not me. I find VSCode to be too bloated for my needs - not to mention being built on top of electron instead of &lt;em&gt;native&lt;/em&gt; code. I prefer running programs that don&amp;#8217;t try to devour all of my machine&amp;#8217;s available memory or spike my CPU.&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: the display will turn on but only show a white screen - this is normal&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: It&amp;#8217;s important to remember my personal machine is a ThinkPad X201 with only 6GB of RAM (plan to upgrade to 8GB soon!). Obviously your mileage may vary if you&amp;#8217;re using a beefier laptop or desktop&amp;#8230;&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;h4 id=&quot;connecting-to-your-zero-via-ssh&quot;&gt;Connecting to your Zero via SSH&lt;/h4&gt;
-&lt;p&gt;Open the terminal on your Raspberry Pi desktop and enter the following command:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;ssh pi@raspberrypi.local
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;You will then be asked if you wish to trust this device (say yes), then prompted for the &lt;code&gt;pi&lt;/code&gt; user&amp;#8217;s password - which is &lt;code&gt;raspberry&lt;/code&gt;. After a moment you will be directly connected to your Raspberry Pi Zero. Hooray!&lt;/p&gt;
-&lt;p&gt;We just want to make a couple small configuration changes before going forward (mostly for security):&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Run the command &lt;code&gt;sudo raspi-config&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;Select &amp;#8220;Change User Password&amp;#8221; from the menu and change the password
-&lt;img src=&quot;/public/images/raspi-config.webp&quot; alt=&quot;Raspberry config&quot; /&gt;&lt;/li&gt;
-&lt;li&gt;After that, select &amp;#8220;Network Options&amp;#8221; and change your device name
-&lt;ul&gt;
-&lt;li&gt;This will avoid any conflicts of connecting to newer RPi devices down the line&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;That&amp;#8217;s it!&lt;/p&gt;
-&lt;h4 id=&quot;installing-display-driver&quot;&gt;Installing display driver&lt;/h4&gt;
-&lt;p&gt;Next we will need to download and run the drivers needed for our 3.5-inch display to play nicely with our Pi Zero (just a blank white screen doesn&amp;#8217;t help us much). While connected to our RPi Zero via SSH, run the following commands:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;wget http:&amp;#47;&amp;#47;kedei.net&amp;#47;raspberry&amp;#47;v6_1&amp;#47;LCD_show_v6_1_3.tar.gz
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If you have snail-paced rural internet like I do, now is a good time to go and grab a coffee while this download completes.&lt;/p&gt;
-&lt;p&gt;Once the download has finished, extract the contents and navigate to the new directory and install the driver:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo tar xzf LCD_show_v6_1_3.tar.gz
-cd LCD_show_v6_1_3
-sudo .&amp;#47;LCD35_v
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Once completed, the RPi Zero will reboot and everything should work as expected!&lt;/p&gt;
-&lt;h4 id=&quot;installing-software&quot;&gt;Installing software&lt;/h4&gt;
-&lt;p&gt;I&amp;#8217;m not going to jump into heavy details about installing terminal-based software for this setup. The links I&amp;#8217;ve attached in the software section should provide you with more than enough information to get started. For reference, I&amp;#8217;m using a very basic set of applications:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Neomutt (emails)&lt;/li&gt;
-&lt;li&gt;Lynx (quick and simple web browsing)&lt;/li&gt;
-&lt;li&gt;Nano (writing notes &amp;#47; blog posts in a hurry)&lt;/li&gt;
-&lt;li&gt;Vim (making any config edits or project work)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;There you have it - a terminal-based, portable Raspberry Pi Zero &amp;#8220;hacker&amp;#8221; device. &lt;/p&gt;
-&lt;p&gt;Is it practical? Not really. Can it replace any other &lt;em&gt;portable&lt;/em&gt; device you might own? Probably not. Is it fun to make and experiment on? You bet! And in the end - isn&amp;#8217;t that what matters most with pet Pi projects?&lt;/p&gt;</content>
- <link href="https://btxx.org/cheap-portable-pi"/>
- <id>https://btxx.org/cheap-portable-pi</id>
- <updated>2020-09-16T10:00:00Z</updated>
- <published>2020-09-16T10:00:00Z</published>
- </entry>
- <entry>
- <title>Chasing Performance</title>
- <content type="html">&lt;h1 id=&quot;chasing-performance&quot;&gt;Chasing Performance&lt;/h1&gt;
-&lt;p&gt;2017-11-20&lt;/p&gt;
-&lt;h2 id=&quot;update&quot;&gt;Update&lt;/h2&gt;
-&lt;p&gt;This post is no longer relevant since this blog has been redesigned since. I&amp;#8217;m keeping this article up as a point of reference.&lt;/p&gt;
-&lt;hr/&gt;
-&lt;p&gt;So I decided to participate in Smashing Mag&amp;#8217;s Front End Performance Challenge, not only for the potential of winning the prize but to further experiment with optimizing my site. (Web performance is a passion of mine)&lt;/p&gt;
-&lt;p&gt;Below I will breakdown the before &amp;#38; after statistics of my personal site and what changes I made in great detail.&lt;/p&gt;
-&lt;p&gt;I will be using both my homepage and the image-heavy article I recently wrote, The Death of Personality, as the basis for my tests.&lt;/p&gt;
-&lt;h3 id=&quot;lighthouse-score---homepage&quot;&gt;Lighthouse Score - Homepage&lt;/h3&gt;
-&lt;p&gt;Full source original stats &amp;#47;&amp;#47; Full source updated stats&lt;/p&gt;
-&lt;h3 id=&quot;lighthouse-score---article-page&quot;&gt;Lighthouse Score - Article Page&lt;/h3&gt;
-&lt;p&gt;Full source original stats &amp;#47;&amp;#47; Full source updated stats&lt;/p&gt;
-&lt;h3 id=&quot;web-page-test---homepage&quot;&gt;Web Page Test - Homepage&lt;/h3&gt;
-&lt;p&gt;Full source original stats &amp;#47;&amp;#47; Full source updated stats&lt;/p&gt;
-&lt;h3 id=&quot;web-page-test---article-page&quot;&gt;Web Page Test - Article Page&lt;/h3&gt;
-&lt;p&gt;Full source original stats &amp;#47;&amp;#47; Full source updated stats&lt;/p&gt;
-&lt;h3 id=&quot;quick-look&quot;&gt;Quick Look&lt;/h3&gt;
-&lt;p&gt;Though my homepage only made some minor speed performance enhancements, my article post&amp;#8217;s initial load time was slimmed down by a &lt;strong&gt;whopping 4.2 seconds!&lt;/strong&gt; That&amp;#8217;s pretty incredible and very noticeable from an end-user&amp;#8217;s perspective.&lt;/p&gt;
-&lt;h3 id=&quot;so---what-changed&quot;&gt;So - What Changed?&lt;/h3&gt;
-&lt;p&gt;Webfonts&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m not using any webfonts but instead defaulting to the user&amp;#8217;s OS System Fonts. I love custom typefaces but performance takes just too much of a hit on my personal site to bother with them.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;body {
-font-family: -apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,Oxygen,Ubuntu,Cantarell,&quot;Open Sans&quot;,&quot;Helvetica Neue&quot;,sans-serif,&quot;Sans Serif&quot;,Icons;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;For reference, there are some things you should to look out for when using custom typefaces:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Readability and accessibility&lt;/li&gt;
-&lt;li&gt;Possible extra overhead loading in a custom @font-face&lt;/li&gt;
-&lt;li&gt;Try to avoid any FOUT, FOIT, FOFT&lt;/li&gt;
-&lt;li&gt;Don&amp;#8217;t go down the rabbit hole of using 3rd party plugins to optimize something as basic as a typeface&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h3 id=&quot;critical-css&quot;&gt;Critical CSS&lt;/h3&gt;
-&lt;p&gt;This part was easy. In order to avoid the weird styling &amp;#8216;pops&amp;#8217; present on some websites when initially loading with slow connections, it&amp;#8217;s best to place all your most critical styling inline and then load your external CSS once everything else has loaded.&lt;/p&gt;
-&lt;p&gt;On top of that, I decided to also implement Filament Group&amp;#8217;s loadCSS function to load my CSS asynchronously. If you are not currently using this in any of your projects; stop reading this and go do it! It&amp;#8217;s a game changer.&lt;/p&gt;
-&lt;h3 id=&quot;critical-javascript&quot;&gt;Critical JavaScript&lt;/h3&gt;
-&lt;p&gt;My personal site only uses a small amount of JavaScript on the article post Jekyll template pages. By using the defer property I can be sure to load the IntersectionObserver API polyfill after the rest of the DOM as finished loading.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;script src=&quot;https:&amp;#47;&amp;#47;cdn.polyfill.io&amp;#47;v2&amp;#47;polyfill.min.js?features=IntersectionObserver&quot; defer&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;I could probably optimize this further by only calling these scripts if an image is actually present in the article post, but this fits my needs nicely as is.&lt;/p&gt;
-&lt;h3 id=&quot;responsive-images&quot;&gt;Responsive Images&lt;/h3&gt;
-&lt;p&gt;The only images I use are those included in supported blog posts, so the first step was making sure to only call iolazy.min.js on those specific template pages. The next step was defaulting to webp image formats with a lossless jpg fall-back with the help of the picture element:&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ve also included responsive image sizes for further optimization based on screen size and loading speeds.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;figure&amp;#62;
-&amp;#60;picture
- &amp;#60;source type=&quot;image&amp;#47;webp&quot;
- data-srcset=&quot;
- &amp;#47;images&amp;#47;articles&amp;#47;webp&amp;#47;flat-design-toggles_p0v2hv_c_scale,w_200.webp 200w,
- &amp;#47;images&amp;#47;articles&amp;#47;webp&amp;#47;flat-design-toggles_p0v2hv_c_scale,w_1400.webp 1400w&quot;
- class=&quot;lazyload&quot;&amp;#47;&amp;#62;
- &amp;#60;img
- sizes=&quot;(max-width: 1400px) 100vw, 1400px&quot;
- data-srcset=&quot;
- &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_200.webp 200w,
- &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_727.webp 727w,
- &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_1065.webp 1065w,
- &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_1400.webp 1400w&quot;
- src=&quot;&amp;#47;images&amp;#47;placeholder.webp&quot;
- alt=&quot;Toggles Comparison&quot;
- class=&quot;lazyload&quot;&amp;#47;&amp;#62;
-&amp;#60;&amp;#47;picture&amp;#62;
-&amp;#60;&amp;#47;figure&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;What about users with JavaScript disabled I hear you ask? It&amp;#8217;s time for noscript to save the day:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;noscript&amp;#62;
- &amp;#60;picture&amp;#62;
- &amp;#60;source type=&quot;image&amp;#47;webp&quot;
- srcset=&quot;
- &amp;#47;images&amp;#47;articles&amp;#47;webp&amp;#47;flat-design-toggles_p0v2hv_c_scale,w_200.webp 200w,
- &amp;#47;images&amp;#47;articles&amp;#47;webp&amp;#47;flat-design-toggles_p0v2hv_c_scale,w_1400.webp 1400w&quot;&amp;#62;
- &amp;#60;img
- sizes=&quot;(max-width: 1400px) 100vw, 1400px&quot;
- srcset=&quot;
- &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_200.webp 200w,
- &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_727.webp 727w,
- &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_1065.webp 1065w,
- &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_1400.webp 1400w&quot;
- src=&quot;&amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_1400.webp&quot;
- alt=&quot;Toggles Comparison&quot;&amp;#47;&amp;#62;
- &amp;#60;&amp;#47;picture&amp;#62;
-&amp;#60;&amp;#47;noscript&amp;#62;
+&lt;p&gt;In case the title of this post didn&amp;#8217;t make this obvious, my editor of choice is Sublime Text. It&amp;#8217;s fast, has a robust plugin ecosystem, and a very friendly community of users. Because of its popularity, troubleshooting any issues you might encounter becomes much easier with the amount of information freely available online.&lt;/p&gt;
+&lt;p&gt;The only minor downside is that it isn&amp;#8217;t &lt;em&gt;fully&lt;/em&gt; open source. Personally, I think it is well worth buying a license directly from the developers to support their efforts.&lt;/p&gt;
+&lt;p&gt;If you haven&amp;#8217;t played around with it yet, I highly recommend giving it a try. At the very least, I guarantee you&amp;#8217;ll be impressed with the editor&amp;#8217;s performance and speed! [&amp;#60;#1&amp;#62;]&lt;/p&gt;
+&lt;h2 id=&quot;one-small-problem&quot;&gt;One Small Problem&amp;#8230;&lt;/h2&gt;
+&lt;p&gt;Sublime is precompiled against glibc and Alpine uses musl. This makes things a little difficult. Luckily we can get around this roadblock by falling back on flatpak (which is unfortunately still locked at version 3 for Sublime).&lt;/p&gt;
+&lt;p&gt;You&amp;#8217;ll need to install flatpak, give your current user permission to install flatpak apps, and then install Sublime.&lt;/p&gt;
+&lt;p&gt;(The following snippets assume you are using &lt;code&gt;doas&lt;/code&gt;. If you are using &lt;code&gt;sudo&lt;/code&gt;, be sure to swap accordingly)&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;apk add flatpak
+adduser &amp;#60;YourUsername&amp;#62; flatpak
+flatpak remote-add --user --if-not-exists flathub https:&amp;#47;&amp;#47;flathub.org&amp;#47;repo&amp;#47;flathub.flatpakrepo
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;https-caching&quot;&gt;HTTPS &amp;#38; Caching&lt;/h3&gt;
-&lt;p&gt;The Lighthouse audit also suggested implementing an SSL certificate (something I&amp;#8217;ve been meaning to do for a while anyway) and also utilize CDN caching. So it was Cloudflare to the rescue!&lt;/p&gt;
-&lt;p&gt;Since my website is hosted through Github, setting up a &lt;em&gt;free&lt;/em&gt; SSL certificate and enabling site-wide caching was a breeze. If you&amp;#8217;re interested in setting this up yourself, step-by-step instructions can be found here.&lt;/p&gt;
-&lt;p&gt;This simple update helped boost my best practices score from a 69 to a 94. Yet another performance enhancement you should be enabling for all your current and future projects!&lt;/p&gt;
-&lt;h2 id=&quot;performance-happiness&quot;&gt;Performance Happiness&lt;/h2&gt;
-&lt;p&gt;Overall I&amp;#8217;m pretty content with the &lt;strong&gt;major&lt;/strong&gt; performance boost my site has received from these fairly &lt;em&gt;minor&lt;/em&gt; updates and I hope this article inspires other designers and developers to jump into updating their own site&amp;#47;app performance speeds. The pay-off is truly worth it!&lt;/p&gt;
-&lt;h3 id=&quot;some-extra-reading-material&quot;&gt;Some Extra Reading Material&lt;/h3&gt;
-&lt;ul&gt;
-&lt;li&gt;Web Performance in Action by Jeremy Wagner&lt;/li&gt;
-&lt;li&gt;Responsible Responsive Design by Scott Jehl&lt;/li&gt;
-&lt;li&gt;Designing with Progressive Enhancement: Building the Web that Works for Everyone by Todd Parker, Scott Jehl,‎ Maggie Costello Wachs,‎ Patty Toland&lt;/li&gt;
-&lt;/ul&gt;</content>
- <link href="https://btxx.org/chasing-performance"/>
- <id>https://btxx.org/chasing-performance</id>
- <updated>2017-11-20T10:00:00Z</updated>
- <published>2017-11-20T10:00:00Z</published>
- </entry>
- <entry>
- <title>CSS Character Unit</title>
- <content type="html">&lt;h1 id=&quot;css-character-unit&quot;&gt;CSS Character Unit&lt;/h1&gt;
-&lt;p&gt;2019-04-23&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;When it comes to proper readability with large portions of text&lt;/em&gt;, the golden standard is to have no more than &lt;a href=&quot;http://webtypography.net/2.1.2&quot;&gt;75 characters per line&lt;/a&gt;. This is easy to achieve in the world of print but on the responsive, ever-changing web - statically defined typography becomes a little more difficult.&lt;/p&gt;
-&lt;p&gt;You could go through the long process of setting up media queries for every possible screen size, adjusting text size and padding accordingly - but there is a &lt;em&gt;better way&lt;/em&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;introducing-character-units&quot;&gt;Introducing character units&lt;/h2&gt;
-&lt;p&gt;By setting your main containers or text elements with the CSS character unit (&lt;code&gt;ch&lt;/code&gt;), you need to set the character length only once. Let&amp;#8217;s look at a simple example for reference.&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s say you have an article which will fill the entire length of the screen. Something like this:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;container&quot;&amp;#62;
- &amp;#60;p&amp;#62;Reprehenderit aliqua in quis eiusmod ea culpa aliquip. Velit duis est irure voluptate occaecat labore laborum ut pariatur ex veniam deserunt esse est. Esse sunt exercitation id reprehenderit deserunt elit commodo sit ullamco amet commodo magna consequat. Excepteur voluptate tempor consectetur eu aliqua aliquip laboris aliquip veniam excepteur labore.&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p&amp;#62;Voluptate excepteur sint magna ipsum occaecat irure sit. In occaecat excepteur in id ullamco id est incididunt irure et. Consectetur veniam exercitation occaecat exercitation labore nulla excepteur irure ex anim. Commodo sint anim non ad excepteur exercitation eiusmod Lorem nisi. Tempor ut ipsum do adipisicing dolore.&amp;#60;&amp;#47;p&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
+&lt;p&gt;Congrats. You now have setup &lt;code&gt;flatpak&lt;/code&gt; on your machine! Next we install Sublime Text:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;flatpak install flathub com.sublimetext.three
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;With this structure, you might normally set the default &lt;code&gt;max-width&lt;/code&gt; property with your desired maximum width (whatever you believe is the best reading length):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.container {
- max-width: 38em;
-}
+&lt;p&gt;You could stop now and simply open Sublime anytime by running the following command in your terminal:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;flatpak run com.sublimetext.three
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This works - but it isn&amp;#8217;t ideal. Time for character units to save the day! You will still target the &lt;code&gt;max-width&lt;/code&gt; property but this time we set it to use the &lt;code&gt;ch&lt;/code&gt; value like so:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.container {
- max-width: 66ch;
-}
+&lt;p&gt;This works perfectly fine but I find it a little cumbersome. I would much rather open my programs directly through dmenu. Let&amp;#8217;s set that up.&lt;/p&gt;
+&lt;h2 id=&quot;creating-system-links&quot;&gt;Creating System Links&lt;/h2&gt;
+&lt;pre&gt;&lt;code&gt;doas ln -s ~&amp;#47;.local&amp;#47;share&amp;#47;flatpak&amp;#47;exports&amp;#47;bin&amp;#47;com.sublimetext.three &amp;#47;usr&amp;#47;bin&amp;#47;sublimetext
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This setting makes sure content will not exceed more than 66 characters per line, making for a better reading experience with little effort.&lt;/p&gt;
-&lt;h2 id=&quot;browser-support&quot;&gt;Browser support&lt;/h2&gt;
-&lt;p&gt;The character unit attribute has pretty great support - even partial IE11! Check out the supported browsers &lt;a href=&quot;https://caniuse.com/#feat=ch-unit&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;</content>
- <link href="https://btxx.org/character-unit"/>
- <id>https://btxx.org/character-unit</id>
- <updated>2019-04-23T10:00:00Z</updated>
- <published>2019-04-23T10:00:00Z</published>
- </entry>
- <entry>
- <title>Browser History Sucks</title>
- <content type="html">&lt;h1 id=&quot;browser-history-sucks&quot;&gt;Browser History Sucks&lt;/h1&gt;
-&lt;p&gt;2019-04-20&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;Have you ever needed to step back through your browser history&lt;/em&gt; to find a particular site or product? Do you remember that experience being good? Most likely not.&lt;/p&gt;
-&lt;p&gt;Much like printers, the design of browser history interfaces hasn&amp;#8217;t changed in years. This would be fine if these UIs had been well thought out and optimized for an easy user experience - but they weren&amp;#8217;t.&lt;/p&gt;
-&lt;p&gt;Browser history views rely on the user&amp;#8217;s own memory for more in-depth searches. This defeats the whole purpose of having a robust, documented history. The browser should be doing this heavy-lifting.&lt;/p&gt;
-&lt;h2 id=&quot;what-browsers-get-wrong&quot;&gt;What browsers get wrong&lt;/h2&gt;
-&lt;p&gt;Modern browsers give the general public too much credit when it comes to memory (I don&amp;#8217;t mean this as an insult!). To assume users remember the URL or site name when browsing random pages is short-sighted. I find myself asking these types of questions when jumping back into my view history far too often:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;&amp;#8220;That article had &lt;em&gt;something&lt;/em&gt; to do with CSS&amp;#8230;&amp;#8221;&lt;/li&gt;
-&lt;li&gt;&amp;#8220;I remember seeing a beautifully designed site a month ago but have no clue what the URL was&amp;#8230;&amp;#8221;&lt;/li&gt;
-&lt;li&gt;&amp;#8220;My browser crashed and I can&amp;#8217;t recall that [example website] I had pinned in my tab for weeks&amp;#8230;&amp;#8221;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;For reference, let&amp;#8217;s take a look at the current Chrome (73) history view:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/browser-history-01.webp&quot; alt=&quot;Default Chrome History&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;As you may have noticed - this UI is lackluster at best. An oversimplified search field in the header is the only means of filtering items.&lt;/p&gt;
-&lt;h2 id=&quot;why-not-use-extensions&quot;&gt;Why not use extensions?&lt;/h2&gt;
-&lt;p&gt;I know using browser extensions or tagging favorites can alleviate some of these issues. This is great, but why not simplify everything by having these features &lt;em&gt;inside&lt;/em&gt; the history view? If an extension can add these features, why not have those extras built-in?&lt;/p&gt;
-&lt;h2 id=&quot;two-subtle-improvements&quot;&gt;Two subtle improvements&lt;/h2&gt;
-&lt;p&gt;A little goes a long way. With just two small changes, we can drastically increase the history view&amp;#8217;s UX.&lt;/p&gt;
-&lt;p&gt;We start by adding a date picker. Users open the new calendar icon to filter by days, months or years before searching. Seems trivial, but this saves the headache of filtering through all saved history.&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/browser-history-02.webp&quot; alt=&quot;Chrome History with date picker&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;The second small functional change we can make is including extra subcategories. These new options allow users to focus their searches based on:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Session length&lt;/li&gt;
-&lt;li&gt;Number of return visits&lt;/li&gt;
-&lt;li&gt;Last restored tabs&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h3 id=&quot;session-length&quot;&gt;Session length&lt;/h3&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/browser-history-03.webp&quot; alt=&quot;Chrome History by session length&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;Allow users to display their history filtered by session duration. This helps when searching for an stagnant page or pinned site during a user&amp;#8217;s long session. An example default would allow filtering by:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;longest to shortest&lt;/li&gt;
-&lt;li&gt;shortest to longest&lt;/li&gt;
-&lt;li&gt;pinned tabs&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h3 id=&quot;return-visits&quot;&gt;Return visits&lt;/h3&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/browser-history-04.webp&quot; alt=&quot;Chrome History by return visits&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;When users make repeat visits to a site or web app, the browser should keep a record of return sessions. This allows the user to refine their search by many or singular visits.&lt;/p&gt;
-&lt;h3 id=&quot;last-restored-tabs&quot;&gt;Last restored tabs&lt;/h3&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/browser-history-05.webp&quot; alt=&quot;Chrome History by restored tabs&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;A basic concept, but the ability for users to view all previous instances of restored tabs is helpful. This would fix most edge cases not covered by the other two categories.&lt;/p&gt;
-&lt;h2 id=&quot;far-from-perfect&quot;&gt;Far from perfect&lt;/h2&gt;
-&lt;p&gt;The Chrome (or any browser for that matter) browser history view is simplistic to a fault. The current UI is prone to human error, since it makes assumptions and relies heavily on user memory.&lt;/p&gt;
-&lt;p&gt;These are simple fixes that attempt to boost the basic UX of the history view. Are these concepts absolutely perfect? Not at all. Is it at least an improvement? I believe it is. When products decrease the effort required of it&amp;#8217;s users, I see that as a positive.&lt;/p&gt;</content>
- <link href="https://btxx.org/browser-history-sucks"/>
- <id>https://btxx.org/browser-history-sucks</id>
- <updated>2019-04-20T10:00:00Z</updated>
- <published>2019-04-20T10:00:00Z</published>
- </entry>
- <entry>
- <title>Bidirectional Scrolling: Why Not Both?</title>
- <content type="html">&lt;h1 id=&quot;bidirectional-scrolling-why-not-both&quot;&gt;Bidirectional Scrolling: Why Not Both?&lt;/h1&gt;
-&lt;p&gt;2020-11-09&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;I recently came across Adam Silver&amp;#8217;s post &lt;a href=&quot;https://adamsilver.io/articles/bidirectional-scrolling-whats-not-to-like/&quot;&gt;about the merits and pitfalls of bidirectional scrolling&lt;/a&gt;&lt;/em&gt; and found myself conflicted with the design arguments put forth in the article. It&amp;#8217;s a very good article overall, and I suggest giving it a read before digging deeper into my post here.&lt;/p&gt;
-&lt;h2 id=&quot;the-premise&quot;&gt;The Premise&lt;/h2&gt;
-&lt;p&gt;The original article argues that displaying page content via horizontal scrolling (and therefore slightly hiding interactive content) creates a few major issues:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;it increases the chance users won&amp;#8217;t see it&lt;/li&gt;
-&lt;li&gt;there&amp;#8217;s a greater reliance on digital literacy&lt;/li&gt;
-&lt;li&gt;it&amp;#8217;s generally more labour intensive for users&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Adam also makes a solid statement here:&lt;/p&gt;
+&lt;p&gt;Now that those directories are linked, simply open dmenu and start typing &lt;code&gt;sublimetext&lt;/code&gt;. Done and done. No more terminal commands needed to open Sublime!&lt;/p&gt;
+&lt;hr/&gt;
+&lt;p&gt;1. I am aware that using a terminal-based editor such as vim or emacs would be even &lt;em&gt;more&lt;/em&gt; efficient. For my own personal use I find more classical &amp;#8220;IDE&amp;#8221; applications to work best for me.
+&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/sublime"/>
+ <id>https://btxx.org/posts/sublime</id>
+ <updated>2023-04-13T10:00:00Z</updated>
+ <published>2023-04-13T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>I Want to Suckless and You Can Too</title>
+ <content type="html">&lt;h1 id=&quot;i-want-to-suckless-and-you-can-too&quot;&gt;I Want to Suckless and You Can Too&lt;/h1&gt;
+&lt;p&gt;2022-12-23&lt;/p&gt;
+&lt;h2 id=&quot;the-desire-to-suckless&quot;&gt;The Desire to Suckless&lt;/h2&gt;
+&lt;p&gt;While I have been happy with my &lt;a href=&quot;/alpine&quot;&gt;previous desktop setup&lt;/a&gt; using Wayland on Alpine Linux, I just couldn&amp;#8217;t shake the urge to fully embrace the &lt;a href=&quot;https://suckless.org&quot;&gt;suckless ecosystem&lt;/a&gt;. Although, this meant ditching Wayland and returning to X11, which is apparently the new &amp;#8220;cool thing to hate&amp;#8221; in Linux land. At least, that&amp;#8217;s what I&amp;#8217;ve seen online lately.&lt;/p&gt;
+&lt;p&gt;But I&amp;#8217;m getting ahead of myself&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;what-is-suckless&quot;&gt;What is Suckless?&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;m not going to spend too much time repeating what you can &lt;a href=&quot;https://suckless.org/philosophy/&quot;&gt;already read on the suckless.org website itself&lt;/a&gt;, but in a nutshell:&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;Having to scroll down and across in a zig zag fashion can be tiresome, especially for people with motor impairments.&lt;/p&gt;
+&lt;p&gt;Software with a focus on simplicity, clarity, and frugality.&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;p&gt;But I don&amp;#8217;t believe these issues create a need to completely remove the horizontal &amp;#8220;scrolling&amp;#8221; design altogether. You can still implement the &lt;code&gt;See All Items&lt;/code&gt; category link, while allowing the horizontal content to load in &lt;em&gt;dynamically&lt;/em&gt;. Balance is always key.&lt;/p&gt;
-&lt;h2 id=&quot;not-all-at-once-please&quot;&gt;Not All At Once, Please!&lt;/h2&gt;
-&lt;p&gt;So what exactly do I mean by &lt;em&gt;dynamically&lt;/em&gt; loading in horizontal content?&lt;/p&gt;
+&lt;p&gt;The developers also pride themselves on catering to &lt;em&gt;advanced and experienced computer users&lt;/em&gt;, which is actually a refreshing take in my opinion. There are enough pre-existing open source solutions for non-technical or average Linux users looking for a desktop system. Having an option that requires users to deep-dive into the code, compile the programs manually, and better understand the software they are running is a welcome addition.&lt;/p&gt;
+&lt;p&gt;This process of &amp;#8220;owing your software&amp;#8221; was one of the core concepts that initially grabbed my attention. I&amp;#8217;ve always been mildly mediocre at reading and writing C (ie. enough to be dangerous), so the thought of jumping head first into a system that would require me to better learn that language was tempting[^1]. And that temptation was enough to give it a shot!&lt;/p&gt;
+&lt;h2 id=&quot;lets-get-started&quot;&gt;Let&amp;#8217;s Get Started&lt;/h2&gt;
+&lt;p&gt;So I made my decision. I would (at the very least) &lt;em&gt;try&lt;/em&gt; switching my daily driver over to a completely &amp;#8220;suckless&amp;#8221; system. But I was immediately faced with my first obstacle: &lt;em&gt;which distro should I use&lt;/em&gt;?&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m sure many would suggest Gentoo, since it follows the principles of suckless more than any other distribution on the market. But I don&amp;#8217;t hate myself enough to go down that insane rabbit-hole. I&amp;#8217;m hardly advanced enough to take on such a steep challenge, not to mention my plan was to build out a &amp;#8220;setup script&amp;#8221; so others could roll their own suckless build. Something like that looked daunting under Gentoo. Maybe in the future&amp;#8230;&lt;/p&gt;
+&lt;p&gt;So what&amp;#8217;s left? Void? Arch? Something fresh, like Metis? I really didn&amp;#8217;t know the &amp;#8220;best&amp;#8221; choice. Maybe there were just &lt;em&gt;too many&lt;/em&gt; options? &lt;/p&gt;
+&lt;p&gt;Luckily, I did know of a distro that was my go-to for most projects&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;trying-alpine&quot;&gt;Trying Alpine&lt;/h2&gt;
+&lt;p&gt;Alpine Linux is one of the best distributions available. If you disagree, you clearly haven&amp;#8217;t achieved galaxy-brain levels of intelligence and I feel sorry for you[^2].&lt;/p&gt;
+&lt;p&gt;Having just rolled my own &lt;a href=&quot;https://git.sr.ht/~bt/alpine-linux-setup&quot;&gt;installer script&lt;/a&gt; for Wayland&amp;#47;Sway on Alpine, I figured why not piggyback off that existing project? Work smart not hard, right? So I started putting together an absolute &lt;em&gt;bare minimum&lt;/em&gt; list of requirements I needed to get a proper desktop system running:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;The user is shown the top 4 items in a given category&lt;/li&gt;
-&lt;li&gt;From there, the user can use the &lt;code&gt;See All Items&lt;/code&gt; link to jump into a full category page&lt;/li&gt;
-&lt;li&gt;If they so desire, they can begin scroll horizontally in a given category row
+&lt;li&gt;working suspend&amp;#47;awake&lt;/li&gt;
+&lt;li&gt;working audio&lt;/li&gt;
+&lt;li&gt;working wifi&amp;#47;networking&lt;/li&gt;
+&lt;li&gt;reduced screen tearing (X11 gave me problems in the past with this)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;As you can see, I have very low expectations. But there were issues&amp;#8230;.&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;I could not build my blog locally (built via Jekyll) since the &lt;code&gt;sass-embedded&lt;/code&gt; dependencies has not been built against musl-libc.&lt;/li&gt;
+&lt;li&gt;VSCodium would require the extra &amp;#8220;bloat&amp;#8221; of the flatpak manager (not to mention the spotty support some applications have through flatpak&amp;#47;snap).&lt;/li&gt;
+&lt;li&gt;The distro&amp;#47;system &lt;em&gt;feels&lt;/em&gt; like it was better designed with Wayland in mind. Too often I felt like I was losing an uphill battle wrestling against Alpine.&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;getting-sucked-into-the-void&quot;&gt;Getting Sucked into the Void&lt;/h2&gt;
+&lt;p&gt;After mentioning my struggles on Mastodon, some &lt;a href=&quot;https://fosstodon.org/@tdarb/109554576434981872&quot;&gt;helpful friends suggested taking a look at Void&lt;/a&gt;. I always knew of the project but never used it as a &amp;#8220;daily driver&amp;#8221;. Since this was overall one &lt;em&gt;large&lt;/em&gt; experiment, I figured I&amp;#8217;d give it a shot.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m glad I did. Void Linux is &lt;em&gt;pretty great&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;The installer seemed more complex than Alpine at first, but I found an excellent walkthrough &lt;a href=&quot;https://linuxiac.com/void-linux-installation/&quot;&gt;here&lt;/a&gt; (which I was more beginner-friendly than the official docs). Once everything was set, it was time to run my suckless &amp;#8220;installer&amp;#8221;.&lt;/p&gt;
+&lt;h2 id=&quot;introducing-void-suck&quot;&gt;Introducing void-suck&lt;/h2&gt;
+&lt;p&gt;If you don&amp;#8217;t care about the nitty-gritty details, feel free to just jump over to the &lt;a href=&quot;https://git.sr.ht/~bt/void-suck&quot;&gt;void-suck repo on scourehut&lt;/a&gt; and read through the code yourself. There is nothing groundbreaking here. A huge inspiration came from &lt;a href=&quot;https://github.com/mad-ara/void-rice&quot;&gt;mad-ara&amp;#8217;s &amp;#8220;void-rice&amp;#8221; project on Github&lt;/a&gt; - so a big thanks to him for making that project in the first place!&lt;/p&gt;
+&lt;p&gt;You can find the basic instructions in the README of the project itself, but it pulls in just the required dependencies along with my own custom suckless tools. You can easily swap out these with your own or simply default to the standard ones provided by &lt;a href=&quot;https://suckless.org&quot;&gt;suckless.org&lt;/a&gt;.&lt;/p&gt;
+&lt;p&gt;Everything &lt;em&gt;should&lt;/em&gt; work out of the box, but in case it doesn&amp;#8217;t please &lt;a href=&quot;https://todo.sr.ht/~bt/void-suck&quot;&gt;open a ticket&lt;/a&gt; or &lt;a href=&quot;https://lists.sr.ht/~bt/void-suck&quot;&gt;submit a patch&lt;/a&gt;. I&amp;#8217;m certain I overlooked some items!&lt;/p&gt;
+&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
+&lt;p&gt;We&amp;#8217;ll see how things go. So far I&amp;#8217;m enjoying my time with a much simpler desktop and the &amp;#8220;forced&amp;#8221; push towards getting better with C is an added bonus. I still love Alpine, but Void is slowly winning me over&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;I find this to be the best way to learn new things. Reading technical books are helpful, but concepts never stick with me unless I am forced to implement them.&lt;/li&gt;
+&lt;li&gt;This is a joke. Alpine is certainly not for everyone. There are many more &amp;#8220;fully featured&amp;#8221; distros available and everyone should use what they enjoy! Try not to take my blog posts so seriously&amp;#8230;&lt;/li&gt;
+&lt;/ol&gt;</content>
+ <link href="https://btxx.org/posts/suckless"/>
+ <id>https://btxx.org/posts/suckless</id>
+ <updated>2022-12-23T10:00:00Z</updated>
+ <published>2022-12-23T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Super Mario Blocks in CSS</title>
+ <content type="html">&lt;h1 id=&quot;super-mario-blocks-in-css&quot;&gt;Super Mario Blocks in CSS&lt;/h1&gt;
+&lt;p&gt;2019-02-15&lt;/p&gt;
+&lt;p&gt;Just because we can, let&amp;#8217;s make a quick demo on how to build interactive elements based off the original Mario punch blocks.&lt;/p&gt;
+&lt;p&gt;What our final product will look like:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/mario-block.png&quot; alt=&quot;Mario blocks cretaed with CSS&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/JjEPOVe&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;p&gt;The set of Mario blocks doesn&amp;#8217;t require a huge amount of effort for it&amp;#8217;s &lt;code&gt;html&lt;/code&gt; structure, we only need:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Once they reach the end of the row, 4 more items will load in automatically to expand the list&lt;/li&gt;
-&lt;li&gt;To avoid a never-ending list, it might be best to limit total row items to ~20 items. At this point the UI could prompt the user to &lt;code&gt;View All Items&lt;/code&gt; in that category.&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Parent div for each block&lt;/li&gt;
+&lt;li&gt;Checkbox input&lt;/li&gt;
+&lt;li&gt;Checkbox label&lt;/li&gt;
+&lt;li&gt;Inner label divs to represent the block &amp;#8220;dots&amp;#8221;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;By loading the row content in piece-by-piece, initial loads for users will be faster and subsequent list items will load quickly as well (since they would limit to a set default - in this case only 4).&lt;/p&gt;
-&lt;h2 id=&quot;final-improvements&quot;&gt;Final Improvements&lt;/h2&gt;
-&lt;p&gt;Below you can find a quick, static version of this concept. Here you can see the horizontal list items, along with their corresponding &lt;code&gt;See All Items&lt;/code&gt; links. You&amp;#8217;ll have to use your imagination for how new items would load once you each the end of a horizontal row. (I&amp;#8217;m too lazy to spend extra time building out that functionality for a hypothetical blog post)&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/pobxpXz&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</content>
- <link href="https://btxx.org/bidirectional-scrolling"/>
- <id>https://btxx.org/bidirectional-scrolling</id>
- <updated>2020-11-09T10:00:00Z</updated>
- <published>2020-11-09T10:00:00Z</published>
- </entry>
- <entry>
- <title>Better Box Shadows</title>
- <content type="html">&lt;h1 id=&quot;better-box-shadows&quot;&gt;Better Box Shadows&lt;/h1&gt;
-&lt;p&gt;2019-01-08&lt;/p&gt;
-&lt;p&gt;Box shadow on HTML elements has been widely supported across most browsers for a while now, but I find the default options don&amp;#8217;t allow for much visual manipulation of the shadows in general.&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s take a look at a default configuration of &lt;code&gt;box-shadow&lt;/code&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.box-container {
- box-shadow: 0 4px 8px rgba(0,0,0,0.3);
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;In the example above the first property number is the origin of the &lt;em&gt;x-axis&lt;/em&gt;, the second number is the origin of the &lt;em&gt;y-axis&lt;/em&gt; and the third is the amount of &lt;em&gt;blur&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;We should also add some minimal styling to cleanup the &lt;code&gt;.box-container&lt;/code&gt; a little bit for our example:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;box-container&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+&lt;p&gt;&lt;strong&gt;Sidenote&lt;/strong&gt;: This is only how &lt;em&gt;I&lt;/em&gt; chose to add the inner dots to the Mario blocks. There are many other ways to create these, so please feel free to implement them however you see fit.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;!-- Main parent block --&amp;#62;
+&amp;#60;div class=&quot;mario-block&quot;&amp;#62;
+ &amp;#60;!-- Checkbox input (disabled by default) --&amp;#62;
+ &amp;#60;input type=&quot;checkbox&quot; id=&quot;1&quot; disabled&amp;#62;
-.box-container {
- box-shadow: 0 4px 8px rgba(0,0,0,0.3);
- &amp;#47;* Styles to make it less ugly *&amp;#47;
- background: white;
- border-radius: 10px;
- border: 1px solid #eee;
- height: 200px;
- padding: 10px;
- position: relative;
- width: 250px;
-}
+ &amp;#60;!-- Checkbox label --&amp;#62;
+ &amp;#60;label for=&quot;1&quot;&amp;#62;
+ &amp;#60;!-- Inner dots for blocks --&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;label&amp;#62;
+
+&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Which would render as this:&lt;/p&gt;
-&lt;p&gt;Not bad - but we can do a lot better than this.&lt;/p&gt;
-&lt;h2 id=&quot;please-sir-i-want-some-more-depth&quot;&gt;Please sir, I want some more (depth)&lt;/h2&gt;
-&lt;p&gt;We just need to add a simple child &lt;code&gt;div&lt;/code&gt; (or use a &lt;code&gt;pseudo&lt;/code&gt; element if you prefer) inside our main element we want to apply the shadow to:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;box-container&quot;&amp;#62;
- &amp;#60;div class=&quot;box-container-inner&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+&lt;p&gt;Now we just add as many default blocks we want, along with the interactive punch block (&lt;code&gt;.mario-block--question&lt;/code&gt;):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;mario-block&quot;&amp;#62;
+ &amp;#60;input type=&quot;checkbox&quot; id=&quot;1&quot; disabled&amp;#62;
+ &amp;#60;label for=&quot;1&quot;&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;label&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
+
+&amp;#60;div class=&quot;mario-block&quot;&amp;#62;
+ &amp;#60;input type=&quot;checkbox&quot; id=&quot;2&quot; disabled&amp;#62;
+ &amp;#60;label for=&quot;2&quot;&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;label&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
+
+&amp;#60;div class=&quot;mario-block mario-block--question&quot;&amp;#62;
+ &amp;#60;input type=&quot;checkbox&quot; id=&quot;3&quot;&amp;#62;
+ &amp;#60;label for=&quot;3&quot;&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;question-mark&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;label&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
+
+&amp;#60;div class=&quot;mario-block&quot;&amp;#62;
+ &amp;#60;input type=&quot;checkbox&quot; id=&quot;4&quot; disabled&amp;#62;
+ &amp;#60;label for=&quot;4&quot;&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;label&amp;#62;
&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now we make our inner child element &lt;code&gt;absolute&lt;/code&gt; and set it&amp;#8217;s &lt;code&gt;height&lt;/code&gt; and &lt;code&gt;width&lt;/code&gt; dynamically to be slightly smaller than it&amp;#8217;s parent (percentages work best for this). &lt;/p&gt;
-&lt;p&gt;Remember to set this child element behind it&amp;#8217;s parent by adding &lt;code&gt;z-index: -1&lt;/code&gt;.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.box-container {
- &amp;#47;* No box-shadow needed on this element anymore *&amp;#47;
- &amp;#47;* Styles to make it less ugly *&amp;#47;
- background: white;
- border-radius: 10px;
- border: 1px solid #eee;
- height: 200px;
- padding: 10px;
+&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
+&lt;p&gt;First we need to remove the default &lt;code&gt;checkbox&lt;/code&gt; input styling and place all new styling on it&amp;#8217;s corresponding &lt;code&gt;label&lt;/code&gt;.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Mario block parent div *&amp;#47;
+.mario-block {
+ display: inline-block;
+ height: 80px;
+ margin-right: -7px; &amp;#47;* Fixes inline-block margin bug *&amp;#47;
position: relative;
- width: 250px;
+ width: 80px;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;inner-containers&quot;&gt;Inner Containers&lt;/h2&gt;
-&lt;p&gt;We also need to target the &lt;code&gt;box-container-inner&lt;/code&gt; element set inside the current parent to reflect our custom shadow styling:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.box-container-inner {
- bottom: 0;
- &amp;#47;* The box-shadow is added here now *&amp;#47;
- box-shadow: 0 4px 12px rgba(0,0,0,0.3);
- height: 94%;
- left: 3%;
+
+&amp;#47;* Hide default checkbox input *&amp;#47;
+.mario-block input {
position: absolute;
- width: 94%;
+ visibility: hidden;
z-index: -1;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Which will make the drop-shadow render with a little more realistic depth:&lt;/p&gt;
-&lt;h2 id=&quot;but-wait---theres-more&quot;&gt;But wait - there&amp;#8217;s more!&lt;/h2&gt;
-&lt;p&gt;We could stop now and have a decent drop-shadow that is certainly easier on the eyes - but we can make this even better with one extra property - &lt;code&gt;filter:blur();&lt;/code&gt;. &lt;/p&gt;
-&lt;p&gt;So your final code would look like this:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.box-container {
- &amp;#47;* Styles to make it less ugly *&amp;#47;
- background: white;
- border-radius: 10px;
- border: 1px solid #eee;
- height: 200px;
- padding: 10px;
+&lt;p&gt;Now to target the &lt;code&gt;label&lt;/code&gt; elements found inside the block:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Style checkbox label accordingly *&amp;#47;
+.mario-block label {
+ background: #F88D2E;
+ border: 4px solid #070000;
+ box-shadow: inset -4px -4px 0 #965117, inset 4px 4px 0 #FAB89B;
+ display: block;
+ height: 100%;
position: relative;
- width: 250px;
+ width: 100%;
}
-
-.box-container-inner {
- bottom: 0;
- box-shadow: 0 4px 12px rgba(0,0,0,0.3);
- filter: blur(6px);
- height: 94%;
- left: 3%;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Next we style our included &lt;code&gt;.dots&lt;/code&gt; elements to be placed in the four corners of each block:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.mario-block .dot {
+ background: #070000;
+ height: 5px;
position: absolute;
- width: 94%;
- z-index: -1;
+ width: 5px;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Which renders out into a much smoother blend of a drop-shadow, creating a more realistic illusion of depth:&lt;/p&gt;</content>
- <link href="https://btxx.org/better-box-shadows"/>
- <id>https://btxx.org/better-box-shadows</id>
- <updated>2019-01-08T10:00:00Z</updated>
- <published>2019-01-08T10:00:00Z</published>
- </entry>
- <entry>
- <title>Hosting with Codeberg Pages</title>
- <content type="html">&lt;h1 id=&quot;hosting-with-codeberg-pages&quot;&gt;Hosting with Codeberg Pages&lt;/h1&gt;
-&lt;p&gt;2022-07-29&lt;/p&gt;
-&lt;p&gt;I recently switched the &lt;a href=&quot;https://pblog.bt.ht&quot;&gt;pblog&lt;/a&gt; project repo over from Sourcehut to Codeberg (mostly for UX reasons) and it got me looking into &lt;a href=&quot;https://codeberg.page&quot;&gt;Codeberg Pages&lt;/a&gt;. It seemed like a cleaner approach to host my personal blog on the same platform I planned to also share the source code.&lt;/p&gt;
-&lt;p&gt;I decided to share the setup process here since I couldn&amp;#8217;t find a straightforward guide explaining everything required to get going. So, let&amp;#8217;s dig in.&lt;/p&gt;
-&lt;h2 id=&quot;create-the-repos&quot;&gt;Create the Repos&lt;/h2&gt;
-&lt;p&gt;&lt;strong&gt;Disclaimer&lt;/strong&gt;: My personal blog uses &lt;a href=&quot;https://pblog.bt.ht&quot;&gt;pblog&lt;/a&gt;, so although these instructions will be catered towards that SSG the same concept &lt;em&gt;should&lt;/em&gt; apply for any other generator (Jekyll, Hugo, Next, etc.).&lt;/p&gt;
-&lt;p&gt;The first step is to create the main repo that would house the core files of &lt;code&gt;pblog&lt;/code&gt;. Then we need to make a separate repo simply called &lt;code&gt;pages&lt;/code&gt;. This second project is where all the generated &amp;#8220;static&amp;#8221; files get rendered.&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;Side note&lt;/em&gt;: Be sure to at least include a &lt;code&gt;README&lt;/code&gt; file in that &lt;code&gt;pages&lt;/code&gt; repo. This will avoid any errors or warnings when setting up our submodules in the next steps.&lt;/p&gt;
-&lt;h2 id=&quot;configuration-edits&quot;&gt;Configuration Edits&lt;/h2&gt;
-&lt;p&gt;Once your two repos are created, you will need to make some minor edits to the &lt;code&gt;_config.sh&lt;/code&gt; in the core &lt;code&gt;pblog&lt;/code&gt; project to tell the build script where the generated files should go (in this case the &lt;code&gt;pages&lt;/code&gt; repo):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;OUTPUT=&quot;_output&amp;#47;pages&amp;#47;&quot;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;the-submodule&quot;&gt;The Submodule&lt;/h2&gt;
-&lt;p&gt;Using terminal, navigate to the &lt;code&gt;_output&amp;#47;&lt;/code&gt; directory in your core &lt;code&gt;pblog&lt;/code&gt; project. Run the following, remembering to replace the USERNAME parameter with your own:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;git submodule add git@codeberg.org:USERNAME&amp;#47;pages.git
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If everything worked correctly you should now have a &lt;code&gt;.gitmodules&lt;/code&gt; file in your main &lt;code&gt;pblog&lt;/code&gt; project. If you get any errors, you might need to include the name of the directory at the end of the command:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;git submodule add git@codeberg.org:USERNAME&amp;#47;pages.git pages
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;the-workflow&quot;&gt;The Workflow&lt;/h2&gt;
-&lt;p&gt;Now you can make changes, add new posts and pages in the main &lt;code&gt;pblog&lt;/code&gt; project and have those generated files render into your other &lt;code&gt;pages&lt;/code&gt; repo. For this workflow, I simply push commits to both projects when I am happy with my changes but I&amp;#8217;m sure you could look into automating this process (ie. a single push from the &lt;code&gt;pblog&lt;/code&gt; repo forces a the &lt;code&gt;pages&lt;/code&gt; repo to also update).&lt;/p&gt;
-&lt;p&gt;Now you can navigate to the standard Codeberg Pages URL to see it in action:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;USERNAME.codeberg.page
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If you want to use your own custom domain (who doesn&amp;#8217;t?) then continue reading.&lt;/p&gt;
-&lt;h2 id=&quot;custom-domains-optional&quot;&gt;Custom Domains (Optional)&lt;/h2&gt;
-&lt;p&gt;The first thing you will need to do is add a &lt;code&gt;.domains&lt;/code&gt; file to your &lt;code&gt;pages&lt;/code&gt; root directory. In this file you will want to list your custom domain on the first line, followed by the standard Codeberg pages URL below it. Like so:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;yourcustomdomain.com
-USERNAME.codeberg.page
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;I&amp;#8217;m keeping this very basic, but I suggest you look further into the &lt;a href=&quot;https://docs.codeberg.org/codeberg-pages/#custom-domains&quot;&gt;official documentation&lt;/a&gt; if there are any extra settings you&amp;#8217;d like to tinker with.&lt;/p&gt;
-&lt;p&gt;The final step is configuring a &lt;code&gt;CNAME&lt;/code&gt; DNS setting through your registrar:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@ -&amp;#62; USERNAME.codeberg.page
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Give the DNS settings a bit of time to take (24-48 hours) and you&amp;#8217;ll have your custom domain working just fine.&lt;/p&gt;
-&lt;p&gt;Happy hosting!&lt;/p&gt;</content>
- <link href="https://btxx.org/berg"/>
- <id>https://btxx.org/berg</id>
- <updated>2022-07-29T10:00:00Z</updated>
- <published>2022-07-29T10:00:00Z</published>
- </entry>
- <entry>
- <title>Being More Efficient as a Designer and Developer</title>
- <content type="html">&lt;h1 id=&quot;being-more-efficient-as-a-designer-and-developer&quot;&gt;Being More Efficient as a Designer and Developer&lt;/h1&gt;
-&lt;p&gt;2019-09-28&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;I recently began working on a small side project&lt;/em&gt; (a marketing site &amp;#47; blog for an upcoming UX book I&amp;#8217;m writing, but I have nothing to promote yet - sorry) and found myself circling around different static site generators (SSG) in the initial design concepts. The thought of learning an entirely new blogging platform was inspiring and seemed like a good excuse to expand my skillset.&lt;/p&gt;
-&lt;p&gt;Although I&amp;#8217;ve used 11ty and Hugo in the past for client work, this personal website runs on Jekyll. I&amp;#8217;m very familiar with Jekyll and can push out a point-of-concept site in a flash with little-to-no effort. So, why was I looking to jump into a SSG I hadn&amp;#8217;t used before? &lt;/p&gt;
-&lt;p&gt;And that got me thinking&amp;#8230; &lt;strong&gt;Why am I moving away from being efficient?&lt;/strong&gt;&lt;/p&gt;
-&lt;h2 id=&quot;before-we-begin&quot;&gt;Before we begin&amp;#8230;&lt;/h2&gt;
-&lt;p&gt;I should preface everything else I&amp;#8217;m going to mention in this post with this: &lt;em&gt;learning new stuff is awesome&lt;/em&gt;. You should expand your knowledge as much as you can, no matter what industry you find yourself in. I&amp;#8217;ve found it to be a great catalyst for boosting my passion in design and development.&lt;/p&gt;
-&lt;p&gt;Okay, I&amp;#8217;ve made it clear that learning is important to the growth of your career - so please keep that in mind before you read my next statement:&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Just use what you already know.&lt;/strong&gt;&lt;/p&gt;
-&lt;p&gt;By using your current experience (maybe even expertise) with a design system, CSS framework, blogging platform, programming language, etc. you can get something &lt;em&gt;built&lt;/em&gt;. Not to mention you can get that thing built in a &lt;em&gt;fraction of the time&lt;/em&gt;. After all, building things is kind of the point of being a designer (or developer), right?&lt;/p&gt;
-&lt;p&gt;My current side project may be a slight edge case in this regard. Since it&amp;#8217;s a personal &amp;#8220;dev&amp;#8221; website, most of the tech stack choices comes down to personal preference - not client requirements. But I believe my point still remains: you shouldn&amp;#8217;t reach for something new and shiny &lt;em&gt;just because&lt;/em&gt; it&amp;#8217;s new and shiny.&lt;/p&gt;
-&lt;h2 id=&quot;some-vague-examples&quot;&gt;Some vague examples&lt;/h2&gt;
-&lt;p&gt;It might be easier to understand what I mean by using some possible real-world examples:&lt;/p&gt;
-&lt;table&gt;
-&lt;thead&gt;
-&lt;tr&gt;
-&lt;th&gt;Problem&lt;/th&gt;
-&lt;th&gt;New Way&lt;/th&gt;
-&lt;th&gt;Efficient Way&lt;/th&gt;
-&lt;/tr&gt;
-&lt;/thead&gt;
-&lt;tbody&gt;
-&lt;tr&gt;
-&lt;td&gt;A local bakery needs product and e-cart functionality&lt;/td&gt;
-&lt;td&gt;Learn a new custom ecommerce platform&lt;/td&gt;
-&lt;td&gt;Use a popular pre-existing library you&amp;#8217;re familiar with&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;Create an add-on blog for a medical clinic&lt;/td&gt;
-&lt;td&gt;Try a custom built static site generator and hook in a git-based CMS&lt;/td&gt;
-&lt;td&gt;Spin up a quick WordPress site and hand-off&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;UI mockups for a workout iOS app&lt;/td&gt;
-&lt;td&gt;Test out the newest design tool just released&lt;/td&gt;
-&lt;td&gt;Use your go-to default design tool you (Sketch, Figma, etc)&lt;/td&gt;
-&lt;/tr&gt;
-&lt;/tbody&gt;
-&lt;/table&gt;
-&lt;p&gt;I know all of this is very much &amp;#8220;common sense&amp;#8221;, but you would be surprised how often we reach out for the latest and greatest tools (we are creative problem-solvers, after-all). If a current project allots you the time to learn a new skillset alongside outputting a quality product - then more power to you. In my experience that&amp;#8217;s a rare luxury, so my advice is to focus on shipping quality work (whether that&amp;#8217;s code, design, analytics, content, etc) instead of getting caught up in the &amp;#8220;new and shiny&amp;#8221;.&lt;/p&gt;
-&lt;h2 id=&quot;but-wait-how-when-do-i-learn-new-things&quot;&gt;But wait, how &amp;#47; when do I learn new things?&lt;/h2&gt;
-&lt;p&gt;It isn&amp;#8217;t exactly ground breaking to state that you should keep things simple as a developer. There are probably hundreds of posts on the web advocating for the exact same thing - which is good. At the same time, we as designers and developers need to avoid stagnation - something that can happen all too easily.&lt;/p&gt;
-&lt;p&gt;So how do we learn new things? This is a hard thing to answer. Really, the best response would be: &lt;strong&gt;it depends on the designer &amp;#47; developer&lt;/strong&gt;. I know, &lt;em&gt;what a cop-out&lt;/em&gt;. Unfortunately, it&amp;#8217;s true. There is no one solution to learning anything new.&lt;/p&gt;
-&lt;p&gt;The best I can do is offer up some possible options:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Learn outside of work
-&lt;ul&gt;
-&lt;li&gt;Reading &amp;#47; listening to a technical book on your commute or before bed&lt;/li&gt;
-&lt;li&gt;Take an online course you can work on after hours&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Contribute to an open source project that you aren&amp;#8217;t familiar with but are interested in
-&lt;ul&gt;
-&lt;li&gt;Even tiny contributions go a long way, don&amp;#8217;t doubt yourself so much&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Ask your current company (if not a freelancer that is) to learn on their time
-&lt;ul&gt;
-&lt;li&gt;It&amp;#8217;s a valid argument that your company should have vested interest in you becoming a better developer &amp;#47; designer&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;easier-said-than-done&quot;&gt;Easier said than done&lt;/h2&gt;
-&lt;p&gt;Sometimes, even the suggestions above don&amp;#8217;t work for certain individuals. Life is hectic and other important things can pop-up taking precedence. Don&amp;#8217;t let it get you down - there are more important things in life than mastering the newest framework that released 25 minutes ago.&lt;/p&gt;
-&lt;p&gt;My motto is to keep shipping quality products that you actually give a shit about. Otherwise it doesn&amp;#8217;t matter how &amp;#8220;new&amp;#8221; it is.&lt;/p&gt;</content>
- <link href="https://btxx.org/being-efficient"/>
- <id>https://btxx.org/being-efficient</id>
- <updated>2019-09-28T10:00:00Z</updated>
- <published>2019-09-28T10:00:00Z</published>
- </entry>
- <entry>
- <title>Improving Laptop Battery Performance on OpenBSD</title>
- <content type="html">&lt;h1 id=&quot;improving-laptop-battery-performance-on-openbsd&quot;&gt;Improving Laptop Battery Performance on OpenBSD&lt;/h1&gt;
-&lt;p&gt;2023-06-13&lt;/p&gt;
-&lt;p&gt;It is no secret that OpenBSD has poor battery performance on laptops. Although not as impressive as something like Alpine Linux or FreeBSD, you can tweak OpenBSD &lt;em&gt;just enough&lt;/em&gt; to squeeze more life out of your machine&amp;#8217;s battery.&lt;/p&gt;
-&lt;h2 id=&quot;our-new-best-friend-&quot;&gt;Our New Best Friend: &lt;code&gt;ampd&lt;/code&gt;&lt;/h2&gt;
-&lt;p&gt;I won&amp;#8217;t go into great detail about &lt;code&gt;ampd&lt;/code&gt; here - that&amp;#8217;s what the incredible &lt;a href=&quot;https://man.openbsd.org/apmd&quot;&gt;documentation is for&lt;/a&gt;. You&amp;#8217;ll want to make sure to start it before trying to configure it:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;doas rcctl start apmd
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If already running in a live session, you can default to &lt;code&gt;-A&lt;/code&gt; (auto) but I suggest setting cpu performance to low:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;apm -L
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;To make these changes permanent on boot:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;doas rcctl set apmd flags -L
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Optimizating battery life via &lt;code&gt;ampd&lt;/code&gt; will have the most noticable impact but you can improve things even further by implementing some extra &amp;#8220;small&amp;#8221; performance wins.&lt;/p&gt;
-&lt;h2 id=&quot;small-performance-wins&quot;&gt;Small Performance Wins&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Reduce your screen&amp;#8217;s brightness (&lt;code&gt;xbacklight -set 50&lt;/code&gt;)&lt;/li&gt;
-&lt;li&gt;Use a lightweight window manager instead of a beefer desktop environment&lt;/li&gt;
-&lt;li&gt;Enable battery saving options in your system BIOS (if available)&lt;/li&gt;
-&lt;li&gt;Disable the fingerprint scanner and bluetooth in your system BIOS (if available)&lt;/li&gt;
-&lt;li&gt;Use utilities such as &lt;code&gt;mpv&lt;/code&gt; and &lt;code&gt;ffmpeg&lt;/code&gt; for media consumption&lt;/li&gt;
-&lt;li&gt;Reduce the number of open applications at any given time&lt;/li&gt;
-&lt;/ol&gt;</content>
- <link href="https://btxx.org/battery"/>
- <id>https://btxx.org/battery</id>
- <updated>2023-06-13T10:00:00Z</updated>
- <published>2023-06-13T10:00:00Z</published>
- </entry>
- <entry>
- <title>Batch Converting Images to webp with macOS Automator</title>
- <content type="html">&lt;h1 id=&quot;batch-converting-images-to-webp-with-macos-automator&quot;&gt;Batch Converting Images to webp with macOS Automator&lt;/h1&gt;
-&lt;p&gt;2021-10-15&lt;/p&gt;
-&lt;p&gt;A great deal of my time working as a web&amp;#47;UI designer is spent exporting and&amp;#47;or converting images for software products and websites. Although a lot of modern applications can render image conversions at build time, a custom conversion is sometimes requested for an image to be set as &lt;code&gt;webp&lt;/code&gt;.&lt;/p&gt;
-&lt;p&gt;You &lt;em&gt;could&lt;/em&gt; download one of the many native apps from the Mac App Store to do this for you - but why not create your own script and run it with a simple right-click directly inside Finder? &lt;strong&gt;Let&amp;#8217;s do just that!&lt;/strong&gt;&lt;/p&gt;
-&lt;h2 id=&quot;basic-requirements&quot;&gt;Basic requirements&lt;/h2&gt;
-&lt;p&gt;&lt;strong&gt;Important!&lt;/strong&gt;: As of this time of writing, the official &lt;code&gt;libwebp&lt;/code&gt; package release is &lt;em&gt;libwebp-1.2.1-mac-10.15&lt;/em&gt;. If this has been updated since then, change the command below to match that of the proper release version.&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;First you will need to download the &lt;code&gt;libwebp&lt;/code&gt; package to your Downloads folder: &lt;a href=&quot;https://developers.google.com/speed/webp/download&quot;&gt;developers.google.com&amp;#47;speed&amp;#47;webp&amp;#47;download&lt;/a&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;em&gt;Look for the &amp;#8220;Download for macOS link&amp;#8221;&lt;/em&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Next we will need to copy the &lt;code&gt;cwebp&lt;/code&gt; folder to our &lt;code&gt;&amp;#47;usr&amp;#47;local&amp;#47;bin&lt;/code&gt; directory:
-&lt;ul&gt;
-&lt;li&gt;Open macOS Terminal&lt;/li&gt;
-&lt;li&gt;Run &lt;code&gt;sudo cp &amp;#47;Downloads&amp;#47;libwebp-1.2.1-mac-10.15&amp;#47;bin&amp;#47;cwebp &amp;#47;usr&amp;#47;local&amp;#47;bin&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;&lt;em&gt;Note:&lt;/em&gt; if the &lt;code&gt;&amp;#47;usr&amp;#47;local&amp;#47;bin&lt;/code&gt; directory doesn&amp;#8217;t exist, simply create it by running: &lt;code&gt;sudo cd &amp;#47;usr&amp;#47;local &amp;#38;&amp;#38; mkdir bin&lt;/code&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;creating-our-custom-automator-script&quot;&gt;Creating our custom Automator script&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;&lt;p&gt;Open the macOS Automator from the Applications folder&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Select &lt;code&gt;Quick Option&lt;/code&gt; from the first prompt&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Set &amp;#8220;Workflow receives current&amp;#8221; to &lt;code&gt;image files&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Set the label &amp;#8220;in&amp;#8221; to &lt;code&gt;Finder&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;From the left pane, select &amp;#8220;Library &amp;#62; Utilities&amp;#8221;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;From the presented choices in the next pane, drag and drop &lt;code&gt;Run Shell Script&lt;/code&gt; into the far right pane&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Set the area &amp;#8220;Pass input&amp;#8221; to &lt;code&gt;as arguments&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Enter the following code below as your script and type &lt;code&gt;⌘-S&lt;/code&gt; to save (name it something like &amp;#8220;Convert to webp&amp;#8221;)&lt;/p&gt;
-&lt;p&gt;for f in &amp;#8220;$@&amp;#8221;
-do
-&amp;#47;usr&amp;#47;local&amp;#47;bin&amp;#47;cwebp -q 85 &amp;#8220;$f&amp;#8221; -o &amp;#8220;${f%.*}.webp&amp;#8221;
-done&lt;/p&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;For visual reference, it should look something like this:&lt;/p&gt;
-&lt;p&gt;And when right-clicking an image file in the Finder window, it should now give you the option to convert:&lt;/p&gt;
-&lt;h2 id=&quot;making-edits-to-your-script&quot;&gt;Making edits to your script&lt;/h2&gt;
-&lt;p&gt;If you ever have the need to edit this script (for example, changing the default &lt;code&gt;85&lt;/code&gt; quality parameter), you will need to navigate to your &lt;code&gt;~&amp;#47;Library&amp;#47;Services&lt;/code&gt; folder and open your custom webp Quick Action in the Automator application. &lt;/p&gt;
-&lt;p&gt;Simple as that!&lt;/p&gt;
-&lt;h2 id=&quot;possible-hiccups&quot;&gt;Possible Hiccups&lt;/h2&gt;
-&lt;p&gt;I was contacted by the very helpful &lt;a href=&quot;https://kevq.uk&quot;&gt;Kev Quirk&lt;/a&gt; about a minor problem he encountered while following this tutorial. When trying to run &lt;code&gt;cwebp&lt;/code&gt; he received the following error message:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;cwebp cannot be opened because it&amp;#39;s from an unverified developer
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Doing the next steps seemed to have fixed this issue for him:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Click on the &amp;#8220;Open in Finder&amp;#8221; in the error message prompt&lt;/li&gt;
-&lt;li&gt;Double-click on the &lt;code&gt;cwebp&lt;/code&gt; utility to open in Terminal&lt;/li&gt;
-&lt;li&gt;You&amp;#8217;ll then be prompted with a pop-up asking if you wish to execute&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;After following these steps, the issue should be resolved.&lt;/p&gt;</content>
- <link href="https://btxx.org/batch-webp-conversion"/>
- <id>https://btxx.org/batch-webp-conversion</id>
- <updated>2021-10-15T10:00:00Z</updated>
- <published>2021-10-15T10:00:00Z</published>
- </entry>
- <entry>
- <title>Basic Gulp Build for Sass</title>
- <content type="html">&lt;h1 id=&quot;basic-gulp-build-for-sass&quot;&gt;Basic Gulp Build for Sass&lt;/h1&gt;
-&lt;p&gt;2019-01-15&lt;/p&gt;
-&lt;p&gt;Some designers might shy away from build tools when first starting out and I can understand the reasoning - task runners like &lt;code&gt;gulp&lt;/code&gt; and &lt;code&gt;grunt&lt;/code&gt; can seem daunting at first. So, I&amp;#8217;ve decided to showcase my go-to setup for &lt;code&gt;gulp&lt;/code&gt; and explain what the heck it does step-by-step. &lt;/p&gt;
-&lt;p&gt;Here is the final &lt;code&gt;gulp.js&lt;/code&gt; file in all it&amp;#8217;s glory:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;var gulp = require(&amp;#39;gulp&amp;#39;);
-var shell = require(&amp;#39;gulp-shell&amp;#39;);
-var sass = require(&amp;#39;gulp-sass&amp;#39;);
-
-&amp;#47;* Build and watch Jekyll (change this task to whatever you need) *&amp;#47;
-gulp.task(&amp;#39;generate&amp;#39;, shell.task(&amp;#39;jekyll serve&amp;#39;));
-
-&amp;#47;* Compile SCSS files to CSS *&amp;#47;
-gulp.task(&amp;#39;styles&amp;#39;, function () {
- return gulp.src(&amp;#39;_includes&amp;#47;assets&amp;#47;sass&amp;#47;styles.scss&amp;#39;)
- .pipe(sass({
- outputStyle: &amp;#39;compressed&amp;#39;
- }).on(&amp;#39;error&amp;#39;, sass.logError))
- .pipe(gulp.dest(&amp;#39;_includes&amp;#47;assets&amp;#47;css&amp;#47;&amp;#39;));
-});
-
-&amp;#47;* Compile the assets *&amp;#47;
-gulp.task(&amp;#39;assets&amp;#39;, gulp.parallel(
- &amp;#39;styles&amp;#39;
-));
-
-&amp;#47;* Build *&amp;#47;
-gulp.task(&amp;#39;build&amp;#39;, gulp.series(
- &amp;#39;assets&amp;#39;,
- &amp;#39;generate&amp;#39;
-));
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Trust me, it&amp;#8217;s not complicated at all.&lt;/p&gt;
-&lt;h2 id=&quot;grabbing-what-we-need&quot;&gt;Grabbing what we need&lt;/h2&gt;
-&lt;p&gt;For our basic build file we are going to need only three modules: &lt;code&gt;gulp&lt;/code&gt;, &lt;code&gt;gulp-shell&lt;/code&gt; and &lt;code&gt;gulp-sass&lt;/code&gt;.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;var gulp = require(&amp;#39;gulp&amp;#39;);
-var shell = require(&amp;#39;gulp-shell&amp;#39;);
-var sass = require(&amp;#39;gulp-sass&amp;#39;);
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h4 id=&quot;gulp&quot;&gt;gulp&lt;/h4&gt;
-&lt;p&gt;This is the streaming build system, without it we can&amp;#8217;t do anything else.&lt;/p&gt;
-&lt;h4 id=&quot;gulp-shell&quot;&gt;gulp-shell&lt;/h4&gt;
-&lt;p&gt;A gulp command line interface for us to interact with our terminal.&lt;/p&gt;
-&lt;h4 id=&quot;gulp-sass&quot;&gt;gulp-sass&lt;/h4&gt;
-&lt;p&gt;Required for gulp to compile Sass into vanilla CSS.&lt;/p&gt;
-&lt;h4 id=&quot;bonus-tasks&quot;&gt;Bonus tasks&lt;/h4&gt;
-&lt;h2 id=&quot;generating-the-build&quot;&gt;Generating the build&lt;/h2&gt;
-&lt;p&gt;Our first step is to create the default task that will generate our build. In this example we are making the assumption that we&amp;#8217;re building a Jekyll website (but you can place any build command here):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;gulp.task(&amp;#39;generate&amp;#39;, shell.task(&amp;#39;jekyll serve&amp;#39;));
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Don&amp;#8217;t worry if this &lt;code&gt;generate&lt;/code&gt; isn&amp;#8217;t clear, we come back to that later.&lt;/p&gt;
-&lt;h2 id=&quot;processing-our-pre-processor&quot;&gt;Processing our pre-processor&lt;/h2&gt;
-&lt;p&gt;We will name this next task &lt;code&gt;styles&lt;/code&gt; since that&amp;#8217;s what it outputs - our styling. We start by telling gulp where our main &lt;code&gt;scss&lt;/code&gt; directory is:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Change this directory to match yours *&amp;#47;
-return gulp.src(&amp;#39;_includes&amp;#47;assets&amp;#47;sass&amp;#47;styles.scss&amp;#39;)
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This next piece tells the plugin to compress our final compiled CSS, log any errors if there are issues with the build and then export it to our destination directory:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.pipe(sass({
- outputStyle: &amp;#39;compressed&amp;#39;
-}).on(&amp;#39;error&amp;#39;, sass.logError))
-
-&amp;#47;* Change this to your destination directory *&amp;#47;
-.pipe(gulp.dest(&amp;#39;_includes&amp;#47;assets&amp;#47;css&amp;#47;&amp;#39;));
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;building-our-assets&quot;&gt;Building our assets&lt;/h2&gt;
-&lt;p&gt;This step isn&amp;#8217;t 100% needed, but I like to include it for when more assets need to be added (minifying JavaScript, compressing images, etc)&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;*
-Compile the assets
-*&amp;#47;
-gulp.task(&amp;#39;assets&amp;#39;, gulp.parallel(
- &amp;#39;styles&amp;#39;
-));
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;altogether-now&quot;&gt;Altogether now!&lt;/h2&gt;
-&lt;p&gt;Now we add a task that runs all other tasks in our gulp file (in this case it will run both &lt;code&gt;assets&lt;/code&gt; and &lt;code&gt;generate&lt;/code&gt;)&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;*
-Build
-*&amp;#47;
-gulp.task(&amp;#39;build&amp;#39;, gulp.series(
- &amp;#39;assets&amp;#39;,
- &amp;#39;generate&amp;#39;
-));
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;And that&amp;#8217;s it - we&amp;#8217;re done! A very basic &lt;code&gt;gulp&lt;/code&gt; build for compiling Sass.&lt;/p&gt;</content>
- <link href="https://btxx.org/basic-gulp-build-for-sass"/>
- <id>https://btxx.org/basic-gulp-build-for-sass</id>
- <updated>2019-01-15T10:00:00Z</updated>
- <published>2019-01-15T10:00:00Z</published>
- </entry>
- <entry>
- <title>Base64 All The Things! (Sometimes)</title>
- <content type="html">&lt;h1 id=&quot;base64-all-the-things-sometimes&quot;&gt;Base64 All The Things! (Sometimes)&lt;/h1&gt;
-&lt;p&gt;2020-03-18&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;An extremely overlooked process for displaying fonts&lt;/em&gt;, images, documents, spreadsheets, etc. on the web is the use of &lt;strong&gt;base64 encoding&lt;/strong&gt;. Although it may not be the most efficient (or easy) way to display and include these elements it can be a lifesaver in certain situations.&lt;/p&gt;</content>
- <link href="https://btxx.org/base64-all-the-things"/>
- <id>https://btxx.org/base64-all-the-things</id>
- <updated>2020-03-18T10:00:00Z</updated>
- <published>2020-03-18T10:00:00Z</published>
- </entry>
- <entry>
- <title>A Warning for New Designers: Avoid Dribbble</title>
- <content type="html">&lt;h1 id=&quot;a-warning-for-new-designers-avoid-dribbble&quot;&gt;A Warning for New Designers: Avoid Dribbble&lt;/h1&gt;
-&lt;p&gt;2022-09-08&lt;/p&gt;
-&lt;p&gt;Everyday a new designer begins their journey into the world of [&lt;em&gt;insert design industry here&lt;/em&gt;] and it is magical! Having a fresh pair of eyes untainted from the current trends of the time can help improve design as a whole. Newbies can even teach new things to older, grumpier luddites (like yours truly). But over the years I&amp;#8217;ve noticed a concerning trend among junior designers; &lt;strong&gt;they rely too heavily on Dribbble&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;Relying on Dribbble for minor inspiration is one thing. Referencing &amp;#8220;shots&amp;#8221; as justification for real-world design work? Not so much. I believe Dribbble shouldn&amp;#8217;t be used for either of these use cases, but I can at least give a pass at browsing for basic inspiration (colors, padding, layout).&lt;/p&gt;
-&lt;p&gt;Now, using concept shots to push for your own design decisions? That is a terrible idea. We &amp;#8220;senior&amp;#8221; designers need to step up and help newbies avoid this trap.&lt;/p&gt;
-&lt;h3 id=&quot;designing-for-other-designers&quot;&gt;Designing for Other Designers&lt;/h3&gt;
-&lt;p&gt;Dribbble is rarely a place for design feedback and discussion anymore. Hell, most people use it as a digital portfolio to share with prospective clients. Others use it like some form of &amp;#8220;design Linkedin&amp;#8221;, which has its own host of problems.&lt;/p&gt;
-&lt;p&gt;Dribble is now (mainly) a place where designers post &amp;#8220;work&amp;#8221; for other designers. There &lt;em&gt;is&lt;/em&gt; a small minority of users still looking for real, human feedback on their work - but they are a rarity.&lt;/p&gt;
-&lt;p&gt;Take a look at the &lt;a href=&quot;https://dribbble.com/shots/popular&quot;&gt;popular shots&lt;/a&gt; category at any give time. Most shots are promo pieces used to attract potential clients. Nearly all design concepts are impractical or simply impossible to create in a real-life setting. This is incredibly damaging to newcomers trying to learn &amp;#8220;good&amp;#8221; design practices. Dribbble shots simply ride the wave of the current trends, which doesn&amp;#8217;t provide junior designers with a solid foundation or core understanding of design as a whole. It just causes them to endlessly chase the &amp;#8220;latest and greatest&amp;#8221; trend.&lt;/p&gt;
-&lt;p&gt;Shot posters rarely go into the reasoning behind their design decisions. No research or iterations are shared to show the process. Instead it simply states &amp;#8220;here is a cool website layout for a company that doesn&amp;#8217;t exist&amp;#8221;. Zero constraints or goals needed to be met. No discussion about how one version of their design didn&amp;#8217;t perform as well when tested on real users. So of course it ends up looking &lt;em&gt;so cool and original&lt;/em&gt; - &lt;strong&gt;it wasn&amp;#8217;t designed in reality&lt;/strong&gt;.&lt;/p&gt;
-&lt;h3 id=&quot;i-dont-have-all-the-answers---but-ill-try&quot;&gt;I Don&amp;#8217;t Have All the Answers - But I&amp;#8217;ll Try&lt;/h3&gt;
-&lt;p&gt;I am not the holy savior of &lt;em&gt;all things design&lt;/em&gt;. I&amp;#8217;m just a designer who has been around the block a few times. If new designers want to keep using Dribbble as their main source of guidance and think I should go kick rocks - that&amp;#8217;s fine. I will. But for those with a little more passion for the profession, might I suggest some humble alternatives to get you on a more consistent path?&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Read some good design books (to get you started):
-&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://sensible.com/dont-make-me-think/&quot;&gt;Don&amp;#8217;t Make Me Think - Revisited&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/The_Design_of_Everyday_Things&quot;&gt;The Design of Everyday Things&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://www.edwardtufte.com/tufte/books_vdqi&quot;&gt;The Visual Display of Quantitative Information&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://www.amazon.ca/Dieter-Rams-Less-But-Better/dp/3899555252&quot;&gt;Less But Better&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Talk to &lt;em&gt;real&lt;/em&gt; people
-&lt;ul&gt;
-&lt;li&gt;Chat with your team&amp;#8217;s marketers, customer support specialists, senior design leads, and developers about new features (they often have better insights than you)&lt;/li&gt;
-&lt;li&gt;Perform customer interviews early and often (they use your product or service - let them tell you what they want!)&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;R ad through some quality UX reports and research
-&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://www.nngroup.com/&quot;&gt;Nielsen Norman Group&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://baymard.com/&quot;&gt;Baymard Institute&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;P y attention to real world design (good and bad)
-&lt;ul&gt;
-&lt;li&gt;Grocery item designs, labels packaging&lt;/li&gt;
-&lt;li&gt;Vehicle analog and digital dashboards &amp;#47; safety features&lt;/li&gt;
-&lt;li&gt;Warning and safety labeling (great for universal and minimal design inspiration)&lt;/li&gt;
-&lt;li&gt;Government websites and applications (notoriously terrible - great for &amp;#8220;what not to do&amp;#8221; examples)&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Your own experience (over time)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;These are just my own suggestions to help new designers get a better foundation of core design concepts &lt;em&gt;before&lt;/em&gt; falling down the Dribbble hole. Take it or leave it. I&amp;#8217;m not your dad.&lt;/p&gt;
-&lt;p&gt;Most designers who are pro-Dribbble will most likely write me off as a grumpy old man yelling at a cloud. That&amp;#8217;s only half true. But if just one person reading this even &lt;em&gt;considers&lt;/em&gt; avoiding Dribbble as a source for learning proper design - then it was worth it.&lt;/p&gt;
-&lt;p&gt;Now if you will excuse me, there are many more clouds to yell at&amp;#8230;&lt;/p&gt;</content>
- <link href="https://btxx.org/avoid"/>
- <id>https://btxx.org/avoid</id>
- <updated>2022-09-08T10:00:00Z</updated>
- <published>2022-09-08T10:00:00Z</published>
- </entry>
- <entry>
- <title>Aqua UI CSS Buttons</title>
- <content type="html">&lt;h1 id=&quot;aqua-ui-css-buttons&quot;&gt;Aqua UI CSS Buttons&lt;/h1&gt;
-&lt;p&gt;2016-06-28&lt;/p&gt;
-&lt;p&gt;Though it may feel like nostalgia, the old OS design for Mac was arguably better than the current iteration (as of this writing - High Sierra). I recently designed a quick Dribbble shot showcasing how the older operating system used to have so much more character and depth.&lt;/p&gt;
-&lt;p&gt;Since I&amp;#8217;ve been wanting to dip my toes into more tutorial-based articles (maybe I&amp;#8217;ll even do some screencasts in the future), I decided to start out simple. Let&amp;#8217;s walk through how to implement these &amp;#8216;aqua&amp;#8217; UI buttons with pure CSS.&lt;/p&gt;
-&lt;h3 id=&quot;starting-with-a-basic-foundation&quot;&gt;Starting with a basic foundation&lt;/h3&gt;
-&lt;p&gt;Since this project consists of only two buttons elements, the HTML or skeleton of this project is very straightforward:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;button class=&quot;cancel&quot;&amp;#62;Cancel&amp;#60;&amp;#47;button&amp;#62;
-&amp;#60;button class=&quot;confirm&quot;&amp;#62;Confirm&amp;#60;&amp;#47;button&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;styling-the-buttons&quot;&gt;Styling the buttons&lt;/h3&gt;
-&lt;p&gt;The first step is to remove the browser&amp;#8217;s default button styling by using the &lt;code&gt;appearance&lt;/code&gt; property. This will help avoid having to fight against the browser and minimize our CSS code.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;button {
- -webkit-appearance: none;
- -moz-appearance: none;
+.mario-block .dot:nth-child(1) {
+ left: 4px;
+ top: 4px;
+}
+.mario-block .dot:nth-child(2) {
+ right: 4px;
+ top: 4px;
+}
+.mario-block .dot:nth-child(3) {
+ bottom: 4px;
+ left: 4px;
+}
+.mario-block .dot:nth-child(4) {
+ bottom: 4px;
+ right: 4px;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next, we apply a fairly simple set of CSS that will be shared across both the confirm and cancel buttons:&lt;/p&gt;
-&lt;p&gt;(Pay attention to the &lt;code&gt;transition&lt;/code&gt; property as we will be returning to that shortly)&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;button {
- -webkit-appearance: none;
- -moz-appearance: none;
- border: 1px solid #ccc;
- border-radius: 125px;
- box-shadow: inset 0 13px 25px rgba(255,255,255,0.5), 0 3px 5px rgba(0,0,0,0.2), 0 10px 13px rgba(0,0,0,0.1);
+&lt;h3 id=&quot;punch-able-block&quot;&gt;Punch-able block&lt;/h3&gt;
+&lt;p&gt;Now we need to include the &amp;#8220;question mark&amp;#8221; SVG and custom CSS for the interactive Mario block. You can download a copy of the custom &lt;code&gt;svg&lt;/code&gt; question mark I created.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.mario-block--question label {
cursor: pointer;
- font-family: &amp;#39;Lucida Grande&amp;#39;, Helvetica, Arial, sans-serif;
- font-size: 2rem;
- margin: 5rem 1rem;
- padding: 1.2rem 4rem;
- position: relative;
- transition: all ease .3s;
+}
+.mario-block--question .question-mark {
+ background-image: url(&amp;#39;&amp;#47;public&amp;#47;images&amp;#47;mario-block-question-mark.svg&amp;#39;);
+ background-position: center;
+ background-repeat: no-repeat;
+ background-size: 40px;
+ bottom: 0;
+ left: 0;
+ position: absolute;
+ right: 0;
+ top: 0;
+ z-index: 1;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then we separate the specific confirm and cancel button styles into their own class selectors:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;button.confirm {
- background: #4A90E2;
- border-color: #3672B6;
- color: #fff;
+&lt;h3 id=&quot;the-last-piece&quot;&gt;The last piece&lt;/h3&gt;
+&lt;p&gt;The last item we need to design is the &lt;code&gt;checked&lt;/code&gt; state of the interactive question mark block. The extra inner dark dashes will be added as &lt;code&gt;pseudo&lt;/code&gt; elements:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Mario block in `checked` state *&amp;#47;
+.mario-block input:checked + label {
+ background: #885818;
+ box-shadow: inset -4px -4px 0 #68400B, inset 4px 4px 0 #FAB89B;
}
-button.cancel {
- background: #D0D0D0;
- border-color: #B8B8B8;
- color: #6F6F6F;
+&amp;#47;* Hide both the default dots and question mark svg on checked *&amp;#47;
+.mario-block input:checked + label .dot,
+.mario-block input:checked + label .question-mark {
+ display: none;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;playing-with-pseudo-elements&quot;&gt;Playing with pseudo elements&lt;/h3&gt;
-&lt;p&gt;Now that the button is styled and structured with basic formatting, it&amp;#8217;s time to add that classic &amp;#8216;shine&amp;#8217; seen in the original Dribbble shot.&lt;/p&gt;
-&lt;p&gt;The cleanest way to do this is by using the &lt;code&gt;:before&lt;/code&gt; pseudo element paired with a linear-gradient background.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;button:before {
- background: linear-gradient(rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
- border-radius: 125px;
- content:&amp;#39;&amp;#39;;
- height: 50px;
- left: 4%;
+
+&amp;#47;* Shared pseudo element styling *&amp;#47;
+.mario-block input:checked + label:before,
+.mario-block input:checked + label:after {
+ content: &amp;#39;&amp;#39;;
+ height: 20px;
position: absolute;
- top: 1px;
- transition: all ease .3s;
- width: 92%;
+ transform: rotate(45deg);
+ width: 20px;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;adding-interaction&quot;&gt;Adding interaction&lt;/h3&gt;
-&lt;p&gt;The final step is adding the user hover interaction: (Remember that &lt;code&gt;transition&lt;/code&gt; property?)&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;button:hover {
- box-shadow: inset 0 13px 25px rgba(255,255,255,0.8), 0 3px 5px rgba(0,0,0,0.2), 0 10px 13px rgba(0,0,0,0.2);
- transform: scale(1.02);
+
+&amp;#47;* Right dash *&amp;#47;
+.mario-block input:checked + label:before {
+ border-right: 4px solid #070000;
+ right: 18px;
+ top: 15px;
+ transform: rotate(45deg);
+}
+
+&amp;#47;* Left dash *&amp;#47;
+.mario-block input:checked + label:after {
+ border-left: 4px solid #070000;
+ left: 18px;
+ top: 15px;
+ transform: rotate(-45deg);
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That&amp;#8217;s it!&lt;/p&gt;
-&lt;h3 id=&quot;see-it-live-on-codepen&quot;&gt;See it live on CodePen&lt;/h3&gt;
-&lt;p&gt;You can view this project on CodePen here.&lt;/p&gt;
-&lt;p&gt;Feel free to fork it or implement your own!&lt;/p&gt;</content>
- <link href="https://btxx.org/aui"/>
- <id>https://btxx.org/aui</id>
- <updated>2016-06-28T10:00:00Z</updated>
- <published>2016-06-28T10:00:00Z</published>
- </entry>
- <entry>
- <title>Audio Hotkeys on Linux Mint</title>
- <content type="html">&lt;h1 id=&quot;audio-hotkeys-on-linux-mint&quot;&gt;Audio Hotkeys on Linux Mint&lt;/h1&gt;
-&lt;p&gt;2020-06-14&lt;/p&gt;
-&lt;p&gt;I recently switched out the OS on my old 2011 MacBook Air with Linux Mint. It&amp;#8217;s a distro I&amp;#8217;ve used a few times in the past, but never set it as one of my main daily drivers until now.&lt;/p&gt;
-&lt;p&gt;Setting up all my go-to applications (Sublime, LocalWP, Riot, Evolution, etc) was a breeze. The only snag I ran into was properly setting up the volume shortcuts on my wireless &lt;a href=&quot;https://www.amazon.com/gp/product/B01AROOL12/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=B01AROOL12&amp;amp;linkCode=as2&amp;amp;tag=uglyduck-20&amp;amp;linkId=5cfe5875a0f263b933692c381a6a88a9&quot;&gt;Logitech MK235 keyboard&lt;/a&gt;. After looking a little too long on DDG &amp;#38; even Google, I finally found &lt;a href=&quot;https://forums.linuxmint.com/viewtopic.php?t=253048&quot;&gt;this forum thread with the solution&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;For my own personal reference, I&amp;#8217;m also going to include those code snippets here since you never know when you might need it again! And who knows, maybe this will help someone else stumbling around the internet.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;&amp;#47; Volume Up
-pactl set-sink-volume @DEFAULT_SINK@ +5%
+&lt;h2 id=&quot;taking-it-further&quot;&gt;Taking it further&lt;/h2&gt;
+&lt;p&gt;As always, you can take this concept and flesh it out even further. I was trying to mimic the &amp;#8220;pixel&amp;#8221; style of the original Mario games, but you could make the lighting and depth more realistic with some extra subtle gradients or &lt;code&gt;filter&lt;/code&gt; properties.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/super-mario-blocks-css"/>
+ <id>https://btxx.org/posts/super-mario-blocks-css</id>
+ <updated>2019-02-15T10:00:00Z</updated>
+ <published>2019-02-15T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Tabbed Content Without JavaScript</title>
+ <content type="html">&lt;h1 id=&quot;tabbed-content-without-javascript&quot;&gt;Tabbed Content Without JavaScript&lt;/h1&gt;
+&lt;p&gt;2019-01-28&lt;/p&gt;
+&lt;p&gt;Creating tabs is a fairly trivial and common practice in web design, but many times it requires JavaScript to properly implement. Fortunately it &lt;em&gt;is&lt;/em&gt; possible to create tabbed content with only using CSS.&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/tabbed-content.png&quot; alt=&quot;Tabbed elements with only CSS&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/abjmayw&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;hr/&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;p&gt;The skeleton for this component is fairly basic - we just need the following structure:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;p&gt;Parent element for each tab item&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Default radio input&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Label linked to corresponding input&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Inner content associated with each tab item&lt;/p&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;Full HTML for reference:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;tabs&quot;&amp;#62;
-&amp;#47;&amp;#47; Volume Down
-pactl set-sink-volume @DEFAULT_SINK@ -5%
+ &amp;#60;div class=&quot;tab-item&quot;&amp;#62;
+ &amp;#60;input class=&quot;tab-input&quot; type=&quot;radio&quot; name=&quot;tabs&quot; id=&quot;tab-1&quot;&amp;#62;
+ &amp;#60;label class=&quot;tab-label&quot; for=&quot;tab-1&quot;&amp;#62;Tab 1&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;div class=&quot;tab-content&quot;&amp;#62;Content goes here&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+
+ &amp;#60;div class=&quot;tab-item&quot;&amp;#62;
+ &amp;#60;input class=&quot;tab-input&quot; type=&quot;radio&quot; name=&quot;tabs&quot; id=&quot;tab-2&quot;&amp;#62;
+ &amp;#60;label class=&quot;tab-label&quot; for=&quot;tab-2&quot;&amp;#62;Tab 2&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;div class=&quot;tab-content&quot;&amp;#62;Content goes here&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+
+ &amp;#60;div class=&quot;tab-item&quot;&amp;#62;
+ &amp;#60;input class=&quot;tab-input&quot; type=&quot;radio&quot; name=&quot;tabs&quot; id=&quot;tab-3&quot;&amp;#62;
+ &amp;#60;label class=&quot;tab-label&quot; for=&quot;tab-3&quot;&amp;#62;Tab 3&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;div class=&quot;tab-content&quot;&amp;#62;Content goes here&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
-&amp;#47;&amp;#47; Toggle Mute
-pactl set-sink-mute @DEFAULT_SINK@ toggle
-&lt;/code&gt;&lt;/pre&gt;</content>
- <link href="https://btxx.org/audio-hotkeys-on-linux-mint"/>
- <id>https://btxx.org/audio-hotkeys-on-linux-mint</id>
- <updated>2020-06-14T10:00:00Z</updated>
- <published>2020-06-14T10:00:00Z</published>
- </entry>
- <entry>
- <title>Animated Radio Tab Toggles</title>
- <content type="html">&lt;h1 id=&quot;animated-radio-tab-toggles&quot;&gt;Animated Radio Tab Toggles&lt;/h1&gt;
-&lt;p&gt;2021-01-05&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;In this demo tutorial, we are making the assumption&lt;/em&gt; that we need to create a radio slide toggle for our made-up payment options. For this we want to display 3 simple payment choices to the user:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;One-time payment&lt;/li&gt;
-&lt;li&gt;Recurring payment&lt;/li&gt;
-&lt;li&gt;Free tier payment&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;the-final-demo&quot;&gt;The Final Demo&lt;/h2&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/embed/vYXjpLO&quot;&gt;Live CodePen&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;Let’s get started with the base skeleton.&lt;/p&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;radio-toggles&quot;&amp;#62;
- &amp;#60;input type=&quot;radio&quot; id=&quot;option-1&quot; name=&quot;radio-options&quot;&amp;#62;
- &amp;#60;label for=&quot;option-1&quot;&amp;#62;One-Time&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;input type=&quot;radio&quot; id=&quot;option-2&quot; name=&quot;radio-options&quot; checked&amp;#62;
- &amp;#60;label for=&quot;option-2&quot;&amp;#62;Recurring&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;input type=&quot;radio&quot; id=&quot;option-3&quot; name=&quot;radio-options&quot;&amp;#62;
- &amp;#60;label for=&quot;option-3&quot;&amp;#62;Free&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;div class=&quot;slide-item&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;Now for the main event – the CSS. First we want to style the wrapper that holds all of our pieces together. You can tweak this to your liking, but I prefer a simple and clean style:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.radio-toggles {
- align-items: center;
- background: #eee;
- border: 1px solid lightgrey;
- border-radius: 9999px;
- display: flex;
- justify-content: center;
- margin: 20px auto;
- max-width: 400px;
- overflow: hidden;
- padding: 4px;
+&lt;p&gt;First, we need to set each &lt;code&gt;input&lt;/code&gt;, &lt;code&gt;label&lt;/code&gt; and inner content into their own parent containers:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Main parent that holds all contents *&amp;#47;
+.tabs {
+ height: 100%;
+ min-height: 250px;
position: relative;
}
+
+&amp;#47;* Each tab items (includes heading &amp;#38; content) *&amp;#47;
+.tab-item {
+ display: inline;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next, we “hide” (only visually) the default &lt;code&gt;radio&lt;/code&gt; inputs:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;input[type=&quot;radio&quot;] {
- left: -9999px;
+&lt;p&gt;Next, we will hide the default &lt;code&gt;radio&lt;/code&gt; input and design our labels to resemble a basic web tab element. The &lt;code&gt;z-index&lt;/code&gt; property on the label is important for how we will be stacking our content on the z-axis (labels above inner content for example).&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Hide the default radio inputs *&amp;#47;
+.tab-input {
position: absolute;
- z-index: -1;
+ visibility: hidden;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then we give the corresponding &lt;code&gt;label&lt;/code&gt; elements a little spacing and breathing room:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;label {
+
+&amp;#47;* The main tab headings *&amp;#47;
+.tab-label {
+ background: white;
+ box-shadow: inset 0 -4px 4px rgba(0,0,0,0.02);
+ color: lightgrey;
cursor: pointer;
+ display: inline-block;
+ font-weight: 600;
+ margin: 0 5px 0 0;
padding: 10px 20px;
+ position: relative;
text-align: center;
- width: 33.33%;
- z-index: 2;
+ z-index: 0;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Remember that &lt;code&gt;.slide-item&lt;/code&gt; I referenced earlier? That element will be the visual “slider” that animates between the individual radio options. We style that like so:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.slide-item {
+&lt;p&gt;The main inner content of each tab needs to have an &lt;code&gt;absolute&lt;/code&gt; position set as it&amp;#8217;s default, since the one currently selected will switch to &lt;code&gt;relative&lt;/code&gt; on mobile (more on that in a moment):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* The inner tab content *&amp;#47;
+.tab-content {
background: white;
- border-radius: 9999px;
- box-shadow: 0 2px 4px rgba(0,0,0,0.15);
- height: calc(100% - 8px);
- left: calc(33.33% + 4px);
+ bottom: 0;
+ box-shadow: 0 6px 8px rgba(0,0,0,0.02);
+ left: 0;
+ overflow: scroll;
+ padding: 20px;
position: absolute;
- width: calc(33.33% - 8px);
- transition: left .4s;
+ right: 0;
+ top: 50px;
z-index: 0;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;You&amp;#8217;ll notice the &lt;code&gt;left&lt;/code&gt;, &lt;code&gt;height&lt;/code&gt;, and &lt;code&gt;width&lt;/code&gt; properties utilize the CSS &lt;code&gt;calc&lt;/code&gt; attributes – this just gives some much needed padding and visual clean-up to the whole tabbed interface.&lt;/p&gt;
-&lt;p&gt;For the finishing touches, we just need to tell the &lt;code&gt;.slide-item&lt;/code&gt; where to position itself based on which &lt;code&gt;radio&lt;/code&gt; input is currently selected:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;input[type=&quot;radio&quot;]:nth-of-type(1):checked ~ .slide-item {
- left: 4px;
+&lt;p&gt;The final step is just telling the browser to style both the &lt;code&gt;label&lt;/code&gt; and inner content of the currently selected radio &lt;code&gt;input&lt;/code&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Style the currently selected tab label *&amp;#47;
+.tab-input:checked + .tab-label {
+ border: 1px solid #eee;
+ border-bottom: 0;
+ box-shadow: 0 -6px 8px rgba(0,0,0,0.02);
+ color: #268bd2;
+ z-index: 2;
}
-input[type=&quot;radio&quot;]:nth-of-type(3):checked ~ .slide-item {
- left: calc(66.66% + 4px);
+
+&amp;#47;* Show the currently selected tab content *&amp;#47;
+.tab-input:checked ~ .tab-content {
+ border: 1px solid #eee;
+ z-index: 1;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s pretty much it! You now have a fully functional, animated toggle slider with just a set of simple &lt;code&gt;radio&lt;/code&gt; inputs and pure CSS.&lt;/p&gt;</content>
- <link href="https://btxx.org/animated-toggle-tabs"/>
- <id>https://btxx.org/animated-toggle-tabs</id>
- <updated>2021-01-05T10:00:00Z</updated>
- <published>2021-01-05T10:00:00Z</published>
- </entry>
- <entry>
- <title>Animated Card Tiles</title>
- <content type="html">&lt;h1 id=&quot;animated-card-tiles&quot;&gt;Animated Card Tiles&lt;/h1&gt;
-&lt;p&gt;2019-02-27&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;The design trend of using &amp;#8220;cards&amp;#8221; or &amp;#8220;tiles&amp;#8221; to display interactive&lt;/em&gt; sections&amp;#47;article headings in an app or website remains a popular choice among designers. So, let&amp;#8217;s build a set of animated cards with only HTML &amp;#38; CSS. &lt;/p&gt;
-&lt;h2 id=&quot;what-we-will-be-building-live-demo&quot;&gt;What we will be building (live demo)&lt;/h2&gt;
-&lt;p&gt;This is the set of animated card tiles we will be creating:&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;(try hovering)&lt;/em&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/rNjBpob&quot;&gt;Live CodePen&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;For the base skeleton of these cards we only need:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;p&gt;a &lt;code&gt;flexbox&lt;/code&gt; main container to hold everything&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;a &lt;code&gt;.card-tile&lt;/code&gt; parent element&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;the inner child element that will display on &lt;code&gt;:hover&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;proper &lt;code&gt;h4&lt;/code&gt; and &lt;code&gt;p&lt;/code&gt; tags inside that child element&lt;/p&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;That&amp;#8217;s all that is needed - for now. We will be returning to this code shortly to add some extra classes to make our lives easier.&lt;/p&gt;
-&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;First we set the main housing container to use &lt;code&gt;flex&lt;/code&gt; so we save ourselves the headache of aligning all the cards in a nice row:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.card-tiles-container {
- display: flex;
- font-size: 14px;
- margin: 20px 0;
+&lt;p&gt;It&amp;#8217;s as simple as that! For reference, here is the entire CSS file for easier access:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Main parent that holds all contents *&amp;#47;
+.tabs {
+ height: 100%;
+ min-height: 250px;
+ position: relative;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next we create the default styling for our tile cards and set the &lt;code&gt;transform&lt;/code&gt; property to scale the card on &lt;code&gt;:hover&lt;/code&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Default card tile styles *&amp;#47;
-.card-tile {
- border: 1px solid;
- border-radius: 10px;
+
+&amp;#47;* Each tab items (includes heading &amp;#38; content) *&amp;#47;
+.tab-item {
+ display: inline;
+}
+
+&amp;#47;* Hide the default radio inputs *&amp;#47;
+.tab-input {
+ position: absolute;
+ visibility: hidden;
+}
+
+&amp;#47;* The main tab headings *&amp;#47;
+.tab-label {
+ background: white;
+ box-shadow: inset 0 -4px 4px rgba(0,0,0,0.02);
+ color: lightgrey;
cursor: pointer;
- height: 150px;
- margin: 0 10px;
- overflow: hidden;
+ display: inline-block;
+ font-weight: 600;
+ margin: 0 5px 0 0;
+ padding: 10px 20px;
position: relative;
- width: 33.33%;
-}
-.card-tile:hover {
- transform: scale(1.1);
+ text-align: center;
+ z-index: 0;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;where-are-my-cards&quot;&gt;Where are my cards?!&lt;/h3&gt;
-&lt;p&gt;Don&amp;#8217;t panic if you can&amp;#8217;t &lt;em&gt;visually&lt;/em&gt; see any card elements in your demo yet - that&amp;#8217;s to be expected. We will be styling these card elements momentarily.&lt;/p&gt;
-&lt;p&gt;Our next step is to hide the default inner &lt;code&gt;text-content&lt;/code&gt; and only show it on hover. We achieve this by setting it&amp;#8217;s position to &lt;code&gt;absolute&lt;/code&gt;, placing it&amp;#8217;s opacity at 0 and pushing it&amp;#8217;s z-index back to -1.&lt;/p&gt;
-&lt;p&gt;When the user hovers over a main card tile, we change the &lt;code&gt;text-content&lt;/code&gt; values of both the opacity and z-index to 1.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Card tile text content *&amp;#47;
-.card-tile .text-content {
- background: linear-gradient(rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
- bottom: 10px;
- border: 1px solid rgba(0,0,0,0.4);
- border-radius: 5px;
- box-shadow: inset 0 1px 1px rgba(255,255,255,0.8),
- 0 2px 4px rgba(0,0,0,0.5);
- height: 65px;
- left: 10px;
- opacity: 0;
- padding: 10px;
+
+&amp;#47;* The inner tab content *&amp;#47;
+.tab-content {
+ background: white;
+ bottom: 0;
+ box-shadow: 0 6px 8px rgba(0,0,0,0.02);
+ left: 0;
+ overflow: scroll;
+ padding: 20px;
position: absolute;
- width: calc(100% - 20px);
- z-index: -1;
+ right: 0;
+ top: 50px;
+ z-index: 0;
}
-.card-tile:hover .text-content {
- opacity: 1;
- z-index: 1;
+
+&amp;#47;* Style the currently selected tab label *&amp;#47;
+.tab-input:checked + .tab-label {
+ border: 1px solid #eee;
+ border-bottom: 0;
+ box-shadow: 0 -6px 8px rgba(0,0,0,0.02);
+ color: #268bd2;
+ z-index: 2;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Finally we add some minor styling for the inner header and paragraph tags:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.card-tile .text-content h4,
-.card-tile .text-content p {
- color: #fff;
- margin: 0;
- text-shadow: 1px 1px 1px rgba(0,0,0,0.6);
+
+&amp;#47;* Show the currently selected tab content *&amp;#47;
+.tab-input:checked ~ .tab-content {
+ border: 1px solid #eee;
+ z-index: 1;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;dont-forget-mobile&quot;&gt;Don&amp;#8217;t forget mobile&lt;/h3&gt;
-&lt;p&gt;We want out UI to stack the cards if users are viewing them on smaller devices:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@media(max-width: 600px) {
- .card-tiles-container {
- flex-direction: column;
- }
- .card-tile {
- margin: 0 0 10px 0;
+&lt;h2 id=&quot;dont-forget-about-mobile&quot;&gt;Don&amp;#8217;t forget about mobile&lt;/h2&gt;
+&lt;p&gt;With only a few extra lines of CSS we can ensure that our custom tabs will stack on top of each other and look solid on mobile devices:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@media(max-width:38em) {
+ .tab-label {
+ display: block;
width: 100%;
}
+ .tab-content {
+ display: none;
+ }
+ .tab-input:checked ~ .tab-content {
+ bottom: auto;
+ display: block;
+ position: relative;
+ top: auto;
+ }
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;customizing-each-card&quot;&gt;Customizing each card&lt;/h2&gt;
-&lt;p&gt;Remember how I mentioned that we would be adding more classes to the original HTML? Now is the time. We will be including a simple class on each card tile to provide it&amp;#8217;s own custom coloring:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;card-tiles-container&quot;&amp;#62;
- &amp;#60;!-- `Blue` class --&amp;#62;
- &amp;#60;div class=&quot;card-tile blue&quot;&amp;#62;
- &amp;#60;div class=&quot;text-content&quot;&amp;#62;
- &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
- &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;!-- `Orange` class --&amp;#62;
- &amp;#60;div class=&quot;card-tile orange&quot;&amp;#62;
- &amp;#60;div class=&quot;text-content&quot;&amp;#62;
- &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
- &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;!-- `Green` class --&amp;#62;
- &amp;#60;div class=&quot;card-tile green&quot;&amp;#62;
- &amp;#60;div class=&quot;text-content&quot;&amp;#62;
- &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
- &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;And these color classes correlate to some new CSS styling:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Blue Card *&amp;#47;
-.card-tile.blue {
- background-color: #0093E9;
- background-image: linear-gradient(0deg, #0093E9 0%, #80D0C7 100%);
- border-color: #0093E9;
- box-shadow: 0 4px 12px rgba(128,208,199,0.7),
- inset 0 2px 1px rgba(255,255,255,0.6);
-}
-.card-tile.blue:hover {
- box-shadow: 0 8px 18px rgba(128,208,199,0.4),
- inset 0 2px 1px rgba(255,255,255,0.6);
-}
-
-&amp;#47;* Orange Card *&amp;#47;
-.card-tile.orange {
- background-color: #FAD961;
- background-image: linear-gradient(180deg, #FAD961 0%, #F76B1C 100%);
- border-color: #F76B1C;
- box-shadow: 0 4px 12px rgba(247,107,28,0.7),
- inset 0 2px 1px rgba(255,255,255,0.6);
-}
-.card-tile.orange:hover {
- box-shadow: 0 8px 18px rgba(247,107,28,0.4),
- inset 0 2px 1px rgba(255,255,255,0.6);
-}
-
-&amp;#47;* Green Card *&amp;#47;
-.card-tile.green {
- background-color: #096e40;
- background-image: linear-gradient(0deg, #096e40 0%, #2AF598 100%);
- border-color: #096e40;
- box-shadow: 0 4px 12px rgba(9,110,64,0.7),
- inset 0 2px 1px rgba(255,255,255,0.6);
-}
-.card-tile.green:hover {
- box-shadow: 0 8px 18px rgba(9,110,64,0.4),
- inset 0 2px 1px rgba(255,255,255,0.6);
+&lt;h2 id=&quot;one-minor-caveat&quot;&gt;One minor caveat&lt;/h2&gt;
+&lt;p&gt;Even though I&amp;#8217;m a pretty big fan of implementing tabs this way, there is a small drawback:&lt;/p&gt;
+&lt;p&gt;The &lt;code&gt;height&lt;/code&gt; of the inner content doesn&amp;#8217;t grow dynamically since it defaults as &lt;code&gt;absolute&lt;/code&gt;, so a &lt;code&gt;min-height&lt;/code&gt; or &lt;code&gt;height&lt;/code&gt; value is required on the parent element. This could become a problem in certain situations where you don&amp;#8217;t have the luxury of setting a static height.&lt;/p&gt;
+&lt;p&gt;Other than that, enjoy building some JavaScript-free tabs!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/tabbed-content"/>
+ <id>https://btxx.org/posts/tabbed-content</id>
+ <updated>2019-01-28T10:00:00Z</updated>
+ <published>2019-01-28T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Making Tables Responsive With Minimal CSS</title>
+ <content type="html">&lt;h1 id=&quot;making-tables-responsive-with-minimal-css&quot;&gt;Making Tables Responsive With Minimal CSS&lt;/h1&gt;
+&lt;p&gt;2019-06-11&lt;/p&gt;
+&lt;hr/&gt;
+&lt;p&gt;I find that the need to create responsive table layouts pops up far more often than most developers would expect. The gut reaction might to be implement some sort of custom grid-system or pull in a pre-built library. Don&amp;#8217;t do this - just use tables and some simple CSS.&lt;/p&gt;
+&lt;p&gt;My recent article, &lt;a href=&quot;/html-like-1999&quot;&gt;Write HTML Like It&amp;#8217;s 1999&lt;/a&gt;, received far more attention than I ever expected on HackerNews. With this attention came a few comments mentioning how &lt;code&gt;table&lt;/code&gt; elements don&amp;#8217;t play nice with mobile devices or that it&amp;#8217;s not possible to have a useable layout on smaller screens. &lt;em&gt;This simply isn&amp;#8217;t true&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;Included below are two separate demos showing how to optimize &lt;code&gt;table&lt;/code&gt; HTML for mobile devices using only a minimal amount of CSS. These implementations may not be perfect, but they are far superior to injecting a bunch of custom &lt;code&gt;div&lt;/code&gt; elements to &lt;em&gt;look&lt;/em&gt; like tables.&lt;/p&gt;
+&lt;h2 id=&quot;demo-1-just-let-them-scroll&quot;&gt;Demo 1: Just let them scroll&lt;/h2&gt;
+&lt;p&gt;Okay I will admit, this implementation isn&amp;#8217;t the &lt;em&gt;greatest&lt;/em&gt; but I find it does work well with huge datasets. Simply set a &lt;code&gt;min-width&lt;/code&gt; on your parent &lt;code&gt;table&lt;/code&gt; element and the browser will just require the user to scroll the contents horizontally.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;table {
+ min-width: 800px; &amp;#47;* Set your desired min-width here *&amp;#47;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;adding-transitions&quot;&gt;Adding transitions&lt;/h3&gt;
-&lt;p&gt;We can now see the actual cards visually and have the ability to interact with them, but there is a problem - they don&amp;#8217;t animate.&lt;/p&gt;
-&lt;p&gt;Lucky we can target all elements we wish to animate with the &lt;code&gt;transition&lt;/code&gt; property, like so:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Shared transitions *&amp;#47;
-.card-tile,
-.card-tile .text-content {
- transition: .3s ease all;
+&lt;p&gt;Check out the CodePen below to see it in action:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/ewObbW/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;I actually prefer this method because of its simplicity and function. Users on mobile are familiar with scrolling since it is one of the most basic actions required. Seeing a &amp;#8220;cut-off&amp;#8221; table gives them an instant visual cue that they have the ability to scroll the content.&lt;/p&gt;
+&lt;h2 id=&quot;demo-2-more-flexible-than-you-think&quot;&gt;Demo 2: More flexible than you think&lt;/h2&gt;
+&lt;p&gt;Using something like &lt;code&gt;flexbox&lt;/code&gt; tends to work better when you are working with smaller table datasets. All you need to do is add some minor &lt;code&gt;flexbox&lt;/code&gt; layout at your targeted mobile screen size.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Using 800px as mobile screen in this example *&amp;#47;
+@media(max-width: 800px) {
+ &amp;#47;* Hide the table headings *&amp;#47;
+ table thead {
+ left: -9999px;
+ position: absolute;
+ visibility: hidden;
+ }
+ table tr {
+ border-bottom: 0;
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ margin-bottom: 40px;
+ }
+ table td {
+ border: 1px solid;
+ margin: 0 -1px -1px 0; &amp;#47;* Removes double-borders *&amp;#47;
+ width: 50%;
+ }
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Done and done.&lt;/p&gt;
-&lt;h2 id=&quot;the-final-code&quot;&gt;The final code&lt;/h2&gt;
-&lt;p&gt;To make things easier for reference, I have included all the &lt;code&gt;html&lt;/code&gt; and &lt;code&gt;css&lt;/code&gt; below. Please feel free to use these cards anywhere you like and change them as you see fit!&lt;/p&gt;
-&lt;h3 id=&quot;html&quot;&gt;HTML&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;card-tiles-container&quot;&amp;#62;
- &amp;#60;div class=&quot;card-tile blue&quot;&amp;#62;
- &amp;#60;div class=&quot;text-content&quot;&amp;#62;
- &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
- &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;card-tile orange&quot;&amp;#62;
- &amp;#60;div class=&quot;text-content&quot;&amp;#62;
- &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
- &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;card-tile green&quot;&amp;#62;
- &amp;#60;div class=&quot;text-content&quot;&amp;#62;
- &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
- &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;css&quot;&gt;CSS&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;.card-tiles-container {
- display: flex;
- font-size: 14px;
- margin: 20px 0;
-}
-&amp;#47;* Shared transitions *&amp;#47;
-.card-tile,
-.card-tile .text-content {
- transition: .3s ease all;
-}
-&amp;#47;* Default card tile styles *&amp;#47;
-.card-tile {
- border: 1px solid;
- border-radius: 10px;
- cursor: pointer;
- height: 150px;
- margin: 0 10px;
- overflow: hidden;
- position: relative;
- width: 33.33%;
-}
-&amp;#47;* Blue Card *&amp;#47;
-.card-tile.blue {
- background-color: #0093E9;
- background-image: linear-gradient(0deg, #0093E9 0%, #80D0C7 100%);
- border-color: #0093E9;
- box-shadow: 0 4px 12px rgba(128,208,199,0.7),
- inset 0 2px 1px rgba(255,255,255,0.6);
-}
-.card-tile.blue:hover {
- box-shadow: 0 8px 18px rgba(128,208,199,0.4),
- inset 0 2px 1px rgba(255,255,255,0.6);
-}
-&amp;#47;* Orange Card *&amp;#47;
-.card-tile.orange {
- background-color: #FAD961;
- background-image: linear-gradient(180deg, #FAD961 0%, #F76B1C 100%);
- border-color: #F76B1C;
- box-shadow: 0 4px 12px rgba(247,107,28,0.7),
- inset 0 2px 1px rgba(255,255,255,0.6);
-}
-.card-tile.orange:hover {
- box-shadow: 0 8px 18px rgba(247,107,28,0.4),
- inset 0 2px 1px rgba(255,255,255,0.6);
-}
-&amp;#47;* Green Card *&amp;#47;
-.card-tile.green {
- background-color: #096e40;
- background-image: linear-gradient(0deg, #096e40 0%, #2AF598 100%);
- border-color: #096e40;
- box-shadow: 0 4px 12px rgba(9,110,64,0.7),
- inset 0 2px 1px rgba(255,255,255,0.6);
-}
-.card-tile.green:hover {
- box-shadow: 0 8px 18px rgba(9,110,64,0.4),
- inset 0 2px 1px rgba(255,255,255,0.6);
-}
-&amp;#47;* Card tile text content *&amp;#47;
-.card-tile .text-content {
- background: linear-gradient(rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
- bottom: 10px;
- border: 1px solid rgba(0,0,0,0.4);
- border-radius: 5px;
- box-shadow: inset 0 1px 1px rgba(255,255,255,0.8),
- 0 2px 4px rgba(0,0,0,0.5);
- height: 65px;
- left: 10px;
- opacity: 0;
- padding: 10px;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/mZbvOb/&quot;&gt;Check out the CodePen demo&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;There are some caveats with this approach:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;We currently hide the &lt;code&gt;thead&lt;/code&gt; row when in mobile view (only visually - screen readers can still scan it)&lt;/li&gt;
+&lt;li&gt;Some more custom work might be needed depending on how many items per &lt;code&gt;flexbox&lt;/code&gt; row makes sense (based on project and dataset)&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;You could keep the table headings and style them the same as the &lt;code&gt;tbody&lt;/code&gt; contents, but I find hiding them a little cleaner. That choice is entirely up to your personal preference. You can also decide to add heading &lt;code&gt;span&lt;/code&gt; elements inside the main &lt;code&gt;tbody&lt;/code&gt; elements like so:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Default span styling - hidden on desktop *&amp;#47;
+table td span {
+ background: #eee;
+ color: dimgrey;
+ display: none;
+ font-size: 10px;
+ font-weight: bold;
+ padding: 5px;
position: absolute;
- width: calc(100% - 20px);
- z-index: -1;
-}
-.card-tile .text-content h4,
-.card-tile .text-content p {
- color: #fff;
- margin: 0;
- text-shadow: 1px 1px 1px rgba(0,0,0,0.6);
-}
-&amp;#47;* All animations on hover *&amp;#47;
-.card-tile:hover {
- transform: scale(1.1);
-}
-.card-tile:hover .text-content {
- opacity: 1;
- z-index: 1;
+ text-transform: uppercase;
+ top: 0;
+ left: 0;
}
-@media(max-width: 600px) {
- .card-tiles-container {
- flex-direction: column;
+
+&amp;#47;* Simple CSS for flexbox table on mobile *&amp;#47;
+@media(max-width: 800px) {
+ table thead {
+ left: -9999px;
+ position: absolute;
+ visibility: hidden;
}
- .card-tile {
- margin: 0 0 10px 0;
- width: 100%;
+ table tr {
+ border-bottom: 0;
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ margin-bottom: 40px;
+ }
+ table td {
+ border: 1px solid;
+ margin: 0 -1px -1px 0;
+ padding-top: 35px; &amp;#47;* additional padding to avoid heading overlap *&amp;#47;
+ position: relative;
+ width: 50%;
+ }
+ &amp;#47;* Show the heading span *&amp;#47;
+ table td span {
+ display: block;
}
}
-&lt;/code&gt;&lt;/pre&gt;</content>
- <link href="https://btxx.org/animated-card-tiles"/>
- <id>https://btxx.org/animated-card-tiles</id>
- <updated>2019-02-27T10:00:00Z</updated>
- <published>2019-02-27T10:00:00Z</published>
- </entry>
- <entry>
- <title>Adventures in Creating a Minimal Alpine Linux Installer</title>
- <content type="html">&lt;h1 id=&quot;adventures-in-creating-a-minimal-alpine-linux-installer&quot;&gt;Adventures in Creating a Minimal Alpine Linux Installer&lt;/h1&gt;
-&lt;p&gt;2022-12-08&lt;/p&gt;
-&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve made the switch to Alpine Linux as my main laptop&amp;#47;desktop hybrid
-workstation and I love it - warts and all. This post will follow my process building my Alpine Linux &amp;#8220;installer&amp;#8221; I used for this workstation, along with covering some bugs I found during my adventure.&lt;/p&gt;
-&lt;p&gt;My main goals when starting this project were to have a daily driver that was:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;free of any &amp;#8220;real&amp;#8221; desktop environment&lt;/li&gt;
-&lt;li&gt;Wayland based with SwayWM&lt;/li&gt;
-&lt;li&gt;as lightweight as possible&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Overall, I think I achieved what I was aiming for. After logging in (there is no login manager, you do it directly through the boot terminal) you will see:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/alpine-1.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;(You can view the &lt;a href=&quot;/public/images/alpine-1.jpg&quot;&gt;full res image here&lt;/a&gt;)&lt;/p&gt;
-&lt;p&gt;For reference this is running on a X260 ThinkPad with 16GB RAM, docked and connected to a 27&amp;#8221; 4K monitor.&lt;/p&gt;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/mZdzmZ/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Updated&lt;/strong&gt;: As pointed out by user &lt;a href=&quot;https://news.ycombinator.com/user?id=mmoez&quot;&gt;mmoez&lt;/a&gt;, it is far less repetitive to use &lt;code&gt;:nth-child&lt;/code&gt; pseudo selectors to implement the heading fields on mobile (as outlined in this &lt;a href=&quot;https://css-tricks.com/responsive-data-tables/&quot;&gt;CSS-Tricks article&lt;/a&gt;).&lt;/p&gt;
+&lt;h2 id=&quot;why-should-i-care-to-use-elements&quot;&gt;Why should I care to use &lt;code&gt;table&lt;/code&gt; elements?&lt;/h2&gt;
+&lt;p&gt;Simply put: &lt;strong&gt;accessibility&lt;/strong&gt; and &lt;strong&gt;proper semantics&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;Why use a screwdriver when you need a hammer? Sure, you can make that screwdriver look and &lt;em&gt;almost&lt;/em&gt; work the same as a hammer, but for what purpose? Just use the damn hammer1.&lt;/p&gt;
+&lt;p&gt;Have fun making your tables responsive!&lt;/p&gt;
+&lt;p&gt;1 I know, this is a terrible analogy&amp;#8230;&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/tables"/>
+ <id>https://btxx.org/posts/tables</id>
+ <updated>2019-06-11T10:00:00Z</updated>
+ <published>2019-06-11T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>The Wonders of Text Ellipsis</title>
+ <content type="html">&lt;h1 id=&quot;the-wonders-of-text-ellipsis&quot;&gt;The Wonders of Text Ellipsis&lt;/h1&gt;
+&lt;p&gt;2016-11-15&lt;/p&gt;
+&lt;p&gt;A common issue when working with constrained UI elements is text overflowing outside of it&amp;#8217;s parent or breaking into addition lines (thus breaking the layout).&lt;/p&gt;
+&lt;p&gt;This is most commonly seen with the direct and placeholder values for input fields on form elements. For example, the following input placeholder will be cutoff from the user&amp;#8217;s view:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/OgpzyY/&quot;&gt;CodePen live example&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;Luckily, 3 simple CSS parameters can fix this.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;input::placeholder {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;This allows the user to understand there is more content cut out from their current view. It&amp;#8217;s not ideal to ever have content overflowing outside of the parent container, but if you need to the best workaround is to use text-overflow.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/te"/>
+ <id>https://btxx.org/posts/te</id>
+ <updated>2016-11-15T10:00:00Z</updated>
+ <published>2016-11-15T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Text Align: Justify</title>
+ <content type="html">&lt;h1 id=&quot;text-align-justify&quot;&gt;Text Align: Justify&lt;/h1&gt;
+&lt;p&gt;2019-05-22&lt;/p&gt;
+&lt;p&gt;The text-align property is fairly well known in the world of CSS, even among those just starting out with the language. Values such as &lt;code&gt;center&lt;/code&gt;, &lt;code&gt;left&lt;/code&gt; and &lt;code&gt;right&lt;/code&gt; are used often with this property, but a more forgotten option is &lt;code&gt;justify&lt;/code&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;what-does-justify-do&quot;&gt;What does justify do?&lt;/h2&gt;
+&lt;p&gt;The MDN web docs define the &lt;code&gt;justify&lt;/code&gt; value for &lt;code&gt;text-align&lt;/code&gt; as such:&lt;/p&gt;
+&lt;h3 id=&quot;see-it-in-action&quot;&gt;See it in action&lt;/h3&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/vwpmNz/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;when-should-i-use-this&quot;&gt;When should I use this?&lt;/h2&gt;
+&lt;p&gt;It isn&amp;#8217;t always appropriate to use &lt;code&gt;justify&lt;/code&gt; in most instances, although it becomes very useful for long form articles or blog posts. Since it takes a heavy influence from original &lt;em&gt;print&lt;/em&gt; book layouts, the &lt;code&gt;justify&lt;/code&gt; value helps improve readability for larger chunks of content.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Fair warning&lt;/strong&gt;: it is best to remove any &lt;code&gt;justify&lt;/code&gt; values when targeting smaller screen sizes. Mobile devices and&amp;#47;or tablets tend to be small enough to break up the content already. This CSS value is better suited for larger viewports.&lt;/p&gt;
+&lt;h2 id=&quot;browser-support&quot;&gt;Browser support&lt;/h2&gt;
+&lt;p&gt;The good news is that all major browsers support the &lt;code&gt;justify&lt;/code&gt; value for the &lt;code&gt;text-align&lt;/code&gt; CSS property. So have some worry-free fun with it!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/text-align-justify"/>
+ <id>https://btxx.org/posts/text-align-justify</id>
+ <updated>2019-05-22T10:00:00Z</updated>
+ <published>2019-05-22T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>They Won't Wait: A Warning for Slow Websites</title>
+ <content type="html">&lt;h1 id=&quot;they-wont-wait-a-warning-for-slow-websites&quot;&gt;They Won&amp;#8217;t Wait: A Warning for Slow Websites&lt;/h1&gt;
+&lt;p&gt;2019-06-25&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;Your website is probably slow&lt;/em&gt;. I&amp;#8217;m not trying to make you feel bad or dismiss all the hard work you&amp;#8217;ve put into your project. Heck, performance might have been a core value of the design. But websites can always be faster.&lt;/p&gt;
+&lt;p&gt;People have become increasingly more impatient over the last decade when it comes to technology, specifically non-native web-based interactions. Users expect your website to load almost instantly or they will leave and try another site, probably one of your competitors. Why should they stick around if your competitors&amp;#8217; websites load half a second faster?&lt;/p&gt;
+&lt;p&gt;Users are tired of being bombarded with tracking scripts, having to download massive component libraries, forced to deal with &amp;#8220;accept cookies&amp;#8221; prompts, playing a small mini-game of &amp;#8220;close those ads!&amp;#8221;, and then being subjected to never-ending loading screens. This is not the internet we were promised.&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;If you&amp;#8217;d prefer to just go straight to the installer, feel free to jump over to the project repo: &lt;a href=&quot;https://git.sr.ht/~bt/alpine-linux-setup&quot;&gt;https:&amp;#47;&amp;#47;git.sr.ht&amp;#47;~bt&amp;#47;alpine-linux-setup&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;It&amp;#8217;s in my nature, I always liked &lt;strong&gt;speed&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;- Guy Lafleur&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;h2 id=&quot;getting-started&quot;&gt;Getting Started&lt;/h2&gt;
-&lt;p&gt;My main reasoning for switching away from my previous setup (Garuda Linux running Sway) to Alpine was two fold:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;I wanted a more lightweight, less resource hungry system&lt;/li&gt;
-&lt;li&gt;I wanted to go as &amp;#8220;full&amp;#8221; Wayland as possible&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h3 id=&quot;benchmarks-comparisons&quot;&gt;Benchmarks Comparisons&lt;/h3&gt;
-&lt;p&gt;I should mention that these are not official &amp;#8220;benchmark&amp;#8221; applications or proper testing. I merely reproduced the same tasks, using the same applications, for the same amount of time and compared the usage. Just keep that in mind!&lt;/p&gt;
+&lt;h2 id=&quot;we-can-do-better&quot;&gt;We can do better&lt;/h2&gt;
+&lt;p&gt;If there is only one thing that you learn from this post, hopefully it&amp;#8217;s knowing to better value the &lt;strong&gt;time and money of your users&lt;/strong&gt;. It&amp;#8217;s a user&amp;#8217;s &lt;em&gt;choice&lt;/em&gt; to visit your website, so taking advantage of their time is extremely careless. Don&amp;#8217;t be arrogant and ignore the cost of data on most mobile plans either. Eating up a chunk of someone&amp;#8217;s data just for hitting your website is rage-inducing. That&amp;#8217;s how you can lose customers permanently.&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s do an analogy, because &lt;strong&gt;I love stupid analogies&lt;/strong&gt;:&lt;/p&gt;
+&lt;p&gt;Imagine going to your local hardware store because you need to buy a new hammer. Once you get to the entrance a woman holds the the door closed and asks you if it&amp;#8217;s alright for someone to follow you around the store today. You say no. She then follows up by asking if you accept their hardware store agreement before proceeding inside - you tell her &amp;#8220;sure&amp;#8221;. She finally opens the door and lets you in. As you walk into the store she quickly stuffs a few advertisements for other local businesses into you hand. &amp;#8220;Thanks&amp;#8221;, you mutter.&lt;/p&gt;
+&lt;p&gt;Once inside you realize the hardware store is &lt;em&gt;very big&lt;/em&gt; and manually looking for a hammer might take a while. You walk up to the front desk to ask where you can find a hammer but notice the cashier is playing with their phone behind the counter. You try to get their attention but they simply raise their hand and shout &amp;#8220;Be with you in a minute&amp;#8221;. After a short while they get off their phone and &lt;em&gt;finally&lt;/em&gt; listen to your question. They then tell you where to find the hammers.&lt;/p&gt;
+&lt;p&gt;Does this sound like a &lt;em&gt;fast&lt;/em&gt; and easy experience?&lt;/p&gt;
+&lt;p&gt;As silly as this hypothetical trip to the hardware store might be, it&amp;#8217;s exactly what many current websites are putting their users through. Users - read &lt;em&gt;customers&lt;/em&gt; - are coming to your website with a specific goal in mind; checking out a product, consuming information or just satisfying their curiosity. Stop putting so many blockers and excessive bloat in front of them.&lt;/p&gt;
+&lt;h2 id=&quot;data-doesnt-lie&quot;&gt;Data doesn&amp;#8217;t lie&lt;/h2&gt;
+&lt;p&gt;If my terrible analogy wasn&amp;#8217;t enough to convince you to implement better performance on your website, then maybe some &amp;#8220;BIG DATA&amp;#8221; will.&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;strong&gt;Garuda Linux&lt;/strong&gt;
+&lt;li&gt;&lt;a href=&quot;https://web.archive.org/web/20081117195303if_/http://home.blarg.net/~glinden/StanfordDataMining.2006-11-29.ppt&quot;&gt;Amazon (PowerPoint, slide #15)&lt;/a&gt;: 100 ms of latency resulted in 1% less sales.&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://youtu.be/6x0cAzQ7PVs?t=936&quot;&gt;Google (video)&lt;/a&gt;: 500 ms caused a 20% drop in traffic.&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://www.slideshare.net/devonauerswald/walmart-pagespeedslide&quot;&gt;Walmart (slide #46)&lt;/a&gt;: a 100 ms improvement brought up to 1% incremental revenue&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://blog.mozilla.org/metrics/2010/04/05/firefox-page-load-speed-%E2%80%93-part-ii/&quot;&gt;Mozilla&lt;/a&gt;: Shaving 2.2 seconds off page load time increased downloads by 15.4%&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://www.slideshare.net/stubbornella/designing-fast-websites-presentation/23-1_Create_a_component_library&quot;&gt;Yahoo&lt;/a&gt;: 400 ms resulted in a 5 to 9% drop in traffic&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;All data taken from &lt;a href=&quot;https://instant.page&quot;&gt;instant.page&lt;/a&gt; (which I am a huge fan of &amp;hearts;)&lt;/p&gt;
+&lt;p&gt;The fact something as small as 100 ms can have such a profound impact on your bottom-line should be eye-opening. You&amp;#8217;re leaving money of the table by not tackling even the low-hanging, easy performance wins. You need to start valuing your users&amp;#8217; time and stop serving them excessive garbage they never asked for.&lt;/p&gt;
+&lt;h2 id=&quot;small-and-easy-wins&quot;&gt;Small and easy wins&lt;/h2&gt;
+&lt;p&gt;Not all of these suggestions can work for every project (due to restrictions, brand guidelines, required marketing targets, etc.) but for most developers&amp;#47;designers they should be easy to implement: (in no particular order of importance)&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;SwayWM&lt;/li&gt;
-&lt;li&gt;Firefox: 9 tabs (Figma included)&lt;/li&gt;
-&lt;li&gt;qutebrowser: 7 tabs&lt;/li&gt;
-&lt;li&gt;aerc: open&amp;#47;running&lt;/li&gt;
-&lt;li&gt;tut: open-running&lt;/li&gt;
-&lt;li&gt;Sublime Text: single project open&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Memory usage (range): 6.0-7.2 GB&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Reduce the number of web requests
+&lt;ul&gt;
+&lt;li&gt;&lt;a href=&quot;https://developers.google.com/web/fundamentals/performance/get-started/httprequests-5&quot;&gt;HTTP Requests&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Alpine Linux&lt;/strong&gt;
+&lt;li&gt;Use web-safe fonts when available or if using custom fonts utilize the &lt;code&gt;font-display&lt;/code&gt; property
&lt;ul&gt;
-&lt;li&gt;SwayWM&lt;/li&gt;
-&lt;li&gt;Firefox: 9 tabs (Figma included)&lt;/li&gt;
-&lt;li&gt;qutebrowser: 7 tabs&lt;/li&gt;
-&lt;li&gt;aerc: open&amp;#47;running&lt;/li&gt;
-&lt;li&gt;tut: open-running&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Memory usage (range): 1.0-3.5 GB&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://www.cssfontstack.com/&quot;&gt;CSS Font Stack&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://css-tricks.com/font-display-masses/&quot;&gt;Font Display for the Masses&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Make proper use of &lt;em&gt;critical CSS&lt;/em&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;a href=&quot;https://alexwright.net/web-design-secrets/how-to-use-critical-css/&quot;&gt;How to Use Critical CSS&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Automatically generate CSS based on &amp;#8220;above the fold&amp;#8221;: &lt;a href=&quot;https://github.com/filamentgroup/criticalCSS&quot;&gt;criticalCSS&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Process all media (images &amp;#47; videos) through 3rd party tools
+&lt;ul&gt;
+&lt;li&gt;&lt;a href=&quot;https://cloudinary.com/&quot;&gt;Cloudinary&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://kraken.io/&quot;&gt;Kraken.io&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://piio.co/&quot;&gt;Piio&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Sidenote: this blog uses the &lt;a href=&quot;https://nhoizey.github.io/jekyll-cloudinary/&quot;&gt;jekyll-cloudinary&lt;/a&gt; plugin to automatically process images&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Use &amp;#8220;just-in-time&amp;#8221; preloading (highly recommended for improved UX)
+&lt;ul&gt;
+&lt;li&gt;&lt;a href=&quot;https://instant.page/&quot;&gt;Instant Page&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Avoid using heavy tech-stacks whenever possible
+&lt;ul&gt;
+&lt;li&gt;Unless it is a critical use-case, users should not have to process or download extra resources&lt;/li&gt;
+&lt;li&gt;This also includes remove ads, pop-ups, 3rd party sign-up prompts, cookie notifications, over-the-top element animations, and all other &lt;strong&gt;garbage&lt;/strong&gt;. This impacts &lt;em&gt;UX&lt;/em&gt; performance, which is just as crucial as website loading speed&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Switching over has basically cut my system memory usage &lt;strong&gt;in half&lt;/strong&gt;. That ended up being a much better improvement than I predicted. These are beyond just numbers too - the system &lt;em&gt;feels&lt;/em&gt; snappier.&lt;/p&gt;
-&lt;p&gt;So, from a speed and usability stand point I considered this a success already.&lt;/p&gt;
-&lt;h2 id=&quot;crashes-roadblocks&quot;&gt;Crashes &amp;#38; Roadblocks&lt;/h2&gt;
-&lt;p&gt;Of course, things didn&amp;#8217;t run 100% flawlessly out-of-the-box. There were some pretty annoying &lt;strong&gt;crashes&lt;/strong&gt; and issues.&lt;/p&gt;
-&lt;h3 id=&quot;greetings-tty&quot;&gt;Greetings, tty&lt;/h3&gt;
-&lt;p&gt;After installing &lt;code&gt;tut&lt;/code&gt; I started walking through its guided setup. Once it prompted me to login via browser in order to authenticate, I clicked the link provided in the terminal. I was immediately thrown out of my session and into &lt;code&gt;tty&lt;/code&gt;. Awesome.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ll save you both the headache and large amount of time I wasted on this silly &amp;#8220;bug&amp;#8221; and just say it had to do with my user settings trying to launch &amp;#8220;Chromium&amp;#8221; as my default browser. I normally set qutebrowser as much default, so this was a change I needed to make anyway.&lt;/p&gt;
-&lt;p&gt;I put the following in my &lt;code&gt;&amp;#47;etc&amp;#47;xdg&amp;#47;mimeapps.list&lt;/code&gt; (which is included by default with the installer)&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;[Default Applications]
-x-scheme-handler&amp;#47;http=org.qutebrowser.qutebrowser.desktop
-x-scheme-handler&amp;#47;https=org.qutebrowser.qutebrowser.desktop
-x-scheme-handler&amp;#47;ftp=org.qutebrowser.qutebrowser.desktop
-x-scheme-handler&amp;#47;chrome=org.qutebrowser.qutebrowser.desktop
-text&amp;#47;html=org.qutebrowser.qutebrowser.desktop
-application&amp;#47;x-extension-htm=org.qutebrowser.qutebrowser.desktop
-application&amp;#47;x-extension-html=org.qutebrowser.qutebrowser.desktop
-application&amp;#47;x-extension-shtml=org.qutebrowser.qutebrowser.desktop
-application&amp;#47;xhtml+xml=org.qutebrowser.qutebrowser.desktop
-application&amp;#47;x-extension-xhtml=org.qutebrowser.qutebrowser.desktop
-application&amp;#47;x-extension-xht=org.qutebrowser.qutebrowser.desktop
-image&amp;#47;bmp=feh.desktop
-image&amp;#47;gif=feh.desktop
-image&amp;#47;jpeg=feh.desktop
-image&amp;#47;jpg=feh.desktop
-image&amp;#47;png=feh.desktop
-image&amp;#47;tiff=feh.desktop
-image&amp;#47;x-bmp=feh.desktop
-image&amp;#47;x-pcx=feh.desktop
-image&amp;#47;x-tga=feh.desktop
-image&amp;#47;x-portable-pixmap=feh.desktop
-image&amp;#47;x-portable-bitmap=feh.desktop
-image&amp;#47;x-targa=feh.desktop
-image&amp;#47;x-portable-greymap=feh.desktop
-application&amp;#47;pcx=feh.desktop
-image&amp;#47;svg+xml=feh.desktop
-image&amp;#47;svg-xml=feh.desktop
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;You might have also noticed that I use &lt;code&gt;feh&lt;/code&gt; as my default image viewer as well. That&amp;#8217;s just my personal preference, feel free to switch that out as you see fit.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Sidenote:&lt;/strong&gt; Chromium now runs perfectly fine since the original crashes. I have no clue how or why. Wayland black magic, I assume? Maybe I installed a package that helped or an update occurred. &lt;em&gt;Shrug&lt;/em&gt;&lt;/p&gt;
-&lt;h3 id=&quot;screen-sharing&quot;&gt;Screen Sharing&lt;/h3&gt;
-&lt;p&gt;This has been a complete failure for me. I&amp;#8217;ve tried both the Chromium and Firefox &lt;a href=&quot;https://lr.vern.cc/r/swaywm/comments/l4e55v/guide_how_to_screenshare_from_chromiumfirefox/&quot;&gt;implementations of these &amp;#8220;hacks&amp;#8221;&lt;/a&gt; but neither work. For now I will fallback to my Garuda Linux OS boot and share my screen there. It&amp;#8217;s a silly workaround but I hardly ever need to &amp;#8220;show my screen&amp;#8221; in any capacity as is.&lt;/p&gt;
-&lt;p&gt;I can live without this for now. (Please &lt;a href=&quot;https://lists.sr.ht/~bt/public-inbox&quot;&gt;leave a message in my personal inbox&lt;/a&gt; if you know of another workaround for this!)&lt;/p&gt;
-&lt;h2 id=&quot;some-minor-tweaks&quot;&gt;Some Minor Tweaks&lt;/h2&gt;
-&lt;p&gt;Some of these &amp;#8220;hacks&amp;#8221; or tweaks I had to implement might help others who run into similar issues when setting up their own Alpine desktops.&lt;/p&gt;
-&lt;h3 id=&quot;aerc-mail&quot;&gt;aerc-mail&lt;/h3&gt;
-&lt;p&gt;It is important to install &lt;code&gt;gawk&lt;/code&gt; since &lt;code&gt;awk&lt;/code&gt; isn&amp;#8217;t &amp;#8220;real&amp;#8221; on Alpine. Once you have that on you system &lt;code&gt;aerc&lt;/code&gt; will render emails out-of-the-box.[^1]&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;apk add gawk
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;sublime-text&quot;&gt;Sublime Text&lt;/h3&gt;
-&lt;p&gt;Sublime Text requires flatpak, so if that isn&amp;#8217;t your &lt;em&gt;thing&lt;/em&gt; then you&amp;#8217;re better off snagging a different editor. I&amp;#8217;ve tried multiple times throughout my career to use an alternate editor (preferably 100% open source) but keep finding myself returning to Sublime. Maybe one day&amp;#8230;&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;apk add flatpak
-flatpak remote-add --if-not-exists flathub https:&amp;#47;&amp;#47;flathub.org&amp;#47;repo&amp;#47;flathub.flatpakrepo
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then reboot your machine for the changes to take. Login again and run:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;flatpak install flathub com.sublimetext.three
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;FYI: You &lt;em&gt;might&lt;/em&gt; need to run the above commands under &lt;code&gt;sudo&lt;/code&gt; if your current user lacks proper permissions.&lt;/p&gt;
-&lt;h3 id=&quot;cursors&quot;&gt;Cursors&lt;/h3&gt;
-&lt;p&gt;This was an odd edge case. For the most part, the default system cursors worked out of the box. Then I installed Firefox. That caused me to go down a rabbit-hole of (still open) tickets referencing poor cursor rendering for Wayland Firefox. Apparently some users even have their cursors disappear completely!&lt;/p&gt;
-&lt;p&gt;Not to worry though - there is an easy fix!&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Install &lt;a href=&quot;https://github.com/keeferrourke/capitaine-cursors&quot;&gt;capitaine cursors&lt;/a&gt;:
-apk add capitaine-cursors&lt;/li&gt;
-&lt;li&gt;Make a new directory:
-mkdir -p ~&amp;#47;.icons&amp;#47;capitaine-cursors&lt;/li&gt;
-&lt;li&gt;Copy the files over:
-sudo cp -r &amp;#47;usr&amp;#47;share&amp;#47;icons&amp;#47;capitaine-cursors-dark ~&amp;#47;.icons&amp;#47;capitaine-cursors&lt;/li&gt;
-&lt;li&gt;The make your cursor changes using &lt;code&gt;gnome-tweaks&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;Profit!&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
-&lt;p&gt;Overall I&amp;#8217;m decently satisfied with my &amp;#8220;installer&amp;#8221;. I&amp;#8217;ve included &lt;em&gt;just enough&lt;/em&gt; packages to hit the ground running when using this on new hardware or even needing to recover existing devices. This project certainly won&amp;#8217;t cover the needs of all users, but my hope is that others can always fork their own and give it a spin! (Please do report any bugs or issues as you come across them!)&lt;/p&gt;
-&lt;p&gt;Alpine Linux can be more than just a &amp;#8220;server distro&amp;#8221;. My daily driver proves it!&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;This is now included in my official installer script, but I originally had to install this manually.&lt;/li&gt;
-&lt;/ol&gt;</content>
- <link href="https://btxx.org/alpine"/>
- <id>https://btxx.org/alpine</id>
- <updated>2022-12-08T10:00:00Z</updated>
- <published>2022-12-08T10:00:00Z</published>
- </entry>
- <entry>
- <title>Avoiding Featurism</title>
- <content type="html">&lt;h1 id=&quot;avoiding-featurism&quot;&gt;Avoiding Featurism&lt;/h1&gt;
-&lt;p&gt;2022-10-14&lt;/p&gt;
-&lt;p&gt;I rather enjoy the term &amp;#8220;featurism&amp;#8221;. I came across this term while reading the wonderful article &lt;a href=&quot;https://www.complang.tuwien.ac.at/anton/why-ancient-browsers.html&quot;&gt;Why I don&amp;#8217;t use Netscape&lt;/a&gt;, which the author credits to Bernd Paysan. Although it sums up the current &amp;#8220;digital product&amp;#8221; industry quite well the more specific terminology, &lt;em&gt;creeping featurism&lt;/em&gt;, works better:&lt;/p&gt;
+&lt;h2 id=&quot;no-need-to-be-extreme&quot;&gt;No need to be extreme&lt;/h2&gt;
+&lt;p&gt;These quick &amp;#8220;guidelines&amp;#8221; are just a solid jumping-off point when tackling new projects or re-working current websites. There isn&amp;#8217;t some agreed upon &lt;em&gt;golden standard&lt;/em&gt; when it comes to web performance, but I find these rules work as a great place to start. Hopefully it can help others as well.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/they-wont-wait"/>
+ <id>https://btxx.org/posts/they-wont-wait</id>
+ <updated>2019-06-25T10:00:00Z</updated>
+ <published>2019-06-25T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Icons Should be Complementary - Text is Always Better</title>
+ <content type="html">&lt;h1 id=&quot;icons-should-be-complementary---text-is-always-better&quot;&gt;Icons Should be Complementary - Text is Always Better&lt;/h1&gt;
+&lt;p&gt;2021-12-17&lt;/p&gt;
+&lt;p&gt;Designing[^1] software is a complex thing. A great deal of real-world testing and user feedback is needed to create the best solution to the problem you are trying to fix. Obvious requirements are to keep things simple, make it easy to understand by &lt;em&gt;looking&lt;/em&gt; at it, and build it to be headache-resistant for future updates. All these things are easier said than done. This is the challenge of a designer&amp;#8217;s dat-to-day.&lt;/p&gt;
+&lt;p&gt;But with this term of &amp;#8220;simplicity&amp;#8221; modern designers tend to take this approach too much to heart. In my 12+ years involved in UI&amp;#47;UX software design, I have lost count how many initial iterations of interfaces suffer from the same &amp;#8220;dumbing down&amp;#8221; decision making:&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Using icons to represent an action or function without textual information&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;If you decide to stop reading the rest of this article, at least take away this one important thing:&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;&lt;strong&gt;creeping featurism&lt;/strong&gt; (&lt;em&gt;noun&lt;/em&gt;)&lt;/p&gt;
-&lt;p&gt;A condition in which one or more people, often in the form of a committee, progressively increase the scope and complexity of a project until the project is deemed infeasible and subsequently cancelled to the detriment of all involved.&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;Always try to use text to convey your designs&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;p&gt;Throughout my career of designing and developing software I have run into this exact issue far too often. The major issue with getting sucked into a black-hole of &amp;#8220;featurism&amp;#8221; is there is no single person to blame. It probably seems easy to place all the responsibility on PMs or team leaders, but even &lt;em&gt;if&lt;/em&gt; they are the ones adding excessive complexity to a given project, it is the role of developers and designers to speak up. It requires a team effort. Therefore, the &lt;em&gt;whole team&lt;/em&gt; needs to be on-guard to avoid it.&lt;/p&gt;
-&lt;h3 id=&quot;simple-guidelines&quot;&gt;Simple Guidelines&lt;/h3&gt;
-&lt;p&gt;These &amp;#8220;tips&amp;#8221; are not perfect, nor will they work for every work environment. Hopefully they can at least be used as basic guidelines and expanded upon from there.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Explore the feature&amp;#8217;s &lt;em&gt;benefit&lt;/em&gt; to the product. You need to confirm that this addition will be a net-positive for both customers and your bottom-line.&lt;/li&gt;
-&lt;li&gt;All team members assigned to a feature need to scope it out. Far too often I see feature sets that require design input being estimated solely by developers and vice versa.&lt;/li&gt;
-&lt;li&gt;Radically limit the scope of each individual task[^1]. Each task should be clear-cut, bite-sized and look almost trivial.&lt;/li&gt;
-&lt;li&gt;Lock-in tickets. Once they are agreed upon they &lt;strong&gt;cannot&lt;/strong&gt; be altered[^2]. Anything that absolutely &lt;em&gt;needs&lt;/em&gt; to be added should become a future ticket itself.&lt;/li&gt;
-&lt;li&gt;Follow-up with feature reviews. When a sprint or milestone is reached, it is important to reflect on what worked and what didn&amp;#8217;t. Call out any instances where the team steered away from the guidelines above.&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;That&amp;#8217;s it. Just a nice, simple baseline to branch off from to avoid &amp;#8220;featurism&amp;#8221;. Some items listed won&amp;#8217;t make sense for certain teams and that&amp;#8217;s okay. If you take the time to at least reflect on your feature workflow, I guarantee you&amp;#8217;ll find areas to improve.&lt;/p&gt;
-&lt;p&gt;Creeping featurism can kill your product and the morale of your team. Avoid it like the plague!&lt;/p&gt;
+&lt;p&gt;After achieving this, you should start reiterating those designs to include iconography. Even then, not all UI instances will require you to do that. Designers will find this process difficult, which is why it is important to get &lt;em&gt;right&lt;/em&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;icons-make-an-ass-out-of-u-and-me&quot;&gt;Icons make an &lt;em&gt;ass&lt;/em&gt; out of &lt;em&gt;u&lt;/em&gt; and &lt;em&gt;me&lt;/em&gt;&lt;/h2&gt;
+&lt;p&gt;Icons make general assumptions about what the user may or may not understand. Leading with this in your designs will end &lt;em&gt;poorly for you&lt;/em&gt;. Trust me - I&amp;#8217;ve learned this through failed designs many times over. A certain visualization might be common knowledge to you, while differing greatly to someone else with a different set of experiences.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ve found the only thing you should ever &lt;em&gt;assume&lt;/em&gt; is that the user knows nothing. Please note - I&amp;#8217;m not referring to their intelligence but instead their software literacy.&lt;/p&gt;
+&lt;p&gt;Take a look at our now &amp;#8220;famous&amp;#8221; save icon used in almost every piece of software; the floppy disk. Do any software users below the legal drinking age even understand the initial reasoning for using this icon? In all honesty, it was a terrible icon decision even when first introduced. No &amp;#8220;hard copy&amp;#8221; of the save action is taking place, software creates this save in a digital space[^2]. Yet, it was adopted and people (ie. designers) went along with it.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Quality is not measured by mass appeal.&lt;/strong&gt;&lt;/p&gt;
+&lt;p&gt;The argument could be made &amp;#8220;People learned to associate &amp;#8220;Save&amp;#8221; with a Floppy Disk icon&amp;#8230;&amp;#8221; and my response would be &amp;#8220;But what alternatives were they given?&amp;#8221;&lt;/p&gt;
+&lt;p&gt;Original software designers (and developers) held all the power in early UI decision making. General users didn&amp;#8217;t &lt;em&gt;know&lt;/em&gt; any better. Things were new and fresh. Now our response is to shrug our collective shoulders and say, &amp;#8220;That&amp;#8217;s how the save icon has to be now!&amp;#8221;&lt;/p&gt;
+&lt;p&gt;Hogwash. Make it a button that says, &lt;code&gt;Save File&lt;/code&gt;. I&amp;#8217;m not kidding. Oh, it doesn&amp;#8217;t work with your current design? Then your initial design wasn&amp;#8217;t future-proof then, was it? I sound snarky here but many designers put up imaginary walls around their design systems, making them incredibly rigid and difficult to adapt.&lt;/p&gt;
+&lt;p&gt;Take the time to do even a small thought &amp;#47; wireframe experiment: redo the layout and flow of your application without using a single piece of iconography. If you can&amp;#8217;t achieve this with even limited success, something is wrong with the design.&lt;/p&gt;
+&lt;h2 id=&quot;the-hamburger-menu-is-the-7th-circle-of-hell&quot;&gt;The hamburger menu is the 7th circle of Hell&lt;/h2&gt;
+&lt;p&gt;Normally, the inclusion of a hamburger menu is indicative of an overly complex application. Too many cooks and all that jazz. Enterprise applications don&amp;#8217;t get a pass here either, as they tend to be the worst culprits of pouring out everything on to the user as software vomit. Sweeping all this interaction under the hamburger &amp;#8220;rug&amp;#8221; does not make for a cleaner design.&lt;/p&gt;
+&lt;p&gt;New features are great, but stop dumping so much of it behind hidden, unintuitive sub-navigation. This design is such a &amp;#8220;quick fix&amp;#8221; and plagues far too many software apps[^3]. Both desktop computers and mobile devices allow users to &lt;em&gt;scroll&lt;/em&gt;, let them.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ve discussed this in further detail here: &lt;a href=&quot;https://bt.ht/hamburger-menu-alternative/&quot;&gt;Using Hamburger Menus? Try Sausage Links&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;but-what-of-the-advanced-users&quot;&gt;But what of the &amp;#8220;advanced&amp;#8221; users?&lt;/h2&gt;
+&lt;p&gt;I understand applications will have advanced or &amp;#8220;pro&amp;#8221; users that have full knowledge of the product and wouldn&amp;#8217;t need things &lt;em&gt;spoon fed&lt;/em&gt; to them. This is a more difficult problem that I myself haven&amp;#8217;t been able to solve without approaching each one on a case-by-case basis. Unfortunately, there is no &amp;#8220;one size fits all&amp;#8221; method to this. But, although solving for advanced users proves difficult doesn&amp;#8217;t mean we should dismiss the merits of avoiding icons as a crutch.&lt;/p&gt;
+&lt;h2 id=&quot;try-for-yourself&quot;&gt;Try for yourself&lt;/h2&gt;
+&lt;p&gt;As I stated above, try doing a quick design experiment by replacing all your existing iconography in your application with simple text. I assure you that at least you&amp;#8217;ll discover interesting design flaws in your system.&lt;/p&gt;
&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;This is easier said than done. Normally you will need to have developed some form of &amp;#8220;point system&amp;#8221; internally, so you know how to effectively divide features.&lt;/li&gt;
-&lt;li&gt;&lt;em&gt;Taking away&lt;/em&gt; complexity, making changes that do not impact workload or reducing the ticket is fine - within reason.&lt;/li&gt;
+&lt;li&gt;By &amp;#8220;design&amp;#8221; I&amp;#8217;m referring to visuals not programming or system engineering&lt;/li&gt;
+&lt;li&gt;Early software programs did save to an external floppy disk. My point stands that many digital file storage applications copied this iconography blindly.&lt;/li&gt;
+&lt;li&gt;Not to mention how rampant it is on plain ol&amp;#8217; regular websites. If you&amp;#8217;re hiding five menu items behind a hamburger menu for &amp;#8220;mobile users&amp;#8221;, you&amp;#8217;re doing it wrong.&lt;/li&gt;
&lt;/ol&gt;</content>
- <link href="https://btxx.org/af"/>
- <id>https://btxx.org/af</id>
- <updated>2022-10-14T10:00:00Z</updated>
- <published>2022-10-14T10:00:00Z</published>
- </entry>
- <entry>
- <title>Setting Up AdGuard Home with Eero</title>
- <content type="html">&lt;h1 id=&quot;setting-up-adguard-home-with-eero&quot;&gt;Setting Up AdGuard Home with Eero&lt;/h1&gt;
-&lt;p&gt;2022-11-04&lt;/p&gt;
-&lt;p&gt;Eariler this year I posted &lt;a href=&quot;/eero&quot;&gt;detailed instructions on setting up Pi-Hole with Eero&lt;/a&gt; and it seemed to help out a few people having troubles. With AdGuard Home recently popping up on the &lt;a href=&quot;https://news.ycombinator.com/item?id=33387678&quot;&gt;frontpage of HackerNews&lt;/a&gt;, I thought now would be a great time to post instructions of setting up &lt;em&gt;that&lt;/em&gt; service alongside Eero devices.&lt;/p&gt;
-&lt;h2 id=&quot;what-youll-need&quot;&gt;What You&amp;#8217;ll Need&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Raspberry Pi device (I recommend the Pi Zero for simplicity and low cost)&lt;/li&gt;
-&lt;li&gt;microSD card&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://www.raspberrypi.com/software/&quot;&gt;Raspberry Pi Imager&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;micro USB to ethernet adapter (check your local Amazon)&lt;/li&gt;
-&lt;li&gt;Patience!&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;setting-up-the-raspberry-pi&quot;&gt;Setting Up the Raspberry Pi&lt;/h2&gt;
-&lt;p&gt;The first thing we need to do is flash Raspberry Pi &lt;strong&gt;Lite&lt;/strong&gt; onto our SD card. Open Raspberry Pi Imager, select the &lt;strong&gt;Lite&lt;/strong&gt; version of the OS and your respective media (the SD card):&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/rpi-lite-os.webp&quot; alt=&quot;Raspberry Pi Lite&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;Don&amp;#8217;t flash anything just yet! Be sure to use the gear icon and edit the settings. Set a custom hostname, enable &lt;code&gt;ssh&lt;/code&gt; and setup a proper user:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/rpi-adguard-1.webp&quot; alt=&quot;Imager settings&quot; /&gt;&lt;/p&gt;
-&lt;h2 id=&quot;plug-it-in-and-boot&quot;&gt;Plug it in and Boot!&lt;/h2&gt;
-&lt;p&gt;Put the SD card into your Pi, connect power and ethernet. Give it a bit of time to boot up. Once you see a nice solid green LED, go back to your local computer&amp;#8217;s terminal and enter the following command:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;ssh piguard@piguard.local
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If everything was set up properly you will be asked to trust this device. Next, you will be prompted to enter the device password you setup.&lt;/p&gt;
-&lt;p&gt;Once you are connected directly to the Pi, it&amp;#8217;s best to check for updates:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo apt update
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;&amp;#8230;and if updates are in fact available, install them via:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo apt upgrade
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;installing-adguard-home&quot;&gt;Installing AdGuard Home&lt;/h2&gt;
-&lt;p&gt;Simply run the automated installer:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;curl -s -S -L https:&amp;#47;&amp;#47;raw.githubusercontent.com&amp;#47;AdguardTeam&amp;#47;AdGuardHome&amp;#47;master&amp;#47;scripts&amp;#47;install.sh | sh -s -- -v
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Follow the instructions and you&amp;#8217;ll be setup in no time! To view your AdGuard dashboard at any time, you can now simply navigate to &lt;code&gt;piguard.local&lt;/code&gt;.&lt;/p&gt;
-&lt;p&gt;If you run into any issues, I strongly suggest &lt;a href=&quot;https://github.com/AdguardTeam/AdGuardHome#getting-started&quot;&gt;reading through the &amp;#8220;Getting Started&amp;#8221; guide&lt;/a&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;configuring-the-eero-app&quot;&gt;Configuring the Eero App&lt;/h2&gt;
-&lt;p&gt;Once your AdGuard Home server is installed and running, you can finally point your Eero network at it.&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Open the Eero app (iOS or Android)&lt;/li&gt;
-&lt;li&gt;Navigate to &lt;strong&gt;Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Network Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;DNS&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Select &lt;strong&gt;Customized DNS&lt;/strong&gt; and enter both your saved IPv4 &amp;#47; IPv6 values (These can be found under the &lt;code&gt;Setup Guide&lt;/code&gt; tab in the main AdGuard Dashboard)&lt;/li&gt;
-&lt;li&gt;Eero will prompt you to reboot your network - do it&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;After the system reboots everything &lt;em&gt;should&lt;/em&gt; be working as intended!&lt;/p&gt;
-&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve personally switched over from Pi-Hole to AdGuard Home - it just feels more robust and the UI is significantly cleaner. Hopefully this helps others trying to do the same!&lt;/p&gt;</content>
- <link href="https://btxx.org/adguard"/>
- <id>https://btxx.org/adguard</id>
- <updated>2022-11-04T10:00:00Z</updated>
- <published>2022-11-04T10:00:00Z</published>
- </entry>
- <entry>
- <title>Website Backups with Apple iCloud</title>
- <content type="html">&lt;h1 id=&quot;website-backups-with-apple-icloud&quot;&gt;Website Backups with Apple iCloud&lt;/h1&gt;
-&lt;p&gt;2024-02-16&lt;/p&gt;
-&lt;p&gt;My main work machine, an M2 MacBook Air, meshes really well with my iPhone SE (they are in the same ecosystem after all - duh!). Since both of these devices are Apple products, it makes sense that I pay for the optional iCloud service for extra storage. 50GB to be exact. I only need to bare minimum which costs just $1.68 a month, making this storage option cheaper than most cups of coffee these days.&lt;/p&gt;
-&lt;p&gt;Recently I&amp;#8217;ve been using iCloud as my &amp;#8220;middle-man&amp;#8221; backup system. I still have local, offline storage for most personal data but having additional off-site backups is never a bad thing. I make things easier for myself by taking advantage of &lt;code&gt;rsync&lt;/code&gt;. You&amp;#8217;ll need to make sure you have that program installed before trying this yourself:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;# This assumes you have homebrew installed first
-brew install rsync
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then, whenever I feel like backing up an existing project or website I simply run:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;rsync -a user_name@ssh.webserver.domain:&amp;#47;home&amp;#47;var&amp;#47;www&amp;#47; &amp;#47;Users&amp;#47;username&amp;#47;Library&amp;#47;Mobile\ Documents&amp;#47;com\~apple\~CloudDocs&amp;#47;Backups&amp;#47;site-backup
+ <link href="https://btxx.org/posts/use-text-not-icons"/>
+ <id>https://btxx.org/posts/use-text-not-icons</id>
+ <updated>2021-12-17T10:00:00Z</updated>
+ <published>2021-12-17T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Using User-Select</title>
+ <content type="html">&lt;h1 id=&quot;using-user-select&quot;&gt;Using User-Select&lt;/h1&gt;
+&lt;p&gt;2019-06-04&lt;/p&gt;
+&lt;p&gt;Highlighting text in order to copy, cut or paste content is a staple action across the web. Now, what if I told you the ability to control what a user can select is configurable with a single CSS property?&lt;/p&gt;
+&lt;h2 id=&quot;introducing-the-css-property&quot;&gt;Introducing the CSS property&lt;/h2&gt;
+&lt;p&gt;Simply put, the &lt;code&gt;user-select&lt;/code&gt; property is defined as follows:&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;&lt;code&gt;user-select&lt;/code&gt; controls whether the user can select text (cursor or otherwise)&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
+&lt;p&gt;The property&amp;#8217;s available attributes are very straightforward (just remember to target specific browsers for full support!)&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Default *&amp;#47;
+p.default {
+ user-select: auto;
+ -moz-user-select: auto;
+ -webkit-user-select: auto;
+}
+
+&amp;#47;* Disable the user from selecting text *&amp;#47;
+p.no-select {
+ user-select: none;
+ -moz-user-select: none;
+ -webkit-user-select: none;
+}
+
+&amp;#47;* Select all text when user clicks *&amp;#47;
+p.select-all {
+ user-select: all;
+ -moz-user-select: all;
+ -webkit-user-select: all;
+}
&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;lets-see-it-in-action&quot;&gt;Let&amp;#8217;s see it in action&lt;/h2&gt;
+&lt;p&gt;Try selecting the separate paragraph elements in the CodePen below:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/QRooZp/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;browser-support&quot;&gt;Browser Support&lt;/h2&gt;
+&lt;p&gt;The great news is &lt;code&gt;user-select&lt;/code&gt; is fully supported across all modern browsers (even as far back as IE10!)&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/user-select"/>
+ <id>https://btxx.org/posts/user-select</id>
+ <updated>2019-06-04T10:00:00Z</updated>
+ <published>2019-06-04T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Running VSCode in Chromium on OpenBSD</title>
+ <content type="html">&lt;h1 id=&quot;running-vscode-in-chromium-on-openbsd&quot;&gt;Running VSCode in Chromium on OpenBSD&lt;/h1&gt;
+&lt;p&gt;2023-06-05&lt;/p&gt;
+&lt;p&gt;VSCode and its many variations are not available on OpenBSD. This doesn&amp;#8217;t cause issue with many OpenBSD users, but those making the jump from Linux might miss access to such a popular editor. Lucky for us, there is a &lt;em&gt;hacky&lt;/em&gt; workaround to solve this problem.&lt;/p&gt;
+&lt;h2 id=&quot;vscode-in-the-browser&quot;&gt;VSCode in the Browser&lt;/h2&gt;
+&lt;p&gt;I tried my best to build something like &lt;code&gt;code-server&lt;/code&gt; locally and run that directly in my browser - but I failed miserably. Instead, I fell back on &lt;a href=&quot;https://vscode.dev&quot;&gt;vscode.dev&lt;/a&gt; which is essentially a remote version of &lt;code&gt;code-server&lt;/code&gt;.&lt;/p&gt;
+&lt;p&gt;Getting things to work seamlessly proved a little more challenging. I found the best performance was running everything through Chromium with special parameters enabled on launch.&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;Note: The &lt;code&gt;-a&lt;/code&gt; option tells &lt;code&gt;rsync&lt;/code&gt; to sync directories recursively, transfer special and block devices, preserve symbolic links, modification times, groups, ownership, and permissions.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The following assumes you have already installed &lt;code&gt;chromium&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;p&gt;The beautiful magic of &lt;code&gt;rsync&lt;/code&gt;! Obviously, you&amp;#8217;d want to properly name your directories (ie. &lt;code&gt;&amp;#47;Backups&amp;#47;site-backup&lt;/code&gt;) for a cleaner structure and ensure that your iCloud directory is set correctly. (remember to read code before just copy-pasting!). With this approach you can backup entire server directories or be specific with each individual project folder. I would also recommend setting up some alias in your &lt;code&gt;.bashrc&lt;/code&gt; or &lt;code&gt;.zshrc&lt;/code&gt; etc. to make things more streamlined when running backups manually:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;alias site-backup=&quot;rsync -a user_name@ssh.webserver.domain:&amp;#47;home&amp;#47;var&amp;#47;www&amp;#47; &amp;#47;Users&amp;#47;username&amp;#47;Library&amp;#47;Mobile\ Documents&amp;#47;com\~apple\~CloudDocs&amp;#47;Backups&amp;#47;site-backup&quot;
-# Then you simply run the following for a manual backup:
-site-backup
+&lt;p&gt;First we need to disable &lt;a href=&quot;https://man.openbsd.org/unveil.2&quot;&gt;unveil&lt;/a&gt; for Chromium. This will allow us to access our system files through &lt;a href=&quot;https://vscode.dev&quot;&gt;vscode.dev&lt;/a&gt; using the &amp;#8220;Open folder&amp;#8230;&amp;#8221; or &amp;#8220;Open file&amp;#8230;&amp;#8221; commands without issue:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;chrome --disable-unveil
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;You can take this further by automating things via cron jobs, but for my use case that is a little overkill. Hopefully this helps anyone looking for a quick and dirty backup system, especially one that can piggyback of your existing iCloud that you might be paying for already.&lt;/p&gt;</content>
- <link href="https://btxx.org/Website_Backups_with_Apple_iCloud"/>
- <id>https://btxx.org/Website_Backups_with_Apple_iCloud</id>
- <updated>2024-02-16T10:00:00Z</updated>
- <published>2024-02-16T10:00:00Z</published>
- </entry>
- <entry>
- <title>Switching Things Over to ikiwiki</title>
- <content type="html">&lt;h1 id=&quot;switching-things-over-to-ikiwiki&quot;&gt;Switching Things Over to ikiwiki&lt;/h1&gt;
-&lt;p&gt;2023-12-17&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ve done it again. My personal website is no longer generated with &lt;a href=&quot;https://barf.btxx.org&quot;&gt;barf&lt;/a&gt; but is instead built on top of ikiwiki. The old RSS feed (&lt;a href=&quot;https://btxx.org/atom.xml&quot;&gt;btxx.org&amp;#47;atom.xml&lt;/a&gt;) still exists but will no longer receive updates. The new feed can be found on the bottom of the homepage (&lt;a href=&quot;/index.rss&quot;&gt;index.rss&lt;/a&gt;)&lt;/p&gt;
-&lt;h2 id=&quot;why-a-wiki&quot;&gt;Why a Wiki?&lt;/h2&gt;
-&lt;p&gt;I love the simplicity of a minimal blog, which is why I always gravitated towards purely &amp;#8220;static&amp;#8221; site builders. Over time though, I found two minor issues that slowly chipped away at me: ease-of-use and flexibility.&lt;/p&gt;
-&lt;p&gt;I had a vision, back when I began tinkering with my own place on the web, of building out my own personal &amp;#8220;resource center&amp;#8221; or wiki. Often times through work or personal projects I stumble into little problems that I need to solve. Most times I find a solution and move on with my life. The problem with this approach is &lt;em&gt;lack of documentation&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;What if I come across that issue at a later point in time? Will I even remember my old solution? Probably not. So, I&amp;#8217;ve made the switch to a more flexible, personal wiki (which also happens to be a blog!)&lt;/p&gt;
-&lt;h2 id=&quot;text-editors-terminals-and-web-ui---oh-my&quot;&gt;Text Editors, Terminals, and Web UI - Oh My!&lt;/h2&gt;
-&lt;p&gt;ikiwiki comes packed with multiple ways to publish pages and posts. Since it is built with ikiwiki and git version control in mind, you have the ability to push out changes directly to your server similar to that of pre-existing static site generators. It also gives you the choice to &lt;code&gt;ssh&lt;/code&gt; directly into your server and publish content from your terminal if you so desire.&lt;/p&gt;
-&lt;p&gt;Best of all, ikiwiki offers a web UI interface. This is something I have long missed since leaving &amp;#8220;dynamic&amp;#8221; websites behind.&lt;/p&gt;
-&lt;h2 id=&quot;but-wait-theres-more&quot;&gt;But Wait, There&amp;#8217;s More!&lt;/h2&gt;
-&lt;p&gt;Did I mention that this site now supports a built-in search form &lt;em&gt;and&lt;/em&gt; a comment system? I&amp;#8217;ve been wanting comments or discussions directly on my personal web space for the longest time and now I do! The search function is really an added bonus, mostly for my own personal use to find something I documented quickly.&lt;/p&gt;
-&lt;h2 id=&quot;broken-links-and-bugs&quot;&gt;Broken Links and Bugs&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve done my best to properly forward all original posts and pages to their new URLs - but I&amp;#8217;m sure some things will be overlooked. So please feel free to reach out and let me know if anything seems broken.&lt;/p&gt;
-&lt;p&gt;I look forward to growing out this &amp;#8220;platform&amp;#8221; and seeing how it impacts my workflow writing documentation &amp;#47; blog posts. I hope you&amp;#8217;ll come along for the ride!&lt;/p&gt;</content>
- <link href="https://btxx.org/Switching_Things_Over_to_ikiwiki"/>
- <id>https://btxx.org/Switching_Things_Over_to_ikiwiki</id>
- <updated>2023-12-17T10:00:00Z</updated>
- <published>2023-12-17T10:00:00Z</published>
- </entry>
- <entry>
- <title>Please Make Your Table Headings Sticky</title>
- <content type="html">&lt;h1 id=&quot;please-make-your-table-headings-sticky&quot;&gt;Please Make Your Table Headings Sticky&lt;/h1&gt;
-&lt;p&gt;2024-02-23&lt;/p&gt;
-&lt;p&gt;I often stumble upon large data sets or table layouts across the web. When these tables contain hundreds of rows of content, things become problematic once you start to scroll&amp;#8230;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;/public/videos/not-fixed-header-tables.mp4&quot;&gt;Link to video example of standard table header&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;Look at that table header disappear! Now, if I scroll all the way down to item #300 (for example) will I remember what each column&amp;#8217;s data is associated with? If this is my first time looking at this table - probably not. Luckily we can fix this (no pun intended!) with a tiny amount of CSS.&lt;/p&gt;
-&lt;h2 id=&quot;sticky-header&quot;&gt;Sticky Header&lt;/h2&gt;
-&lt;p&gt;Check it out:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;/public/videos/fixed-header-tables.mp4&quot;&gt;Link to video example of fixed table header&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;Pretty awesome, right? It might look like magic but it&amp;#8217;s actually very easy to implement. You only need to add 2 CSS properties on your &lt;code&gt;thead&lt;/code&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;position: sticky;
-top: 0;
+&lt;p&gt;Everything should work pretty solid right out the box now - except it doesn&amp;#8217;t. Syntax highlighting does not work without enabling WASM&amp;#47;WebAssembly. Your experience might be different, but I had to include the following when launching Chromium from the terminal:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;ENABLE_WASM=1 chrome --enable-wasm
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it! Best of all, &lt;code&gt;sticky&lt;/code&gt; has &lt;a href=&quot;https://caniuse.com/?search=sticky&quot;&gt;~96% global support&lt;/a&gt; which means this isn&amp;#8217;t some &amp;#8220;bleeding-edge&amp;#8221; property and can safely support a ton of browsers. Not to mention the improved experience for your end-users!&lt;/p&gt;
-&lt;p&gt;You can view a live demo of this table on the &lt;a href=&quot;https://codepen.io/bradleytaunt/pen/bGZyJBj&quot;&gt;CodePen example pen&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;If you found this interesting, feel free to check out my other table-focused post: &lt;a href=&quot;https://btxx.org/posts/tables/&quot;&gt;Making Tables Responsive With Minimal CSS&lt;/a&gt;&lt;/p&gt;</content>
- <link href="https://btxx.org/Please_Make_Your_Table_Headings_Sticky"/>
- <id>https://btxx.org/Please_Make_Your_Table_Headings_Sticky</id>
- <updated>2024-02-23T10:00:00Z</updated>
- <published>2024-02-23T10:00:00Z</published>
- </entry>
- <entry>
- <title>OpenBSD is a Cozy Operating System</title>
- <content type="html">&lt;h1 id=&quot;openbsd-is-a-cozy-operating-system&quot;&gt;OpenBSD is a Cozy Operating System&lt;/h1&gt;
-&lt;p&gt;2024-04-11&lt;/p&gt;
-&lt;p&gt;With the recent release of OpenBSD 7.5, I decided to run through my &lt;a href=&quot;https://git.btxx.org/open-suck/about/&quot;&gt;personal OpenBSD &amp;#8220;installer&amp;#8221;&lt;/a&gt; for laptop&amp;#47;desktop devices. The project is built off of the &lt;code&gt;dwm&lt;/code&gt; tiling window manager and only installs a few basic packages. The last time I updated it was with the release of 7.3, so it&amp;#8217;s been due for an minor rework.&lt;/p&gt;
-&lt;p&gt;While making these minor changes, I remembered how incredibly easy the entire install process for OpenBSD is and how &lt;em&gt;cozy&lt;/em&gt; the entire operating system feels. All the core systems just work out the box. Yes, you need to &amp;#8220;patch&amp;#8221; in WiFi with a firmware update, so you&amp;#8217;ll need an Ethernet connection during the initial setup. Yes, the default desktop environment is not intuitive or ideal for newcomers.&lt;/p&gt;
-&lt;p&gt;But the positives heavily outweigh the negatives (in my opinion):&lt;/p&gt;
+&lt;p&gt;Success! We can avoid typing out these complex commands everytime we want to launch our editor by setting up an &lt;code&gt;alias&lt;/code&gt; (in my case via &lt;code&gt;.zshrc&lt;/code&gt;):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;alias vscode=&quot;ENABLE_WASM=1 chrome --enable-wasm --disable-unveil&quot;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;That&amp;#8217;s it! Now I can just pop open VSCode on OpenBSD by simply running &lt;code&gt;vscode&lt;/code&gt; in my terminal. Hopefully this can help others slowly transition over to OpenBSD - which you should do because it is amazing!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/vscode"/>
+ <id>https://btxx.org/posts/vscode</id>
+ <updated>2023-06-05T10:00:00Z</updated>
+ <published>2023-06-05T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Stop Using Custom Web Fonts</title>
+ <content type="html">&lt;h1 id=&quot;stop-using-custom-web-fonts&quot;&gt;Stop Using Custom Web Fonts&lt;/h1&gt;
+&lt;p&gt;2023-03-14&lt;/p&gt;
+&lt;p&gt;I recently read an excellent post by Manu Moreale titled &lt;a href=&quot;https://manuelmoreale.com/a-rant-on-web-font-licenses&quot;&gt;A rant on web font licenses&lt;/a&gt;. I highly recommend you give it a read (it&amp;#8217;s relatively short) since Manu makes a solid argument against existing font licenses. After reading, I found myself thinking about it throughout the rest of the day.&lt;/p&gt;
+&lt;p&gt;I was trying to understand how we ended up in a situation where web&amp;#47;UI designers (myself included) have started to &lt;em&gt;insist&lt;/em&gt; on using proprietary, custom web fonts. Do any users actively benefit from custom web fonts? Are there any &lt;em&gt;useful&lt;/em&gt; and &lt;em&gt;measurable&lt;/em&gt; goals achieved by including them? Do end-users actually &lt;em&gt;care&lt;/em&gt; about a website&amp;#8217;s typeface?&lt;/p&gt;
+&lt;p&gt;For the most part, I believe the answer to all those questions is: &lt;strong&gt;not really&lt;/strong&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;system-fonts-look-good&quot;&gt;System Fonts Look Good&lt;/h2&gt;
+&lt;p&gt;We are no longer in the early days of the internet. Browsers have matured. Operating systems already ship with usable and often times pretty typefaces. The &amp;#8220;wow factor&amp;#8221; of having a custom web font on a website is completely gone. Not to mention, recent trends see designers including &lt;em&gt;terrible&lt;/em&gt; typefaces that actually make things more difficult to read and break basic accessibility.&lt;/p&gt;
+&lt;p&gt;All of this for the sake of a company&amp;#8217;s &amp;#8220;brand&amp;#8221;. I say: &lt;strong&gt;fuck your brand&lt;/strong&gt;. Your end-users should always trump your design &amp;#8220;guidelines&amp;#8221;. Period.&lt;/p&gt;
+&lt;h2 id=&quot;think-of-the-consistency&quot;&gt;&amp;#8220;Think of the Consistency!&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;Often times designers will argue that designs will look too different across browsers&amp;#47;operating systems. I&amp;#8217;m not sure why this is seen as a bad thing. First, users will be familiar with the fonts already available to them. Second, as designers our work should never rely on one point of failure (in this instance: fonts). Your designs should be agnostic of your typeface selection. &lt;/p&gt;
+&lt;p&gt;And what about users with browser extensions that already block your custom web fonts? Screw them I guess?&lt;/p&gt;
+&lt;p&gt;People work on different systems with different constraints and settings. Embrace that - don&amp;#8217;t try to override it.&lt;/p&gt;
+&lt;h2 id=&quot;loss-of-personality&quot;&gt;Loss of Personality&lt;/h2&gt;
+&lt;p&gt;The web is not the same medium as graphic design. Digital designers often get this confused. Web applications serve an action or purpose. The user wants to complete a &lt;em&gt;task&lt;/em&gt; - not look at a pretty poster. I understand this sounds harsh, but many designers design more for their own ego and portfolio rather than the end-user. That extra &lt;em&gt;flair&lt;/em&gt; on your lowercase &amp;#8220;t&amp;#8221; doesn&amp;#8217;t help the user better interact with your features or UI. It just slows them down.&lt;/p&gt;
+&lt;h2 id=&quot;hurting-performance-wasting-resources&quot;&gt;Hurting Performance &amp;#38; Wasting Resources&lt;/h2&gt;
+&lt;p&gt;A lot of designers I&amp;#8217;ve worked with or talked to in the past tend to be big supporters of reducing their carbon footprint and minimizing their individual output of &amp;#8220;waste&amp;#8221;. What I always find interesting is how that never seems to translate into their work.&lt;/p&gt;
+&lt;p&gt;It might be small in the grand scheme of things, but having an extra HTTP request (or more) for your custom fonts and requiring your users to consume more bandwidth on their end is not &amp;#8220;eco&amp;#8221;. As designers we should cut the fat and reduce software bloat in the small areas that we&amp;#8217;re able to: the front end.&lt;/p&gt;
+&lt;p&gt;My hope is that even one designer reading this decides to rollout a web app or marketing page without dumping a bunch of custom fonts on their users. It&amp;#8217;s just the &lt;em&gt;nice&lt;/em&gt; thing to do.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/webfonts"/>
+ <id>https://btxx.org/posts/webfonts</id>
+ <updated>2023-03-14T10:00:00Z</updated>
+ <published>2023-03-14T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Width or Flex-Basis?</title>
+ <content type="html">&lt;h1 id=&quot;width-or-flex-basis&quot;&gt;Width or Flex-Basis?&lt;/h1&gt;
+&lt;p&gt;2018-11-28&lt;/p&gt;
+&lt;p&gt;Creating rows and columns of elements that adapt dynamically can be a little tricky depending on the desired outcome. Let&amp;#8217;s breakdown how to solve this issue using both &lt;code&gt;inline-block&lt;/code&gt; paired with &lt;code&gt;width&lt;/code&gt; and &lt;code&gt;flex-basis&lt;/code&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;width&quot;&gt;Width&lt;/h2&gt;
+&lt;p&gt;Setting the width of the inner children to a divisible value and setting their display to &lt;code&gt;inline-block&lt;/code&gt;, we are able to create self-wrapping elements:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.width-container {
+ display: block;
+}
+.width-container__item {
+ display: inline-block;
+ width: calc(33% - 3px); &amp;#47;* Fix for wonky inline-block margins *&amp;#47;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;pros&quot;&gt;Pros&lt;/h3&gt;
&lt;ul&gt;
-&lt;li&gt;Incredibly secure operating system (No &lt;code&gt;xz&lt;/code&gt; drama here&amp;#8230;)&lt;/li&gt;
-&lt;li&gt;Detailed documentation. Probably one of the best of any OS&lt;/li&gt;
-&lt;li&gt;Much smaller codebase and small core team&lt;/li&gt;
-&lt;li&gt;&lt;em&gt;Complete&lt;/em&gt; operating system (kernel, userland utilities, libraries, applications combined)&lt;/li&gt;
+&lt;li&gt;Full browser support (as far back as IE6)&lt;/li&gt;
+&lt;li&gt;No floats needed&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;These points might not seem important to others, but they are to me. Maybe you&amp;#8217;re possibly interested in checking it out yourself? If you are, then read on&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;try-it-yourself&quot;&gt;Try it Yourself!&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve tried my best to write up a simplified, noob-friendly guide on both setting up the core OpenBSD system, along with installing a simple &lt;code&gt;dwm&lt;/code&gt; based desktop environment. These are both focused on personal devices (laptops&amp;#47;computers), so if you&amp;#8217;re looking for server-specific setups you won&amp;#8217;t find that here!&lt;/p&gt;
-&lt;p&gt;You can find both of those wiki-pages below:&lt;/p&gt;
+&lt;h3 id=&quot;cons&quot;&gt;Cons&lt;/h3&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://btxx.org/wiki/openbsd/installation/&quot;&gt;Installing OpenBSD&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://btxx.org/wiki/openbsd/desktop_environment/&quot;&gt;Setting up a Desktop Environment for OpenBSD&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Buggy &lt;code&gt;margin&lt;/code&gt; workaround needed&lt;/li&gt;
+&lt;li&gt;Wrapped elements cannot dynamically fill remaining empty parent space&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Some additional reading I highly recommend is: &lt;a href=&quot;https://www.c0ffee.net/blog/openbsd-on-a-laptop&quot;&gt;c0ffee.net&amp;#47;blog&amp;#47;openbsd-on-a-laptop&lt;/a&gt;&lt;/p&gt;</content>
- <link href="https://btxx.org/OpenBSD_is_a_Cozy_Operating_System"/>
- <id>https://btxx.org/OpenBSD_is_a_Cozy_Operating_System</id>
- <updated>2024-04-11T10:00:00Z</updated>
- <published>2024-04-11T10:00:00Z</published>
- </entry>
- <entry>
- <title>New Domain and Code Forge</title>
- <content type="html">&lt;h1 id=&quot;new-domain-and-code-forge&quot;&gt;New Domain and Code Forge&lt;/h1&gt;
-&lt;p&gt;2024-01-29&lt;/p&gt;
-&lt;p&gt;As you can clearly see, my site&amp;#8217;s domain has switched over to &lt;strong&gt;btxx.org&lt;/strong&gt;. This post will go into details about the reason for this URL swap (spoilers: I&amp;#8217;m a cheapskate) - but that isn&amp;#8217;t all. I have moved my personal git repositories over to my own hosting. I will explain the reasoning for that switch as well.&lt;/p&gt;
-&lt;p&gt;But enough introductions, let&amp;#8217;s get into it!&lt;/p&gt;
-&lt;h2 id=&quot;bt.ht-is-no-more&quot;&gt;bt.ht is No More&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve abandoned &lt;code&gt;bt.ht&lt;/code&gt;. Well, kind of. That domain doesn&amp;#8217;t expire until 2025, which works out nicely since I can keep a complete web forward active for the entire year. This will avoid such a radical switch, similar to what I did years ago with my &amp;#8220;uglyduck&amp;#8221; domain&lt;sup id=&quot;fnref1&quot;&gt;&lt;a href=&quot;#fn1&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;. Hopefully anyone who follows my dumb ramblings will have more than enough time to become familiar with the new URL.&lt;/p&gt;
-&lt;p&gt;For reference, those interested in updating their RSS will need to use the latest URLs: &lt;/p&gt;
+&lt;h2 id=&quot;flex-basis&quot;&gt;Flex-basis&lt;/h2&gt;
+&lt;p&gt;This is my personal preference for dynamically wrapping inner children elements. Simply set the parent as &lt;code&gt;display: flex&lt;/code&gt;, allow flex-wrapping and then set the &lt;code&gt;flex-basis&lt;/code&gt; of the children to any percentage value.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.flex-container {
+ display: flex;
+ flex-wrap: wrap;
+}
+.flex-container__item {
+ flex: 1 1 auto;
+ flex-basis: 33%;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;You will also notice the &lt;code&gt;flex&lt;/code&gt; property set to &lt;code&gt;1 1 auto&lt;/code&gt;. This is important if you require your wrapped elements to fill the remaining space of the parent container.&lt;/p&gt;
+&lt;h3 id=&quot;pros-1&quot;&gt;Pros&lt;/h3&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://btxx.org/index.rss&quot;&gt;RSS&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://btxx.org/index.atom&quot;&gt;Atom&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;No buggy margins to play with&lt;/li&gt;
+&lt;li&gt;Dynamically renders children to fill parent container if &lt;code&gt;flex&lt;/code&gt; is set&lt;/li&gt;
+&lt;li&gt;Scales well across screen &amp;#47; device sizes&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;You have roughly a year to do so, since new posts should still automatically appear even with defaulting to the older URL (hooray for 301 redirects!).&lt;/p&gt;
-&lt;p&gt;There were two core reasons for switching domains. The first was based off a change in ownership with my previous domain registrar, Gandi. You can read more details &lt;a href=&quot;https://news.ycombinator.com/item?id=35080777&quot;&gt;here&lt;/a&gt;, but they were essentially bought out, then decided to cancel their free email service and raised their prices. Not many registrars support the &lt;code&gt;.ht&lt;/code&gt; TLD, so moving to another provider was already proving to be difficult. Once my mind was made up that I didn&amp;#8217;t want to support such shady actions from a company, I thought even more about the concept of spending &lt;em&gt;so much&lt;/em&gt; on a domain name in the first place. It was a novelty to have such a &amp;#8220;short&amp;#8221; domain, but that seems silly in hindsight.&lt;/p&gt;
-&lt;p&gt;Just take a look at the differences in domain costs and email services below:&lt;/p&gt;
-&lt;table&gt;
-&lt;thead&gt;
-&lt;tr&gt;
-&lt;th&gt;URL&lt;/th&gt;
-&lt;th&gt;Domain&amp;#47;year&lt;/th&gt;
-&lt;th&gt;Email&amp;#47;year&lt;/th&gt;
-&lt;th&gt;Total&lt;/th&gt;
-&lt;/tr&gt;
-&lt;/thead&gt;
-&lt;tbody&gt;
-&lt;tr&gt;
-&lt;td&gt;bt.ht&lt;/td&gt;
-&lt;td&gt;$172&lt;/td&gt;
-&lt;td&gt;$60&lt;/td&gt;
-&lt;td&gt;$232&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;btxx.org&lt;/td&gt;
-&lt;td&gt;$17&lt;/td&gt;
-&lt;td&gt;$19&lt;/td&gt;
-&lt;td&gt;$36&lt;/td&gt;
-&lt;/tr&gt;
-&lt;/tbody&gt;
-&lt;/table&gt;
-&lt;p&gt;By making this switch (for both my domain and email service) I would save a yearly total of &lt;strong&gt;$196 USD&lt;/strong&gt;. This was a no-brainer. The minute I did the math I thought, &amp;#8220;Hell, I&amp;#8217;m already moving everything to a different registrar &lt;em&gt;and&lt;/em&gt; I need to look for a separate email provider&amp;#8230;why not just start fresh with a new, &lt;em&gt;cheaper&lt;/em&gt; domain?&amp;#8221;&lt;/p&gt;
-&lt;p&gt;So that&amp;#8217;s what I&amp;#8217;ve done.&lt;/p&gt;
-&lt;h2 id=&quot;my-own-code-forge&quot;&gt;My Own Code Forge&lt;/h2&gt;
-&lt;p&gt;As some people in the open source community might already be aware, &lt;a href=&quot;https://sourcehut.org&quot;&gt;sourcehut&lt;/a&gt; had a major outage a couple weeks back. It lasted a few days and all services were impacted. This meant that all publicly hosted websites, build processes and &lt;code&gt;git&lt;/code&gt; repositories were unavailable. It was no fault of sourcehut of course, they were viciously attacked for no &lt;em&gt;real&lt;/em&gt; reason. &lt;/p&gt;
-&lt;p&gt;But this outage did get me thinking about what it means to &amp;#8220;control&amp;#8221; my own code. I always liked the idea of hosting my own git projects but relied on third-party services since they were more convenient. The problem with entrusting anything, not just code storage, to third-party services is lack of oversight. You really have no idea what is happening behind the scenes. You don&amp;#8217;t control your own backups. You don&amp;#8217;t have the freedom to tweak UI or user flow of your project views (which I understand is certainly an edge-case).&lt;/p&gt;
-&lt;p&gt;These thoughts lead me to research some &amp;#8220;self-hosted&amp;#8221; code forge options. My main contenders were:&lt;/p&gt;
+&lt;h3 id=&quot;cons-1&quot;&gt;Cons&lt;/h3&gt;
&lt;ul&gt;
-&lt;li&gt;GitWeb&lt;/li&gt;
-&lt;li&gt;cgit&lt;/li&gt;
-&lt;li&gt;Gitea&lt;/li&gt;
+&lt;li&gt;Some versions of IE struggle with browser support&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;I&amp;#8217;ll save you the suspense: I went with cgit. Getting GitWeb configured properly was giving me a lot of issues and Gitea seemed overkill for my person needs. I host through NearlyFreeSpeech (running FreeBSD) and they had a decent tutorial for setting cgit up on their servers. I&amp;#8217;ve updated my own wiki for those interested in doing something similar: &lt;a href=&quot;/wiki/cgit&quot;&gt;read the full step-by-step instructions for setting up cgit&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;I still need to go through most of the existing projects on sourcehut and update their READMEs and purge the contents. The last thing I want to do is have users confused about which repo is the &amp;#8220;real&amp;#8221; one.&lt;/p&gt;
-&lt;p&gt;Fore reference the my repos are now located here: &lt;a href=&quot;https://git.btxx.org&quot;&gt;git.btxx.org&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;(I plan to place this in the main navigation soon&amp;#8230;)&lt;/p&gt;
-&lt;h2 id=&quot;mirror-mirror-on-the-wall&quot;&gt;Mirror, Mirror on the Wall&amp;#8230;&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;m aware that to have extra protection from &amp;#8220;downtime&amp;#8221; that I should also mirror my code on separate forges. I plan to do this sometime in the future, but this isn&amp;#8217;t a major priority for me currently. When the time comes I&amp;#8217;ll be sure to update my repos referring to the mirrors (whatever platform that is I choose).&lt;/p&gt;
-&lt;h2 id=&quot;room-for-improvement&quot;&gt;Room for Improvement&lt;/h2&gt;
-&lt;p&gt;My code forge is far from perfect. Mobile view is lacking, there is no dark mode support and things could be slightly more intuitive. But I love it. The beauty of hosting everything on my own is that I can improve these things myself. For now, I&amp;#8217;m happy with the outcome!&lt;/p&gt;
-&lt;div class=&quot;footnotes&quot;&gt;
-&lt;hr/&gt;
+&lt;h2 id=&quot;codepen-demo&quot;&gt;CodePen Demo&lt;/h2&gt;
+&lt;p&gt;Feel free to play around with a slightly more stylized version of both options below:&lt;/p&gt;
+&lt;p&gt;CodePen Demo: Width or flex-basis&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/width-vs-flex-basis"/>
+ <id>https://btxx.org/posts/width-vs-flex-basis</id>
+ <updated>2018-11-28T10:00:00Z</updated>
+ <published>2018-11-28T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Setting Up Jekyll on Windows </title>
+ <content type="html">&lt;h1 id=&quot;setting-up-jekyll-on-windows&quot;&gt;Setting Up Jekyll on Windows&lt;/h1&gt;
+&lt;p&gt;2022-09-02&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ve recently been playing around with using Windows 10 as my daily operating system. So far, it has been going fairly well. Nothing will probably ever feel as &amp;#8220;optimized&amp;#8221; as running a Linux-based system but it works well for my current needs. Getting a Jekyll development environment setup was a different story though&amp;#8230;&lt;/p&gt;
+&lt;p&gt;One of the first issues with using Windows 10 is the need to run a few of my open source projects that are built off Jekyll locally. This process initially seemed a like complex process to get things running smoothly but in the end was very straightforward. The main issue came from needing to bounce around through a handful of separate tutorials to get everything running smoothly.&lt;/p&gt;
+&lt;p&gt;So, I thought I would make this quick write-up to help those in the same situation (or even for my future self the need arises). Let&amp;#8217;s get into it.&lt;/p&gt;
+&lt;h2 id=&quot;wsl&quot;&gt;WSL&lt;/h2&gt;
+&lt;p&gt;The first step involves installing &lt;a href=&quot;https://docs.microsoft.com/en-us/windows/wsl/install&quot;&gt;WSL&lt;/a&gt; in order to run Linux alongside the main Windows OS. The documentation is well written and will get you up-and-running in no time. For quick reference, it essentially comes down to:&lt;/p&gt;
&lt;ol&gt;
-
-&lt;li id=&quot;fn1&quot;&gt;
-&lt;p&gt;Someone oddly picked up that domain and piggybacked off the back-links. They happen to also be a designer&amp;#8230;Guess the naming was that cool? &amp;#160;&lt;a href=&quot;#fnref1&quot; rev=&quot;footnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
-&lt;/li&gt;
-
+&lt;li&gt;Opening PowerShell or Command Prompt as an administrator&lt;/li&gt;
+&lt;li&gt;Installing via the command: &lt;code&gt;wsl --install&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Restarting your machine after the install completes&lt;/li&gt;
+&lt;li&gt;Creating your UNIX username and password&lt;/li&gt;
&lt;/ol&gt;
-&lt;/div&gt;</content>
- <link href="https://btxx.org/New_Domain_and_Code_Forge"/>
- <id>https://btxx.org/New_Domain_and_Code_Forge</id>
- <updated>2024-01-29T10:00:00Z</updated>
- <published>2024-01-29T10:00:00Z</published>
- </entry>
- <entry>
- <title>My Text Edtior is Not Open Source</title>
- <content type="html">&lt;h1 id=&quot;my-text-edtior-is-not-open-source&quot;&gt;My Text Edtior is Not Open Source&lt;/h1&gt;
-&lt;p&gt;2024-01-02&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ve been using Sublime Text on and off for longer than I can remember. I think Sublime has been around since the start of my &amp;#8220;real&amp;#8221; career over 10 years ago, but I could be mistaken&lt;sup id=&quot;fnref1&quot;&gt;&lt;a href=&quot;#fn1&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;. It certainly &lt;em&gt;feels&lt;/em&gt; that long. And in that time I have never gotten upset with Sublime. I&amp;#8217;ve never rage quit or ran into an issue of Sublime not being able to &lt;em&gt;do the thing I wanted it to do&lt;/em&gt;. As much of a cliche it may sound: it just works.&lt;/p&gt;
-&lt;p&gt;Even when I switch editors (VSCode, Geany, kitty+vim etc.) for a period of time, I find myself always coming back to Sublime. The only reason I try other editors is simply that: to try them. Maybe that&amp;#8217;s why these editors don&amp;#8217;t click with me. Maybe I&amp;#8217;m giving Sublime an unfair advantage since I&amp;#8217;m simply &amp;#8220;testing&amp;#8221; other editors, rather than looking for a solid alternative.&lt;/p&gt;
-&lt;p&gt;And don&amp;#8217;t get me wrong, I understand &lt;em&gt;why&lt;/em&gt; editors like VSCode are extremely popular. VSCode has a massive ecosystem and new plugins are generally developed for that editor before all others. Finding solutions to problems online is very easy, since it is so popular. But best of all - it&amp;#8217;s open source&lt;sup id=&quot;fnref2&quot;&gt;&lt;a href=&quot;#fn2&quot; rel=&quot;footnote&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;
-&lt;p&gt;So why am I using a &lt;em&gt;non&lt;/em&gt;-open source editor? (Spoilers: because it&amp;#8217;s a great editor)&lt;/p&gt;
-&lt;h2 id=&quot;a-proprietary-editor---how-could-you&quot;&gt;&amp;#8220;A Proprietary Editor - How Could You?!&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;I know, I know. If you&amp;#8217;re familiar with me or the things I write about it must seem odd that I would willingly use proprietary software over open source. This is something I struggle with constantly day-to-day in the realm of &amp;#8220;personal tech&amp;#8221;. I find with age I become more open-minded to having a diverse range of software and hardware choices. Open source is best in &lt;em&gt;concept&lt;/em&gt; but not always best in practice.&lt;/p&gt;
-&lt;p&gt;The problem is that Sublime is just such a &lt;em&gt;great&lt;/em&gt; editor. I can&amp;#8217;t ignore quality and refuse to use good software solely based on it&amp;#8217;s licensing. A few personal things I love about Sublime:&lt;/p&gt;
+&lt;h2 id=&quot;installing-ruby-dependencies&quot;&gt;Installing Ruby &amp;#38; Dependencies&lt;/h2&gt;
+&lt;p&gt;Once logged into your UNIX terminal session (with your created user) you can begin installing everything we need for Jekyll to work properly. The first step is to installing &lt;code&gt;rvm&lt;/code&gt; and the &lt;a href=&quot;https://github.com/rvm/ubuntu_rvm&quot;&gt;official project documentation&lt;/a&gt; does a very good job of walking you through this.&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Incredibly fast&lt;/li&gt;
-&lt;li&gt;Handles massive files without breaking a sweat&lt;/li&gt;
-&lt;li&gt;Minimal resource footprint (ex. uses &amp;#60;0.1% CPU working on huge projects)&lt;/li&gt;
-&lt;li&gt;Large ecosystem of plugins&amp;#47;themes&lt;/li&gt;
-&lt;li&gt;No Electron&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Be sure dependencies as installed: &lt;code&gt;sudo apt-get install software-properties-common&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Add the PPA and install the package:&lt;/p&gt;
+&lt;p&gt;sudo apt-add-repository -y ppa:rael-gc&amp;#47;rvm
+sudo apt-get update
+sudo apt-get install rvm&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Add your existing user to the &lt;code&gt;rvm&lt;/code&gt; group: &lt;code&gt;sudo usermod -a -G rvm $USER&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Other editors can certainly check off a few of those boxes as well, but you&amp;#8217;d be hard-pressed to find one that checks off them all.&lt;/p&gt;
-&lt;h2 id=&quot;being-a-cheapskate&quot;&gt;Being a Cheapskate&lt;/h2&gt;
-&lt;p&gt;I must confess something that I think most Sublime users are guilty of: I&amp;#8217;ve never &lt;a href=&quot;https://www.sublimehq.com/store/text&quot;&gt;bought a license&lt;/a&gt;. I&amp;#8217;ve installed and used Sublime on countless machines, on multiple operating systems from Linux to Windows to MacOS. That &lt;code&gt;Unregistered&lt;/code&gt; text in the top right application bar has been with me since the beginning. But that in no longer the case.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;I finally purchased a license.&lt;/strong&gt; I bundled it with &lt;a href=&quot;https://www.sublimemerge.com/&quot;&gt;Sublime Merge&lt;/a&gt;, so it ended up costing me $168 USD. When I initially looked at that price tag I must admit I was tempted to close the browser tab and forget the whole thing. But then I realized I have been using this editor &lt;em&gt;free of charge&lt;/em&gt; for over 10 years. (Not to mention using Sublime Merge for quite some time as well!)&lt;/p&gt;
-&lt;p&gt;So I did a little math:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;$168 &amp;#47; 10 years = $16.80
+&lt;p&gt;You will need to close and restart your session to your Ubuntu system for these changes to take. After that, we can use &lt;code&gt;rvm&lt;/code&gt; to install the latest version (at this time of writing) of ruby:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;rvm install 3.1.2
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Looking at it in that perspective, it&amp;#8217;s actually a great deal. Not to mention they have very respectable terms for their licenses:&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;Personal licenses come with 3 years of updates. After 3 years, you&amp;#8217;ll be able to continue to use the last version released within 3 years of purchase (in other words, licenses do not expire). Any versions released 3 years or more after the purchase date will require a paid upgrade to use.&lt;/p&gt;
-&lt;p&gt;Individual licenses are valid for 3 years of updates, but do not expire after 3 years. Only if you wish to use newer versions will an upgrade fee be required. &lt;/p&gt;
-&lt;p&gt;Licenses are per-user, so you&amp;#8217;re welcome to use the one license on all computers and operating systems where you are the primary user.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;I won&amp;#8217;t copy everything from their main &lt;a href=&quot;https://www.sublimehq.com/sales_faq&quot;&gt;FAQ page&lt;/a&gt; but as you can see it is very reasonable. I also get to feel decent for supporting developers who make very good software.&lt;/p&gt;
-&lt;h2 id=&quot;final-notes&quot;&gt;Final Notes&lt;/h2&gt;
-&lt;p&gt;This post is not meant to convince you to switch or anything of that nature. Use what works for you! I just wanted to share my own personal preference when it came to my main text editor. Maybe this will also convince &amp;#8220;hardcore&amp;#8221; open source people (like me!) to realize it is &lt;em&gt;okay&lt;/em&gt; to pay for software sometimes&amp;#8230;&lt;/p&gt;
-&lt;hr/&gt;
-&lt;p&gt;I should be very clear about something: this post &lt;em&gt;is not an advertisement&lt;/em&gt;. I have not received any money or &amp;#8220;kick backs&amp;#8221; to write about my happy times with Sublime. This is purely my own opinion that I wanted to share with the internet!&lt;/p&gt;
-&lt;p&gt;BTW if anyone from SublimeHQ happens to come across this post: PLEASE look into building a &amp;#8220;native&amp;#8221; version of Sublime Text for FreeBSD&amp;#47;OpenBSD. I (and many others) would be forever grateful!&lt;/p&gt;
-&lt;div class=&quot;footnotes&quot;&gt;
-&lt;hr/&gt;
-&lt;ol&gt;
-
-&lt;li id=&quot;fn1&quot;&gt;
-&lt;p&gt;Sublime does mention copyright since 2006&amp;#8230;&amp;#160;&lt;a href=&quot;#fnref1&quot; rev=&quot;footnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
-&lt;/li&gt;
-
-&lt;li id=&quot;fn2&quot;&gt;
-&lt;p&gt;Not the pre-packaged Microsoft version&amp;#160;&lt;a href=&quot;#fnref2&quot; rev=&quot;footnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
-&lt;/li&gt;
-
-&lt;/ol&gt;
-&lt;/div&gt;</content>
- <link href="https://btxx.org/My_Text_Editor_Is_Not_Open_Source"/>
- <id>https://btxx.org/My_Text_Editor_Is_Not_Open_Source</id>
- <updated>2024-01-02T10:00:00Z</updated>
- <published>2024-01-02T10:00:00Z</published>
- </entry>
- <entry>
- <title>Installing WordPress on NearlyFreeSpeech</title>
- <content type="html">&lt;h1 id=&quot;installing-wordpress-on-nearlyfreespeech&quot;&gt;Installing WordPress on NearlyFreeSpeech&lt;/h1&gt;
-&lt;p&gt;2024-05-27&lt;/p&gt;
-&lt;p&gt;I recently went through the process of porting over my wife&amp;#8217;s small business website (built off of WordPress + Woocommerce) from EasyWP to NearlyFreeSpeech. Although the process was fairly easy-going, I thought I would post my complete process here. That way, others who might wish to make the same switch can avoid running into any minor bumps along the way.&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;Some of this information has been lifted from &lt;a href=&quot;https://members.nearlyfreespeech.net/tdarb/support/wordpress&quot;&gt;the official NFS docs&lt;/a&gt;, but these pages require a membership to access&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;h3 id=&quot;download-wordpress&quot;&gt;Download WordPress&lt;/h3&gt;
-&lt;p&gt;We will use the &lt;code&gt;wp-cli&lt;/code&gt; that comes packaged with NearlyFreeSpeech (NFS):&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Connect to your site via SSH.&lt;/li&gt;
-&lt;li&gt;Change to the directory you want to be the base of your blog (e.g. &amp;#47;home&amp;#47;public if WordPress will be running the whole site, or &amp;#47;home&amp;#47;public&amp;#47;blog if you want to share the site with other content).&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;For help using WP-CLI from the SSH command line, use this command:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;wp help
+&lt;p&gt;That&amp;#8217;s it!&lt;/p&gt;
+&lt;h2 id=&quot;jekyll---finally&quot;&gt;Jekyll - Finally!&lt;/h2&gt;
+&lt;p&gt;The final step is to update our gems and install Jekyll:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;gem update
+gem install jekyll bundler
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;To download and unpack the latest version of WordPress, enter the following command:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;wp core download
+&lt;p&gt;Once complete you can now run your Jekyll projects locally through WSL! Nothing ground-breaking but still pretty helpful for first-time users. And best of all, at least I have a good reference point in the future if I ever run into this issue again!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/windows"/>
+ <id>https://btxx.org/posts/windows</id>
+ <updated>2022-09-02T10:00:00Z</updated>
+ <published>2022-09-02T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>WP Enqueue for Beginners</title>
+ <content type="html">&lt;h1 id=&quot;wp-enqueue-for-beginners&quot;&gt;WP Enqueue for Beginners&lt;/h1&gt;
+&lt;p&gt;2020-05-05&lt;/p&gt;
+&lt;p&gt;Throughout my career designing, developing and auditing WordPress themes, I&amp;#8217;ve come across many that include their custom styles &amp;#47; scripts as static HTML elements inside their respective &lt;code&gt;header&lt;/code&gt; and &lt;code&gt;footer&lt;/code&gt; templates. This is perfectly &lt;em&gt;fine&lt;/em&gt;, but there is a cleaner way to include these files.&lt;/p&gt;
+&lt;p&gt;This post is purposefully catered for WordPress beginners, so if this seems overly simple, then you&amp;#8217;re probably already developing WordPress themes that utilize these techniques. (Which is awesome!)&lt;/p&gt;
+&lt;h2 id=&quot;introducing-wp-enqueue&quot;&gt;Introducing WP Enqueue&lt;/h2&gt;
+&lt;p&gt;The description of Wp Enqueue from the WordPress documentation:&lt;/p&gt;
+&lt;p&gt;In a nutshell: Placing a &lt;code&gt;wp_enqueue_script&lt;/code&gt; or &lt;code&gt;wp_enqueue_style&lt;/code&gt; script in the &lt;code&gt;functions.php&lt;/code&gt; of your custom theme tells WordPress to pull external files into the header or footer of your website. Best practice being: &lt;em&gt;styles into the header, scripts into the footer&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;I suggest you read the official documentation for more details: &lt;a href=&quot;https://developer.wordpress.org/reference/functions/wp_enqueue_script/&quot;&gt;wp_enqueue_script&lt;/a&gt; and &lt;a href=&quot;https://developer.wordpress.org/reference/functions/wp_enqueue_style/&quot;&gt;wp_enqueue_style&lt;/a&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;enqueue-stylesheets&quot;&gt;Enqueue Stylesheets&lt;/h2&gt;
+&lt;p&gt;The default script to enqueue a CSS stylesheet:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;wp_enqueue_style( $handle, $src, $deps, $ver, $media );
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;create-a-mysql-process-and-database&quot;&gt;Create a MySQL Process and Database&lt;/h2&gt;
-&lt;p&gt;Follow the instructions in the NearlyFreeSpeech.NET FAQ to &lt;a href=&quot;https://members.nearlyfreespeech.net/faq?q=MySQL#MySQL&quot;&gt;create a MySQL process&lt;/a&gt; if you haven&amp;#8217;t already.&lt;/p&gt;
-&lt;p&gt;Next, &lt;a href=&quot;https://members.nearlyfreespeech.net/faq?q=CreateDatabase#CreateDatabase&quot;&gt;create a new database&lt;/a&gt; within that process. Note the name of the process and the name of the database.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: Do not use your own MySQL credentials to connect WordPress to your database. Instead, create a new user. This will protect your member password in the event that your site becomes compromised.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Click on the &lt;a href=&quot;https://members.nearlyfreespeech.net/mysql&quot;&gt;MySQL tab&lt;/a&gt; in the member interface&lt;/li&gt;
-&lt;li&gt;Click &amp;#8220;[Open phpMyAdmin](&lt;a href=&quot;https://phpmyadmin.nearlyfreespeech.net/&quot;&gt;https:&amp;#47;&amp;#47;phpmyadmin.nearlyfreespeech.net&amp;#47;&lt;/a&gt;&amp;#8221; in the Actions box.&lt;/li&gt;
-&lt;li&gt;Enter the DSN (&amp;#8220;Server&amp;#8221;) of your MySQL Process, MySQL username, and MySQL password. The DSN and username can be found on the Process Information page in our member UI.&lt;/li&gt;
-&lt;li&gt;Click on the &amp;#8220;Users&amp;#8221; tab.&lt;/li&gt;
-&lt;li&gt;Click &amp;#8220;Add user.&amp;#8221; (It&amp;#8217;s toward the bottom left of the page.)&lt;/li&gt;
-&lt;li&gt;Give the user a descriptive name. We&amp;#8217;ll use exampledbuser here, but you should pick something better, like wpuser or something representative of your blog.&lt;/li&gt;
-&lt;li&gt;Make sure to leave the Host: selectbox on &amp;#8220;Any host.&amp;#8221;&lt;/li&gt;
-&lt;li&gt;Click the &amp;#8220;Generate&amp;#8221; link to generate a nice strong password.&lt;/li&gt;
-&lt;li&gt;Use cut and paste to copy the new password somewhere, you&amp;#8217;ll need it later. (We&amp;#8217;ll use dbpassword here.)&lt;/li&gt;
-&lt;li&gt;Grant the following permissions to the new user:
&lt;ul&gt;
-&lt;li&gt;All the permissions except &amp;#8220;file&amp;#8221; in the &amp;#8220;data&amp;#8221; box,&lt;/li&gt;
-&lt;li&gt;Everything in the &amp;#8220;structure&amp;#8221; box, and&lt;/li&gt;
-&lt;li&gt;&amp;#8220;LOCK TABLES&amp;#8221; in the &amp;#8220;administration&amp;#8221; box.&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Click the &amp;#8220;Go&amp;#8221; button in the lower right.&lt;/li&gt;
-&lt;li&gt;Exit phpMyAdmin.&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$handle&lt;/code&gt; - the name associated with your stylesheet&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$src&lt;/code&gt; - URL pointing to the directory of the stylesheet itself&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$deps&lt;/code&gt; - An array of any other stylesheets needed as dependencies&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$ver&lt;/code&gt; - The version number of the stylesheet (used for cache busting)&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$media&lt;/code&gt; - Specify media type (&lt;code&gt;all&lt;/code&gt;, &lt;code&gt;print&lt;/code&gt;, &lt;code&gt;screen&lt;/code&gt;, etc.)&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;generate-a-wordpress-configuration-file&quot;&gt;Generate a WordPress Configuration File&lt;/h2&gt;
-&lt;p&gt;At the SSH command line (replace the examples with the info for the database and user you created above):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;wp core config --dbhost=example.db --dbname=exampledb --dbuser=exampledbuser --dbpass=dbpassword
-chmod 644 wp-config.php
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;run-the-wordpress-installation-and-setting-permissions&quot;&gt;Run the WordPress Installation and Setting Permissions&lt;/h2&gt;
-&lt;p&gt;To get your permalinks to work properly, you must set up an .htaccess file. &lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Go to the Dashboard for your WordPress site. (e.g. &lt;a href=&quot;https://www.example.com/wp-admin/index.php&quot;&gt;https:&amp;#47;&amp;#47;www.example.com&amp;#47;wp-admin&amp;#47;index.php&lt;/a&gt;)&lt;/li&gt;
-&lt;li&gt;In the navigation sidebar, find Settings and, under that, Permalinks.&lt;/li&gt;
-&lt;li&gt;Select your preferred link style under &amp;#8220;Common Settings.&amp;#8221; (We like &amp;#8220;Day and name.&amp;#8221;)&lt;/li&gt;
-&lt;li&gt;Scroll down and select the &amp;#8220;Save Changes&amp;#8221; button.&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;Next, create an &lt;code&gt;.htaccess&lt;/code&gt; file for your WordPress site. We suggest doing this directly from the SSH command line using the cat shell command:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;cat &amp;#62;.htaccess &amp;#60;&amp;#60;NFSNRULES # This line is a shell command, not part of .htaccess!
-RewriteEngine On
-RewriteBase &amp;#47;
-RewriteRule ^index\.php$ - [L]
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteCond %{REQUEST_FILENAME} !-d
-RewriteRule . &amp;#47;index.php [L]
-NFSNRULES
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If you prefer, you can copy-paste the text into an editor:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;RewriteEngine On
-RewriteBase &amp;#47;
-RewriteRule ^index\.php$ - [L]
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteCond %{REQUEST_FILENAME} !-d
-RewriteRule . &amp;#47;index.php [L]
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;We need to run the following commands in order to install, uninstall, activate, and deactivate plugins&amp;#47;themes from within the admin web GUI of WordPress:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;chgrp web .htaccess
-chmod 664 .htaccess
-chgrp -R web *
-find . -type d -exec chmod 775 {} \;
-find . -type f -exec chmod 664 {} \;
-wp config set FS_METHOD direct
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;enable-file-uploading&quot;&gt;Enable File Uploading&lt;/h2&gt;
-&lt;p&gt;In your main WordPress installation folder enter the following SSH commands:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;cd wp-content
-mkdir -p uploads
-chgrp -R web uploads
-chmod -R 775 uploads
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;keeping-wordpress-up-to-date-automatically-via-command-line&quot;&gt;Keeping WordPress Up-To-Date Automatically via Command Line&lt;/h2&gt;
-&lt;p&gt;It is &lt;strong&gt;critically&lt;/strong&gt; important to keep your WordPress installation up-to-date including, if applicable, your theme and plugins. PHP, WordPress, and WordPress themes and plugins all have a track record of security problems. Most of those get fixed quickly, but if you don&amp;#8217;t update, you don&amp;#8217;t get the fixes.&lt;/p&gt;
-&lt;p&gt;To help you keep WordPress up-to-date, NFS provides a streamlined script.&lt;/p&gt;
-&lt;p&gt;This command, which must be run from an interactive ssh session, will set up our system to check your WordPress install (and themes &amp;#38; plugins) for you every day, and update them automatically when needed:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;wp-update.sh -a
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;By default, it will tell you via email when updates happen. If you don&amp;#8217;t want that, just add &lt;code&gt;-q&lt;/code&gt; (for &amp;#8220;quiet&amp;#8221;) to the command. It will work silently unless there is an error.&lt;/p&gt;
-&lt;p&gt;If you get errors from wp-cron (not wp-update) about failed automatic updates, you may also wish to add this to your wp-config.php file:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;define( &amp;#39;AUTOMATIC_UPDATER_DISABLED&amp;#39;, true );
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This disables the insecure automatic updater bundled with recent versions of WordPress.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Do not attempt&lt;/strong&gt; to use WordPress&amp;#8217;s built-in ability to update itself through its admin panel. That insecure, outdated approach should not still exist. It does not work on NFS, which is a feature, not a bug. Getting it to work requires almost completely destroying your site&amp;#8217;s security, thereby ensuring that any undiscovered security flaw can enable hackers to completely obliterate your site. The update methods described here are faster, easier, and safer.&lt;/p&gt;
-&lt;h2 id=&quot;logging-in&quot;&gt;Logging In&lt;/h2&gt;
-&lt;p&gt;You should be able to navigate to &lt;code&gt;yourwebsite.com&amp;#47;wp-admin&lt;/code&gt;, login and have everything work as expected. Congrats - enjoy your blog!&lt;/p&gt;
-&lt;p&gt;Below you can find more advanced configuration to get the most out of your WordPress project.&lt;/p&gt;
-&lt;hr/&gt;
-&lt;h2 id=&quot;backing-up-wordpress&quot;&gt;Backing up WordPress&lt;/h2&gt;
-&lt;p&gt;NFS recommends backing up your WordPress setup on a regular basis.&lt;/p&gt;
-&lt;p&gt;This is a two-step process. You must back up both the files and the database.&lt;/p&gt;
-&lt;h3 id=&quot;backing-up-wordpress-files&quot;&gt;Backing up WordPress Files&lt;/h3&gt;
-&lt;p&gt;To back up your WordPress files directly from a Unix-like system of your own, you can use a command like:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;ssh yourmembername_siteshortname@ssh.phx.nearlyfreespeech.net tar -C &amp;#47;home&amp;#47;public -cvf - . | gzip &amp;#62;name-of-wordpress-backup.tar.gz
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;To back up WordPress to a file on our system that you can transfer via SFTP to your own computer, you can use a command like:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;tar -C &amp;#47;home&amp;#47;public -cvzf &amp;#47;home&amp;#47;tmp&amp;#47;name-of-wordpress-backup.tar.gz .
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This assumes that your WordPress install is in the default location (&lt;code&gt;&amp;#47;home&amp;#47;public&lt;/code&gt;). It will put your backup file in your &lt;code&gt;&amp;#47;home&amp;#47;tmp&lt;/code&gt; directory.&lt;/p&gt;
-&lt;p&gt;Do not try to back up your WordPress folder into your WordPress folder, as that occasionally results in attempts to use infinite disk space by trying to back up the backup of the backup of the backup of the&amp;#8230;&lt;/p&gt;
-&lt;h3 id=&quot;backing-up-the-wordpress-database&quot;&gt;Backing up the WordPress Database&lt;/h3&gt;
-&lt;p&gt;If you have a Unix-like system of your own (e.g. macOS or Linux), you can do the backup directly from there using your local command prompt using the MySQL username and password you created for WordPress:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;ssh yourmembername_siteshortname@ssh.phx.nearlyfreespeech.net wp db export - | gzip &amp;#62;wordpress-backup.sql.gz
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Or you can do it from the SSH command line via WP-CLI:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;wp db export &amp;#47;home&amp;#47;tmp&amp;#47;wordpress-backup.sql
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;The &lt;code&gt;wordpress-backup.sql&lt;/code&gt; file this generates will be stored in your site&amp;#8217;s &lt;code&gt;&amp;#47;home&amp;#47;tmp&lt;/code&gt; directory. Download it from there to have a local copy.&lt;/p&gt;
-&lt;h2 id=&quot;thats-it&quot;&gt;That&amp;#8217;s It!&lt;/h2&gt;
-&lt;p&gt;Your WordPress site should be up-and-running now. Further customization or extra plugins&amp;#47;services can be freely added if so desired. Enjoy your site!&lt;/p&gt;</content>
- <link href="https://btxx.org/Installing_WordPress_on_NearlyFreeSpeech"/>
- <id>https://btxx.org/Installing_WordPress_on_NearlyFreeSpeech</id>
- <updated>2024-05-27T10:00:00Z</updated>
- <published>2024-05-27T10:00:00Z</published>
- </entry>
- <entry>
- <title>Building rbenv on OpenBSD 7.5</title>
- <content type="html">&lt;h1 id=&quot;building-rbenv-on-openbsd-7.5&quot;&gt;Building rbenv on OpenBSD 7.5&lt;/h1&gt;
-&lt;p&gt;2024-06-02&lt;/p&gt;
-&lt;p&gt;I use Ruby (specifically with Jekyll) for a lot of my clubs&amp;#47;projects while using my personal laptop (&lt;a href=&quot;/posts/x220/&quot;&gt;X220 ThinkPad&lt;/a&gt;) which is runs OpenBSD. Since I recently upgraded to OpenBSD 7.5 I thought it could be helpful for others if I shared my process of building and using &lt;code&gt;rbenv&lt;/code&gt; to install different Ruby versions.&lt;/p&gt;
-&lt;h2 id=&quot;before-we-build&quot;&gt;Before We Build&lt;/h2&gt;
-&lt;p&gt;First, be sure to install the required packages in order to build from source, and then clone the core &lt;code&gt;rbenv&lt;/code&gt; repo:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;pkg_add git gcc gmake libffi libyaml openssl
-git clone https:&amp;#47;&amp;#47;github.com&amp;#47;rbenv&amp;#47;rbenv.git ~&amp;#47;.rbenv
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;building-&quot;&gt;Building &lt;code&gt;rbenv&lt;/code&gt;&lt;/h2&gt;
-&lt;p&gt;Add &lt;code&gt;rbenv&lt;/code&gt; to your PATH and initialize it (place this inside your &lt;code&gt;.bashrc&lt;/code&gt; or &lt;code&gt;.zshrc&lt;/code&gt; etc):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;export PATH=&quot;$HOME&amp;#47;.rbenv&amp;#47;bin:$PATH&quot;
-export PATH=&quot;$HOME&amp;#47;.rbenv&amp;#47;shims:$PATH&quot;
-export RUBY_CONFIGURE_OPTS=&quot;--with-openssl-dir=&amp;#47;usr&amp;#47;local&quot;
-eval &quot;$(rbenv init -)&quot;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then reload your shell (zsh in this example): &lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;source ~&amp;#47;.zshrc
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next we will need to install &lt;code&gt;ruby-build&lt;/code&gt; as a &lt;code&gt;rbenv&lt;/code&gt; plugin. Clone the ruby-build repository into the rbenv plugins directory:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;git clone https:&amp;#47;&amp;#47;github.com&amp;#47;rbenv&amp;#47;ruby-build.git ~&amp;#47;.rbenv&amp;#47;plugins&amp;#47;ruby-build
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;installing-ruby-and-setting-our-version&quot;&gt;Installing Ruby and Setting Our Version&lt;/h2&gt;
-&lt;p&gt;Now use &lt;code&gt;rbenv&lt;/code&gt; to install the desired version of Ruby (we will get an older version for this example):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;rbenv install 3.3.0
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If you run into issues, you may need to specify your openssl directory:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;RUBY_CONFIGURE_OPTS=&quot;--with-openssl-dir=&amp;#47;usr&amp;#47;local&quot; rbenv install 3.3.0
+&lt;p&gt;So, with all those parameters in mind, here is what a standard default enqueue of a CSS stylesheet looks like:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;wp_enqueue_style( &amp;#39;google-fonts&amp;#39;, &amp;#39;https:&amp;#47;&amp;#47;fonts.googleapis.com&amp;#47;css?family=Montserrat:200,300,300i,400,600,700,800,900&amp;#39;, &amp;#39;&amp;#39;, &amp;#39;1.0&amp;#39;, &amp;#39;&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If you&amp;#8217;re on a slower machine (like mine) this might take a little bit. Just grab a coffee or a snack while you wait!&lt;/p&gt;
-&lt;p&gt;Then navigate to your project of choice and set the &lt;code&gt;local&lt;/code&gt; Ruby version:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;rbenv local 3.3.0
+&lt;p&gt;In this example we have rendered the following:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;code&gt;$handle&lt;/code&gt;: google-fonts&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$src&lt;/code&gt;: &lt;a href=&quot;https://fonts.googleapis.com/css?family=Montserrat:200,300,300i,400,600,700,800-&quot;&gt;https:&amp;#47;&amp;#47;fonts.googleapis.com&amp;#47;css?family=Montserrat:200,300,300i,400,600,700,800-&lt;/a&gt; 0&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$deps&lt;/code&gt;: Null (left blank)&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$ver&lt;/code&gt;: 1.0&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$media&lt;/code&gt;: Null (left blank)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; Keep in mind that the &lt;code&gt;wp_enqueue_style&lt;/code&gt; script will render the stylesheet link into the WordPress header automatically.&lt;/p&gt;
+&lt;h2 id=&quot;enqueue-scripts&quot;&gt;Enqueue Scripts&lt;/h2&gt;
+&lt;p&gt;The default script to enqueue an external JS file:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer );
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it! If you&amp;#8217;d prefer to set this version of Ruby for all projects going forward, simply replace &lt;code&gt;local&lt;/code&gt; with &lt;code&gt;global&lt;/code&gt;.&lt;/p&gt;</content>
- <link href="https://btxx.org/Building_rbenv_on_OpenBSD_7.5"/>
- <id>https://btxx.org/Building_rbenv_on_OpenBSD_7.5</id>
- <updated>2024-06-02T10:00:00Z</updated>
- <published>2024-06-02T10:00:00Z</published>
- </entry>
- <entry>
- <title>Making a Website Under 1kB</title>
- <content type="html">&lt;h1 id=&quot;making-a-website-under-1kb&quot;&gt;Making a Website Under 1kB&lt;/h1&gt;
-&lt;p&gt;2022-08-02&lt;/p&gt;
-&lt;p&gt;I recently launched (another) website club called the &lt;a href=&quot;https://1kb.club&quot;&gt;1kB Club&lt;/a&gt;. Unlike the &lt;a href=&quot;https://1mb.club&quot;&gt;1MB Club&lt;/a&gt;, it isn&amp;#8217;t as accessible for most modern websites to become official members. Building a website that actually serves useful content while squeezing its page size under 1,024 bytes is no easy feat.&lt;/p&gt;
-&lt;p&gt;But it is possible. And I did it myself!&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;Note:&lt;/em&gt; Big shout-out to &lt;a href=&quot;https://t0.vc&quot;&gt;Tanner&lt;/a&gt;, who inspired this whole &amp;#8220;movement&amp;#8221; with his own minimal website. (He also has some really great creations&amp;#47;articles there too!)&lt;/p&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;For reference, you can view my &amp;#8220;mini&amp;#8221; website here: &lt;a href=&quot;https://cv.tdarb.org&quot;&gt;cv.tdarb.org&lt;/a&gt;. It is &lt;em&gt;very&lt;/em&gt; minimal and serves only as a personal curriculum vitae. It also weighs only &lt;strong&gt;920 bytes&lt;/strong&gt; and is valid HTML.&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s take a look at the full HTML and then break things down from there:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;!DOCTYPE html&amp;#62;&amp;#60;link rel=&quot;icon&quot; href=&quot;data:,&quot;&amp;#62;&amp;#60;meta name=&quot;viewport&quot; content=&quot;width=device-width,initial-scale=1.0&quot;&amp;#62;&amp;#60;title&amp;#62;CV&amp;#60;&amp;#47;title&amp;#62;&amp;#60;p&amp;#62;Hi, I&amp;#39;m &amp;#60;a href=&quot;t&quot;&amp;#62;Brad Taunt&amp;#60;&amp;#47;a&amp;#62;! I&amp;#39;m a UX designer.&amp;#60;p&amp;#62;Email: hello@tdarb.org&amp;#60;p&amp;#62;Resume&amp;#60;p&amp;#62;Senior Product Designer @ Donorbox, 2021-&amp;#60;br&amp;#62;Web Designer @ Purism, 2019-2021&amp;#60;br&amp;#62;Product Designer @ Benbria, 2013-2019&amp;#60;br&amp;#62;Web Designer @ Netvatise, 2009-2013&amp;#60;p&amp;#62;Projects&amp;#60;p&amp;#62;&amp;#60;a href=&quot;1&quot;&amp;#62;1MB Club&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;k&quot;&amp;#62;1kB Club&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;p&quot;&amp;#62;pblog&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;s&quot;&amp;#62;shinobi&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;h&quot;&amp;#62;PHPetite&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;v&quot;&amp;#62;Vanilla CSS&amp;#60;&amp;#47;a&amp;#62;&amp;#60;p&amp;#62;Writing&amp;#60;p&amp;#62;&amp;#60;a href=&quot;d&quot;&amp;#62;The Death of Personality&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;u&quot;&amp;#62;Simple Does Not Mean Ugly&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;e&quot;&amp;#62;Plain Text Emails, Please&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;tb&quot;&amp;#62;[more]&amp;#60;&amp;#47;a&amp;#62;
+&lt;ul&gt;
+&lt;li&gt;&lt;code&gt;$handle&lt;/code&gt; - the name associated with your script&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$src&lt;/code&gt; - URL pointing to the directory of the script itself&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$deps&lt;/code&gt; - An array of any other scripts needed as dependencies&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$ver&lt;/code&gt; - The version number of the script (used for cache busting)&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$in_footer&lt;/code&gt; - Set whether the script is loaded in the &lt;code&gt;&amp;#60;head&amp;#62;&lt;/code&gt; or just before the &lt;code&gt;&amp;#60;&amp;#47;body&amp;#62;&lt;/code&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;With all those parameters in mind, here is what a standard default enqueue of a Javascript file looks like:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;wp_enqueue_script( &amp;#39;bxslider&amp;#39;, get_template_directory_uri() . &amp;#39;&amp;#47;js&amp;#47;bxslider.js&amp;#39;, array(&amp;#39;jquery&amp;#39;), &amp;#39;1.0.0&amp;#39;, true );
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;sneaky-hacks&quot;&gt;Sneaky &amp;#8220;Hacks&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;The first thing you&amp;#8217;ll notice is that the HTML is compressed. White space adds extra bytes of data to the page weight - so it needs to go. Next, you might have caught the &lt;em&gt;odd&lt;/em&gt; favicon meta tag:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;link rel=&quot;icon&quot; href=&quot;data:,&quot;&amp;#62;
+&lt;p&gt;In this example we have rendered the following:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;code&gt;$handle&lt;/code&gt;: bxslider&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$src&lt;/code&gt;: get_template_directory_uri() . &amp;#47;js&amp;#47;bxslider.js&amp;#8217;&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$deps&lt;/code&gt;: array(jquery&amp;#8217;)&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$ver&lt;/code&gt;: 1.0.0&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$in_footer&lt;/code&gt;: True (&lt;em&gt;places script before closing body tag&lt;/em&gt;)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;packaging-everything-together&quot;&gt;Packaging Everything Together&lt;/h2&gt;
+&lt;p&gt;Now that we have the custom stylesheet and script ready to be loaded into our custom WordPress theme, we just need to properly package them together as a function in our &lt;code&gt;functions.php&lt;/code&gt; file:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;&amp;#47; Add styles and scripts to the header&amp;#47;footer
+function custom_enqueue_scripts() {
+ wp_enqueue_style( &amp;#39;google-fonts&amp;#39;, &amp;#39;https:&amp;#47;&amp;#47;fonts.googleapis.com&amp;#47;css?family=Montserrat:200,300,300i,400,600,700,800,900&amp;#39;);
+ wp_enqueue_script( &amp;#39;bxslider&amp;#39;, get_template_directory_uri() . &amp;#39;&amp;#47;js&amp;#47;bxslider.js&amp;#39;, array(&amp;#39;jquery&amp;#39;), &amp;#39;1.0.0&amp;#39;, true );
+}
+
+add_action( &amp;#39;wp_enqueue_scripts&amp;#39;, &amp;#39;custom_enqueue_scripts&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This is required to stop the browser from making the standard favicon request (normally pulling from &lt;code&gt;favicon.ico&lt;/code&gt;). By adding this meta tag you are telling the browser to load in an empty image without running another server request. This saves about 400 bytes of bandwidth on its own!&lt;/p&gt;
-&lt;p&gt;The next two meta tags after the &lt;code&gt;icon&lt;/code&gt; are technically optional. These are the &lt;code&gt;viewport&lt;/code&gt; and &lt;code&gt;title&lt;/code&gt; tags. You could save a good amount of data by excluding them altogether, but I had my own personal reasons for keeping them:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;I wanted the web page to be responsive&lt;/li&gt;
-&lt;li&gt;I wanted the page to be &lt;a href=&quot;https://validator.w3.org/nu/?doc=https%3A%2F%2Fcv.tdarb.org%2F&quot;&gt;valid HTML&lt;/a&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;So, I kept these tags but made them as minimal as I possibly could (looking at you &lt;code&gt;title&lt;/code&gt; tag). After that, it was time to add my content!&lt;/p&gt;
-&lt;h2 id=&quot;where-were-going-we-dont-need-tags&quot;&gt;Where We&amp;#8217;re Going, We Don&amp;#8217;t Need Tags&amp;#8230;&lt;/h2&gt;
-&lt;p&gt;The beauty of using HTML5 is the ability to ditch &amp;#8220;default&amp;#8221; and closing tags on most elements. Think of all those bytes we can save!&lt;/p&gt;
-&lt;p&gt;In the HTML above you will notice:&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it! Hopefully this helps prevent WordPress newbies from statically rendering their external CSS and JS files directly in template files. Let WordPress do that for you!&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/wp-enqueue-for-beginners"/>
+ <id>https://btxx.org/posts/wp-enqueue-for-beginners</id>
+ <updated>2020-05-05T10:00:00Z</updated>
+ <published>2020-05-05T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>Bypassing the WiFi Hardware Switch on the Lenovo X201</title>
+ <content type="html">&lt;h1 id=&quot;bypassing-the-wifi-hardware-switch-on-the-lenovo-x201&quot;&gt;Bypassing the WiFi Hardware Switch on the Lenovo X201&lt;/h1&gt;
+&lt;p&gt;2023-04-02&lt;/p&gt;
+&lt;p&gt;I recently received a ThinkPad X201 to start using as my daily driver. I purchased the X201 to replace my existing X260. Although some might look at this as a &amp;#8220;downgrade&amp;#8221; in terms of specs and hardware, I would have to disagree. &lt;/p&gt;
+&lt;p&gt;The X201 is an absolute masterpiece in laptop hardware design and only faulted by some of the constraints set by the motherboard, namely the lack to support more than 8GB of RAM. Other than that, I think it&amp;#8217;s perfect. Well&amp;#8230;&lt;em&gt;almost&lt;/em&gt; perfect. There is one small annoyance:&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;The physical WiFi kill switch&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;This thing can become really flaky on these older devices and countless people on the web report connection issues across multiple operating systems. I too ran into this issue not long after getting Alpine setup nicely on my machine.&lt;/p&gt;
+&lt;p&gt;Some remedies include re-installing hardware drivers, flicking the hardware toggle off and on repeatedly, or even simply logging out of the current user session. All these options seemed like a pain in the ass.&lt;/p&gt;
+&lt;p&gt;So I listed out my possible options:&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;There is no &lt;code&gt;html&lt;/code&gt; element&lt;/li&gt;
-&lt;li&gt;There is no &lt;code&gt;head&lt;/code&gt; element&lt;/li&gt;
-&lt;li&gt;There is no &lt;code&gt;body&lt;/code&gt; element&lt;/li&gt;
-&lt;li&gt;There are no closing &lt;code&gt;p&lt;/code&gt; tags&lt;/li&gt;
+&lt;li&gt;Whitelist my BIOS WiFi settings (requires flashing BIOS) and install a newer wifi card, hoping the problem fixes itself&lt;/li&gt;
+&lt;li&gt;Purchase a replacement WiFi card (maybe mine was just buggy??)&lt;/li&gt;
+&lt;li&gt;Block PIN20 on the existing Wifi card&lt;/li&gt;
+&lt;li&gt;Somehow disconnect the hardware killswitch (requires soldering which I have ZERO experience with)&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;Even with all those &amp;#8220;missing&amp;#8221; elements, the webpage is still valid HTML5! Craziness.&lt;/p&gt;
-&lt;p&gt;The final hack that saved a &lt;em&gt;ton&lt;/em&gt; of bandwidth was implementing custom &lt;code&gt;href&lt;/code&gt; URLs. Most of the links on the page take the user to another website altogether - which is fine. The problem is including these full domains inside the &lt;code&gt;a:href&lt;/code&gt; tag. Those can start to eat up a lot of data.&lt;/p&gt;
-&lt;p&gt;Luckily, I host this mini-site through Netlify so I can take full advantage of their optional &lt;code&gt;_redirects&lt;/code&gt; file. Links are now set with a single character (ie. &amp;#8220;1&amp;#8221; for the 1MB Club link) and the &lt;code&gt;_redirects&lt;/code&gt; file simply forwards the user to the custom domain. Pretty sneaky!&lt;/p&gt;
-&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
-&lt;p&gt;This is a silly project that isn&amp;#8217;t meant to be taken so seriously. That being said, I&amp;#8217;d love to see what other pages people are able to create while being limited to just 1kB.&lt;/p&gt;</content>
- <link href="https://btxx.org/1kb"/>
- <id>https://btxx.org/1kb</id>
- <updated>2022-08-02T10:00:00Z</updated>
- <published>2022-08-02T10:00:00Z</published>
- </entry>
- <entry>
- <title>Do You Have an Extra $10?</title>
- <content type="html">&lt;h1 id=&quot;do-you-have-an-extra-10&quot;&gt;Do You Have an Extra $10?&lt;/h1&gt;
-&lt;p&gt;2022-11-23&lt;/p&gt;
-&lt;p&gt;As software designers and developers, think of all the little things that we spend $10 on. Maybe it&amp;#8217;s a couple coffees over the course of a week. Maybe it&amp;#8217;s a TV streaming subscription. Maybe it&amp;#8217;s an impulse buy while we&amp;#8217;re out shopping for groceries. Maybe it goes into a mason jar on top of the fridge, stored away for a rainy day.&lt;/p&gt;
-&lt;p&gt;$10 doesn&amp;#8217;t seem like a &lt;em&gt;ton&lt;/em&gt; of money, but a little does go a long way. What if, combined with &lt;em&gt;other people&lt;/em&gt;, that $10 could grow and support an open source project? A project that you might even use &lt;em&gt;every day&lt;/em&gt; without cost. &lt;/p&gt;
-&lt;p&gt;Plenty of people already do this - it&amp;#8217;s nothing new. If you already contribute to the open source community (whether through code or donations) then this post isn&amp;#8217;t really geared towards you. You&amp;#8217;re already helping out and are greatly appreciated. Feel free to stop reading right now and continue on with your day!&lt;/p&gt;
-&lt;p&gt;But, if you&amp;#8217;re like how I used to be, you might be one of those people who enjoys &lt;em&gt;the idea&lt;/em&gt; of donating to a FOSS project instead of actually doing so. That&amp;#8217;s fine. Zero judgement here since I was doing &lt;em&gt;exactly that&lt;/em&gt; for years. All I ask is for you to try it out for even a couple months. You&amp;#8217;ll soon realize that $10 doesn&amp;#8217;t break the bank, while at the same time, you get that &amp;#8220;warm, fuzzy feeling&amp;#8221; of supporting important projects&amp;#47;communities.&lt;/p&gt;
-&lt;p&gt;In a way, it&amp;#8217;s actually kind of selfish. You start doing it more for the &lt;em&gt;feel good&lt;/em&gt; endorphin that kicks in each time you donate. At least, that&amp;#8217;s been my experience&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;open-source-isnt-free&quot;&gt;Open Source isn&amp;#8217;t Free&lt;/h2&gt;
-&lt;p&gt;Maintaining any open source project takes years of prior design&amp;#47;development experience, along with sacrificing personal time. Contributors might enjoy working on their project. Most probably love connecting with their end-users and community - but their time is still a hard requirement.&lt;/p&gt;
-&lt;p&gt;I believe this time is worth paying for. If a project you depend on were to suddenly &amp;#8220;shut down&amp;#8221;, how much time, effort, and income do you stand to lose? Is it more than $10 a month?&lt;/p&gt;
-&lt;h2 id=&quot;donating-in-this-economy&quot;&gt;&amp;#8220;Donating? In THIS Economy?&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;Things aren&amp;#8217;t great for a lot of folks financially right now. I&amp;#8217;m not ignorant to this fact and completely understand people tightening their belts. We all have to. I&amp;#8217;m merely suggesting that if you &lt;em&gt;have the means&lt;/em&gt; to support FOSS communities with any disposable income, you should. And I&amp;#8217;m not suggesting a lot - &lt;strong&gt;just ten bucks&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;Allow me to put my money where my mouth is and showcase my own $10 donation breakdown:&lt;/p&gt;
-&lt;h2 id=&quot;my-10-breakdown&quot;&gt;My $10 Breakdown&lt;/h2&gt;
-&lt;table&gt;
-&lt;thead&gt;
-&lt;tr&gt;
-&lt;th&gt;Service&lt;/th&gt;
-&lt;th&gt;Cost&amp;#47;month&lt;/th&gt;
-&lt;/tr&gt;
-&lt;/thead&gt;
-&lt;tbody&gt;
-&lt;tr&gt;
-&lt;td&gt;&lt;a href=&quot;https://sourcehut.org&quot;&gt;sourcehut&lt;/a&gt;&lt;/td&gt;
-&lt;td&gt;$5.00&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;&lt;a href=&quot;https://fosstodon.org&quot;&gt;fosstodon&lt;/a&gt;&lt;/td&gt;
-&lt;td&gt;$3.00&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;&lt;a href=&quot;https://qutebrowser.org&quot;&gt;qutebrowser&lt;/a&gt;&lt;/td&gt;
-&lt;td&gt;$2.00&lt;/td&gt;
-&lt;/tr&gt;
-&lt;/tbody&gt;
-&lt;/table&gt;
-&lt;p&gt;&lt;em&gt;In case you are reading the post at a later point in time, the most up-to-date donation listing can always be found &lt;a href=&quot;/uses/&quot;&gt;on my official Uses page&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
-&lt;h2 id=&quot;sourcehut&quot;&gt;SourceHut&lt;/h2&gt;
-&lt;p&gt;To be fair, this is an active service which just so happens to be available for &amp;#8220;free&amp;#8221; in its current state. Drew &lt;a href=&quot;https://sourcehut.org/pricing/&quot;&gt;mentions on the main pricing page&lt;/a&gt; that payment is &lt;em&gt;currently&lt;/em&gt; optional, but will eventually require maintainers to upgrade (contributors will always have free access):&lt;/p&gt;
+&lt;p&gt;Out of pure laziness, I chose option &lt;strong&gt;three&lt;/strong&gt;. In case you were unaware, PIN20 on older PCIE WLAN cards is the &amp;#8220;wifi disable&amp;#8221; and used as an RF killswitch. By &amp;#8220;blocking&amp;#8221; this PIN, we stop the system from being able to disable the WiFi connection. Losing the ability to disable WiFi on the hardware level didn&amp;#8217;t bother me much, so I moved forward with this easier approach.&lt;/p&gt;
+&lt;h2 id=&quot;opening-up-the-x201&quot;&gt;Opening Up the X201&lt;/h2&gt;
+&lt;p&gt;To access the WiFi card, you&amp;#8217;ll need to remove the keyboard and touchpad palm rest cover. It might sound daunting for newcomers but I assure you it is very simple. These machines were built during a time when Lenovo &lt;em&gt;expected&lt;/em&gt; their users to tinker with their devices and built them with modular components in mind. Yet another reason for my decision to swap this laptop for my more &amp;#8220;locked down&amp;#8221; X260.&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;sr.ht is currently in alpha, and the quality of the service may reflect that. As such, payment is currently optional, and only encouraged for users who want to support the ongoing development of the site. &lt;/p&gt;
+&lt;p&gt;Note: I&amp;#8217;m not sure how important this is, but I made sure to set my WiFi hardware toggle switch into the &amp;#8220;ON&amp;#8221; position before doing any of the other steps.&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;p&gt;I still consider this &amp;#8220;donating&amp;#8221; since it helps keep this specific instance alive. It&amp;#8217;s also my main code forge since I&amp;#8217;ve been &lt;a href=&quot;/srht2/&quot;&gt;migrating away from GitHub&lt;/a&gt;. I want to see SourceHut succeed, so while I &lt;em&gt;could&lt;/em&gt; use the service completely free, I believe it&amp;#8217;s more than worth it to coverage my usage.&lt;/p&gt;
-&lt;h2 id=&quot;fosstodon&quot;&gt;Fosstodon&lt;/h2&gt;
-&lt;p&gt;&lt;a href=&quot;https://fosstodon.org&quot;&gt;fosstodon.org&lt;/a&gt; is my main &amp;#8220;social&amp;#8221; platform and the Mastodon instance I chose to join some time ago. The people I&amp;#8217;ve interacted with have been nothing but helpful, insightful and fun. The maintainers are also very down to earth (shoutout to &lt;a href=&quot;https://kevquirk.com/&quot;&gt;Kev&lt;/a&gt; specifically for making my initial experience great!)&lt;/p&gt;
-&lt;p&gt;Hosting a large Mastodon instance can become expensive. Not to mention the recent influx of Twitter users flocking to the platform in general. Fosstodon recently &lt;a href=&quot;https://hub.fosstodon.org/more-upgrades-twitter-storm/&quot;&gt;posted an update&lt;/a&gt; detailing how their server costs are now &amp;#62;$1800. That&amp;#8217;s insane.&lt;/p&gt;
-&lt;p&gt;The least I can do is toss a few bucks towards the service. I know it isn&amp;#8217;t much, but it certainly feels better than using such an awesome platform for absolutely nothing. Keep up the great work maintainers&amp;#47;mods!&lt;/p&gt;
-&lt;h2 id=&quot;qutebrowser&quot;&gt;qutebrowser&lt;/h2&gt;
-&lt;p&gt;&lt;strong&gt;The best browser I have ever used&lt;/strong&gt;. I refuse to go back to Firefox or even FireDragon&amp;#47;Pale Moon. I&amp;#8217;m only currently donating $2 but my goal is to increase this in the future before adding any other services &amp;#47; communities to my &amp;#8220;collection&amp;#8221;. If you haven&amp;#8217;t yet tried it, I highly recommend it.&lt;/p&gt;
-&lt;h2 id=&quot;food-for-thought&quot;&gt;Food for Thought&lt;/h2&gt;
-&lt;p&gt;That&amp;#8217;s really all there is for me to say on the matter. It essentially comes down to personal preference and the financial ability to donate. As I said before: there is no judgement here. All I&amp;#8217;m suggesting is that people do what they can to help support the FOSS projects they love.&lt;/p&gt;
-&lt;p&gt;And really, it&amp;#8217;s just $10.&lt;/p&gt;</content>
- <link href="https://btxx.org/$10"/>
- <id>https://btxx.org/$10</id>
- <updated>2022-11-23T10:00:00Z</updated>
- <published>2022-11-23T10:00:00Z</published>
- </entry>
+&lt;p&gt;You can follow the very beautiful visual instructions provided by Lenovo below. Just remember to always power off you machine and remove the battery before tinkering.&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/x201-1.png&quot; alt=&quot;Unscrew the main keyboard and touchpad screws on the back of the laptop&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/x201-2.png&quot; alt=&quot;Gently push the keyboard towards the screen to remove&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/x201-3.png&quot; alt=&quot;The keyboard cable is very fragile, remove it carefully&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/x201-4.png&quot; alt=&quot;Slide the palm rest down and away from the laptop to remove safely&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/x201-5.png&quot; alt=&quot;Remove the two screws on the WiFi card to access it&quot; /&gt;&lt;/p&gt;
+&lt;h2 id=&quot;electrical-tape-fixes-everything&quot;&gt;Electrical Tape Fixes Everything&lt;/h2&gt;
+&lt;p&gt;Now that the WiFi card has been safely removed from its port (you most likely do not need to disconnect the cables though!) it is time to block PIN20.&lt;/p&gt;
+&lt;p&gt;On the Centrino Advanced-N 6200 card PIN20 is located on the back side, since the front is designated to all odd-set pins. You&amp;#8217;ll need to cut a ridiculously thin piece of electrical tape to cover this &lt;em&gt;single&lt;/em&gt; pin. I found this part to be the most taxing of my patience during the entire process. Just keep thinking happy thoughts and you can do it!&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/x201-tape.jpg&quot; alt=&quot;My hacky electrical tape job on PIN20&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;Once it is on PIN20, place your card back into its port, rebuild you X201, pop in your battery and boot up! If things were done properly, your WiFi should now be rock solid.&lt;/p&gt;
+&lt;p&gt;Best of all, you don&amp;#8217;t have to worry about accidentally toggling your WiFi toggle switch - it does nothing! Mine is actually set in the &amp;#8220;OFF&amp;#8221; position all the time now.&lt;/p&gt;
+&lt;p&gt;Enjoy less flaky WiFi.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/x201"/>
+ <id>https://btxx.org/posts/x201</id>
+ <updated>2023-04-02T10:00:00Z</updated>
+ <published>2023-04-02T10:00:00Z</published>
+ </entry>
+ <entry>
+ <title>The X220 ThinkPad is the Best Laptop in the World</title>
+ <content type="html">&lt;h1 id=&quot;the-x220-thinkpad-is-the-best-laptop-in-the-world&quot;&gt;The X220 ThinkPad is the Best Laptop in the World&lt;/h1&gt;
+&lt;p&gt;2023-09-26&lt;/p&gt;
+&lt;p&gt;The X220 ThinkPad is the greatest laptop ever made and you&amp;#8217;re wrong if you think otherwise. No laptop hardware has since surpassed the nearly perfect build of the X220. New devices continue to get thinner and more fragile. Useful ports are constantly discarded for the sake of &amp;#8220;design&amp;#8221;. Functionality is no longer important to manufacturers. Repairability is purposefully removed to prevent users from truly &amp;#8220;owing&amp;#8221; their hardware.&lt;/p&gt;
+&lt;p&gt;It&amp;#8217;s a mess out there. But thank goodness I still have my older, second-hand X220.&lt;/p&gt;
+&lt;h2 id=&quot;specs&quot;&gt;Specs&lt;/h2&gt;
+&lt;p&gt;Before I get into the details explaining why this laptop is the very best of its kind, let&amp;#8217;s first take a look at my machine&amp;#8217;s basic specifications:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;CPU: Intel i7-2640M (4) @ 3.500GHz&lt;/li&gt;
+&lt;li&gt;GPU: Intel 2nd Generation Core Processor&lt;/li&gt;
+&lt;li&gt;Memory: 16GB DDR3&lt;/li&gt;
+&lt;li&gt;OS: Arch Linux &amp;#47; OpenBSD&lt;/li&gt;
+&lt;li&gt;Resolution: 1366x768&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;With that out of the way, I will break down my thoughts on the X220 into five major sections: Build quality, available ports, the keyboard, battery life, and repairability.&lt;/p&gt;
+&lt;h2 id=&quot;build-quality&quot;&gt;Build Quality&lt;/h2&gt;
+&lt;p&gt;The X220 (like most of Lenovo&amp;#8217;s older X&amp;#47;T models) is built like a tank. Although the inner pieces are sourced from mostly plastic, the device is still better equipped to handle drops and mishandling compared to that of more fragile devices (such as the MacBook Air or Framework). This is made further impressive since the X220 is actually composed of many smaller interconnected pieces (more on this later).&lt;/p&gt;
+&lt;p&gt;A good litmus test I perform on most laptops is the &amp;#8220;corner test&amp;#8221;. You grab the base corner of a laptop in its open state. The goal is to see if the device displays any noticeable give or flex. In the X220&amp;#8217;s case: it feels rock solid. The base remains stiff and bobbing the device causes no movement on the opened screen. I&amp;#8217;m aware that holding a laptop in this position is certainly not a normal use case, but knowing it is built well enough to do so speaks volumes of its construction.&lt;/p&gt;
+&lt;p&gt;The X220 is also &lt;em&gt;not&lt;/em&gt; a lightweight laptop. This might be viewed as a negative for most users, but I actually prefer it. I often become too cautious and end up &amp;#8220;babying&amp;#8221; thinner laptops out of fear of breakage. A minor drop from even the smallest height will severely damage these lighter devices. I have no such worries with my X220.&lt;/p&gt;
+&lt;p&gt;As for the laptop&amp;#8217;s screen and resolution: your mileage may vary. I have zero issues with the default display or the smaller aspect ratio. I wrote about how I &lt;a href=&quot;/monitor&quot;&gt;stopped using an external monitor&lt;/a&gt;, so I might be a little biased.&lt;/p&gt;
+&lt;p&gt;Overall, this laptop is a device you can snatch up off your desk, whip into your travel bag and be on your way. The rugged design and bulkier weight help put my mind at ease - which is something I can&amp;#8217;t say for newer laptop builds.&lt;/p&gt;
+&lt;h2 id=&quot;ports&quot;&gt;Ports&lt;/h2&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/ports-everywhere.jpg&quot; alt=&quot;Buzz Lightyear and Woody meme: &#39;Ports, Ports Everywhere&#39;&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;I don&amp;#8217;t think I need to explain how valuable it is to have functional ports on a laptop. Needing to carrying around a bunch of dongles for ports that should already be &lt;em&gt;on the device&lt;/em&gt; just seems silly.&lt;/p&gt;
+&lt;p&gt;The X220 comes equipped with:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;3 USB ports (one of those being USB3 on the i7 model)&lt;/li&gt;
+&lt;li&gt;DisplayPort&lt;/li&gt;
+&lt;li&gt;VGA&lt;/li&gt;
+&lt;li&gt;Ethernet&lt;/li&gt;
+&lt;li&gt;SD Card Reader&lt;/li&gt;
+&lt;li&gt;3.5mm Jack&lt;/li&gt;
+&lt;li&gt;Ultrabay (SATA)&lt;/li&gt;
+&lt;li&gt;Wi-Fi hardware kill-switch&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Incredibly versatile and ready for anything I throw at it!&lt;/p&gt;
+&lt;h2 id=&quot;keyboard&quot;&gt;Keyboard&lt;/h2&gt;
+&lt;p&gt;The classic ThinkPad keyboards are simply that: classic. I don&amp;#8217;t think anyone could argue against these keyboards being the golden standard for laptops. It&amp;#8217;s commendable how Lenovo managed to package so much functionality into such a small amount of real estate. Most modern laptops lack helpful keys such as &lt;code&gt;Print Screen&lt;/code&gt;, &lt;code&gt;Home&lt;/code&gt;, &lt;code&gt;End&lt;/code&gt;, and &lt;code&gt;Scroll Lock&lt;/code&gt;.&lt;/p&gt;
+&lt;p&gt;They&amp;#8217;re also an absolute &lt;em&gt;joy&lt;/em&gt; to type on. The fact that so many people go out of their way to mod X230 ThinkPad models with X220 keyboards should tell you something&amp;#8230; Why Lenovo moved away from these keyboards will always baffle me. (I know &lt;em&gt;why&lt;/em&gt; they did it - I just think it&amp;#8217;s stupid).&lt;/p&gt;
+&lt;p&gt;Did I mention these classic keyboards come with the extremely useful Trackpoint as well?&lt;/p&gt;
+&lt;h2 id=&quot;battery-life&quot;&gt;Battery Life&lt;/h2&gt;
+&lt;blockquote&gt;
+&lt;p&gt;&lt;strong&gt;Author&amp;#8217;s Note:&lt;/strong&gt; This section is very subjective. The age, quality, and size of the X220&amp;#8217;s battery can have a massive impact on benchmarks. I should also mention that I run very lightweight operating systems and use DWM as opposed to a heavier desktop environment. Just something to keep in mind.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;The battery life on my own X220 is fantastic. I have a brand-new 9-cell that lasts for roughly 5-6 hours of daily work. Obviously these numbers don&amp;#8217;t come close to the incredible battery life of Apple&amp;#8217;s M1&amp;#47;M2 chip devices, but it&amp;#8217;s still quite competitive against other &amp;#8220;newer&amp;#8221; laptops on the market.&lt;/p&gt;
+&lt;p&gt;Although, even if the uptime was lower than 5-6 hours, you have the ability to carry extra batteries with you. The beauty of swapping out your laptop&amp;#8217;s battery without needing to &lt;em&gt;open up&lt;/em&gt; the device itself is fantastic. Others might whine about the annoyance of carrying an extra battery in their travel bag, but doing so is completely &lt;em&gt;optional&lt;/em&gt;. A core part of what makes the X220 so wonderful is user control and choice. The X220&amp;#8217;s battery is another great example of that.&lt;/p&gt;
+&lt;h2 id=&quot;repairability&quot;&gt;Repairability&lt;/h2&gt;
+&lt;p&gt;The ability to completely disassemble and replace almost everything on the X220 has to be one of its biggest advantages over newer laptops. No glue to rip apart. No special proprietary tools required. Just some screws and plastic snaps. If someone as monkey-brained as me can completely strip down this laptop and put it back together again without issue, then the hardware designers have done something right!&lt;/p&gt;
+&lt;p&gt;Best of all, Lenovo provides a very detailed &lt;a href=&quot;https://download.lenovo.com/pccbbs/mobiles_pdf/0a60739_01.pdf&quot;&gt;hardware maintenance manual&lt;/a&gt; to help guide you through the entire process.&lt;/p&gt;
+&lt;p&gt;My disassembled X220 when I was reapplying the CPU thermal paste:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/x220-pieces.jpeg&quot; alt=&quot;My disassembled X220 laptop&quot; /&gt;&lt;/p&gt;
+&lt;h2 id=&quot;bonus-round-price&quot;&gt;Bonus Round: Price&lt;/h2&gt;
+&lt;p&gt;I didn&amp;#8217;t list this in my initial section &amp;#8220;breakdown&amp;#8221; but it&amp;#8217;s something to consider. I purchased my X220 off eBay for $175 Canadian. While this machine came with a HDD instead of an SSD and only 8GB of total memory, that was still an incredible deal. I simply swapped out the hard-drive with an SSD I had on hand, along with upgrading the DDR3 memory to its max of 16.&lt;/p&gt;
+&lt;p&gt;Even if you needed to buy those components separately you would be hard-pressed to find such a good deal for a decent machine. Not to mention you would be helping to prevent more e-waste!&lt;/p&gt;
+&lt;h2 id=&quot;what-more-can-i-say&quot;&gt;What More Can I Say?&lt;/h2&gt;
+&lt;p&gt;Obviously the title and tone of this article is all in good fun. Try not to take things so seriously! But, I still &lt;em&gt;personally&lt;/em&gt; believe the X220 is one of, if not &lt;em&gt;the&lt;/em&gt; best laptop in the world.&lt;/p&gt;</content>
+ <link href="https://btxx.org/posts/x220"/>
+ <id>https://btxx.org/posts/x220</id>
+ <updated>2023-09-26T10:00:00Z</updated>
+ <published>2023-09-26T10:00:00Z</published>
+ </entry>
</feed>
diff --git a/build/index.html b/build/index.html
index 036eab2..dce4e7e 100644
--- a/build/index.html
+++ b/build/index.html
@@ -30,180 +30,180 @@
</ul>
<h2 id="articles-tutorials">Articles &#38; Tutorials</h2>
<div>
-<span>2024-06-02 &middot; <a href="Building_rbenv_on_OpenBSD_7.5/">Building rbenv on OpenBSD 7.5</a></span><br>
-<span>2024-05-27 &middot; <a href="Installing_WordPress_on_NearlyFreeSpeech/">Installing WordPress on NearlyFreeSpeech</a></span><br>
-<span>2024-04-11 &middot; <a href="OpenBSD_is_a_Cozy_Operating_System/">OpenBSD is a Cozy Operating System</a></span><br>
-<span>2024-02-23 &middot; <a href="Please_Make_Your_Table_Headings_Sticky/">Please Make Your Table Headings Sticky</a></span><br>
-<span>2024-02-16 &middot; <a href="Website_Backups_with_Apple_iCloud/">Website Backups with Apple iCloud</a></span><br>
-<span>2024-01-29 &middot; <a href="New_Domain_and_Code_Forge/">New Domain and Code Forge</a></span><br>
-<span>2024-01-02 &middot; <a href="My_Text_Editor_Is_Not_Open_Source/">My Text Edtior is Not Open Source</a></span><br>
-<span>2023-12-17 &middot; <a href="Switching_Things_Over_to_ikiwiki/">Switching Things Over to ikiwiki</a></span><br>
-<span>2023-11-02 &middot; <a href="dwm-gnome/">Bringing dwm Shortcuts to GNOME</a></span><br>
-<span>2023-09-26 &middot; <a href="x220/">The X220 ThinkPad is the Best Laptop in the World</a></span><br>
-<span>2023-09-11 &middot; <a href="mongodb-arch/">Installing Older Versions of MongoDB on Arch Linux</a></span><br>
-<span>2023-07-21 &middot; <a href="heif/">Converting HEIF Images with macOS Automator</a></span><br>
-<span>2023-06-24 &middot; <a href="seven-years/">Blogging for 7 Years</a></span><br>
-<span>2023-06-13 &middot; <a href="battery/">Improving Laptop Battery Performance on OpenBSD</a></span><br>
-<span>2023-06-05 &middot; <a href="vscode/">Running VSCode in Chromium on OpenBSD</a></span><br>
-<span>2023-05-19 &middot; <a href="luba/">My Robotic Mower Woes</a></span><br>
-<span>2023-05-11 &middot; <a href="mail/">Working with `git` Patches in Apple Mail</a></span><br>
-<span>2023-05-05 &middot; <a href="hamburgers/">Stop Using Hamburger Menus (Sometimes)</a></span><br>
-<span>2023-05-01 &middot; <a href="slabtop/">Converting My X201 ThinkPad into a Slabtop</a></span><br>
-<span>2023-04-25 &middot; <a href="git-patches/">Applying Email-Based Git Patches in Evolution on Linux</a></span><br>
-<span>2023-04-13 &middot; <a href="sublime/">Launching Sublime Text with dmenu on Alpine Linux</a></span><br>
-<span>2023-04-11 &middot; <a href="html-dark-mode/">HTML Dark Mode</a></span><br>
-<span>2023-04-02 &middot; <a href="x201/">Bypassing the WiFi Hardware Switch on the Lenovo X201</a></span><br>
-<span>2023-03-16 &middot; <a href="rvm/">Installing Ruby with RVM on Alpine Linux</a></span><br>
-<span>2023-03-14 &middot; <a href="webfonts/">Stop Using Custom Web Fonts</a></span><br>
-<span>2023-03-09 &middot; <a href="mango/">Replacing My Eero Mesh Network with Two Mangos</a></span><br>
-<span>2023-03-03 &middot; <a href="monitor/">Why I Stopped Using an External Monitor</a></span><br>
-<span>2023-02-08 &middot; <a href="dv/">Dynamic Viewports with CSS</a></span><br>
-<span>2023-01-09 &middot; <a href="one-thing/">My Coffee Maker Just Makes Coffee</a></span><br>
-<span>2022-12-23 &middot; <a href="suckless/">I Want to Suckless and You Can Too</a></span><br>
-<span>2022-12-08 &middot; <a href="alpine/">Adventures in Creating a Minimal Alpine Linux Installer</a></span><br>
-<span>2022-12-02 &middot; <a href="openring/">Building openring with Jekyll Build</a></span><br>
-<span>2022-11-23 &middot; <a href="$10/">Do You Have an Extra $10?</a></span><br>
-<span>2022-11-22 &middot; <a href="slow/">Embracing Slow Tech</a></span><br>
-<span>2022-11-14 &middot; <a href="srht2/">Migrating from GitHub to sourcehut</a></span><br>
-<span>2022-11-07 &middot; <a href="spec/">Never Do Spec Work for Free</a></span><br>
-<span>2022-11-04 &middot; <a href="adguard/">Setting Up AdGuard Home with Eero</a></span><br>
-<span>2022-10-14 &middot; <a href="af/">Avoiding Featurism</a></span><br>
-<span>2022-10-03 &middot; <a href="gallery/">Simplifying the Craigslist Gallery</a></span><br>
-<span>2022-09-22 &middot; <a href="notice/">RE: Creating a Simple HTML/CSS Notice Box</a></span><br>
-<span>2022-09-20 &middot; <a href="lf/">Installing Custom Fonts on Linux from the Command Line</a></span><br>
-<span>2022-09-19 &middot; <a href="jekyll/">Setup Jekyll from Scratch on a New Linux System</a></span><br>
-<span>2022-09-10 &middot; <a href="dump/">Don't Make a Blog, Make a Brain Dump</a></span><br>
-<span>2022-09-08 &middot; <a href="avoid/">A Warning for New Designers: Avoid Dribbble</a></span><br>
-<span>2022-09-02 &middot; <a href="windows/">Setting Up Jekyll on Windows </a></span><br>
-<span>2022-08-12 &middot; <a href="loop/">Looping Through Jekyll Collections</a></span><br>
-<span>2022-08-02 &middot; <a href="1kb/">Making a Website Under 1kB</a></span><br>
-<span>2022-07-29 &middot; <a href="berg/">Hosting with Codeberg Pages</a></span><br>
-<span>2022-07-14 &middot; <a href="linux-love/">The Linux Desktop is Hard to Love</a></span><br>
-<span>2022-07-06 &middot; <a href="pblog/">Yet Another Static Site Generator Switch</a></span><br>
-<span>2022-06-29 &middot; <a href="paid-mac-apps/">Happily Paying For macOS Apps</a></span><br>
-<span>2022-06-20 &middot; <a href="rss-click/">Clickable Links Inside XML</a></span><br>
-<span>2022-05-30 &middot; <a href="schools/">Schools Should Be Using Open Source Software</a></span><br>
-<span>2022-05-23 &middot; <a href="rss-hacks/">RSS Hacks With XSLT</a></span><br>
-<span>2022-05-17 &middot; <a href="duckduckno/">Two Weeks with the DuckDuckGo Browser</a></span><br>
-<span>2022-05-13 &middot; <a href="shinobi-website/">This Site is Now a Shinobi Website</a></span><br>
-<span>2022-04-18 &middot; <a href="safari-default-dark-mode/">Dear Apple, Please Fix Safari's Default Dark Mode Link Color</a></span><br>
-<span>2022-03-21 &middot; <a href="my-static-blog-publishing-setup/">My Static Blog Publishing Setup and an Apology to RSS Subscribers</a></span><br>
-<span>2022-03-14 &middot; <a href="eero/">Setting Up a Pi-hole Server with Eero</a></span><br>
-<span>2022-03-12 &middot; <a href="jelly/">Transferring Media from macOS to a Jellyfin Server (Raspberry Pi 4)</a></span><br>
-<span>2022-02-23 &middot; <a href="february-updates/">February 2022 Update</a></span><br>
-<span>2022-02-03 &middot; <a href="poormans-comment-system/">My Cheapskate Commenting System</a></span><br>
-<span>2022-01-28 &middot; <a href="macos-convert-to-html/">Convert Files to HTML with macOS Automator Quick Actions</a></span><br>
-<span>2022-01-06 &middot; <a href="future-os-google/">Chrome OS Could Become the Future Leader of Computing</a></span><br>
-<span>2021-12-17 &middot; <a href="use-text-not-icons/">Icons Should be Complementary - Text is Always Better</a></span><br>
-<span>2021-12-06 &middot; <a href="jekyll-sourcehut/">Hosting a Jekyll Site on Sourcehut</a></span><br>
-<span>2021-12-03 &middot; <a href="netlify-urls/">Using Netlify for Dynamic URL Redirects</a></span><br>
-<span>2021-11-25 &middot; <a href="minor-website-changes/">Using a New Domain and Switching Static Hosts</a></span><br>
-<span>2021-11-09 &middot; <a href="default-html-style-updates/">Modern Improvements for Default Browser Styles</a></span><br>
-<span>2021-11-03 &middot; <a href="css-js-mistake/">A Reality Where CSS and JavaScript Don't Exist</a></span><br>
-<span>2021-10-28 &middot; <a href="pihole-cloudflare/">Setting Up 1.1.1.1 for Families on a Pi-Hole</a></span><br>
-<span>2021-10-15 &middot; <a href="batch-webp-conversion/">Batch Converting Images to webp with macOS Automator</a></span><br>
-<span>2021-09-23 &middot; <a href="safari-extensions-catalina-patcher/">Enabling Safari Extensions with the macOS Catalina Patcher</a></span><br>
-<span>2021-09-08 &middot; <a href="performance-focused-wordpress-theme/">Create a Performance-Focused WordPress Blog</a></span><br>
-<span>2021-08-13 &middot; <a href="pi-400-internal-ssd/">Stuffing an SSD Inside the Raspberry Pi 400</a></span><br>
-<span>2021-07-24 &middot; <a href="sharing-the-things-we-use/">Sharing The Things We Use</a></span><br>
-<span>2021-06-20 &middot; <a href="ps4-download-ui/">PS4 Download UI with Pure CSS</a></span><br>
-<span>2021-06-07 &middot; <a href="css-slope-graphs/">CSS Slope Graphs</a></span><br>
-<span>2021-05-29 &middot; <a href="soma-terminal-css/">SOMA Inspired Terminal Display with CSS</a></span><br>
-<span>2021-05-19 &middot; <a href="personal-website-opinions/">My Changing Opinion on Personal Website Design</a></span><br>
-<span>2021-04-27 &middot; <a href="shiny-css-buttons/">Shiny, Animated CSS Buttons</a></span><br>
-<span>2021-04-22 &middot; <a href="phpetite/">89 Blog Posts in a Single HTML File</a></span><br>
-<span>2021-04-13 &middot; <a href="macos-icon-css/">Create a Mac App Icon with Pure HTML and CSS</a></span><br>
-<span>2021-04-12 &middot; <a href="lazy-dev-dark-mode/">The Lazy Developer's Dark Mode</a></span><br>
-<span>2021-03-25 &middot; <a href="load-image-on-click/">Click to Load Website Images</a></span><br>
-<span>2021-03-11 &middot; <a href="introducing-pageroast/">Introducing PageRoast</a></span><br>
-<span>2021-02-25 &middot; <a href="launching-thriftyname/">ThriftyName: $5 Brand Names</a></span><br>
-<span>2021-02-02 &middot; <a href="self-hosting-fathom/">Self-Hosting Fathom Analytics with DigitalOcean</a></span><br>
-<span>2021-01-19 &middot; <a href="fathom-analytics-netlify/">Setting Up Fathom Analytics with Netlify</a></span><br>
-<span>2021-01-13 &middot; <a href="introducing-notez/">Introducing Notez</a></span><br>
-<span>2021-01-05 &middot; <a href="animated-toggle-tabs/">Animated Radio Tab Toggles</a></span><br>
-<span>2020-12-28 &middot; <a href="disabling-comments-in-wordpress/">Disabling Comments in WordPress</a></span><br>
-<span>2020-12-08 &middot; <a href="flexbox-bar-graphs/">Pure CSS Bar Graphs with Graceful Mobile Fallbacks</a></span><br>
-<span>2020-12-04 &middot; <a href="obvious-js-injection-fallback/">Obvious Javascript 'Injection' Fallback</a></span><br>
-<span>2020-11-09 &middot; <a href="bidirectional-scrolling/">Bidirectional Scrolling: Why Not Both?</a></span><br>
-<span>2020-10-19 &middot; <a href="menu-toggle-css/">Menu Toggle with Pure CSS</a></span><br>
-<span>2020-10-07 &middot; <a href="poor-mans-full-bleed/">Poor Man's CSS Full-Bleed Layout</a></span><br>
-<span>2020-09-29 &middot; <a href="simple-jekyll-navigation/">Simple Navigation Setup in Jekyll 3.9.0</a></span><br>
-<span>2020-09-16 &middot; <a href="cheap-portable-pi/">Portable Pi: Cheap Raspberry Pi Zero Hacker Terminal</a></span><br>
-<span>2020-09-09 &middot; <a href="over-engineering-an-oil-tank/">Over-Engineering an Oil Tank Gauge</a></span><br>
-<span>2020-09-02 &middot; <a href="my-pi-desktop/">My Raspberry Pi Desktop</a></span><br>
-<span>2020-08-16 &middot; <a href="linux-mint-macbook-air/">Linux Mint MacBook Air Setup</a></span><br>
-<span>2020-08-13 &middot; <a href="hello-jekyll/">Goodbye WordPress, Hello Jekyll (Again)</a></span><br>
-<span>2020-07-07 &middot; <a href="improving-githubs-new-design/">Improving Github's New Design</a></span><br>
-<span>2020-06-22 &middot; <a href="keynote-slides-css/">Keynote Slides with Pure CSS</a></span><br>
-<span>2020-06-14 &middot; <a href="audio-hotkeys-on-linux-mint/">Audio Hotkeys on Linux Mint</a></span><br>
-<span>2020-06-04 &middot; <a href="quick-dirty-theme-switcher/">Quick and Dirty Theme Switcher</a></span><br>
-<span>2020-05-13 &middot; <a href="mini-interactive-keyboard-with-pure-css/">Mini Interactive Keyboard with Pure CSS</a></span><br>
-<span>2020-05-06 &middot; <a href="localwp-fedora/">Fixing LocalWP on Fedora 32</a></span><br>
-<span>2020-05-05 &middot; <a href="wp-enqueue-for-beginners/">WP Enqueue for Beginners</a></span><br>
-<span>2020-04-29 &middot; <a href="fake-3d-elements-with-css/">Faking 3D Elements with CSS</a></span><br>
-<span>2020-03-31 &middot; <a href="stripe-menu-css/">Stripe Menu Dropdowns (CSS)</a></span><br>
-<span>2020-03-18 &middot; <a href="base64-all-the-things/">Base64 All The Things! (Sometimes)</a></span><br>
-<span>2020-02-07 &middot; <a href="learning-to-floss/">How to "FLOSS" as a Web Designer</a></span><br>
-<span>2020-01-07 &middot; <a href="chromebook-web-dev/">Web Development on a $200 Chromebook</a></span><br>
-<span>2019-11-29 &middot; <a href="one-css-property/">Billing for One CSS Change</a></span><br>
-<span>2019-11-13 &middot; <a href="default-brower-forms/">Very Basic Form Styling</a></span><br>
-<span>2019-11-01 &middot; <a href="improving-tufte-jekyll/">Improving Tufte CSS for Jekyll</a></span><br>
-<span>2019-10-06 &middot; <a href="sticky-elements/">Stop Using Sticky Navigation on Mobile</a></span><br>
-<span>2019-09-28 &middot; <a href="being-efficient/">Being More Efficient as a Designer and Developer</a></span><br>
-<span>2019-09-09 &middot; <a href="plain-text-emails/">Plain Text Emails, Please</a></span><br>
-<span>2019-07-30 &middot; <a href="dynamic-checkboxes/">Dynamic Checkboxes</a></span><br>
-<span>2019-07-17 &middot; <a href="empty-table-cells/">Styling Empty Table Cells</a></span><br>
-<span>2019-07-05 &middot; <a href="html5-validator-badge/">Using HTML Validator Badges Again</a></span><br>
-<span>2019-06-25 &middot; <a href="they-wont-wait/">They Won't Wait: A Warning for Slow Websites</a></span><br>
-<span>2019-06-20 &middot; <a href="publish-with-jekyll/">Publishing Simple Books With Jekyll</a></span><br>
-<span>2019-06-14 &middot; <a href="hamburger-menu-alternative/">Using Hamburger Menus? Try Sausage Links</a></span><br>
-<span>2019-06-11 &middot; <a href="tables/">Making Tables Responsive With Minimal CSS</a></span><br>
-<span>2019-06-06 &middot; <a href="html-like-1999/">Write HTML Like It's 1999</a></span><br>
-<span>2019-06-04 &middot; <a href="user-select/">Using User-Select</a></span><br>
-<span>2019-05-29 &middot; <a href="news-websites-are-dumpster-fires/">News Websites Are Dumpster Fires</a></span><br>
-<span>2019-05-22 &middot; <a href="text-align-justify/">Text Align: Justify</a></span><br>
-<span>2019-05-15 &middot; <a href="improving-receipt-ux/">Improving Receipt UX</a></span><br>
-<span>2019-05-09 &middot; <a href="cut-your-forms-in-half/">Cut Your Forms in Half</a></span><br>
-<span>2019-05-03 &middot; <a href="first-letter/">First Letter Pseudo Element</a></span><br>
-<span>2019-04-26 &middot; <a href="minimal-css-menu/">Minimal CSS: Dropdown Menu</a></span><br>
-<span>2019-04-23 &middot; <a href="character-unit/">CSS Character Unit</a></span><br>
-<span>2019-04-20 &middot; <a href="browser-history-sucks/">Browser History Sucks</a></span><br>
-<span>2019-04-15 &middot; <a href="still-using-jquery/">Yes, I Still Use jQuery</a></span><br>
-<span>2019-04-13 &middot; <a href="current-color/">CSS Value: `currentColor`</a></span><br>
-<span>2019-04-05 &middot; <a href="ndenting-text-with-css/">CSS: Indenting Text</a></span><br>
-<span>2019-03-26 &middot; <a href="simple-does-not-mean-ugly/">Simple Does Not Mean Ugly</a></span><br>
-<span>2019-03-25 &middot; <a href="skip-to-content/">Skip to Content Button</a></span><br>
-<span>2019-03-13 &middot; <a href="form-ui-improvements/">Prescription Form UI Improvements</a></span><br>
-<span>2019-02-27 &middot; <a href="animated-card-tiles/">Animated Card Tiles</a></span><br>
-<span>2019-02-18 &middot; <a href="easy-toggle-switches/">Easy Toggle Switches</a></span><br>
-<span>2019-02-15 &middot; <a href="super-mario-blocks-css/">Super Mario Blocks in CSS</a></span><br>
-<span>2019-02-05 &middot; <a href="proper-ui-hierarchy/">Proper UI Hierarchy</a></span><br>
-<span>2019-01-28 &middot; <a href="tabbed-content/">Tabbed Content Without JavaScript</a></span><br>
-<span>2019-01-21 &middot; <a href="easy-custom-radio-inputs/">Easy Custom Radio Inputs</a></span><br>
-<span>2019-01-15 &middot; <a href="basic-gulp-build-for-sass/">Basic Gulp Build for Sass</a></span><br>
-<span>2019-01-08 &middot; <a href="better-box-shadows/">Better Box Shadows</a></span><br>
-<span>2019-01-06 &middot; <a href="over-nesting/">Over-Nesting</a></span><br>
-<span>2018-12-19 &middot; <a href="jsincss-parent-selector/">Using Parent Selectors in CSS</a></span><br>
-<span>2018-11-28 &middot; <a href="width-vs-flex-basis/">Width or Flex-Basis?</a></span><br>
-<span>2018-11-22 &middot; <a href="flexbox-grid/">Adaptable Flexbox Grid</a></span><br>
-<span>2018-10-18 &middot; <a href="self-hosted-blogs/">What Happened to Self-Hosted Blogs?</a></span><br>
-<span>2018-09-28 &middot; <a href="multiple-css-background-images/">Using Multiple CSS Background Images</a></span><br>
-<span>2018-09-20 &middot; <a href="pure-css-simple-dropdown-plugin/">Pure CSS Simple Dropdown Plugin</a></span><br>
-<span>2018-09-07 &middot; <a href="simple-accessibility/">Simple Accessibility</a></span><br>
-<span>2018-08-07 &middot; <a href="setting-up-free-ssl/">Setting Up a Free SSL</a></span><br>
-<span>2018-04-16 &middot; <a href="css-video-backgrounds/">CSS Video Backgrounds</a></span><br>
-<span>2018-03-24 &middot; <a href="css-variables/">CSS Variables</a></span><br>
-<span>2018-02-12 &middot; <a href="stay-hungry/">Stay Hungry</a></span><br>
-<span>2018-01-25 &middot; <a href="open-source-typeface-pairings/">Open Source Typeface Pairings</a></span><br>
-<span>2018-01-14 &middot; <a href="et-jekyll-theme/">ET-Jekyll Theme</a></span><br>
-<span>2017-11-20 &middot; <a href="chasing-performance/">Chasing Performance</a></span><br>
-<span>2017-11-01 &middot; <a href="death-of-personality/">The Death of Personality</a></span><br>
-<span>2017-10-10 &middot; <a href="design-review-dropbox/">Unsolicited Design Review - Dropbox</a></span><br>
-<span>2017-09-07 &middot; <a href="goodbye-css-preprocessors/">Goodbye CSS Preprocessors</a></span><br>
-<span>2017-07-10 &middot; <a href="dts/">Designers Need Thicker Skin</a></span><br>
-<span>2016-11-15 &middot; <a href="te/">The Wonders of Text Ellipsis</a></span><br>
-<span>2016-06-28 &middot; <a href="aui/">Aqua UI CSS Buttons</a></span><br>
-<div>
+<span>2024-06-02 &middot; <a href="posts/Building_rbenv_on_OpenBSD_7.5/">Building rbenv on OpenBSD 7.5</a></span><br>
+<span>2024-05-27 &middot; <a href="posts/Installing_WordPress_on_NearlyFreeSpeech/">Installing WordPress on NearlyFreeSpeech</a></span><br>
+<span>2024-04-11 &middot; <a href="posts/OpenBSD_is_a_Cozy_Operating_System/">OpenBSD is a Cozy Operating System</a></span><br>
+<span>2024-02-23 &middot; <a href="posts/Please_Make_Your_Table_Headings_Sticky/">Please Make Your Table Headings Sticky</a></span><br>
+<span>2024-02-16 &middot; <a href="posts/Website_Backups_with_Apple_iCloud/">Website Backups with Apple iCloud</a></span><br>
+<span>2024-01-29 &middot; <a href="posts/New_Domain_and_Code_Forge/">New Domain and Code Forge</a></span><br>
+<span>2024-01-02 &middot; <a href="posts/My_Text_Editor_Is_Not_Open_Source/">My Text Edtior is Not Open Source</a></span><br>
+<span>2023-12-17 &middot; <a href="posts/Switching_Things_Over_to_ikiwiki/">Switching Things Over to ikiwiki</a></span><br>
+<span>2023-11-02 &middot; <a href="posts/dwm-gnome/">Bringing dwm Shortcuts to GNOME</a></span><br>
+<span>2023-09-26 &middot; <a href="posts/x220/">The X220 ThinkPad is the Best Laptop in the World</a></span><br>
+<span>2023-09-11 &middot; <a href="posts/mongodb-arch/">Installing Older Versions of MongoDB on Arch Linux</a></span><br>
+<span>2023-07-21 &middot; <a href="posts/heif/">Converting HEIF Images with macOS Automator</a></span><br>
+<span>2023-06-24 &middot; <a href="posts/seven-years/">Blogging for 7 Years</a></span><br>
+<span>2023-06-13 &middot; <a href="posts/battery/">Improving Laptop Battery Performance on OpenBSD</a></span><br>
+<span>2023-06-05 &middot; <a href="posts/vscode/">Running VSCode in Chromium on OpenBSD</a></span><br>
+<span>2023-05-19 &middot; <a href="posts/luba/">My Robotic Mower Woes</a></span><br>
+<span>2023-05-11 &middot; <a href="posts/mail/">Working with `git` Patches in Apple Mail</a></span><br>
+<span>2023-05-05 &middot; <a href="posts/hamburgers/">Stop Using Hamburger Menus (Sometimes)</a></span><br>
+<span>2023-05-01 &middot; <a href="posts/slabtop/">Converting My X201 ThinkPad into a Slabtop</a></span><br>
+<span>2023-04-25 &middot; <a href="posts/git-patches/">Applying Email-Based Git Patches in Evolution on Linux</a></span><br>
+<span>2023-04-13 &middot; <a href="posts/sublime/">Launching Sublime Text with dmenu on Alpine Linux</a></span><br>
+<span>2023-04-11 &middot; <a href="posts/html-dark-mode/">HTML Dark Mode</a></span><br>
+<span>2023-04-02 &middot; <a href="posts/x201/">Bypassing the WiFi Hardware Switch on the Lenovo X201</a></span><br>
+<span>2023-03-16 &middot; <a href="posts/rvm/">Installing Ruby with RVM on Alpine Linux</a></span><br>
+<span>2023-03-14 &middot; <a href="posts/webfonts/">Stop Using Custom Web Fonts</a></span><br>
+<span>2023-03-09 &middot; <a href="posts/mango/">Replacing My Eero Mesh Network with Two Mangos</a></span><br>
+<span>2023-03-03 &middot; <a href="posts/monitor/">Why I Stopped Using an External Monitor</a></span><br>
+<span>2023-02-08 &middot; <a href="posts/dv/">Dynamic Viewports with CSS</a></span><br>
+<span>2023-01-09 &middot; <a href="posts/one-thing/">My Coffee Maker Just Makes Coffee</a></span><br>
+<span>2022-12-23 &middot; <a href="posts/suckless/">I Want to Suckless and You Can Too</a></span><br>
+<span>2022-12-08 &middot; <a href="posts/alpine/">Adventures in Creating a Minimal Alpine Linux Installer</a></span><br>
+<span>2022-12-02 &middot; <a href="posts/openring/">Building openring with Jekyll Build</a></span><br>
+<span>2022-11-23 &middot; <a href="posts/$10/">Do You Have an Extra $10?</a></span><br>
+<span>2022-11-22 &middot; <a href="posts/slow/">Embracing Slow Tech</a></span><br>
+<span>2022-11-14 &middot; <a href="posts/srht2/">Migrating from GitHub to sourcehut</a></span><br>
+<span>2022-11-07 &middot; <a href="posts/spec/">Never Do Spec Work for Free</a></span><br>
+<span>2022-11-04 &middot; <a href="posts/adguard/">Setting Up AdGuard Home with Eero</a></span><br>
+<span>2022-10-14 &middot; <a href="posts/af/">Avoiding Featurism</a></span><br>
+<span>2022-10-03 &middot; <a href="posts/gallery/">Simplifying the Craigslist Gallery</a></span><br>
+<span>2022-09-22 &middot; <a href="posts/notice/">RE: Creating a Simple HTML/CSS Notice Box</a></span><br>
+<span>2022-09-20 &middot; <a href="posts/lf/">Installing Custom Fonts on Linux from the Command Line</a></span><br>
+<span>2022-09-19 &middot; <a href="posts/jekyll/">Setup Jekyll from Scratch on a New Linux System</a></span><br>
+<span>2022-09-10 &middot; <a href="posts/dump/">Don't Make a Blog, Make a Brain Dump</a></span><br>
+<span>2022-09-08 &middot; <a href="posts/avoid/">A Warning for New Designers: Avoid Dribbble</a></span><br>
+<span>2022-09-02 &middot; <a href="posts/windows/">Setting Up Jekyll on Windows </a></span><br>
+<span>2022-08-12 &middot; <a href="posts/loop/">Looping Through Jekyll Collections</a></span><br>
+<span>2022-08-02 &middot; <a href="posts/1kb/">Making a Website Under 1kB</a></span><br>
+<span>2022-07-29 &middot; <a href="posts/berg/">Hosting with Codeberg Pages</a></span><br>
+<span>2022-07-14 &middot; <a href="posts/linux-love/">The Linux Desktop is Hard to Love</a></span><br>
+<span>2022-07-06 &middot; <a href="posts/pblog/">Yet Another Static Site Generator Switch</a></span><br>
+<span>2022-06-29 &middot; <a href="posts/paid-mac-apps/">Happily Paying For macOS Apps</a></span><br>
+<span>2022-06-20 &middot; <a href="posts/rss-click/">Clickable Links Inside XML</a></span><br>
+<span>2022-05-30 &middot; <a href="posts/schools/">Schools Should Be Using Open Source Software</a></span><br>
+<span>2022-05-23 &middot; <a href="posts/rss-hacks/">RSS Hacks With XSLT</a></span><br>
+<span>2022-05-17 &middot; <a href="posts/duckduckno/">Two Weeks with the DuckDuckGo Browser</a></span><br>
+<span>2022-05-13 &middot; <a href="posts/shinobi-website/">This Site is Now a Shinobi Website</a></span><br>
+<span>2022-04-18 &middot; <a href="posts/safari-default-dark-mode/">Dear Apple, Please Fix Safari's Default Dark Mode Link Color</a></span><br>
+<span>2022-03-21 &middot; <a href="posts/my-static-blog-publishing-setup/">My Static Blog Publishing Setup and an Apology to RSS Subscribers</a></span><br>
+<span>2022-03-14 &middot; <a href="posts/eero/">Setting Up a Pi-hole Server with Eero</a></span><br>
+<span>2022-03-12 &middot; <a href="posts/jelly/">Transferring Media from macOS to a Jellyfin Server (Raspberry Pi 4)</a></span><br>
+<span>2022-02-23 &middot; <a href="posts/february-updates/">February 2022 Update</a></span><br>
+<span>2022-02-03 &middot; <a href="posts/poormans-comment-system/">My Cheapskate Commenting System</a></span><br>
+<span>2022-01-28 &middot; <a href="posts/macos-convert-to-html/">Convert Files to HTML with macOS Automator Quick Actions</a></span><br>
+<span>2022-01-06 &middot; <a href="posts/future-os-google/">Chrome OS Could Become the Future Leader of Computing</a></span><br>
+<span>2021-12-17 &middot; <a href="posts/use-text-not-icons/">Icons Should be Complementary - Text is Always Better</a></span><br>
+<span>2021-12-06 &middot; <a href="posts/jekyll-sourcehut/">Hosting a Jekyll Site on Sourcehut</a></span><br>
+<span>2021-12-03 &middot; <a href="posts/netlify-urls/">Using Netlify for Dynamic URL Redirects</a></span><br>
+<span>2021-11-25 &middot; <a href="posts/minor-website-changes/">Using a New Domain and Switching Static Hosts</a></span><br>
+<span>2021-11-09 &middot; <a href="posts/default-html-style-updates/">Modern Improvements for Default Browser Styles</a></span><br>
+<span>2021-11-03 &middot; <a href="posts/css-js-mistake/">A Reality Where CSS and JavaScript Don't Exist</a></span><br>
+<span>2021-10-28 &middot; <a href="posts/pihole-cloudflare/">Setting Up 1.1.1.1 for Families on a Pi-Hole</a></span><br>
+<span>2021-10-15 &middot; <a href="posts/batch-webp-conversion/">Batch Converting Images to webp with macOS Automator</a></span><br>
+<span>2021-09-23 &middot; <a href="posts/safari-extensions-catalina-patcher/">Enabling Safari Extensions with the macOS Catalina Patcher</a></span><br>
+<span>2021-09-08 &middot; <a href="posts/performance-focused-wordpress-theme/">Create a Performance-Focused WordPress Blog</a></span><br>
+<span>2021-08-13 &middot; <a href="posts/pi-400-internal-ssd/">Stuffing an SSD Inside the Raspberry Pi 400</a></span><br>
+<span>2021-07-24 &middot; <a href="posts/sharing-the-things-we-use/">Sharing The Things We Use</a></span><br>
+<span>2021-06-20 &middot; <a href="posts/ps4-download-ui/">PS4 Download UI with Pure CSS</a></span><br>
+<span>2021-06-07 &middot; <a href="posts/css-slope-graphs/">CSS Slope Graphs</a></span><br>
+<span>2021-05-29 &middot; <a href="posts/soma-terminal-css/">SOMA Inspired Terminal Display with CSS</a></span><br>
+<span>2021-05-19 &middot; <a href="posts/personal-website-opinions/">My Changing Opinion on Personal Website Design</a></span><br>
+<span>2021-04-27 &middot; <a href="posts/shiny-css-buttons/">Shiny, Animated CSS Buttons</a></span><br>
+<span>2021-04-22 &middot; <a href="posts/phpetite/">89 Blog Posts in a Single HTML File</a></span><br>
+<span>2021-04-13 &middot; <a href="posts/macos-icon-css/">Create a Mac App Icon with Pure HTML and CSS</a></span><br>
+<span>2021-04-12 &middot; <a href="posts/lazy-dev-dark-mode/">The Lazy Developer's Dark Mode</a></span><br>
+<span>2021-03-25 &middot; <a href="posts/load-image-on-click/">Click to Load Website Images</a></span><br>
+<span>2021-03-11 &middot; <a href="posts/introducing-pageroast/">Introducing PageRoast</a></span><br>
+<span>2021-02-25 &middot; <a href="posts/launching-thriftyname/">ThriftyName: $5 Brand Names</a></span><br>
+<span>2021-02-02 &middot; <a href="posts/self-hosting-fathom/">Self-Hosting Fathom Analytics with DigitalOcean</a></span><br>
+<span>2021-01-19 &middot; <a href="posts/fathom-analytics-netlify/">Setting Up Fathom Analytics with Netlify</a></span><br>
+<span>2021-01-13 &middot; <a href="posts/introducing-notez/">Introducing Notez</a></span><br>
+<span>2021-01-05 &middot; <a href="posts/animated-toggle-tabs/">Animated Radio Tab Toggles</a></span><br>
+<span>2020-12-28 &middot; <a href="posts/disabling-comments-in-wordpress/">Disabling Comments in WordPress</a></span><br>
+<span>2020-12-08 &middot; <a href="posts/flexbox-bar-graphs/">Pure CSS Bar Graphs with Graceful Mobile Fallbacks</a></span><br>
+<span>2020-12-04 &middot; <a href="posts/obvious-js-injection-fallback/">Obvious Javascript 'Injection' Fallback</a></span><br>
+<span>2020-11-09 &middot; <a href="posts/bidirectional-scrolling/">Bidirectional Scrolling: Why Not Both?</a></span><br>
+<span>2020-10-19 &middot; <a href="posts/menu-toggle-css/">Menu Toggle with Pure CSS</a></span><br>
+<span>2020-10-07 &middot; <a href="posts/poor-mans-full-bleed/">Poor Man's CSS Full-Bleed Layout</a></span><br>
+<span>2020-09-29 &middot; <a href="posts/simple-jekyll-navigation/">Simple Navigation Setup in Jekyll 3.9.0</a></span><br>
+<span>2020-09-16 &middot; <a href="posts/cheap-portable-pi/">Portable Pi: Cheap Raspberry Pi Zero Hacker Terminal</a></span><br>
+<span>2020-09-09 &middot; <a href="posts/over-engineering-an-oil-tank/">Over-Engineering an Oil Tank Gauge</a></span><br>
+<span>2020-09-02 &middot; <a href="posts/my-pi-desktop/">My Raspberry Pi Desktop</a></span><br>
+<span>2020-08-16 &middot; <a href="posts/linux-mint-macbook-air/">Linux Mint MacBook Air Setup</a></span><br>
+<span>2020-08-13 &middot; <a href="posts/hello-jekyll/">Goodbye WordPress, Hello Jekyll (Again)</a></span><br>
+<span>2020-07-07 &middot; <a href="posts/improving-githubs-new-design/">Improving Github's New Design</a></span><br>
+<span>2020-06-22 &middot; <a href="posts/keynote-slides-css/">Keynote Slides with Pure CSS</a></span><br>
+<span>2020-06-14 &middot; <a href="posts/audio-hotkeys-on-linux-mint/">Audio Hotkeys on Linux Mint</a></span><br>
+<span>2020-06-04 &middot; <a href="posts/quick-dirty-theme-switcher/">Quick and Dirty Theme Switcher</a></span><br>
+<span>2020-05-13 &middot; <a href="posts/mini-interactive-keyboard-with-pure-css/">Mini Interactive Keyboard with Pure CSS</a></span><br>
+<span>2020-05-06 &middot; <a href="posts/localwp-fedora/">Fixing LocalWP on Fedora 32</a></span><br>
+<span>2020-05-05 &middot; <a href="posts/wp-enqueue-for-beginners/">WP Enqueue for Beginners</a></span><br>
+<span>2020-04-29 &middot; <a href="posts/fake-3d-elements-with-css/">Faking 3D Elements with CSS</a></span><br>
+<span>2020-03-31 &middot; <a href="posts/stripe-menu-css/">Stripe Menu Dropdowns (CSS)</a></span><br>
+<span>2020-03-18 &middot; <a href="posts/base64-all-the-things/">Base64 All The Things! (Sometimes)</a></span><br>
+<span>2020-02-07 &middot; <a href="posts/learning-to-floss/">How to "FLOSS" as a Web Designer</a></span><br>
+<span>2020-01-07 &middot; <a href="posts/chromebook-web-dev/">Web Development on a $200 Chromebook</a></span><br>
+<span>2019-11-29 &middot; <a href="posts/one-css-property/">Billing for One CSS Change</a></span><br>
+<span>2019-11-13 &middot; <a href="posts/default-brower-forms/">Very Basic Form Styling</a></span><br>
+<span>2019-11-01 &middot; <a href="posts/improving-tufte-jekyll/">Improving Tufte CSS for Jekyll</a></span><br>
+<span>2019-10-06 &middot; <a href="posts/sticky-elements/">Stop Using Sticky Navigation on Mobile</a></span><br>
+<span>2019-09-28 &middot; <a href="posts/being-efficient/">Being More Efficient as a Designer and Developer</a></span><br>
+<span>2019-09-09 &middot; <a href="posts/plain-text-emails/">Plain Text Emails, Please</a></span><br>
+<span>2019-07-30 &middot; <a href="posts/dynamic-checkboxes/">Dynamic Checkboxes</a></span><br>
+<span>2019-07-17 &middot; <a href="posts/empty-table-cells/">Styling Empty Table Cells</a></span><br>
+<span>2019-07-05 &middot; <a href="posts/html5-validator-badge/">Using HTML Validator Badges Again</a></span><br>
+<span>2019-06-25 &middot; <a href="posts/they-wont-wait/">They Won't Wait: A Warning for Slow Websites</a></span><br>
+<span>2019-06-20 &middot; <a href="posts/publish-with-jekyll/">Publishing Simple Books With Jekyll</a></span><br>
+<span>2019-06-14 &middot; <a href="posts/hamburger-menu-alternative/">Using Hamburger Menus? Try Sausage Links</a></span><br>
+<span>2019-06-11 &middot; <a href="posts/tables/">Making Tables Responsive With Minimal CSS</a></span><br>
+<span>2019-06-06 &middot; <a href="posts/html-like-1999/">Write HTML Like It's 1999</a></span><br>
+<span>2019-06-04 &middot; <a href="posts/user-select/">Using User-Select</a></span><br>
+<span>2019-05-29 &middot; <a href="posts/news-websites-are-dumpster-fires/">News Websites Are Dumpster Fires</a></span><br>
+<span>2019-05-22 &middot; <a href="posts/text-align-justify/">Text Align: Justify</a></span><br>
+<span>2019-05-15 &middot; <a href="posts/improving-receipt-ux/">Improving Receipt UX</a></span><br>
+<span>2019-05-09 &middot; <a href="posts/cut-your-forms-in-half/">Cut Your Forms in Half</a></span><br>
+<span>2019-05-03 &middot; <a href="posts/first-letter/">First Letter Pseudo Element</a></span><br>
+<span>2019-04-26 &middot; <a href="posts/minimal-css-menu/">Minimal CSS: Dropdown Menu</a></span><br>
+<span>2019-04-23 &middot; <a href="posts/character-unit/">CSS Character Unit</a></span><br>
+<span>2019-04-20 &middot; <a href="posts/browser-history-sucks/">Browser History Sucks</a></span><br>
+<span>2019-04-15 &middot; <a href="posts/still-using-jquery/">Yes, I Still Use jQuery</a></span><br>
+<span>2019-04-13 &middot; <a href="posts/current-color/">CSS Value: `currentColor`</a></span><br>
+<span>2019-04-05 &middot; <a href="posts/ndenting-text-with-css/">CSS: Indenting Text</a></span><br>
+<span>2019-03-26 &middot; <a href="posts/simple-does-not-mean-ugly/">Simple Does Not Mean Ugly</a></span><br>
+<span>2019-03-25 &middot; <a href="posts/skip-to-content/">Skip to Content Button</a></span><br>
+<span>2019-03-13 &middot; <a href="posts/form-ui-improvements/">Prescription Form UI Improvements</a></span><br>
+<span>2019-02-27 &middot; <a href="posts/animated-card-tiles/">Animated Card Tiles</a></span><br>
+<span>2019-02-18 &middot; <a href="posts/easy-toggle-switches/">Easy Toggle Switches</a></span><br>
+<span>2019-02-15 &middot; <a href="posts/super-mario-blocks-css/">Super Mario Blocks in CSS</a></span><br>
+<span>2019-02-05 &middot; <a href="posts/proper-ui-hierarchy/">Proper UI Hierarchy</a></span><br>
+<span>2019-01-28 &middot; <a href="posts/tabbed-content/">Tabbed Content Without JavaScript</a></span><br>
+<span>2019-01-21 &middot; <a href="posts/easy-custom-radio-inputs/">Easy Custom Radio Inputs</a></span><br>
+<span>2019-01-15 &middot; <a href="posts/basic-gulp-build-for-sass/">Basic Gulp Build for Sass</a></span><br>
+<span>2019-01-08 &middot; <a href="posts/better-box-shadows/">Better Box Shadows</a></span><br>
+<span>2019-01-06 &middot; <a href="posts/over-nesting/">Over-Nesting</a></span><br>
+<span>2018-12-19 &middot; <a href="posts/jsincss-parent-selector/">Using Parent Selectors in CSS</a></span><br>
+<span>2018-11-28 &middot; <a href="posts/width-vs-flex-basis/">Width or Flex-Basis?</a></span><br>
+<span>2018-11-22 &middot; <a href="posts/flexbox-grid/">Adaptable Flexbox Grid</a></span><br>
+<span>2018-10-18 &middot; <a href="posts/self-hosted-blogs/">What Happened to Self-Hosted Blogs?</a></span><br>
+<span>2018-09-28 &middot; <a href="posts/multiple-css-background-images/">Using Multiple CSS Background Images</a></span><br>
+<span>2018-09-20 &middot; <a href="posts/pure-css-simple-dropdown-plugin/">Pure CSS Simple Dropdown Plugin</a></span><br>
+<span>2018-09-07 &middot; <a href="posts/simple-accessibility/">Simple Accessibility</a></span><br>
+<span>2018-08-07 &middot; <a href="posts/setting-up-free-ssl/">Setting Up a Free SSL</a></span><br>
+<span>2018-04-16 &middot; <a href="posts/css-video-backgrounds/">CSS Video Backgrounds</a></span><br>
+<span>2018-03-24 &middot; <a href="posts/css-variables/">CSS Variables</a></span><br>
+<span>2018-02-12 &middot; <a href="posts/stay-hungry/">Stay Hungry</a></span><br>
+<span>2018-01-25 &middot; <a href="posts/open-source-typeface-pairings/">Open Source Typeface Pairings</a></span><br>
+<span>2018-01-14 &middot; <a href="posts/et-jekyll-theme/">ET-Jekyll Theme</a></span><br>
+<span>2017-11-20 &middot; <a href="posts/chasing-performance/">Chasing Performance</a></span><br>
+<span>2017-11-01 &middot; <a href="posts/death-of-personality/">The Death of Personality</a></span><br>
+<span>2017-10-10 &middot; <a href="posts/design-review-dropbox/">Unsolicited Design Review - Dropbox</a></span><br>
+<span>2017-09-07 &middot; <a href="posts/goodbye-css-preprocessors/">Goodbye CSS Preprocessors</a></span><br>
+<span>2017-07-10 &middot; <a href="posts/dts/">Designers Need Thicker Skin</a></span><br>
+<span>2016-11-15 &middot; <a href="posts/te/">The Wonders of Text Ellipsis</a></span><br>
+<span>2016-06-28 &middot; <a href="posts/aui/">Aqua UI CSS Buttons</a></span><br>
+</div>
<footer role="contentinfo">
<h2>Menu Navigation</h2>
<ul id="menu">
diff --git a/build/pages.tsv b/build/pages.tsv
index 4568a4f..e5bbc89 100644
--- a/build/pages.tsv
+++ b/build/pages.tsv
@@ -1,7 +1,7 @@
-pages/colophon.md Colophon
-pages/donate.md Donate
-pages/now.md Now
-pages/projects.md Projects
-pages/resume.md Bradley Taunt
-pages/uses.md Things I Use
-pages/wiki.md Wiki
+pages/colophon.md Colophon
+pages/donate.md Donate
+pages/now.md Now
+pages/projects.md Projects
+pages/resume.md Bradley Taunt
+pages/uses.md Things I Use
+pages/wiki.md Wiki
diff --git a/build/posts.tsv b/build/posts.tsv
index d8e0f41..fdf3d9c 100644
--- a/build/posts.tsv
+++ b/build/posts.tsv
@@ -1,173 +1,173 @@
-posts/x220.md The X220 ThinkPad is the Best Laptop in the World
-posts/x201.md Bypassing the WiFi Hardware Switch on the Lenovo X201
-posts/wp-enqueue-for-beginners.md WP Enqueue for Beginners
-posts/windows.md Setting Up Jekyll on Windows
-posts/width-vs-flex-basis.md Width or Flex-Basis?
-posts/webfonts.md Stop Using Custom Web Fonts
-posts/vscode.md Running VSCode in Chromium on OpenBSD
-posts/user-select.md Using User-Select
-posts/use-text-not-icons.md Icons Should be Complementary - Text is Always Better
-posts/they-wont-wait.md They Won't Wait: A Warning for Slow Websites
-posts/text-align-justify.md Text Align: Justify
-posts/te.md The Wonders of Text Ellipsis
-posts/tables.md Making Tables Responsive With Minimal CSS
-posts/tabbed-content.md Tabbed Content Without JavaScript
-posts/super-mario-blocks-css.md Super Mario Blocks in CSS
-posts/suckless.md I Want to Suckless and You Can Too
-posts/sublime.md Launching Sublime Text with dmenu on Alpine Linux
-posts/stripe-menu-css.md Stripe Menu Dropdowns (CSS)
-posts/still-using-jquery.md Yes, I Still Use jQuery
-posts/sticky-elements.md Stop Using Sticky Navigation on Mobile
-posts/stay-hungry.md Stay Hungry
-posts/srht2.md Migrating from GitHub to sourcehut
-posts/spec.md Never Do Spec Work for Free
-posts/soma-terminal-css.md SOMA Inspired Terminal Display with CSS
-posts/slow.md Embracing Slow Tech
-posts/slabtop.md Converting My X201 ThinkPad into a Slabtop
-posts/skip-to-content.md Skip to Content Button
-posts/simple-jekyll-navigation.md Simple Navigation Setup in Jekyll 3.9.0
-posts/simple-does-not-mean-ugly.md Simple Does Not Mean Ugly
-posts/simple-accessibility.md Simple Accessibility
-posts/shiny-css-buttons.md Shiny, Animated CSS Buttons
-posts/shinobi-website.md This Site is Now a Shinobi Website
-posts/sharing-the-things-we-use.md Sharing The Things We Use
-posts/seven-years.md Blogging for 7 Years
-posts/setting-up-free-ssl.md Setting Up a Free SSL
-posts/self-hosting-fathom.md Self-Hosting Fathom Analytics with DigitalOcean
-posts/self-hosted-blogs.md What Happened to Self-Hosted Blogs?
-posts/schools.md Schools Should Be Using Open Source Software
-posts/safari-extensions-catalina-patcher.md Enabling Safari Extensions with the macOS Catalina Patcher
-posts/safari-default-dark-mode.md Dear Apple, Please Fix Safari's Default Dark Mode Link Color
-posts/rvm.md Installing Ruby with RVM on Alpine Linux
-posts/rss-hacks.md RSS Hacks With XSLT
-posts/rss-click.md Clickable Links Inside XML
-posts/quick-dirty-theme-switcher.md Quick and Dirty Theme Switcher
-posts/pure-css-simple-dropdown-plugin.md Pure CSS Simple Dropdown Plugin
-posts/publish-with-jekyll.md Publishing Simple Books With Jekyll
-posts/ps4-download-ui.md PS4 Download UI with Pure CSS
-posts/proper-ui-hierarchy.md Proper UI Hierarchy
-posts/poormans-comment-system.md My Cheapskate Commenting System
-posts/poor-mans-full-bleed.md Poor Man's CSS Full-Bleed Layout
-posts/plain-text-emails.md Plain Text Emails, Please
-posts/pihole-cloudflare.md Setting Up 1.1.1.1 for Families on a Pi-Hole
-posts/pi-400-internal-ssd.md Stuffing an SSD Inside the Raspberry Pi 400
-posts/phpetite.md 89 Blog Posts in a Single HTML File
-posts/personal-website-opinions.md My Changing Opinion on Personal Website Design
-posts/performance-focused-wordpress-theme.md Create a Performance-Focused WordPress Blog
-posts/pblog.md Yet Another Static Site Generator Switch
-posts/paid-mac-apps.md Happily Paying For macOS Apps
-posts/over-nesting.md Over-Nesting
-posts/over-engineering-an-oil-tank.md Over-Engineering an Oil Tank Gauge
-posts/openring.md Building openring with Jekyll Build
-posts/open-source-typeface-pairings.md Open Source Typeface Pairings
-posts/one-thing.md My Coffee Maker Just Makes Coffee
-posts/one-css-property.md Billing for One CSS Change
-posts/obvious-js-injection-fallback.md Obvious Javascript 'Injection' Fallback
-posts/notice.md RE: Creating a Simple HTML/CSS Notice Box
-posts/news-websites-are-dumpster-fires.md News Websites Are Dumpster Fires
-posts/netlify-urls.md Using Netlify for Dynamic URL Redirects
-posts/ndenting-text-with-css.md CSS: Indenting Text
-posts/my-static-blog-publishing-setup.md My Static Blog Publishing Setup and an Apology to RSS Subscribers
-posts/my-pi-desktop.md My Raspberry Pi Desktop
-posts/multiple-css-background-images.md Using Multiple CSS Background Images
-posts/monitor.md Why I Stopped Using an External Monitor
-posts/mongodb-arch.md Installing Older Versions of MongoDB on Arch Linux
-posts/minor-website-changes.md Using a New Domain and Switching Static Hosts
-posts/minimal-css-menu.md Minimal CSS: Dropdown Menu
-posts/mini-interactive-keyboard-with-pure-css.md Mini Interactive Keyboard with Pure CSS
-posts/menu-toggle-css.md Menu Toggle with Pure CSS
-posts/mango.md Replacing My Eero Mesh Network with Two Mangos
-posts/mail.md Working with `git` Patches in Apple Mail
-posts/macos-icon-css.md Create a Mac App Icon with Pure HTML and CSS
-posts/macos-convert-to-html.md Convert Files to HTML with macOS Automator Quick Actions
-posts/luba.md My Robotic Mower Woes
-posts/loop.md Looping Through Jekyll Collections
-posts/localwp-fedora.md Fixing LocalWP on Fedora 32
-posts/load-image-on-click.md Click to Load Website Images
-posts/linux-mint-macbook-air.md Linux Mint MacBook Air Setup
-posts/linux-love.md The Linux Desktop is Hard to Love
-posts/lf.md Installing Custom Fonts on Linux from the Command Line
-posts/learning-to-floss.md How to "FLOSS" as a Web Designer
-posts/lazy-dev-dark-mode.md The Lazy Developer's Dark Mode
-posts/launching-thriftyname.md ThriftyName: $5 Brand Names
-posts/keynote-slides-css.md Keynote Slides with Pure CSS
-posts/jsincss-parent-selector.md Using Parent Selectors in CSS
-posts/jelly.md Transferring Media from macOS to a Jellyfin Server (Raspberry Pi 4)
-posts/jekyll.md Setup Jekyll from Scratch on a New Linux System
-posts/jekyll-sourcehut.md Hosting a Jekyll Site on Sourcehut
-posts/introducing-pageroast.md Introducing PageRoast
-posts/introducing-notez.md Introducing Notez
-posts/improving-tufte-jekyll.md Improving Tufte CSS for Jekyll
-posts/improving-receipt-ux.md Improving Receipt UX
-posts/improving-githubs-new-design.md Improving Github's New Design
-posts/html5-validator-badge.md Using HTML Validator Badges Again
-posts/html-like-1999.md Write HTML Like It's 1999
-posts/html-dark-mode.md HTML Dark Mode
-posts/hello-jekyll.md Goodbye WordPress, Hello Jekyll (Again)
-posts/heif.md Converting HEIF Images with macOS Automator
-posts/hamburgers.md Stop Using Hamburger Menus (Sometimes)
-posts/hamburger-menu-alternative.md Using Hamburger Menus? Try Sausage Links
-posts/goodbye-css-preprocessors.md Goodbye CSS Preprocessors
-posts/git-patches.md Applying Email-Based Git Patches in Evolution on Linux
-posts/gallery.md Simplifying the Craigslist Gallery
-posts/future-os-google.md Chrome OS Could Become the Future Leader of Computing
-posts/form-ui-improvements.md Prescription Form UI Improvements
-posts/flexbox-grid.md Adaptable Flexbox Grid
-posts/flexbox-bar-graphs.md Pure CSS Bar Graphs with Graceful Mobile Fallbacks
-posts/first-letter.md First Letter Pseudo Element
-posts/february-updates.md February 2022 Update
-posts/fathom-analytics-netlify.md Setting Up Fathom Analytics with Netlify
-posts/fake-3d-elements-with-css.md Faking 3D Elements with CSS
-posts/et-jekyll-theme.md ET-Jekyll Theme
-posts/empty-table-cells.md Styling Empty Table Cells
-posts/eero.md Setting Up a Pi-hole Server with Eero
-posts/easy-toggle-switches.md Easy Toggle Switches
-posts/easy-custom-radio-inputs.md Easy Custom Radio Inputs
-posts/dynamic-checkboxes.md Dynamic Checkboxes
-posts/dwm-gnome.md Bringing dwm Shortcuts to GNOME
-posts/dv.md Dynamic Viewports with CSS
-posts/dump.md Don't Make a Blog, Make a Brain Dump
-posts/duckduckno.md Two Weeks with the DuckDuckGo Browser
-posts/dts.md Designers Need Thicker Skin
-posts/disabling-comments-in-wordpress.md Disabling Comments in WordPress
-posts/design-review-dropbox.md Unsolicited Design Review - Dropbox
-posts/default-html-style-updates.md Modern Improvements for Default Browser Styles
-posts/default-brower-forms.md Very Basic Form Styling
-posts/death-of-personality.md The Death of Personality
-posts/cut-your-forms-in-half.md Cut Your Forms in Half
-posts/current-color.md CSS Value: `currentColor`
-posts/css-video-backgrounds.md CSS Video Backgrounds
-posts/css-variables.md CSS Variables
-posts/css-slope-graphs.md CSS Slope Graphs
-posts/css-js-mistake.md A Reality Where CSS and JavaScript Don't Exist
-posts/chromebook-web-dev.md Web Development on a $200 Chromebook
-posts/cheap-portable-pi.md Portable Pi: Cheap Raspberry Pi Zero Hacker Terminal
-posts/chasing-performance.md Chasing Performance
-posts/character-unit.md CSS Character Unit
-posts/browser-history-sucks.md Browser History Sucks
-posts/bidirectional-scrolling.md Bidirectional Scrolling: Why Not Both?
-posts/better-box-shadows.md Better Box Shadows
-posts/berg.md Hosting with Codeberg Pages
-posts/being-efficient.md Being More Efficient as a Designer and Developer
-posts/battery.md Improving Laptop Battery Performance on OpenBSD
-posts/batch-webp-conversion.md Batch Converting Images to webp with macOS Automator
-posts/basic-gulp-build-for-sass.md Basic Gulp Build for Sass
-posts/base64-all-the-things.md Base64 All The Things! (Sometimes)
-posts/avoid.md A Warning for New Designers: Avoid Dribbble
-posts/aui.md Aqua UI CSS Buttons
-posts/audio-hotkeys-on-linux-mint.md Audio Hotkeys on Linux Mint
-posts/animated-toggle-tabs.md Animated Radio Tab Toggles
-posts/animated-card-tiles.md Animated Card Tiles
-posts/alpine.md Adventures in Creating a Minimal Alpine Linux Installer
-posts/af.md Avoiding Featurism
-posts/adguard.md Setting Up AdGuard Home with Eero
-posts/Website_Backups_with_Apple_iCloud.md Website Backups with Apple iCloud
-posts/Switching_Things_Over_to_ikiwiki.md Switching Things Over to ikiwiki
-posts/Please_Make_Your_Table_Headings_Sticky.md Please Make Your Table Headings Sticky
-posts/OpenBSD_is_a_Cozy_Operating_System.md OpenBSD is a Cozy Operating System
-posts/New_Domain_and_Code_Forge.md New Domain and Code Forge
-posts/My_Text_Editor_Is_Not_Open_Source.md My Text Edtior is Not Open Source
-posts/Installing_WordPress_on_NearlyFreeSpeech.md Installing WordPress on NearlyFreeSpeech
-posts/Building_rbenv_on_OpenBSD_7.5.md Building rbenv on OpenBSD 7.5
-posts/1kb.md Making a Website Under 1kB
-posts/$10.md Do You Have an Extra $10?
+posts/$10.md Do You Have an Extra $10?
+posts/1kb.md Making a Website Under 1kB
+posts/Building_rbenv_on_OpenBSD_7.5.md Building rbenv on OpenBSD 7.5
+posts/Installing_WordPress_on_NearlyFreeSpeech.md Installing WordPress on NearlyFreeSpeech
+posts/My_Text_Editor_Is_Not_Open_Source.md My Text Edtior is Not Open Source
+posts/New_Domain_and_Code_Forge.md New Domain and Code Forge
+posts/OpenBSD_is_a_Cozy_Operating_System.md OpenBSD is a Cozy Operating System
+posts/Please_Make_Your_Table_Headings_Sticky.md Please Make Your Table Headings Sticky
+posts/Switching_Things_Over_to_ikiwiki.md Switching Things Over to ikiwiki
+posts/Website_Backups_with_Apple_iCloud.md Website Backups with Apple iCloud
+posts/adguard.md Setting Up AdGuard Home with Eero
+posts/af.md Avoiding Featurism
+posts/alpine.md Adventures in Creating a Minimal Alpine Linux Installer
+posts/animated-card-tiles.md Animated Card Tiles
+posts/animated-toggle-tabs.md Animated Radio Tab Toggles
+posts/audio-hotkeys-on-linux-mint.md Audio Hotkeys on Linux Mint
+posts/aui.md Aqua UI CSS Buttons
+posts/avoid.md A Warning for New Designers: Avoid Dribbble
+posts/base64-all-the-things.md Base64 All The Things! (Sometimes)
+posts/basic-gulp-build-for-sass.md Basic Gulp Build for Sass
+posts/batch-webp-conversion.md Batch Converting Images to webp with macOS Automator
+posts/battery.md Improving Laptop Battery Performance on OpenBSD
+posts/being-efficient.md Being More Efficient as a Designer and Developer
+posts/berg.md Hosting with Codeberg Pages
+posts/better-box-shadows.md Better Box Shadows
+posts/bidirectional-scrolling.md Bidirectional Scrolling: Why Not Both?
+posts/browser-history-sucks.md Browser History Sucks
+posts/character-unit.md CSS Character Unit
+posts/chasing-performance.md Chasing Performance
+posts/cheap-portable-pi.md Portable Pi: Cheap Raspberry Pi Zero Hacker Terminal
+posts/chromebook-web-dev.md Web Development on a $200 Chromebook
+posts/css-js-mistake.md A Reality Where CSS and JavaScript Don't Exist
+posts/css-slope-graphs.md CSS Slope Graphs
+posts/css-variables.md CSS Variables
+posts/css-video-backgrounds.md CSS Video Backgrounds
+posts/current-color.md CSS Value: `currentColor`
+posts/cut-your-forms-in-half.md Cut Your Forms in Half
+posts/death-of-personality.md The Death of Personality
+posts/default-brower-forms.md Very Basic Form Styling
+posts/default-html-style-updates.md Modern Improvements for Default Browser Styles
+posts/design-review-dropbox.md Unsolicited Design Review - Dropbox
+posts/disabling-comments-in-wordpress.md Disabling Comments in WordPress
+posts/dts.md Designers Need Thicker Skin
+posts/duckduckno.md Two Weeks with the DuckDuckGo Browser
+posts/dump.md Don't Make a Blog, Make a Brain Dump
+posts/dv.md Dynamic Viewports with CSS
+posts/dwm-gnome.md Bringing dwm Shortcuts to GNOME
+posts/dynamic-checkboxes.md Dynamic Checkboxes
+posts/easy-custom-radio-inputs.md Easy Custom Radio Inputs
+posts/easy-toggle-switches.md Easy Toggle Switches
+posts/eero.md Setting Up a Pi-hole Server with Eero
+posts/empty-table-cells.md Styling Empty Table Cells
+posts/et-jekyll-theme.md ET-Jekyll Theme
+posts/fake-3d-elements-with-css.md Faking 3D Elements with CSS
+posts/fathom-analytics-netlify.md Setting Up Fathom Analytics with Netlify
+posts/february-updates.md February 2022 Update
+posts/first-letter.md First Letter Pseudo Element
+posts/flexbox-bar-graphs.md Pure CSS Bar Graphs with Graceful Mobile Fallbacks
+posts/flexbox-grid.md Adaptable Flexbox Grid
+posts/form-ui-improvements.md Prescription Form UI Improvements
+posts/future-os-google.md Chrome OS Could Become the Future Leader of Computing
+posts/gallery.md Simplifying the Craigslist Gallery
+posts/git-patches.md Applying Email-Based Git Patches in Evolution on Linux
+posts/goodbye-css-preprocessors.md Goodbye CSS Preprocessors
+posts/hamburger-menu-alternative.md Using Hamburger Menus? Try Sausage Links
+posts/hamburgers.md Stop Using Hamburger Menus (Sometimes)
+posts/heif.md Converting HEIF Images with macOS Automator
+posts/hello-jekyll.md Goodbye WordPress, Hello Jekyll (Again)
+posts/html-dark-mode.md HTML Dark Mode
+posts/html-like-1999.md Write HTML Like It's 1999
+posts/html5-validator-badge.md Using HTML Validator Badges Again
+posts/improving-githubs-new-design.md Improving Github's New Design
+posts/improving-receipt-ux.md Improving Receipt UX
+posts/improving-tufte-jekyll.md Improving Tufte CSS for Jekyll
+posts/introducing-notez.md Introducing Notez
+posts/introducing-pageroast.md Introducing PageRoast
+posts/jekyll-sourcehut.md Hosting a Jekyll Site on Sourcehut
+posts/jekyll.md Setup Jekyll from Scratch on a New Linux System
+posts/jelly.md Transferring Media from macOS to a Jellyfin Server (Raspberry Pi 4)
+posts/jsincss-parent-selector.md Using Parent Selectors in CSS
+posts/keynote-slides-css.md Keynote Slides with Pure CSS
+posts/launching-thriftyname.md ThriftyName: $5 Brand Names
+posts/lazy-dev-dark-mode.md The Lazy Developer's Dark Mode
+posts/learning-to-floss.md How to "FLOSS" as a Web Designer
+posts/lf.md Installing Custom Fonts on Linux from the Command Line
+posts/linux-love.md The Linux Desktop is Hard to Love
+posts/linux-mint-macbook-air.md Linux Mint MacBook Air Setup
+posts/load-image-on-click.md Click to Load Website Images
+posts/localwp-fedora.md Fixing LocalWP on Fedora 32
+posts/loop.md Looping Through Jekyll Collections
+posts/luba.md My Robotic Mower Woes
+posts/macos-convert-to-html.md Convert Files to HTML with macOS Automator Quick Actions
+posts/macos-icon-css.md Create a Mac App Icon with Pure HTML and CSS
+posts/mail.md Working with `git` Patches in Apple Mail
+posts/mango.md Replacing My Eero Mesh Network with Two Mangos
+posts/menu-toggle-css.md Menu Toggle with Pure CSS
+posts/mini-interactive-keyboard-with-pure-css.md Mini Interactive Keyboard with Pure CSS
+posts/minimal-css-menu.md Minimal CSS: Dropdown Menu
+posts/minor-website-changes.md Using a New Domain and Switching Static Hosts
+posts/mongodb-arch.md Installing Older Versions of MongoDB on Arch Linux
+posts/monitor.md Why I Stopped Using an External Monitor
+posts/multiple-css-background-images.md Using Multiple CSS Background Images
+posts/my-pi-desktop.md My Raspberry Pi Desktop
+posts/my-static-blog-publishing-setup.md My Static Blog Publishing Setup and an Apology to RSS Subscribers
+posts/ndenting-text-with-css.md CSS: Indenting Text
+posts/netlify-urls.md Using Netlify for Dynamic URL Redirects
+posts/news-websites-are-dumpster-fires.md News Websites Are Dumpster Fires
+posts/notice.md RE: Creating a Simple HTML/CSS Notice Box
+posts/obvious-js-injection-fallback.md Obvious Javascript 'Injection' Fallback
+posts/one-css-property.md Billing for One CSS Change
+posts/one-thing.md My Coffee Maker Just Makes Coffee
+posts/open-source-typeface-pairings.md Open Source Typeface Pairings
+posts/openring.md Building openring with Jekyll Build
+posts/over-engineering-an-oil-tank.md Over-Engineering an Oil Tank Gauge
+posts/over-nesting.md Over-Nesting
+posts/paid-mac-apps.md Happily Paying For macOS Apps
+posts/pblog.md Yet Another Static Site Generator Switch
+posts/performance-focused-wordpress-theme.md Create a Performance-Focused WordPress Blog
+posts/personal-website-opinions.md My Changing Opinion on Personal Website Design
+posts/phpetite.md 89 Blog Posts in a Single HTML File
+posts/pi-400-internal-ssd.md Stuffing an SSD Inside the Raspberry Pi 400
+posts/pihole-cloudflare.md Setting Up 1.1.1.1 for Families on a Pi-Hole
+posts/plain-text-emails.md Plain Text Emails, Please
+posts/poor-mans-full-bleed.md Poor Man's CSS Full-Bleed Layout
+posts/poormans-comment-system.md My Cheapskate Commenting System
+posts/proper-ui-hierarchy.md Proper UI Hierarchy
+posts/ps4-download-ui.md PS4 Download UI with Pure CSS
+posts/publish-with-jekyll.md Publishing Simple Books With Jekyll
+posts/pure-css-simple-dropdown-plugin.md Pure CSS Simple Dropdown Plugin
+posts/quick-dirty-theme-switcher.md Quick and Dirty Theme Switcher
+posts/rss-click.md Clickable Links Inside XML
+posts/rss-hacks.md RSS Hacks With XSLT
+posts/rvm.md Installing Ruby with RVM on Alpine Linux
+posts/safari-default-dark-mode.md Dear Apple, Please Fix Safari's Default Dark Mode Link Color
+posts/safari-extensions-catalina-patcher.md Enabling Safari Extensions with the macOS Catalina Patcher
+posts/schools.md Schools Should Be Using Open Source Software
+posts/self-hosted-blogs.md What Happened to Self-Hosted Blogs?
+posts/self-hosting-fathom.md Self-Hosting Fathom Analytics with DigitalOcean
+posts/setting-up-free-ssl.md Setting Up a Free SSL
+posts/seven-years.md Blogging for 7 Years
+posts/sharing-the-things-we-use.md Sharing The Things We Use
+posts/shinobi-website.md This Site is Now a Shinobi Website
+posts/shiny-css-buttons.md Shiny, Animated CSS Buttons
+posts/simple-accessibility.md Simple Accessibility
+posts/simple-does-not-mean-ugly.md Simple Does Not Mean Ugly
+posts/simple-jekyll-navigation.md Simple Navigation Setup in Jekyll 3.9.0
+posts/skip-to-content.md Skip to Content Button
+posts/slabtop.md Converting My X201 ThinkPad into a Slabtop
+posts/slow.md Embracing Slow Tech
+posts/soma-terminal-css.md SOMA Inspired Terminal Display with CSS
+posts/spec.md Never Do Spec Work for Free
+posts/srht2.md Migrating from GitHub to sourcehut
+posts/stay-hungry.md Stay Hungry
+posts/sticky-elements.md Stop Using Sticky Navigation on Mobile
+posts/still-using-jquery.md Yes, I Still Use jQuery
+posts/stripe-menu-css.md Stripe Menu Dropdowns (CSS)
+posts/sublime.md Launching Sublime Text with dmenu on Alpine Linux
+posts/suckless.md I Want to Suckless and You Can Too
+posts/super-mario-blocks-css.md Super Mario Blocks in CSS
+posts/tabbed-content.md Tabbed Content Without JavaScript
+posts/tables.md Making Tables Responsive With Minimal CSS
+posts/te.md The Wonders of Text Ellipsis
+posts/text-align-justify.md Text Align: Justify
+posts/they-wont-wait.md They Won't Wait: A Warning for Slow Websites
+posts/use-text-not-icons.md Icons Should be Complementary - Text is Always Better
+posts/user-select.md Using User-Select
+posts/vscode.md Running VSCode in Chromium on OpenBSD
+posts/webfonts.md Stop Using Custom Web Fonts
+posts/width-vs-flex-basis.md Width or Flex-Basis?
+posts/windows.md Setting Up Jekyll on Windows
+posts/wp-enqueue-for-beginners.md WP Enqueue for Beginners
+posts/x201.md Bypassing the WiFi Hardware Switch on the Lenovo X201
+posts/x220.md The X220 ThinkPad is the Best Laptop in the World
diff --git a/build/$10/index.html b/build/posts/$10/index.html
index 92ab3fa..92ab3fa 100644
--- a/build/$10/index.html
+++ b/build/posts/$10/index.html
diff --git a/build/1kb/index.html b/build/posts/1kb/index.html
index 4f3bee8..4f3bee8 100644
--- a/build/1kb/index.html
+++ b/build/posts/1kb/index.html
diff --git a/build/Building_rbenv_on_OpenBSD_7.5/index.html b/build/posts/Building_rbenv_on_OpenBSD_7.5/index.html
index 3cd3bd6..3cd3bd6 100644
--- a/build/Building_rbenv_on_OpenBSD_7.5/index.html
+++ b/build/posts/Building_rbenv_on_OpenBSD_7.5/index.html
diff --git a/build/Installing_WordPress_on_NearlyFreeSpeech/index.html b/build/posts/Installing_WordPress_on_NearlyFreeSpeech/index.html
index 9e202a4..9e202a4 100644
--- a/build/Installing_WordPress_on_NearlyFreeSpeech/index.html
+++ b/build/posts/Installing_WordPress_on_NearlyFreeSpeech/index.html
diff --git a/build/My_Text_Editor_Is_Not_Open_Source/index.html b/build/posts/My_Text_Editor_Is_Not_Open_Source/index.html
index ec5b88e..ec5b88e 100644
--- a/build/My_Text_Editor_Is_Not_Open_Source/index.html
+++ b/build/posts/My_Text_Editor_Is_Not_Open_Source/index.html
diff --git a/build/New_Domain_and_Code_Forge/index.html b/build/posts/New_Domain_and_Code_Forge/index.html
index 0f901a2..0f901a2 100644
--- a/build/New_Domain_and_Code_Forge/index.html
+++ b/build/posts/New_Domain_and_Code_Forge/index.html
diff --git a/build/OpenBSD_is_a_Cozy_Operating_System/index.html b/build/posts/OpenBSD_is_a_Cozy_Operating_System/index.html
index 8a52f75..d9633c5 100644
--- a/build/OpenBSD_is_a_Cozy_Operating_System/index.html
+++ b/build/posts/OpenBSD_is_a_Cozy_Operating_System/index.html
@@ -18,6 +18,8 @@
<main>
<h1 id="openbsd-is-a-cozy-operating-system">OpenBSD is a Cozy Operating System</h1>
<p>2024-04-11</p>
+<p><img src="/public/images/open-suck-75.png" alt="Screenshot of OpenBSD 7.5 running dwm" /></p>
+<p><em>OpenBSD 7.5 running dwm on my X220</em></p>
<p>With the recent release of OpenBSD 7.5, I decided to run through my <a href="https://git.btxx.org/open-suck/about/">personal OpenBSD &#8220;installer&#8221;</a> for laptop&#47;desktop devices. The project is built off of the <code>dwm</code> tiling window manager and only installs a few basic packages. The last time I updated it was with the release of 7.3, so it&#8217;s been due for an minor rework.</p>
<p>While making these minor changes, I remembered how incredibly easy the entire install process for OpenBSD is and how <em>cozy</em> the entire operating system feels. All the core systems just work out the box. Yes, you need to &#8220;patch&#8221; in WiFi with a firmware update, so you&#8217;ll need an Ethernet connection during the initial setup. Yes, the default desktop environment is not intuitive or ideal for newcomers.</p>
<p>But the positives heavily outweigh the negatives (in my opinion):</p>
diff --git a/build/Please_Make_Your_Table_Headings_Sticky/index.html b/build/posts/Please_Make_Your_Table_Headings_Sticky/index.html
index 254c06f..6f37f67 100644
--- a/build/Please_Make_Your_Table_Headings_Sticky/index.html
+++ b/build/posts/Please_Make_Your_Table_Headings_Sticky/index.html
@@ -19,11 +19,13 @@
<h1 id="please-make-your-table-headings-sticky">Please Make Your Table Headings Sticky</h1>
<p>2024-02-23</p>
<p>I often stumble upon large data sets or table layouts across the web. When these tables contain hundreds of rows of content, things become problematic once you start to scroll&#8230;</p>
-<p><a href="/public/videos/not-fixed-header-tables.mp4">Link to video example of standard table header</a></p>
+<p>Your browser does not support the video tag.
+</p>
<p>Look at that table header disappear! Now, if I scroll all the way down to item #300 (for example) will I remember what each column&#8217;s data is associated with? If this is my first time looking at this table - probably not. Luckily we can fix this (no pun intended!) with a tiny amount of CSS.</p>
<h2 id="sticky-header">Sticky Header</h2>
<p>Check it out:</p>
-<p><a href="/public/videos/fixed-header-tables.mp4">Link to video example of fixed table header</a></p>
+<p>Your browser does not support the video tag.
+</p>
<p>Pretty awesome, right? It might look like magic but it&#8217;s actually very easy to implement. You only need to add 2 CSS properties on your <code>thead</code>:</p>
<pre><code>position: sticky;
top: 0;
diff --git a/build/Switching_Things_Over_to_ikiwiki/index.html b/build/posts/Switching_Things_Over_to_ikiwiki/index.html
index 8ed7fdb..8ed7fdb 100644
--- a/build/Switching_Things_Over_to_ikiwiki/index.html
+++ b/build/posts/Switching_Things_Over_to_ikiwiki/index.html
diff --git a/build/Website_Backups_with_Apple_iCloud/index.html b/build/posts/Website_Backups_with_Apple_iCloud/index.html
index a0bdf65..a0bdf65 100644
--- a/build/Website_Backups_with_Apple_iCloud/index.html
+++ b/build/posts/Website_Backups_with_Apple_iCloud/index.html
diff --git a/build/adguard/index.html b/build/posts/adguard/index.html
index a12ad18..a12ad18 100644
--- a/build/adguard/index.html
+++ b/build/posts/adguard/index.html
diff --git a/build/af/index.html b/build/posts/af/index.html
index 4fcce2d..4fcce2d 100644
--- a/build/af/index.html
+++ b/build/posts/af/index.html
diff --git a/build/alpine/index.html b/build/posts/alpine/index.html
index 57ee592..57ee592 100644
--- a/build/alpine/index.html
+++ b/build/posts/alpine/index.html
diff --git a/build/animated-card-tiles/index.html b/build/posts/animated-card-tiles/index.html
index 3a60b70..3a60b70 100644
--- a/build/animated-card-tiles/index.html
+++ b/build/posts/animated-card-tiles/index.html
diff --git a/build/animated-toggle-tabs/index.html b/build/posts/animated-toggle-tabs/index.html
index 841e19e..841e19e 100644
--- a/build/animated-toggle-tabs/index.html
+++ b/build/posts/animated-toggle-tabs/index.html
diff --git a/build/audio-hotkeys-on-linux-mint/index.html b/build/posts/audio-hotkeys-on-linux-mint/index.html
index 4826cb3..4826cb3 100644
--- a/build/audio-hotkeys-on-linux-mint/index.html
+++ b/build/posts/audio-hotkeys-on-linux-mint/index.html
diff --git a/build/aui/index.html b/build/posts/aui/index.html
index c897c3c..7f30c9a 100644
--- a/build/aui/index.html
+++ b/build/posts/aui/index.html
@@ -19,6 +19,8 @@
<h1 id="aqua-ui-css-buttons">Aqua UI CSS Buttons</h1>
<p>2016-06-28</p>
<p>Though it may feel like nostalgia, the old OS design for Mac was arguably better than the current iteration (as of this writing - High Sierra). I recently designed a quick Dribbble shot showcasing how the older operating system used to have so much more character and depth.</p>
+<p><img src="/public/images/aqua-ui-css-buttons.webp" alt="Old macOS Buttons" /></p>
+<p><em>My initial Dribbble shot, which can be found <a href="https://dribbble.com/shots/4561658-Aqua-Buttons-UI">here</a></em></p>
<p>Since I&#8217;ve been wanting to dip my toes into more tutorial-based articles (maybe I&#8217;ll even do some screencasts in the future), I decided to start out simple. Let&#8217;s walk through how to implement these &#8216;aqua&#8217; UI buttons with pure CSS.</p>
<h3 id="starting-with-a-basic-foundation">Starting with a basic foundation</h3>
<p>Since this project consists of only two buttons elements, the HTML or skeleton of this project is very straightforward:</p>
diff --git a/build/avoid/index.html b/build/posts/avoid/index.html
index c858cab..c858cab 100644
--- a/build/avoid/index.html
+++ b/build/posts/avoid/index.html
diff --git a/build/base64-all-the-things/index.html b/build/posts/base64-all-the-things/index.html
index 1c03595..1c03595 100644
--- a/build/base64-all-the-things/index.html
+++ b/build/posts/base64-all-the-things/index.html
diff --git a/build/basic-gulp-build-for-sass/index.html b/build/posts/basic-gulp-build-for-sass/index.html
index 572d6a8..572d6a8 100644
--- a/build/basic-gulp-build-for-sass/index.html
+++ b/build/posts/basic-gulp-build-for-sass/index.html
diff --git a/build/batch-webp-conversion/index.html b/build/posts/batch-webp-conversion/index.html
index 5dd50b2..0577e95 100644
--- a/build/batch-webp-conversion/index.html
+++ b/build/posts/batch-webp-conversion/index.html
@@ -43,12 +43,13 @@
<li><p>From the left pane, select &#8220;Library &#62; Utilities&#8221;</p></li>
<li><p>From the presented choices in the next pane, drag and drop <code>Run Shell Script</code> into the far right pane</p></li>
<li><p>Set the area &#8220;Pass input&#8221; to <code>as arguments</code></p></li>
-<li><p>Enter the following code below as your script and type <code>⌘-S</code> to save (name it something like &#8220;Convert to webp&#8221;)</p>
-<p>for f in &#8220;$@&#8221;
-do
-&#47;usr&#47;local&#47;bin&#47;cwebp -q 85 &#8220;$f&#8221; -o &#8220;${f%.*}.webp&#8221;
-done</p></li>
+<li><p>Enter the following code below as your script and type <code>⌘-S</code> to save (name it something like &#8220;Convert to webp&#8221;)</p></li>
</ol>
+<pre><code>for f in "$@"
+do
+&#47;usr&#47;local&#47;bin&#47;cwebp -q 85 "$f" -o "${f%.*}.webp"
+done
+</code></pre>
<p>For visual reference, it should look something like this:</p>
<p>And when right-clicking an image file in the Finder window, it should now give you the option to convert:</p>
<h2 id="making-edits-to-your-script">Making edits to your script</h2>
diff --git a/build/battery/index.html b/build/posts/battery/index.html
index d855674..d855674 100644
--- a/build/battery/index.html
+++ b/build/posts/battery/index.html
diff --git a/build/being-efficient/index.html b/build/posts/being-efficient/index.html
index 2ce66ec..2ce66ec 100644
--- a/build/being-efficient/index.html
+++ b/build/posts/being-efficient/index.html
diff --git a/build/berg/index.html b/build/posts/berg/index.html
index f60b2cb..f60b2cb 100644
--- a/build/berg/index.html
+++ b/build/posts/berg/index.html
diff --git a/build/better-box-shadows/index.html b/build/posts/better-box-shadows/index.html
index e98f56c..e98f56c 100644
--- a/build/better-box-shadows/index.html
+++ b/build/posts/better-box-shadows/index.html
diff --git a/build/bidirectional-scrolling/index.html b/build/posts/bidirectional-scrolling/index.html
index d28899f..d28899f 100644
--- a/build/bidirectional-scrolling/index.html
+++ b/build/posts/bidirectional-scrolling/index.html
diff --git a/build/browser-history-sucks/index.html b/build/posts/browser-history-sucks/index.html
index 93abd0b..93abd0b 100644
--- a/build/browser-history-sucks/index.html
+++ b/build/posts/browser-history-sucks/index.html
diff --git a/build/character-unit/index.html b/build/posts/character-unit/index.html
index 4ecb6bd..4ecb6bd 100644
--- a/build/character-unit/index.html
+++ b/build/posts/character-unit/index.html
diff --git a/build/chasing-performance/index.html b/build/posts/chasing-performance/index.html
index fa4a914..fa4a914 100644
--- a/build/chasing-performance/index.html
+++ b/build/posts/chasing-performance/index.html
diff --git a/build/cheap-portable-pi/index.html b/build/posts/cheap-portable-pi/index.html
index 7a08484..7a08484 100644
--- a/build/cheap-portable-pi/index.html
+++ b/build/posts/cheap-portable-pi/index.html
diff --git a/build/chromebook-web-dev/index.html b/build/posts/chromebook-web-dev/index.html
index 0d67ba1..0d67ba1 100644
--- a/build/chromebook-web-dev/index.html
+++ b/build/posts/chromebook-web-dev/index.html
diff --git a/build/css-js-mistake/index.html b/build/posts/css-js-mistake/index.html
index 7b0e643..7b0e643 100644
--- a/build/css-js-mistake/index.html
+++ b/build/posts/css-js-mistake/index.html
diff --git a/build/css-slope-graphs/index.html b/build/posts/css-slope-graphs/index.html
index 6fbfd97..6fbfd97 100644
--- a/build/css-slope-graphs/index.html
+++ b/build/posts/css-slope-graphs/index.html
diff --git a/build/css-variables/index.html b/build/posts/css-variables/index.html
index 2e33d1d..2e33d1d 100644
--- a/build/css-variables/index.html
+++ b/build/posts/css-variables/index.html
diff --git a/build/css-video-backgrounds/index.html b/build/posts/css-video-backgrounds/index.html
index 50bcbd0..50bcbd0 100644
--- a/build/css-video-backgrounds/index.html
+++ b/build/posts/css-video-backgrounds/index.html
diff --git a/build/current-color/index.html b/build/posts/current-color/index.html
index 6a8239a..6a8239a 100644
--- a/build/current-color/index.html
+++ b/build/posts/current-color/index.html
diff --git a/build/cut-your-forms-in-half/index.html b/build/posts/cut-your-forms-in-half/index.html
index ad04d94..ad04d94 100644
--- a/build/cut-your-forms-in-half/index.html
+++ b/build/posts/cut-your-forms-in-half/index.html
diff --git a/build/death-of-personality/index.html b/build/posts/death-of-personality/index.html
index 6c9788e..6c9788e 100644
--- a/build/death-of-personality/index.html
+++ b/build/posts/death-of-personality/index.html
diff --git a/build/default-brower-forms/index.html b/build/posts/default-brower-forms/index.html
index 313de75..313de75 100644
--- a/build/default-brower-forms/index.html
+++ b/build/posts/default-brower-forms/index.html
diff --git a/build/default-html-style-updates/index.html b/build/posts/default-html-style-updates/index.html
index 389b78b..389b78b 100644
--- a/build/default-html-style-updates/index.html
+++ b/build/posts/default-html-style-updates/index.html
diff --git a/build/design-review-dropbox/index.html b/build/posts/design-review-dropbox/index.html
index b3399e4..b3399e4 100644
--- a/build/design-review-dropbox/index.html
+++ b/build/posts/design-review-dropbox/index.html
diff --git a/build/disabling-comments-in-wordpress/index.html b/build/posts/disabling-comments-in-wordpress/index.html
index e722ec4..e722ec4 100644
--- a/build/disabling-comments-in-wordpress/index.html
+++ b/build/posts/disabling-comments-in-wordpress/index.html
diff --git a/build/dts/index.html b/build/posts/dts/index.html
index 37b1d58..37b1d58 100644
--- a/build/dts/index.html
+++ b/build/posts/dts/index.html
diff --git a/build/duckduckno/index.html b/build/posts/duckduckno/index.html
index 7ae6eb0..7ae6eb0 100644
--- a/build/duckduckno/index.html
+++ b/build/posts/duckduckno/index.html
diff --git a/build/dump/index.html b/build/posts/dump/index.html
index 666d5d7..666d5d7 100644
--- a/build/dump/index.html
+++ b/build/posts/dump/index.html
diff --git a/build/dv/index.html b/build/posts/dv/index.html
index 43d3cc9..43d3cc9 100644
--- a/build/dv/index.html
+++ b/build/posts/dv/index.html
diff --git a/build/dwm-gnome/index.html b/build/posts/dwm-gnome/index.html
index 7dfb571..7dfb571 100644
--- a/build/dwm-gnome/index.html
+++ b/build/posts/dwm-gnome/index.html
diff --git a/build/dynamic-checkboxes/index.html b/build/posts/dynamic-checkboxes/index.html
index 218d783..218d783 100644
--- a/build/dynamic-checkboxes/index.html
+++ b/build/posts/dynamic-checkboxes/index.html
diff --git a/build/easy-custom-radio-inputs/index.html b/build/posts/easy-custom-radio-inputs/index.html
index fcf9196..fcf9196 100644
--- a/build/easy-custom-radio-inputs/index.html
+++ b/build/posts/easy-custom-radio-inputs/index.html
diff --git a/build/easy-toggle-switches/index.html b/build/posts/easy-toggle-switches/index.html
index fde6227..fde6227 100644
--- a/build/easy-toggle-switches/index.html
+++ b/build/posts/easy-toggle-switches/index.html
diff --git a/build/eero/index.html b/build/posts/eero/index.html
index 4724a73..4724a73 100644
--- a/build/eero/index.html
+++ b/build/posts/eero/index.html
diff --git a/build/empty-table-cells/index.html b/build/posts/empty-table-cells/index.html
index 60e8a2e..60e8a2e 100644
--- a/build/empty-table-cells/index.html
+++ b/build/posts/empty-table-cells/index.html
diff --git a/build/et-jekyll-theme/index.html b/build/posts/et-jekyll-theme/index.html
index 4b760d7..4b760d7 100644
--- a/build/et-jekyll-theme/index.html
+++ b/build/posts/et-jekyll-theme/index.html
diff --git a/build/fake-3d-elements-with-css/index.html b/build/posts/fake-3d-elements-with-css/index.html
index a3e8319..a3e8319 100644
--- a/build/fake-3d-elements-with-css/index.html
+++ b/build/posts/fake-3d-elements-with-css/index.html
diff --git a/build/fathom-analytics-netlify/index.html b/build/posts/fathom-analytics-netlify/index.html
index e74d457..e74d457 100644
--- a/build/fathom-analytics-netlify/index.html
+++ b/build/posts/fathom-analytics-netlify/index.html
diff --git a/build/february-updates/index.html b/build/posts/february-updates/index.html
index 6f9ddca..6f9ddca 100644
--- a/build/february-updates/index.html
+++ b/build/posts/february-updates/index.html
diff --git a/build/first-letter/index.html b/build/posts/first-letter/index.html
index 7ea5290..7ea5290 100644
--- a/build/first-letter/index.html
+++ b/build/posts/first-letter/index.html
diff --git a/build/flexbox-bar-graphs/index.html b/build/posts/flexbox-bar-graphs/index.html
index d458bff..d458bff 100644
--- a/build/flexbox-bar-graphs/index.html
+++ b/build/posts/flexbox-bar-graphs/index.html
diff --git a/build/flexbox-grid/index.html b/build/posts/flexbox-grid/index.html
index 3e34dd5..3e34dd5 100644
--- a/build/flexbox-grid/index.html
+++ b/build/posts/flexbox-grid/index.html
diff --git a/build/form-ui-improvements/index.html b/build/posts/form-ui-improvements/index.html
index beb1815..beb1815 100644
--- a/build/form-ui-improvements/index.html
+++ b/build/posts/form-ui-improvements/index.html
diff --git a/build/future-os-google/index.html b/build/posts/future-os-google/index.html
index 1a6d71d..1a6d71d 100644
--- a/build/future-os-google/index.html
+++ b/build/posts/future-os-google/index.html
diff --git a/build/gallery/index.html b/build/posts/gallery/index.html
index 796b249..796b249 100644
--- a/build/gallery/index.html
+++ b/build/posts/gallery/index.html
diff --git a/build/git-patches/index.html b/build/posts/git-patches/index.html
index bb44df7..bb44df7 100644
--- a/build/git-patches/index.html
+++ b/build/posts/git-patches/index.html
diff --git a/build/goodbye-css-preprocessors/index.html b/build/posts/goodbye-css-preprocessors/index.html
index 4a8ef6d..4a8ef6d 100644
--- a/build/goodbye-css-preprocessors/index.html
+++ b/build/posts/goodbye-css-preprocessors/index.html
diff --git a/build/hamburger-menu-alternative/index.html b/build/posts/hamburger-menu-alternative/index.html
index a29b53d..a29b53d 100644
--- a/build/hamburger-menu-alternative/index.html
+++ b/build/posts/hamburger-menu-alternative/index.html
diff --git a/build/hamburgers/index.html b/build/posts/hamburgers/index.html
index b042a5a..b042a5a 100644
--- a/build/hamburgers/index.html
+++ b/build/posts/hamburgers/index.html
diff --git a/build/heif/index.html b/build/posts/heif/index.html
index e8c89c3..49d63e9 100644
--- a/build/heif/index.html
+++ b/build/posts/heif/index.html
@@ -28,19 +28,20 @@
<h2 id="creating-our-custom-automator-script">Creating our custom Automator script</h2>
<p>For this example script we are going to convert the image to JPG format. You can freely change this to whatever format you wish (PNG, TIFF, etc.). We&#8217;re just keeping things basic for this tutorial. Don&#8217;t worry if you&#8217;ve never worked with Automator before because setting things up is incredibly simple.</p>
<ol>
-<li><p>Open the macOS Automator from the Applications folder</p></li>
-<li><p>Select <code>Quick Option</code> from the first prompt</p></li>
-<li><p>Set &#8220;Workflow receives current&#8221; to <code>image files</code></p></li>
-<li><p>Set the label &#8220;in&#8221; to <code>Finder</code></p></li>
-<li><p>From the left pane, select &#8220;Library &#62; Utilities&#8221;</p></li>
-<li><p>From the presented choices in the next pane, drag and drop <code>Run Shell Script</code> into the far right pane</p></li>
-<li><p>Set the area &#8220;Pass input&#8221; to <code>as arguments</code></p></li>
-<li><p>Enter the following code below as your script and type <code>⌘-S</code> to save (name it something like &#8220;Convert HEIC&#47;HEIF to JPG&#8221;)</p>
-<p>for f in &#8220;$@&#8221;
-do
-&#47;opt&#47;homebrew&#47;bin&#47;heif-convert &#8220;$f&#8221; &#8220;${f%.*}.jpg&#8221;
-done</p></li>
+<li>Open the macOS Automator from the Applications folder</li>
+<li>Select <code>Quick Option</code> from the first prompt</li>
+<li>Set &#8220;Workflow receives current&#8221; to <code>image files</code></li>
+<li>Set the label &#8220;in&#8221; to <code>Finder</code></li>
+<li>From the left pane, select &#8220;Library &#62; Utilities&#8221;</li>
+<li>From the presented choices in the next pane, drag and drop <code>Run Shell Script</code> into the far right pane</li>
+<li>Set the area &#8220;Pass input&#8221; to <code>as arguments</code></li>
+<li>Enter the following code below as your script and type <code>⌘-S</code> to save (name it something like &#8220;Convert HEIC&#47;HEIF to JPG&#8221;)</li>
</ol>
+<pre><code>for f in "$@"
+do
+&#47;opt&#47;homebrew&#47;bin&#47;heif-convert "$f" "${f%.*}.jpg"
+done
+</code></pre>
<h2 id="making-edits">Making Edits</h2>
<p>If you ever have the need to edit this script (for example, changing the default format to <code>png</code>), you will need to navigate to your <code>~&#47;Library&#47;Services</code> folder and open your custom heif Quick Action in the Automator application. </p>
<p>Simple as that. Happy converting!</p>
diff --git a/build/hello-jekyll/index.html b/build/posts/hello-jekyll/index.html
index 15ecda0..15ecda0 100644
--- a/build/hello-jekyll/index.html
+++ b/build/posts/hello-jekyll/index.html
diff --git a/build/html-dark-mode/index.html b/build/posts/html-dark-mode/index.html
index 2a0bbae..2a0bbae 100644
--- a/build/html-dark-mode/index.html
+++ b/build/posts/html-dark-mode/index.html
diff --git a/build/html-like-1999/index.html b/build/posts/html-like-1999/index.html
index c853138..c853138 100644
--- a/build/html-like-1999/index.html
+++ b/build/posts/html-like-1999/index.html
diff --git a/build/html5-validator-badge/index.html b/build/posts/html5-validator-badge/index.html
index 79ab53a..79ab53a 100644
--- a/build/html5-validator-badge/index.html
+++ b/build/posts/html5-validator-badge/index.html
diff --git a/build/improving-githubs-new-design/index.html b/build/posts/improving-githubs-new-design/index.html
index 2782715..2782715 100644
--- a/build/improving-githubs-new-design/index.html
+++ b/build/posts/improving-githubs-new-design/index.html
diff --git a/build/improving-receipt-ux/index.html b/build/posts/improving-receipt-ux/index.html
index 30f4fb9..30f4fb9 100644
--- a/build/improving-receipt-ux/index.html
+++ b/build/posts/improving-receipt-ux/index.html
diff --git a/build/improving-tufte-jekyll/index.html b/build/posts/improving-tufte-jekyll/index.html
index 036de82..036de82 100644
--- a/build/improving-tufte-jekyll/index.html
+++ b/build/posts/improving-tufte-jekyll/index.html
diff --git a/build/introducing-notez/index.html b/build/posts/introducing-notez/index.html
index e2fdf43..e2fdf43 100644
--- a/build/introducing-notez/index.html
+++ b/build/posts/introducing-notez/index.html
diff --git a/build/introducing-pageroast/index.html b/build/posts/introducing-pageroast/index.html
index 1dfed3a..1dfed3a 100644
--- a/build/introducing-pageroast/index.html
+++ b/build/posts/introducing-pageroast/index.html
diff --git a/build/jekyll-sourcehut/index.html b/build/posts/jekyll-sourcehut/index.html
index 2b41a53..2b41a53 100644
--- a/build/jekyll-sourcehut/index.html
+++ b/build/posts/jekyll-sourcehut/index.html
diff --git a/build/jekyll/index.html b/build/posts/jekyll/index.html
index 0535bf2..0535bf2 100644
--- a/build/jekyll/index.html
+++ b/build/posts/jekyll/index.html
diff --git a/build/jelly/index.html b/build/posts/jelly/index.html
index c76e9ed..c76e9ed 100644
--- a/build/jelly/index.html
+++ b/build/posts/jelly/index.html
diff --git a/build/jsincss-parent-selector/index.html b/build/posts/jsincss-parent-selector/index.html
index a4ad5cc..a4ad5cc 100644
--- a/build/jsincss-parent-selector/index.html
+++ b/build/posts/jsincss-parent-selector/index.html
diff --git a/build/keynote-slides-css/index.html b/build/posts/keynote-slides-css/index.html
index 1c009fa..1c009fa 100644
--- a/build/keynote-slides-css/index.html
+++ b/build/posts/keynote-slides-css/index.html
diff --git a/build/launching-thriftyname/index.html b/build/posts/launching-thriftyname/index.html
index ef79148..ef79148 100644
--- a/build/launching-thriftyname/index.html
+++ b/build/posts/launching-thriftyname/index.html
diff --git a/build/lazy-dev-dark-mode/index.html b/build/posts/lazy-dev-dark-mode/index.html
index d24922d..d24922d 100644
--- a/build/lazy-dev-dark-mode/index.html
+++ b/build/posts/lazy-dev-dark-mode/index.html
diff --git a/build/learning-to-floss/index.html b/build/posts/learning-to-floss/index.html
index c33fc66..c33fc66 100644
--- a/build/learning-to-floss/index.html
+++ b/build/posts/learning-to-floss/index.html
diff --git a/build/lf/index.html b/build/posts/lf/index.html
index 013b8f5..013b8f5 100644
--- a/build/lf/index.html
+++ b/build/posts/lf/index.html
diff --git a/build/linux-love/index.html b/build/posts/linux-love/index.html
index 38e64de..38e64de 100644
--- a/build/linux-love/index.html
+++ b/build/posts/linux-love/index.html
diff --git a/build/linux-mint-macbook-air/index.html b/build/posts/linux-mint-macbook-air/index.html
index 8415c69..8415c69 100644
--- a/build/linux-mint-macbook-air/index.html
+++ b/build/posts/linux-mint-macbook-air/index.html
diff --git a/build/load-image-on-click/index.html b/build/posts/load-image-on-click/index.html
index 95211bc..95211bc 100644
--- a/build/load-image-on-click/index.html
+++ b/build/posts/load-image-on-click/index.html
diff --git a/build/localwp-fedora/index.html b/build/posts/localwp-fedora/index.html
index ceb259d..ceb259d 100644
--- a/build/localwp-fedora/index.html
+++ b/build/posts/localwp-fedora/index.html
diff --git a/build/loop/index.html b/build/posts/loop/index.html
index d857c62..d857c62 100644
--- a/build/loop/index.html
+++ b/build/posts/loop/index.html
diff --git a/build/luba/index.html b/build/posts/luba/index.html
index fce3f37..fce3f37 100644
--- a/build/luba/index.html
+++ b/build/posts/luba/index.html
diff --git a/build/macos-convert-to-html/index.html b/build/posts/macos-convert-to-html/index.html
index b45f0a2..b45f0a2 100644
--- a/build/macos-convert-to-html/index.html
+++ b/build/posts/macos-convert-to-html/index.html
diff --git a/build/macos-icon-css/index.html b/build/posts/macos-icon-css/index.html
index 3f2a41d..3f2a41d 100644
--- a/build/macos-icon-css/index.html
+++ b/build/posts/macos-icon-css/index.html
diff --git a/build/mail/index.html b/build/posts/mail/index.html
index a98acc5..a98acc5 100644
--- a/build/mail/index.html
+++ b/build/posts/mail/index.html
diff --git a/build/mango/index.html b/build/posts/mango/index.html
index 0bc8bb0..0bc8bb0 100644
--- a/build/mango/index.html
+++ b/build/posts/mango/index.html
diff --git a/build/menu-toggle-css/index.html b/build/posts/menu-toggle-css/index.html
index b5b67dc..b5b67dc 100644
--- a/build/menu-toggle-css/index.html
+++ b/build/posts/menu-toggle-css/index.html
diff --git a/build/mini-interactive-keyboard-with-pure-css/index.html b/build/posts/mini-interactive-keyboard-with-pure-css/index.html
index 28c19c2..28c19c2 100644
--- a/build/mini-interactive-keyboard-with-pure-css/index.html
+++ b/build/posts/mini-interactive-keyboard-with-pure-css/index.html
diff --git a/build/minimal-css-menu/index.html b/build/posts/minimal-css-menu/index.html
index 25b372a..25b372a 100644
--- a/build/minimal-css-menu/index.html
+++ b/build/posts/minimal-css-menu/index.html
diff --git a/build/minor-website-changes/index.html b/build/posts/minor-website-changes/index.html
index 9c979c0..9c979c0 100644
--- a/build/minor-website-changes/index.html
+++ b/build/posts/minor-website-changes/index.html
diff --git a/build/mongodb-arch/index.html b/build/posts/mongodb-arch/index.html
index b8842c3..b8842c3 100644
--- a/build/mongodb-arch/index.html
+++ b/build/posts/mongodb-arch/index.html
diff --git a/build/monitor/index.html b/build/posts/monitor/index.html
index a21a42b..a21a42b 100644
--- a/build/monitor/index.html
+++ b/build/posts/monitor/index.html
diff --git a/build/multiple-css-background-images/index.html b/build/posts/multiple-css-background-images/index.html
index c41773d..c41773d 100644
--- a/build/multiple-css-background-images/index.html
+++ b/build/posts/multiple-css-background-images/index.html
diff --git a/build/my-pi-desktop/index.html b/build/posts/my-pi-desktop/index.html
index a9068a5..a9068a5 100644
--- a/build/my-pi-desktop/index.html
+++ b/build/posts/my-pi-desktop/index.html
diff --git a/build/my-static-blog-publishing-setup/index.html b/build/posts/my-static-blog-publishing-setup/index.html
index 5e2735b..5e2735b 100644
--- a/build/my-static-blog-publishing-setup/index.html
+++ b/build/posts/my-static-blog-publishing-setup/index.html
diff --git a/build/ndenting-text-with-css/index.html b/build/posts/ndenting-text-with-css/index.html
index 4be11ec..4be11ec 100644
--- a/build/ndenting-text-with-css/index.html
+++ b/build/posts/ndenting-text-with-css/index.html
diff --git a/build/netlify-urls/index.html b/build/posts/netlify-urls/index.html
index 9c845d1..9c845d1 100644
--- a/build/netlify-urls/index.html
+++ b/build/posts/netlify-urls/index.html
diff --git a/build/news-websites-are-dumpster-fires/index.html b/build/posts/news-websites-are-dumpster-fires/index.html
index 9742aab..9742aab 100644
--- a/build/news-websites-are-dumpster-fires/index.html
+++ b/build/posts/news-websites-are-dumpster-fires/index.html
diff --git a/build/notice/index.html b/build/posts/notice/index.html
index 609920f..609920f 100644
--- a/build/notice/index.html
+++ b/build/posts/notice/index.html
diff --git a/build/obvious-js-injection-fallback/index.html b/build/posts/obvious-js-injection-fallback/index.html
index 813f76a..813f76a 100644
--- a/build/obvious-js-injection-fallback/index.html
+++ b/build/posts/obvious-js-injection-fallback/index.html
diff --git a/build/one-css-property/index.html b/build/posts/one-css-property/index.html
index 203cb63..203cb63 100644
--- a/build/one-css-property/index.html
+++ b/build/posts/one-css-property/index.html
diff --git a/build/one-thing/index.html b/build/posts/one-thing/index.html
index de0920a..de0920a 100644
--- a/build/one-thing/index.html
+++ b/build/posts/one-thing/index.html
diff --git a/build/open-source-typeface-pairings/index.html b/build/posts/open-source-typeface-pairings/index.html
index d11abe3..d11abe3 100644
--- a/build/open-source-typeface-pairings/index.html
+++ b/build/posts/open-source-typeface-pairings/index.html
diff --git a/build/openring/index.html b/build/posts/openring/index.html
index b4e799a..b4e799a 100644
--- a/build/openring/index.html
+++ b/build/posts/openring/index.html
diff --git a/build/over-engineering-an-oil-tank/index.html b/build/posts/over-engineering-an-oil-tank/index.html
index 6dab39b..6dab39b 100644
--- a/build/over-engineering-an-oil-tank/index.html
+++ b/build/posts/over-engineering-an-oil-tank/index.html
diff --git a/build/over-nesting/index.html b/build/posts/over-nesting/index.html
index f5dc54d..f5dc54d 100644
--- a/build/over-nesting/index.html
+++ b/build/posts/over-nesting/index.html
diff --git a/build/paid-mac-apps/index.html b/build/posts/paid-mac-apps/index.html
index c690ce6..c690ce6 100644
--- a/build/paid-mac-apps/index.html
+++ b/build/posts/paid-mac-apps/index.html
diff --git a/build/pblog/index.html b/build/posts/pblog/index.html
index 9c12582..9c12582 100644
--- a/build/pblog/index.html
+++ b/build/posts/pblog/index.html
diff --git a/build/performance-focused-wordpress-theme/index.html b/build/posts/performance-focused-wordpress-theme/index.html
index c6400ae..c6400ae 100644
--- a/build/performance-focused-wordpress-theme/index.html
+++ b/build/posts/performance-focused-wordpress-theme/index.html
diff --git a/build/personal-website-opinions/index.html b/build/posts/personal-website-opinions/index.html
index f56d4f5..f56d4f5 100644
--- a/build/personal-website-opinions/index.html
+++ b/build/posts/personal-website-opinions/index.html
diff --git a/build/phpetite/index.html b/build/posts/phpetite/index.html
index ed2fb43..ed2fb43 100644
--- a/build/phpetite/index.html
+++ b/build/posts/phpetite/index.html
diff --git a/build/pi-400-internal-ssd/index.html b/build/posts/pi-400-internal-ssd/index.html
index 8b6fe08..8b6fe08 100644
--- a/build/pi-400-internal-ssd/index.html
+++ b/build/posts/pi-400-internal-ssd/index.html
diff --git a/build/pihole-cloudflare/index.html b/build/posts/pihole-cloudflare/index.html
index e50c362..e50c362 100644
--- a/build/pihole-cloudflare/index.html
+++ b/build/posts/pihole-cloudflare/index.html
diff --git a/build/plain-text-emails/index.html b/build/posts/plain-text-emails/index.html
index 0bed7e0..0bed7e0 100644
--- a/build/plain-text-emails/index.html
+++ b/build/posts/plain-text-emails/index.html
diff --git a/build/poor-mans-full-bleed/index.html b/build/posts/poor-mans-full-bleed/index.html
index 8dd5e8e..8dd5e8e 100644
--- a/build/poor-mans-full-bleed/index.html
+++ b/build/posts/poor-mans-full-bleed/index.html
diff --git a/build/poormans-comment-system/index.html b/build/posts/poormans-comment-system/index.html
index 4a4db92..4a4db92 100644
--- a/build/poormans-comment-system/index.html
+++ b/build/posts/poormans-comment-system/index.html
diff --git a/build/proper-ui-hierarchy/index.html b/build/posts/proper-ui-hierarchy/index.html
index 614b289..614b289 100644
--- a/build/proper-ui-hierarchy/index.html
+++ b/build/posts/proper-ui-hierarchy/index.html
diff --git a/build/ps4-download-ui/index.html b/build/posts/ps4-download-ui/index.html
index 071cd7b..071cd7b 100644
--- a/build/ps4-download-ui/index.html
+++ b/build/posts/ps4-download-ui/index.html
diff --git a/build/publish-with-jekyll/index.html b/build/posts/publish-with-jekyll/index.html
index 523f9d9..523f9d9 100644
--- a/build/publish-with-jekyll/index.html
+++ b/build/posts/publish-with-jekyll/index.html
diff --git a/build/pure-css-simple-dropdown-plugin/index.html b/build/posts/pure-css-simple-dropdown-plugin/index.html
index 20497ce..20497ce 100644
--- a/build/pure-css-simple-dropdown-plugin/index.html
+++ b/build/posts/pure-css-simple-dropdown-plugin/index.html
diff --git a/build/quick-dirty-theme-switcher/index.html b/build/posts/quick-dirty-theme-switcher/index.html
index a69be10..a69be10 100644
--- a/build/quick-dirty-theme-switcher/index.html
+++ b/build/posts/quick-dirty-theme-switcher/index.html
diff --git a/build/rss-click/index.html b/build/posts/rss-click/index.html
index dd0ab24..dd0ab24 100644
--- a/build/rss-click/index.html
+++ b/build/posts/rss-click/index.html
diff --git a/build/rss-hacks/index.html b/build/posts/rss-hacks/index.html
index ee6fdcd..ee6fdcd 100644
--- a/build/rss-hacks/index.html
+++ b/build/posts/rss-hacks/index.html
diff --git a/build/rvm/index.html b/build/posts/rvm/index.html
index d9689ab..d9689ab 100644
--- a/build/rvm/index.html
+++ b/build/posts/rvm/index.html
diff --git a/build/safari-default-dark-mode/index.html b/build/posts/safari-default-dark-mode/index.html
index d68e11c..d68e11c 100644
--- a/build/safari-default-dark-mode/index.html
+++ b/build/posts/safari-default-dark-mode/index.html
diff --git a/build/safari-extensions-catalina-patcher/index.html b/build/posts/safari-extensions-catalina-patcher/index.html
index 024a30f..024a30f 100644
--- a/build/safari-extensions-catalina-patcher/index.html
+++ b/build/posts/safari-extensions-catalina-patcher/index.html
diff --git a/build/schools/index.html b/build/posts/schools/index.html
index 924ccfe..924ccfe 100644
--- a/build/schools/index.html
+++ b/build/posts/schools/index.html
diff --git a/build/self-hosted-blogs/index.html b/build/posts/self-hosted-blogs/index.html
index d6e2810..d6e2810 100644
--- a/build/self-hosted-blogs/index.html
+++ b/build/posts/self-hosted-blogs/index.html
diff --git a/build/self-hosting-fathom/index.html b/build/posts/self-hosting-fathom/index.html
index c9db539..c9db539 100644
--- a/build/self-hosting-fathom/index.html
+++ b/build/posts/self-hosting-fathom/index.html
diff --git a/build/setting-up-free-ssl/index.html b/build/posts/setting-up-free-ssl/index.html
index 04d4239..04d4239 100644
--- a/build/setting-up-free-ssl/index.html
+++ b/build/posts/setting-up-free-ssl/index.html
diff --git a/build/seven-years/index.html b/build/posts/seven-years/index.html
index 833f2fb..833f2fb 100644
--- a/build/seven-years/index.html
+++ b/build/posts/seven-years/index.html
diff --git a/build/sharing-the-things-we-use/index.html b/build/posts/sharing-the-things-we-use/index.html
index fa4a1ad..fa4a1ad 100644
--- a/build/sharing-the-things-we-use/index.html
+++ b/build/posts/sharing-the-things-we-use/index.html
diff --git a/build/shinobi-website/index.html b/build/posts/shinobi-website/index.html
index 2d84b21..2d84b21 100644
--- a/build/shinobi-website/index.html
+++ b/build/posts/shinobi-website/index.html
diff --git a/build/shiny-css-buttons/index.html b/build/posts/shiny-css-buttons/index.html
index 328dbc2..328dbc2 100644
--- a/build/shiny-css-buttons/index.html
+++ b/build/posts/shiny-css-buttons/index.html
diff --git a/build/simple-accessibility/index.html b/build/posts/simple-accessibility/index.html
index a3d4be6..a3d4be6 100644
--- a/build/simple-accessibility/index.html
+++ b/build/posts/simple-accessibility/index.html
diff --git a/build/simple-does-not-mean-ugly/index.html b/build/posts/simple-does-not-mean-ugly/index.html
index 3dc0070..3dc0070 100644
--- a/build/simple-does-not-mean-ugly/index.html
+++ b/build/posts/simple-does-not-mean-ugly/index.html
diff --git a/build/simple-jekyll-navigation/index.html b/build/posts/simple-jekyll-navigation/index.html
index 100accc..100accc 100644
--- a/build/simple-jekyll-navigation/index.html
+++ b/build/posts/simple-jekyll-navigation/index.html
diff --git a/build/skip-to-content/index.html b/build/posts/skip-to-content/index.html
index 9252e85..9252e85 100644
--- a/build/skip-to-content/index.html
+++ b/build/posts/skip-to-content/index.html
diff --git a/build/slabtop/index.html b/build/posts/slabtop/index.html
index 35870bb..35870bb 100644
--- a/build/slabtop/index.html
+++ b/build/posts/slabtop/index.html
diff --git a/build/slow/index.html b/build/posts/slow/index.html
index fb96886..fb96886 100644
--- a/build/slow/index.html
+++ b/build/posts/slow/index.html
diff --git a/build/soma-terminal-css/index.html b/build/posts/soma-terminal-css/index.html
index 4da2c50..4da2c50 100644
--- a/build/soma-terminal-css/index.html
+++ b/build/posts/soma-terminal-css/index.html
diff --git a/build/spec/index.html b/build/posts/spec/index.html
index aa2da2a..aa2da2a 100644
--- a/build/spec/index.html
+++ b/build/posts/spec/index.html
diff --git a/build/srht2/index.html b/build/posts/srht2/index.html
index 269645f..269645f 100644
--- a/build/srht2/index.html
+++ b/build/posts/srht2/index.html
diff --git a/build/stay-hungry/index.html b/build/posts/stay-hungry/index.html
index 2848848..2848848 100644
--- a/build/stay-hungry/index.html
+++ b/build/posts/stay-hungry/index.html
diff --git a/build/sticky-elements/index.html b/build/posts/sticky-elements/index.html
index bdd12bd..bdd12bd 100644
--- a/build/sticky-elements/index.html
+++ b/build/posts/sticky-elements/index.html
diff --git a/build/still-using-jquery/index.html b/build/posts/still-using-jquery/index.html
index ea258bc..ea258bc 100644
--- a/build/still-using-jquery/index.html
+++ b/build/posts/still-using-jquery/index.html
diff --git a/build/stripe-menu-css/index.html b/build/posts/stripe-menu-css/index.html
index 7d4d03f..7d4d03f 100644
--- a/build/stripe-menu-css/index.html
+++ b/build/posts/stripe-menu-css/index.html
diff --git a/build/sublime/index.html b/build/posts/sublime/index.html
index fa6239d..fa6239d 100644
--- a/build/sublime/index.html
+++ b/build/posts/sublime/index.html
diff --git a/build/suckless/index.html b/build/posts/suckless/index.html
index 45a8ec7..45a8ec7 100644
--- a/build/suckless/index.html
+++ b/build/posts/suckless/index.html
diff --git a/build/super-mario-blocks-css/index.html b/build/posts/super-mario-blocks-css/index.html
index 406c8df..406c8df 100644
--- a/build/super-mario-blocks-css/index.html
+++ b/build/posts/super-mario-blocks-css/index.html
diff --git a/build/tabbed-content/index.html b/build/posts/tabbed-content/index.html
index d519fe8..d519fe8 100644
--- a/build/tabbed-content/index.html
+++ b/build/posts/tabbed-content/index.html
diff --git a/build/tables/index.html b/build/posts/tables/index.html
index bc3c6d2..bc3c6d2 100644
--- a/build/tables/index.html
+++ b/build/posts/tables/index.html
diff --git a/build/te/index.html b/build/posts/te/index.html
index 0aeab30..0aeab30 100644
--- a/build/te/index.html
+++ b/build/posts/te/index.html
diff --git a/build/text-align-justify/index.html b/build/posts/text-align-justify/index.html
index 2b95962..2b95962 100644
--- a/build/text-align-justify/index.html
+++ b/build/posts/text-align-justify/index.html
diff --git a/build/they-wont-wait/index.html b/build/posts/they-wont-wait/index.html
index 3410d98..3410d98 100644
--- a/build/they-wont-wait/index.html
+++ b/build/posts/they-wont-wait/index.html
diff --git a/build/use-text-not-icons/index.html b/build/posts/use-text-not-icons/index.html
index 52dd937..52dd937 100644
--- a/build/use-text-not-icons/index.html
+++ b/build/posts/use-text-not-icons/index.html
diff --git a/build/user-select/index.html b/build/posts/user-select/index.html
index 55b94f4..55b94f4 100644
--- a/build/user-select/index.html
+++ b/build/posts/user-select/index.html
diff --git a/build/vscode/index.html b/build/posts/vscode/index.html
index 92c54fb..92c54fb 100644
--- a/build/vscode/index.html
+++ b/build/posts/vscode/index.html
diff --git a/build/webfonts/index.html b/build/posts/webfonts/index.html
index c161029..c161029 100644
--- a/build/webfonts/index.html
+++ b/build/posts/webfonts/index.html
diff --git a/build/width-vs-flex-basis/index.html b/build/posts/width-vs-flex-basis/index.html
index 94c6e91..94c6e91 100644
--- a/build/width-vs-flex-basis/index.html
+++ b/build/posts/width-vs-flex-basis/index.html
diff --git a/build/windows/index.html b/build/posts/windows/index.html
index 99b2345..99b2345 100644
--- a/build/windows/index.html
+++ b/build/posts/windows/index.html
diff --git a/build/wp-enqueue-for-beginners/index.html b/build/posts/wp-enqueue-for-beginners/index.html
index a74b8c1..a74b8c1 100644
--- a/build/wp-enqueue-for-beginners/index.html
+++ b/build/posts/wp-enqueue-for-beginners/index.html
diff --git a/build/x201/index.html b/build/posts/x201/index.html
index 2471c78..2471c78 100644
--- a/build/x201/index.html
+++ b/build/posts/x201/index.html
diff --git a/build/x220/index.html b/build/posts/x220/index.html
index 76c463e..76c463e 100644
--- a/build/x220/index.html
+++ b/build/posts/x220/index.html
diff --git a/build/public/images/open-suck-75.png b/build/public/images/open-suck-75.png
new file mode 100644
index 0000000..1ed67e0
--- /dev/null
+++ b/build/public/images/open-suck-75.png
Binary files differ
diff --git a/build/rss.xml b/build/rss.xml
index 663bef8..c4cb55f 100644
--- a/build/rss.xml
+++ b/build/rss.xml
@@ -1,4281 +1,5840 @@
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
- <channel>
- <title>Making software better without sacrificing user experience.</title>
- <link>https://btxx.org/rss.xml</link>
- <description>Feed description here</description>
- <lastBuildDate>Sat, 08 Jun 2024 17:41:09 +0000</lastBuildDate>
- <pubDate>Sat, 08 Jun 2024 17:41:09 +0000</pubDate>
- <generator>Custom RSS Generator</generator>
- <ttl>1800</ttl>
- <item>
- <title>The X220 ThinkPad is the Best Laptop in the World</title>
- <description>&lt;h1 id=&quot;the-x220-thinkpad-is-the-best-laptop-in-the-world&quot;&gt;The X220 ThinkPad is the Best Laptop in the World&lt;/h1&gt;
-&lt;p&gt;2023-09-26&lt;/p&gt;
-&lt;p&gt;The X220 ThinkPad is the greatest laptop ever made and you&amp;#8217;re wrong if you think otherwise. No laptop hardware has since surpassed the nearly perfect build of the X220. New devices continue to get thinner and more fragile. Useful ports are constantly discarded for the sake of &amp;#8220;design&amp;#8221;. Functionality is no longer important to manufacturers. Repairability is purposefully removed to prevent users from truly &amp;#8220;owing&amp;#8221; their hardware.&lt;/p&gt;
-&lt;p&gt;It&amp;#8217;s a mess out there. But thank goodness I still have my older, second-hand X220.&lt;/p&gt;
-&lt;h2 id=&quot;specs&quot;&gt;Specs&lt;/h2&gt;
-&lt;p&gt;Before I get into the details explaining why this laptop is the very best of its kind, let&amp;#8217;s first take a look at my machine&amp;#8217;s basic specifications:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;CPU: Intel i7-2640M (4) @ 3.500GHz&lt;/li&gt;
-&lt;li&gt;GPU: Intel 2nd Generation Core Processor&lt;/li&gt;
-&lt;li&gt;Memory: 16GB DDR3&lt;/li&gt;
-&lt;li&gt;OS: Arch Linux &amp;#47; OpenBSD&lt;/li&gt;
-&lt;li&gt;Resolution: 1366x768&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;With that out of the way, I will break down my thoughts on the X220 into five major sections: Build quality, available ports, the keyboard, battery life, and repairability.&lt;/p&gt;
-&lt;h2 id=&quot;build-quality&quot;&gt;Build Quality&lt;/h2&gt;
-&lt;p&gt;The X220 (like most of Lenovo&amp;#8217;s older X&amp;#47;T models) is built like a tank. Although the inner pieces are sourced from mostly plastic, the device is still better equipped to handle drops and mishandling compared to that of more fragile devices (such as the MacBook Air or Framework). This is made further impressive since the X220 is actually composed of many smaller interconnected pieces (more on this later).&lt;/p&gt;
-&lt;p&gt;A good litmus test I perform on most laptops is the &amp;#8220;corner test&amp;#8221;. You grab the base corner of a laptop in its open state. The goal is to see if the device displays any noticeable give or flex. In the X220&amp;#8217;s case: it feels rock solid. The base remains stiff and bobbing the device causes no movement on the opened screen. I&amp;#8217;m aware that holding a laptop in this position is certainly not a normal use case, but knowing it is built well enough to do so speaks volumes of its construction.&lt;/p&gt;
-&lt;p&gt;The X220 is also &lt;em&gt;not&lt;/em&gt; a lightweight laptop. This might be viewed as a negative for most users, but I actually prefer it. I often become too cautious and end up &amp;#8220;babying&amp;#8221; thinner laptops out of fear of breakage. A minor drop from even the smallest height will severely damage these lighter devices. I have no such worries with my X220.&lt;/p&gt;
-&lt;p&gt;As for the laptop&amp;#8217;s screen and resolution: your mileage may vary. I have zero issues with the default display or the smaller aspect ratio. I wrote about how I &lt;a href=&quot;/monitor&quot;&gt;stopped using an external monitor&lt;/a&gt;, so I might be a little biased.&lt;/p&gt;
-&lt;p&gt;Overall, this laptop is a device you can snatch up off your desk, whip into your travel bag and be on your way. The rugged design and bulkier weight help put my mind at ease - which is something I can&amp;#8217;t say for newer laptop builds.&lt;/p&gt;
-&lt;h2 id=&quot;ports&quot;&gt;Ports&lt;/h2&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/ports-everywhere.jpg&quot; alt=&quot;Buzz Lightyear and Woody meme: &#39;Ports, Ports Everywhere&#39;&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;I don&amp;#8217;t think I need to explain how valuable it is to have functional ports on a laptop. Needing to carrying around a bunch of dongles for ports that should already be &lt;em&gt;on the device&lt;/em&gt; just seems silly.&lt;/p&gt;
-&lt;p&gt;The X220 comes equipped with:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;3 USB ports (one of those being USB3 on the i7 model)&lt;/li&gt;
-&lt;li&gt;DisplayPort&lt;/li&gt;
-&lt;li&gt;VGA&lt;/li&gt;
-&lt;li&gt;Ethernet&lt;/li&gt;
-&lt;li&gt;SD Card Reader&lt;/li&gt;
-&lt;li&gt;3.5mm Jack&lt;/li&gt;
-&lt;li&gt;Ultrabay (SATA)&lt;/li&gt;
-&lt;li&gt;Wi-Fi hardware kill-switch&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Incredibly versatile and ready for anything I throw at it!&lt;/p&gt;
-&lt;h2 id=&quot;keyboard&quot;&gt;Keyboard&lt;/h2&gt;
-&lt;p&gt;The classic ThinkPad keyboards are simply that: classic. I don&amp;#8217;t think anyone could argue against these keyboards being the golden standard for laptops. It&amp;#8217;s commendable how Lenovo managed to package so much functionality into such a small amount of real estate. Most modern laptops lack helpful keys such as &lt;code&gt;Print Screen&lt;/code&gt;, &lt;code&gt;Home&lt;/code&gt;, &lt;code&gt;End&lt;/code&gt;, and &lt;code&gt;Scroll Lock&lt;/code&gt;.&lt;/p&gt;
-&lt;p&gt;They&amp;#8217;re also an absolute &lt;em&gt;joy&lt;/em&gt; to type on. The fact that so many people go out of their way to mod X230 ThinkPad models with X220 keyboards should tell you something&amp;#8230; Why Lenovo moved away from these keyboards will always baffle me. (I know &lt;em&gt;why&lt;/em&gt; they did it - I just think it&amp;#8217;s stupid).&lt;/p&gt;
-&lt;p&gt;Did I mention these classic keyboards come with the extremely useful Trackpoint as well?&lt;/p&gt;
-&lt;h2 id=&quot;battery-life&quot;&gt;Battery Life&lt;/h2&gt;
+ <channel>
+ <title>Making software better without sacrificing user experience.</title>
+ <link>https://btxx.org/rss.xml</link>
+ <description>Feed description here</description>
+ <lastBuildDate>Mon, 10 Jun 2024 13:40:12 +0000</lastBuildDate>
+ <pubDate>Mon, 10 Jun 2024 13:40:12 +0000</pubDate>
+ <generator>Custom RSS Generator</generator>
+ <ttl>1800</ttl>
+ <item>
+ <title>Do You Have an Extra $10?</title>
+ <description>&lt;h1 id=&quot;do-you-have-an-extra-10&quot;&gt;Do You Have an Extra $10?&lt;/h1&gt;
+&lt;p&gt;2022-11-23&lt;/p&gt;
+&lt;p&gt;As software designers and developers, think of all the little things that we spend $10 on. Maybe it&amp;#8217;s a couple coffees over the course of a week. Maybe it&amp;#8217;s a TV streaming subscription. Maybe it&amp;#8217;s an impulse buy while we&amp;#8217;re out shopping for groceries. Maybe it goes into a mason jar on top of the fridge, stored away for a rainy day.&lt;/p&gt;
+&lt;p&gt;$10 doesn&amp;#8217;t seem like a &lt;em&gt;ton&lt;/em&gt; of money, but a little does go a long way. What if, combined with &lt;em&gt;other people&lt;/em&gt;, that $10 could grow and support an open source project? A project that you might even use &lt;em&gt;every day&lt;/em&gt; without cost. &lt;/p&gt;
+&lt;p&gt;Plenty of people already do this - it&amp;#8217;s nothing new. If you already contribute to the open source community (whether through code or donations) then this post isn&amp;#8217;t really geared towards you. You&amp;#8217;re already helping out and are greatly appreciated. Feel free to stop reading right now and continue on with your day!&lt;/p&gt;
+&lt;p&gt;But, if you&amp;#8217;re like how I used to be, you might be one of those people who enjoys &lt;em&gt;the idea&lt;/em&gt; of donating to a FOSS project instead of actually doing so. That&amp;#8217;s fine. Zero judgement here since I was doing &lt;em&gt;exactly that&lt;/em&gt; for years. All I ask is for you to try it out for even a couple months. You&amp;#8217;ll soon realize that $10 doesn&amp;#8217;t break the bank, while at the same time, you get that &amp;#8220;warm, fuzzy feeling&amp;#8221; of supporting important projects&amp;#47;communities.&lt;/p&gt;
+&lt;p&gt;In a way, it&amp;#8217;s actually kind of selfish. You start doing it more for the &lt;em&gt;feel good&lt;/em&gt; endorphin that kicks in each time you donate. At least, that&amp;#8217;s been my experience&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;open-source-isnt-free&quot;&gt;Open Source isn&amp;#8217;t Free&lt;/h2&gt;
+&lt;p&gt;Maintaining any open source project takes years of prior design&amp;#47;development experience, along with sacrificing personal time. Contributors might enjoy working on their project. Most probably love connecting with their end-users and community - but their time is still a hard requirement.&lt;/p&gt;
+&lt;p&gt;I believe this time is worth paying for. If a project you depend on were to suddenly &amp;#8220;shut down&amp;#8221;, how much time, effort, and income do you stand to lose? Is it more than $10 a month?&lt;/p&gt;
+&lt;h2 id=&quot;donating-in-this-economy&quot;&gt;&amp;#8220;Donating? In THIS Economy?&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;Things aren&amp;#8217;t great for a lot of folks financially right now. I&amp;#8217;m not ignorant to this fact and completely understand people tightening their belts. We all have to. I&amp;#8217;m merely suggesting that if you &lt;em&gt;have the means&lt;/em&gt; to support FOSS communities with any disposable income, you should. And I&amp;#8217;m not suggesting a lot - &lt;strong&gt;just ten bucks&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;Allow me to put my money where my mouth is and showcase my own $10 donation breakdown:&lt;/p&gt;
+&lt;h2 id=&quot;my-10-breakdown&quot;&gt;My $10 Breakdown&lt;/h2&gt;
+&lt;table&gt;
+&lt;thead&gt;
+&lt;tr&gt;
+&lt;th&gt;Service&lt;/th&gt;
+&lt;th&gt;Cost&amp;#47;month&lt;/th&gt;
+&lt;/tr&gt;
+&lt;/thead&gt;
+&lt;tbody&gt;
+&lt;tr&gt;
+&lt;td&gt;&lt;a href=&quot;https://sourcehut.org&quot;&gt;sourcehut&lt;/a&gt;&lt;/td&gt;
+&lt;td&gt;$5.00&lt;/td&gt;
+&lt;/tr&gt;
+&lt;tr&gt;
+&lt;td&gt;&lt;a href=&quot;https://fosstodon.org&quot;&gt;fosstodon&lt;/a&gt;&lt;/td&gt;
+&lt;td&gt;$3.00&lt;/td&gt;
+&lt;/tr&gt;
+&lt;tr&gt;
+&lt;td&gt;&lt;a href=&quot;https://qutebrowser.org&quot;&gt;qutebrowser&lt;/a&gt;&lt;/td&gt;
+&lt;td&gt;$2.00&lt;/td&gt;
+&lt;/tr&gt;
+&lt;/tbody&gt;
+&lt;/table&gt;
+&lt;p&gt;&lt;em&gt;In case you are reading the post at a later point in time, the most up-to-date donation listing can always be found &lt;a href=&quot;/uses/&quot;&gt;on my official Uses page&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
+&lt;h2 id=&quot;sourcehut&quot;&gt;SourceHut&lt;/h2&gt;
+&lt;p&gt;To be fair, this is an active service which just so happens to be available for &amp;#8220;free&amp;#8221; in its current state. Drew &lt;a href=&quot;https://sourcehut.org/pricing/&quot;&gt;mentions on the main pricing page&lt;/a&gt; that payment is &lt;em&gt;currently&lt;/em&gt; optional, but will eventually require maintainers to upgrade (contributors will always have free access):&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;&lt;strong&gt;Author&amp;#8217;s Note:&lt;/strong&gt; This section is very subjective. The age, quality, and size of the X220&amp;#8217;s battery can have a massive impact on benchmarks. I should also mention that I run very lightweight operating systems and use DWM as opposed to a heavier desktop environment. Just something to keep in mind.&lt;/p&gt;
+&lt;p&gt;sr.ht is currently in alpha, and the quality of the service may reflect that. As such, payment is currently optional, and only encouraged for users who want to support the ongoing development of the site. &lt;/p&gt;
&lt;/blockquote&gt;
-&lt;p&gt;The battery life on my own X220 is fantastic. I have a brand-new 9-cell that lasts for roughly 5-6 hours of daily work. Obviously these numbers don&amp;#8217;t come close to the incredible battery life of Apple&amp;#8217;s M1&amp;#47;M2 chip devices, but it&amp;#8217;s still quite competitive against other &amp;#8220;newer&amp;#8221; laptops on the market.&lt;/p&gt;
-&lt;p&gt;Although, even if the uptime was lower than 5-6 hours, you have the ability to carry extra batteries with you. The beauty of swapping out your laptop&amp;#8217;s battery without needing to &lt;em&gt;open up&lt;/em&gt; the device itself is fantastic. Others might whine about the annoyance of carrying an extra battery in their travel bag, but doing so is completely &lt;em&gt;optional&lt;/em&gt;. A core part of what makes the X220 so wonderful is user control and choice. The X220&amp;#8217;s battery is another great example of that.&lt;/p&gt;
-&lt;h2 id=&quot;repairability&quot;&gt;Repairability&lt;/h2&gt;
-&lt;p&gt;The ability to completely disassemble and replace almost everything on the X220 has to be one of its biggest advantages over newer laptops. No glue to rip apart. No special proprietary tools required. Just some screws and plastic snaps. If someone as monkey-brained as me can completely strip down this laptop and put it back together again without issue, then the hardware designers have done something right!&lt;/p&gt;
-&lt;p&gt;Best of all, Lenovo provides a very detailed &lt;a href=&quot;https://download.lenovo.com/pccbbs/mobiles_pdf/0a60739_01.pdf&quot;&gt;hardware maintenance manual&lt;/a&gt; to help guide you through the entire process.&lt;/p&gt;
-&lt;p&gt;My disassembled X220 when I was reapplying the CPU thermal paste:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/x220-pieces.jpeg&quot; alt=&quot;My disassembled X220 laptop&quot; /&gt;&lt;/p&gt;
-&lt;h2 id=&quot;bonus-round-price&quot;&gt;Bonus Round: Price&lt;/h2&gt;
-&lt;p&gt;I didn&amp;#8217;t list this in my initial section &amp;#8220;breakdown&amp;#8221; but it&amp;#8217;s something to consider. I purchased my X220 off eBay for $175 Canadian. While this machine came with a HDD instead of an SSD and only 8GB of total memory, that was still an incredible deal. I simply swapped out the hard-drive with an SSD I had on hand, along with upgrading the DDR3 memory to its max of 16.&lt;/p&gt;
-&lt;p&gt;Even if you needed to buy those components separately you would be hard-pressed to find such a good deal for a decent machine. Not to mention you would be helping to prevent more e-waste!&lt;/p&gt;
-&lt;h2 id=&quot;what-more-can-i-say&quot;&gt;What More Can I Say?&lt;/h2&gt;
-&lt;p&gt;Obviously the title and tone of this article is all in good fun. Try not to take things so seriously! But, I still &lt;em&gt;personally&lt;/em&gt; believe the X220 is one of, if not &lt;em&gt;the&lt;/em&gt; best laptop in the world.&lt;/p&gt;</description>
- <link>https://btxx.org/x220</link>
- <guid isPermaLink="false">https://btxx.org/x220</guid>
- <pubDate>Tue, 26 Sep 2023 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Bypassing the WiFi Hardware Switch on the Lenovo X201</title>
- <description>&lt;h1 id=&quot;bypassing-the-wifi-hardware-switch-on-the-lenovo-x201&quot;&gt;Bypassing the WiFi Hardware Switch on the Lenovo X201&lt;/h1&gt;
-&lt;p&gt;2023-04-02&lt;/p&gt;
-&lt;p&gt;I recently received a ThinkPad X201 to start using as my daily driver. I purchased the X201 to replace my existing X260. Although some might look at this as a &amp;#8220;downgrade&amp;#8221; in terms of specs and hardware, I would have to disagree. &lt;/p&gt;
-&lt;p&gt;The X201 is an absolute masterpiece in laptop hardware design and only faulted by some of the constraints set by the motherboard, namely the lack to support more than 8GB of RAM. Other than that, I think it&amp;#8217;s perfect. Well&amp;#8230;&lt;em&gt;almost&lt;/em&gt; perfect. There is one small annoyance:&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;The physical WiFi kill switch&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;This thing can become really flaky on these older devices and countless people on the web report connection issues across multiple operating systems. I too ran into this issue not long after getting Alpine setup nicely on my machine.&lt;/p&gt;
-&lt;p&gt;Some remedies include re-installing hardware drivers, flicking the hardware toggle off and on repeatedly, or even simply logging out of the current user session. All these options seemed like a pain in the ass.&lt;/p&gt;
-&lt;p&gt;So I listed out my possible options:&lt;/p&gt;
+&lt;p&gt;I still consider this &amp;#8220;donating&amp;#8221; since it helps keep this specific instance alive. It&amp;#8217;s also my main code forge since I&amp;#8217;ve been &lt;a href=&quot;/srht2/&quot;&gt;migrating away from GitHub&lt;/a&gt;. I want to see SourceHut succeed, so while I &lt;em&gt;could&lt;/em&gt; use the service completely free, I believe it&amp;#8217;s more than worth it to coverage my usage.&lt;/p&gt;
+&lt;h2 id=&quot;fosstodon&quot;&gt;Fosstodon&lt;/h2&gt;
+&lt;p&gt;&lt;a href=&quot;https://fosstodon.org&quot;&gt;fosstodon.org&lt;/a&gt; is my main &amp;#8220;social&amp;#8221; platform and the Mastodon instance I chose to join some time ago. The people I&amp;#8217;ve interacted with have been nothing but helpful, insightful and fun. The maintainers are also very down to earth (shoutout to &lt;a href=&quot;https://kevquirk.com/&quot;&gt;Kev&lt;/a&gt; specifically for making my initial experience great!)&lt;/p&gt;
+&lt;p&gt;Hosting a large Mastodon instance can become expensive. Not to mention the recent influx of Twitter users flocking to the platform in general. Fosstodon recently &lt;a href=&quot;https://hub.fosstodon.org/more-upgrades-twitter-storm/&quot;&gt;posted an update&lt;/a&gt; detailing how their server costs are now &amp;#62;$1800. That&amp;#8217;s insane.&lt;/p&gt;
+&lt;p&gt;The least I can do is toss a few bucks towards the service. I know it isn&amp;#8217;t much, but it certainly feels better than using such an awesome platform for absolutely nothing. Keep up the great work maintainers&amp;#47;mods!&lt;/p&gt;
+&lt;h2 id=&quot;qutebrowser&quot;&gt;qutebrowser&lt;/h2&gt;
+&lt;p&gt;&lt;strong&gt;The best browser I have ever used&lt;/strong&gt;. I refuse to go back to Firefox or even FireDragon&amp;#47;Pale Moon. I&amp;#8217;m only currently donating $2 but my goal is to increase this in the future before adding any other services &amp;#47; communities to my &amp;#8220;collection&amp;#8221;. If you haven&amp;#8217;t yet tried it, I highly recommend it.&lt;/p&gt;
+&lt;h2 id=&quot;food-for-thought&quot;&gt;Food for Thought&lt;/h2&gt;
+&lt;p&gt;That&amp;#8217;s really all there is for me to say on the matter. It essentially comes down to personal preference and the financial ability to donate. As I said before: there is no judgement here. All I&amp;#8217;m suggesting is that people do what they can to help support the FOSS projects they love.&lt;/p&gt;
+&lt;p&gt;And really, it&amp;#8217;s just $10.&lt;/p&gt;</description>
+ <link>https://btxx.org/$10</link>
+ <guid isPermaLink="false">https://btxx.org/$10</guid>
+ <pubDate>Wed, 23 Nov 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Making a Website Under 1kB</title>
+ <description>&lt;h1 id=&quot;making-a-website-under-1kb&quot;&gt;Making a Website Under 1kB&lt;/h1&gt;
+&lt;p&gt;2022-08-02&lt;/p&gt;
+&lt;p&gt;I recently launched (another) website club called the &lt;a href=&quot;https://1kb.club&quot;&gt;1kB Club&lt;/a&gt;. Unlike the &lt;a href=&quot;https://1mb.club&quot;&gt;1MB Club&lt;/a&gt;, it isn&amp;#8217;t as accessible for most modern websites to become official members. Building a website that actually serves useful content while squeezing its page size under 1,024 bytes is no easy feat.&lt;/p&gt;
+&lt;p&gt;But it is possible. And I did it myself!&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;Note:&lt;/em&gt; Big shout-out to &lt;a href=&quot;https://t0.vc&quot;&gt;Tanner&lt;/a&gt;, who inspired this whole &amp;#8220;movement&amp;#8221; with his own minimal website. (He also has some really great creations&amp;#47;articles there too!)&lt;/p&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;p&gt;For reference, you can view my &amp;#8220;mini&amp;#8221; website here: &lt;a href=&quot;https://cv.tdarb.org&quot;&gt;cv.tdarb.org&lt;/a&gt;. It is &lt;em&gt;very&lt;/em&gt; minimal and serves only as a personal curriculum vitae. It also weighs only &lt;strong&gt;920 bytes&lt;/strong&gt; and is valid HTML.&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s take a look at the full HTML and then break things down from there:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;!DOCTYPE html&amp;#62;&amp;#60;link rel=&quot;icon&quot; href=&quot;data:,&quot;&amp;#62;&amp;#60;meta name=&quot;viewport&quot; content=&quot;width=device-width,initial-scale=1.0&quot;&amp;#62;&amp;#60;title&amp;#62;CV&amp;#60;&amp;#47;title&amp;#62;&amp;#60;p&amp;#62;Hi, I&amp;#39;m &amp;#60;a href=&quot;t&quot;&amp;#62;Brad Taunt&amp;#60;&amp;#47;a&amp;#62;! I&amp;#39;m a UX designer.&amp;#60;p&amp;#62;Email: hello@tdarb.org&amp;#60;p&amp;#62;Resume&amp;#60;p&amp;#62;Senior Product Designer @ Donorbox, 2021-&amp;#60;br&amp;#62;Web Designer @ Purism, 2019-2021&amp;#60;br&amp;#62;Product Designer @ Benbria, 2013-2019&amp;#60;br&amp;#62;Web Designer @ Netvatise, 2009-2013&amp;#60;p&amp;#62;Projects&amp;#60;p&amp;#62;&amp;#60;a href=&quot;1&quot;&amp;#62;1MB Club&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;k&quot;&amp;#62;1kB Club&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;p&quot;&amp;#62;pblog&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;s&quot;&amp;#62;shinobi&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;h&quot;&amp;#62;PHPetite&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;v&quot;&amp;#62;Vanilla CSS&amp;#60;&amp;#47;a&amp;#62;&amp;#60;p&amp;#62;Writing&amp;#60;p&amp;#62;&amp;#60;a href=&quot;d&quot;&amp;#62;The Death of Personality&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;u&quot;&amp;#62;Simple Does Not Mean Ugly&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;e&quot;&amp;#62;Plain Text Emails, Please&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;tb&quot;&amp;#62;[more]&amp;#60;&amp;#47;a&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;sneaky-hacks&quot;&gt;Sneaky &amp;#8220;Hacks&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;The first thing you&amp;#8217;ll notice is that the HTML is compressed. White space adds extra bytes of data to the page weight - so it needs to go. Next, you might have caught the &lt;em&gt;odd&lt;/em&gt; favicon meta tag:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;link rel=&quot;icon&quot; href=&quot;data:,&quot;&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;This is required to stop the browser from making the standard favicon request (normally pulling from &lt;code&gt;favicon.ico&lt;/code&gt;). By adding this meta tag you are telling the browser to load in an empty image without running another server request. This saves about 400 bytes of bandwidth on its own!&lt;/p&gt;
+&lt;p&gt;The next two meta tags after the &lt;code&gt;icon&lt;/code&gt; are technically optional. These are the &lt;code&gt;viewport&lt;/code&gt; and &lt;code&gt;title&lt;/code&gt; tags. You could save a good amount of data by excluding them altogether, but I had my own personal reasons for keeping them:&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;Whitelist my BIOS WiFi settings (requires flashing BIOS) and install a newer wifi card, hoping the problem fixes itself&lt;/li&gt;
-&lt;li&gt;Purchase a replacement WiFi card (maybe mine was just buggy??)&lt;/li&gt;
-&lt;li&gt;Block PIN20 on the existing Wifi card&lt;/li&gt;
-&lt;li&gt;Somehow disconnect the hardware killswitch (requires soldering which I have ZERO experience with)&lt;/li&gt;
+&lt;li&gt;I wanted the web page to be responsive&lt;/li&gt;
+&lt;li&gt;I wanted the page to be &lt;a href=&quot;https://validator.w3.org/nu/?doc=https%3A%2F%2Fcv.tdarb.org%2F&quot;&gt;valid HTML&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;Out of pure laziness, I chose option &lt;strong&gt;three&lt;/strong&gt;. In case you were unaware, PIN20 on older PCIE WLAN cards is the &amp;#8220;wifi disable&amp;#8221; and used as an RF killswitch. By &amp;#8220;blocking&amp;#8221; this PIN, we stop the system from being able to disable the WiFi connection. Losing the ability to disable WiFi on the hardware level didn&amp;#8217;t bother me much, so I moved forward with this easier approach.&lt;/p&gt;
-&lt;h2 id=&quot;opening-up-the-x201&quot;&gt;Opening Up the X201&lt;/h2&gt;
-&lt;p&gt;To access the WiFi card, you&amp;#8217;ll need to remove the keyboard and touchpad palm rest cover. It might sound daunting for newcomers but I assure you it is very simple. These machines were built during a time when Lenovo &lt;em&gt;expected&lt;/em&gt; their users to tinker with their devices and built them with modular components in mind. Yet another reason for my decision to swap this laptop for my more &amp;#8220;locked down&amp;#8221; X260.&lt;/p&gt;
+&lt;p&gt;So, I kept these tags but made them as minimal as I possibly could (looking at you &lt;code&gt;title&lt;/code&gt; tag). After that, it was time to add my content!&lt;/p&gt;
+&lt;h2 id=&quot;where-were-going-we-dont-need-tags&quot;&gt;Where We&amp;#8217;re Going, We Don&amp;#8217;t Need Tags&amp;#8230;&lt;/h2&gt;
+&lt;p&gt;The beauty of using HTML5 is the ability to ditch &amp;#8220;default&amp;#8221; and closing tags on most elements. Think of all those bytes we can save!&lt;/p&gt;
+&lt;p&gt;In the HTML above you will notice:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;There is no &lt;code&gt;html&lt;/code&gt; element&lt;/li&gt;
+&lt;li&gt;There is no &lt;code&gt;head&lt;/code&gt; element&lt;/li&gt;
+&lt;li&gt;There is no &lt;code&gt;body&lt;/code&gt; element&lt;/li&gt;
+&lt;li&gt;There are no closing &lt;code&gt;p&lt;/code&gt; tags&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;Even with all those &amp;#8220;missing&amp;#8221; elements, the webpage is still valid HTML5! Craziness.&lt;/p&gt;
+&lt;p&gt;The final hack that saved a &lt;em&gt;ton&lt;/em&gt; of bandwidth was implementing custom &lt;code&gt;href&lt;/code&gt; URLs. Most of the links on the page take the user to another website altogether - which is fine. The problem is including these full domains inside the &lt;code&gt;a:href&lt;/code&gt; tag. Those can start to eat up a lot of data.&lt;/p&gt;
+&lt;p&gt;Luckily, I host this mini-site through Netlify so I can take full advantage of their optional &lt;code&gt;_redirects&lt;/code&gt; file. Links are now set with a single character (ie. &amp;#8220;1&amp;#8221; for the 1MB Club link) and the &lt;code&gt;_redirects&lt;/code&gt; file simply forwards the user to the custom domain. Pretty sneaky!&lt;/p&gt;
+&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
+&lt;p&gt;This is a silly project that isn&amp;#8217;t meant to be taken so seriously. That being said, I&amp;#8217;d love to see what other pages people are able to create while being limited to just 1kB.&lt;/p&gt;</description>
+ <link>https://btxx.org/1kb</link>
+ <guid isPermaLink="false">https://btxx.org/1kb</guid>
+ <pubDate>Tue, 02 Aug 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Building rbenv on OpenBSD 7.5</title>
+ <description>&lt;h1 id=&quot;building-rbenv-on-openbsd-7.5&quot;&gt;Building rbenv on OpenBSD 7.5&lt;/h1&gt;
+&lt;p&gt;2024-06-02&lt;/p&gt;
+&lt;p&gt;I use Ruby (specifically with Jekyll) for a lot of my clubs&amp;#47;projects while using my personal laptop (&lt;a href=&quot;/posts/x220/&quot;&gt;X220 ThinkPad&lt;/a&gt;) which is runs OpenBSD. Since I recently upgraded to OpenBSD 7.5 I thought it could be helpful for others if I shared my process of building and using &lt;code&gt;rbenv&lt;/code&gt; to install different Ruby versions.&lt;/p&gt;
+&lt;h2 id=&quot;before-we-build&quot;&gt;Before We Build&lt;/h2&gt;
+&lt;p&gt;First, be sure to install the required packages in order to build from source, and then clone the core &lt;code&gt;rbenv&lt;/code&gt; repo:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;pkg_add git gcc gmake libffi libyaml openssl
+git clone https:&amp;#47;&amp;#47;github.com&amp;#47;rbenv&amp;#47;rbenv.git ~&amp;#47;.rbenv
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;building-&quot;&gt;Building &lt;code&gt;rbenv&lt;/code&gt;&lt;/h2&gt;
+&lt;p&gt;Add &lt;code&gt;rbenv&lt;/code&gt; to your PATH and initialize it (place this inside your &lt;code&gt;.bashrc&lt;/code&gt; or &lt;code&gt;.zshrc&lt;/code&gt; etc):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;export PATH=&quot;$HOME&amp;#47;.rbenv&amp;#47;bin:$PATH&quot;
+export PATH=&quot;$HOME&amp;#47;.rbenv&amp;#47;shims:$PATH&quot;
+export RUBY_CONFIGURE_OPTS=&quot;--with-openssl-dir=&amp;#47;usr&amp;#47;local&quot;
+eval &quot;$(rbenv init -)&quot;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Then reload your shell (zsh in this example): &lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;source ~&amp;#47;.zshrc
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Next we will need to install &lt;code&gt;ruby-build&lt;/code&gt; as a &lt;code&gt;rbenv&lt;/code&gt; plugin. Clone the ruby-build repository into the rbenv plugins directory:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;git clone https:&amp;#47;&amp;#47;github.com&amp;#47;rbenv&amp;#47;ruby-build.git ~&amp;#47;.rbenv&amp;#47;plugins&amp;#47;ruby-build
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;installing-ruby-and-setting-our-version&quot;&gt;Installing Ruby and Setting Our Version&lt;/h2&gt;
+&lt;p&gt;Now use &lt;code&gt;rbenv&lt;/code&gt; to install the desired version of Ruby (we will get an older version for this example):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;rbenv install 3.3.0
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;If you run into issues, you may need to specify your openssl directory:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;RUBY_CONFIGURE_OPTS=&quot;--with-openssl-dir=&amp;#47;usr&amp;#47;local&quot; rbenv install 3.3.0
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;If you&amp;#8217;re on a slower machine (like mine) this might take a little bit. Just grab a coffee or a snack while you wait!&lt;/p&gt;
+&lt;p&gt;Then navigate to your project of choice and set the &lt;code&gt;local&lt;/code&gt; Ruby version:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;rbenv local 3.3.0
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;That&amp;#8217;s it! If you&amp;#8217;d prefer to set this version of Ruby for all projects going forward, simply replace &lt;code&gt;local&lt;/code&gt; with &lt;code&gt;global&lt;/code&gt;.&lt;/p&gt;</description>
+ <link>https://btxx.org/Building_rbenv_on_OpenBSD_7.5</link>
+ <guid isPermaLink="false">https://btxx.org/Building_rbenv_on_OpenBSD_7.5</guid>
+ <pubDate>Sun, 02 Jun 2024 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Installing WordPress on NearlyFreeSpeech</title>
+ <description>&lt;h1 id=&quot;installing-wordpress-on-nearlyfreespeech&quot;&gt;Installing WordPress on NearlyFreeSpeech&lt;/h1&gt;
+&lt;p&gt;2024-05-27&lt;/p&gt;
+&lt;p&gt;I recently went through the process of porting over my wife&amp;#8217;s small business website (built off of WordPress + Woocommerce) from EasyWP to NearlyFreeSpeech. Although the process was fairly easy-going, I thought I would post my complete process here. That way, others who might wish to make the same switch can avoid running into any minor bumps along the way.&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;Note: I&amp;#8217;m not sure how important this is, but I made sure to set my WiFi hardware toggle switch into the &amp;#8220;ON&amp;#8221; position before doing any of the other steps.&lt;/p&gt;
+&lt;p&gt;Some of this information has been lifted from &lt;a href=&quot;https://members.nearlyfreespeech.net/tdarb/support/wordpress&quot;&gt;the official NFS docs&lt;/a&gt;, but these pages require a membership to access&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;p&gt;You can follow the very beautiful visual instructions provided by Lenovo below. Just remember to always power off you machine and remove the battery before tinkering.&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/x201-1.png&quot; alt=&quot;Unscrew the main keyboard and touchpad screws on the back of the laptop&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/x201-2.png&quot; alt=&quot;Gently push the keyboard towards the screen to remove&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/x201-3.png&quot; alt=&quot;The keyboard cable is very fragile, remove it carefully&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/x201-4.png&quot; alt=&quot;Slide the palm rest down and away from the laptop to remove safely&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/x201-5.png&quot; alt=&quot;Remove the two screws on the WiFi card to access it&quot; /&gt;&lt;/p&gt;
-&lt;h2 id=&quot;electrical-tape-fixes-everything&quot;&gt;Electrical Tape Fixes Everything&lt;/h2&gt;
-&lt;p&gt;Now that the WiFi card has been safely removed from its port (you most likely do not need to disconnect the cables though!) it is time to block PIN20.&lt;/p&gt;
-&lt;p&gt;On the Centrino Advanced-N 6200 card PIN20 is located on the back side, since the front is designated to all odd-set pins. You&amp;#8217;ll need to cut a ridiculously thin piece of electrical tape to cover this &lt;em&gt;single&lt;/em&gt; pin. I found this part to be the most taxing of my patience during the entire process. Just keep thinking happy thoughts and you can do it!&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/x201-tape.jpg&quot; alt=&quot;My hacky electrical tape job on PIN20&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;Once it is on PIN20, place your card back into its port, rebuild you X201, pop in your battery and boot up! If things were done properly, your WiFi should now be rock solid.&lt;/p&gt;
-&lt;p&gt;Best of all, you don&amp;#8217;t have to worry about accidentally toggling your WiFi toggle switch - it does nothing! Mine is actually set in the &amp;#8220;OFF&amp;#8221; position all the time now.&lt;/p&gt;
-&lt;p&gt;Enjoy less flaky WiFi.&lt;/p&gt;</description>
- <link>https://btxx.org/x201</link>
- <guid isPermaLink="false">https://btxx.org/x201</guid>
- <pubDate>Sun, 02 Apr 2023 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>WP Enqueue for Beginners</title>
- <description>&lt;h1 id=&quot;wp-enqueue-for-beginners&quot;&gt;WP Enqueue for Beginners&lt;/h1&gt;
-&lt;p&gt;2020-05-05&lt;/p&gt;
-&lt;p&gt;Throughout my career designing, developing and auditing WordPress themes, I&amp;#8217;ve come across many that include their custom styles &amp;#47; scripts as static HTML elements inside their respective &lt;code&gt;header&lt;/code&gt; and &lt;code&gt;footer&lt;/code&gt; templates. This is perfectly &lt;em&gt;fine&lt;/em&gt;, but there is a cleaner way to include these files.&lt;/p&gt;
-&lt;p&gt;This post is purposefully catered for WordPress beginners, so if this seems overly simple, then you&amp;#8217;re probably already developing WordPress themes that utilize these techniques. (Which is awesome!)&lt;/p&gt;
-&lt;h2 id=&quot;introducing-wp-enqueue&quot;&gt;Introducing WP Enqueue&lt;/h2&gt;
-&lt;p&gt;The description of Wp Enqueue from the WordPress documentation:&lt;/p&gt;
-&lt;p&gt;In a nutshell: Placing a &lt;code&gt;wp_enqueue_script&lt;/code&gt; or &lt;code&gt;wp_enqueue_style&lt;/code&gt; script in the &lt;code&gt;functions.php&lt;/code&gt; of your custom theme tells WordPress to pull external files into the header or footer of your website. Best practice being: &lt;em&gt;styles into the header, scripts into the footer&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;I suggest you read the official documentation for more details: &lt;a href=&quot;https://developer.wordpress.org/reference/functions/wp_enqueue_script/&quot;&gt;wp_enqueue_script&lt;/a&gt; and &lt;a href=&quot;https://developer.wordpress.org/reference/functions/wp_enqueue_style/&quot;&gt;wp_enqueue_style&lt;/a&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;enqueue-stylesheets&quot;&gt;Enqueue Stylesheets&lt;/h2&gt;
-&lt;p&gt;The default script to enqueue a CSS stylesheet:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;wp_enqueue_style( $handle, $src, $deps, $ver, $media );
-&lt;/code&gt;&lt;/pre&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;code&gt;$handle&lt;/code&gt; - the name associated with your stylesheet&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$src&lt;/code&gt; - URL pointing to the directory of the stylesheet itself&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$deps&lt;/code&gt; - An array of any other stylesheets needed as dependencies&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$ver&lt;/code&gt; - The version number of the stylesheet (used for cache busting)&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$media&lt;/code&gt; - Specify media type (&lt;code&gt;all&lt;/code&gt;, &lt;code&gt;print&lt;/code&gt;, &lt;code&gt;screen&lt;/code&gt;, etc.)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;So, with all those parameters in mind, here is what a standard default enqueue of a CSS stylesheet looks like:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;wp_enqueue_style( &amp;#39;google-fonts&amp;#39;, &amp;#39;https:&amp;#47;&amp;#47;fonts.googleapis.com&amp;#47;css?family=Montserrat:200,300,300i,400,600,700,800,900&amp;#39;, &amp;#39;&amp;#39;, &amp;#39;1.0&amp;#39;, &amp;#39;&amp;#39;);
+&lt;h3 id=&quot;download-wordpress&quot;&gt;Download WordPress&lt;/h3&gt;
+&lt;p&gt;We will use the &lt;code&gt;wp-cli&lt;/code&gt; that comes packaged with NearlyFreeSpeech (NFS):&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Connect to your site via SSH.&lt;/li&gt;
+&lt;li&gt;Change to the directory you want to be the base of your blog (e.g. &amp;#47;home&amp;#47;public if WordPress will be running the whole site, or &amp;#47;home&amp;#47;public&amp;#47;blog if you want to share the site with other content).&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;For help using WP-CLI from the SSH command line, use this command:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;wp help
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;In this example we have rendered the following:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;code&gt;$handle&lt;/code&gt;: google-fonts&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$src&lt;/code&gt;: &lt;a href=&quot;https://fonts.googleapis.com/css?family=Montserrat:200,300,300i,400,600,700,800-&quot;&gt;https:&amp;#47;&amp;#47;fonts.googleapis.com&amp;#47;css?family=Montserrat:200,300,300i,400,600,700,800-&lt;/a&gt; 0&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$deps&lt;/code&gt;: Null (left blank)&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$ver&lt;/code&gt;: 1.0&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$media&lt;/code&gt;: Null (left blank)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; Keep in mind that the &lt;code&gt;wp_enqueue_style&lt;/code&gt; script will render the stylesheet link into the WordPress header automatically.&lt;/p&gt;
-&lt;h2 id=&quot;enqueue-scripts&quot;&gt;Enqueue Scripts&lt;/h2&gt;
-&lt;p&gt;The default script to enqueue an external JS file:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer );
+&lt;p&gt;To download and unpack the latest version of WordPress, enter the following command:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;wp core download
&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;create-a-mysql-process-and-database&quot;&gt;Create a MySQL Process and Database&lt;/h2&gt;
+&lt;p&gt;Follow the instructions in the NearlyFreeSpeech.NET FAQ to &lt;a href=&quot;https://members.nearlyfreespeech.net/faq?q=MySQL#MySQL&quot;&gt;create a MySQL process&lt;/a&gt; if you haven&amp;#8217;t already.&lt;/p&gt;
+&lt;p&gt;Next, &lt;a href=&quot;https://members.nearlyfreespeech.net/faq?q=CreateDatabase#CreateDatabase&quot;&gt;create a new database&lt;/a&gt; within that process. Note the name of the process and the name of the database.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: Do not use your own MySQL credentials to connect WordPress to your database. Instead, create a new user. This will protect your member password in the event that your site becomes compromised.&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;code&gt;$handle&lt;/code&gt; - the name associated with your script&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$src&lt;/code&gt; - URL pointing to the directory of the script itself&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$deps&lt;/code&gt; - An array of any other scripts needed as dependencies&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$ver&lt;/code&gt; - The version number of the script (used for cache busting)&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$in_footer&lt;/code&gt; - Set whether the script is loaded in the &lt;code&gt;&amp;#60;head&amp;#62;&lt;/code&gt; or just before the &lt;code&gt;&amp;#60;&amp;#47;body&amp;#62;&lt;/code&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;With all those parameters in mind, here is what a standard default enqueue of a Javascript file looks like:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;wp_enqueue_script( &amp;#39;bxslider&amp;#39;, get_template_directory_uri() . &amp;#39;&amp;#47;js&amp;#47;bxslider.js&amp;#39;, array(&amp;#39;jquery&amp;#39;), &amp;#39;1.0.0&amp;#39;, true );
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;In this example we have rendered the following:&lt;/p&gt;
+&lt;li&gt;Click on the &lt;a href=&quot;https://members.nearlyfreespeech.net/mysql&quot;&gt;MySQL tab&lt;/a&gt; in the member interface&lt;/li&gt;
+&lt;li&gt;Click &amp;#8220;[Open phpMyAdmin](&lt;a href=&quot;https://phpmyadmin.nearlyfreespeech.net/&quot;&gt;https:&amp;#47;&amp;#47;phpmyadmin.nearlyfreespeech.net&amp;#47;&lt;/a&gt;&amp;#8221; in the Actions box.&lt;/li&gt;
+&lt;li&gt;Enter the DSN (&amp;#8220;Server&amp;#8221;) of your MySQL Process, MySQL username, and MySQL password. The DSN and username can be found on the Process Information page in our member UI.&lt;/li&gt;
+&lt;li&gt;Click on the &amp;#8220;Users&amp;#8221; tab.&lt;/li&gt;
+&lt;li&gt;Click &amp;#8220;Add user.&amp;#8221; (It&amp;#8217;s toward the bottom left of the page.)&lt;/li&gt;
+&lt;li&gt;Give the user a descriptive name. We&amp;#8217;ll use exampledbuser here, but you should pick something better, like wpuser or something representative of your blog.&lt;/li&gt;
+&lt;li&gt;Make sure to leave the Host: selectbox on &amp;#8220;Any host.&amp;#8221;&lt;/li&gt;
+&lt;li&gt;Click the &amp;#8220;Generate&amp;#8221; link to generate a nice strong password.&lt;/li&gt;
+&lt;li&gt;Use cut and paste to copy the new password somewhere, you&amp;#8217;ll need it later. (We&amp;#8217;ll use dbpassword here.)&lt;/li&gt;
+&lt;li&gt;Grant the following permissions to the new user:
&lt;ul&gt;
-&lt;li&gt;&lt;code&gt;$handle&lt;/code&gt;: bxslider&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$src&lt;/code&gt;: get_template_directory_uri() . &amp;#47;js&amp;#47;bxslider.js&amp;#8217;&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$deps&lt;/code&gt;: array(jquery&amp;#8217;)&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$ver&lt;/code&gt;: 1.0.0&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;$in_footer&lt;/code&gt;: True (&lt;em&gt;places script before closing body tag&lt;/em&gt;)&lt;/li&gt;
+&lt;li&gt;All the permissions except &amp;#8220;file&amp;#8221; in the &amp;#8220;data&amp;#8221; box,&lt;/li&gt;
+&lt;li&gt;Everything in the &amp;#8220;structure&amp;#8221; box, and&lt;/li&gt;
+&lt;li&gt;&amp;#8220;LOCK TABLES&amp;#8221; in the &amp;#8220;administration&amp;#8221; box.&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Click the &amp;#8220;Go&amp;#8221; button in the lower right.&lt;/li&gt;
+&lt;li&gt;Exit phpMyAdmin.&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;packaging-everything-together&quot;&gt;Packaging Everything Together&lt;/h2&gt;
-&lt;p&gt;Now that we have the custom stylesheet and script ready to be loaded into our custom WordPress theme, we just need to properly package them together as a function in our &lt;code&gt;functions.php&lt;/code&gt; file:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;&amp;#47; Add styles and scripts to the header&amp;#47;footer
-function custom_enqueue_scripts() {
- wp_enqueue_style( &amp;#39;google-fonts&amp;#39;, &amp;#39;https:&amp;#47;&amp;#47;fonts.googleapis.com&amp;#47;css?family=Montserrat:200,300,300i,400,600,700,800,900&amp;#39;);
- wp_enqueue_script( &amp;#39;bxslider&amp;#39;, get_template_directory_uri() . &amp;#39;&amp;#47;js&amp;#47;bxslider.js&amp;#39;, array(&amp;#39;jquery&amp;#39;), &amp;#39;1.0.0&amp;#39;, true );
-}
-
-add_action( &amp;#39;wp_enqueue_scripts&amp;#39;, &amp;#39;custom_enqueue_scripts&amp;#39;);
+&lt;h2 id=&quot;generate-a-wordpress-configuration-file&quot;&gt;Generate a WordPress Configuration File&lt;/h2&gt;
+&lt;p&gt;At the SSH command line (replace the examples with the info for the database and user you created above):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;wp core config --dbhost=example.db --dbname=exampledb --dbuser=exampledbuser --dbpass=dbpassword
+chmod 644 wp-config.php
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it! Hopefully this helps prevent WordPress newbies from statically rendering their external CSS and JS files directly in template files. Let WordPress do that for you!&lt;/p&gt;</description>
- <link>https://btxx.org/wp-enqueue-for-beginners</link>
- <guid isPermaLink="false">https://btxx.org/wp-enqueue-for-beginners</guid>
- <pubDate>Tue, 05 May 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Setting Up Jekyll on Windows </title>
- <description>&lt;h1 id=&quot;setting-up-jekyll-on-windows&quot;&gt;Setting Up Jekyll on Windows&lt;/h1&gt;
-&lt;p&gt;2022-09-02&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ve recently been playing around with using Windows 10 as my daily operating system. So far, it has been going fairly well. Nothing will probably ever feel as &amp;#8220;optimized&amp;#8221; as running a Linux-based system but it works well for my current needs. Getting a Jekyll development environment setup was a different story though&amp;#8230;&lt;/p&gt;
-&lt;p&gt;One of the first issues with using Windows 10 is the need to run a few of my open source projects that are built off Jekyll locally. This process initially seemed a like complex process to get things running smoothly but in the end was very straightforward. The main issue came from needing to bounce around through a handful of separate tutorials to get everything running smoothly.&lt;/p&gt;
-&lt;p&gt;So, I thought I would make this quick write-up to help those in the same situation (or even for my future self the need arises). Let&amp;#8217;s get into it.&lt;/p&gt;
-&lt;h2 id=&quot;wsl&quot;&gt;WSL&lt;/h2&gt;
-&lt;p&gt;The first step involves installing &lt;a href=&quot;https://docs.microsoft.com/en-us/windows/wsl/install&quot;&gt;WSL&lt;/a&gt; in order to run Linux alongside the main Windows OS. The documentation is well written and will get you up-and-running in no time. For quick reference, it essentially comes down to:&lt;/p&gt;
+&lt;h2 id=&quot;run-the-wordpress-installation-and-setting-permissions&quot;&gt;Run the WordPress Installation and Setting Permissions&lt;/h2&gt;
+&lt;p&gt;To get your permalinks to work properly, you must set up an .htaccess file. &lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;Opening PowerShell or Command Prompt as an administrator&lt;/li&gt;
-&lt;li&gt;Installing via the command: &lt;code&gt;wsl --install&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;Restarting your machine after the install completes&lt;/li&gt;
-&lt;li&gt;Creating your UNIX username and password&lt;/li&gt;
+&lt;li&gt;Go to the Dashboard for your WordPress site. (e.g. &lt;a href=&quot;https://www.example.com/wp-admin/index.php&quot;&gt;https:&amp;#47;&amp;#47;www.example.com&amp;#47;wp-admin&amp;#47;index.php&lt;/a&gt;)&lt;/li&gt;
+&lt;li&gt;In the navigation sidebar, find Settings and, under that, Permalinks.&lt;/li&gt;
+&lt;li&gt;Select your preferred link style under &amp;#8220;Common Settings.&amp;#8221; (We like &amp;#8220;Day and name.&amp;#8221;)&lt;/li&gt;
+&lt;li&gt;Scroll down and select the &amp;#8220;Save Changes&amp;#8221; button.&lt;/li&gt;
&lt;/ol&gt;
-&lt;h2 id=&quot;installing-ruby-dependencies&quot;&gt;Installing Ruby &amp;#38; Dependencies&lt;/h2&gt;
-&lt;p&gt;Once logged into your UNIX terminal session (with your created user) you can begin installing everything we need for Jekyll to work properly. The first step is to installing &lt;code&gt;rvm&lt;/code&gt; and the &lt;a href=&quot;https://github.com/rvm/ubuntu_rvm&quot;&gt;official project documentation&lt;/a&gt; does a very good job of walking you through this.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;p&gt;Be sure dependencies as installed: &lt;code&gt;sudo apt-get install software-properties-common&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Add the PPA and install the package:&lt;/p&gt;
-&lt;p&gt;sudo apt-add-repository -y ppa:rael-gc&amp;#47;rvm
-sudo apt-get update
-sudo apt-get install rvm&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Add your existing user to the &lt;code&gt;rvm&lt;/code&gt; group: &lt;code&gt;sudo usermod -a -G rvm $USER&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;You will need to close and restart your session to your Ubuntu system for these changes to take. After that, we can use &lt;code&gt;rvm&lt;/code&gt; to install the latest version (at this time of writing) of ruby:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;rvm install 3.1.2
+&lt;p&gt;Next, create an &lt;code&gt;.htaccess&lt;/code&gt; file for your WordPress site. We suggest doing this directly from the SSH command line using the cat shell command:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;cat &amp;#62;.htaccess &amp;#60;&amp;#60;NFSNRULES # This line is a shell command, not part of .htaccess!
+RewriteEngine On
+RewriteBase &amp;#47;
+RewriteRule ^index\.php$ - [L]
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule . &amp;#47;index.php [L]
+NFSNRULES
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it!&lt;/p&gt;
-&lt;h2 id=&quot;jekyll---finally&quot;&gt;Jekyll - Finally!&lt;/h2&gt;
-&lt;p&gt;The final step is to update our gems and install Jekyll:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;gem update
-gem install jekyll bundler
+&lt;p&gt;If you prefer, you can copy-paste the text into an editor:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;RewriteEngine On
+RewriteBase &amp;#47;
+RewriteRule ^index\.php$ - [L]
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule . &amp;#47;index.php [L]
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Once complete you can now run your Jekyll projects locally through WSL! Nothing ground-breaking but still pretty helpful for first-time users. And best of all, at least I have a good reference point in the future if I ever run into this issue again!&lt;/p&gt;</description>
- <link>https://btxx.org/windows</link>
- <guid isPermaLink="false">https://btxx.org/windows</guid>
- <pubDate>Fri, 02 Sep 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Width or Flex-Basis?</title>
- <description>&lt;h1 id=&quot;width-or-flex-basis&quot;&gt;Width or Flex-Basis?&lt;/h1&gt;
-&lt;p&gt;2018-11-28&lt;/p&gt;
-&lt;p&gt;Creating rows and columns of elements that adapt dynamically can be a little tricky depending on the desired outcome. Let&amp;#8217;s breakdown how to solve this issue using both &lt;code&gt;inline-block&lt;/code&gt; paired with &lt;code&gt;width&lt;/code&gt; and &lt;code&gt;flex-basis&lt;/code&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;width&quot;&gt;Width&lt;/h2&gt;
-&lt;p&gt;Setting the width of the inner children to a divisible value and setting their display to &lt;code&gt;inline-block&lt;/code&gt;, we are able to create self-wrapping elements:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.width-container {
- display: block;
-}
-.width-container__item {
- display: inline-block;
- width: calc(33% - 3px); &amp;#47;* Fix for wonky inline-block margins *&amp;#47;
-}
+&lt;p&gt;We need to run the following commands in order to install, uninstall, activate, and deactivate plugins&amp;#47;themes from within the admin web GUI of WordPress:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;chgrp web .htaccess
+chmod 664 .htaccess
+chgrp -R web *
+find . -type d -exec chmod 775 {} \;
+find . -type f -exec chmod 664 {} \;
+wp config set FS_METHOD direct
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;pros&quot;&gt;Pros&lt;/h3&gt;
+&lt;h2 id=&quot;enable-file-uploading&quot;&gt;Enable File Uploading&lt;/h2&gt;
+&lt;p&gt;In your main WordPress installation folder enter the following SSH commands:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;cd wp-content
+mkdir -p uploads
+chgrp -R web uploads
+chmod -R 775 uploads
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;keeping-wordpress-up-to-date-automatically-via-command-line&quot;&gt;Keeping WordPress Up-To-Date Automatically via Command Line&lt;/h2&gt;
+&lt;p&gt;It is &lt;strong&gt;critically&lt;/strong&gt; important to keep your WordPress installation up-to-date including, if applicable, your theme and plugins. PHP, WordPress, and WordPress themes and plugins all have a track record of security problems. Most of those get fixed quickly, but if you don&amp;#8217;t update, you don&amp;#8217;t get the fixes.&lt;/p&gt;
+&lt;p&gt;To help you keep WordPress up-to-date, NFS provides a streamlined script.&lt;/p&gt;
+&lt;p&gt;This command, which must be run from an interactive ssh session, will set up our system to check your WordPress install (and themes &amp;#38; plugins) for you every day, and update them automatically when needed:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;wp-update.sh -a
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;By default, it will tell you via email when updates happen. If you don&amp;#8217;t want that, just add &lt;code&gt;-q&lt;/code&gt; (for &amp;#8220;quiet&amp;#8221;) to the command. It will work silently unless there is an error.&lt;/p&gt;
+&lt;p&gt;If you get errors from wp-cron (not wp-update) about failed automatic updates, you may also wish to add this to your wp-config.php file:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;define( &amp;#39;AUTOMATIC_UPDATER_DISABLED&amp;#39;, true );
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;This disables the insecure automatic updater bundled with recent versions of WordPress.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Do not attempt&lt;/strong&gt; to use WordPress&amp;#8217;s built-in ability to update itself through its admin panel. That insecure, outdated approach should not still exist. It does not work on NFS, which is a feature, not a bug. Getting it to work requires almost completely destroying your site&amp;#8217;s security, thereby ensuring that any undiscovered security flaw can enable hackers to completely obliterate your site. The update methods described here are faster, easier, and safer.&lt;/p&gt;
+&lt;h2 id=&quot;logging-in&quot;&gt;Logging In&lt;/h2&gt;
+&lt;p&gt;You should be able to navigate to &lt;code&gt;yourwebsite.com&amp;#47;wp-admin&lt;/code&gt;, login and have everything work as expected. Congrats - enjoy your blog!&lt;/p&gt;
+&lt;p&gt;Below you can find more advanced configuration to get the most out of your WordPress project.&lt;/p&gt;
+&lt;hr/&gt;
+&lt;h2 id=&quot;backing-up-wordpress&quot;&gt;Backing up WordPress&lt;/h2&gt;
+&lt;p&gt;NFS recommends backing up your WordPress setup on a regular basis.&lt;/p&gt;
+&lt;p&gt;This is a two-step process. You must back up both the files and the database.&lt;/p&gt;
+&lt;h3 id=&quot;backing-up-wordpress-files&quot;&gt;Backing up WordPress Files&lt;/h3&gt;
+&lt;p&gt;To back up your WordPress files directly from a Unix-like system of your own, you can use a command like:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;ssh yourmembername_siteshortname@ssh.phx.nearlyfreespeech.net tar -C &amp;#47;home&amp;#47;public -cvf - . | gzip &amp;#62;name-of-wordpress-backup.tar.gz
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;To back up WordPress to a file on our system that you can transfer via SFTP to your own computer, you can use a command like:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;tar -C &amp;#47;home&amp;#47;public -cvzf &amp;#47;home&amp;#47;tmp&amp;#47;name-of-wordpress-backup.tar.gz .
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;This assumes that your WordPress install is in the default location (&lt;code&gt;&amp;#47;home&amp;#47;public&lt;/code&gt;). It will put your backup file in your &lt;code&gt;&amp;#47;home&amp;#47;tmp&lt;/code&gt; directory.&lt;/p&gt;
+&lt;p&gt;Do not try to back up your WordPress folder into your WordPress folder, as that occasionally results in attempts to use infinite disk space by trying to back up the backup of the backup of the backup of the&amp;#8230;&lt;/p&gt;
+&lt;h3 id=&quot;backing-up-the-wordpress-database&quot;&gt;Backing up the WordPress Database&lt;/h3&gt;
+&lt;p&gt;If you have a Unix-like system of your own (e.g. macOS or Linux), you can do the backup directly from there using your local command prompt using the MySQL username and password you created for WordPress:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;ssh yourmembername_siteshortname@ssh.phx.nearlyfreespeech.net wp db export - | gzip &amp;#62;wordpress-backup.sql.gz
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Or you can do it from the SSH command line via WP-CLI:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;wp db export &amp;#47;home&amp;#47;tmp&amp;#47;wordpress-backup.sql
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;The &lt;code&gt;wordpress-backup.sql&lt;/code&gt; file this generates will be stored in your site&amp;#8217;s &lt;code&gt;&amp;#47;home&amp;#47;tmp&lt;/code&gt; directory. Download it from there to have a local copy.&lt;/p&gt;
+&lt;h2 id=&quot;thats-it&quot;&gt;That&amp;#8217;s It!&lt;/h2&gt;
+&lt;p&gt;Your WordPress site should be up-and-running now. Further customization or extra plugins&amp;#47;services can be freely added if so desired. Enjoy your site!&lt;/p&gt;</description>
+ <link>https://btxx.org/Installing_WordPress_on_NearlyFreeSpeech</link>
+ <guid isPermaLink="false">https://btxx.org/Installing_WordPress_on_NearlyFreeSpeech</guid>
+ <pubDate>Mon, 27 May 2024 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>My Text Edtior is Not Open Source</title>
+ <description>&lt;h1 id=&quot;my-text-edtior-is-not-open-source&quot;&gt;My Text Edtior is Not Open Source&lt;/h1&gt;
+&lt;p&gt;2024-01-02&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ve been using Sublime Text on and off for longer than I can remember. I think Sublime has been around since the start of my &amp;#8220;real&amp;#8221; career over 10 years ago, but I could be mistaken&lt;sup id=&quot;fnref1&quot;&gt;&lt;a href=&quot;#fn1&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;. It certainly &lt;em&gt;feels&lt;/em&gt; that long. And in that time I have never gotten upset with Sublime. I&amp;#8217;ve never rage quit or ran into an issue of Sublime not being able to &lt;em&gt;do the thing I wanted it to do&lt;/em&gt;. As much of a cliche it may sound: it just works.&lt;/p&gt;
+&lt;p&gt;Even when I switch editors (VSCode, Geany, kitty+vim etc.) for a period of time, I find myself always coming back to Sublime. The only reason I try other editors is simply that: to try them. Maybe that&amp;#8217;s why these editors don&amp;#8217;t click with me. Maybe I&amp;#8217;m giving Sublime an unfair advantage since I&amp;#8217;m simply &amp;#8220;testing&amp;#8221; other editors, rather than looking for a solid alternative.&lt;/p&gt;
+&lt;p&gt;And don&amp;#8217;t get me wrong, I understand &lt;em&gt;why&lt;/em&gt; editors like VSCode are extremely popular. VSCode has a massive ecosystem and new plugins are generally developed for that editor before all others. Finding solutions to problems online is very easy, since it is so popular. But best of all - it&amp;#8217;s open source&lt;sup id=&quot;fnref2&quot;&gt;&lt;a href=&quot;#fn2&quot; rel=&quot;footnote&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;
+&lt;p&gt;So why am I using a &lt;em&gt;non&lt;/em&gt;-open source editor? (Spoilers: because it&amp;#8217;s a great editor)&lt;/p&gt;
+&lt;h2 id=&quot;a-proprietary-editor---how-could-you&quot;&gt;&amp;#8220;A Proprietary Editor - How Could You?!&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;I know, I know. If you&amp;#8217;re familiar with me or the things I write about it must seem odd that I would willingly use proprietary software over open source. This is something I struggle with constantly day-to-day in the realm of &amp;#8220;personal tech&amp;#8221;. I find with age I become more open-minded to having a diverse range of software and hardware choices. Open source is best in &lt;em&gt;concept&lt;/em&gt; but not always best in practice.&lt;/p&gt;
+&lt;p&gt;The problem is that Sublime is just such a &lt;em&gt;great&lt;/em&gt; editor. I can&amp;#8217;t ignore quality and refuse to use good software solely based on it&amp;#8217;s licensing. A few personal things I love about Sublime:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Full browser support (as far back as IE6)&lt;/li&gt;
-&lt;li&gt;No floats needed&lt;/li&gt;
+&lt;li&gt;Incredibly fast&lt;/li&gt;
+&lt;li&gt;Handles massive files without breaking a sweat&lt;/li&gt;
+&lt;li&gt;Minimal resource footprint (ex. uses &amp;#60;0.1% CPU working on huge projects)&lt;/li&gt;
+&lt;li&gt;Large ecosystem of plugins&amp;#47;themes&lt;/li&gt;
+&lt;li&gt;No Electron&lt;/li&gt;
&lt;/ul&gt;
-&lt;h3 id=&quot;cons&quot;&gt;Cons&lt;/h3&gt;
+&lt;p&gt;Other editors can certainly check off a few of those boxes as well, but you&amp;#8217;d be hard-pressed to find one that checks off them all.&lt;/p&gt;
+&lt;h2 id=&quot;being-a-cheapskate&quot;&gt;Being a Cheapskate&lt;/h2&gt;
+&lt;p&gt;I must confess something that I think most Sublime users are guilty of: I&amp;#8217;ve never &lt;a href=&quot;https://www.sublimehq.com/store/text&quot;&gt;bought a license&lt;/a&gt;. I&amp;#8217;ve installed and used Sublime on countless machines, on multiple operating systems from Linux to Windows to MacOS. That &lt;code&gt;Unregistered&lt;/code&gt; text in the top right application bar has been with me since the beginning. But that in no longer the case.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;I finally purchased a license.&lt;/strong&gt; I bundled it with &lt;a href=&quot;https://www.sublimemerge.com/&quot;&gt;Sublime Merge&lt;/a&gt;, so it ended up costing me $168 USD. When I initially looked at that price tag I must admit I was tempted to close the browser tab and forget the whole thing. But then I realized I have been using this editor &lt;em&gt;free of charge&lt;/em&gt; for over 10 years. (Not to mention using Sublime Merge for quite some time as well!)&lt;/p&gt;
+&lt;p&gt;So I did a little math:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;$168 &amp;#47; 10 years = $16.80
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Looking at it in that perspective, it&amp;#8217;s actually a great deal. Not to mention they have very respectable terms for their licenses:&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;Personal licenses come with 3 years of updates. After 3 years, you&amp;#8217;ll be able to continue to use the last version released within 3 years of purchase (in other words, licenses do not expire). Any versions released 3 years or more after the purchase date will require a paid upgrade to use.&lt;/p&gt;
+&lt;p&gt;Individual licenses are valid for 3 years of updates, but do not expire after 3 years. Only if you wish to use newer versions will an upgrade fee be required. &lt;/p&gt;
+&lt;p&gt;Licenses are per-user, so you&amp;#8217;re welcome to use the one license on all computers and operating systems where you are the primary user.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;I won&amp;#8217;t copy everything from their main &lt;a href=&quot;https://www.sublimehq.com/sales_faq&quot;&gt;FAQ page&lt;/a&gt; but as you can see it is very reasonable. I also get to feel decent for supporting developers who make very good software.&lt;/p&gt;
+&lt;h2 id=&quot;final-notes&quot;&gt;Final Notes&lt;/h2&gt;
+&lt;p&gt;This post is not meant to convince you to switch or anything of that nature. Use what works for you! I just wanted to share my own personal preference when it came to my main text editor. Maybe this will also convince &amp;#8220;hardcore&amp;#8221; open source people (like me!) to realize it is &lt;em&gt;okay&lt;/em&gt; to pay for software sometimes&amp;#8230;&lt;/p&gt;
+&lt;hr/&gt;
+&lt;p&gt;I should be very clear about something: this post &lt;em&gt;is not an advertisement&lt;/em&gt;. I have not received any money or &amp;#8220;kick backs&amp;#8221; to write about my happy times with Sublime. This is purely my own opinion that I wanted to share with the internet!&lt;/p&gt;
+&lt;p&gt;BTW if anyone from SublimeHQ happens to come across this post: PLEASE look into building a &amp;#8220;native&amp;#8221; version of Sublime Text for FreeBSD&amp;#47;OpenBSD. I (and many others) would be forever grateful!&lt;/p&gt;
+&lt;div class=&quot;footnotes&quot;&gt;
+&lt;hr/&gt;
+&lt;ol&gt;
+
+&lt;li id=&quot;fn1&quot;&gt;
+&lt;p&gt;Sublime does mention copyright since 2006&amp;#8230;&amp;#160;&lt;a href=&quot;#fnref1&quot; rev=&quot;footnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
+&lt;/li&gt;
+
+&lt;li id=&quot;fn2&quot;&gt;
+&lt;p&gt;Not the pre-packaged Microsoft version&amp;#160;&lt;a href=&quot;#fnref2&quot; rev=&quot;footnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
+&lt;/li&gt;
+
+&lt;/ol&gt;
+&lt;/div&gt;</description>
+ <link>https://btxx.org/My_Text_Editor_Is_Not_Open_Source</link>
+ <guid isPermaLink="false">https://btxx.org/My_Text_Editor_Is_Not_Open_Source</guid>
+ <pubDate>Tue, 02 Jan 2024 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>New Domain and Code Forge</title>
+ <description>&lt;h1 id=&quot;new-domain-and-code-forge&quot;&gt;New Domain and Code Forge&lt;/h1&gt;
+&lt;p&gt;2024-01-29&lt;/p&gt;
+&lt;p&gt;As you can clearly see, my site&amp;#8217;s domain has switched over to &lt;strong&gt;btxx.org&lt;/strong&gt;. This post will go into details about the reason for this URL swap (spoilers: I&amp;#8217;m a cheapskate) - but that isn&amp;#8217;t all. I have moved my personal git repositories over to my own hosting. I will explain the reasoning for that switch as well.&lt;/p&gt;
+&lt;p&gt;But enough introductions, let&amp;#8217;s get into it!&lt;/p&gt;
+&lt;h2 id=&quot;bt.ht-is-no-more&quot;&gt;bt.ht is No More&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve abandoned &lt;code&gt;bt.ht&lt;/code&gt;. Well, kind of. That domain doesn&amp;#8217;t expire until 2025, which works out nicely since I can keep a complete web forward active for the entire year. This will avoid such a radical switch, similar to what I did years ago with my &amp;#8220;uglyduck&amp;#8221; domain&lt;sup id=&quot;fnref1&quot;&gt;&lt;a href=&quot;#fn1&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;. Hopefully anyone who follows my dumb ramblings will have more than enough time to become familiar with the new URL.&lt;/p&gt;
+&lt;p&gt;For reference, those interested in updating their RSS will need to use the latest URLs: &lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Buggy &lt;code&gt;margin&lt;/code&gt; workaround needed&lt;/li&gt;
-&lt;li&gt;Wrapped elements cannot dynamically fill remaining empty parent space&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://btxx.org/index.rss&quot;&gt;RSS&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://btxx.org/index.atom&quot;&gt;Atom&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;flex-basis&quot;&gt;Flex-basis&lt;/h2&gt;
-&lt;p&gt;This is my personal preference for dynamically wrapping inner children elements. Simply set the parent as &lt;code&gt;display: flex&lt;/code&gt;, allow flex-wrapping and then set the &lt;code&gt;flex-basis&lt;/code&gt; of the children to any percentage value.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.flex-container {
- display: flex;
- flex-wrap: wrap;
-}
-.flex-container__item {
- flex: 1 1 auto;
- flex-basis: 33%;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;You will also notice the &lt;code&gt;flex&lt;/code&gt; property set to &lt;code&gt;1 1 auto&lt;/code&gt;. This is important if you require your wrapped elements to fill the remaining space of the parent container.&lt;/p&gt;
-&lt;h3 id=&quot;pros-1&quot;&gt;Pros&lt;/h3&gt;
+&lt;p&gt;You have roughly a year to do so, since new posts should still automatically appear even with defaulting to the older URL (hooray for 301 redirects!).&lt;/p&gt;
+&lt;p&gt;There were two core reasons for switching domains. The first was based off a change in ownership with my previous domain registrar, Gandi. You can read more details &lt;a href=&quot;https://news.ycombinator.com/item?id=35080777&quot;&gt;here&lt;/a&gt;, but they were essentially bought out, then decided to cancel their free email service and raised their prices. Not many registrars support the &lt;code&gt;.ht&lt;/code&gt; TLD, so moving to another provider was already proving to be difficult. Once my mind was made up that I didn&amp;#8217;t want to support such shady actions from a company, I thought even more about the concept of spending &lt;em&gt;so much&lt;/em&gt; on a domain name in the first place. It was a novelty to have such a &amp;#8220;short&amp;#8221; domain, but that seems silly in hindsight.&lt;/p&gt;
+&lt;p&gt;Just take a look at the differences in domain costs and email services below:&lt;/p&gt;
+&lt;table&gt;
+&lt;thead&gt;
+&lt;tr&gt;
+&lt;th&gt;URL&lt;/th&gt;
+&lt;th&gt;Domain&amp;#47;year&lt;/th&gt;
+&lt;th&gt;Email&amp;#47;year&lt;/th&gt;
+&lt;th&gt;Total&lt;/th&gt;
+&lt;/tr&gt;
+&lt;/thead&gt;
+&lt;tbody&gt;
+&lt;tr&gt;
+&lt;td&gt;bt.ht&lt;/td&gt;
+&lt;td&gt;$172&lt;/td&gt;
+&lt;td&gt;$60&lt;/td&gt;
+&lt;td&gt;$232&lt;/td&gt;
+&lt;/tr&gt;
+&lt;tr&gt;
+&lt;td&gt;btxx.org&lt;/td&gt;
+&lt;td&gt;$17&lt;/td&gt;
+&lt;td&gt;$19&lt;/td&gt;
+&lt;td&gt;$36&lt;/td&gt;
+&lt;/tr&gt;
+&lt;/tbody&gt;
+&lt;/table&gt;
+&lt;p&gt;By making this switch (for both my domain and email service) I would save a yearly total of &lt;strong&gt;$196 USD&lt;/strong&gt;. This was a no-brainer. The minute I did the math I thought, &amp;#8220;Hell, I&amp;#8217;m already moving everything to a different registrar &lt;em&gt;and&lt;/em&gt; I need to look for a separate email provider&amp;#8230;why not just start fresh with a new, &lt;em&gt;cheaper&lt;/em&gt; domain?&amp;#8221;&lt;/p&gt;
+&lt;p&gt;So that&amp;#8217;s what I&amp;#8217;ve done.&lt;/p&gt;
+&lt;h2 id=&quot;my-own-code-forge&quot;&gt;My Own Code Forge&lt;/h2&gt;
+&lt;p&gt;As some people in the open source community might already be aware, &lt;a href=&quot;https://sourcehut.org&quot;&gt;sourcehut&lt;/a&gt; had a major outage a couple weeks back. It lasted a few days and all services were impacted. This meant that all publicly hosted websites, build processes and &lt;code&gt;git&lt;/code&gt; repositories were unavailable. It was no fault of sourcehut of course, they were viciously attacked for no &lt;em&gt;real&lt;/em&gt; reason. &lt;/p&gt;
+&lt;p&gt;But this outage did get me thinking about what it means to &amp;#8220;control&amp;#8221; my own code. I always liked the idea of hosting my own git projects but relied on third-party services since they were more convenient. The problem with entrusting anything, not just code storage, to third-party services is lack of oversight. You really have no idea what is happening behind the scenes. You don&amp;#8217;t control your own backups. You don&amp;#8217;t have the freedom to tweak UI or user flow of your project views (which I understand is certainly an edge-case).&lt;/p&gt;
+&lt;p&gt;These thoughts lead me to research some &amp;#8220;self-hosted&amp;#8221; code forge options. My main contenders were:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;No buggy margins to play with&lt;/li&gt;
-&lt;li&gt;Dynamically renders children to fill parent container if &lt;code&gt;flex&lt;/code&gt; is set&lt;/li&gt;
-&lt;li&gt;Scales well across screen &amp;#47; device sizes&lt;/li&gt;
+&lt;li&gt;GitWeb&lt;/li&gt;
+&lt;li&gt;cgit&lt;/li&gt;
+&lt;li&gt;Gitea&lt;/li&gt;
&lt;/ul&gt;
-&lt;h3 id=&quot;cons-1&quot;&gt;Cons&lt;/h3&gt;
+&lt;p&gt;I&amp;#8217;ll save you the suspense: I went with cgit. Getting GitWeb configured properly was giving me a lot of issues and Gitea seemed overkill for my person needs. I host through NearlyFreeSpeech (running FreeBSD) and they had a decent tutorial for setting cgit up on their servers. I&amp;#8217;ve updated my own wiki for those interested in doing something similar: &lt;a href=&quot;/wiki/cgit&quot;&gt;read the full step-by-step instructions for setting up cgit&lt;/a&gt;.&lt;/p&gt;
+&lt;p&gt;I still need to go through most of the existing projects on sourcehut and update their READMEs and purge the contents. The last thing I want to do is have users confused about which repo is the &amp;#8220;real&amp;#8221; one.&lt;/p&gt;
+&lt;p&gt;Fore reference the my repos are now located here: &lt;a href=&quot;https://git.btxx.org&quot;&gt;git.btxx.org&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;(I plan to place this in the main navigation soon&amp;#8230;)&lt;/p&gt;
+&lt;h2 id=&quot;mirror-mirror-on-the-wall&quot;&gt;Mirror, Mirror on the Wall&amp;#8230;&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;m aware that to have extra protection from &amp;#8220;downtime&amp;#8221; that I should also mirror my code on separate forges. I plan to do this sometime in the future, but this isn&amp;#8217;t a major priority for me currently. When the time comes I&amp;#8217;ll be sure to update my repos referring to the mirrors (whatever platform that is I choose).&lt;/p&gt;
+&lt;h2 id=&quot;room-for-improvement&quot;&gt;Room for Improvement&lt;/h2&gt;
+&lt;p&gt;My code forge is far from perfect. Mobile view is lacking, there is no dark mode support and things could be slightly more intuitive. But I love it. The beauty of hosting everything on my own is that I can improve these things myself. For now, I&amp;#8217;m happy with the outcome!&lt;/p&gt;
+&lt;div class=&quot;footnotes&quot;&gt;
+&lt;hr/&gt;
+&lt;ol&gt;
+
+&lt;li id=&quot;fn1&quot;&gt;
+&lt;p&gt;Someone oddly picked up that domain and piggybacked off the back-links. They happen to also be a designer&amp;#8230;Guess the naming was that cool? &amp;#160;&lt;a href=&quot;#fnref1&quot; rev=&quot;footnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
+&lt;/li&gt;
+
+&lt;/ol&gt;
+&lt;/div&gt;</description>
+ <link>https://btxx.org/New_Domain_and_Code_Forge</link>
+ <guid isPermaLink="false">https://btxx.org/New_Domain_and_Code_Forge</guid>
+ <pubDate>Mon, 29 Jan 2024 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>OpenBSD is a Cozy Operating System</title>
+ <description>&lt;h1 id=&quot;openbsd-is-a-cozy-operating-system&quot;&gt;OpenBSD is a Cozy Operating System&lt;/h1&gt;
+&lt;p&gt;2024-04-11&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/open-suck-75.png&quot; alt=&quot;Screenshot of OpenBSD 7.5 running dwm&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;OpenBSD 7.5 running dwm on my X220&lt;/em&gt;&lt;/p&gt;
+&lt;p&gt;With the recent release of OpenBSD 7.5, I decided to run through my &lt;a href=&quot;https://git.btxx.org/open-suck/about/&quot;&gt;personal OpenBSD &amp;#8220;installer&amp;#8221;&lt;/a&gt; for laptop&amp;#47;desktop devices. The project is built off of the &lt;code&gt;dwm&lt;/code&gt; tiling window manager and only installs a few basic packages. The last time I updated it was with the release of 7.3, so it&amp;#8217;s been due for an minor rework.&lt;/p&gt;
+&lt;p&gt;While making these minor changes, I remembered how incredibly easy the entire install process for OpenBSD is and how &lt;em&gt;cozy&lt;/em&gt; the entire operating system feels. All the core systems just work out the box. Yes, you need to &amp;#8220;patch&amp;#8221; in WiFi with a firmware update, so you&amp;#8217;ll need an Ethernet connection during the initial setup. Yes, the default desktop environment is not intuitive or ideal for newcomers.&lt;/p&gt;
+&lt;p&gt;But the positives heavily outweigh the negatives (in my opinion):&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Some versions of IE struggle with browser support&lt;/li&gt;
+&lt;li&gt;Incredibly secure operating system (No &lt;code&gt;xz&lt;/code&gt; drama here&amp;#8230;)&lt;/li&gt;
+&lt;li&gt;Detailed documentation. Probably one of the best of any OS&lt;/li&gt;
+&lt;li&gt;Much smaller codebase and small core team&lt;/li&gt;
+&lt;li&gt;&lt;em&gt;Complete&lt;/em&gt; operating system (kernel, userland utilities, libraries, applications combined)&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;codepen-demo&quot;&gt;CodePen Demo&lt;/h2&gt;
-&lt;p&gt;Feel free to play around with a slightly more stylized version of both options below:&lt;/p&gt;
-&lt;p&gt;CodePen Demo: Width or flex-basis&lt;/p&gt;</description>
- <link>https://btxx.org/width-vs-flex-basis</link>
- <guid isPermaLink="false">https://btxx.org/width-vs-flex-basis</guid>
- <pubDate>Wed, 28 Nov 2018 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Stop Using Custom Web Fonts</title>
- <description>&lt;h1 id=&quot;stop-using-custom-web-fonts&quot;&gt;Stop Using Custom Web Fonts&lt;/h1&gt;
-&lt;p&gt;2023-03-14&lt;/p&gt;
-&lt;p&gt;I recently read an excellent post by Manu Moreale titled &lt;a href=&quot;https://manuelmoreale.com/a-rant-on-web-font-licenses&quot;&gt;A rant on web font licenses&lt;/a&gt;. I highly recommend you give it a read (it&amp;#8217;s relatively short) since Manu makes a solid argument against existing font licenses. After reading, I found myself thinking about it throughout the rest of the day.&lt;/p&gt;
-&lt;p&gt;I was trying to understand how we ended up in a situation where web&amp;#47;UI designers (myself included) have started to &lt;em&gt;insist&lt;/em&gt; on using proprietary, custom web fonts. Do any users actively benefit from custom web fonts? Are there any &lt;em&gt;useful&lt;/em&gt; and &lt;em&gt;measurable&lt;/em&gt; goals achieved by including them? Do end-users actually &lt;em&gt;care&lt;/em&gt; about a website&amp;#8217;s typeface?&lt;/p&gt;
-&lt;p&gt;For the most part, I believe the answer to all those questions is: &lt;strong&gt;not really&lt;/strong&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;system-fonts-look-good&quot;&gt;System Fonts Look Good&lt;/h2&gt;
-&lt;p&gt;We are no longer in the early days of the internet. Browsers have matured. Operating systems already ship with usable and often times pretty typefaces. The &amp;#8220;wow factor&amp;#8221; of having a custom web font on a website is completely gone. Not to mention, recent trends see designers including &lt;em&gt;terrible&lt;/em&gt; typefaces that actually make things more difficult to read and break basic accessibility.&lt;/p&gt;
-&lt;p&gt;All of this for the sake of a company&amp;#8217;s &amp;#8220;brand&amp;#8221;. I say: &lt;strong&gt;fuck your brand&lt;/strong&gt;. Your end-users should always trump your design &amp;#8220;guidelines&amp;#8221;. Period.&lt;/p&gt;
-&lt;h2 id=&quot;think-of-the-consistency&quot;&gt;&amp;#8220;Think of the Consistency!&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;Often times designers will argue that designs will look too different across browsers&amp;#47;operating systems. I&amp;#8217;m not sure why this is seen as a bad thing. First, users will be familiar with the fonts already available to them. Second, as designers our work should never rely on one point of failure (in this instance: fonts). Your designs should be agnostic of your typeface selection. &lt;/p&gt;
-&lt;p&gt;And what about users with browser extensions that already block your custom web fonts? Screw them I guess?&lt;/p&gt;
-&lt;p&gt;People work on different systems with different constraints and settings. Embrace that - don&amp;#8217;t try to override it.&lt;/p&gt;
-&lt;h2 id=&quot;loss-of-personality&quot;&gt;Loss of Personality&lt;/h2&gt;
-&lt;p&gt;The web is not the same medium as graphic design. Digital designers often get this confused. Web applications serve an action or purpose. The user wants to complete a &lt;em&gt;task&lt;/em&gt; - not look at a pretty poster. I understand this sounds harsh, but many designers design more for their own ego and portfolio rather than the end-user. That extra &lt;em&gt;flair&lt;/em&gt; on your lowercase &amp;#8220;t&amp;#8221; doesn&amp;#8217;t help the user better interact with your features or UI. It just slows them down.&lt;/p&gt;
-&lt;h2 id=&quot;hurting-performance-wasting-resources&quot;&gt;Hurting Performance &amp;#38; Wasting Resources&lt;/h2&gt;
-&lt;p&gt;A lot of designers I&amp;#8217;ve worked with or talked to in the past tend to be big supporters of reducing their carbon footprint and minimizing their individual output of &amp;#8220;waste&amp;#8221;. What I always find interesting is how that never seems to translate into their work.&lt;/p&gt;
-&lt;p&gt;It might be small in the grand scheme of things, but having an extra HTTP request (or more) for your custom fonts and requiring your users to consume more bandwidth on their end is not &amp;#8220;eco&amp;#8221;. As designers we should cut the fat and reduce software bloat in the small areas that we&amp;#8217;re able to: the front end.&lt;/p&gt;
-&lt;p&gt;My hope is that even one designer reading this decides to rollout a web app or marketing page without dumping a bunch of custom fonts on their users. It&amp;#8217;s just the &lt;em&gt;nice&lt;/em&gt; thing to do.&lt;/p&gt;</description>
- <link>https://btxx.org/webfonts</link>
- <guid isPermaLink="false">https://btxx.org/webfonts</guid>
- <pubDate>Tue, 14 Mar 2023 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Running VSCode in Chromium on OpenBSD</title>
- <description>&lt;h1 id=&quot;running-vscode-in-chromium-on-openbsd&quot;&gt;Running VSCode in Chromium on OpenBSD&lt;/h1&gt;
-&lt;p&gt;2023-06-05&lt;/p&gt;
-&lt;p&gt;VSCode and its many variations are not available on OpenBSD. This doesn&amp;#8217;t cause issue with many OpenBSD users, but those making the jump from Linux might miss access to such a popular editor. Lucky for us, there is a &lt;em&gt;hacky&lt;/em&gt; workaround to solve this problem.&lt;/p&gt;
-&lt;h2 id=&quot;vscode-in-the-browser&quot;&gt;VSCode in the Browser&lt;/h2&gt;
-&lt;p&gt;I tried my best to build something like &lt;code&gt;code-server&lt;/code&gt; locally and run that directly in my browser - but I failed miserably. Instead, I fell back on &lt;a href=&quot;https://vscode.dev&quot;&gt;vscode.dev&lt;/a&gt; which is essentially a remote version of &lt;code&gt;code-server&lt;/code&gt;.&lt;/p&gt;
-&lt;p&gt;Getting things to work seamlessly proved a little more challenging. I found the best performance was running everything through Chromium with special parameters enabled on launch.&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The following assumes you have already installed &lt;code&gt;chromium&lt;/code&gt;&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;First we need to disable &lt;a href=&quot;https://man.openbsd.org/unveil.2&quot;&gt;unveil&lt;/a&gt; for Chromium. This will allow us to access our system files through &lt;a href=&quot;https://vscode.dev&quot;&gt;vscode.dev&lt;/a&gt; using the &amp;#8220;Open folder&amp;#8230;&amp;#8221; or &amp;#8220;Open file&amp;#8230;&amp;#8221; commands without issue:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;chrome --disable-unveil
+&lt;p&gt;These points might not seem important to others, but they are to me. Maybe you&amp;#8217;re possibly interested in checking it out yourself? If you are, then read on&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;try-it-yourself&quot;&gt;Try it Yourself!&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve tried my best to write up a simplified, noob-friendly guide on both setting up the core OpenBSD system, along with installing a simple &lt;code&gt;dwm&lt;/code&gt; based desktop environment. These are both focused on personal devices (laptops&amp;#47;computers), so if you&amp;#8217;re looking for server-specific setups you won&amp;#8217;t find that here!&lt;/p&gt;
+&lt;p&gt;You can find both of those wiki-pages below:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;a href=&quot;https://btxx.org/wiki/openbsd/installation/&quot;&gt;Installing OpenBSD&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://btxx.org/wiki/openbsd/desktop_environment/&quot;&gt;Setting up a Desktop Environment for OpenBSD&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Some additional reading I highly recommend is: &lt;a href=&quot;https://www.c0ffee.net/blog/openbsd-on-a-laptop&quot;&gt;c0ffee.net&amp;#47;blog&amp;#47;openbsd-on-a-laptop&lt;/a&gt;&lt;/p&gt;</description>
+ <link>https://btxx.org/OpenBSD_is_a_Cozy_Operating_System</link>
+ <guid isPermaLink="false">https://btxx.org/OpenBSD_is_a_Cozy_Operating_System</guid>
+ <pubDate>Thu, 11 Apr 2024 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Please Make Your Table Headings Sticky</title>
+ <description>&lt;h1 id=&quot;please-make-your-table-headings-sticky&quot;&gt;Please Make Your Table Headings Sticky&lt;/h1&gt;
+&lt;p&gt;2024-02-23&lt;/p&gt;
+&lt;p&gt;I often stumble upon large data sets or table layouts across the web. When these tables contain hundreds of rows of content, things become problematic once you start to scroll&amp;#8230;&lt;/p&gt;
+&lt;p&gt;Your browser does not support the video tag.
+&lt;/p&gt;
+&lt;p&gt;Look at that table header disappear! Now, if I scroll all the way down to item #300 (for example) will I remember what each column&amp;#8217;s data is associated with? If this is my first time looking at this table - probably not. Luckily we can fix this (no pun intended!) with a tiny amount of CSS.&lt;/p&gt;
+&lt;h2 id=&quot;sticky-header&quot;&gt;Sticky Header&lt;/h2&gt;
+&lt;p&gt;Check it out:&lt;/p&gt;
+&lt;p&gt;Your browser does not support the video tag.
+&lt;/p&gt;
+&lt;p&gt;Pretty awesome, right? It might look like magic but it&amp;#8217;s actually very easy to implement. You only need to add 2 CSS properties on your &lt;code&gt;thead&lt;/code&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;position: sticky;
+top: 0;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Everything should work pretty solid right out the box now - except it doesn&amp;#8217;t. Syntax highlighting does not work without enabling WASM&amp;#47;WebAssembly. Your experience might be different, but I had to include the following when launching Chromium from the terminal:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;ENABLE_WASM=1 chrome --enable-wasm
+&lt;p&gt;That&amp;#8217;s it! Best of all, &lt;code&gt;sticky&lt;/code&gt; has &lt;a href=&quot;https://caniuse.com/?search=sticky&quot;&gt;~96% global support&lt;/a&gt; which means this isn&amp;#8217;t some &amp;#8220;bleeding-edge&amp;#8221; property and can safely support a ton of browsers. Not to mention the improved experience for your end-users!&lt;/p&gt;
+&lt;p&gt;You can view a live demo of this table on the &lt;a href=&quot;https://codepen.io/bradleytaunt/pen/bGZyJBj&quot;&gt;CodePen example pen&lt;/a&gt;.&lt;/p&gt;
+&lt;p&gt;If you found this interesting, feel free to check out my other table-focused post: &lt;a href=&quot;https://btxx.org/posts/tables/&quot;&gt;Making Tables Responsive With Minimal CSS&lt;/a&gt;&lt;/p&gt;</description>
+ <link>https://btxx.org/Please_Make_Your_Table_Headings_Sticky</link>
+ <guid isPermaLink="false">https://btxx.org/Please_Make_Your_Table_Headings_Sticky</guid>
+ <pubDate>Fri, 23 Feb 2024 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Switching Things Over to ikiwiki</title>
+ <description>&lt;h1 id=&quot;switching-things-over-to-ikiwiki&quot;&gt;Switching Things Over to ikiwiki&lt;/h1&gt;
+&lt;p&gt;2023-12-17&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ve done it again. My personal website is no longer generated with &lt;a href=&quot;https://barf.btxx.org&quot;&gt;barf&lt;/a&gt; but is instead built on top of ikiwiki. The old RSS feed (&lt;a href=&quot;https://btxx.org/atom.xml&quot;&gt;btxx.org&amp;#47;atom.xml&lt;/a&gt;) still exists but will no longer receive updates. The new feed can be found on the bottom of the homepage (&lt;a href=&quot;/index.rss&quot;&gt;index.rss&lt;/a&gt;)&lt;/p&gt;
+&lt;h2 id=&quot;why-a-wiki&quot;&gt;Why a Wiki?&lt;/h2&gt;
+&lt;p&gt;I love the simplicity of a minimal blog, which is why I always gravitated towards purely &amp;#8220;static&amp;#8221; site builders. Over time though, I found two minor issues that slowly chipped away at me: ease-of-use and flexibility.&lt;/p&gt;
+&lt;p&gt;I had a vision, back when I began tinkering with my own place on the web, of building out my own personal &amp;#8220;resource center&amp;#8221; or wiki. Often times through work or personal projects I stumble into little problems that I need to solve. Most times I find a solution and move on with my life. The problem with this approach is &lt;em&gt;lack of documentation&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;What if I come across that issue at a later point in time? Will I even remember my old solution? Probably not. So, I&amp;#8217;ve made the switch to a more flexible, personal wiki (which also happens to be a blog!)&lt;/p&gt;
+&lt;h2 id=&quot;text-editors-terminals-and-web-ui---oh-my&quot;&gt;Text Editors, Terminals, and Web UI - Oh My!&lt;/h2&gt;
+&lt;p&gt;ikiwiki comes packed with multiple ways to publish pages and posts. Since it is built with ikiwiki and git version control in mind, you have the ability to push out changes directly to your server similar to that of pre-existing static site generators. It also gives you the choice to &lt;code&gt;ssh&lt;/code&gt; directly into your server and publish content from your terminal if you so desire.&lt;/p&gt;
+&lt;p&gt;Best of all, ikiwiki offers a web UI interface. This is something I have long missed since leaving &amp;#8220;dynamic&amp;#8221; websites behind.&lt;/p&gt;
+&lt;h2 id=&quot;but-wait-theres-more&quot;&gt;But Wait, There&amp;#8217;s More!&lt;/h2&gt;
+&lt;p&gt;Did I mention that this site now supports a built-in search form &lt;em&gt;and&lt;/em&gt; a comment system? I&amp;#8217;ve been wanting comments or discussions directly on my personal web space for the longest time and now I do! The search function is really an added bonus, mostly for my own personal use to find something I documented quickly.&lt;/p&gt;
+&lt;h2 id=&quot;broken-links-and-bugs&quot;&gt;Broken Links and Bugs&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve done my best to properly forward all original posts and pages to their new URLs - but I&amp;#8217;m sure some things will be overlooked. So please feel free to reach out and let me know if anything seems broken.&lt;/p&gt;
+&lt;p&gt;I look forward to growing out this &amp;#8220;platform&amp;#8221; and seeing how it impacts my workflow writing documentation &amp;#47; blog posts. I hope you&amp;#8217;ll come along for the ride!&lt;/p&gt;</description>
+ <link>https://btxx.org/Switching_Things_Over_to_ikiwiki</link>
+ <guid isPermaLink="false">https://btxx.org/Switching_Things_Over_to_ikiwiki</guid>
+ <pubDate>Sun, 17 Dec 2023 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Website Backups with Apple iCloud</title>
+ <description>&lt;h1 id=&quot;website-backups-with-apple-icloud&quot;&gt;Website Backups with Apple iCloud&lt;/h1&gt;
+&lt;p&gt;2024-02-16&lt;/p&gt;
+&lt;p&gt;My main work machine, an M2 MacBook Air, meshes really well with my iPhone SE (they are in the same ecosystem after all - duh!). Since both of these devices are Apple products, it makes sense that I pay for the optional iCloud service for extra storage. 50GB to be exact. I only need to bare minimum which costs just $1.68 a month, making this storage option cheaper than most cups of coffee these days.&lt;/p&gt;
+&lt;p&gt;Recently I&amp;#8217;ve been using iCloud as my &amp;#8220;middle-man&amp;#8221; backup system. I still have local, offline storage for most personal data but having additional off-site backups is never a bad thing. I make things easier for myself by taking advantage of &lt;code&gt;rsync&lt;/code&gt;. You&amp;#8217;ll need to make sure you have that program installed before trying this yourself:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;# This assumes you have homebrew installed first
+brew install rsync
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Success! We can avoid typing out these complex commands everytime we want to launch our editor by setting up an &lt;code&gt;alias&lt;/code&gt; (in my case via &lt;code&gt;.zshrc&lt;/code&gt;):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;alias vscode=&quot;ENABLE_WASM=1 chrome --enable-wasm --disable-unveil&quot;
+&lt;p&gt;Then, whenever I feel like backing up an existing project or website I simply run:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;rsync -a user_name@ssh.webserver.domain:&amp;#47;home&amp;#47;var&amp;#47;www&amp;#47; &amp;#47;Users&amp;#47;username&amp;#47;Library&amp;#47;Mobile\ Documents&amp;#47;com\~apple\~CloudDocs&amp;#47;Backups&amp;#47;site-backup
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it! Now I can just pop open VSCode on OpenBSD by simply running &lt;code&gt;vscode&lt;/code&gt; in my terminal. Hopefully this can help others slowly transition over to OpenBSD - which you should do because it is amazing!&lt;/p&gt;</description>
- <link>https://btxx.org/vscode</link>
- <guid isPermaLink="false">https://btxx.org/vscode</guid>
- <pubDate>Mon, 05 Jun 2023 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Using User-Select</title>
- <description>&lt;h1 id=&quot;using-user-select&quot;&gt;Using User-Select&lt;/h1&gt;
-&lt;p&gt;2019-06-04&lt;/p&gt;
-&lt;p&gt;Highlighting text in order to copy, cut or paste content is a staple action across the web. Now, what if I told you the ability to control what a user can select is configurable with a single CSS property?&lt;/p&gt;
-&lt;h2 id=&quot;introducing-the-css-property&quot;&gt;Introducing the CSS property&lt;/h2&gt;
-&lt;p&gt;Simply put, the &lt;code&gt;user-select&lt;/code&gt; property is defined as follows:&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;&lt;code&gt;user-select&lt;/code&gt; controls whether the user can select text (cursor or otherwise)&lt;/p&gt;
+&lt;p&gt;Note: The &lt;code&gt;-a&lt;/code&gt; option tells &lt;code&gt;rsync&lt;/code&gt; to sync directories recursively, transfer special and block devices, preserve symbolic links, modification times, groups, ownership, and permissions.&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;The property&amp;#8217;s available attributes are very straightforward (just remember to target specific browsers for full support!)&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Default *&amp;#47;
-p.default {
- user-select: auto;
- -moz-user-select: auto;
- -webkit-user-select: auto;
-}
-
-&amp;#47;* Disable the user from selecting text *&amp;#47;
-p.no-select {
- user-select: none;
- -moz-user-select: none;
- -webkit-user-select: none;
-}
-
-&amp;#47;* Select all text when user clicks *&amp;#47;
-p.select-all {
- user-select: all;
- -moz-user-select: all;
- -webkit-user-select: all;
-}
+&lt;p&gt;The beautiful magic of &lt;code&gt;rsync&lt;/code&gt;! Obviously, you&amp;#8217;d want to properly name your directories (ie. &lt;code&gt;&amp;#47;Backups&amp;#47;site-backup&lt;/code&gt;) for a cleaner structure and ensure that your iCloud directory is set correctly. (remember to read code before just copy-pasting!). With this approach you can backup entire server directories or be specific with each individual project folder. I would also recommend setting up some alias in your &lt;code&gt;.bashrc&lt;/code&gt; or &lt;code&gt;.zshrc&lt;/code&gt; etc. to make things more streamlined when running backups manually:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;alias site-backup=&quot;rsync -a user_name@ssh.webserver.domain:&amp;#47;home&amp;#47;var&amp;#47;www&amp;#47; &amp;#47;Users&amp;#47;username&amp;#47;Library&amp;#47;Mobile\ Documents&amp;#47;com\~apple\~CloudDocs&amp;#47;Backups&amp;#47;site-backup&quot;
+# Then you simply run the following for a manual backup:
+site-backup
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;lets-see-it-in-action&quot;&gt;Let&amp;#8217;s see it in action&lt;/h2&gt;
-&lt;p&gt;Try selecting the separate paragraph elements in the CodePen below:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/QRooZp/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;browser-support&quot;&gt;Browser Support&lt;/h2&gt;
-&lt;p&gt;The great news is &lt;code&gt;user-select&lt;/code&gt; is fully supported across all modern browsers (even as far back as IE10!)&lt;/p&gt;</description>
- <link>https://btxx.org/user-select</link>
- <guid isPermaLink="false">https://btxx.org/user-select</guid>
- <pubDate>Tue, 04 Jun 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Icons Should be Complementary - Text is Always Better</title>
- <description>&lt;h1 id=&quot;icons-should-be-complementary---text-is-always-better&quot;&gt;Icons Should be Complementary - Text is Always Better&lt;/h1&gt;
-&lt;p&gt;2021-12-17&lt;/p&gt;
-&lt;p&gt;Designing[^1] software is a complex thing. A great deal of real-world testing and user feedback is needed to create the best solution to the problem you are trying to fix. Obvious requirements are to keep things simple, make it easy to understand by &lt;em&gt;looking&lt;/em&gt; at it, and build it to be headache-resistant for future updates. All these things are easier said than done. This is the challenge of a designer&amp;#8217;s dat-to-day.&lt;/p&gt;
-&lt;p&gt;But with this term of &amp;#8220;simplicity&amp;#8221; modern designers tend to take this approach too much to heart. In my 12+ years involved in UI&amp;#47;UX software design, I have lost count how many initial iterations of interfaces suffer from the same &amp;#8220;dumbing down&amp;#8221; decision making:&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Using icons to represent an action or function without textual information&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;If you decide to stop reading the rest of this article, at least take away this one important thing:&lt;/p&gt;
+&lt;p&gt;You can take this further by automating things via cron jobs, but for my use case that is a little overkill. Hopefully this helps anyone looking for a quick and dirty backup system, especially one that can piggyback of your existing iCloud that you might be paying for already.&lt;/p&gt;</description>
+ <link>https://btxx.org/Website_Backups_with_Apple_iCloud</link>
+ <guid isPermaLink="false">https://btxx.org/Website_Backups_with_Apple_iCloud</guid>
+ <pubDate>Fri, 16 Feb 2024 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Setting Up AdGuard Home with Eero</title>
+ <description>&lt;h1 id=&quot;setting-up-adguard-home-with-eero&quot;&gt;Setting Up AdGuard Home with Eero&lt;/h1&gt;
+&lt;p&gt;2022-11-04&lt;/p&gt;
+&lt;p&gt;Eariler this year I posted &lt;a href=&quot;/eero&quot;&gt;detailed instructions on setting up Pi-Hole with Eero&lt;/a&gt; and it seemed to help out a few people having troubles. With AdGuard Home recently popping up on the &lt;a href=&quot;https://news.ycombinator.com/item?id=33387678&quot;&gt;frontpage of HackerNews&lt;/a&gt;, I thought now would be a great time to post instructions of setting up &lt;em&gt;that&lt;/em&gt; service alongside Eero devices.&lt;/p&gt;
+&lt;h2 id=&quot;what-youll-need&quot;&gt;What You&amp;#8217;ll Need&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;Raspberry Pi device (I recommend the Pi Zero for simplicity and low cost)&lt;/li&gt;
+&lt;li&gt;microSD card&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://www.raspberrypi.com/software/&quot;&gt;Raspberry Pi Imager&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;micro USB to ethernet adapter (check your local Amazon)&lt;/li&gt;
+&lt;li&gt;Patience!&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;setting-up-the-raspberry-pi&quot;&gt;Setting Up the Raspberry Pi&lt;/h2&gt;
+&lt;p&gt;The first thing we need to do is flash Raspberry Pi &lt;strong&gt;Lite&lt;/strong&gt; onto our SD card. Open Raspberry Pi Imager, select the &lt;strong&gt;Lite&lt;/strong&gt; version of the OS and your respective media (the SD card):&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/rpi-lite-os.webp&quot; alt=&quot;Raspberry Pi Lite&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;Don&amp;#8217;t flash anything just yet! Be sure to use the gear icon and edit the settings. Set a custom hostname, enable &lt;code&gt;ssh&lt;/code&gt; and setup a proper user:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/rpi-adguard-1.webp&quot; alt=&quot;Imager settings&quot; /&gt;&lt;/p&gt;
+&lt;h2 id=&quot;plug-it-in-and-boot&quot;&gt;Plug it in and Boot!&lt;/h2&gt;
+&lt;p&gt;Put the SD card into your Pi, connect power and ethernet. Give it a bit of time to boot up. Once you see a nice solid green LED, go back to your local computer&amp;#8217;s terminal and enter the following command:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;ssh piguard@piguard.local
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;If everything was set up properly you will be asked to trust this device. Next, you will be prompted to enter the device password you setup.&lt;/p&gt;
+&lt;p&gt;Once you are connected directly to the Pi, it&amp;#8217;s best to check for updates:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo apt update
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;&amp;#8230;and if updates are in fact available, install them via:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo apt upgrade
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;installing-adguard-home&quot;&gt;Installing AdGuard Home&lt;/h2&gt;
+&lt;p&gt;Simply run the automated installer:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;curl -s -S -L https:&amp;#47;&amp;#47;raw.githubusercontent.com&amp;#47;AdguardTeam&amp;#47;AdGuardHome&amp;#47;master&amp;#47;scripts&amp;#47;install.sh | sh -s -- -v
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Follow the instructions and you&amp;#8217;ll be setup in no time! To view your AdGuard dashboard at any time, you can now simply navigate to &lt;code&gt;piguard.local&lt;/code&gt;.&lt;/p&gt;
+&lt;p&gt;If you run into any issues, I strongly suggest &lt;a href=&quot;https://github.com/AdguardTeam/AdGuardHome#getting-started&quot;&gt;reading through the &amp;#8220;Getting Started&amp;#8221; guide&lt;/a&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;configuring-the-eero-app&quot;&gt;Configuring the Eero App&lt;/h2&gt;
+&lt;p&gt;Once your AdGuard Home server is installed and running, you can finally point your Eero network at it.&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Open the Eero app (iOS or Android)&lt;/li&gt;
+&lt;li&gt;Navigate to &lt;strong&gt;Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Network Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;DNS&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Select &lt;strong&gt;Customized DNS&lt;/strong&gt; and enter both your saved IPv4 &amp;#47; IPv6 values (These can be found under the &lt;code&gt;Setup Guide&lt;/code&gt; tab in the main AdGuard Dashboard)&lt;/li&gt;
+&lt;li&gt;Eero will prompt you to reboot your network - do it&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;After the system reboots everything &lt;em&gt;should&lt;/em&gt; be working as intended!&lt;/p&gt;
+&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve personally switched over from Pi-Hole to AdGuard Home - it just feels more robust and the UI is significantly cleaner. Hopefully this helps others trying to do the same!&lt;/p&gt;</description>
+ <link>https://btxx.org/adguard</link>
+ <guid isPermaLink="false">https://btxx.org/adguard</guid>
+ <pubDate>Fri, 04 Nov 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Avoiding Featurism</title>
+ <description>&lt;h1 id=&quot;avoiding-featurism&quot;&gt;Avoiding Featurism&lt;/h1&gt;
+&lt;p&gt;2022-10-14&lt;/p&gt;
+&lt;p&gt;I rather enjoy the term &amp;#8220;featurism&amp;#8221;. I came across this term while reading the wonderful article &lt;a href=&quot;https://www.complang.tuwien.ac.at/anton/why-ancient-browsers.html&quot;&gt;Why I don&amp;#8217;t use Netscape&lt;/a&gt;, which the author credits to Bernd Paysan. Although it sums up the current &amp;#8220;digital product&amp;#8221; industry quite well the more specific terminology, &lt;em&gt;creeping featurism&lt;/em&gt;, works better:&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;&lt;em&gt;Always try to use text to convey your designs&lt;/em&gt;&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;creeping featurism&lt;/strong&gt; (&lt;em&gt;noun&lt;/em&gt;)&lt;/p&gt;
+&lt;p&gt;A condition in which one or more people, often in the form of a committee, progressively increase the scope and complexity of a project until the project is deemed infeasible and subsequently cancelled to the detriment of all involved.&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;p&gt;After achieving this, you should start reiterating those designs to include iconography. Even then, not all UI instances will require you to do that. Designers will find this process difficult, which is why it is important to get &lt;em&gt;right&lt;/em&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;icons-make-an-ass-out-of-u-and-me&quot;&gt;Icons make an &lt;em&gt;ass&lt;/em&gt; out of &lt;em&gt;u&lt;/em&gt; and &lt;em&gt;me&lt;/em&gt;&lt;/h2&gt;
-&lt;p&gt;Icons make general assumptions about what the user may or may not understand. Leading with this in your designs will end &lt;em&gt;poorly for you&lt;/em&gt;. Trust me - I&amp;#8217;ve learned this through failed designs many times over. A certain visualization might be common knowledge to you, while differing greatly to someone else with a different set of experiences.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ve found the only thing you should ever &lt;em&gt;assume&lt;/em&gt; is that the user knows nothing. Please note - I&amp;#8217;m not referring to their intelligence but instead their software literacy.&lt;/p&gt;
-&lt;p&gt;Take a look at our now &amp;#8220;famous&amp;#8221; save icon used in almost every piece of software; the floppy disk. Do any software users below the legal drinking age even understand the initial reasoning for using this icon? In all honesty, it was a terrible icon decision even when first introduced. No &amp;#8220;hard copy&amp;#8221; of the save action is taking place, software creates this save in a digital space[^2]. Yet, it was adopted and people (ie. designers) went along with it.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Quality is not measured by mass appeal.&lt;/strong&gt;&lt;/p&gt;
-&lt;p&gt;The argument could be made &amp;#8220;People learned to associate &amp;#8220;Save&amp;#8221; with a Floppy Disk icon&amp;#8230;&amp;#8221; and my response would be &amp;#8220;But what alternatives were they given?&amp;#8221;&lt;/p&gt;
-&lt;p&gt;Original software designers (and developers) held all the power in early UI decision making. General users didn&amp;#8217;t &lt;em&gt;know&lt;/em&gt; any better. Things were new and fresh. Now our response is to shrug our collective shoulders and say, &amp;#8220;That&amp;#8217;s how the save icon has to be now!&amp;#8221;&lt;/p&gt;
-&lt;p&gt;Hogwash. Make it a button that says, &lt;code&gt;Save File&lt;/code&gt;. I&amp;#8217;m not kidding. Oh, it doesn&amp;#8217;t work with your current design? Then your initial design wasn&amp;#8217;t future-proof then, was it? I sound snarky here but many designers put up imaginary walls around their design systems, making them incredibly rigid and difficult to adapt.&lt;/p&gt;
-&lt;p&gt;Take the time to do even a small thought &amp;#47; wireframe experiment: redo the layout and flow of your application without using a single piece of iconography. If you can&amp;#8217;t achieve this with even limited success, something is wrong with the design.&lt;/p&gt;
-&lt;h2 id=&quot;the-hamburger-menu-is-the-7th-circle-of-hell&quot;&gt;The hamburger menu is the 7th circle of Hell&lt;/h2&gt;
-&lt;p&gt;Normally, the inclusion of a hamburger menu is indicative of an overly complex application. Too many cooks and all that jazz. Enterprise applications don&amp;#8217;t get a pass here either, as they tend to be the worst culprits of pouring out everything on to the user as software vomit. Sweeping all this interaction under the hamburger &amp;#8220;rug&amp;#8221; does not make for a cleaner design.&lt;/p&gt;
-&lt;p&gt;New features are great, but stop dumping so much of it behind hidden, unintuitive sub-navigation. This design is such a &amp;#8220;quick fix&amp;#8221; and plagues far too many software apps[^3]. Both desktop computers and mobile devices allow users to &lt;em&gt;scroll&lt;/em&gt;, let them.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ve discussed this in further detail here: &lt;a href=&quot;https://bt.ht/hamburger-menu-alternative/&quot;&gt;Using Hamburger Menus? Try Sausage Links&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;but-what-of-the-advanced-users&quot;&gt;But what of the &amp;#8220;advanced&amp;#8221; users?&lt;/h2&gt;
-&lt;p&gt;I understand applications will have advanced or &amp;#8220;pro&amp;#8221; users that have full knowledge of the product and wouldn&amp;#8217;t need things &lt;em&gt;spoon fed&lt;/em&gt; to them. This is a more difficult problem that I myself haven&amp;#8217;t been able to solve without approaching each one on a case-by-case basis. Unfortunately, there is no &amp;#8220;one size fits all&amp;#8221; method to this. But, although solving for advanced users proves difficult doesn&amp;#8217;t mean we should dismiss the merits of avoiding icons as a crutch.&lt;/p&gt;
-&lt;h2 id=&quot;try-for-yourself&quot;&gt;Try for yourself&lt;/h2&gt;
-&lt;p&gt;As I stated above, try doing a quick design experiment by replacing all your existing iconography in your application with simple text. I assure you that at least you&amp;#8217;ll discover interesting design flaws in your system.&lt;/p&gt;
+&lt;p&gt;Throughout my career of designing and developing software I have run into this exact issue far too often. The major issue with getting sucked into a black-hole of &amp;#8220;featurism&amp;#8221; is there is no single person to blame. It probably seems easy to place all the responsibility on PMs or team leaders, but even &lt;em&gt;if&lt;/em&gt; they are the ones adding excessive complexity to a given project, it is the role of developers and designers to speak up. It requires a team effort. Therefore, the &lt;em&gt;whole team&lt;/em&gt; needs to be on-guard to avoid it.&lt;/p&gt;
+&lt;h3 id=&quot;simple-guidelines&quot;&gt;Simple Guidelines&lt;/h3&gt;
+&lt;p&gt;These &amp;#8220;tips&amp;#8221; are not perfect, nor will they work for every work environment. Hopefully they can at least be used as basic guidelines and expanded upon from there.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Explore the feature&amp;#8217;s &lt;em&gt;benefit&lt;/em&gt; to the product. You need to confirm that this addition will be a net-positive for both customers and your bottom-line.&lt;/li&gt;
+&lt;li&gt;All team members assigned to a feature need to scope it out. Far too often I see feature sets that require design input being estimated solely by developers and vice versa.&lt;/li&gt;
+&lt;li&gt;Radically limit the scope of each individual task[^1]. Each task should be clear-cut, bite-sized and look almost trivial.&lt;/li&gt;
+&lt;li&gt;Lock-in tickets. Once they are agreed upon they &lt;strong&gt;cannot&lt;/strong&gt; be altered[^2]. Anything that absolutely &lt;em&gt;needs&lt;/em&gt; to be added should become a future ticket itself.&lt;/li&gt;
+&lt;li&gt;Follow-up with feature reviews. When a sprint or milestone is reached, it is important to reflect on what worked and what didn&amp;#8217;t. Call out any instances where the team steered away from the guidelines above.&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;That&amp;#8217;s it. Just a nice, simple baseline to branch off from to avoid &amp;#8220;featurism&amp;#8221;. Some items listed won&amp;#8217;t make sense for certain teams and that&amp;#8217;s okay. If you take the time to at least reflect on your feature workflow, I guarantee you&amp;#8217;ll find areas to improve.&lt;/p&gt;
+&lt;p&gt;Creeping featurism can kill your product and the morale of your team. Avoid it like the plague!&lt;/p&gt;
&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;By &amp;#8220;design&amp;#8221; I&amp;#8217;m referring to visuals not programming or system engineering&lt;/li&gt;
-&lt;li&gt;Early software programs did save to an external floppy disk. My point stands that many digital file storage applications copied this iconography blindly.&lt;/li&gt;
-&lt;li&gt;Not to mention how rampant it is on plain ol&amp;#8217; regular websites. If you&amp;#8217;re hiding five menu items behind a hamburger menu for &amp;#8220;mobile users&amp;#8221;, you&amp;#8217;re doing it wrong.&lt;/li&gt;
+&lt;li&gt;This is easier said than done. Normally you will need to have developed some form of &amp;#8220;point system&amp;#8221; internally, so you know how to effectively divide features.&lt;/li&gt;
+&lt;li&gt;&lt;em&gt;Taking away&lt;/em&gt; complexity, making changes that do not impact workload or reducing the ticket is fine - within reason.&lt;/li&gt;
&lt;/ol&gt;</description>
- <link>https://btxx.org/use-text-not-icons</link>
- <guid isPermaLink="false">https://btxx.org/use-text-not-icons</guid>
- <pubDate>Fri, 17 Dec 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>They Won't Wait: A Warning for Slow Websites</title>
- <description>&lt;h1 id=&quot;they-wont-wait-a-warning-for-slow-websites&quot;&gt;They Won&amp;#8217;t Wait: A Warning for Slow Websites&lt;/h1&gt;
-&lt;p&gt;2019-06-25&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;Your website is probably slow&lt;/em&gt;. I&amp;#8217;m not trying to make you feel bad or dismiss all the hard work you&amp;#8217;ve put into your project. Heck, performance might have been a core value of the design. But websites can always be faster.&lt;/p&gt;
-&lt;p&gt;People have become increasingly more impatient over the last decade when it comes to technology, specifically non-native web-based interactions. Users expect your website to load almost instantly or they will leave and try another site, probably one of your competitors. Why should they stick around if your competitors&amp;#8217; websites load half a second faster?&lt;/p&gt;
-&lt;p&gt;Users are tired of being bombarded with tracking scripts, having to download massive component libraries, forced to deal with &amp;#8220;accept cookies&amp;#8221; prompts, playing a small mini-game of &amp;#8220;close those ads!&amp;#8221;, and then being subjected to never-ending loading screens. This is not the internet we were promised.&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;It&amp;#8217;s in my nature, I always liked &lt;strong&gt;speed&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;- Guy Lafleur&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;h2 id=&quot;we-can-do-better&quot;&gt;We can do better&lt;/h2&gt;
-&lt;p&gt;If there is only one thing that you learn from this post, hopefully it&amp;#8217;s knowing to better value the &lt;strong&gt;time and money of your users&lt;/strong&gt;. It&amp;#8217;s a user&amp;#8217;s &lt;em&gt;choice&lt;/em&gt; to visit your website, so taking advantage of their time is extremely careless. Don&amp;#8217;t be arrogant and ignore the cost of data on most mobile plans either. Eating up a chunk of someone&amp;#8217;s data just for hitting your website is rage-inducing. That&amp;#8217;s how you can lose customers permanently.&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s do an analogy, because &lt;strong&gt;I love stupid analogies&lt;/strong&gt;:&lt;/p&gt;
-&lt;p&gt;Imagine going to your local hardware store because you need to buy a new hammer. Once you get to the entrance a woman holds the the door closed and asks you if it&amp;#8217;s alright for someone to follow you around the store today. You say no. She then follows up by asking if you accept their hardware store agreement before proceeding inside - you tell her &amp;#8220;sure&amp;#8221;. She finally opens the door and lets you in. As you walk into the store she quickly stuffs a few advertisements for other local businesses into you hand. &amp;#8220;Thanks&amp;#8221;, you mutter.&lt;/p&gt;
-&lt;p&gt;Once inside you realize the hardware store is &lt;em&gt;very big&lt;/em&gt; and manually looking for a hammer might take a while. You walk up to the front desk to ask where you can find a hammer but notice the cashier is playing with their phone behind the counter. You try to get their attention but they simply raise their hand and shout &amp;#8220;Be with you in a minute&amp;#8221;. After a short while they get off their phone and &lt;em&gt;finally&lt;/em&gt; listen to your question. They then tell you where to find the hammers.&lt;/p&gt;
-&lt;p&gt;Does this sound like a &lt;em&gt;fast&lt;/em&gt; and easy experience?&lt;/p&gt;
-&lt;p&gt;As silly as this hypothetical trip to the hardware store might be, it&amp;#8217;s exactly what many current websites are putting their users through. Users - read &lt;em&gt;customers&lt;/em&gt; - are coming to your website with a specific goal in mind; checking out a product, consuming information or just satisfying their curiosity. Stop putting so many blockers and excessive bloat in front of them.&lt;/p&gt;
-&lt;h2 id=&quot;data-doesnt-lie&quot;&gt;Data doesn&amp;#8217;t lie&lt;/h2&gt;
-&lt;p&gt;If my terrible analogy wasn&amp;#8217;t enough to convince you to implement better performance on your website, then maybe some &amp;#8220;BIG DATA&amp;#8221; will.&lt;/p&gt;
+ <link>https://btxx.org/af</link>
+ <guid isPermaLink="false">https://btxx.org/af</guid>
+ <pubDate>Fri, 14 Oct 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Adventures in Creating a Minimal Alpine Linux Installer</title>
+ <description>&lt;h1 id=&quot;adventures-in-creating-a-minimal-alpine-linux-installer&quot;&gt;Adventures in Creating a Minimal Alpine Linux Installer&lt;/h1&gt;
+&lt;p&gt;2022-12-08&lt;/p&gt;
+&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve made the switch to Alpine Linux as my main laptop&amp;#47;desktop hybrid
+workstation and I love it - warts and all. This post will follow my process building my Alpine Linux &amp;#8220;installer&amp;#8221; I used for this workstation, along with covering some bugs I found during my adventure.&lt;/p&gt;
+&lt;p&gt;My main goals when starting this project were to have a daily driver that was:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://web.archive.org/web/20081117195303if_/http://home.blarg.net/~glinden/StanfordDataMining.2006-11-29.ppt&quot;&gt;Amazon (PowerPoint, slide #15)&lt;/a&gt;: 100 ms of latency resulted in 1% less sales.&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://youtu.be/6x0cAzQ7PVs?t=936&quot;&gt;Google (video)&lt;/a&gt;: 500 ms caused a 20% drop in traffic.&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://www.slideshare.net/devonauerswald/walmart-pagespeedslide&quot;&gt;Walmart (slide #46)&lt;/a&gt;: a 100 ms improvement brought up to 1% incremental revenue&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://blog.mozilla.org/metrics/2010/04/05/firefox-page-load-speed-%E2%80%93-part-ii/&quot;&gt;Mozilla&lt;/a&gt;: Shaving 2.2 seconds off page load time increased downloads by 15.4%&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://www.slideshare.net/stubbornella/designing-fast-websites-presentation/23-1_Create_a_component_library&quot;&gt;Yahoo&lt;/a&gt;: 400 ms resulted in a 5 to 9% drop in traffic&lt;/li&gt;
+&lt;li&gt;free of any &amp;#8220;real&amp;#8221; desktop environment&lt;/li&gt;
+&lt;li&gt;Wayland based with SwayWM&lt;/li&gt;
+&lt;li&gt;as lightweight as possible&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;All data taken from &lt;a href=&quot;https://instant.page&quot;&gt;instant.page&lt;/a&gt; (which I am a huge fan of &amp;hearts;)&lt;/p&gt;
-&lt;p&gt;The fact something as small as 100 ms can have such a profound impact on your bottom-line should be eye-opening. You&amp;#8217;re leaving money of the table by not tackling even the low-hanging, easy performance wins. You need to start valuing your users&amp;#8217; time and stop serving them excessive garbage they never asked for.&lt;/p&gt;
-&lt;h2 id=&quot;small-and-easy-wins&quot;&gt;Small and easy wins&lt;/h2&gt;
-&lt;p&gt;Not all of these suggestions can work for every project (due to restrictions, brand guidelines, required marketing targets, etc.) but for most developers&amp;#47;designers they should be easy to implement: (in no particular order of importance)&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Reduce the number of web requests
-&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://developers.google.com/web/fundamentals/performance/get-started/httprequests-5&quot;&gt;HTTP Requests&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Use web-safe fonts when available or if using custom fonts utilize the &lt;code&gt;font-display&lt;/code&gt; property
-&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://www.cssfontstack.com/&quot;&gt;CSS Font Stack&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://css-tricks.com/font-display-masses/&quot;&gt;Font Display for the Masses&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Make proper use of &lt;em&gt;critical CSS&lt;/em&gt;
+&lt;p&gt;Overall, I think I achieved what I was aiming for. After logging in (there is no login manager, you do it directly through the boot terminal) you will see:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/alpine-1.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;(You can view the &lt;a href=&quot;/public/images/alpine-1.jpg&quot;&gt;full res image here&lt;/a&gt;)&lt;/p&gt;
+&lt;p&gt;For reference this is running on a X260 ThinkPad with 16GB RAM, docked and connected to a 27&amp;#8221; 4K monitor.&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;If you&amp;#8217;d prefer to just go straight to the installer, feel free to jump over to the project repo: &lt;a href=&quot;https://git.sr.ht/~bt/alpine-linux-setup&quot;&gt;https:&amp;#47;&amp;#47;git.sr.ht&amp;#47;~bt&amp;#47;alpine-linux-setup&lt;/a&gt;&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;h2 id=&quot;getting-started&quot;&gt;Getting Started&lt;/h2&gt;
+&lt;p&gt;My main reasoning for switching away from my previous setup (Garuda Linux running Sway) to Alpine was two fold:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;I wanted a more lightweight, less resource hungry system&lt;/li&gt;
+&lt;li&gt;I wanted to go as &amp;#8220;full&amp;#8221; Wayland as possible&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h3 id=&quot;benchmarks-comparisons&quot;&gt;Benchmarks Comparisons&lt;/h3&gt;
+&lt;p&gt;I should mention that these are not official &amp;#8220;benchmark&amp;#8221; applications or proper testing. I merely reproduced the same tasks, using the same applications, for the same amount of time and compared the usage. Just keep that in mind!&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://alexwright.net/web-design-secrets/how-to-use-critical-css/&quot;&gt;How to Use Critical CSS&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Automatically generate CSS based on &amp;#8220;above the fold&amp;#8221;: &lt;a href=&quot;https://github.com/filamentgroup/criticalCSS&quot;&gt;criticalCSS&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Process all media (images &amp;#47; videos) through 3rd party tools
+&lt;li&gt;&lt;strong&gt;Garuda Linux&lt;/strong&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://cloudinary.com/&quot;&gt;Cloudinary&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://kraken.io/&quot;&gt;Kraken.io&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://piio.co/&quot;&gt;Piio&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Sidenote: this blog uses the &lt;a href=&quot;https://nhoizey.github.io/jekyll-cloudinary/&quot;&gt;jekyll-cloudinary&lt;/a&gt; plugin to automatically process images&lt;/li&gt;
+&lt;li&gt;SwayWM&lt;/li&gt;
+&lt;li&gt;Firefox: 9 tabs (Figma included)&lt;/li&gt;
+&lt;li&gt;qutebrowser: 7 tabs&lt;/li&gt;
+&lt;li&gt;aerc: open&amp;#47;running&lt;/li&gt;
+&lt;li&gt;tut: open-running&lt;/li&gt;
+&lt;li&gt;Sublime Text: single project open&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Memory usage (range): 6.0-7.2 GB&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Use &amp;#8220;just-in-time&amp;#8221; preloading (highly recommended for improved UX)
+&lt;li&gt;&lt;strong&gt;Alpine Linux&lt;/strong&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://instant.page/&quot;&gt;Instant Page&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;SwayWM&lt;/li&gt;
+&lt;li&gt;Firefox: 9 tabs (Figma included)&lt;/li&gt;
+&lt;li&gt;qutebrowser: 7 tabs&lt;/li&gt;
+&lt;li&gt;aerc: open&amp;#47;running&lt;/li&gt;
+&lt;li&gt;tut: open-running&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Memory usage (range): 1.0-3.5 GB&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Avoid using heavy tech-stacks whenever possible
+&lt;/ul&gt;
+&lt;p&gt;Switching over has basically cut my system memory usage &lt;strong&gt;in half&lt;/strong&gt;. That ended up being a much better improvement than I predicted. These are beyond just numbers too - the system &lt;em&gt;feels&lt;/em&gt; snappier.&lt;/p&gt;
+&lt;p&gt;So, from a speed and usability stand point I considered this a success already.&lt;/p&gt;
+&lt;h2 id=&quot;crashes-roadblocks&quot;&gt;Crashes &amp;#38; Roadblocks&lt;/h2&gt;
+&lt;p&gt;Of course, things didn&amp;#8217;t run 100% flawlessly out-of-the-box. There were some pretty annoying &lt;strong&gt;crashes&lt;/strong&gt; and issues.&lt;/p&gt;
+&lt;h3 id=&quot;greetings-tty&quot;&gt;Greetings, tty&lt;/h3&gt;
+&lt;p&gt;After installing &lt;code&gt;tut&lt;/code&gt; I started walking through its guided setup. Once it prompted me to login via browser in order to authenticate, I clicked the link provided in the terminal. I was immediately thrown out of my session and into &lt;code&gt;tty&lt;/code&gt;. Awesome.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ll save you both the headache and large amount of time I wasted on this silly &amp;#8220;bug&amp;#8221; and just say it had to do with my user settings trying to launch &amp;#8220;Chromium&amp;#8221; as my default browser. I normally set qutebrowser as much default, so this was a change I needed to make anyway.&lt;/p&gt;
+&lt;p&gt;I put the following in my &lt;code&gt;&amp;#47;etc&amp;#47;xdg&amp;#47;mimeapps.list&lt;/code&gt; (which is included by default with the installer)&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;[Default Applications]
+x-scheme-handler&amp;#47;http=org.qutebrowser.qutebrowser.desktop
+x-scheme-handler&amp;#47;https=org.qutebrowser.qutebrowser.desktop
+x-scheme-handler&amp;#47;ftp=org.qutebrowser.qutebrowser.desktop
+x-scheme-handler&amp;#47;chrome=org.qutebrowser.qutebrowser.desktop
+text&amp;#47;html=org.qutebrowser.qutebrowser.desktop
+application&amp;#47;x-extension-htm=org.qutebrowser.qutebrowser.desktop
+application&amp;#47;x-extension-html=org.qutebrowser.qutebrowser.desktop
+application&amp;#47;x-extension-shtml=org.qutebrowser.qutebrowser.desktop
+application&amp;#47;xhtml+xml=org.qutebrowser.qutebrowser.desktop
+application&amp;#47;x-extension-xhtml=org.qutebrowser.qutebrowser.desktop
+application&amp;#47;x-extension-xht=org.qutebrowser.qutebrowser.desktop
+image&amp;#47;bmp=feh.desktop
+image&amp;#47;gif=feh.desktop
+image&amp;#47;jpeg=feh.desktop
+image&amp;#47;jpg=feh.desktop
+image&amp;#47;png=feh.desktop
+image&amp;#47;tiff=feh.desktop
+image&amp;#47;x-bmp=feh.desktop
+image&amp;#47;x-pcx=feh.desktop
+image&amp;#47;x-tga=feh.desktop
+image&amp;#47;x-portable-pixmap=feh.desktop
+image&amp;#47;x-portable-bitmap=feh.desktop
+image&amp;#47;x-targa=feh.desktop
+image&amp;#47;x-portable-greymap=feh.desktop
+application&amp;#47;pcx=feh.desktop
+image&amp;#47;svg+xml=feh.desktop
+image&amp;#47;svg-xml=feh.desktop
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;You might have also noticed that I use &lt;code&gt;feh&lt;/code&gt; as my default image viewer as well. That&amp;#8217;s just my personal preference, feel free to switch that out as you see fit.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Sidenote:&lt;/strong&gt; Chromium now runs perfectly fine since the original crashes. I have no clue how or why. Wayland black magic, I assume? Maybe I installed a package that helped or an update occurred. &lt;em&gt;Shrug&lt;/em&gt;&lt;/p&gt;
+&lt;h3 id=&quot;screen-sharing&quot;&gt;Screen Sharing&lt;/h3&gt;
+&lt;p&gt;This has been a complete failure for me. I&amp;#8217;ve tried both the Chromium and Firefox &lt;a href=&quot;https://lr.vern.cc/r/swaywm/comments/l4e55v/guide_how_to_screenshare_from_chromiumfirefox/&quot;&gt;implementations of these &amp;#8220;hacks&amp;#8221;&lt;/a&gt; but neither work. For now I will fallback to my Garuda Linux OS boot and share my screen there. It&amp;#8217;s a silly workaround but I hardly ever need to &amp;#8220;show my screen&amp;#8221; in any capacity as is.&lt;/p&gt;
+&lt;p&gt;I can live without this for now. (Please &lt;a href=&quot;https://lists.sr.ht/~bt/public-inbox&quot;&gt;leave a message in my personal inbox&lt;/a&gt; if you know of another workaround for this!)&lt;/p&gt;
+&lt;h2 id=&quot;some-minor-tweaks&quot;&gt;Some Minor Tweaks&lt;/h2&gt;
+&lt;p&gt;Some of these &amp;#8220;hacks&amp;#8221; or tweaks I had to implement might help others who run into similar issues when setting up their own Alpine desktops.&lt;/p&gt;
+&lt;h3 id=&quot;aerc-mail&quot;&gt;aerc-mail&lt;/h3&gt;
+&lt;p&gt;It is important to install &lt;code&gt;gawk&lt;/code&gt; since &lt;code&gt;awk&lt;/code&gt; isn&amp;#8217;t &amp;#8220;real&amp;#8221; on Alpine. Once you have that on you system &lt;code&gt;aerc&lt;/code&gt; will render emails out-of-the-box.[^1]&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;apk add gawk
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;sublime-text&quot;&gt;Sublime Text&lt;/h3&gt;
+&lt;p&gt;Sublime Text requires flatpak, so if that isn&amp;#8217;t your &lt;em&gt;thing&lt;/em&gt; then you&amp;#8217;re better off snagging a different editor. I&amp;#8217;ve tried multiple times throughout my career to use an alternate editor (preferably 100% open source) but keep finding myself returning to Sublime. Maybe one day&amp;#8230;&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;apk add flatpak
+flatpak remote-add --if-not-exists flathub https:&amp;#47;&amp;#47;flathub.org&amp;#47;repo&amp;#47;flathub.flatpakrepo
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Then reboot your machine for the changes to take. Login again and run:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;flatpak install flathub com.sublimetext.three
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;FYI: You &lt;em&gt;might&lt;/em&gt; need to run the above commands under &lt;code&gt;sudo&lt;/code&gt; if your current user lacks proper permissions.&lt;/p&gt;
+&lt;h3 id=&quot;cursors&quot;&gt;Cursors&lt;/h3&gt;
+&lt;p&gt;This was an odd edge case. For the most part, the default system cursors worked out of the box. Then I installed Firefox. That caused me to go down a rabbit-hole of (still open) tickets referencing poor cursor rendering for Wayland Firefox. Apparently some users even have their cursors disappear completely!&lt;/p&gt;
+&lt;p&gt;Not to worry though - there is an easy fix!&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Install &lt;a href=&quot;https://github.com/keeferrourke/capitaine-cursors&quot;&gt;capitaine cursors&lt;/a&gt;:
+apk add capitaine-cursors&lt;/li&gt;
+&lt;li&gt;Make a new directory:
+mkdir -p ~&amp;#47;.icons&amp;#47;capitaine-cursors&lt;/li&gt;
+&lt;li&gt;Copy the files over:
+sudo cp -r &amp;#47;usr&amp;#47;share&amp;#47;icons&amp;#47;capitaine-cursors-dark ~&amp;#47;.icons&amp;#47;capitaine-cursors&lt;/li&gt;
+&lt;li&gt;The make your cursor changes using &lt;code&gt;gnome-tweaks&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Profit!&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
+&lt;p&gt;Overall I&amp;#8217;m decently satisfied with my &amp;#8220;installer&amp;#8221;. I&amp;#8217;ve included &lt;em&gt;just enough&lt;/em&gt; packages to hit the ground running when using this on new hardware or even needing to recover existing devices. This project certainly won&amp;#8217;t cover the needs of all users, but my hope is that others can always fork their own and give it a spin! (Please do report any bugs or issues as you come across them!)&lt;/p&gt;
+&lt;p&gt;Alpine Linux can be more than just a &amp;#8220;server distro&amp;#8221;. My daily driver proves it!&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;This is now included in my official installer script, but I originally had to install this manually.&lt;/li&gt;
+&lt;/ol&gt;</description>
+ <link>https://btxx.org/alpine</link>
+ <guid isPermaLink="false">https://btxx.org/alpine</guid>
+ <pubDate>Thu, 08 Dec 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Animated Card Tiles</title>
+ <description>&lt;h1 id=&quot;animated-card-tiles&quot;&gt;Animated Card Tiles&lt;/h1&gt;
+&lt;p&gt;2019-02-27&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;The design trend of using &amp;#8220;cards&amp;#8221; or &amp;#8220;tiles&amp;#8221; to display interactive&lt;/em&gt; sections&amp;#47;article headings in an app or website remains a popular choice among designers. So, let&amp;#8217;s build a set of animated cards with only HTML &amp;#38; CSS. &lt;/p&gt;
+&lt;h2 id=&quot;what-we-will-be-building-live-demo&quot;&gt;What we will be building (live demo)&lt;/h2&gt;
+&lt;p&gt;This is the set of animated card tiles we will be creating:&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;(try hovering)&lt;/em&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/rNjBpob&quot;&gt;Live CodePen&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;p&gt;For the base skeleton of these cards we only need:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Unless it is a critical use-case, users should not have to process or download extra resources&lt;/li&gt;
-&lt;li&gt;This also includes remove ads, pop-ups, 3rd party sign-up prompts, cookie notifications, over-the-top element animations, and all other &lt;strong&gt;garbage&lt;/strong&gt;. This impacts &lt;em&gt;UX&lt;/em&gt; performance, which is just as crucial as website loading speed&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;a &lt;code&gt;flexbox&lt;/code&gt; main container to hold everything&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;a &lt;code&gt;.card-tile&lt;/code&gt; parent element&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;the inner child element that will display on &lt;code&gt;:hover&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;proper &lt;code&gt;h4&lt;/code&gt; and &lt;code&gt;p&lt;/code&gt; tags inside that child element&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;no-need-to-be-extreme&quot;&gt;No need to be extreme&lt;/h2&gt;
-&lt;p&gt;These quick &amp;#8220;guidelines&amp;#8221; are just a solid jumping-off point when tackling new projects or re-working current websites. There isn&amp;#8217;t some agreed upon &lt;em&gt;golden standard&lt;/em&gt; when it comes to web performance, but I find these rules work as a great place to start. Hopefully it can help others as well.&lt;/p&gt;</description>
- <link>https://btxx.org/they-wont-wait</link>
- <guid isPermaLink="false">https://btxx.org/they-wont-wait</guid>
- <pubDate>Tue, 25 Jun 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Text Align: Justify</title>
- <description>&lt;h1 id=&quot;text-align-justify&quot;&gt;Text Align: Justify&lt;/h1&gt;
-&lt;p&gt;2019-05-22&lt;/p&gt;
-&lt;p&gt;The text-align property is fairly well known in the world of CSS, even among those just starting out with the language. Values such as &lt;code&gt;center&lt;/code&gt;, &lt;code&gt;left&lt;/code&gt; and &lt;code&gt;right&lt;/code&gt; are used often with this property, but a more forgotten option is &lt;code&gt;justify&lt;/code&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;what-does-justify-do&quot;&gt;What does justify do?&lt;/h2&gt;
-&lt;p&gt;The MDN web docs define the &lt;code&gt;justify&lt;/code&gt; value for &lt;code&gt;text-align&lt;/code&gt; as such:&lt;/p&gt;
-&lt;h3 id=&quot;see-it-in-action&quot;&gt;See it in action&lt;/h3&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/vwpmNz/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;when-should-i-use-this&quot;&gt;When should I use this?&lt;/h2&gt;
-&lt;p&gt;It isn&amp;#8217;t always appropriate to use &lt;code&gt;justify&lt;/code&gt; in most instances, although it becomes very useful for long form articles or blog posts. Since it takes a heavy influence from original &lt;em&gt;print&lt;/em&gt; book layouts, the &lt;code&gt;justify&lt;/code&gt; value helps improve readability for larger chunks of content.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Fair warning&lt;/strong&gt;: it is best to remove any &lt;code&gt;justify&lt;/code&gt; values when targeting smaller screen sizes. Mobile devices and&amp;#47;or tablets tend to be small enough to break up the content already. This CSS value is better suited for larger viewports.&lt;/p&gt;
-&lt;h2 id=&quot;browser-support&quot;&gt;Browser support&lt;/h2&gt;
-&lt;p&gt;The good news is that all major browsers support the &lt;code&gt;justify&lt;/code&gt; value for the &lt;code&gt;text-align&lt;/code&gt; CSS property. So have some worry-free fun with it!&lt;/p&gt;</description>
- <link>https://btxx.org/text-align-justify</link>
- <guid isPermaLink="false">https://btxx.org/text-align-justify</guid>
- <pubDate>Wed, 22 May 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>The Wonders of Text Ellipsis</title>
- <description>&lt;h1 id=&quot;the-wonders-of-text-ellipsis&quot;&gt;The Wonders of Text Ellipsis&lt;/h1&gt;
-&lt;p&gt;2016-11-15&lt;/p&gt;
-&lt;p&gt;A common issue when working with constrained UI elements is text overflowing outside of it&amp;#8217;s parent or breaking into addition lines (thus breaking the layout).&lt;/p&gt;
-&lt;p&gt;This is most commonly seen with the direct and placeholder values for input fields on form elements. For example, the following input placeholder will be cutoff from the user&amp;#8217;s view:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/OgpzyY/&quot;&gt;CodePen live example&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;Luckily, 3 simple CSS parameters can fix this.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;input::placeholder {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
+&lt;p&gt;That&amp;#8217;s all that is needed - for now. We will be returning to this code shortly to add some extra classes to make our lives easier.&lt;/p&gt;
+&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
+&lt;p&gt;First we set the main housing container to use &lt;code&gt;flex&lt;/code&gt; so we save ourselves the headache of aligning all the cards in a nice row:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.card-tiles-container {
+ display: flex;
+ font-size: 14px;
+ margin: 20px 0;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This allows the user to understand there is more content cut out from their current view. It&amp;#8217;s not ideal to ever have content overflowing outside of the parent container, but if you need to the best workaround is to use text-overflow.&lt;/p&gt;</description>
- <link>https://btxx.org/te</link>
- <guid isPermaLink="false">https://btxx.org/te</guid>
- <pubDate>Tue, 15 Nov 2016 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Making Tables Responsive With Minimal CSS</title>
- <description>&lt;h1 id=&quot;making-tables-responsive-with-minimal-css&quot;&gt;Making Tables Responsive With Minimal CSS&lt;/h1&gt;
-&lt;p&gt;2019-06-11&lt;/p&gt;
-&lt;hr/&gt;
-&lt;p&gt;I find that the need to create responsive table layouts pops up far more often than most developers would expect. The gut reaction might to be implement some sort of custom grid-system or pull in a pre-built library. Don&amp;#8217;t do this - just use tables and some simple CSS.&lt;/p&gt;
-&lt;p&gt;My recent article, &lt;a href=&quot;/html-like-1999&quot;&gt;Write HTML Like It&amp;#8217;s 1999&lt;/a&gt;, received far more attention than I ever expected on HackerNews. With this attention came a few comments mentioning how &lt;code&gt;table&lt;/code&gt; elements don&amp;#8217;t play nice with mobile devices or that it&amp;#8217;s not possible to have a useable layout on smaller screens. &lt;em&gt;This simply isn&amp;#8217;t true&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;Included below are two separate demos showing how to optimize &lt;code&gt;table&lt;/code&gt; HTML for mobile devices using only a minimal amount of CSS. These implementations may not be perfect, but they are far superior to injecting a bunch of custom &lt;code&gt;div&lt;/code&gt; elements to &lt;em&gt;look&lt;/em&gt; like tables.&lt;/p&gt;
-&lt;h2 id=&quot;demo-1-just-let-them-scroll&quot;&gt;Demo 1: Just let them scroll&lt;/h2&gt;
-&lt;p&gt;Okay I will admit, this implementation isn&amp;#8217;t the &lt;em&gt;greatest&lt;/em&gt; but I find it does work well with huge datasets. Simply set a &lt;code&gt;min-width&lt;/code&gt; on your parent &lt;code&gt;table&lt;/code&gt; element and the browser will just require the user to scroll the contents horizontally.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;table {
- min-width: 800px; &amp;#47;* Set your desired min-width here *&amp;#47;
+&lt;p&gt;Next we create the default styling for our tile cards and set the &lt;code&gt;transform&lt;/code&gt; property to scale the card on &lt;code&gt;:hover&lt;/code&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Default card tile styles *&amp;#47;
+.card-tile {
+ border: 1px solid;
+ border-radius: 10px;
+ cursor: pointer;
+ height: 150px;
+ margin: 0 10px;
+ overflow: hidden;
+ position: relative;
+ width: 33.33%;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Check out the CodePen below to see it in action:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/ewObbW/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;I actually prefer this method because of its simplicity and function. Users on mobile are familiar with scrolling since it is one of the most basic actions required. Seeing a &amp;#8220;cut-off&amp;#8221; table gives them an instant visual cue that they have the ability to scroll the content.&lt;/p&gt;
-&lt;h2 id=&quot;demo-2-more-flexible-than-you-think&quot;&gt;Demo 2: More flexible than you think&lt;/h2&gt;
-&lt;p&gt;Using something like &lt;code&gt;flexbox&lt;/code&gt; tends to work better when you are working with smaller table datasets. All you need to do is add some minor &lt;code&gt;flexbox&lt;/code&gt; layout at your targeted mobile screen size.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Using 800px as mobile screen in this example *&amp;#47;
-@media(max-width: 800px) {
- &amp;#47;* Hide the table headings *&amp;#47;
- table thead {
- left: -9999px;
- position: absolute;
- visibility: hidden;
- }
- table tr {
- border-bottom: 0;
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- margin-bottom: 40px;
- }
- table td {
- border: 1px solid;
- margin: 0 -1px -1px 0; &amp;#47;* Removes double-borders *&amp;#47;
- width: 50%;
- }
+.card-tile:hover {
+ transform: scale(1.1);
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/mZbvOb/&quot;&gt;Check out the CodePen demo&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;There are some caveats with this approach:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;We currently hide the &lt;code&gt;thead&lt;/code&gt; row when in mobile view (only visually - screen readers can still scan it)&lt;/li&gt;
-&lt;li&gt;Some more custom work might be needed depending on how many items per &lt;code&gt;flexbox&lt;/code&gt; row makes sense (based on project and dataset)&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;You could keep the table headings and style them the same as the &lt;code&gt;tbody&lt;/code&gt; contents, but I find hiding them a little cleaner. That choice is entirely up to your personal preference. You can also decide to add heading &lt;code&gt;span&lt;/code&gt; elements inside the main &lt;code&gt;tbody&lt;/code&gt; elements like so:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Default span styling - hidden on desktop *&amp;#47;
-table td span {
- background: #eee;
- color: dimgrey;
- display: none;
- font-size: 10px;
- font-weight: bold;
- padding: 5px;
+&lt;h3 id=&quot;where-are-my-cards&quot;&gt;Where are my cards?!&lt;/h3&gt;
+&lt;p&gt;Don&amp;#8217;t panic if you can&amp;#8217;t &lt;em&gt;visually&lt;/em&gt; see any card elements in your demo yet - that&amp;#8217;s to be expected. We will be styling these card elements momentarily.&lt;/p&gt;
+&lt;p&gt;Our next step is to hide the default inner &lt;code&gt;text-content&lt;/code&gt; and only show it on hover. We achieve this by setting it&amp;#8217;s position to &lt;code&gt;absolute&lt;/code&gt;, placing it&amp;#8217;s opacity at 0 and pushing it&amp;#8217;s z-index back to -1.&lt;/p&gt;
+&lt;p&gt;When the user hovers over a main card tile, we change the &lt;code&gt;text-content&lt;/code&gt; values of both the opacity and z-index to 1.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Card tile text content *&amp;#47;
+.card-tile .text-content {
+ background: linear-gradient(rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
+ bottom: 10px;
+ border: 1px solid rgba(0,0,0,0.4);
+ border-radius: 5px;
+ box-shadow: inset 0 1px 1px rgba(255,255,255,0.8),
+ 0 2px 4px rgba(0,0,0,0.5);
+ height: 65px;
+ left: 10px;
+ opacity: 0;
+ padding: 10px;
position: absolute;
- text-transform: uppercase;
- top: 0;
- left: 0;
+ width: calc(100% - 20px);
+ z-index: -1;
}
-
-&amp;#47;* Simple CSS for flexbox table on mobile *&amp;#47;
-@media(max-width: 800px) {
- table thead {
- left: -9999px;
- position: absolute;
- visibility: hidden;
- }
- table tr {
- border-bottom: 0;
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- margin-bottom: 40px;
- }
- table td {
- border: 1px solid;
- margin: 0 -1px -1px 0;
- padding-top: 35px; &amp;#47;* additional padding to avoid heading overlap *&amp;#47;
- position: relative;
- width: 50%;
+.card-tile:hover .text-content {
+ opacity: 1;
+ z-index: 1;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Finally we add some minor styling for the inner header and paragraph tags:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.card-tile .text-content h4,
+.card-tile .text-content p {
+ color: #fff;
+ margin: 0;
+ text-shadow: 1px 1px 1px rgba(0,0,0,0.6);
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;dont-forget-mobile&quot;&gt;Don&amp;#8217;t forget mobile&lt;/h3&gt;
+&lt;p&gt;We want out UI to stack the cards if users are viewing them on smaller devices:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@media(max-width: 600px) {
+ .card-tiles-container {
+ flex-direction: column;
}
- &amp;#47;* Show the heading span *&amp;#47;
- table td span {
- display: block;
+ .card-tile {
+ margin: 0 0 10px 0;
+ width: 100%;
}
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/mZdzmZ/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Updated&lt;/strong&gt;: As pointed out by user &lt;a href=&quot;https://news.ycombinator.com/user?id=mmoez&quot;&gt;mmoez&lt;/a&gt;, it is far less repetitive to use &lt;code&gt;:nth-child&lt;/code&gt; pseudo selectors to implement the heading fields on mobile (as outlined in this &lt;a href=&quot;https://css-tricks.com/responsive-data-tables/&quot;&gt;CSS-Tricks article&lt;/a&gt;).&lt;/p&gt;
-&lt;h2 id=&quot;why-should-i-care-to-use-elements&quot;&gt;Why should I care to use &lt;code&gt;table&lt;/code&gt; elements?&lt;/h2&gt;
-&lt;p&gt;Simply put: &lt;strong&gt;accessibility&lt;/strong&gt; and &lt;strong&gt;proper semantics&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;Why use a screwdriver when you need a hammer? Sure, you can make that screwdriver look and &lt;em&gt;almost&lt;/em&gt; work the same as a hammer, but for what purpose? Just use the damn hammer1.&lt;/p&gt;
-&lt;p&gt;Have fun making your tables responsive!&lt;/p&gt;
-&lt;p&gt;1 I know, this is a terrible analogy&amp;#8230;&lt;/p&gt;</description>
- <link>https://btxx.org/tables</link>
- <guid isPermaLink="false">https://btxx.org/tables</guid>
- <pubDate>Tue, 11 Jun 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Tabbed Content Without JavaScript</title>
- <description>&lt;h1 id=&quot;tabbed-content-without-javascript&quot;&gt;Tabbed Content Without JavaScript&lt;/h1&gt;
-&lt;p&gt;2019-01-28&lt;/p&gt;
-&lt;p&gt;Creating tabs is a fairly trivial and common practice in web design, but many times it requires JavaScript to properly implement. Fortunately it &lt;em&gt;is&lt;/em&gt; possible to create tabbed content with only using CSS.&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/tabbed-content.png&quot; alt=&quot;Tabbed elements with only CSS&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/abjmayw&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;hr/&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;The skeleton for this component is fairly basic - we just need the following structure:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;&lt;p&gt;Parent element for each tab item&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Default radio input&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Label linked to corresponding input&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Inner content associated with each tab item&lt;/p&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;Full HTML for reference:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;tabs&quot;&amp;#62;
-
- &amp;#60;div class=&quot;tab-item&quot;&amp;#62;
- &amp;#60;input class=&quot;tab-input&quot; type=&quot;radio&quot; name=&quot;tabs&quot; id=&quot;tab-1&quot;&amp;#62;
- &amp;#60;label class=&quot;tab-label&quot; for=&quot;tab-1&quot;&amp;#62;Tab 1&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;div class=&quot;tab-content&quot;&amp;#62;Content goes here&amp;#60;&amp;#47;div&amp;#62;
+&lt;h2 id=&quot;customizing-each-card&quot;&gt;Customizing each card&lt;/h2&gt;
+&lt;p&gt;Remember how I mentioned that we would be adding more classes to the original HTML? Now is the time. We will be including a simple class on each card tile to provide it&amp;#8217;s own custom coloring:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;card-tiles-container&quot;&amp;#62;
+ &amp;#60;!-- `Blue` class --&amp;#62;
+ &amp;#60;div class=&quot;card-tile blue&quot;&amp;#62;
+ &amp;#60;div class=&quot;text-content&quot;&amp;#62;
+ &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
+ &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
&amp;#60;&amp;#47;div&amp;#62;
-
- &amp;#60;div class=&quot;tab-item&quot;&amp;#62;
- &amp;#60;input class=&quot;tab-input&quot; type=&quot;radio&quot; name=&quot;tabs&quot; id=&quot;tab-2&quot;&amp;#62;
- &amp;#60;label class=&quot;tab-label&quot; for=&quot;tab-2&quot;&amp;#62;Tab 2&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;div class=&quot;tab-content&quot;&amp;#62;Content goes here&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;!-- `Orange` class --&amp;#62;
+ &amp;#60;div class=&quot;card-tile orange&quot;&amp;#62;
+ &amp;#60;div class=&quot;text-content&quot;&amp;#62;
+ &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
+ &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
&amp;#60;&amp;#47;div&amp;#62;
-
- &amp;#60;div class=&quot;tab-item&quot;&amp;#62;
- &amp;#60;input class=&quot;tab-input&quot; type=&quot;radio&quot; name=&quot;tabs&quot; id=&quot;tab-3&quot;&amp;#62;
- &amp;#60;label class=&quot;tab-label&quot; for=&quot;tab-3&quot;&amp;#62;Tab 3&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;div class=&quot;tab-content&quot;&amp;#62;Content goes here&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;!-- `Green` class --&amp;#62;
+ &amp;#60;div class=&quot;card-tile green&quot;&amp;#62;
+ &amp;#60;div class=&quot;text-content&quot;&amp;#62;
+ &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
+ &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
&amp;#60;&amp;#47;div&amp;#62;
-
&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;First, we need to set each &lt;code&gt;input&lt;/code&gt;, &lt;code&gt;label&lt;/code&gt; and inner content into their own parent containers:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Main parent that holds all contents *&amp;#47;
-.tabs {
- height: 100%;
- min-height: 250px;
- position: relative;
+&lt;p&gt;And these color classes correlate to some new CSS styling:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Blue Card *&amp;#47;
+.card-tile.blue {
+ background-color: #0093E9;
+ background-image: linear-gradient(0deg, #0093E9 0%, #80D0C7 100%);
+ border-color: #0093E9;
+ box-shadow: 0 4px 12px rgba(128,208,199,0.7),
+ inset 0 2px 1px rgba(255,255,255,0.6);
+}
+.card-tile.blue:hover {
+ box-shadow: 0 8px 18px rgba(128,208,199,0.4),
+ inset 0 2px 1px rgba(255,255,255,0.6);
}
-&amp;#47;* Each tab items (includes heading &amp;#38; content) *&amp;#47;
-.tab-item {
- display: inline;
+&amp;#47;* Orange Card *&amp;#47;
+.card-tile.orange {
+ background-color: #FAD961;
+ background-image: linear-gradient(180deg, #FAD961 0%, #F76B1C 100%);
+ border-color: #F76B1C;
+ box-shadow: 0 4px 12px rgba(247,107,28,0.7),
+ inset 0 2px 1px rgba(255,255,255,0.6);
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next, we will hide the default &lt;code&gt;radio&lt;/code&gt; input and design our labels to resemble a basic web tab element. The &lt;code&gt;z-index&lt;/code&gt; property on the label is important for how we will be stacking our content on the z-axis (labels above inner content for example).&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Hide the default radio inputs *&amp;#47;
-.tab-input {
- position: absolute;
- visibility: hidden;
+.card-tile.orange:hover {
+ box-shadow: 0 8px 18px rgba(247,107,28,0.4),
+ inset 0 2px 1px rgba(255,255,255,0.6);
}
-&amp;#47;* The main tab headings *&amp;#47;
-.tab-label {
- background: white;
- box-shadow: inset 0 -4px 4px rgba(0,0,0,0.02);
- color: lightgrey;
- cursor: pointer;
- display: inline-block;
- font-weight: 600;
- margin: 0 5px 0 0;
- padding: 10px 20px;
- position: relative;
- text-align: center;
- z-index: 0;
+&amp;#47;* Green Card *&amp;#47;
+.card-tile.green {
+ background-color: #096e40;
+ background-image: linear-gradient(0deg, #096e40 0%, #2AF598 100%);
+ border-color: #096e40;
+ box-shadow: 0 4px 12px rgba(9,110,64,0.7),
+ inset 0 2px 1px rgba(255,255,255,0.6);
+}
+.card-tile.green:hover {
+ box-shadow: 0 8px 18px rgba(9,110,64,0.4),
+ inset 0 2px 1px rgba(255,255,255,0.6);
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;The main inner content of each tab needs to have an &lt;code&gt;absolute&lt;/code&gt; position set as it&amp;#8217;s default, since the one currently selected will switch to &lt;code&gt;relative&lt;/code&gt; on mobile (more on that in a moment):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* The inner tab content *&amp;#47;
-.tab-content {
- background: white;
- bottom: 0;
- box-shadow: 0 6px 8px rgba(0,0,0,0.02);
- left: 0;
- overflow: scroll;
- padding: 20px;
- position: absolute;
- right: 0;
- top: 50px;
- z-index: 0;
+&lt;h3 id=&quot;adding-transitions&quot;&gt;Adding transitions&lt;/h3&gt;
+&lt;p&gt;We can now see the actual cards visually and have the ability to interact with them, but there is a problem - they don&amp;#8217;t animate.&lt;/p&gt;
+&lt;p&gt;Lucky we can target all elements we wish to animate with the &lt;code&gt;transition&lt;/code&gt; property, like so:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Shared transitions *&amp;#47;
+.card-tile,
+.card-tile .text-content {
+ transition: .3s ease all;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;The final step is just telling the browser to style both the &lt;code&gt;label&lt;/code&gt; and inner content of the currently selected radio &lt;code&gt;input&lt;/code&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Style the currently selected tab label *&amp;#47;
-.tab-input:checked + .tab-label {
- border: 1px solid #eee;
- border-bottom: 0;
- box-shadow: 0 -6px 8px rgba(0,0,0,0.02);
- color: #268bd2;
- z-index: 2;
+&lt;p&gt;Done and done.&lt;/p&gt;
+&lt;h2 id=&quot;the-final-code&quot;&gt;The final code&lt;/h2&gt;
+&lt;p&gt;To make things easier for reference, I have included all the &lt;code&gt;html&lt;/code&gt; and &lt;code&gt;css&lt;/code&gt; below. Please feel free to use these cards anywhere you like and change them as you see fit!&lt;/p&gt;
+&lt;h3 id=&quot;html&quot;&gt;HTML&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;card-tiles-container&quot;&amp;#62;
+ &amp;#60;div class=&quot;card-tile blue&quot;&amp;#62;
+ &amp;#60;div class=&quot;text-content&quot;&amp;#62;
+ &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
+ &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;card-tile orange&quot;&amp;#62;
+ &amp;#60;div class=&quot;text-content&quot;&amp;#62;
+ &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
+ &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;card-tile green&quot;&amp;#62;
+ &amp;#60;div class=&quot;text-content&quot;&amp;#62;
+ &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
+ &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;css&quot;&gt;CSS&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;.card-tiles-container {
+ display: flex;
+ font-size: 14px;
+ margin: 20px 0;
}
-
-&amp;#47;* Show the currently selected tab content *&amp;#47;
-.tab-input:checked ~ .tab-content {
- border: 1px solid #eee;
- z-index: 1;
+&amp;#47;* Shared transitions *&amp;#47;
+.card-tile,
+.card-tile .text-content {
+ transition: .3s ease all;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;It&amp;#8217;s as simple as that! For reference, here is the entire CSS file for easier access:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Main parent that holds all contents *&amp;#47;
-.tabs {
- height: 100%;
- min-height: 250px;
+&amp;#47;* Default card tile styles *&amp;#47;
+.card-tile {
+ border: 1px solid;
+ border-radius: 10px;
+ cursor: pointer;
+ height: 150px;
+ margin: 0 10px;
+ overflow: hidden;
position: relative;
+ width: 33.33%;
}
-
-&amp;#47;* Each tab items (includes heading &amp;#38; content) *&amp;#47;
-.tab-item {
- display: inline;
+&amp;#47;* Blue Card *&amp;#47;
+.card-tile.blue {
+ background-color: #0093E9;
+ background-image: linear-gradient(0deg, #0093E9 0%, #80D0C7 100%);
+ border-color: #0093E9;
+ box-shadow: 0 4px 12px rgba(128,208,199,0.7),
+ inset 0 2px 1px rgba(255,255,255,0.6);
}
-
-&amp;#47;* Hide the default radio inputs *&amp;#47;
-.tab-input {
- position: absolute;
- visibility: hidden;
+.card-tile.blue:hover {
+ box-shadow: 0 8px 18px rgba(128,208,199,0.4),
+ inset 0 2px 1px rgba(255,255,255,0.6);
}
-
-&amp;#47;* The main tab headings *&amp;#47;
-.tab-label {
- background: white;
- box-shadow: inset 0 -4px 4px rgba(0,0,0,0.02);
- color: lightgrey;
- cursor: pointer;
- display: inline-block;
- font-weight: 600;
- margin: 0 5px 0 0;
- padding: 10px 20px;
- position: relative;
- text-align: center;
- z-index: 0;
+&amp;#47;* Orange Card *&amp;#47;
+.card-tile.orange {
+ background-color: #FAD961;
+ background-image: linear-gradient(180deg, #FAD961 0%, #F76B1C 100%);
+ border-color: #F76B1C;
+ box-shadow: 0 4px 12px rgba(247,107,28,0.7),
+ inset 0 2px 1px rgba(255,255,255,0.6);
}
-
-&amp;#47;* The inner tab content *&amp;#47;
-.tab-content {
- background: white;
- bottom: 0;
- box-shadow: 0 6px 8px rgba(0,0,0,0.02);
- left: 0;
- overflow: scroll;
- padding: 20px;
+.card-tile.orange:hover {
+ box-shadow: 0 8px 18px rgba(247,107,28,0.4),
+ inset 0 2px 1px rgba(255,255,255,0.6);
+}
+&amp;#47;* Green Card *&amp;#47;
+.card-tile.green {
+ background-color: #096e40;
+ background-image: linear-gradient(0deg, #096e40 0%, #2AF598 100%);
+ border-color: #096e40;
+ box-shadow: 0 4px 12px rgba(9,110,64,0.7),
+ inset 0 2px 1px rgba(255,255,255,0.6);
+}
+.card-tile.green:hover {
+ box-shadow: 0 8px 18px rgba(9,110,64,0.4),
+ inset 0 2px 1px rgba(255,255,255,0.6);
+}
+&amp;#47;* Card tile text content *&amp;#47;
+.card-tile .text-content {
+ background: linear-gradient(rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
+ bottom: 10px;
+ border: 1px solid rgba(0,0,0,0.4);
+ border-radius: 5px;
+ box-shadow: inset 0 1px 1px rgba(255,255,255,0.8),
+ 0 2px 4px rgba(0,0,0,0.5);
+ height: 65px;
+ left: 10px;
+ opacity: 0;
+ padding: 10px;
position: absolute;
- right: 0;
- top: 50px;
- z-index: 0;
+ width: calc(100% - 20px);
+ z-index: -1;
}
-
-&amp;#47;* Style the currently selected tab label *&amp;#47;
-.tab-input:checked + .tab-label {
- border: 1px solid #eee;
- border-bottom: 0;
- box-shadow: 0 -6px 8px rgba(0,0,0,0.02);
- color: #268bd2;
- z-index: 2;
+.card-tile .text-content h4,
+.card-tile .text-content p {
+ color: #fff;
+ margin: 0;
+ text-shadow: 1px 1px 1px rgba(0,0,0,0.6);
}
-
-&amp;#47;* Show the currently selected tab content *&amp;#47;
-.tab-input:checked ~ .tab-content {
- border: 1px solid #eee;
+&amp;#47;* All animations on hover *&amp;#47;
+.card-tile:hover {
+ transform: scale(1.1);
+}
+.card-tile:hover .text-content {
+ opacity: 1;
z-index: 1;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;dont-forget-about-mobile&quot;&gt;Don&amp;#8217;t forget about mobile&lt;/h2&gt;
-&lt;p&gt;With only a few extra lines of CSS we can ensure that our custom tabs will stack on top of each other and look solid on mobile devices:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@media(max-width:38em) {
- .tab-label {
- display: block;
- width: 100%;
- }
- .tab-content {
- display: none;
+@media(max-width: 600px) {
+ .card-tiles-container {
+ flex-direction: column;
}
- .tab-input:checked ~ .tab-content {
- bottom: auto;
- display: block;
- position: relative;
- top: auto;
+ .card-tile {
+ margin: 0 0 10px 0;
+ width: 100%;
}
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;one-minor-caveat&quot;&gt;One minor caveat&lt;/h2&gt;
-&lt;p&gt;Even though I&amp;#8217;m a pretty big fan of implementing tabs this way, there is a small drawback:&lt;/p&gt;
-&lt;p&gt;The &lt;code&gt;height&lt;/code&gt; of the inner content doesn&amp;#8217;t grow dynamically since it defaults as &lt;code&gt;absolute&lt;/code&gt;, so a &lt;code&gt;min-height&lt;/code&gt; or &lt;code&gt;height&lt;/code&gt; value is required on the parent element. This could become a problem in certain situations where you don&amp;#8217;t have the luxury of setting a static height.&lt;/p&gt;
-&lt;p&gt;Other than that, enjoy building some JavaScript-free tabs!&lt;/p&gt;</description>
- <link>https://btxx.org/tabbed-content</link>
- <guid isPermaLink="false">https://btxx.org/tabbed-content</guid>
- <pubDate>Mon, 28 Jan 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Super Mario Blocks in CSS</title>
- <description>&lt;h1 id=&quot;super-mario-blocks-in-css&quot;&gt;Super Mario Blocks in CSS&lt;/h1&gt;
-&lt;p&gt;2019-02-15&lt;/p&gt;
-&lt;p&gt;Just because we can, let&amp;#8217;s make a quick demo on how to build interactive elements based off the original Mario punch blocks.&lt;/p&gt;
-&lt;p&gt;What our final product will look like:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/mario-block.png&quot; alt=&quot;Mario blocks cretaed with CSS&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/JjEPOVe&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;The set of Mario blocks doesn&amp;#8217;t require a huge amount of effort for it&amp;#8217;s &lt;code&gt;html&lt;/code&gt; structure, we only need:&lt;/p&gt;
+&lt;/code&gt;&lt;/pre&gt;</description>
+ <link>https://btxx.org/animated-card-tiles</link>
+ <guid isPermaLink="false">https://btxx.org/animated-card-tiles</guid>
+ <pubDate>Wed, 27 Feb 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Animated Radio Tab Toggles</title>
+ <description>&lt;h1 id=&quot;animated-radio-tab-toggles&quot;&gt;Animated Radio Tab Toggles&lt;/h1&gt;
+&lt;p&gt;2021-01-05&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;In this demo tutorial, we are making the assumption&lt;/em&gt; that we need to create a radio slide toggle for our made-up payment options. For this we want to display 3 simple payment choices to the user:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Parent div for each block&lt;/li&gt;
-&lt;li&gt;Checkbox input&lt;/li&gt;
-&lt;li&gt;Checkbox label&lt;/li&gt;
-&lt;li&gt;Inner label divs to represent the block &amp;#8220;dots&amp;#8221;&lt;/li&gt;
+&lt;li&gt;One-time payment&lt;/li&gt;
+&lt;li&gt;Recurring payment&lt;/li&gt;
+&lt;li&gt;Free tier payment&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;&lt;strong&gt;Sidenote&lt;/strong&gt;: This is only how &lt;em&gt;I&lt;/em&gt; chose to add the inner dots to the Mario blocks. There are many other ways to create these, so please feel free to implement them however you see fit.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;!-- Main parent block --&amp;#62;
-&amp;#60;div class=&quot;mario-block&quot;&amp;#62;
-
- &amp;#60;!-- Checkbox input (disabled by default) --&amp;#62;
- &amp;#60;input type=&quot;checkbox&quot; id=&quot;1&quot; disabled&amp;#62;
-
- &amp;#60;!-- Checkbox label --&amp;#62;
- &amp;#60;label for=&quot;1&quot;&amp;#62;
- &amp;#60;!-- Inner dots for blocks --&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;label&amp;#62;
-
-&amp;#60;&amp;#47;div&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now we just add as many default blocks we want, along with the interactive punch block (&lt;code&gt;.mario-block--question&lt;/code&gt;):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;mario-block&quot;&amp;#62;
- &amp;#60;input type=&quot;checkbox&quot; id=&quot;1&quot; disabled&amp;#62;
- &amp;#60;label for=&quot;1&quot;&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;label&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
-
-&amp;#60;div class=&quot;mario-block&quot;&amp;#62;
- &amp;#60;input type=&quot;checkbox&quot; id=&quot;2&quot; disabled&amp;#62;
- &amp;#60;label for=&quot;2&quot;&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;label&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
-
-&amp;#60;div class=&quot;mario-block mario-block--question&quot;&amp;#62;
- &amp;#60;input type=&quot;checkbox&quot; id=&quot;3&quot;&amp;#62;
- &amp;#60;label for=&quot;3&quot;&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;question-mark&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;label&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
-
-&amp;#60;div class=&quot;mario-block&quot;&amp;#62;
- &amp;#60;input type=&quot;checkbox&quot; id=&quot;4&quot; disabled&amp;#62;
- &amp;#60;label for=&quot;4&quot;&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;label&amp;#62;
+&lt;h2 id=&quot;the-final-demo&quot;&gt;The Final Demo&lt;/h2&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/embed/vYXjpLO&quot;&gt;Live CodePen&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;Let’s get started with the base skeleton.&lt;/p&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;radio-toggles&quot;&amp;#62;
+ &amp;#60;input type=&quot;radio&quot; id=&quot;option-1&quot; name=&quot;radio-options&quot;&amp;#62;
+ &amp;#60;label for=&quot;option-1&quot;&amp;#62;One-Time&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;input type=&quot;radio&quot; id=&quot;option-2&quot; name=&quot;radio-options&quot; checked&amp;#62;
+ &amp;#60;label for=&quot;option-2&quot;&amp;#62;Recurring&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;input type=&quot;radio&quot; id=&quot;option-3&quot; name=&quot;radio-options&quot;&amp;#62;
+ &amp;#60;label for=&quot;option-3&quot;&amp;#62;Free&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;div class=&quot;slide-item&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;First we need to remove the default &lt;code&gt;checkbox&lt;/code&gt; input styling and place all new styling on it&amp;#8217;s corresponding &lt;code&gt;label&lt;/code&gt;.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Mario block parent div *&amp;#47;
-.mario-block {
- display: inline-block;
- height: 80px;
- margin-right: -7px; &amp;#47;* Fixes inline-block margin bug *&amp;#47;
+&lt;p&gt;Now for the main event – the CSS. First we want to style the wrapper that holds all of our pieces together. You can tweak this to your liking, but I prefer a simple and clean style:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.radio-toggles {
+ align-items: center;
+ background: #eee;
+ border: 1px solid lightgrey;
+ border-radius: 9999px;
+ display: flex;
+ justify-content: center;
+ margin: 20px auto;
+ max-width: 400px;
+ overflow: hidden;
+ padding: 4px;
position: relative;
- width: 80px;
}
-
-&amp;#47;* Hide default checkbox input *&amp;#47;
-.mario-block input {
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Next, we “hide” (only visually) the default &lt;code&gt;radio&lt;/code&gt; inputs:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;input[type=&quot;radio&quot;] {
+ left: -9999px;
position: absolute;
- visibility: hidden;
z-index: -1;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now to target the &lt;code&gt;label&lt;/code&gt; elements found inside the block:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Style checkbox label accordingly *&amp;#47;
-.mario-block label {
- background: #F88D2E;
- border: 4px solid #070000;
- box-shadow: inset -4px -4px 0 #965117, inset 4px 4px 0 #FAB89B;
- display: block;
- height: 100%;
- position: relative;
- width: 100%;
+&lt;p&gt;Then we give the corresponding &lt;code&gt;label&lt;/code&gt; elements a little spacing and breathing room:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;label {
+ cursor: pointer;
+ padding: 10px 20px;
+ text-align: center;
+ width: 33.33%;
+ z-index: 2;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next we style our included &lt;code&gt;.dots&lt;/code&gt; elements to be placed in the four corners of each block:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.mario-block .dot {
- background: #070000;
- height: 5px;
+&lt;p&gt;Remember that &lt;code&gt;.slide-item&lt;/code&gt; I referenced earlier? That element will be the visual “slider” that animates between the individual radio options. We style that like so:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.slide-item {
+ background: white;
+ border-radius: 9999px;
+ box-shadow: 0 2px 4px rgba(0,0,0,0.15);
+ height: calc(100% - 8px);
+ left: calc(33.33% + 4px);
position: absolute;
- width: 5px;
+ width: calc(33.33% - 8px);
+ transition: left .4s;
+ z-index: 0;
}
-.mario-block .dot:nth-child(1) {
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;You&amp;#8217;ll notice the &lt;code&gt;left&lt;/code&gt;, &lt;code&gt;height&lt;/code&gt;, and &lt;code&gt;width&lt;/code&gt; properties utilize the CSS &lt;code&gt;calc&lt;/code&gt; attributes – this just gives some much needed padding and visual clean-up to the whole tabbed interface.&lt;/p&gt;
+&lt;p&gt;For the finishing touches, we just need to tell the &lt;code&gt;.slide-item&lt;/code&gt; where to position itself based on which &lt;code&gt;radio&lt;/code&gt; input is currently selected:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;input[type=&quot;radio&quot;]:nth-of-type(1):checked ~ .slide-item {
left: 4px;
- top: 4px;
-}
-.mario-block .dot:nth-child(2) {
- right: 4px;
- top: 4px;
}
-.mario-block .dot:nth-child(3) {
- bottom: 4px;
- left: 4px;
+input[type=&quot;radio&quot;]:nth-of-type(3):checked ~ .slide-item {
+ left: calc(66.66% + 4px);
}
-.mario-block .dot:nth-child(4) {
- bottom: 4px;
- right: 4px;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;That&amp;#8217;s pretty much it! You now have a fully functional, animated toggle slider with just a set of simple &lt;code&gt;radio&lt;/code&gt; inputs and pure CSS.&lt;/p&gt;</description>
+ <link>https://btxx.org/animated-toggle-tabs</link>
+ <guid isPermaLink="false">https://btxx.org/animated-toggle-tabs</guid>
+ <pubDate>Tue, 05 Jan 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Audio Hotkeys on Linux Mint</title>
+ <description>&lt;h1 id=&quot;audio-hotkeys-on-linux-mint&quot;&gt;Audio Hotkeys on Linux Mint&lt;/h1&gt;
+&lt;p&gt;2020-06-14&lt;/p&gt;
+&lt;p&gt;I recently switched out the OS on my old 2011 MacBook Air with Linux Mint. It&amp;#8217;s a distro I&amp;#8217;ve used a few times in the past, but never set it as one of my main daily drivers until now.&lt;/p&gt;
+&lt;p&gt;Setting up all my go-to applications (Sublime, LocalWP, Riot, Evolution, etc) was a breeze. The only snag I ran into was properly setting up the volume shortcuts on my wireless &lt;a href=&quot;https://www.amazon.com/gp/product/B01AROOL12/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=B01AROOL12&amp;amp;linkCode=as2&amp;amp;tag=uglyduck-20&amp;amp;linkId=5cfe5875a0f263b933692c381a6a88a9&quot;&gt;Logitech MK235 keyboard&lt;/a&gt;. After looking a little too long on DDG &amp;#38; even Google, I finally found &lt;a href=&quot;https://forums.linuxmint.com/viewtopic.php?t=253048&quot;&gt;this forum thread with the solution&lt;/a&gt;.&lt;/p&gt;
+&lt;p&gt;For my own personal reference, I&amp;#8217;m also going to include those code snippets here since you never know when you might need it again! And who knows, maybe this will help someone else stumbling around the internet.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;&amp;#47; Volume Up
+pactl set-sink-volume @DEFAULT_SINK@ +5%
+
+&amp;#47;&amp;#47; Volume Down
+pactl set-sink-volume @DEFAULT_SINK@ -5%
+
+&amp;#47;&amp;#47; Toggle Mute
+pactl set-sink-mute @DEFAULT_SINK@ toggle
+&lt;/code&gt;&lt;/pre&gt;</description>
+ <link>https://btxx.org/audio-hotkeys-on-linux-mint</link>
+ <guid isPermaLink="false">https://btxx.org/audio-hotkeys-on-linux-mint</guid>
+ <pubDate>Sun, 14 Jun 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Aqua UI CSS Buttons</title>
+ <description>&lt;h1 id=&quot;aqua-ui-css-buttons&quot;&gt;Aqua UI CSS Buttons&lt;/h1&gt;
+&lt;p&gt;2016-06-28&lt;/p&gt;
+&lt;p&gt;Though it may feel like nostalgia, the old OS design for Mac was arguably better than the current iteration (as of this writing - High Sierra). I recently designed a quick Dribbble shot showcasing how the older operating system used to have so much more character and depth.&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/aqua-ui-css-buttons.webp&quot; alt=&quot;Old macOS Buttons&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;My initial Dribbble shot, which can be found &lt;a href=&quot;https://dribbble.com/shots/4561658-Aqua-Buttons-UI&quot;&gt;here&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
+&lt;p&gt;Since I&amp;#8217;ve been wanting to dip my toes into more tutorial-based articles (maybe I&amp;#8217;ll even do some screencasts in the future), I decided to start out simple. Let&amp;#8217;s walk through how to implement these &amp;#8216;aqua&amp;#8217; UI buttons with pure CSS.&lt;/p&gt;
+&lt;h3 id=&quot;starting-with-a-basic-foundation&quot;&gt;Starting with a basic foundation&lt;/h3&gt;
+&lt;p&gt;Since this project consists of only two buttons elements, the HTML or skeleton of this project is very straightforward:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;button class=&quot;cancel&quot;&amp;#62;Cancel&amp;#60;&amp;#47;button&amp;#62;
+&amp;#60;button class=&quot;confirm&quot;&amp;#62;Confirm&amp;#60;&amp;#47;button&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;styling-the-buttons&quot;&gt;Styling the buttons&lt;/h3&gt;
+&lt;p&gt;The first step is to remove the browser&amp;#8217;s default button styling by using the &lt;code&gt;appearance&lt;/code&gt; property. This will help avoid having to fight against the browser and minimize our CSS code.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;button {
+ -webkit-appearance: none;
+ -moz-appearance: none;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;punch-able-block&quot;&gt;Punch-able block&lt;/h3&gt;
-&lt;p&gt;Now we need to include the &amp;#8220;question mark&amp;#8221; SVG and custom CSS for the interactive Mario block. You can download a copy of the custom &lt;code&gt;svg&lt;/code&gt; question mark I created.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.mario-block--question label {
+&lt;p&gt;Next, we apply a fairly simple set of CSS that will be shared across both the confirm and cancel buttons:&lt;/p&gt;
+&lt;p&gt;(Pay attention to the &lt;code&gt;transition&lt;/code&gt; property as we will be returning to that shortly)&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;button {
+ -webkit-appearance: none;
+ -moz-appearance: none;
+ border: 1px solid #ccc;
+ border-radius: 125px;
+ box-shadow: inset 0 13px 25px rgba(255,255,255,0.5), 0 3px 5px rgba(0,0,0,0.2), 0 10px 13px rgba(0,0,0,0.1);
cursor: pointer;
-}
-.mario-block--question .question-mark {
- background-image: url(&amp;#39;&amp;#47;public&amp;#47;images&amp;#47;mario-block-question-mark.svg&amp;#39;);
- background-position: center;
- background-repeat: no-repeat;
- background-size: 40px;
- bottom: 0;
- left: 0;
- position: absolute;
- right: 0;
- top: 0;
- z-index: 1;
+ font-family: &amp;#39;Lucida Grande&amp;#39;, Helvetica, Arial, sans-serif;
+ font-size: 2rem;
+ margin: 5rem 1rem;
+ padding: 1.2rem 4rem;
+ position: relative;
+ transition: all ease .3s;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;the-last-piece&quot;&gt;The last piece&lt;/h3&gt;
-&lt;p&gt;The last item we need to design is the &lt;code&gt;checked&lt;/code&gt; state of the interactive question mark block. The extra inner dark dashes will be added as &lt;code&gt;pseudo&lt;/code&gt; elements:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Mario block in `checked` state *&amp;#47;
-.mario-block input:checked + label {
- background: #885818;
- box-shadow: inset -4px -4px 0 #68400B, inset 4px 4px 0 #FAB89B;
+&lt;p&gt;Then we separate the specific confirm and cancel button styles into their own class selectors:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;button.confirm {
+ background: #4A90E2;
+ border-color: #3672B6;
+ color: #fff;
}
-&amp;#47;* Hide both the default dots and question mark svg on checked *&amp;#47;
-.mario-block input:checked + label .dot,
-.mario-block input:checked + label .question-mark {
- display: none;
+button.cancel {
+ background: #D0D0D0;
+ border-color: #B8B8B8;
+ color: #6F6F6F;
}
-
-&amp;#47;* Shared pseudo element styling *&amp;#47;
-.mario-block input:checked + label:before,
-.mario-block input:checked + label:after {
- content: &amp;#39;&amp;#39;;
- height: 20px;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;playing-with-pseudo-elements&quot;&gt;Playing with pseudo elements&lt;/h3&gt;
+&lt;p&gt;Now that the button is styled and structured with basic formatting, it&amp;#8217;s time to add that classic &amp;#8216;shine&amp;#8217; seen in the original Dribbble shot.&lt;/p&gt;
+&lt;p&gt;The cleanest way to do this is by using the &lt;code&gt;:before&lt;/code&gt; pseudo element paired with a linear-gradient background.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;button:before {
+ background: linear-gradient(rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
+ border-radius: 125px;
+ content:&amp;#39;&amp;#39;;
+ height: 50px;
+ left: 4%;
position: absolute;
- transform: rotate(45deg);
- width: 20px;
-}
-
-&amp;#47;* Right dash *&amp;#47;
-.mario-block input:checked + label:before {
- border-right: 4px solid #070000;
- right: 18px;
- top: 15px;
- transform: rotate(45deg);
+ top: 1px;
+ transition: all ease .3s;
+ width: 92%;
}
-
-&amp;#47;* Left dash *&amp;#47;
-.mario-block input:checked + label:after {
- border-left: 4px solid #070000;
- left: 18px;
- top: 15px;
- transform: rotate(-45deg);
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;adding-interaction&quot;&gt;Adding interaction&lt;/h3&gt;
+&lt;p&gt;The final step is adding the user hover interaction: (Remember that &lt;code&gt;transition&lt;/code&gt; property?)&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;button:hover {
+ box-shadow: inset 0 13px 25px rgba(255,255,255,0.8), 0 3px 5px rgba(0,0,0,0.2), 0 10px 13px rgba(0,0,0,0.2);
+ transform: scale(1.02);
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That&amp;#8217;s it!&lt;/p&gt;
-&lt;h2 id=&quot;taking-it-further&quot;&gt;Taking it further&lt;/h2&gt;
-&lt;p&gt;As always, you can take this concept and flesh it out even further. I was trying to mimic the &amp;#8220;pixel&amp;#8221; style of the original Mario games, but you could make the lighting and depth more realistic with some extra subtle gradients or &lt;code&gt;filter&lt;/code&gt; properties.&lt;/p&gt;</description>
- <link>https://btxx.org/super-mario-blocks-css</link>
- <guid isPermaLink="false">https://btxx.org/super-mario-blocks-css</guid>
- <pubDate>Fri, 15 Feb 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>I Want to Suckless and You Can Too</title>
- <description>&lt;h1 id=&quot;i-want-to-suckless-and-you-can-too&quot;&gt;I Want to Suckless and You Can Too&lt;/h1&gt;
-&lt;p&gt;2022-12-23&lt;/p&gt;
-&lt;h2 id=&quot;the-desire-to-suckless&quot;&gt;The Desire to Suckless&lt;/h2&gt;
-&lt;p&gt;While I have been happy with my &lt;a href=&quot;/alpine&quot;&gt;previous desktop setup&lt;/a&gt; using Wayland on Alpine Linux, I just couldn&amp;#8217;t shake the urge to fully embrace the &lt;a href=&quot;https://suckless.org&quot;&gt;suckless ecosystem&lt;/a&gt;. Although, this meant ditching Wayland and returning to X11, which is apparently the new &amp;#8220;cool thing to hate&amp;#8221; in Linux land. At least, that&amp;#8217;s what I&amp;#8217;ve seen online lately.&lt;/p&gt;
-&lt;p&gt;But I&amp;#8217;m getting ahead of myself&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;what-is-suckless&quot;&gt;What is Suckless?&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;m not going to spend too much time repeating what you can &lt;a href=&quot;https://suckless.org/philosophy/&quot;&gt;already read on the suckless.org website itself&lt;/a&gt;, but in a nutshell:&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;Software with a focus on simplicity, clarity, and frugality.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;The developers also pride themselves on catering to &lt;em&gt;advanced and experienced computer users&lt;/em&gt;, which is actually a refreshing take in my opinion. There are enough pre-existing open source solutions for non-technical or average Linux users looking for a desktop system. Having an option that requires users to deep-dive into the code, compile the programs manually, and better understand the software they are running is a welcome addition.&lt;/p&gt;
-&lt;p&gt;This process of &amp;#8220;owing your software&amp;#8221; was one of the core concepts that initially grabbed my attention. I&amp;#8217;ve always been mildly mediocre at reading and writing C (ie. enough to be dangerous), so the thought of jumping head first into a system that would require me to better learn that language was tempting[^1]. And that temptation was enough to give it a shot!&lt;/p&gt;
-&lt;h2 id=&quot;lets-get-started&quot;&gt;Let&amp;#8217;s Get Started&lt;/h2&gt;
-&lt;p&gt;So I made my decision. I would (at the very least) &lt;em&gt;try&lt;/em&gt; switching my daily driver over to a completely &amp;#8220;suckless&amp;#8221; system. But I was immediately faced with my first obstacle: &lt;em&gt;which distro should I use&lt;/em&gt;?&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m sure many would suggest Gentoo, since it follows the principles of suckless more than any other distribution on the market. But I don&amp;#8217;t hate myself enough to go down that insane rabbit-hole. I&amp;#8217;m hardly advanced enough to take on such a steep challenge, not to mention my plan was to build out a &amp;#8220;setup script&amp;#8221; so others could roll their own suckless build. Something like that looked daunting under Gentoo. Maybe in the future&amp;#8230;&lt;/p&gt;
-&lt;p&gt;So what&amp;#8217;s left? Void? Arch? Something fresh, like Metis? I really didn&amp;#8217;t know the &amp;#8220;best&amp;#8221; choice. Maybe there were just &lt;em&gt;too many&lt;/em&gt; options? &lt;/p&gt;
-&lt;p&gt;Luckily, I did know of a distro that was my go-to for most projects&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;trying-alpine&quot;&gt;Trying Alpine&lt;/h2&gt;
-&lt;p&gt;Alpine Linux is one of the best distributions available. If you disagree, you clearly haven&amp;#8217;t achieved galaxy-brain levels of intelligence and I feel sorry for you[^2].&lt;/p&gt;
-&lt;p&gt;Having just rolled my own &lt;a href=&quot;https://git.sr.ht/~bt/alpine-linux-setup&quot;&gt;installer script&lt;/a&gt; for Wayland&amp;#47;Sway on Alpine, I figured why not piggyback off that existing project? Work smart not hard, right? So I started putting together an absolute &lt;em&gt;bare minimum&lt;/em&gt; list of requirements I needed to get a proper desktop system running:&lt;/p&gt;
+&lt;h3 id=&quot;see-it-live-on-codepen&quot;&gt;See it live on CodePen&lt;/h3&gt;
+&lt;p&gt;You can view this project on CodePen here.&lt;/p&gt;
+&lt;p&gt;Feel free to fork it or implement your own!&lt;/p&gt;</description>
+ <link>https://btxx.org/aui</link>
+ <guid isPermaLink="false">https://btxx.org/aui</guid>
+ <pubDate>Tue, 28 Jun 2016 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>A Warning for New Designers: Avoid Dribbble</title>
+ <description>&lt;h1 id=&quot;a-warning-for-new-designers-avoid-dribbble&quot;&gt;A Warning for New Designers: Avoid Dribbble&lt;/h1&gt;
+&lt;p&gt;2022-09-08&lt;/p&gt;
+&lt;p&gt;Everyday a new designer begins their journey into the world of [&lt;em&gt;insert design industry here&lt;/em&gt;] and it is magical! Having a fresh pair of eyes untainted from the current trends of the time can help improve design as a whole. Newbies can even teach new things to older, grumpier luddites (like yours truly). But over the years I&amp;#8217;ve noticed a concerning trend among junior designers; &lt;strong&gt;they rely too heavily on Dribbble&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;Relying on Dribbble for minor inspiration is one thing. Referencing &amp;#8220;shots&amp;#8221; as justification for real-world design work? Not so much. I believe Dribbble shouldn&amp;#8217;t be used for either of these use cases, but I can at least give a pass at browsing for basic inspiration (colors, padding, layout).&lt;/p&gt;
+&lt;p&gt;Now, using concept shots to push for your own design decisions? That is a terrible idea. We &amp;#8220;senior&amp;#8221; designers need to step up and help newbies avoid this trap.&lt;/p&gt;
+&lt;h3 id=&quot;designing-for-other-designers&quot;&gt;Designing for Other Designers&lt;/h3&gt;
+&lt;p&gt;Dribbble is rarely a place for design feedback and discussion anymore. Hell, most people use it as a digital portfolio to share with prospective clients. Others use it like some form of &amp;#8220;design Linkedin&amp;#8221;, which has its own host of problems.&lt;/p&gt;
+&lt;p&gt;Dribble is now (mainly) a place where designers post &amp;#8220;work&amp;#8221; for other designers. There &lt;em&gt;is&lt;/em&gt; a small minority of users still looking for real, human feedback on their work - but they are a rarity.&lt;/p&gt;
+&lt;p&gt;Take a look at the &lt;a href=&quot;https://dribbble.com/shots/popular&quot;&gt;popular shots&lt;/a&gt; category at any give time. Most shots are promo pieces used to attract potential clients. Nearly all design concepts are impractical or simply impossible to create in a real-life setting. This is incredibly damaging to newcomers trying to learn &amp;#8220;good&amp;#8221; design practices. Dribbble shots simply ride the wave of the current trends, which doesn&amp;#8217;t provide junior designers with a solid foundation or core understanding of design as a whole. It just causes them to endlessly chase the &amp;#8220;latest and greatest&amp;#8221; trend.&lt;/p&gt;
+&lt;p&gt;Shot posters rarely go into the reasoning behind their design decisions. No research or iterations are shared to show the process. Instead it simply states &amp;#8220;here is a cool website layout for a company that doesn&amp;#8217;t exist&amp;#8221;. Zero constraints or goals needed to be met. No discussion about how one version of their design didn&amp;#8217;t perform as well when tested on real users. So of course it ends up looking &lt;em&gt;so cool and original&lt;/em&gt; - &lt;strong&gt;it wasn&amp;#8217;t designed in reality&lt;/strong&gt;.&lt;/p&gt;
+&lt;h3 id=&quot;i-dont-have-all-the-answers---but-ill-try&quot;&gt;I Don&amp;#8217;t Have All the Answers - But I&amp;#8217;ll Try&lt;/h3&gt;
+&lt;p&gt;I am not the holy savior of &lt;em&gt;all things design&lt;/em&gt;. I&amp;#8217;m just a designer who has been around the block a few times. If new designers want to keep using Dribbble as their main source of guidance and think I should go kick rocks - that&amp;#8217;s fine. I will. But for those with a little more passion for the profession, might I suggest some humble alternatives to get you on a more consistent path?&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;working suspend&amp;#47;awake&lt;/li&gt;
-&lt;li&gt;working audio&lt;/li&gt;
-&lt;li&gt;working wifi&amp;#47;networking&lt;/li&gt;
-&lt;li&gt;reduced screen tearing (X11 gave me problems in the past with this)&lt;/li&gt;
+&lt;li&gt;Read some good design books (to get you started):
+&lt;ul&gt;
+&lt;li&gt;&lt;a href=&quot;https://sensible.com/dont-make-me-think/&quot;&gt;Don&amp;#8217;t Make Me Think - Revisited&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/The_Design_of_Everyday_Things&quot;&gt;The Design of Everyday Things&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://www.edwardtufte.com/tufte/books_vdqi&quot;&gt;The Visual Display of Quantitative Information&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://www.amazon.ca/Dieter-Rams-Less-But-Better/dp/3899555252&quot;&gt;Less But Better&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Talk to &lt;em&gt;real&lt;/em&gt; people
+&lt;ul&gt;
+&lt;li&gt;Chat with your team&amp;#8217;s marketers, customer support specialists, senior design leads, and developers about new features (they often have better insights than you)&lt;/li&gt;
+&lt;li&gt;Perform customer interviews early and often (they use your product or service - let them tell you what they want!)&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;R ad through some quality UX reports and research
+&lt;ul&gt;
+&lt;li&gt;&lt;a href=&quot;https://www.nngroup.com/&quot;&gt;Nielsen Norman Group&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://baymard.com/&quot;&gt;Baymard Institute&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;P y attention to real world design (good and bad)
+&lt;ul&gt;
+&lt;li&gt;Grocery item designs, labels packaging&lt;/li&gt;
+&lt;li&gt;Vehicle analog and digital dashboards &amp;#47; safety features&lt;/li&gt;
+&lt;li&gt;Warning and safety labeling (great for universal and minimal design inspiration)&lt;/li&gt;
+&lt;li&gt;Government websites and applications (notoriously terrible - great for &amp;#8220;what not to do&amp;#8221; examples)&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Your own experience (over time)&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;As you can see, I have very low expectations. But there were issues&amp;#8230;.&lt;/p&gt;
+&lt;p&gt;These are just my own suggestions to help new designers get a better foundation of core design concepts &lt;em&gt;before&lt;/em&gt; falling down the Dribbble hole. Take it or leave it. I&amp;#8217;m not your dad.&lt;/p&gt;
+&lt;p&gt;Most designers who are pro-Dribbble will most likely write me off as a grumpy old man yelling at a cloud. That&amp;#8217;s only half true. But if just one person reading this even &lt;em&gt;considers&lt;/em&gt; avoiding Dribbble as a source for learning proper design - then it was worth it.&lt;/p&gt;
+&lt;p&gt;Now if you will excuse me, there are many more clouds to yell at&amp;#8230;&lt;/p&gt;</description>
+ <link>https://btxx.org/avoid</link>
+ <guid isPermaLink="false">https://btxx.org/avoid</guid>
+ <pubDate>Thu, 08 Sep 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Base64 All The Things! (Sometimes)</title>
+ <description>&lt;h1 id=&quot;base64-all-the-things-sometimes&quot;&gt;Base64 All The Things! (Sometimes)&lt;/h1&gt;
+&lt;p&gt;2020-03-18&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;An extremely overlooked process for displaying fonts&lt;/em&gt;, images, documents, spreadsheets, etc. on the web is the use of &lt;strong&gt;base64 encoding&lt;/strong&gt;. Although it may not be the most efficient (or easy) way to display and include these elements it can be a lifesaver in certain situations.&lt;/p&gt;</description>
+ <link>https://btxx.org/base64-all-the-things</link>
+ <guid isPermaLink="false">https://btxx.org/base64-all-the-things</guid>
+ <pubDate>Wed, 18 Mar 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Basic Gulp Build for Sass</title>
+ <description>&lt;h1 id=&quot;basic-gulp-build-for-sass&quot;&gt;Basic Gulp Build for Sass&lt;/h1&gt;
+&lt;p&gt;2019-01-15&lt;/p&gt;
+&lt;p&gt;Some designers might shy away from build tools when first starting out and I can understand the reasoning - task runners like &lt;code&gt;gulp&lt;/code&gt; and &lt;code&gt;grunt&lt;/code&gt; can seem daunting at first. So, I&amp;#8217;ve decided to showcase my go-to setup for &lt;code&gt;gulp&lt;/code&gt; and explain what the heck it does step-by-step. &lt;/p&gt;
+&lt;p&gt;Here is the final &lt;code&gt;gulp.js&lt;/code&gt; file in all it&amp;#8217;s glory:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;var gulp = require(&amp;#39;gulp&amp;#39;);
+var shell = require(&amp;#39;gulp-shell&amp;#39;);
+var sass = require(&amp;#39;gulp-sass&amp;#39;);
+
+&amp;#47;* Build and watch Jekyll (change this task to whatever you need) *&amp;#47;
+gulp.task(&amp;#39;generate&amp;#39;, shell.task(&amp;#39;jekyll serve&amp;#39;));
+
+&amp;#47;* Compile SCSS files to CSS *&amp;#47;
+gulp.task(&amp;#39;styles&amp;#39;, function () {
+ return gulp.src(&amp;#39;_includes&amp;#47;assets&amp;#47;sass&amp;#47;styles.scss&amp;#39;)
+ .pipe(sass({
+ outputStyle: &amp;#39;compressed&amp;#39;
+ }).on(&amp;#39;error&amp;#39;, sass.logError))
+ .pipe(gulp.dest(&amp;#39;_includes&amp;#47;assets&amp;#47;css&amp;#47;&amp;#39;));
+});
+
+&amp;#47;* Compile the assets *&amp;#47;
+gulp.task(&amp;#39;assets&amp;#39;, gulp.parallel(
+ &amp;#39;styles&amp;#39;
+));
+
+&amp;#47;* Build *&amp;#47;
+gulp.task(&amp;#39;build&amp;#39;, gulp.series(
+ &amp;#39;assets&amp;#39;,
+ &amp;#39;generate&amp;#39;
+));
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Trust me, it&amp;#8217;s not complicated at all.&lt;/p&gt;
+&lt;h2 id=&quot;grabbing-what-we-need&quot;&gt;Grabbing what we need&lt;/h2&gt;
+&lt;p&gt;For our basic build file we are going to need only three modules: &lt;code&gt;gulp&lt;/code&gt;, &lt;code&gt;gulp-shell&lt;/code&gt; and &lt;code&gt;gulp-sass&lt;/code&gt;.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;var gulp = require(&amp;#39;gulp&amp;#39;);
+var shell = require(&amp;#39;gulp-shell&amp;#39;);
+var sass = require(&amp;#39;gulp-sass&amp;#39;);
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h4 id=&quot;gulp&quot;&gt;gulp&lt;/h4&gt;
+&lt;p&gt;This is the streaming build system, without it we can&amp;#8217;t do anything else.&lt;/p&gt;
+&lt;h4 id=&quot;gulp-shell&quot;&gt;gulp-shell&lt;/h4&gt;
+&lt;p&gt;A gulp command line interface for us to interact with our terminal.&lt;/p&gt;
+&lt;h4 id=&quot;gulp-sass&quot;&gt;gulp-sass&lt;/h4&gt;
+&lt;p&gt;Required for gulp to compile Sass into vanilla CSS.&lt;/p&gt;
+&lt;h4 id=&quot;bonus-tasks&quot;&gt;Bonus tasks&lt;/h4&gt;
+&lt;h2 id=&quot;generating-the-build&quot;&gt;Generating the build&lt;/h2&gt;
+&lt;p&gt;Our first step is to create the default task that will generate our build. In this example we are making the assumption that we&amp;#8217;re building a Jekyll website (but you can place any build command here):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;gulp.task(&amp;#39;generate&amp;#39;, shell.task(&amp;#39;jekyll serve&amp;#39;));
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Don&amp;#8217;t worry if this &lt;code&gt;generate&lt;/code&gt; isn&amp;#8217;t clear, we come back to that later.&lt;/p&gt;
+&lt;h2 id=&quot;processing-our-pre-processor&quot;&gt;Processing our pre-processor&lt;/h2&gt;
+&lt;p&gt;We will name this next task &lt;code&gt;styles&lt;/code&gt; since that&amp;#8217;s what it outputs - our styling. We start by telling gulp where our main &lt;code&gt;scss&lt;/code&gt; directory is:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Change this directory to match yours *&amp;#47;
+return gulp.src(&amp;#39;_includes&amp;#47;assets&amp;#47;sass&amp;#47;styles.scss&amp;#39;)
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;This next piece tells the plugin to compress our final compiled CSS, log any errors if there are issues with the build and then export it to our destination directory:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.pipe(sass({
+ outputStyle: &amp;#39;compressed&amp;#39;
+}).on(&amp;#39;error&amp;#39;, sass.logError))
+
+&amp;#47;* Change this to your destination directory *&amp;#47;
+.pipe(gulp.dest(&amp;#39;_includes&amp;#47;assets&amp;#47;css&amp;#47;&amp;#39;));
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;building-our-assets&quot;&gt;Building our assets&lt;/h2&gt;
+&lt;p&gt;This step isn&amp;#8217;t 100% needed, but I like to include it for when more assets need to be added (minifying JavaScript, compressing images, etc)&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;*
+Compile the assets
+*&amp;#47;
+gulp.task(&amp;#39;assets&amp;#39;, gulp.parallel(
+ &amp;#39;styles&amp;#39;
+));
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;altogether-now&quot;&gt;Altogether now!&lt;/h2&gt;
+&lt;p&gt;Now we add a task that runs all other tasks in our gulp file (in this case it will run both &lt;code&gt;assets&lt;/code&gt; and &lt;code&gt;generate&lt;/code&gt;)&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;*
+Build
+*&amp;#47;
+gulp.task(&amp;#39;build&amp;#39;, gulp.series(
+ &amp;#39;assets&amp;#39;,
+ &amp;#39;generate&amp;#39;
+));
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;And that&amp;#8217;s it - we&amp;#8217;re done! A very basic &lt;code&gt;gulp&lt;/code&gt; build for compiling Sass.&lt;/p&gt;</description>
+ <link>https://btxx.org/basic-gulp-build-for-sass</link>
+ <guid isPermaLink="false">https://btxx.org/basic-gulp-build-for-sass</guid>
+ <pubDate>Tue, 15 Jan 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Batch Converting Images to webp with macOS Automator</title>
+ <description>&lt;h1 id=&quot;batch-converting-images-to-webp-with-macos-automator&quot;&gt;Batch Converting Images to webp with macOS Automator&lt;/h1&gt;
+&lt;p&gt;2021-10-15&lt;/p&gt;
+&lt;p&gt;A great deal of my time working as a web&amp;#47;UI designer is spent exporting and&amp;#47;or converting images for software products and websites. Although a lot of modern applications can render image conversions at build time, a custom conversion is sometimes requested for an image to be set as &lt;code&gt;webp&lt;/code&gt;.&lt;/p&gt;
+&lt;p&gt;You &lt;em&gt;could&lt;/em&gt; download one of the many native apps from the Mac App Store to do this for you - but why not create your own script and run it with a simple right-click directly inside Finder? &lt;strong&gt;Let&amp;#8217;s do just that!&lt;/strong&gt;&lt;/p&gt;
+&lt;h2 id=&quot;basic-requirements&quot;&gt;Basic requirements&lt;/h2&gt;
+&lt;p&gt;&lt;strong&gt;Important!&lt;/strong&gt;: As of this time of writing, the official &lt;code&gt;libwebp&lt;/code&gt; package release is &lt;em&gt;libwebp-1.2.1-mac-10.15&lt;/em&gt;. If this has been updated since then, change the command below to match that of the proper release version.&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;I could not build my blog locally (built via Jekyll) since the &lt;code&gt;sass-embedded&lt;/code&gt; dependencies has not been built against musl-libc.&lt;/li&gt;
-&lt;li&gt;VSCodium would require the extra &amp;#8220;bloat&amp;#8221; of the flatpak manager (not to mention the spotty support some applications have through flatpak&amp;#47;snap).&lt;/li&gt;
-&lt;li&gt;The distro&amp;#47;system &lt;em&gt;feels&lt;/em&gt; like it was better designed with Wayland in mind. Too often I felt like I was losing an uphill battle wrestling against Alpine.&lt;/li&gt;
+&lt;li&gt;First you will need to download the &lt;code&gt;libwebp&lt;/code&gt; package to your Downloads folder: &lt;a href=&quot;https://developers.google.com/speed/webp/download&quot;&gt;developers.google.com&amp;#47;speed&amp;#47;webp&amp;#47;download&lt;/a&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;em&gt;Look for the &amp;#8220;Download for macOS link&amp;#8221;&lt;/em&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Next we will need to copy the &lt;code&gt;cwebp&lt;/code&gt; folder to our &lt;code&gt;&amp;#47;usr&amp;#47;local&amp;#47;bin&lt;/code&gt; directory:
+&lt;ul&gt;
+&lt;li&gt;Open macOS Terminal&lt;/li&gt;
+&lt;li&gt;Run &lt;code&gt;sudo cp &amp;#47;Downloads&amp;#47;libwebp-1.2.1-mac-10.15&amp;#47;bin&amp;#47;cwebp &amp;#47;usr&amp;#47;local&amp;#47;bin&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;&lt;em&gt;Note:&lt;/em&gt; if the &lt;code&gt;&amp;#47;usr&amp;#47;local&amp;#47;bin&lt;/code&gt; directory doesn&amp;#8217;t exist, simply create it by running: &lt;code&gt;sudo cd &amp;#47;usr&amp;#47;local &amp;#38;&amp;#38; mkdir bin&lt;/code&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
&lt;/ol&gt;
-&lt;h2 id=&quot;getting-sucked-into-the-void&quot;&gt;Getting Sucked into the Void&lt;/h2&gt;
-&lt;p&gt;After mentioning my struggles on Mastodon, some &lt;a href=&quot;https://fosstodon.org/@tdarb/109554576434981872&quot;&gt;helpful friends suggested taking a look at Void&lt;/a&gt;. I always knew of the project but never used it as a &amp;#8220;daily driver&amp;#8221;. Since this was overall one &lt;em&gt;large&lt;/em&gt; experiment, I figured I&amp;#8217;d give it a shot.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m glad I did. Void Linux is &lt;em&gt;pretty great&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;The installer seemed more complex than Alpine at first, but I found an excellent walkthrough &lt;a href=&quot;https://linuxiac.com/void-linux-installation/&quot;&gt;here&lt;/a&gt; (which I was more beginner-friendly than the official docs). Once everything was set, it was time to run my suckless &amp;#8220;installer&amp;#8221;.&lt;/p&gt;
-&lt;h2 id=&quot;introducing-void-suck&quot;&gt;Introducing void-suck&lt;/h2&gt;
-&lt;p&gt;If you don&amp;#8217;t care about the nitty-gritty details, feel free to just jump over to the &lt;a href=&quot;https://git.sr.ht/~bt/void-suck&quot;&gt;void-suck repo on scourehut&lt;/a&gt; and read through the code yourself. There is nothing groundbreaking here. A huge inspiration came from &lt;a href=&quot;https://github.com/mad-ara/void-rice&quot;&gt;mad-ara&amp;#8217;s &amp;#8220;void-rice&amp;#8221; project on Github&lt;/a&gt; - so a big thanks to him for making that project in the first place!&lt;/p&gt;
-&lt;p&gt;You can find the basic instructions in the README of the project itself, but it pulls in just the required dependencies along with my own custom suckless tools. You can easily swap out these with your own or simply default to the standard ones provided by &lt;a href=&quot;https://suckless.org&quot;&gt;suckless.org&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;Everything &lt;em&gt;should&lt;/em&gt; work out of the box, but in case it doesn&amp;#8217;t please &lt;a href=&quot;https://todo.sr.ht/~bt/void-suck&quot;&gt;open a ticket&lt;/a&gt; or &lt;a href=&quot;https://lists.sr.ht/~bt/void-suck&quot;&gt;submit a patch&lt;/a&gt;. I&amp;#8217;m certain I overlooked some items!&lt;/p&gt;
-&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
-&lt;p&gt;We&amp;#8217;ll see how things go. So far I&amp;#8217;m enjoying my time with a much simpler desktop and the &amp;#8220;forced&amp;#8221; push towards getting better with C is an added bonus. I still love Alpine, but Void is slowly winning me over&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;h2 id=&quot;creating-our-custom-automator-script&quot;&gt;Creating our custom Automator script&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;I find this to be the best way to learn new things. Reading technical books are helpful, but concepts never stick with me unless I am forced to implement them.&lt;/li&gt;
-&lt;li&gt;This is a joke. Alpine is certainly not for everyone. There are many more &amp;#8220;fully featured&amp;#8221; distros available and everyone should use what they enjoy! Try not to take my blog posts so seriously&amp;#8230;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Open the macOS Automator from the Applications folder&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Select &lt;code&gt;Quick Option&lt;/code&gt; from the first prompt&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Set &amp;#8220;Workflow receives current&amp;#8221; to &lt;code&gt;image files&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Set the label &amp;#8220;in&amp;#8221; to &lt;code&gt;Finder&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;From the left pane, select &amp;#8220;Library &amp;#62; Utilities&amp;#8221;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;From the presented choices in the next pane, drag and drop &lt;code&gt;Run Shell Script&lt;/code&gt; into the far right pane&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Set the area &amp;#8220;Pass input&amp;#8221; to &lt;code&gt;as arguments&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Enter the following code below as your script and type &lt;code&gt;⌘-S&lt;/code&gt; to save (name it something like &amp;#8220;Convert to webp&amp;#8221;)&lt;/p&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;pre&gt;&lt;code&gt;for f in &quot;$@&quot;
+do
+&amp;#47;usr&amp;#47;local&amp;#47;bin&amp;#47;cwebp -q 85 &quot;$f&quot; -o &quot;${f%.*}.webp&quot;
+done
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;For visual reference, it should look something like this:&lt;/p&gt;
+&lt;p&gt;And when right-clicking an image file in the Finder window, it should now give you the option to convert:&lt;/p&gt;
+&lt;h2 id=&quot;making-edits-to-your-script&quot;&gt;Making edits to your script&lt;/h2&gt;
+&lt;p&gt;If you ever have the need to edit this script (for example, changing the default &lt;code&gt;85&lt;/code&gt; quality parameter), you will need to navigate to your &lt;code&gt;~&amp;#47;Library&amp;#47;Services&lt;/code&gt; folder and open your custom webp Quick Action in the Automator application. &lt;/p&gt;
+&lt;p&gt;Simple as that!&lt;/p&gt;
+&lt;h2 id=&quot;possible-hiccups&quot;&gt;Possible Hiccups&lt;/h2&gt;
+&lt;p&gt;I was contacted by the very helpful &lt;a href=&quot;https://kevq.uk&quot;&gt;Kev Quirk&lt;/a&gt; about a minor problem he encountered while following this tutorial. When trying to run &lt;code&gt;cwebp&lt;/code&gt; he received the following error message:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;cwebp cannot be opened because it&amp;#39;s from an unverified developer
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Doing the next steps seemed to have fixed this issue for him:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Click on the &amp;#8220;Open in Finder&amp;#8221; in the error message prompt&lt;/li&gt;
+&lt;li&gt;Double-click on the &lt;code&gt;cwebp&lt;/code&gt; utility to open in Terminal&lt;/li&gt;
+&lt;li&gt;You&amp;#8217;ll then be prompted with a pop-up asking if you wish to execute&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;After following these steps, the issue should be resolved.&lt;/p&gt;</description>
+ <link>https://btxx.org/batch-webp-conversion</link>
+ <guid isPermaLink="false">https://btxx.org/batch-webp-conversion</guid>
+ <pubDate>Fri, 15 Oct 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Improving Laptop Battery Performance on OpenBSD</title>
+ <description>&lt;h1 id=&quot;improving-laptop-battery-performance-on-openbsd&quot;&gt;Improving Laptop Battery Performance on OpenBSD&lt;/h1&gt;
+&lt;p&gt;2023-06-13&lt;/p&gt;
+&lt;p&gt;It is no secret that OpenBSD has poor battery performance on laptops. Although not as impressive as something like Alpine Linux or FreeBSD, you can tweak OpenBSD &lt;em&gt;just enough&lt;/em&gt; to squeeze more life out of your machine&amp;#8217;s battery.&lt;/p&gt;
+&lt;h2 id=&quot;our-new-best-friend-&quot;&gt;Our New Best Friend: &lt;code&gt;ampd&lt;/code&gt;&lt;/h2&gt;
+&lt;p&gt;I won&amp;#8217;t go into great detail about &lt;code&gt;ampd&lt;/code&gt; here - that&amp;#8217;s what the incredible &lt;a href=&quot;https://man.openbsd.org/apmd&quot;&gt;documentation is for&lt;/a&gt;. You&amp;#8217;ll want to make sure to start it before trying to configure it:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;doas rcctl start apmd
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;If already running in a live session, you can default to &lt;code&gt;-A&lt;/code&gt; (auto) but I suggest setting cpu performance to low:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;apm -L
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;To make these changes permanent on boot:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;doas rcctl set apmd flags -L
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Optimizating battery life via &lt;code&gt;ampd&lt;/code&gt; will have the most noticable impact but you can improve things even further by implementing some extra &amp;#8220;small&amp;#8221; performance wins.&lt;/p&gt;
+&lt;h2 id=&quot;small-performance-wins&quot;&gt;Small Performance Wins&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;Reduce your screen&amp;#8217;s brightness (&lt;code&gt;xbacklight -set 50&lt;/code&gt;)&lt;/li&gt;
+&lt;li&gt;Use a lightweight window manager instead of a beefer desktop environment&lt;/li&gt;
+&lt;li&gt;Enable battery saving options in your system BIOS (if available)&lt;/li&gt;
+&lt;li&gt;Disable the fingerprint scanner and bluetooth in your system BIOS (if available)&lt;/li&gt;
+&lt;li&gt;Use utilities such as &lt;code&gt;mpv&lt;/code&gt; and &lt;code&gt;ffmpeg&lt;/code&gt; for media consumption&lt;/li&gt;
+&lt;li&gt;Reduce the number of open applications at any given time&lt;/li&gt;
&lt;/ol&gt;</description>
- <link>https://btxx.org/suckless</link>
- <guid isPermaLink="false">https://btxx.org/suckless</guid>
- <pubDate>Fri, 23 Dec 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Launching Sublime Text with dmenu on Alpine Linux</title>
- <description>&lt;h1 id=&quot;launching-sublime-text-with-dmenu-on-alpine-linux&quot;&gt;Launching Sublime Text with dmenu on Alpine Linux&lt;/h1&gt;
-&lt;p&gt;2023-04-13&lt;/p&gt;
-&lt;p&gt;Everyone seems to be running some version of VSCode as their main editor these days. But not me. I find VSCode to be too bloated for my needs - not to mention being built on top of electron instead of &lt;em&gt;native&lt;/em&gt; code. I prefer running programs that don&amp;#8217;t try to devour all of my machine&amp;#8217;s available memory or spike my CPU.&lt;/p&gt;
+ <link>https://btxx.org/battery</link>
+ <guid isPermaLink="false">https://btxx.org/battery</guid>
+ <pubDate>Tue, 13 Jun 2023 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Being More Efficient as a Designer and Developer</title>
+ <description>&lt;h1 id=&quot;being-more-efficient-as-a-designer-and-developer&quot;&gt;Being More Efficient as a Designer and Developer&lt;/h1&gt;
+&lt;p&gt;2019-09-28&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;I recently began working on a small side project&lt;/em&gt; (a marketing site &amp;#47; blog for an upcoming UX book I&amp;#8217;m writing, but I have nothing to promote yet - sorry) and found myself circling around different static site generators (SSG) in the initial design concepts. The thought of learning an entirely new blogging platform was inspiring and seemed like a good excuse to expand my skillset.&lt;/p&gt;
+&lt;p&gt;Although I&amp;#8217;ve used 11ty and Hugo in the past for client work, this personal website runs on Jekyll. I&amp;#8217;m very familiar with Jekyll and can push out a point-of-concept site in a flash with little-to-no effort. So, why was I looking to jump into a SSG I hadn&amp;#8217;t used before? &lt;/p&gt;
+&lt;p&gt;And that got me thinking&amp;#8230; &lt;strong&gt;Why am I moving away from being efficient?&lt;/strong&gt;&lt;/p&gt;
+&lt;h2 id=&quot;before-we-begin&quot;&gt;Before we begin&amp;#8230;&lt;/h2&gt;
+&lt;p&gt;I should preface everything else I&amp;#8217;m going to mention in this post with this: &lt;em&gt;learning new stuff is awesome&lt;/em&gt;. You should expand your knowledge as much as you can, no matter what industry you find yourself in. I&amp;#8217;ve found it to be a great catalyst for boosting my passion in design and development.&lt;/p&gt;
+&lt;p&gt;Okay, I&amp;#8217;ve made it clear that learning is important to the growth of your career - so please keep that in mind before you read my next statement:&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Just use what you already know.&lt;/strong&gt;&lt;/p&gt;
+&lt;p&gt;By using your current experience (maybe even expertise) with a design system, CSS framework, blogging platform, programming language, etc. you can get something &lt;em&gt;built&lt;/em&gt;. Not to mention you can get that thing built in a &lt;em&gt;fraction of the time&lt;/em&gt;. After all, building things is kind of the point of being a designer (or developer), right?&lt;/p&gt;
+&lt;p&gt;My current side project may be a slight edge case in this regard. Since it&amp;#8217;s a personal &amp;#8220;dev&amp;#8221; website, most of the tech stack choices comes down to personal preference - not client requirements. But I believe my point still remains: you shouldn&amp;#8217;t reach for something new and shiny &lt;em&gt;just because&lt;/em&gt; it&amp;#8217;s new and shiny.&lt;/p&gt;
+&lt;h2 id=&quot;some-vague-examples&quot;&gt;Some vague examples&lt;/h2&gt;
+&lt;p&gt;It might be easier to understand what I mean by using some possible real-world examples:&lt;/p&gt;
+&lt;table&gt;
+&lt;thead&gt;
+&lt;tr&gt;
+&lt;th&gt;Problem&lt;/th&gt;
+&lt;th&gt;New Way&lt;/th&gt;
+&lt;th&gt;Efficient Way&lt;/th&gt;
+&lt;/tr&gt;
+&lt;/thead&gt;
+&lt;tbody&gt;
+&lt;tr&gt;
+&lt;td&gt;A local bakery needs product and e-cart functionality&lt;/td&gt;
+&lt;td&gt;Learn a new custom ecommerce platform&lt;/td&gt;
+&lt;td&gt;Use a popular pre-existing library you&amp;#8217;re familiar with&lt;/td&gt;
+&lt;/tr&gt;
+&lt;tr&gt;
+&lt;td&gt;Create an add-on blog for a medical clinic&lt;/td&gt;
+&lt;td&gt;Try a custom built static site generator and hook in a git-based CMS&lt;/td&gt;
+&lt;td&gt;Spin up a quick WordPress site and hand-off&lt;/td&gt;
+&lt;/tr&gt;
+&lt;tr&gt;
+&lt;td&gt;UI mockups for a workout iOS app&lt;/td&gt;
+&lt;td&gt;Test out the newest design tool just released&lt;/td&gt;
+&lt;td&gt;Use your go-to default design tool you (Sketch, Figma, etc)&lt;/td&gt;
+&lt;/tr&gt;
+&lt;/tbody&gt;
+&lt;/table&gt;
+&lt;p&gt;I know all of this is very much &amp;#8220;common sense&amp;#8221;, but you would be surprised how often we reach out for the latest and greatest tools (we are creative problem-solvers, after-all). If a current project allots you the time to learn a new skillset alongside outputting a quality product - then more power to you. In my experience that&amp;#8217;s a rare luxury, so my advice is to focus on shipping quality work (whether that&amp;#8217;s code, design, analytics, content, etc) instead of getting caught up in the &amp;#8220;new and shiny&amp;#8221;.&lt;/p&gt;
+&lt;h2 id=&quot;but-wait-how-when-do-i-learn-new-things&quot;&gt;But wait, how &amp;#47; when do I learn new things?&lt;/h2&gt;
+&lt;p&gt;It isn&amp;#8217;t exactly ground breaking to state that you should keep things simple as a developer. There are probably hundreds of posts on the web advocating for the exact same thing - which is good. At the same time, we as designers and developers need to avoid stagnation - something that can happen all too easily.&lt;/p&gt;
+&lt;p&gt;So how do we learn new things? This is a hard thing to answer. Really, the best response would be: &lt;strong&gt;it depends on the designer &amp;#47; developer&lt;/strong&gt;. I know, &lt;em&gt;what a cop-out&lt;/em&gt;. Unfortunately, it&amp;#8217;s true. There is no one solution to learning anything new.&lt;/p&gt;
+&lt;p&gt;The best I can do is offer up some possible options:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Learn outside of work
+&lt;ul&gt;
+&lt;li&gt;Reading &amp;#47; listening to a technical book on your commute or before bed&lt;/li&gt;
+&lt;li&gt;Take an online course you can work on after hours&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Contribute to an open source project that you aren&amp;#8217;t familiar with but are interested in
+&lt;ul&gt;
+&lt;li&gt;Even tiny contributions go a long way, don&amp;#8217;t doubt yourself so much&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Ask your current company (if not a freelancer that is) to learn on their time
+&lt;ul&gt;
+&lt;li&gt;It&amp;#8217;s a valid argument that your company should have vested interest in you becoming a better developer &amp;#47; designer&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;easier-said-than-done&quot;&gt;Easier said than done&lt;/h2&gt;
+&lt;p&gt;Sometimes, even the suggestions above don&amp;#8217;t work for certain individuals. Life is hectic and other important things can pop-up taking precedence. Don&amp;#8217;t let it get you down - there are more important things in life than mastering the newest framework that released 25 minutes ago.&lt;/p&gt;
+&lt;p&gt;My motto is to keep shipping quality products that you actually give a shit about. Otherwise it doesn&amp;#8217;t matter how &amp;#8220;new&amp;#8221; it is.&lt;/p&gt;</description>
+ <link>https://btxx.org/being-efficient</link>
+ <guid isPermaLink="false">https://btxx.org/being-efficient</guid>
+ <pubDate>Sat, 28 Sep 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Hosting with Codeberg Pages</title>
+ <description>&lt;h1 id=&quot;hosting-with-codeberg-pages&quot;&gt;Hosting with Codeberg Pages&lt;/h1&gt;
+&lt;p&gt;2022-07-29&lt;/p&gt;
+&lt;p&gt;I recently switched the &lt;a href=&quot;https://pblog.bt.ht&quot;&gt;pblog&lt;/a&gt; project repo over from Sourcehut to Codeberg (mostly for UX reasons) and it got me looking into &lt;a href=&quot;https://codeberg.page&quot;&gt;Codeberg Pages&lt;/a&gt;. It seemed like a cleaner approach to host my personal blog on the same platform I planned to also share the source code.&lt;/p&gt;
+&lt;p&gt;I decided to share the setup process here since I couldn&amp;#8217;t find a straightforward guide explaining everything required to get going. So, let&amp;#8217;s dig in.&lt;/p&gt;
+&lt;h2 id=&quot;create-the-repos&quot;&gt;Create the Repos&lt;/h2&gt;
+&lt;p&gt;&lt;strong&gt;Disclaimer&lt;/strong&gt;: My personal blog uses &lt;a href=&quot;https://pblog.bt.ht&quot;&gt;pblog&lt;/a&gt;, so although these instructions will be catered towards that SSG the same concept &lt;em&gt;should&lt;/em&gt; apply for any other generator (Jekyll, Hugo, Next, etc.).&lt;/p&gt;
+&lt;p&gt;The first step is to create the main repo that would house the core files of &lt;code&gt;pblog&lt;/code&gt;. Then we need to make a separate repo simply called &lt;code&gt;pages&lt;/code&gt;. This second project is where all the generated &amp;#8220;static&amp;#8221; files get rendered.&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;Side note&lt;/em&gt;: Be sure to at least include a &lt;code&gt;README&lt;/code&gt; file in that &lt;code&gt;pages&lt;/code&gt; repo. This will avoid any errors or warnings when setting up our submodules in the next steps.&lt;/p&gt;
+&lt;h2 id=&quot;configuration-edits&quot;&gt;Configuration Edits&lt;/h2&gt;
+&lt;p&gt;Once your two repos are created, you will need to make some minor edits to the &lt;code&gt;_config.sh&lt;/code&gt; in the core &lt;code&gt;pblog&lt;/code&gt; project to tell the build script where the generated files should go (in this case the &lt;code&gt;pages&lt;/code&gt; repo):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;OUTPUT=&quot;_output&amp;#47;pages&amp;#47;&quot;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;the-submodule&quot;&gt;The Submodule&lt;/h2&gt;
+&lt;p&gt;Using terminal, navigate to the &lt;code&gt;_output&amp;#47;&lt;/code&gt; directory in your core &lt;code&gt;pblog&lt;/code&gt; project. Run the following, remembering to replace the USERNAME parameter with your own:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;git submodule add git@codeberg.org:USERNAME&amp;#47;pages.git
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;If everything worked correctly you should now have a &lt;code&gt;.gitmodules&lt;/code&gt; file in your main &lt;code&gt;pblog&lt;/code&gt; project. If you get any errors, you might need to include the name of the directory at the end of the command:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;git submodule add git@codeberg.org:USERNAME&amp;#47;pages.git pages
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;the-workflow&quot;&gt;The Workflow&lt;/h2&gt;
+&lt;p&gt;Now you can make changes, add new posts and pages in the main &lt;code&gt;pblog&lt;/code&gt; project and have those generated files render into your other &lt;code&gt;pages&lt;/code&gt; repo. For this workflow, I simply push commits to both projects when I am happy with my changes but I&amp;#8217;m sure you could look into automating this process (ie. a single push from the &lt;code&gt;pblog&lt;/code&gt; repo forces a the &lt;code&gt;pages&lt;/code&gt; repo to also update).&lt;/p&gt;
+&lt;p&gt;Now you can navigate to the standard Codeberg Pages URL to see it in action:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;USERNAME.codeberg.page
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;If you want to use your own custom domain (who doesn&amp;#8217;t?) then continue reading.&lt;/p&gt;
+&lt;h2 id=&quot;custom-domains-optional&quot;&gt;Custom Domains (Optional)&lt;/h2&gt;
+&lt;p&gt;The first thing you will need to do is add a &lt;code&gt;.domains&lt;/code&gt; file to your &lt;code&gt;pages&lt;/code&gt; root directory. In this file you will want to list your custom domain on the first line, followed by the standard Codeberg pages URL below it. Like so:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;yourcustomdomain.com
+USERNAME.codeberg.page
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;I&amp;#8217;m keeping this very basic, but I suggest you look further into the &lt;a href=&quot;https://docs.codeberg.org/codeberg-pages/#custom-domains&quot;&gt;official documentation&lt;/a&gt; if there are any extra settings you&amp;#8217;d like to tinker with.&lt;/p&gt;
+&lt;p&gt;The final step is configuring a &lt;code&gt;CNAME&lt;/code&gt; DNS setting through your registrar:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@ -&amp;#62; USERNAME.codeberg.page
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Give the DNS settings a bit of time to take (24-48 hours) and you&amp;#8217;ll have your custom domain working just fine.&lt;/p&gt;
+&lt;p&gt;Happy hosting!&lt;/p&gt;</description>
+ <link>https://btxx.org/berg</link>
+ <guid isPermaLink="false">https://btxx.org/berg</guid>
+ <pubDate>Fri, 29 Jul 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Better Box Shadows</title>
+ <description>&lt;h1 id=&quot;better-box-shadows&quot;&gt;Better Box Shadows&lt;/h1&gt;
+&lt;p&gt;2019-01-08&lt;/p&gt;
+&lt;p&gt;Box shadow on HTML elements has been widely supported across most browsers for a while now, but I find the default options don&amp;#8217;t allow for much visual manipulation of the shadows in general.&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s take a look at a default configuration of &lt;code&gt;box-shadow&lt;/code&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.box-container {
+ box-shadow: 0 4px 8px rgba(0,0,0,0.3);
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;In the example above the first property number is the origin of the &lt;em&gt;x-axis&lt;/em&gt;, the second number is the origin of the &lt;em&gt;y-axis&lt;/em&gt; and the third is the amount of &lt;em&gt;blur&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;We should also add some minimal styling to cleanup the &lt;code&gt;.box-container&lt;/code&gt; a little bit for our example:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;box-container&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+
+
+.box-container {
+ box-shadow: 0 4px 8px rgba(0,0,0,0.3);
+ &amp;#47;* Styles to make it less ugly *&amp;#47;
+ background: white;
+ border-radius: 10px;
+ border: 1px solid #eee;
+ height: 200px;
+ padding: 10px;
+ position: relative;
+ width: 250px;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Which would render as this:&lt;/p&gt;
+&lt;p&gt;Not bad - but we can do a lot better than this.&lt;/p&gt;
+&lt;h2 id=&quot;please-sir-i-want-some-more-depth&quot;&gt;Please sir, I want some more (depth)&lt;/h2&gt;
+&lt;p&gt;We just need to add a simple child &lt;code&gt;div&lt;/code&gt; (or use a &lt;code&gt;pseudo&lt;/code&gt; element if you prefer) inside our main element we want to apply the shadow to:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;box-container&quot;&amp;#62;
+ &amp;#60;div class=&quot;box-container-inner&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Now we make our inner child element &lt;code&gt;absolute&lt;/code&gt; and set it&amp;#8217;s &lt;code&gt;height&lt;/code&gt; and &lt;code&gt;width&lt;/code&gt; dynamically to be slightly smaller than it&amp;#8217;s parent (percentages work best for this). &lt;/p&gt;
+&lt;p&gt;Remember to set this child element behind it&amp;#8217;s parent by adding &lt;code&gt;z-index: -1&lt;/code&gt;.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.box-container {
+ &amp;#47;* No box-shadow needed on this element anymore *&amp;#47;
+ &amp;#47;* Styles to make it less ugly *&amp;#47;
+ background: white;
+ border-radius: 10px;
+ border: 1px solid #eee;
+ height: 200px;
+ padding: 10px;
+ position: relative;
+ width: 250px;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;inner-containers&quot;&gt;Inner Containers&lt;/h2&gt;
+&lt;p&gt;We also need to target the &lt;code&gt;box-container-inner&lt;/code&gt; element set inside the current parent to reflect our custom shadow styling:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.box-container-inner {
+ bottom: 0;
+ &amp;#47;* The box-shadow is added here now *&amp;#47;
+ box-shadow: 0 4px 12px rgba(0,0,0,0.3);
+ height: 94%;
+ left: 3%;
+ position: absolute;
+ width: 94%;
+ z-index: -1;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Which will make the drop-shadow render with a little more realistic depth:&lt;/p&gt;
+&lt;h2 id=&quot;but-wait---theres-more&quot;&gt;But wait - there&amp;#8217;s more!&lt;/h2&gt;
+&lt;p&gt;We could stop now and have a decent drop-shadow that is certainly easier on the eyes - but we can make this even better with one extra property - &lt;code&gt;filter:blur();&lt;/code&gt;. &lt;/p&gt;
+&lt;p&gt;So your final code would look like this:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.box-container {
+ &amp;#47;* Styles to make it less ugly *&amp;#47;
+ background: white;
+ border-radius: 10px;
+ border: 1px solid #eee;
+ height: 200px;
+ padding: 10px;
+ position: relative;
+ width: 250px;
+}
+
+.box-container-inner {
+ bottom: 0;
+ box-shadow: 0 4px 12px rgba(0,0,0,0.3);
+ filter: blur(6px);
+ height: 94%;
+ left: 3%;
+ position: absolute;
+ width: 94%;
+ z-index: -1;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Which renders out into a much smoother blend of a drop-shadow, creating a more realistic illusion of depth:&lt;/p&gt;</description>
+ <link>https://btxx.org/better-box-shadows</link>
+ <guid isPermaLink="false">https://btxx.org/better-box-shadows</guid>
+ <pubDate>Tue, 08 Jan 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Bidirectional Scrolling: Why Not Both?</title>
+ <description>&lt;h1 id=&quot;bidirectional-scrolling-why-not-both&quot;&gt;Bidirectional Scrolling: Why Not Both?&lt;/h1&gt;
+&lt;p&gt;2020-11-09&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;I recently came across Adam Silver&amp;#8217;s post &lt;a href=&quot;https://adamsilver.io/articles/bidirectional-scrolling-whats-not-to-like/&quot;&gt;about the merits and pitfalls of bidirectional scrolling&lt;/a&gt;&lt;/em&gt; and found myself conflicted with the design arguments put forth in the article. It&amp;#8217;s a very good article overall, and I suggest giving it a read before digging deeper into my post here.&lt;/p&gt;
+&lt;h2 id=&quot;the-premise&quot;&gt;The Premise&lt;/h2&gt;
+&lt;p&gt;The original article argues that displaying page content via horizontal scrolling (and therefore slightly hiding interactive content) creates a few major issues:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;it increases the chance users won&amp;#8217;t see it&lt;/li&gt;
+&lt;li&gt;there&amp;#8217;s a greater reliance on digital literacy&lt;/li&gt;
+&lt;li&gt;it&amp;#8217;s generally more labour intensive for users&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Adam also makes a solid statement here:&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: It&amp;#8217;s important to remember my personal machine is a ThinkPad X201 with only 6GB of RAM (plan to upgrade to 8GB soon!). Obviously your mileage may vary if you&amp;#8217;re using a beefier laptop or desktop&amp;#8230;&lt;/p&gt;
+&lt;p&gt;Having to scroll down and across in a zig zag fashion can be tiresome, especially for people with motor impairments.&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;p&gt;In case the title of this post didn&amp;#8217;t make this obvious, my editor of choice is Sublime Text. It&amp;#8217;s fast, has a robust plugin ecosystem, and a very friendly community of users. Because of its popularity, troubleshooting any issues you might encounter becomes much easier with the amount of information freely available online.&lt;/p&gt;
-&lt;p&gt;The only minor downside is that it isn&amp;#8217;t &lt;em&gt;fully&lt;/em&gt; open source. Personally, I think it is well worth buying a license directly from the developers to support their efforts.&lt;/p&gt;
-&lt;p&gt;If you haven&amp;#8217;t played around with it yet, I highly recommend giving it a try. At the very least, I guarantee you&amp;#8217;ll be impressed with the editor&amp;#8217;s performance and speed! [&amp;#60;#1&amp;#62;]&lt;/p&gt;
-&lt;h2 id=&quot;one-small-problem&quot;&gt;One Small Problem&amp;#8230;&lt;/h2&gt;
-&lt;p&gt;Sublime is precompiled against glibc and Alpine uses musl. This makes things a little difficult. Luckily we can get around this roadblock by falling back on flatpak (which is unfortunately still locked at version 3 for Sublime).&lt;/p&gt;
-&lt;p&gt;You&amp;#8217;ll need to install flatpak, give your current user permission to install flatpak apps, and then install Sublime.&lt;/p&gt;
-&lt;p&gt;(The following snippets assume you are using &lt;code&gt;doas&lt;/code&gt;. If you are using &lt;code&gt;sudo&lt;/code&gt;, be sure to swap accordingly)&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;apk add flatpak
-adduser &amp;#60;YourUsername&amp;#62; flatpak
-flatpak remote-add --user --if-not-exists flathub https:&amp;#47;&amp;#47;flathub.org&amp;#47;repo&amp;#47;flathub.flatpakrepo
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Congrats. You now have setup &lt;code&gt;flatpak&lt;/code&gt; on your machine! Next we install Sublime Text:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;flatpak install flathub com.sublimetext.three
+&lt;p&gt;But I don&amp;#8217;t believe these issues create a need to completely remove the horizontal &amp;#8220;scrolling&amp;#8221; design altogether. You can still implement the &lt;code&gt;See All Items&lt;/code&gt; category link, while allowing the horizontal content to load in &lt;em&gt;dynamically&lt;/em&gt;. Balance is always key.&lt;/p&gt;
+&lt;h2 id=&quot;not-all-at-once-please&quot;&gt;Not All At Once, Please!&lt;/h2&gt;
+&lt;p&gt;So what exactly do I mean by &lt;em&gt;dynamically&lt;/em&gt; loading in horizontal content?&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;The user is shown the top 4 items in a given category&lt;/li&gt;
+&lt;li&gt;From there, the user can use the &lt;code&gt;See All Items&lt;/code&gt; link to jump into a full category page&lt;/li&gt;
+&lt;li&gt;If they so desire, they can begin scroll horizontally in a given category row
+&lt;ul&gt;
+&lt;li&gt;Once they reach the end of the row, 4 more items will load in automatically to expand the list&lt;/li&gt;
+&lt;li&gt;To avoid a never-ending list, it might be best to limit total row items to ~20 items. At this point the UI could prompt the user to &lt;code&gt;View All Items&lt;/code&gt; in that category.&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;By loading the row content in piece-by-piece, initial loads for users will be faster and subsequent list items will load quickly as well (since they would limit to a set default - in this case only 4).&lt;/p&gt;
+&lt;h2 id=&quot;final-improvements&quot;&gt;Final Improvements&lt;/h2&gt;
+&lt;p&gt;Below you can find a quick, static version of this concept. Here you can see the horizontal list items, along with their corresponding &lt;code&gt;See All Items&lt;/code&gt; links. You&amp;#8217;ll have to use your imagination for how new items would load once you each the end of a horizontal row. (I&amp;#8217;m too lazy to spend extra time building out that functionality for a hypothetical blog post)&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/pobxpXz&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</description>
+ <link>https://btxx.org/bidirectional-scrolling</link>
+ <guid isPermaLink="false">https://btxx.org/bidirectional-scrolling</guid>
+ <pubDate>Mon, 09 Nov 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Browser History Sucks</title>
+ <description>&lt;h1 id=&quot;browser-history-sucks&quot;&gt;Browser History Sucks&lt;/h1&gt;
+&lt;p&gt;2019-04-20&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;Have you ever needed to step back through your browser history&lt;/em&gt; to find a particular site or product? Do you remember that experience being good? Most likely not.&lt;/p&gt;
+&lt;p&gt;Much like printers, the design of browser history interfaces hasn&amp;#8217;t changed in years. This would be fine if these UIs had been well thought out and optimized for an easy user experience - but they weren&amp;#8217;t.&lt;/p&gt;
+&lt;p&gt;Browser history views rely on the user&amp;#8217;s own memory for more in-depth searches. This defeats the whole purpose of having a robust, documented history. The browser should be doing this heavy-lifting.&lt;/p&gt;
+&lt;h2 id=&quot;what-browsers-get-wrong&quot;&gt;What browsers get wrong&lt;/h2&gt;
+&lt;p&gt;Modern browsers give the general public too much credit when it comes to memory (I don&amp;#8217;t mean this as an insult!). To assume users remember the URL or site name when browsing random pages is short-sighted. I find myself asking these types of questions when jumping back into my view history far too often:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&amp;#8220;That article had &lt;em&gt;something&lt;/em&gt; to do with CSS&amp;#8230;&amp;#8221;&lt;/li&gt;
+&lt;li&gt;&amp;#8220;I remember seeing a beautifully designed site a month ago but have no clue what the URL was&amp;#8230;&amp;#8221;&lt;/li&gt;
+&lt;li&gt;&amp;#8220;My browser crashed and I can&amp;#8217;t recall that [example website] I had pinned in my tab for weeks&amp;#8230;&amp;#8221;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;For reference, let&amp;#8217;s take a look at the current Chrome (73) history view:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/browser-history-01.webp&quot; alt=&quot;Default Chrome History&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;As you may have noticed - this UI is lackluster at best. An oversimplified search field in the header is the only means of filtering items.&lt;/p&gt;
+&lt;h2 id=&quot;why-not-use-extensions&quot;&gt;Why not use extensions?&lt;/h2&gt;
+&lt;p&gt;I know using browser extensions or tagging favorites can alleviate some of these issues. This is great, but why not simplify everything by having these features &lt;em&gt;inside&lt;/em&gt; the history view? If an extension can add these features, why not have those extras built-in?&lt;/p&gt;
+&lt;h2 id=&quot;two-subtle-improvements&quot;&gt;Two subtle improvements&lt;/h2&gt;
+&lt;p&gt;A little goes a long way. With just two small changes, we can drastically increase the history view&amp;#8217;s UX.&lt;/p&gt;
+&lt;p&gt;We start by adding a date picker. Users open the new calendar icon to filter by days, months or years before searching. Seems trivial, but this saves the headache of filtering through all saved history.&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/browser-history-02.webp&quot; alt=&quot;Chrome History with date picker&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;The second small functional change we can make is including extra subcategories. These new options allow users to focus their searches based on:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Session length&lt;/li&gt;
+&lt;li&gt;Number of return visits&lt;/li&gt;
+&lt;li&gt;Last restored tabs&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h3 id=&quot;session-length&quot;&gt;Session length&lt;/h3&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/browser-history-03.webp&quot; alt=&quot;Chrome History by session length&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;Allow users to display their history filtered by session duration. This helps when searching for an stagnant page or pinned site during a user&amp;#8217;s long session. An example default would allow filtering by:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;longest to shortest&lt;/li&gt;
+&lt;li&gt;shortest to longest&lt;/li&gt;
+&lt;li&gt;pinned tabs&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h3 id=&quot;return-visits&quot;&gt;Return visits&lt;/h3&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/browser-history-04.webp&quot; alt=&quot;Chrome History by return visits&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;When users make repeat visits to a site or web app, the browser should keep a record of return sessions. This allows the user to refine their search by many or singular visits.&lt;/p&gt;
+&lt;h3 id=&quot;last-restored-tabs&quot;&gt;Last restored tabs&lt;/h3&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/browser-history-05.webp&quot; alt=&quot;Chrome History by restored tabs&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;A basic concept, but the ability for users to view all previous instances of restored tabs is helpful. This would fix most edge cases not covered by the other two categories.&lt;/p&gt;
+&lt;h2 id=&quot;far-from-perfect&quot;&gt;Far from perfect&lt;/h2&gt;
+&lt;p&gt;The Chrome (or any browser for that matter) browser history view is simplistic to a fault. The current UI is prone to human error, since it makes assumptions and relies heavily on user memory.&lt;/p&gt;
+&lt;p&gt;These are simple fixes that attempt to boost the basic UX of the history view. Are these concepts absolutely perfect? Not at all. Is it at least an improvement? I believe it is. When products decrease the effort required of it&amp;#8217;s users, I see that as a positive.&lt;/p&gt;</description>
+ <link>https://btxx.org/browser-history-sucks</link>
+ <guid isPermaLink="false">https://btxx.org/browser-history-sucks</guid>
+ <pubDate>Sat, 20 Apr 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>CSS Character Unit</title>
+ <description>&lt;h1 id=&quot;css-character-unit&quot;&gt;CSS Character Unit&lt;/h1&gt;
+&lt;p&gt;2019-04-23&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;When it comes to proper readability with large portions of text&lt;/em&gt;, the golden standard is to have no more than &lt;a href=&quot;http://webtypography.net/2.1.2&quot;&gt;75 characters per line&lt;/a&gt;. This is easy to achieve in the world of print but on the responsive, ever-changing web - statically defined typography becomes a little more difficult.&lt;/p&gt;
+&lt;p&gt;You could go through the long process of setting up media queries for every possible screen size, adjusting text size and padding accordingly - but there is a &lt;em&gt;better way&lt;/em&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;introducing-character-units&quot;&gt;Introducing character units&lt;/h2&gt;
+&lt;p&gt;By setting your main containers or text elements with the CSS character unit (&lt;code&gt;ch&lt;/code&gt;), you need to set the character length only once. Let&amp;#8217;s look at a simple example for reference.&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s say you have an article which will fill the entire length of the screen. Something like this:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;container&quot;&amp;#62;
+ &amp;#60;p&amp;#62;Reprehenderit aliqua in quis eiusmod ea culpa aliquip. Velit duis est irure voluptate occaecat labore laborum ut pariatur ex veniam deserunt esse est. Esse sunt exercitation id reprehenderit deserunt elit commodo sit ullamco amet commodo magna consequat. Excepteur voluptate tempor consectetur eu aliqua aliquip laboris aliquip veniam excepteur labore.&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p&amp;#62;Voluptate excepteur sint magna ipsum occaecat irure sit. In occaecat excepteur in id ullamco id est incididunt irure et. Consectetur veniam exercitation occaecat exercitation labore nulla excepteur irure ex anim. Commodo sint anim non ad excepteur exercitation eiusmod Lorem nisi. Tempor ut ipsum do adipisicing dolore.&amp;#60;&amp;#47;p&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;You could stop now and simply open Sublime anytime by running the following command in your terminal:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;flatpak run com.sublimetext.three
+&lt;p&gt;With this structure, you might normally set the default &lt;code&gt;max-width&lt;/code&gt; property with your desired maximum width (whatever you believe is the best reading length):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.container {
+ max-width: 38em;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This works perfectly fine but I find it a little cumbersome. I would much rather open my programs directly through dmenu. Let&amp;#8217;s set that up.&lt;/p&gt;
-&lt;h2 id=&quot;creating-system-links&quot;&gt;Creating System Links&lt;/h2&gt;
-&lt;pre&gt;&lt;code&gt;doas ln -s ~&amp;#47;.local&amp;#47;share&amp;#47;flatpak&amp;#47;exports&amp;#47;bin&amp;#47;com.sublimetext.three &amp;#47;usr&amp;#47;bin&amp;#47;sublimetext
+&lt;p&gt;This works - but it isn&amp;#8217;t ideal. Time for character units to save the day! You will still target the &lt;code&gt;max-width&lt;/code&gt; property but this time we set it to use the &lt;code&gt;ch&lt;/code&gt; value like so:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.container {
+ max-width: 66ch;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now that those directories are linked, simply open dmenu and start typing &lt;code&gt;sublimetext&lt;/code&gt;. Done and done. No more terminal commands needed to open Sublime!&lt;/p&gt;
+&lt;p&gt;This setting makes sure content will not exceed more than 66 characters per line, making for a better reading experience with little effort.&lt;/p&gt;
+&lt;h2 id=&quot;browser-support&quot;&gt;Browser support&lt;/h2&gt;
+&lt;p&gt;The character unit attribute has pretty great support - even partial IE11! Check out the supported browsers &lt;a href=&quot;https://caniuse.com/#feat=ch-unit&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;</description>
+ <link>https://btxx.org/character-unit</link>
+ <guid isPermaLink="false">https://btxx.org/character-unit</guid>
+ <pubDate>Tue, 23 Apr 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Chasing Performance</title>
+ <description>&lt;h1 id=&quot;chasing-performance&quot;&gt;Chasing Performance&lt;/h1&gt;
+&lt;p&gt;2017-11-20&lt;/p&gt;
+&lt;h2 id=&quot;update&quot;&gt;Update&lt;/h2&gt;
+&lt;p&gt;This post is no longer relevant since this blog has been redesigned since. I&amp;#8217;m keeping this article up as a point of reference.&lt;/p&gt;
&lt;hr/&gt;
-&lt;p&gt;1. I am aware that using a terminal-based editor such as vim or emacs would be even &lt;em&gt;more&lt;/em&gt; efficient. For my own personal use I find more classical &amp;#8220;IDE&amp;#8221; applications to work best for me.
-&lt;/p&gt;</description>
- <link>https://btxx.org/sublime</link>
- <guid isPermaLink="false">https://btxx.org/sublime</guid>
- <pubDate>Thu, 13 Apr 2023 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Stripe Menu Dropdowns (CSS)</title>
- <description>&lt;h1 id=&quot;stripe-menu-dropdowns-css&quot;&gt;Stripe Menu Dropdowns (CSS)&lt;/h1&gt;
-&lt;p&gt;2020-03-31&lt;/p&gt;
-&lt;p&gt;In a previous article I wrote, &lt;a href=&quot;blog/minimal-css-menu&quot;&gt;Minimal CSS: Dropdown Menus&lt;/a&gt;, I showed how you could create a basic menu dropdown with only 121 bytes of CSS. While this demo is great for simple text-based menu dropdowns, it doesn&amp;#8217;t show just how complex (in a good way) you can make CSS-only menus. So, let&amp;#8217;s do just that.&lt;/p&gt;
-&lt;h2 id=&quot;what-we-want-to-emulate&quot;&gt;What we want to emulate&lt;/h2&gt;
-&lt;p&gt;I think, like most designers, that the UI and web design work from the &lt;a href=&quot;https://stripe.com/&quot;&gt;Stripe&lt;/a&gt; team is pretty fantastic. Their clean approach using subtle animations and minimal elements make for a pleasant experience. Unfortunately, there is one problem with their current dropdown menus on their main website:&lt;/p&gt;
-&lt;p&gt;They don&amp;#8217;t work if JavaScript is disabled.&lt;/p&gt;
-&lt;p&gt;But we can easily fix that. So enough chit-chat, let&amp;#8217;s rip-off their menu design and recreate it with only CSS!&lt;/p&gt;
-&lt;h3 id=&quot;original-stripe-website&quot;&gt;Original (&lt;a href=&quot;https://stripe.com&quot;&gt;Stripe Website&lt;/a&gt;)&lt;/h3&gt;
-&lt;h3 id=&quot;our-recreation-codepen-demo&quot;&gt;Our recreation (&lt;a href=&quot;https://codepen.io/bradleytaunt/full/ExjMjLL&quot;&gt;CodePen Demo&lt;/a&gt;)&lt;/h3&gt;
-&lt;p&gt;Although our redesign is far from an exact replica (some subtle animations are missing which could always be added) - it&amp;#8217;s still impressive what you can do with some bare-bones CSS. Just something to keep in mind the next time you decide to reach for a JavaScript library to implement a similar design.&lt;/p&gt;
-&lt;h2 id=&quot;see-it-live-in-action&quot;&gt;See it live in action&lt;/h2&gt;
-&lt;p&gt;Load in the CodePen below and play around with the menu dropdown. Feel free to re-use, break. share or steal this for any and all purposes. Enjoy!&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/ExjMjLL&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</description>
- <link>https://btxx.org/stripe-menu-css</link>
- <guid isPermaLink="false">https://btxx.org/stripe-menu-css</guid>
- <pubDate>Tue, 31 Mar 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Yes, I Still Use jQuery</title>
- <description>&lt;h1 id=&quot;yes-i-still-use-jquery&quot;&gt;Yes, I Still Use jQuery&lt;/h1&gt;
-&lt;p&gt;2019-04-15&lt;/p&gt;
-&lt;p&gt;I have seen a handful of condescending comments from front-end developers since the newest build of jQuery (&lt;a href=&quot;http://blog.jquery.com/2019/04/10/jquery-3-4-0-released/&quot;&gt;3.4.0&lt;/a&gt;) released a couple of days ago. While I understand not all developers share the same work-style or are using the same tech-stack, dismissive comments towards any &lt;em&gt;useful&lt;/em&gt; library comes off as entitled or elitist.&lt;/p&gt;
+&lt;p&gt;So I decided to participate in Smashing Mag&amp;#8217;s Front End Performance Challenge, not only for the potential of winning the prize but to further experiment with optimizing my site. (Web performance is a passion of mine)&lt;/p&gt;
+&lt;p&gt;Below I will breakdown the before &amp;#38; after statistics of my personal site and what changes I made in great detail.&lt;/p&gt;
+&lt;p&gt;I will be using both my homepage and the image-heavy article I recently wrote, The Death of Personality, as the basis for my tests.&lt;/p&gt;
+&lt;h3 id=&quot;lighthouse-score---homepage&quot;&gt;Lighthouse Score - Homepage&lt;/h3&gt;
+&lt;p&gt;Full source original stats &amp;#47;&amp;#47; Full source updated stats&lt;/p&gt;
+&lt;h3 id=&quot;lighthouse-score---article-page&quot;&gt;Lighthouse Score - Article Page&lt;/h3&gt;
+&lt;p&gt;Full source original stats &amp;#47;&amp;#47; Full source updated stats&lt;/p&gt;
+&lt;h3 id=&quot;web-page-test---homepage&quot;&gt;Web Page Test - Homepage&lt;/h3&gt;
+&lt;p&gt;Full source original stats &amp;#47;&amp;#47; Full source updated stats&lt;/p&gt;
+&lt;h3 id=&quot;web-page-test---article-page&quot;&gt;Web Page Test - Article Page&lt;/h3&gt;
+&lt;p&gt;Full source original stats &amp;#47;&amp;#47; Full source updated stats&lt;/p&gt;
+&lt;h3 id=&quot;quick-look&quot;&gt;Quick Look&lt;/h3&gt;
+&lt;p&gt;Though my homepage only made some minor speed performance enhancements, my article post&amp;#8217;s initial load time was slimmed down by a &lt;strong&gt;whopping 4.2 seconds!&lt;/strong&gt; That&amp;#8217;s pretty incredible and very noticeable from an end-user&amp;#8217;s perspective.&lt;/p&gt;
+&lt;h3 id=&quot;so---what-changed&quot;&gt;So - What Changed?&lt;/h3&gt;
+&lt;p&gt;Webfonts&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m not using any webfonts but instead defaulting to the user&amp;#8217;s OS System Fonts. I love custom typefaces but performance takes just too much of a hit on my personal site to bother with them.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;body {
+font-family: -apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,Oxygen,Ubuntu,Cantarell,&quot;Open Sans&quot;,&quot;Helvetica Neue&quot;,sans-serif,&quot;Sans Serif&quot;,Icons;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;For reference, there are some things you should to look out for when using custom typefaces:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&amp;#8220;Why would you use jQuery nowadays?&amp;#8221; &lt;/li&gt;
-&lt;li&gt;&amp;#8220;People are still developing this library?&amp;#8221;&lt;/li&gt;
-&lt;li&gt;&amp;#8220;Why use jQuery when you can use [insert latest trendy web tech here]&amp;#8221;.&lt;/li&gt;
+&lt;li&gt;Readability and accessibility&lt;/li&gt;
+&lt;li&gt;Possible extra overhead loading in a custom @font-face&lt;/li&gt;
+&lt;li&gt;Try to avoid any FOUT, FOIT, FOFT&lt;/li&gt;
+&lt;li&gt;Don&amp;#8217;t go down the rabbit hole of using 3rd party plugins to optimize something as basic as a typeface&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;&lt;strong&gt;I still use jQuery&lt;/strong&gt;. Well, I may not use the library for all projects since every project is different - but I certainly don&amp;#8217;t avoid using it solely because &amp;#8220;its jQuery&amp;#8221;. I&amp;#8217;ve always believed in using the best tools for the job.&lt;/p&gt;
-&lt;h2 id=&quot;use-what-works-for-you&quot;&gt;Use what works for you&lt;/h2&gt;
-&lt;p&gt;If you produce better work in a shorter amount of time using one of the latest and greatest technologies (React, Vue.js, Angular, etc.) then you should absolutely do so. If another developer can be just as productive building their projects with jQuery, what does it matter in the grand scheme of things?&lt;/p&gt;
-&lt;p&gt;My thought-process is this: a large percentage of web projects are done for clients not involved in the day-to-day happenings of the developer world. What they want is a solution to a particular problem. Clients don&amp;#8217;t care how things are done behind the scenes - so long as it is done efficiently and &lt;em&gt;properly&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;I tend to follow these principles when working on a project (with shared equal importance):&lt;/p&gt;
+&lt;h3 id=&quot;critical-css&quot;&gt;Critical CSS&lt;/h3&gt;
+&lt;p&gt;This part was easy. In order to avoid the weird styling &amp;#8216;pops&amp;#8217; present on some websites when initially loading with slow connections, it&amp;#8217;s best to place all your most critical styling inline and then load your external CSS once everything else has loaded.&lt;/p&gt;
+&lt;p&gt;On top of that, I decided to also implement Filament Group&amp;#8217;s loadCSS function to load my CSS asynchronously. If you are not currently using this in any of your projects; stop reading this and go do it! It&amp;#8217;s a game changer.&lt;/p&gt;
+&lt;h3 id=&quot;critical-javascript&quot;&gt;Critical JavaScript&lt;/h3&gt;
+&lt;p&gt;My personal site only uses a small amount of JavaScript on the article post Jekyll template pages. By using the defer property I can be sure to load the IntersectionObserver API polyfill after the rest of the DOM as finished loading.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;script src=&quot;https:&amp;#47;&amp;#47;cdn.polyfill.io&amp;#47;v2&amp;#47;polyfill.min.js?features=IntersectionObserver&quot; defer&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;I could probably optimize this further by only calling these scripts if an image is actually present in the article post, but this fits my needs nicely as is.&lt;/p&gt;
+&lt;h3 id=&quot;responsive-images&quot;&gt;Responsive Images&lt;/h3&gt;
+&lt;p&gt;The only images I use are those included in supported blog posts, so the first step was making sure to only call iolazy.min.js on those specific template pages. The next step was defaulting to webp image formats with a lossless jpg fall-back with the help of the picture element:&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ve also included responsive image sizes for further optimization based on screen size and loading speeds.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;figure&amp;#62;
+&amp;#60;picture
+ &amp;#60;source type=&quot;image&amp;#47;webp&quot;
+ data-srcset=&quot;
+ &amp;#47;images&amp;#47;articles&amp;#47;webp&amp;#47;flat-design-toggles_p0v2hv_c_scale,w_200.webp 200w,
+ &amp;#47;images&amp;#47;articles&amp;#47;webp&amp;#47;flat-design-toggles_p0v2hv_c_scale,w_1400.webp 1400w&quot;
+ class=&quot;lazyload&quot;&amp;#47;&amp;#62;
+ &amp;#60;img
+ sizes=&quot;(max-width: 1400px) 100vw, 1400px&quot;
+ data-srcset=&quot;
+ &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_200.webp 200w,
+ &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_727.webp 727w,
+ &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_1065.webp 1065w,
+ &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_1400.webp 1400w&quot;
+ src=&quot;&amp;#47;images&amp;#47;placeholder.webp&quot;
+ alt=&quot;Toggles Comparison&quot;
+ class=&quot;lazyload&quot;&amp;#47;&amp;#62;
+&amp;#60;&amp;#47;picture&amp;#62;
+&amp;#60;&amp;#47;figure&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;What about users with JavaScript disabled I hear you ask? It&amp;#8217;s time for noscript to save the day:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;noscript&amp;#62;
+ &amp;#60;picture&amp;#62;
+ &amp;#60;source type=&quot;image&amp;#47;webp&quot;
+ srcset=&quot;
+ &amp;#47;images&amp;#47;articles&amp;#47;webp&amp;#47;flat-design-toggles_p0v2hv_c_scale,w_200.webp 200w,
+ &amp;#47;images&amp;#47;articles&amp;#47;webp&amp;#47;flat-design-toggles_p0v2hv_c_scale,w_1400.webp 1400w&quot;&amp;#62;
+ &amp;#60;img
+ sizes=&quot;(max-width: 1400px) 100vw, 1400px&quot;
+ srcset=&quot;
+ &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_200.webp 200w,
+ &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_727.webp 727w,
+ &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_1065.webp 1065w,
+ &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_1400.webp 1400w&quot;
+ src=&quot;&amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_1400.webp&quot;
+ alt=&quot;Toggles Comparison&quot;&amp;#47;&amp;#62;
+ &amp;#60;&amp;#47;picture&amp;#62;
+&amp;#60;&amp;#47;noscript&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;https-caching&quot;&gt;HTTPS &amp;#38; Caching&lt;/h3&gt;
+&lt;p&gt;The Lighthouse audit also suggested implementing an SSL certificate (something I&amp;#8217;ve been meaning to do for a while anyway) and also utilize CDN caching. So it was Cloudflare to the rescue!&lt;/p&gt;
+&lt;p&gt;Since my website is hosted through Github, setting up a &lt;em&gt;free&lt;/em&gt; SSL certificate and enabling site-wide caching was a breeze. If you&amp;#8217;re interested in setting this up yourself, step-by-step instructions can be found here.&lt;/p&gt;
+&lt;p&gt;This simple update helped boost my best practices score from a 69 to a 94. Yet another performance enhancement you should be enabling for all your current and future projects!&lt;/p&gt;
+&lt;h2 id=&quot;performance-happiness&quot;&gt;Performance Happiness&lt;/h2&gt;
+&lt;p&gt;Overall I&amp;#8217;m pretty content with the &lt;strong&gt;major&lt;/strong&gt; performance boost my site has received from these fairly &lt;em&gt;minor&lt;/em&gt; updates and I hope this article inspires other designers and developers to jump into updating their own site&amp;#47;app performance speeds. The pay-off is truly worth it!&lt;/p&gt;
+&lt;h3 id=&quot;some-extra-reading-material&quot;&gt;Some Extra Reading Material&lt;/h3&gt;
&lt;ul&gt;
-&lt;li&gt;fast performance&lt;/li&gt;
-&lt;li&gt;accessible&lt;/li&gt;
-&lt;li&gt;simple UI&lt;/li&gt;
-&lt;li&gt;intuitive UX&lt;/li&gt;
+&lt;li&gt;Web Performance in Action by Jeremy Wagner&lt;/li&gt;
+&lt;li&gt;Responsible Responsive Design by Scott Jehl&lt;/li&gt;
+&lt;li&gt;Designing with Progressive Enhancement: Building the Web that Works for Everyone by Todd Parker, Scott Jehl,‎ Maggie Costello Wachs,‎ Patty Toland&lt;/li&gt;
+&lt;/ul&gt;</description>
+ <link>https://btxx.org/chasing-performance</link>
+ <guid isPermaLink="false">https://btxx.org/chasing-performance</guid>
+ <pubDate>Mon, 20 Nov 2017 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Portable Pi: Cheap Raspberry Pi Zero Hacker Terminal</title>
+ <description>&lt;h1 id=&quot;portable-pi-cheap-raspberry-pi-zero-hacker-terminal&quot;&gt;Portable Pi: Cheap Raspberry Pi Zero Hacker Terminal&lt;/h1&gt;
+&lt;p&gt;2020-09-16&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;I recently came across &lt;a href=&quot;https://n-o-d-e.net/zeroterminal3.html&quot;&gt;the incredibly cool design&lt;/a&gt; for an &amp;#8220;ultimate Raspberry Pi computer&amp;#8221;&lt;/em&gt; by NODE and was inspired to create my own &amp;#8220;portable&amp;#8221; Pi device. Although, with my concept, I decided to set a few restrictions on the build:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;I wanted to keep the total cost as low as possible
+&lt;ul&gt;
+&lt;li&gt;including the Pi Zero &lt;em&gt;and&lt;/em&gt; extra hardware&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;I wanted to avoid any custom casings or need for 3D printed materials&lt;/li&gt;
+&lt;li&gt;I wanted to make the full design extremely portable &amp;#47; lightweight&lt;/li&gt;
+&lt;li&gt;I wanted to keep the build as user-friendly as possible (no soldering, odd hacks etc.)&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;As long as all of these items are accomplished, I don&amp;#8217;t care if the project was a direct export from Microsoft Word straight to the web1. If it works great, then it works great.&lt;/p&gt;
-&lt;p&gt;So use whatever tools make you a happier developer, as long as your projects don&amp;#8217;t suffer because of them.&lt;/p&gt;
-&lt;p&gt;1This would obviously be terrible for development, but its just an extreme example&lt;/p&gt;</description>
- <link>https://btxx.org/still-using-jquery</link>
- <guid isPermaLink="false">https://btxx.org/still-using-jquery</guid>
- <pubDate>Mon, 15 Apr 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Stop Using Sticky Navigation on Mobile</title>
- <description>&lt;h1 id=&quot;stop-using-sticky-navigation-on-mobile&quot;&gt;Stop Using Sticky Navigation on Mobile&lt;/h1&gt;
-&lt;p&gt;2019-10-06&lt;/p&gt;
-&lt;p&gt;Stop styling your web elements to be &amp;#8220;sticky&amp;#8221; on mobile. This creates a horrible experience for your users and also looks like trash from a UI perspective. Don&amp;#8217;t style your navigation (or any components for that matter) to be &amp;#8220;sticky&amp;#8221; on mobile. They create poor experiences for your users and take away valuable screen space.&lt;/p&gt;
-&lt;h2 id=&quot;what-do-you-mean-by-sticky&quot;&gt;What do you mean by &amp;#8220;sticky&amp;#8221;?&lt;/h2&gt;
-&lt;p&gt;The concept of &lt;em&gt;sticky&lt;/em&gt; elements include but are not exclusive to:&lt;/p&gt;
+&lt;p&gt;With these constraints put in place, I built my very own Raspberry Pi Zero &amp;#8220;hacker&amp;#8221; terminal. You can see the finished product below:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/portable-pi-1.webp&quot; alt=&quot;Portable Pi front&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/portable-pi-2.webp&quot; alt=&quot;Portable Pi back&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m pretty happy with the final outcome and best of all - you can easily recreate this yourself with little-to-no effort!&lt;/p&gt;
+&lt;p&gt;So enough chit-chat - let&amp;#8217;s build this bad-boy!&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Most items in the hardware section are Amazon affiliate links&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;h2 id=&quot;table-of-contents&quot;&gt;Table of Contents&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;a href=&quot;#expectations&quot;&gt;Setting Expectations&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#hardware&quot;&gt;The Hardware&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#software&quot;&gt;The Software&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#setup&quot;&gt;Getting Setup&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#summary&quot;&gt;Final Summary&lt;/a&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;&lt;strong&gt;This hardware will not&lt;/strong&gt; replace your laptop or any other &amp;#8220;high-powered&amp;#8221; portable device. Honestly, you&amp;#8217;re mobile phone would (most likely) work better in terms of a compact-sized computer. The concept behind this &amp;#8220;portable pi&amp;#8221; project was to make something &lt;em&gt;for fun&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;Please reserve any sassy comments about how buying a cheap $50 laptop off eBay would be more efficient than building out something like I have done here. You&amp;#8217;re missing the point entirely.&lt;/p&gt;
+&lt;p&gt;Moving on for those still interested&amp;#8230; &lt;/p&gt;
+&lt;p&gt;I live in Canada, so some of the options are based on available hardware near my location. You&amp;#8217;re likely to find similar hardware close to your own country for better pricing &amp;#47; shipping costs.&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: I&amp;#8217;ve decided to use a wireless, USB dongle-based keyboard. You can opt to use a bluetooth-based keyboard, but I just find them more trouble than they are worth (keeping a charge, losing connections, interference from other devices)&lt;/p&gt;
+&lt;/blockquote&gt;
&lt;ul&gt;
-&lt;li&gt;Navigations that follow users as they scroll&lt;/li&gt;
-&lt;li&gt;Chatbot prompt bubbles eating up half the bottom of the screen&lt;/li&gt;
-&lt;li&gt;Banners or modal prompts that pester the user to &amp;#8220;sign up, accept cookies&amp;#8221; etc.&lt;/li&gt;
+&lt;li&gt;SBC: &lt;a href=&quot;https://amzn.to/3jCVXHG&quot;&gt;Raspberry Pi Zero WH&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Storage &amp;#47; OS: &lt;a href=&quot;https://amzn.to/2GHm01R&quot;&gt;64GB Micro SD Card&lt;/a&gt; (Always have an SD backup!)&lt;/li&gt;
+&lt;li&gt;Battery HAT: &lt;a href=&quot;https://amzn.to/3jGq8xp&quot;&gt;Li-ion Battery HAT&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Battery: &lt;em&gt;This depends on your location. I was able to order &lt;a href=&quot;https://www.walmart.ca/en/ip/Brand-New-4-Pcs-2500mAh-TR14500-3-7V-Rechargeable-Li-ion-Battery-for-Flashlight-Torch/PRD3Z73LMZZ3VK9&quot;&gt;online through Walmart&lt;/a&gt;, but if you live in the USA there are plenty of battery-specific vendors available. Find whatever works best for your needs!&lt;/em&gt;&lt;/li&gt;
+&lt;li&gt;Display: &lt;a href=&quot;https://www.buyapi.ca/product/3-5-inch-raspberry-pi-tft-display/&quot;&gt;KeDei 3.5-inch TFT Display&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Keyboard: &lt;a href=&quot;https://amzn.to/2Gqkwt6&quot;&gt;Mini USB Wireless Keyboard&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Adapter: &lt;a href=&quot;https://amzn.to/36I6T3c&quot;&gt;Micro USB OTG Cable&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;&lt;strong&gt;These are bad and you should feel bad for implementing them.&lt;/strong&gt; Spacing and layout is a critical part of a product’s design and greatly impacts the experience of its users. Stop screwing it up with ugly sticky elements.&lt;/p&gt;
-&lt;p&gt;First, let&amp;#8217;s breakdown &amp;#8220;sticky&amp;#8221; navigations and why they&amp;#8217;re terrible. We&amp;#8217;ll also go over some easy solutions to avoid making these bad design decisions in the first place.&lt;/p&gt;
-&lt;h2 id=&quot;the-stalking-navigation&quot;&gt;The stalking navigation&lt;/h2&gt;
-&lt;p&gt;When you make a decision to eat away &lt;code&gt;&amp;#62;50px&lt;/code&gt; of space at the top of the page for your site&amp;#8217;s navigation - you&amp;#8217;re hurting your users. You&amp;#8217;re also making their time interacting with your website more painful.&lt;/p&gt;
-&lt;p&gt;&amp;#8220;Wait!&amp;#8221; I hear sticky-nav defenders exclaim, &amp;#8220;this navigation bar makes it so the user can &lt;em&gt;easily&lt;/em&gt; interact with the site&amp;#8217;s pages!&amp;#8221;&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;What absolute rubbish.&lt;/strong&gt; A user should only see a website&amp;#8217;s navigation when they &lt;em&gt;need to use it&lt;/em&gt;. This isn&amp;#8217;t rocket science.&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s a take a look at the problem:&lt;/p&gt;
-&lt;p&gt;Knowing when to show navigation can be easily solved where the user isn&amp;#8217;t bogged down with a chunk of their screen permanently taken away, all the while still having access to the navigation. This can be fixed by simply understanding the user context at a given time. See below:&lt;/p&gt;
-&lt;p&gt;Here the navigation flows up with the rest of the page as the user scrolls the main content into view. Don&amp;#8217;t worry about creating confusion - the user knows the navigation is still at the top of the page because they &lt;em&gt;watched it scroll out of view&lt;/em&gt;. This is best paired by having a matching navigation in the footer of the page as well. That way, when the user makes it to the end of a specific view they can change pages right in the &amp;#8220;footer&amp;#8221;. No need to scroll back to the top.&lt;/p&gt;
-&lt;h2 id=&quot;the-best-of-both-worlds&quot;&gt;The best of both worlds?&lt;/h2&gt;
-&lt;p&gt;Maybe you want to hide the navigation without losing the flexibility of it always being accessible at the top of the page? This is possible, although I find it still &lt;em&gt;somewhat&lt;/em&gt; intrusive on the user. An easy way achieve this is by displaying the navigation when users perform a specific action, such as:&lt;/p&gt;
+&lt;h4 id=&quot;raspberry-pi-zero-wh&quot;&gt;Raspberry Pi Zero WH&lt;/h4&gt;
+&lt;p&gt;You will need a Raspberry Pi Zero W with GPIO header pins already soldered on to the board. (You could also do this yourself manually if you have the tools and skill to do so)&lt;/p&gt;
+&lt;h4 id=&quot;li-ion-battery-hat&quot;&gt;Li-Ion Battery HAT&lt;/h4&gt;
+&lt;p&gt;This HAT holds a single li-ion battery and for our purposes will connect with our Pi Zero via the GPIO header pins. You could also look into double-set battery HATs if that is something you would prefer - for my needs a single rechargeable battery works fine.&lt;/p&gt;
+&lt;p&gt;Since our main &amp;#8220;OS&amp;#8221; is purely terminal based, I find you don&amp;#8217;t really need a li-ion battery with a massive amount of power storage. 2500mAh will easily last a handful of hours mucking about with emails, files and web browsing. Plus, you can always carry a few extras for swapping out on-the-go.&lt;/p&gt;
+&lt;h4 id=&quot;3.5-inch-tft-display&quot;&gt;3.5-inch TFT Display&lt;/h4&gt;
+&lt;p&gt;A simple and fairly cheap touchscreen display. We won&amp;#8217;t require our display to render videos or pretty graphics (since we will be entirely terminal-based) so this works just fine for our needs. I am using version 6.3 for this build.&lt;/p&gt;
+&lt;h4 id=&quot;micro-usb-otg-adapter&quot;&gt;Micro USB OTG Adapter&lt;/h4&gt;
+&lt;p&gt;As mentioned above, this item is optional if you feel more comfortable with using a pure bluetooth keyboard. I just personally prefer this method.&lt;/p&gt;
+&lt;h4 id=&quot;wireless-keyboard&quot;&gt;Wireless Keyboard&lt;/h4&gt;
+&lt;p&gt;In my product demo image at the beginning of the article, I&amp;#8217;m actually using an old Logitech wireless keyboard since this one still hasn&amp;#8217;t arrived. I plan to swap them out once I have it - the Logitech is far to large to be deemed &amp;#8220;portable&amp;#8221;.&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Long or multiple upward swipes on the page&lt;/li&gt;
-&lt;li&gt;Pull down menu from top of current view (easily shown to user)&lt;/li&gt;
+&lt;li&gt;Operating System: &lt;a href=&quot;https://www.raspberrypi.org/downloads/raspberry-pi-os/&quot;&gt;Raspberry Pi OS Lite&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Display Driver: &lt;a href=&quot;http://kedei.net/raspberry/raspberry.html&quot;&gt;KeDei 3.5 Driver&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Email: &lt;a href=&quot;https://github.com/LukeSmithxyz/mutt-wizard&quot;&gt;Neomutt&lt;/a&gt; (via Mutt Wizard)&lt;/li&gt;
+&lt;li&gt;Web Browser: &lt;a href=&quot;https://lynx.browser.org/&quot;&gt;Lynx&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Text Editor: &lt;a href=&quot;https://www.nano-editor.org/&quot;&gt;Nano&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Code Editor: &lt;a href=&quot;https://www.vim.org/&quot;&gt;Vim&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;navigations-arent-the-only-culprits&quot;&gt;Navigations aren&amp;#8217;t the only culprits&lt;/h2&gt;
-&lt;p&gt;I wish that navigation items were the only sinners of the &amp;#8220;sticky&amp;#8221; position on mobile - but they are not alone. A few other problematic components include:&lt;/p&gt;
+&lt;p&gt;I will be setting up this &amp;#8220;portable pi&amp;#8221; via &lt;a href=&quot;https://www.raspberrypi.org/documentation/configuration/wireless/headless.md&quot;&gt;headless installation&lt;/a&gt; with my main &lt;a href=&quot;https://uglyduck.ca/my-pi-desktop/&quot;&gt;Raspberry Pi 4 desktop&lt;/a&gt;. Included below are some quick instructions on how to setup the Raspberry Pi Zero for &lt;code&gt;ssh&lt;/code&gt; access.&lt;/p&gt;
+&lt;h4 id=&quot;preparing-the-microsd-card&quot;&gt;Preparing the microSD card&lt;/h4&gt;
&lt;ul&gt;
-&lt;li&gt;Chatbot or support &amp;#8220;bubbles&amp;#8221;&lt;/li&gt;
-&lt;li&gt;&amp;#8220;Agree to our cookies&amp;#8221; prompts&lt;/li&gt;
-&lt;li&gt;Time-based pop-up modals&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Use Raspberry Pi Imager to write the Raspberry Pi Lite OS to your microSD card
+&lt;ul&gt;
+&lt;li&gt;Once complete, remove the microSD storage device and then re-connect it&lt;/li&gt;
+&lt;/ul&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Navigate to the &lt;code&gt;boot&lt;/code&gt; folder of the microSD device - we will be adding 2 files here
+&lt;ul&gt;
+&lt;li&gt;First add a completely empty file and name it &lt;code&gt;ssh&lt;/code&gt; (no file extension)&lt;/li&gt;
+&lt;li&gt;Next add an empty file named &lt;code&gt;wpa_supplicant.conf&lt;/code&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Open the &lt;code&gt;wpa_supplicant.conf&lt;/code&gt; file in a code &amp;#47; text editor and paste the following (be sure to change &lt;code&gt;country&lt;/code&gt; to your proper country code, as well as properly setting your network name &amp;#47; password):&lt;/p&gt;
+&lt;p&gt;ctrl&lt;em&gt;interface=DIR=&amp;#47;var&amp;#47;run&amp;#47;wpa&lt;/em&gt;supplicant GROUP=netdev
+update_config=1
+country=US&lt;/p&gt;
+&lt;p&gt;network={
+ ssid=&quot;Your network name&amp;#47;SSID&amp;#8221;
+ psk=&quot;Your WPA&amp;#47;WPA2 security key&amp;#8221;
+ key_mgmt=WPA-PSK
+}&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Unmount the microSD device, then place the microSD card in your RPi Zero&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Assemble the Raspberry Pi Zero with the Battery HAT (li-ion battery attached) connected via GPIO pins, and the 3.5 display connected on-top of the battery HAT&amp;#8217;s pins&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Turn on the battery HAT switch to power the RPi Zero. Give the device roughly 90 seconds to perform the initial boot&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Every time you implement one of these components, somewhere in the world a puppy dies. Seriously - don&amp;#8217;t be part of the problem and build these things. Push back on &amp;#8220;marketing research&amp;#8221; or team leads who tell you that this crap works. You&amp;#8217;re making the mobile web worse for everyone and setting a terrible precedent for future developers.&lt;/p&gt;
-&lt;p&gt;Stay &lt;em&gt;static&lt;/em&gt;, my friends!&lt;/p&gt;</description>
- <link>https://btxx.org/sticky-elements</link>
- <guid isPermaLink="false">https://btxx.org/sticky-elements</guid>
- <pubDate>Sun, 06 Oct 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Stay Hungry</title>
- <description>&lt;h1 id=&quot;stay-hungry&quot;&gt;Stay Hungry&lt;/h1&gt;
-&lt;p&gt;2018-02-12&lt;/p&gt;
-&lt;p&gt;It can feel daunting in this developer &amp;#47; designer landscape to keep yourself up-to-date with the latest and greatest technologies available. Which new framework should I invest the most time into? Will it even be maintained a couple years down the road? Is it just a fad?&lt;/p&gt;
-&lt;p&gt;What about programming languages? Should I learn as many as possible or should I become an expert in one specialized area? &lt;em&gt;Should designers code?&lt;/em&gt; The list of possible &lt;em&gt;new&lt;/em&gt; things you could be learning continues to grow.
-This is sarcasm. Please don&amp;#8217;t take this seriously&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;jumping-right-in&quot;&gt;Jumping right in&lt;/h2&gt;
-&lt;p&gt;Want my advice? Pick something and dive head first into it. Don&amp;#8217;t worry if it&amp;#8217;s not the most popular programming language or if it&amp;#8217;s a new design system that isn&amp;#8217;t gaining much traction. Do you find it interesting? Awesome - that&amp;#8217;s what matters most. How can you teach yourself something new when you have &lt;em&gt;zero&lt;/em&gt; interest in it?&lt;/p&gt;
-&lt;h2 id=&quot;less-talk-more-action&quot;&gt;Less talk, more action&lt;/h2&gt;
-&lt;p&gt;So what am I currently doing to keep my mind fresh and thinking outside of my comfort zone?&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: the display will turn on but only show a white screen - this is normal&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;h4 id=&quot;connecting-to-your-zero-via-ssh&quot;&gt;Connecting to your Zero via SSH&lt;/h4&gt;
+&lt;p&gt;Open the terminal on your Raspberry Pi desktop and enter the following command:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;ssh pi@raspberrypi.local
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;You will then be asked if you wish to trust this device (say yes), then prompted for the &lt;code&gt;pi&lt;/code&gt; user&amp;#8217;s password - which is &lt;code&gt;raspberry&lt;/code&gt;. After a moment you will be directly connected to your Raspberry Pi Zero. Hooray!&lt;/p&gt;
+&lt;p&gt;We just want to make a couple small configuration changes before going forward (mostly for security):&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Run the command &lt;code&gt;sudo raspi-config&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Select &amp;#8220;Change User Password&amp;#8221; from the menu and change the password
+&lt;img src=&quot;/public/images/raspi-config.webp&quot; alt=&quot;Raspberry config&quot; /&gt;&lt;/li&gt;
+&lt;li&gt;After that, select &amp;#8220;Network Options&amp;#8221; and change your device name
&lt;ul&gt;
-&lt;li&gt;Teaching myself the R programming language&lt;/li&gt;
-&lt;li&gt;Deep diving into the &lt;code&gt;ggplot2&lt;/code&gt; package&lt;/li&gt;
-&lt;li&gt;Developing my first side project website using &lt;code&gt;blogdown&lt;/code&gt; and Hugo&lt;/li&gt;
-&lt;li&gt;Trying out Figma as my exclusive design program for the next few months&lt;/li&gt;
+&lt;li&gt;This will avoid any conflicts of connecting to newer RPi devices down the line&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;That&amp;#8217;s it!&lt;/p&gt;
+&lt;h4 id=&quot;installing-display-driver&quot;&gt;Installing display driver&lt;/h4&gt;
+&lt;p&gt;Next we will need to download and run the drivers needed for our 3.5-inch display to play nicely with our Pi Zero (just a blank white screen doesn&amp;#8217;t help us much). While connected to our RPi Zero via SSH, run the following commands:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;wget http:&amp;#47;&amp;#47;kedei.net&amp;#47;raspberry&amp;#47;v6_1&amp;#47;LCD_show_v6_1_3.tar.gz
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;If you have snail-paced rural internet like I do, now is a good time to go and grab a coffee while this download completes.&lt;/p&gt;
+&lt;p&gt;Once the download has finished, extract the contents and navigate to the new directory and install the driver:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo tar xzf LCD_show_v6_1_3.tar.gz
+cd LCD_show_v6_1_3
+sudo .&amp;#47;LCD35_v
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Once completed, the RPi Zero will reboot and everything should work as expected!&lt;/p&gt;
+&lt;h4 id=&quot;installing-software&quot;&gt;Installing software&lt;/h4&gt;
+&lt;p&gt;I&amp;#8217;m not going to jump into heavy details about installing terminal-based software for this setup. The links I&amp;#8217;ve attached in the software section should provide you with more than enough information to get started. For reference, I&amp;#8217;m using a very basic set of applications:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Neomutt (emails)&lt;/li&gt;
+&lt;li&gt;Lynx (quick and simple web browsing)&lt;/li&gt;
+&lt;li&gt;Nano (writing notes &amp;#47; blog posts in a hurry)&lt;/li&gt;
+&lt;li&gt;Vim (making any config edits or project work)&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Programming your brain to learn something new can be frustrating and pull you out of your comfort zone. Don&amp;#8217;t let this become stressful - instead use it as inspiration to push yourself through the struggle.&lt;/p&gt;
-&lt;p&gt;There is no real reason to avoid learning something new outside your current circle of knowledge - only crappy excuses.&lt;/p&gt;
-&lt;p&gt;Get on it.&lt;/p&gt;</description>
- <link>https://btxx.org/stay-hungry</link>
- <guid isPermaLink="false">https://btxx.org/stay-hungry</guid>
- <pubDate>Mon, 12 Feb 2018 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Migrating from GitHub to sourcehut</title>
- <description>&lt;h1 id=&quot;migrating-from-github-to-sourcehut&quot;&gt;Migrating from GitHub to sourcehut&lt;/h1&gt;
-&lt;p&gt;2022-11-14&lt;/p&gt;
-&lt;p&gt;It has taken a little bit longer than I anticipated, but I have finally started to port over all my personal open-source projects to &lt;a href=&quot;https://sourcehut.org&quot;&gt;sourcehut.org&lt;/a&gt;. I&amp;#8217;ll get into the &lt;em&gt;why&lt;/em&gt; and &lt;em&gt;how&lt;/em&gt; momentarily, but first let&amp;#8217;s take a look at all the impacted projects:&lt;/p&gt;
-&lt;h2 id=&quot;ported-projects&quot;&gt;Ported Projects&lt;/h2&gt;
+&lt;p&gt;There you have it - a terminal-based, portable Raspberry Pi Zero &amp;#8220;hacker&amp;#8221; device. &lt;/p&gt;
+&lt;p&gt;Is it practical? Not really. Can it replace any other &lt;em&gt;portable&lt;/em&gt; device you might own? Probably not. Is it fun to make and experiment on? You bet! And in the end - isn&amp;#8217;t that what matters most with pet Pi projects?&lt;/p&gt;</description>
+ <link>https://btxx.org/cheap-portable-pi</link>
+ <guid isPermaLink="false">https://btxx.org/cheap-portable-pi</guid>
+ <pubDate>Wed, 16 Sep 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Web Development on a $200 Chromebook</title>
+ <description>&lt;h1 id=&quot;web-development-on-a-200-chromebook&quot;&gt;Web Development on a $200 Chromebook&lt;/h1&gt;
+&lt;p&gt;2020-01-07&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;This blog post was written, edited and tested locally&lt;/em&gt; on a cheap $200 Chromebook. The article draft was composed in Sublime Text. Jekyll (the SSG this website uses) was generated via the Linux Beta Terminal running alongside Chrome OS. It was then pushed to the Github repo from the same Terminal and published automatically to Netlify. But more on that later.&lt;/p&gt;
+&lt;p&gt;First, we need to ask an important question: why use a Chromebook for web development? Maybe a better question might be: why not?&lt;/p&gt;
+&lt;h2 id=&quot;mild-interest-turned-into-an-experiment&quot;&gt;Mild interest turned into an experiment&lt;/h2&gt;
+&lt;p&gt;Looking from the outside, I always liked the concept of the Chrome OS ecosystem. It had a solid list of features that appealed to me, specifically:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://vanillacss.com&quot;&gt;Vanilla CSS&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://1mb.club&quot;&gt;1mb.club&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://pblog.bt.ht&quot;&gt;pblog&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://shinobi.bt.ht&quot;&gt;shinobi&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://audit.bt.ht&quot;&gt;Web Audit&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Blazingly fast boot times&lt;/li&gt;
+&lt;li&gt;Long lasting battery life (roughly 8 hours with consistent usage)&lt;/li&gt;
+&lt;li&gt;Extremely cheap entry point for &amp;#8220;low-end&amp;#8221; devices&lt;/li&gt;
+&lt;li&gt;And, more recently, support for Android &amp;#38; Linux apps&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;still-wip&quot;&gt;Still WIP&lt;/h2&gt;
+&lt;p&gt;The obvious downside to using a Chromebook is the lack of a &amp;#8220;real&amp;#8221; operating system. A Windows, Mac or Linux machine will always have more flexibility and depth than a simple Chromebook. But I&amp;#8217;ve found that simple is all I need - or want.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Side note:&lt;/strong&gt; &lt;em&gt;I wrote an article not to long ago about &lt;a href=&quot;https://uglyduck.ca/stop-crawling-google/&quot;&gt;blocking Google from my website&lt;/a&gt; and I can see how this current post may come across as hypocritical. Since the search&amp;#47;AMP teams are not that same as the Chrome OS &amp;#47; Chromebook development team, I can view each of those projects based on their own merits. If you still view me as a hypocrite, that&amp;#8217;s fine&lt;/em&gt; :)&lt;/p&gt;
+&lt;h2 id=&quot;my-use-case-ymmv&quot;&gt;My use case (YMMV)&lt;/h2&gt;
+&lt;p&gt;I ended up grabbing the &lt;a href=&quot;https://amzn.to/2Xvx20q&quot;&gt;Acer 11 N7 Chromebook&lt;/a&gt; off of Amazon for $200 (on sale and in Canuck bucks). It comes packed with 4GB of RAM with an Intel Celeron (1.6GHz) and 32GB of storage. Fairly barebones stuff.&lt;/p&gt;
+&lt;p&gt;My day-to-day use cases are fairly straightforward. I work with git, static site generators, WordPress locally and on staging servers, edit documents, send emails and watch stupid YouTube videos. You know, the basics. My dirt-cheap Chromebook handles all of these things with ease.&lt;/p&gt;
+&lt;p&gt;My Chromebook setup is as follows:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://1kb.club&quot;&gt;1kb.club&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://phpetite.org&quot;&gt;phpetite.org&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Linux Beta (ships with &lt;code&gt;git&lt;/code&gt;, etc)&lt;/li&gt;
+&lt;li&gt;Sublime Text (you can always use VSCode if you prefer)&lt;/li&gt;
+&lt;li&gt;Terminal&lt;/li&gt;
+&lt;li&gt;Local by Flywheel (local WordPress development)&lt;/li&gt;
+&lt;li&gt;Figma in Chrome (UI design &amp;#47; mockups)&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;&lt;em&gt;Some others are being worked on but have less &amp;#8220;popularity&amp;#8221;&lt;/em&gt;&lt;/p&gt;
-&lt;h2 id=&quot;why&quot;&gt;Why?&lt;/h2&gt;
-&lt;p&gt;GitHub has landed itself in some hot water with their &lt;a href=&quot;https://githubcopilotlitigation.com/&quot;&gt;recent lawsuit(s) surrounding their Copilot feature&lt;/a&gt;. I was already on the fence about keeping GitHub as my main &amp;#8220;code forge&amp;#8221; after they were scooped up by Microsoft, who then killed off Atom and then started collecting telemetry data through VSCode. This seemed like a good excuse as any to finally leave the platform. The &lt;em&gt;straw&lt;/em&gt;, if you will.&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;&amp;#62;&amp;#62; Sourcehut has entered the chat &amp;#60;&amp;#60;&lt;/em&gt;&lt;/p&gt;
-&lt;p&gt;We, as designers and developers, shouldn&amp;#8217;t be supporting crap like this. I would much rather put my money where my mouth is and directly support a truly transparent alternative[^1]. Although I might only be paying for the &lt;strong&gt;Typical Hacker&lt;/strong&gt; tier on &lt;a href=&quot;https://sourcehut.org/pricing/&quot;&gt;sourcehut&lt;/a&gt;, I like to think that every little bit helps the platform. Even if you choose a different code forge, please consider donating to support independent alternatives!&lt;/p&gt;
-&lt;h2 id=&quot;git-email-jump-into-the-deep-end&quot;&gt;Git Email? Jump into the Deep End&lt;/h2&gt;
-&lt;p&gt;One aspect of sourcehut that initially scared me off was the lack of a proper &amp;#8220;PR-flow&amp;#8221;, web UI-based system[^2]. Instead, reporting bugs, creating tickets, and submitting PATCHES are generally done through regular, plain-text email.&lt;/p&gt;
-&lt;p&gt;In the end, I&amp;#8217;m glad I stuck it out. I&amp;#8217;m still pretty slow with this new workflow (so please be patient with me if you submit a patch on a project!) but it actually seems cleaner. The phrase &amp;#8220;streamlined&amp;#8221; is what comes to mind.&lt;/p&gt;
-&lt;p&gt;And really, if you think about it, at one point in time GitHub&amp;#8217;s PR system would have been &amp;#8220;new&amp;#8221; for most users. Everything takes time to learn. This workflow is no different.&lt;/p&gt;
-&lt;p&gt;Drew (creator of sourcehut) actually put together an extremely helpful guide on getting &lt;a href=&quot;https://git-send-email.io/&quot;&gt;setup with git send-email&lt;/a&gt;. I still reference back to this if&amp;#47;when I need to get up-and-running on a new machine. I highly recommend checking it out.&lt;/p&gt;
-&lt;h2 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h2&gt;
-&lt;p&gt;That&amp;#8217;s it really. I&amp;#8217;m still in the process of moving over some projects, archiving original GitHub repos and becoming more adapted to the whole sourcehut &amp;#8220;workflow&amp;#8221;. I&amp;#8217;m enjoying it and it feels good to pay for something that is not only useful but open source at its core.&lt;/p&gt;
-&lt;p&gt;Will I be deleting my GitHub profile outright? Maybe. I&amp;#8217;m not sure. For now the first step is removing any dependence I once had on that platform. Baby steps.&lt;/p&gt;
-&lt;p&gt;For those interested, my sourcehut public profile is: &lt;a href=&quot;https://sr.ht/~bt/&quot;&gt;https:&amp;#47;&amp;#47;sr.ht&amp;#47;~bt&amp;#47;&lt;/a&gt;. Maybe I&amp;#8217;ll see you on the other side ;)&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it. I understand other developers may require a lot more than this, but with Linux running in a container alongside Chrome OS you can pretty much run anything you could possibly need (excluding exclusive Mac &amp;#38; Windows apps, of course).&lt;/p&gt;
+&lt;h2 id=&quot;can-a-200-chromebook-be-your-next-web-dev-machine&quot;&gt;Can a $200 Chromebook be your next web dev machine?&lt;/h2&gt;
+&lt;p&gt;For me? Yes. For you? Maybe.&lt;/p&gt;
+&lt;p&gt;I mean, it really just depends on what you need your machine to accomplish. If you can be productive and the apps you use are just as fast and responsive as they would be on a more robust OS - then I say go for it. You don&amp;#8217;t even need to be a cheapo like me, instead you can snag a fancier Chromebook or Google&amp;#8217;s own Pixelbook. There are a ton of options when it comes to Chrome OS based devices.&lt;/p&gt;
+&lt;p&gt;If you wanted to experiment to see if the Chrome OS ecosystem could work with your development flow, you can always check out something like &lt;a href=&quot;https://www.neverware.com/freedownload&quot;&gt;CloudReady&lt;/a&gt; to test on your current machine before pulling the trigger.&lt;/p&gt;
+&lt;p&gt;In the end, it doesn&amp;#8217;t matter what operating system or apps you use to get your development work done - so long as it is productive and easy-to-use.&lt;/p&gt;
+&lt;p&gt;For my current situation, all I need is my cheap little Chromebook.&lt;/p&gt;</description>
+ <link>https://btxx.org/chromebook-web-dev</link>
+ <guid isPermaLink="false">https://btxx.org/chromebook-web-dev</guid>
+ <pubDate>Tue, 07 Jan 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>A Reality Where CSS and JavaScript Don't Exist</title>
+ <description>&lt;h1 id=&quot;a-reality-where-css-and-javascript-dont-exist&quot;&gt;A Reality Where CSS and JavaScript Don&amp;#8217;t Exist&lt;/h1&gt;
+&lt;p&gt;2021-11-03&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;This is my personal opinion. Please leave your pitchforks at the door&amp;#8230;&lt;/em&gt;&lt;/p&gt;
+&lt;p&gt;I love CSS. I can spend hours deep diving into a website&amp;#8217;s CSS system and never find myself getting bored. It&amp;#8217;s pretty amazing to see the problems other designers are able to solve with just a little bit of custom styling and determination.&lt;/p&gt;
+&lt;p&gt;I like JavaScript. It serves it&amp;#8217;s purpose and makes complex functionality on the web easier to wrangle in and understand.&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;But I think both should have never come into existence&lt;/em&gt;.&lt;/p&gt;
+&lt;h3 id=&quot;heresey&quot;&gt;Heresey!&lt;/h3&gt;
+&lt;p&gt;I know, I know - this website itself uses a little, teeny-tiny amount of CSS. I am indeed a hypocrite - but did I ever claim that I &lt;em&gt;practice&lt;/em&gt; what I preach? At least this personal website is JavaScript-free&amp;#8230; (apart from a handful of CodePen examples embedded in some of the tutorials).&lt;/p&gt;
+&lt;h3 id=&quot;moving-on&quot;&gt;Moving On&amp;#8230;&lt;/h3&gt;
+&lt;p&gt;I&amp;#8217;m not a complete idiot. I realize that the web has evolved significantly over the years, and to propose that it should have remained stagnant with it&amp;#8217;s original concept of &amp;#8220;paged documents&amp;#8221; is foolish. But that &lt;em&gt;is&lt;/em&gt; what I&amp;#8217;m suggesting - at least, partially.&lt;/p&gt;
+&lt;h3 id=&quot;consistent-boring&quot;&gt;Consistent &amp;#38; Boring&lt;/h3&gt;
+&lt;p&gt;Out there in the multiverse is a reality where the web is a complete borefest. Information is the only driving factor to visit a &amp;#8220;web page&amp;#8221; and PWAs have never come to exist. Custom styling, fancy interactive animations and single-page functionality isn&amp;#8217;t even something that can be implemented. The web is just a system of HTML&amp;#47;plaintext documents sharing information and data. Users browse the web in quick bursts to satisfy their queries or read something interesting. Then, they return to &lt;em&gt;real life&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;My goodness what a &lt;em&gt;beautiful&lt;/em&gt; reality that would be. Consistent, boring and wonderful.&lt;/p&gt;
+&lt;h3 id=&quot;wait---arent-you-a-designer&quot;&gt;&amp;#8220;Wait - Aren&amp;#8217;t You a Designer?&amp;#8221;&lt;/h3&gt;
+&lt;p&gt;Yes - and again more hypocrisy. My livelihood depends on software requiring custom UIs and properly audited UX flows. By suggesting this change I am throwing myself under the bus and putting myself out of work. All my experience would become worthless and the world of software &lt;em&gt;design&lt;/em&gt; would cease to exist.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;I would be okay with that&lt;/strong&gt;. If it meant the web as a whole was a better place - so be it.&lt;/p&gt;
+&lt;h3 id=&quot;a-look-at-the-new-world&quot;&gt;A Look at the &amp;#8220;New World&amp;#8221;&lt;/h3&gt;
+&lt;p&gt;Sometimes it is easier to visualize a concept instead of just discussing it. Below you can find an example of a &amp;#8220;converted&amp;#8221; website[^1] showcasing how sites would look and feel in this design-less reality:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Wealthsimple: &lt;a href=&quot;https://www.wealthsimple.com/en-ca/&quot;&gt;Current Website&lt;/a&gt; &amp;#47; &lt;a href=&quot;/etc/html-only/wealthsimple/&quot;&gt;New Version&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;As you can see, all the &lt;em&gt;fluff&lt;/em&gt; has been removed from the existing design and only the content remains. No scroll-jacking or extra JavaScript libraries are downloaded. Users can easily skim through all the content and screen readers won&amp;#8217;t struggle through any custom elements. It also loads incredibly fast.&lt;/p&gt;
+&lt;p&gt;Of course, to our[^2] eyes, this design might look ugly or seem as though the site&amp;#8217;s CSS failed to load - but in a reality where this is the standard, it is beautifully minimal. Either way, I find that this was at least a fun thought experiment and hopefully leaves you thinking about how the web &lt;em&gt;could have been&lt;/em&gt; as well.&lt;/p&gt;
+&lt;p&gt;Now, back to designing UIs for the web&amp;#8230;&lt;/p&gt;
&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;I keep an up-to-date document of all the open source software&amp;#47;communities I pay for on &lt;a href=&quot;/uses&quot;&gt;my &amp;#8220;Uses&amp;#8221; page&lt;/a&gt; for reference.&lt;/li&gt;
-&lt;li&gt;Put your pitchforks and torches away - I&amp;#8217;m aware that a web-facing UI exists on sourcehut as well!&lt;/li&gt;
+&lt;li&gt;Selected site based on my own personal preference&lt;/li&gt;
+&lt;li&gt;Referring to current users of the web&lt;/li&gt;
&lt;/ol&gt;</description>
- <link>https://btxx.org/srht2</link>
- <guid isPermaLink="false">https://btxx.org/srht2</guid>
- <pubDate>Mon, 14 Nov 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Never Do Spec Work for Free</title>
- <description>&lt;h1 id=&quot;never-do-spec-work-for-free&quot;&gt;Never Do Spec Work for Free&lt;/h1&gt;
-&lt;p&gt;2022-11-07&lt;/p&gt;
-&lt;p&gt;Your time is valuable and shouldn&amp;#8217;t be taken for granted. Let me say that again for the people in the back: &lt;em&gt;your time is valuable and shouldn&amp;#8217;t be taken for granted&lt;/em&gt;. Time is the most precious commodity we have as human beings, so never waste that time on free &amp;#8220;spec&amp;#8221; work. It&amp;#8217;s never worth it. Ever.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ve had up-and-coming designers reach out to me multiple times and ask specifically about completing spec work or &amp;#8220;challenges&amp;#8221; presented by hiring staff. My first question is normally, &amp;#8220;Are they paying you for it?&amp;#8221;. If the answer is no, then I tell these individuals to move on. The company and the role is not worth their time.&lt;/p&gt;
-&lt;p&gt;There are plenty of companies that respect the hiring process and will pay you for your time. Good on them. These are the places that you should be striving to work with&amp;#47;for. Avoid those who don&amp;#8217;t. If they don&amp;#8217;t respect your time before they even consider hiring you, what makes you think they&amp;#8217;ll respect it once you&amp;#8217;re on the team?&lt;/p&gt;
-&lt;h2 id=&quot;never&quot;&gt;Never?&lt;/h2&gt;
-&lt;p&gt;Never. If a company or individual is considering you for a role, so much so that they are interested in seeing how you would work with them directly, &lt;strong&gt;they need to pay you&lt;/strong&gt;. These companies (large or small) would &lt;em&gt;laugh&lt;/em&gt; at the concept of doing something free for you. Why is their time respected but yours isn&amp;#8217;t?&lt;/p&gt;
-&lt;h2 id=&quot;asking-for-free-spec-work-stop.&quot;&gt;Asking for Free Spec Work? Stop.&lt;/h2&gt;
-&lt;p&gt;If you&amp;#8217;re implementing these practices at your place of business, then you&amp;#8217;re part of the problem. Maybe you need a more robust candidate review process, so those interviewees you are willing to pay for &amp;#8220;code challenges&amp;#8221; or spec work are more finely tuned. Maybe you just need to re-evaluate how much you value the workers you&amp;#8217;re looking to hire.&lt;/p&gt;
-&lt;p&gt;The software world is a strange beast where we have adapted this &amp;#8220;work for free before we &lt;em&gt;think&lt;/em&gt; about paying you&amp;#8221;. Imagine implementing this system for something like a plumber?&lt;/p&gt;
-&lt;p&gt;&amp;#8220;Hey, could you install this new sink for me - for &lt;strong&gt;free&lt;/strong&gt;? Then, if I think you did a good job, I can start to pay you for other work around my house?&amp;#8221;&lt;/p&gt;
-&lt;p&gt;Good luck with that.&lt;/p&gt;
-&lt;h2 id=&quot;be-confident&quot;&gt;Be Confident&lt;/h2&gt;
-&lt;p&gt;This post is mostly targeted to new designers and developers, but can certainly still apply to those with years of experience under their belts. I&amp;#8217;ve been guilty of doing free spec work years ago when I was first starting out (my grey hairs are showing&amp;#8230;) and it &lt;strong&gt;never&lt;/strong&gt; paid off. Literally and figuratively. Learn through my own mistakes and just walk away from people asking you to work for free.&lt;/p&gt;
-&lt;p&gt;No matter what you think about your skill level or real-world experience, you need to have at least a bare-minimum standard for yourself: &lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Never work for free&lt;/strong&gt; &amp;#8211; Unless you &lt;em&gt;choose&lt;/em&gt; to work for free on something like a personal or open source project. That is obviously a different situation!&lt;/p&gt;</description>
- <link>https://btxx.org/spec</link>
- <guid isPermaLink="false">https://btxx.org/spec</guid>
- <pubDate>Mon, 07 Nov 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>SOMA Inspired Terminal Display with CSS</title>
- <description>&lt;h1 id=&quot;soma-inspired-terminal-display-with-css&quot;&gt;SOMA Inspired Terminal Display with CSS&lt;/h1&gt;
-&lt;p&gt;2021-05-29&lt;/p&gt;
-&lt;p&gt;A few years back I played (and loved) &lt;a href=&quot;https://store.steampowered.com/app/282140/SOMA/&quot;&gt;SOMA&lt;/a&gt;, a first-person sci-fi horror-adventure game. The story was intriguing and the developers nailed the overall atmosphere of Pathos-II. Though both those aspects were great, what I found the most enjoyable were the interactive computers and displays found sprinkled throughout the world.&lt;/p&gt;
-&lt;p&gt;Three years ago I wanted to see if I could recreate one of those terminal displays with HTML &amp;#38; CSS. And I did just that.&lt;/p&gt;
-&lt;p&gt;So, why am I writing about this &lt;em&gt;three years later&lt;/em&gt;? Well, I never did a proper write-up explaining how I achieved it. I&amp;#8217;m sure someone out there in the wild west of the web could get some value out of this tutorial, right? I hope so!&lt;/p&gt;
-&lt;h2 id=&quot;the-live-demo&quot;&gt;The Live Demo&lt;/h2&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/soma-terminal.png&quot; alt=&quot;Terminal based off the SOMA computers&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/ZEeLgmz&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+ <link>https://btxx.org/css-js-mistake</link>
+ <guid isPermaLink="false">https://btxx.org/css-js-mistake</guid>
+ <pubDate>Wed, 03 Nov 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>CSS Slope Graphs</title>
+ <description>&lt;h1 id=&quot;css-slope-graphs&quot;&gt;CSS Slope Graphs&lt;/h1&gt;
+&lt;p&gt;2021-06-07&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;I am a huge sucker for simplistic and beautifully designed visual data on the web&lt;/em&gt;. Most data tends to be graphed via line or bar systems - which is fine - but I think slope graphs are highly underrated. Let&amp;#8217;s change that, shall we?&lt;/p&gt;
+&lt;h2 id=&quot;the-demo&quot;&gt;The Demo&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;m basing this demo off the design patterns found in &lt;a href=&quot;https://www.edwardtufte.com/tufte/books_vdqi&quot;&gt;Edward Tufte&amp;#8217;s visualization work&lt;/a&gt;, specifically his slope graph designs:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/jOBzXMe&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;Nothing fancy going on here - just some simple &lt;code&gt;div&lt;/code&gt; elements holding a few paragraphs and spans:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;outer-frame&quot;&amp;#62;
- &amp;#60;div class=&quot;screen&quot;&amp;#62;
- &amp;#60;div class=&quot;screen-guts&quot;&amp;#62;
- &amp;#60;h2&amp;#62;Key Control&amp;#60;&amp;#47;h2&amp;#62;
- &amp;#60;p&amp;#62;&amp;#60;span&amp;#62;Panel Chip&amp;#60;&amp;#47;span&amp;#62; (Connector)&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p class=&quot;column&quot;&amp;#62;
- Security Keys: 023-027&amp;#60;br&amp;#62;C819738-23
- &amp;#60;br&amp;#62;
- &amp;#60;span class=&quot;error&quot;&amp;#62;Error: Key Expired&amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;br&amp;#62;
- &amp;#60;em&amp;#62;Please update...&amp;#60;&amp;#47;em&amp;#62;
- &amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p&amp;#62;
- &amp;#60;span&amp;#62;Permission&amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;br&amp;#62;
- Standard ThetaCipher
- &amp;#60;br&amp;#62;
- &amp;#60;span&amp;#62;Secop-Jstrohweier&amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;button class=&quot;update-button&quot;&amp;#62;Update Chip&amp;#60;&amp;#47;button&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;bottom-controls&quot;&amp;#62;
- &amp;#60;button class=&quot;back-button&quot;&amp;#62;Back 背部&amp;#60;&amp;#47;button&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
+&lt;p&gt;For this concept we will actually be building this graph out of &lt;code&gt;tables&lt;/code&gt; - crazy, right? The greatest benefit of rendering all the data inside of a &lt;code&gt;table&lt;/code&gt; element is the ability to easily support smaller screens and mobile devices. Larger viewports will get to see the pretty slope graph, while those below a certain threshold will view a simple table.&lt;/p&gt;
+&lt;p&gt;(But more on that in the CSS section)&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;p&amp;#62;Sales of the leading frozen pizza brands of the United States from 2011 to 2017 (in million US dollars) &amp;#60;br&amp;#62;&amp;#60;em&amp;#62;Source: Statisa 2018&amp;#60;&amp;#47;em&amp;#62;&amp;#60;&amp;#47;p&amp;#62;
+&amp;#60;table&amp;#62;
+ &amp;#60;thead&amp;#62;
+ &amp;#60;tr&amp;#62;
+ &amp;#60;th&amp;#62;Pizza Brand&amp;#60;&amp;#47;th&amp;#62;
+ &amp;#60;th&amp;#62;2011&amp;#60;&amp;#47;th&amp;#62;
+ &amp;#60;th&amp;#62;2017&amp;#60;&amp;#47;th&amp;#62;
+ &amp;#60;&amp;#47;tr&amp;#62;
+ &amp;#60;&amp;#47;thead&amp;#62;
+ &amp;#60;tbody&amp;#62;
+ &amp;#60;tr&amp;#62;
+ &amp;#60;td data-set=&quot;677.0&quot;&amp;#62;DiGiorno&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td&amp;#62;&amp;#60;span&amp;#62;677.0&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td data-name=&quot;DiGiorno&quot;&amp;#62;1014.6&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;&amp;#47;tr&amp;#62;
+ &amp;#60;tr&amp;#62;
+ &amp;#60;td data-set=&quot;294.8&quot;&amp;#62;Private Label&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td&amp;#62;&amp;#60;span&amp;#62;294.8&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td data-name=&quot;Private Label&quot;&amp;#62;524.8&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;&amp;#47;tr&amp;#62;
+ &amp;#60;tr&amp;#62;
+ &amp;#60;td data-set=&quot;286.1&quot;&amp;#62;Red Baron&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td&amp;#62;&amp;#60;span&amp;#62;286.1&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td data-name=&quot;Red Baron&quot;&amp;#62;572.3&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;&amp;#47;tr&amp;#62;
+ &amp;#60;tr&amp;#62;
+ &amp;#60;td data-set=&quot;257.9&quot;&amp;#62;Tombstone&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td&amp;#62;&amp;#60;span&amp;#62;257.9&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td data-name=&quot;Tombstone&quot;&amp;#62;270.6&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;&amp;#47;tr&amp;#62;
+ &amp;#60;tr&amp;#62;
+ &amp;#60;td data-set=&quot;164.5&quot;&amp;#62;Totino&amp;#39;s Party Pizza&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td&amp;#62;&amp;#60;span&amp;#62;164.5&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td data-name=&quot;Totino&amp;#39;s Party Pizza&quot;&amp;#62;347.2&amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;&amp;#47;tr&amp;#62;
+ &amp;#60;&amp;#47;tbody&amp;#62;
+&amp;#60;&amp;#47;table&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;As you can see, nothing too fancy is happpening here. Pay close attention to the &lt;code&gt;data-set&lt;/code&gt; and &lt;code&gt;data-name&lt;/code&gt; variables though - those will be important for the CSS portion of this design, mainly the rendering of the line elements.&lt;/p&gt;
&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;Let&amp;#8217;s just dump all the CSS right here (don&amp;#8217;t worry, it looks far more complicated than it really is):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@import url(&amp;#39;https:&amp;#47;&amp;#47;opentype.netlify.com&amp;#47;sansation&amp;#47;index.css&amp;#39;);
-
+&lt;p&gt;To avoid overwhelming your brain all-at-once, let&amp;#8217;s break the CSS down into bite-sized chunks, starting with the base styling:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@import url(&amp;#39;https:&amp;#47;&amp;#47;opentype.netlify.com&amp;#47;et-book&amp;#47;index.css&amp;#39;);
* {
box-sizing: border-box;
}
-body {
- background: #333;
- font-family: &quot;Sansation&quot;, sans-serif;
- padding: 3rem 0;
+html {
+ height: 100%;
}
-button {
- appearance: none;
- border: 0;
- cursor: pointer;
- font-family: &quot;Inconsolata&quot;, &quot;Consolas&quot;, mono;
- font-size: 18px;
- transition: 0.3s ease all;
+body {
+ background: #fffff8;
+ font-family: &quot;et-book&quot;, serif;
+ height: 100%;
+ margin: 0 auto;
+ max-width: 800px;
+ padding: 0 0.5rem;
}
-.outer-frame,
-.screen {
- display: block;
- margin: 0 auto;
- position: relative;
+p {
+ font-size: 18px;
+ margin: 4rem 0 6rem;
}
-.outer-frame {
- background: #ccc url(&quot;https:&amp;#47;&amp;#47;preview.ibb.co&amp;#47;iS9nz7&amp;#47;screen_grunge.webp&quot;) no-repeat center;
- background-size: cover;
- border-radius: 5px;
- box-shadow: 0 5px 20px rgba(0,0,0,0.6);
- height: 560px;
- width: 750px;
+table {
+ border-collapse: collapse;
+ text-align: left;
+ width: 100%;
}
-.outer-frame:before {
- background: rgba(0,0,0,0.3);
- border-radius: 5px;
- box-shadow: inset 5px 5px 10px rgba(0,0,0,0.4), 1px 1px 1px rgba(255,255,255,0.3);
- content: &amp;#39;&amp;#39;;
- height: 538px;
- left: 15px;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Pretty basic stuff.&lt;/p&gt;
+&lt;p&gt;Now we need to design how our slope graph will look on larger screens &amp;#47; desktops. For this instance, we will target these larger devices with a &lt;code&gt;min-width&lt;/code&gt; media query of &lt;code&gt;800px&lt;/code&gt;. The rest of the CSS might look a little confusing but I assure you it is quite simple.&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;p&gt;On larger devices we hide the first &lt;code&gt;thead tr th&lt;/code&gt; element with &lt;code&gt;display: none&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;The first and second &lt;code&gt;td&lt;/code&gt; elements inside each &lt;code&gt;tbody&lt;/code&gt; row need to be set as &lt;code&gt;position: absolute&lt;/code&gt; to avoid duplicate content&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;The inner &lt;code&gt;span&lt;/code&gt; that we include in our HTML inside the second &lt;code&gt;tbody tr td&lt;/code&gt; also needs to be &lt;code&gt;display: none&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Remember that &lt;code&gt;data-set&lt;/code&gt; variable? We now use that for our &lt;code&gt;:before&lt;/code&gt; pseudo element for &lt;code&gt;table tbody tr td:nth-of-type(1)&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Remember that &lt;code&gt;data-name&lt;/code&gt; variable? We now use that for our &lt;code&gt;:before&lt;/code&gt; pseudo element for &lt;code&gt;table tbody tr td:nth-of-type(3)&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;After that, you can see the simple customization we include to render the angle &amp;#47; position of the slope lines and the corresponding labels&lt;/p&gt;
+&lt;p&gt;@media(min-width:800px) {
+ table {
+ display: block;
+ position: relative;
+ margin-bottom: 25rem;
+ }&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;table thead th {
+ border-bottom: 1px solid lightgrey;
+ font-size: 24px;
position: absolute;
- top: 11px;
- width: 720px;
+ top: -50px;
+ width: 45%;
}
+table thead th:nth-child(1){ display: none; }
+table thead th:nth-child(2){ left: 0; }
+table thead th:nth-child(3){ right: 0; text-align: right; }
-.screen {
- background: #000 url(&quot;https:&amp;#47;&amp;#47;image.ibb.co&amp;#47;gOqSz7&amp;#47;screen_dust.webp&quot;) no-repeat center;
- background-size: cover;
- border-radius: 5px;
- height: 450px;
- left: 75px;
- padding: 60px;
- position: absolute;
- top: 55px;
- width: 600px;
+table tbody tr td:nth-of-type(1),
+table tbody tr td:nth-of-type(2) { position: absolute;}
+
+table tbody tr td:nth-of-type(2) span { display: none; }
+table tbody tr td:nth-of-type(1):before {
+ content: attr(data-set);
+ margin-right: 10px;
+ position: relative;
}
-.screen:after {
- background: url(&quot;https:&amp;#47;&amp;#47;s13.postimg.org&amp;#47;85ryuy1o7&amp;#47;dust.webp&quot;) no-repeat center;
- background-size: cover;
- border-radius: 5px;
- box-shadow: inset 0 0 20px rgba(0,0,0,0.5), inset 5px 5px 10px rgba(0,0,0,0.4), 1px 1px 1px rgba(255,255,255,0.3);
- content: &amp;#39;&amp;#39;;
- height: 100%;
- left: 0;
- opacity: 0.8;
- pointer-events: none;
+
+table tbody tr td:nth-of-type(2) { padding-left: 10px; }
+
+table tbody tr td:nth-of-type(3) {
position: absolute;
- top: 0;
- width: 100%;
- z-index: 2;
+ right: 0;
}
-
-.screen-guts {
- border-bottom: 2px solid #8fc8c8;
- border-top: 2px solid #8fc8c8;
- height: calc(100% - 50px);
+table tbody tr td:nth-of-type(3):before {
+ content: attr(data-name);
+ margin-right: 10px;
position: relative;
- width: 100%;
- z-index: 0;
}
-.screen-guts:after {
- border: 2px solid #8fc8c8;
- color: #8fc8c8;
- content: &amp;#39;键&amp;#39;;
- padding: 5px 8px;
+
+&amp;#47;* Custom individual slopes -- Left *&amp;#47;
+tbody tr:nth-child(1) td:nth-child(1),
+tbody tr:nth-child(1) td:nth-child(2) { top: 60px; }
+tbody tr:nth-child(2) td:nth-child(1),
+tbody tr:nth-child(2) td:nth-child(2) { top: 140px; }
+tbody tr:nth-child(3) td:nth-child(1),
+tbody tr:nth-child(3) td:nth-child(2) { top: 165px; }
+tbody tr:nth-child(4) td:nth-child(1),
+tbody tr:nth-child(4) td:nth-child(2) { top: 220px; }
+tbody tr:nth-child(5) td:nth-child(1),
+tbody tr:nth-child(5) td:nth-child(2) { top: 270px; }
+
+&amp;#47;* Custom individual slopes -- Right *&amp;#47;
+[data-name=&quot;DiGiorno&quot;] { top: 0; }
+[data-name=&quot;Red Baron&quot;] { top: 65px; }
+[data-name=&quot;Private Label&quot;] { top: 100px; }
+[data-name=&quot;Tombstone&quot;] { top: 180px; }
+[data-name=&quot;Totino&amp;#39;s Party Pizza&quot;] { top: 150px; }
+
+&amp;#47;* The custom visual lines *&amp;#47;
+tbody tr:after {
+ background: black;
+ content: &amp;#39;&amp;#39;;
+ height: 1px;
+ left: 14.5%;
position: absolute;
- right: 0;
- top: 5px;
+ width: 70%;
}
-.screen-guts h2 {
- background: #8fc8c8;
- color: #fff;
- display: inline-block;
- font-size: 24px;
- margin: 0 0 30px 0;
- padding: 10px;
+tbody tr:nth-child(1):after {
+ top: 40px;
+ transform: rotate(-6deg);
}
-.screen-guts p {
- color: #8fc8c8;
- font-size: 18px;
- margin: 0 0 30px 0;
+tbody tr:nth-child(2):after {
+ left: 17.5%;
+ top: 130px;
+ transform: rotate(-4deg);
+ width: 65%;
}
-.screen-guts p.column {
- column-width: 200px;
+tbody tr:nth-child(3):after {
+ left: 15%;
+ top: 125px;
+ transform: rotate(-10.25deg);
+ width: 70%;
}
-.screen-guts p span {
- text-transform: uppercase;
+tbody tr:nth-child(4):after {
+ left: 16%;
+ top: 210px;
+ transform: rotate(-4deg);
+ width: 68%;
}
-.screen-guts p span.error {
- color: #f37c56;
+tbody tr:nth-child(5):after {
+ left: 22%;
+ top: 222px;
+ transform: rotate(-16deg);
+ width: 56%;
}
-.screen-guts p span em {
- text-transform: none;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;}&lt;/p&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;All that&amp;#8217;s left are some minor styles to make everything look nice on mobile:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@media(max-width:800px) {
+ p {
+ margin: 2rem 0;
+ }
+ table td, table th {
+ border-bottom: 1px solid grey;
+ padding: 10px;
+ }
+ table td:last-of-type, table th:last-of-type {
+ text-align: right;
+ }
}
-.screen-guts button.update-button {
- background: #889314;
- bottom: 10px;
- color: #fff;
- padding: 15px 20px;
- position: absolute;
- right: 0;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;not-the-most-practical&quot;&gt;Not the most practical&lt;/h2&gt;
+&lt;p&gt;This slope graph concept is far from perfect for use in real-world situations. The fact that you need to manually render each point of data yourself makes this implementation quite annoying for more in-depth projects.&lt;/p&gt;
+&lt;p&gt;But it was fun to mess around with and create, so who cares!&lt;/p&gt;</description>
+ <link>https://btxx.org/css-slope-graphs</link>
+ <guid isPermaLink="false">https://btxx.org/css-slope-graphs</guid>
+ <pubDate>Mon, 07 Jun 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>CSS Variables</title>
+ <description>&lt;h1 id=&quot;css-variables&quot;&gt;CSS Variables&lt;/h1&gt;
+&lt;p&gt;2018-03-24&lt;/p&gt;
+&lt;p&gt;The CSS language is becoming even more awesome and powerful everyday. In this quick article I&amp;#8217;d like to focus specifically on the &amp;#8220;new&amp;#8221; CSS variable function that you can start using in your projects &lt;em&gt;right now&lt;/em&gt;.&lt;/p&gt;
+&lt;h3 id=&quot;getting-started-is-easy&quot;&gt;Getting started is easy&lt;/h3&gt;
+&lt;p&gt;Let&amp;#8217;s just jump right in - this is how you create variables in vanilla CSS:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;:root {
+ --base-color: #e0e0e0;
+ --text-color: #111;
}
-.screen-guts button.update-button:hover {
- background: #515905;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;We are using the &lt;code&gt;:root&lt;/code&gt; selector at the very top of our CSS file in order to call these variables into any elements in the rest of our document. This is normally the safest way to include variables.&lt;/p&gt;
+&lt;p&gt;As for the variables themselves, you declare that they are variables using the &lt;code&gt;--&lt;/code&gt; tags, followed by the variable&amp;#8217;s name and it&amp;#8217;s property. Pretty simple stuff, right?&lt;/p&gt;
+&lt;p&gt;Now let&amp;#8217;s use those variables:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.header {
+ border: 1px solid var(--base-color);
}
-.bottom-controls {
- background: #8fc8c8;
- border-radius: 0 0 5px 5px;
- bottom: 0;
- display: flex;
- left: 0;
- height: 50px;
- padding: 5px;
- position: absolute;
- width: 100%;
+.main-container {
+ background-color: var(--base-color);
+ color: var(--text-color);
}
-.bottom-controls button.back-button {
- background: rgba(0,0,0,0.2);
- color: #fff;
- line-height: 20px;
- padding: 8px 20px;
- text-transform: uppercase;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;That&amp;#8217;s it! It&amp;#8217;s also good to know that CSS variables have pretty decent &lt;a href=&quot;https://caniuse.com/#feat=css-variables&quot;&gt;browser support&lt;/a&gt; (who likes IE11 anyway).&lt;/p&gt;
+&lt;h3 id=&quot;why-not-just-use-a-preprocessor&quot;&gt;Why not just use a preprocessor?&lt;/h3&gt;
+&lt;p&gt;I&amp;#8217;m a pretty big fan of Sass and Stylus, but sometimes it&amp;#8217;s refreshing to just use vanilla CSS for certain projects. Most preprocessors have had the ability to use variables and mixins for a while, but I prefer to avoid build scripts when not absolutely necessary.&lt;/p&gt;
+&lt;p&gt;Get out there and have fun with some variables!&lt;/p&gt;</description>
+ <link>https://btxx.org/css-variables</link>
+ <guid isPermaLink="false">https://btxx.org/css-variables</guid>
+ <pubDate>Sat, 24 Mar 2018 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>CSS Video Backgrounds</title>
+ <description>&lt;h1 id=&quot;css-video-backgrounds&quot;&gt;CSS Video Backgrounds&lt;/h1&gt;
+&lt;p&gt;2018-04-16&lt;/p&gt;
+&lt;p&gt;With the release of Safari 11.1 on macOS and Safari on iOS 11.3, developers now have the ability to support background videos (mp4 support only - at the time of this article) with pure CSS.&lt;/p&gt;
+&lt;p&gt;Example:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.video-background {
+ background-image: url(&amp;#39;path-to-video.mp4);
}
-.bottom-controls button.back-button:hover {
- background: rgba(0,0,0,0.6);
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;see-it-in-action&quot;&gt;See it in action&lt;/h2&gt;
+&lt;p&gt;Check out the very basic CodePen I created below to see it live (make sure you view it in latest Safari or else you won&amp;#8217;t see anything :P)&lt;/p&gt;
+&lt;p&gt;CSS Video Background (Safari Only)&lt;/p&gt;
+&lt;p&gt;You can read up on all the new features implemented in 11.1 Safari here:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://webkit.org/blog/8216/new-webkit-features-in-safari-11-1/&quot;&gt;New WebKit Features in Safari 11.1&lt;/a&gt;&lt;/p&gt;</description>
+ <link>https://btxx.org/css-video-backgrounds</link>
+ <guid isPermaLink="false">https://btxx.org/css-video-backgrounds</guid>
+ <pubDate>Mon, 16 Apr 2018 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>CSS Value: `currentColor`</title>
+ <description>&lt;h1 id=&quot;css-value-&quot;&gt;CSS Value: &lt;code&gt;currentColor&lt;/code&gt;&lt;/h1&gt;
+&lt;p&gt;2019-04-13&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;There are a large number of nuanced and mostly unheard of&lt;/em&gt; CSS value types, but today we are going to focus on &lt;code&gt;currentColor&lt;/code&gt;. So what is the &lt;code&gt;currentColor&lt;/code&gt; value type anyway?&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;The currentColor value type will apply the existing color value to other properties like background-color, etc.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;h2 id=&quot;see-it-in-action&quot;&gt;See it in action&lt;/h2&gt;
+&lt;p&gt;Let&amp;#8217;s assume with have a single div with the following properties:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;div {
+ color: dodgerblue;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;The overall styling is fairly simple (which is great for browser support) with only a couple pseudo elements. It&amp;#8217;s important to include the custom &lt;code&gt;Sansation&lt;/code&gt; typeface, since this is what the game uses for most UI elements and terminals. (I&amp;#8217;m loading in this font via my &lt;a href=&quot;https://opentype.netlify.app&quot;&gt;OpenType side project&lt;/a&gt;)&lt;/p&gt;
-&lt;p&gt;The most important properties that truly bring this design together are those associated with the &lt;code&gt;.outer-frame&lt;/code&gt; and &lt;code&gt;.screen&lt;/code&gt; pseudo elements. Both of these elements use custom &lt;code&gt;background-images&lt;/code&gt; that give a little more depth and life to the terminal - in this case fingerprints, dust and smudges.&lt;/p&gt;
-&lt;p&gt;Feel free to swap these image textures out with your own and alter the terminal as you see fit!&lt;/p&gt;</description>
- <link>https://btxx.org/soma-terminal-css</link>
- <guid isPermaLink="false">https://btxx.org/soma-terminal-css</guid>
- <pubDate>Sat, 29 May 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Embracing Slow Tech</title>
- <description>&lt;h1 id=&quot;embracing-slow-tech&quot;&gt;Embracing Slow Tech&lt;/h1&gt;
-&lt;p&gt;2022-11-22&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m writing this post on my &amp;#8220;new&amp;#8221; X260 ThinkPad running &lt;a href=&quot;https://garudalinux.org/&quot;&gt;Garuda Linux&lt;/a&gt; through Wayland&amp;#47;Sway and it is going well so far. Setting things up was much easier than I initially expected. There were only a few minor tweaks I had to make, such as setting &lt;code&gt;vim&lt;/code&gt; as the default EDITOR and installing a small collection of applications (Bitwarden, qutebrowser etc).&lt;/p&gt;
-&lt;p&gt;I ran into some headaches with generating proper SSH keys but that was solved by calling in &lt;code&gt;ssh-agent&lt;/code&gt; whenever launching a new instance of Alacritty. This could certainly be cleaned up further, but for now everything works fine. (A more detailed post about this X260 is in the works!)&lt;/p&gt;
-&lt;p&gt;&amp;#8220;Okay&amp;#8221;, I hear you say, &amp;#8220;But what does this have to do with &lt;em&gt;slow tech&lt;/em&gt;?&amp;#8221;&lt;/p&gt;
-&lt;p&gt;Good question! Let me explain.&lt;/p&gt;
-&lt;h2 id=&quot;purposely-unplugged&quot;&gt;Purposely Unplugged&lt;/h2&gt;
-&lt;p&gt;For the longest time I have had some form of &amp;#8220;smart&amp;#8221; device on my persons while performing tasks away from my main computer. Whether that was grocery shopping, playing with the kids in the backyard, going on road trips - you name it. This was never a &lt;em&gt;bad thing&lt;/em&gt; or something I actively looked to change. In fact, I hardly used these devices to connect much to the internet anyway[^1]. But I did notice that I would check things like Mastodon or my email every so often. &lt;/p&gt;
-&lt;p&gt;What I started to realize was that I was checking these &amp;#8220;online&amp;#8221; items out of pure habit. I hardly ever responded to any email on my iPhone (it doesn&amp;#8217;t help that Apple Mail on iOS is horrendous for plain text emails) and engaging in Mastodon, while fun, was certainly not a priority while out of the office. My attitude towards being &amp;#8220;always online&amp;#8221; started to shift towards being what I call &lt;em&gt;purposely unplugged&lt;/em&gt;. I decided to make a personal change towards my online access:&lt;/p&gt;
+&lt;p&gt;If we wanted to use that same color for other properties on elements inside that initial &lt;code&gt;div&lt;/code&gt;, it&amp;#8217;s simple - we just need to call &lt;code&gt;currentColor&lt;/code&gt; like so:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;div {
+ color: dodgerblue;
+}
+
+div header {
+ background-color: currentColor;
+}
+
+div a {
+ border-bottom: 1px solid currentColor;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;&lt;strong&gt;Sidenote&lt;/strong&gt;: If you re-declare the default &lt;code&gt;color&lt;/code&gt; property further along in your CSS, the &lt;code&gt;currentColor&lt;/code&gt; value will update according to the last color set.&lt;/p&gt;
+&lt;p&gt;And that&amp;#8217;s it. Best of all, this value type is supported across all major browsers!&lt;/p&gt;</description>
+ <link>https://btxx.org/current-color</link>
+ <guid isPermaLink="false">https://btxx.org/current-color</guid>
+ <pubDate>Sat, 13 Apr 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Cut Your Forms in Half</title>
+ <description>&lt;h1 id=&quot;cut-your-forms-in-half&quot;&gt;Cut Your Forms in Half&lt;/h1&gt;
+&lt;p&gt;2019-05-09&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;Building web forms can sometimes feel like a boring or daunting task&lt;/em&gt;. Don&amp;#8217;t pass this dread on to your users - rip out as many of your form fields as possible.&lt;/p&gt;
+&lt;p&gt;Web forms tend to get a bad rep, mainly because so many horrible design choices are made without the user experience set at the forefront. Often times clients demand that they &lt;strong&gt;need&lt;/strong&gt; those twenty input fields or else how will they collect critical information from their users? Normally when I&amp;#8217;m approached with such a statement I simply ask them:&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;If something is important, then I will take the time to complete that task at &lt;strong&gt;my office computer&lt;/strong&gt;. I do not need to be &amp;#8220;always online&amp;#8221;.&lt;/p&gt;
+&lt;p&gt;&amp;#8220;How many form fields would you be willing to fill out for an emergency situation?&amp;#8221;&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;p&gt;It really makes you wonder how people back in the late 90s or early 2000s ever managed their lives without being connected online 24&amp;#47;7. I certainly remember a time where you booted up a family computer to browse the internet, respond to emails, and complete work items. When you were done - you were done. You shutdown the machine and went about your life. &amp;#8220;I&amp;#8217;ll check back later tonight before bed&amp;#8221; or &amp;#8220;Hopefully there will be an email response by tomorrow morning&amp;#8221; was the normal thought process after logging off. Now there is no &amp;#8220;logging off&amp;#8221;. It&amp;#8217;s just switching devices. I don&amp;#8217;t think it is healthy and really who benefits? Certainly not the individual.&lt;/p&gt;
-&lt;p&gt;Hardware (computers specifically in this case) serve a purpose. They are meant to serve the individual using them. When did we cross-over into a world where we seem to be serving our devices? &lt;strong&gt;You are not important enough to be &amp;#8220;available online&amp;#8221; all the time&lt;/strong&gt;. Sorry, but it&amp;#8217;s true.&lt;/p&gt;
-&lt;h2 id=&quot;mobile-sucks-anyway&quot;&gt;Mobile Sucks Anyway&lt;/h2&gt;
-&lt;p&gt;Browsing the web is an absolute shitshow on mobile devices. Every service and their grandma begs you to install their native app. Adblockers are pretty much non-existent, which makes the modern web almost intolerable to visit. Then you have the issue of walled gardens, security breaches, planned EOL for perfectly functional hardware, increased e-waste - the list goes on.&lt;/p&gt;
-&lt;p&gt;Functional computing and online interactions have already been perfected. It&amp;#8217;s called a &lt;strong&gt;computer&lt;/strong&gt;[^3]. Computers (desktops and laptops) give us the ability to control our devices at the OS-level, granting us incredible freedom to tweak things to our individual preferences. Unless you are technical enough to fiddle around with &amp;#8220;beta&amp;#8221; mobile Linux devices, the majority of users are stuck with what they are given. And it isn&amp;#8217;t much.&lt;/p&gt;
-&lt;p&gt;The corporate push to move everyone over to &amp;#8220;mobile computing&amp;#8221; is no accident. The ability to ban certain apps, push ads to users, collect customer details, and harvest user data is more than enough motivation for companies to usher in a future of &amp;#8220;mobile&amp;#8221; computing.&lt;/p&gt;
-&lt;p&gt;Not to mention &lt;em&gt;cost&lt;/em&gt;. New, top-of-the-line mobile devices sell for the same, if not more, than a standard laptop or desktop. You give up flexibility, customization and freedom for what exactly? A really good camera? Built-in GPS navigation?&lt;/p&gt;
-&lt;p&gt;Get a &lt;em&gt;real&lt;/em&gt; camera and grab a standard GPS. I&amp;#8217;m serious. If that sounds ridiculous than you probably never really needed those things in the first place. Use the proper tool for the job. Smushing everything into one, locked-down device is a recipe for disaster.&lt;/p&gt;
-&lt;p&gt;Overall - just use a &lt;em&gt;real&lt;/em&gt; computer.&lt;/p&gt;
-&lt;h2 id=&quot;dont-flip-out&quot;&gt;Don&amp;#8217;t Flip-Out&lt;/h2&gt;
-&lt;p&gt;So, with all of that in mind, I swapped out my iPhone SE (2020) smart phone for the ZTE Cymbal 2 &amp;#8220;dumb&amp;#8221; flip phone. &lt;/p&gt;
-&lt;p&gt;The screen is extremely small with low resolution. The camera is absolute garbage. Writing text messages requires use (and knowledge) of the T9 composer[^2]. Most modern applications besides email or the photo gallery are non-existent.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;But I absolutely love it&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;It&amp;#8217;s a phone. It makes phone calls and allows me to send texts. Texts themselves are a little more time consuming, which forces me to be more concise in my writing. Anything that requires great detail should probably be an email - which is what my computer is for. What else do I need? If I ever drop it and smash into a million pieces I can replace it for &amp;#60;$50. I have the ability to replace the battery - not to mention battery life is measured in &lt;em&gt;days&lt;/em&gt; not hours. It&amp;#8217;s rugged, so I don&amp;#8217;t need to be so delicate with it or slap some huge protective case on it.&lt;/p&gt;
-&lt;p&gt;It does its job. No more, no less.&lt;/p&gt;
-&lt;h2 id=&quot;good-for-you&quot;&gt;&amp;#8220;Good for You&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;I know that some of you reading this might think that this workflow is fine for &lt;em&gt;me&lt;/em&gt; but would never be suitable for your needs. Maybe that&amp;#8217;s true, but I&amp;#8217;d probably disagree. I think people have just been conditioned to &lt;em&gt;believe&lt;/em&gt; that most day-to-day activites would be impossible without a smart device or a connection to the internet. If not, many would at least feel that without such access things would become far too inconvenient. My stance remains: the majority of people do not need constant access to a computer in their pocket.&lt;/p&gt;
-&lt;p&gt;It&amp;#8217;s completely fine to enjoy your own setup and device preferences - I&amp;#8217;m not trying to convert anyone but instead just describing my own experiences. So please, keep your torches and pitchforks at home.&lt;/p&gt;
-&lt;p&gt;Thanks for reading.&lt;/p&gt;
+&lt;p&gt;&amp;#8220;My form isn&amp;#8217;t for emergencies though&amp;#8221;, they might reply. In that case ask them why they feel it acceptable to waste their users&amp;#8217; time just because it isn&amp;#8217;t urgent. Time is valuable.&lt;/p&gt;
+&lt;h2 id=&quot;fixing-a-form-in-the-wild&quot;&gt;Fixing a form in the wild&lt;/h2&gt;
+&lt;p&gt;Let&amp;#8217;s use a real-world form off the &lt;a href=&quot;https://www.greatwestlife.com&quot;&gt;Great West Life Insurance&lt;/a&gt; website as an example (left is original, right is updated):&lt;/p&gt;
+&lt;h3 id=&quot;breaking-things-down&quot;&gt;Breaking things down&lt;/h3&gt;
+&lt;p&gt;So what exactly have we changed?&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Combined first and last name fields into a single input&lt;/li&gt;
+&lt;li&gt;Removed the overkill &amp;#8220;retype&amp;#8221; email &amp;#38; password field (with the optional &lt;code&gt;show password&lt;/code&gt; this becomes redundant)&lt;/li&gt;
+&lt;li&gt;Minor position changes for optional subscription sign up and input field descriptions&lt;/li&gt;
+&lt;li&gt;Removed &lt;code&gt;recovery email&lt;/code&gt;
+&lt;ul&gt;
+&lt;li&gt;This is something that should be prompted to the user after successful registration - don&amp;#8217;t bog them down before they even sign up&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;helpful-micro-improvements&quot;&gt;Helpful Micro improvements&lt;/h2&gt;
+&lt;p&gt;You don&amp;#8217;t need to be extreme when gutting form fields - just be practical.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Don&amp;#8217;t use &amp;#8220;first&amp;#8221; and &amp;#8220;last&amp;#8221; names as separate inputs, instead use something like &amp;#8220;Full Name&amp;#8221;&lt;/li&gt;
+&lt;li&gt;Make complex questions use preset answers via &lt;code&gt;checkbox&lt;/code&gt; or &lt;code&gt;radio&lt;/code&gt; inputs&lt;/li&gt;
+&lt;li&gt;Avoid &lt;code&gt;select&lt;/code&gt; items whenever possible (these are clunky and most times unnecessary)&lt;/li&gt;
+&lt;li&gt;Include easy to understand, real-time error prompts&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;further-reading&quot;&gt;Further reading&lt;/h2&gt;
+&lt;ul&gt;
+&lt;li&gt;Great place to deep-dive into UX form design: &lt;a href=&quot;https://uxmovement.com/category/forms/&quot;&gt;UX Movement&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;</description>
+ <link>https://btxx.org/cut-your-forms-in-half</link>
+ <guid isPermaLink="false">https://btxx.org/cut-your-forms-in-half</guid>
+ <pubDate>Thu, 09 May 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>The Death of Personality</title>
+ <description>&lt;h1 id=&quot;the-death-of-personality&quot;&gt;The Death of Personality&lt;/h1&gt;
+&lt;p&gt;2017-11-01&lt;/p&gt;
+&lt;p&gt;On September 18, 2013 truly original product design (everything from icon and app design to UI and experience interactions) began it&amp;#8217;s fast decline into the abyss with the release of Apple&amp;#8217;s iOS 7 update. It was called revolutionary. It was seen as a &amp;#8216;new age&amp;#8217; of design. I think it was a big mistake.&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/flat-design-tombstone_cfkyrq_c_scale,w_700.webp&quot; alt=&quot;Flat design tombstone&quot; /&gt;&lt;/p&gt;
+&lt;h3 id=&quot;stepping-backwards&quot;&gt;Stepping backwards&lt;/h3&gt;
+&lt;p&gt;Let me start off by saying I understand where they were trying to take mobile app design as a whole. &amp;#8220;Less is more&amp;#8221;, &amp;#8220;cleaner UI to let the content be the focus&amp;#8221;, &amp;#8220;more touch based interactions&amp;#8221;. The problem is that they cranked the dial too far in the other direction.&lt;/p&gt;
+&lt;p&gt;Because of this, a large movement was created based around the idea that skeuomorphic design is garbage, flat design is the future. And everyone drank the kool-aid without a single objection.
+I&amp;#8217;m using this ironically.&lt;/p&gt;
+&lt;h3 id=&quot;icons-with-no-identity&quot;&gt;Icons with no identity&lt;/h3&gt;
+&lt;p&gt;Do you remember Instagram&amp;#8217;s original app icon and UI? Do you remember how everyone initially praised it? Show those old designs to the same designers who loved it only a few years ago, and they will now laugh at how &amp;#8220;bad&amp;#8221; it is.&lt;/p&gt;
+&lt;p&gt;Unfortunately the same can be said for Apple&amp;#8217;s system icons across both iOS and macOS.&lt;/p&gt;
+&lt;p&gt;I believe Apple took the concept of a &amp;#8216;consistent&amp;#8217; design system across their iconography too literally. All the system icons should compliment one another, but they shouldn&amp;#8217;t lose their own individual look and feel.&lt;/p&gt;
+&lt;h3 id=&quot;lackluster-ui&quot;&gt;Lackluster UI&lt;/h3&gt;
+&lt;p&gt;The once inspiring and hierarchically consistent interface of both iOS and macOS was also quickly swatted away. In it&amp;#8217;s place we as users saw the removal of depth, initial visual cues as to what was interactive and what was static, and sadly even the overall color was muted.&lt;/p&gt;
+&lt;h3 id=&quot;impact-on-the-web&quot;&gt;Impact on the web&lt;/h3&gt;
+&lt;p&gt;This may not have been a bad thing if it was self-contained to Apple itself. The problem is that Apple has such a huge influence on the design industry - although that is starting to diminish, due to disasters like the iPhone X - that everyone starts to mimic and copy their style. This includes designers of sites and progressive web apps.&lt;/p&gt;
+&lt;p&gt;With the evolution of websites morphing into progressive web apps, designers have felt the need to start implementing this bland style for their design systems.&lt;/p&gt;
+&lt;p&gt;What we got in return:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;washed out colors&lt;/li&gt;
+&lt;li&gt;zero gradients for depth&lt;/li&gt;
+&lt;li&gt;the removal of all drop shadows (in meaningful ways that is)&lt;/li&gt;
+&lt;li&gt;the same generic Helvetica-based typefaces&lt;/li&gt;
+&lt;li&gt;the absence of hover states on interactive elements&lt;/li&gt;
+&lt;li&gt;a lack of any proper information density&lt;/li&gt;
+&lt;li&gt;an overkill of whitespace&lt;/li&gt;
+&lt;li&gt;one dimensional buttons (you know, the thing you want the user to interact with)&lt;/li&gt;
+&lt;li&gt;a complete disregard for original design not based off every other popular product&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h3 id=&quot;breaking-free-of-the-modern-era&quot;&gt;Breaking free of the &amp;#8216;modern era&amp;#8217;&lt;/h3&gt;
+&lt;p&gt;Thankfully, there are still a few good designers who continue to create original and inspiring work not based solely on current trends.&lt;/p&gt;
+&lt;p&gt;Flexibits recently launched a new contact app for macOS called Cardhop. While the UI still shifts a little too far to the &amp;#8216;flat trend&amp;#8217; for my liking, they thankfully hired the very talented David Lanham to design the beautiful application icon.&lt;/p&gt;
+&lt;p&gt;This is where visual design shines. Icon designs like Cardhop&amp;#8217;s are what allow individual applications to stand out in the dock or mobile home-screen among all the others. So how is that not UX design?&lt;/p&gt;
+&lt;p&gt;The current trendy thought process from designers that &amp;#8220;visual design doesn&amp;#8217;t involve UX design&amp;#8221; is garbage. Neither are mutually exclusive and I think anyone who believes so is being incredibly short-sighted.&lt;/p&gt;
+&lt;p&gt;If you&amp;#8217;re a designer, please stop riding trends and make your work visually beautiful. That doesn&amp;#8217;t mean you need to sacrifice usability or function, but just put more love and confidence into your profession. Companies like Apple and Google don&amp;#8217;t control how everyone else&amp;#8217;s apps and sites should look, and based on their current design decisions - they shouldn&amp;#8217;t.&lt;/p&gt;</description>
+ <link>https://btxx.org/death-of-personality</link>
+ <guid isPermaLink="false">https://btxx.org/death-of-personality</guid>
+ <pubDate>Wed, 01 Nov 2017 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Very Basic Form Styling</title>
+ <description>&lt;h1 id=&quot;very-basic-form-styling&quot;&gt;Very Basic Form Styling&lt;/h1&gt;
+&lt;p&gt;2019-11-13&lt;/p&gt;
+&lt;p&gt;Web forms can be great - I&amp;#8217;m borderline obsessed with them. I love tinkering with pre-existing logins &amp;#47; sign up pages and I&amp;#8217;ve also open sourced a minimal CSS form-styling plugin: &lt;a href=&quot;https://normform.netlify.com/&quot;&gt;Normform&lt;/a&gt;. While simple CSS plugins like these can be helpful, I often feel like we are over-engineering our web forms. I&amp;#8217;m certainly guilty of it.&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s not to say developers should just use default browser styling for their forms and call it a day - that is far from ideal. Just pull-back on adding so much styling garbage to the forms themselves.&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s check out an embedded demo below to see what some bare-bones form styling could look like:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/oNwzvMa&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;This form isn&amp;#8217;t going to win any design awards or blow anyone away with its creativity. That&amp;#8217;s okay - because it gets the job done. Users understand it&amp;#8217;s a form and items are broken down into digestible chunks. Mission accomplished, right?&lt;/p&gt;
+&lt;h2 id=&quot;breaking-the-form-down&quot;&gt;Breaking the form down&lt;/h2&gt;
+&lt;p&gt;Let&amp;#8217;s take a look at the HTML of the entire form:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;form action=&quot;&quot;&amp;#62;
+ &amp;#60;fieldset&amp;#62;
+ &amp;#60;legend&amp;#62;Personal Details&amp;#60;&amp;#47;legend&amp;#62;
+ &amp;#60;label for=&quot;username&quot;&amp;#62;Desired Username:&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;input type=&quot;text&quot; id=&quot;username&quot;&amp;#62;
+ &amp;#60;label for=&quot;name&quot;&amp;#62;Full Name:&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;input type=&quot;text&quot; id=&quot;name&quot;&amp;#62;
+ &amp;#60;label for=&quot;email&quot;&amp;#62;Email Address:&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;input type=&quot;email&quot; id=&quot;email&quot;&amp;#62;
+ &amp;#60;label for=&quot;date&quot;&amp;#62;Date of Birth:&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;input type=&quot;date&quot; id=&quot;date&quot;&amp;#62;
+ &amp;#60;&amp;#47;fieldset&amp;#62;
+ &amp;#60;br&amp;#62;
+ &amp;#60;fieldset&amp;#62;
+ &amp;#60;legend&amp;#62;Contact Details&amp;#60;&amp;#47;legend&amp;#62;
+ &amp;#60;label for=&quot;address&quot;&amp;#62;Home Address:&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;input type=&quot;text&quot; id=&quot;address&quot;&amp;#62;
+ &amp;#60;label for=&quot;postal&quot;&amp;#62;Postal Code:&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;input type=&quot;text&quot; id=&quot;postal&quot;&amp;#62;
+ &amp;#60;label for=&quot;phone&quot;&amp;#62;Phone Number:&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;input type=&quot;tel&quot; id=&quot;phone&quot;&amp;#62;
+ &amp;#60;&amp;#47;fieldset&amp;#62;
+ &amp;#60;br&amp;#62;
+ &amp;#60;fieldset&amp;#62;
+ &amp;#60;legend&amp;#62;Select an Option&amp;#60;&amp;#47;legend&amp;#62;
+ &amp;#60;label for=&quot;radio-1&quot;&amp;#62;
+ &amp;#60;input type=&quot;radio&quot; id=&quot;radio-1&quot; name=&quot;radio-choice&quot;&amp;#62;
+ The option is pretty nice
+ &amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;label for=&quot;radio-2&quot;&amp;#62;
+ &amp;#60;input type=&quot;radio&quot; id=&quot;radio-2&quot; name=&quot;radio-choice&quot;&amp;#62;
+ This option is a little bit better
+ &amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;label for=&quot;radio-3&quot;&amp;#62;
+ &amp;#60;input type=&quot;radio&quot; id=&quot;radio-3&quot; name=&quot;radio-choice&quot;&amp;#62;
+ This option is the best
+ &amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;&amp;#47;fieldset&amp;#62;
+ &amp;#60;br&amp;#62;
+ &amp;#60;fieldset&amp;#62;
+ &amp;#60;legend&amp;#62;Notifications&amp;#60;&amp;#47;legend&amp;#62;
+ &amp;#60;label for=&quot;checkbox-1&quot;&amp;#62;
+ &amp;#60;input type=&quot;checkbox&quot; id=&quot;checkbox-1&quot;&amp;#62;
+ I would like to receive email notifications
+ &amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;label for=&quot;checkbox-2&quot;&amp;#62;
+ &amp;#60;input type=&quot;checkbox&quot; id=&quot;checkbox-2&quot;&amp;#62;
+ I would like to subscribe to the weekly newsletter
+ &amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;&amp;#47;fieldset&amp;#62;
+ &amp;#60;br&amp;#62;
+ &amp;#60;input type=&quot;reset&quot; value=&quot;Reset&quot;&amp;#62;
+ &amp;#60;input type=&quot;submit&quot; value=&quot;Submit&quot;&amp;#62;
+&amp;#60;&amp;#47;form&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Notice the &lt;code&gt;fieldset&lt;/code&gt; and &lt;code&gt;legend&lt;/code&gt; elements? I bet you don&amp;#8217;t see or hear about those HTML items very often. By default, &lt;code&gt;fieldset&lt;/code&gt; allows sibling or related inputs to be semantically grouped together. The &lt;code&gt;legend&lt;/code&gt; elements give the user great visual cues about which items are grouped together, helping to focus on each section individually as they complete the form. Use these grouping elements as much as possible (when it makes sense of course) for a better guided experience for your users. &lt;/p&gt;
+&lt;p&gt;Avoid making your own custom sections and instead use these existing HTML semantics.&lt;/p&gt;
+&lt;h2 id=&quot;almost-no-css-at-all&quot;&gt;Almost no CSS at all&lt;/h2&gt;
+&lt;p&gt;Now it&amp;#8217;s time to style this form with only 6 property declarations:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;form label {
+ display: block;
+}
+form input {
+ display: inline-block;
+ margin-bottom: 10px;
+ padding: 10px;
+ width: 100%;
+}
+form input[type=&quot;radio&quot;],
+form input[type=&quot;checkbox&quot;],
+form input[type=&quot;reset&quot;],
+form input[type=&quot;submit&quot;] {
+ width: auto;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Of course, you can always add minor adjustments (like in my demo example above)&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Legend typeface and sizing&lt;/li&gt;
+&lt;li&gt;Form and fieldset background colors&lt;/li&gt;
+&lt;li&gt;Extra margin and padding&lt;/li&gt;
+&lt;li&gt;Custom reset &amp;#47; submit buttons&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;But the main point of this post is to showcase how little CSS is needed to implement decent web forms - so any further improvements are up to you, dear reader. &lt;/p&gt;
+&lt;p&gt;Just try not to reinvent the wheel.&lt;/p&gt;
+&lt;h2 id=&quot;final-rant---dont-ignore-the-reset&quot;&gt;Final rant - don&amp;#8217;t ignore the reset&lt;/h2&gt;
+&lt;p&gt;A lot of &amp;#8220;modern&amp;#8221; web forms have moved away from including the reset input on their forms, which I think is fairly short-sighted. Resetting all form fields might be a smaller edge case, but it is certainly a better option than relying on the user to refresh or in some cases, individually deleting each input. Yikes.&lt;/p&gt;
+&lt;p&gt;Happy form building!&lt;/p&gt;</description>
+ <link>https://btxx.org/default-brower-forms</link>
+ <guid isPermaLink="false">https://btxx.org/default-brower-forms</guid>
+ <pubDate>Wed, 13 Nov 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Modern Improvements for Default Browser Styles</title>
+ <description>&lt;h1 id=&quot;modern-improvements-for-default-browser-styles&quot;&gt;Modern Improvements for Default Browser Styles&lt;/h1&gt;
+&lt;p&gt;2021-11-09&lt;/p&gt;
+&lt;p&gt;This website &lt;em&gt;almost&lt;/em&gt; exclusively uses the browser&amp;#8217;s (whichever one that might be) default styling to render it&amp;#8217;s HTML. I firmly believe, and have &lt;a href=&quot;/css-js-mistake/&quot;&gt;stated in a previous post&lt;/a&gt;, that the default HTML styling across all browsers is a thing of beauty. &amp;#8220;Consistent and boring&amp;#8221; is how I tend to refer to default browser styles - and I mean that in a &lt;em&gt;good way&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;But that doesn&amp;#8217;t mean some minor, modern improvements couldn&amp;#8217;t be made&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;boosting-margins-and-increasing-font-size&quot;&gt;Boosting Margins and Increasing Font Size&lt;/h2&gt;
+&lt;p&gt;A little extra breathing room for a website&amp;#8217;s content never hurts. Browser defaults set the inner content too close to the main window borders, creating mild eye strain to focus on the far edges of the screen when reading. Pair this with a typeface set too small and you&amp;#8217;ve got a recipe for disaster (in terms of user experience and accessibility). Luckily for us, adding two basic CSS properties fixes all of our readability woes. All that is required is a simple boost to the existing &lt;code&gt;margin&lt;/code&gt; property set on the &lt;code&gt;body&lt;/code&gt; element (I personally lean towards a very specific &lt;code&gt;1.5em&lt;/code&gt;) and overriding the default &lt;code&gt;font-size&lt;/code&gt; to &lt;code&gt;18px&lt;/code&gt;[^1]:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;body {
+ font-size:18px;
+ margin:1.5em;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;There is one &lt;em&gt;small&lt;/em&gt; caveat with setting the &lt;code&gt;font-size&lt;/code&gt; across the whole &lt;code&gt;body&lt;/code&gt; element: code elements set in &lt;code&gt;monospace&lt;/code&gt;. They will stand out larger than the other fonts found in the document (due to variations in different typeface heights, spacing etc.) so we will need to target these elements specifically:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;code {
+ font-size:14px;
+ &amp;#47;* Word wrap is optional if you plan to have long inline code snippets *&amp;#47;
+ word-wrap:break-word;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;code-pre-tags&quot;&gt;Code &amp;#38; Pre Tags&lt;/h2&gt;
+&lt;p&gt;Since we&amp;#8217;ve mentioned &lt;code&gt;code&lt;/code&gt; elements, let&amp;#8217;s fix those as well. The existing styling for inline code snippets and larger pre-formatted text sections leave a lot to be desired. They don&amp;#8217;t provide any means to wrap their inner content or make use of &lt;code&gt;overflow&lt;/code&gt; properties to avoid vertically scrolling on smaller device screens. Sharing code examples becomes quite a pain when your webpage&amp;#8217;s flow and layout is broken just by including them. Browsers could fix this easily enough by defaulting to:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;pre {
+ overflow:auto;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;basic-dark-mode-support&quot;&gt;Basic Dark Mode Support&lt;/h2&gt;
+&lt;p&gt;Barebones styling in current web browsers have no sane defaults[^2] for system-level dark mode. What a huge letdown. This is where the most &amp;#8220;drastic&amp;#8221; changes will be implemented with our browser default updates. We will need the browser to change the main &lt;code&gt;background-color&lt;/code&gt;, along with resetting both the text and anchor link &lt;code&gt;color&lt;/code&gt; for improved accessibility. Browser defaults for anchor link color in &amp;#8220;light mode&amp;#8221; are blue&amp;#47;purple - so I&amp;#8217;ve opted towards using gold, orange and orangered in dark mode respectively:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Dark mode *&amp;#47;
+@media (prefers-color-scheme: dark) {
+ @media not print {
+ html {background:#0e0e0e;color:#e1e1e1; }
+ a {color: gold;}
+ a:visited {color: orange;}
+ a:hover,a:focus{color: orangered;}
+ }
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;That is probably the most streamlined dark mode on the web&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;the-reading-length-debate&quot;&gt;The &amp;#8220;Reading Length&amp;#8221; Debate&lt;/h2&gt;
+&lt;p&gt;Proper reading length tends to be quite the point of contention on the web. Hell, even I&amp;#8217;ve &lt;a href=&quot;/character-unit/&quot;&gt;written about it quite a bit&lt;/a&gt; in the past (and many of my side projects follow that standard). The main problem I have with this is lack of &lt;em&gt;user control&lt;/em&gt;. I don&amp;#8217;t think the browser (or designers for that matter) should determine the best reading length for my own personal reading preferences. UX testing and group feedback has (somewhat) agreed upon 66-75 characters per line to be the most optimal reading experience. That is good to know. I &lt;em&gt;still&lt;/em&gt; believe it should come down to user preference.&lt;/p&gt;
+&lt;p&gt;Do you want to know an incredible feature built into browsers? &lt;em&gt;Window resizing&lt;/em&gt;. Abandon the idea that you &amp;#8220;know better&amp;#8221; than your users and give them the power to adjust as they see fit. The web was meant to be personal and flexible.&lt;/p&gt;
+&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
+&lt;p&gt;There isn&amp;#8217;t much else to say, really. I think these tiny tweaks would greatly improve the default browser experience and maybe even convince others to just &lt;em&gt;use&lt;/em&gt; these defaults instead of falling down the CSS rabbit hole (as fun as that might be sometimes). For easier convenience, I&amp;#8217;ll leave the full set of CSS changes below:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;body {
+ font-size:18px;
+ margin:1.5em;
+}
+code {
+ font-size:14px;
+}
+pre {
+ overflow:auto;
+}
+@media (prefers-color-scheme: dark) {
+ @media not print {
+ html {background:#0e0e0e;color:#e1e1e1; }
+ a {color: gold;}
+ a:visited {color: orange;}
+ a:hover,a:focus{color: orangered;}
+ }
+}
+&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;It helps that I have pretty much zero active accounts across most &amp;#8220;popular&amp;#8221; social media platforms.&lt;/li&gt;
-&lt;li&gt;Some of you readers might not have ever experienced the wonders of T9&amp;#8230;&lt;/li&gt;
-&lt;li&gt;I understand that even smart phones can be classified as &amp;#8220;computers&amp;#8221;. I am using this term in the classical sense.&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;18px&lt;/code&gt; seems to be the perfect sweet spot between &amp;#8220;almost too large, yet not small enough to strain my eyes&amp;#8221;&lt;/li&gt;
+&lt;li&gt;At the time of this article&amp;#8217;s publish date&lt;/li&gt;
&lt;/ol&gt;</description>
- <link>https://btxx.org/slow</link>
- <guid isPermaLink="false">https://btxx.org/slow</guid>
- <pubDate>Tue, 22 Nov 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Converting My X201 ThinkPad into a Slabtop</title>
- <description>&lt;h1 id=&quot;converting-my-x201-thinkpad-into-a-slabtop&quot;&gt;Converting My X201 ThinkPad into a Slabtop&lt;/h1&gt;
-&lt;p&gt;2023-05-01&lt;/p&gt;
-&lt;p&gt;I recently wrote &lt;a href=&quot;/x201/&quot;&gt;about physically disabling the WiFi toggle switch on my X201&lt;/a&gt; which was a fun &amp;#8220;hack&amp;#8221; to an annoying issue I was running into. Since then, the laptop has been running flawlessly.&lt;/p&gt;
-&lt;p&gt;The only other &lt;em&gt;minor&lt;/em&gt; issue I had was the poor display quality. The screen works perfectly fine but the X201&amp;#8217;s age prevents it from being the best possible display for day-to-day tasks. Both the resolution and viewing angles are quite poor.&lt;/p&gt;
-&lt;p&gt;So, what were my options to remedy this problem?&lt;/p&gt;
+ <link>https://btxx.org/default-html-style-updates</link>
+ <guid isPermaLink="false">https://btxx.org/default-html-style-updates</guid>
+ <pubDate>Tue, 09 Nov 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Unsolicited Design Review - Dropbox</title>
+ <description>&lt;h1 id=&quot;unsolicited-design-review---dropbox&quot;&gt;Unsolicited Design Review - Dropbox&lt;/h1&gt;
+&lt;p&gt;2017-10-10&lt;/p&gt;
+&lt;p&gt;Earlier last week the design team at Dropbox unveiled their new branding &amp;#47; design system for the company as a whole. If you haven&amp;#8217;t seen the updated design yet, you can do so here: &lt;a href=&quot;https://dropbox.design/&quot;&gt;dropbox.design&lt;/a&gt; (Take your time, I can wait).&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/dropbox-logo_djnecj_c_scale,w_1400.webp&quot; alt=&quot;Dropbox Logo&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;I won&amp;#8217;t mince words when I say I believe this is a huge step backwards for their brand. Not only is it uninspired and broken, but it also shows how our industry is plagued with a need to redesign things just for the sake of redesigning them.&lt;/p&gt;
+&lt;p&gt;So without anymore fluff - let&amp;#8217;s get into it. Please leave your bias at the door.&lt;/p&gt;
+&lt;h2 id=&quot;purpose&quot;&gt;Purpose&lt;/h2&gt;
+&lt;p&gt;It&amp;#8217;s good to try and understand the motive or problem that a company is trying to solve when redesigning something as fundamental as core branding, but this is where the first red flag appears for Dropbox. There is no real problem to solve.&lt;/p&gt;
+&lt;p&gt;On the marketing site promoting the new design system, the Dropbox team doesn&amp;#8217;t mention a single problem that this branding redesign is meant to fix. Were users confused by the previous system? Is there data showing large drop-off and a lack of conversion directly connected with the design system itself? All they state is they needed a change with zero reasoning as to why.&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;We realized our brand needs to change&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;As I stated at the beginning of this review - it&amp;#8217;s a redesign for the sake of a redesign. Sometimes this can be acceptable if done correctly, but this is not the case for Dropbox.&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;Our new brand system shows that Dropbox isn&amp;#8217;t just a place to store your files - &lt;strong&gt;it&amp;#8217;s a living workspace that brings teams and ideas together&lt;/strong&gt;&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;Let&amp;#8217;s stop right there. &amp;#8220;A place to store your files&amp;#8221; is literally 99% of what Dropbox does. I get that they want to be involved in more than that but Dropbox &lt;em&gt;is&lt;/em&gt; a cloud storage service. Why is there a desperate need to shift away from that?&lt;/p&gt;
+&lt;p&gt;There isn&amp;#8217;t much else to speak of in terms of &amp;#8216;purpose&amp;#8217; regarding the redesign since there doesn&amp;#8217;t seem to be one. Let&amp;#8217;s move on.&lt;/p&gt;
+&lt;h2 id=&quot;design-principles&quot;&gt;Design Principles&lt;/h2&gt;
+&lt;p&gt;I hate to be that guy who bases design on a written list of principles, but when it works it works. Dieter Rams states it best:&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;Swap out and upgrade the laptop&amp;#8217;s display (not many options for this though)&lt;/li&gt;
-&lt;li&gt;Connect an external display, keyboard, mouse and dock the X201&lt;/li&gt;
-&lt;li&gt;Something else?&lt;/li&gt;
+&lt;li&gt;Good design is innovative&lt;/li&gt;
+&lt;li&gt;Good design makes a product useful&lt;/li&gt;
+&lt;li&gt;Good design is aesthetic&lt;/li&gt;
+&lt;li&gt;Good design makes a product understandable&lt;/li&gt;
+&lt;li&gt;Good design is unobtrusive&lt;/li&gt;
+&lt;li&gt;Good design is honest&lt;/li&gt;
+&lt;li&gt;Good design is long-lasting&lt;/li&gt;
+&lt;li&gt;Good design is thorough down to the last detail&lt;/li&gt;
+&lt;li&gt;Good design is environmentally friendly&lt;/li&gt;
+&lt;li&gt;Good design is as little design as possible&lt;/li&gt;
&lt;/ol&gt;
-&lt;h2 id=&quot;looking-into-something-else&quot;&gt;Looking into &amp;#8220;Something Else&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;I found that the possible replacement screens weren&amp;#8217;t worth the cost&amp;#47;hassle to swap out. And setting the laptop aside, docked with external peripherals sounded fine in theory - but then I would be missing out on the X201&amp;#8217;s amazing classic keyboard&amp;#8230;&lt;/p&gt;
-&lt;p&gt;Then I thought to myself, &amp;#8220;Why not just remove the display &lt;em&gt;entirely&lt;/em&gt;?&amp;#8221;&lt;/p&gt;
-&lt;p&gt;So that&amp;#8217;s what I did.&lt;/p&gt;
-&lt;p&gt;Removing the entire top lid was easier than I initially thought it would be. The beautiful thing about these older, classic ThinkPads is the ability to completely dissemble them. I won&amp;#8217;t go into heavy details on how to take one of these machines apart, since great documentation &lt;a href=&quot;https://www.ifixit.com/Device/Lenovo_Thinkpad_X201_Tablet&quot;&gt;already exists&lt;/a&gt;. But once you have the keyboard and hinge screws removed it is essentially as easy as &lt;em&gt;lifting&lt;/em&gt; the lid out of the chassis. (After disconnecting the small display connectors, of course)&lt;/p&gt;
-&lt;h2 id=&quot;ditching-alpine-for-debian&quot;&gt;Ditching Alpine for Debian&lt;/h2&gt;
-&lt;p&gt;I love Alpine Linux. It&amp;#8217;s normally my &lt;a href=&quot;https://as.bt.ht&quot;&gt;go-to distro&lt;/a&gt; (paired with dwm) for most of my laptop devices. Unfortunately, I find tiling window managers a slight pain to use on larger, 4K displays. I also wanted this slabtop to &amp;#8220;just work&amp;#8221;, instead of needing to fiddle around with WiFi, &lt;code&gt;xrandr&lt;/code&gt;, audio etc. Not to mention that Debian is rock solid stable. Defaulting to the XFCE DE was a no-brainer as well since this device is somewhat &lt;em&gt;old&lt;/em&gt;.&lt;/p&gt;
+&lt;hr/&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is innovative&lt;/strong&gt;. There is zero innovation in this re-brand, it&amp;#8217;s simply following the trend of quirky &amp;#47; brutal &amp;#47; modern flat elitism that is currently sweeping the industry. It&amp;#8217;s a fad and will be out-of-date rather quickly.&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design makes a product useful&lt;/strong&gt;. Looking through their reasoning and explanations I can see no boost or improvement to the usefulness of the product. Not to repeat myself, but without any supporting data as to &lt;em&gt;why&lt;/em&gt; this change was made we have nothing to base it off of.&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is aesthetic&lt;/strong&gt;. See #1.&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design makes a product understandable&lt;/strong&gt;. Were customers not able to understand the Dropbox brand prior to this update? Were users misinformed about what the product could do for them? The previous design did a wonderful job of getting out of the way and showing the user exactly what they needed &amp;#47; wanted.&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is unobtrusive&lt;/strong&gt;. Talk about going backwards on this one. Original system was clean, readable and friendly to new users. Their current system uses an illegible typeface, colors with terrible contrast and a lack of support for the visually impaired, crude illustrations that give no explanation as to what they represent (more on that later), and a lack of browser support &amp;#47; performance issues.&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is honest&lt;/strong&gt;. Dropbox still maintains this principle. They don&amp;#8217;t over-promise or outright lie about who and what they are as a product.&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is long-lasting&lt;/strong&gt;. See #1 &amp;#38; #3 again.&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is thorough down to the last detail&lt;/strong&gt;. The fact that even their marketing site crashes latest Firefox, lags on Safari for iOS and stutters in Chrome on desktop shows the lack of performance testing that was done. Not to mention the complete disregard for those with visual impairments with their color palette, typeface and contrast selections.&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is environmentally friendly&lt;/strong&gt;. Doesn&amp;#8217;t really apply here.&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is as little design as possible&lt;/strong&gt;. This new brand system is incredibly over-designed.&lt;/p&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;blockquote&gt;
+&lt;p&gt;Our users&amp;#8230;tell us they feel overwhelmed and distracted during the workday&amp;#8230;we want to change this, by building products and a brand that help people focus on meaningful work, instead of busywork.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;Then maybe your design system should get out of the way. To me, this seems like you want your design to take center-stage over the user&amp;#8217;s content.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Remember: a great design system should go completely unnoticed.&lt;/strong&gt;&lt;/p&gt;
+&lt;h2 id=&quot;accessibility&quot;&gt;Accessibility&lt;/h2&gt;
+&lt;p&gt;Any persons with visual impairments need not apply. This design system is not built for you - seek shelter elsewhere.&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;With 259 fonts, our new typeface Sharp Grotesk gives us lots of versatility, allowing us to &amp;#8220;speak&amp;#8221; in a variety of tones.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/dropbox-fonts_vthivw_c_scale,w_1122.webp&quot; alt=&quot;DropBox fonts&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;Not a single one of these typeface styles is initially readable&amp;#8230;&lt;/p&gt;
+&lt;p&gt;The typeface they have chosen looks terrible at any view-port size and readability takes a backseat. I can&amp;#8217;t help but feel this falls into the &amp;#8220;let&amp;#8217;s be trendy&amp;#8221; category and ends up sacrificing almost all good usability practices for gimmicky type.&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;Our users run the gamut from business professionals to scientists and creative types. Most of these folks tell us they feel overwhelmed and distracted during the workday, and that this is one of the biggest barriers to creating work they’re proud of.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;Irony at it&amp;#8217;s finest. &amp;#8220;Our users tell us that they hate being distracted and overwhelmed, so we&amp;#8217;ve decided to use headache inducing color palettes, crude illustrations, a barely legible typeface, and some of the most visually loud photography throughout our system&amp;#8221;. I hate coming off as mean-spirited - but this is some elaborate joke, right?&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/dropbox-logos-color_fcogaj_c_scale,w_1400.webp&quot; alt=&quot;DropBox color logos&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;After running it through a color contrast accessibility checker:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/dropbox-contrast_plkfxb_c_scale,w_1400.webp&quot; alt=&quot;DropBox contrast&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;Multiple accessibility failures&amp;#8230;&lt;/p&gt;
+&lt;p&gt;Next we have the child-like &amp;#8216;scribble&amp;#8217; illustrations. Now don&amp;#8217;t get me wrong, I love seeing different illustration styles and I actively use &amp;#8216;sketch &amp;#47; scribble&amp;#8217; artwork myself, but I don&amp;#8217;t believe this is the best fit for a brand like Dropbox. These cartoon visuals conflict with the business enterprise service Dropbox should be trying to convey.&lt;/p&gt;
+&lt;p&gt;Another issue with these illustrations is their usage. Look at the image below and ask yourself if you would correlate it with an error page if no accompanying text was present.&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/dropbox-404_bovayg_c_scale,w_758.webp&quot; alt=&quot;DropBox 404 page design&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;What does this have to do with a 404 error page?&lt;/p&gt;
&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
-&lt;p&gt;This slabtop gives me those old-school &amp;#8220;Commodore64&amp;#8221; vibes (or more recent devices like the Raspberry Pi 400). This setup certainly isn&amp;#8217;t for everyone but for my use case it&amp;#8217;s working well. Traveling with a machine like this might prove a little more challenging - although you could simply pair it with a smaller travel monitor (I&amp;#8217;m sure the overall carrying weight would be similar to the standard X201).&lt;/p&gt;
-&lt;p&gt;If nothing else, it is good to keep this option in mind if you ever break your laptop&amp;#8217;s display and don&amp;#8217;t feel like spending the money to fix it. Just grab an external monitor you have laying around and make a slabtop!&lt;/p&gt;</description>
- <link>https://btxx.org/slabtop</link>
- <guid isPermaLink="false">https://btxx.org/slabtop</guid>
- <pubDate>Mon, 01 May 2023 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Skip to Content Button</title>
- <description>&lt;h1 id=&quot;skip-to-content-button&quot;&gt;Skip to Content Button&lt;/h1&gt;
-&lt;p&gt;2019-03-25&lt;/p&gt;
-&lt;p&gt;One of the golden rules for testing your website&amp;#8217;s accessibility is the &amp;#8220;keyboard-only&amp;#8221; audit. This is where you test navigating through your entire site without the use of a mouse, but instead rely solely on tabbing through your content.&lt;/p&gt;
-&lt;p&gt;Unfortunately, one item is normally overlooked during this audit - a &amp;#8220;skip to content&amp;#8221; context button. Including a &amp;#8220;skip to content&amp;#8221; navigation item in your project is extremely useful because:&lt;/p&gt;
+&lt;p&gt;I could go into even deeper analysis (including the oversimplification of their box logo, etc.) but I believe I&amp;#8217;ve spent enough time defending my initial reaction as well as my thoughts after a week of soak time. In my opinion this redesign was completely unnecessary. I think this was a problem of too many designers with too much time without a proper project to channel all that talent.&lt;/p&gt;
+&lt;p&gt;Unfortunately because they decided to just follow the current trend and design with a lack of purpose, I see Dropbox launching another redesign within the next year once this current design fad dies. My only hope is that the next brand system sets out to solve an actual problem, instead of just trying to be trendy.&lt;/p&gt;</description>
+ <link>https://btxx.org/design-review-dropbox</link>
+ <guid isPermaLink="false">https://btxx.org/design-review-dropbox</guid>
+ <pubDate>Tue, 10 Oct 2017 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Disabling Comments in WordPress</title>
+ <description>&lt;h1 id=&quot;disabling-comments-in-wordpress&quot;&gt;Disabling Comments in WordPress&lt;/h1&gt;
+&lt;p&gt;2020-12-28&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;I seem to come across a decent amount of clients&lt;/em&gt; and users online that have a difficult time knowing how to disable comments for both future &lt;em&gt;and&lt;/em&gt; previous blog posts. It isn’t the easiest for both use cases, so let’s break it down.&lt;/p&gt;
+&lt;h2 id=&quot;back-to-the-future&quot;&gt;Back to the future&lt;/h2&gt;
+&lt;p&gt;Disabling comments on all &lt;em&gt;future&lt;/em&gt; blog posts is fairly straightforward:&lt;/p&gt;
+&lt;h2 id=&quot;but-what-about-old-posts&quot;&gt;But what about old posts?&lt;/h2&gt;
+&lt;p&gt;Have no fear - “Bulk Actions” are here to save the day! In order to retroactively disable comments on older posts, do the following:&lt;/p&gt;
+&lt;p&gt;I hope this article saves others any headaches in the future. WordPress itself could certainly make this more streamlined, but for now what we have works. Happy (not) commenting!&lt;/p&gt;</description>
+ <link>https://btxx.org/disabling-comments-in-wordpress</link>
+ <guid isPermaLink="false">https://btxx.org/disabling-comments-in-wordpress</guid>
+ <pubDate>Mon, 28 Dec 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Designers Need Thicker Skin</title>
+ <description>&lt;h1 id=&quot;designers-need-thicker-skin&quot;&gt;Designers Need Thicker Skin&lt;/h1&gt;
+&lt;p&gt;2017-07-10&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m not normally one to comment or even really care about &amp;#8220;drama&amp;#8221; within our design industry. Opinions are just that and should just be consumed at face value. But this week I was moderately annoyed with a subset of designers in design-land.&lt;/p&gt;
+&lt;h3 id=&quot;critique-the-critics&quot;&gt;Critique the critics&lt;/h3&gt;
+&lt;p&gt;Designer&amp;#47;design critic Eli Schiff tweeted his thoughts about the newly released promo video from Framer showcasing their new gradient feature. See the initial tweet below:&lt;/p&gt;
+&lt;p&gt;Let me begin by saying my views on this comment: I don&amp;#8217;t care. I honestly don’t feel strongly one way or the other about them making a video promo for gradients. Could it have just been a simple text tweet? Sure. Does it really matter that they decided to make a video for it? Not at all.&lt;/p&gt;
+&lt;p&gt;But this isn’t the problem.&lt;/p&gt;
+&lt;p&gt;Other designers took to Twitter and started attacking Eli, not even as a design critic but as a person. This was ugly to see. What happened to civil discussion and giving the other side a chance to say their piece? Calling to &amp;#8220;ban him&amp;#8221; from sites such as DesignerNews or suggesting to unfollow him on Twitter is unbelievably childish - in an industry that we tote as &amp;#8220;accepting of everyone&amp;#8221; no less.&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s all I&amp;#8217;m going to say because I don’t want to spend too much time on this foolishness, but honestly designers - get some thicker skin.&lt;/p&gt;
+&lt;p&gt;Yeesh.&lt;/p&gt;</description>
+ <link>https://btxx.org/dts</link>
+ <guid isPermaLink="false">https://btxx.org/dts</guid>
+ <pubDate>Mon, 10 Jul 2017 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Two Weeks with the DuckDuckGo Browser</title>
+ <description>&lt;h1 id=&quot;two-weeks-with-the-duckduckgo-browser&quot;&gt;Two Weeks with the DuckDuckGo Browser&lt;/h1&gt;
+&lt;p&gt;2022-05-17&lt;/p&gt;
+&lt;p&gt;After using the beta apps for the new DuckDuckGo browser for both macOS and iOS, I have returned to Safari.&lt;/p&gt;
+&lt;p&gt;This switch back doesn&amp;#8217;t mean that these browsers are &lt;em&gt;bad&lt;/em&gt; by any means. Both browsers are decently fine for casual users. Unfortunately, they aren&amp;#8217;t ready for prime time &amp;#8220;power&amp;#8221; users. I&amp;#8217;m happy to see another company jump into the browser market (and one that is using WebKit instead of another Chromium clone) but for my day-to-day needs it doesn&amp;#8217;t cut it.&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s break things down:&lt;/p&gt;
+&lt;h2 id=&quot;the-good&quot;&gt;The Good&lt;/h2&gt;
&lt;ul&gt;
-&lt;li&gt;speeds up user interaction with the content you &lt;strong&gt;want&lt;/strong&gt; them to see&lt;/li&gt;
-&lt;li&gt;on subsequent pages the user shouldn&amp;#8217;t need to tab through the entire navigation each time&lt;/li&gt;
+&lt;li&gt;Clean UI with a mix between Chrome and Safari&lt;/li&gt;
+&lt;li&gt;The &amp;#8220;Leave No Trace&amp;#8221; fire button to purge data, cache and cookies&lt;/li&gt;
+&lt;li&gt;Feels snappy and responsive&lt;/li&gt;
+&lt;li&gt;Based on WebKit NOT Chromium&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;For the sake of this demo we will assume that we currently have the following navigation setup in our project:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;nav role=&quot;navigation&quot;&amp;#62;
- &amp;#60;a href=&quot;&amp;#47;&quot;&amp;#62;Home&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;a href=&quot;&amp;#47;about&quot;&amp;#62;About&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;a href=&quot;&amp;#47;archive&quot;&amp;#62;Archive&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;a href=&quot;&amp;#47;atom.xml&quot;&amp;#62;RSS&amp;#60;&amp;#47;a&amp;#62;
-&amp;#60;&amp;#47;nav&amp;#62;
+&lt;h2 id=&quot;the-not-so-good&quot;&gt;The Not So Good&lt;/h2&gt;
+&lt;ul&gt;
+&lt;li&gt;No sync options between systems (that I could find)&lt;/li&gt;
+&lt;li&gt;No extension support&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Now you might look at this list and notice there are more listed points set under the &lt;code&gt;Good&lt;/code&gt; category. Keep in mind that quantity does not always equal quality. The main negative of not allowing user extensions cannot be overstated. I think that when building a browser in this $CURRENT_YEAR it&amp;#8217;s imperative to allow for total user control. Don&amp;#8217;t wall things off. Don&amp;#8217;t &lt;em&gt;assume&lt;/em&gt; you know best for your users.&lt;/p&gt;
+&lt;p&gt;This is a huge issue since a good majority of friends, family and coworkers I talk with use more elaborate ad-blocking. One of the first things I tested with the DuckDuckGo browser on desktop was to watch a YouTube video. I was immediately slammed with multiple ads - both in video form and as banner pop-ups.&lt;/p&gt;
+&lt;p&gt;Overlooks like this shouldn&amp;#8217;t happen. This is UX 101.&lt;/p&gt;
+&lt;p&gt;Another obvious overlook is history and account syncing across devices. Unless I missed something obvious, I could not figure out how to seamlessly sync content from my macOS browser to my iOS one. Again, this function greatly improves the experience of jumping between desktop and mobile clients. Don&amp;#8217;t make me think![^1]&lt;/p&gt;
+&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
+&lt;p&gt;I appreciate the effort from the DuckDuckGo team. I&amp;#8217;m certain this project will get better over time, as they are listening closely to user feedback during the beta. With future improvements I could see myself giving things a second chance.&lt;/p&gt;
+&lt;p&gt;As it stands now, this feels like something that should be an extension[^2], not a standalone browser.&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;a href=&quot;https://sensible.com/dont-make-me-think/&quot;&gt;https:&amp;#47;&amp;#47;sensible.com&amp;#47;dont-make-me-think&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Technically this already exists as a Safari extension &lt;a href=&quot;https://apps.apple.com/us/app/duckduckgo-privacy-essentials/id1482920575?mt=12&quot;&gt;here&lt;/a&gt;&lt;/li&gt;
+&lt;/ol&gt;</description>
+ <link>https://btxx.org/duckduckno</link>
+ <guid isPermaLink="false">https://btxx.org/duckduckno</guid>
+ <pubDate>Tue, 17 May 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Don't Make a Blog, Make a Brain Dump</title>
+ <description>&lt;h1 id=&quot;dont-make-a-blog-make-a-brain-dump&quot;&gt;Don&amp;#8217;t Make a Blog, Make a Brain Dump&lt;/h1&gt;
+&lt;p&gt;2022-09-10&lt;/p&gt;
+&lt;p&gt;Not enough people have personal blogs. This is a point brought up by many of those passionate about the &amp;#8220;golden age&amp;#8221; in the timeline of the modern internet. A time when websites were more like a small collection of winding side-streets and flea markets. Today, it&amp;#8217;s all shopping malls, hostile pedestrians, and corporate buildings. People have their one or two &amp;#8220;outlets&amp;#8221; that make it easier for them to meet-up with friends and family. There&amp;#8217;s no need for these people to have their &amp;#8220;own thing&amp;#8221;. Someone else has already built it for them. They&amp;#8217;re become fully adjusted to their internet slums.&lt;/p&gt;
+&lt;p&gt;Okay, sorry about the terrible metaphors. But you get my point. &lt;em&gt;Convenience breeds laziness&lt;/em&gt;. &lt;em&gt;Laziness breeds mediocrity&lt;/em&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;whats-a-brain-dump&quot;&gt;What&amp;#8217;s a &amp;#8220;Brain Dump&amp;#8221;?&lt;/h2&gt;
+&lt;p&gt;A brain dump is a better way to look at sharing your own experiences or thoughts on the web. The term &amp;#8220;blog&amp;#8221; has a lot of baggage connected to it, so newcomers are quickly scared away by the concept. Or even worse - they decide to only share themselves on locked-in, walled gardens&lt;sup id=&quot;fnref1&quot;&gt;&lt;a href=&quot;#fn1&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;
+&lt;p&gt;Another problem arises when you finally &lt;em&gt;do&lt;/em&gt; convince someone to start &amp;#8220;blogging&amp;#8221; online; self-doubt.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&amp;#8220;What could I possibly have to share?&amp;#8221;&lt;/li&gt;
+&lt;li&gt;&amp;#8220;What if everyone &lt;em&gt;hates&lt;/em&gt; what I post?&amp;#8221;&lt;/li&gt;
+&lt;li&gt;&amp;#8220;What if my content sucks?&amp;#8221;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Just dump it. Who cares. It&amp;#8217;s the internet after all, so who are you trying to impress? The point is that your sharing your own experiences that are unique to you as an individual. Posting something that you think is pointless or mundane might be extremely helpful or, at the very least, entertaining for someone else.&lt;/p&gt;
+&lt;p&gt;Write up what you did over the weekend, a new recipe you tried out, review a movie&amp;#47;book or video game you enjoyed, list step-by-step instructions on how you installed a new appliance in your house - anything! Just &lt;em&gt;write&lt;/em&gt; and be part of what made the internet fun, exciting and personal again.&lt;/p&gt;
+&lt;p&gt;But let me reiterate: &lt;strong&gt;stay away from walled gardens!&lt;/strong&gt; Control your own space on the internet. Be the master of your own brain dump! Say &amp;#8220;screw you&amp;#8221; to app algorithms and &lt;em&gt;trending&lt;/em&gt; bullshit. Just be you.&lt;/p&gt;
+&lt;p&gt;Convinced? Awesome. Now let&amp;#8217;s get into setting things up. I&amp;#8217;ll break these down into two separate categories: one for those with limited web&amp;#47;software experience, and one for those wanting a little more control.&lt;/p&gt;
+&lt;h3 id=&quot;no-code-solutions&quot;&gt;No Code Solutions&lt;/h3&gt;
+&lt;p&gt;Before I get into my suggested options in this &amp;#8220;no-code&amp;#8221; category, I would like to mention why WordPress &lt;em&gt;is not&lt;/em&gt; listed here. Personally, I think WordPress gets in the way of users wanting to &amp;#8220;just blog&amp;#8221;. There once was an era where blogging was WP&amp;#8217;s main focus, but that is now a time long forgotten. It tries to do too much. The back-end is a cluttered mess. Initial learning curves for security, plugins and themes is far too great for newbies. Gutenberg - dear God.&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s not even mentioning hosting costs, installation, backups, etc. My personal take - just steer clear. This option is better suited in the &lt;em&gt;second&lt;/em&gt; category for those with more web experience.&lt;/p&gt;
+&lt;p&gt;With that out of the way, let&amp;#8217;s see my top selections for &amp;#8220;no-code&amp;#8221;:&lt;/p&gt;
+&lt;h4 id=&quot;blot&quot;&gt;Blot&lt;/h4&gt;
+&lt;p&gt;&lt;a href=&quot;https://blot.im/&quot;&gt;Blot&lt;/a&gt; has been around for quite a while. You simply post to a third-party service like Dropbox, Google Drive or a &lt;code&gt;git&lt;/code&gt; repo and Blot takes care of the rest.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;$4&amp;#47;month (includes custom domain use, hosting &amp;#38; support)&lt;/li&gt;
+&lt;li&gt;Easy sign up&lt;/li&gt;
+&lt;li&gt;Multiple themes to choose from&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h4 id=&quot;bear-blog&quot;&gt;Bear Blog&lt;/h4&gt;
+&lt;p&gt;&lt;a href=&quot;https://bearblog.dev/&quot;&gt;Bear Blog&lt;/a&gt; is an excellent platform that focuses on content and not much else.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Free ($25&amp;#47;year for extras)&lt;/li&gt;
+&lt;li&gt;Easy sign up&lt;/li&gt;
+&lt;li&gt;No trackers, no javascript, no ads&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h4 id=&quot;mataroa-blog&quot;&gt;Mataroa Blog&lt;/h4&gt;
+&lt;p&gt;&lt;a href=&quot;https://mataroa.blog/&quot;&gt;Mataroa&lt;/a&gt; follows in the same vein as Bear Blog, a simple blogging platform focused on &lt;em&gt;writing&lt;/em&gt;.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Free (with optional $9&amp;#47;year for premium features)&lt;/li&gt;
+&lt;li&gt;No ads, no tracking&lt;/li&gt;
+&lt;li&gt;Open source&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h4 id=&quot;write.as&quot;&gt;Write.as&lt;/h4&gt;
+&lt;p&gt;&lt;a href=&quot;https://write.as/&quot;&gt;Write.as&lt;/a&gt; is another good option for those looking to just get words down and shared on the internet.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Free with optional paid tiers (custom domains, themes etc.)&lt;/li&gt;
+&lt;li&gt;Option to self host via &lt;a href=&quot;https://writefreely.org/&quot;&gt;Write Freely&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h3 id=&quot;build-your-own&quot;&gt;Build Your Own&lt;/h3&gt;
+&lt;p&gt;If you&amp;#8217;re deep into this section of the post, I think it&amp;#8217;s safe to assume your technical level is fairly &lt;em&gt;decent&lt;/em&gt;. So, I won&amp;#8217;t be into great detail with the options below:&lt;/p&gt;
+&lt;h4 id=&quot;sourcehut-pages&quot;&gt;SourceHut Pages&lt;/h4&gt;
+&lt;p&gt;This very website you&amp;#8217;re reading is built and run off of &lt;a href=&quot;https://srht.site/&quot;&gt;SourceHut Pages&lt;/a&gt;. I highly recommend the service.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;$3+&amp;#47;month (depending on what you &lt;em&gt;choose&lt;/em&gt; to pay)&lt;/li&gt;
+&lt;li&gt;No javascript, no trackers&lt;/li&gt;
+&lt;li&gt;Customizable build settings&lt;/li&gt;
+&lt;li&gt;Support open source software!&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;&lt;strong&gt;Sidenote:&lt;/strong&gt; If you&amp;#8217;re interested in setting up a SSG (such as Jekyll or Hugo) through SourceHut, feel free to &lt;a href=&quot;https://git.sr.ht/~bt/bt.ht&quot;&gt;fork this very website as a starting point&lt;/a&gt;. I also wrote up how to publish&amp;#47;build a Jekyll site on SourceHut in a &lt;a href=&quot;/srht&quot;&gt;separate post&lt;/a&gt; if you wish to see all the nitty-gritty details.&lt;/p&gt;
+&lt;h4 id=&quot;wordpress&quot;&gt;WordPress&lt;/h4&gt;
+&lt;p&gt;As I mentioned above, I find this platform can be a little overkill for a simple &amp;#8220;blog&amp;#8221; (or in this case, a brain dump). I&amp;#8217;m aware that many devs might already be familiar with WP, so it makes sense to include it here.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Free options (custom domains, premium features will require some form of paid hosting)&lt;/li&gt;
+&lt;li&gt;Room for growth with extensive plugins &amp;#47; themes&lt;/li&gt;
+&lt;li&gt;Huge amount of documentation and resources&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h4 id=&quot;static-html-and-a-web-host&quot;&gt;Static HTML and a Web Host&lt;/h4&gt;
+&lt;p&gt;Why not, right? Using a service like &lt;a href=&quot;https://www.nearlyfreespeech.net/&quot;&gt;NearlyFreeSpeech&lt;/a&gt; or spinning up a cheap VPS with &lt;a href=&quot;https://www.digitalocean.com/&quot;&gt;DigitalOcean&lt;/a&gt; and then dropping static HTML files on your server is pretty straightforward. You don&amp;#8217;t need any fancy scripts or syncing tools - an FTP client and a text editor is more than enough!&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;$2-5&amp;#47;month (depending on service provider)&lt;/li&gt;
+&lt;li&gt;&amp;#8220;Drag-and-drop&amp;#8221; workflow&lt;/li&gt;
+&lt;li&gt;Easily portable to other hosting services in the future&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h4 id=&quot;github-pages&quot;&gt;GitHub Pages&lt;/h4&gt;
+&lt;p&gt;Since GitHub is used by almost every developer across the globe, it makes sense to mention their free website hosting option via &lt;a href=&quot;https://pages.github.com/&quot;&gt;GitHub Pages&lt;/a&gt;. I personally &lt;em&gt;don&amp;#8217;t&lt;/em&gt; advise newcomers to use this platform, but you&amp;#8217;re free to do as you like!&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&amp;#8220;Free&amp;#8221;&lt;/li&gt;
+&lt;li&gt;Fairly limited (no static site plugin support)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h2&gt;
+&lt;p&gt;There are many services in both categories above that I did not include. That&amp;#8217;s okay. I didn&amp;#8217;t exclude them because I &lt;em&gt;dislike&lt;/em&gt; them but instead focused on what &lt;em&gt;I believe&lt;/em&gt; to be the easiest solutions for both camps (techies and non-techies).&lt;/p&gt;
+&lt;p&gt;At the end of the day - who cares what you choose. Just choose &lt;em&gt;something&lt;/em&gt;. Stop looking at it as &amp;#8220;blogging&amp;#8221; or trying to &amp;#8220;capture an audience&amp;#8221;. Dump your brain&amp;#8217;s thoughts out into the internet, on your &lt;em&gt;own piece&lt;/em&gt; of the internet, and help make the world wide web as fun as it used to be!&lt;/p&gt;
+&lt;div class=&quot;footnotes&quot;&gt;
+&lt;hr/&gt;
+&lt;ol&gt;
+
+&lt;li id=&quot;fn1&quot;&gt;
+&lt;p&gt;Facebook, Twitter, Reddit, Instagram, etc. These should be completely avoided for the sake of both your health and your internet freedom.&amp;#160;&lt;a href=&quot;#fnref1&quot; rev=&quot;footnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
+&lt;/li&gt;
+
+&lt;/ol&gt;
+&lt;/div&gt;</description>
+ <link>https://btxx.org/dump</link>
+ <guid isPermaLink="false">https://btxx.org/dump</guid>
+ <pubDate>Sat, 10 Sep 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Dynamic Viewports with CSS</title>
+ <description>&lt;h1 id=&quot;dynamic-viewports-with-css&quot;&gt;Dynamic Viewports with CSS&lt;/h1&gt;
+&lt;p&gt;2023-02-08&lt;/p&gt;
+&lt;p&gt;I think it&amp;#8217;s safe to assume most web designers and developers are familiar with the standard &lt;code&gt;vh&lt;/code&gt; and &lt;code&gt;vw&lt;/code&gt; parameters in CSS. These parameters are used for setting an element&amp;#8217;s height and&amp;#47;or width, relative to the viewport (v) height (h) or width (w). For example:&lt;/p&gt;
+&lt;p&gt;If I want my &lt;code&gt;.box&lt;/code&gt; element to take up the entire height of a device&amp;#8217;s screen:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.box {
+ height: 100vh;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now for the easy part - adding our simple content skip link with it&amp;#8217;s own custom &lt;code&gt;skip-content&lt;/code&gt; class:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;nav role=&quot;navigation&quot;&amp;#62;
- &amp;#60;!-- Skip to content button --&amp;#62;
- &amp;#60;a class=&quot;skip-content&quot; href=&quot;#main&quot;&amp;#62;Skip to Content (Press Enter)&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;a href=&quot;&amp;#47;&quot;&amp;#62;Home&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;a href=&quot;&amp;#47;about&quot;&amp;#62;About&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;a href=&quot;&amp;#47;archive&quot;&amp;#62;Archive&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;a href=&quot;&amp;#47;atom.xml&quot;&amp;#62;RSS&amp;#60;&amp;#47;a&amp;#62;
-&amp;#60;&amp;#47;nav&amp;#62;
+&lt;p&gt;Or I want my &lt;code&gt;.box&lt;/code&gt; element to take up the entire width of a device&amp;#8217;s screen:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.box {
+ width: 100vw;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;Our first task is to make sure this new link isn&amp;#8217;t visible or interactive by default unless the user explicitly tabs through the navigation. We do so by positioning the link outside of the main content view. It is important to use this &lt;code&gt;absolute&lt;/code&gt; position style instead of setting the display property to &lt;code&gt;none&lt;/code&gt;, since the display property technique will fully remove the element from the DOM (bad accessibility practices).&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;a.skip-content {
- background: grey;
- color: white;
- left: -9999px;
- padding: 0.5rem;
+&lt;p&gt;These are wonderful options to have - specifically for those of us designing web applications. But there are some &lt;em&gt;minor&lt;/em&gt; issues with &lt;code&gt;vh&lt;/code&gt; and &lt;code&gt;vw&lt;/code&gt;.&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;The setting does not take into account device-specific UI (status bars, toolbars, search fields etc.)&lt;/li&gt;
+&lt;li&gt;In some instances these will not play nice with &lt;code&gt;box-sizing&lt;/code&gt; properties&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;have-no-fear-dynamic-viewport-is-here&quot;&gt;Have No Fear, Dynamic Viewport is Here!&lt;/h2&gt;
+&lt;p&gt;Lucky for us there exists an awesome &lt;em&gt;new-ish&lt;/em&gt; CSS API called dynamic viewport-percentage units: &lt;code&gt;dvh&lt;/code&gt; &amp;#38; &lt;code&gt;dvw&lt;/code&gt;. They are defined as follows:&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;The dynamic viewport-percentage units (dv) are defined with respect to the dynamic viewport size: the viewport sized with dynamic consideration of any UA interfaces that are dynamically expanded and retracted. This allows authors to size content such that it can exactly fit within the viewport whether or not such interfaces are present.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;So our examples above would translate into:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.box {
+ height: 100dvh;
+ width: 100dvw;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;what-about-browser-support&quot;&gt;What About Browser Support?&lt;/h3&gt;
+&lt;p&gt;&lt;a href=&quot;https://caniuse.com/mdn-api_css_dvh&quot;&gt;Can I Use Stats&lt;/a&gt; &amp;#47; ~67.17% coverage.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Even though the caniuse page states that Firefox 109+ and iOS Safari 16.3 do not support &lt;code&gt;dvh&lt;/code&gt;, in my experiments they do. I&amp;#8217;m not sure what testing was done for those two browsers, so YMMV.&lt;/p&gt;
+&lt;p&gt;If you want to play it safe, use dynamic viewports with standard &amp;#8220;traditional&amp;#8221; viewports as backup. That way you support all use cases while still taking advantage of newer CSS properties.&lt;/p&gt;</description>
+ <link>https://btxx.org/dv</link>
+ <guid isPermaLink="false">https://btxx.org/dv</guid>
+ <pubDate>Wed, 08 Feb 2023 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Bringing dwm Shortcuts to GNOME</title>
+ <description>&lt;h1 id=&quot;bringing-dwm-shortcuts-to-gnome&quot;&gt;Bringing dwm Shortcuts to GNOME&lt;/h1&gt;
+&lt;p&gt;2023-11-02&lt;/p&gt;
+&lt;p&gt;The &lt;code&gt;dwm&lt;/code&gt; window manager is my standard &amp;#8220;go-to&amp;#8221; for most of my personal laptop environments. For desktops with larger, higher resolution monitors I tend to lean towards using GNOME. The GNOME DE is fairly solid for my own purposes. This article isn&amp;#8217;t going to deep dive into GNOME itself, but instead highlight some minor configuration changes I make to mimic a few &lt;code&gt;dwm&lt;/code&gt; shortcuts.&lt;/p&gt;
+&lt;p&gt;For reference, I&amp;#8217;m running GNOME 45.0 on Ubuntu 23.10&lt;/p&gt;
+&lt;h2 id=&quot;setting-up-fixed-workspaces&quot;&gt;Setting Up Fixed Workspaces&lt;/h2&gt;
+&lt;p&gt;When I use &lt;code&gt;dwm&lt;/code&gt; I tend to have a hard-set amount of &lt;code&gt;tags&lt;/code&gt; to cycle through (normally 4-5). Unfortunately, dynamic rendering is the default for workspaces (ie. tags) in GNOME. For my personal preference I set this setting to &lt;code&gt;fixed&lt;/code&gt;. We can achieve this by opening &lt;strong&gt;Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Multitasking&lt;/strong&gt; and selecting &amp;#8220;Fixed number of workspaces&amp;#8221;.&lt;/p&gt;
+&lt;h2 id=&quot;setting-our-keybindings&quot;&gt;Setting Our Keybindings&lt;/h2&gt;
+&lt;p&gt;Now all that is left is to mimic &lt;code&gt;dwm&lt;/code&gt; keyboard shortcuts, in this case: ALT + $num for switching between workspaces and ALT + SHIFT + $num for moving windows across workspaces. These keyboard shortcuts can be altered under &lt;strong&gt;Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Keyboard&lt;/strong&gt; &amp;#62; &lt;strong&gt;View and Customize Shortcuts&lt;/strong&gt; &amp;#62; &lt;strong&gt;Navigation&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;You&amp;#8217;ll want to make edits to both the &amp;#8220;Switch to workspace &lt;em&gt;n&lt;/em&gt;&amp;#8221; and &amp;#8220;Move window to workspace &lt;em&gt;n&lt;/em&gt;&amp;#8221;. &lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it. You&amp;#8217;re free to include even more custom keyboard shortcuts (open web browser, lock screen, hibernate, etc.) but this is a solid starting point. Enjoy tweaking GNOME!&lt;/p&gt;</description>
+ <link>https://btxx.org/dwm-gnome</link>
+ <guid isPermaLink="false">https://btxx.org/dwm-gnome</guid>
+ <pubDate>Thu, 02 Nov 2023 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Dynamic Checkboxes</title>
+ <description>&lt;h1 id=&quot;dynamic-checkboxes&quot;&gt;Dynamic Checkboxes&lt;/h1&gt;
+&lt;p&gt;2019-07-30&lt;/p&gt;
+&lt;p&gt;Checkboxes are used quite frequently on forms across the web. Whether you&amp;#8217;re selecting a pricing plan during a site&amp;#8217;s sign-up process or just simply selecting to opt-out from a newsletter, you have most likely interacted with some form of checkbox element.&lt;/p&gt;
+&lt;p&gt;What if we could make everyday checkboxes more beautiful &lt;em&gt;and&lt;/em&gt; more intuitive? &lt;em&gt;It&amp;#8217;s easier than you think&lt;/em&gt;. We only need a small amount of CSS and JavaScript to make considerable improvements to your average checkbox UX.&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s get into it.&lt;/p&gt;
+&lt;h2 id=&quot;what-we-are-building&quot;&gt;What we are building&lt;/h2&gt;
+&lt;p&gt;Take a look and play around with the CodePen below to get an idea of what we are going to build. The premise is a simple add-on pricing form which calculates the additional monthly total to the user in real-time.&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/rXWEpy/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;the-structure-html&quot;&gt;The Structure (HTML)&lt;/h2&gt;
+&lt;p&gt;As always, we will start by breaking down the &amp;#8220;bones&amp;#8221; of the HTML structure for this checkbox form. Let&amp;#8217;s take a look at the HTML in it&amp;#8217;s entirety (don&amp;#8217;t worry, it is a lot more simple than it seems at first glance):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;h2&amp;#62;Add-ons&amp;#60;&amp;#47;h2&amp;#62;
+
+&amp;#60;input class=&quot;checkbox-btn&quot; name=&quot;checkbox-collection&quot; id=&quot;checkbox-1&quot; type=&quot;checkbox&quot; value=&quot;49&quot;&amp;#62;
+&amp;#60;label class=&quot;checkbox-label&quot; for=&quot;checkbox-1&quot;&amp;#62;
+ &amp;#60;span&amp;#62;
+ White-labeled Domain
+ &amp;#60;em&amp;#62;Use your own custom domain with SSL security included.&amp;#60;&amp;#47;em&amp;#62;
+ &amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;span&amp;#62;$49&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
+&amp;#60;&amp;#47;label&amp;#62;
+
+&amp;#60;input class=&quot;checkbox-btn&quot; name=&quot;checkbox-collection&quot; id=&quot;checkbox-2&quot; type=&quot;checkbox&quot; value=&quot;49&quot;&amp;#62;
+&amp;#60;label class=&quot;checkbox-label&quot; for=&quot;checkbox-2&quot;&amp;#62;
+ &amp;#60;span&amp;#62;
+ API Access
+ &amp;#60;em&amp;#62;Make API calls to perform custom serving and account actions.&amp;#60;&amp;#47;em&amp;#62;
+ &amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;span&amp;#62;$49&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
+&amp;#60;&amp;#47;label&amp;#62;
+
+&amp;#60;input class=&quot;checkbox-btn&quot; name=&quot;checkbox-collection&quot; id=&quot;checkbox-3&quot; type=&quot;checkbox&quot; value=&quot;349&quot;&amp;#62;
+&amp;#60;label class=&quot;checkbox-label&quot; for=&quot;checkbox-3&quot;&amp;#62;
+ &amp;#60;span&amp;#62;
+ Priority Support
+ &amp;#60;em&amp;#62;A dedicated account manager to assist your team with ongoing deployments.&amp;#60;&amp;#47;em&amp;#62;
+ &amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;span&amp;#62;$349&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
+&amp;#60;&amp;#47;label&amp;#62;
+
+&amp;#60;div class=&quot;total-cost&quot;&amp;#62;
+ &amp;#60;h2&amp;#62;Your Plan&amp;#60;&amp;#47;h2&amp;#62;
+ &amp;#60;div&amp;#62;
+ &amp;#60;span&amp;#62;$&amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;span id=&quot;total-cost-inner&quot;&amp;#62;0&amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;input id=&quot;output&quot; type=&quot;text&quot; value=&quot;0&quot; disabled&amp;#47;&amp;#62;
+ &amp;#60;span&amp;#62;&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;the-checkbox-inputs-labels&quot;&gt;The checkbox inputs &amp;#38; labels&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;!-- #1 --&amp;#62;
+&amp;#60;input class=&quot;checkbox-btn&quot; name=&quot;checkbox-collection&quot; id=&quot;checkbox-1&quot; type=&quot;checkbox&quot; value=&quot;49&quot;&amp;#62;
+
+&amp;#60;!-- #2 --&amp;#62;
+&amp;#60;label class=&quot;checkbox-label&quot; for=&quot;checkbox-1&quot;&amp;#62;
+
+ &amp;#60;!-- #2i --&amp;#62;
+ &amp;#60;span&amp;#62;
+ White-labeled Domain
+ &amp;#60;em&amp;#62;Use your own custom domain with SSL security included.&amp;#60;&amp;#47;em&amp;#62;
+ &amp;#60;&amp;#47;span&amp;#62;
+
+ &amp;#60;!-- #2ii --&amp;#62;
+ &amp;#60;span&amp;#62;$49&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
+
+&amp;#60;&amp;#47;label&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;p&gt;This input will be hidden via &lt;code&gt;position:absolute&lt;/code&gt; by default. All checkbox inputs need to share the same &lt;code&gt;name&lt;/code&gt; value and all checkboxes require their our custom &lt;code&gt;id&lt;/code&gt; that will link with the corresponding &lt;code&gt;for&lt;/code&gt; value on the label.&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;This label needs it&amp;#8217;s &lt;code&gt;for&lt;/code&gt; value to correspond with it&amp;#8217;s partnered checkbox.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;i) The first span holds the title and description information of the add-on&lt;/li&gt;
+&lt;li&gt;ii) The last span holds the cost associated with the current add-on&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h3 id=&quot;the-total-cost-container-output&quot;&gt;The total cost container output&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;!-- #1 --&amp;#62;
+&amp;#60;div class=&quot;total-cost&quot;&amp;#62;
+
+ &amp;#60;h2&amp;#62;Your Plan&amp;#60;&amp;#47;h2&amp;#62;
+
+ &amp;#60;!-- #2 --&amp;#62;
+ &amp;#60;div&amp;#62;
+
+ &amp;#60;!-- #2i --&amp;#62;
+ &amp;#60;span&amp;#62;$&amp;#60;&amp;#47;span&amp;#62;
+
+ &amp;#60;!-- #2ii --&amp;#62;
+ &amp;#60;span id=&quot;total-cost-inner&quot;&amp;#62;0&amp;#60;&amp;#47;span&amp;#62;
+
+ &amp;#60;!-- #2iii --&amp;#62;
+ &amp;#60;input id=&quot;output&quot; type=&quot;text&quot; value=&quot;0&quot; disabled&amp;#47;&amp;#62;
+
+ &amp;#60;!-- #2iv --&amp;#62;
+ &amp;#60;span&amp;#62;&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
+
+ &amp;#60;&amp;#47;div&amp;#62;
+
+&amp;#60;&amp;#47;div&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;p&gt;A simple &lt;code&gt;div&lt;/code&gt; with a class we can easily target later&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;A &lt;code&gt;div&lt;/code&gt; parent container is needed to house all the total &lt;code&gt;spans&lt;/code&gt; together (more on this when we get into the CSS)&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;i) The first &lt;code&gt;span&lt;/code&gt; holds the static currency symbol&lt;/li&gt;
+&lt;li&gt;ii) The second &lt;code&gt;span&lt;/code&gt; is where our updated cost will be injected&lt;/li&gt;
+&lt;li&gt;iii) This input field is required for us to take-in the &lt;code&gt;value&lt;/code&gt; of the associated &lt;code&gt;:checked&lt;/code&gt; inputs and add them together. This current value is then used for the injection into the second &lt;code&gt;span&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;iv) The final &lt;code&gt;span&lt;/code&gt; simply holds the static monthly duration content&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;All that&amp;#8217;s all we need for the HTML!&lt;/p&gt;
+&lt;h2 id=&quot;the-visuals-css&quot;&gt;The Visuals (CSS)&lt;/h2&gt;
+&lt;p&gt;Again, lets take a look at the entire file before we break it down step-by-step:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.checkbox-label {
+ align-items: center;
+ background-color: none;
+ border: 1px solid lightgrey;
+ border-radius: 5px;
+ cursor: pointer;
+ display: flex;
+ font-weight: 600;
+ justify-content: space-between;
+ margin: 0 auto 10px;
+ padding: 20px 20px 20px 70px;
+ position: relative;
+ transition: .3s ease all;
+ width: 100%;
+}
+.checkbox-label span:last-child {
+ padding: 0 0 0 20px;
+}
+.checkbox-label:hover {
+ background-color: rgba(255,255,255,0.2);
+}
+.checkbox-label:before {
+ background-repeat: no-repeat;
+ background-position: center;
+ background-size: 15px;
+ border: 1px solid lightgrey;
+ border-radius: 50%;
+ content:&amp;#39;&amp;#39;;
+ height: 30px;
+ left: 20px;
position: absolute;
- top: 0;
+ top: calc(50% - 15px);
+ transition: .3s ease background-color;
+ width: 30px;
+}
+.checkbox-label:hover:before {
+ background-image:
+ url(&amp;#39;data:image&amp;#47;svg+xml;utf8,&amp;#60;svg xmlns=&quot;http:&amp;#47;&amp;#47;www.w3.org&amp;#47;2000&amp;#47;svg&quot; width=&quot;23.571429&quot; height=&quot;23.571429&quot; viewBox=&quot;0.000000 -47.142857 23.571429 23.571429&quot;&amp;#62;&amp;#60;path fill=&quot;lightgrey&quot; d=&quot;M23.571429 -36.964286L23.571429 -33.750000C23.571429 -33.303571 23.415179 -32.924107 23.102679 -32.611607C22.790179 -32.299107 22.410714 -32.142857 21.964286 -32.142857L15.000000 -32.142857L15.000000 -25.178571C15.000000 -24.732143 14.843750 -24.352679 14.531250 -24.040179C14.218750 -23.727679 13.839286 -23.571429 13.392857 -23.571429L10.178571 -23.571429C9.732143 -23.571429 9.352679 -23.727679 9.040179 -24.040179C8.727679 -24.352679 8.571429 -24.732143 8.571429 -25.178571L8.571429 -32.142857L1.607143 -32.142857C1.160714 -32.142857 0.781250 -32.299107 0.468750 -32.611607C0.156250 -32.924107 0.000000 -33.303571 0.000000 -33.750000L0.000000 -36.964286C0.000000 -37.410714 0.156250 -37.790179 0.468750 -38.102679C0.781250 -38.415179 1.160714 -38.571429 1.607143 -38.571429L8.571429 -38.571429L8.571429 -45.535714C8.571429 -45.982143 8.727679 -46.361607 9.040179 -46.674107C9.352679 -46.986607 9.732143 -47.142857 10.178571 -47.142857L13.392857 -47.142857C13.839286 -47.142857 14.218750 -46.986607 14.531250 -46.674107C14.843750 -46.361607 15.000000 -45.982143 15.000000 -45.535714L15.000000 -38.571429L21.964286 -38.571429C22.410714 -38.571429 22.790179 -38.415179 23.102679 -38.102679C23.415179 -37.790179 23.571429 -37.410714 23.571429 -36.964286ZM23.571429 -36.964286&quot;&amp;#62;&amp;#60;&amp;#47;path&amp;#62;&amp;#60;&amp;#47;svg&amp;#62;&amp;#39;);
+}
+.checkbox-label span {
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ user-select: none;
+}
+.checkbox-label span em {
+ display: block;
+ font-size: 80%;
+ font-style: normal;
+ font-weight: 400;
+ line-height: 1.2;
+}
+.checkbox-btn {
+ position: absolute;
+ visibility: hidden;
+}
+.checkbox-btn:checked + .checkbox-label {
+ background-color: white;
+ border-color: mediumpurple;
+ box-shadow: 0 2px 4px rgba(0,0,0,0.05);
+}
+.checkbox-btn:checked + .checkbox-label:before {
+ background-color: mediumpurple;
+ background-image:
+ url(&amp;#39;data:image&amp;#47;svg+xml;utf8,&amp;#60;svg xmlns=&quot;http:&amp;#47;&amp;#47;www.w3.org&amp;#47;2000&amp;#47;svg&quot; width=&quot;25.948661&quot; height=&quot;19.888393&quot; viewBox=&quot;2.025670 -40.011161 25.948661 19.888393&quot;&amp;#62;&amp;#60;path fill=&quot;white&quot; d=&quot;M27.974330 -36.127232C27.974330 -35.680804 27.818080 -35.301339 27.505580 -34.988839L15.385045 -22.868304L13.108259 -20.591518C12.795759 -20.279018 12.416295 -20.122768 11.969866 -20.122768C11.523438 -20.122768 11.143973 -20.279018 10.831473 -20.591518L8.554688 -22.868304L2.494420 -28.928571C2.181920 -29.241071 2.025670 -29.620536 2.025670 -30.066964C2.025670 -30.513393 2.181920 -30.892857 2.494420 -31.205357L4.771205 -33.482143C5.083705 -33.794643 5.463170 -33.950893 5.909598 -33.950893C6.356027 -33.950893 6.735491 -33.794643 7.047991 -33.482143L11.969866 -28.543527L22.952009 -39.542411C23.264509 -39.854911 23.643973 -40.011161 24.090402 -40.011161C24.536830 -40.011161 24.916295 -39.854911 25.228795 -39.542411L27.505580 -37.265625C27.818080 -36.953125 27.974330 -36.573661 27.974330 -36.127232ZM27.974330 -36.127232&quot;&amp;#62;&amp;#60;&amp;#47;path&amp;#62;&amp;#60;&amp;#47;svg&amp;#62;&amp;#39;);
+ border-color: mediumpurple;
+}
+
+.total-cost {
+ align-items: baseline;
+ border-top: 1px solid lightgrey;
+ display: flex;
+ justify-content: space-between;
+ margin-top: 40px;
+ padding: 40px 20px 0;
+}
+.total-cost div {
+ align-items: baseline;
+ display: flex;
+}
+.total-cost span:nth-child(1) {
+ align-self: flex-start;
+ padding-top: 5px;
+}
+.total-cost span:nth-child(2) {
+ font-size: 32px;
+ font-weight: bold;
+}
+.total-cost input {
+ display: none;
+}
+
+@media(max-width:480px) {
+ .checkbox-label {
+ align-items: flex-start;
+ flex-direction: column;
+ flex-wrap: wrap;
+ }
+ .checkbox-label span:last-child {
+ padding: 10px 0 0 0;
+ }
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;almost-there&quot;&gt;Almost there&lt;/h2&gt;
-&lt;p&gt;Now we just re-position the element when the user focuses on the link with a keyboard tab:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;a.skip-content:focus {
- left: 1rem; &amp;#47;* Whatever desired position *&amp;#47;
+&lt;h3 id=&quot;the-checkbox-label&quot;&gt;The checkbox label&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;*
+This is the main element for each checkbox &quot;container&quot;.
+Inside it houses the title, description and price.
+*&amp;#47;
+.checkbox-label {
+ align-items: center;
+ background-color: none;
+ border: 1px solid lightgrey;
+ border-radius: 5px;
+ cursor: pointer;
+ display: flex;
+ font-weight: 600;
+ justify-content: space-between;
+ margin: 0 auto 10px;
+ padding: 20px 20px 20px 70px;
+ position: relative;
+ transition: .3s ease all;
+ width: 100%;
+}
+.checkbox-label:hover {
+ background-color: rgba(255,255,255,0.2);
+}
+
+&amp;#47;* Update the label styling when the input is :checked *&amp;#47;
+.checkbox-btn:checked + .checkbox-label {
+ background-color: white;
+ border-color: mediumpurple;
+ box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;all-done&quot;&gt;All Done&lt;/h2&gt;
-&lt;p&gt;This is a very basic accessibility win you can implement in your current projects with next to zero effort. Enjoy!&lt;/p&gt;</description>
- <link>https://btxx.org/skip-to-content</link>
- <guid isPermaLink="false">https://btxx.org/skip-to-content</guid>
- <pubDate>Mon, 25 Mar 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Simple Navigation Setup in Jekyll 3.9.0</title>
- <description>&lt;h1 id=&quot;simple-navigation-setup-in-jekyll-3.9.0&quot;&gt;Simple Navigation Setup in Jekyll 3.9.0&lt;/h1&gt;
-&lt;p&gt;2020-09-29&lt;/p&gt;
-&lt;p&gt;I have found that there is a lot of information on the internet in regards to setting up &amp;#8220;dynamic&amp;#8221; navigation in Jekyll. The problem I&amp;#8217;ve noticed is that a good amount of these implementations are overly complex. Here is the simplest way that I tend to use when building out &lt;code&gt;nav&lt;/code&gt; elements in Jekyll (3.9.0 as of this writing).&lt;/p&gt;
-&lt;h2 id=&quot;creating-the-directories-files&quot;&gt;Creating the Directories &amp;#38; Files&lt;/h2&gt;
-&lt;p&gt;In your Jekyll project, at the top level, you need to create a directory called &lt;code&gt;_data&lt;/code&gt;. Inside this folder we will be creating a new file called &lt;code&gt;navigation.yml&lt;/code&gt;. The contents of this file will contain all your navigation links and they are rendered like so:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;- title: Home
-url: &amp;#47;
+&lt;h3 id=&quot;the-custom-checkbox-input&quot;&gt;The custom checkbox input&lt;/h3&gt;
+&lt;p&gt;We need to hide the browser&amp;#8217;s default checkbox input and replace it with our own using pseudo selectors.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Hide browser default input *&amp;#47;
+.checkbox-btn {
+ position: absolute;
+ visibility: hidden;
+}
-- title: Articles
-url: &amp;#47;articles&amp;#47;
+&amp;#47;* Our custom input checkbox *&amp;#47;
+.checkbox-label:before {
+ background-repeat: no-repeat;
+ background-position: center;
+ background-size: 15px;
+ border: 1px solid lightgrey;
+ border-radius: 50%;
+ content:&amp;#39;&amp;#39;;
+ height: 30px;
+ left: 20px;
+ position: absolute;
+ top: calc(50% - 15px);
+ transition: .3s ease background-color;
+ width: 30px;
+}
-- title: About
-url: &amp;#47;about&amp;#47;
+&amp;#47;*
+Here we add a simple &amp;#39;+&amp;#39; icon on hover
+to our custom pseudo element.
+Adding it as an inline SVG gives us the
+ability to fully customize it&amp;#39;s styling
+*&amp;#47;
+.checkbox-label:hover:before {
+ background-image:
+ url(&amp;#39;data:image&amp;#47;svg+xml;utf8,&amp;#60;svg xmlns=&quot;http:&amp;#47;&amp;#47;www.w3.org&amp;#47;2000&amp;#47;svg&quot; width=&quot;23.571429&quot; height=&quot;23.571429&quot; viewBox=&quot;0.000000 -47.142857 23.571429 23.571429&quot;&amp;#62;&amp;#60;path fill=&quot;lightgrey&quot; d=&quot;M23.571429 -36.964286L23.571429 -33.750000C23.571429 -33.303571 23.415179 -32.924107 23.102679 -32.611607C22.790179 -32.299107 22.410714 -32.142857 21.964286 -32.142857L15.000000 -32.142857L15.000000 -25.178571C15.000000 -24.732143 14.843750 -24.352679 14.531250 -24.040179C14.218750 -23.727679 13.839286 -23.571429 13.392857 -23.571429L10.178571 -23.571429C9.732143 -23.571429 9.352679 -23.727679 9.040179 -24.040179C8.727679 -24.352679 8.571429 -24.732143 8.571429 -25.178571L8.571429 -32.142857L1.607143 -32.142857C1.160714 -32.142857 0.781250 -32.299107 0.468750 -32.611607C0.156250 -32.924107 0.000000 -33.303571 0.000000 -33.750000L0.000000 -36.964286C0.000000 -37.410714 0.156250 -37.790179 0.468750 -38.102679C0.781250 -38.415179 1.160714 -38.571429 1.607143 -38.571429L8.571429 -38.571429L8.571429 -45.535714C8.571429 -45.982143 8.727679 -46.361607 9.040179 -46.674107C9.352679 -46.986607 9.732143 -47.142857 10.178571 -47.142857L13.392857 -47.142857C13.839286 -47.142857 14.218750 -46.986607 14.531250 -46.674107C14.843750 -46.361607 15.000000 -45.982143 15.000000 -45.535714L15.000000 -38.571429L21.964286 -38.571429C22.410714 -38.571429 22.790179 -38.415179 23.102679 -38.102679C23.415179 -37.790179 23.571429 -37.410714 23.571429 -36.964286ZM23.571429 -36.964286&quot;&amp;#62;&amp;#60;&amp;#47;path&amp;#62;&amp;#60;&amp;#47;svg&amp;#62;&amp;#39;);
+}
+
+&amp;#47;*
+When the checkbox input is :checked we need to
+update the inline SVG to use a checkmark symbol
+*&amp;#47;
+.checkbox-btn:checked + .checkbox-label:before {
+ background-color: mediumpurple;
+ background-image:
+ url(&amp;#39;data:image&amp;#47;svg+xml;utf8,&amp;#60;svg xmlns=&quot;http:&amp;#47;&amp;#47;www.w3.org&amp;#47;2000&amp;#47;svg&quot; width=&quot;25.948661&quot; height=&quot;19.888393&quot; viewBox=&quot;2.025670 -40.011161 25.948661 19.888393&quot;&amp;#62;&amp;#60;path fill=&quot;white&quot; d=&quot;M27.974330 -36.127232C27.974330 -35.680804 27.818080 -35.301339 27.505580 -34.988839L15.385045 -22.868304L13.108259 -20.591518C12.795759 -20.279018 12.416295 -20.122768 11.969866 -20.122768C11.523438 -20.122768 11.143973 -20.279018 10.831473 -20.591518L8.554688 -22.868304L2.494420 -28.928571C2.181920 -29.241071 2.025670 -29.620536 2.025670 -30.066964C2.025670 -30.513393 2.181920 -30.892857 2.494420 -31.205357L4.771205 -33.482143C5.083705 -33.794643 5.463170 -33.950893 5.909598 -33.950893C6.356027 -33.950893 6.735491 -33.794643 7.047991 -33.482143L11.969866 -28.543527L22.952009 -39.542411C23.264509 -39.854911 23.643973 -40.011161 24.090402 -40.011161C24.536830 -40.011161 24.916295 -39.854911 25.228795 -39.542411L27.505580 -37.265625C27.818080 -36.953125 27.974330 -36.573661 27.974330 -36.127232ZM27.974330 -36.127232&quot;&amp;#62;&amp;#60;&amp;#47;path&amp;#62;&amp;#60;&amp;#47;svg&amp;#62;&amp;#39;);
+ border-color: mediumpurple;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;dynamically-rendering-the-navigation&quot;&gt;Dynamically Rendering the Navigation&lt;/h2&gt;
-&lt;p&gt;The next and final step is rendering out the navigation with a simple loop:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;{% for item in site.data.navigation %}
- &amp;#60;li&amp;#62;
- &amp;#60;a href=&quot;{{ item.url }}&quot;&amp;#62;&amp;#60;span&amp;#62;{{ item.title }}&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;&amp;#47;li&amp;#62;
-{% endfor %}
+&lt;h3 id=&quot;the-total-cost-container&quot;&gt;The total cost container&lt;/h3&gt;
+&lt;p&gt;We only need some very basic flexbox styling for our bottom &amp;#8220;total&amp;#8221; container:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.total-cost {
+ align-items: baseline;
+ border-top: 1px solid lightgrey;
+ display: flex;
+ justify-content: space-between;
+ margin-top: 40px;
+ padding: 40px 20px 0;
+}
+.total-cost div {
+ align-items: baseline;
+ display: flex;
+}
+.total-cost span:nth-child(1) {
+ align-self: flex-start;
+ padding-top: 5px;
+}
+.total-cost span:nth-child(2) {
+ font-size: 32px;
+ font-weight: bold;
+}
+
+&amp;#47;*
+This input is used in our JavaScript - look at the
+function part of this post to understand why
+*&amp;#47;
+.total-cost input {
+ display: none;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;highlight-current-page&quot;&gt;Highlight Current Page&lt;/h2&gt;
-&lt;p&gt;It&amp;#8217;s also very easy to extend this method to add a CSS class based on whether a user is on the currently selected page or not:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;{% for item in site.data.navigation %}
- &amp;#60;li&amp;#62;
- {% if item.url == page.url %}
- &amp;#60;a class=&quot;active&quot; href=&quot;{{ item.url }}&quot;&amp;#62;&amp;#60;span&amp;#62;{{ item.title }}&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
- {% else %}
- &amp;#60;a href=&quot;{{ item.url }}&quot;&amp;#62;&amp;#60;span&amp;#62;{{ item.title }}&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
- {% endif %}
- &amp;#60;&amp;#47;li&amp;#62;
-{% endfor %}
+&lt;h3 id=&quot;last-but-not-least---mobile&quot;&gt;Last but not least - mobile&lt;/h3&gt;
+&lt;p&gt;Now we just ensure that on smaller devices our checkbox labels render nicely:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@media(max-width:480px) {
+ &amp;#47;*
+ Avoids the inner label content from squishing together
+ and becoming unreadable
+ *&amp;#47;
+ .checkbox-label {
+ align-items: flex-start;
+ flex-direction: column;
+ flex-wrap: wrap;
+ }
+ .checkbox-label span:last-child {
+ padding: 10px 0 0 0;
+ }
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;That&amp;#8217;s it for the styling!&lt;/p&gt;
+&lt;h2 id=&quot;the-function-js&quot;&gt;The Function (JS)&lt;/h2&gt;
+&lt;p&gt;As you can see below, we only need a very minor amount of JavaScript to accomplish our total cost &amp;#8220;injection&amp;#8221;.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;window.onload=function(){
+&amp;#47;&amp;#47; Place the default browser checkbox inputs into a variable
+var inputs = document.getElementsByClassName(&amp;#39;checkbox-btn&amp;#39;)
+&amp;#47;&amp;#47; Now we loop through the inputs and check if they are
+&amp;#47;&amp;#47; greater than zero. If so, we run our function.
+for (var i=0; i &amp;#60; inputs.length; i++) {
-&amp;#47;* Custom styling for active class *&amp;#47;
-li a.active { color: red; }
+ inputs[i].onchange = function() {
+
+ &amp;#47;&amp;#47; Create `add` variable which takes the :checked input value
+ var add = this.value * (this.checked ? 1 : -1);
+
+ &amp;#47;&amp;#47; We grab the current total value on our hidden input field and return it
+ &amp;#47;&amp;#47; as a floating point number
+ &amp;#47;&amp;#47; (since in this use case it will be a price number based on currency)
+ var new_total = parseFloat(document.getElementById(&amp;#39;output&amp;#39;).value);
+
+ &amp;#47;&amp;#47; Now we simply add the existing total value with the newly &quot;:checked&quot; input value
+ var updated_total = document.getElementById(&amp;#39;output&amp;#39;).value=new_total + add
+
+ &amp;#47;&amp;#47; Place the new updated total directly inside the `total-cost-inner` span element
+ document.getElementById(&amp;#39;total-cost-inner&amp;#39;).innerHTML = updated_total;
+ }
+
+}
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Congrats! You now have fully functional, dynamic navigation on your Jekyll site.&lt;/p&gt;</description>
- <link>https://btxx.org/simple-jekyll-navigation</link>
- <guid isPermaLink="false">https://btxx.org/simple-jekyll-navigation</guid>
- <pubDate>Tue, 29 Sep 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Simple Does Not Mean Ugly</title>
- <description>&lt;h1 id=&quot;simple-does-not-mean-ugly&quot;&gt;Simple Does Not Mean Ugly&lt;/h1&gt;
-&lt;p&gt;2019-03-26&lt;/p&gt;
-&lt;p&gt;I see new blog posts popping up now and again advocating for designers to keep their products as simple as possible - and I couldn&amp;#8217;t agree more.&lt;/p&gt;
-&lt;p&gt;A lot of designers tend to think they need to reinvent the wheel when it comes to UI concepts that are standard defaults and expected by most users. Not only does this add extra work for your design and development cycles, but also increases the potential of frustration for your users when they are using your product.&lt;/p&gt;
-&lt;p&gt;Your job as a designer is to focus on the user experience journey and understand what those users &lt;em&gt;expect&lt;/em&gt; to happen - not what &lt;em&gt;you want&lt;/em&gt; to happen. This is a very delicate balance of design “give and take”, hence why simple designs always seem to work best.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;But simple does not mean “ugly”&lt;/strong&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;ugly-simple&quot;&gt;Ugly Simple&lt;/h2&gt;
-&lt;p&gt;Anyone who has read some of my opinion pieces on here in regards to UI know that I have a profound distaste for the overused “flat design” trend. Many designers consider this trend a clean and “simple” approach to most UI conventions - which is complete nonsense to most professionals in the industry (at least those not drinking the kool-aid).&lt;/p&gt;
-&lt;p&gt;Using the term “simple” in the context of UI is currently quite damaging to modern application and product development. Designers take these definitions too literally, leading to stripped down interfaces with little to no usability for their end-users.&lt;/p&gt;
-&lt;p&gt;Cap Watkins wrote a post back in 2014 where he explained his admiration for &lt;a href=&quot;https://capwatkins.com/blog/the-boring-designer&quot;&gt;boring designers&lt;/a&gt; and how they tackled design problems using the most boring or “lazy” techniques. While I don’t agree completely with his arguments, nor do I think one should try to attain the status of “boring designer”, I can understand his main sentiment: everyone can appreciate obvious and clever design.&lt;/p&gt;
-&lt;h2 id=&quot;fixing-simple&quot;&gt;Fixing Simple&lt;/h2&gt;
-&lt;p&gt;I hate when people point out problems without at least attempting to suggest some sort of solution - which is exactly what I’m going to do here (with only a few set examples of course, otherwise the post would become a book). Let’s take a look at the major culprits I find around the web: navigations, buttons and form elements.&lt;/p&gt;
-&lt;h3 id=&quot;1.-hidden-navigations&quot;&gt;1. Hidden Navigations&lt;/h3&gt;
-&lt;p&gt;How many native apps that you use regularly rely on the trusty “hamburger” menu icon navigation system? What about news sites, video streaming services, or blogs? Maybe you’ve implemented this concept in your own projects as well, advocating for it’s “cleaner” approach to navigation. &lt;/p&gt;
-&lt;p&gt;The &lt;em&gt;hamburger&lt;/em&gt; is a great example of “ugly simple”. You are purposely hiding the main structure that allows your users to move around your product freely behind an &lt;strong&gt;additional&lt;/strong&gt; interaction. That is the opposite of simple.&lt;/p&gt;
-&lt;p&gt;The only time you should be using the “hamburger crutch” as I call it, is for very small screen sizes or when targeting mobile user agents directly. That’s it. If your users are viewing your product on a larger screen, for the love of God, &lt;strong&gt;use the space available&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/navigation.webp&quot; alt=&quot;Desktop Navigation&quot; /&gt;&lt;/p&gt;
-&lt;h3 id=&quot;2.-buttons-not-looking-like-buttons&quot;&gt;2. Buttons Not Looking Like Buttons&lt;/h3&gt;
-&lt;p&gt;It’s difficult for users to actually &lt;strong&gt;do&lt;/strong&gt; the action you want them to perform when your buttons look like text. I’m not exactly sure why designers have pivoted towards removing all stylings that regular users have come to expect from button elements, but it’s plaguing far too many websites.&lt;/p&gt;
-&lt;p&gt;Buttons should be eye-catching, colorful, fun to interact with, and support all proper CSS states. Clients and agencies will tend to push for “cleaner” buttons - which most of the time refers to setting the buttons as simple underlined text items. Do not be brainwashed into thinking this is better:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/buttons.webp&quot; alt=&quot;Button Comparsion&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;You tell me what looks more interactive&amp;#8230;&lt;/p&gt;
-&lt;h3 id=&quot;3.-overriding-form-elements&quot;&gt;3. Overriding Form Elements&lt;/h3&gt;
-&lt;p&gt;Designers should rarely rebuild the browser structure for web form elements in their projects. I should clarify - I’m not suggesting that you use the barebones default styles provided by the browser, I’m saying that you shouldn’t hide the elements themselves just to replace them with mimicking components. I find this practice is becoming more and more noticeable with the growing popularity of component-based frameworks. Don’t fall into these bad design habits.&lt;/p&gt;
-&lt;p&gt;For example, you should leave the following &lt;code&gt;select&lt;/code&gt; element as is:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;select&amp;#62;
- &amp;#60;option&amp;#62;
-&amp;#60;&amp;#47;select&amp;#62;
+&lt;p&gt;That&amp;#8217;s it! Feel free to play with the demo some more at the top of the post, or check out the &lt;a href=&quot;https://codepen.io/bradleytaunt/pen/rXWEpy&quot;&gt;CodePen source directly&lt;/a&gt;.&lt;/p&gt;</description>
+ <link>https://btxx.org/dynamic-checkboxes</link>
+ <guid isPermaLink="false">https://btxx.org/dynamic-checkboxes</guid>
+ <pubDate>Tue, 30 Jul 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Easy Custom Radio Inputs</title>
+ <description>&lt;h1 id=&quot;easy-custom-radio-inputs&quot;&gt;Easy Custom Radio Inputs&lt;/h1&gt;
+&lt;p&gt;2019-01-21&lt;/p&gt;
+&lt;p&gt;Default radio inputs are notoriously horrible looking and are something designers tend to over-think when trying to customize them. Let&amp;#8217;s walk through how to create custom radio buttons with &lt;em&gt;pure CSS&lt;/em&gt;, while still preserving performance and accessibility.&lt;/p&gt;
+&lt;h2 id=&quot;the-final-product&quot;&gt;The Final Product&lt;/h2&gt;
+&lt;p&gt;This is what we will be designing:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/custom-radio-inputs.png&quot; alt=&quot;Custom radio inputs&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/oNjwMyX&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;hr/&gt;
+&lt;h2 id=&quot;the-bones-of-our-radio-inputs-html&quot;&gt;The bones of our radio inputs (HTML)&lt;/h2&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-1&quot; type=&quot;radio&quot;&amp;#62;
+&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-1&quot;&amp;#62;&amp;#60;span&amp;#62;I am very satisfied&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
+
+&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-2&quot; type=&quot;radio&quot;&amp;#62;
+&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-2&quot;&amp;#62;&amp;#60;span&amp;#62;I am satisfied&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
+
+&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-3&quot; type=&quot;radio&quot;&amp;#62;
+&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-3&quot;&amp;#62;&amp;#60;span&amp;#62;I am indifferent&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
+
+&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-4&quot; type=&quot;radio&quot;&amp;#62;
+&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-4&quot;&amp;#62;&amp;#60;span&amp;#62;I am unsatisfied&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
+
+&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-5&quot; type=&quot;radio&quot;&amp;#62;
+&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-5&quot;&amp;#62;&amp;#60;span&amp;#62;I am very unsatisfied&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Instead of doing something like this:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;select style=&quot;display:none;&quot;&amp;#62;&amp;#60;&amp;#47;select&amp;#62;
-&amp;#60;div class=&quot;custom-select-container&quot;&amp;#62;
- &amp;#60;span&amp;#62;Option&amp;#60;&amp;#47;span&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
+&lt;p&gt;I know it looks like a lot is going on here, but it&amp;#8217;s pretty straightforward so let&amp;#8217;s unpackage line by line:&lt;/p&gt;
+&lt;h3 id=&quot;radio-inputs&quot;&gt;Radio inputs&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-1&quot; type=&quot;radio&quot;&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;There are cleaner ways to customize web forms with straightforward CSS. Have a look at my own open source project &lt;a href=&quot;https://normform.netlify.com/&quot;&gt;Normform&lt;/a&gt; if you’d prefer to just use a lightweight plugin to do this for you. (Shameless plug, I know)&lt;/p&gt;
-&lt;h2 id=&quot;simple-can-be-good&quot;&gt;Simple Can Be Good&lt;/h2&gt;
-&lt;p&gt;Having a boring or lazy design thought-process doesn’t mean you should develop ugly UI for the sake of “simple”. Too often that word is associated with “minimalism” or “less content” and that is only half true.&lt;/p&gt;
-&lt;p&gt;The &lt;em&gt;experience&lt;/em&gt; is what needs to be simple for your users - the UI itself should still be beautiful.&lt;/p&gt;</description>
- <link>https://btxx.org/simple-does-not-mean-ugly</link>
- <guid isPermaLink="false">https://btxx.org/simple-does-not-mean-ugly</guid>
- <pubDate>Tue, 26 Mar 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Simple Accessibility</title>
- <description>&lt;h1 id=&quot;simple-accessibility&quot;&gt;Simple Accessibility&lt;/h1&gt;
-&lt;p&gt;2018-09-07&lt;/p&gt;
-&lt;p&gt;Implementing proper accessibility practices can seem a little daunting at first, but there are a few basic standards you can introduce into your project work-flow that are fairly straightforward:&lt;/p&gt;
-&lt;h2 id=&quot;basic-design&quot;&gt;Basic design&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Test that your project has the proper contrast color settings between type, backgrounds, icons etc.&lt;/li&gt;
-&lt;li&gt;Only use &amp;#8220;fancy&amp;#8221; grid-ordering for minor layout design - avoid rearranging important content via CSS&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;content&quot;&gt;Content&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Use proper HTML structures (aside, header, main, footer elements as needed)&lt;/li&gt;
-&lt;li&gt;Make use of the &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-label_attribute&quot;&gt;aria-label attribute&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Ensure your website&amp;#47;app can be navigated completely (and properly) with only a keyboard&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;images&quot;&gt;Images&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Avoid using CSS backgrounds for content images (should only be used for patterns, layout design etc.)&lt;/li&gt;
-&lt;li&gt;Ensure proper &lt;code&gt;alt&lt;/code&gt; attributes are provided on all images&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;It isn&amp;#8217;t much - but follow these basics and you&amp;#8217;ll be one step closer to providing better accessibility to your users.&lt;/p&gt;</description>
- <link>https://btxx.org/simple-accessibility</link>
- <guid isPermaLink="false">https://btxx.org/simple-accessibility</guid>
- <pubDate>Fri, 07 Sep 2018 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Shiny, Animated CSS Buttons</title>
- <description>&lt;h1 id=&quot;shiny-animated-css-buttons&quot;&gt;Shiny, Animated CSS Buttons&lt;/h1&gt;
-&lt;p&gt;2021-04-27&lt;/p&gt;
-&lt;p&gt;Everyone can appreciate fancy, animated buttons - but often times they come with a performance cost: &lt;em&gt;JavaScript&lt;/em&gt;. Luckily for us, we can create our very own shiny, animated buttons with pure CSS.&lt;/p&gt;
-&lt;h2 id=&quot;the-demo&quot;&gt;The Demo&lt;/h2&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/shiny-buttons.png&quot; alt=&quot;Four buttons that shine when hovered&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/oNBQevj&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;Nothing fancy going on here, just a set of &lt;code&gt;ahref&lt;/code&gt; elements with specific &lt;code&gt;button&lt;/code&gt; classes added:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;a href=&quot;#&quot; class=&quot;button green&quot;&amp;#62;&amp;#60;span&amp;#62;Green Button&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
-&amp;#60;a href=&quot;#&quot; class=&quot;button blue&quot;&amp;#62;&amp;#60;span&amp;#62;Blue Button&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
-&amp;#60;a href=&quot;#&quot; class=&quot;button orange&quot;&amp;#62;&amp;#60;span&amp;#62;Orange Button&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
-&amp;#60;a href=&quot;#&quot; class=&quot;button purple&quot;&amp;#62;&amp;#60;span&amp;#62;Purple Button&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+&lt;p&gt;This is the default &lt;code&gt;radio&lt;/code&gt; input. We give it:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;a &lt;code&gt;name&lt;/code&gt; (inputs with a shared &lt;code&gt;name&lt;/code&gt; are grouped together)&lt;/li&gt;
+&lt;li&gt;an &lt;code&gt;id&lt;/code&gt; (so our label can target this input)&lt;/li&gt;
+&lt;li&gt;a &lt;code&gt;class&lt;/code&gt; (so we can style it later)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: be sure to have a unique &lt;code&gt;id&lt;/code&gt; for each input so your labels don&amp;#8217;t end up connected to multiple radios. In this demo we are simply incrementing them by one.&lt;/p&gt;
+&lt;h3 id=&quot;labels&quot;&gt;Labels&lt;/h3&gt;
+&lt;p&gt;Adding the labels is fairly straightforward, we just include the corresponding input&amp;#8217;s &lt;code&gt;id&lt;/code&gt; in the label&amp;#8217;s &lt;code&gt;for&lt;/code&gt; attribute. The label content is wrapped in a &lt;code&gt;span&lt;/code&gt; - which I will explain the reasoning for later.&lt;/p&gt;
+&lt;p&gt;For styling purposes we also add the &lt;code&gt;radio-label&lt;/code&gt; class.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-1&quot;&amp;#62;&amp;#60;span&amp;#62;I am very satisfied&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;First we set the default base styling for all the buttons. We also place the inner text into &lt;code&gt;span&lt;/code&gt; elements (I will explain why in a little bit):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.button {
+&lt;p&gt;This is looking pretty terrible - but that&amp;#8217;s nothing some good ol&amp;#8217; CSS can&amp;#8217;t fix!&lt;/p&gt;
+&lt;h2 id=&quot;the-flesh-of-our-radio-inputs-css&quot;&gt;The flesh of our radio inputs (CSS)&lt;/h2&gt;
+&lt;p&gt;First we give some basic styling to our &lt;code&gt;label&lt;/code&gt; and &lt;code&gt;input&lt;/code&gt; classes (along with hover states). The &lt;code&gt;radio&lt;/code&gt; element is actually hidden from view, but by using the &lt;code&gt;visibility&lt;/code&gt; attribute we still keep it accessible for screen-readers.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.radio-label {
background: white;
- border: 1px solid #a5b1c2;
- border-radius: 6px;
- box-shadow: 0 4px 8px rgba(0,0,0,0.1);
- color: #111111;
+ border: 1px solid #eee;
+ border-radius: 5px;
+ box-shadow: 0 2px 4px rgba(0,0,0,0.05);
+ cursor: pointer;
display: inline-block;
- margin: 1rem auto;
- min-width: 180px;
- overflow: hidden;
- padding: 15px 30px;
+ font-weight: 600;
+ margin: 0 auto 10px;
+ &amp;#47;* This 65px padding makes room for the custom input *&amp;#47;
+ padding: 20px 20px 20px 65px;
position: relative;
- text-align: center;
- text-decoration: none;
- transition: .3s ease-in-out all;
+ transition: .3s ease all;
+ width: 100%;
}
-.button span {
- position: relative;
- z-index: 2;
+.radio-label:hover {
+ box-shadow: 0 4px 8px rgba(0,0,0,0.05);
+}
+.radio-btn {
+ position: absolute;
+ visibility: hidden;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now we need to create our &lt;em&gt;shiny&lt;/em&gt; element that will pass across the button on &lt;code&gt;hover&lt;/code&gt; or &lt;code&gt;focus&lt;/code&gt;. For this object we will use the &lt;code&gt;before&lt;/code&gt; pseudo element:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.button:before {
- background: linear-gradient(transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
+&lt;p&gt;Remember that &lt;code&gt;span&lt;/code&gt; element inside the label? We set it&amp;#8217;s &lt;code&gt;user-select&lt;/code&gt; property to &lt;code&gt;none&lt;/code&gt; so we avoid any possible issue with the user selecting the text on-click:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.radio-label span {
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ user-select: none;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Next we include the default empty selection element (to mimic the original radio input) via a pseudo element:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.radio-label:before {
+ background: #eee;
+ border-radius: 50%;
content:&amp;#39;&amp;#39;;
- height: 200%;
+ height: 30px;
+ left: 20px;
position: absolute;
- right: calc(100% + 20px);
- top: -55%;
- transform: rotate(-70deg);
- transition: .6s ease-in-out right;
- width: 80px;
- z-index: 0;
+ &amp;#47;* Half the height of it&amp;#39;s parent minus half of it&amp;#39;s own height *&amp;#47;
+ top: calc(50% - 15px);
+ transition: .3s ease background-color;
+ width: 30px;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next, we tell the &lt;code&gt;before&lt;/code&gt; element to swipe across the main &lt;code&gt;.button&lt;/code&gt; parent element when the user hovers or focuses on it. Remember placing our inner content into a &lt;code&gt;span&lt;/code&gt; element? That insures that our shiny&amp;#47;swipe element doesn&amp;#8217;t position itself &lt;em&gt;over&lt;/em&gt; the text, but instead flows under it:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.button:hover:before {
- right: -100%;
+&lt;h2 id=&quot;a-few-final-steps&quot;&gt;A Few Final Steps&lt;/h2&gt;
+&lt;p&gt;The final step is adding the custom styling for when an &lt;code&gt;input&lt;/code&gt; item is selected (&lt;code&gt;:checked&lt;/code&gt;).&lt;/p&gt;
+&lt;p&gt;You will notice the use of a &lt;code&gt;base64&lt;/code&gt; element for the custom checkmark - feel free to subsitute this for an actual image or none at all (this is just my personal design preference).&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.radio-btn:checked + .radio-label {
+ background: #ECF5FF;
+ border-color: #4A90E2;
}
-&amp;#47;* Extra visual styling for buttons on hover - optional *&amp;#47;
-.button:hover, button:focus {
- box-shadow: 0 8px 12px rgba(0,0,0,0.1), inset 0 10px 30px rgba(255,255,255,0.3), inset 0 2px 2px rgba(255,255,255,0.2);
- color: white;
+.radio-btn:checked + .radio-label:before {
+ background-color: #4A90E2;
+ background-image: url(&amp;#39;data:image&amp;#47;svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIyNiIgaGVpZ2h0PSIyMCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIyLjAyOTY4IC00MC4wOTAzIDI2IDIwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj48IS0tR2VuZXJhdGVkIGJ5IElKU1ZHIChodHRwczovL2dpdGh1Yi5jb20vaWNvbmphci9JSlNWRyktLT48cGF0aCBkPSJNMjcuOTc0MywtMzYuMTI3MmMwLDAuNDQ2NDI4IC0wLjE1NjI1LDAuODI1ODkzIC0wLjQ2ODc1LDEuMTM4MzlsLTEyLjEyMDUsMTIuMTIwNWwtMi4yNzY3OSwyLjI3Njc5Yy0wLjMxMjUsMC4zMTI1IC0wLjY5MTk2NCwwLjQ2ODc1IC0xLjEzODM5LDAuNDY4NzVjLTAuNDQ2NDI4LDAgLTAuODI1ODkzLC0wLjE1NjI1IC0xLjEzODM5LC0wLjQ2ODc1bC0yLjI3Njc5LC0yLjI3Njc5bC02LjA2MDI3LC02LjA2MDI3Yy0wLjMxMjUsLTAuMzEyNSAtMC40Njg3NSwtMC42OTE5NjUgLTAuNDY4NzUsLTEuMTM4MzljMCwtMC40NDY0MjkgMC4xNTYyNSwtMC44MjU4OTMgMC40Njg3NSwtMS4xMzgzOWwyLjI3Njc5LC0yLjI3Njc5YzAuMzEyNSwtMC4zMTI1IDAuNjkxOTY1LC0wLjQ2ODc1IDEuMTM4MzksLTAuNDY4NzVjMC40NDY0MjksMCAwLjgyNTg5MywwLjE1NjI1IDEuMTM4MzksMC40Njg3NWw0LjkyMTg4LDQuOTM4NjJsMTAuOTgyMSwtMTAuOTk4OWMwLjMxMjUsLTAuMzEyNSAwLjY5MTk2NCwtMC40Njg3NSAxLjEzODM5LC0wLjQ2ODc1YzAuNDQ2NDI4LDAgMC44MjU4OTMsMC4xNTYyNSAxLjEzODM5LDAuNDY4NzVsMi4yNzY3OCwyLjI3Njc5YzAuMzEyNSwwLjMxMjUgMC40Njg3NSwwLjY5MTk2NCAwLjQ2ODc1LDEuMTM4MzlaIiB0cmFuc2Zvcm09InNjYWxlKDEuMDAxOTgpIiBmaWxsPSIjZmZmIj48L3BhdGg+PC9zdmc+&amp;#39;);
+ background-repeat: no-repeat;
+ background-position: center;
+ background-size: 15px;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;All that&amp;#8217;s left is adding some visual flare to each individual button - in this case background-color and border-color:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.button.green:hover, button.green:focus { background: #20bf6b; border-color: #20bf6b; }
-.button.blue:hover, button.blue:focus { background: #0984e3; border-color: #0984e3; }
-.button.orange:hover, button.orange:focus { background: #ff793f; border-color: #ff793f; }
-.button.purple:hover, button.purple:focus { background: #6c5ce7; border-color: #6c5ce7; }
+&lt;p&gt;&lt;strong&gt;And that&amp;#8217;s it.&lt;/strong&gt;&lt;/p&gt;
+&lt;p&gt;For easier reference the entire CSS file can be found below:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.radio-label {
+ background: white;
+ border: 1px solid #eee;
+ border-radius: 5px;
+ box-shadow: 0 2px 4px rgba(0,0,0,0.05);
+ cursor: pointer;
+ display: inline-block;
+ font-weight: 600;
+ margin: 0 auto 10px;
+ padding: 20px 20px 20px 65px;
+ position: relative;
+ transition: .3s ease all;
+ width: 100%;
+}
+.radio-label:hover {
+ box-shadow: 0 4px 8px rgba(0,0,0,0.05);
+}
+.radio-label:before {
+ background: #eee;
+ border-radius: 50%;
+ content:&amp;#39;&amp;#39;;
+ height: 30px;
+ left: 20px;
+ position: absolute;
+ top: calc(50% - 15px);
+ transition: .3s ease background-color;
+ width: 30px;
+}
+.radio-label span {
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ user-select: none;
+}
+.radio-btn {
+ position: absolute;
+ visibility: hidden;
+}
+.radio-btn:checked + .radio-label {
+ background: #ECF5FF;
+ border-color: #4A90E2;
+}
+.radio-btn:checked + .radio-label:before {
+ background-color: #4A90E2;
+ background-image: url(&amp;#39;data:image&amp;#47;svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIyNiIgaGVpZ2h0PSIyMCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIyLjAyOTY4IC00MC4wOTAzIDI2IDIwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj48IS0tR2VuZXJhdGVkIGJ5IElKU1ZHIChodHRwczovL2dpdGh1Yi5jb20vaWNvbmphci9JSlNWRyktLT48cGF0aCBkPSJNMjcuOTc0MywtMzYuMTI3MmMwLDAuNDQ2NDI4IC0wLjE1NjI1LDAuODI1ODkzIC0wLjQ2ODc1LDEuMTM4MzlsLTEyLjEyMDUsMTIuMTIwNWwtMi4yNzY3OSwyLjI3Njc5Yy0wLjMxMjUsMC4zMTI1IC0wLjY5MTk2NCwwLjQ2ODc1IC0xLjEzODM5LDAuNDY4NzVjLTAuNDQ2NDI4LDAgLTAuODI1ODkzLC0wLjE1NjI1IC0xLjEzODM5LC0wLjQ2ODc1bC0yLjI3Njc5LC0yLjI3Njc5bC02LjA2MDI3LC02LjA2MDI3Yy0wLjMxMjUsLTAuMzEyNSAtMC40Njg3NSwtMC42OTE5NjUgLTAuNDY4NzUsLTEuMTM4MzljMCwtMC40NDY0MjkgMC4xNTYyNSwtMC44MjU4OTMgMC40Njg3NSwtMS4xMzgzOWwyLjI3Njc5LC0yLjI3Njc5YzAuMzEyNSwtMC4zMTI1IDAuNjkxOTY1LC0wLjQ2ODc1IDEuMTM4MzksLTAuNDY4NzVjMC40NDY0MjksMCAwLjgyNTg5MywwLjE1NjI1IDEuMTM4MzksMC40Njg3NWw0LjkyMTg4LDQuOTM4NjJsMTAuOTgyMSwtMTAuOTk4OWMwLjMxMjUsLTAuMzEyNSAwLjY5MTk2NCwtMC40Njg3NSAxLjEzODM5LC0wLjQ2ODc1YzAuNDQ2NDI4LDAgMC44MjU4OTMsMC4xNTYyNSAxLjEzODM5LDAuNDY4NzVsMi4yNzY3OCwyLjI3Njc5YzAuMzEyNSwwLjMxMjUgMC40Njg3NSwwLjY5MTk2NCAwLjQ2ODc1LDEuMTM4MzlaIiB0cmFuc2Zvcm09InNjYWxlKDEuMDAxOTgpIiBmaWxsPSIjZmZmIj48L3BhdGg+PC9zdmc+&amp;#39;);
+ background-repeat: no-repeat;
+ background-position: center;
+ background-size: 15px;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;browser-support&quot;&gt;Browser Support&lt;/h2&gt;
-&lt;p&gt;These buttons work across all browsers flawlessly. See the details &lt;a href=&quot;https://caniuse.com/css-gencontent&quot;&gt;on the caniuse report itself&lt;/a&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;the-live-codepen&quot;&gt;The Live CodePen&lt;/h2&gt;
-&lt;p&gt;You can find the live demo embedded at the top of this post, or &lt;a href=&quot;https://codepen.io/bradleytaunt/pen/oNBQevj&quot;&gt;directly on CodePen here&lt;/a&gt;.&lt;/p&gt;</description>
- <link>https://btxx.org/shiny-css-buttons</link>
- <guid isPermaLink="false">https://btxx.org/shiny-css-buttons</guid>
- <pubDate>Tue, 27 Apr 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>This Site is Now a Shinobi Website</title>
- <description>&lt;h1 id=&quot;this-site-is-now-a-shinobi-website&quot;&gt;This Site is Now a Shinobi Website&lt;/h1&gt;
-&lt;p&gt;2022-05-13&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Update 2023&lt;/strong&gt;: this website is now built with &lt;a href=&quot;https://barf.bt.ht&quot;&gt;barf&lt;/a&gt;&lt;/p&gt;
&lt;hr/&gt;
-&lt;p&gt;My personal website is now an RSS-focused blog, generated from a collection of plain text files.&lt;/p&gt;
-&lt;p&gt;But before we get into greater details about the switch, let me first introduce the concept of a &amp;#8220;shinobi website&amp;#8221;.&lt;/p&gt;
-&lt;h2 id=&quot;the-shinobi-website-project&quot;&gt;The Shinobi Website Project&lt;/h2&gt;
-&lt;p&gt;Instead of repeating myself in this post, feel free to read up about the project at the official site:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://shinobi.bt.ht&quot;&gt;https:&amp;#47;&amp;#47;shinobi.bt.ht&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;To summarize: by using a simple &lt;code&gt;shell&lt;/code&gt; script I&amp;#8217;m able to render all my plain text files (which is now how I solely write my articles) into a structured RSS 2.0 &lt;code&gt;xml&lt;/code&gt; file. Subscribers can now consume my posts directly in their RSS reader of choice without the need to directly visit the article&amp;#8217;s URL.[^0]&lt;/p&gt;
-&lt;h2 id=&quot;why-the-change&quot;&gt;Why the Change?&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;m a hardcore minimalist at heart and have a tendency to make my own personal projects &lt;em&gt;leaner&lt;/em&gt; all the time. I also have been trying my best to find the most refined writing workflow to keep myself posting consistently (and hopefully keeping the quality high). My first iteration towards this step was switching over to hand-coding everything via HTML &amp;#38; CSS[^1]. That worked well - for a very brief time.&lt;/p&gt;
-&lt;p&gt;After recently launching the Shinobi project, I kept toying with the idea of switching my personal website over to use the same format. There was a heavy internal debate about ditching HTML in favour of plain text. What kind of impact would this have on both my site and audience? Would people be pissed about yet &lt;em&gt;another&lt;/em&gt; radical change?&lt;/p&gt;
-&lt;p&gt;After sleeping on it for a couple nights, I decide to say screw it. This is my personal website and it should ultimately reflect who I am and what I prefer. Dwelling too long on the opinion of others (as much as I respect any of you kind enough to follow along) can lead to decisions that negatively impact ones own well being.&lt;/p&gt;
-&lt;p&gt;So here we are. Blogging in plain text.&lt;/p&gt;
-&lt;h2 id=&quot;avoiding-link-rot&quot;&gt;Avoiding Link-Rot&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve manually added this blog post to my original &lt;code&gt;feed.xml&lt;/code&gt;, in order to help inform those of you following that feed of this change. But this will be the last entry of that feed.&lt;/p&gt;
-&lt;p&gt;If you decide not to re-sub, I completely understand and thank you for your time! Those of you choosing to still follow along: welcome aboard a new adventure!&lt;/p&gt;
-&lt;p&gt;As for the older HTML-based articles, no worries. They will remain on this site under the standard &lt;code&gt;blog&lt;/code&gt; directory so that old links don&amp;#8217;t break or cause conflicts. You can find that directory here:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://tdarb.org/feeds/posts.xml&quot;&gt;https:&amp;#47;&amp;#47;tdarb.org&amp;#47;feeds&amp;#47;posts.xml&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;tutorials-and-demos&quot;&gt;Tutorials and Demos&lt;/h2&gt;
-&lt;p&gt;I will still be writing up detailed tutorials and interactive demos going forward - no need to worry. My plan is to link directly to a collaborative coding site like CodePen, etc. I haven&amp;#8217;t decided on the best option yet (want to keep things as easy for my readers as possible) so only time will tell what my decision will be.&lt;/p&gt;
-&lt;p&gt;Feel free to comment below if you have any suggestions! Preferably one that respects user privacy and advocates for a more open web.&lt;/p&gt;
-&lt;h2 id=&quot;speaking-of-comments&quot;&gt;Speaking of Comments&amp;#8230;&lt;/h2&gt;
-&lt;p&gt;Since the old commenting system[^2] required me to manually add each comment individually, I assumed I would just do the same here. Then I got a hack-y idea. What if I used a mailing list linked through this website&amp;#8217;s sourcehut project?&lt;/p&gt;
-&lt;p&gt;It might not be the most user friendly or sustainable but I think it could be an interesting experiment at the very least!&lt;/p&gt;
-&lt;p&gt;Now each new article will have a link (which I will generate manually) that users can email directly to in order to share their comments. I have no idea how spam will work with this concept. This whole idea could blow up in my face. Only time will tell.&lt;/p&gt;
-&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
-&lt;p&gt;This workflow is clean and simple. It allows me to open a blank text file and instantly start writing. Once I&amp;#8217;m happy with it, I run a simple shell command to update the RSS feed and sync it with my web server. Local testing is dead simple too since everything is set as &lt;code&gt;.txt&lt;/code&gt;.&lt;/p&gt;
-&lt;p&gt;Some may like the concept of reading my new articles in their RSS reader, others might hate it. I&amp;#8217;ve learned over the years that you can&amp;#8217;t please everyone.&lt;/p&gt;
-&lt;p&gt;Thanks for taking the time to read my jumbled thoughts.&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Users can &lt;em&gt;of course&lt;/em&gt; still visit the individual article &lt;code&gt;.txt&lt;/code&gt; files in their browser, if they so wish.&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://tdarb.org/blog/my-static-blog-publishing-setup.html&quot;&gt;https:&amp;#47;&amp;#47;tdarb.org&amp;#47;blog&amp;#47;my-static-blog-publishing-setup.html&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://tdarb.org/blog/poormans-comment-system.html&quot;&gt;https:&amp;#47;&amp;#47;tdarb.org&amp;#47;blog&amp;#47;poormans-comment-system.html&lt;/a&gt;&lt;/li&gt;
-&lt;/ol&gt;</description>
- <link>https://btxx.org/shinobi-website</link>
- <guid isPermaLink="false">https://btxx.org/shinobi-website</guid>
- <pubDate>Fri, 13 May 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Sharing The Things We Use</title>
- <description>&lt;h1 id=&quot;sharing-the-things-we-use&quot;&gt;Sharing The Things We Use&lt;/h1&gt;
-&lt;p&gt;2021-07-24&lt;/p&gt;
-&lt;p&gt;I always love stumbling across personal websites that include some form of a &amp;#8220;uses&amp;#8221; page. A place where the author lists out all the tools they use on a regular basis - whether it be hardware, software or something else entirely. It allows readers to get a slightly more personal peek into the daily work-life of that author and maybe even provides better context for &lt;em&gt;how&lt;/em&gt; they work.&lt;/p&gt;
-&lt;p&gt;Since I realized how much I enjoy reading other people&amp;#8217;s &lt;em&gt;uses&lt;/em&gt; pages, I&amp;#8217;ve decided to finally publish my own! My list of hardware and software is fairly boring and predictable for a designer&amp;#47;developer - but sharing is caring! My hope is that even one personal out in the great-wide web can find something useful (pun intended!) or least inspiring about my personal setup.&lt;/p&gt;
-&lt;p&gt;Fell free to check it out: &lt;a href=&quot;/uses&quot;&gt;The Things I Use&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;PS. I plan to add a desktop picture of my complete setup once I find the time!&lt;/em&gt;&lt;/p&gt;</description>
- <link>https://btxx.org/sharing-the-things-we-use</link>
- <guid isPermaLink="false">https://btxx.org/sharing-the-things-we-use</guid>
- <pubDate>Sat, 24 Jul 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Blogging for 7 Years</title>
- <description>&lt;h1 id=&quot;blogging-for-7-years&quot;&gt;Blogging for 7 Years&lt;/h1&gt;
-&lt;p&gt;2023-06-24&lt;/p&gt;
-&lt;p&gt;My &lt;a href=&quot;/aui&quot;&gt;first public article&lt;/a&gt; was posted on June 28th 2016. That was &lt;em&gt;seven&lt;/em&gt; years ago.&lt;/p&gt;
-&lt;p&gt;In that time, quite a lot has changed in my life both personally and professionally. So, I figured it would be interesting to reflect on these years and document it for my own personal records. My hope is that this is something I could start doing every 5 or 10 years (if I can keep going that long!). This way, my blog also serves as a &amp;#8220;time capsule&amp;#8221; or museum of the past&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;fun-facts&quot;&gt;Fun Facts&lt;/h2&gt;
-&lt;p&gt;&lt;strong&gt;This Blog&lt;/strong&gt;:&lt;/p&gt;
-&lt;p&gt;I originally started blogging on &lt;code&gt;bradleytaunt.com&lt;/code&gt; using WordPress, but since then I have changed both my main domain and blog infrastructure multiple times. At a glance I have used:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Jekyll&lt;/li&gt;
-&lt;li&gt;Hugo&lt;/li&gt;
-&lt;li&gt;Blot&lt;/li&gt;
-&lt;li&gt;Static HTML&amp;#47;CSS&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://phpetite.bt.ht&quot;&gt;PHPetite&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://shinobi.bt.ht&quot;&gt;Shinobi&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://pblog.bt.ht&quot;&gt;pblog&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://barf.bt.ht&quot;&gt;barf&lt;/a&gt; &lt;em&gt;Currently using!&lt;/em&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;&lt;strong&gt;Personal:&lt;/strong&gt;&lt;/p&gt;
-&lt;p&gt;As with anyone over time, the personal side of my life has seen the biggest &lt;em&gt;updates&lt;/em&gt;:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Married the love of my life (after knowing each other for ~14 years!)&lt;/li&gt;
-&lt;li&gt;Moved out into rural Ontario for some peace and quiet&lt;/li&gt;
-&lt;li&gt;Had three wonderful kids with said wife (two boys and a girl)&lt;/li&gt;
-&lt;li&gt;Started noticing grey sprinkles in my stubble (I guess I can officially call myself a &amp;#8220;grey beard&amp;#8221;?)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;&lt;strong&gt;Professionally:&lt;/strong&gt;&lt;/p&gt;
+&lt;h2 id=&quot;but-wait---we-can-get-even-fancier&quot;&gt;But wait - we can get even fancier!&lt;/h2&gt;
+&lt;p&gt;Since this demo is based off a survey-type questionaire, wouldn&amp;#8217;t it be interesting to give the different selectable options their own styling based on their context? Take a look at the further customized version below:&lt;/p&gt;
+&lt;p&gt;We can do so by adding &lt;code&gt;positive&lt;/code&gt;, &lt;code&gt;neutral&lt;/code&gt; and &lt;code&gt;negative&lt;/code&gt; class names to the radio inputs with their own respective properties:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.radio-btn.positive:checked + .radio-label {
+ background: #EAFFF6;
+ border-color: #32B67A;
+}
+.radio-btn.positive:checked + .radio-label:before {
+ background-color: #32B67A;
+}
+.radio-btn.neutral:checked + .radio-label:before {
+ background-image: url(&amp;#39;data:image&amp;#47;svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAtMTUgMzAgOC41NzE0MyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PCEtLUdlbmVyYXRlZCBieSBJSlNWRyAoaHR0cHM6Ly9naXRodWIuY29tL2ljb25qYXIvSUpTVkcpLS0+PHBhdGggZD0iTTMwLC0xMi4zMjE0djMuMjE0MjljMCwwLjczNjYwNyAtMC4yNjIyNzcsMS4zNjcxOSAtMC43ODY4MywxLjg5MTc0Yy0wLjUyNDU1NCwwLjUyNDU1NCAtMS4xNTUxMywwLjc4NjgzMSAtMS44OTE3NCwwLjc4NjgzMWgtMjQuNjQyOWMtMC43MzY2MDcsMCAtMS4zNjcxOSwtMC4yNjIyNzcgLTEuODkxNzQsLTAuNzg2ODMxYy0wLjUyNDU1MywtMC41MjQ1NTMgLTAuNzg2ODMsLTEuMTU1MTMgLTAuNzg2ODMsLTEuODkxNzR2LTMuMjE0MjljMCwtMC43MzY2MDcgMC4yNjIyNzcsLTEuMzY3MTkgMC43ODY4MywtMS44OTE3NGMwLjUyNDU1NCwtMC41MjQ1NTMgMS4xNTUxMywtMC43ODY4MyAxLjg5MTc0LC0wLjc4NjgzaDI0LjY0MjljMC43MzY2MDcsMCAxLjM2NzE5LDAuMjYyMjc3IDEuODkxNzQsMC43ODY4M2MwLjUyNDU1MywwLjUyNDU1NCAwLjc4NjgzLDEuMTU1MTMgMC43ODY4MywxLjg5MTc0WiIgZmlsbD0iI2ZmZiI+PC9wYXRoPjwvc3ZnPg==&amp;#39;);
+}
+.radio-btn.negative:checked + .radio-label {
+ background: #FFF2F2;
+ border-color: #E75153;
+}
+.radio-btn.negative:checked + .radio-label:before {
+ background-color: #E75153;
+ background-image: url(&amp;#39;data:image&amp;#47;svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIxLjg1MTg1IC0zOS42OTcgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjwhLS1HZW5lcmF0ZWQgYnkgSUpTVkcgKGh0dHBzOi8vZ2l0aHViLmNvbS9pY29uamFyL0lKU1ZHKS0tPjxwYXRoIGQ9Ik0yMS43Mjk5LC0yMy40NzFjMCwwLjQ0NjQyOCAtMC4xNTYyNSwwLjgyNTg5MyAtMC40Njg3NSwxLjEzODM5bC0yLjI3Njc5LDIuMjc2NzljLTAuMzEyNSwwLjMxMjUgLTAuNjkxOTY0LDAuNDY4NzUgLTEuMTM4MzksMC40Njg3NWMtMC40NDY0MjgsMCAtMC44MjU4OTMsLTAuMTU2MjUgLTEuMTM4MzksLTAuNDY4NzVsLTQuOTIxODcsLTQuOTIxODhsLTQuOTIxODgsNC45MjE4OGMtMC4zMTI1LDAuMzEyNSAtMC42OTE5NjQsMC40Njg3NSAtMS4xMzgzOSwwLjQ2ODc1Yy0wLjQ0NjQyOCwwIC0wLjgyNTg5MiwtMC4xNTYyNSAtMS4xMzgzOSwtMC40Njg3NWwtMi4yNzY3OSwtMi4yNzY3OWMtMC4zMTI1LC0wLjMxMjUgLTAuNDY4NzUsLTAuNjkxOTY1IC0wLjQ2ODc1LC0xLjEzODM5YzAsLTAuNDQ2NDI5IDAuMTU2MjUsLTAuODI1ODkzIDAuNDY4NzUsLTEuMTM4MzlsNC45MjE4OCwtNC45MjE4OGwtNC45MjE4OCwtNC45MjE4OGMtMC4zMTI1LC0wLjMxMjUgLTAuNDY4NzUsLTAuNjkxOTY0IC0wLjQ2ODc1LC0xLjEzODM5YzAsLTAuNDQ2NDI4IDAuMTU2MjUsLTAuODI1ODkzIDAuNDY4NzUsLTEuMTM4MzlsMi4yNzY3OSwtMi4yNzY3OGMwLjMxMjUsLTAuMzEyNSAwLjY5MTk2NCwtMC40Njg3NSAxLjEzODM5LC0wLjQ2ODc1YzAuNDQ2NDI5LDAgMC44MjU4OTMsMC4xNTYyNSAxLjEzODM5LDAuNDY4NzVsNC45MjE4OCw0LjkyMTg4bDQuOTIxODcsLTQuOTIxODhjMC4zMTI1LC0wLjMxMjUgMC42OTE5NjUsLTAuNDY4NzUgMS4xMzgzOSwtMC40Njg3NWMwLjQ0NjQyOSwwIDAuODI1ODkzLDAuMTU2MjUgMS4xMzgzOSwwLjQ2ODc1bDIuMjc2NzksMi4yNzY3OGMwLjMxMjUsMC4zMTI1IDAuNDY4NzUsMC42OTE5NjUgMC40Njg3NSwxLjEzODM5YzAsMC40NDY0MjkgLTAuMTU2MjUsMC44MjU4OTMgLTAuNDY4NzUsMS4xMzgzOWwtNC45MjE4OCw0LjkyMTg4bDQuOTIxODgsNC45MjE4OGMwLjMxMjUsMC4zMTI1IDAuNDY4NzUsMC42OTE5NjQgMC40Njg3NSwxLjEzODM5WiIgdHJhbnNmb3JtPSJzY2FsZSgxLjAwNTYxKSIgZmlsbD0iI2ZmZiI+PC9wYXRoPjwvc3ZnPg==&amp;#39;);
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;I hope this shows new designers that simple custom radio inputs aren&amp;#8217;t so hard to implement after-all and can actually be pretty fun to design.&lt;/p&gt;</description>
+ <link>https://btxx.org/easy-custom-radio-inputs</link>
+ <guid isPermaLink="false">https://btxx.org/easy-custom-radio-inputs</guid>
+ <pubDate>Mon, 21 Jan 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Easy Toggle Switches</title>
+ <description>&lt;h1 id=&quot;easy-toggle-switches&quot;&gt;Easy Toggle Switches&lt;/h1&gt;
+&lt;p&gt;2019-02-18&lt;/p&gt;
+&lt;p&gt;Sometimes there is a need to use toggle elements in-place of the default &lt;code&gt;checkbox&lt;/code&gt; inputs. The problem is, I tend to see a lot of developers reaching for plugins or JavaScript components in order to implement these toggles.&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;This is overkill&lt;/em&gt;. You can create your own custom &lt;code&gt;input&lt;/code&gt; elements to mimic toggles perfectly with just a small amount of CSS.&lt;/p&gt;
+&lt;h2 id=&quot;what-we-will-be-building&quot;&gt;What we will be building&lt;/h2&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/easy-toggle-switches.png&quot; alt=&quot;Easy toggle switches&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/bGgbajY&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;p&gt;The build structure for these toggles is really simple, we only need:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Pivoted heavily into UX research and design for a handful of years (after working mostly with web front-ends)&lt;/li&gt;
-&lt;li&gt;Recently switched back into a more fullstack development role to challenge myself and learn more&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;a parent container to hold all our corresponding elements&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;a checkbox &lt;code&gt;input&lt;/code&gt; element (which we will hide)&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;an empty label designed to represent the slider&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;a text label that references the &lt;code&gt;input&lt;/code&gt; &lt;/p&gt;
+&lt;p&gt;&amp;#47;* Main toggle parent container &lt;em&gt;&amp;#47;
+
+ &amp;#47;&lt;/em&gt; Checkbox input, hidden with CSS &lt;em&gt;&amp;#47;
+
+ &amp;#47;&lt;/em&gt; The toggle slider element &lt;em&gt;&amp;#47;
+
+ &amp;#47;&lt;/em&gt; The text label to the right of the slider *&amp;#47;
+ Toggle Switch
+&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;nothing-special&quot;&gt;Nothing Special&lt;/h2&gt;
-&lt;p&gt;This post isn&amp;#8217;t anything ground-breaking but for me it&amp;#8217;s nice to reflect on the time passed and remember how much can change in such little time. Hopefully I&amp;#8217;ll be right back here in another 7 years and maybe you&amp;#8217;ll still be reading along with me!&lt;/p&gt;</description>
- <link>https://btxx.org/seven-years</link>
- <guid isPermaLink="false">https://btxx.org/seven-years</guid>
- <pubDate>Sat, 24 Jun 2023 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Setting Up a Free SSL</title>
- <description>&lt;h1 id=&quot;setting-up-a-free-ssl&quot;&gt;Setting Up a Free SSL&lt;/h1&gt;
-&lt;p&gt;2018-08-07&lt;/p&gt;
-&lt;p&gt;I never had to worry about SSL certificates when I originally hosted my blog through Github Pages, but since switching over to Surge.sh I lost my ability to utilize &lt;code&gt;https&lt;/code&gt; protocol.&lt;/p&gt;
-&lt;p&gt;Luckily, Cloudflare offers a very simple way to implement SSL on your website - and it&amp;#8217;s free!&lt;/p&gt;
-&lt;h3 id=&quot;ssl-in-3-easy-steps&quot;&gt;SSL in 3 easy steps&lt;/h3&gt;
-&lt;ol&gt;
-&lt;li&gt;You will need to have a Cloudflare account - you can setup one here. Be sure to select the &amp;#8216;Free&amp;#8217; pricing plan (unless you want some extras features)&lt;/li&gt;
-&lt;li&gt;Follow the process on updating your nameservers to the proper Cloudflare servers and wait for your domain to update the changes. (This can take up to 24 hours)&lt;/li&gt;
-&lt;li&gt;From the main Cloudflare dashboard navigate to the Crypto tab. Then under the SSL section, select &amp;#8220;Flexible&amp;#8221; from the dropdown.&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h3 id=&quot;enjoy-your-newly-secure-site&quot;&gt;Enjoy your newly secure site&lt;/h3&gt;
-&lt;p&gt;That&amp;#8217;s it! Give it a bit of time and soon your website will support &lt;code&gt;https&lt;/code&gt; and best of all it costs you nothing!&lt;/p&gt;
-&lt;p&gt;I suggest checking out the other interesting features Cloudflare offers while your playing with the dashboard as well. They have a lot of impressive options that can really improve the overall performance of your site &amp;#47; web app.&lt;/p&gt;</description>
- <link>https://btxx.org/setting-up-free-ssl</link>
- <guid isPermaLink="false">https://btxx.org/setting-up-free-ssl</guid>
- <pubDate>Tue, 07 Aug 2018 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Self-Hosting Fathom Analytics with DigitalOcean</title>
- <description>&lt;h1 id=&quot;self-hosting-fathom-analytics-with-digitalocean&quot;&gt;Self-Hosting Fathom Analytics with DigitalOcean&lt;/h1&gt;
-&lt;p&gt;2021-02-02&lt;/p&gt;
-&lt;p&gt;Since my previous post walked through the process of setting up Fathom PRO on Netlify, I figured it made sense to create a similar tutorial for the &amp;#8220;Lite&amp;#8221; variation, self-hosted on DigitalOcean.&lt;/p&gt;
-&lt;p&gt;Please note that while I think the PRO version of Fathom Analytics is truly great, for my small, niche blog it seemed overkill compared to self-hosting. Switching over from $14&amp;#47;mo to $5&amp;#47;mo while retaining most of the same functionality was a no-brainer. Choose the option that best suits your needs (or in the case - budget &amp;#38; bandwidth).&lt;/p&gt;
-&lt;p&gt;With that cleared up - let&amp;#8217;s get into it!&lt;/p&gt;
-&lt;h2 id=&quot;prerequisites&quot;&gt;Prerequisites&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;One or more website(s) where you would like to include analytics&lt;/li&gt;
-&lt;li&gt;DigitalOcean account (&lt;strong&gt;this link will give you a $100 credit!&lt;/strong&gt;)&lt;/li&gt;
-&lt;li&gt;Positive attitude and passion for privacy-respecting analytics!&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;create-a-droplet&quot;&gt;Create a Droplet&lt;/h2&gt;
-&lt;p&gt;Once your DigitalOcean account is setup, navigate to the Marketplace and search for &lt;code&gt;Fathom Analytics&lt;/code&gt;. Then click the &lt;code&gt;Create Fathom Analytics Droplet&lt;/code&gt;.&lt;/p&gt;
-&lt;p&gt;From here you&amp;#8217;ll be brought to a page that allows you to customize the specifications of your new droplet. If you&amp;#8217;re a smaller traffic site (personal blog, etc) selecting the &lt;strong&gt;$5&amp;#47;month&lt;/strong&gt; Basic Shared CPU option is your best bet.&lt;/p&gt;
-&lt;p&gt;Select the data-center region based on where most of your traffic originates from. I would suggest enabling &lt;code&gt;IPv6&lt;/code&gt; and setting up your authentication via SSH instead of a regular password system. Adding backups is entirely at your own discretion.&lt;/p&gt;
-&lt;p&gt;Once you&amp;#8217;re ready, click &lt;strong&gt;Create Droplet&lt;/strong&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;enter-the-matrix-not-really&quot;&gt;Enter the Matrix (not really)&lt;/h2&gt;
-&lt;p&gt;Once DigitalOcean finishes spinning up your new droplet, open a terminal and connect to it by entering:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;ssh root@YOUR_DROPLET_IP
+&lt;p&gt;And that&amp;#8217;s everything we need for the HTML.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;ProTip:&lt;/strong&gt; Don&amp;#8217;t forget to increment both the &lt;code&gt;id&lt;/code&gt; and &lt;code&gt;for&lt;/code&gt; attributes when adding additional toggles. This seems like a no-brainer but it&amp;#8217;s overlooked more than you think.&lt;/p&gt;
+&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
+&lt;p&gt;To get things started we will add the styling to the &lt;code&gt;.toggle-switch&lt;/code&gt; item directly (using &lt;code&gt;flexbox&lt;/code&gt; in this demo for easier layout).&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Sidenote&lt;/strong&gt;: You will notice the inclusion of CSS variables in this demo - if you are unfamiliar with how to use root variables in CSS, take a look at one of my previous posts: CSS variables.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;:root {
+ --primary-color: #4A90E2;
+}
+
+.toggle-switch {
+ align-items: center;
+ display: flex;
+ font-size: 14px;
+ justify-content: center;
+ margin: 20px 0;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If you setup your login via SSH everything should work as-is. If you went the password route, you&amp;#8217;ll given a prompt to enter it.&lt;/p&gt;
-&lt;p&gt;Now that you&amp;#8217;re connected, Fathom will guide you through a simple configuration setup. It&amp;#8217;s fairly straightforward and painless. Once complete, move to the next step.&lt;/p&gt;
-&lt;h2 id=&quot;domains&quot;&gt;Domains&lt;/h2&gt;
-&lt;p&gt;You&amp;#8217;ll most likely want to host this instance on your own domain or subdomain - instead of connecting directly via the droplet&amp;#8217;s &lt;code&gt;IP&lt;/code&gt;. Head over to your &lt;strong&gt;Networking&lt;/strong&gt; page in the sidebar of DigitalOcean and add your custom domain.&lt;/p&gt;
-&lt;p&gt;Then, click on that newly added domain - we need to add some new records. You&amp;#8217;re going to add two new &lt;code&gt;A&lt;/code&gt; records to this domain:&lt;/p&gt;
-&lt;p&gt;The last thing you need to do is set your nameservers to point to DigitalOcean:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;ns1.digitalocean.com
-ns2.digitalocean.com
-ns3.digitalocean.com
+&lt;p&gt;Next we will hide the default browser checkbox element since we won&amp;#8217;t be needing it:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.toggle-input {
+ position: absolute;
+ visibility: hidden;
+ z-index: -1;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Give it some time to propagate and you&amp;#8217;ll be in business!&lt;/p&gt;
-&lt;h2 id=&quot;ssl-ftw&quot;&gt;SSL FTW&lt;/h2&gt;
-&lt;p&gt;There is hardly a good reason not to practice security on the web, so setting up your new analytics to be served over &lt;code&gt;HTTPS&lt;/code&gt; is just the smart thing to do. Did I mention that this is completely free as well? See - no excuses.&lt;/p&gt;
-&lt;p&gt;In order to get a free SSL certificate setup, you&amp;#8217;ll need to install &lt;code&gt;certbot&lt;/code&gt;. While connected to your droplet, enter the following:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo apt-get install python-certbot-nginx
+&lt;p&gt;Let&amp;#8217;s also add some base styling for the &lt;code&gt;label&lt;/code&gt; containing the text corresponding to it&amp;#8217;s &lt;code&gt;input&lt;/code&gt; sibling:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.toggle-label {
+ color: #ccc;
+ cursor: pointer;
+ font-weight: bold;
+ padding-left: 10px;
+ text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
+ transition: ease all .3s;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Once installed, enter the following to setup SSL (remember to swap out the domain with your own):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;certbot --nginx -d your-cool-domain.com
+&lt;p&gt;Now we target the &lt;code&gt;.toggle-slider&lt;/code&gt; label and add the styling for the main slider base:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* This is just the main slider base *&amp;#47;
+.toggle-slider {
+ background: #eee;
+ border-radius: 9999px;
+ box-shadow: inset 0 2px 4px rgba(0,0,0,0.1),
+ inset 0 4px 8px rgba(0,0,0,0.1),
+ 0 1px 1px rgba(255,255,255,1);
+ cursor: pointer;
+ display: inline-block;
+ height: 20px;
+ position: relative;
+ transition: all ease .3s;
+ width: 40px;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Follow the steps (it&amp;#8217;s very quick and easy) and you&amp;#8217;ll have &lt;code&gt;HTTPS&lt;/code&gt; setup in a jiffy!&lt;/p&gt;
-&lt;h2 id=&quot;the-final-lap&quot;&gt;The Final Lap&lt;/h2&gt;
-&lt;p&gt;The last thing to do is login to your newly self-hosted Fathom instance, add your site you wish to track, grab the generated tracking code and then slap that badboy on whatever pages you need to track!&lt;/p&gt;
-&lt;p&gt;Congrats! You&amp;#8217;re now officially running your own set of analytics tools. You should be happy about what you&amp;#8217;ve accomplished and proud for respecting your users&amp;#8217; privacy!&lt;/p&gt;</description>
- <link>https://btxx.org/self-hosting-fathom</link>
- <guid isPermaLink="false">https://btxx.org/self-hosting-fathom</guid>
- <pubDate>Tue, 02 Feb 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>What Happened to Self-Hosted Blogs?</title>
- <description>&lt;h1 id=&quot;what-happened-to-self-hosted-blogs&quot;&gt;What Happened to Self-Hosted Blogs?&lt;/h1&gt;
-&lt;p&gt;2018-10-18&lt;/p&gt;
-&lt;p&gt;I remember a time on the internet1 when everyone and their grandmother was running a personal blog. And I mean &lt;em&gt;personal&lt;/em&gt; - not hosted on some side platform or a tacked-on addition to the rest of their website.&lt;/p&gt;
-&lt;p&gt;Nowadays companies and individuals alike use platforms like Medium to host and promote all of their articles, essays and case studies. I understand the draw, and can even list out the positives:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;A large community already exists under the Medium brand&lt;/li&gt;
-&lt;li&gt;It&amp;#8217;s easy to promote your own work and follow others&lt;/li&gt;
-&lt;li&gt;The platform is fairly easy to setup and implement&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;Unfortunately this has had a pretty severe impact on the blogging community as a whole - no one controls their own blogs anymore. I remember when finding a new blog was an interesting and fun experience:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;how did they decide to layout the page design?&lt;/li&gt;
-&lt;li&gt;what typefaces have they decided to use?&lt;/li&gt;
-&lt;li&gt;what back-end are they using?&lt;/li&gt;
-&lt;li&gt;how does it look and feel on mobile?&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;These custom self-hosted blogs inspired other developers and designers to create their own blogs or tweak current ones. In a way it was a small factor in pushing what we could do on the web further and further, as designers engaged in friendly competition trying to one-up each others&amp;#8217; creations.&lt;/p&gt;
-&lt;p&gt;I also believe this inspired people to write better content instead of opting for clickbait garbage in order to get &amp;#8220;featured&amp;#8221; or boosted promotion on the main blogging platform. But I don&amp;#8217;t even think that&amp;#8217;s the worst to come of this mass-migration to a singular blogging platform.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;All2 blogs look identical now.&lt;/strong&gt; I&amp;#8217;m not sure if that was Medium&amp;#8217;s intention, but either way I personally think it&amp;#8217;s horrible. The individual personality of most design and development blogs has been completely stripped away.&lt;/p&gt;
-&lt;p&gt;Maybe I&amp;#8217;m just a salty designer with a narrow-minded, pessimistic view on where our blogging communities seem to be heading - or maybe I just have higher standards.&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;p&gt;1 the design world of the internet
-2 by &amp;#8220;All&amp;#8221; I mean the majority&lt;/p&gt;</description>
- <link>https://btxx.org/self-hosted-blogs</link>
- <guid isPermaLink="false">https://btxx.org/self-hosted-blogs</guid>
- <pubDate>Thu, 18 Oct 2018 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Schools Should Be Using Open Source Software</title>
- <description>&lt;h1 id=&quot;schools-should-be-using-open-source-software&quot;&gt;Schools Should Be Using Open Source Software&lt;/h1&gt;
-&lt;p&gt;2022-05-30&lt;/p&gt;
-&lt;p&gt;I firmly believe that proprietary software has no business in any school environment. Educational institutions lean heavily on Windows systems in the name of &amp;#8220;security&amp;#8221; or &amp;#8220;easier platform management&amp;#8221;. This approach forces students into using locked-down, closed sourced software applications.&lt;/p&gt;
-&lt;p&gt;Word, Excel, PowerPoint. Why have these become the &amp;#8220;standard&amp;#8221; of text manipulation and processing?&lt;/p&gt;
-&lt;p&gt;Photoshop. Illustrator. Why are these the first applications used for image editing and creation?&lt;/p&gt;
-&lt;p&gt;Schools should only be allowed to use and teach with open source software. Starting students off down the path of vendor lock-in is only beneficial to the companies building those software systems.&lt;/p&gt;
-&lt;h2 id=&quot;the-internet&quot;&gt;The Internet&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;m an older fart, so my elementary school experience only included computers near the tail-end of mid-school. As such, it was forgivable to have students locked-in to using Internet Explorer (which would have been version 4 or 5 during my time) since there wasn&amp;#8217;t a great deal of competition.&lt;/p&gt;
-&lt;p&gt;The major problem is that IE&amp;#47;Edge is still the default and often times ONLY browser available in these classrooms. Again, I believe IT departments use the excuse of &amp;#8220;security&amp;#8221; to keep students on such dated browsers.&lt;/p&gt;
-&lt;p&gt;Firefox, anyone? LibreWolf? Pale Moon?&lt;/p&gt;
-&lt;p&gt;Any of these browsers can be easily managed and secured by school IT departments. It doesn&amp;#8217;t HAVE to be IE&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;reducing-hardware-cost&quot;&gt;Reducing Hardware Cost&lt;/h2&gt;
-&lt;p&gt;By shifting towards a purely &amp;#8220;open&amp;#8221; software stack, schools then have the ability to purchase older, cheaper hardware. Instead of running bloated spyware (Windows) IT departments could opt to use any one of the lightweight Linux distros available.&lt;/p&gt;
-&lt;p&gt;This would reduce e-waste, save school districts significant amounts of money (no need to purchase Windows licenses or beefy hardware to be able to even &lt;em&gt;run&lt;/em&gt; the operating system) all while still maintaining a high level of user&amp;#47;network security.&lt;/p&gt;
-&lt;p&gt;Heck, you could even have a fleet of Raspberry Pi devices as your main student &amp;#8220;computers&amp;#8221;. The cost of replacement also becomes less significant (these are children using these devices remember).&lt;/p&gt;
-&lt;h2 id=&quot;security&quot;&gt;Security&lt;/h2&gt;
-&lt;p&gt;I briefly mentioned user and network security above but figured it deserved its own section. A great deal of push-back comes from stubborn IT professionals[^0] determined to keep things running on Windows - since this is mostly what they are familiar with.&lt;/p&gt;
-&lt;p&gt;My mother-in-law was an &amp;#8220;at-risk&amp;#8221; educator for most of her career. She explained to me that their IT department did a major switch over to use BRAND NEW Apple laptops for all the students just before her retirement. I can&amp;#8217;t even begin to imagine the cost associated with this change. Not to mention the cost of repair for any of these devices when (not if) damaged.&lt;/p&gt;
-&lt;p&gt;Who the hell is making these decisions? Even worse, who is approving them?! The school board had the opportunity to switch away from Windows devices and decided on Apple? Education reform is greatly needed[^1].&lt;/p&gt;
-&lt;h2 id=&quot;what-about-the-job-market&quot;&gt;What About The &amp;#8220;Job Market&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;m not ignorant to the fact that many businesses in the real world require familiarity with some of these more popular closed source applications (Word, Excel). I don&amp;#8217;t have a magic solution to instantly convert all applications used by the companies, but beginning the process in the education system is a solid start. Over time, the standard will &lt;em&gt;become&lt;/em&gt; these open platforms. The initial change just needs to be made.&lt;/p&gt;
-&lt;p&gt;It should also be mentioned that these open source applications carry over a lot of similar functionality to their closed-sourced counterparts. So it isn&amp;#8217;t as if a user with extensive LibreOffice experience would be utterly lost while using Microsoft Word.&lt;/p&gt;
-&lt;h2 id=&quot;looking-under-the-hood&quot;&gt;Looking Under the Hood&lt;/h2&gt;
-&lt;p&gt;Another bonus in using fully open source software is the ability for the students to deep dive into the code itself. This can be a great resource for early programming fundamentals and beginner coding classes. Why not dissect the very program used in your other classes? Here&amp;#8217;s an example of a possible class project: students could build out their own plugins or extensions for an existing application!&lt;/p&gt;
-&lt;h2 id=&quot;suggested-alternatives&quot;&gt;Suggested Alternatives&lt;/h2&gt;
-&lt;p&gt;So what are these &amp;#8220;open source&amp;#8221; alternatives? Check out my simple suggestions below:&lt;/p&gt;
-&lt;p&gt;MS Office Suite ==&amp;#62; LibreOffice Suite[^2]&lt;/p&gt;
-&lt;p&gt;Photoshop ==&amp;#62; GIMP&lt;/p&gt;
-&lt;p&gt;Illustrator ==&amp;#62; Inkscape&lt;/p&gt;
-&lt;p&gt;IE&amp;#47;Edge ==&amp;#62; Firefox[^3]&lt;/p&gt;
-&lt;p&gt;Coding IDE (optional) ===&amp;#62; vim&lt;/p&gt;
-&lt;p&gt;You could easily expand upon these options, but for most elementary school task these are more than enough.&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Not &lt;em&gt;all&lt;/em&gt; IT workers in the school system fall into this category. But most of the underlining structure prevents them from changing much.&lt;/li&gt;
-&lt;li&gt;At least in my country of Canada. I can&amp;#8217;t speak for others.&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;groff&lt;/code&gt; would be my personal suggestion instead, since it helps introduce children into the structure of basic file formatting and &amp;#8220;programming&amp;#8221;. I&amp;#8217;ll go into greater details about this in another post.&lt;/li&gt;
-&lt;li&gt;As mentioned in the beginning of the post, I&amp;#8217;d even suggest forks of Firefox -&amp;#62; LibreWolf or Pale Moon (if possible)&lt;/li&gt;
-&lt;/ol&gt;</description>
- <link>https://btxx.org/schools</link>
- <guid isPermaLink="false">https://btxx.org/schools</guid>
- <pubDate>Mon, 30 May 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Enabling Safari Extensions with the macOS Catalina Patcher</title>
- <description>&lt;h1 id=&quot;enabling-safari-extensions-with-the-macos-catalina-patcher&quot;&gt;Enabling Safari Extensions with the macOS Catalina Patcher&lt;/h1&gt;
-&lt;p&gt;2021-09-23&lt;/p&gt;
-&lt;p&gt;I have an old 2011 MacBook Air that is running the latest version of macOS Catalina thanks to the very wonderful &lt;a href=&quot;http://dosdude1.com/catalina/&quot;&gt;Catalina Patcher&lt;/a&gt; by dosdude1. This project has made it possible for me to run and test some of the latest software from Apple - namely Safari 15.&lt;/p&gt;
-&lt;p&gt;I ran into a small bug early on though – Safari extensions couldn’t be activated via the preferences menu. Luckily I discovered a very simple fix. My hope is this might help others (as small of a demographic that might be) who run into the same issue with the Catalina Patcher.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Close&amp;#47;Quit Safari completely&lt;/li&gt;
-&lt;li&gt;Open the Finder and use the shortcut &lt;code&gt;⌘ Shift G&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;Paste the following to navigate to the proper folder: &lt;code&gt;~&amp;#47;Library&amp;#47;Containers&amp;#47;com.apple.Safari&amp;#47;Data&amp;#47;Library&amp;#47;Safari&amp;#47;AppExtensions&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;Open the &lt;code&gt;Extensions.plist&lt;/code&gt; in your favourite text editor (I’m a big fan of Panic&amp;#8217;s Nova)&lt;/li&gt;
-&lt;li&gt;Below each extensions &lt;code&gt;&amp;#60;dict&amp;#62;&lt;/code&gt; tag, add the following: &lt;code&gt;&amp;#60;key&amp;#62;Enabled&amp;#60;&amp;#47;key&amp;#62;&amp;#60;true&amp;#47;&amp;#62;&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;Save the file and relaunch Safari&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Reference of what it should look like (AdBlock for this example):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;key&amp;#62;org.adblockplus...&amp;#60;&amp;#47;key&amp;#62;
- &amp;#60;dict&amp;#62;
- &amp;#60;key&amp;#62;AddedDate&amp;#60;&amp;#47;key&amp;#62;
- &amp;#60;date&amp;#62;2021-09-23T14:00:47Z&amp;#60;&amp;#47;date&amp;#62;
- &amp;#60;key&amp;#62;Enabled&amp;#60;&amp;#47;key&amp;#62;
- &amp;#60;true&amp;#47;&amp;#62;
- &amp;#60;key&amp;#62;WebsiteAccess&amp;#60;&amp;#47;key&amp;#62;
- &amp;#60;dict&amp;#62;
- &amp;#60;key&amp;#62;Allowed Domains&amp;#60;&amp;#47;key&amp;#62;
- &amp;#60;array&amp;#47;&amp;#62;
- &amp;#60;key&amp;#62;Has Injected Content&amp;#60;&amp;#47;key&amp;#62;
- &amp;#60;true&amp;#47;&amp;#62;
- &amp;#60;key&amp;#62;Level&amp;#60;&amp;#47;key&amp;#62;
- &amp;#60;string&amp;#62;All&amp;#60;&amp;#47;string&amp;#62;
- &amp;#60;&amp;#47;dict&amp;#62;
- &amp;#60;&amp;#47;dict&amp;#62;
+&lt;p&gt;We &lt;em&gt;could&lt;/em&gt; include a separate element for the circle toggle switcher itself, but instead we will use the &lt;code&gt;:before&lt;/code&gt; pseudo element:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.toggle-slider:before {
+ background: white;
+ border-radius: 9999px;
+ box-shadow: 0 4px 8px rgba(0,0,0,0.1),
+ 0 2px 4px rgba(0,0,0,0.2);
+ content:&amp;#39;&amp;#39;;
+ height: 16px;
+ left: 2px;
+ position: absolute;
+ top: 2px;
+ transition: all ease .3s;
+ width: 16px;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;After following those simple steps you should have working extensions in Safari. Have fun on your old, &amp;#8220;unsupported&amp;#8221; Apple devices!&lt;/p&gt;</description>
- <link>https://btxx.org/safari-extensions-catalina-patcher</link>
- <guid isPermaLink="false">https://btxx.org/safari-extensions-catalina-patcher</guid>
- <pubDate>Thu, 23 Sep 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Dear Apple, Please Fix Safari's Default Dark Mode Link Color</title>
- <description>&lt;h1 id=&quot;dear-apple-please-fix-safaris-default-dark-mode-link-color&quot;&gt;Dear Apple, Please Fix Safari&amp;#8217;s Default Dark Mode Link Color&lt;/h1&gt;
-&lt;p&gt;2022-04-18&lt;/p&gt;
-&lt;p&gt;Supporting dark mode on the modern web falls under the realm of accessibility and should not be ignored. It is important and helps keep the visual flow of your content to match that of your users&amp;#8217; operating system UI. Not to mention, it&amp;#8217;s easy to implement and keep consistent across browsers.&lt;/p&gt;
-&lt;h2 id=&quot;support-dark-mode-with-zero-css&quot;&gt;Support Dark Mode with Zero CSS&lt;/h2&gt;
-&lt;p&gt;A common practice is to include a &lt;code&gt;@media&lt;/code&gt; query via CSS to target styling changes based on whether &lt;code&gt;dark-mode&lt;/code&gt; is active. I tend to believe this is overkill for basic websites. Many developers aren&amp;#8217;t aware of the HTML &lt;code&gt;color-scheme&lt;/code&gt; parameter. (This website itself is using it in place of CSS media queries)&lt;/p&gt;
-&lt;h3 id=&quot;html-color-scheme&quot;&gt;HTML &amp;#8220;color-scheme&amp;#8221;&lt;/h3&gt;
-&lt;p&gt;Adding the following meta tag inside your document&amp;#8217;s &lt;code&gt;head&lt;/code&gt; element, you can enable dark mode instantly with zero configuration:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;meta name=&quot;color-scheme&quot; content=&quot;dark light&quot; &amp;#47;&amp;#62;
+&lt;h3 id=&quot;interaction&quot;&gt;Interaction&lt;/h3&gt;
+&lt;p&gt;Right now we just have a static toggle that does nothing when the user interacts with it. Let&amp;#8217;s change that by moving the pseudo element&amp;#8217;s position based on the checkbox &lt;code&gt;input&lt;/code&gt; state and updating the label text color:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.toggle-input:checked + .toggle-slider {
+ background: var(--primary-color);
+}
+.toggle-input:checked + .toggle-slider:before {
+ &amp;#47;* Move 100% of the width minus it&amp;#39;s own width plus initial &amp;#39;left&amp;#39; *&amp;#47;
+ left: calc(100% - 18px);
+}
+
+.toggle-input:checked ~ .toggle-label {
+ color: var(--primary-color);
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;There are minor caveats:&lt;/p&gt;
+&lt;p&gt;And because we already included the &lt;code&gt;transition&lt;/code&gt; property on both the base slider and label text, everything animates nicely between state changes.&lt;/p&gt;
+&lt;h2 id=&quot;final-code&quot;&gt;Final code&lt;/h2&gt;
+&lt;p&gt;To make things easier, you can find the HTML &amp;#38; CSS is their entirety below:&lt;/p&gt;
+&lt;h3 id=&quot;html&quot;&gt;HTML&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;toggle-switch&quot;&amp;#62;
+ &amp;#60;input class=&quot;toggle-input&quot; type=&quot;checkbox&quot; id=&quot;toggle-1&quot;&amp;#62;
+ &amp;#60;label class=&quot;toggle-slider&quot; for=&quot;toggle-1&quot;&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;label class=&quot;toggle-label&quot; for=&quot;toggle-1&quot;&amp;#62;Toggle Switch&amp;#60;&amp;#47;label&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
+&amp;#60;div class=&quot;toggle-switch&quot;&amp;#62;
+ &amp;#60;input class=&quot;toggle-input&quot; type=&quot;checkbox&quot; id=&quot;toggle-2&quot;&amp;#62;
+ &amp;#60;label class=&quot;toggle-slider&quot; for=&quot;toggle-2&quot;&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;label class=&quot;toggle-label&quot; for=&quot;toggle-2&quot;&amp;#62;Toggle Switch&amp;#60;&amp;#47;label&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
+&amp;#60;div class=&quot;toggle-switch&quot;&amp;#62;
+ &amp;#60;input class=&quot;toggle-input&quot; type=&quot;checkbox&quot; id=&quot;toggle-3&quot; checked&amp;#62;
+ &amp;#60;label class=&quot;toggle-slider&quot; for=&quot;toggle-3&quot;&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;label class=&quot;toggle-label&quot; for=&quot;toggle-3&quot;&amp;#62;Toggle Switch&amp;#60;&amp;#47;label&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
+&amp;#60;div class=&quot;toggle-switch&quot;&amp;#62;
+ &amp;#60;input class=&quot;toggle-input&quot; type=&quot;checkbox&quot; id=&quot;toggle-4&quot;&amp;#62;
+ &amp;#60;label class=&quot;toggle-slider&quot; for=&quot;toggle-4&quot;&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;label class=&quot;toggle-label&quot; for=&quot;toggle-4&quot;&amp;#62;Toggle Switch&amp;#60;&amp;#47;label&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;the-css-1&quot;&gt;The CSS&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;:root {
+ --primary-color: #4A90E2;
+}
+.toggle-switch {
+ align-items: center;
+ display: flex;
+ font-size: 14px;
+ justify-content: center;
+ margin: 20px 0;
+}
+.toggle-input {
+ position: absolute;
+ visibility: hidden;
+ z-index: -1;
+}
+.toggle-slider {
+ background: #eee;
+ border-radius: 9999px;
+ box-shadow: inset 0 2px 4px rgba(0,0,0,0.1),
+ inset 0 4px 8px rgba(0,0,0,0.1),
+ 0 1px 1px rgba(255,255,255,1);
+ cursor: pointer;
+ display: inline-block;
+ height: 20px;
+ position: relative;
+ transition: all ease .3s;
+ width: 40px;
+}
+.toggle-slider:before {
+ background: white;
+ border-radius: 9999px;
+ box-shadow: 0 4px 8px rgba(0,0,0,0.1),
+ 0 2px 4px rgba(0,0,0,0.2);
+ content:&amp;#39;&amp;#39;;
+ height: 16px;
+ left: 2px;
+ position: absolute;
+ top: 2px;
+ transition: all ease .3s;
+ width: 16px;
+}
+.toggle-input:checked + .toggle-slider {
+ background: var(--primary-color);
+}
+.toggle-input:checked + .toggle-slider:before {
+ left: calc(100% - 18px);
+}
+.toggle-label {
+ color: #ccc;
+ cursor: pointer;
+ font-weight: bold;
+ padding-left: 10px;
+ text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
+ transition: ease all .3s;
+}
+.toggle-input:checked ~ .toggle-label {
+ color: var(--primary-color);
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Enjoy your custom toggles!&lt;/p&gt;</description>
+ <link>https://btxx.org/easy-toggle-switches</link>
+ <guid isPermaLink="false">https://btxx.org/easy-toggle-switches</guid>
+ <pubDate>Mon, 18 Feb 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Setting Up a Pi-hole Server with Eero</title>
+ <description>&lt;h1 id=&quot;setting-up-a-pi-hole-server-with-eero&quot;&gt;Setting Up a Pi-hole Server with Eero&lt;/h1&gt;
+&lt;p&gt;2022-03-14&lt;/p&gt;
+&lt;p&gt;For the past few years, I&amp;#8217;ve been using a set of Eero routers as my home mesh network. It&amp;#8217;s worked fairly great in that time and even seamlessly transitioned without any hiccups when my family moved house. During the initial setup, I installed Pi-hole on a Raspberry Pi Zero WH because advertisements and tracking scripts suck.&lt;/p&gt;
+&lt;p&gt;It was an easy process to get everything up and running, but I did notice a lack of detailed steps online for those specifically using Eero systems. So, I thought I would document this process here with the hope that it will help someone else along the way (or at the very least remain a semi-permanent place for my own reference).&lt;/p&gt;
+&lt;hr/&gt;
+&lt;p&gt;FYI: You can pay for Eero Secure and allow them to handle ad&amp;#47;tracker blocking for you. Personally, I prefer to have complete control over my blocklists and usage data. YMMV.&lt;/p&gt;
+&lt;hr/&gt;
+&lt;h2 id=&quot;setting-up-the-pi-hole-server&quot;&gt;Setting Up the Pi-hole Server&lt;/h2&gt;
+&lt;p&gt;Before we get into the step-by-step details, here are the required items you&amp;#8217;ll need:&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;You should not be specifying any &lt;code&gt;background&lt;/code&gt; styling to your &lt;code&gt;body&lt;/code&gt; or &lt;code&gt;html&lt;/code&gt; elements&lt;/li&gt;
-&lt;li&gt;You should be not specifying any &lt;code&gt;color&lt;/code&gt; styling across any of your readable content (paragraphs, headings, lists, blockquotes)&lt;/li&gt;
+&lt;li&gt;Raspberry Pi device (I recommend the Pi Zero for simplicity and low cost)&lt;/li&gt;
+&lt;li&gt;microSD card preloaded with &lt;a href=&quot;https://www.raspberrypi.com/software/operating-systems/&quot;&gt;Raspberry Pi OS Lite&lt;/a&gt; (having a desktop GUI is overkill for our use case)&lt;/li&gt;
+&lt;li&gt;micro USB to ethernet adapter (check your local Amazon)&lt;/li&gt;
+&lt;li&gt;Patience!&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;That&amp;#8217;s it! In case you were curious, all major browsers support this color scheme meta tag: &lt;a href=&quot;https://caniuse.com/mdn-html_elements_meta_name_color-scheme&quot;&gt;https:&amp;#47;&amp;#47;caniuse.com&amp;#47;mdn-html&lt;em&gt;elements&lt;/em&gt;meta&lt;em&gt;name&lt;/em&gt;color-scheme&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;but-wait-whats-this-about-safari&quot;&gt;But Wait, What&amp;#8217;s This About Safari?&lt;/h2&gt;
-&lt;p&gt;Even though by adding the color-scheme meta tag we get ourselves good dark mode support across all browsers - Safari has one big oversight: link color. Take a look at the comparison screenshots below (based on one of my older articles). The first one is taken in Firefox, the second in Safari:&lt;/p&gt;
-&lt;p&gt;Luckily for us there is a simple solution using minimal amounts of CSS[^1]:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@supports (color-scheme: dark light) {
- @media screen and (prefers-color-scheme: dark) {
- a:link {color: #9e9eff;}
- a:visited {color: #d0adf0;}
- a:active {color: red;}
- }
+&lt;p&gt;Before you place your microSD card into the Pi and boot it up, connect it to your local computer (via USB adapter) - we will need to add some files first. Once loaded into the &lt;code&gt;boot&lt;/code&gt; folder, add an empty file simply called &lt;code&gt;ssh&lt;/code&gt; (no extensions). Next open your preferred text editor and enter the following code, editing the content to match your own country code and home network settings:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;country=US
+ctrl_interface=DIR=&amp;#47;var&amp;#47;run&amp;#47;wpa_supplicant GROUP=netdev
+update_config=1
+
+network={
+ ssid=&quot;WIFI_SSID&quot;
+ scan_ssid=1
+ psk=&quot;WIFI_PASSWORD&quot;
+ key_mgmt=WPA-PSK
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;We are brute-forcing Safari to implement the same color HEX codes used by both Firefox and Chrome browsers. How a horrible accessibility oversight could happen within a company as large as Apple is astounding&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;apple-fix-your-browsers-dark-mode&quot;&gt;Apple: Fix Your Browser&amp;#8217;s Dark Mode&lt;/h2&gt;
-&lt;p&gt;My hope if that even one Safari design or development team member stumbles across this article and raises this ticket to the rest of the team[^2]. It&amp;#8217;s an unbelievably easy fix and would save developers the headache of overriding these things ourselves.&lt;/p&gt;
-&lt;p&gt;Thanks for reading and happy dark mode to you all!&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Special thanks to &lt;a href=&quot;https://seirdy.one/&quot;&gt;Seirdy&lt;/a&gt; for suggesting the use of :link and :active support. I recommend you check out his take on &lt;a href=&quot;https://seirdy.one/2020/11/23/website-best-practices.html#dark-themes&quot;&gt;dark mode &amp;#47; theme support&lt;/a&gt;.&lt;/li&gt;
-&lt;li&gt;This has an open ticket through &lt;a href=&quot;https://bugs.webkit.org/show_bug.cgi?id=209851&quot;&gt;Webkit Bugzilla&lt;/a&gt;&lt;/li&gt;
-&lt;/ol&gt;</description>
- <link>https://btxx.org/safari-default-dark-mode</link>
- <guid isPermaLink="false">https://btxx.org/safari-default-dark-mode</guid>
- <pubDate>Mon, 18 Apr 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Installing Ruby with RVM on Alpine Linux</title>
- <description>&lt;h1 id=&quot;installing-ruby-with-rvm-on-alpine-linux&quot;&gt;Installing Ruby with RVM on Alpine Linux&lt;/h1&gt;
-&lt;p&gt;2023-03-16&lt;/p&gt;
-&lt;p&gt;For some on-going projects I need to switch to different versions of &lt;code&gt;ruby&lt;/code&gt;. Although there exist many step-by-step instructions on installing and configuring &lt;code&gt;rvm&lt;/code&gt; for most Linux distros, there aren&amp;#8217;t many focused on Alpine &amp;#8220;daily drivers&amp;#8221;.&lt;/p&gt;
-&lt;p&gt;So this post is more or less a helpful document for my future self. If it happens to help others then that&amp;#8217;s an added bonus!&lt;/p&gt;
-&lt;h2 id=&quot;simple-setup&quot;&gt;Simple Setup&lt;/h2&gt;
-&lt;p&gt;Make sure you have the basic packages first:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;apk update
-apk add curl gcc gnupg gpg dirmngr procps musl-dev linux-headers zlib zlib-dev openssl openssl-dev libssl1.1
+&lt;p&gt;Save this file as &lt;code&gt;wpa_supplicant.conf&lt;/code&gt; and add it to the &lt;code&gt;boot&lt;/code&gt; directory as well.&lt;/p&gt;
+&lt;p&gt;You can now safely eject the microSD card and place it into your Raspberry Pi.&lt;/p&gt;
+&lt;h2 id=&quot;plug-it-in-and-boot&quot;&gt;Plug it in and Boot!&lt;/h2&gt;
+&lt;p&gt;Connect power to your Pi and give it a bit of time to boot up. Once you see a nice solid green LED, go back to your local computer&amp;#8217;s terminal and enter the following command:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;ssh pi@raspberrypi.local
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next download the latest &lt;code&gt;stable&lt;/code&gt; version of &lt;code&gt;rvm&lt;/code&gt; from Github, unpack it, place it in the proper user directory (~&amp;#47;.rvm) and install any required libs:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;curl -sSL https:&amp;#47;&amp;#47;github.com&amp;#47;rvm&amp;#47;rvm&amp;#47;tarball&amp;#47;stable -o rvm-stable.tar.gz
-echo &amp;#39;export rvm_prefix=&quot;$HOME&quot;&amp;#39; &amp;#62; ~&amp;#47;.rvmrc
-echo &amp;#39;export rvm_path=&quot;$HOME&amp;#47;.rvm&quot;&amp;#39; &amp;#62;&amp;#62; ~&amp;#47;.rvmrc
-mkdir rvm &amp;#38;&amp;#38; cd rvm
-tar --strip-components=1 -xzf ..&amp;#47;rvm-stable.tar.gz
-.&amp;#47;install --auto-dotfiles --autolibs=0
+&lt;p&gt;If everything was set up properly you will be asked to trust this device. Next, you will be prompted to enter the device password. The default password will be: &lt;code&gt;raspberry&lt;/code&gt;&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: This is assuming you don&amp;#8217;t currently have any other Pi devices using this hostname parameter!&lt;/p&gt;
+&lt;p&gt;Once you are connected directly to the Pi, it&amp;#8217;s best to check for updates:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo apt update
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now we can remove everything and properly link to &lt;code&gt;rvm&lt;/code&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;cd ..&amp;#47; &amp;#38;&amp;#38; rm -rf rvm-stable stable.tar.gz rvm
-source ~&amp;#47;.rvm&amp;#47;scripts&amp;#47;rvm
+&lt;p&gt;&amp;#8230;and if updates are in fact available, install them via:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo apt upgrade
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now you can freely install any version of Ruby that you desire!&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;rvm install ruby-X.X.X
-&lt;/code&gt;&lt;/pre&gt;</description>
- <link>https://btxx.org/rvm</link>
- <guid isPermaLink="false">https://btxx.org/rvm</guid>
- <pubDate>Thu, 16 Mar 2023 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>RSS Hacks With XSLT</title>
- <description>&lt;h1 id=&quot;rss-hacks-with-xslt&quot;&gt;RSS Hacks With XSLT&lt;/h1&gt;
-&lt;p&gt;2022-05-23&lt;/p&gt;
-&lt;p&gt;In my spare time I&amp;#8217;ve been further tinkering (hopefully for the better) with my humble Shinobi Website[^0] script. The most recent update in &lt;code&gt;patch-1&lt;/code&gt; came with a solid amount of QoL improvements. If you&amp;#8217;re interested, I wrote about it on the official Shinobi blog[^1].&lt;/p&gt;
-&lt;p&gt;The next feature I wanted to tackle was designing a custom layout for the XML files directly in the browser. I was greatly inspired to create something similar to Len Falken&amp;#8217;s main directory listing[^2], since that blog was one of the original inspirations for Shinobi. I&amp;#8217;m not able to copy what&amp;#8217;s there though, since our feed builds are quite a bit different.&lt;/p&gt;
-&lt;p&gt;I then proceeded to fall down the XSLT rabbit hole.&lt;/p&gt;
-&lt;h2 id=&quot;it-never-works-the-first-time-does-it&quot;&gt;It Never Works the First Time, Does It?&lt;/h2&gt;
-&lt;p&gt;Since the shinobi script generates valid RSS code by default, I didn&amp;#8217;t want to mess around &lt;em&gt;too&lt;/em&gt; much via XSLT and risk breaking validation. I also wanted to keep the &amp;#8220;plain text&amp;#8221; look-and-feel for consistency with the rest of the site, even though the XSLT template would render into standard HTML. Minor CSS styling and placing the content directly inside &lt;code&gt;pre&lt;/code&gt; tags solved these issues.&lt;/p&gt;
-&lt;p&gt;My first attempt was to use the available &lt;code&gt;sort&lt;/code&gt; parameter (in XSL version 1.1+) targeting the &lt;code&gt;dc:date&lt;/code&gt; type linked to the &lt;code&gt;pubDate&lt;/code&gt; element:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;xsl:sort select=&quot;pubDate&quot; data-type=&quot;dc:date&quot; order=&quot;descending&quot;&amp;#47;&amp;#62;
-&amp;#60;!-- each individual post&amp;#39;s content here --&amp;#62;
+&lt;p&gt;This next step is optional but I highly recommend it for security purposes. You should change both the hostname and password of this soon-to-be Pi-hole server. To do this simply run:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo raspi-config
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This did not work as intended. RSS 2.0 requires that the &lt;code&gt;pubDate&lt;/code&gt; content is set to comply with the RFC-822 date-time[^3], which shinobi handles perfectly fine. The issue came from the XSL &lt;code&gt;sort&lt;/code&gt; parameter not honoring this setting across all dates. My best guess is that it struggles to properly organize posts from their &amp;#8220;month&amp;#8221; parameter, so it sets the posts in order of date in what I refer to as &amp;#8220;monthly sections&amp;#8221;.&lt;/p&gt;
-&lt;p&gt;If anyone knows why this failed to consistently order the posts via &lt;code&gt;pubDate&lt;/code&gt;, please let me know using the comment link below. I&amp;#8217;m far from an XSLT expert and might have overlooked something painfully obvious!&lt;/p&gt;
-&lt;h2 id=&quot;rss-hack-categories&quot;&gt;RSS Hack: Categories&lt;/h2&gt;
-&lt;p&gt;After spending far too much time reading over documentation, official manual pages and Stack Overflow comments I gave up on the &lt;code&gt;dc:date&lt;/code&gt; sort. I realized I could sort the posts much easier if they were converted into a format similar to ISO 8601. But &lt;code&gt;pubDate&lt;/code&gt; is required to be in RFC-822, so I couldn&amp;#8217;t alter that in the final XML file.&lt;/p&gt;
-&lt;p&gt;Then I remembered the &lt;code&gt;category&lt;/code&gt; tag which shinobi does not utilize by default.&lt;/p&gt;
-&lt;p&gt;First I needed to convert the RFC-822 formatted date (found on the first line of all blog post text files) and render it inside a &lt;code&gt;category&lt;/code&gt; tag. This was simple enough:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;$(date -j -f &quot;%a, %d %b %Y&quot; &quot;$(head -n 1 $file)&quot; +&quot;%Y&amp;#47;%m&amp;#47;%d&amp;#47;%u&quot;)
+&lt;ol&gt;
+&lt;li&gt;Edit Hostname: navigate to &lt;code&gt;System Settings&lt;/code&gt; &amp;#8211;&amp;#62; &lt;code&gt;Hostname&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Edit Password: navigate to &lt;code&gt;System Settings&lt;/code&gt; &amp;#8211;&amp;#62; &lt;code&gt;Password&lt;/code&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;Once complete, reboot the Pi. Just remember that when you try to reconnect to this device via SSH you&amp;#8217;ll need to use both of these new parameters instead of the defaults.&lt;/p&gt;
+&lt;h2 id=&quot;installing-pi-hole&quot;&gt;Installing Pi-hole&lt;/h2&gt;
+&lt;p&gt;This is the easy part:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;curl -sSL https:&amp;#47;&amp;#47;install.pi-hole.net | bash
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;In a nutshell, this converts the RFC-822 date into the format &amp;#8220;2022&amp;#47;05&amp;#47;24&amp;#47;2&amp;#8221;. Simple numbers that can be sorted much easier by XSL. Now all that was needed was setting to &lt;code&gt;sort&lt;/code&gt; parameter properly:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;xsl:sort select=&quot;category&quot; order=&quot;descending&quot;&amp;#47;&amp;#62;
+&lt;p&gt;Pi-hole runs a full install script that walks you through step-by-step on setting things up. It&amp;#8217;s best to use the suggested defaults during the install - everything is pretty simple.&lt;/p&gt;
+&lt;p&gt;Near the end of the setup you&amp;#8217;ll be show the newly created static IP for this Pi-hole server (both IPv4 and IPv6). Write these down for easy reference in a moment.&lt;/p&gt;
+&lt;p&gt;Once it&amp;#8217;s finished, shutdown the Pi safely by running:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo shutdown now
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Everything worked perfectly and the RSS was still valid!&lt;/p&gt;
-&lt;h3 id=&quot;patch-2-pending&quot;&gt;Patch-2 Pending&lt;/h3&gt;
-&lt;p&gt;I&amp;#8217;ve ported these changes over to this blog to perform some &amp;#8220;in the wild&amp;#8221; testing. You can see the custom feed list in your supported browser by visiting:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://pblog.bt.ht/feed.xml&quot;&gt;https:&amp;#47;&amp;#47;pblog.bt.ht&amp;#47;feed.xml&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;As for the shinobi project itself, I have not merged these updates into the main master branch (at the time of publishing this article). They can be found sitting on patch-2[^4]. My plan is to get this merged ASAP once a little more real-world testing is finished and I can include a better &amp;#8220;setup&amp;#47;install&amp;#8221; section for newcomers.&lt;/p&gt;
-&lt;h2 id=&quot;shinobi-updates&quot;&gt;Shinobi Updates&lt;/h2&gt;
-&lt;p&gt;If you&amp;#8217;re interested in more updates and details about the shinobi project itself, feel free to sub to that specific feed below. This post was more focused on hacking RSS parameters that happened to involve shinobi, but in the future all updates specific to the project will be posted there:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://shinobi.bt.ht/feed.xml&quot;&gt;https:&amp;#47;&amp;#47;shinobi.bt.ht&amp;#47;feed.xml&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;h2 id=&quot;hardware-setup&quot;&gt;Hardware Setup&lt;/h2&gt;
+&lt;p&gt;With the Pi shutdown you can safely relocate it to where you have your modem and gateway Eero setup. Connect your new Pi-hole device to the secondary ethernet port on your gateway Eero[^1] and power it up. (This is where the microUSB to ethernet adapter for our Pi device is needed)&lt;/p&gt;
+&lt;p&gt;See the crude diagram below for visual reference:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;strong&gt;Grey Wire&lt;/strong&gt;: Incoming internet connection from ISP&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Blue Wire&lt;/strong&gt;: Ethernet cord connecting modem to gateway Eero&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Red Wire&lt;/strong&gt;: Ethernet cord connecting secondary Eero port to Pi Zero&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;That&amp;#8217;s all we need to do on the hardware side of things.&lt;/p&gt;
+&lt;h2 id=&quot;configuring-the-eero-app&quot;&gt;Configuring the Eero App&lt;/h2&gt;
+&lt;p&gt;With everything connected properly it&amp;#8217;s finally time to setup our custom DNS settings through Eero.&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;&lt;a href=&quot;https://shinobi.website/&quot;&gt;https:&amp;#47;&amp;#47;shinobi.website&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://shinobi.website/posts/patch-1.txt&quot;&gt;https:&amp;#47;&amp;#47;shinobi.website&amp;#47;posts&amp;#47;patch-1.txt&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;http://len.falken.directory/&quot;&gt;http:&amp;#47;&amp;#47;len.falken.directory&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://validator.w3.org/feed/docs/error/InvalidRFC2822Date.html&quot;&gt;https:&amp;#47;&amp;#47;validator.w3.org&amp;#47;feed&amp;#47;docs&amp;#47;error&amp;#47;InvalidRFC2822Date.html&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://git.sr.ht/~tdarb/shinobi-script/tree/patch-2&quot;&gt;https:&amp;#47;&amp;#47;git.sr.ht&amp;#47;~tdarb&amp;#47;shinobi-script&amp;#47;tree&amp;#47;patch-2&lt;/a&gt;&lt;/li&gt;
-&lt;/ol&gt;</description>
- <link>https://btxx.org/rss-hacks</link>
- <guid isPermaLink="false">https://btxx.org/rss-hacks</guid>
- <pubDate>Mon, 23 May 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Clickable Links Inside XML</title>
- <description>&lt;h1 id=&quot;clickable-links-inside-xml&quot;&gt;Clickable Links Inside XML&lt;/h1&gt;
-&lt;p&gt;2022-06-20&lt;/p&gt;
-&lt;p&gt;With the recent patch to the Shinobi Website project, I thought it would be best to share my experience implementing clickable links inside a rendered XML RSS file directly through a browser. This is made possible thanks to the awesome power of XSL formatting.&lt;/p&gt;
-&lt;p&gt;Before we begin, it should be noted that both Safari for macOS and &lt;em&gt;all&lt;/em&gt; browsers on iOS do NOT support the ability to render XML files. Instead you are required to download the feeds as static files to your system. Major bummmer. Hopefully this will be fixed in the near future.&lt;/p&gt;
-&lt;h2 id=&quot;the-code&quot;&gt;The Code&lt;/h2&gt;
-&lt;p&gt;Rendering your entry links as interactive URLs is fairly intuitive. You just need to:&lt;/p&gt;
+&lt;li&gt;Open the Eero app (iOS or Android)&lt;/li&gt;
+&lt;li&gt;Navigate to &lt;strong&gt;Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Network Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;DNS&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Select &lt;strong&gt;Customized DNS&lt;/strong&gt; and enter both your saved IPv4 &amp;#47; IPv6 values&lt;/li&gt;
+&lt;li&gt;Eero will prompt you to reboot your network - do it&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;Next we need to add your Pi-hole&amp;#8217;s address as an IPv4 reservation:[^2]&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;&lt;p&gt;Tell the file which tag it needs to render as the &amp;#8220;a:link&amp;#8221; element&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Set the inner child attribute to &amp;#8220;href&amp;#8221;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Set the value of that attribute to use the entry&amp;#8217;s &lt;code&gt;link&lt;/code&gt; parameter&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;/xsl:attribute&quot;&gt;&amp;#47;xsl:attribute&lt;/a&gt;
-
-&lt;a href=&quot;/xsl:element&quot;&gt;&amp;#47;xsl:element&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;In the Eero app, navigate to &lt;strong&gt;Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Network Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Reservations &amp;#38; port forwarding&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Tap &lt;strong&gt;Add a reservation&lt;/strong&gt; and include your Pi-hole&amp;#8217;s IP address&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;In the instance above I am rendering the entry title as a clickable element which will direct users to the specific entry URL. You could simply render the full entry link URL text as the interactive link if you prefer. Something like:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;xsl:element name=&quot;a&quot;&amp;#62;
- &amp;#60;xsl:attribute name=&quot;href&quot;&amp;#62;
- &amp;#60;xsl:value-of select=&quot;link&quot;&amp;#47;&amp;#62;
- &amp;#60;&amp;#47;xsl:attribute&amp;#62;
- &amp;#60;pre&amp;#62;&amp;#60;xsl:value-of select=&quot;link&quot;&amp;#47;&amp;#62;&amp;#60;&amp;#47;pre&amp;#62;
-&amp;#60;&amp;#47;xsl:element&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;live-example&quot;&gt;Live Example&lt;/h2&gt;
-&lt;p&gt;In a supported browser, you can see the code in action here: &lt;a href=&quot;https://pblog.bt.ht/feed.xml&quot;&gt;https:&amp;#47;&amp;#47;pblog.bt.ht&amp;#47;feed.xml&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;That&amp;#8217;s really all there is to it.&lt;/p&gt;
+&lt;p&gt;After the system reboots everything &lt;em&gt;should&lt;/em&gt; be working as intended! You can check by navigating to your Pi-hole IP address in your browser.&lt;/p&gt;
+&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
+&lt;p&gt;None of this stuff if groundbreaking, but my hope is that even one person across the internet finds this helpful! If you run into any major bugs, please leave a comment below and I&amp;#8217;ll do my best to help out!&lt;/p&gt;
+&lt;p&gt;Best of luck blocking those pesky ads and trackers!&lt;/p&gt;
&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;&lt;a href=&quot;https://shinobi.bt.ht/posts/patch-3.txt&quot;&gt;https:&amp;#47;&amp;#47;shinobi.bt.ht&amp;#47;posts&amp;#47;patch-3.txt&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;You don&amp;#8217;t &lt;em&gt;have&lt;/em&gt; to use your Eero gateway for this step (credit: &lt;a href=&quot;https://old.reddit.com/user/RollMeAway83&quot;&gt;&amp;#47;u&amp;#47;RollMeAway83&lt;/a&gt;)&lt;/li&gt;
+&lt;li&gt;Thanks to &lt;a href=&quot;https://old.reddit.com/user/YankeesIT&quot;&gt;u&amp;#47;YankeesIT&lt;/a&gt; for pointing out that this is required not &lt;em&gt;optional&lt;/em&gt;&lt;/li&gt;
&lt;/ol&gt;</description>
- <link>https://btxx.org/rss-click</link>
- <guid isPermaLink="false">https://btxx.org/rss-click</guid>
- <pubDate>Mon, 20 Jun 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Quick and Dirty Theme Switcher</title>
- <description>&lt;h1 id=&quot;quick-and-dirty-theme-switcher&quot;&gt;Quick and Dirty Theme Switcher&lt;/h1&gt;
-&lt;p&gt;2020-06-04&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: This article is no longer relevant since my blog design has changed. I&amp;#8217;m keeping this post up since it will still be useful for those wanting to implement a theme switcher on their own site.&lt;/p&gt;
-&lt;hr/&gt;
-&lt;p&gt;&lt;em&gt;I recently added a fairly straightforward color scheme (theme) switcher&lt;/em&gt; to my personal website. You can toggle this simple color switcher in the footer of the site to see it in action. In case anyone else had the desire to add such functionality to their own sites&amp;#47;projects, I figured I&amp;#8217;d write up a quick post explaining how to do so. Let&amp;#8217;s get into it.&lt;/p&gt;
+ <link>https://btxx.org/eero</link>
+ <guid isPermaLink="false">https://btxx.org/eero</guid>
+ <pubDate>Mon, 14 Mar 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Styling Empty Table Cells</title>
+ <description>&lt;h1 id=&quot;styling-empty-table-cells&quot;&gt;Styling Empty Table Cells&lt;/h1&gt;
+&lt;p&gt;2019-07-17&lt;/p&gt;
+&lt;p&gt;Often when designing tables on the web you&amp;#8217;re bound to come across empty pockets of data. These will be rendered as &amp;#8220;blank&amp;#8221; table cells, which isn&amp;#8217;t always the intended outcome. Let&amp;#8217;s take a quick look at how to target and style empty table cells.&lt;/p&gt;
+&lt;h2 id=&quot;the-easy-way&quot;&gt;The easy &lt;code&gt;:empty&lt;/code&gt; way&lt;/h2&gt;
+&lt;p&gt;The most popular way to target &lt;em&gt;any&lt;/em&gt; empty element is by using - you guessed it - the &lt;code&gt;empty&lt;/code&gt; pseudo-class. This pseudo-class is incredibly simple. You target an element&amp;#8217;s &lt;code&gt;empty&lt;/code&gt; state that same way you would target &lt;code&gt;hover&lt;/code&gt; or &lt;code&gt;active&lt;/code&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;table tr td:empty {
+ opacity: 0;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Check out the CodePen examples below for more advanced styling options:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/EBBLEx/&quot;&gt;Live CodePen Example 1&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;You can also include additional pseudo elements to give the user more context about what the empty cells represent:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/bPXqLa/&quot;&gt;Live CodePen Example 2&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;more-specific-property&quot;&gt;More specific &lt;code&gt;empty-cells&lt;/code&gt; property&lt;/h2&gt;
+&lt;p&gt;Although using the &lt;code&gt;:empty&lt;/code&gt; pseudo-class can be helpful, it isn&amp;#8217;t used just for tables. It can be used for any HTML elements that have a lack of content. So, is there a CSS specific property that can target &lt;em&gt;just&lt;/em&gt; table cells? &lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s take a look at the &lt;code&gt;empty-cells&lt;/code&gt; property:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;table {
+ empty-cells: hide;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/XLLqOW/&quot;&gt;Live CodePen Example 3&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;Pros of using &lt;code&gt;empty-cells&lt;/code&gt;:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Only one CSS property&lt;/li&gt;
+&lt;li&gt;Targets the table elements specifically&lt;/li&gt;
+&lt;li&gt;No need for custom styles since it simply &lt;em&gt;hides&lt;/em&gt; empty cell borders&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Some downsides to using this property:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;No styling customization&lt;/li&gt;
+&lt;li&gt;Trickier to use pseudo-element helpers without invoking the &lt;code&gt;:empty&lt;/code&gt; state&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;pick-your-preference&quot;&gt;Pick your preference&lt;/h2&gt;
+&lt;p&gt;It doesn&amp;#8217;t matter semantically which option you decide to take when styling &amp;#47; hiding empty table cells. Using the &lt;code&gt;:empty&lt;/code&gt; state gives you a lot more flexibility in terms of what you can target (full rows, columns etc), but using the &lt;code&gt;empty-cells&lt;/code&gt; property let&amp;#8217;s you simply hide the cells and focus on more important items.&lt;/p&gt;</description>
+ <link>https://btxx.org/empty-table-cells</link>
+ <guid isPermaLink="false">https://btxx.org/empty-table-cells</guid>
+ <pubDate>Wed, 17 Jul 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>ET-Jekyll Theme</title>
+ <description>&lt;h1 id=&quot;et-jekyll-theme&quot;&gt;ET-Jekyll Theme&lt;/h1&gt;
+&lt;p&gt;2018-01-14&lt;/p&gt;
+&lt;p&gt;ET-Jekyll theme is based off of Dave Liepmann&amp;#8217;s awesome Tufte CSS - which takes it&amp;#8217;s style and inspiration from the wonderful book and handout designs of Edward Tufte.&lt;/p&gt;
+&lt;p&gt;The differences are subtle when comparing my variation to Tufte CSS, but these changes were made out of personal preference and are not in any way &amp;#8220;better&amp;#8221;. If you prefer the original CSS styling - please use it!&lt;/p&gt;
+&lt;p&gt;This theme is an open source side project by Bradley Taunt - made with passion and care. Edit, improve, customize or butcher this theme as much as you&amp;#8217;d like. If you spot an issue or find a better solution for any user pain-spots, please don&amp;#8217;t hesitate to open a PR with your changes.&lt;/p&gt;
+&lt;p&gt;Enjoy ET-Jekyll!&lt;/p&gt;</description>
+ <link>https://btxx.org/et-jekyll-theme</link>
+ <guid isPermaLink="false">https://btxx.org/et-jekyll-theme</guid>
+ <pubDate>Sun, 14 Jan 2018 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Faking 3D Elements with CSS</title>
+ <description>&lt;h1 id=&quot;faking-3d-elements-with-css&quot;&gt;Faking 3D Elements with CSS&lt;/h1&gt;
+&lt;p&gt;2020-04-29&lt;/p&gt;
+&lt;p&gt;Although not always practical, creating the illusion that some of your web elements are 3D can be a fun experiment. I set out to see if I was able to create such an illusion with only 2 HTML elements and as little CSS as possible.&lt;/p&gt;
+&lt;p&gt;This is what I ended up creating:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/css-orb.png&quot; alt=&quot;Blue 3D orb made out pure CSS&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/VwvzKyb&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;First we need to include the &amp;#8220;buttons&amp;#8221; that will trigger the theme to switch based on which one is selected. (Note: you could always render these as &lt;code&gt;options&lt;/code&gt; in a &lt;code&gt;select&lt;/code&gt; element if you preferred that method)&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;color-select&quot;&amp;#62;
- &amp;#60;button onclick=&quot;toggleDefaultTheme()&quot;&amp;#62;&amp;#60;&amp;#47;button&amp;#62;
- &amp;#60;button onclick=&quot;toggleSecondTheme()&quot;&amp;#62;&amp;#60;&amp;#47;button&amp;#62;
- &amp;#60;button onclick=&quot;toggleThirdTheme()&quot;&amp;#62;&amp;#60;&amp;#47;button&amp;#62;
+&lt;p&gt;Prepare for your mind to be blown:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;main-orb&quot;&amp;#62;
+ &amp;#60;div class=&quot;inner-orb&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it! Don&amp;#8217;t worry too much about the &lt;code&gt;onclick&lt;/code&gt; parameter right now, we&amp;#8217;ll come back to that when adding our JavaScript. The only remaining item is adding a default theme class to our &lt;code&gt;html&lt;/code&gt; element, like so:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;html class=&quot;theme-default&quot;&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;That&amp;#8217;s it - I wasn&amp;#8217;t kidding when I said we would use only 2 HTML elements. The &lt;code&gt;.main-orb&lt;/code&gt; is the core shape (set to 400x400) and the &lt;code&gt;.inner-orb&lt;/code&gt; is placed on top of it&amp;#8217;s parent at a slightly smaller size (360x360) - but more on that below in the CSS portion.&lt;/p&gt;
&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;Next we need to style both the &lt;code&gt;color-select&lt;/code&gt; buttons, along with the custom color schemes that will alter the entire website. We will start with the color schemes.&lt;/p&gt;
-&lt;p&gt;For these themes to swap seamlessly between each other, we will be setting our altering color sets as CSS variables:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.theme-default {
---accent-color: #72f1b8;
---font-color: #34294f;
+&lt;p&gt;First we give the bigger orb element (&lt;code&gt;.main-orb&lt;/code&gt;) the default styling needed to represent a 2D circle:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.main-orb {
+ background: linear-gradient(#fff 0%, #eee 10%, #2E86FB 50%, #1A237E 100%);
+ border-radius: 9999px;
+ height: 400px;
+ margin: 4rem auto;
+ position: relative; &amp;#47;* This is important for the inner orb element later *&amp;#47;
+ width: 400px;
}
-
-.theme-second {
- --accent-color: #FFBF00;
- --font-color: #59316B;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Next, we include both &lt;code&gt;:before&lt;/code&gt; and &lt;code&gt;:after&lt;/code&gt; pseudo elements for our orb&amp;#8217;s drop shadow. You &lt;em&gt;could&lt;/em&gt; do this with a simple &lt;code&gt;box-shadow&lt;/code&gt; property on the &lt;code&gt;.main-orb&lt;/code&gt; itself, but I&amp;#8217;ve explained in a previous post why &lt;a href=&quot;/blog/better-box-shadows.html&quot;&gt;that&amp;#8217;s not the best approach&lt;/a&gt;.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Shared styling for both pseudo elements - Remember DRY *&amp;#47;
+.main-orb:before, .main-orb:after {
+ border-radius: 200px 200px 9999px 9999px;
+ bottom: -10px;
+ content:&amp;#39;&amp;#39;;
+ filter: blur(20px);
+ height: 40px;
+ position: absolute;
+ z-index: -1;
}
-.theme-third {
- --accent-color: #d9455f;
- --font-color: #303960;
+&amp;#47;* Bigger, lighter shadow *&amp;#47;
+.main-orb:before {
+ background: rgba(0,0,0,0.4);
+ left: 7.5%;
+ width: 85%;
}
-body {
- background-color: var(--accent-color);
- color: var(--font-color);
+&amp;#47;* Smaller, darker shadow *&amp;#47;
+.main-orb:after {
+ background: rgba(0,0,0,0.7);
+ left: 20%;
+ width: 60%;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Finally, we style the user-facing color swatches:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.color-select button {
- -moz-appearance: none;
- appearance: none;
- border: 2px solid;
+&lt;p&gt;With our main orb complete we can move on to the &lt;code&gt;.inner-orb&lt;/code&gt; element to help bring slightly more depth to our floating ball of CSS:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.inner-orb {
+ background: linear-gradient(#fff 0%, #2E86FB 60%, #283593 100%);
border-radius: 9999px;
- cursor: pointer;
- height: 20px;
- margin: 0 0.8rem 0.8rem 0;
- outline: 0;
- width: 20px;
-}
-
-&amp;#47;* Style each swatch to match the corresponding theme *&amp;#47;
-.color-select button:nth-child(1) { background: #72f1b8; border-color: #34294f; }
-.color-select button:nth-child(2) { background: #FFBF00; border-color: #59316B; }
-.color-select button:nth-child(3) { background: #d9455f; border-color: #303960; }
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;the-javascript&quot;&gt;The JavaScript&lt;/h2&gt;
-&lt;p&gt;We need to have each color swatch button trigger it&amp;#8217;s corresponding theme and swap out the &lt;code&gt;theme-default&lt;/code&gt; class that we have originally attached to the main &lt;code&gt;html&lt;/code&gt; element. We also need to store what the user has selected into &lt;code&gt;localStorage&lt;/code&gt;, so their choice persists when reloading or navigating to other pages.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;&amp;#47; Set a given theme&amp;#47;color-scheme
-function setTheme(themeName) {
- localStorage.setItem(&amp;#39;theme&amp;#39;, themeName);
- document.documentElement.className = themeName;
-}
-
-&amp;#47;&amp;#47; Toggle between color themes
-function toggleDefaultTheme() {
- if (localStorage.getItem(&amp;#39;theme&amp;#39;) !== &amp;#39;theme-default&amp;#39;){
- setTheme(&amp;#39;theme-default&amp;#39;);
- }
-}
-function toggleSecondTheme() {
- if (localStorage.getItem(&amp;#39;theme&amp;#39;) !== &amp;#39;theme-second&amp;#39;){
- setTheme(&amp;#39;theme-second&amp;#39;);
- }
-}
-function toggleThirdTheme() {
- if (localStorage.getItem(&amp;#39;theme&amp;#39;) !== &amp;#39;theme-third&amp;#39;){
- setTheme(&amp;#39;theme-third&amp;#39;);
- }
+ box-shadow: 0 8px 20px rgba(0,0,0,0.5);
+ height: 360px;
+ filter: blur(18px);
+ left: 20px;
+ position: absolute;
+ top: 15px;
+ width: 360px;
}
-
-&amp;#47;&amp;#47; Immediately set the theme on initial load
-(function () {
- if (localStorage.getItem(&amp;#39;theme&amp;#39;) === &amp;#39;theme-default&amp;#39;) {
- setTheme(&amp;#39;theme-default&amp;#39;);
- }
- if (localStorage.getItem(&amp;#39;theme&amp;#39;) === &amp;#39;theme-second&amp;#39;) {
- setTheme(&amp;#39;theme-second&amp;#39;);
- }
- if (localStorage.getItem(&amp;#39;theme&amp;#39;) === &amp;#39;theme-third&amp;#39;) {
- setTheme(&amp;#39;theme-third&amp;#39;);
- }
-})();
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;And that&amp;#8217;s it! Now it just depends on how custom you want each individual theme style to be. The possibilities are endless!&lt;/p&gt;
-&lt;h2 id=&quot;extra-improvements&quot;&gt;Extra Improvements&lt;/h2&gt;
-&lt;p&gt;You could improve this concept even further hiding the &lt;code&gt;color-select&lt;/code&gt; item if the user has JavaScript disabled. For my needs, I felt it was a fine trade-off to keep the non-functioning color swatch pickers if JavaScript was disabled. However, your project&amp;#47;site might need better fallbacks.&lt;/p&gt;</description>
- <link>https://btxx.org/quick-dirty-theme-switcher</link>
- <guid isPermaLink="false">https://btxx.org/quick-dirty-theme-switcher</guid>
- <pubDate>Thu, 04 Jun 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Pure CSS Simple Dropdown Plugin</title>
- <description>&lt;h1 id=&quot;pure-css-simple-dropdown-plugin&quot;&gt;Pure CSS Simple Dropdown Plugin&lt;/h1&gt;
-&lt;p&gt;2018-09-20&lt;/p&gt;
-&lt;p&gt;I find myself blowing away default browser &lt;code&gt;select&lt;/code&gt; styling and implementing my own custom dropdowns far more often than I&amp;#8217;d like. So, I recently created a very simple and clean component using just pure CSS.&lt;/p&gt;
-&lt;p&gt;Check out the CodePen below and feel free to morph it as you see fit for your own projects!&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/plug-play.png&quot; alt=&quot;Three dropdown elements styled differently&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/rZPzWy/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</description>
- <link>https://btxx.org/pure-css-simple-dropdown-plugin</link>
- <guid isPermaLink="false">https://btxx.org/pure-css-simple-dropdown-plugin</guid>
- <pubDate>Thu, 20 Sep 2018 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Publishing Simple Books With Jekyll</title>
- <description>&lt;h1 id=&quot;publishing-simple-books-with-jekyll&quot;&gt;Publishing Simple Books With Jekyll&lt;/h1&gt;
-&lt;p&gt;2019-06-20&lt;/p&gt;
-&lt;p&gt;When thinking about writing, designing and ultimately publishing an ebook, most people don&amp;#8217;t think of using a static site generator. Having products like Amazon Publishing, LaTeX or even Microsoft Word available, why should you use Jekyll?&lt;/p&gt;
-&lt;p&gt;Two reasons:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;extremely easy to use&lt;/li&gt;
-&lt;li&gt;total customization&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;I know these same arguments could be made towards the other options mentioned above, but I&amp;#8217;m biased towards Jekyll since I love the simplicity of HTML and CSS. Hopefully, after reading this post, you will feel the same as well!&lt;/p&gt;
-&lt;h2 id=&quot;no-developer-skills-needed&quot;&gt;No developer skills needed&lt;/h2&gt;
-&lt;p&gt;You won&amp;#8217;t need any hardcore development skills or in-depth knowledge of Jekyll to get the most out of this publishing technique. The theme (&lt;a href=&quot;https://github.com/henrythemes/jekyll-book-theme&quot;&gt;Jekyll Book Theme&lt;/a&gt;) will allow you to focus on your book&amp;#8217;s content rather than wrestling with typography and page layouts. A basic command line script will perform all the heavy lifting for us at the end.&lt;/p&gt;
-&lt;h2 id=&quot;what-are-we-creating&quot;&gt;What are we creating?&lt;/h2&gt;
-&lt;p&gt;You can see the demo of the &lt;em&gt;online&lt;/em&gt; and PDF versions of the book below: &lt;/p&gt;
+&lt;h2 id=&quot;poor-mans-3d-elements&quot;&gt;Poor-man&amp;#8217;s 3D elements&lt;/h2&gt;
+&lt;p&gt;Clearly implementing something like this will never come close to generating true 3D renders on a website, but it is a fun exercise to see how much further we can push simple CSS. Feel free to fork the above CodePen to play around with different colors and shadow placements.&lt;/p&gt;</description>
+ <link>https://btxx.org/fake-3d-elements-with-css</link>
+ <guid isPermaLink="false">https://btxx.org/fake-3d-elements-with-css</guid>
+ <pubDate>Wed, 29 Apr 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Setting Up Fathom Analytics with Netlify</title>
+ <description>&lt;h1 id=&quot;setting-up-fathom-analytics-with-netlify&quot;&gt;Setting Up Fathom Analytics with Netlify&lt;/h1&gt;
+&lt;p&gt;2021-01-19&lt;/p&gt;
+&lt;p&gt;It&amp;#8217;s no secret that I&amp;#8217;m passionate about open source software, but I&amp;#8217;m also extremely adamant about protecting the privacy of all users across the web. So when I decided to implement analytics on my own personal website, I ended up choosing Fathom (&lt;em&gt;get a $10 credit using that link!&lt;/em&gt;).&lt;/p&gt;
+&lt;p&gt;You should research further into the company yourself if you&amp;#8217;re interested, but in a nutshell the Fathom platform provides:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;http://henrythemes.github.io/jekyll-book-theme/&quot;&gt;Jekyll Book Theme (Website)&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;/public/jekyll-book-theme-sample.pdf&quot;&gt;Jekyll Book Theme (PDF Sample)&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;GDPR, ePrivacy, PECR and CCPA compliance&lt;/li&gt;
+&lt;li&gt;ad-blocker bypasses (in a good way -&amp;#62; zero impact on users)&lt;/li&gt;
+&lt;li&gt;anonymous visitor stats&lt;/li&gt;
+&lt;li&gt;software created by indie developers&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;So without wasting anymore time, let&amp;#8217;s get started!&lt;/p&gt;
-&lt;h2 id=&quot;table-of-contents&quot;&gt;Table of Contents&lt;/h2&gt;
+&lt;p&gt;Although this might sound like a &amp;#8220;paid&amp;#8221; blog post, I can assure you this is completely based on my own opinions and experience with the service. I&amp;#8217;m just very pleased with the product :)&lt;/p&gt;
+&lt;p&gt;Enough chit-chat - let&amp;#8217;s breakdown how to setup Fathom on your own site hosted through Netlify!&lt;/p&gt;
+&lt;h2 id=&quot;step-0-assumptions&quot;&gt;Step 0: Assumptions&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;m going into this tutorial with the assumption that you:&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;&lt;a href=&quot;#setup-jekyll&quot;&gt;Setup Jekyll&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#book-theme&quot;&gt;Using the &amp;#8220;Book&amp;#8221; Jekyll Theme&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#chapter-collections&quot;&gt;Writing Chapters&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#html-to-pdf&quot;&gt;HTML to PDF&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#closing-thoughts&quot;&gt;Closing Thoughts&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Have an active Fathom account (or are at least trying the 7-day free trial)&lt;/li&gt;
+&lt;li&gt;Have a website already setup on Netlify (custom domain optional)&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;Before we can really do anything else, you will need to install and setup Jekyll. The best way to do so is by following the instructions on the official Jekyll website:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://jekyllrb.com/docs/installation/&quot;&gt;Installing Jekyll&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Run through the simple step-by-step installation instructions based on your operating system.&lt;/p&gt;
-&lt;h3 id=&quot;basic-requirements&quot;&gt;Basic requirements&lt;/h3&gt;
-&lt;ul&gt;
-&lt;li&gt;Ruby version 2.4.0 or above&lt;/li&gt;
-&lt;li&gt;RubyGems&lt;/li&gt;
-&lt;li&gt;GCC and Make (in case your system doesn’t have them installed)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;The example we will be referencing in this post is the open source Jekyll theme called &amp;#8220;Jekyll Book Theme&amp;#8221;. This theme as been designed and optimized for publishing ebooks with Jekyll.&lt;/p&gt;
-&lt;p&gt;Simply following the instructions on the main README page of the &lt;a href=&quot;https://github.com/henrythemes/jekyll-book-theme&quot;&gt;jekyll-book-theme repo&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: Take the time to edit the &lt;code&gt;title&lt;/code&gt;, and &lt;code&gt;author&lt;/code&gt; properties in the &lt;code&gt;_config.yml&lt;/code&gt; file in the root directory. Make sure these reflect your own book&amp;#8217;s content.&lt;/p&gt;
-&lt;p&gt;That&amp;#8217;s it. Now let&amp;#8217;s tell Jekyll how we want it to format our chapters.&lt;/p&gt;
-&lt;p&gt;By default, Jekyll will look for latest posts in the &lt;code&gt;_post&lt;/code&gt; directory. This is useful for blogs and basic static websites - but not for us. We want chapters.&lt;/p&gt;
-&lt;h3 id=&quot;using-custom-collections&quot;&gt;Using custom collections&lt;/h3&gt;
-&lt;p&gt;Thankfully, Jekyll is flexible and allows us to set our own custom &amp;#8220;collections&amp;#8221;. Collections are ways to group related content together for easier use dynamically. Our plan is to setup a collection that will house our chapter markdown files in numeric order. You can see this in the &amp;#8220;book&amp;#8221; template top level directory. It should look like the following:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;code&gt;_chapters&lt;/code&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;code&gt;01.md&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;02.md&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;03.md&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;etc..&lt;/code&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h3 id=&quot;but-the-template-already-has-this-setup&quot;&gt;But the template already has this setup&lt;/h3&gt;
-&lt;p&gt;By default the Jekyll Book Theme template has this chapters collection implemented and working as intended. The reason I broke it down step-by-step is so that you can have some better understanding about what is happening &amp;#8220;under the hood&amp;#8221;. &lt;/p&gt;
-&lt;p&gt;Teach a person to fish and all that jazz.&lt;/p&gt;
-&lt;p&gt;Now all you need to do is break your chapters down into their own numbered markdown files inside &lt;code&gt;_chapters&lt;/code&gt;.&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/publishing-with-jekyll.webp&quot; alt=&quot;Publishing with Jekyll&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;Before you can convert your digital book &amp;#8220;website&amp;#8221;, you need to install the &lt;code&gt;wkhtmltopdf&lt;/code&gt; package. Download and follow the instructions below:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://wkhtmltopdf.org/&quot;&gt;wkhtmltopdf&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h3 id=&quot;command-line-conversion&quot;&gt;Command line conversion&lt;/h3&gt;
-&lt;p&gt;In your terminal, navigate inside the &lt;code&gt;_site&lt;/code&gt; folder of your jekyll build and then run the following command:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;for f in *.html; do wkhtmltopdf -g -s Letter --no-background &quot;$f&quot; &quot;${f&amp;#47;_*_&amp;#47;_}.pdf&quot;;done
+&lt;p&gt;And that&amp;#8217;s all you need.&lt;/p&gt;
+&lt;h2 id=&quot;step-1-adding-a-custom-domain-dns-setup&quot;&gt;Step 1: Adding a Custom Domain (DNS Setup)&lt;/h2&gt;
+&lt;p&gt;Even though you have the option to use the &lt;code&gt;default&lt;/code&gt; tracking script URL, I would highly recommend setting it up through your own domain. This helps avoid any browser extensions or firewalls that might block outside URL request made by individual sites.&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Navigate to the Fathom &lt;strong&gt;Settings&lt;/strong&gt; page in the bottom footer (must be logged in)&lt;/li&gt;
+&lt;li&gt;Select &lt;strong&gt;Domains&lt;/strong&gt; from the sidebar&lt;/li&gt;
+&lt;li&gt;Enter your custom domain in the &lt;code&gt;Add a new custom domain&lt;/code&gt; input&lt;/li&gt;
+&lt;li&gt;Select &lt;strong&gt;Start Process&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Keep note of both the &lt;code&gt;CNAME&lt;/code&gt; and &lt;code&gt;VALUE&lt;/code&gt; (we will copy this in a moment)&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;Open a new tab, and login to your Netlify account:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;From your &lt;code&gt;Team Overview&lt;/code&gt; page, navigate to the top-level &lt;code&gt;Domains&lt;/code&gt; page&lt;/li&gt;
+&lt;li&gt;Select the domain you plan to add Fathom to&lt;/li&gt;
+&lt;li&gt;Under &lt;strong&gt;DNS settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;DNS records&lt;/strong&gt; select &lt;code&gt;Add New Record&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Select &lt;code&gt;CNAME&lt;/code&gt; from the dropdown of available options&lt;/li&gt;
+&lt;li&gt;Paste the Fathom &lt;code&gt;CNAME&lt;/code&gt; (from the steps above) into the &lt;strong&gt;Name&lt;/strong&gt; input&lt;/li&gt;
+&lt;li&gt;Paste the Fathom &lt;code&gt;VALUE&lt;/code&gt; (from the steps above) into the &lt;strong&gt;Value&lt;/strong&gt; input&lt;/li&gt;
+&lt;li&gt;Click &lt;strong&gt;Save&lt;/strong&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;That&amp;#8217;s it for DNS setup!&lt;/p&gt;
+&lt;h2 id=&quot;step-2-adding-fathom-your-website&quot;&gt;Step 2: Adding Fathom Your Website&lt;/h2&gt;
+&lt;p&gt;Now that we will be using our own custom domain for the script, it&amp;#8217;s time to actually &lt;em&gt;add it&lt;/em&gt; to our website. From the same Fathom &lt;strong&gt;Settings&lt;/strong&gt; page as before:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Navigate to the &lt;strong&gt;Sites&lt;/strong&gt; page in the sidebar&lt;/li&gt;
+&lt;li&gt;Enter your custom domain in the &lt;code&gt;Add a new site&lt;/code&gt; input and click &lt;strong&gt;Get site code&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;In the modal prompt, select your custom domain from the dropdown list (you&amp;#8217;ll see the script code change accordingly)&lt;/li&gt;
+&lt;li&gt;Copy the tracking code snippet and add it to all the pages you plan to track on your site&lt;/li&gt;
+&lt;li&gt;When ready, select &lt;strong&gt;Verify site code&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;If everything went correctly you should be done!&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;step-3-watch-those-live-stats&quot;&gt;Step 3: Watch Those Live Stats!&lt;/h2&gt;
+&lt;p&gt;Open a cold beer (or a bubbly soda if you prefer) and watch your website visitor stats come rolling in on the dashboard! Not only do you now have solid analytics on your website but you have the piece of mind that your users&amp;#8217; privacy isn&amp;#8217;t being invaded. Everybody wins!&lt;/p&gt;</description>
+ <link>https://btxx.org/fathom-analytics-netlify</link>
+ <guid isPermaLink="false">https://btxx.org/fathom-analytics-netlify</guid>
+ <pubDate>Tue, 19 Jan 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>February 2022 Update</title>
+ <description>&lt;h1 id=&quot;february-2022-update&quot;&gt;February 2022 Update&lt;/h1&gt;
+&lt;p&gt;2022-02-23&lt;/p&gt;
+&lt;p&gt;It&amp;#8217;s been a little quiet around here lately and for good reason: my wife gave birth to our third child last Thursday. Her name is Harmony and she was born in the late afternoon weighing in at 7 pounds 8 ounces.&lt;/p&gt;
+&lt;p&gt;Besides the lack of sleep, everything has been going very well and our boys are happy to finally have their sister “out” in the real world. She caught a small cold at the beginning but soldiered through it well.&lt;/p&gt;
+&lt;p&gt;As for personal life &amp;#47; work life, I&amp;#8217;ve taken a couple weeks off until Harmony is in a bit more of a routine to make transitioning back to full time easier. I still have a few articles in the works (like setting up a T60 Thinkpad with Linux Mint and using FreeBSD for the first time on an EOL Chromebook) but those will come in time.&lt;/p&gt;
+&lt;p&gt;I guess I should get back to being a proper dad (I&amp;#8217;m writing this on my phone as she sleeps on me and the boys are napping) but I&amp;#8217;ll be back here posting stupid things in no time.&lt;/p&gt;
+&lt;p&gt;See you on the other side!&lt;/p&gt;</description>
+ <link>https://btxx.org/february-updates</link>
+ <guid isPermaLink="false">https://btxx.org/february-updates</guid>
+ <pubDate>Wed, 23 Feb 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>First Letter Pseudo Element</title>
+ <description>&lt;h1 id=&quot;first-letter-pseudo-element&quot;&gt;First Letter Pseudo Element&lt;/h1&gt;
+&lt;p&gt;2019-05-03&lt;/p&gt;
+&lt;p&gt;In today&amp;#8217;s TypeTip we will be taking a look at the often overlooked &lt;code&gt;:first-letter&lt;/code&gt; CSS pseudo element. Though you might only use this for specific article-format web pages, it&amp;#8217;s still a nice-to-have in your web dev toolset.&lt;/p&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;p&gt;Like most pseudo elements, nothing has to change with your pre-existing HTML structure:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;article&amp;#62;
+ &amp;#60;p&amp;#62;It was a bright cold day in April, and the clocks were striking thirteen.&amp;#60;&amp;#47;p&amp;#62;
+&amp;#60;&amp;#47;article&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Shortly after you should have a generated PDF file inside the &lt;code&gt;_site&lt;/code&gt; folder - most likely named &lt;code&gt;index.html.pdf&lt;/code&gt;. That&amp;#8217;s it! Enjoy your fully formatted PDF version of your book!&lt;/p&gt;
-&lt;p&gt;There are a good amount of pros and cons to this approach of &amp;#8220;publishing&amp;#8221; PDF versions of your book. Since I&amp;#8217;m a sucker for &lt;em&gt;good&lt;/em&gt; and &lt;em&gt;bad&lt;/em&gt; bullet lists, let&amp;#8217;s do just that:&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;The Good&lt;/strong&gt;&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Online version and PDF versions share same styling (keeps things consistent)&lt;/li&gt;
-&lt;li&gt;Chapters are written in &lt;code&gt;markdown&lt;/code&gt; (increased flexibility of writing apps etc.)&lt;/li&gt;
-&lt;li&gt;Very fast and streamlined build process&lt;/li&gt;
-&lt;li&gt;PDF format renders out the chapter headers for built-in navigation&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;&lt;strong&gt;The Bad&lt;/strong&gt;&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Chapters are spit out as one long, single page (I&amp;#8217;m sure this could be rectified with some custom work)&lt;/li&gt;
-&lt;li&gt;More suited for short stories, papers, essay articles (not so great for epic novels)&lt;/li&gt;
-&lt;li&gt;I&amp;#8217;m sure there are other cons I am missing?&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;In the end, using something like LaTeX would certainly grant the user more flexibility in design and layout of the final &amp;#8220;print&amp;#8221; PDF product - but I&amp;#8217;m a sucker for using Jekyll when I can. &lt;/p&gt;
-&lt;p&gt;Please let me know if you decide to use this method and end up publishing your own book 😀 I would love to check it out!&lt;/p&gt;</description>
- <link>https://btxx.org/publish-with-jekyll</link>
- <guid isPermaLink="false">https://btxx.org/publish-with-jekyll</guid>
- <pubDate>Thu, 20 Jun 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>PS4 Download UI with Pure CSS</title>
- <description>&lt;h1 id=&quot;ps4-download-ui-with-pure-css&quot;&gt;PS4 Download UI with Pure CSS&lt;/h1&gt;
-&lt;p&gt;2021-06-20&lt;/p&gt;
-&lt;p&gt;Overall, I&amp;#8217;m fairly impressed with the user interface design of Sony&amp;#8217;s PS4 system OS. It&amp;#8217;s minimal and keeps the content front and center. Even with it&amp;#8217;s sometimes spotty performance hiccups, I&amp;#8217;ve come to enjoy interacting with it.&lt;/p&gt;
-&lt;p&gt;One of the key UI items I&amp;#8217;ve always been a fan of is the download progress view under the &lt;code&gt;Notifications&lt;/code&gt; settings. So I figured I&amp;#8217;d try my hand at recreating this with pure CSS. Here is the final result:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/ps4-loading.png&quot; alt=&quot;PS4 loading screen bar&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/qBroORG&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;Although I&amp;#8217;ve added some of my own improvements (typography spacing, tweaks to the progress bar animation) - the concept it still pretty close to the original.&lt;/p&gt;
-&lt;p&gt;But enough chit-chat, let&amp;#8217;s walkthrough how to make it!&lt;/p&gt;
+&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
+&lt;p&gt;Here&amp;#8217;s where the magic happens:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;p:first-letter {
+ color: orangered;
+ font-size: 250%;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;live-codepen&quot;&gt;Live CodePen&lt;/h2&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/gJYbev/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</description>
+ <link>https://btxx.org/first-letter</link>
+ <guid isPermaLink="false">https://btxx.org/first-letter</guid>
+ <pubDate>Fri, 03 May 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Pure CSS Bar Graphs with Graceful Mobile Fallbacks</title>
+ <description>&lt;h1 id=&quot;pure-css-bar-graphs-with-graceful-mobile-fallbacks&quot;&gt;Pure CSS Bar Graphs with Graceful Mobile Fallbacks&lt;/h1&gt;
+&lt;p&gt;2020-12-08&lt;/p&gt;
+&lt;p&gt;I recently published a new open source project, Flexbox Bar Graphs, and wanted to share a simple breakdown of how it was built. It isn&amp;#8217;t anything mind-blowing, but I like the idea of placing bar graphs in a web page with &lt;em&gt;zero&lt;/em&gt; Javascript.&lt;/p&gt;
+&lt;p&gt;So in the end, this is what our bar graphs will look like on desktop:&lt;/p&gt;
+&lt;p&gt;And this is how it will look on smaller devices:&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s get into the details!&lt;/p&gt;
&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;As with most of my demos, the HTML is very minimal and straightforward. The PS4 system OS download view needs to show the following:&lt;/p&gt;
+&lt;p&gt;The main &amp;#8220;secret&amp;#8221; of this project is that our graphs are constructed out of HTML &lt;em&gt;tables&lt;/em&gt;. Now before you freak out - this is perfectly fine and works in our favor quite well.&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;The game&amp;#8217;s title&lt;/li&gt;
-&lt;li&gt;Full game size, amount downloaded and time remaining&lt;/li&gt;
-&lt;li&gt;Visual progress bar&lt;/li&gt;
+&lt;li&gt;If the user has JS disabled &amp;#8211;&amp;#62; they will still see our graphs&lt;/li&gt;
+&lt;li&gt;If the user has CSS disabled &amp;#8211;&amp;#62; they will see a standard data table set&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;So we will place the game&amp;#8217;s title inside our &lt;code&gt;h2&lt;/code&gt; with a class of &lt;code&gt;title&lt;/code&gt; (shocking, I know). The details about game size, downloaded amount and time remaining gets placed under a parent &lt;code&gt;div&lt;/code&gt; with an accompanying &lt;code&gt;details&lt;/code&gt; class. Finally, we create our progress bar by including a parent &lt;code&gt;div&lt;/code&gt; with a class of &lt;code&gt;progress&lt;/code&gt; that contains a child &lt;code&gt;div&lt;/code&gt; with a class of &lt;code&gt;inner-progress&lt;/code&gt;.&lt;/p&gt;
-&lt;p&gt;Pretty clean and easy to understand.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;wrapper&quot;&amp;#62;
- &amp;#60;img src=&quot;https:&amp;#47;&amp;#47;upload.wikimedia.org&amp;#47;wikipedia&amp;#47;commons&amp;#47;0&amp;#47;00&amp;#47;PlayStation_logo.svg&quot; alt=&quot;PS4&quot; class=&quot;logo&quot;&amp;#62;
- &amp;#60;h2 class=&quot;title&quot;&amp;#62;Detroit: Become Human&amp;#60;&amp;#47;h2&amp;#62;
- &amp;#60;div class=&quot;details&quot;&amp;#62;
- &amp;#60;p&amp;#62;Update File&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p&amp;#62;13.45&amp;#47;17.50 GB (21 Minutes Left)&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;progress&quot;&amp;#62;
- &amp;#60;div class=&quot;inner-progress&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
+&lt;p&gt;All bases are covered!&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;!-- Using a basic table with our custom data-id --&amp;#62;
+&amp;#60;table data-id=&quot;flexbox-bar-graph&quot;&amp;#62;
+ &amp;#60;caption&amp;#62;Web Performance Results&amp;#60;&amp;#47;caption&amp;#62;
+ &amp;#60;thead&amp;#62;
+ &amp;#60;tr&amp;#62;
+ &amp;#60;th&amp;#62;Test Performed&amp;#60;&amp;#47;th&amp;#62;
+ &amp;#60;th&amp;#62;Before&amp;#60;&amp;#47;th&amp;#62;
+ &amp;#60;th&amp;#62;After&amp;#60;&amp;#47;th&amp;#62;
+ &amp;#60;th&amp;#62;Difference&amp;#60;&amp;#47;th&amp;#62;
+ &amp;#60;&amp;#47;tr&amp;#62;
+ &amp;#60;&amp;#47;thead&amp;#62;
+ &amp;#60;tbody&amp;#62;
+ &amp;#60;tr&amp;#62;
+ &amp;#60;th&amp;#62;Initial Load Time&amp;#60;&amp;#47;th&amp;#62;
+ &amp;#60;td&amp;#62;
+ &amp;#60;!--
+ WTF are these CSS variables?
+ See the CSS section below
+ --&amp;#62;
+ &amp;#60;span style=&quot;--data-set:4.7&amp;#47;5;&quot;&amp;#62;&amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;p&amp;#62;4.7&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td&amp;#62;
+ &amp;#60;span style=&quot;--data-set:2.7&amp;#47;5;&quot;&amp;#62;&amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;p&amp;#62;2.7&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;td&amp;#62;
+ &amp;#60;span style=&quot;--data-set:2&amp;#47;5;&quot;&amp;#62;&amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;p&amp;#62;2&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;td&amp;#62;
+ &amp;#60;&amp;#47;tr&amp;#62;
+ &amp;#60;&amp;#47;tbody&amp;#62;
+&amp;#60;&amp;#47;table&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Nothing crazy is happening here - just your standard HTML table structure. The one main thing to notice is the &lt;code&gt;--data-set&lt;/code&gt; CSS variable placed inline on each data point. This will be important for our CSS to configure the individual bar graphs properly.&lt;/p&gt;
&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;Now it&amp;#8217;s time to utilize all those classes in the HTML above to craft our PS4 UI recreation. I&amp;#8217;ll break this section down into digestible chunks to avoid overwhelming you by vomiting out a bunch of CSS spaghetti.&lt;/p&gt;
-&lt;p&gt;First we&amp;#8217;ll add a bunch of QOL improvements to help better showcase the demo (adding custom fonts, center content etc.).&lt;/p&gt;
-&lt;p&gt;This part is completely &lt;em&gt;optional&lt;/em&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Import fonts *&amp;#47;
-@import url(&amp;#39;https:&amp;#47;&amp;#47;fonts.googleapis.com&amp;#47;css2?family=Source+Sans+Pro:wght@200;400&amp;#38;display=swap&amp;#39;);
-
-&amp;#47;* Gradient background styling, height overrides *&amp;#47;
-body {
- background: linear-gradient(#226AB6 0%, #144E8A 100%) no-repeat;
- color: white;
- display: block;
- font-family: &amp;#39;Source Sans Pro&amp;#39;, sans-serif;
- font-weight: 200;
- height: 100vh;
+&lt;p&gt;This might look overwhelming if I just dumped the whole CSS file in one big code block, so instead I&amp;#8217;m going to break them down into two parts:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Baseline styling (mobile)&lt;/li&gt;
+&lt;li&gt;Desktop styling&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h3 id=&quot;baseline&quot;&gt;Baseline&lt;/h3&gt;
+&lt;p&gt;Here we target just our table elements with the &lt;code&gt;data-id&lt;/code&gt; of &lt;code&gt;flexbox-bar-graph&lt;/code&gt;. This allows us to avoid worrying about adding classes or IDs and also avoids conflicts with other non-graph styled tables in our projects.&lt;/p&gt;
+&lt;p&gt;The base &lt;code&gt;:root&lt;/code&gt; element holds all of our bar graph colors. Change these as you see fit!&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Bar Graph color variables *&amp;#47;
+:root {
+ --bar-color-1: #357EC7;
+ --bar-color-2: #E42217;
+ --bar-color-3: #4CC417;
+ --bar-color-4: #7D0541;
+ --bar-color-5: #FFD801;
}
-&amp;#47;* Wrapper to center content *&amp;#47;
-.wrapper {
- margin: 0 auto;
- max-width: 800px;
- padding: 4rem 0 0;
+[data-id=&quot;flexbox-bar-graph&quot;] {
+ border-collapse: collapse;
+ margin: 4rem 0 6rem;
+ width: 100%;
+}
+[data-id=&quot;flexbox-bar-graph&quot;] caption {
+ text-align: left;
+}
+[data-id=&quot;flexbox-bar-graph&quot;] thead th {
+ text-align: right;
+}
+[data-id=&quot;flexbox-bar-graph&quot;] thead th:nth-child(1),
+[data-id=&quot;flexbox-bar-graph&quot;] tbody th {
+ text-align: left;
+}
+[data-id=&quot;flexbox-bar-graph&quot;] tbody th {
+ font-weight: normal;
+ font-style: italic;
+}
+[data-id=&quot;flexbox-bar-graph&quot;] tbody td {
+ text-align: right;
+}
+[data-id=&quot;flexbox-bar-graph&quot;] tbody td p {
+ margin: 0;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;desktop&quot;&gt;Desktop&lt;/h3&gt;
+&lt;p&gt;Now we set your &amp;#8220;visual&amp;#8221; bar graphs to show at a set width (in this example it is 1000px and above). That way the &amp;#8220;default&amp;#8221; styling can target the mobile device screen sizes.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;p&gt;The &lt;code&gt;thead tr th:nth-child(x):before&lt;/code&gt; elements create the square &amp;#8220;legends&amp;#8221; beside each individual data point heading&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;The &lt;code&gt;tbody tr td:nth-of-type(x) span&lt;/code&gt; elements are the bars themselves&lt;/p&gt;
+&lt;p&gt;@media(min-width: 1000px) {
+ [data-id=&quot;flexbox-bar-graph&amp;#8221;] {
+ background: transparent;
+ display: block;
+ min-height: 400px;
+ padding: 0;
+ position: relative;
+ width: 100%;
+ }&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;[data-id=&quot;flexbox-bar-graph&quot;] caption {
+ display: block;
+ font-size: 2rem;
+ text-align: center;
+ width: 100%;
}
-&amp;#47;* Optional PS4 logo *&amp;#47;
-.logo {
+[data-id=&quot;flexbox-bar-graph&quot;] thead {
display: block;
- filter: invert(1);
- margin: 0 0 2rem 0;
- opacity: 0.5;
- width: 60px;
+ margin: 2rem 0 3rem;
+ width: 100%;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now for the styling that &lt;em&gt;actually matters&lt;/em&gt;. First we will style the game&amp;#8217;s title and accompanying details (&lt;code&gt;flexbox&lt;/code&gt; to the rescue again!):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;h2.title {
- font-weight: 400;
+[data-id=&quot;flexbox-bar-graph&quot;] thead tr {
+ border-bottom: 1px solid lightgrey;
+ display: flex;
+ justify-content: center;
+ padding-bottom: 1rem;
+}
+
+[data-id=&quot;flexbox-bar-graph&quot;] thead tr th {
+ display: inline-block;
margin: 0;
+ padding: 0;
+ position: relative;
+ text-align: right;
+}
+[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:before {
+ content:&amp;#39;&amp;#39;;
+ display: inline-block;
+ height: 10px;
+ margin: 0 0.5rem 0 2rem;
+ position: relative;
+ width: 10px;
+}
+[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(1),
+[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(1):before {
+ display: none;
+}
+[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(2):before {
+ background: var(--bar-color-1);
+}
+[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(3):before {
+ background: var(--bar-color-2);
+}
+[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(4):before {
+ background: var(--bar-color-3);
+}
+[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(5):before {
+ background: var(--bar-color-4);
+}
+[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(6):before {
+ background: var(--bar-color-5);
}
-.details {
+[data-id=&quot;flexbox-bar-graph&quot;] tbody {
display: flex;
justify-content: space-between;
- margin: 0.2rem 0 0;
-}
-.details p {
- margin: 0;
+ min-height: 300px;
+ width: 100%;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Not a whole lot of code to get things looking proper, eh? Next we move on to the progress bar. This is &lt;em&gt;slightly&lt;/em&gt; more interesting since we are going to utilize the &lt;code&gt;before&lt;/code&gt; pseudo element - which sounds more complex than it actually is. Pay close attention to the pseudo element and how it calls the &lt;code&gt;progress-bar-shine&lt;/code&gt; animation - more on that later.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.progress {
- background: #226AB6;
- border: 1px solid white;
- height: 15px;
- margin: 2rem 0 0;
+
+[data-id=&quot;flexbox-bar-graph&quot;] tbody tr {
+ display: flex;
+ flex-direction: column-reverse;
+ flex-wrap: wrap;
+ justify-content: flex-end;
+ padding: 0 50px;
position: relative;
width: 100%;
}
-.progress:before {
- animation: progress-bar-shine 2.5s infinite;
- background: linear-gradient(to left, white 0%, transparent 100%);
- border-radius: 10px;
- content:&amp;#39;&amp;#39;;
- filter: blur(8px);
- height: 100%;
- opacity: 0.8;
+[data-id=&quot;flexbox-bar-graph&quot;] tbody tr th {
+ font-size: 90%;
position: absolute;
- transform:translateX(0);
- width: 50px;
+ text-align: center;
+ top: 100%;
+ width: calc(100% - 100px);
}
-.inner-progress {
- background: white;
- height: 100%;
- opacity: 0.6;
- width: 450px;
+[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td {
+ align-items: center;
+ display: flex;
+ flex-direction: column;
+ height: 95%;
+ justify-content: flex-end;
+}
+
+[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td span {
+ display: block;
+ height: calc(var(--data-set) * 100%);
+ width: 20px;
+}
+[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td:nth-of-type(1) span {
+ background: var(--bar-color-1);
+}
+[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td:nth-of-type(2) span {
+ background: var(--bar-color-2);
+}
+[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td:nth-of-type(3) span {
+ background: var(--bar-color-3);
+}
+[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td:nth-of-type(4) span {
+ background: var(--bar-color-4);
+}
+[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td:nth-of-type(5) span {
+ background: var(--bar-color-5);
+}
+
+[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td p {
+ font-size: 90%;
+ margin: 0;
+ text-align: center;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Almost finished! We just need to animate that &lt;code&gt;before&lt;/code&gt; pseudo element with a simple &lt;code&gt;keyframes&lt;/code&gt; at-rule:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@keyframes progress-bar-shine {
- to {
- transform:translateX(450px);
- opacity:0;
- }
+&lt;p&gt;}&lt;/p&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;bonus-styling&quot;&gt;Bonus Styling&lt;/h2&gt;
+&lt;p&gt;In the Flexbox Bar Graph repo, I&amp;#8217;ve also included the ability to display these bar graphs horizontally, like so:&lt;/p&gt;
+&lt;p&gt;The change in CSS is actually quite simple to pull this off - you just need to include the &lt;code&gt;data-layout&lt;/code&gt; attribute on the table itself.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;[data-layout=&quot;horizontal&quot;] tbody {
+ min-height: auto;
+}
+
+[data-layout=&quot;horizontal&quot;] tbody tr {
+ flex-direction: column;
+ padding: 0 40px;
+}
+[data-layout=&quot;horizontal&quot;] tbody tr th {
+ width: calc(100% - 80px);
+}
+
+[data-layout=&quot;horizontal&quot;] tbody tr th {
+ text-align: left;
+ top: calc(100% + 20px);
+}
+
+[data-layout=&quot;horizontal&quot;] tbody tr td {
+ flex-direction: row;
+ height: auto;
+ justify-content: start;
+ margin: 10px 0;
+}
+
+[data-layout=&quot;horizontal&quot;] tbody tr td span {
+ height: 20px;
+ width: calc(var(--data-set) * 100%);
+}
+
+[data-layout=&quot;horizontal&quot;] tbody tr td p {
+ margin-left: 10px;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h2&gt;
-&lt;p&gt;Although far from perfect, this experiment still explores what can be created (or in this case, &lt;em&gt;re&lt;/em&gt;created) in the browser using just pure CSS. Remember, you don&amp;#8217;t have to reach for JavaScript just because you can!&lt;/p&gt;</description>
- <link>https://btxx.org/ps4-download-ui</link>
- <guid isPermaLink="false">https://btxx.org/ps4-download-ui</guid>
- <pubDate>Sun, 20 Jun 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Proper UI Hierarchy</title>
- <description>&lt;h1 id=&quot;proper-ui-hierarchy&quot;&gt;Proper UI Hierarchy&lt;/h1&gt;
-&lt;p&gt;2019-02-05&lt;/p&gt;
-&lt;p&gt;I often feel like an old man when I complain about flat design and how designers these days have lost (or willfully forgotten) the skill to create accessible UIs with proper visual hierarchy. A skill which at it&amp;#8217;s core seems so simple - yet is overlooked in almost every current modern interface.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m unable to pinpoint the exact reason why designers swapped out depth, hierarchical layouts and accessibility for muted colors, abstract imagery, illegible typography, and unimaginative flat designs.&lt;/p&gt;
-&lt;p&gt;But then again, maybe I&amp;#8217;m just a design-dinosaur of a time long forgotten. Maybe I need to adapt and move with the times. Or maybe the current design trends are just lazy.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m pretty sure it&amp;#8217;s lazy design trends.&lt;/p&gt;
-&lt;h2 id=&quot;stop-complaining-and-do-something&quot;&gt;Stop complaining and do something&lt;/h2&gt;
-&lt;p&gt;As an example, I&amp;#8217;m going to breakdown the process of improving the overall design on a set of &amp;#8220;flat&amp;#8221; button elements.&lt;/p&gt;
-&lt;p&gt;Hopefully this demo article inspires even one designer to rethink their method when approaching UI design and push away from what is currently accepted as the &amp;#8220;correct way to design UI&amp;#8221;.&lt;/p&gt;
-&lt;p&gt;And one final note before we deep dive into this demo: &lt;/p&gt;
-&lt;p&gt;The statement that flat design is inherently worse than it&amp;#8217;s predecessor &lt;strong&gt;is not subjective&lt;/strong&gt;. By stripping away the visual cues that help users distinguish between interface elements you are purposely making a worse experience for them. Designers need to stop designing for other designers.&lt;/p&gt;
-&lt;h2 id=&quot;what-we-will-be-designing&quot;&gt;What we will be designing&lt;/h2&gt;
-&lt;p&gt;In this demo we will be improving the default flat design inspired button layout of the following:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/proper-ui.png&quot; alt=&quot;Proper UI buttons, blue and green&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/yLXJmdy&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;thats-all-folks&quot;&gt;That&amp;#8217;s All Folks!&lt;/h2&gt;
+&lt;p&gt;That just about sums things up. Feel free to check out the Github repo itself, open any issues you find or fork it for your own!&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Github: &lt;a href=&quot;https://github.com/bradleytaunt/flexbox-bar-graphs&quot;&gt;https:&amp;#47;&amp;#47;github.com&amp;#47;bradleytaunt&amp;#47;flexbox-bar-graphs&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Live Demo: &lt;a href=&quot;https://flexbox-bar-graphs.netlify.app/&quot;&gt;https:&amp;#47;&amp;#47;flexbox-bar-graphs.netlify.app&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;</description>
+ <link>https://btxx.org/flexbox-bar-graphs</link>
+ <guid isPermaLink="false">https://btxx.org/flexbox-bar-graphs</guid>
+ <pubDate>Tue, 08 Dec 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Adaptable Flexbox Grid</title>
+ <description>&lt;h1 id=&quot;adaptable-flexbox-grid&quot;&gt;Adaptable Flexbox Grid&lt;/h1&gt;
+&lt;p&gt;2018-11-22&lt;/p&gt;
+&lt;p&gt;You can use &lt;code&gt;flexbox&lt;/code&gt; for many tricky layout &amp;#8220;hacks&amp;#8221; and implementing a grid layout is no different.&lt;/p&gt;
+&lt;p&gt;Check out the CodePen below to see how you can implement a flexbox grid system that adapts automatically based on how many items you insert per row (maximum 6 children in this example).&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/rQdLxv/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</description>
+ <link>https://btxx.org/flexbox-grid</link>
+ <guid isPermaLink="false">https://btxx.org/flexbox-grid</guid>
+ <pubDate>Thu, 22 Nov 2018 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Prescription Form UI Improvements</title>
+ <description>&lt;h1 id=&quot;prescription-form-ui-improvements&quot;&gt;Prescription Form UI Improvements&lt;/h1&gt;
+&lt;p&gt;2019-03-13&lt;/p&gt;
+&lt;p&gt;I was browsing the Clearly website a few days ago and ended up using their prescription form to update my worsening eyesight. The design of this form wasn&amp;#8217;t &lt;em&gt;bad&lt;/em&gt; per se, but it could certainly be improved.&lt;/p&gt;
+&lt;h2 id=&quot;current-design-of-the-prescription-view&quot;&gt;Current design of the prescription view&lt;/h2&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/prescription-ui.webp&quot; alt=&quot;Default prescription UI&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;As I stated, this design isn&amp;#8217;t horrible by any means, but right away we can notice some problems:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;the layout causes the users&amp;#8217; eyes to jump between left-to-right and top-to-bottom without good correlation&lt;/li&gt;
+&lt;li&gt;title content and &lt;code&gt;next&lt;/code&gt; buttons are centered, while dropdowns are presented as left-to-right&lt;/li&gt;
+&lt;li&gt;anchor link coloring is inconsistent&lt;/li&gt;
+&lt;li&gt;too much whitespace between interactive sections&lt;/li&gt;
+&lt;li&gt;dropdown height overly large&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;starting-to-make-some-changes&quot;&gt;Starting to make some changes&lt;/h2&gt;
+&lt;p&gt;Let&amp;#8217;s tackle these problems one at a time. First, we want a more defined page layout so the user can scan through the content more easily (left-to-right, down to the next line, then repeat).&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/prescription-ui-update-1.webp&quot; alt=&quot;Layout wireframe UI&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;We have now left-aligned the title content to be flush with the OD&amp;#47;OS elements below it to help keep the reading flow consistent. &lt;/p&gt;
+&lt;p&gt;The previous layout also had the &lt;code&gt;PD&lt;/code&gt; in-line with the OD&amp;#47;OS element rows which created a problem of resetting the user thought-process. Since it requires the user to jump from the &amp;#8220;right eye&amp;#8221; option to the &amp;#8220;PD&amp;#8221; option, then back to &amp;#8220;left eye&amp;#8221; option it breaks the flow of user &amp;#8220;tasks&amp;#8221;. The new UI shifts the &lt;code&gt;PD&lt;/code&gt; down into it&amp;#8217;s own row, grouping the unrelated tasks on the page separately.&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;You&amp;#8217;ll also notice that I&amp;#8217;ve updated the dropdowns to use a monospace font to convey that these options are number inputs.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;Finally we place the button actions in-line with the &lt;code&gt;PD&lt;/code&gt; block since it previously ate up far more real estate than was necessary.&lt;/p&gt;
+&lt;h2 id=&quot;adding-some-color&quot;&gt;Adding some color&lt;/h2&gt;
+&lt;p&gt;The original design has some inconsistencies with the link coloring - some being a muted grey while others use the accented blue. Updating all interactive links to use Clearly&amp;#8217;s default blue accent color would make for a better disconnect from non-interactive elements.&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/prescription-ui-update-2.webp&quot; alt=&quot;Layout UI with color&quot; /&gt;&lt;/p&gt;
+&lt;h2 id=&quot;finishing-touches&quot;&gt;Finishing touches&lt;/h2&gt;
+&lt;p&gt;Now that the most important aspects of the refreshed UI are complete (layout, UX flow), we can implement all the visual extras to cleanup our basic wireframe.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;make default select styling include depth and importance (this is the main action of the page afterall)&lt;/li&gt;
+&lt;li&gt;round out harsh corner edges on elements&lt;/li&gt;
+&lt;li&gt;set labels and row items with more pleasing backgrounds (while still maintaining contrast)&lt;/li&gt;
+&lt;li&gt;give the &lt;code&gt;next&lt;/code&gt; button visual importance (make it look like a real button)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/prescription-ui-update-final.webp&quot; alt=&quot;Layout UI with color&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it!&lt;/p&gt;</description>
+ <link>https://btxx.org/form-ui-improvements</link>
+ <guid isPermaLink="false">https://btxx.org/form-ui-improvements</guid>
+ <pubDate>Wed, 13 Mar 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Chrome OS Could Become the Future Leader of Computing</title>
+ <description>&lt;h1 id=&quot;chrome-os-could-become-the-future-leader-of-computing&quot;&gt;Chrome OS Could Become the Future Leader of Computing&lt;/h1&gt;
+&lt;p&gt;2022-01-06&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;FOSS Enthusiasts&lt;/strong&gt;: This article discusses the use of proprietary software and places it in a &lt;em&gt;positive&lt;/em&gt; light. You have been warned. No angry emails please&amp;#8230;&lt;/p&gt;
&lt;hr/&gt;
-&lt;h2 id=&quot;designing-the-skeleton&quot;&gt;Designing the skeleton&lt;/h2&gt;
-&lt;p&gt;This will be our basic HTML structure, along with it&amp;#8217;s default styling (based on today&amp;#8217;s UI standards):&lt;/p&gt;
-&lt;h3 id=&quot;the-html&quot;&gt;The HTML&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;buttons-container&quot;&amp;#62;
- &amp;#60;button&amp;#62;Sign Up&amp;#60;&amp;#47;button&amp;#62;
- &amp;#60;button&amp;#62;Log in&amp;#60;&amp;#47;button&amp;#62;
+&lt;p&gt;Google has created one of the best operating systems designed with the everyday user1 in mind: &lt;a href=&quot;https://www.google.com/chromebook/chrome-os/&quot;&gt;Chrome OS&lt;/a&gt;. It is undeniably simple, reliable, easy to setup, and ships with several years of support before any form of EOL kicks in. New models have built-in support for the Google Play Store and Android applications, which is helpful for application development and debugging.&lt;/p&gt;
+&lt;p&gt;In addition, Chrome OS devices allow you to run Linux in a separate container alongside the main OS (on supported devices). You can&amp;#8217;t complain about that!&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s take a quick look at other positive features worth mentioning:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Verified boot&lt;/li&gt;
+&lt;li&gt;Sandboxed environment (similar to how Chrome tabs work)&lt;/li&gt;
+&lt;li&gt;Automatic updates[^2]&lt;/li&gt;
+&lt;li&gt;&lt;em&gt;Incredible&lt;/em&gt; battery life (were talking 10+ hours with heavy usage)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;my-personal-experience&quot;&gt;My Personal Experience&lt;/h2&gt;
+&lt;p&gt;A handful of months ago I snagged the Lenovo Chromebook Duet when it was on sale for my wife. Since she does all her work directly through an Android phone, I thought of this as a nice companion device. And indeed it was&amp;#47;is.&lt;/p&gt;
+&lt;p&gt;In that time, I played around with the tablet myself to have a better grasp of the ecosystem and it&amp;#8217;s obvious limitations. But a funny thing happened. I found that those &amp;#8220;limitations&amp;#8221; slowly started to disappear the longer I worked with the device.&lt;/p&gt;
+&lt;p&gt;I decided to get my own Chrome OS device and snagged the &lt;a href=&quot;https://www.lenovo.com/ca/en/laptops/lenovo/student-chromebooks/Lenovo-10e-Chromebook-Tablet/p/82AM000EUS&quot;&gt;Lenovo 10e Chromebook Tablet&lt;/a&gt; (on sale).&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;10.1&amp;#8221; display (1920 x 1200) &amp;#47; 400 nits&lt;/li&gt;
+&lt;li&gt;4GB of RAM&lt;/li&gt;
+&lt;li&gt;32GB of eMMC storage&lt;/li&gt;
+&lt;li&gt;Processor: MediaTek MT8183 Processor (2.00 GHz, 4 Cores, 1 MB Cache)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Now, I know that your initial reaction is likely: &amp;#8220;Wow, those specs are pretty barebones!&amp;#8221; and you would be correct. But it&amp;#8217;s all you need for this ecosystem to work. As cringe-inducing as it may sound, everything you plan to do on these devices should happen &lt;em&gt;in the cloud&lt;/em&gt;. (Let&amp;#8217;s take a moment to avoid vomiting in our collective mouths)&lt;/p&gt;
+&lt;p&gt;Instead of using a few marketing buzz words, let me breakdown how I personally tailor Chrome OS to my needs as a designer &amp;#47; developer:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;a href=&quot;#daily-tasks&quot;&gt;Daily Tasks&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#programming&quot;&gt;Programming&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#design&quot;&gt;Design&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#gaming&quot;&gt;Gaming&lt;/a&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;daily-tasks&quot;&gt;Daily Tasks&lt;/h2&gt;
+&lt;p&gt;I feel like going into &lt;em&gt;great&lt;/em&gt; detail explaining how to do basic, daily computing tasks is a little overkill here. Spreadsheets, word documents, Zoom meetings, and streaming media work as expected. You have the ability to use Google&amp;#8217;s own web apps for these things or reach for other vendors such as Microsoft and Libre Office. Not being &amp;#8220;locked in&amp;#8221; to Google software is nice and I appreciate the Chrome OS team being flexible.&lt;/p&gt;
+&lt;h2 id=&quot;programming&quot;&gt;Programming&lt;/h2&gt;
+&lt;p&gt;This one is a mixed bag and your own mileage may vary depending on your specific requirements. Personally, I use Github for almost all my main development work. Because of this, I utilize &lt;a href=&quot;https://github.com/features/codespaces&quot;&gt;Codespaces&lt;/a&gt;. For those unfamiliar with the service, you are running your Github repo in VSCode through the browser. It&amp;#8217;s pretty impressive.&lt;/p&gt;
+&lt;p&gt;If you happen to be a user who uses GitLab or BitBucket to store your project files, &lt;a href=&quot;https://www.gitpod.io/&quot;&gt;Gitpod&lt;/a&gt; is a similar product to Codespaces (which I&amp;#8217;ve used on occasion). This works if your prefer.&lt;/p&gt;
+&lt;p&gt;Others may not like this programming setup but for me it works great. If running code remotely isn&amp;#8217;t your jam, you could always take a look at running &lt;a href=&quot;https://vscodium.com/&quot;&gt;VSCodium&lt;/a&gt; locally via Linux.&lt;/p&gt;
+&lt;h2 id=&quot;design&quot;&gt;Design&lt;/h2&gt;
+&lt;p&gt;There is flexibility yet again in this category. Personally, I tend to use Figma almost exclusively as my main design tool. The best thing about Figma? It runs directly in the browser. A perfect fit for Chromebooks[^3].&lt;/p&gt;
+&lt;p&gt;I do open Gimp periodically for photo-specific work. It runs in its own Linux container and chugs along smoothly, even with 4GB of available memory. If all else fails, one could use &lt;a href=&quot;https://www.photopea.com/&quot;&gt;Photopea&lt;/a&gt; to keep everything working through the browser (if Linux isn&amp;#8217;t your cup of tea).&lt;/p&gt;
+&lt;p&gt;Those of you in love with MacOS specific apps like Sketch - I can&amp;#8217;t help you. You&amp;#8217;re stuck with Apple&amp;#8217;s ecosystem. (Not that there is anything wrong with Sketch!)&lt;/p&gt;
+&lt;h2 id=&quot;gaming&quot;&gt;Gaming&lt;/h2&gt;
+&lt;p&gt;There are other options (that we will get into) but the main gaming champion here is &lt;strong&gt;Stadia&lt;/strong&gt;[^4]. As long as your internet speeds are over 10mbps, mind you. I use garbage satellite internet (counting down the days for Starlink to become available here&amp;#8230;) with an average speed of 18-20mbps and Stadia runs like a dream. Even &lt;em&gt;wirelessly&lt;/em&gt;. Now pair this with the portability of a Chromebook device and you&amp;#8217;ve got yourself a beefier Nintendo Switch.&lt;/p&gt;
+&lt;p&gt;You have solid secondary options like &lt;a href=&quot;https://play.geforcenow.com/mall/#/layout/games&quot;&gt;GeForce Now&lt;/a&gt; and &lt;a href=&quot;https://www.xbox.com/en-CA/xbox-game-pass/cloud-gaming&quot;&gt;Microsoft&amp;#8217;s xCloud (beta)&lt;/a&gt; for an even larger catalogue of games. Not to mention the ability to play a lot of Android games natively on Chromebooks that support Play Store applications.&lt;/p&gt;
+&lt;h2 id=&quot;eye-rolling-scoffing&quot;&gt;Eye Rolling &amp;#38; Scoffing&lt;/h2&gt;
+&lt;p&gt;I can hear the screeching across the interwebs: &amp;#8220;&lt;em&gt;Wait - this is Google! They are literally Satan in disguise! No one can use products from that evil mega corporation!&lt;/em&gt;&amp;#8221;. And while I agree with the sentiment, I think going down this pure, 100% elitist approach to software &lt;em&gt;doesn&amp;#8217;t work&lt;/em&gt; with the everyday casual user. Not to mention the large swath of developers&amp;#47;designers screaming &amp;#8220;Google is bad!&amp;#8221; while working off an &lt;em&gt;Apple&lt;/em&gt; device&amp;#8230;&lt;/p&gt;
+&lt;p&gt;Hell even I, a vocal advocate for open source software and privacy, can see the great benefits to using Chrome OS as a daily driver. &lt;/p&gt;
+&lt;p&gt;Testing out Chrome OS with your non-technical friends and family could help reduce a lot of headaches found in more &amp;#8220;popular&amp;#8221; systems. That doesn&amp;#8217;t mean advanced users have to switch over. Use what works the best for you. For my immediate family members and social circles, I have nothing but positive things to say about Chrome OS.&lt;/p&gt;
+&lt;p&gt;I have no crystal ball to see what the future of Chrome OS holds but it looks pretty promising to me.&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;&amp;#8220;Users&amp;#8221; referring to those mainly using their devices for word documents, spread sheets, media consumption, programming, messaging, minor interactivity (no heavy video or production editing)&lt;/li&gt;
+&lt;li&gt;These updates go unnoticed, compared to that of MacOS or Windows&amp;#8230;&lt;/li&gt;
+&lt;li&gt;Your mileage may vary depending on how much RAM you have on your device&lt;/li&gt;
+&lt;li&gt;Although, Stadia&amp;#8217;s current game selection leaves a lot to be desired&lt;/li&gt;
+&lt;/ol&gt;</description>
+ <link>https://btxx.org/future-os-google</link>
+ <guid isPermaLink="false">https://btxx.org/future-os-google</guid>
+ <pubDate>Thu, 06 Jan 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Simplifying the Craigslist Gallery</title>
+ <description>&lt;h1 id=&quot;simplifying-the-craigslist-gallery&quot;&gt;Simplifying the Craigslist Gallery&lt;/h1&gt;
+&lt;p&gt;2022-10-03&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;This article was updated on October 11, 2022&lt;/strong&gt;&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m a big fan of &lt;a href=&quot;https://craigslist.org&quot;&gt;craigslist.org&lt;/a&gt; and the overall UX used throughout their application. My own website is an ever-changing example of &amp;#8220;brutalist&amp;#8221; or minimalist design, so I&amp;#8217;m always inspired by existing web apps out in the wild using the same principles.&lt;/p&gt;
+&lt;p&gt;One nitpick I have with the current craigslist design is their approach to image galleries inside their listings. They use a chunk of bloated JavaScript (more than &lt;code&gt;380kB&lt;/code&gt; total) to render something as simple as a collection of images. This seems like overkill to me.&lt;/p&gt;
+&lt;h2 id=&quot;simplifying-things&quot;&gt;Simplifying Things&lt;/h2&gt;
+&lt;p&gt;My first suggestion would be to remove JavaScript altogether. We can replicate most of the required features with just HTML &amp;#38; CSS. Let&amp;#8217;s start with our core HTML structure:&lt;/p&gt;
+&lt;h3 id=&quot;html&quot;&gt;HTML&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;gallery-wrapper&quot;&amp;#62;
+ &amp;#60;div class=&quot;full-size&quot;&amp;#62;
+ &amp;#60;a name=&quot;p1&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;100&amp;#47;400&quot; alt=&quot;Picture 1&quot; class=&quot;gallery-item&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;a name=&quot;p2&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;101&amp;#47;400&quot; alt=&quot;Picture 2&quot; class=&quot;gallery-item&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;a name=&quot;p3&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;106&amp;#47;400&quot; alt=&quot;Picture 3&quot; class=&quot;gallery-item&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;thumbnails&quot;&amp;#62;
+ &amp;#60;a href=&quot;#p1&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;100&amp;#47;100&quot; alt=&quot;Picture 1 Thumbnail&quot; class=&quot;thumbnail-1&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;a href=&quot;#p2&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;101&amp;#47;100&quot; alt=&quot;Picture 2 Thumbnail&quot; class=&quot;thumbnail-2&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;a href=&quot;#p3&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;106&amp;#47;100&quot; alt=&quot;Picture 3 Thumbnail&quot; class=&quot;thumbnail-3&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;the-css&quot;&gt;The CSS&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Parent container for the buttons *&amp;#47;
-.buttons-container {
- background: #E0E9EE;
- border-radius: 5px;
- display: flex;
- padding: 20px;
- margin: 0 auto;
- max-width: 300px;
- width: 100%;
+&lt;p&gt;Here we are placing the full-size gallery images directly inside a single &lt;code&gt;div.full-size&lt;/code&gt; as - you guessed it - &lt;code&gt;img&lt;/code&gt; elements. This already helps us avoid the pitfall of building out spaghetti &lt;code&gt;div&lt;/code&gt; containers.&lt;/p&gt;
+&lt;p&gt;Below this parent container we have another element, &lt;code&gt;div.thumbnails&lt;/code&gt;, which will be used for our separate, smaller thumbnail versions of our main images. The most important items to note are the associated &lt;code&gt;ahref&lt;/code&gt; elements surrounding each &lt;code&gt;img&lt;/code&gt; element. By setting the &lt;code&gt;id&lt;/code&gt; parameter on our thumbnails to match that of the &lt;code&gt;name&lt;/code&gt; on our full-sized images, we can &amp;#8220;scroll&amp;#8221; the proper image into view without the need for JavaScript.&lt;/p&gt;
+&lt;p&gt;Now for the &lt;em&gt;fancy&lt;/em&gt; stuff - the CSS!&lt;/p&gt;
+&lt;h3 id=&quot;css&quot;&gt;CSS&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;.gallery-wrapper {
+ position: relative;
}
-
-&amp;#47;*Shared button styles *&amp;#47;
-button {
- appearance: none;
- border: 0;
- border-radius: 5px;
- color: #fff;
- cursor: pointer;
- display: inline-block;
- font-size: 14px;
- font-weight: bold;
- padding: 15px 20px;
- width: 50%;
+.gallery-wrapper:before {
+ background: rgba(255,255,255,0.8);
+ content: &quot;Scroll &amp;#47; Swipe 🡢&quot;;
+ display: block;
+ padding: 5px;
+ position: relative;
}
-&amp;#47;* Sign up button *&amp;#47;
-button:first-child {
- background: #2FBC3D;
- margin-right: 10px;
+.full-size {
+ display: flex;
+ scroll-snap-type: x mandatory;
+ margin-bottom: 10px;
+ max-width: 400px;
+ overflow-x: scroll;
+}
+.full-size .gallery-item {
+ scroll-snap-align: start;
}
-&amp;#47;* Log in button *&amp;#47;
-button:last-child {
- background: #459BCF;
+.thumbnails img {
+ cursor: pointer;
+ margin-right: 10px;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;adding-simple-improvements&quot;&gt;Adding simple improvements&lt;/h2&gt;
-&lt;p&gt;Gradients (not solely on their own mind you) within UI systems were initially used to help humans make connections with their analog counterparts. Something like toggles or switches matching those found in the real world, allowed users to mentally connect what that element&amp;#8217;s function did almost instantly. &lt;/p&gt;
-&lt;p&gt;Be warned not to confuse this with skeuomorphic design - an element sharing similar qualities as it&amp;#8217;s analog sibling does not instantly make it so.&lt;/p&gt;
-&lt;p&gt;If you ever run into a designer who rolls their eyes or scoffs at you for proposing the use of something such as gradients (in a tactful way, of course) it is safe to assume they have been brainwashed by the modern design hive-mind.&lt;/p&gt;
-&lt;p&gt;To disregard the use of gradients simply because the belief is &amp;#8220;gradients are bad&amp;#8221; is idiotic. Worse still is to do so based on the belief that &amp;#8220;gradients aren&amp;#8217;t &lt;em&gt;in&lt;/em&gt; right now&amp;#8221;. As a designer, your job is to design a beautiful and &lt;em&gt;usable&lt;/em&gt; product - not win high-fives among your peers. &amp;#47;end rant.&lt;/p&gt;
-&lt;h3 id=&quot;adding-subtle-gradients&quot;&gt;Adding subtle gradients&lt;/h3&gt;
-&lt;p&gt;When gradients are implemented properly, most users won&amp;#8217;t even be aware of their presence. The difference in color (specifically on buttons in this example) helps give the illusion of a light source in the interface, which designers can use to their advantage (ie. pull more attention to elements by &amp;#8220;lifting&amp;#8221; them forward on the page).&lt;/p&gt;
-&lt;h3 id=&quot;the-subtly-improved-css&quot;&gt;The subtly improved CSS&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Sign up button *&amp;#47;
-button:first-child {
- background-image: linear-gradient(-180deg, #1EB52A 0%, #0D941C 100%);
+&lt;p&gt;Okay, so it isn&amp;#8217;t &lt;em&gt;that&lt;/em&gt; fancy. It&amp;#8217;s actually very basic, which is exactly what we were going for. The images are &amp;#8220;stacked&amp;#8221; inline thanks to the parent container being set to &lt;code&gt;display: flex&lt;/code&gt;, even though it has a set width of &lt;code&gt;600px&lt;/code&gt;. The included &lt;code&gt;scroll-snap-type: x mandatory&lt;/code&gt; tells the browser to allow users to scroll&amp;#47;swipe horizontally through the parent container.&lt;/p&gt;
+&lt;p&gt;The last important piece of this CSS is the &lt;code&gt;scroll-snap-align: start&lt;/code&gt; added to the individual image elements. This parameter &lt;em&gt;snaps&lt;/em&gt; the next image into the starting position of the parent container on scroll, giving a behavior users have come to expect from media galleries.&lt;/p&gt;
+&lt;p&gt;You will also see the included &lt;code&gt;:before&lt;/code&gt; pseudo element attached to the main &lt;code&gt;.gallery-wrapper&lt;/code&gt; element. This isn&amp;#8217;t &lt;em&gt;required&lt;/em&gt; but it certainly helps from a UX standpoint.&lt;/p&gt;
+&lt;h2 id=&quot;live-demo&quot;&gt;Live Demo&lt;/h2&gt;
+&lt;p&gt;Check out the embedded CodePen below to see it in action. More functionality could always be built on top of this, such as rendering all images dynamically on &amp;#8220;build&amp;#8221;, but for a starting point I think it&amp;#8217;s great.&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/ExLRyXz&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</description>
+ <link>https://btxx.org/gallery</link>
+ <guid isPermaLink="false">https://btxx.org/gallery</guid>
+ <pubDate>Mon, 03 Oct 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Applying Email-Based Git Patches in Evolution on Linux</title>
+ <description>&lt;h1 id=&quot;applying-email-based-git-patches-in-evolution-on-linux&quot;&gt;Applying Email-Based Git Patches in Evolution on Linux&lt;/h1&gt;
+&lt;p&gt;2023-04-25&lt;/p&gt;
+&lt;p&gt;Users who work with git patches through email most likely use a terminal-based program such as &lt;code&gt;aerc&lt;/code&gt; or &lt;code&gt;mutt&lt;/code&gt;. CLI email clients tend to have built-in support for easily applying patches directly to their local repos. But what about people who prefer to use graphical email apps?&lt;/p&gt;
+&lt;p&gt;Lucky for us, it is actually fairly simple to replicate a similar workflow to that of a CLI client. In this example I will be focusing on the Evolution email client, but the core principles should work in most other GUIs.&lt;/p&gt;
+&lt;h2 id=&quot;the-basics&quot;&gt;The Basics&lt;/h2&gt;
+&lt;blockquote&gt;
+&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The following assumes you already have &lt;code&gt;git&lt;/code&gt; installed and setup on your existing system.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;I find it best to first create a top-level folder on your system named &lt;code&gt;patches&lt;/code&gt;. We will use this folder as a temporary location for reviewing any &lt;code&gt;git&lt;/code&gt; patches submitted via email. I normally place this under &lt;code&gt;&amp;#47;home&amp;#47;&amp;#60;username&amp;#62;&amp;#47;patches&lt;/code&gt;.&lt;/p&gt;
+&lt;p&gt;Next, locate the email patch in Evolution and right-click on it. Select &amp;#8220;Save as mbox&amp;#8230;&amp;#8221; and place this file inside your newly created &lt;code&gt;patches&lt;/code&gt; folder.&lt;/p&gt;
+&lt;p&gt;Now simply open your terminal, navigate to your project and run:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;git am &amp;#60;path-to-patches-folder&amp;#62;&amp;#47;&amp;#60;patch-filename&amp;#62;.mbox
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;This should apply the patch directly to your project without issue. You are now free to test these changes locally. If everything looks good, you&amp;#8217;re able to instantly push these changes remotely.&lt;/p&gt;
+&lt;p&gt;Done and done.&lt;/p&gt;
+&lt;p&gt;Feel free to purge your &lt;code&gt;patches&lt;/code&gt; folder regularly or keep them around for future reference if you prefer!&lt;/p&gt;</description>
+ <link>https://btxx.org/git-patches</link>
+ <guid isPermaLink="false">https://btxx.org/git-patches</guid>
+ <pubDate>Tue, 25 Apr 2023 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Goodbye CSS Preprocessors</title>
+ <description>&lt;h1 id=&quot;goodbye-css-preprocessors&quot;&gt;Goodbye CSS Preprocessors&lt;/h1&gt;
+&lt;p&gt;2017-09-07&lt;/p&gt;
+&lt;p&gt;I have been using preprocessors across all my side projects since they first popped onto the scene. Sass, Stylus, LESS — you name the CSS preprocessor and I&amp;#8217;ve most likely used it because CSS preprocessors are awesome.&lt;/p&gt;
+&lt;p&gt;But that all changes moving forward. I&amp;#8217;m going back to basics with CSS. Straight vanilla, man.&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/sass-cancel_rl1fsw_c_scale,w_800.webp&quot; alt=&quot;No Sass&quot; /&gt;&lt;/p&gt;
+&lt;h2 id=&quot;why-and-who-cares&quot;&gt;Why? And who cares?&lt;/h2&gt;
+&lt;p&gt;Let&amp;#8217;s start by breaking down the main positives about preprocessors:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Nested syntax&lt;/li&gt;
+&lt;li&gt;Definable variables&lt;/li&gt;
+&lt;li&gt;Advanced mathematical functions&lt;/li&gt;
+&lt;li&gt;Reusable mixins&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;All of these features are great and I completely understand the draw (I was also sucked into the hype) - but now let&amp;#8217;s see the negatives.&lt;/p&gt;
+&lt;h2 id=&quot;1.-debugging-is-a-chore&quot;&gt;1. Debugging is a chore&lt;/h2&gt;
+&lt;p&gt;So you found some weird padding clobbering an element&amp;#8217;s default styles on line 255 of your main complied CSS file? Excellent! Now you just need to figure out which file that property comes from.&lt;/p&gt;
+&lt;p&gt;This might sound trivial or that you can fix this with rendered comments but if you ever work on a project with hundreds of Sass&amp;#47;Stylus&amp;#47;LESS files all importing and compiling into each other - it can get out of hand.&lt;/p&gt;
+&lt;p&gt;Solution: Using plain CSS makes using browser dev tools a breeze. See a bug on line 255? No problem, let me fix line 255.&lt;/p&gt;
+&lt;h2 id=&quot;2.-dependencies-for-development&quot;&gt;2. Dependencies for development&lt;/h2&gt;
+&lt;p&gt;Building a project with a preprocessor brings with it unnecessary baggage; dependencies. You&amp;#8217;ll need to be running some sort of task runner (see grunt or gulp) that will compile and minify your CSS. I see this as extra overhead both during the initial setup of the project for new team members and the testing environment.&lt;/p&gt;
+&lt;p&gt;By using plain CSS, you avoid including an extra package in your package.json file (if applicable) or having to rely on third party compilers such as codekit (although I do recommend this app).&lt;/p&gt;
+&lt;h2 id=&quot;3.-variables-mixins-become-unwieldily&quot;&gt;3. Variables &amp;#38; mixins become unwieldily&lt;/h2&gt;
+&lt;p&gt;Both variables and mixins are great in small doses, but if your project has any real size to it these helpers become a hinderance. By using comma-delimited CSS selectors you can achieve the same outcome without the horror of needing a specific preprocessor file to handle just variables and mixins.&lt;/p&gt;
+&lt;p&gt;Basic example:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;selector, selectTwo, .css-class {
+ &amp;#47;* shared styling *&amp;#47;
}
-
-&amp;#47;* Log in button *&amp;#47;
-button:last-child {
- background-image: linear-gradient(-180deg, #489FD2 0%, #0A6DAC 100%);
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;4.-welcome-to-nesting-hell&quot;&gt;4. Welcome to nesting hell&lt;/h2&gt;
+&lt;p&gt;Honestly, I&amp;#8217;ve never been a fan of nesting. From a file structure perspective it is indeed very &amp;#8220;clean&amp;#8221;, but you sacrifice that cleanliness in the final compiled production code. You&amp;#8217;re making your development environment easier to glance at and work through at the cost of your production-ready, customer facing code.&lt;/p&gt;
+&lt;p&gt;You also run into another big no-no in my eyes: extreme selector specificity. The DOM target search starts to get out of control once you start having classes and selectors building up towards 10 or more steps.&lt;/p&gt;
+&lt;p&gt;Bad:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;body #home .container .modal nav .inner-nav &amp;#62; ul &amp;#62; li &amp;#62; a {
+ color: red;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;more-depth-light&quot;&gt;More depth &amp;#38; light&lt;/h2&gt;
-&lt;p&gt;With our subtle gradients we are closer to creating a solid contrast between interactive elements, but we can improve this even further. By adding some more depth with a harder light source and more pronounced outlines, we allow the button elements to stand out on their own more strongly.&lt;/p&gt;
-&lt;p&gt;This is fairly easy to accomplish with CSS using the very basic &lt;code&gt;box-shadow&lt;/code&gt;, &lt;code&gt;text-shadow&lt;/code&gt; and &lt;code&gt;border&lt;/code&gt; properties:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Parent container *&amp;#47;
-.buttons-container {
- background-image: linear-gradient(0deg, #BBC6CD 3%, #E2EBF0 100%);
- border: 1px solid #8D8D8D;
- box-shadow: 0 2px 4px 0 rgba(42,42,42,0.40), inset 0 1px 3px 0 rgba(255,255,255,0.50);
+&lt;p&gt;Good:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.inner-nav a {
+ color: red;
}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Don&amp;#8217;t forget the amount of work needed to override styling with such deep selector specificity. That&amp;#8217;s where you end up diving into the world of !important tags.&lt;/p&gt;
+&lt;h2 id=&quot;final-thoughts&quot;&gt;Final thoughts&lt;/h2&gt;
+&lt;p&gt;It should go without saying that this is just my personal preference, there is no law behind this. If you use and absolutely love preprocessors - more power to you. All I suggest is using plain old vanilla CSS for your next project and see how it works out.&lt;/p&gt;
+&lt;p&gt;And do you know what I&amp;#8217;ve learned to appreciate after switching back to vanilla? CSS is more beautiful when developed in it&amp;#8217;s rawest form.&lt;/p&gt;</description>
+ <link>https://btxx.org/goodbye-css-preprocessors</link>
+ <guid isPermaLink="false">https://btxx.org/goodbye-css-preprocessors</guid>
+ <pubDate>Thu, 07 Sep 2017 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Using Hamburger Menus? Try Sausage Links</title>
+ <description>&lt;h1 id=&quot;using-hamburger-menus-try-sausage-links&quot;&gt;Using Hamburger Menus? Try Sausage Links&lt;/h1&gt;
+&lt;p&gt;2019-06-14&lt;/p&gt;
+&lt;p&gt;When designing medium to large sized menu navigations on the mobile web the default go-to, for some time now, has been hamburger menus. This isn&amp;#8217;t necessarily a bad thing, but there is a simpler alternative for certain use cases.&lt;/p&gt;
+&lt;p&gt;Before we get into the nitty-gritty details (and a simple demo) of the &lt;em&gt;sausage link&lt;/em&gt; concept, let&amp;#8217;s take a quick look at the pros and cons of hamburger menus.&lt;/p&gt;
+&lt;h2 id=&quot;hamburger-menus&quot;&gt;Hamburger Menus&lt;/h2&gt;
+&lt;p&gt;The concept of the &lt;a href=&quot;https://codepen.io/search/pens?q=hamburger%20menu&amp;amp;page=1&amp;amp;order=popularity&amp;amp;depth=everything&quot;&gt;hamburger menu&lt;/a&gt; isn&amp;#8217;t &lt;em&gt;horrible&lt;/em&gt; by any means, in fact it does solve a lot of problems from a visual perspective. Unfortunately, that doesn&amp;#8217;t mean it exists without some annoying flaws.&lt;/p&gt;
+&lt;h3 id=&quot;the-good&quot;&gt;The Good&lt;/h3&gt;
+&lt;ul&gt;
+&lt;li&gt;Minimizes the amount visual space the menu requires&lt;/li&gt;
+&lt;li&gt;Fairly commonplace now that a good portion of users understand it&amp;#8217;s functionality&lt;/li&gt;
+&lt;li&gt;Makes the lives of designers easier by tucking all items away on mobile 😛&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h3 id=&quot;the-bad&quot;&gt;The Bad&lt;/h3&gt;
+&lt;ul&gt;
+&lt;li&gt;Requires extra testing&amp;#47;work to ensure the menu will play nice with screen readers and keyboard-only users&lt;/li&gt;
+&lt;li&gt;Can get overly complex with the presence of children dropdown elements, help text etc.&lt;/li&gt;
+&lt;li&gt;Adds bloat to projects that might require additional JavaScript to render these menus (CSS only hamburger menus avoid this issue)&lt;/li&gt;
+&lt;li&gt;Adds an additional point of interaction from the user (click to open, then proceed to read through available options)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;As you can see, the bad points listed above aren&amp;#8217;t &lt;em&gt;that&lt;/em&gt; bad. I see them more as minor potholes along the UX journey for your end-users. A good portion of hamburger menu examples in the wild work perfectly fine and should remain as they are. However, those outliers who abuse or misuse the hamburger concept should be introduced to &lt;strong&gt;sausage links&lt;/strong&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;sausage-links&quot;&gt;Sausage Links&lt;/h2&gt;
+&lt;p&gt;I should start by mentioning that this concept is far from &lt;strong&gt;new&lt;/strong&gt;. There are a good number of websites that already implement this menu type in some form or another. The point of this post isn&amp;#8217;t to blow your mind with some new-never-thought-of navigation design. I&amp;#8217;m just trying to bring awareness to another available menu concept.&lt;/p&gt;
+&lt;p&gt;Enough chit-chat, let&amp;#8217;s take a look at sausage links in action:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/scrolling-navigation.png&quot; alt=&quot;Scrolling menu with sausage links&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/QXjjbE/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;The above CodePen adds a good amount of visual design fluff, so let&amp;#8217;s take a look at the bare minimum HTML &amp;#38; CSS needed to accomplish this menu:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;nav class=&quot;sausage-links&quot;&amp;#62;
+ &amp;#60;ul&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Homepage&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Categories&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Filter Properties&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Edit Optional Tags&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Research Papers&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Contact Our Team&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;&amp;#47;ul&amp;#62;
+&amp;#60;&amp;#47;nav&amp;#62;
-&amp;#47;* Shared button styling with text-shadows *&amp;#47;
-.buttons-container button {
- text-shadow: 0 2px 4px rgba(0,0,0,0.30);
-}
-&amp;#47;* Sign up button *&amp;#47;
-.buttons-container button:first-child {
- background-image: linear-gradient(-180deg, #1EB52A 0%, #0D941C 100%);
- border: 1px solid #0C6B16;
- box-shadow: 0 1px 5px 0 rgba(9,116,21,0.50), inset 0 -1px 6px 0 rgba(0,0,0,0.20), inset 0 1px 0 0 rgba(255,255,255,0.50), inset 0 2px 4px 0 rgba(255,255,255,0.50);
+
+&amp;#47;* Sausage Links Nav Container *&amp;#47;
+.sausage-links {
+ position: relative;
}
-&amp;#47;* Log in button *&amp;#47;
-.buttons-container button:last-child {
- background-image: linear-gradient(-180deg, #489FD2 0%, #0A6DAC 100%);
- border: 1px solid #0A486E;
- box-shadow: 0 1px 5px 0 rgba(9,85,133,0.50), inset 0 -1px 6px 0 rgba(0,0,0,0.20), inset 0 1px 0 0 rgba(255,255,255,0.50), inset 0 2px 4px 0 rgba(255,255,255,0.50);
+&amp;#47;* The left and right &quot;faded&quot; pseudo elements *&amp;#47;
+.sausage-links:before, .sausage-links:after {
+ content: &amp;#39;&amp;#39;;
+ height: calc(100% - 2em);
+ pointer-events: none;
+ position: absolute;
+ top: 1em;
+ width: 10px;
+ z-index: 2;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;For easy reference, here is the CSS styling in it&amp;#8217;s entirety:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Parent container *&amp;#47;
-.buttons-container {
- background-image: linear-gradient(0deg, #BBC6CD 3%, #E2EBF0 100%);
- border-radius: 5px;
- border: 1px solid #8D8D8D;
- box-shadow: 0 2px 4px 0 rgba(42,42,42,0.40), inset 0 1px 3px 0 rgba(255,255,255,0.50);
- display: flex;
- padding: 20px;
- margin: 0 auto;
- max-width: 300px;
- width: 100%;
+.sausage-links:before {
+ background: linear-gradient(to right, rgba(255,255,255,0) 0%, white 100%);
+ right: 0;
+}
+.sausage-links:after {
+ background: linear-gradient(to left, rgba(255,255,255,0) 0%, white 100%);
+ left: 0;
}
-&amp;#47;* Shared button styling *&amp;#47;
-button {
- appearance: none;
- border: 0;
- border-radius: 5px;
- color: #fff;
- cursor: pointer;
- display: inline-block;
- font-size: 14px;
- font-weight: bold;
- padding: 15px 20px;
- text-shadow: 0 2px 4px rgba(0,0,0,0.30);
- width: 50%;
+&amp;#47;* Basic flexbox to prevent items from breaking lines *&amp;#47;
+.sausage-links ul {
+ display: flex;
+ flex-wrap: nowrap;
+ overflow: auto;
+ -webkit-overflow-scrolling: touch;
}
-&amp;#47;* Sign up button *&amp;#47;
-button:first-child {
- background-image: linear-gradient(-180deg, #1EB52A 0%, #0D941C 100%);
- border: 1px solid #0C6B16;
- box-shadow: 0 1px 5px 0 rgba(9,116,21,0.50), inset 0 1px 0 0 rgba(255,255,255,0.50), inset 0 2px 4px 0 rgba(255,255,255,0.50);
- margin-right: 10px;
+.sausage-links ul li {
+ white-space: nowrap;
}
-&amp;#47;* Log in button *&amp;#47;
-button:last-child {
- background-image: linear-gradient(-180deg, #489FD2 0%, #0A6DAC 100%);
- border: 1px solid #0A486E;
- box-shadow: 0 1px 5px 0 rgba(9,85,133,0.50), inset 0 1px 0 0 rgba(255,255,255,0.50), inset 0 2px 4px 0 rgba(255,255,255,0.50);
+.sausage-links ul li a, .sausage-links ul li a:visited {
+ display: inline-block;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;going-even-further-with-this-ui&quot;&gt;Going even further with this UI&lt;/h2&gt;
-&lt;p&gt;This demo article only showcases how to improve on a basic button UI structure with a focus on proper hierarchy between elements.&lt;/p&gt;
-&lt;p&gt;Once completely developed, these element should support all interactive states (&lt;code&gt;hover&lt;/code&gt;, &lt;code&gt;active&lt;/code&gt;, &lt;code&gt;disabled&lt;/code&gt;) and animations to make for a more engaging experience.&lt;/p&gt;</description>
- <link>https://btxx.org/proper-ui-hierarchy</link>
- <guid isPermaLink="false">https://btxx.org/proper-ui-hierarchy</guid>
- <pubDate>Tue, 05 Feb 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>My Cheapskate Commenting System</title>
- <description>&lt;h1 id=&quot;my-cheapskate-commenting-system&quot;&gt;My Cheapskate Commenting System&lt;/h1&gt;
-&lt;p&gt;2022-02-03&lt;/p&gt;
-&lt;p&gt;My blog now has comments! Well, &lt;em&gt;kind of&lt;/em&gt;&amp;#8230;&lt;/p&gt;
-&lt;p&gt;I went down a two day long rabbit-hole trying to find the best solution for implementing comments on my static website (generated via Jekyll FYI). There are a ton of options out there and many open source models that allow you to spin up your own instance with something like DigitalOcean or AWS. But I&amp;#8217;m a cheap bastard. I refuse to spend $5&amp;#47;month on a blog mostly used for fun and one that I have zero incentive to &amp;#8220;monetize&amp;#8221;.&lt;/p&gt;
-&lt;p&gt;So, what &lt;em&gt;free&lt;/em&gt; options did this old miser have left to chose from? To my surprise, there were two solid options that initially caught my eye! Let&amp;#8217;s take a look then, shall we?&lt;/p&gt;
-&lt;h2 id=&quot;remarkbox&quot;&gt;Remarkbox&lt;/h2&gt;
-&lt;p&gt;Overall I don&amp;#8217;t have many bad things to say about &lt;a href=&quot;https://www.remarkbox.com&quot;&gt;Remarkbox&lt;/a&gt;. It looks nice, is easy to implement and runs a &amp;#8220;pay what you can&amp;#8221; pricing model. What more could you ask for?! The major issue (for me, &lt;em&gt;personally&lt;/em&gt;) is precisely &lt;strong&gt;that&lt;/strong&gt;; the free model. This makes it difficult for me to trust 100% that this system will still be around in 3-4 years. Now I know - even paid systems can shutdown unexpectedly, but I find free tier options end up shutting their doors sooner. There is an option to self-host Remarkbox, but that requires a yearly license and also comes back to the point I made about not wanting to pay for hosting&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;utterances-github-based&quot;&gt;Utterances (Github-based)&lt;/h2&gt;
-&lt;p&gt;The other major option was &lt;a href=&quot;https://utteranc.es&quot;&gt;Utterances&lt;/a&gt;. This system was almost the winner due to it&amp;#8217;s pretty great feature set:&lt;/p&gt;
+&lt;p&gt;Pretty simple, eh?&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: Thanks to &lt;a href=&quot;https://twitter.com/dany0w&quot;&gt;@dany0w&lt;/a&gt; for pointing out that I forgot to include &lt;code&gt;-webkit-overflow-scrolling: touch&lt;/code&gt; for momentum scrolling on iOS.&lt;/p&gt;
+&lt;h3 id=&quot;the-good-1&quot;&gt;The Good&lt;/h3&gt;
+&lt;ul&gt;
+&lt;li&gt;Extremely minimal amount of CSS required&lt;/li&gt;
+&lt;li&gt;Screen reader &amp;#47; keyboard-only safe&lt;/li&gt;
+&lt;li&gt;Zero JavaScript needed&lt;/li&gt;
+&lt;li&gt;No need for hacky hidden &lt;code&gt;radio&lt;/code&gt; inputs for toggling parent containers etc.&lt;/li&gt;
+&lt;li&gt;Users can see first few available options without any interaction&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h3 id=&quot;the-bad-1&quot;&gt;The Bad&lt;/h3&gt;
+&lt;ul&gt;
+&lt;li&gt;May not look the most visually appealing for certain project designs (ugly scrollbar in some instances)&lt;/li&gt;
+&lt;li&gt;Better suited for small to medium menu lists compared to massive sitemaps&lt;/li&gt;
+&lt;li&gt;Without proper fade &amp;#47; cut off visual cues, users may not understand they can scroll&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;so-should-i-use-hamburger-menus-or-sausage-links&quot;&gt;So, should I use hamburger menus or sausage links?&lt;/h2&gt;
+&lt;p&gt;That really depends on your project or overall mobile design (I know, such a helpful answer). I&amp;#8217;m sure there are even a few use cases where it would make sense to have sausage links within a toggle-based hamburger menu. The menu possibilities could be endless!&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it. I hope I&amp;#8217;ve inspired you to try out sausage links in the near future or at least made you think more deeply about mobile navigation design!&lt;/p&gt;
+&lt;p&gt;&amp;#8230;is anyone else really hungry now?&lt;/p&gt;</description>
+ <link>https://btxx.org/hamburger-menu-alternative</link>
+ <guid isPermaLink="false">https://btxx.org/hamburger-menu-alternative</guid>
+ <pubDate>Fri, 14 Jun 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Stop Using Hamburger Menus (Sometimes)</title>
+ <description>&lt;h1 id=&quot;stop-using-hamburger-menus-sometimes&quot;&gt;Stop Using Hamburger Menus (Sometimes)&lt;/h1&gt;
+&lt;p&gt;2023-05-05&lt;/p&gt;
+&lt;p&gt;I recently &lt;a href=&quot;https://fosstodon.org/@tdarb/110264983268249599&quot;&gt;tooted about my hatred of website hamburger menus&lt;/a&gt; which was met with a surprising amount of support from other users. It seems like most people &lt;em&gt;don&amp;#8217;t actually like hamburger menus&lt;/em&gt;. So why do we, as developers, keep using them in our products and designs? Is it our only option? Or is it because we have become conditioned to expect it?&lt;/p&gt;
+&lt;h2 id=&quot;the-core-problem-with-hamburger-menus&quot;&gt;The Core Problem with Hamburger Menus&lt;/h2&gt;
+&lt;p&gt;The biggest headache when coming across these menus on the web is the complete disregard for &lt;strong&gt;accessibility&lt;/strong&gt;. Performance and solid user experience is almost always thrown out the window in favour of a &amp;#8220;prettier&amp;#8221; design layout. You might have made the overall design &amp;#8220;cleaner&amp;#8221; for your users, but you sacrificed all usability to do so.&lt;/p&gt;
+&lt;p&gt;I challenge you to visit a webpage or web app with a hamburger menu and try to navigate solely with your keyboard and screen-readers (or better yet - try these screen readers on mobile!). Within seconds you will find a whole mess of issues. Now try the same test with JavaScript disabled&amp;#8230; Yikes.&lt;/p&gt;
+&lt;h2 id=&quot;but-i-have-no-choice&quot;&gt;&amp;#8220;But I Have No Choice!&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;I see this argument pop-up frequently when taking to design leaders or developers. I call bullshit on this excuse. You &lt;em&gt;absolutely&lt;/em&gt; have the choice to avoid implementing bad designs - that&amp;#8217;s your job! Either you&amp;#8217;re not fighting hard enough against those pushing for it, or you&amp;#8217;re just trying to build a &amp;#8220;pretty&amp;#8221; portfolio.&lt;/p&gt;
+&lt;h2 id=&quot;best-alternative-sitemap-footer&quot;&gt;Best Alternative: Sitemap Footer&lt;/h2&gt;
+&lt;p&gt;So instead of just whining about hamburger menus, I will actually offer up a solid replacement: &lt;strong&gt;sitemap footers&lt;/strong&gt;. Simply place all your website&amp;#47;application links into the bottom footer and link directly to them from your header. Be sure to also include some form of &amp;#8220;Top of the page&amp;#8221; link for quick access back to the initial scroll view.&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it. There is nothing else you need to do for this to &lt;em&gt;just work&lt;/em&gt;. It might sound oversimplified and that&amp;#8217;s because it is. Looking for an example? This very website utilizes this technique, so give it a spin! Try using just your keyboard or even better - use a screen reader. Disable JS and CSS and watch it work flawlessly still.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt;&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Keyboard navigation accessible&lt;/li&gt;
+&lt;li&gt;Excellent screen-reader support&lt;/li&gt;
+&lt;li&gt;Works on all devices&amp;#47;screens by default (no media queries!)&lt;/li&gt;
+&lt;li&gt;Stays out of the way until called upon (UX goodness)&lt;/li&gt;
+&lt;li&gt;Requires ZERO CSS or JavaScript&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;&lt;strong&gt;Cons:&lt;/strong&gt;&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Footer can become large with many links (although I &lt;em&gt;really&lt;/em&gt; don&amp;#8217;t see this as a big deal)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;no-excuse&quot;&gt;No Excuse&lt;/h2&gt;
+&lt;p&gt;There really is no excuse to still be using hamburger menus. Users expect them to be present only because we as designers have conditioned them think that way. They deserve a better experience on the web. The &lt;em&gt;least&lt;/em&gt; we can do is improve something as simple as website navigation&amp;#8230;&lt;/p&gt;</description>
+ <link>https://btxx.org/hamburgers</link>
+ <guid isPermaLink="false">https://btxx.org/hamburgers</guid>
+ <pubDate>Fri, 05 May 2023 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Converting HEIF Images with macOS Automator</title>
+ <description>&lt;h1 id=&quot;converting-heif-images-with-macos-automator&quot;&gt;Converting HEIF Images with macOS Automator&lt;/h1&gt;
+&lt;p&gt;2023-07-21&lt;/p&gt;
+&lt;p&gt;Often times when you save or export photos from iOS to iCloud they often render themselves into &lt;code&gt;heif&lt;/code&gt; or &lt;code&gt;heic&lt;/code&gt; formats. Both macOS and iOS have no problem working with these formats, but a lot of software programs will not even recognize these filetypes. The obvious step would just be to convert them via an application or online service, right?&lt;/p&gt;
+&lt;p&gt;Not so fast! Wouldn&amp;#8217;t it be much cleaner if we could simply right-click our &lt;code&gt;heif&lt;/code&gt; or &lt;code&gt;heic&lt;/code&gt; files and convert them directly in Finder? Well, I&amp;#8217;ve got some good news for you&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;basic-requirements&quot;&gt;Basic Requirements&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;Open source&lt;/li&gt;
-&lt;li&gt;No tracking, no ads&lt;/li&gt;
-&lt;li&gt;All data stored in GitHub issues&lt;/li&gt;
-&lt;li&gt;Free!&lt;/li&gt;
+&lt;li&gt;You will need to have &lt;a href=&quot;https://homebrew.sh&quot;&gt;Homebrew&lt;/a&gt; installed&lt;/li&gt;
+&lt;li&gt;You will need to install the &lt;code&gt;libheif&lt;/code&gt; package through Homebrew: &lt;code&gt;brew install libheif&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;But take a look above at point number three. The fact that readers wishing to leave a comment are &lt;strong&gt;required to have a Github account&lt;/strong&gt;. For me, this is a non-starter. I don&amp;#8217;t want to force my audience to sign up for or sign in to &lt;em&gt;any&lt;/em&gt; account just to leave a simple comment on my humble blog. Considering a number of my readers are part of the FOSS community, this just seemed like a bad fit.&lt;/p&gt;
-&lt;h2 id=&quot;finding-inspiration&quot;&gt;Finding Inspiration&lt;/h2&gt;
-&lt;p&gt;I absolutely love the &lt;a href=&quot;https://solar.lowtechmagazine.com&quot;&gt;solar.lowtechmagazine.com&lt;/a&gt; website (both for it&amp;#8217;s content and design) and indirectly found my comment system inspiration there. Okay let&amp;#8217;s be honest, I completely stole their commenting system &amp;#8220;concept&amp;#8221;. Imitation is the sincerest form of flattery, right?&lt;/p&gt;
-&lt;h2 id=&quot;my-comment-system-is&quot;&gt;My Comment System is&amp;#8230;&lt;/h2&gt;
-&lt;p&gt;E-mail. It&amp;#8217;s just &lt;strong&gt;plain e-mail&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ve setup a basic &lt;code&gt;comment-prompt.html&lt;/code&gt; in my &lt;code&gt;_includes&lt;/code&gt; folder that contains a &lt;code&gt;mailto&lt;/code&gt; action button[^1]:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;a href=&quot;mailto:myemail.com?subject=RE: { { page.title | uri_escape } }&quot;&amp;#62;
- &amp;#60;button&amp;#62;Comment via email&amp;#60;&amp;#47;button&amp;#62;
-&amp;#60;&amp;#47;a&amp;#62;
+&lt;h2 id=&quot;creating-our-custom-automator-script&quot;&gt;Creating our custom Automator script&lt;/h2&gt;
+&lt;p&gt;For this example script we are going to convert the image to JPG format. You can freely change this to whatever format you wish (PNG, TIFF, etc.). We&amp;#8217;re just keeping things basic for this tutorial. Don&amp;#8217;t worry if you&amp;#8217;ve never worked with Automator before because setting things up is incredibly simple.&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Open the macOS Automator from the Applications folder&lt;/li&gt;
+&lt;li&gt;Select &lt;code&gt;Quick Option&lt;/code&gt; from the first prompt&lt;/li&gt;
+&lt;li&gt;Set &amp;#8220;Workflow receives current&amp;#8221; to &lt;code&gt;image files&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Set the label &amp;#8220;in&amp;#8221; to &lt;code&gt;Finder&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;From the left pane, select &amp;#8220;Library &amp;#62; Utilities&amp;#8221;&lt;/li&gt;
+&lt;li&gt;From the presented choices in the next pane, drag and drop &lt;code&gt;Run Shell Script&lt;/code&gt; into the far right pane&lt;/li&gt;
+&lt;li&gt;Set the area &amp;#8220;Pass input&amp;#8221; to &lt;code&gt;as arguments&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Enter the following code below as your script and type &lt;code&gt;⌘-S&lt;/code&gt; to save (name it something like &amp;#8220;Convert HEIC&amp;#47;HEIF to JPG&amp;#8221;)&lt;/li&gt;
+&lt;/ol&gt;
+&lt;pre&gt;&lt;code&gt;for f in &quot;$@&quot;
+do
+&amp;#47;opt&amp;#47;homebrew&amp;#47;bin&amp;#47;heif-convert &quot;$f&quot; &quot;${f%.*}.jpg&quot;
+done
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This include template is placed at the bottom of every article automatically. Then, that action pulls in the article&amp;#8217;s title as the e-mail subject line in the user&amp;#8217;s default mailing app. That&amp;#8217;s it.&lt;/p&gt;
-&lt;h2 id=&quot;pros&quot;&gt;Pros&lt;/h2&gt;
+&lt;h2 id=&quot;making-edits&quot;&gt;Making Edits&lt;/h2&gt;
+&lt;p&gt;If you ever have the need to edit this script (for example, changing the default format to &lt;code&gt;png&lt;/code&gt;), you will need to navigate to your &lt;code&gt;~&amp;#47;Library&amp;#47;Services&lt;/code&gt; folder and open your custom heif Quick Action in the Automator application. &lt;/p&gt;
+&lt;p&gt;Simple as that. Happy converting!&lt;/p&gt;
+&lt;p&gt;If you&amp;#8217;re interested, I also have some other Automator scripts available:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;No third party application needed&lt;/li&gt;
-&lt;li&gt;Privacy focused&lt;/li&gt;
-&lt;li&gt;More direct interaction with my audience&amp;#47;readers&lt;/li&gt;
-&lt;li&gt;Builds a much more close-knit community&lt;/li&gt;
-&lt;li&gt;Completely free!&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;cons&quot;&gt;Cons&lt;/h2&gt;
+&lt;li&gt;&lt;a href=&quot;/batch-webp-conversion/&quot;&gt;Batch Converting Images to webp with macOS Automator&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;/macos-convert-to-html/&quot;&gt;Convert Files to HTML with macOS Automator Quick Actions&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;</description>
+ <link>https://btxx.org/heif</link>
+ <guid isPermaLink="false">https://btxx.org/heif</guid>
+ <pubDate>Fri, 21 Jul 2023 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Goodbye WordPress, Hello Jekyll (Again)</title>
+ <description>&lt;h1 id=&quot;goodbye-wordpress-hello-jekyll-again&quot;&gt;Goodbye WordPress, Hello Jekyll (Again)&lt;/h1&gt;
+&lt;p&gt;2020-08-13&lt;/p&gt;
+&lt;p&gt;For the past four months this blog has been running on WordPress - but that ended today. I&amp;#8217;ve officially switched back over to Jekyll. I&amp;#8217;m not going to spend too much time delving into &lt;em&gt;why&lt;/em&gt; I made the transition back, but I&amp;#8217;ll leave some cliff-notes for any interested parties.&lt;/p&gt;
+&lt;h2 id=&quot;the-big-issues-with-my-wordpress-setup&quot;&gt;The big issues with &lt;em&gt;my&lt;/em&gt; WordPress setup&lt;/h2&gt;
+&lt;p&gt;I have to state that these problems existed based on &lt;em&gt;my own&lt;/em&gt; setup &amp;#47; hosting choices with WordPress - this is not a direct reflection of WP itself.&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;strong&gt;No theme editor access&lt;/strong&gt;
&lt;ul&gt;
-&lt;li&gt;Must be manually curated and posted&lt;/li&gt;
-&lt;li&gt;No notifications&lt;/li&gt;
-&lt;li&gt;No &amp;#8220;built-in&amp;#8221; reply functionality&lt;/li&gt;
-&lt;li&gt;Has the potential to become unwieldy&amp;#8230;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;fun-experiment&quot;&gt;Fun Experiment&lt;/h2&gt;
-&lt;p&gt;I figure either way, this will be an interesting experiment. I don&amp;#8217;t know my audience size (since I don&amp;#8217;t use any type of tracking) but I assume it&amp;#8217;s very small. Those willing to write me a personal e-mail in order to share their thoughts on my stupid little blog probably have something interesting to say. At least I hope so. &lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s see how this thing goes&amp;#8230;&lt;/p&gt;</description>
- <link>https://btxx.org/poormans-comment-system</link>
- <guid isPermaLink="false">https://btxx.org/poormans-comment-system</guid>
- <pubDate>Thu, 03 Feb 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Poor Man's CSS Full-Bleed Layout</title>
- <description>&lt;h1 id=&quot;poor-mans-css-full-bleed-layout&quot;&gt;Poor Man&amp;#8217;s CSS Full-Bleed Layout&lt;/h1&gt;
-&lt;p&gt;2020-10-07&lt;/p&gt;
-&lt;p&gt;I recently came across the very well written and interesting article, &lt;a href=&quot;https://joshwcomeau.com/css/full-bleed/&quot;&gt;Full-Bleed Layout Using CSS Grid&lt;/a&gt;, while browsing my daily designer feeds. I won&amp;#8217;t go into the post&amp;#8217;s specifics here (I recommend you read the article for yourself) but it details how to render full-bleed element effects utilizing the CSS &lt;code&gt;grid&lt;/code&gt; property.&lt;/p&gt;
-&lt;p&gt;While the approach in the article works perfectly fine, I thought to myself, &amp;#8220;Is there not a simpler, more backwards compatible way to do this?&amp;#8221;. Indeed there is.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Don&amp;#8217;t care about the tutorial?&lt;/strong&gt; &lt;a href=&quot;#live-demo&quot;&gt;Skip down to the live demo&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;make-the-web-backwards-compatible&quot;&gt;Make the Web Backwards Compatible&lt;/h2&gt;
-&lt;p&gt;I try my best when creating specific element designs or layouts to have everything render consistently across almost &lt;em&gt;all&lt;/em&gt; browsers. This tends to include the obvious front-runners: Chrome, Firefox, Safari - but I also try my best not to ignore the oldies: IE11, Edge and older versions of Opera. I believe if most web designers even loosely followed this concept we wouldn&amp;#8217;t be stringing together barely implemented CSS properties and hacking together polyfills for all the unsupported browsers. Just my two cents.&lt;/p&gt;
-&lt;p&gt;What does this have to do with full-bleed exactly? Well, the CSS we will be using in this demo is fully compatible with pretty much &lt;em&gt;any browser&lt;/em&gt; that can run the basic version of CSS rendering. If the browser you&amp;#8217;re targeting supports &lt;code&gt;max-width&lt;/code&gt; and &lt;code&gt;margins&lt;/code&gt; - then have no fear, full-bleeds are here.&lt;/p&gt;
-&lt;h2 id=&quot;our-html-example&quot;&gt;Our HTML Example&lt;/h2&gt;
-&lt;p&gt;Let&amp;#8217;s create a single-column blog layout for this example. We will include a heading, some paragraphs, an image, and a blockquote to keep it simple:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;main&amp;#62;
- &amp;#60;article&amp;#62;
- &amp;#60;h1&amp;#62;Main Heading&amp;#60;&amp;#47;h1&amp;#62;
- &amp;#60;p&amp;#62;Et non consequat eiusmod minim fugiat. Magna duis veniam ex reprehenderit occaecat sit. Nisi ut ex aliquip magna enim.&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Laborum repellat ab earum commodi, consequuntur totam adipisci doloremque asperiores quae at quia non temporibus ipsam voluptate voluptatem ipsa nostrum suscipit aliquid!&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;img src=&amp;#39;https:&amp;#47;&amp;#47;images.unsplash.com&amp;#47;photo-1569083692634-f8db90c093ef?ixlib=rb-1.2.1&amp;#38;q=85&amp;#38;fm=jpg&amp;#38;crop=entropy&amp;#38;cs=srgb&amp;#38;ixid=eyJhcHBfaWQiOjE0NTg5fQ&amp;#39; alt=&quot;Some Image&quot;&amp;#62;
- &amp;#60;p&amp;#62;Ex excepteur Lorem reprehenderit dolore in consequat voluptate commodo ipsum consequat ea et. Nisi tempor proident anim tempor. Laboris est sunt cillum deserunt culpa proident cillum laborum voluptate. Est exercitation Lorem reprehenderit eu ipsum nisi et.&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus dicta perspiciatis vel ex officiis, nisi optio nihil aspernatur exercitationem sed nobis architecto maxime eaque omnis eos, repellendus necessitatibus provident explicabo?&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid placeat ipsum totam, facere animi tenetur explicabo at veniam, culpa vitae debitis hic modi velit cum perferendis minima quos sit quisquam.&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;blockquote&amp;#62;
- &amp;#60;p&amp;#62;To be, or not to be, that is the question:&amp;#60;br&amp;#62;Whether &amp;#39;tis nobler in the mind to suffer&amp;#60;br&amp;#62;The slings and arrows of outrageous fortune,&amp;#60;br&amp;#62;Or to take Arms against a Sea of troubles,&amp;#60;br&amp;#62;And by opposing end them: to die, to sleep;&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;cite&amp;#62;- Some guy&amp;#60;&amp;#47;cite&amp;#62;
- &amp;#60;&amp;#47;blockquote&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus dicta perspiciatis vel ex officiis, nisi optio nihil aspernatur exercitationem sed nobis architecto maxime eaque omnis eos, repellendus necessitatibus provident explicabo?&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid placeat ipsum totam, facere animi tenetur explicabo at veniam, culpa vitae debitis hic modi velit cum perferendis minima quos sit quisquam.&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;article&amp;#62;
-&amp;#60;&amp;#47;main&amp;#62;
+&lt;li&gt;I was using EasyWP (Namecheap etc.) for my web hosting. It only cost me $3.88&amp;#47;month, which was very cheap for the quality of service provided. Unfortunately, this low price came with some setbacks. EasyWP doesn&amp;#8217;t allow users to edit &lt;code&gt;header.php&lt;/code&gt; or &lt;code&gt;functions.php&lt;/code&gt; files directly in the theme editor. Having to resort to FTP for simple one-line change was annoying.&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Super cache&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;Caching web pages is wonderful for users on subsequent visits, but EasyWP took this to the extreme. Making minor styling updates sometimes required code changes in the &lt;code&gt;header.php&lt;/code&gt; file directly in order to persist (see problem with editing these files in point #1).&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Monthly cost&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;As I stated above, spending $3.88 on a monthly basis was peanuts in the grand scheme of things. Still, an extra monthly subscription for a side hobby seemed overkill for my use case.&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Future proofing&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;In the end, having the core website generate itself into static files means it will stand the test of time on the interwebs. HTML &amp;#38; CSS FTW.&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;what-i-lost-in-the-switch&quot;&gt;What I lost in the switch&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;strong&gt;Comments&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;I loved the concept of owing &amp;#47; hosting comments directly on each post but this seemed like a fair trade-off when compared to the positives listed above. I might circle back around and use something like &lt;a href=&quot;https://commento.io/&quot;&gt;Commento&lt;/a&gt; or &lt;a href=&quot;https://github.com/imsun/gitment&quot;&gt;Gitment&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Blog anywhere&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;Having the ability to hop on any machine, log in to my site and blog was awesome. Over time though, I found myself not doing this very often. Most times when composing an article I found I would write it out, edit and publish all in one sitting. Cool concept - just not as useful.&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;moving-forward&quot;&gt;Moving forward&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve learned to stick with what keeps me productive (and in this case, keeps me writing consistently). I still love WordPress and won&amp;#8217;t hesitate to reach for it when the need arrives. Unfortunately, it seems my personal website isn&amp;#8217;t one of those instances.&lt;/p&gt;</description>
+ <link>https://btxx.org/hello-jekyll</link>
+ <guid isPermaLink="false">https://btxx.org/hello-jekyll</guid>
+ <pubDate>Thu, 13 Aug 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>HTML Dark Mode</title>
+ <description>&lt;h1 id=&quot;html-dark-mode&quot;&gt;HTML Dark Mode&lt;/h1&gt;
+&lt;p&gt;2023-04-11&lt;/p&gt;
+&lt;p&gt;I wrote an article back in 2021 called &lt;a href=&quot;https://bt.ht/lazy-dev-dark-mode/&quot;&gt;The Lazy Developer&amp;#8217;s Dark
+Mode&lt;/a&gt; where I explained how to implement
+a very basic &amp;#8220;dark mode&amp;#8221; by using the &lt;code&gt;prefers-color-scheme&lt;/code&gt; CSS attribute.
+This stills works perfectly fine, and in fact there is a cleaner variation of
+this created by &lt;em&gt;jacksonchen666&lt;/em&gt;: &lt;a href=&quot;https://jacksonchen666.com/posts/2023-04-09/13-47-16/&quot;&gt;These 3 Lines of CSS Will Give You Dark Mode for Free&lt;/a&gt;.&lt;/p&gt;
+&lt;p&gt;But today I wanted to show how to add dark mode functionality to a website
+without &lt;em&gt;any CSS at all&lt;/em&gt;.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;meta name=&quot;color-scheme&quot; content=&quot;dark light&quot;&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This works well as it is, but we will need to &amp;#8220;section&amp;#8221; off our different areas of content based on whether we want them &lt;code&gt;full-bleed&lt;/code&gt; or not. We do this with - you guessed it - the &lt;code&gt;section&lt;/code&gt; element. In this demo we want the image and blockquote to become &lt;code&gt;full-bleed&lt;/code&gt; when rendered, so we&amp;#8217;ll add the &lt;code&gt;full-bleed&lt;/code&gt; class to those sections for now (more on that later):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;main&amp;#62;
- &amp;#60;article&amp;#62;
- &amp;#60;section&amp;#62;
- &amp;#60;h1&amp;#62;Main Heading&amp;#60;&amp;#47;h1&amp;#62;
- &amp;#60;p&amp;#62;Et non consequat eiusmod minim fugiat. Magna duis veniam ex reprehenderit occaecat sit. Nisi ut ex aliquip magna enim.&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Laborum repellat ab earum commodi, consequuntur totam adipisci doloremque asperiores quae at quia non temporibus ipsam voluptate voluptatem ipsa nostrum suscipit aliquid!&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;section&amp;#62;
- &amp;#60;section class=&quot;full-bleed&quot;&amp;#62;
- &amp;#60;img src=&amp;#39;https:&amp;#47;&amp;#47;images.unsplash.com&amp;#47;photo-1569083692634-f8db90c093ef?ixlib=rb-1.2.1&amp;#38;q=85&amp;#38;fm=jpg&amp;#38;crop=entropy&amp;#38;cs=srgb&amp;#38;ixid=eyJhcHBfaWQiOjE0NTg5fQ&amp;#39; alt=&quot;Some Image&quot;&amp;#62;
- &amp;#60;&amp;#47;section&amp;#62;
- &amp;#60;section&amp;#62;
- &amp;#60;p&amp;#62;Ex excepteur Lorem reprehenderit dolore in consequat voluptate commodo ipsum consequat ea et. Nisi tempor proident anim tempor. Laboris est sunt cillum deserunt culpa proident cillum laborum voluptate. Est exercitation Lorem reprehenderit eu ipsum nisi et.&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus dicta perspiciatis vel ex officiis, nisi optio nihil aspernatur exercitationem sed nobis architecto maxime eaque omnis eos, repellendus necessitatibus provident explicabo?&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid placeat ipsum totam, facere animi tenetur explicabo at veniam, culpa vitae debitis hic modi velit cum perferendis minima quos sit quisquam.&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;section&amp;#62;
- &amp;#60;section class=&quot;full-bleed&quot;&amp;#62;
- &amp;#60;blockquote&amp;#62;
- &amp;#60;p&amp;#62;To be, or not to be, that is the question:&amp;#60;br&amp;#62;Whether &amp;#39;tis nobler in the mind to suffer&amp;#60;br&amp;#62;The slings and arrows of outrageous fortune,&amp;#60;br&amp;#62;Or to take Arms against a Sea of troubles,&amp;#60;br&amp;#62;And by opposing end them: to die, to sleep;&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;cite&amp;#62;- Some guy&amp;#60;&amp;#47;cite&amp;#62;
- &amp;#60;&amp;#47;blockquote&amp;#62;
- &amp;#60;&amp;#47;section&amp;#62;
- &amp;#60;section&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus dicta perspiciatis vel ex officiis, nisi optio nihil aspernatur exercitationem sed nobis architecto maxime eaque omnis eos, repellendus necessitatibus provident explicabo?&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid placeat ipsum totam, facere animi tenetur explicabo at veniam, culpa vitae debitis hic modi velit cum perferendis minima quos sit quisquam.&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;section&amp;#62;
- &amp;#60;&amp;#47;article&amp;#62;
-&amp;#60;&amp;#47;main&amp;#62;
+&lt;p&gt;Add that line inside the &lt;code&gt;head&lt;/code&gt; tags on your HTML files and you&amp;#8217;re good to go.&lt;/p&gt;
+&lt;h2 id=&quot;minor-caveat&quot;&gt;Minor Caveat&lt;/h2&gt;
+&lt;p&gt;I mentioned this same issue on the official &lt;a href=&quot;https://barf.bt.ht/dark-mode/&quot;&gt;barf blog
+post&lt;/a&gt; but it doesn&amp;#8217;t hurt to repeat it here.
+Safari still has minor ahref &amp;#47; link color issue when defaulting to browser dark
+mode. If supporting that browser is a deal-breaker for you, I suggest looking
+at my &lt;a href=&quot;https://bt.ht/safari-default-dark-mode/&quot;&gt;hacky solution&lt;/a&gt;.&lt;/p&gt;
+&lt;p&gt;Hopefully this helps others to add dark mode to their existing websites and
+projects with minimal effort!&lt;/p&gt;</description>
+ <link>https://btxx.org/html-dark-mode</link>
+ <guid isPermaLink="false">https://btxx.org/html-dark-mode</guid>
+ <pubDate>Tue, 11 Apr 2023 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Write HTML Like It's 1999</title>
+ <description>&lt;h1 id=&quot;write-html-like-its-1999&quot;&gt;Write HTML Like It&amp;#8217;s 1999&lt;/h1&gt;
+&lt;p&gt;2019-06-06&lt;/p&gt;
+&lt;p&gt;I am sure it&amp;#8217;s safe to say that most developers love to use the latest and greatest web tools available. Helpful resources such as preprocessors, template engines, syntax formatters - you name it - can all make a developer&amp;#8217;s life easier. Unfortunately, this sometimes comes at a cost: the HTML structure.&lt;/p&gt;
+&lt;p&gt;This is why I try my best to write HTML as if I&amp;#8217;m stuck with the constraints of the 90s (within reason). What does this mean exactly? It means that &lt;code&gt;tables&lt;/code&gt; are coded with &lt;code&gt;table&lt;/code&gt; elements. Navigations are coded with &lt;code&gt;nav&lt;/code&gt; and ordered&amp;#47;unordered list-items. Form inputs are not set with &lt;code&gt;display: none&lt;/code&gt; and replaced with custom containers. You know, &lt;em&gt;semantic&lt;/em&gt; HTML.&lt;/p&gt;
+&lt;p&gt;To be clear, I&amp;#8217;m not advocating for creating projects that &lt;em&gt;look&lt;/em&gt; like they belong in the 1990s. I would just prefer developers &amp;#47; designers be more conscious of their HTML &lt;em&gt;skeleton&lt;/em&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;bad-html-practices&quot;&gt;Bad HTML practices&lt;/h2&gt;
+&lt;p&gt;Let&amp;#8217;s do a very simple breakdown of some of the more common HTML no-nos:&lt;/p&gt;
+&lt;h2 id=&quot;good-html-practices&quot;&gt;Good HTML practices&lt;/h2&gt;
+&lt;p&gt;So what should you do in place of these bad HTML implementations?&lt;/p&gt;
+&lt;h2 id=&quot;my-basic-structure-test&quot;&gt;My basic &amp;#8220;structure&amp;#8221; test&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve found a pretty simple starting point for testing the &lt;em&gt;bones of a website&lt;/em&gt; by using the following single line of CSS:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;* {
+ border: 2px dotted black;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it for the HTML!&lt;/p&gt;
-&lt;h2 id=&quot;the-magic-css-not-really&quot;&gt;The Magic CSS (Not Really)&lt;/h2&gt;
-&lt;p&gt;Now take a deep breath and get ready for some hard CSS work:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;article {
- width: 100%;
+&lt;p&gt;This property simply outlines all elements on the current page in a dotted border. By placing a border on every HTML element you can instantly see how overly complex or &lt;em&gt;ugly&lt;/em&gt; your structure might be under the hood.&lt;/p&gt;
+&lt;h2 id=&quot;thanks-captain-obvious&quot;&gt;&amp;#8220;Thanks, Captain Obvious!&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;I know, this stuff is pretty basic. The point of this post isn&amp;#8217;t to tell you (developers) something brand new or mind-blowing, but instead should inspire you to keep things simple.&lt;/p&gt;
+&lt;p&gt;Don&amp;#8217;t forget that there is always someone new into the world of design and development. Hopefully this post steers others towards keeping HTML code semantic and clean.&lt;/p&gt;
+&lt;h2 id=&quot;update-to-this-article&quot;&gt;Update to this article&lt;/h2&gt;
+&lt;p&gt;Since this post received &lt;a href=&quot;https://news.ycombinator.com/item?id=20133817&quot;&gt;so much more attention&lt;/a&gt; than I ever expected, I&amp;#8217;ve decided to touch on a few small points brought up in the comments.&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;strong&gt;What is the benefit of semantic HTML?&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;Accessibility. Programs like screen readers are built around the foundation of proper HTML hierarchy. I highly recommend testing all your projects with a screen reader - it will open your eyes to a lot of issues users with disabilities suffer through.&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Tables not being responsive&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;This simply isn&amp;#8217;t true. It is much more semantic to layout your tables as you would normally, then for mobile devices you can target specific inner elements and alter them with &lt;code&gt;flexbox&lt;/code&gt; etc. (You can see responsive tables in action &lt;a href=&quot;/responsive-tables&quot;&gt;here&lt;/a&gt;)&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Instead of the CSS one-liner, simply use Firefox debugger&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;Fair point. Firefox is great!&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;/ol&gt;</description>
+ <link>https://btxx.org/html-like-1999</link>
+ <guid isPermaLink="false">https://btxx.org/html-like-1999</guid>
+ <pubDate>Thu, 06 Jun 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Using HTML Validator Badges Again</title>
+ <description>&lt;h1 id=&quot;using-html-validator-badges-again&quot;&gt;Using HTML Validator Badges Again&lt;/h1&gt;
+&lt;p&gt;2019-07-05&lt;/p&gt;
+&lt;p&gt;There was a time on the Internet when websites wore badges of honor, declaring that their code was semantic and followed the W3C guidelines. The validators we used weren&amp;#8217;t great (and &lt;strong&gt;still&lt;/strong&gt; aren&amp;#8217;t perfect) but they represented a community that took pride in caring about the quality of their work. I think it&amp;#8217;s time we bring HTML badges back.&lt;/p&gt;
+&lt;h2 id=&quot;getting-the-flaws-out-of-the-way&quot;&gt;Getting the flaws out of the way&lt;/h2&gt;
+&lt;p&gt;Of course, there were reasons why these badges slowly faded out of popularity. Some of the reasoning made sense, but most felt like a stretch in logic from my perspective. I always looked at it as a &amp;#8220;the good outweighs the bad&amp;#8221;.&lt;/p&gt;
+&lt;p&gt;Jukka Korpela&amp;#8217;s post way back in 2003, &lt;a href=&quot;http://jkorpela.fi/html/validation.html&quot;&gt;HTML validation is a good tool but just a tool&lt;/a&gt;, highlighted a lot of problems with relying so heavily on these HTML validators. I suggest you give it a read if this kind of thing interests you. I found it fascinating, even though I disagree with most of the points he makes.&lt;/p&gt;
+&lt;p&gt;Some negatives used to dismiss HTML badges:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;strong&gt;The badge system is outdated&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;Dismissing the worth of something based on how long it has been around is foolish. Many tools and frameworks are &amp;#8220;outdated&amp;#8221; but are still used to this day with great success.&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;HTML5 doesn&amp;#8217;t &lt;em&gt;require&lt;/em&gt; validation&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;Technically &lt;em&gt;no subset of HTML&lt;/em&gt; requires validation - but developers should aim for it. The W3C validators perform a solid job of keeping a standard for web development, so by following a standard we can keep experiences consistent for users.&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Validation is too formal&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;I believe in the ability to achieve your desired outcome based on almost any constraints. If a project leans you towards invalid or non-semantic structure to fulfill requirements, a better approach needs to be evaluated. We as developers tend to settle too quickly on the easiest option available to us.&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;Websites &amp;#47; web apps are just &lt;em&gt;too complex&lt;/em&gt; to follow the W3C guidelines&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;I call &lt;em&gt;BS&lt;/em&gt; on this argument. The complexity of a website should have nothing to do with keeping semantic standards. &lt;em&gt;This is your job.&lt;/em&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;&lt;strong&gt;It only exists to catch syntax errors&lt;/strong&gt;
+&lt;ul&gt;
+&lt;li&gt;For the record, I still see this more of a positive take on using validators. Subtle and nuanced syntax mistakes can be easily overlooked by the human eye.&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;nobody-puts-badges-in-a-corner&quot;&gt;&amp;#8220;Nobody puts &lt;em&gt;badges&lt;/em&gt; in a corner&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;A large of amount of designers &amp;#47; developers tend to forget that there are new people entering our industry everyday and they might not be as well versed in the basics of the web (HTML &amp;#38; CSS specifically). Since so many newcomers start out with JavaScript frameworks or jump onto pre-existing projects, they don&amp;#8217;t always grasp the core foundation of valid markup. Some frameworks even break basic standards for visuals or easier development environments - setting their initial expectations that ugly semantics is acceptable code. The ends justify the means, etc.&lt;/p&gt;
+&lt;p&gt;Guiding first-timers towards HTML validators let&amp;#8217;s them rethink their structure when building products or at least give some forethought to their outputted code. We, the more &lt;em&gt;verteran&lt;/em&gt; members of the community, have the knowledge of proper semantics since we grew our careers around this &amp;#8220;trend&amp;#8221;. We shouldn&amp;#8217;t assume newbies have the same understanding. The basics are important.&lt;/p&gt;
+&lt;h2 id=&quot;open-source-html5-badge&quot;&gt;Open source HTML5 badge&lt;/h2&gt;
+&lt;p&gt;Since the W3C doesn&amp;#8217;t officially produce any badges for HTML5 validation 1, I&amp;#8217;ve gone ahead and open sourced &lt;code&gt;SVG&lt;/code&gt; and &lt;code&gt;PNG&lt;/code&gt; versions of a badge based off the current W3C designs. You can check out the Github repo: &lt;a href=&quot;https://github.com/bradleytaunt/html5-valid-badge&quot;&gt;HTML5 Valid Badge&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;If you decide to use these badges, be sure to link these images to your valid passing URL (&lt;a href=&quot;https://html5.validator.nu&quot;&gt;html5.validator.nu&lt;/a&gt;). You can see an example of the link in the footer of this website.&lt;/p&gt;
+&lt;p&gt;Please feel free to reach out and share your websites &amp;#47; projects that pass as valid HTML and include an HTML valid badge. I&amp;#8217;d love to check them out!&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;p&gt;1 &lt;a href=&quot;http://html5doctor.com/html5-check-it-before-you-wreck-it-with-miketm-smith/&quot;&gt;Interview with Mike Smith&lt;/a&gt;: &amp;#8220;There won&amp;#8217;t be any proper Valid HTML5 icon forthcoming, so if you&amp;#8217;d like to use one in your content, you&amp;#8217;ll probably need to create one on your own.&amp;#8221;&lt;/p&gt;</description>
+ <link>https://btxx.org/html5-validator-badge</link>
+ <guid isPermaLink="false">https://btxx.org/html5-validator-badge</guid>
+ <pubDate>Fri, 05 Jul 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Improving Github's New Design</title>
+ <description>&lt;h1 id=&quot;improving-githubs-new-design&quot;&gt;Improving Github&amp;#8217;s New Design&lt;/h1&gt;
+&lt;p&gt;2020-07-07&lt;/p&gt;
+&lt;p&gt;Like many other Github users, I am not a big fan of their recent repository page redesign. In my mind it seems like a change just for the sake of change - the original UI worked perfectly fine.&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;Sigh.&lt;/em&gt;&lt;/p&gt;
+&lt;p&gt;I was planning on recreating the original Github layout with custom CSS but decided against it. Tackling such a big change in design would cause headaches if Github ever changed even one simple class or id on a given element. My final conclusion was to just improve their new design with my own personal quality of life improvements.&lt;/p&gt;
+&lt;p&gt;So, enough chit-chat. Let&amp;#8217;s get into it.&lt;/p&gt;
+&lt;h2 id=&quot;current-design-2020&quot;&gt;Current Design (2020)&lt;/h2&gt;
+&lt;p&gt;The default view for a repo&amp;#8217;s homepage and ticket items are locked at a set &lt;code&gt;max-width&lt;/code&gt;. This causes some visual strain in comparison to the full-width headers and navigations directly above. I use a decently sized montior when using your app Gitub - &lt;strong&gt;let me use all the space available to me&lt;/strong&gt;!&lt;/p&gt;
+&lt;h2 id=&quot;my-improvements&quot;&gt;My Improvements&lt;/h2&gt;
+&lt;p&gt;Your users shouldn&amp;#8217;t have to jump around the page looking for the important information they want to see. Resetting the basic repo information to the left side of the screen allows user to &lt;em&gt;instantly&lt;/em&gt; read-up on the project details. (This design is catered towards left-to-right readers mind you).&lt;/p&gt;
+&lt;p&gt;We now also utilize all the available screen space, dependent on the user&amp;#8217;s browser window size.&lt;/p&gt;
+&lt;p&gt;We make similar updates to the ticket item view and also remove the out-of-place &lt;code&gt;margin-bottom&lt;/code&gt; from the project link headers.&lt;/p&gt;
+&lt;h2 id=&quot;try-it-yourself&quot;&gt;Try It Yourself!&lt;/h2&gt;
+&lt;p&gt;You can very easily implement these custom CSS changes with an extension for the browser of your choice:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Firefox: &lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/styl-us/&quot;&gt;Stylus&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Chrome: &lt;a href=&quot;https://chrome.google.com/webstore/detail/stylebot/oiaejidbmkiecgbjeifoejpgmdaleoha&quot;&gt;Stylebot&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Then create a new custom CSS file to target &lt;code&gt;github.com&lt;/code&gt; with the following properties:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.container-xl {
+ max-width: 100%;
}
-article section {
- margin: 0 auto;
- max-width: 480px; &amp;#47;* This can be whatever you want *&amp;#47;
- width: 100%;
+.repository-content .gutter-condensed.gutter-lg {
+ flex-direction: row-reverse !important;
}
-article section.full-bleed {
- max-width: 100%;
+
+.repository-content #discussion_bucket .gutter-condensed.gutter-lg {
+ flex-direction: row !important;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it. &lt;em&gt;Really&lt;/em&gt;. Now any element (blockquotes, specific headers, navigations, footers, etc) that you want to layout as &amp;#8220;full-bleed&amp;#8221;, just wrap it in a &lt;code&gt;section&lt;/code&gt; tag and sick the &lt;code&gt;full-bleed&lt;/code&gt; class on it. Done and done.&lt;/p&gt;
-&lt;p&gt;Obviously you&amp;#8217;ll want to add more styling to clean-up and make your full-bleed layouts more beautiful. This demo was just more of a starting point.&lt;/p&gt;
-&lt;h3 id=&quot;maybe-not-quite-full-bleed&quot;&gt;Maybe Not-Quite-Full-Bleed?&lt;/h3&gt;
-&lt;p&gt;You could also further customize your options by including a class like &lt;code&gt;half-bleed&lt;/code&gt;, which maybe only expands slightly outside the main section &lt;code&gt;max-width&lt;/code&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;article section.half-bleed {
- max-width: 960px;
+
+.repohead &amp;#62; div.d-flex {
+ margin-bottom: 0 !important;
+}
+
+#show_issue {
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+}
+
+.repository-content #discussion_bucket,
+#partial-discussion-header {
+ width: 100%;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;sidenote&quot;&gt;Sidenote&lt;/h3&gt;
-&lt;p&gt;For those concerned about accessibility: The &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section&quot;&gt;section element&lt;/a&gt; is a flow content element, so it can contain almost all HTML elements.&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/mdEdjzz&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</description>
- <link>https://btxx.org/poor-mans-full-bleed</link>
- <guid isPermaLink="false">https://btxx.org/poor-mans-full-bleed</guid>
- <pubDate>Wed, 07 Oct 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Plain Text Emails, Please</title>
- <description>&lt;h1 id=&quot;plain-text-emails-please&quot;&gt;Plain Text Emails, Please&lt;/h1&gt;
-&lt;p&gt;2019-09-09&lt;/p&gt;
-&lt;p&gt;When it comes to website &amp;#47; product design and development most devs should try to keep things simple. By only using as much code as absolutely necessary, projects avoid growing out of scope or becoming bloated. So, why isn&amp;#8217;t this same approach taken for email?&lt;/p&gt;
-&lt;h2 id=&quot;a-brief-history-of-email&quot;&gt;A brief history of email&lt;/h2&gt;
-&lt;p&gt;Email has been possible since the 1960s with &lt;a href=&quot;https://en.wikipedia.org/wiki/Time-sharing&quot;&gt;time-sharing computers&lt;/a&gt; being used to share files and messages across early devices. Around the 80s and 90s it seemed as though &lt;a href=&quot;https://en.wikipedia.org/wiki/Government_Open_Systems_Interconnection_Profile&quot;&gt;GOSIP&lt;/a&gt; would dominate the market, but this was knocked out in favor of SMTP, POP3 and IMAP in 1995 when the &lt;a href=&quot;http://www.walthowe.com/navnet/history.html&quot;&gt;National Science Foundation ended its sponsorship of the Internet backbone&lt;/a&gt;, and all traffic relied on commercial networks.&lt;/p&gt;
-&lt;p&gt;Things were looking pretty good at this point. Most operating systems now had a shared foundation of sending and receiving emails on the internet, allowing for a set of standards to be slowly developed and agreed upon over time. These were simpler times, with the default content sent between machines being plain text. No embedded images, no CSS3 fallback support, no &lt;em&gt;fluff&lt;/em&gt; - just content.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Sidenote:&lt;/strong&gt;
-Now, I&amp;#8217;m not going to sit here and pretend to be some expert on the history of email (or the internet in general), so I suggest you take the time to read about &lt;a href=&quot;http://www.walthowe.com/navnet/history.html&quot;&gt;the history of the internet&lt;/a&gt; if you&amp;#8217;re into that kind of thing.&lt;/p&gt;
-&lt;h2 id=&quot;looking-at-some-data&quot;&gt;Looking at some data&lt;/h2&gt;
-&lt;blockquote&gt;
-&lt;p&gt;Data isn&amp;#8217;t everything&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;I understand that the data being used is currently 16 years old - but not many extensive research studies have been performed (specifically for email-type preference in general)&lt;/p&gt;
-&lt;p&gt;In 2002[1], &lt;a href=&quot;https://www.clickz.com/real-world-email-client-usage-the-hard-data/47429/&quot;&gt;a small-set survey was run by ClickZ&lt;/a&gt; was created to gauge the details of personal email data. The main data we will focus on is the user preference between HTML or plain text formats:&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Do you prefer receiving HTML or text email?&lt;/strong&gt;&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it! Feel free to improve on this and further make it your own! I might create a new repo for this project if I end up adding even more improvements to the core CSS.&lt;/p&gt;</description>
+ <link>https://btxx.org/improving-githubs-new-design</link>
+ <guid isPermaLink="false">https://btxx.org/improving-githubs-new-design</guid>
+ <pubDate>Tue, 07 Jul 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Improving Receipt UX</title>
+ <description>&lt;h1 id=&quot;improving-receipt-ux&quot;&gt;Improving Receipt UX&lt;/h1&gt;
+&lt;p&gt;2019-05-15&lt;/p&gt;
+&lt;p&gt;There was a pretty interesting article posted a couple days ago about rethinking the standard receipt design that I found quite compelling. Although, as good as the concept is, I think it can be improved (simplified) even further.&lt;/p&gt;
+&lt;h2 id=&quot;what-was-the-redesign-exaclty&quot;&gt;What was the redesign exaclty?&lt;/h2&gt;
+&lt;p&gt;Overall &lt;a href=&quot;https://twitter.com/datatoviz?lang=en&quot;&gt;Susie Lu&lt;/a&gt; did a wonderful job tackling such an old and forgotten design. She fixed some major pain points with the current receipt layout:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Bubble chart to visually indicate total spent per category&lt;/li&gt;
+&lt;li&gt;Categorized items by percentage of total spent&lt;/li&gt;
+&lt;li&gt;List individual items in descending order based on cost&lt;/li&gt;
+&lt;li&gt;Bar charts to compliment the item listing order&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Curious how her redesign looks? &lt;a href=&quot;https://www.fastcompany.com/90347782/the-humble-receipt-gets-a-brilliant-redesign&quot;&gt;Take a look at the original article&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;what-did-this-concept-get-wrong&quot;&gt;What did this concept get wrong?&lt;/h2&gt;
+&lt;p&gt;Simply put: &lt;strong&gt;paper waste&lt;/strong&gt;. &lt;/p&gt;
+&lt;p&gt;Using bubble and bar charts from a visual design perspective is great - but not so eco-friendly in this instance (since we are dealing with physical paper waste). It might seem like a small nitpick but with hundreds of thousands (if not millions) of receipts printed daily, this extra paper space required would add up quickly.&lt;/p&gt;
+&lt;p&gt;Fortunately, I think with some minor tweaks we can keep the underlying principles of the new redesign, while creating a more eco-friendly layout. We can save more space and therefore save on the overall paper needed.&lt;/p&gt;
+&lt;h2 id=&quot;receipt-redesign&quot;&gt;Receipt Redesign&lt;/h2&gt;
+&lt;p&gt;Let&amp;#8217;s take a look at my redesign concept:&lt;/p&gt;
+&lt;p&gt;With this layout we are able to keep all the key concepts that &lt;a href=&quot;https://twitter.com/datatoviz?lang=en&quot;&gt;Susie Lu&lt;/a&gt; initially introduced with her receipt design while preserving more space.&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Categories are still listed by percentage of total spent&lt;/li&gt;
+&lt;li&gt;Individual items are organized in descending order based on cost&lt;/li&gt;
+&lt;li&gt;Uppercase and lowercase elements are used to distinguish parent &amp;#47; child items instead of additional space or dividers&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;final-thoughts&quot;&gt;Final thoughts&lt;/h2&gt;
+&lt;p&gt;The original redesign from a visual perspective is &lt;em&gt;wonderful&lt;/em&gt; but when you start to think about implementing it into the real world, it seems slightly impractical. My redesign concept is far from perfect (I&amp;#8217;m sure I&amp;#8217;ve overlooked some use cases) but I think it&amp;#8217;s a strong step forward for redesigning our archaic receipt layouts.&lt;/p&gt;</description>
+ <link>https://btxx.org/improving-receipt-ux</link>
+ <guid isPermaLink="false">https://btxx.org/improving-receipt-ux</guid>
+ <pubDate>Wed, 15 May 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Improving Tufte CSS for Jekyll</title>
+ <description>&lt;h1 id=&quot;improving-tufte-css-for-jekyll&quot;&gt;Improving Tufte CSS for Jekyll&lt;/h1&gt;
+&lt;p&gt;2019-11-01&lt;/p&gt;
+&lt;p&gt;After creating the ET-Jekyll theme almost two years ago, I finally got around to revamping the structure and improving a lot of minor performance issues. Items that have been surely needing of updates for the last couple of years.&lt;/p&gt;
+&lt;h2 id=&quot;introductions&quot;&gt;Introductions&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve always been a sucker for Edward Tufte&amp;#8217;s incredibly simple, yet powerful design work used in his books and handout projects. So, in 2018 I released a Tufte CSS inspired Jekyll theme for the open source community. I called it &lt;a href=&quot;https://et-jekyll.netlify.com&quot;&gt;ET-Jekyll&lt;/a&gt; (so original, I know). Tufte CSS was a great starting point for my Jekyll theme, but there were areas I thought could use some minor improvements.&lt;/p&gt;
+&lt;p&gt;Feel free to read all the details on the design here: &lt;a href=&quot;https://et-jekyll.netlify.com/et-jekyll-theme/&quot;&gt;ET-Jekyll theme details&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;minor-fixes-one-year-later&quot;&gt;Minor Fixes One Year Later&lt;/h2&gt;
+&lt;p&gt;When I finally circled back to this project recently, I noticed some minor issues that could be improved right away with little to no effort. Let&amp;#8217;s see the changes made at a glance:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Sidenote, marginnote and figure element restyling (flexbox)&lt;/li&gt;
+&lt;li&gt;Table styling fixes (right alignment issues)&lt;/li&gt;
+&lt;li&gt;Switch MathJax over to SVG embeds (performance fixes)&lt;/li&gt;
+&lt;li&gt;Simplify HTML skeleton of main pages, remove overkill classes&lt;/li&gt;
+&lt;li&gt;Remove lazysizes.js to save on load times&lt;/li&gt;
+&lt;li&gt;Fallback on font-display for font loading&lt;/li&gt;
+&lt;li&gt;Inline all CSS for faster initial paint&lt;/li&gt;
+&lt;li&gt;Minor link :hover coloring (accessibility)&lt;/li&gt;
+&lt;li&gt;Add missing image link on example page&lt;/li&gt;
+&lt;li&gt;Update details post structure&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;You can view all the updates in more detail &lt;a href=&quot;https://github.com/bradleytaunt/ET-Jekyll/commit/254f9e8f28764c9525ba7405bbbfa18a3867d241&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;So what did this accomplish?&lt;/strong&gt; Let&amp;#8217;s break it down below.&lt;/p&gt;
+&lt;h2 id=&quot;first-contentful-paint-input-delay&quot;&gt;First Contentful Paint &amp;#38; Input Delay&lt;/h2&gt;
+&lt;p&gt;The new improvements have netted the theme a savings of 300ms on first paint and reduced the input delay by 150ms. Small wins - but wins nonetheless since every millisecond counts.&lt;/p&gt;
+&lt;h2 id=&quot;fixing-render-blocking-items&quot;&gt;Fixing Render Blocking Items&lt;/h2&gt;
+&lt;p&gt;The original theme reported a few items that were slowing down the initial render for the end-users:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
-&lt;th&gt;Response&lt;/th&gt;
-&lt;th&gt;Percentage (%)&lt;/th&gt;
+&lt;th&gt;URL&lt;/th&gt;
+&lt;th&gt;Size (KB)&lt;/th&gt;
+&lt;th&gt;Savings (ms)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
-&lt;td&gt;HTML&lt;/td&gt;
-&lt;td&gt;41.95&lt;/td&gt;
+&lt;td&gt;&amp;#47;css&amp;#47;style.css&lt;/td&gt;
+&lt;td&gt;2.0&lt;/td&gt;
+&lt;td&gt;150&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
-&lt;td&gt;Plain Text&lt;/td&gt;
-&lt;td&gt;31.52&lt;/td&gt;
+&lt;td&gt;&amp;#47;lazysizes@4.0.1&amp;#47;lazysizes.js&lt;/td&gt;
+&lt;td&gt;5.0&lt;/td&gt;
+&lt;td&gt;960&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
-&lt;td&gt;No Preference&lt;/td&gt;
-&lt;td&gt;26.53&lt;/td&gt;
+&lt;td&gt;MathJax.js?config=TeX-MML-AM_CHTML&lt;/td&gt;
+&lt;td&gt;18.0&lt;/td&gt;
+&lt;td&gt;1,260&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
-&lt;p&gt;On initial review, one could make the argument that the general public &lt;em&gt;prefers&lt;/em&gt; HTML email over plain text (~42% vs ~32%) - but I would disagree with this analysis. The roughly 27% of respondents who answered with &lt;em&gt;No Preference&lt;/em&gt; should not be dismissed so easily.&lt;/p&gt;
-&lt;p&gt;Since the &lt;em&gt;No Preference&lt;/em&gt; respondents don&amp;#8217;t care whether emails they receive are designed in HTML format, why not send them plain text variations by default? The positives of plain text greatly outweigh those of HTML:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Plain text has reduced file size
-&lt;ul&gt;
-&lt;li&gt;Don&amp;#8217;t forget that many users have limited data usage across much of the world&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;HTML is more likely to be flagged as spam by email clients
+&lt;p&gt;These items were resolved by:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;This is due to extra code, tracking scripts, 3rd party assets &amp;#47; resources being called&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;HTML &amp;#47; CSS can be inconsistent or even limited in support across email clients&lt;/li&gt;
-&lt;li&gt;Text only requires less design work for your development team
+&lt;li&gt;Rendering all styling inline (therefore removing the extra HTTP request)&lt;/li&gt;
+&lt;li&gt;Removing the lazysizes library altogether (browsers plan to support lazy loading natively in the future)
&lt;ul&gt;
-&lt;li&gt;Don&amp;#8217;t forget about testing all the various email clients too&lt;/li&gt;
+&lt;li&gt;The future plan is to integrate something like Cloudinary for out-of-the-box image processing&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Switch over MathJax to render equations as embedded SVGs (saves on bandwidth rendering an entire extra typeface)&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Add to this that &lt;a href=&quot;https://litmus.com/blog/53-of-emails-opened-on-mobile-outlook-opens-decrease-33&quot;&gt;53% of emails are opened on mobile&lt;/a&gt; - so any &amp;#8220;fancy&amp;#8221; marketing email designs need to look great on mobile screens and also take into account slower connections. What looks better and loads faster than simple plain text? 😛&lt;/p&gt;
-&lt;h2 id=&quot;but-what-about-marketing&quot;&gt;But what about marketing!?&lt;/h2&gt;
-&lt;p&gt;Sorry to say, but marketing should never trump user experience. Teams love to track email opens &amp;#47; click ratios, who subscribed &amp;#47; unsubscribed or who shared the campaign with others - but &lt;strong&gt;it&amp;#8217;s all bloat on the user&amp;#8217;s end&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;Greg Kogan wrote up a great article &amp;#47; case study about his experience &lt;a href=&quot;https://www.gkogan.co/blog/dont-design-emails/&quot;&gt;switching over a client&amp;#8217;s campaign from HTML templates to plain text&lt;/a&gt; with some really interesting results. I highly recommend you give it a read for a better understanding about how the marketing goals and customer goals don&amp;#8217;t always align.&lt;/p&gt;
-&lt;h2 id=&quot;simple-or-lazy---it-doesnt-matter&quot;&gt;Simple or lazy - it doesn&amp;#8217;t matter&lt;/h2&gt;
-&lt;p&gt;Plain text can certainly have a reputation for looking lazy or cheap, but I feel this is mostly perpetuated in the design and marketing communities. I can assure you that your average day-to-day users are much less opinionated about your email campaign design than you are. Look to satisfy your customers&amp;#8217; needs before your own.&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;Life is really simple, but we insist on making it complicated.&lt;/p&gt;
-&lt;p&gt;- Confucius&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;That being said, at the end of the day, companies will justify their own reasons to use HTML email templates over plain text. You can&amp;#8217;t convince everyone. My own personal experience with email template design, along with analyzing some of the data, leaves me to believe that most businesses should default to plain text. At the very least, you should try to convince your team to perform some simple A&amp;#47;B testing with your next email campaign.&lt;/p&gt;
-&lt;p&gt;The results might just surprise you.&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;This is the &amp;#8220;latest&amp;#8221; detailed survey I could find on email design preference&lt;/li&gt;
-&lt;/ol&gt;</description>
- <link>https://btxx.org/plain-text-emails</link>
- <guid isPermaLink="false">https://btxx.org/plain-text-emails</guid>
- <pubDate>Mon, 09 Sep 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Setting Up 1.1.1.1 for Families on a Pi-Hole</title>
- <description>&lt;h1 id=&quot;setting-up-1.1.1.1-for-families-on-a-pi-hole&quot;&gt;Setting Up 1.1.1.1 for Families on a Pi-Hole&lt;/h1&gt;
-&lt;p&gt;2021-10-28&lt;/p&gt;
-&lt;p&gt;After seeing Cloudflare&amp;#8217;s 1.1.1.1 for Families mentioned on the &lt;a href=&quot;https://news.ycombinator.com/item?id=29024195&quot;&gt;front page of HackerNews&lt;/a&gt;, I thought it might be helpful to show those currently using a &lt;a href=&quot;https://pi-hole.net&quot;&gt;pi-hole device&lt;/a&gt; how to include 1.1.1.1 alongside it.&lt;/p&gt;
-&lt;h2 id=&quot;keeping-things-updated&quot;&gt;Keeping Things Updated&lt;/h2&gt;
-&lt;p&gt;It should go without saying that you should be running the latest stable pi-hole version for security and full feature support. To do so, simply &lt;code&gt;ssh&lt;/code&gt; into your device (or connect to it directly if you prefer) and run the following to check your pi-hole version:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;pihole -v
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;And if your version is out of date, run:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;pihole -up
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Once it completes the update everything will be good to go!&lt;/p&gt;
-&lt;h2 id=&quot;adding-1.1.1.1-1.1.1.2&quot;&gt;Adding 1.1.1.1 (1.1.1.2)&lt;/h2&gt;
-&lt;p&gt;Now you need to navigate to your main pi-hole admin in your browser (most likely the url will be &lt;em&gt;pi.hole&lt;/em&gt;). Login in using your credentials and the do the following steps:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Navigate to &lt;strong&gt;Settings&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Navigate to &lt;strong&gt;DNS&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Under &amp;#8220;Upstream DNS Servers&amp;#8221; enter:&lt;/li&gt;
-&lt;/ol&gt;
-&lt;ul&gt;
-&lt;li&gt;Custom 1 (IPv4): 1.1.1.2&lt;/li&gt;
-&lt;li&gt;Custom 2 (IPv4): 1.0.0.2&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;ad-block-malware-protection&quot;&gt;Ad-Block &amp;#38; Malware Protection&lt;/h2&gt;
-&lt;p&gt;You now officially have protection against both intrusive advertisements &lt;em&gt;and&lt;/em&gt; sites flagged with malware. Happy (and now safer) browsing!&lt;/p&gt;</description>
- <link>https://btxx.org/pihole-cloudflare</link>
- <guid isPermaLink="false">https://btxx.org/pihole-cloudflare</guid>
- <pubDate>Thu, 28 Oct 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Stuffing an SSD Inside the Raspberry Pi 400</title>
- <description>&lt;h1 id=&quot;stuffing-an-ssd-inside-the-raspberry-pi-400&quot;&gt;Stuffing an SSD Inside the Raspberry Pi 400&lt;/h1&gt;
-&lt;p&gt;2021-08-13&lt;/p&gt;
-&lt;p&gt;I have successfully jammed an mSATA SSD into the main shell of my Raspberry Pi 400. It wasn&amp;#8217;t as straightforward as I thought it would be - in fact, most &lt;em&gt;real&lt;/em&gt; hardware tinkerers will probably vomit in their mouths once they see how I achieved this&amp;#8230;&lt;/p&gt;
-&lt;p&gt;But I&amp;#8217;m happy with my build. Those with better skills and knowledge can most likely improve upon this concept (and please do if you can - I&amp;#8217;d love to see it!)&lt;/p&gt;
-&lt;p&gt;Enough chit-chat - on to the build!&lt;/p&gt;
-&lt;h2 id=&quot;the-finished-masterpiece&quot;&gt;The Finished &amp;#8220;Masterpiece&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;Below you can see the final look of my modded Raspberry Pi 400, which I have personally named the &lt;strong&gt;Raspberry Pi 400X&lt;/strong&gt;:&lt;/p&gt;
-&lt;p&gt;Do you see that ugly black USB-C to USB-A cable jutting out from the top? That little guy connects directly to the mSATA SSD &lt;em&gt;inside&lt;/em&gt; the plastic keyboard structure and allows us to boot via USB. It also gives us the flexibility to easily &lt;em&gt;unplug&lt;/em&gt; the internal SSD for times when we desire to boot from micro SD or a different USB device altogether.&lt;/p&gt;
-&lt;p&gt;So, how did I make this?&lt;/p&gt;
-&lt;h2 id=&quot;the-shopping-list&quot;&gt;The Shopping List&lt;/h2&gt;
-&lt;p&gt;Before we deep dive into the terrible hardware modifications I&amp;#8217;ve made to my Pi, I&amp;#8217;ll list out all the items&amp;#47;tools I used during the making of this monstrosity:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;mSATA 64GB SSD Half Size (KingSpec) &amp;#8594; &lt;a href=&quot;https://www.aliexpress.com/item/32385499968.html?spm=a2g0s.9042311.0.0.210e4c4dIH8xWv&quot;&gt;AliExpress&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;mSATA to USB 3.1 enclosure (gutted) &amp;#8594; &lt;a href=&quot;https://www.amazon.ca/gp/product/B07BBM3BVS/ref=ppx_yo_dt_b_asin_title_o09_s00?ie=UTF8&amp;amp;psc=1&quot;&gt;Amazon&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Dremel rotary tool with soft sanding bits&lt;/li&gt;
-&lt;li&gt;Metal cutting scissors &amp;#47; knife&lt;/li&gt;
-&lt;li&gt;Electrical tape&lt;/li&gt;
-&lt;li&gt;Patience&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;modding-the-raspberry-pi-400&quot;&gt;Modding the Raspberry Pi 400&lt;/h2&gt;
-&lt;p&gt;The final product requires us to attach the half size mSATA SSD to the (gutted) enclosure and then insert that directly inside the Pi (next to the lock port &amp;#47; ethernet). Our first step will be to disassemble the Pi 400, safely remove the keyboard module and remove the metal heatsink.&lt;/p&gt;
-&lt;p&gt;With your trusty metal cutting scissors (or whatever tool you prefer) you will need to cut out room for our enclosure internals to fit within:&lt;/p&gt;
-&lt;p&gt;Next you will need to carefully remove the Pi board itself from the red part of the case. Once placed safely aside, it&amp;#8217;s time to bust out our sanding dremel and remove the jutting plastic blocking our soon-to-be-added SSD. Remember to wear a mask during this phase, since breathing in plastic dust and fumes is not fun!&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Important to note:&lt;/strong&gt; this will remove one of the screw slots needed to secure the heatsink into the board. Not a big deal if you ask me&amp;#8230;&lt;/p&gt;
-&lt;p&gt;While you have the Pi board removed you should also cut out a slot for the USB-C to USB-A cable to connect our mSATA to one of our USB 3 ports on the Pi. For this I&amp;#8217;ve opted to butcher the lock port (will I ever really use that anyway?)&lt;/p&gt;
-&lt;p&gt;Now all that&amp;#8217;s left is to insert our gutted mSATA enclosure (with the half size SSD attached of course)
-, tape it down with some hideous electrical tape and close this bad boy back up!&lt;/p&gt;
-&lt;p&gt;That&amp;#8217;s it! You now have the portable power of the Raspberry Pi 400, but now with the speed and performance of an SSD!&lt;/p&gt;
-&lt;h2 id=&quot;the-performance-gains&quot;&gt;The Performance Gains&lt;/h2&gt;
+&lt;h2 id=&quot;lighthouse-numbers&quot;&gt;Lighthouse Numbers&lt;/h2&gt;
+&lt;p&gt;Though it might not look like much, the updated theme receives a 4-point boost to its performance rating during a Lighthouse audit. Having a perfect score would be even better, but I can settle for 2-points under (for now).&lt;/p&gt;
+&lt;h4 id=&quot;old-version&quot;&gt;Old Version&lt;/h4&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
-&lt;th&gt;Storage Type&lt;/th&gt;
-&lt;th&gt;Seq. Write&lt;/th&gt;
-&lt;th&gt;Random W&lt;/th&gt;
-&lt;th&gt;Random R&lt;/th&gt;
+&lt;th&gt;Performance&lt;/th&gt;
+&lt;th&gt;Accessibility&lt;/th&gt;
+&lt;th&gt;Best Practices&lt;/th&gt;
+&lt;th&gt;SEO&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
-&lt;td&gt;Micro SD Card&lt;/td&gt;
-&lt;td&gt;17818 KB&amp;#47;sec&lt;/td&gt;
-&lt;td&gt;812 IOPS&lt;/td&gt;
-&lt;td&gt;2335 IOPS&lt;/td&gt;
+&lt;td&gt;94&lt;/td&gt;
+&lt;td&gt;100&lt;/td&gt;
+&lt;td&gt;100&lt;/td&gt;
+&lt;td&gt;100&lt;/td&gt;
&lt;/tr&gt;
+&lt;/tbody&gt;
+&lt;/table&gt;
+&lt;h4 id=&quot;new-version&quot;&gt;New Version&lt;/h4&gt;
+&lt;table&gt;
+&lt;thead&gt;
&lt;tr&gt;
-&lt;td&gt;mSATA SSD&lt;/td&gt;
-&lt;td&gt;206738 KB&amp;#47;sec&lt;/td&gt;
-&lt;td&gt;14615 IOPS&lt;/td&gt;
-&lt;td&gt;17925 IOPS&lt;/td&gt;
+&lt;th&gt;Performance&lt;/th&gt;
+&lt;th&gt;Accessibility&lt;/th&gt;
+&lt;th&gt;Best Practices&lt;/th&gt;
+&lt;th&gt;SEO&lt;/th&gt;
+&lt;/tr&gt;
+&lt;/thead&gt;
+&lt;tbody&gt;
+&lt;tr&gt;
+&lt;td&gt;98&lt;/td&gt;
+&lt;td&gt;100&lt;/td&gt;
+&lt;td&gt;100&lt;/td&gt;
+&lt;td&gt;100&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
-&lt;p&gt;I think it&amp;#8217;s pretty clear that the SSD blows the default micro SD card out of the water&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
-&lt;p&gt;Now clearly you could just plug-in an external SSD and walk away with the same performance boosts - but where is the fun in that?&lt;/p&gt;
-&lt;p&gt;If anyone decides to improve on this or make a cleaner approach, please do share it with me. I&amp;#8217;d love to see it!&lt;/p&gt;</description>
- <link>https://btxx.org/pi-400-internal-ssd</link>
- <guid isPermaLink="false">https://btxx.org/pi-400-internal-ssd</guid>
- <pubDate>Fri, 13 Aug 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>89 Blog Posts in a Single HTML File</title>
- <description>&lt;h1 id=&quot;89-blog-posts-in-a-single-html-file&quot;&gt;89 Blog Posts in a Single HTML File&lt;/h1&gt;
-&lt;p&gt;2021-04-22&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;This is no longer the current setup of my blog&lt;/em&gt;. I have switched back to Jekyll for performance reasons. I&amp;#8217;ll be leaving this post up as a point of reference though :)&lt;/p&gt;
-&lt;hr/&gt;
-&lt;p&gt;This is my personal blog (if that wasn&amp;#8217;t already obvious). I currently have 89 blog posts living here. But I have done something magical today:&lt;/p&gt;
-&lt;p&gt;All of these articles are rendered inside a &lt;em&gt;single HTML file&lt;/em&gt;. 🤯&lt;/p&gt;
-&lt;h2 id=&quot;what-sorcery-is-this&quot;&gt;What Sorcery is This?!&lt;/h2&gt;
-&lt;p&gt;No magic here - I&amp;#8217;m just using my own personal static site generator called &lt;a href=&quot;https://phpetite.org&quot;&gt;PHPetite&lt;/a&gt;. You can find all the code and more information about PHPetite on the &lt;a href=&quot;https://github.com/bradleytaunt/phpetite&quot;&gt;official Github repo page&lt;/a&gt;. Please note that this project is still very much a WIP, so go easy on me when pointing out bugs or issues!&lt;/p&gt;
-&lt;h2 id=&quot;pingdom-stats&quot;&gt;Pingdom Stats&lt;/h2&gt;
-&lt;p&gt;Before we get into more details on how everything is built, let&amp;#8217;s take a quick look at some of my website stats (not that pure numbers are 100% accurate of user experience):&lt;/p&gt;
+&lt;h2 id=&quot;final-thoughts&quot;&gt;Final Thoughts&lt;/h2&gt;
+&lt;p&gt;This project could still use some more fine-tuning, but for now I&amp;#8217;m fairly happy with the outcome. Even the smallest boost in performance and rendering time makes me feel like I accomplished something worthwhile. &lt;/p&gt;
+&lt;p&gt;Please don&amp;#8217;t hesitate to suggest features or point out any issues you happen to stumble across if you plan to use ET-Jekyll. Thanks for reading!&lt;/p&gt;</description>
+ <link>https://btxx.org/improving-tufte-jekyll</link>
+ <guid isPermaLink="false">https://btxx.org/improving-tufte-jekyll</guid>
+ <pubDate>Fri, 01 Nov 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Introducing Notez</title>
+ <description>&lt;h1 id=&quot;introducing-notez&quot;&gt;Introducing Notez&lt;/h1&gt;
+&lt;p&gt;2021-01-13&lt;/p&gt;
+&lt;p&gt;I have always been a fan of simple note taking applications, since I tend to take a lot of random notes throughout the work day. Sometimes I reach for simple pen and paper, but other times it&amp;#8217;s nice to stay focused jotting down notes on the same device I&amp;#8217;m working on.&lt;/p&gt;
+&lt;p&gt;Previously, I just created quick &lt;code&gt;notes.txt&lt;/code&gt; files in my open code editor or fell back on the default OS note apps. These worked perfectly fine but often got in my way (or even worse - lost among everything else).&lt;/p&gt;
+&lt;p&gt;So I said the hell with it and built Notez.&lt;/p&gt;
+&lt;h2 id=&quot;what-makes-notez-special&quot;&gt;What makes Notez special?&lt;/h2&gt;
+&lt;p&gt;Nothing, really. It&amp;#8217;s actually a pretty &amp;#8220;stupid&amp;#8221; app compared to others on the market. But this one is &lt;em&gt;mine&lt;/em&gt;. Plus, it was fun to piece it together on a random evening before bed.&lt;/p&gt;
+&lt;p&gt;For those curious, let&amp;#8217;s take a look at the feature list:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;99 Performance Grade&lt;/li&gt;
-&lt;li&gt;951 ms Load Time&lt;/li&gt;
-&lt;li&gt;231.3 KB Page Size (thank you Netlify compression!)&lt;/li&gt;
+&lt;li&gt;free and open source (github.com&amp;#47;bradleytaunt&amp;#47;notez)&lt;/li&gt;
+&lt;li&gt;uses &lt;code&gt;localStorage&lt;/code&gt; to keep changes persistent (helpful for browser crashes, etc)&lt;/li&gt;
+&lt;li&gt;includes basic export functionality to download content as a simple &lt;code&gt;output.txt&lt;/code&gt; file&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;&lt;a href=&quot;https://tools.pingdom.com/#5e169d6a82000000&quot;&gt;See all the Pingdom details for yourself&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;Now the &lt;code&gt;Page Size&lt;/code&gt; will certainly change as more blog posts are added over time, but if the total webpage size is roughly 230 KB with 89 blog posts, I figure that gives me the ability to add another 200 or so posts before I cross the &lt;a href=&quot;https://1mb.club&quot;&gt;1MB threshold&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ll deal with how to load in the content more efficiently when that times comes&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;what-about-images&quot;&gt;What About Images?&lt;/h2&gt;
-&lt;p&gt;Good question. Since a large portion of my articles tend to be focused on design and CSS, visual examples are somewhat important. So how do I avoid loading in all the individual images on every single post into this single HTML &amp;#8220;website&amp;#8221;?&lt;/p&gt;
-&lt;p&gt;Easy - I don&amp;#8217;t load any images at all.&lt;/p&gt;
-&lt;p&gt;I now simply set any images that are not included in the current, visible &lt;code&gt;section&lt;/code&gt; to &lt;code&gt;display: none&lt;/code&gt;. This avoids breaking things with the RSS feed.&lt;/p&gt;
-&lt;p&gt;Here is an image example of an old Dribbble shot I created years ago:&lt;/p&gt;
-&lt;p&gt;I have noticed that Safari &amp;#47; Firefox on iOS renders the imagery as broken image links - I plan to look into this further to avoid that confusion. For now it works well on desktop Chromium and Firefox.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;figure&amp;#62;
- &amp;#60;div class=&quot;img-parent&quot;&amp;#62;
- &amp;#60;img loading=&quot;lazy&quot; src=&quot;&amp;#47;placeholder-image.webp&quot; onclick=&quot;this.src=&amp;#39;https:&amp;#47;&amp;#47;res.cloudinary.com&amp;#47;bradtaunt&amp;#47;image&amp;#47;fetch&amp;#47;q_auto:low&amp;#47;v1570124593&amp;#47;https:&amp;#47;&amp;#47;uglyduck.ca&amp;#47;public&amp;#47;images&amp;#47;aqua-ui-css-buttons.webp&amp;#39;&quot; alt=&quot;Aqua UI buttons&quot;&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;figcaption&amp;#62;&amp;#60;b&amp;#62;Click the placeholder to load in the real image&amp;#60;&amp;#47;b&amp;#62;&amp;#60;br&amp;#62;Example Dribbble shot for testing. Feel free to click the default image in order to load the correct Dribbble source. &amp;#60;a href=&quot;https:&amp;#47;&amp;#47;res.cloudinary.com&amp;#47;bradtaunt&amp;#47;image&amp;#47;fetch&amp;#47;q_auto:low&amp;#47;v1570124593&amp;#47;https:&amp;#47;&amp;#47;uglyduck.ca&amp;#47;public&amp;#47;images&amp;#47;aqua-ui-css-buttons.webp&quot;&amp;#62;View full size image&amp;#60;&amp;#47;a&amp;#62;.&amp;#60;&amp;#47;figcaption&amp;#62;
-&amp;#60;&amp;#47;figure&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;hows-the-seo&quot;&gt;How&amp;#8217;s the SEO?&lt;/h2&gt;
-&lt;p&gt;Probably terrible to be honest. One single file for all blog posts is something Google will most likely frown upon. Whatever - it&amp;#8217;s my personal blog so I don&amp;#8217;t really give a shit.&lt;/p&gt;
-&lt;h2 id=&quot;rss-feed&quot;&gt;RSS Feed&lt;/h2&gt;
-&lt;p&gt;If you recently added my old RSS feed, I&amp;#8217;m sorry, but you&amp;#8217;ll have to update. The new feed is located at &lt;a href=&quot;https://tdarb.org/feeds/posts.xml&quot;&gt;tdarb.org&amp;#47;feeds&amp;#47;posts.xml&lt;/a&gt;. I made this change to avoid spamming the current feed users.&lt;/p&gt;
-&lt;h2 id=&quot;tasty-dog-food&quot;&gt;Tasty Dog Food&lt;/h2&gt;
-&lt;p&gt;At the end of the day, by moving my personal blog over to PHPetite, it makes me more aware of current bugs and restrictions within the project. I feel like this will help me to improve this static site generator even more over time, instead of letting it die a slow death ignored on Github.&lt;/p&gt;
-&lt;p&gt;I hope you enjoyed this little breakdown and maybe even want to try out PHPetite for yourself? 😉&lt;/p&gt;</description>
- <link>https://btxx.org/phpetite</link>
- <guid isPermaLink="false">https://btxx.org/phpetite</guid>
- <pubDate>Thu, 22 Apr 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>My Changing Opinion on Personal Website Design</title>
- <description>&lt;h1 id=&quot;my-changing-opinion-on-personal-website-design&quot;&gt;My Changing Opinion on Personal Website Design&lt;/h1&gt;
-&lt;p&gt;2021-05-19&lt;/p&gt;
-&lt;p&gt;Hey would you look at that - my personal blog has been redesigned &lt;em&gt;again&lt;/em&gt;! Although I am still using good ol&amp;#8217; Jekyll for the backend, I have now added a more fleshed-out CSS design which also includes a set of open source custom typefaces.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Gasp!&lt;/strong&gt; &amp;#8220;How &lt;em&gt;could&lt;/em&gt; you?!&amp;#8221; I hear you ask. Let me explain.&lt;/p&gt;
-&lt;h2 id=&quot;personal-sites-should-feel-personal&quot;&gt;Personal sites should feel personal&lt;/h2&gt;
-&lt;p&gt;I can see how this change might seem hypocritical (it took some convincing myself) but I decided to follow in to footsteps of Kev Quirk and &lt;a href=&quot;https://kevq.uk/adding-some-whimsy-character/&quot;&gt;added a little whimsy and character&lt;/a&gt; to my website. After all, personal websites should &lt;em&gt;feel personal&lt;/em&gt;. My obsession with barebones HTML &amp;#38; CSS serves its purpose on other public projects, but seems limiting for my own little space on the interwebs.&lt;/p&gt;
-&lt;h2 id=&quot;banned-from-my-own-club&quot;&gt;Banned from my own club&lt;/h2&gt;
-&lt;p&gt;I had originally converted this blog&amp;#8217;s design to use &lt;em&gt;zero&lt;/em&gt; CSS and instead rely solely on default browser styling. The main reasoning for doing so, was to have the ability to include my own personal website in the &lt;a href=&quot;https://xhtml.club&quot;&gt;XHTML Club&lt;/a&gt; project. (I never said it was a &lt;em&gt;good&lt;/em&gt; reason)&lt;/p&gt;
-&lt;p&gt;After giving it some thought, I&amp;#8217;ve decided that this limitation seemed too extreme even for me.&lt;/p&gt;
-&lt;h2 id=&quot;moving-forward&quot;&gt;Moving forward&lt;/h2&gt;
-&lt;p&gt;I know I always say &amp;#8220;With this new design, I can finally focus on just writing content!&amp;#8221; - but this is a lie. I&amp;#8217;ll probably be fiddling with my personal website until the day I die. The good news is that I &lt;em&gt;do&lt;/em&gt; have a few tutorial blog posts lined up to publish soon - so be on the lookout for those!&lt;/p&gt;
-&lt;p&gt;Thanks for reading through my pointless ramblings about personal websites. It&amp;#8217;s good to just vent about these things sometimes&amp;#8230;&lt;/p&gt;</description>
- <link>https://btxx.org/personal-website-opinions</link>
- <guid isPermaLink="false">https://btxx.org/personal-website-opinions</guid>
- <pubDate>Wed, 19 May 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Create a Performance-Focused WordPress Blog</title>
- <description>&lt;h1 id=&quot;create-a-performance-focused-wordpress-blog&quot;&gt;Create a Performance-Focused WordPress Blog&lt;/h1&gt;
-&lt;p&gt;2021-09-08&lt;/p&gt;
-&lt;p&gt;With my recent switch back to WordPress, and having read Kev Quirk’s latest post about Core Web Vitals, I wanted to make sure my blog still prioritized speed and performance above all else. I’m happy to say that I have closely replicated the same speed of my original &lt;em&gt;static&lt;/em&gt; Jekyll-based version of this blog.&lt;/p&gt;
-&lt;p&gt;And I&amp;#8217;ve achieved this with barely any effort at all. All that&amp;#8217;s needed is: &lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it. Mind blowing stuff, eh?&lt;/p&gt;
+&lt;h2 id=&quot;making-stuff-is-fun&quot;&gt;Making stuff is fun&lt;/h2&gt;
+&lt;p&gt;My main takeaway when building this tiny, dumb app was to just &lt;em&gt;enjoy building fun stuff&lt;/em&gt;. It crossed my mind several times how there are already hundreds of note taking apps across the vast Internet. I also thought about how others might look at the code I wrote and go, &amp;#8220;Oh my God - why did he do it that way? What an idiot!&amp;#8221;. But I don&amp;#8217;t care - I had fun making it.&lt;/p&gt;
+&lt;p&gt;Hopefully you enjoy using it as well!&lt;/p&gt;</description>
+ <link>https://btxx.org/introducing-notez</link>
+ <guid isPermaLink="false">https://btxx.org/introducing-notez</guid>
+ <pubDate>Wed, 13 Jan 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Introducing PageRoast</title>
+ <description>&lt;h1 id=&quot;introducing-pageroast&quot;&gt;Introducing PageRoast&lt;/h1&gt;
+&lt;p&gt;2021-03-11&lt;/p&gt;
+&lt;p&gt;Following up with my concept of releasing small side projects weekly, I have officially launched &lt;a href=&quot;https://pageroast.com&quot;&gt;PageRoast&lt;/a&gt;. What is PageRoast I hear you ask?&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;Receive a detailed report analyzing your landing page with actionable items to improve your conversion rate.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;In simple terms that just means I will &lt;strong&gt;roast your landing page&lt;/strong&gt;. Included in a page roast report is:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;a lightweight WordPress theme&lt;/li&gt;
-&lt;li&gt;two free WordPress plugins&lt;/li&gt;
-&lt;li&gt;cheap &amp;#38; fast web hosting&lt;/li&gt;
+&lt;li&gt;Fully detailed ABCD Framework report&lt;/li&gt;
+&lt;li&gt;Proposed content &amp;#38; design changes&lt;/li&gt;
+&lt;li&gt;Page performance audit&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Let me breakdown each component so those of you interested can do the same without hitting any roadblocks.&lt;/p&gt;
-&lt;h2 id=&quot;choosing-your-wordpress-theme&quot;&gt;Choosing Your WordPress Theme&lt;/h2&gt;
-&lt;p&gt;Selecting an existing theme or trying to build your own can be a daunting experience. For my needs, I forced myself to find an existing theme and just run with it. This gives me more time to focus on writing instead of constantly tweaking the blog’s visuals.&lt;/p&gt;
-&lt;p&gt;I would suggest either using the default starter theme (as of this writing: Twenty Twenty One theme by Automattic) or looking for specific “lightweight” themes across the web. I highly recommend checking out Anders Norén’s &lt;a href=&quot;https://andersnoren.se/teman/&quot;&gt;theme collection&lt;/a&gt;. Others can be found on the official &lt;a href=&quot;https://wordpress.org/&quot;&gt;wordpress.org&lt;/a&gt; website.&lt;/p&gt;
-&lt;h2 id=&quot;two-simple-plugins&quot;&gt;Two Simple Plugins&lt;/h2&gt;
-&lt;p&gt;Once you have decided on a theme, you&amp;#8217;ll also want to be sure to install two very important plugins that greatly help with performance:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Jetpack Boost – &lt;a href=&quot;https://wordpress.org/plugins/jetpack-boost/&quot;&gt;wordpress.org&amp;#47;plugins&amp;#47;jetpack-boost&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Yoast SEO – &lt;a href=&quot;https://wordpress.org/plugins/wordpress-seo/&quot;&gt;wordpress.org&amp;#47;plugins&amp;#47;wordpress-seo&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;jetpack-boost&quot;&gt;Jetpack Boost&lt;/h2&gt;
-&lt;p&gt;This plugin is fantastic. Not only will it run a proper audit (based off Google’s Lighthouse tool) but also gives you the ability to activate optimized CSS, lazy image loading and deferring non-essential JavaScript (if applicable). All of this is done in a super-clean user interface directly inside your WordPress admin.&lt;/p&gt;
-&lt;p&gt;Check out my own testing site metrics below:&lt;/p&gt;
-&lt;h2 id=&quot;yoast-seo&quot;&gt;Yoast SEO&lt;/h2&gt;
-&lt;p&gt;If you’ve worked with WordPress at all you have surely heard of Yoast. Adding this plugin to your site is really a no-brainer. The automatic generation of meta data and SEO tags can save you a lot of time while also improving your overall Lighthouse score.&lt;/p&gt;
-&lt;p&gt;Here is the Lighthouse audit for the test WordPress website:&lt;/p&gt;
-&lt;p&gt;Those scores were achieved without any custom work on my end – I simply activated the plugin and let it work it’s magic. Great stuff.&lt;/p&gt;
-&lt;h2 id=&quot;host-everything-on-easywp&quot;&gt;Host Everything on EasyWP&lt;/h2&gt;
-&lt;p&gt;Up to this point we haven’t spent a single penny. Unfortunately, web hosting isn’t free and you’re going to need it if you actually want your website to have a home on the interwebs!&lt;/p&gt;
-&lt;p&gt;I know – I can hear your collective voices shouting out:&lt;/p&gt;
+&lt;p&gt;And you get all of this for just &lt;strong&gt;$100&lt;/strong&gt; (currently 50% until April 1st with coupon code PHROAST). Alright, enough with the &amp;#8220;sales pitch&amp;#8221; - why did I make this side project?&lt;/p&gt;
+&lt;p&gt;From the main &lt;a href=&quot;https://pageroast.com/#2021-03-10-pageroast-has-launched&quot;&gt;launch blog post on PageRoast itself&lt;/a&gt; I wrote:&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;Isn&amp;#8217;t web hosting a little expensive just for my simple hobby blog&amp;#47;site?&lt;/p&gt;
-&lt;p&gt;&amp;#8211; Some of you&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ve always been obsessed with developing landing pages that produce high conversion rates. It&amp;#8217;s what I&amp;#8217;ve done for a large portion of my web development career.So I thought to myself, &amp;#8220;Why not launch a small-scale audit service to help indie devs and startups?&amp;#8221;&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;p&gt;I host this test blog for just &lt;strong&gt;$3.88&amp;#47;month&lt;/strong&gt; and the service is actually good. Unreal, right? That’s the price of a medium coffee, so I’m pretty sure it won’t break the bank.&lt;/p&gt;
-&lt;p&gt;This “cheap” hosting is through EasyWP and the Starter plan ($3.88&amp;#47;month) comes with the following:&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s really all there is to it. If you would like to learn more, check out the following links:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;10 GB SSD storage&lt;/li&gt;
-&lt;li&gt;50k visitors&amp;#47;month&lt;/li&gt;
-&lt;li&gt;Unlimited bandwidth&lt;/li&gt;
-&lt;li&gt;Backups (though not automatic)&lt;/li&gt;
-&lt;li&gt;SFTP access&lt;/li&gt;
-&lt;li&gt;EasyWP Cache plugin (and it&amp;#8217;s actually good!)&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://pageroast.com&quot;&gt;PageRoast main website&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://pageroast.com/#2021-03-10-pageroast-has-launched&quot;&gt;PageRoast official launch blog post&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;</description>
+ <link>https://btxx.org/introducing-pageroast</link>
+ <guid isPermaLink="false">https://btxx.org/introducing-pageroast</guid>
+ <pubDate>Thu, 11 Mar 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Hosting a Jekyll Site on Sourcehut</title>
+ <description>&lt;h1 id=&quot;hosting-a-jekyll-site-on-sourcehut&quot;&gt;Hosting a Jekyll Site on Sourcehut&lt;/h1&gt;
+&lt;p&gt;2021-12-06&lt;/p&gt;
+&lt;p&gt;I recently decided to switch my personal, static site&amp;#8217;s hosting from Netlify to &lt;a href=&quot;https://srht.site&quot;&gt;sourcehut pages&lt;/a&gt;. The process went &lt;em&gt;fairly&lt;/em&gt; smoothly with only a couple minor hiccups; nothing rage-inducing. After everything was up and running smoothly, I figured writing out a step-by-step tutorial might help others who are thinking of doing a similar switch (or looking to host their first static site).&lt;/p&gt;
+&lt;p&gt;But first, let me briefly explain why I made the switch in the first place&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;why-sourcehut-pages&quot;&gt;Why sourcehut pages?&lt;/h2&gt;
+&lt;p&gt;Using Netlify as your static host is simple, intuitive and comes packed with a great deal of extra functionality you can easily add-on. So, why would I decide to switch over to sourcehut? The best answer comes directly off the main homepage of &lt;a href=&quot;https://sourcehut.org&quot;&gt;sourcehut.org&lt;/a&gt;:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Absolutely no tracking or advertising&lt;/li&gt;
+&lt;li&gt;All features work without JavaScript&lt;/li&gt;
+&lt;li&gt;Many features work without an account&lt;/li&gt;
+&lt;li&gt;The fastest &amp;#38; lightest software forge&lt;/li&gt;
+&lt;li&gt;100% free and open source software&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;You will need to snag your own SSL certificate though, but this is easily obtained with something like &lt;a href=&quot;https://letsencrypt.org&quot;&gt;letsencrypt.org&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;Best of all, if in the future you require more features the next pricing tier is still only $7.88. Not too shabby!&lt;/p&gt;
-&lt;h2 id=&quot;try-yourself&quot;&gt;Try Yourself&lt;/h2&gt;
-&lt;p&gt;The fact that EasyWP gives you a free month trial, there really is no reason not to try spinning up your own blog or online store or whatever the heck you want to build. The more people with personal spaces on the web the better.&lt;/p&gt;</description>
- <link>https://btxx.org/performance-focused-wordpress-theme</link>
- <guid isPermaLink="false">https://btxx.org/performance-focused-wordpress-theme</guid>
- <pubDate>Wed, 08 Sep 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Yet Another Static Site Generator Switch</title>
- <description>&lt;h1 id=&quot;yet-another-static-site-generator-switch&quot;&gt;Yet Another Static Site Generator Switch&lt;/h1&gt;
-&lt;p&gt;2022-07-06&lt;/p&gt;
-&lt;p&gt;If you&amp;#8217;re an RSS subscriber, I&amp;#8217;ve probably blown up your feed reader (again). This seems to be an on-going theme with this blog. I can&amp;#8217;t help it.&lt;/p&gt;
-&lt;p&gt;This website now uses my &lt;em&gt;new&lt;/em&gt; Pandoc-based static blog generator: &lt;a href=&quot;https://pblog.bt.ht&quot;&gt;pblog&lt;/a&gt;. I won&amp;#8217;t go into great detail about it&amp;#8217;s features (or lack thereof) - if you&amp;#8217;re interested in that, check out the &lt;a href=&quot;https://pblog.bt.ht/blog/pblog-intro.html&quot;&gt;&amp;#8220;Introducing pblog&amp;#8221; article&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;The bigger question is, &amp;#8220;Why the change?&amp;#8221;&lt;/p&gt;
-&lt;h2 id=&quot;wheres-the-love-for-shinobi&quot;&gt;Where&amp;#8217;s the Love for &amp;#8220;Shinobi&amp;#8221;?&lt;/h2&gt;
-&lt;p&gt;Switching over to &lt;code&gt;pblog&lt;/code&gt; wasn&amp;#8217;t caused by a dislike of using &lt;a href=&quot;https://shinobi.bt.ht&quot;&gt;Shinobi&lt;/a&gt;. In fact, I still really enjoy the work flow that that plain-text focused SSG provides. The main issues that popped up for my own blog was &lt;em&gt;accessibility&lt;/em&gt; and &lt;em&gt;poor user experience&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;I had multiple readers reach out and mention poor rendering of content in their RSS reader of choice. That&amp;#8217;s kind of a &lt;strong&gt;big deal&lt;/strong&gt;. I test that project as best I can with my limited access to all available RSS readers - but I can only test so much. It became one of those &amp;#8220;Well, it works on my machine!&amp;#8221; meme. So instead of spending an untold amount of time debugging every RSS reader known to man, I figured my best bet was to render things as &lt;code&gt;HTML&lt;/code&gt;.&lt;/p&gt;
-&lt;p&gt;The next big issue was &lt;em&gt;accessibility&lt;/em&gt;. Screen readers can read &lt;code&gt;txt&lt;/code&gt; formatted files perfectly fine but since elements aren&amp;#8217;t categorized everything ends up with the same level hierarchy. This can cause confusion between headers, list items, URLs, footers etc. For my personal use-case (sharing tutorials and covering design topics) it didn&amp;#8217;t make sense to sacrifice user accessibility for minimalism.&lt;/p&gt;
-&lt;h2 id=&quot;the-search-for-simplicity&quot;&gt;The Search for Simplicity&lt;/h2&gt;
-&lt;p&gt;My initial thought process was to include some form of &amp;#8220;plus&amp;#8221; add-on to the existing Shinobi build script. The idea was to render &lt;code&gt;HTML&lt;/code&gt; versions of each post and dump those into the generated RSS file. Although maybe good in theory, it ended up impractical because:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;No utility or existing tool could render the style of text-based formatting I implemented as semantic HTML (at least not without heavy customization and tinkering)&lt;/li&gt;
-&lt;li&gt;I was actually adding extra bloat to the Shinobi project (true minimalism is the point, right?)&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;So, that option was ruled out pretty quickly.&lt;/p&gt;
-&lt;p&gt;The next option didn&amp;#8217;t take me long to land on: &lt;em&gt;Pandoc&lt;/em&gt;. I&amp;#8217;ve used Pandoc for years and have nothing but great experiences tweaking it for my own needs. I knew that I could piggyback off the original &lt;code&gt;shell&lt;/code&gt; commands in the Shinobi project and alter them as needed to incorporate Pandoc.&lt;/p&gt;
-&lt;p&gt;I honestly didn&amp;#8217;t run into many issues while rolling this out. Fairly seamless!&lt;/p&gt;
-&lt;h2 id=&quot;new-workflow&quot;&gt;New Workflow&lt;/h2&gt;
-&lt;p&gt;With this new blog switch I also decided to try out a new &lt;em&gt;deploy&lt;/em&gt; workflow. I&amp;#8217;ve used &lt;code&gt;rsync&lt;/code&gt; for the longest time but wanted to have something more GUI-based on macOS. I know, &lt;em&gt;blasphemy&lt;/em&gt;!&lt;/p&gt;
-&lt;p&gt;Since I already have a Transmit license, that seemed like the best fit since it is designed specifically for macOS. Now my workflow process is as follows:&lt;/p&gt;
+&lt;p&gt;After realizing all that, it&amp;#8217;s pretty difficult to stick with Netlify&amp;#8217;s &lt;em&gt;proprietary&lt;/em&gt; stack&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;free-but-not-free&quot;&gt;Free but not &lt;em&gt;&amp;#8220;free&amp;#8221;&lt;/em&gt;&lt;/h2&gt;
+&lt;p&gt;I should note that using sourcehut pages &lt;em&gt;does&lt;/em&gt; require you to be a contributing (read: paying) member on the platform. I&amp;#8217;m a cheapo and selected the $2&amp;#47;month option but you might be inclined to donate more. Paying this &amp;#8220;fee&amp;#8221; is perfectly fine for me, considering the hosting quality (speed and storage) it affords me. It also doesn&amp;#8217;t hurt that I get the &amp;#8220;feel good vibes&amp;#8221; of supporting an important, open source product.&lt;/p&gt;
+&lt;p&gt;Keeping that in mind, let&amp;#8217;s get into setting up our static site!&lt;/p&gt;
+&lt;h2 id=&quot;setting-up-your-repo-locally&quot;&gt;Setting up your repo locally&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;Write new posts in my root &lt;code&gt;posts&lt;/code&gt; folder&lt;/li&gt;
-&lt;li&gt;Rebuild the &lt;code&gt;pblog&lt;/code&gt; with &lt;code&gt;make&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;Use the built-in sync function of Transmit to mirror my local &lt;code&gt;_output&lt;/code&gt; with my web server&lt;/li&gt;
+&lt;li&gt;Create a new account on &lt;a href=&quot;https://sourcehut.org&quot;&gt;sourcehut&lt;/a&gt; (or log in to an existing one)&lt;/li&gt;
+&lt;li&gt;Setup your billing to contribute monthly (tier amount is up to you)&lt;/li&gt;
+&lt;li&gt;Create a new repo under the &lt;strong&gt;git&lt;/strong&gt; section&lt;sup id=&quot;fnref1&quot;&gt;&lt;a href=&quot;#fn1&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
+&lt;li&gt;Connect this repo locally (as you would via any other git host)&lt;/li&gt;
+&lt;li&gt;In this new local directory, place all your Jekyll files as you would with any other static hosting provider&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/transmit-ftp.webp&quot; alt=&quot;The Transmit UI in all of its wonderful glory (before I updated)&quot; /&gt;&lt;/p&gt;
-&lt;h3 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h3&gt;
-&lt;p&gt;Will there be bugs with this switch-over? Most likely. Will some URLs be left behind or broken? Possibly. These small issues will be ironed out over time. For now, I&amp;#8217;m quite happy with keeping things minimal on the workflow side of things, while preserving accessibility and user experience with the output.&lt;/p&gt;
-&lt;p&gt;Thanks for reading!&lt;/p&gt;</description>
- <link>https://btxx.org/pblog</link>
- <guid isPermaLink="false">https://btxx.org/pblog</guid>
- <pubDate>Wed, 06 Jul 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Happily Paying For macOS Apps</title>
- <description>&lt;h1 id=&quot;happily-paying-for-macos-apps&quot;&gt;Happily Paying For macOS Apps&lt;/h1&gt;
-&lt;p&gt;2022-06-29&lt;/p&gt;
-&lt;p&gt;It&amp;#8217;s no secret that I am a huge advocate for open source software. A solid chunk of my day-to-day workload is done so via FOSS[^0] systems. I also manage a handful of fun side projects that are normally shipped under either MIT or GPL licensing. But that doesn&amp;#8217;t mean I still don&amp;#8217;t enjoy &lt;em&gt;some&lt;/em&gt; non-free, proprietary software.&lt;/p&gt;
-&lt;p&gt;So, I thought I would share my collection of macOS applications that I happily paid for. (There aren&amp;#8217;t many since my needs are limited)&lt;/p&gt;
-&lt;h2 id=&quot;design-tool-sketch&quot;&gt;Design Tool: Sketch&lt;/h2&gt;
-&lt;p&gt;My day job requires me to use Figma, which is totally fine but not nearly as polished as Sketch. Yes, Figma is cross-platform. Yes, Figma can run directly in the browser. Yes, Figma is free for most smaller team sizes.&lt;/p&gt;
-&lt;p&gt;But sorry - Sketch is just better.&lt;/p&gt;
-&lt;p&gt;Since the team at Bohemian Coding have crafted Sketch specifically for macOS it feels native, runs extremely well and fits in with the rest of the ecosystem. The pricing model is okay in my books too, balancing a fine line between &lt;em&gt;optional&lt;/em&gt; yearly subscriptions and one-time purchases. It&amp;#8217;s a smart move and I much prefer it to a forced subscription plan.&lt;/p&gt;
-&lt;p&gt;URL: &lt;a href=&quot;https://www.sketch.com/&quot;&gt;https:&amp;#47;&amp;#47;www.sketch.com&amp;#47;&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;password-manager-secrets&quot;&gt;Password Manager: Secrets&lt;/h2&gt;
-&lt;p&gt;I was originally a subscriber to 1Password but couldn&amp;#8217;t justify spending $7CDN a month for what it was offering. Also, subscriptions suck. After doing some research I stumbled upon Secrets and noticed some things about it that instantly caught my eye:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;No subscriptions! One-time price forever.&lt;/li&gt;
-&lt;li&gt;iCloud Sync across devices&lt;/li&gt;
-&lt;li&gt;Browser extension support (although I don&amp;#8217;t use this personally)&lt;/li&gt;
-&lt;li&gt;Developed by a one-man team (support indie devs!)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;I purchased both the macOS and iOS versions of Secrets after trying out the free version almost immediately. It&amp;#8217;s wonderful. The UI is clean and flows well with the rest of the Mac ecosystem to give it a native &amp;#8220;Apple&amp;#8221; feel. Syncing my laptop and iPhone works seamless via iCloud.&lt;/p&gt;
-&lt;p&gt;And best of all - no monthly fees.&lt;/p&gt;
-&lt;p&gt;URL: &lt;a href=&quot;https://outercorner.com/secrets-mac/&quot;&gt;https:&amp;#47;&amp;#47;outercorner.com&amp;#47;secrets-mac&amp;#47;&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;transferring-files-transmit-5&quot;&gt;Transferring Files: Transmit 5&lt;/h2&gt;
-&lt;p&gt;The folks at Panic make incredible Mac and iOS apps. I see them as one of the best in the industry. In the early days of my web development career, I used to run Coda exclusively. I&amp;#8217;ve since moved on the Sublime Text but I still have fond memories of the old Panic editor.&lt;/p&gt;
-&lt;p&gt;As for FTP access, I still use Panic&amp;#8217;s Transmit to this day. Beautiful UI that feels snappy even when transferring massive files across servers. Transmit is also a one-time purchase. Thank goodness. (Have I mentioned that I hate software subscriptions?)&lt;/p&gt;
-&lt;p&gt;URL: &lt;a href=&quot;https://panic.com/transmit/&quot;&gt;https:&amp;#47;&amp;#47;panic.com&amp;#47;transmit&amp;#47;&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;the-sourcehut-build-file&quot;&gt;The sourcehut build file&lt;/h2&gt;
+&lt;p&gt;In order to have your Jekyll site build and push the correct files live, you will need to use sourcehut&amp;#8217;s build system. This will run every time you push out a new change to your repo (new blog post, page content changes, styling updates).&lt;/p&gt;
+&lt;p&gt;To make things easier, you can copy the build file below (remember to use your &lt;em&gt;own&lt;/em&gt; information for usernames, git repo naming etc):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;image: debian&amp;#47;stable
+oauth: pages.sr.ht&amp;#47;PAGES:RW
+packages:
+- ruby-full
+- ruby-dev
+environment:
+site: yourusername.srht.site
+sources:
+- https:&amp;#47;&amp;#47;git.sr.ht&amp;#47;~yourusername&amp;#47;your-repo-name
+tasks:
+- install-bundler: |
+ sudo gem install bundler
+- build: |
+ cd your-repo-name
+ bundle install
+ bundle exec jekyll build
+- package: |
+ cd your-repo-name&amp;#47;_site
+ tar -cvz . &amp;#62; ..&amp;#47;..&amp;#47;site.tar.gz
+- upload: |
+ acurl -f https:&amp;#47;&amp;#47;pages.sr.ht&amp;#47;publish&amp;#47;$site -Fcontent=@site.tar.gz
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Save this file as &lt;code&gt;.build.yml&lt;/code&gt; and place it in the root directory of your Jekyll source code.&lt;/p&gt;
+&lt;p&gt;Then, you just need to push your changes to the repo. If everything was setup properly, you&amp;#8217;ll be able to see your live site at &lt;code&gt;https:&amp;#47;&amp;#47;yourusername.srht.site&lt;/code&gt; (just give it a little bit of time to run the full build process)&lt;/p&gt;
+&lt;h2 id=&quot;custom-domains&quot;&gt;Custom Domains&lt;/h2&gt;
+&lt;p&gt;If you&amp;#8217;re like me and want to use your own custom domain - have no fear! This process is actually quite easy.&lt;/p&gt;
+&lt;p&gt;First, add a new A Record through your domain provider:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@ IN A 173.195.146.139
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Then change the following &lt;code&gt;environment&lt;/code&gt; parameter inside your existing &lt;code&gt;.build.yml&lt;/code&gt; file:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;environment:
+site: yourcustomdomain.com
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;And that&amp;#8217;s it - custom domain set! If you run into any issues check out the &lt;a href=&quot;https://srht.site/custom-domains&quot;&gt;official documentation on custom domains&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h2&gt;
-&lt;p&gt;I know this list only includes 3 applications, but that&amp;#8217;s truly all the ones I&amp;#8217;ve spent money on. If in the future I happen to purchase any others I will be sure to update this post accordingly.&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;p&gt;Hopefully this helps to streamline the process for others to host their static sites through sourcehut. Having open and healthy competition among host providers and &lt;code&gt;git&lt;/code&gt; workflows is essential to avoiding vendor lock-in. &lt;/p&gt;
+&lt;p&gt;Even low-effort support for open-source products (like where you host your static site or FOSS projects) can go a long way. Just some food for thought.&lt;/p&gt;
+&lt;div class=&quot;footnotes&quot;&gt;
+&lt;hr/&gt;
&lt;ol&gt;
-&lt;li&gt;Free &amp;#38; open source software&lt;/li&gt;
-&lt;/ol&gt;</description>
- <link>https://btxx.org/paid-mac-apps</link>
- <guid isPermaLink="false">https://btxx.org/paid-mac-apps</guid>
- <pubDate>Wed, 29 Jun 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Over-Nesting</title>
- <description>&lt;h1 id=&quot;over-nesting&quot;&gt;Over-Nesting&lt;/h1&gt;
-&lt;p&gt;2019-01-06&lt;/p&gt;
-&lt;p&gt;I think since our design industry moves so quickly and exciting new technologies get released almost daily, that we often forget some of the basics when writing CSS. I bring this up because I&amp;#8217;ve recently worked on a few projects that show a slight disregard for proper class&amp;#47;selector nesting.&lt;/p&gt;
-&lt;p&gt;Now it&amp;#8217;s completely understandable why designers and teams alike shrug off the concept of &amp;#8220;over-nesting&amp;#8221;:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;As a team we know the structure of our code (no outside party needs to interact with it)&lt;/li&gt;
-&lt;li&gt;Everything is written in &lt;code&gt;insert pre-processor here&lt;/code&gt; - so it&amp;#8217;s cleaner&amp;#47;compiled anyway&lt;/li&gt;
-&lt;li&gt;It&amp;#8217;s &lt;em&gt;technically&lt;/em&gt; DRY&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;I personally believe these are all weak excuses that don&amp;#8217;t justify the poor experience future maintainers of your code will face. &lt;em&gt;You should always write your code with the idea someone completely new to the project will have to maintain it&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s look at an average example of poor nesting that I&amp;#8217;ve seen out in the wild:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* These children elements can&amp;#39;t be used outside
-of the parent - not very flexible *&amp;#47;
-.main-container {
- .child-container {
- &amp;#47;* This class specificity is too deep *&amp;#47;
- .sub-child-container {}
- }
-}
+
+&lt;li id=&quot;fn1&quot;&gt;
+&lt;p&gt;Thanks to &lt;a href=&quot;https://cnx.srht.site/&quot;&gt;McSinyx&lt;/a&gt; for pointing out that the repo used for creating your website can be named anything (instead of defaulting to your sourcehut username)&amp;#160;&lt;a href=&quot;#fnref1&quot; rev=&quot;footnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
+&lt;/li&gt;
+
+&lt;/ol&gt;
+&lt;/div&gt;</description>
+ <link>https://btxx.org/jekyll-sourcehut</link>
+ <guid isPermaLink="false">https://btxx.org/jekyll-sourcehut</guid>
+ <pubDate>Mon, 06 Dec 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Setup Jekyll from Scratch on a New Linux System</title>
+ <description>&lt;h1 id=&quot;setup-jekyll-from-scratch-on-a-new-linux-system&quot;&gt;Setup Jekyll from Scratch on a New Linux System&lt;/h1&gt;
+&lt;p&gt;2022-09-19&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Special Note:&lt;/strong&gt; Credit needs to be given to user &lt;a href=&quot;https://stackoverflow.com/users/4974784/achraf-jeday&quot;&gt;Achraf JEDAY&lt;/a&gt; for putting these instructions together on Stack Overflow (although his comments were targeting an older version of Ruby). This post is more for my own personal notes than anything else.&lt;/p&gt;
+&lt;p&gt;I find myself constantly running into small issues when trying to setup existing Jekyll projects on new Linux systems. I &lt;em&gt;could&lt;/em&gt; use something like Docker, but that just seems so beefy and slow to me. So here is a step-by-step way (and foolproof from my own testing) to get Jekyll running smoothly in no time!&lt;/p&gt;
+&lt;h2 id=&quot;figuring-out-ruby-first&quot;&gt;Figuring out Ruby First&lt;/h2&gt;
+&lt;p&gt;The first item of business is removing the default Ruby that ships with most Linux distros:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo apt-get remove ruby
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Even if you know a child element will never be structured outside of it&amp;#8217;s parent, what harm does it cause to still place it out of such deep specificity?&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* This code is far more reusable *&amp;#47;
-.main-container {}
-.child-container {}
-.sub-child-container {}
+&lt;p&gt;Then we check for updates and install everything we need:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo apt update
+sudo apt install git curl libssl-dev libreadline-dev zlib1g-dev autoconf bison build-essential libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;exceptions&quot;&gt;Exceptions&lt;/h3&gt;
-&lt;p&gt;As with anything, there are exceptions to the &lt;em&gt;rule&lt;/em&gt;. If the nested elements pertain to the parent itself, it makes complete sense to group these stylings together. A button or link item are excellent examples of this:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.btn-lg {
- &amp;#38;:hover {}
- &amp;#38;:active {}
- &amp;#38;:disabled{}
-}
-
-.link-item {
- &amp;#38;:hover{}
- &amp;#38;:focus{}
-}
+&lt;p&gt;Now we can install &lt;code&gt;rbenv&lt;/code&gt; and &lt;code&gt;ruby-build&lt;/code&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;curl -sL https:&amp;#47;&amp;#47;github.com&amp;#47;rbenv&amp;#47;rbenv-installer&amp;#47;raw&amp;#47;main&amp;#47;bin&amp;#47;rbenv-installer | bash -
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Of course, this is all easier said than done. Limitations exist within teams or even on an individual level that might make this impossible to change. Maybe you don&amp;#8217;t have the authority to rework your current CSS or it would eat up too many cycles and time is valuable - especially in the world of startups. &lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m not saying this is &lt;strong&gt;the only way to structure CSS&lt;/strong&gt; - I&amp;#8217;m only trying to make the lives of future designers&amp;#47;developers easier moving forward. &lt;/p&gt;</description>
- <link>https://btxx.org/over-nesting</link>
- <guid isPermaLink="false">https://btxx.org/over-nesting</guid>
- <pubDate>Sun, 06 Jan 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Over-Engineering an Oil Tank Gauge</title>
- <description>&lt;h1 id=&quot;over-engineering-an-oil-tank-gauge&quot;&gt;Over-Engineering an Oil Tank Gauge&lt;/h1&gt;
-&lt;p&gt;2020-09-09&lt;/p&gt;
-&lt;p&gt;I almost went down the path of investing a huge amount of time and effort into fixing a stuck oil fuel tank float-gauge in my house. Recently, the float mechanism became stuck and permanently displayed &lt;code&gt;empty&lt;/code&gt; regardless of how much fuel was in the tank - not ideal. It&amp;#8217;s a 20 year-old tank, so I wasn&amp;#8217;t surprised that the float finally gave out. &lt;/p&gt;
-&lt;p&gt;Being the wannabe tinkerer that I am, a light bulb went off in my head and I started thinking on how to incorporate some ultrasonic system to display the accurate fuel reading digitally. Obviously my first thought was just to replace the float gauge with a new one and be done with it. That didn&amp;#8217;t sound very &lt;em&gt;fun&lt;/em&gt; though.&lt;/p&gt;
-&lt;p&gt;I briefly looked at other similar projects and started brainstorming the best way I would implement this for my own situation. The best option I came across seemed to be this: &lt;a href=&quot;https://scottiestech.info/2017/10/24/diy-ultrasonic-fuel-gauge-level-sensor/&quot;&gt;DIY Ultrasonic Fuel Gauge &amp;#47; Level Sensor&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;An ultrasonic system with a cool mini display sounded pretty rad - much cooler than just replacing the broken gauge with a new float arm. So it was settled.&lt;/p&gt;
-&lt;h2 id=&quot;my-oil-think-tank&quot;&gt;My oil think-tank&lt;/h2&gt;
-&lt;p&gt;I quickly thought through my options in my head before jumping too far into things (and even included a &amp;#8220;poor-mans&amp;#8221; temperature strip option):&lt;/p&gt;
-&lt;table&gt;
-&lt;thead&gt;
-&lt;tr&gt;
-&lt;th&gt;Solution&lt;/th&gt;
-&lt;th&gt;Cost&lt;/th&gt;
-&lt;th&gt;Time&lt;/th&gt;
-&lt;/tr&gt;
-&lt;/thead&gt;
-&lt;tbody&gt;
-&lt;tr&gt;
-&lt;td&gt;Ultrasonic Gauge&lt;/td&gt;
-&lt;td&gt;$40-50&lt;/td&gt;
-&lt;td&gt;~2-3 hours&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;New Float Gauge&lt;/td&gt;
-&lt;td&gt;$25-30&lt;/td&gt;
-&lt;td&gt;~45 minutes&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;Temperature Strips&lt;/td&gt;
-&lt;td&gt;$10&lt;/td&gt;
-&lt;td&gt;~2 minutes&lt;/td&gt;
-&lt;/tr&gt;
-&lt;/tbody&gt;
-&lt;/table&gt;
-&lt;p&gt;My mind was still set on building and implementing the ultrasonic option. It would be a great learning experience at the very least!&lt;/p&gt;
-&lt;p&gt;So, before I ordered any parts or started designing a case that would house this new super-cool device, I went to investigate&amp;#47;remove the float gauge to get a better look at the damage. With the help of some penetrating oil (the original installer went crazy with the pipe dope) and my trusty wrench, I opened up the gauge cap, partly lifting the float from the tank. Right away I noticed that the float and shaft were slightly stuck together in one small area. I poked it with my finger.&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;The float set itself back into the correct position. It was fixed.&lt;/em&gt;&lt;/p&gt;
-&lt;p&gt;How could I have been so dumb. I was so excited about &lt;em&gt;building something&lt;/em&gt; that I jumped into implementation before fully realizing the problem. Talk about a metaphor for web dev, am I right?&lt;/p&gt;
-&lt;h2 id=&quot;overthinking-simple-problems&quot;&gt;Overthinking simple problems&lt;/h2&gt;
-&lt;p&gt;I can&amp;#8217;t speak for all designers &amp;#47; developers out there, but I catch myself (far more often than I&amp;#8217;d like to admit) over-engineering a solution because of some perceived notion that it is the &amp;#8220;best&amp;#8221; option. Most of the time it isn&amp;#8217;t actually better, it just seems more &lt;em&gt;fun&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;Now don&amp;#8217;t get me wrong, fun is a good thing most of the time. It&amp;#8217;s just that some instances call for the quickest, cleanest, easiest solution in the name of efficiency - just be sure to have fully explored the problem &lt;em&gt;first&lt;/em&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;final-decision&quot;&gt;Final decision&lt;/h2&gt;
-&lt;p&gt;So I ended up doing nothing. I simply re-threaded the cap and placed the float back inside the tank. I know I saved myself time and money, but I can&amp;#8217;t help but feel like I failed&amp;#8230;&lt;/p&gt;
-&lt;p&gt;Just like in the world of software, it&amp;#8217;s best to avoid over-engineering simple problems.&lt;/p&gt;</description>
- <link>https://btxx.org/over-engineering-an-oil-tank</link>
- <guid isPermaLink="false">https://btxx.org/over-engineering-an-oil-tank</guid>
- <pubDate>Wed, 09 Sep 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Building openring with Jekyll Build</title>
- <description>&lt;h1 id=&quot;building-openring-with-jekyll-build&quot;&gt;Building openring with Jekyll Build&lt;/h1&gt;
-&lt;p&gt;2022-12-02&lt;/p&gt;
-&lt;p&gt;I think it&amp;#8217;s great when bloggers post their own personal &amp;#8220;reading list&amp;#8221; of blogs they themselves follow. Whether this is a customized Blogroll page or footnotes in their individual articles, I find it really helpful to find more interesting content on the &amp;#8220;indie&amp;#8221; web. This isn&amp;#8217;t a new concept by any means, but I wanted something a little more &amp;#8220;dynamic&amp;#8221;[^1] for my own blog.&lt;/p&gt;
-&lt;p&gt;After some digging I came across &lt;a href=&quot;https://sr.ht/~sircmpwn/openring/&quot;&gt;openring&lt;/a&gt; and it&amp;#8217;s great. Fully customizable, lightweight and completely open source. What more could you ask for?&lt;/p&gt;
-&lt;p&gt;So, I thought others might be interested in how I&amp;#8217;ve implemented openring through my own Jekyll build system.&lt;/p&gt;
-&lt;h2 id=&quot;installing-openring&quot;&gt;Installing openring&lt;/h2&gt;
-&lt;p&gt;You can pull the project &lt;a href=&quot;https://sr.ht/~sircmpwn/openring/&quot;&gt;directly via SourceHut&lt;/a&gt; if you wish, but I would recommend installing through your default package manager. I&amp;#8217;m running Arch, so for me it was as simple as running:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;yay -S openring
+&lt;p&gt;After both of those install, you will want to add those to your system &lt;strong&gt;PATH&lt;/strong&gt;:&lt;/p&gt;
+&lt;h3 id=&quot;bash&quot;&gt;Bash&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;echo &amp;#39;export PATH=&quot;$HOME&amp;#47;.rbenv&amp;#47;bin:$PATH&quot;&amp;#39; &amp;#62;&amp;#62; ~&amp;#47;.bashrc
+echo &amp;#39;eval &quot;$(rbenv init -)&quot;&amp;#39; &amp;#62;&amp;#62; ~&amp;#47;.bashrc
+source ~&amp;#47;.bashrc
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it. I now have full local access to openring!&lt;/p&gt;
-&lt;h2 id=&quot;jekyll-includes&quot;&gt;Jekyll Includes&lt;/h2&gt;
-&lt;p&gt;You &lt;em&gt;could&lt;/em&gt; setup a whole new directory specifically for your openring files, but that seems like overkill. Instead, we will simply add two new files to our existing &lt;code&gt;_includes&lt;/code&gt; directory. We will name these files &lt;code&gt;openring-in.html&lt;/code&gt; and &lt;code&gt;openring-out.html&lt;/code&gt;.&lt;/p&gt;
-&lt;h3 id=&quot;openring-in.html-contents&quot;&gt;openring-in.html Contents&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;!-- License-Id: CC0-1.0 --&amp;#62;
-&amp;#60;section class=&quot;webring&quot;&amp;#62;
- &amp;#60;h3&amp;#62;Articles from blogs I follow around the world wide web&amp;#60;&amp;#47;h3&amp;#62;
- &amp;#60;section class=&quot;articles&quot;&amp;#62;
- {{range .Articles}}
- &amp;#60;div class=&quot;article&quot;&amp;#62;
- &amp;#60;h4 class=&quot;title&quot;&amp;#62;
- &amp;#60;a href=&quot;{{.Link}}&quot; rel=&quot;noopener&quot;&amp;#62;{{.Title}}&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;&amp;#47;h4&amp;#62;
- &amp;#60;p class=&quot;summary&quot;&amp;#62;{{.Summary}}&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;small class=&quot;source&quot;&amp;#62;
- via &amp;#60;a href=&quot;{{.SourceLink}}&quot;&amp;#62;{{.SourceTitle}}&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;&amp;#47;small&amp;#62;
- &amp;#60;small class=&quot;date&quot;&amp;#62;{{.Date | datef &quot;January 2, 2006&quot;}}&amp;#60;&amp;#47;small&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- {{end}}
- &amp;#60;&amp;#47;section&amp;#62;
- &amp;#60;p class=&quot;attribution&quot;&amp;#62;
- Generated by
- &amp;#60;a href=&quot;https:&amp;#47;&amp;#47;git.sr.ht&amp;#47;~sircmpwn&amp;#47;openring&quot;&amp;#62;openring&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;&amp;#47;p&amp;#62;
-&amp;#60;&amp;#47;section&amp;#62;
-&amp;#60;style&amp;#62;
-.webring .articles {
- display: flex;
- flex-wrap: wrap;
- margin: -0.5rem;
-}
-.webring .title {
- margin: 0;
-}
-.webring .article {
- flex: 1 1 0;
- display: flex;
- flex-direction: column;
- margin: 0.5rem;
- padding: 0.5rem;
- background: #eee;
- min-width: 10rem;
-}
-.webring .summary {
- font-size: 0.8rem;
- flex: 1 1 0;
-}
-.webring .attribution {
- text-align: right;
- font-size: 0.8rem;
- color: #555;
-}
-&amp;#60;&amp;#47;style&amp;#62;
+&lt;h3 id=&quot;zsh&quot;&gt;ZSH&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;echo &amp;#39;export PATH=&quot;$HOME&amp;#47;.rbenv&amp;#47;bin:$PATH&quot;&amp;#39; &amp;#62;&amp;#62; ~&amp;#47;.zshrc
+echo &amp;#39;eval &quot;$(rbenv init -)&quot;&amp;#39; &amp;#62;&amp;#62; ~&amp;#47;.zshrc
+source ~&amp;#47;.zshrc
&lt;/code&gt;&lt;/pre&gt;
-&lt;blockquote&gt;
-&lt;p&gt;Sidenote: You will get minor Liquid Syntax warnings in the console when running your website via &lt;code&gt;serve&lt;/code&gt; or &lt;code&gt;build&lt;/code&gt;. I don&amp;#8217;t really mind those warnings but if you do, feel free to move these files out into their own sub-directory in your project folder.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;h3 id=&quot;openring-out.html-contents&quot;&gt;openring-out.html Contents&lt;/h3&gt;
-&lt;p&gt;This will generate itself for us every time we rebuild our Jekyll website. It is important to note that any changes you make in this file will be overwritten the next time you rebuild! All custom styling or layout changes should be made in the &lt;code&gt;openring-in.html&lt;/code&gt; file.&lt;/p&gt;
-&lt;h2 id=&quot;our-new-build-script&quot;&gt;Our &amp;#8220;New&amp;#8221; Build Script&lt;/h2&gt;
-&lt;p&gt;To simplify things, we are going to place our main commands in a single build script in the root directory of our Jekyll project. For my personal blog, I&amp;#8217;ve named this file &lt;code&gt;build-site.sh&lt;/code&gt;. I know - I&amp;#8217;m extremely creative.&lt;/p&gt;
-&lt;p&gt;Place the following inside that file:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;openring \
- -s https:&amp;#47;&amp;#47;example.com&amp;#47;feed.xml \
- -s https:&amp;#47;&amp;#47;example.com&amp;#47;feed.xml \
- -s https:&amp;#47;&amp;#47;example.com&amp;#47;feed.xml \
- &amp;#60; _includes&amp;#47;openring-in.html \
- &amp;#62; _includes&amp;#47;openring-out.html
-bundle exec jekyll build
+&lt;p&gt;With that complete, we can now install the version of Ruby we wish to use and set it globally (at this time of writing it is &lt;code&gt;3.1.2&lt;/code&gt;):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;rbenv install 3.1.2
+rbenv global 3.1.2
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;edit-&quot;&gt;Edit &lt;code&gt;_config.yml&lt;/code&gt;&lt;/h2&gt;
-&lt;p&gt;Next we need to make sure we exclude our new &lt;code&gt;build-site&lt;/code&gt; script file, since we really don&amp;#8217;t need that pushed up to the main server:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;# Includes &amp;#47; Excludes
-exclude:
- - build-site.sh
+&lt;p&gt;And &lt;code&gt;rehash&lt;/code&gt; so our changes take:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;rbenv rehash
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;almost-done&quot;&gt;Almost Done&amp;#8230;&lt;/h2&gt;
-&lt;p&gt;Now you just need to decide where you want your &lt;code&gt;openring&lt;/code&gt; feed outputs to render. For this example, we will place them at the bottom of every blog post inside the &lt;code&gt;_layouts&amp;#47;post.html&lt;/code&gt; file, like so:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;{% raw %}{% include openring-out.html %}{% endraw %}
+&lt;p&gt;Now you should see the properly set Ruby version when you run the following:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;ruby -v
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;getting-ruby-gems&quot;&gt;Getting Ruby Gems&lt;/h2&gt;
+&lt;p&gt;In case you don&amp;#8217;t have it installed already, be sure to grab &lt;code&gt;rubygems&lt;/code&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo apt install rubygems
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;running-jekyll&quot;&gt;Running Jekyll&lt;/h2&gt;
+&lt;p&gt;We are almost done! Navigate to your Jekyll project&amp;#8217;s directory and run:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;gem install jekyll bundler
+bundle install
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;That&amp;#8217;s it! Now if you run &lt;code&gt;bundle exec jekyll serve&lt;/code&gt; you&amp;#8217;ll find your Jekyll project running locally! Hopefully this helps others when needing to port any Jekyll projects over to a new Linux system. I know it will save me time!&lt;/p&gt;
+&lt;h2 id=&quot;alpine-linux-on-wayland&quot;&gt;Alpine Linux on Wayland&lt;/h2&gt;
+&lt;p&gt;Save yourself a world of trouble: just use &lt;code&gt;docker&lt;/code&gt;. The docker image below (jekyll-serve) works out-of-the-box:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://github.com/BretFisher/jekyll-serve&quot;&gt;https:&amp;#47;&amp;#47;github.com&amp;#47;BretFisher&amp;#47;jekyll-serve&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;Then run the following inside your project:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;docker run -p 4000:4000 -v $(pwd):&amp;#47;site bretfisher&amp;#47;jekyll-serve
+&lt;/code&gt;&lt;/pre&gt;</description>
+ <link>https://btxx.org/jekyll</link>
+ <guid isPermaLink="false">https://btxx.org/jekyll</guid>
+ <pubDate>Mon, 19 Sep 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Transferring Media from macOS to a Jellyfin Server (Raspberry Pi 4)</title>
+ <description>&lt;h1 id=&quot;transferring-media-from-macos-to-a-jellyfin-server-raspberry-pi-4&quot;&gt;Transferring Media from macOS to a Jellyfin Server (Raspberry Pi 4)&lt;/h1&gt;
+&lt;p&gt;2022-03-12&lt;/p&gt;
+&lt;p&gt;I run a personal media server using Jellyfin on a Raspberry Pi 4 in my home. It&amp;#8217;s pretty great and works well across most devices - Google TV, iOS and Android devices, Chromebooks, etc.&lt;/p&gt;
+&lt;p&gt;The only small headache is adding content (ie. audio, videos) to the existing hard drive that Jellyfin reads from. The last thing you want to do is connect a keyboard and monitor to your Pi to add a few files. Especially if your Pi is setup like mine and buried at the back of a hidden cabinet.&lt;/p&gt;
+&lt;p&gt;More annoying would be the need to remove the hard drive itself, connect it to your device that has the new files you wish to transfer and then port them over. Big ol&amp;#8217; pass on that system.&lt;/p&gt;
+&lt;h2 id=&quot;sshscp-to-the-rescue&quot;&gt;SSH&amp;#47;SCP to the Rescue&lt;/h2&gt;
+&lt;p&gt;&lt;em&gt;Important&lt;/em&gt;: before we begin, I should mention that this article assumes the following:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;The files you plan to transfer from are on a macOS device&lt;/li&gt;
+&lt;li&gt;You have setup Jellyfin on your Raspberry Pi device&lt;/li&gt;
+&lt;li&gt;SSH is enabled and accessible on the Pi (across your local network)&lt;/li&gt;
+&lt;li&gt;The Jellyfin server&amp;#8217;s hard drive is mounted in the root directory via something like &lt;code&gt;&amp;#47;mnt&lt;/code&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Good? Moving on then&amp;#8230;&lt;/p&gt;
+&lt;p&gt;Open your terminal of choice and use the following command:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;scp movie.mp4 pi_user_name@PI_IP_ADDRESS:&amp;#47;mnt&amp;#47;movies&amp;#47;movie.mp4
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;build-it-they-will-come&quot;&gt;Build It &amp;#38; They Will Come&lt;/h2&gt;
-&lt;p&gt;This next step is only for those using &lt;a href=&quot;https://srht.site&quot;&gt;SourceHut Pages&lt;/a&gt; to build and host their websites. If you use a different platform (ie Netlify, Vercel, GitHub Pages) the concept should be similar but will most likely require more tweaking on your end. Just a fair warning.&lt;/p&gt;
-&lt;p&gt;I won&amp;#8217;t go into great detail about build script for SourceHut Pages, but feel free to take a look at my &lt;a href=&quot;https://git.sr.ht/~bt/bt.ht/tree/master/item/.build.yml&quot;&gt;very own build file for this website&lt;/a&gt;. That &lt;em&gt;should&lt;/em&gt; work out-of-the-box for most standard Jekyll websites. (Just be sure to edit with your own details!)&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;That&amp;#8217;s it&lt;/strong&gt;. You now have links to blogs you enjoy that will update with each build. Of course, the &amp;#8220;latest&amp;#8221; blog posts shown will become out-of-date if you don&amp;#8217;t blog (or at least re-build your website) on a regular basis. But for me, I see this as a good motivator to keep pushing out content!&lt;/p&gt;
-&lt;p&gt;Happy sharing!&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;Well, as dynamic as a static website can be!&lt;/li&gt;
-&lt;/ol&gt;</description>
- <link>https://btxx.org/openring</link>
- <guid isPermaLink="false">https://btxx.org/openring</guid>
- <pubDate>Fri, 02 Dec 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Open Source Typeface Pairings</title>
- <description>&lt;h1 id=&quot;open-source-typeface-pairings&quot;&gt;Open Source Typeface Pairings&lt;/h1&gt;
-&lt;p&gt;2018-01-25&lt;/p&gt;
-&lt;p&gt;I always love finding new typeface pairings to use across my personal and client projects, but I find many suggested pairings come with a hefty price tag (rightly so - premium typefaces are normally always worth their cost).&lt;/p&gt;
-&lt;p&gt;So, I&amp;#8217;ve curated this personal list of 5 exceptionally beautiful typeface pairings that will cost you absolutely nothing. Open source FTW.&lt;/p&gt;
-&lt;h2 id=&quot;et-book-gill-sans&quot;&gt;ET-Book &amp;#38; Gill Sans&lt;/h2&gt;
-&lt;p&gt;Download: ET Book, Gill Sans&lt;/p&gt;
-&lt;h2 id=&quot;playfair-display-roboto&quot;&gt;Playfair Display &amp;#38; Roboto&lt;/h2&gt;
-&lt;p&gt;Download: Playfair Display, Roboto&lt;/p&gt;
-&lt;h2 id=&quot;karma-open-sans&quot;&gt;Karma &amp;#38; Open Sans&lt;/h2&gt;
-&lt;p&gt;Download: Karma, Open Sans&lt;/p&gt;
-&lt;h2 id=&quot;libre-baskerville-oswald&quot;&gt;Libre Baskerville &amp;#38; Oswald&lt;/h2&gt;
-&lt;p&gt;Download: Libre Baskerville, Oswald&lt;/p&gt;
-&lt;h2 id=&quot;fanwood-league-spartan&quot;&gt;Fanwood &amp;#38; League Spartan&lt;/h2&gt;
-&lt;p&gt;Download: Fanwood, League Spartan&lt;/p&gt;</description>
- <link>https://btxx.org/open-source-typeface-pairings</link>
- <guid isPermaLink="false">https://btxx.org/open-source-typeface-pairings</guid>
- <pubDate>Thu, 25 Jan 2018 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>My Coffee Maker Just Makes Coffee</title>
- <description>&lt;h1 id=&quot;my-coffee-maker-just-makes-coffee&quot;&gt;My Coffee Maker Just Makes Coffee&lt;/h1&gt;
-&lt;p&gt;2023-01-09&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/coffee-couple.svg&quot; alt=&quot;Couple drinking cups of coffee&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;I had to replace my dual Keurig coffee maker &lt;em&gt;twice&lt;/em&gt; over a period of five months. This occurred a year ago and these are my findings.&lt;/p&gt;
-&lt;h2 id=&quot;built-to-fail&quot;&gt;Built to Fail?&lt;/h2&gt;
-&lt;p&gt;I followed the manufactor&amp;#8217;s suggested cleaning schedule and took care of the appliances. My initial conclusion was that the product&amp;#8217;s design wasn&amp;#8217;t thought-out well. &amp;#8220;It&amp;#8217;s built to fail!&amp;#8221; I said to my wife the morning of the &lt;em&gt;second&lt;/em&gt; machine&amp;#8217;s failure. Another product replaced under warranty, while the broken one&amp;#8217;s tossed aside. More e-waste because why not?&lt;/p&gt;
-&lt;p&gt;But after some further reflection, I came to realize the &amp;#8220;poor design&amp;#8221; was a symptom of a greater cause:&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;The product tries to do too much&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m beating a dead horse by referencing &lt;a href=&quot;https://suckless.org&quot;&gt;suckless&lt;/a&gt; software again, but that core philosophy applies here too. Both digital and industrial design suffer from bloat. Far too often I witness fellow designers over-engineer customer requests. Or they add excessive bloat to new product features. It&amp;#8217;s almost a rarity these days to find designers who tackle work as &lt;em&gt;single items&lt;/em&gt;. Everything expands. Everything needs to do one little extra &amp;#8220;cool&amp;#8221; thing. Nothing is ever &lt;em&gt;taken away&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m sure the designers meant well with the creation of this dual coffee maker. It&amp;#8217;s interesting to combine both a standard 12-cup percolator and &amp;#8220;pod-based&amp;#8221; serving options. In theory it sounds quite handy. One appliance that tackles two use-cases. Think of the counter space you&amp;#8217;ll save! &lt;/p&gt;
-&lt;p&gt;Unfortunately, in practice, it fails.&lt;/p&gt;
-&lt;h2 id=&quot;product-decline&quot;&gt;Product Decline&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve felt product quality decline in both household appliances and software. Companies no longer seem content with doing &lt;em&gt;one thing well&lt;/em&gt;. Everyone needs to reach out into many verticals. Everyone copies their competitors.The need to &amp;#8220;grow&amp;#8221; their existing features. Adding things that no one asked for. Products are getting &lt;em&gt;slower&lt;/em&gt; and losing focus.&lt;/p&gt;
-&lt;p&gt;People tend to place all that blame on top-level management or developers. They do deserve some blame - but not all. Designers cause a lot of these issues on their own and it&amp;#8217;s easy to understand why.&lt;/p&gt;
-&lt;p&gt;The design field drops new designers into a &lt;em&gt;world of bloat&lt;/em&gt;. They don&amp;#8217;t stand a chance. The initial programs introduced to them are behemoth, proprietary pieces of garbage. No other options are available. No one is making strides in this field of &amp;#8220;design tool software&amp;#8221; because it&amp;#8217;s a massive uphill battle. Those that &lt;em&gt;try&lt;/em&gt;, get &lt;a href=&quot;https://www.theverge.com/2022/9/15/23354532/adobe-figma-acquisition-20-billion-official&quot;&gt;snatched up by existing platforms&lt;/a&gt;. Designers don&amp;#8217;t have the luxury of &amp;#8220;choice&amp;#8221; as much as developers do (within reason). It&amp;#8217;s a very locked-down industry.&lt;/p&gt;
-&lt;p&gt;So of course designers will carry this mentality into their own work. It&amp;#8217;s all they have known. &amp;#8220;X and Y companies designed their &lt;code&gt;insert-feature-here&lt;/code&gt; with all these &lt;em&gt;extras&lt;/em&gt;, so we&amp;#8217;ll do the same&amp;#8221;. Everything is &lt;a href=&quot;https://invidious.snopyta.org/watch?v=dC1yHLp9bWA&quot;&gt;a copy of a copy of a copy&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;The only advice I can give to designers is this: try not to add to the problem. I&amp;#8217;m not asking you to move mountains. But consider working somewhere else if your career only adds more bloat to the world. (Easier said than done, I know). Or keep doing what you&amp;#8217;re doing. What do I know - I&amp;#8217;m only some guy who rambles on the web.&lt;/p&gt;
-&lt;h2 id=&quot;back-to-the-coffee-maker&quot;&gt;Back to the Coffee Maker&lt;/h2&gt;
-&lt;p&gt;So the Keurig is gone. Trashed. The company doesn&amp;#8217;t want the product back, they tell you to scrap it. &amp;#8220;We&amp;#8217;ll send you a new one for free&amp;#8221;. Such a waste.&lt;/p&gt;
-&lt;p&gt;Instead, I snagged the cheapest and most basic coffee maker I could find. It cost me $12. It has no clock, no programming options, no base settings or cleaning functions. Hell, there aren&amp;#8217;t even level numbers on the water reservoir tank. &lt;/p&gt;
-&lt;p&gt;You add your scoops of coffee grounds, along with desired amount of water. Then you switch on the (only) button at the side of the machine. After a handful of minutes, you have coffee.&lt;/p&gt;
-&lt;p&gt;And it&amp;#8217;s been running &lt;em&gt;perfect&lt;/em&gt; for over 8 months now. I clean it every so often by brewing with a small mixture of vinegar and water. That&amp;#8217;s it. No need for &amp;#8220;specialty cleaners&amp;#8221; that cost almost as much as the machine itself. The points of failure get reduced as well, since the machine is bare-bones. Nothing can break when there is nothing to break&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;brewing-software&quot;&gt;&amp;#8220;Brewing&amp;#8221; Software&lt;/h2&gt;
-&lt;p&gt;At least, for me, I plan to only design what &lt;em&gt;needs to be&lt;/em&gt;. If someone asks for a &amp;#8220;coffee&amp;#8221;, they&amp;#8217;ll get a cup of hot, black coffee and nothing else.&lt;/p&gt;</description>
- <link>https://btxx.org/one-thing</link>
- <guid isPermaLink="false">https://btxx.org/one-thing</guid>
- <pubDate>Mon, 09 Jan 2023 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Billing for One CSS Change</title>
- <description>&lt;h1 id=&quot;billing-for-one-css-change&quot;&gt;Billing for One CSS Change&lt;/h1&gt;
-&lt;p&gt;2019-11-29&lt;/p&gt;
-&lt;p&gt;Every second you spend working as a designer should be billed back to the client. A simple button color change? Bill them. Additional links added to an existing menu? Send that invoice over. Some basic typeface changes? Don&amp;#8217;t do it for free.&lt;/p&gt;
-&lt;p&gt;You need to be charging for &lt;em&gt;all&lt;/em&gt; design work, regardless of difficulty or time required.&lt;/p&gt;
-&lt;p&gt;This concept might seem extremely obvious to more senior level workers but I have seen a good amount of junior devs make the mistake of &amp;#8220;working for experience&amp;#8221; or better yet &amp;#8220;strengthening the client relationship&amp;#8221;. Early on in my career I was just as guilty of doing this kind of thing. It was and still is a very foolish practice.&lt;/p&gt;
-&lt;h2 id=&quot;do-you-really-bill-for-one-css-change&quot;&gt;Do you really bill for &lt;em&gt;one&lt;/em&gt; CSS change?&lt;/h2&gt;
-&lt;p&gt;Absolutely. From the client&amp;#8217;s perspective it may seem like they are being billed for one CSS change and 30 seconds of a designer&amp;#8217;s time. In reality, they are paying for the designer&amp;#8217;s years of experience to be able to solve that problem in &lt;em&gt;only&lt;/em&gt; 30 seconds.&lt;/p&gt;
-&lt;p&gt;Would the client be happier with a significantly less qualified designer charging the same amount of money but taking 3 &lt;em&gt;hours&lt;/em&gt; to complete the task? In the end, what&amp;#8217;s the difference?&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;If it is a simple change that they believe should cost nothing, then why aren&amp;#8217;t they doing it themselves?&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;We as developers and designers work in an odd industry. A lot of people (read clients) outside of our bubble tend to think they have a much better understanding of the work we do. Because of this, they tend to preface work requests with phrases like:&lt;/p&gt;
+&lt;li&gt;&lt;code&gt;movie.mp4&lt;/code&gt; is the file in the current macOS directory we plan to copy over&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;pi_user_name&lt;/code&gt; is the username you setup on your Raspberry Pi&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;PI_IP_ADDRESS&lt;/code&gt; is, of course, your Pi&amp;#8217;s IP address&lt;/li&gt;
+&lt;li&gt;The appended &lt;code&gt;:&amp;#47;mnt&amp;#47;movies&amp;#47;movie.mp4&lt;/code&gt; is the directory your Jellyfin server uses to pull-in media&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;You&amp;#8217;ll be prompted for the user password. Once entered the file will begin copying over to your remote Jellyfin server. That&amp;#8217;s it! Although, I should mention a little bonus feature that you should always have in your back pocket, since Jellyfin can sometimes be picky with media file formats:&lt;/p&gt;
+&lt;h2 id=&quot;converting-media-files-with-ease&quot;&gt;Converting Media Files with Ease&lt;/h2&gt;
+&lt;p&gt;This is where your new best friend &lt;code&gt;FFmpeg&lt;/code&gt; comes into your life (if they weren&amp;#8217;t there already).&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&amp;#8220;This should be a simple change&amp;#8221;&lt;/li&gt;
-&lt;li&gt;&amp;#8220;This shouldn&amp;#8217;t take more than a couple of minutes&amp;#8221;&lt;/li&gt;
-&lt;li&gt;&amp;#8220;This seems like an easy fix&amp;#8221;&lt;/li&gt;
+&lt;li&gt;Download and install &lt;code&gt;FFmpeg&lt;/code&gt; &amp;#8211;&amp;#62; &lt;a href=&quot;https://www.ffmpeg.org/download.html&quot;&gt;ffmpeg.org&amp;#47;download.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Most of the time these comments are harmless, but other times they are a subtle way of downplaying your skill and experience required to complete these work items. That skill and experience shouldn&amp;#8217;t ever come free. It makes you wonder if these same people expect free work from trades-people (electricians, plumbers, etc) when they need what they think is a &amp;#8220;simple&amp;#8221; fix in their house.&lt;/p&gt;
-&lt;p&gt;Do you think workers in &lt;em&gt;most&lt;/em&gt; other industries travel out to someone&amp;#8217;s home and fix &amp;#8220;small&amp;#8221; issues for free? Hell no.&lt;/p&gt;
-&lt;p&gt;So why are developers and designers doing work for free? I truly don&amp;#8217;t know - but it needs to stop.&lt;/p&gt;
-&lt;h2 id=&quot;a-simple-but-useful-system&quot;&gt;A simple but useful system&lt;/h2&gt;
-&lt;p&gt;You should live by the rule that every &lt;em&gt;second&lt;/em&gt; you spend working for someone else is billable. I don&amp;#8217;t mean that you should literally bill per second, but instead round to nearest estimated time slot (whether you are billing hourly, daily, sprint-based or per project). This ensures that your efforts are paid for and that the client will begin to truly value your time. Doing this from the get-go will save you headaches in the future.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m sorry if this comes off as preachy, but I&amp;#8217;m just trying to inspire designers to value their work more. Don&amp;#8217;t sell yourself short - your talent is valuable and shouldn&amp;#8217;t be taken for granted.&lt;/p&gt;</description>
- <link>https://btxx.org/one-css-property</link>
- <guid isPermaLink="false">https://btxx.org/one-css-property</guid>
- <pubDate>Fri, 29 Nov 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Obvious Javascript 'Injection' Fallback</title>
- <description>&lt;h1 id=&quot;obvious-javascript-injection-fallback&quot;&gt;Obvious Javascript &amp;#8216;Injection&amp;#8217; Fallback&lt;/h1&gt;
-&lt;p&gt;2020-12-04&lt;/p&gt;
-&lt;p&gt;Sometimes websites and web apps might require content to be &amp;#8220;injected&amp;#8221; via Javascript. I should mention that I am strongly against this practice - but often this kind of thing is out of one&amp;#8217;s hands. So, the least I can do is setup these &amp;#8220;injections&amp;#8221; to have proper fallbacks for users who disable JS. You would be surprised how many developers build &lt;em&gt;empty&lt;/em&gt; HTML elements with the assumption they will be filled via Javascript.&lt;/p&gt;
-&lt;h2 id=&quot;our-hypothetical-project&quot;&gt;Our Hypothetical Project&lt;/h2&gt;
-&lt;p&gt;Let&amp;#8217;s pretend that we have a total tally that pulls in the number of current users using our fake SaaS app. We would do something like this:&lt;/p&gt;
-&lt;h3 id=&quot;html&quot;&gt;HTML&lt;/h3&gt;
-&lt;p&gt;Here we create an empty &lt;code&gt;h2&lt;/code&gt; tag that will update with the current number of users via js:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;main&amp;#62;
- &amp;#60;h2 class=&quot;total-tally&quot;&amp;#62;&amp;#60;&amp;#47;h2&amp;#62;
-&amp;#60;&amp;#47;main&amp;#62;
+&lt;p&gt;Now navigate to the directory containing the media file you wish to convert via your Terminal and run the following command:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;ffmpeg -i input.mp4 output.mkv
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;javascript&quot;&gt;Javascript&lt;/h3&gt;
-&lt;p&gt;You&amp;#8217;ll have to use your imagination here and assume that the &lt;code&gt;totalTally&lt;/code&gt; variable pulls in the numbers dynamically via API:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;var totalTally = &quot;273,677&quot; &amp;#47;* This would pull something dynamically in prod *&amp;#47;
-document.getElementsByClassName(&quot;total-tally&quot;)[0].innerHTML=totalTally;
+&lt;ol&gt;
+&lt;li&gt;&lt;code&gt;input.mp4&lt;/code&gt; is the initial file we wish to convert&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;output.mkv&lt;/code&gt; will be the name and file type of our converted media&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;Now you can circle back and run the previous &lt;code&gt;scp&lt;/code&gt; command once you have converted your files to the desired format. Hopefully Jellyfin doesn&amp;#8217;t complain about the formatting!&lt;/p&gt;</description>
+ <link>https://btxx.org/jelly</link>
+ <guid isPermaLink="false">https://btxx.org/jelly</guid>
+ <pubDate>Sat, 12 Mar 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Using Parent Selectors in CSS</title>
+ <description>&lt;h1 id=&quot;using-parent-selectors-in-css&quot;&gt;Using Parent Selectors in CSS&lt;/h1&gt;
+&lt;p&gt;2018-12-19&lt;/p&gt;
+&lt;p&gt;I recently saw a Twitter thread posted by Tommy Hodgins on implementing highly requested styling features in CSS with only a minimal amount of JavaScript. Many of his examples are great, but the &lt;code&gt;parent&lt;/code&gt; selector instantly peaked my interest.&lt;/p&gt;
+&lt;p&gt;Being able to target an element&amp;#8217;s parent always becomes a minor annoyance (since vanilla CSS does not support it) - so you always end up having to do something a little ugly like:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;var el = document.getElementById(&amp;#39;custom-div&amp;#39;);
+var parent = el.closest(selectors);
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;the-problem&quot;&gt;The Problem&lt;/h2&gt;
-&lt;p&gt;The big issue we have now occurs when a user visits this page without JS enabled. The &lt;code&gt;h2&lt;/code&gt; tag will remain empty and they won&amp;#8217;t see anything. I know this seems like a very avoidable issue, but you would be surprised how often it actually happens on the web.&lt;/p&gt;
-&lt;h2 id=&quot;the-overly-simple-solution&quot;&gt;The (overly simple) Solution&lt;/h2&gt;
-&lt;p&gt;The easiest way to avoid these types of empty tags - add static content. I know - mind blowing, right?&lt;/p&gt;
-&lt;h3 id=&quot;html-updated&quot;&gt;HTML (updated)&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;main&amp;#62;
- &amp;#60;h2 class=&quot;total-tally&quot;&amp;#62;200,000+&amp;#60;&amp;#47;h2&amp;#62;
-&amp;#60;&amp;#47;main&amp;#62;
+&lt;p&gt;And then add any custom styling to the parent element directly in JavaScript - or toggle a class which opens a whole other can of worms.&lt;/p&gt;
+&lt;h2 id=&quot;save-the-day-with-jsincss-parent-selector-and-qaffeine&quot;&gt;Save the day with jsincss-parent-selector and qaffeine&lt;/h2&gt;
+&lt;p&gt;By using the &lt;code&gt;jsincss-parent-selector&lt;/code&gt; and &lt;code&gt;qaffeine&lt;/code&gt; plugins we can target an element&amp;#8217;s parent in CSS without breaking a sweat. Let&amp;#8217;s break it down:&lt;/p&gt;
+&lt;h3 id=&quot;import-the-packages&quot;&gt;Import the packages&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;npm install jsincss-parent-selector qaffeine
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;You might be reading this and saying to yourself, &amp;#8220;Wow! Thanks Captain Obvious!&amp;#8221; and that&amp;#8217;s a fair reaction. This is an &lt;em&gt;obvious&lt;/em&gt; demo on purpose. If even one single reader learns to avoid leaving empty HTML tags that are solely dependent on Javascript injection, then I&amp;#8217;d say this demo was a huge success.&lt;/p&gt;
-&lt;p&gt;Rule of thumb: don&amp;#8217;t make assumption about your users. Play it safe.&lt;/p&gt;</description>
- <link>https://btxx.org/obvious-js-injection-fallback</link>
- <guid isPermaLink="false">https://btxx.org/obvious-js-injection-fallback</guid>
- <pubDate>Fri, 04 Dec 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>RE: Creating a Simple HTML/CSS Notice Box</title>
- <description>&lt;h1 id=&quot;re-creating-a-simple-htmlcss-notice-box&quot;&gt;RE: Creating a Simple HTML&amp;#47;CSS Notice Box&lt;/h1&gt;
-&lt;p&gt;2022-09-22&lt;/p&gt;
-&lt;p&gt;I recently read Kev Quirk&amp;#8217;s post, &lt;a href=&quot;https://kevquirk.com/how-to-create-a-simple-html-css-notice-box/&quot;&gt;How to Create a Simple HTML&amp;#47;CSS Notice Box&lt;/a&gt; and loved the simplicity of it. I&amp;#8217;m a sucker for using pseudo elements in creative ways but still managing to make them useful. Of course, this got me thinking as to whether or not the same style of box could be achieved &lt;em&gt;without&lt;/em&gt; the use of static, pseudo elements&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;bad-semantics&quot;&gt;Bad Semantics&lt;/h2&gt;
-&lt;p&gt;I need to make it clear right away: &lt;strong&gt;these implementations are not semantic&lt;/strong&gt;. They are valid HTML, but I am technically using these tags incorrectly. &lt;em&gt;You have been warned!&lt;/em&gt;&lt;/p&gt;
-&lt;h2 id=&quot;setting-fieldsets&quot;&gt;Setting Fieldsets&lt;/h2&gt;
-&lt;p&gt;The first approach is to wrap everything inside HTML &lt;code&gt;fieldset&lt;/code&gt; tags:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;fieldset&amp;#62;
- &amp;#60;legend&amp;#62;Notice&amp;#60;&amp;#47;legend&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum, dolor sit amet consectetur adipisicing elit. Totam nihil velit vitae sed beatae earum assumenda deleniti, inventore repellendus, sequi distinctio delectus porro explicabo quidem hic quo quasi voluptas temporibus.&amp;#60;&amp;#47;p&amp;#62;
-&amp;#60;&amp;#47;fieldset&amp;#62;
+&lt;h3 id=&quot;html-ex.-index.html&quot;&gt;HTML (ex. index.html)&lt;/h3&gt;
+&lt;p&gt;Now we add our very simple HTML skeleton:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;!doctype html&amp;#62;
+&amp;#60;html&amp;#62;
+ &amp;#60;head&amp;#62;
+ &amp;#60;link rel=&quot;stylesheet&quot; href=&quot;output.css&quot;&amp;#62;
+ &amp;#60;&amp;#47;head&amp;#62;
+ &amp;#60;body&amp;#62;
+ &amp;#60;header&amp;#62;
+ &amp;#60;main&amp;#62;
+ &amp;#60;h2&amp;#62;This is a header&amp;#60;&amp;#47;h2&amp;#62;
+ &amp;#60;&amp;#47;main&amp;#62;
+ &amp;#60;&amp;#47;header&amp;#62;
+ &amp;#60;&amp;#47;body&amp;#62;
+ &amp;#60;script src=output.js&amp;#62;&amp;#60;&amp;#47;script&amp;#62;
+&amp;#60;&amp;#47;html&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then you can include minor styling to closely match the design of Kev&amp;#8217;s notice box:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;fieldset {
- border: 3px solid;
- font-family: sans-serif;
- padding: 30px 10px 10px;
- position: relative;
+&lt;h3 id=&quot;javascript-ex.-input.js&quot;&gt;JavaScript (ex. input.js)&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;const qaffeine = require(&amp;#39;qaffeine&amp;#39;)
+const parent = require(&amp;#39;jsincss-parent-selector&amp;#39;)
+
+qaffeine(
+{
+ stylesheet: {},
+ rules: {
+ parent
+ }
+},
+&amp;#39;input.css&amp;#39;,
+&amp;#39;output.js&amp;#39;,
+&amp;#39;output.css&amp;#39;
+)
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;css-ex.-input.css&quot;&gt;CSS (ex. input.css)&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;header {
+ display: block;
}
-fieldset legend {
- background: #AACCFF;
- border-bottom: 3px solid;
- border-right: 3px solid;
- left: 0;
- margin: 0;
- padding: 5px 10px;
- position: absolute;
- top: 0;
- text-transform: uppercase;
+main[--js-parent] {
+ background: blue;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;the-devil-is-in-the-details&quot;&gt;The Devil is in the Details&lt;/h2&gt;
-&lt;p&gt;The other option is utilizing the HTML &lt;code&gt;details&lt;/code&gt; tag:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;details open&amp;#62;
- &amp;#60;summary&amp;#62;Notice&amp;#60;&amp;#47;summary&amp;#62;
- &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Assumenda sequi esse reprehenderit facilis aperiam labore optio minus doloremque nesciunt! Voluptatem esse tempore asperiores recusandae rerum facere, reiciendis officia repudiandae similique?&amp;#60;&amp;#47;p&amp;#62;
-&amp;#60;&amp;#47;details&amp;#62;
+&lt;p&gt;Then simply run &lt;code&gt;node&lt;/code&gt; against your &lt;code&gt;js&lt;/code&gt; file. That&amp;#8217;s it! I would also suggest checking out Tommy&amp;#8217;s video covering this topic if you prefer to follow along.&lt;/p&gt;</description>
+ <link>https://btxx.org/jsincss-parent-selector</link>
+ <guid isPermaLink="false">https://btxx.org/jsincss-parent-selector</guid>
+ <pubDate>Wed, 19 Dec 2018 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Keynote Slides with Pure CSS</title>
+ <description>&lt;h1 id=&quot;keynote-slides-with-pure-css&quot;&gt;Keynote Slides with Pure CSS&lt;/h1&gt;
+&lt;p&gt;2020-06-22&lt;/p&gt;
+&lt;p&gt;There are a great deal of options available on the web and built into most operating systems when you need to create presentation &amp;#47; keynote slides. You could use native software like LibremOffice Impress, Powerpoint, Apple&amp;#8217;s Keynote, etc. You could also decide to use preexisting web-based apps like Google Slides or an open source project such as RevealJS. All of these are good options.&lt;/p&gt;
+&lt;p&gt;But thinking more about how overly complex these apps are implemented, it got me wondering if I could quickly code up a presentation slide framework with pure CSS and barely any code.&lt;/p&gt;
+&lt;p&gt;This is what I came up with:&lt;/p&gt;
+&lt;h2 id=&quot;the-demo&quot;&gt;The Demo&lt;/h2&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/jOWBJZb&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;Yes, I know this is &lt;em&gt;ugly&lt;/em&gt;, but this was created as a barebones skeleton for others to build upon. The demo uses a simple set of &lt;code&gt;radio&lt;/code&gt; inputs that correspond to their own individual &lt;code&gt;slide&lt;/code&gt; element. The framework looks at the currently &lt;code&gt;checked&lt;/code&gt; input, then changes the &lt;code&gt;opacity&lt;/code&gt; and &lt;code&gt;z-index&lt;/code&gt; of its corresponding slide item. Pretty straightforward stuff!&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s break down each piece:&lt;/p&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;slider&quot;&amp;#62;
+ &amp;#60;input type=&quot;radio&quot; name=&quot;pagination&quot; value=&quot;1&quot; checked&amp;#62;
+ &amp;#60;input type=&quot;radio&quot; name=&quot;pagination&quot; value=&quot;2&quot;&amp;#62;
+ &amp;#60;input type=&quot;radio&quot; name=&quot;pagination&quot; value=&quot;3&quot;&amp;#62;
+ &amp;#60;input type=&quot;radio&quot; name=&quot;pagination&quot; value=&quot;4&quot;&amp;#62;
+ &amp;#60;input type=&quot;radio&quot; name=&quot;pagination&quot; value=&quot;5&quot;&amp;#62;
+
+ &amp;#60;div class=&quot;slide&quot;&amp;#62;
+ &amp;#60;h2&amp;#62;Slide 1&amp;#60;&amp;#47;h2&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;slide&quot;&amp;#62;
+ &amp;#60;h2&amp;#62;Slide 2&amp;#60;&amp;#47;h2&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;slide&quot;&amp;#62;
+ &amp;#60;h2&amp;#62;Slide 3&amp;#60;&amp;#47;h2&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;slide&quot;&amp;#62;
+ &amp;#60;h2&amp;#62;Slide 4&amp;#60;&amp;#47;h2&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;slide&quot;&amp;#62;
+ &amp;#60;h2&amp;#62;Slide 5&amp;#60;&amp;#47;h2&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;You&amp;#8217;ll obviously want to include the &lt;code&gt;open&lt;/code&gt; attribute to avoid users needing to toggle the content manually (unless that is your desired UX). Then add similar styling options to match the &lt;code&gt;fieldset&lt;/code&gt; example:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;details {
- border: 3px solid;
- font-family: sans-serif;
- padding: 0 10px 10px;
+&lt;p&gt;There isn&amp;#8217;t a whole lot going on here. We are just including a set of &lt;code&gt;radio&lt;/code&gt; inputs (based on how many slides are desired) along with their corresponding &lt;code&gt;slide&lt;/code&gt; class elements. You might notice we don&amp;#8217;t do anything to specifically target each individual slide item - you&amp;#8217;ll see why we don&amp;#8217;t need to in the CSS section!&lt;/p&gt;
+&lt;h2 id=&quot;the-css-scss&quot;&gt;The CSS (SCSS)&lt;/h2&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Basic default styles *&amp;#47;
+.slider {
+ height: 100%;
+ left: 0;
+ position: fixed;
+ top: 0;
+ width: 100%;
+
+ .slide {
+ height: 100%;
+ opacity: 0;
+ position: absolute;
+ width: 100%;
+ z-index: -2;
+ }
}
-details summary {
- background: #AACCFF;
- border-bottom: 3px solid;
- border-right: 3px solid;
- display: inline-block;
- margin-left: -10px;
- padding: 5px 10px;
- text-transform: uppercase;
+
+input[type=&quot;radio&quot;] { cursor: pointer; }
+
+&amp;#47;* Target slide item based on currently checked radio *&amp;#47;
+input[type=&quot;radio&quot;]:nth-of-type(1):checked ~ .slide:nth-of-type(1),
+input[type=&quot;radio&quot;]:nth-of-type(2):checked ~ .slide:nth-of-type(2),
+input[type=&quot;radio&quot;]:nth-of-type(3):checked ~ .slide:nth-of-type(3),
+input[type=&quot;radio&quot;]:nth-of-type(4):checked ~ .slide:nth-of-type(4),
+input[type=&quot;radio&quot;]:nth-of-type(5):checked ~ .slide:nth-of-type(5) {
+ opacity: 1;
+ z-index: 1;
}
+
+&amp;#47;* Individual slide styling *&amp;#47;
+.slide:nth-of-type(1) { background: dodgerblue; }
+.slide:nth-of-type(2) { background: crimson; }
+.slide:nth-of-type(3) { background: rebeccapurple; }
+.slide:nth-of-type(4) { background: goldenrod; }
+.slide:nth-of-type(5) { background: pink; }
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Important to note: you can hide the default &amp;#8220;arrow toggle&amp;#8221; on &lt;code&gt;summary&lt;/code&gt; elements by including the following:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;details &amp;#62; summary {
-list-style: none;
+&lt;p&gt;Again, not much to see here. We use CSS to look down through the DOM for each &lt;code&gt;radio&lt;/code&gt; elements slide &amp;#8220;partner&amp;#8221;. We do this by targeting the &lt;code&gt;nth-of-type&lt;/code&gt; on both elements. Simple stuff.&lt;/p&gt;
+&lt;p&gt;Some drawbacks to this approach:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;You need to manually target each new slide you add (color, styling, content, etc.)&lt;/li&gt;
+&lt;li&gt;Lack of animations might require extra work to implement (maybe 3rd party libraries- ke AOS?)&lt;/li&gt;
+&lt;li&gt;Probably won&amp;#8217;t be best for extremely long&amp;#47;complex presentation slides&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;That&amp;#8217;s it! Hope you enjoy playing around with it.&lt;/p&gt;</description>
+ <link>https://btxx.org/keynote-slides-css</link>
+ <guid isPermaLink="false">https://btxx.org/keynote-slides-css</guid>
+ <pubDate>Mon, 22 Jun 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>ThriftyName: $5 Brand Names</title>
+ <description>&lt;h1 id=&quot;thriftyname-5-brand-names&quot;&gt;ThriftyName: $5 Brand Names&lt;/h1&gt;
+&lt;p&gt;2021-02-25&lt;/p&gt;
+&lt;p&gt;It&amp;#8217;s been a while since I&amp;#8217;ve written anything on this blog, but for good reason - &lt;strong&gt;I&amp;#8217;ve been working on a handful of side projects&lt;/strong&gt;. I plan to drip-feed release these projects over time, but for today I&amp;#8217;m announcing &lt;a href=&quot;https://thrifty.name&quot;&gt;ThriftyName&lt;/a&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;what-is-thriftyname&quot;&gt;What is ThriftyName?&lt;/h2&gt;
+&lt;p&gt;In case this post title wasn&amp;#8217;t clear enough (or you avoided going to the product site itself) ThriftyName is a place where indie devs, start-ups or entrepreneurs can go to get a custom brand name for &lt;strong&gt;just $10&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;This &amp;#8220;service&amp;#8221; started out as an almost gimmicky joke in my head, but once I began building out the main website I realized that this could be quite useful for cash-strapped indies. After all, not all developers &lt;em&gt;love&lt;/em&gt; to sit around wasting precious time thinking about product names, when they could use that time to &lt;em&gt;build their product&lt;/em&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;learn-more&quot;&gt;Learn More&lt;/h2&gt;
+&lt;p&gt;If you&amp;#8217;re really interested in the reasoning behind making this project, check out the &lt;a href=&quot;https://thrifty.name/#about&quot;&gt;official about page on the site itself&lt;/a&gt;. I go into a little more depth about my thought process.&lt;/p&gt;
+&lt;h2 id=&quot;more-side-projects-incoming&quot;&gt;More Side Projects Incoming&amp;#8230;&lt;/h2&gt;
+&lt;p&gt;Like I said at the beginning of the post, keep a look out for my other side projects that I&amp;#8217;ll be rolling out slowing. I&amp;#8217;m still not sure of the best &amp;#8220;method&amp;#8221; to do this (release one every week? every month?) - but I&amp;#8217;ll figure it out as I go along.&lt;/p&gt;
+&lt;p&gt;Thanks for reading!&lt;/p&gt;</description>
+ <link>https://btxx.org/launching-thriftyname</link>
+ <guid isPermaLink="false">https://btxx.org/launching-thriftyname</guid>
+ <pubDate>Thu, 25 Feb 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>The Lazy Developer's Dark Mode</title>
+ <description>&lt;h1 id=&quot;the-lazy-developers-dark-mode&quot;&gt;The Lazy Developer&amp;#8217;s Dark Mode&lt;/h1&gt;
+&lt;p&gt;2021-04-12&lt;/p&gt;
+&lt;p&gt;After recently jumping back to Jekyll for my personal blog, I decided to take a closer look at how I was supporting &lt;code&gt;dark mode&lt;/code&gt; for my visitors. I was using the proper CSS query to target those who had system-wide dark mode enabled, but I found that the code had far too many caveats and targeted too many custom classes.&lt;/p&gt;
+&lt;p&gt;So I thought to myself, &amp;#8220;There &lt;em&gt;has&lt;/em&gt; to be a simpler way&amp;#8230;&amp;#8221;&lt;/p&gt;
+&lt;h2 id=&quot;introducing-dark-mode---the-lazy-way&quot;&gt;Introducing Dark Mode - The Lazy Way&lt;/h2&gt;
+&lt;p&gt;Here is the default dark mode for my current website in all it&amp;#8217;s glory:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@media (prefers-color-scheme: dark) {
+ body{background:#2d2d2d;filter:invert(1);}
+ img,.cp_embed_wrapper,pre{filter:invert(1);}
}
-details &amp;#62; summary::-webkit-details-marker {
-display: none;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Not much to look at, eh? Well, let&amp;#8217;s still break it down.&lt;/p&gt;
+&lt;p&gt;First we set the &lt;code&gt;body&lt;/code&gt; to use a nice dark background color (avoid using &lt;code&gt;#000000&lt;/code&gt; directly since that can cause some minor eye strain). Next we tell the browser to invert all the child elements by using &lt;code&gt;filter:invert(1)&lt;/code&gt;. At this point, you could consider your work done - but there are some edge case elements&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;images-codepens-code---oh-my&quot;&gt;Images, CodePens &amp;#38; Code - Oh My!&lt;/h2&gt;
+&lt;p&gt;Most of my articles on this site will include either an image(s), embedded CodePen examples or code snippets directly in the page. For these elements we probably &lt;em&gt;don&amp;#8217;t&lt;/em&gt; want to invert their color&amp;#47;text etc. All we need to do is run the filter property on these a second time (&lt;em&gt;after&lt;/em&gt; the main &lt;code&gt;body&lt;/code&gt; attribute):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@media (prefers-color-scheme: dark) {
+ img,.cp_embed_wrapper,pre{filter:invert(1);}
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;seeing-is-believing&quot;&gt;Seeing is Believing&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve put together two versions of each implementation (one custom designed and one using default browser styling). You can check them out in the CodePen below:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/jOxLdQP&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</description>
- <link>https://btxx.org/notice</link>
- <guid isPermaLink="false">https://btxx.org/notice</guid>
- <pubDate>Thu, 22 Sep 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>News Websites Are Dumpster Fires</title>
- <description>&lt;h1 id=&quot;news-websites-are-dumpster-fires&quot;&gt;News Websites Are Dumpster Fires&lt;/h1&gt;
-&lt;p&gt;2019-05-29&lt;/p&gt;
-&lt;p&gt;Online news outlets are a dying breed and many users have decided to consume information elsewhere. Why? Because the news industry has become a cesspool of anti-consumer and blackhat practices that has eroded trust for the sake of money.&lt;/p&gt;
-&lt;h2 id=&quot;what-news-sites-get-wrong&quot;&gt;What news sites get wrong&lt;/h2&gt;
-&lt;p&gt;I could write up an entire essay about all the shady practices that &lt;em&gt;most&lt;/em&gt; news sites are guilty of, but here are just a few top level issues:&lt;/p&gt;
+&lt;p&gt;Of course, YMMV depending on what other custom elements you want to avoid inverting.&lt;/p&gt;
+&lt;h2 id=&quot;minor-caveats&quot;&gt;Minor Caveats&lt;/h2&gt;
+&lt;p&gt;I should mention that since my website doesn&amp;#8217;t use any custom coloring for anchor links, inverting &lt;code&gt;ahref&lt;/code&gt; elements works out of the box. Certain projects might still require some custom overrides if the inverted version of a certain custom color looks poor.&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it - enjoy being lazy!&lt;/p&gt;</description>
+ <link>https://btxx.org/lazy-dev-dark-mode</link>
+ <guid isPermaLink="false">https://btxx.org/lazy-dev-dark-mode</guid>
+ <pubDate>Mon, 12 Apr 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>How to "FLOSS" as a Web Designer</title>
+ <description>&lt;h1 id=&quot;how-to-floss-as-a-web-designer&quot;&gt;How to &amp;#8220;FLOSS&amp;#8221; as a Web Designer&lt;/h1&gt;
+&lt;p&gt;2020-02-07&lt;/p&gt;
+&lt;p&gt;I have a profound respect for the open source community. I most likely wouldn&amp;#8217;t have the skills or knowledge I do today with it. Unfortunately, when I was just starting out in &amp;#8220;web dev&amp;#8221; some 10 years ago, proprietary software was the main go-to for a newbie designer. &lt;/p&gt;
+&lt;p&gt;Dreamweaver. Fireworks (those were the days). Photoshop. Illustrator. Adobe products basically had a stranglehold on the web design community. Any company you joined at the time more than likely required you to know and use these tools, making it hard for designers to try out new software for their day-to-day needs. Not to mention the &lt;em&gt;cost&lt;/em&gt; associated with these products.&lt;/p&gt;
+&lt;p&gt;Fast forward a handful of years and we have a lot more options in terms of design &amp;#47; development software (whether Windows, Mac or Linux). UI design tools like Figma, Sketch and Adobe XD have since popped up and become the most popular among designers. New text editors and terminals hit the scene, fighting for developer attention (Atom, Sublime Text, VSCode, LightTable, iTerm2, Hyper, etc.).&lt;/p&gt;
+&lt;p&gt;But what if a designer wanted to go completely FLOSS?&lt;/p&gt;
+&lt;p&gt;Below you will find my own personal list of FLOSS applications I use across design, development and simple document management:&lt;/p&gt;
+&lt;h3 id=&quot;web-browsers&quot;&gt;Web Browsers&lt;/h3&gt;
&lt;ul&gt;
-&lt;li&gt;Clickbait headings with misleading information&lt;/li&gt;
-&lt;li&gt;Disabling the user from reading if ad-block is present&lt;/li&gt;
-&lt;li&gt;Tracking the user with 3rd party scripts&lt;/li&gt;
-&lt;li&gt;Taking massive performance hits (specifically on mobile due to huge JavaScript blocks)&lt;/li&gt;
-&lt;li&gt;Pop-up ads&lt;/li&gt;
-&lt;li&gt;Fixed headers or footers which leads to harder readability &amp;#47; accidental element interactions&lt;/li&gt;
+&lt;li&gt;Firefox &lt;a href=&quot;https://www.mozilla.org/en-CA/firefox/&quot;&gt;https:&amp;#47;&amp;#47;www.mozilla.org&amp;#47;en-CA&amp;#47;firefox&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Brave &lt;a href=&quot;https://brave.com/&quot;&gt;https:&amp;#47;&amp;#47;brave.com&amp;#47;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;but-they-need-ad-revenue&quot;&gt;But they need ad revenue!&lt;/h2&gt;
-&lt;p&gt;If your business is solely dependent on tracking scripts, tricking users with clickbait titles and using archaic ads - then you&amp;#8217;re destined to fail regardless. These practices create an unsafe and unhealthy web for everyday users - not to mention most browsers have announced that future updates &lt;a href=&quot;https://support.mozilla.org/en-US/kb/content-blocking&quot;&gt;will be blocking ads by default&lt;/a&gt;. &lt;em&gt;News outlets need to adapt or die&lt;/em&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;whats-the-solution&quot;&gt;What&amp;#8217;s the solution?&lt;/h2&gt;
-&lt;p&gt;I don&amp;#8217;t have a &lt;em&gt;fix all&lt;/em&gt; band-aid to replace current revenue streams for news websites. I&amp;#8217;m sure someone much smarter than I can come up with better ideas, but just off the top of my head:&lt;/p&gt;
+&lt;h3 id=&quot;visual-design&quot;&gt;Visual Design&lt;/h3&gt;
&lt;ul&gt;
-&lt;li&gt;Switch over to a monthly subscription plan (if no one pays for it maybe you weren&amp;#8217;t as useful of a source as you thought)&lt;/li&gt;
-&lt;li&gt;Partner with brands to create sponsored articles (without ruining the user experience of course)&lt;/li&gt;
-&lt;li&gt;Place a larger emphasis on user donations or promotions&lt;/li&gt;
+&lt;li&gt;GIMP &lt;a href=&quot;https://www.gimp.org/&quot;&gt;https:&amp;#47;&amp;#47;www.gimp.org&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Inkscape &lt;a href=&quot;https://inkscape.org/&quot;&gt;https:&amp;#47;&amp;#47;inkscape.org&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Pencil &lt;a href=&quot;https://pencil.evolus.vn/&quot;&gt;https:&amp;#47;&amp;#47;pencil.evolus.vn&amp;#47;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;the-news-shouldnt-be-spam&quot;&gt;The News Shouldn&amp;#8217;t be Spam&lt;/h2&gt;
-&lt;p&gt;Most traffic flowing into news websites are there for one thing: &lt;em&gt;the content&lt;/em&gt;. News outlets should not be spamming their main revenue supply (&lt;strong&gt;the users&lt;/strong&gt;) or misleading people with false information.&lt;/p&gt;
-&lt;p&gt;If you&amp;#8217;re a regular consumer of news and you happen to run across a platform that is guilty of any of these practices, shoot them an email explaining why you won&amp;#8217;t be returning to their website (unless they change their ways). These anti-consumer practices will only stop when these organizations start losing money.&lt;/p&gt;</description>
- <link>https://btxx.org/news-websites-are-dumpster-fires</link>
- <guid isPermaLink="false">https://btxx.org/news-websites-are-dumpster-fires</guid>
- <pubDate>Wed, 29 May 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Using Netlify for Dynamic URL Redirects</title>
- <description>&lt;h1 id=&quot;using-netlify-for-dynamic-url-redirects&quot;&gt;Using Netlify for Dynamic URL Redirects&lt;/h1&gt;
-&lt;p&gt;2021-12-03&lt;/p&gt;
-&lt;p&gt;With the &lt;a href=&quot;/minor-website-changes/&quot;&gt;recent domain switch&lt;/a&gt; that took place on this website, I needed to have a dependable setup to forward my old domain URLs to the new one. While using something like &amp;#8220;URL forwarding&amp;#8221; through your domain provider could work, it doesn&amp;#8217;t natively support &lt;em&gt;dynamic&lt;/em&gt; linking. Let me explain using a basic example:&lt;/p&gt;
+&lt;h3 id=&quot;code-text-editors&quot;&gt;Code &amp;#47; Text Editors&lt;/h3&gt;
&lt;ul&gt;
-&lt;li&gt;A user clicks on a link that targets a post on your old domain: &lt;code&gt;olddomain.com&amp;#47;random-post&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;You want that link to forward using the same permalink structure: &lt;code&gt;newdomain.com&amp;#47;random-post&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;&amp;#8220;URL forwarding&amp;#8221; through your domain provider &lt;strong&gt;does not&lt;/strong&gt; support this&lt;/li&gt;
+&lt;li&gt;Brackets &lt;a href=&quot;http://brackets.io/&quot;&gt;http:&amp;#47;&amp;#47;brackets.io&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Visual Studio Code &lt;a href=&quot;https://github.com/Microsoft/vscode&quot;&gt;https:&amp;#47;&amp;#47;github.com&amp;#47;Microsoft&amp;#47;vscode&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Atom &lt;a href=&quot;https://atom.io/&quot;&gt;https:&amp;#47;&amp;#47;atom.io&amp;#47;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Simple stuff. So, let&amp;#8217;s breakdown how to easily set this up on Netlify &lt;em&gt;for free&lt;/em&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;setting-up-netlify&quot;&gt;Setting Up Netlify&lt;/h2&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;p&gt;Create an account (or login to an existing one) and setup a new site[^1]&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Change your &amp;#8220;old&amp;#8221; domain name nameservers to match Netlify&amp;#8217;s (normally done through your domain register)
+&lt;h3 id=&quot;terminal-shells&quot;&gt;Terminal Shells&lt;/h3&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;code&gt;dns1.p03.nsone.net&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;dns2.p03.nsone.net&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;dns3.p03.nsone.net&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;dns4.p03.nsone.net&lt;/code&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Back in Netlify: under &lt;strong&gt;Domain Settings&lt;/strong&gt; you need to add your custom &amp;#8220;old&amp;#8221; domain under the &lt;strong&gt;Custom domains&lt;/strong&gt; section under &lt;strong&gt;Domain management&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Lastly, add the following content inside a &lt;code&gt;_redirects&lt;/code&gt; file (no extension) to your website content&amp;#47;build (changing to your own domains, of course)&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://olddomain.com/*&quot;&gt;https:&amp;#47;&amp;#47;olddomain.com&amp;#47;*&lt;/a&gt; &lt;a href=&quot;https://newdomain.com/:splat&quot;&gt;https:&amp;#47;&amp;#47;newdomain.com&amp;#47;:splat&lt;/a&gt; 301!&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;Terminus &lt;a href=&quot;https://eugeny.github.io/terminus/&quot;&gt;https:&amp;#47;&amp;#47;eugeny.github.io&amp;#47;terminus&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Hyper &lt;a href=&quot;https://hyper.is/&quot;&gt;https:&amp;#47;&amp;#47;hyper.is&amp;#47;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;That&amp;#8217;s it! Now Netlify will dynamically forward all your pre-existing URLs from your old domain to the new one. No pesky &lt;code&gt;.htaccess&lt;/code&gt; files or running your own basic web server(s)!&lt;/p&gt;
-&lt;p&gt;Hopefully this helps others trying to dynamically redirect their domains without the headache.&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;I normally set this up through Github &amp;#47; git hosting&lt;/li&gt;
-&lt;/ol&gt;</description>
- <link>https://btxx.org/netlify-urls</link>
- <guid isPermaLink="false">https://btxx.org/netlify-urls</guid>
- <pubDate>Fri, 03 Dec 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>CSS: Indenting Text</title>
- <description>&lt;h1 id=&quot;css-indenting-text&quot;&gt;CSS: Indenting Text&lt;/h1&gt;
-&lt;p&gt;2019-04-05&lt;/p&gt;
-&lt;p&gt;A lot of developers tend to do the bare minimum when it comes to implementing proper website typography. This isn&amp;#8217;t an insult - I&amp;#8217;m happy that typography is given any thought at all during development, I just believe more can always be done to improve upon it.&lt;/p&gt;
-&lt;p&gt;In today&amp;#8217;s &lt;em&gt;TypeTip&lt;/em&gt; we&amp;#8217;re going to play around with the &lt;code&gt;text-indent&lt;/code&gt; property, look into when it&amp;#8217;s best to use it and how to implement it properly.&lt;/p&gt;
-&lt;h2 id=&quot;the-property-and-browser-support&quot;&gt;The property and browser support&lt;/h2&gt;
-&lt;p&gt;Browser support is actually pretty great for such a regularly over-looked CSS property. All major desktop and mobile browsers support it:&lt;/p&gt;
-&lt;p&gt;Now that doesn&amp;#8217;t mean you should just slap this property on all your type elements and call it a day - there are specific use cases for &lt;code&gt;text-indent&lt;/code&gt; and some basic rules to follow:&lt;/p&gt;
-&lt;h2 id=&quot;use-cases&quot;&gt;Use Cases&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Increasing readability of large text blocks that would otherwise overwhelm the reader&lt;/li&gt;
-&lt;li&gt;Replicating book or report typography layouts&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;basic-rules&quot;&gt;Basic Rules&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Best to set this property on inner type children only - meaning items like &lt;code&gt;p&lt;/code&gt; or &lt;code&gt;blockquotes&lt;/code&gt; instead of main headings&lt;/li&gt;
-&lt;li&gt;When used on paragraph tags it&amp;#8217;s best to target only &lt;code&gt;p&lt;/code&gt; elements that directly follow a sibling tag (see &amp;#8220;The CSS&amp;#8221; below)&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;Adding the property is extremely trivial, all you need is the following:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Best practice for paragraphs *&amp;#47;
-p + p {
- text-indent: 1rem; &amp;#47;* whatever you want *&amp;#47;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;lets-see-it-in-action&quot;&gt;Let&amp;#8217;s see it in action&lt;/h2&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/OGXLEd/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</description>
- <link>https://btxx.org/ndenting-text-with-css</link>
- <guid isPermaLink="false">https://btxx.org/ndenting-text-with-css</guid>
- <pubDate>Fri, 05 Apr 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>My Static Blog Publishing Setup and an Apology to RSS Subscribers</title>
- <description>&lt;h1 id=&quot;my-static-blog-publishing-setup-and-an-apology-to-rss-subscribers&quot;&gt;My Static Blog Publishing Setup and an Apology to RSS Subscribers&lt;/h1&gt;
-&lt;p&gt;2022-03-21&lt;/p&gt;
-&lt;p&gt;In case you missed it, this website is now generated with pure HTML &amp;#38; CSS. Although, generated isn&amp;#8217;t the proper way to describe it anymore. &lt;em&gt;Written&lt;/em&gt; is a better description.&lt;/p&gt;
-&lt;p&gt;No more Markdown files. No more build scripts. No more Jekyll. Clean, simple, static HTML &amp;#38; CSS is my &amp;#8220;CMS&amp;#8221;. More on that in a moment. First, I must apologize.&lt;/p&gt;
-&lt;h2 id=&quot;im-sorry-dear-rss-subscribers&quot;&gt;I&amp;#8217;m Sorry Dear RSS Subscribers&lt;/h2&gt;
-&lt;p&gt;RSS feeds are tricky things for me personally. I always botch them with a site redesign or a re-structure of my previous posts. Those of you subscribed via RSS were likely bombarded with post spam when I rebuilt this website. Sorry about that - I know how annoying that can be.&lt;/p&gt;
-&lt;p&gt;Fortunately, that all stops today. Moving forward my RSS feed (Atom) will be edited manually with every new post I write. Each entry will feature the post title, post url, and post date. No summaries or full-inline content will be included (since that would involve a great amount of extra overhead). RSS subs will need to follow the link directly if they are interested in the article itself. I hope this doesn&amp;#8217;t anger too many readers&amp;#8230;&lt;/p&gt;
-&lt;p&gt;Again, sorry everyone.&lt;/p&gt;
-&lt;h2 id=&quot;what-is-this-new-blog-system&quot;&gt;What is this New Blog &amp;#8220;System&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;This publishing flow isn&amp;#8217;t for everyone and is less flexible than pre-existing static site generators (referred to as SSGs moving forward). For me though, it works. I find it more flexible than most SSGs.&lt;/p&gt;
-&lt;p&gt;There are a couple articles that explain the reasoning behind this system better than I could (plus, why would I repeat the same points?):&lt;/p&gt;
+&lt;h3 id=&quot;documents&quot;&gt;Documents&lt;/h3&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;http://john.ankarstrom.se/html/&quot;&gt;Writing HTML in HTML&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://blog.steren.fr/2020/my-stack-will-outlive-yours/&quot;&gt;My stack will outlive yours&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;LibreOffice &lt;a href=&quot;https://www.libreoffice.org/&quot;&gt;https:&amp;#47;&amp;#47;www.libreoffice.org&amp;#47;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;So, what does my blog-posting system look like?&lt;/p&gt;
-&lt;h2 id=&quot;simple-explanation&quot;&gt;Simple Explanation&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Copy an existing article&amp;#8217;s &lt;code&gt;HTML&lt;/code&gt; file&lt;/li&gt;
-&lt;li&gt;Change file name, edit the page title, heading, post date and comment link&lt;/li&gt;
-&lt;li&gt;Write the new article content&lt;/li&gt;
-&lt;li&gt;Make manual new entry in RSS feed&lt;/li&gt;
-&lt;li&gt;Save changes, push to git repo&lt;/li&gt;
-&lt;li&gt;Sync new file(s) &amp;#47; changes to remote server&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;Pretty simple, eh? Let&amp;#8217;s break things down into greater detail though&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;detailed-explanation&quot;&gt;Detailed Explanation&lt;/h2&gt;
-&lt;h4 id=&quot;text-editor&quot;&gt;Text Editor&lt;/h4&gt;
-&lt;p&gt;I code and write everything exclusively in Sublime Text on my MacBook Air. I know, it&amp;#8217;s not an open source editor, but I love how incredibly fast and intuitive it is. I used VSCode in the past but ended up requiring far too many plugins to get things setup the way I like it. Sublime Text works best for me even right out of the box. (I do need Emmet and theming changes though).&lt;/p&gt;
-&lt;p&gt;I perform the following for a new article:&lt;/p&gt;
+&lt;h2 id=&quot;nothing-special&quot;&gt;Nothing special&lt;/h2&gt;
+&lt;p&gt;This small list I&amp;#8217;ve compiled isn&amp;#8217;t earth-shattering by any means, but I wanted to put this out into the world for any newbie designer that might be starting out. You don&amp;#8217;t need to spend a ridiculous amount of money just to get your feet wet in the design industry. By using the tools listed above, beginners can get a solid head-start on creating for the web without burning a hole in their pocket. &lt;/p&gt;</description>
+ <link>https://btxx.org/learning-to-floss</link>
+ <guid isPermaLink="false">https://btxx.org/learning-to-floss</guid>
+ <pubDate>Fri, 07 Feb 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Installing Custom Fonts on Linux from the Command Line</title>
+ <description>&lt;h1 id=&quot;installing-custom-fonts-on-linux-from-the-command-line&quot;&gt;Installing Custom Fonts on Linux from the Command Line&lt;/h1&gt;
+&lt;p&gt;2022-09-20&lt;/p&gt;
+&lt;p&gt;Installing custom fonts is a fairly streamlined feature on operating systems like MacOS and Windows. Linux, on the other hand, struggles to make this workflow &lt;em&gt;easy&lt;/em&gt; for everyday users. Many newcomers tend to get frustrated with using the default &amp;#8220;Fonts&amp;#8221; application managers shipped with most Linux distros.&lt;/p&gt;
+&lt;p&gt;But I&amp;#8217;m here to tell you to &lt;strong&gt;ditch&lt;/strong&gt; those GUI font installers. Let&amp;#8217;s install our custom fonts in the command line!&lt;/p&gt;
+&lt;h2 id=&quot;get-your-font-files&quot;&gt;Get Your Font Files&lt;/h2&gt;
+&lt;p&gt;You can&amp;#8217;t install custom fonts if you don&amp;#8217;t have any. For this tutorial we are going to assume that we are trying to install a typeface set named &lt;code&gt;LinuxFont&lt;/code&gt;. We are going to assume that we have already downloaded and extracted a folder named &lt;code&gt;LinuxFont&lt;/code&gt; into our &lt;code&gt;Downloads&lt;/code&gt; directory.&lt;/p&gt;
+&lt;p&gt;Inside this hypothetical folder is a collection of &lt;code&gt;OTF&lt;/code&gt; (opentype) font files. This will be important information in a moment.&lt;/p&gt;
+&lt;h2 id=&quot;terminal-time&quot;&gt;Terminal Time&lt;/h2&gt;
+&lt;p&gt;Now our goal is to simply copy this new typeface folder into our user font directory. Open Terminal and run the following from your &lt;code&gt;Downloads&lt;/code&gt; directory:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo cp -r LinuxFont &amp;#47;usr&amp;#47;local&amp;#47;share&amp;#47;fonts&amp;#47;opentype&amp;#47;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: If your font files are NOT opentype format, be sure to copy your files to the proper directory (truetype for TTF, etc.)&lt;/p&gt;
+&lt;p&gt;Next we need to make sure we have full read and write privileges for this new folder:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo chmod -R 0777 &amp;#47;usr&amp;#47;local&amp;#47;share&amp;#47;fonts&amp;#47;opentype&amp;#47;LinuxFont
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;The last thing we need to do is reload the font cache on our system:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo fc-cache -fv
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;That&amp;#8217;s it! You should now have access to your custom typeface in all your applications system wide.&lt;/p&gt;</description>
+ <link>https://btxx.org/lf</link>
+ <guid isPermaLink="false">https://btxx.org/lf</guid>
+ <pubDate>Tue, 20 Sep 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>The Linux Desktop is Hard to Love</title>
+ <description>&lt;h1 id=&quot;the-linux-desktop-is-hard-to-love&quot;&gt;The Linux Desktop is Hard to Love&lt;/h1&gt;
+&lt;p&gt;2022-07-14&lt;/p&gt;
+&lt;p&gt;I want to love the &amp;#8220;Linux Desktop&amp;#8221;. I really do. But I&amp;#8217;ve come to the realization that what I love is the &lt;em&gt;idea&lt;/em&gt; of the Linux Desktop. The community. The security and core focus on open source. The customizable environments. Tweaking as much or as little of the operating system as I please!&lt;/p&gt;
+&lt;p&gt;I just can&amp;#8217;t &lt;em&gt;stick with it&lt;/em&gt;. I always end up back on macOS. And I&amp;#8217;m starting to understand why.&lt;/p&gt;
+&lt;h2 id=&quot;what-the-linux-desktop-gets-right&quot;&gt;What the Linux Desktop Gets Right&lt;/h2&gt;
+&lt;p&gt;To be fair, there is an incredible amount of things that the Linux desktop does really well:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Copy an existing article, ie. &lt;code&gt;blog-post-1.html&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;Rename article file name, ie. &lt;code&gt;blog-post-2.html&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;Open this newly created file and change:
+&lt;li&gt;Complete user control&lt;/li&gt;
+&lt;li&gt;Ability to drastically change the desktop UI
&lt;ul&gt;
-&lt;li&gt;page &lt;code&gt;title&lt;/code&gt; tag&lt;/li&gt;
-&lt;li&gt;page &lt;code&gt;h1&lt;/code&gt; heading and top bar text&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;time&lt;/code&gt; tag to match publish date&lt;/li&gt;
-&lt;li&gt;comment &lt;code&gt;mailto:&lt;/code&gt; link url&lt;/li&gt;
+&lt;li&gt;Gnome, KDE, XFCE, etc.&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Start writing content inside the &lt;code&gt;article&lt;/code&gt; section&lt;/li&gt;
+&lt;li&gt;Overall good and welcoming communities&lt;/li&gt;
+&lt;li&gt;Extensive documentation for almost everything&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Once the article is complete, I add a static entry in my &lt;code&gt;feed.xml&lt;/code&gt; and run a crude rsync script. More on that below.&lt;/p&gt;
-&lt;h4 id=&quot;git&quot;&gt;Git&lt;/h4&gt;
-&lt;p&gt;Normally I would pull, commit and push directly in my Terminal - but lately I&amp;#8217;ve been enjoying my time using Sublime Merge. I&amp;#8217;m a sucker for visually appealing GUI applications and Merge is the perfect balance of simplicity and beauty. I recommend it if you haven&amp;#8217;t tried it yet.&lt;/p&gt;
-&lt;h4 id=&quot;hosting&quot;&gt;Hosting&lt;/h4&gt;
-&lt;p&gt;This blog is now hosted through NearlyFreeSpeech. I could opt for a free service like Netlify or DigitalOcean Apps but I feel it&amp;#8217;s important to help support communities that align with my own core beliefs. From their &lt;a href=&quot;https://www.nearlyfreespeech.net/about/&quot;&gt;about page&lt;/a&gt;:&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;NearlyFreeSpeech.NET is about three things: fairness, innovation, and free speech.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;Hard to argue with those principles. If you&amp;#8217;re feeling generous, I&amp;#8217;d greatly appreciate anyone who considers contributing to &lt;a href=&quot;https://www.nearlyfreespeech.net/contribute/tdarb.org&quot;&gt;offset this website&amp;#8217;s hosting costs through NearlyFreeSpeech&lt;/a&gt; (code: tdarb). No money is directly handed to me, it pays NFS directly for hosting fees. Donate if you feel like this humble blog of mine has helped you in any way. No pressure!&lt;/p&gt;
-&lt;p&gt;NFS gives me server access via &lt;code&gt;SSH&lt;/code&gt; (and even &lt;code&gt;SFTP&lt;/code&gt; if I desire) which makes things simple to sync my local files with production code. This is handled via rsync with a basic &lt;code&gt;deploy.sh&lt;/code&gt; script:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;rsync -vrzc --exclude &amp;#39;deploy.sh&amp;#39; --exclude &amp;#39;.git&amp;#39; --delete .&amp;#47; username@my.remote.nfs.server:
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;The included parameters ensure files with a conflicting checksum are updated on the server, instead of re-syncing all the files every time the script runs. That would be overkill.&lt;/p&gt;
-&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
-&lt;p&gt;I love this new setup. It&amp;#8217;s portable, lightweight, has zero dependencies, and gives me the opportunity to write directly in HTML. Others may find this workflow idiotic or cumbersome but I couldn&amp;#8217;t disagree more. Site wide changes can be made with simple &lt;code&gt;Find&amp;#47;Replace&lt;/code&gt; actions or even whipping up a basic script. Things should be as complex as you wish to make them!&lt;/p&gt;
-&lt;p&gt;At the end of the day, anything that helps you be more efficient and gets you producing more content is a winning strategy in my book. Who knows, this concept could even inspire one random reader out there to do the same.&lt;/p&gt;</description>
- <link>https://btxx.org/my-static-blog-publishing-setup</link>
- <guid isPermaLink="false">https://btxx.org/my-static-blog-publishing-setup</guid>
- <pubDate>Mon, 21 Mar 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>My Raspberry Pi Desktop</title>
- <description>&lt;h1 id=&quot;my-raspberry-pi-desktop&quot;&gt;My Raspberry Pi Desktop&lt;/h1&gt;
-&lt;p&gt;2020-09-02&lt;/p&gt;
-&lt;p&gt;I use a Raspberry Pi 4 as my personal daily driver and it&amp;#8217;s pretty great. I know these types of devices tend to be used for smaller pet-projects or fun experiments, but I thought I would share my experience using one as my main computer. Hopefully this can be a solid guide to help others who might be interested in creating a similar setup.&lt;/p&gt;
-&lt;p&gt;My desktop Pi working away on a regular morning:&lt;/p&gt;
-&lt;h2 id=&quot;table-of-contents&quot;&gt;Table of Contents&lt;/h2&gt;
+&lt;p&gt;These things make Linux a solid experience overall - but not a &lt;em&gt;great&lt;/em&gt; one&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;what-the-linux-desktop-gets-wrong&quot;&gt;What the Linux Desktop Gets Wrong&lt;/h2&gt;
+&lt;p&gt;If I had to summarize in a word what Linux lacks compared to macOS it would be: &lt;em&gt;cohesion&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;Apple&amp;#8217;s macOS keeps a solid consistency throughout its entire design. Everything looks and feels like it is part of the same system. Which is what a fully-fledged OS &lt;em&gt;should&lt;/em&gt; feel like. The argument can be made that macOS suffers some fragmentation with things like &lt;code&gt;homebrew&lt;/code&gt;, applications directly from developers vs. applications via the Mac App Store.&lt;/p&gt;
+&lt;p&gt;While this is true, I believe Linux desktops suffer far worse in terms of fragmented systems. Users building applications from source, &lt;code&gt;snap&lt;/code&gt; packages, &lt;code&gt;flathub&lt;/code&gt; packages, custom package managers shipped with separate distros, etc. And with this fragmentation comes the constant debates and discussions around which to use and which to avoid.&lt;/p&gt;
+&lt;p&gt;This can become overwhelming for average computer users. This is something we tend to forget in our &amp;#8220;tech hubs&amp;#8221;. Most users want to boot up their machine and get to work. Linux can absolutely do this, but if a user hits a minor snag, then I guarantee they will have more difficulty fixing it compared to an issue found in macOS.&lt;/p&gt;
+&lt;h2 id=&quot;user-experience&quot;&gt;User Experience&lt;/h2&gt;
+&lt;p&gt;Design is important. The user experience will make or break an operating system. This is another issue I&amp;#8217;ve found with many Linux desktops.&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s take Bluetooth for example. It works flawlessly in macOS. I have never had a single device bug-out or refuse to connect. Devices connect almost immediately when pairing. The UI is intuitive and gives the user clear feedback to what the system is doing while pairing, disconnecting, and so on.&lt;/p&gt;
+&lt;p&gt;Now, compare this to an average Linux DE experience - not so seamless. The fact that some distros require you to hop into a terminal in order to properly configure Bluetooth is pretty terrible. Sure, most have GUIs setup similar to that of macOS, but I find myself time and time again needing to pop open that trusty ol&amp;#8217; Terminal. This is fine for someone like myself, but for the average computer user? No way.&lt;/p&gt;
+&lt;p&gt;Looking for another example? Printers. Yes, printers are terrible machines created in the depths of Hell itself, but they are a necessary evil. And again, macOS handles &amp;#8220;plug-and-play&amp;#8221; printer functionality like a champ. Linux on the other hand is a mixed bag. I&amp;#8217;ve had some luck with specific Linux distros working with printers in this &amp;#8220;plug-and-play&amp;#8221; fashion, while others become a battle of attrition[^1]. Let&amp;#8217;s not even begin to talk about wireless &lt;em&gt;only&lt;/em&gt; printers and setting up their proper drivers on Linux.&lt;/p&gt;
+&lt;h2 id=&quot;quality-hardware&quot;&gt;Quality Hardware&lt;/h2&gt;
+&lt;p&gt;Another advantage macOS has over most other Linux desktops is tailored hardware. Apple produces the hardware created to run their own operating system, meaning it was specifically built for that task. Linux desktops are designed to run on almost any[^2] piece of hardware. Though this is fantastic in terms of technological sustainability (avoids dumping old devices when they lose &amp;#8220;support&amp;#8221;) it ends up causing more support issues. Needing to support such a wide range of chip sets and drivers spreads the focus on a streamlined UX a little more thin. It becomes difficult to perfect a cohesive experience user-to-user when some many variables can be different. I should note that some distros[^3] are making fantastic strides in this area but are still far from ideal.&lt;/p&gt;
+&lt;h2 id=&quot;i-still-use-linux&quot;&gt;I Still Use Linux&lt;/h2&gt;
+&lt;p&gt;I might have attacked the overall Linux desktop experience in favor of macOS a little harshly in this post, but it&amp;#8217;s a simple reflection of a individual who has used both extensively. I still work with multiple Linux machines daily. I still &lt;em&gt;like&lt;/em&gt; using Linux.&lt;/p&gt;
+&lt;p&gt;I just don&amp;#8217;t &lt;em&gt;love&lt;/em&gt; it.&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;&lt;a href=&quot;#use-case&quot;&gt;My Use Case&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#hardware&quot;&gt;The Hardware&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#software&quot;&gt;The Software&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#stats&quot;&gt;Performance &amp;#38; Stats&lt;/a&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;I&amp;#8217;m a web designer and developer by trade. Therefore, I require a decent amount of functionality from my computer - more than just simple web browsing and document editing. When I first set out testing if the RPi4 &lt;em&gt;could&lt;/em&gt; become my main device, I was surprised at how capable the hardware &amp;#47; software was at running all my required applications. My workload comprises of:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Using Github&amp;#47;Gitlab to pull&amp;#47;push repos, open PRs, etc&lt;/li&gt;
-&lt;li&gt;Run SSG (Jekyll mostly) locally for testing&lt;/li&gt;
-&lt;li&gt;Run multiple WordPress instances locally&lt;/li&gt;
-&lt;li&gt;Edit design files (Photoshop, Illustrator, direct SVGs)&lt;/li&gt;
-&lt;li&gt;Simple web chat &amp;#47; email&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Basic stuff, but I was originally doubtful of the RPi4 to be able to handle it all smoothly. I&amp;#8217;m happy to say I was wrong.&lt;/p&gt;
-&lt;p&gt;The following hardware list is what I use specifically for my intended use case. I&amp;#8217;m also a sucker for having cool looking SBC builds. By no means is this the &amp;#8220;best setup&amp;#8221; for everyone - I&amp;#8217;m sure other combinations of gear might better suit your own personal needs.&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: products in the hardware section are Amazon affiliate links&lt;/p&gt;
-&lt;/blockquote&gt;
+&lt;li&gt;People swear by CUPS working well on Linux, but this has caused issues for me in the past as well. Unsure why macOS handles it fine&amp;#8230;&lt;/li&gt;
+&lt;li&gt;Depending on the desired distro, resources required, etc.&lt;/li&gt;
+&lt;li&gt;A couple that come to mind are Zorin OS and elementary OS&lt;/li&gt;
+&lt;/ol&gt;</description>
+ <link>https://btxx.org/linux-love</link>
+ <guid isPermaLink="false">https://btxx.org/linux-love</guid>
+ <pubDate>Thu, 14 Jul 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Linux Mint MacBook Air Setup</title>
+ <description>&lt;h1 id=&quot;linux-mint-macbook-air-setup&quot;&gt;Linux Mint MacBook Air Setup&lt;/h1&gt;
+&lt;p&gt;2020-08-16&lt;/p&gt;
+&lt;p&gt;I don&amp;#8217;t like the idea of throwing away old or outdated tech (within reason), so I try to find a new purpose for some of my &amp;#8220;retired&amp;#8221; devices. This article will cover how to switch over a mid-2011 model MacBook Air to utilize Linux Mint.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: This setup will completely wipe your existing disk and create a fresh install of Linux Mint on the SSD. You have been warned.&lt;/p&gt;
+&lt;h2 id=&quot;the-specs&quot;&gt;The Specs&lt;/h2&gt;
+&lt;p&gt;My old MacBook Air has a pretty decent spec sheet:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Raspberry Pi 4&lt;/li&gt;
-&lt;li&gt;X857 V1.0 mSATA SSD Shield Expansion Board (I&amp;#8217;m using the X856)&lt;/li&gt;
-&lt;li&gt;128GB mSATA SSD&lt;/li&gt;
-&lt;li&gt;Acrylic Case with Heatsinks &amp;#38; Fan&lt;/li&gt;
-&lt;li&gt;Raspberry Pi Keyboard &amp;#38; Mouse&lt;/li&gt;
-&lt;li&gt;21.5&amp;#8221; Acer Monitor&lt;/li&gt;
+&lt;li&gt;Processor: &lt;strong&gt;1.7GHz dual-core Intel Core i5&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Memory: &lt;strong&gt;4GB of 1333MHz DDR3&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Graphics: &lt;strong&gt;Advanced Intel HD Graphics 3000&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;SSD: &lt;strong&gt;128 GB&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;The 32-bit version of Raspberry Pi OS (&amp;#8216;Debian Buster&amp;#8217; at the time of writing) is my OS of choice. Stable, reliable, and officially supported by the RPi community. It does the job.&lt;/p&gt;
-&lt;p&gt;The Pi has been overclocked to 2GHz in order to squeeze just a &lt;em&gt;little&lt;/em&gt; extra out of the hardware. This has caused zero issues.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m also booting directly from the mSATA SSD (via USB booting) instead of relying on a slower microSD card. You can find tons of tutorials online on how to do the same, but I would recommend this one: &lt;a href=&quot;https://www.tomshardware.com/how-to/boot-raspberry-pi-4-usb&quot;&gt;How to Boot Raspberry Pi 4 From a USB SSD or Flash Drive&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;After that, I simply installed my required apps &amp;#47; configs (where applicable):&lt;/p&gt;
+&lt;p&gt;And let&amp;#8217;s take a look at the basic system requirements Linux Mint suggests:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Chromium (&lt;em&gt;preinstalled&lt;/em&gt;)&lt;/li&gt;
-&lt;li&gt;Firefox ESR&lt;/li&gt;
-&lt;li&gt;Pale Moon&lt;/li&gt;
-&lt;li&gt;Code OSS&lt;/li&gt;
-&lt;li&gt;Terminal (&lt;em&gt;preinstalled&lt;/em&gt;)&lt;/li&gt;
-&lt;li&gt;Libre Office Suite&lt;/li&gt;
-&lt;li&gt;Evolution&lt;/li&gt;
-&lt;li&gt;Figma (Web - no install needed)&lt;/li&gt;
-&lt;li&gt;Apache2 &amp;#47; MySQL&lt;/li&gt;
-&lt;li&gt;Blueman (helpful GUI for bluetooth)&lt;/li&gt;
+&lt;li&gt;2GB RAM&lt;/li&gt;
+&lt;li&gt;Dual Core Processor&lt;/li&gt;
+&lt;li&gt;20GB free disk space&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;What my plain desktop looks like:&lt;/p&gt;
-&lt;p&gt;Using this build day-to-day, I can honestly say I don&amp;#8217;t hit any hiccups or lag at all. Multiple applications and WordPress instances are running in the background, while 10-15 tabs are open in the Chromium browser. The little Pi just chugs along without breaking a sweat.&lt;/p&gt;
-&lt;p&gt;My average CPU temperature sits around 51&amp;#176; (with heatsinks &amp;#38; fan active) while CPU usage never really cranks past 90% during even &amp;#8220;intensive&amp;#8221; processes.&lt;/p&gt;
-&lt;p&gt;Since &lt;em&gt;actual&lt;/em&gt; data speaks louder than anecdotal chit-chat, I performed a very simple read&amp;#47;write test on my mSATA SSD.&lt;/p&gt;
-&lt;p&gt;First, clear the cache to avoid conflicting data:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sync; echo 3 | sudo tee &amp;#47;proc&amp;#47;sys&amp;#47;vm&amp;#47;drop_caches
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;write&quot;&gt;Write&lt;/h3&gt;
-&lt;p&gt;Write script run:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;dd if=&amp;#47;dev&amp;#47;zero of=~&amp;#47;test.tmp bs=500K count=1024
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Write output:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;524288000 bytes (524 MB, 500 MiB) copied, 1.95478 s, 268 MB&amp;#47;s
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;read&quot;&gt;Read&lt;/h3&gt;
-&lt;p&gt;Read script:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;dd if=~&amp;#47;test.tmp of=&amp;#47;dev&amp;#47;null bs=500K count=1024
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Read output:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;524288000 bytes (524 MB, 500 MiB) copied, 0.770993 s, 680 MB&amp;#47;s
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This gives a total read&amp;#47;write value of: &lt;strong&gt;268 MB &amp;#47; 680 MB&lt;/strong&gt; per second. Compare that to average microSD card speeds floating around &lt;strong&gt;22 MB &amp;#47; 170MB&lt;/strong&gt; per second and you can see (and feel) the massive speed difference. Things are just snappier.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: Obviously extremely high-end (read: expensive) microSD cards &lt;em&gt;might&lt;/em&gt; hit read&amp;#47;write speeds similar to that of an SSD. The issue is that you are more likely to corrupt or reach end-of-life with a microSD card - hence why I don&amp;#8217;t recommend them.&lt;/p&gt;
-&lt;h2 id=&quot;final-thoughts&quot;&gt;Final Thoughts&lt;/h2&gt;
-&lt;p&gt;I love that I can use a fairly cheap Raspberry Pi 4 as my main, personal desktop. Of course, some people might roll their eyes at this build and say, &amp;#8220;why not just get a cheaper, more powerful laptop off eBay?&amp;#8221;. To that I would respond: &lt;em&gt;you&amp;#8217;re missing the point&lt;/em&gt;. &lt;/p&gt;
-&lt;p&gt;It was fun to put together this simple desktop. The fact that it runs fast and stable enough to be my daily driver is a great bonus. If this build interests you at all, I highly recommend giving it a go.&lt;/p&gt;</description>
- <link>https://btxx.org/my-pi-desktop</link>
- <guid isPermaLink="false">https://btxx.org/my-pi-desktop</guid>
- <pubDate>Wed, 02 Sep 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Using Multiple CSS Background Images</title>
- <description>&lt;h1 id=&quot;using-multiple-css-background-images&quot;&gt;Using Multiple CSS Background Images&lt;/h1&gt;
-&lt;p&gt;2018-09-28&lt;/p&gt;
-&lt;p&gt;It isn&amp;#8217;t something developers have a need to do very often, but you &lt;em&gt;can&lt;/em&gt; set multiple background images on a single element.&lt;/p&gt;
-&lt;p&gt;Example:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.element {
- background: url(&amp;#39;image_path&amp;#39;) center repeat, linear-gradient(transparent 0%, #000 100%) no-repeat;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;What can you do with this? It&amp;#8217;s only limited by your imagination, but I&amp;#8217;m personally a fan of always using as few elements as possible when working on a project.&lt;/p&gt;</description>
- <link>https://btxx.org/multiple-css-background-images</link>
- <guid isPermaLink="false">https://btxx.org/multiple-css-background-images</guid>
- <pubDate>Fri, 28 Sep 2018 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Why I Stopped Using an External Monitor</title>
- <description>&lt;h1 id=&quot;why-i-stopped-using-an-external-monitor&quot;&gt;Why I Stopped Using an External Monitor&lt;/h1&gt;
-&lt;p&gt;2023-03-03&lt;/p&gt;
-&lt;p&gt;For the longest time I&amp;#8217;ve been using a Samsung 27&amp;#8221; UHD monitor as my main display. This monitor was connected to my ThinkPad X260 (in clamshell mode) through the official Lenovo dock. It wasn&amp;#8217;t a bad setup, but I have since changed my ways.&lt;/p&gt;
-&lt;p&gt;Instead, I now &lt;em&gt;only&lt;/em&gt; use the X260&amp;#8217;s panel as my main display. Let me explain my reasoning&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;the-switch-to-suckless&quot;&gt;The Switch to Suckless&lt;/h2&gt;
-&lt;p&gt;Over the past year I switched away from a traditional desktop environment to a window manager - &lt;a href=&quot;https://dwm.suckless.org/&quot;&gt;dwm&lt;/a&gt; to be specific. This also involved changing most of my daily software programs to utilize the full suckless &amp;#8220;suite&amp;#8221;. In doing so, the shift away from floating windows and virtualized desktops happened quickly.&lt;/p&gt;
-&lt;p&gt;I continued to use my UHD monitor with this new environment but slowly started running into minor (yet still inconvenient) roadblocks:&lt;/p&gt;
+&lt;p&gt;We are looking pretty good!&lt;/p&gt;
+&lt;h2 id=&quot;step-1-download-linux-mint&quot;&gt;Step 1: Download Linux Mint&lt;/h2&gt;
+&lt;p&gt;For this setup we will be using the latest, stable version (at this time of writing) of Linux Mint 20 &amp;#8220;Ulyana&amp;#8221; - Xfce which is 20. You can download the necessary files here: &lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Tiled mode was not the most optimized for such a large monitor. I found myself defaulting into &amp;#8220;floating&amp;#8221; mode which defeats the purpose of a WM.&lt;/li&gt;
-&lt;li&gt;The screen was almost &lt;em&gt;too&lt;/em&gt; large - making content placed on the far edges of the screen difficult to view at a glance.&lt;/li&gt;
-&lt;li&gt;I stopped using tags, since I ended up piling applications on top of one another in a single view. Again - defeating the point of a WM.&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://www.linuxmint.com/edition.php?id=283&quot;&gt;Linux Mint 20 &amp;#8220;Ulyana&amp;#8221; - Xfce&lt;/a&gt; [1.8GB]&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;All of these issues were close to making me ditch the external monitor altogether, but it was my day-to-day job that struck the final blow&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;designing-for-everyday-users&quot;&gt;Designing for Everyday Users&lt;/h2&gt;
-&lt;p&gt;As a UX&amp;#47;UI front-end designer by trade, my job requires me to create and tweak interfaces that essentially go &lt;em&gt;unnoticed&lt;/em&gt; by the end-users. If you finish a task you sought out to complete without even thinking about &lt;em&gt;how&lt;/em&gt; you did it - then I succeeded at my job. The problem is, we designers and developers tend to forget the constraints a majority of our users experience. In this case - screen resolution.&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://www.browserstack.com/guide/ideal-screen-sizes-for-responsive-design&quot;&gt;A study performed by BrowserStack via statcounter (2022)&lt;/a&gt; shows the worldwide market share based on device type:&lt;/p&gt;
+&lt;h2 id=&quot;step-2-flash-linux-mint-to-usb-stick&quot;&gt;Step 2: Flash Linux Mint to USB Stick&lt;/h2&gt;
+&lt;p&gt;Next we just need to flash the Linux Mint OS to a USB storage device. If you need to purchase some, you can easily find them on Amazon (affliate link):&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;58.33% mobile&lt;/li&gt;
-&lt;li&gt;39.65% desktop&lt;/li&gt;
-&lt;li&gt;2.02% tablet&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://www.amazon.com/gp/product/B00JB3NXIS/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=B00JB3NXIS&amp;amp;linkCode=as2&amp;amp;tag=uglyduck-20&amp;amp;linkId=494f4c1dd4e21782ecb865bcaa5a526b&quot;&gt;Kootion 10 Pack 4GB Flash Drive 4gb USB 2.0 Flash Drives Keychain USB Drive Bulk Thumb Drive Swivel Memory Stick Black&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Download &lt;a href=&quot;https://www.balena.io/etcher/&quot;&gt;Balena Etcher&lt;/a&gt; for your current operating system&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Run the installer&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;The mobile aspect is certainly important, but we are focusing on the desktop data. Of that total the top two screen resolutions are:&lt;/p&gt;
+&lt;p&gt;Once installed, open Etcher do the following:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Select your downloaded Linux Mint ISO file&lt;/li&gt;
+&lt;li&gt;Select your USB stick&amp;#47;device as the media&lt;/li&gt;
+&lt;li&gt;Flash media&lt;/li&gt;
+&lt;li&gt;???&lt;/li&gt;
+&lt;li&gt;Profit!!&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;step-3-boot-from-usb&quot;&gt;Step 3: Boot from USB&lt;/h2&gt;
&lt;ul&gt;
-&lt;li&gt;1920×1080 (9.94%)&lt;/li&gt;
-&lt;li&gt;1366×768 (6.22%)&lt;/li&gt;
+&lt;li&gt;Make sure your Macbook Air is turned off&lt;/li&gt;
+&lt;li&gt;Plug your newly flashed USB stick into the MacBook Air&lt;/li&gt;
+&lt;li&gt;Turn on the MacBook Air&lt;/li&gt;
+&lt;li&gt;Immediately hold down the &lt;strong&gt;alt&amp;#47;option&lt;/strong&gt; button (keep holding until the prompt screen is visible)&lt;/li&gt;
+&lt;li&gt;You will be shown drive &amp;#8220;icons&amp;#8221; - you want to select your USB drive (normally the far right icon)&lt;/li&gt;
+&lt;li&gt;Press &lt;strong&gt;Enter&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Select the first item in the list that appears &amp;#8220;Start Linux Mint&amp;#8221;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;That is a fairly significant chunk of desktop users. Although almost 10% have access to screens set at &lt;code&gt;1920x1080&lt;/code&gt;, I found the amount of those stuck at &lt;code&gt;1366x768&lt;/code&gt; to be quite shocking. Here I was, developing large-set interfaces on an UHD 4K monitor while a large portion of my end-users would never benefit from those &amp;#8220;pixel-perfect&amp;#8221; designs. &lt;/p&gt;
-&lt;p&gt;Hell, some of these users were being shown the &lt;em&gt;tablet&lt;/em&gt;-based view of the applications since our breakpoints were so ridiculously large. Yikes.&lt;/p&gt;
-&lt;p&gt;So, I said screw it and retired the external monitor. Now my X260 is propped up and proudly showing off its 1366x768 display. It only took a day or so to adapt to this new setup and I don&amp;#8217;t think I could go back to another massive display.&lt;/p&gt;
-&lt;p&gt;Here are some benefits at a glance:&lt;/p&gt;
+&lt;p&gt;After this you will boot into a &amp;#8220;live session&amp;#8221; of the Linux Mint operating system.&lt;/p&gt;
+&lt;h2 id=&quot;step-4-installing-linux-mint&quot;&gt;Step 4: Installing Linux Mint&lt;/h2&gt;
+&lt;p&gt;Linux Mint makes it very easy for you to install it&amp;#8217;s OS step-by-step (similar to most other Linux distros). Simply &lt;strong&gt;double-click&lt;/strong&gt; on the &amp;#8220;Install Linux Mint&amp;#8221; CD icon on the main desktop.&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;I no longer have to worry about &amp;#8220;context switching&amp;#8221; if I decide to un-dock my laptop and work somewhere mobile. The desktop experience remains intact.&lt;/li&gt;
-&lt;li&gt;Working inside &lt;code&gt;dwm&lt;/code&gt; is a much cleaner experience. I mostly operate single applications within their own confined tag - with some exceptions of course.&lt;/li&gt;
-&lt;li&gt;I&amp;#8217;m able to instantly understand frustrations of everyday users while developing new features or tweaking existing UIs. Being able to advocate for our end-users by using legit use cases is extremely helpful. (Removes the &amp;#8220;design by gut-feeling&amp;#8221; mistakes)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;a-little-extreme&quot;&gt;A Little Extreme&lt;/h2&gt;
-&lt;p&gt;Yes, I am aware that I could simply keep the UHD monitor and perform my work within a constrained portion of the screen. The problem that remains is &amp;#8220;quality&amp;#8221;. Most 1366x768 panels are not even close to the level of hi-res found on most 4K monitors. By using such a display I would be cheating myself of the standard experience a good portion of my end-users endure. &lt;/p&gt;
-&lt;p&gt;I want to see the fuzzy text, slightly blurred imagery and muted button shadows. I want to see these things because that&amp;#8217;s how some &lt;em&gt;users&lt;/em&gt; will experience it.&lt;/p&gt;
-&lt;p&gt;Maybe that&amp;#8217;s extreme - but it works for me.&lt;/p&gt;</description>
- <link>https://btxx.org/monitor</link>
- <guid isPermaLink="false">https://btxx.org/monitor</guid>
- <pubDate>Fri, 03 Mar 2023 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Installing Older Versions of MongoDB on Arch Linux</title>
- <description>&lt;h1 id=&quot;installing-older-versions-of-mongodb-on-arch-linux&quot;&gt;Installing Older Versions of MongoDB on Arch Linux&lt;/h1&gt;
-&lt;p&gt;2023-09-11&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ve recently been using Arch Linux for my main work environment on my ThinkPad X260. It&amp;#8217;s been great. As someone who is constantly drawn to minimalist operating systems such as Alpine or OpenBSD, it&amp;#8217;s nice to use something like Arch that boasts that same minimalist approach but with greater documentation&amp;#47;support.&lt;/p&gt;
-&lt;p&gt;Another major reason for the switch was the need to run older versions of &amp;#8220;services&amp;#8221; locally. Most people would simply suggest using Docker or vmm, but I personally run projects in self-contained, personalized directories on my system itself. I am aware of the irony in that statement&amp;#8230; but that&amp;#8217;s just my personal preference.&lt;/p&gt;
-&lt;p&gt;So I thought I would share my process of setting up an older version of MongoDB (3.4 to be precise) on Arch Linux.&lt;/p&gt;
-&lt;h2 id=&quot;aur-to-the-rescue&quot;&gt;AUR to the Rescue&lt;/h2&gt;
-&lt;p&gt;You will need to target the specific version of MongoDB using the very awesome AUR packages:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;yay -S mongodb34-bin
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Follow the instructions and you&amp;#8217;ll be good to go. Don&amp;#8217;t forget to create the &lt;code&gt;&amp;#47;data&amp;#47;db&lt;/code&gt; directory and give it proper permissions:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;mkdir -p &amp;#47;data&amp;#47;db&amp;#47;
-chmod -R 777 &amp;#47;date&amp;#47;db
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;what-about-my-tools&quot;&gt;What About My &amp;#8220;Tools&amp;#8221;?&lt;/h2&gt;
-&lt;p&gt;If you plan to use MongoDB, then you most likely want to utilize the core database tools (restore, dump, etc). The problem is you can&amp;#8217;t use the default &lt;code&gt;mongodb-tools&lt;/code&gt; package when trying to work with older versions of MongoDB itself. The package will complain about conflicts and ask you to override your existing version. This is &lt;em&gt;not&lt;/em&gt; what we want.&lt;/p&gt;
-&lt;p&gt;So, you&amp;#8217;ll have to build from source locally:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;git clone https:&amp;#47;&amp;#47;github.com&amp;#47;mongodb&amp;#47;mongo-tools
-cd mongodb-tools
-.&amp;#47;make build
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then you&amp;#8217;ll need to copy the built executables into the proper directory in order to use them from the terminal:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;cp bin&amp;#47;* &amp;#47;usr&amp;#47;local&amp;#47;bin&amp;#47;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;And that&amp;#8217;s it! Now you can run &lt;code&gt;mongod&lt;/code&gt; directly or use &lt;code&gt;systemctl&lt;/code&gt; to enable it by default. Hopefully this helps anyone else curious about running older (or even outdated!) versions of MongoDB.&lt;/p&gt;</description>
- <link>https://btxx.org/mongodb-arch</link>
- <guid isPermaLink="false">https://btxx.org/mongodb-arch</guid>
- <pubDate>Mon, 11 Sep 2023 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Using a New Domain and Switching Static Hosts</title>
- <description>&lt;h1 id=&quot;using-a-new-domain-and-switching-static-hosts&quot;&gt;Using a New Domain and Switching Static Hosts&lt;/h1&gt;
-&lt;p&gt;2021-11-25&lt;/p&gt;
-&lt;p&gt;As you can most likely tell by looking at your browser&amp;#8217;s URL - I&amp;#8217;ve swapped over to a new domain for my personal website: &lt;a href=&quot;https://tdarb.org&quot;&gt;tdarb.org&lt;/a&gt;. I&amp;#8217;m a fickle person and this is a random change - but it is one I&amp;#8217;ve been planning to do for some time.&lt;/p&gt;
-&lt;p&gt;Let me give some minor background information and then get into the changes&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;what-about-ugly-duck&quot;&gt;What about Ugly Duck?&lt;/h2&gt;
-&lt;p&gt;I had originally used the &lt;a href=&quot;https://uglyduck.ca&quot;&gt;uglyduck.ca&lt;/a&gt; domain for this personal blog as a &lt;em&gt;loosely&lt;/em&gt; based reference to the &amp;#8220;ugly duckling&amp;#8221; story. This was based on the fact that I &lt;em&gt;mainly&lt;/em&gt; focus on CSS and making the web more visually appealing - or beautiful, if you will - so the comparison to an ugly duckling becoming a swan made sense in my oddball mind.&lt;/p&gt;
-&lt;p&gt;But overtime I came to somewhat dislike[^1] it and set out to change it.&lt;/p&gt;
-&lt;h2 id=&quot;so-what-the-heck-is-tdarb&quot;&gt;So what the heck is &amp;#8220;tdarb&amp;#8221;?&lt;/h2&gt;
-&lt;p&gt;I explain this on my updated &lt;a href=&quot;/about&quot;&gt;about page&lt;/a&gt; but I will mention it again here:&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;tdarb&lt;/strong&gt;[^2] is simply my first name and last initial spelt backwards – Brad T. Mind blowing, right?&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ve switched over to this naming convention to avoid having such a random &amp;#8220;phrase&amp;#8221; domain name while at the same time having a little more fun than just &lt;em&gt;mylegalname.com&lt;/em&gt;. I also am a sucker for &lt;code&gt;.org&lt;/code&gt; TLDs (although I don&amp;#8217;t know why).&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m sure some readers will prefer it, some will be indifferent and others will hate it. Either way, it&amp;#8217;s my personal site and I&amp;#8217;ll do as I please!&lt;/p&gt;
-&lt;h2 id=&quot;breaking-my-website-for-a-day-and-fixing-potential-link-rot&quot;&gt;Breaking My Website for a Day and Fixing Potential Link Rot&lt;/h2&gt;
-&lt;p&gt;The transition I made yesterday from &lt;a href=&quot;https://uglyduck.ca&quot;&gt;uglyduck.ca&lt;/a&gt; to &lt;a href=&quot;https://tdarb.org&quot;&gt;tdarb.org&lt;/a&gt; was &lt;em&gt;rough&lt;/em&gt;. I thought that I could simply launch the identical content on the new domain, test everything, and then simply set a URL redirect from the old domain through Namecheap[^3]. Oh boy, was I wrong!&lt;/p&gt;
-&lt;p&gt;The bulk of my evening was spent figuring out why the redirect wouldn&amp;#8217;t propagate across all networks and why multiple forwards were occurring. In the end, I just tossed &lt;a href=&quot;https://uglyduck.ca&quot;&gt;uglyduck.ca&lt;/a&gt; back up on Netlify and set global redirect rules in their handy-dandy &lt;code&gt;_redirects&lt;/code&gt; file. (I will write-up a small post about this soon to help others). After a few minutes everything was working perfectly fine and best of all - no broken links or potential link rot! All thanks to the &lt;code&gt;:splat&lt;/code&gt; parameter in the redirects.&lt;/p&gt;
-&lt;p&gt;As for my RSS feed, everything &lt;em&gt;should&lt;/em&gt; forward correctly? I state that as a question since I can&amp;#8217;t confirm this 100% and RSS feeds are not my expertise. If I broke this for any of you, I apologize. I will pray to the internet gods for your forgiveness&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;from-github-to-sourcehut&quot;&gt;From Github to Sourcehut&lt;/h2&gt;
-&lt;p&gt;That&amp;#8217;s right, I&amp;#8217;ve switched this static site&amp;#8217;s hosting over to &lt;a href=&quot;https://srht.site&quot;&gt;sourcehut pages&lt;/a&gt; and couldn&amp;#8217;t be happier. My reasons for switching:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;I&amp;#8217;m happy to pay and support the ongoing work at sourcehut (open source alternatives to Netlify, Github, etc. is important)&lt;/li&gt;
-&lt;li&gt;I&amp;#8217;ve been wanting to become more comfortable with the sourcehut ecosystem - there might be projects in the future I would like to help with on that platform and it helps if you know how to use it :P&lt;/li&gt;
-&lt;li&gt;Sourcehut pages are fast - I mean &lt;em&gt;really&lt;/em&gt; fast&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;It &lt;em&gt;was&lt;/em&gt; slightly confusing for my ape brain to figure out the setup, but I got there eventually. I plan to do a detailed step-by-step tutorial to help those like me who may find it a little daunting. It&amp;#8217;s well worth the minor effort.&lt;/p&gt;
-&lt;h2 id=&quot;the-lifespan-of-uglyduck.ca&quot;&gt;The Lifespan of uglyduck.ca&lt;/h2&gt;
-&lt;p&gt;I still have ownership of the old domain for almost another full year. I feel like that gives users enough time to adjust and become accustomed to the new one. My plan is to let the domain die entirely when it goes up for renewal but who knows - I might very well keep it going if the mood strikes me.&lt;/p&gt;
-&lt;h2 id=&quot;thats-all-folks&quot;&gt;That&amp;#8217;s All Folks!&lt;/h2&gt;
-&lt;p&gt;I don&amp;#8217;t have much else to report besides having made minor tweaks to this website design (yet again) and I have also finally added a picture of &lt;a href=&quot;/uses&quot;&gt;workstation on the &amp;#8220;Things I Use&amp;#8221; page&lt;/a&gt;. That&amp;#8217;s it.&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;not &lt;em&gt;hate&lt;/em&gt; - just discontent&lt;/li&gt;
-&lt;li&gt;pronounced tee-darb&lt;/li&gt;
-&lt;li&gt;Namecheap support were very helpful - this was more of a limitation of what their redirects can do&lt;/li&gt;
-&lt;/ol&gt;</description>
- <link>https://btxx.org/minor-website-changes</link>
- <guid isPermaLink="false">https://btxx.org/minor-website-changes</guid>
- <pubDate>Thu, 25 Nov 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Minimal CSS: Dropdown Menu</title>
- <description>&lt;h1 id=&quot;minimal-css-dropdown-menu&quot;&gt;Minimal CSS: Dropdown Menu&lt;/h1&gt;
-&lt;p&gt;2019-04-26&lt;/p&gt;
-&lt;p&gt;I love the idea of stripping away as much CSS as possible, while still maintaining the original UI concept. Let&amp;#8217;s build out a demo example with a simple menu dropdown element.&lt;/p&gt;
-&lt;p&gt;Interesting facts about our final CSS menu:&lt;/p&gt;
+&lt;li&gt;Choose your language. then hit &lt;strong&gt;Continue&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Select your preferred keyboard layout, then hit &lt;strong&gt;Continue&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;&lt;em&gt;Optional&lt;/em&gt;: You might be asked to connect to a WiFi network, if you are set it up now&lt;/li&gt;
+&lt;li&gt;I would suggest downloading the multimedia codecs to make things easier, then hit &lt;strong&gt;Continue&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;For installation type, select &amp;#8220;Erase disk and install Linux Mint&amp;#8221;, then hit &lt;strong&gt;Continue&lt;/strong&gt;
&lt;ul&gt;
-&lt;li&gt;Total weight 121 bytes minified! (not including any resets etc.)&lt;/li&gt;
-&lt;li&gt;No complex HTML structures&lt;/li&gt;
-&lt;li&gt;Accessibility support&lt;/li&gt;
+&lt;li&gt;WARNING: This will wipe your current drive completely - make sure you are okay with this!&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;It will issue you with a warning prompt, simply click &lt;strong&gt;Continue&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Select your timezone, then hit &lt;strong&gt;Continue&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Enter your name, a username, a name for your computer, and set a password (you will use this to login moving forward)&lt;/li&gt;
+&lt;li&gt;Wait for the installation to complete&lt;/li&gt;
+&lt;li&gt;Once complete, you will be prompted to &lt;strong&gt;reboot your system&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;After a reboot you will be prompted to remove the USB device and then press &lt;strong&gt;Enter&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Welcome to Linux Mint!&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Now to see the final code in all it&amp;#8217;s glory:&lt;/p&gt;
-&lt;h3 id=&quot;html&quot;&gt;HTML&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;nav&amp;#62;
- &amp;#60;ul&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Home&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;About&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Services&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;ul&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Design&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Development&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Custom Pizzas&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;&amp;#47;ul&amp;#62;
- &amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Contact&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;&amp;#47;ul&amp;#62;
-&amp;#60;&amp;#47;nav&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;css&quot;&gt;CSS&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* resets - optional *&amp;#47;
-ul { list-style: none; padding: 0; }
-ul li { display: inline-block; position: relative; }
-
-&amp;#47;* minimal dropdown CSS *&amp;#47;
-ul li &amp;#62; ul {
- left: -9999px;
- position: absolute;
- visibility: hidden;
-}
-ul li:hover &amp;#62; ul, ul li:focus-within &amp;#62; ul {
- left: 0;
- visibility: visible;
-}
+&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
+&lt;p&gt;Linux Mint is not only a great operating system, but it is also an excellent starting point for newcomers to Linux in general. It&amp;#8217;s stable enough to be used as a daily driver and popular enough that most minor issues can be solved with a quick internet search.&lt;/p&gt;
+&lt;p&gt;Hopefully this inspires others to try &amp;#8220;recycling&amp;#8221; their older Apple products instead of tossing them away or having them collect dust.&lt;/p&gt;</description>
+ <link>https://btxx.org/linux-mint-macbook-air</link>
+ <guid isPermaLink="false">https://btxx.org/linux-mint-macbook-air</guid>
+ <pubDate>Sun, 16 Aug 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Click to Load Website Images</title>
+ <description>&lt;h1 id=&quot;click-to-load-website-images&quot;&gt;Click to Load Website Images&lt;/h1&gt;
+&lt;p&gt;2021-03-25&lt;/p&gt;
+&lt;p&gt;In my previous post about &lt;a href=&quot;https://uglyduck.ca/#2021-03-22-89-posts-one-file&quot;&gt;switching my Jekyll blog over to PHPetite&lt;/a&gt;, I briefly mentioned how I only loaded in article images if the user &lt;em&gt;clicked or tapped&lt;/em&gt; the empty file element.&lt;/p&gt;
+&lt;p&gt;In this post, I&amp;#8217;m going to quickly breakdown the update I&amp;#8217;ve done to my blog&amp;#8217;s images since then and how you can easily implement the same thing in your own project.&lt;/p&gt;
+&lt;h2 id=&quot;update&quot;&gt;Update&lt;/h2&gt;
+&lt;p&gt;As pointed out by Gabriel &lt;a href=&quot;https://github.com/bradleytaunt/phpetite/issues/1&quot;&gt;in this Github issue&lt;/a&gt;, this concept breaks things slightly for RSS users. Since then, I have just set the default images on this blog to &lt;code&gt;display: none&lt;/code&gt; and render them as &lt;code&gt;block&lt;/code&gt; elements when their specific &lt;code&gt;section&lt;/code&gt; is loaded into the DOM visibly.&lt;/p&gt;
+&lt;p&gt;The example below is remaining the same as it was, to still provide context for this post.&lt;/p&gt;
+&lt;h2 id=&quot;live-demo&quot;&gt;Live Demo&lt;/h2&gt;
+&lt;p&gt;Before we jump head first into the details, let&amp;#8217;s take a look at what we will be creating:&lt;/p&gt;
+&lt;p&gt;Pretty neat, eh? Well let&amp;#8217;s get into the nitty gritty.&lt;/p&gt;
+&lt;h2 id=&quot;the-code&quot;&gt;The Code&lt;/h2&gt;
+&lt;p&gt;Personally, I place everything into a &lt;code&gt;figure&lt;/code&gt; element to keep things contained and clean - but this isn&amp;#8217;t required by any means. We then include our &lt;code&gt;img&lt;/code&gt; and &lt;code&gt;figcaption&lt;/code&gt; elements. That&amp;#8217;s it.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;figure&amp;#62;
+ &amp;#60;img src=&quot;&amp;#47;placeholder-image.webp&quot; onclick=&quot;this.src=&amp;#39;https:&amp;#47;&amp;#47;res.cloudinary.com&amp;#47;bradtaunt&amp;#47;image&amp;#47;fetch&amp;#47;q_auto:low&amp;#47;v1570124593&amp;#47;https:&amp;#47;&amp;#47;uglyduck.ca&amp;#47;public&amp;#47;images&amp;#47;aqua-ui-css-buttons.webp&amp;#39;&quot; alt=&quot;Aqua UI buttons&quot;&amp;#62;
+ &amp;#60;figcaption&amp;#62;&amp;#60;b&amp;#62;Click the placeholder to load in the real image&amp;#60;&amp;#47;b&amp;#62;&amp;#60;br&amp;#62;
+ Example Dribbble shot for testing. Feel free to click the default image in order to load the correct Dribbble source.
+ &amp;#60;a href=&quot;https:&amp;#47;&amp;#47;res.cloudinary.com&amp;#47;bradtaunt&amp;#47;image&amp;#47;fetch&amp;#47;q_auto:low&amp;#47;v1570124593&amp;#47;https:&amp;#47;&amp;#47;uglyduck.ca&amp;#47;public&amp;#47;images&amp;#47;aqua-ui-css-buttons.webp&quot;&amp;#62;View full size image&amp;#60;&amp;#47;a&amp;#62;.
+ &amp;#60;&amp;#47;figcaption&amp;#62;
+&amp;#60;&amp;#47;figure&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;live-demo-on-codepen&quot;&gt;Live demo on CodePen&lt;/h2&gt;
-&lt;p&gt;Feel free to check out the live demo on CodePen &lt;a href=&quot;https://codepen.io/bradleytaunt/pen/MRLevy&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;</description>
- <link>https://btxx.org/minimal-css-menu</link>
- <guid isPermaLink="false">https://btxx.org/minimal-css-menu</guid>
- <pubDate>Fri, 26 Apr 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Mini Interactive Keyboard with Pure CSS</title>
- <description>&lt;h1 id=&quot;mini-interactive-keyboard-with-pure-css&quot;&gt;Mini Interactive Keyboard with Pure CSS&lt;/h1&gt;
-&lt;p&gt;2020-05-13&lt;/p&gt;
-&lt;p&gt;Lately, I&amp;#8217;ve become obsessed with trying to see what I can create using only HTML and CSS (besides websites of course). Since playing with the concept of &lt;a href=&quot;https://uglyduck.ca/fake-3d-elements-with-css/&quot;&gt;faking 3D elements&lt;/a&gt;, I wanted to circle back around to an older CodePen I created: a mini, interactive undo keyboard.&lt;/p&gt;
-&lt;h2 id=&quot;see-it-in-action&quot;&gt;See it in action&lt;/h2&gt;
-&lt;p&gt;Below you can view a live demo of the mini keyboard itself. This demo is nothing special, but takes design inspiration from Apple&amp;#8217;s magic keyboards (if that wasn&amp;#8217;t already obvious).&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/undo-keyboard.png&quot; alt=&quot;Undo keyboard with two buttons to click&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/PadQMP&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;So now that we have seen what we plan to build, let&amp;#8217;s break down the process of creating this stupid, fun project!&lt;/p&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;The core skeleton of this project is very simple, since the keyboard consists of only 2 interactive buttons on top of a basic base element: &lt;/p&gt;
+&lt;h3 id=&quot;the-image-element&quot;&gt;The Image Element&lt;/h3&gt;
+&lt;p&gt;This is where the &lt;em&gt;magic&lt;/em&gt; happens. By default all images will target the default placeholder image: &lt;code&gt;placeholder-image.webp&lt;/code&gt;. This image is just 16KB in size and only needs to load in once.&lt;/p&gt;
+&lt;p&gt;Next we include an inline &lt;code&gt;onclick&lt;/code&gt; attribute, which targets the current image&amp;#8217;s &lt;code&gt;src&lt;/code&gt; attribute and changes it based on the URL provided. (Note: I use Cloudinary for my blog&amp;#8217;s image storage, but you could even host your images relative to your root directory if you wanted)&lt;/p&gt;
+&lt;p&gt;Now when a user clicks on the placeholder image, the inline &lt;code&gt;onclick&lt;/code&gt; pulls in the correct image in it&amp;#8217;s place.&lt;/p&gt;
+&lt;h3 id=&quot;disabled-javascript&quot;&gt;Disabled JavaScript&lt;/h3&gt;
+&lt;p&gt;For users who have JavaScript blocked or disabled we have a decent backup. By including a direct link to the image URL in the &lt;code&gt;figcaption&lt;/code&gt; element, we give the user the ability to still view the image in a separate browser tab.&lt;/p&gt;
+&lt;p&gt;You could get extra fancy and include some &lt;code&gt;noscript&lt;/code&gt; tags in your project that maybe render a different placeholder image mentioning they have JavaScript disabled etc, but for my needs that would be overkill.&lt;/p&gt;
+&lt;h2 id=&quot;cool---but-why-do-this&quot;&gt;Cool - But Why Do This?&lt;/h2&gt;
+&lt;p&gt;Bandwidth is a limited resource for a lot of users around the world. As designers and developers it&amp;#8217;s best to respect this fact and only load in elements as the user &lt;em&gt;requires&lt;/em&gt; them. Every little bit helps.&lt;/p&gt;</description>
+ <link>https://btxx.org/load-image-on-click</link>
+ <guid isPermaLink="false">https://btxx.org/load-image-on-click</guid>
+ <pubDate>Thu, 25 Mar 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Fixing LocalWP on Fedora 32</title>
+ <description>&lt;h1 id=&quot;fixing-localwp-on-fedora-32&quot;&gt;Fixing LocalWP on Fedora 32&lt;/h1&gt;
+&lt;p&gt;2020-05-06&lt;/p&gt;
+&lt;p&gt;I recently upgraded from Fedora 31 to 32 and everything went very smoothly - except for one application: &lt;strong&gt;LocalWP&lt;/strong&gt;. After the upgrade, all local WordPress builds would fail and complain about two missing packages:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;p&gt;Keyboard base&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Command button&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;&amp;#8216;Z&amp;#8217; letter button&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;libnettle6&lt;/li&gt;
+&lt;li&gt;libhogweed4&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;Here is where all the magic happens. Let&amp;#8217;s break these elements into their own sections, starting with the &lt;strong&gt;base styling&lt;/strong&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Custom typeface *&amp;#47;
-@import url(&quot;https:&amp;#47;&amp;#47;fonts.googleapis.com&amp;#47;css?family=Muli&quot;);
-
-&amp;#47;* Basic layout styling *&amp;#47;
-body {
-background: #d2dcff;
-margin: 80px 0 40px;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;We then tackle the basic &lt;strong&gt;keyboard base&lt;/strong&gt; element:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.base {
-background: linear-gradient(180deg, #eee 0%, #d8d8d8 100%);
-border-radius: 20px;
-box-shadow: inset 0 3px 5px rgba(255,255,255,0.3), inset 0 1px 3px rgba(255,255,255,0.5), 0 10px 0 #afafaf;
-display: flex;
-height: 310px;
-margin: 0 auto;
-position: relative;
-width: 620px;
-}
-
-&amp;#47;* This pseudo element is used for more realistic drop-shadows *&amp;#47;
-.base:after {
-bottom: 0;
-box-shadow: 0 10px 80px rgba(0,0,0,0.5);
-content: &amp;#39;&amp;#39;;
-height: 50px;
-left: 7.5%;
-position: absolute;
-width: 85%;
-z-index: -1;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next, we target all shared styles between the &lt;strong&gt;2 keyboard buttons&lt;/strong&gt; to avoid repeating ourselves later on:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.command, .z {
- -webkit-appearance: none;
- background: linear-gradient(180deg, #fff 0%, #f2f2f2 100%);
- border: 0;
- border-radius: 20px;
- box-shadow: inset 0 1px 3px rgba(255,255,255,0.5), 0 10px 0 #c9c9c9, 0 10px 6px rgba(0,0,0,0.3), 0 12px 8px rgba(0,0,0,0.5);
- cursor: pointer;
- display: inline-block;
- height: 260px;
- margin: 15px 0 0 20px;
- outline: 0;
- position: relative;
- width: 300px;
- z-index: 2;
-}
-
-.command span, .z span {
- font-family: &amp;#39;Muli&amp;#39;, &amp;#39;Helvetica&amp;#39;, sans-serif;
-}
-
-&amp;#47;* Styling when pressed *&amp;#47;
-.command:active, .z:active {
- box-shadow: inset 0 10px 10px rgba(0,0,0,0.2), inset 0 10px 30px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.6);
- margin: 25px 0 0 20px;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;All that remains is to add the custom styling for each independent button:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Custom Command styling *&amp;#47;
-.command svg {
- height: 60px;
- right: 15px;
- position: absolute;
- stroke: #9f9f9f;
- top: 15px;
- width: 60px;
-}
-.command span {
- bottom: 15px;
- color: #9f9f9f;
- font-size: 58px;
- left: 0;
- position: absolute;
- width: 100%;
-}
-
-&amp;#47;* Custom &quot;Z&quot; Letter styling *&amp;#47;
-.z {
- width: 260px;
-}
-.z span {
- color: #9f9f9f;
- font-size: 150px;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;taking-it-further&quot;&gt;Taking it further&lt;/h2&gt;
-&lt;p&gt;You could easily improve upon this concept by rendering an entire interactive keyboard, if you so desired. But this is maybe something I would tackle at a later date when I have a little more free time 😉 For now, a simple mini undo keyboard is fun enough to play with.&lt;/p&gt;</description>
- <link>https://btxx.org/mini-interactive-keyboard-with-pure-css</link>
- <guid isPermaLink="false">https://btxx.org/mini-interactive-keyboard-with-pure-css</guid>
- <pubDate>Wed, 13 May 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Menu Toggle with Pure CSS</title>
- <description>&lt;h1 id=&quot;menu-toggle-with-pure-css&quot;&gt;Menu Toggle with Pure CSS&lt;/h1&gt;
-&lt;p&gt;2020-10-19&lt;/p&gt;
-&lt;p&gt;When thinking through navigation designs for mobile devices sometimes the best option is to store away the content behind a toggle button. This button would then display the menu items upon interaction. Let me show you how to create such an element with only CSS - no need for JavaScript today!&lt;/p&gt;
-&lt;h2 id=&quot;before-we-begin&quot;&gt;Before we begin&lt;/h2&gt;
-&lt;p&gt;I would like to point out that the concept of &amp;#8220;toggling&amp;#8221; the main menu (even for mobile) is not always the best solution. If you&amp;#8217;re interested, you can take a look at a previous article I wrote explaining why: &lt;a href=&quot;/hamburger-menu-alternative.html&quot;&gt;Using Hamburger Menus? Try Sausage Links&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;Now that we have mentioned possible pitfalls of relying so heavily on toggle menus, let&amp;#8217;s build one!&lt;/p&gt;
-&lt;h2 id=&quot;our-final-product&quot;&gt;Our Final Product&lt;/h2&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/menu-toggle-css.png&quot; alt=&quot;Menu toggle made from pure CSS&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/mdEEvEX&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;To implement this design you really don&amp;#8217;t need much in terms of HTML:&lt;/p&gt;
+&lt;p&gt;After wasting far too much time rolling back to older LocalWP versions and reaching out into the community forums, I found a simply solution to the problem. You just need to download and install the following packages manually:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;p&gt;A single &lt;code&gt;checkbox&lt;/code&gt; input&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;A &lt;code&gt;label&lt;/code&gt; that corresponds to the &lt;code&gt;checkbox&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;A &lt;code&gt;nav&lt;/code&gt; element to house our unordered list items&lt;/p&gt;
-&lt;p&gt;Menu&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;libnettle6: &lt;a href=&quot;https://pkgs.org/download/libnettle6&quot;&gt;libnettle6-3.4.1-lp152.3.1.x86_64.rpm&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;libhogweed4: &lt;a href=&quot;https://pkgs.org/download/libhogweed4&quot;&gt;libhogweed4-3.4.1-lp152.3.1.x86_64.rpm&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;That&amp;#8217;s it!&lt;/p&gt;
-&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;The first thing we need to do is &amp;#8220;hide&amp;#8221; the &lt;code&gt;checkbox&lt;/code&gt; input element. It&amp;#8217;s important to avoid using &lt;code&gt;display: none&lt;/code&gt; or &lt;code&gt;visibility: hidden&lt;/code&gt; in order to achieve this. Those CSS properties can negatively impact accessibility (specifically screen readers). So we will be relying on the &lt;code&gt;position&lt;/code&gt;, &lt;code&gt;z-index&lt;/code&gt; and &lt;code&gt;opacity&lt;/code&gt; properties to help us out.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Set the input position to absolute, send it off screen with zero opacity *&amp;#47;
-input[type=&quot;checkbox&quot;] {
- left: -9999px;
- opacity: 0;
- position: absolute;
-}
+&lt;p&gt;Although these packages are built for OpenSuse, it still worked perfectly fine for me. My hope is that this quick post might be helpful for others who possibly run into the same issue.&lt;/p&gt;
+&lt;p&gt;For reference, here is the Local Community ticket I created: &lt;a href=&quot;https://localwp.com/community/t/local-not-working-fedora-32-workstation-edition/19219&quot;&gt;Local not working with Fedora 32&lt;/a&gt;&lt;/p&gt;</description>
+ <link>https://btxx.org/localwp-fedora</link>
+ <guid isPermaLink="false">https://btxx.org/localwp-fedora</guid>
+ <pubDate>Wed, 06 May 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Looping Through Jekyll Collections</title>
+ <description>&lt;h1 id=&quot;looping-through-jekyll-collections&quot;&gt;Looping Through Jekyll Collections&lt;/h1&gt;
+&lt;p&gt;2022-08-12&lt;/p&gt;
+&lt;p&gt;I recently needed to add a couple new items to my wife&amp;#8217;s personal recipe website (&lt;a href=&quot;https://cookingwith.casa&quot;&gt;cookingwith.casa&lt;/a&gt;) which I hadn&amp;#8217;t touched in quite a while. The Jekyll build still worked fine, but I realized I was statically adding each &lt;code&gt;collection&lt;/code&gt; by hand on the main homepage[^1].&lt;/p&gt;
+&lt;p&gt;Not so good.&lt;/p&gt;
+&lt;p&gt;Of course, this wasn&amp;#8217;t difficult at all to fix. Now everything is much more &amp;#8220;hands free&amp;#8221; moving forward. I figured I would share the details here in the hopes that others mind find it useful. Plus, it&amp;#8217;s my blog - so I&amp;#8217;ll do what I want!&lt;/p&gt;
+&lt;h2 id=&quot;looping-our-collections&quot;&gt;Looping Our Collections&lt;/h2&gt;
+&lt;p&gt;We want Jekyll to make things as streamlined as possible for us. This means that if I decide to add a new collection it will automatically render it along the others on the homepage.&lt;/p&gt;
+&lt;p&gt;Work smart not hard!&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s take a look at the bare-bones collections loop:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;{% for collection in site.collections %}
+ &amp;#60;!-- Our code goes here --&amp;#62;
+{% endfor %}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then we give our corresponding &lt;code&gt;label&lt;/code&gt; a minor face-lift to make it appear more button-like:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Minor visual styling to make the label more button-y *&amp;#47;
-label {
- border: 1px solid currentColor;
- border-radius: 4px;
- cursor: pointer;
- padding: 10px;
-}
+&lt;p&gt;Then we need to include an &lt;code&gt;if&lt;/code&gt; statement to avoid pulling in standard &lt;code&gt;post&lt;/code&gt; items (or leave this in if that is desired):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;{% for collection in site.collections %}
+ {% if collection.label != &amp;#39;posts&amp;#39; %}
+ {% endif %}
+{% endfor %}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;For our main &lt;code&gt;nav&lt;/code&gt; element, we want to set it&amp;#8217;s position to &lt;code&gt;absolute&lt;/code&gt; in order to avoid any janky page rendering issues that might occur when toggling the menu:&lt;/p&gt;
-&lt;p&gt;`
- &amp;#47;* Set nav to absolute (avoids odd page rendering space pop-in) *&amp;#47;
- nav {
- opacity: 0;
- position: absolute;
- z-index: -2;
- }&lt;/p&gt;
-&lt;p&gt;The last step is to actually &lt;em&gt;show&lt;/em&gt; the menu if the user toggles the &lt;code&gt;checkbox&lt;/code&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Show nav when checkbox is checked *&amp;#47;
-input[type=&quot;checkbox&quot;]:checked ~ nav {
- opacity: 1;
- z-index: 1;
-}
+&lt;p&gt;Now for my specific use case, we want to display each collection label and then list its corresponding items below that label (see the &lt;code&gt;site[collection.label]&lt;/code&gt; for reference)&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;{% for collection in site.collections %}
+ {% if collection.label != &amp;#39;posts&amp;#39; %}
+ &amp;#60;h2&amp;#62;{{ collection.label }}&amp;#60;&amp;#47;h2&amp;#62;
+ &amp;#60;ul class=&quot;recipe-list&quot;&amp;#62;
+ {% for item in site[collection.label] %}
+ &amp;#60;li&amp;#62;
+ &amp;#60;a href=&quot;{{ item.url }}&quot;&amp;#62;{{ item.title }}&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;&amp;#47;li&amp;#62;
+ {% endfor %}
+ &amp;#60;&amp;#47;ul&amp;#62;
+ &amp;#60;hr&amp;#62;
+ {% endif %}
+{% endfor %}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;It might not look like much, but you now have a fully functional menu toggle - &lt;strong&gt;made with pure CSS&lt;/strong&gt;! &lt;/p&gt;
-&lt;h2 id=&quot;with-great-power&quot;&gt;With Great Power&amp;#8230;&lt;/h2&gt;
-&lt;p&gt;Although this design is very simple to implement, please remember to use these types of menus wisely. Just because you &lt;em&gt;can&lt;/em&gt; do something, doesn&amp;#8217;t always mean you &lt;em&gt;should&lt;/em&gt;.&lt;/p&gt;</description>
- <link>https://btxx.org/menu-toggle-css</link>
- <guid isPermaLink="false">https://btxx.org/menu-toggle-css</guid>
- <pubDate>Mon, 19 Oct 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Replacing My Eero Mesh Network with Two Mangos</title>
- <description>&lt;h1 id=&quot;replacing-my-eero-mesh-network-with-two-mangos&quot;&gt;Replacing My Eero Mesh Network with Two Mangos&lt;/h1&gt;
-&lt;p&gt;2023-03-09&lt;/p&gt;
-&lt;p&gt;It has been one week since I retired my Eero mesh network setup and replaced it with two &lt;a href=&quot;https://www.gl-inet.com/products/gl-mt300n-v2/&quot;&gt;Mango Mini Travel Routers (GL-MT300N-V2)&lt;/a&gt;. There were some obvious reasons to make this switch but I was initially unsure how the overall performance on the Mangos would hold up compared to the &amp;#8220;cutting edge&amp;#8221; tech that Eero devices claim to have.&lt;/p&gt;
-&lt;p&gt;Spoiler (in case the post title didn&amp;#8217;t give it away): I was pleasantly surprised.&lt;/p&gt;
-&lt;h2 id=&quot;goodbye-amazon&quot;&gt;Goodbye Amazon&lt;/h2&gt;
-&lt;p&gt;I was a big supporter of the original &amp;#8220;kickstarter&amp;#8221; project when Eero first launched. I pre-ordered and they even sent me a device free-of-charge since there were logistic problems shipping to Canada. I received my V1 routers, hooked them up and enjoyed a seamless, wifi mesh system. Everything was going great.&lt;/p&gt;
-&lt;p&gt;Then, in 2019 &lt;a href=&quot;https://mashable.com/article/amazon-acquires-eero&quot;&gt;they were acquired by Amazon&lt;/a&gt;. Sigh&amp;#8230;&lt;/p&gt;
-&lt;p&gt;I should have jumped ship then, but I waited to see what would happen. After all, my internet was still working perfectly fine. Then the half-baked and sometimes completely broken updates started rolling out. On more than one occasion they needed to perform complete version roll-backs. This sometimes knocked out my internet for hours at a time.&lt;/p&gt;
-&lt;p&gt;They also started pushing (although not outright requiring) users to login using their Amazon account. While not a massive deal breaker, the constant pestering to do so rubbed me the wrong way. &lt;/p&gt;
-&lt;p&gt;During this time, my first son was born and we moved out of the city into our first house. So fiddling with my internet setup took the backseat for a while. Once everything settled down, I started seeing more broken updates and certain features being put behind their premium &amp;#8220;Eero Secure&amp;#8221; platform. Features that were available as &lt;em&gt;default&lt;/em&gt; for most other router hardware providers.&lt;/p&gt;
-&lt;p&gt;So, I started to look at other options.&lt;/p&gt;
-&lt;h2 id=&quot;why-the-mango&quot;&gt;Why the Mango?&lt;/h2&gt;
-&lt;p&gt;It is important to mention, that because I live out in rural Canada, my internet options are extremely limited. All providers are satellite-based since fiber cables are unheard of out in these areas. Because of this, my main internet speeds are limited to 25Mbps &lt;em&gt;baseline&lt;/em&gt;. This is important to note, since my experience and router choice took this into consideration. If you&amp;#8217;re a current Eero user with 300Mbps+ speeds and are looking to switch wifi systems - the Mango is probably not the best for you.&lt;/p&gt;
-&lt;p&gt;Luckily for me, the Mini Mangos were perfect for my basic requirements:&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it! Now if I plan to add any new collections down the line, I just need to include it in the &lt;code&gt;_config.yml&lt;/code&gt; file and I&amp;#8217;m set. The homepage will take care of the rest once rendered.&lt;/p&gt;
+&lt;p&gt;Enjoy looping through your Jekyll collections!&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;Just the sections were statically rendered. All the recipes were pulled in dynamically - I&amp;#8217;m not that insane!&lt;/li&gt;
+&lt;/ol&gt;</description>
+ <link>https://btxx.org/loop</link>
+ <guid isPermaLink="false">https://btxx.org/loop</guid>
+ <pubDate>Fri, 12 Aug 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>My Robotic Mower Woes</title>
+ <description>&lt;h1 id=&quot;my-robotic-mower-woes&quot;&gt;My Robotic Mower Woes&lt;/h1&gt;
+&lt;p&gt;2023-05-19&lt;/p&gt;
+&lt;h2 id=&quot;a-brief-background&quot;&gt;A Brief Background&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;m no stranger to robotic lawnmowers. When my wife and I moved into our rural home just over five years ago, we picked up the Husqvarna 450X Automower since I was far too lazy to manually mow my property and the cost was equal to that of a standard riding mower. It was a no-brainer.&lt;/p&gt;
+&lt;p&gt;Fast-forward five years. Everything is still going great with the Automower. Some minor repairs were needed but that was mostly my fault since I was allowing the mower into places it shouldn&amp;#8217;t have been (ie. root systems and dirt &amp;#8220;craters&amp;#8221;). Then lightning struck our backyard at the beginning of April this year. The mower was fine, since we stow it away inside for the winter but the charging station, charging brick and perimeter wire we &lt;em&gt;not&lt;/em&gt; so lucky&amp;#8230;&lt;/p&gt;
+&lt;p&gt;The lightning traveled along the main perimeter wire and went straight to the charging station. Boom. The charging dock was quite literally blown up into a million tiny pieces and scattered across my backyard. Giant trenches were carved up where the perimeter wire had been embedded in the lawn. This surge also followed the path towards the main power adapter and exploded that as well. All of this happened even with the charging station &amp;#47; adapter &lt;em&gt;turned off and unplugged from any outlet&lt;/em&gt;. At least my mower was safe&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;shopping-for-automower-parts&quot;&gt;Shopping for Automower Parts&lt;/h2&gt;
+&lt;p&gt;I realized I was going to have to buy another charging station, power adapter and also pay for a dealer to re-install the perimeter wire. This idea didn&amp;#8217;t thrill me but at least all-in the expense wouldn&amp;#8217;t be that high. Or so I thought&amp;#8230;&lt;/p&gt;
+&lt;p&gt;I contacted my local dealer and he quoted me directly from the Husqvarna supplier:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Max. 300Mbps Wi-Fi Speed (more than enough for my use-case)&lt;/li&gt;
-&lt;li&gt;Running open-source software via &lt;a href=&quot;https://openwrt.org/&quot;&gt;openwrt&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Hardware VPN toggle&lt;/li&gt;
-&lt;li&gt;Tiny physical footprint&lt;/li&gt;
-&lt;li&gt;Extremely portable&lt;/li&gt;
+&lt;li&gt;Charging base station: $749 CDN&lt;/li&gt;
+&lt;li&gt;Power adapter: $599 CDN&lt;/li&gt;
+&lt;li&gt;Perimeter wire install: ~$550 CDN&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;setting-up-the-yellow-squares&quot;&gt;Setting Up the Yellow Squares&lt;/h2&gt;
-&lt;p&gt;Setup was a breeze compared to the Eero experience (which could only be performed through their mobile app via bluetooth and a great deal of repositioning the devices). The full process is essentially:&lt;/p&gt;
+&lt;p&gt;I thought the cost for both the charging station and the wire install seemed about right - but &lt;strong&gt;$599&lt;/strong&gt; for a power adapter?! Are you kidding me? Best of all, these parts were on &lt;em&gt;back-order&lt;/em&gt;. So even if I shelled out the ridiculous asking price, it was anyone&amp;#8217;s guess when I would get them. May was fast approaching and I would need to start cutting my property soon. I started to look at other options.&lt;/p&gt;
+&lt;h2 id=&quot;husqvarna-epos-mowers&quot;&gt;Husqvarna EPOS Mowers&lt;/h2&gt;
+&lt;p&gt;Husqvarna recently launched their &amp;#8220;perimeter-free&amp;#8221; automowers for the general public (originally designed only for &amp;#8220;fleet&amp;#8221; enterprise use). These units use GPS and RTK position to map the desired cutting area of a property. Already my interest was piqued. Moving away from a perimeter wire seemed like a significant upgrade. It would also make my wife happy by allow her to garden freely, without worrying about severing an embedded lawn wire.&lt;/p&gt;
+&lt;p&gt;So I contacted my local dealer again about these specific units. I came away with some interesting information:&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;Power up the first Mango&lt;/li&gt;
-&lt;li&gt;Connect laptop to the Mango via ethernet (you can also connect through wifi)&lt;/li&gt;
-&lt;li&gt;Follow the login instructions&lt;/li&gt;
-&lt;li&gt;Change SSID name, set device in router mode&lt;/li&gt;
-&lt;li&gt;Enjoy your internet!&lt;/li&gt;
+&lt;li&gt;They were quite expensive for my taste ($5000+ CDN - before install!)&lt;/li&gt;
+&lt;li&gt;They were &lt;em&gt;also&lt;/em&gt; on back-order here in Canada&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;Since my office is fairly far away from the placement of the &amp;#8220;main&amp;#8221; Mango router, I placed the second device near my desk. I followed the same setup as above, except I set the mode as &amp;#8220;repeater&amp;#8221;.&lt;/p&gt;
-&lt;p&gt;For my use case I actually set this device up with a separate SSID. This was just my personal preference. You don&amp;#8217;t have to do this. If you give both devices the same SSID name most modern devices will treat your network as if it &lt;em&gt;was&lt;/em&gt; a mesh network. Pretty neat stuff.&lt;/p&gt;
-&lt;p&gt;I plan to eventually add my Pi Zero running AdGuard Home back into the mix, but for now I just installed a small adblock package directly onto the router:&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;Sigh&lt;/em&gt;. The mower gods were trying to tell me something. It seemed Husqvarna was just not meant for me anymore.&lt;/p&gt;
+&lt;h2 id=&quot;luba-to-the-rescue&quot;&gt;Luba to the Rescue!&lt;/h2&gt;
+&lt;p&gt;While researching &amp;#8220;wireless&amp;#8221; automowers, I came across the &lt;a href=&quot;https://mammotion.com/?ref=bpjfzw7s&quot;&gt;Luba Series 5000&lt;/a&gt; (referral link) and kept it in my &amp;#8220;maybe&amp;#8221; pile to follow-up on if needed. So follow-up I did.&lt;/p&gt;
+&lt;p&gt;This mower seemed to check all my boxes:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://github.com/openwrt/packages/tree/master/net/adblock&quot;&gt;adblock package&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Decently priced&lt;/li&gt;
+&lt;li&gt;2-year warranty&lt;/li&gt;
+&lt;li&gt;All wheel drive&lt;/li&gt;
+&lt;li&gt;I could set it up myself&lt;/li&gt;
+&lt;li&gt;No perimeter wires&lt;/li&gt;
+&lt;li&gt;No-go zones available&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;performance-comparisons&quot;&gt;Performance Comparisons&lt;/h2&gt;
-&lt;p&gt;Everything below is just some basic testing I performed. Obviously it should be noted that your experience might be entirely different based on interference, building size, amount of devices connected, etc.&lt;/p&gt;
-&lt;p&gt;Stats for my original Eero mesh setup:&lt;/p&gt;
+&lt;p&gt;It did have a few minor cons associated with it:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;1 eero 6 pro, 1 eero 6+, 1 eero beacon&lt;/li&gt;
-&lt;li&gt;Average internet testing speed: 25Mbps&lt;/li&gt;
-&lt;li&gt;Consistent signal throughout the house&lt;/li&gt;
+&lt;li&gt;Fairly new product &amp;#47; company&lt;/li&gt;
+&lt;li&gt;No close dealer in my area&lt;/li&gt;
+&lt;li&gt;iOS and Android apps are more or less &amp;#8220;beta&amp;#8221;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Stats for the new Mini Mango setup:&lt;/p&gt;
+&lt;p&gt;Next, I watched a few early reviews and went through some comments&amp;#47;feedback from beta users. I was convinced enough and bought the AWD 5000 model.&lt;/p&gt;
+&lt;h2 id=&quot;arrival-and-setup&quot;&gt;Arrival and Setup&lt;/h2&gt;
+&lt;p&gt;The mower (who we named Lawna, and shall be referred to as such moving forward) arrived just after the first week of May. The hardware setup (charging station and RTK antenna) was very straight-forward, so I won&amp;#8217;t go into great detail about that here. Once Lawna was synced with the RTK and GPS system, it was time to map my property.&lt;/p&gt;
+&lt;p&gt;I broke my property into 4 main &amp;#8220;tasks&amp;#8221; as the app calls them. The 5000 model allows you to create up to 10, but for my needs 4 was fine for full coverage. I mapped each one, added a handful of no-go zones to each and told Lawna to get to work. She happily obliged.&lt;/p&gt;
+&lt;h2 id=&quot;the-first-week&quot;&gt;The First Week&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve had (almost) zero issues with Lawna after a week and a half of running her daily. She alternates from the front to the back of the property every other day. The app allows you to setup automatic scheduling, but I prefer to run things manually every morning, based on whether an area should be skipped, grass it dried out etc.&lt;/p&gt;
+&lt;p&gt;The only minor problem I have run into is the need to manually clean grass build-up from under the small cutting blades after Lawna cuts a couple &amp;#8220;task&amp;#8221; areas. I swapped the default blades to use Husqvarna&amp;#8217;s &lt;em&gt;endurance&lt;/em&gt; type, since they use a large slotted insert hole as opposed to Mammotion&amp;#8217;s two single insert holes. This change makes cleaning the blades faster, safer, and easier to maintain. I realize that a riding mower would require similar maintenance but a truly &lt;em&gt;autonomous&lt;/em&gt; device shouldn&amp;#8217;t require human intervention.&lt;/p&gt;
+&lt;h2 id=&quot;moving-forward&quot;&gt;Moving Forward&lt;/h2&gt;
+&lt;p&gt;My hope is that the software continues to improve over time and that the core hardware lasts as long as my 450X did. Which now reminds me - I need to sell that thing&amp;#8230;&lt;/p&gt;
+&lt;p&gt;Hopefully this post helps others looking to snag their own robotic mower. So far, I can safely recommend Luba.&lt;/p&gt;</description>
+ <link>https://btxx.org/luba</link>
+ <guid isPermaLink="false">https://btxx.org/luba</guid>
+ <pubDate>Fri, 19 May 2023 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Convert Files to HTML with macOS Automator Quick Actions</title>
+ <description>&lt;h1 id=&quot;convert-files-to-html-with-macos-automator-quick-actions&quot;&gt;Convert Files to HTML with macOS Automator Quick Actions&lt;/h1&gt;
+&lt;p&gt;2022-01-28&lt;/p&gt;
+&lt;p&gt;Since a few people have reached out and thanked me for my previous post &lt;a href=&quot;/batch-webp-conversion&quot;&gt;Batch Converting Images to webp with macOS Automator&lt;/a&gt;, I thought I would continue to share more of my own custom Automator Quick Actions. Today&amp;#8217;s post will cover the ability to convert &lt;em&gt;any&lt;/em&gt; text-based document into pure HTML.&lt;/p&gt;
+&lt;p&gt;I know - there are over 6 billion conversion apps that do this very same thing. But our way of doing it is &lt;em&gt;cooler&lt;/em&gt;. Our conversion tool:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;2 mini mangos (one in router mode, the other set as repeater)&lt;/li&gt;
-&lt;li&gt;Average internet testing speed: 25Mbps&lt;/li&gt;
-&lt;li&gt;Consistent signal throughout the house&lt;/li&gt;
+&lt;li&gt;Will run directly inside macOS Finder (right-click actions FTW)&lt;/li&gt;
+&lt;li&gt;Can batch convert multiple files at once&lt;/li&gt;
+&lt;li&gt;Can convert mixed files types at the same time&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;extras&quot;&gt;Extras&lt;/h2&gt;
-&lt;p&gt;Some additional data comparisons for those interested. Prices shown are in Canadian dollars.&lt;/p&gt;
-&lt;table&gt;
-&lt;thead&gt;
-&lt;tr&gt;
-&lt;th&gt;&lt;/th&gt;
-&lt;th&gt;Eero&lt;/th&gt;
-&lt;th&gt;Mango&lt;/th&gt;
-&lt;/tr&gt;
-&lt;/thead&gt;
-&lt;tbody&gt;
-&lt;tr&gt;
-&lt;td&gt;&lt;strong&gt;Power&lt;/strong&gt;&lt;/td&gt;
-&lt;td&gt;5W&lt;/td&gt;
-&lt;td&gt;2.75W&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;&lt;strong&gt;Size&lt;/strong&gt; (mm)&lt;/td&gt;
-&lt;td&gt;139x139x55&lt;/td&gt;
-&lt;td&gt;58x58x22&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;&lt;strong&gt;Bands&lt;/strong&gt; (GHz)&lt;/td&gt;
-&lt;td&gt;2.4&amp;#47;5&lt;/td&gt;
-&lt;td&gt;2.4&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;&lt;strong&gt;Cost&lt;/strong&gt; (per unit)&lt;/td&gt;
-&lt;td&gt;$99+&lt;/td&gt;
-&lt;td&gt;$39&lt;/td&gt;
-&lt;/tr&gt;
-&lt;/tbody&gt;
-&lt;/table&gt;
-&lt;p&gt;That mostly covers it. I&amp;#8217;m extremely happy with my switch away from the locked-down, &amp;#8220;upsell&amp;#8221; heavy Eeros. My only regret is that I didn&amp;#8217;t make this change sooner.&lt;/p&gt;</description>
- <link>https://btxx.org/mango</link>
- <guid isPermaLink="false">https://btxx.org/mango</guid>
- <pubDate>Thu, 09 Mar 2023 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Working with `git` Patches in Apple Mail</title>
- <description>&lt;h1 id=&quot;working-with-patches-in-apple-mail&quot;&gt;Working with &lt;code&gt;git&lt;/code&gt; Patches in Apple Mail&lt;/h1&gt;
-&lt;p&gt;2023-05-11&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;&lt;strong&gt;Before we begin&lt;/strong&gt;: You could likely automate this process in a more streamlined way, but for most use cases this workflow should be fine.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;I recently covered how to &lt;a href=&quot;/git-patches&quot;&gt;work with git email patches in Evolution on Linux&lt;/a&gt;, so I thought it would make sense to walk through a similar workflow for those using Apple Mail on MacOS. The idea is essentially the same, with just a little extra work involved.&lt;/p&gt;
-&lt;h2 id=&quot;create-a-patches-mailbox&quot;&gt;Create a &amp;#8220;Patches&amp;#8221; Mailbox&lt;/h2&gt;
-&lt;p&gt;The first thing you&amp;#8217;ll need to do is make a new &lt;code&gt;Patches&lt;/code&gt; mailbox folder inside your existing mail account. Once done, your default Mail sidebar should look similar to the following:&lt;/p&gt;
-&lt;h2 id=&quot;applying-patches&quot;&gt;Applying Patches&lt;/h2&gt;
-&lt;p&gt;Now navigate to the email message containing a &lt;code&gt;git&lt;/code&gt; patch. Right-click and select &lt;em&gt;Move to&lt;/em&gt; &amp;#62; &lt;em&gt;Patches&lt;/em&gt;. Now in the sidebar, right-click your &lt;em&gt;Patches&lt;/em&gt; folder and select &lt;em&gt;Export Mailbox&amp;#8230;&lt;/em&gt;. You&amp;#8217;ll be prompted to save this folder locally. I suggest having a top-level folder named &lt;strong&gt;Patches&lt;/strong&gt; to make things consistent.&lt;/p&gt;
-&lt;p&gt;Inside this folder you should see something similar to the following structure:&lt;/p&gt;
-&lt;p&gt;Once saved, open your terminal, navigate to the project you wish to apply this new patch to:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;cd my-path&amp;#47;very-cool-project
+&lt;p&gt;And it can do all of this for free on your existing macOS system. No apps required. So, enough chit-chat, let&amp;#8217;s get started!&lt;/p&gt;
+&lt;h2 id=&quot;the-dependencies&quot;&gt;The Dependencies&lt;/h2&gt;
+&lt;p&gt;Unfortunately, setting things up isn&amp;#8217;t as simple as clicking a single &lt;code&gt;Install&lt;/code&gt; button and calling it a day. But don&amp;#8217;t start to panic! I assure you everything we&amp;#8217;ll be doing is actually quite easy to breeze through - &lt;em&gt;trust me&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;Our main requirements will consistent of the following:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;Homebrew&lt;/li&gt;
+&lt;li&gt;Pandoc&lt;/li&gt;
+&lt;li&gt;Ability to open Terminal&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;installing-homebrew&quot;&gt;Installing Homebrew&lt;/h2&gt;
+&lt;p&gt;Homebrew is a simple package manager for macOS. The beauty of having Homebrew is the flexibility in the future for installing other custom packages. Overall it&amp;#8217;s just a nice piece of software to have on your machine.&lt;/p&gt;
+&lt;p&gt;If you have already installed Homebrew in the past, ignore this step and continue down the page. If not, simply open your Terminal and run:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;bin&amp;#47;bash -c &quot;$(curl -fsSL https:&amp;#47;&amp;#47;raw.githubusercontent.com&amp;#47;Homebrew&amp;#47;install&amp;#47;HEAD&amp;#47;install.sh)&quot;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;and then run:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;git apply ~&amp;#47;Patches&amp;#47;&amp;#60;saved-patches-mailbox-folder&amp;#62;&amp;#47;mbox
+&lt;p&gt;Let that finish and you&amp;#8217;re done! Also feel free to read more about Homebrew on the &lt;a href=&quot;https://brew.sh&quot;&gt;official website&lt;/a&gt;. Knowledge is power!&lt;/p&gt;
+&lt;h2 id=&quot;installing-pandoc&quot;&gt;Installing Pandoc&lt;/h2&gt;
+&lt;p&gt;The package that is going to be doing all the heavy-lifting for us is &lt;a href=&quot;https://pandoc.org&quot;&gt;pandoc&lt;/a&gt;. Because we have Homebrew on our machine now, installing this package is as simple as opening our Terminal again and running:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;brew install pandoc
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Congrats! You&amp;#8217;ve successfully applied a git email patch through Apple Mail! Well, kind of. The terminal did most of the &lt;em&gt;real&lt;/em&gt; work. Just be sure to periodically &lt;em&gt;purge&lt;/em&gt; your local &lt;em&gt;Patches&lt;/em&gt; folder to keep things clean!&lt;/p&gt;</description>
- <link>https://btxx.org/mail</link>
- <guid isPermaLink="false">https://btxx.org/mail</guid>
- <pubDate>Thu, 11 May 2023 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Create a Mac App Icon with Pure HTML and CSS</title>
- <description>&lt;h1 id=&quot;create-a-mac-app-icon-with-pure-html-and-css&quot;&gt;Create a Mac App Icon with Pure HTML and CSS&lt;/h1&gt;
+&lt;p&gt;Wait for everything to finish and you&amp;#8217;re done!&lt;/p&gt;
+&lt;h2 id=&quot;our-custom-automator-quick-action&quot;&gt;Our Custom Automator Quick Action&lt;/h2&gt;
+&lt;p&gt;Next you&amp;#8217;ll want to open the macOS Automator app and create a new &amp;#8220;Quick Action&amp;#8221; when given the prompt to do so.&lt;/p&gt;
+&lt;p&gt;Now do the following (reference the image further below to make sure your parameters match):&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Set &amp;#8220;Workflow receives current&amp;#8221; to documents in any application&lt;/li&gt;
+&lt;li&gt;In the search bar type in &amp;#8220;Run Shell Script&amp;#8221;&lt;/li&gt;
+&lt;li&gt;Drag-and-drop the &amp;#8220;Run Shell Script&amp;#8221; from the left pane into the right pane&lt;/li&gt;
+&lt;li&gt;Set the &amp;#8220;Shell&amp;#8221; parameter to &amp;#47;bin&amp;#47;bash&lt;/li&gt;
+&lt;li&gt;Set &amp;#8220;Pass input&amp;#8221; as as arguments&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;Once all that is done, simply paste the following in the open text field within the &amp;#8220;Run Shell Script&amp;#8221; item:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;for f in &quot;$@&quot;
+do
+&amp;#47;opt&amp;#47;homebrew&amp;#47;bin&amp;#47;pandoc -o &quot;${f%.*}.html&quot; &quot;$f&quot;
+done
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;If you&amp;#8217;ve done everything correctly it should look something like this:&lt;/p&gt;
+&lt;p&gt;Save this new Quick Action (Name is something like &amp;#8220;Convert to HTML&amp;#8221; to keep things simple). That&amp;#8217;s it! Amazing, right?&lt;/p&gt;
+&lt;h2 id=&quot;time-to-convert&quot;&gt;Time to Convert&lt;/h2&gt;
+&lt;p&gt;Now it is finally time to see our Quick Action is &lt;em&gt;action&lt;/em&gt;! Navigate to any document file in a Finder window and follow along.&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;First, right-click on the file you wish to convert. (&lt;a href=&quot;#fig-1&quot;&gt;Figure 1&lt;/a&gt;)&lt;/li&gt;
+&lt;li&gt;In the pop-up container, scroll down and hover over &lt;code&gt;Quick Actions&lt;/code&gt;.&lt;/li&gt;
+&lt;li&gt;A secondary pop-out will appear. Look for the action &lt;code&gt;Convert File to HTML&lt;/code&gt; and click it. (&lt;a href=&quot;#fig-2&quot;&gt;Figure 2&lt;/a&gt;)&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;If everything was set up properly (and depending on the size of the file) you should see your converted HTML file show up right next to your existing document. Time to celebrate!&lt;/p&gt;
+&lt;p&gt;Don&amp;#8217;t forget - you can also &lt;em&gt;batch&lt;/em&gt; convert multiple files and multiple file &lt;em&gt;types&lt;/em&gt; at once. The possibilities are endless!&lt;/p&gt;
+&lt;h2 id=&quot;no-limits&quot;&gt;No Limits&lt;/h2&gt;
+&lt;p&gt;Although this article has mainly focused on converting documents to HTML, &lt;code&gt;pandoc&lt;/code&gt; is so powerful you could do any number of conversions. Re-using these steps above, you have the ability to make as many different conversion quick actions as your heart desires!&lt;/p&gt;
+&lt;p&gt;Have fun converting!&lt;/p&gt;</description>
+ <link>https://btxx.org/macos-convert-to-html</link>
+ <guid isPermaLink="false">https://btxx.org/macos-convert-to-html</guid>
+ <pubDate>Fri, 28 Jan 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Create a Mac App Icon with Pure HTML and CSS</title>
+ <description>&lt;h1 id=&quot;create-a-mac-app-icon-with-pure-html-and-css&quot;&gt;Create a Mac App Icon with Pure HTML and CSS&lt;/h1&gt;
&lt;p&gt;2021-04-13&lt;/p&gt;
&lt;p&gt;I have always been a huge fan of &lt;a href=&quot;https://dribbble.com/bg-d&quot;&gt;Bogdan&amp;#8217;s work on Dribbble&lt;/a&gt; and was recently inspired to see if I could replicate one of his awesome icon designs with only HTML &amp;#38; CSS. What was the outcome? I think it&amp;#8217;s a half-way decent copy - of course the original will always look significantly better.&lt;/p&gt;
&lt;p&gt;Don&amp;#8217;t care about reading through the tutorial? No problem! You can &lt;a href=&quot;#demo&quot;&gt;jump right down to the live demo&lt;/a&gt;&lt;/p&gt;
@@ -4496,5825 +6055,4274 @@ input[type=&quot;checkbox&quot;]:checked ~ nav {
&lt;/ul&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/bGgBRaV&quot;&gt;Live CodePen Demo&lt;/a&gt;&lt;/p&gt;</description>
- <link>https://btxx.org/macos-icon-css</link>
- <guid isPermaLink="false">https://btxx.org/macos-icon-css</guid>
- <pubDate>Tue, 13 Apr 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Convert Files to HTML with macOS Automator Quick Actions</title>
- <description>&lt;h1 id=&quot;convert-files-to-html-with-macos-automator-quick-actions&quot;&gt;Convert Files to HTML with macOS Automator Quick Actions&lt;/h1&gt;
-&lt;p&gt;2022-01-28&lt;/p&gt;
-&lt;p&gt;Since a few people have reached out and thanked me for my previous post &lt;a href=&quot;/batch-webp-conversion&quot;&gt;Batch Converting Images to webp with macOS Automator&lt;/a&gt;, I thought I would continue to share more of my own custom Automator Quick Actions. Today&amp;#8217;s post will cover the ability to convert &lt;em&gt;any&lt;/em&gt; text-based document into pure HTML.&lt;/p&gt;
-&lt;p&gt;I know - there are over 6 billion conversion apps that do this very same thing. But our way of doing it is &lt;em&gt;cooler&lt;/em&gt;. Our conversion tool:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Will run directly inside macOS Finder (right-click actions FTW)&lt;/li&gt;
-&lt;li&gt;Can batch convert multiple files at once&lt;/li&gt;
-&lt;li&gt;Can convert mixed files types at the same time&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;And it can do all of this for free on your existing macOS system. No apps required. So, enough chit-chat, let&amp;#8217;s get started!&lt;/p&gt;
-&lt;h2 id=&quot;the-dependencies&quot;&gt;The Dependencies&lt;/h2&gt;
-&lt;p&gt;Unfortunately, setting things up isn&amp;#8217;t as simple as clicking a single &lt;code&gt;Install&lt;/code&gt; button and calling it a day. But don&amp;#8217;t start to panic! I assure you everything we&amp;#8217;ll be doing is actually quite easy to breeze through - &lt;em&gt;trust me&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;Our main requirements will consistent of the following:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Homebrew&lt;/li&gt;
-&lt;li&gt;Pandoc&lt;/li&gt;
-&lt;li&gt;Ability to open Terminal&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;installing-homebrew&quot;&gt;Installing Homebrew&lt;/h2&gt;
-&lt;p&gt;Homebrew is a simple package manager for macOS. The beauty of having Homebrew is the flexibility in the future for installing other custom packages. Overall it&amp;#8217;s just a nice piece of software to have on your machine.&lt;/p&gt;
-&lt;p&gt;If you have already installed Homebrew in the past, ignore this step and continue down the page. If not, simply open your Terminal and run:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;bin&amp;#47;bash -c &quot;$(curl -fsSL https:&amp;#47;&amp;#47;raw.githubusercontent.com&amp;#47;Homebrew&amp;#47;install&amp;#47;HEAD&amp;#47;install.sh)&quot;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Let that finish and you&amp;#8217;re done! Also feel free to read more about Homebrew on the &lt;a href=&quot;https://brew.sh&quot;&gt;official website&lt;/a&gt;. Knowledge is power!&lt;/p&gt;
-&lt;h2 id=&quot;installing-pandoc&quot;&gt;Installing Pandoc&lt;/h2&gt;
-&lt;p&gt;The package that is going to be doing all the heavy-lifting for us is &lt;a href=&quot;https://pandoc.org&quot;&gt;pandoc&lt;/a&gt;. Because we have Homebrew on our machine now, installing this package is as simple as opening our Terminal again and running:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;brew install pandoc
+ <link>https://btxx.org/macos-icon-css</link>
+ <guid isPermaLink="false">https://btxx.org/macos-icon-css</guid>
+ <pubDate>Tue, 13 Apr 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Working with `git` Patches in Apple Mail</title>
+ <description>&lt;h1 id=&quot;working-with-patches-in-apple-mail&quot;&gt;Working with &lt;code&gt;git&lt;/code&gt; Patches in Apple Mail&lt;/h1&gt;
+&lt;p&gt;2023-05-11&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;&lt;strong&gt;Before we begin&lt;/strong&gt;: You could likely automate this process in a more streamlined way, but for most use cases this workflow should be fine.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;I recently covered how to &lt;a href=&quot;/git-patches&quot;&gt;work with git email patches in Evolution on Linux&lt;/a&gt;, so I thought it would make sense to walk through a similar workflow for those using Apple Mail on MacOS. The idea is essentially the same, with just a little extra work involved.&lt;/p&gt;
+&lt;h2 id=&quot;create-a-patches-mailbox&quot;&gt;Create a &amp;#8220;Patches&amp;#8221; Mailbox&lt;/h2&gt;
+&lt;p&gt;The first thing you&amp;#8217;ll need to do is make a new &lt;code&gt;Patches&lt;/code&gt; mailbox folder inside your existing mail account. Once done, your default Mail sidebar should look similar to the following:&lt;/p&gt;
+&lt;h2 id=&quot;applying-patches&quot;&gt;Applying Patches&lt;/h2&gt;
+&lt;p&gt;Now navigate to the email message containing a &lt;code&gt;git&lt;/code&gt; patch. Right-click and select &lt;em&gt;Move to&lt;/em&gt; &amp;#62; &lt;em&gt;Patches&lt;/em&gt;. Now in the sidebar, right-click your &lt;em&gt;Patches&lt;/em&gt; folder and select &lt;em&gt;Export Mailbox&amp;#8230;&lt;/em&gt;. You&amp;#8217;ll be prompted to save this folder locally. I suggest having a top-level folder named &lt;strong&gt;Patches&lt;/strong&gt; to make things consistent.&lt;/p&gt;
+&lt;p&gt;Inside this folder you should see something similar to the following structure:&lt;/p&gt;
+&lt;p&gt;Once saved, open your terminal, navigate to the project you wish to apply this new patch to:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;cd my-path&amp;#47;very-cool-project
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Wait for everything to finish and you&amp;#8217;re done!&lt;/p&gt;
-&lt;h2 id=&quot;our-custom-automator-quick-action&quot;&gt;Our Custom Automator Quick Action&lt;/h2&gt;
-&lt;p&gt;Next you&amp;#8217;ll want to open the macOS Automator app and create a new &amp;#8220;Quick Action&amp;#8221; when given the prompt to do so.&lt;/p&gt;
-&lt;p&gt;Now do the following (reference the image further below to make sure your parameters match):&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Set &amp;#8220;Workflow receives current&amp;#8221; to documents in any application&lt;/li&gt;
-&lt;li&gt;In the search bar type in &amp;#8220;Run Shell Script&amp;#8221;&lt;/li&gt;
-&lt;li&gt;Drag-and-drop the &amp;#8220;Run Shell Script&amp;#8221; from the left pane into the right pane&lt;/li&gt;
-&lt;li&gt;Set the &amp;#8220;Shell&amp;#8221; parameter to &amp;#47;bin&amp;#47;bash&lt;/li&gt;
-&lt;li&gt;Set &amp;#8220;Pass input&amp;#8221; as as arguments&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;Once all that is done, simply paste the following in the open text field within the &amp;#8220;Run Shell Script&amp;#8221; item:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;for f in &quot;$@&quot;
-do
-&amp;#47;opt&amp;#47;homebrew&amp;#47;bin&amp;#47;pandoc -o &quot;${f%.*}.html&quot; &quot;$f&quot;
-done
+&lt;p&gt;and then run:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;git apply ~&amp;#47;Patches&amp;#47;&amp;#60;saved-patches-mailbox-folder&amp;#62;&amp;#47;mbox
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If you&amp;#8217;ve done everything correctly it should look something like this:&lt;/p&gt;
-&lt;p&gt;Save this new Quick Action (Name is something like &amp;#8220;Convert to HTML&amp;#8221; to keep things simple). That&amp;#8217;s it! Amazing, right?&lt;/p&gt;
-&lt;h2 id=&quot;time-to-convert&quot;&gt;Time to Convert&lt;/h2&gt;
-&lt;p&gt;Now it is finally time to see our Quick Action is &lt;em&gt;action&lt;/em&gt;! Navigate to any document file in a Finder window and follow along.&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;First, right-click on the file you wish to convert. (&lt;a href=&quot;#fig-1&quot;&gt;Figure 1&lt;/a&gt;)&lt;/li&gt;
-&lt;li&gt;In the pop-up container, scroll down and hover over &lt;code&gt;Quick Actions&lt;/code&gt;.&lt;/li&gt;
-&lt;li&gt;A secondary pop-out will appear. Look for the action &lt;code&gt;Convert File to HTML&lt;/code&gt; and click it. (&lt;a href=&quot;#fig-2&quot;&gt;Figure 2&lt;/a&gt;)&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;If everything was set up properly (and depending on the size of the file) you should see your converted HTML file show up right next to your existing document. Time to celebrate!&lt;/p&gt;
-&lt;p&gt;Don&amp;#8217;t forget - you can also &lt;em&gt;batch&lt;/em&gt; convert multiple files and multiple file &lt;em&gt;types&lt;/em&gt; at once. The possibilities are endless!&lt;/p&gt;
-&lt;h2 id=&quot;no-limits&quot;&gt;No Limits&lt;/h2&gt;
-&lt;p&gt;Although this article has mainly focused on converting documents to HTML, &lt;code&gt;pandoc&lt;/code&gt; is so powerful you could do any number of conversions. Re-using these steps above, you have the ability to make as many different conversion quick actions as your heart desires!&lt;/p&gt;
-&lt;p&gt;Have fun converting!&lt;/p&gt;</description>
- <link>https://btxx.org/macos-convert-to-html</link>
- <guid isPermaLink="false">https://btxx.org/macos-convert-to-html</guid>
- <pubDate>Fri, 28 Jan 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>My Robotic Mower Woes</title>
- <description>&lt;h1 id=&quot;my-robotic-mower-woes&quot;&gt;My Robotic Mower Woes&lt;/h1&gt;
-&lt;p&gt;2023-05-19&lt;/p&gt;
-&lt;h2 id=&quot;a-brief-background&quot;&gt;A Brief Background&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;m no stranger to robotic lawnmowers. When my wife and I moved into our rural home just over five years ago, we picked up the Husqvarna 450X Automower since I was far too lazy to manually mow my property and the cost was equal to that of a standard riding mower. It was a no-brainer.&lt;/p&gt;
-&lt;p&gt;Fast-forward five years. Everything is still going great with the Automower. Some minor repairs were needed but that was mostly my fault since I was allowing the mower into places it shouldn&amp;#8217;t have been (ie. root systems and dirt &amp;#8220;craters&amp;#8221;). Then lightning struck our backyard at the beginning of April this year. The mower was fine, since we stow it away inside for the winter but the charging station, charging brick and perimeter wire we &lt;em&gt;not&lt;/em&gt; so lucky&amp;#8230;&lt;/p&gt;
-&lt;p&gt;The lightning traveled along the main perimeter wire and went straight to the charging station. Boom. The charging dock was quite literally blown up into a million tiny pieces and scattered across my backyard. Giant trenches were carved up where the perimeter wire had been embedded in the lawn. This surge also followed the path towards the main power adapter and exploded that as well. All of this happened even with the charging station &amp;#47; adapter &lt;em&gt;turned off and unplugged from any outlet&lt;/em&gt;. At least my mower was safe&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;shopping-for-automower-parts&quot;&gt;Shopping for Automower Parts&lt;/h2&gt;
-&lt;p&gt;I realized I was going to have to buy another charging station, power adapter and also pay for a dealer to re-install the perimeter wire. This idea didn&amp;#8217;t thrill me but at least all-in the expense wouldn&amp;#8217;t be that high. Or so I thought&amp;#8230;&lt;/p&gt;
-&lt;p&gt;I contacted my local dealer and he quoted me directly from the Husqvarna supplier:&lt;/p&gt;
+&lt;p&gt;Congrats! You&amp;#8217;ve successfully applied a git email patch through Apple Mail! Well, kind of. The terminal did most of the &lt;em&gt;real&lt;/em&gt; work. Just be sure to periodically &lt;em&gt;purge&lt;/em&gt; your local &lt;em&gt;Patches&lt;/em&gt; folder to keep things clean!&lt;/p&gt;</description>
+ <link>https://btxx.org/mail</link>
+ <guid isPermaLink="false">https://btxx.org/mail</guid>
+ <pubDate>Thu, 11 May 2023 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Replacing My Eero Mesh Network with Two Mangos</title>
+ <description>&lt;h1 id=&quot;replacing-my-eero-mesh-network-with-two-mangos&quot;&gt;Replacing My Eero Mesh Network with Two Mangos&lt;/h1&gt;
+&lt;p&gt;2023-03-09&lt;/p&gt;
+&lt;p&gt;It has been one week since I retired my Eero mesh network setup and replaced it with two &lt;a href=&quot;https://www.gl-inet.com/products/gl-mt300n-v2/&quot;&gt;Mango Mini Travel Routers (GL-MT300N-V2)&lt;/a&gt;. There were some obvious reasons to make this switch but I was initially unsure how the overall performance on the Mangos would hold up compared to the &amp;#8220;cutting edge&amp;#8221; tech that Eero devices claim to have.&lt;/p&gt;
+&lt;p&gt;Spoiler (in case the post title didn&amp;#8217;t give it away): I was pleasantly surprised.&lt;/p&gt;
+&lt;h2 id=&quot;goodbye-amazon&quot;&gt;Goodbye Amazon&lt;/h2&gt;
+&lt;p&gt;I was a big supporter of the original &amp;#8220;kickstarter&amp;#8221; project when Eero first launched. I pre-ordered and they even sent me a device free-of-charge since there were logistic problems shipping to Canada. I received my V1 routers, hooked them up and enjoyed a seamless, wifi mesh system. Everything was going great.&lt;/p&gt;
+&lt;p&gt;Then, in 2019 &lt;a href=&quot;https://mashable.com/article/amazon-acquires-eero&quot;&gt;they were acquired by Amazon&lt;/a&gt;. Sigh&amp;#8230;&lt;/p&gt;
+&lt;p&gt;I should have jumped ship then, but I waited to see what would happen. After all, my internet was still working perfectly fine. Then the half-baked and sometimes completely broken updates started rolling out. On more than one occasion they needed to perform complete version roll-backs. This sometimes knocked out my internet for hours at a time.&lt;/p&gt;
+&lt;p&gt;They also started pushing (although not outright requiring) users to login using their Amazon account. While not a massive deal breaker, the constant pestering to do so rubbed me the wrong way. &lt;/p&gt;
+&lt;p&gt;During this time, my first son was born and we moved out of the city into our first house. So fiddling with my internet setup took the backseat for a while. Once everything settled down, I started seeing more broken updates and certain features being put behind their premium &amp;#8220;Eero Secure&amp;#8221; platform. Features that were available as &lt;em&gt;default&lt;/em&gt; for most other router hardware providers.&lt;/p&gt;
+&lt;p&gt;So, I started to look at other options.&lt;/p&gt;
+&lt;h2 id=&quot;why-the-mango&quot;&gt;Why the Mango?&lt;/h2&gt;
+&lt;p&gt;It is important to mention, that because I live out in rural Canada, my internet options are extremely limited. All providers are satellite-based since fiber cables are unheard of out in these areas. Because of this, my main internet speeds are limited to 25Mbps &lt;em&gt;baseline&lt;/em&gt;. This is important to note, since my experience and router choice took this into consideration. If you&amp;#8217;re a current Eero user with 300Mbps+ speeds and are looking to switch wifi systems - the Mango is probably not the best for you.&lt;/p&gt;
+&lt;p&gt;Luckily for me, the Mini Mangos were perfect for my basic requirements:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Charging base station: $749 CDN&lt;/li&gt;
-&lt;li&gt;Power adapter: $599 CDN&lt;/li&gt;
-&lt;li&gt;Perimeter wire install: ~$550 CDN&lt;/li&gt;
+&lt;li&gt;Max. 300Mbps Wi-Fi Speed (more than enough for my use-case)&lt;/li&gt;
+&lt;li&gt;Running open-source software via &lt;a href=&quot;https://openwrt.org/&quot;&gt;openwrt&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Hardware VPN toggle&lt;/li&gt;
+&lt;li&gt;Tiny physical footprint&lt;/li&gt;
+&lt;li&gt;Extremely portable&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;I thought the cost for both the charging station and the wire install seemed about right - but &lt;strong&gt;$599&lt;/strong&gt; for a power adapter?! Are you kidding me? Best of all, these parts were on &lt;em&gt;back-order&lt;/em&gt;. So even if I shelled out the ridiculous asking price, it was anyone&amp;#8217;s guess when I would get them. May was fast approaching and I would need to start cutting my property soon. I started to look at other options.&lt;/p&gt;
-&lt;h2 id=&quot;husqvarna-epos-mowers&quot;&gt;Husqvarna EPOS Mowers&lt;/h2&gt;
-&lt;p&gt;Husqvarna recently launched their &amp;#8220;perimeter-free&amp;#8221; automowers for the general public (originally designed only for &amp;#8220;fleet&amp;#8221; enterprise use). These units use GPS and RTK position to map the desired cutting area of a property. Already my interest was piqued. Moving away from a perimeter wire seemed like a significant upgrade. It would also make my wife happy by allow her to garden freely, without worrying about severing an embedded lawn wire.&lt;/p&gt;
-&lt;p&gt;So I contacted my local dealer again about these specific units. I came away with some interesting information:&lt;/p&gt;
+&lt;h2 id=&quot;setting-up-the-yellow-squares&quot;&gt;Setting Up the Yellow Squares&lt;/h2&gt;
+&lt;p&gt;Setup was a breeze compared to the Eero experience (which could only be performed through their mobile app via bluetooth and a great deal of repositioning the devices). The full process is essentially:&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;They were quite expensive for my taste ($5000+ CDN - before install!)&lt;/li&gt;
-&lt;li&gt;They were &lt;em&gt;also&lt;/em&gt; on back-order here in Canada&lt;/li&gt;
+&lt;li&gt;Power up the first Mango&lt;/li&gt;
+&lt;li&gt;Connect laptop to the Mango via ethernet (you can also connect through wifi)&lt;/li&gt;
+&lt;li&gt;Follow the login instructions&lt;/li&gt;
+&lt;li&gt;Change SSID name, set device in router mode&lt;/li&gt;
+&lt;li&gt;Enjoy your internet!&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;&lt;em&gt;Sigh&lt;/em&gt;. The mower gods were trying to tell me something. It seemed Husqvarna was just not meant for me anymore.&lt;/p&gt;
-&lt;h2 id=&quot;luba-to-the-rescue&quot;&gt;Luba to the Rescue!&lt;/h2&gt;
-&lt;p&gt;While researching &amp;#8220;wireless&amp;#8221; automowers, I came across the &lt;a href=&quot;https://mammotion.com/?ref=bpjfzw7s&quot;&gt;Luba Series 5000&lt;/a&gt; (referral link) and kept it in my &amp;#8220;maybe&amp;#8221; pile to follow-up on if needed. So follow-up I did.&lt;/p&gt;
-&lt;p&gt;This mower seemed to check all my boxes:&lt;/p&gt;
+&lt;p&gt;Since my office is fairly far away from the placement of the &amp;#8220;main&amp;#8221; Mango router, I placed the second device near my desk. I followed the same setup as above, except I set the mode as &amp;#8220;repeater&amp;#8221;.&lt;/p&gt;
+&lt;p&gt;For my use case I actually set this device up with a separate SSID. This was just my personal preference. You don&amp;#8217;t have to do this. If you give both devices the same SSID name most modern devices will treat your network as if it &lt;em&gt;was&lt;/em&gt; a mesh network. Pretty neat stuff.&lt;/p&gt;
+&lt;p&gt;I plan to eventually add my Pi Zero running AdGuard Home back into the mix, but for now I just installed a small adblock package directly onto the router:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Decently priced&lt;/li&gt;
-&lt;li&gt;2-year warranty&lt;/li&gt;
-&lt;li&gt;All wheel drive&lt;/li&gt;
-&lt;li&gt;I could set it up myself&lt;/li&gt;
-&lt;li&gt;No perimeter wires&lt;/li&gt;
-&lt;li&gt;No-go zones available&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://github.com/openwrt/packages/tree/master/net/adblock&quot;&gt;adblock package&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;It did have a few minor cons associated with it:&lt;/p&gt;
+&lt;h2 id=&quot;performance-comparisons&quot;&gt;Performance Comparisons&lt;/h2&gt;
+&lt;p&gt;Everything below is just some basic testing I performed. Obviously it should be noted that your experience might be entirely different based on interference, building size, amount of devices connected, etc.&lt;/p&gt;
+&lt;p&gt;Stats for my original Eero mesh setup:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Fairly new product &amp;#47; company&lt;/li&gt;
-&lt;li&gt;No close dealer in my area&lt;/li&gt;
-&lt;li&gt;iOS and Android apps are more or less &amp;#8220;beta&amp;#8221;&lt;/li&gt;
+&lt;li&gt;1 eero 6 pro, 1 eero 6+, 1 eero beacon&lt;/li&gt;
+&lt;li&gt;Average internet testing speed: 25Mbps&lt;/li&gt;
+&lt;li&gt;Consistent signal throughout the house&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Next, I watched a few early reviews and went through some comments&amp;#47;feedback from beta users. I was convinced enough and bought the AWD 5000 model.&lt;/p&gt;
-&lt;h2 id=&quot;arrival-and-setup&quot;&gt;Arrival and Setup&lt;/h2&gt;
-&lt;p&gt;The mower (who we named Lawna, and shall be referred to as such moving forward) arrived just after the first week of May. The hardware setup (charging station and RTK antenna) was very straight-forward, so I won&amp;#8217;t go into great detail about that here. Once Lawna was synced with the RTK and GPS system, it was time to map my property.&lt;/p&gt;
-&lt;p&gt;I broke my property into 4 main &amp;#8220;tasks&amp;#8221; as the app calls them. The 5000 model allows you to create up to 10, but for my needs 4 was fine for full coverage. I mapped each one, added a handful of no-go zones to each and told Lawna to get to work. She happily obliged.&lt;/p&gt;
-&lt;h2 id=&quot;the-first-week&quot;&gt;The First Week&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve had (almost) zero issues with Lawna after a week and a half of running her daily. She alternates from the front to the back of the property every other day. The app allows you to setup automatic scheduling, but I prefer to run things manually every morning, based on whether an area should be skipped, grass it dried out etc.&lt;/p&gt;
-&lt;p&gt;The only minor problem I have run into is the need to manually clean grass build-up from under the small cutting blades after Lawna cuts a couple &amp;#8220;task&amp;#8221; areas. I swapped the default blades to use Husqvarna&amp;#8217;s &lt;em&gt;endurance&lt;/em&gt; type, since they use a large slotted insert hole as opposed to Mammotion&amp;#8217;s two single insert holes. This change makes cleaning the blades faster, safer, and easier to maintain. I realize that a riding mower would require similar maintenance but a truly &lt;em&gt;autonomous&lt;/em&gt; device shouldn&amp;#8217;t require human intervention.&lt;/p&gt;
-&lt;h2 id=&quot;moving-forward&quot;&gt;Moving Forward&lt;/h2&gt;
-&lt;p&gt;My hope is that the software continues to improve over time and that the core hardware lasts as long as my 450X did. Which now reminds me - I need to sell that thing&amp;#8230;&lt;/p&gt;
-&lt;p&gt;Hopefully this post helps others looking to snag their own robotic mower. So far, I can safely recommend Luba.&lt;/p&gt;</description>
- <link>https://btxx.org/luba</link>
- <guid isPermaLink="false">https://btxx.org/luba</guid>
- <pubDate>Fri, 19 May 2023 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Looping Through Jekyll Collections</title>
- <description>&lt;h1 id=&quot;looping-through-jekyll-collections&quot;&gt;Looping Through Jekyll Collections&lt;/h1&gt;
-&lt;p&gt;2022-08-12&lt;/p&gt;
-&lt;p&gt;I recently needed to add a couple new items to my wife&amp;#8217;s personal recipe website (&lt;a href=&quot;https://cookingwith.casa&quot;&gt;cookingwith.casa&lt;/a&gt;) which I hadn&amp;#8217;t touched in quite a while. The Jekyll build still worked fine, but I realized I was statically adding each &lt;code&gt;collection&lt;/code&gt; by hand on the main homepage[^1].&lt;/p&gt;
-&lt;p&gt;Not so good.&lt;/p&gt;
-&lt;p&gt;Of course, this wasn&amp;#8217;t difficult at all to fix. Now everything is much more &amp;#8220;hands free&amp;#8221; moving forward. I figured I would share the details here in the hopes that others mind find it useful. Plus, it&amp;#8217;s my blog - so I&amp;#8217;ll do what I want!&lt;/p&gt;
-&lt;h2 id=&quot;looping-our-collections&quot;&gt;Looping Our Collections&lt;/h2&gt;
-&lt;p&gt;We want Jekyll to make things as streamlined as possible for us. This means that if I decide to add a new collection it will automatically render it along the others on the homepage.&lt;/p&gt;
-&lt;p&gt;Work smart not hard!&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s take a look at the bare-bones collections loop:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;{% for collection in site.collections %}
- &amp;#60;!-- Our code goes here --&amp;#62;
-{% endfor %}
+&lt;p&gt;Stats for the new Mini Mango setup:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;2 mini mangos (one in router mode, the other set as repeater)&lt;/li&gt;
+&lt;li&gt;Average internet testing speed: 25Mbps&lt;/li&gt;
+&lt;li&gt;Consistent signal throughout the house&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;extras&quot;&gt;Extras&lt;/h2&gt;
+&lt;p&gt;Some additional data comparisons for those interested. Prices shown are in Canadian dollars.&lt;/p&gt;
+&lt;table&gt;
+&lt;thead&gt;
+&lt;tr&gt;
+&lt;th&gt;&lt;/th&gt;
+&lt;th&gt;Eero&lt;/th&gt;
+&lt;th&gt;Mango&lt;/th&gt;
+&lt;/tr&gt;
+&lt;/thead&gt;
+&lt;tbody&gt;
+&lt;tr&gt;
+&lt;td&gt;&lt;strong&gt;Power&lt;/strong&gt;&lt;/td&gt;
+&lt;td&gt;5W&lt;/td&gt;
+&lt;td&gt;2.75W&lt;/td&gt;
+&lt;/tr&gt;
+&lt;tr&gt;
+&lt;td&gt;&lt;strong&gt;Size&lt;/strong&gt; (mm)&lt;/td&gt;
+&lt;td&gt;139x139x55&lt;/td&gt;
+&lt;td&gt;58x58x22&lt;/td&gt;
+&lt;/tr&gt;
+&lt;tr&gt;
+&lt;td&gt;&lt;strong&gt;Bands&lt;/strong&gt; (GHz)&lt;/td&gt;
+&lt;td&gt;2.4&amp;#47;5&lt;/td&gt;
+&lt;td&gt;2.4&lt;/td&gt;
+&lt;/tr&gt;
+&lt;tr&gt;
+&lt;td&gt;&lt;strong&gt;Cost&lt;/strong&gt; (per unit)&lt;/td&gt;
+&lt;td&gt;$99+&lt;/td&gt;
+&lt;td&gt;$39&lt;/td&gt;
+&lt;/tr&gt;
+&lt;/tbody&gt;
+&lt;/table&gt;
+&lt;p&gt;That mostly covers it. I&amp;#8217;m extremely happy with my switch away from the locked-down, &amp;#8220;upsell&amp;#8221; heavy Eeros. My only regret is that I didn&amp;#8217;t make this change sooner.&lt;/p&gt;</description>
+ <link>https://btxx.org/mango</link>
+ <guid isPermaLink="false">https://btxx.org/mango</guid>
+ <pubDate>Thu, 09 Mar 2023 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Menu Toggle with Pure CSS</title>
+ <description>&lt;h1 id=&quot;menu-toggle-with-pure-css&quot;&gt;Menu Toggle with Pure CSS&lt;/h1&gt;
+&lt;p&gt;2020-10-19&lt;/p&gt;
+&lt;p&gt;When thinking through navigation designs for mobile devices sometimes the best option is to store away the content behind a toggle button. This button would then display the menu items upon interaction. Let me show you how to create such an element with only CSS - no need for JavaScript today!&lt;/p&gt;
+&lt;h2 id=&quot;before-we-begin&quot;&gt;Before we begin&lt;/h2&gt;
+&lt;p&gt;I would like to point out that the concept of &amp;#8220;toggling&amp;#8221; the main menu (even for mobile) is not always the best solution. If you&amp;#8217;re interested, you can take a look at a previous article I wrote explaining why: &lt;a href=&quot;/hamburger-menu-alternative.html&quot;&gt;Using Hamburger Menus? Try Sausage Links&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;Now that we have mentioned possible pitfalls of relying so heavily on toggle menus, let&amp;#8217;s build one!&lt;/p&gt;
+&lt;h2 id=&quot;our-final-product&quot;&gt;Our Final Product&lt;/h2&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/menu-toggle-css.png&quot; alt=&quot;Menu toggle made from pure CSS&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/mdEEvEX&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;p&gt;To implement this design you really don&amp;#8217;t need much in terms of HTML:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;p&gt;A single &lt;code&gt;checkbox&lt;/code&gt; input&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;A &lt;code&gt;label&lt;/code&gt; that corresponds to the &lt;code&gt;checkbox&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;A &lt;code&gt;nav&lt;/code&gt; element to house our unordered list items&lt;/p&gt;
+&lt;p&gt;Menu&lt;/p&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;That&amp;#8217;s it!&lt;/p&gt;
+&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
+&lt;p&gt;The first thing we need to do is &amp;#8220;hide&amp;#8221; the &lt;code&gt;checkbox&lt;/code&gt; input element. It&amp;#8217;s important to avoid using &lt;code&gt;display: none&lt;/code&gt; or &lt;code&gt;visibility: hidden&lt;/code&gt; in order to achieve this. Those CSS properties can negatively impact accessibility (specifically screen readers). So we will be relying on the &lt;code&gt;position&lt;/code&gt;, &lt;code&gt;z-index&lt;/code&gt; and &lt;code&gt;opacity&lt;/code&gt; properties to help us out.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Set the input position to absolute, send it off screen with zero opacity *&amp;#47;
+input[type=&quot;checkbox&quot;] {
+ left: -9999px;
+ opacity: 0;
+ position: absolute;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then we need to include an &lt;code&gt;if&lt;/code&gt; statement to avoid pulling in standard &lt;code&gt;post&lt;/code&gt; items (or leave this in if that is desired):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;{% for collection in site.collections %}
- {% if collection.label != &amp;#39;posts&amp;#39; %}
- {% endif %}
-{% endfor %}
+&lt;p&gt;Then we give our corresponding &lt;code&gt;label&lt;/code&gt; a minor face-lift to make it appear more button-like:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Minor visual styling to make the label more button-y *&amp;#47;
+label {
+ border: 1px solid currentColor;
+ border-radius: 4px;
+ cursor: pointer;
+ padding: 10px;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now for my specific use case, we want to display each collection label and then list its corresponding items below that label (see the &lt;code&gt;site[collection.label]&lt;/code&gt; for reference)&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;{% for collection in site.collections %}
- {% if collection.label != &amp;#39;posts&amp;#39; %}
- &amp;#60;h2&amp;#62;{{ collection.label }}&amp;#60;&amp;#47;h2&amp;#62;
- &amp;#60;ul class=&quot;recipe-list&quot;&amp;#62;
- {% for item in site[collection.label] %}
- &amp;#60;li&amp;#62;
- &amp;#60;a href=&quot;{{ item.url }}&quot;&amp;#62;{{ item.title }}&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;&amp;#47;li&amp;#62;
- {% endfor %}
- &amp;#60;&amp;#47;ul&amp;#62;
- &amp;#60;hr&amp;#62;
- {% endif %}
-{% endfor %}
+&lt;p&gt;For our main &lt;code&gt;nav&lt;/code&gt; element, we want to set it&amp;#8217;s position to &lt;code&gt;absolute&lt;/code&gt; in order to avoid any janky page rendering issues that might occur when toggling the menu:&lt;/p&gt;
+&lt;p&gt;`
+ &amp;#47;* Set nav to absolute (avoids odd page rendering space pop-in) *&amp;#47;
+ nav {
+ opacity: 0;
+ position: absolute;
+ z-index: -2;
+ }&lt;/p&gt;
+&lt;p&gt;The last step is to actually &lt;em&gt;show&lt;/em&gt; the menu if the user toggles the &lt;code&gt;checkbox&lt;/code&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Show nav when checkbox is checked *&amp;#47;
+input[type=&quot;checkbox&quot;]:checked ~ nav {
+ opacity: 1;
+ z-index: 1;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it! Now if I plan to add any new collections down the line, I just need to include it in the &lt;code&gt;_config.yml&lt;/code&gt; file and I&amp;#8217;m set. The homepage will take care of the rest once rendered.&lt;/p&gt;
-&lt;p&gt;Enjoy looping through your Jekyll collections!&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Just the sections were statically rendered. All the recipes were pulled in dynamically - I&amp;#8217;m not that insane!&lt;/li&gt;
-&lt;/ol&gt;</description>
- <link>https://btxx.org/loop</link>
- <guid isPermaLink="false">https://btxx.org/loop</guid>
- <pubDate>Fri, 12 Aug 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Fixing LocalWP on Fedora 32</title>
- <description>&lt;h1 id=&quot;fixing-localwp-on-fedora-32&quot;&gt;Fixing LocalWP on Fedora 32&lt;/h1&gt;
-&lt;p&gt;2020-05-06&lt;/p&gt;
-&lt;p&gt;I recently upgraded from Fedora 31 to 32 and everything went very smoothly - except for one application: &lt;strong&gt;LocalWP&lt;/strong&gt;. After the upgrade, all local WordPress builds would fail and complain about two missing packages:&lt;/p&gt;
+&lt;p&gt;It might not look like much, but you now have a fully functional menu toggle - &lt;strong&gt;made with pure CSS&lt;/strong&gt;! &lt;/p&gt;
+&lt;h2 id=&quot;with-great-power&quot;&gt;With Great Power&amp;#8230;&lt;/h2&gt;
+&lt;p&gt;Although this design is very simple to implement, please remember to use these types of menus wisely. Just because you &lt;em&gt;can&lt;/em&gt; do something, doesn&amp;#8217;t always mean you &lt;em&gt;should&lt;/em&gt;.&lt;/p&gt;</description>
+ <link>https://btxx.org/menu-toggle-css</link>
+ <guid isPermaLink="false">https://btxx.org/menu-toggle-css</guid>
+ <pubDate>Mon, 19 Oct 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Mini Interactive Keyboard with Pure CSS</title>
+ <description>&lt;h1 id=&quot;mini-interactive-keyboard-with-pure-css&quot;&gt;Mini Interactive Keyboard with Pure CSS&lt;/h1&gt;
+&lt;p&gt;2020-05-13&lt;/p&gt;
+&lt;p&gt;Lately, I&amp;#8217;ve become obsessed with trying to see what I can create using only HTML and CSS (besides websites of course). Since playing with the concept of &lt;a href=&quot;https://uglyduck.ca/fake-3d-elements-with-css/&quot;&gt;faking 3D elements&lt;/a&gt;, I wanted to circle back around to an older CodePen I created: a mini, interactive undo keyboard.&lt;/p&gt;
+&lt;h2 id=&quot;see-it-in-action&quot;&gt;See it in action&lt;/h2&gt;
+&lt;p&gt;Below you can view a live demo of the mini keyboard itself. This demo is nothing special, but takes design inspiration from Apple&amp;#8217;s magic keyboards (if that wasn&amp;#8217;t already obvious).&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/undo-keyboard.png&quot; alt=&quot;Undo keyboard with two buttons to click&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/PadQMP&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;So now that we have seen what we plan to build, let&amp;#8217;s break down the process of creating this stupid, fun project!&lt;/p&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;p&gt;The core skeleton of this project is very simple, since the keyboard consists of only 2 interactive buttons on top of a basic base element: &lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;libnettle6&lt;/li&gt;
-&lt;li&gt;libhogweed4&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Keyboard base&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Command button&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;&amp;#8216;Z&amp;#8217; letter button&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;After wasting far too much time rolling back to older LocalWP versions and reaching out into the community forums, I found a simply solution to the problem. You just need to download and install the following packages manually:&lt;/p&gt;
+&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
+&lt;p&gt;Here is where all the magic happens. Let&amp;#8217;s break these elements into their own sections, starting with the &lt;strong&gt;base styling&lt;/strong&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Custom typeface *&amp;#47;
+@import url(&quot;https:&amp;#47;&amp;#47;fonts.googleapis.com&amp;#47;css?family=Muli&quot;);
+
+&amp;#47;* Basic layout styling *&amp;#47;
+body {
+background: #d2dcff;
+margin: 80px 0 40px;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;We then tackle the basic &lt;strong&gt;keyboard base&lt;/strong&gt; element:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.base {
+background: linear-gradient(180deg, #eee 0%, #d8d8d8 100%);
+border-radius: 20px;
+box-shadow: inset 0 3px 5px rgba(255,255,255,0.3), inset 0 1px 3px rgba(255,255,255,0.5), 0 10px 0 #afafaf;
+display: flex;
+height: 310px;
+margin: 0 auto;
+position: relative;
+width: 620px;
+}
+
+&amp;#47;* This pseudo element is used for more realistic drop-shadows *&amp;#47;
+.base:after {
+bottom: 0;
+box-shadow: 0 10px 80px rgba(0,0,0,0.5);
+content: &amp;#39;&amp;#39;;
+height: 50px;
+left: 7.5%;
+position: absolute;
+width: 85%;
+z-index: -1;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Next, we target all shared styles between the &lt;strong&gt;2 keyboard buttons&lt;/strong&gt; to avoid repeating ourselves later on:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.command, .z {
+ -webkit-appearance: none;
+ background: linear-gradient(180deg, #fff 0%, #f2f2f2 100%);
+ border: 0;
+ border-radius: 20px;
+ box-shadow: inset 0 1px 3px rgba(255,255,255,0.5), 0 10px 0 #c9c9c9, 0 10px 6px rgba(0,0,0,0.3), 0 12px 8px rgba(0,0,0,0.5);
+ cursor: pointer;
+ display: inline-block;
+ height: 260px;
+ margin: 15px 0 0 20px;
+ outline: 0;
+ position: relative;
+ width: 300px;
+ z-index: 2;
+}
+
+.command span, .z span {
+ font-family: &amp;#39;Muli&amp;#39;, &amp;#39;Helvetica&amp;#39;, sans-serif;
+}
+
+&amp;#47;* Styling when pressed *&amp;#47;
+.command:active, .z:active {
+ box-shadow: inset 0 10px 10px rgba(0,0,0,0.2), inset 0 10px 30px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.6);
+ margin: 25px 0 0 20px;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;All that remains is to add the custom styling for each independent button:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Custom Command styling *&amp;#47;
+.command svg {
+ height: 60px;
+ right: 15px;
+ position: absolute;
+ stroke: #9f9f9f;
+ top: 15px;
+ width: 60px;
+}
+.command span {
+ bottom: 15px;
+ color: #9f9f9f;
+ font-size: 58px;
+ left: 0;
+ position: absolute;
+ width: 100%;
+}
+
+&amp;#47;* Custom &quot;Z&quot; Letter styling *&amp;#47;
+.z {
+ width: 260px;
+}
+.z span {
+ color: #9f9f9f;
+ font-size: 150px;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;taking-it-further&quot;&gt;Taking it further&lt;/h2&gt;
+&lt;p&gt;You could easily improve upon this concept by rendering an entire interactive keyboard, if you so desired. But this is maybe something I would tackle at a later date when I have a little more free time 😉 For now, a simple mini undo keyboard is fun enough to play with.&lt;/p&gt;</description>
+ <link>https://btxx.org/mini-interactive-keyboard-with-pure-css</link>
+ <guid isPermaLink="false">https://btxx.org/mini-interactive-keyboard-with-pure-css</guid>
+ <pubDate>Wed, 13 May 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Minimal CSS: Dropdown Menu</title>
+ <description>&lt;h1 id=&quot;minimal-css-dropdown-menu&quot;&gt;Minimal CSS: Dropdown Menu&lt;/h1&gt;
+&lt;p&gt;2019-04-26&lt;/p&gt;
+&lt;p&gt;I love the idea of stripping away as much CSS as possible, while still maintaining the original UI concept. Let&amp;#8217;s build out a demo example with a simple menu dropdown element.&lt;/p&gt;
+&lt;p&gt;Interesting facts about our final CSS menu:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;libnettle6: &lt;a href=&quot;https://pkgs.org/download/libnettle6&quot;&gt;libnettle6-3.4.1-lp152.3.1.x86_64.rpm&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;libhogweed4: &lt;a href=&quot;https://pkgs.org/download/libhogweed4&quot;&gt;libhogweed4-3.4.1-lp152.3.1.x86_64.rpm&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Total weight 121 bytes minified! (not including any resets etc.)&lt;/li&gt;
+&lt;li&gt;No complex HTML structures&lt;/li&gt;
+&lt;li&gt;Accessibility support&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Although these packages are built for OpenSuse, it still worked perfectly fine for me. My hope is that this quick post might be helpful for others who possibly run into the same issue.&lt;/p&gt;
-&lt;p&gt;For reference, here is the Local Community ticket I created: &lt;a href=&quot;https://localwp.com/community/t/local-not-working-fedora-32-workstation-edition/19219&quot;&gt;Local not working with Fedora 32&lt;/a&gt;&lt;/p&gt;</description>
- <link>https://btxx.org/localwp-fedora</link>
- <guid isPermaLink="false">https://btxx.org/localwp-fedora</guid>
- <pubDate>Wed, 06 May 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Click to Load Website Images</title>
- <description>&lt;h1 id=&quot;click-to-load-website-images&quot;&gt;Click to Load Website Images&lt;/h1&gt;
-&lt;p&gt;2021-03-25&lt;/p&gt;
-&lt;p&gt;In my previous post about &lt;a href=&quot;https://uglyduck.ca/#2021-03-22-89-posts-one-file&quot;&gt;switching my Jekyll blog over to PHPetite&lt;/a&gt;, I briefly mentioned how I only loaded in article images if the user &lt;em&gt;clicked or tapped&lt;/em&gt; the empty file element.&lt;/p&gt;
-&lt;p&gt;In this post, I&amp;#8217;m going to quickly breakdown the update I&amp;#8217;ve done to my blog&amp;#8217;s images since then and how you can easily implement the same thing in your own project.&lt;/p&gt;
-&lt;h2 id=&quot;update&quot;&gt;Update&lt;/h2&gt;
-&lt;p&gt;As pointed out by Gabriel &lt;a href=&quot;https://github.com/bradleytaunt/phpetite/issues/1&quot;&gt;in this Github issue&lt;/a&gt;, this concept breaks things slightly for RSS users. Since then, I have just set the default images on this blog to &lt;code&gt;display: none&lt;/code&gt; and render them as &lt;code&gt;block&lt;/code&gt; elements when their specific &lt;code&gt;section&lt;/code&gt; is loaded into the DOM visibly.&lt;/p&gt;
-&lt;p&gt;The example below is remaining the same as it was, to still provide context for this post.&lt;/p&gt;
-&lt;h2 id=&quot;live-demo&quot;&gt;Live Demo&lt;/h2&gt;
-&lt;p&gt;Before we jump head first into the details, let&amp;#8217;s take a look at what we will be creating:&lt;/p&gt;
-&lt;p&gt;Pretty neat, eh? Well let&amp;#8217;s get into the nitty gritty.&lt;/p&gt;
-&lt;h2 id=&quot;the-code&quot;&gt;The Code&lt;/h2&gt;
-&lt;p&gt;Personally, I place everything into a &lt;code&gt;figure&lt;/code&gt; element to keep things contained and clean - but this isn&amp;#8217;t required by any means. We then include our &lt;code&gt;img&lt;/code&gt; and &lt;code&gt;figcaption&lt;/code&gt; elements. That&amp;#8217;s it.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;figure&amp;#62;
- &amp;#60;img src=&quot;&amp;#47;placeholder-image.webp&quot; onclick=&quot;this.src=&amp;#39;https:&amp;#47;&amp;#47;res.cloudinary.com&amp;#47;bradtaunt&amp;#47;image&amp;#47;fetch&amp;#47;q_auto:low&amp;#47;v1570124593&amp;#47;https:&amp;#47;&amp;#47;uglyduck.ca&amp;#47;public&amp;#47;images&amp;#47;aqua-ui-css-buttons.webp&amp;#39;&quot; alt=&quot;Aqua UI buttons&quot;&amp;#62;
- &amp;#60;figcaption&amp;#62;&amp;#60;b&amp;#62;Click the placeholder to load in the real image&amp;#60;&amp;#47;b&amp;#62;&amp;#60;br&amp;#62;
- Example Dribbble shot for testing. Feel free to click the default image in order to load the correct Dribbble source.
- &amp;#60;a href=&quot;https:&amp;#47;&amp;#47;res.cloudinary.com&amp;#47;bradtaunt&amp;#47;image&amp;#47;fetch&amp;#47;q_auto:low&amp;#47;v1570124593&amp;#47;https:&amp;#47;&amp;#47;uglyduck.ca&amp;#47;public&amp;#47;images&amp;#47;aqua-ui-css-buttons.webp&quot;&amp;#62;View full size image&amp;#60;&amp;#47;a&amp;#62;.
- &amp;#60;&amp;#47;figcaption&amp;#62;
-&amp;#60;&amp;#47;figure&amp;#62;
+&lt;p&gt;Now to see the final code in all it&amp;#8217;s glory:&lt;/p&gt;
+&lt;h3 id=&quot;html&quot;&gt;HTML&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;nav&amp;#62;
+ &amp;#60;ul&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Home&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;About&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Services&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;ul&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Design&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Development&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Custom Pizzas&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;&amp;#47;ul&amp;#62;
+ &amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Contact&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
+ &amp;#60;&amp;#47;ul&amp;#62;
+&amp;#60;&amp;#47;nav&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;the-image-element&quot;&gt;The Image Element&lt;/h3&gt;
-&lt;p&gt;This is where the &lt;em&gt;magic&lt;/em&gt; happens. By default all images will target the default placeholder image: &lt;code&gt;placeholder-image.webp&lt;/code&gt;. This image is just 16KB in size and only needs to load in once.&lt;/p&gt;
-&lt;p&gt;Next we include an inline &lt;code&gt;onclick&lt;/code&gt; attribute, which targets the current image&amp;#8217;s &lt;code&gt;src&lt;/code&gt; attribute and changes it based on the URL provided. (Note: I use Cloudinary for my blog&amp;#8217;s image storage, but you could even host your images relative to your root directory if you wanted)&lt;/p&gt;
-&lt;p&gt;Now when a user clicks on the placeholder image, the inline &lt;code&gt;onclick&lt;/code&gt; pulls in the correct image in it&amp;#8217;s place.&lt;/p&gt;
-&lt;h3 id=&quot;disabled-javascript&quot;&gt;Disabled JavaScript&lt;/h3&gt;
-&lt;p&gt;For users who have JavaScript blocked or disabled we have a decent backup. By including a direct link to the image URL in the &lt;code&gt;figcaption&lt;/code&gt; element, we give the user the ability to still view the image in a separate browser tab.&lt;/p&gt;
-&lt;p&gt;You could get extra fancy and include some &lt;code&gt;noscript&lt;/code&gt; tags in your project that maybe render a different placeholder image mentioning they have JavaScript disabled etc, but for my needs that would be overkill.&lt;/p&gt;
-&lt;h2 id=&quot;cool---but-why-do-this&quot;&gt;Cool - But Why Do This?&lt;/h2&gt;
-&lt;p&gt;Bandwidth is a limited resource for a lot of users around the world. As designers and developers it&amp;#8217;s best to respect this fact and only load in elements as the user &lt;em&gt;requires&lt;/em&gt; them. Every little bit helps.&lt;/p&gt;</description>
- <link>https://btxx.org/load-image-on-click</link>
- <guid isPermaLink="false">https://btxx.org/load-image-on-click</guid>
- <pubDate>Thu, 25 Mar 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Linux Mint MacBook Air Setup</title>
- <description>&lt;h1 id=&quot;linux-mint-macbook-air-setup&quot;&gt;Linux Mint MacBook Air Setup&lt;/h1&gt;
-&lt;p&gt;2020-08-16&lt;/p&gt;
-&lt;p&gt;I don&amp;#8217;t like the idea of throwing away old or outdated tech (within reason), so I try to find a new purpose for some of my &amp;#8220;retired&amp;#8221; devices. This article will cover how to switch over a mid-2011 model MacBook Air to utilize Linux Mint.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: This setup will completely wipe your existing disk and create a fresh install of Linux Mint on the SSD. You have been warned.&lt;/p&gt;
-&lt;h2 id=&quot;the-specs&quot;&gt;The Specs&lt;/h2&gt;
-&lt;p&gt;My old MacBook Air has a pretty decent spec sheet:&lt;/p&gt;
+&lt;h3 id=&quot;css&quot;&gt;CSS&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* resets - optional *&amp;#47;
+ul { list-style: none; padding: 0; }
+ul li { display: inline-block; position: relative; }
+
+&amp;#47;* minimal dropdown CSS *&amp;#47;
+ul li &amp;#62; ul {
+ left: -9999px;
+ position: absolute;
+ visibility: hidden;
+}
+ul li:hover &amp;#62; ul, ul li:focus-within &amp;#62; ul {
+ left: 0;
+ visibility: visible;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;live-demo-on-codepen&quot;&gt;Live demo on CodePen&lt;/h2&gt;
+&lt;p&gt;Feel free to check out the live demo on CodePen &lt;a href=&quot;https://codepen.io/bradleytaunt/pen/MRLevy&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;</description>
+ <link>https://btxx.org/minimal-css-menu</link>
+ <guid isPermaLink="false">https://btxx.org/minimal-css-menu</guid>
+ <pubDate>Fri, 26 Apr 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Using a New Domain and Switching Static Hosts</title>
+ <description>&lt;h1 id=&quot;using-a-new-domain-and-switching-static-hosts&quot;&gt;Using a New Domain and Switching Static Hosts&lt;/h1&gt;
+&lt;p&gt;2021-11-25&lt;/p&gt;
+&lt;p&gt;As you can most likely tell by looking at your browser&amp;#8217;s URL - I&amp;#8217;ve swapped over to a new domain for my personal website: &lt;a href=&quot;https://tdarb.org&quot;&gt;tdarb.org&lt;/a&gt;. I&amp;#8217;m a fickle person and this is a random change - but it is one I&amp;#8217;ve been planning to do for some time.&lt;/p&gt;
+&lt;p&gt;Let me give some minor background information and then get into the changes&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;what-about-ugly-duck&quot;&gt;What about Ugly Duck?&lt;/h2&gt;
+&lt;p&gt;I had originally used the &lt;a href=&quot;https://uglyduck.ca&quot;&gt;uglyduck.ca&lt;/a&gt; domain for this personal blog as a &lt;em&gt;loosely&lt;/em&gt; based reference to the &amp;#8220;ugly duckling&amp;#8221; story. This was based on the fact that I &lt;em&gt;mainly&lt;/em&gt; focus on CSS and making the web more visually appealing - or beautiful, if you will - so the comparison to an ugly duckling becoming a swan made sense in my oddball mind.&lt;/p&gt;
+&lt;p&gt;But overtime I came to somewhat dislike[^1] it and set out to change it.&lt;/p&gt;
+&lt;h2 id=&quot;so-what-the-heck-is-tdarb&quot;&gt;So what the heck is &amp;#8220;tdarb&amp;#8221;?&lt;/h2&gt;
+&lt;p&gt;I explain this on my updated &lt;a href=&quot;/about&quot;&gt;about page&lt;/a&gt; but I will mention it again here:&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;tdarb&lt;/strong&gt;[^2] is simply my first name and last initial spelt backwards – Brad T. Mind blowing, right?&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ve switched over to this naming convention to avoid having such a random &amp;#8220;phrase&amp;#8221; domain name while at the same time having a little more fun than just &lt;em&gt;mylegalname.com&lt;/em&gt;. I also am a sucker for &lt;code&gt;.org&lt;/code&gt; TLDs (although I don&amp;#8217;t know why).&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m sure some readers will prefer it, some will be indifferent and others will hate it. Either way, it&amp;#8217;s my personal site and I&amp;#8217;ll do as I please!&lt;/p&gt;
+&lt;h2 id=&quot;breaking-my-website-for-a-day-and-fixing-potential-link-rot&quot;&gt;Breaking My Website for a Day and Fixing Potential Link Rot&lt;/h2&gt;
+&lt;p&gt;The transition I made yesterday from &lt;a href=&quot;https://uglyduck.ca&quot;&gt;uglyduck.ca&lt;/a&gt; to &lt;a href=&quot;https://tdarb.org&quot;&gt;tdarb.org&lt;/a&gt; was &lt;em&gt;rough&lt;/em&gt;. I thought that I could simply launch the identical content on the new domain, test everything, and then simply set a URL redirect from the old domain through Namecheap[^3]. Oh boy, was I wrong!&lt;/p&gt;
+&lt;p&gt;The bulk of my evening was spent figuring out why the redirect wouldn&amp;#8217;t propagate across all networks and why multiple forwards were occurring. In the end, I just tossed &lt;a href=&quot;https://uglyduck.ca&quot;&gt;uglyduck.ca&lt;/a&gt; back up on Netlify and set global redirect rules in their handy-dandy &lt;code&gt;_redirects&lt;/code&gt; file. (I will write-up a small post about this soon to help others). After a few minutes everything was working perfectly fine and best of all - no broken links or potential link rot! All thanks to the &lt;code&gt;:splat&lt;/code&gt; parameter in the redirects.&lt;/p&gt;
+&lt;p&gt;As for my RSS feed, everything &lt;em&gt;should&lt;/em&gt; forward correctly? I state that as a question since I can&amp;#8217;t confirm this 100% and RSS feeds are not my expertise. If I broke this for any of you, I apologize. I will pray to the internet gods for your forgiveness&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;from-github-to-sourcehut&quot;&gt;From Github to Sourcehut&lt;/h2&gt;
+&lt;p&gt;That&amp;#8217;s right, I&amp;#8217;ve switched this static site&amp;#8217;s hosting over to &lt;a href=&quot;https://srht.site&quot;&gt;sourcehut pages&lt;/a&gt; and couldn&amp;#8217;t be happier. My reasons for switching:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;I&amp;#8217;m happy to pay and support the ongoing work at sourcehut (open source alternatives to Netlify, Github, etc. is important)&lt;/li&gt;
+&lt;li&gt;I&amp;#8217;ve been wanting to become more comfortable with the sourcehut ecosystem - there might be projects in the future I would like to help with on that platform and it helps if you know how to use it :P&lt;/li&gt;
+&lt;li&gt;Sourcehut pages are fast - I mean &lt;em&gt;really&lt;/em&gt; fast&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;It &lt;em&gt;was&lt;/em&gt; slightly confusing for my ape brain to figure out the setup, but I got there eventually. I plan to do a detailed step-by-step tutorial to help those like me who may find it a little daunting. It&amp;#8217;s well worth the minor effort.&lt;/p&gt;
+&lt;h2 id=&quot;the-lifespan-of-uglyduck.ca&quot;&gt;The Lifespan of uglyduck.ca&lt;/h2&gt;
+&lt;p&gt;I still have ownership of the old domain for almost another full year. I feel like that gives users enough time to adjust and become accustomed to the new one. My plan is to let the domain die entirely when it goes up for renewal but who knows - I might very well keep it going if the mood strikes me.&lt;/p&gt;
+&lt;h2 id=&quot;thats-all-folks&quot;&gt;That&amp;#8217;s All Folks!&lt;/h2&gt;
+&lt;p&gt;I don&amp;#8217;t have much else to report besides having made minor tweaks to this website design (yet again) and I have also finally added a picture of &lt;a href=&quot;/uses&quot;&gt;workstation on the &amp;#8220;Things I Use&amp;#8221; page&lt;/a&gt;. That&amp;#8217;s it.&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;not &lt;em&gt;hate&lt;/em&gt; - just discontent&lt;/li&gt;
+&lt;li&gt;pronounced tee-darb&lt;/li&gt;
+&lt;li&gt;Namecheap support were very helpful - this was more of a limitation of what their redirects can do&lt;/li&gt;
+&lt;/ol&gt;</description>
+ <link>https://btxx.org/minor-website-changes</link>
+ <guid isPermaLink="false">https://btxx.org/minor-website-changes</guid>
+ <pubDate>Thu, 25 Nov 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Installing Older Versions of MongoDB on Arch Linux</title>
+ <description>&lt;h1 id=&quot;installing-older-versions-of-mongodb-on-arch-linux&quot;&gt;Installing Older Versions of MongoDB on Arch Linux&lt;/h1&gt;
+&lt;p&gt;2023-09-11&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ve recently been using Arch Linux for my main work environment on my ThinkPad X260. It&amp;#8217;s been great. As someone who is constantly drawn to minimalist operating systems such as Alpine or OpenBSD, it&amp;#8217;s nice to use something like Arch that boasts that same minimalist approach but with greater documentation&amp;#47;support.&lt;/p&gt;
+&lt;p&gt;Another major reason for the switch was the need to run older versions of &amp;#8220;services&amp;#8221; locally. Most people would simply suggest using Docker or vmm, but I personally run projects in self-contained, personalized directories on my system itself. I am aware of the irony in that statement&amp;#8230; but that&amp;#8217;s just my personal preference.&lt;/p&gt;
+&lt;p&gt;So I thought I would share my process of setting up an older version of MongoDB (3.4 to be precise) on Arch Linux.&lt;/p&gt;
+&lt;h2 id=&quot;aur-to-the-rescue&quot;&gt;AUR to the Rescue&lt;/h2&gt;
+&lt;p&gt;You will need to target the specific version of MongoDB using the very awesome AUR packages:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;yay -S mongodb34-bin
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Follow the instructions and you&amp;#8217;ll be good to go. Don&amp;#8217;t forget to create the &lt;code&gt;&amp;#47;data&amp;#47;db&lt;/code&gt; directory and give it proper permissions:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;mkdir -p &amp;#47;data&amp;#47;db&amp;#47;
+chmod -R 777 &amp;#47;date&amp;#47;db
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;what-about-my-tools&quot;&gt;What About My &amp;#8220;Tools&amp;#8221;?&lt;/h2&gt;
+&lt;p&gt;If you plan to use MongoDB, then you most likely want to utilize the core database tools (restore, dump, etc). The problem is you can&amp;#8217;t use the default &lt;code&gt;mongodb-tools&lt;/code&gt; package when trying to work with older versions of MongoDB itself. The package will complain about conflicts and ask you to override your existing version. This is &lt;em&gt;not&lt;/em&gt; what we want.&lt;/p&gt;
+&lt;p&gt;So, you&amp;#8217;ll have to build from source locally:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;git clone https:&amp;#47;&amp;#47;github.com&amp;#47;mongodb&amp;#47;mongo-tools
+cd mongodb-tools
+.&amp;#47;make build
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Then you&amp;#8217;ll need to copy the built executables into the proper directory in order to use them from the terminal:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;cp bin&amp;#47;* &amp;#47;usr&amp;#47;local&amp;#47;bin&amp;#47;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;And that&amp;#8217;s it! Now you can run &lt;code&gt;mongod&lt;/code&gt; directly or use &lt;code&gt;systemctl&lt;/code&gt; to enable it by default. Hopefully this helps anyone else curious about running older (or even outdated!) versions of MongoDB.&lt;/p&gt;</description>
+ <link>https://btxx.org/mongodb-arch</link>
+ <guid isPermaLink="false">https://btxx.org/mongodb-arch</guid>
+ <pubDate>Mon, 11 Sep 2023 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Why I Stopped Using an External Monitor</title>
+ <description>&lt;h1 id=&quot;why-i-stopped-using-an-external-monitor&quot;&gt;Why I Stopped Using an External Monitor&lt;/h1&gt;
+&lt;p&gt;2023-03-03&lt;/p&gt;
+&lt;p&gt;For the longest time I&amp;#8217;ve been using a Samsung 27&amp;#8221; UHD monitor as my main display. This monitor was connected to my ThinkPad X260 (in clamshell mode) through the official Lenovo dock. It wasn&amp;#8217;t a bad setup, but I have since changed my ways.&lt;/p&gt;
+&lt;p&gt;Instead, I now &lt;em&gt;only&lt;/em&gt; use the X260&amp;#8217;s panel as my main display. Let me explain my reasoning&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;the-switch-to-suckless&quot;&gt;The Switch to Suckless&lt;/h2&gt;
+&lt;p&gt;Over the past year I switched away from a traditional desktop environment to a window manager - &lt;a href=&quot;https://dwm.suckless.org/&quot;&gt;dwm&lt;/a&gt; to be specific. This also involved changing most of my daily software programs to utilize the full suckless &amp;#8220;suite&amp;#8221;. In doing so, the shift away from floating windows and virtualized desktops happened quickly.&lt;/p&gt;
+&lt;p&gt;I continued to use my UHD monitor with this new environment but slowly started running into minor (yet still inconvenient) roadblocks:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Processor: &lt;strong&gt;1.7GHz dual-core Intel Core i5&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Memory: &lt;strong&gt;4GB of 1333MHz DDR3&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Graphics: &lt;strong&gt;Advanced Intel HD Graphics 3000&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;SSD: &lt;strong&gt;128 GB&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Tiled mode was not the most optimized for such a large monitor. I found myself defaulting into &amp;#8220;floating&amp;#8221; mode which defeats the purpose of a WM.&lt;/li&gt;
+&lt;li&gt;The screen was almost &lt;em&gt;too&lt;/em&gt; large - making content placed on the far edges of the screen difficult to view at a glance.&lt;/li&gt;
+&lt;li&gt;I stopped using tags, since I ended up piling applications on top of one another in a single view. Again - defeating the point of a WM.&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;And let&amp;#8217;s take a look at the basic system requirements Linux Mint suggests:&lt;/p&gt;
+&lt;p&gt;All of these issues were close to making me ditch the external monitor altogether, but it was my day-to-day job that struck the final blow&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;designing-for-everyday-users&quot;&gt;Designing for Everyday Users&lt;/h2&gt;
+&lt;p&gt;As a UX&amp;#47;UI front-end designer by trade, my job requires me to create and tweak interfaces that essentially go &lt;em&gt;unnoticed&lt;/em&gt; by the end-users. If you finish a task you sought out to complete without even thinking about &lt;em&gt;how&lt;/em&gt; you did it - then I succeeded at my job. The problem is, we designers and developers tend to forget the constraints a majority of our users experience. In this case - screen resolution.&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://www.browserstack.com/guide/ideal-screen-sizes-for-responsive-design&quot;&gt;A study performed by BrowserStack via statcounter (2022)&lt;/a&gt; shows the worldwide market share based on device type:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;2GB RAM&lt;/li&gt;
-&lt;li&gt;Dual Core Processor&lt;/li&gt;
-&lt;li&gt;20GB free disk space&lt;/li&gt;
+&lt;li&gt;58.33% mobile&lt;/li&gt;
+&lt;li&gt;39.65% desktop&lt;/li&gt;
+&lt;li&gt;2.02% tablet&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;We are looking pretty good!&lt;/p&gt;
-&lt;h2 id=&quot;step-1-download-linux-mint&quot;&gt;Step 1: Download Linux Mint&lt;/h2&gt;
-&lt;p&gt;For this setup we will be using the latest, stable version (at this time of writing) of Linux Mint 20 &amp;#8220;Ulyana&amp;#8221; - Xfce which is 20. You can download the necessary files here: &lt;/p&gt;
+&lt;p&gt;The mobile aspect is certainly important, but we are focusing on the desktop data. Of that total the top two screen resolutions are:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://www.linuxmint.com/edition.php?id=283&quot;&gt;Linux Mint 20 &amp;#8220;Ulyana&amp;#8221; - Xfce&lt;/a&gt; [1.8GB]&lt;/li&gt;
+&lt;li&gt;1920×1080 (9.94%)&lt;/li&gt;
+&lt;li&gt;1366×768 (6.22%)&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;step-2-flash-linux-mint-to-usb-stick&quot;&gt;Step 2: Flash Linux Mint to USB Stick&lt;/h2&gt;
-&lt;p&gt;Next we just need to flash the Linux Mint OS to a USB storage device. If you need to purchase some, you can easily find them on Amazon (affliate link):&lt;/p&gt;
+&lt;p&gt;That is a fairly significant chunk of desktop users. Although almost 10% have access to screens set at &lt;code&gt;1920x1080&lt;/code&gt;, I found the amount of those stuck at &lt;code&gt;1366x768&lt;/code&gt; to be quite shocking. Here I was, developing large-set interfaces on an UHD 4K monitor while a large portion of my end-users would never benefit from those &amp;#8220;pixel-perfect&amp;#8221; designs. &lt;/p&gt;
+&lt;p&gt;Hell, some of these users were being shown the &lt;em&gt;tablet&lt;/em&gt;-based view of the applications since our breakpoints were so ridiculously large. Yikes.&lt;/p&gt;
+&lt;p&gt;So, I said screw it and retired the external monitor. Now my X260 is propped up and proudly showing off its 1366x768 display. It only took a day or so to adapt to this new setup and I don&amp;#8217;t think I could go back to another massive display.&lt;/p&gt;
+&lt;p&gt;Here are some benefits at a glance:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://www.amazon.com/gp/product/B00JB3NXIS/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=B00JB3NXIS&amp;amp;linkCode=as2&amp;amp;tag=uglyduck-20&amp;amp;linkId=494f4c1dd4e21782ecb865bcaa5a526b&quot;&gt;Kootion 10 Pack 4GB Flash Drive 4gb USB 2.0 Flash Drives Keychain USB Drive Bulk Thumb Drive Swivel Memory Stick Black&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Download &lt;a href=&quot;https://www.balena.io/etcher/&quot;&gt;Balena Etcher&lt;/a&gt; for your current operating system&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Run the installer&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;I no longer have to worry about &amp;#8220;context switching&amp;#8221; if I decide to un-dock my laptop and work somewhere mobile. The desktop experience remains intact.&lt;/li&gt;
+&lt;li&gt;Working inside &lt;code&gt;dwm&lt;/code&gt; is a much cleaner experience. I mostly operate single applications within their own confined tag - with some exceptions of course.&lt;/li&gt;
+&lt;li&gt;I&amp;#8217;m able to instantly understand frustrations of everyday users while developing new features or tweaking existing UIs. Being able to advocate for our end-users by using legit use cases is extremely helpful. (Removes the &amp;#8220;design by gut-feeling&amp;#8221; mistakes)&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Once installed, open Etcher do the following:&lt;/p&gt;
+&lt;h2 id=&quot;a-little-extreme&quot;&gt;A Little Extreme&lt;/h2&gt;
+&lt;p&gt;Yes, I am aware that I could simply keep the UHD monitor and perform my work within a constrained portion of the screen. The problem that remains is &amp;#8220;quality&amp;#8221;. Most 1366x768 panels are not even close to the level of hi-res found on most 4K monitors. By using such a display I would be cheating myself of the standard experience a good portion of my end-users endure. &lt;/p&gt;
+&lt;p&gt;I want to see the fuzzy text, slightly blurred imagery and muted button shadows. I want to see these things because that&amp;#8217;s how some &lt;em&gt;users&lt;/em&gt; will experience it.&lt;/p&gt;
+&lt;p&gt;Maybe that&amp;#8217;s extreme - but it works for me.&lt;/p&gt;</description>
+ <link>https://btxx.org/monitor</link>
+ <guid isPermaLink="false">https://btxx.org/monitor</guid>
+ <pubDate>Fri, 03 Mar 2023 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Using Multiple CSS Background Images</title>
+ <description>&lt;h1 id=&quot;using-multiple-css-background-images&quot;&gt;Using Multiple CSS Background Images&lt;/h1&gt;
+&lt;p&gt;2018-09-28&lt;/p&gt;
+&lt;p&gt;It isn&amp;#8217;t something developers have a need to do very often, but you &lt;em&gt;can&lt;/em&gt; set multiple background images on a single element.&lt;/p&gt;
+&lt;p&gt;Example:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.element {
+ background: url(&amp;#39;image_path&amp;#39;) center repeat, linear-gradient(transparent 0%, #000 100%) no-repeat;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;What can you do with this? It&amp;#8217;s only limited by your imagination, but I&amp;#8217;m personally a fan of always using as few elements as possible when working on a project.&lt;/p&gt;</description>
+ <link>https://btxx.org/multiple-css-background-images</link>
+ <guid isPermaLink="false">https://btxx.org/multiple-css-background-images</guid>
+ <pubDate>Fri, 28 Sep 2018 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>My Raspberry Pi Desktop</title>
+ <description>&lt;h1 id=&quot;my-raspberry-pi-desktop&quot;&gt;My Raspberry Pi Desktop&lt;/h1&gt;
+&lt;p&gt;2020-09-02&lt;/p&gt;
+&lt;p&gt;I use a Raspberry Pi 4 as my personal daily driver and it&amp;#8217;s pretty great. I know these types of devices tend to be used for smaller pet-projects or fun experiments, but I thought I would share my experience using one as my main computer. Hopefully this can be a solid guide to help others who might be interested in creating a similar setup.&lt;/p&gt;
+&lt;p&gt;My desktop Pi working away on a regular morning:&lt;/p&gt;
+&lt;h2 id=&quot;table-of-contents&quot;&gt;Table of Contents&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;Select your downloaded Linux Mint ISO file&lt;/li&gt;
-&lt;li&gt;Select your USB stick&amp;#47;device as the media&lt;/li&gt;
-&lt;li&gt;Flash media&lt;/li&gt;
-&lt;li&gt;???&lt;/li&gt;
-&lt;li&gt;Profit!!&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#use-case&quot;&gt;My Use Case&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#hardware&quot;&gt;The Hardware&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#software&quot;&gt;The Software&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#stats&quot;&gt;Performance &amp;#38; Stats&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
-&lt;h2 id=&quot;step-3-boot-from-usb&quot;&gt;Step 3: Boot from USB&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;m a web designer and developer by trade. Therefore, I require a decent amount of functionality from my computer - more than just simple web browsing and document editing. When I first set out testing if the RPi4 &lt;em&gt;could&lt;/em&gt; become my main device, I was surprised at how capable the hardware &amp;#47; software was at running all my required applications. My workload comprises of:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Make sure your Macbook Air is turned off&lt;/li&gt;
-&lt;li&gt;Plug your newly flashed USB stick into the MacBook Air&lt;/li&gt;
-&lt;li&gt;Turn on the MacBook Air&lt;/li&gt;
-&lt;li&gt;Immediately hold down the &lt;strong&gt;alt&amp;#47;option&lt;/strong&gt; button (keep holding until the prompt screen is visible)&lt;/li&gt;
-&lt;li&gt;You will be shown drive &amp;#8220;icons&amp;#8221; - you want to select your USB drive (normally the far right icon)&lt;/li&gt;
-&lt;li&gt;Press &lt;strong&gt;Enter&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Select the first item in the list that appears &amp;#8220;Start Linux Mint&amp;#8221;&lt;/li&gt;
+&lt;li&gt;Using Github&amp;#47;Gitlab to pull&amp;#47;push repos, open PRs, etc&lt;/li&gt;
+&lt;li&gt;Run SSG (Jekyll mostly) locally for testing&lt;/li&gt;
+&lt;li&gt;Run multiple WordPress instances locally&lt;/li&gt;
+&lt;li&gt;Edit design files (Photoshop, Illustrator, direct SVGs)&lt;/li&gt;
+&lt;li&gt;Simple web chat &amp;#47; email&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;After this you will boot into a &amp;#8220;live session&amp;#8221; of the Linux Mint operating system.&lt;/p&gt;
-&lt;h2 id=&quot;step-4-installing-linux-mint&quot;&gt;Step 4: Installing Linux Mint&lt;/h2&gt;
-&lt;p&gt;Linux Mint makes it very easy for you to install it&amp;#8217;s OS step-by-step (similar to most other Linux distros). Simply &lt;strong&gt;double-click&lt;/strong&gt; on the &amp;#8220;Install Linux Mint&amp;#8221; CD icon on the main desktop.&lt;/p&gt;
+&lt;p&gt;Basic stuff, but I was originally doubtful of the RPi4 to be able to handle it all smoothly. I&amp;#8217;m happy to say I was wrong.&lt;/p&gt;
+&lt;p&gt;The following hardware list is what I use specifically for my intended use case. I&amp;#8217;m also a sucker for having cool looking SBC builds. By no means is this the &amp;#8220;best setup&amp;#8221; for everyone - I&amp;#8217;m sure other combinations of gear might better suit your own personal needs.&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: products in the hardware section are Amazon affiliate links&lt;/p&gt;
+&lt;/blockquote&gt;
&lt;ul&gt;
-&lt;li&gt;Choose your language. then hit &lt;strong&gt;Continue&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Select your preferred keyboard layout, then hit &lt;strong&gt;Continue&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;&lt;em&gt;Optional&lt;/em&gt;: You might be asked to connect to a WiFi network, if you are set it up now&lt;/li&gt;
-&lt;li&gt;I would suggest downloading the multimedia codecs to make things easier, then hit &lt;strong&gt;Continue&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;For installation type, select &amp;#8220;Erase disk and install Linux Mint&amp;#8221;, then hit &lt;strong&gt;Continue&lt;/strong&gt;
+&lt;li&gt;Raspberry Pi 4&lt;/li&gt;
+&lt;li&gt;X857 V1.0 mSATA SSD Shield Expansion Board (I&amp;#8217;m using the X856)&lt;/li&gt;
+&lt;li&gt;128GB mSATA SSD&lt;/li&gt;
+&lt;li&gt;Acrylic Case with Heatsinks &amp;#38; Fan&lt;/li&gt;
+&lt;li&gt;Raspberry Pi Keyboard &amp;#38; Mouse&lt;/li&gt;
+&lt;li&gt;21.5&amp;#8221; Acer Monitor&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;The 32-bit version of Raspberry Pi OS (&amp;#8216;Debian Buster&amp;#8217; at the time of writing) is my OS of choice. Stable, reliable, and officially supported by the RPi community. It does the job.&lt;/p&gt;
+&lt;p&gt;The Pi has been overclocked to 2GHz in order to squeeze just a &lt;em&gt;little&lt;/em&gt; extra out of the hardware. This has caused zero issues.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m also booting directly from the mSATA SSD (via USB booting) instead of relying on a slower microSD card. You can find tons of tutorials online on how to do the same, but I would recommend this one: &lt;a href=&quot;https://www.tomshardware.com/how-to/boot-raspberry-pi-4-usb&quot;&gt;How to Boot Raspberry Pi 4 From a USB SSD or Flash Drive&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;After that, I simply installed my required apps &amp;#47; configs (where applicable):&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;WARNING: This will wipe your current drive completely - make sure you are okay with this!&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;It will issue you with a warning prompt, simply click &lt;strong&gt;Continue&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Select your timezone, then hit &lt;strong&gt;Continue&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Enter your name, a username, a name for your computer, and set a password (you will use this to login moving forward)&lt;/li&gt;
-&lt;li&gt;Wait for the installation to complete&lt;/li&gt;
-&lt;li&gt;Once complete, you will be prompted to &lt;strong&gt;reboot your system&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;After a reboot you will be prompted to remove the USB device and then press &lt;strong&gt;Enter&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Welcome to Linux Mint!&lt;/li&gt;
+&lt;li&gt;Chromium (&lt;em&gt;preinstalled&lt;/em&gt;)&lt;/li&gt;
+&lt;li&gt;Firefox ESR&lt;/li&gt;
+&lt;li&gt;Pale Moon&lt;/li&gt;
+&lt;li&gt;Code OSS&lt;/li&gt;
+&lt;li&gt;Terminal (&lt;em&gt;preinstalled&lt;/em&gt;)&lt;/li&gt;
+&lt;li&gt;Libre Office Suite&lt;/li&gt;
+&lt;li&gt;Evolution&lt;/li&gt;
+&lt;li&gt;Figma (Web - no install needed)&lt;/li&gt;
+&lt;li&gt;Apache2 &amp;#47; MySQL&lt;/li&gt;
+&lt;li&gt;Blueman (helpful GUI for bluetooth)&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
-&lt;p&gt;Linux Mint is not only a great operating system, but it is also an excellent starting point for newcomers to Linux in general. It&amp;#8217;s stable enough to be used as a daily driver and popular enough that most minor issues can be solved with a quick internet search.&lt;/p&gt;
-&lt;p&gt;Hopefully this inspires others to try &amp;#8220;recycling&amp;#8221; their older Apple products instead of tossing them away or having them collect dust.&lt;/p&gt;</description>
- <link>https://btxx.org/linux-mint-macbook-air</link>
- <guid isPermaLink="false">https://btxx.org/linux-mint-macbook-air</guid>
- <pubDate>Sun, 16 Aug 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>The Linux Desktop is Hard to Love</title>
- <description>&lt;h1 id=&quot;the-linux-desktop-is-hard-to-love&quot;&gt;The Linux Desktop is Hard to Love&lt;/h1&gt;
-&lt;p&gt;2022-07-14&lt;/p&gt;
-&lt;p&gt;I want to love the &amp;#8220;Linux Desktop&amp;#8221;. I really do. But I&amp;#8217;ve come to the realization that what I love is the &lt;em&gt;idea&lt;/em&gt; of the Linux Desktop. The community. The security and core focus on open source. The customizable environments. Tweaking as much or as little of the operating system as I please!&lt;/p&gt;
-&lt;p&gt;I just can&amp;#8217;t &lt;em&gt;stick with it&lt;/em&gt;. I always end up back on macOS. And I&amp;#8217;m starting to understand why.&lt;/p&gt;
-&lt;h2 id=&quot;what-the-linux-desktop-gets-right&quot;&gt;What the Linux Desktop Gets Right&lt;/h2&gt;
-&lt;p&gt;To be fair, there is an incredible amount of things that the Linux desktop does really well:&lt;/p&gt;
+&lt;p&gt;What my plain desktop looks like:&lt;/p&gt;
+&lt;p&gt;Using this build day-to-day, I can honestly say I don&amp;#8217;t hit any hiccups or lag at all. Multiple applications and WordPress instances are running in the background, while 10-15 tabs are open in the Chromium browser. The little Pi just chugs along without breaking a sweat.&lt;/p&gt;
+&lt;p&gt;My average CPU temperature sits around 51&amp;#176; (with heatsinks &amp;#38; fan active) while CPU usage never really cranks past 90% during even &amp;#8220;intensive&amp;#8221; processes.&lt;/p&gt;
+&lt;p&gt;Since &lt;em&gt;actual&lt;/em&gt; data speaks louder than anecdotal chit-chat, I performed a very simple read&amp;#47;write test on my mSATA SSD.&lt;/p&gt;
+&lt;p&gt;First, clear the cache to avoid conflicting data:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sync; echo 3 | sudo tee &amp;#47;proc&amp;#47;sys&amp;#47;vm&amp;#47;drop_caches
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;write&quot;&gt;Write&lt;/h3&gt;
+&lt;p&gt;Write script run:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;dd if=&amp;#47;dev&amp;#47;zero of=~&amp;#47;test.tmp bs=500K count=1024
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Write output:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;524288000 bytes (524 MB, 500 MiB) copied, 1.95478 s, 268 MB&amp;#47;s
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;read&quot;&gt;Read&lt;/h3&gt;
+&lt;p&gt;Read script:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;dd if=~&amp;#47;test.tmp of=&amp;#47;dev&amp;#47;null bs=500K count=1024
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Read output:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;524288000 bytes (524 MB, 500 MiB) copied, 0.770993 s, 680 MB&amp;#47;s
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;This gives a total read&amp;#47;write value of: &lt;strong&gt;268 MB &amp;#47; 680 MB&lt;/strong&gt; per second. Compare that to average microSD card speeds floating around &lt;strong&gt;22 MB &amp;#47; 170MB&lt;/strong&gt; per second and you can see (and feel) the massive speed difference. Things are just snappier.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: Obviously extremely high-end (read: expensive) microSD cards &lt;em&gt;might&lt;/em&gt; hit read&amp;#47;write speeds similar to that of an SSD. The issue is that you are more likely to corrupt or reach end-of-life with a microSD card - hence why I don&amp;#8217;t recommend them.&lt;/p&gt;
+&lt;h2 id=&quot;final-thoughts&quot;&gt;Final Thoughts&lt;/h2&gt;
+&lt;p&gt;I love that I can use a fairly cheap Raspberry Pi 4 as my main, personal desktop. Of course, some people might roll their eyes at this build and say, &amp;#8220;why not just get a cheaper, more powerful laptop off eBay?&amp;#8221;. To that I would respond: &lt;em&gt;you&amp;#8217;re missing the point&lt;/em&gt;. &lt;/p&gt;
+&lt;p&gt;It was fun to put together this simple desktop. The fact that it runs fast and stable enough to be my daily driver is a great bonus. If this build interests you at all, I highly recommend giving it a go.&lt;/p&gt;</description>
+ <link>https://btxx.org/my-pi-desktop</link>
+ <guid isPermaLink="false">https://btxx.org/my-pi-desktop</guid>
+ <pubDate>Wed, 02 Sep 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>My Static Blog Publishing Setup and an Apology to RSS Subscribers</title>
+ <description>&lt;h1 id=&quot;my-static-blog-publishing-setup-and-an-apology-to-rss-subscribers&quot;&gt;My Static Blog Publishing Setup and an Apology to RSS Subscribers&lt;/h1&gt;
+&lt;p&gt;2022-03-21&lt;/p&gt;
+&lt;p&gt;In case you missed it, this website is now generated with pure HTML &amp;#38; CSS. Although, generated isn&amp;#8217;t the proper way to describe it anymore. &lt;em&gt;Written&lt;/em&gt; is a better description.&lt;/p&gt;
+&lt;p&gt;No more Markdown files. No more build scripts. No more Jekyll. Clean, simple, static HTML &amp;#38; CSS is my &amp;#8220;CMS&amp;#8221;. More on that in a moment. First, I must apologize.&lt;/p&gt;
+&lt;h2 id=&quot;im-sorry-dear-rss-subscribers&quot;&gt;I&amp;#8217;m Sorry Dear RSS Subscribers&lt;/h2&gt;
+&lt;p&gt;RSS feeds are tricky things for me personally. I always botch them with a site redesign or a re-structure of my previous posts. Those of you subscribed via RSS were likely bombarded with post spam when I rebuilt this website. Sorry about that - I know how annoying that can be.&lt;/p&gt;
+&lt;p&gt;Fortunately, that all stops today. Moving forward my RSS feed (Atom) will be edited manually with every new post I write. Each entry will feature the post title, post url, and post date. No summaries or full-inline content will be included (since that would involve a great amount of extra overhead). RSS subs will need to follow the link directly if they are interested in the article itself. I hope this doesn&amp;#8217;t anger too many readers&amp;#8230;&lt;/p&gt;
+&lt;p&gt;Again, sorry everyone.&lt;/p&gt;
+&lt;h2 id=&quot;what-is-this-new-blog-system&quot;&gt;What is this New Blog &amp;#8220;System&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;This publishing flow isn&amp;#8217;t for everyone and is less flexible than pre-existing static site generators (referred to as SSGs moving forward). For me though, it works. I find it more flexible than most SSGs.&lt;/p&gt;
+&lt;p&gt;There are a couple articles that explain the reasoning behind this system better than I could (plus, why would I repeat the same points?):&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Complete user control&lt;/li&gt;
-&lt;li&gt;Ability to drastically change the desktop UI
+&lt;li&gt;&lt;a href=&quot;http://john.ankarstrom.se/html/&quot;&gt;Writing HTML in HTML&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://blog.steren.fr/2020/my-stack-will-outlive-yours/&quot;&gt;My stack will outlive yours&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;So, what does my blog-posting system look like?&lt;/p&gt;
+&lt;h2 id=&quot;simple-explanation&quot;&gt;Simple Explanation&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;Copy an existing article&amp;#8217;s &lt;code&gt;HTML&lt;/code&gt; file&lt;/li&gt;
+&lt;li&gt;Change file name, edit the page title, heading, post date and comment link&lt;/li&gt;
+&lt;li&gt;Write the new article content&lt;/li&gt;
+&lt;li&gt;Make manual new entry in RSS feed&lt;/li&gt;
+&lt;li&gt;Save changes, push to git repo&lt;/li&gt;
+&lt;li&gt;Sync new file(s) &amp;#47; changes to remote server&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;Pretty simple, eh? Let&amp;#8217;s break things down into greater detail though&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;detailed-explanation&quot;&gt;Detailed Explanation&lt;/h2&gt;
+&lt;h4 id=&quot;text-editor&quot;&gt;Text Editor&lt;/h4&gt;
+&lt;p&gt;I code and write everything exclusively in Sublime Text on my MacBook Air. I know, it&amp;#8217;s not an open source editor, but I love how incredibly fast and intuitive it is. I used VSCode in the past but ended up requiring far too many plugins to get things setup the way I like it. Sublime Text works best for me even right out of the box. (I do need Emmet and theming changes though).&lt;/p&gt;
+&lt;p&gt;I perform the following for a new article:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Gnome, KDE, XFCE, etc.&lt;/li&gt;
+&lt;li&gt;Copy an existing article, ie. &lt;code&gt;blog-post-1.html&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Rename article file name, ie. &lt;code&gt;blog-post-2.html&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Open this newly created file and change:
+&lt;ul&gt;
+&lt;li&gt;page &lt;code&gt;title&lt;/code&gt; tag&lt;/li&gt;
+&lt;li&gt;page &lt;code&gt;h1&lt;/code&gt; heading and top bar text&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;time&lt;/code&gt; tag to match publish date&lt;/li&gt;
+&lt;li&gt;comment &lt;code&gt;mailto:&lt;/code&gt; link url&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Overall good and welcoming communities&lt;/li&gt;
-&lt;li&gt;Extensive documentation for almost everything&lt;/li&gt;
+&lt;li&gt;Start writing content inside the &lt;code&gt;article&lt;/code&gt; section&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;These things make Linux a solid experience overall - but not a &lt;em&gt;great&lt;/em&gt; one&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;what-the-linux-desktop-gets-wrong&quot;&gt;What the Linux Desktop Gets Wrong&lt;/h2&gt;
-&lt;p&gt;If I had to summarize in a word what Linux lacks compared to macOS it would be: &lt;em&gt;cohesion&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;Apple&amp;#8217;s macOS keeps a solid consistency throughout its entire design. Everything looks and feels like it is part of the same system. Which is what a fully-fledged OS &lt;em&gt;should&lt;/em&gt; feel like. The argument can be made that macOS suffers some fragmentation with things like &lt;code&gt;homebrew&lt;/code&gt;, applications directly from developers vs. applications via the Mac App Store.&lt;/p&gt;
-&lt;p&gt;While this is true, I believe Linux desktops suffer far worse in terms of fragmented systems. Users building applications from source, &lt;code&gt;snap&lt;/code&gt; packages, &lt;code&gt;flathub&lt;/code&gt; packages, custom package managers shipped with separate distros, etc. And with this fragmentation comes the constant debates and discussions around which to use and which to avoid.&lt;/p&gt;
-&lt;p&gt;This can become overwhelming for average computer users. This is something we tend to forget in our &amp;#8220;tech hubs&amp;#8221;. Most users want to boot up their machine and get to work. Linux can absolutely do this, but if a user hits a minor snag, then I guarantee they will have more difficulty fixing it compared to an issue found in macOS.&lt;/p&gt;
-&lt;h2 id=&quot;user-experience&quot;&gt;User Experience&lt;/h2&gt;
-&lt;p&gt;Design is important. The user experience will make or break an operating system. This is another issue I&amp;#8217;ve found with many Linux desktops.&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s take Bluetooth for example. It works flawlessly in macOS. I have never had a single device bug-out or refuse to connect. Devices connect almost immediately when pairing. The UI is intuitive and gives the user clear feedback to what the system is doing while pairing, disconnecting, and so on.&lt;/p&gt;
-&lt;p&gt;Now, compare this to an average Linux DE experience - not so seamless. The fact that some distros require you to hop into a terminal in order to properly configure Bluetooth is pretty terrible. Sure, most have GUIs setup similar to that of macOS, but I find myself time and time again needing to pop open that trusty ol&amp;#8217; Terminal. This is fine for someone like myself, but for the average computer user? No way.&lt;/p&gt;
-&lt;p&gt;Looking for another example? Printers. Yes, printers are terrible machines created in the depths of Hell itself, but they are a necessary evil. And again, macOS handles &amp;#8220;plug-and-play&amp;#8221; printer functionality like a champ. Linux on the other hand is a mixed bag. I&amp;#8217;ve had some luck with specific Linux distros working with printers in this &amp;#8220;plug-and-play&amp;#8221; fashion, while others become a battle of attrition[^1]. Let&amp;#8217;s not even begin to talk about wireless &lt;em&gt;only&lt;/em&gt; printers and setting up their proper drivers on Linux.&lt;/p&gt;
-&lt;h2 id=&quot;quality-hardware&quot;&gt;Quality Hardware&lt;/h2&gt;
-&lt;p&gt;Another advantage macOS has over most other Linux desktops is tailored hardware. Apple produces the hardware created to run their own operating system, meaning it was specifically built for that task. Linux desktops are designed to run on almost any[^2] piece of hardware. Though this is fantastic in terms of technological sustainability (avoids dumping old devices when they lose &amp;#8220;support&amp;#8221;) it ends up causing more support issues. Needing to support such a wide range of chip sets and drivers spreads the focus on a streamlined UX a little more thin. It becomes difficult to perfect a cohesive experience user-to-user when some many variables can be different. I should note that some distros[^3] are making fantastic strides in this area but are still far from ideal.&lt;/p&gt;
-&lt;h2 id=&quot;i-still-use-linux&quot;&gt;I Still Use Linux&lt;/h2&gt;
-&lt;p&gt;I might have attacked the overall Linux desktop experience in favor of macOS a little harshly in this post, but it&amp;#8217;s a simple reflection of a individual who has used both extensively. I still work with multiple Linux machines daily. I still &lt;em&gt;like&lt;/em&gt; using Linux.&lt;/p&gt;
-&lt;p&gt;I just don&amp;#8217;t &lt;em&gt;love&lt;/em&gt; it.&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;People swear by CUPS working well on Linux, but this has caused issues for me in the past as well. Unsure why macOS handles it fine&amp;#8230;&lt;/li&gt;
-&lt;li&gt;Depending on the desired distro, resources required, etc.&lt;/li&gt;
-&lt;li&gt;A couple that come to mind are Zorin OS and elementary OS&lt;/li&gt;
-&lt;/ol&gt;</description>
- <link>https://btxx.org/linux-love</link>
- <guid isPermaLink="false">https://btxx.org/linux-love</guid>
- <pubDate>Thu, 14 Jul 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Installing Custom Fonts on Linux from the Command Line</title>
- <description>&lt;h1 id=&quot;installing-custom-fonts-on-linux-from-the-command-line&quot;&gt;Installing Custom Fonts on Linux from the Command Line&lt;/h1&gt;
-&lt;p&gt;2022-09-20&lt;/p&gt;
-&lt;p&gt;Installing custom fonts is a fairly streamlined feature on operating systems like MacOS and Windows. Linux, on the other hand, struggles to make this workflow &lt;em&gt;easy&lt;/em&gt; for everyday users. Many newcomers tend to get frustrated with using the default &amp;#8220;Fonts&amp;#8221; application managers shipped with most Linux distros.&lt;/p&gt;
-&lt;p&gt;But I&amp;#8217;m here to tell you to &lt;strong&gt;ditch&lt;/strong&gt; those GUI font installers. Let&amp;#8217;s install our custom fonts in the command line!&lt;/p&gt;
-&lt;h2 id=&quot;get-your-font-files&quot;&gt;Get Your Font Files&lt;/h2&gt;
-&lt;p&gt;You can&amp;#8217;t install custom fonts if you don&amp;#8217;t have any. For this tutorial we are going to assume that we are trying to install a typeface set named &lt;code&gt;LinuxFont&lt;/code&gt;. We are going to assume that we have already downloaded and extracted a folder named &lt;code&gt;LinuxFont&lt;/code&gt; into our &lt;code&gt;Downloads&lt;/code&gt; directory.&lt;/p&gt;
-&lt;p&gt;Inside this hypothetical folder is a collection of &lt;code&gt;OTF&lt;/code&gt; (opentype) font files. This will be important information in a moment.&lt;/p&gt;
-&lt;h2 id=&quot;terminal-time&quot;&gt;Terminal Time&lt;/h2&gt;
-&lt;p&gt;Now our goal is to simply copy this new typeface folder into our user font directory. Open Terminal and run the following from your &lt;code&gt;Downloads&lt;/code&gt; directory:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo cp -r LinuxFont &amp;#47;usr&amp;#47;local&amp;#47;share&amp;#47;fonts&amp;#47;opentype&amp;#47;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: If your font files are NOT opentype format, be sure to copy your files to the proper directory (truetype for TTF, etc.)&lt;/p&gt;
-&lt;p&gt;Next we need to make sure we have full read and write privileges for this new folder:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo chmod -R 0777 &amp;#47;usr&amp;#47;local&amp;#47;share&amp;#47;fonts&amp;#47;opentype&amp;#47;LinuxFont
+&lt;p&gt;Once the article is complete, I add a static entry in my &lt;code&gt;feed.xml&lt;/code&gt; and run a crude rsync script. More on that below.&lt;/p&gt;
+&lt;h4 id=&quot;git&quot;&gt;Git&lt;/h4&gt;
+&lt;p&gt;Normally I would pull, commit and push directly in my Terminal - but lately I&amp;#8217;ve been enjoying my time using Sublime Merge. I&amp;#8217;m a sucker for visually appealing GUI applications and Merge is the perfect balance of simplicity and beauty. I recommend it if you haven&amp;#8217;t tried it yet.&lt;/p&gt;
+&lt;h4 id=&quot;hosting&quot;&gt;Hosting&lt;/h4&gt;
+&lt;p&gt;This blog is now hosted through NearlyFreeSpeech. I could opt for a free service like Netlify or DigitalOcean Apps but I feel it&amp;#8217;s important to help support communities that align with my own core beliefs. From their &lt;a href=&quot;https://www.nearlyfreespeech.net/about/&quot;&gt;about page&lt;/a&gt;:&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;NearlyFreeSpeech.NET is about three things: fairness, innovation, and free speech.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;Hard to argue with those principles. If you&amp;#8217;re feeling generous, I&amp;#8217;d greatly appreciate anyone who considers contributing to &lt;a href=&quot;https://www.nearlyfreespeech.net/contribute/tdarb.org&quot;&gt;offset this website&amp;#8217;s hosting costs through NearlyFreeSpeech&lt;/a&gt; (code: tdarb). No money is directly handed to me, it pays NFS directly for hosting fees. Donate if you feel like this humble blog of mine has helped you in any way. No pressure!&lt;/p&gt;
+&lt;p&gt;NFS gives me server access via &lt;code&gt;SSH&lt;/code&gt; (and even &lt;code&gt;SFTP&lt;/code&gt; if I desire) which makes things simple to sync my local files with production code. This is handled via rsync with a basic &lt;code&gt;deploy.sh&lt;/code&gt; script:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;rsync -vrzc --exclude &amp;#39;deploy.sh&amp;#39; --exclude &amp;#39;.git&amp;#39; --delete .&amp;#47; username@my.remote.nfs.server:
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;The last thing we need to do is reload the font cache on our system:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo fc-cache -fv
+&lt;p&gt;The included parameters ensure files with a conflicting checksum are updated on the server, instead of re-syncing all the files every time the script runs. That would be overkill.&lt;/p&gt;
+&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
+&lt;p&gt;I love this new setup. It&amp;#8217;s portable, lightweight, has zero dependencies, and gives me the opportunity to write directly in HTML. Others may find this workflow idiotic or cumbersome but I couldn&amp;#8217;t disagree more. Site wide changes can be made with simple &lt;code&gt;Find&amp;#47;Replace&lt;/code&gt; actions or even whipping up a basic script. Things should be as complex as you wish to make them!&lt;/p&gt;
+&lt;p&gt;At the end of the day, anything that helps you be more efficient and gets you producing more content is a winning strategy in my book. Who knows, this concept could even inspire one random reader out there to do the same.&lt;/p&gt;</description>
+ <link>https://btxx.org/my-static-blog-publishing-setup</link>
+ <guid isPermaLink="false">https://btxx.org/my-static-blog-publishing-setup</guid>
+ <pubDate>Mon, 21 Mar 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>CSS: Indenting Text</title>
+ <description>&lt;h1 id=&quot;css-indenting-text&quot;&gt;CSS: Indenting Text&lt;/h1&gt;
+&lt;p&gt;2019-04-05&lt;/p&gt;
+&lt;p&gt;A lot of developers tend to do the bare minimum when it comes to implementing proper website typography. This isn&amp;#8217;t an insult - I&amp;#8217;m happy that typography is given any thought at all during development, I just believe more can always be done to improve upon it.&lt;/p&gt;
+&lt;p&gt;In today&amp;#8217;s &lt;em&gt;TypeTip&lt;/em&gt; we&amp;#8217;re going to play around with the &lt;code&gt;text-indent&lt;/code&gt; property, look into when it&amp;#8217;s best to use it and how to implement it properly.&lt;/p&gt;
+&lt;h2 id=&quot;the-property-and-browser-support&quot;&gt;The property and browser support&lt;/h2&gt;
+&lt;p&gt;Browser support is actually pretty great for such a regularly over-looked CSS property. All major desktop and mobile browsers support it:&lt;/p&gt;
+&lt;p&gt;Now that doesn&amp;#8217;t mean you should just slap this property on all your type elements and call it a day - there are specific use cases for &lt;code&gt;text-indent&lt;/code&gt; and some basic rules to follow:&lt;/p&gt;
+&lt;h2 id=&quot;use-cases&quot;&gt;Use Cases&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;Increasing readability of large text blocks that would otherwise overwhelm the reader&lt;/li&gt;
+&lt;li&gt;Replicating book or report typography layouts&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;basic-rules&quot;&gt;Basic Rules&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;Best to set this property on inner type children only - meaning items like &lt;code&gt;p&lt;/code&gt; or &lt;code&gt;blockquotes&lt;/code&gt; instead of main headings&lt;/li&gt;
+&lt;li&gt;When used on paragraph tags it&amp;#8217;s best to target only &lt;code&gt;p&lt;/code&gt; elements that directly follow a sibling tag (see &amp;#8220;The CSS&amp;#8221; below)&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
+&lt;p&gt;Adding the property is extremely trivial, all you need is the following:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Best practice for paragraphs *&amp;#47;
+p + p {
+ text-indent: 1rem; &amp;#47;* whatever you want *&amp;#47;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it! You should now have access to your custom typeface in all your applications system wide.&lt;/p&gt;</description>
- <link>https://btxx.org/lf</link>
- <guid isPermaLink="false">https://btxx.org/lf</guid>
- <pubDate>Tue, 20 Sep 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>How to "FLOSS" as a Web Designer</title>
- <description>&lt;h1 id=&quot;how-to-floss-as-a-web-designer&quot;&gt;How to &amp;#8220;FLOSS&amp;#8221; as a Web Designer&lt;/h1&gt;
-&lt;p&gt;2020-02-07&lt;/p&gt;
-&lt;p&gt;I have a profound respect for the open source community. I most likely wouldn&amp;#8217;t have the skills or knowledge I do today with it. Unfortunately, when I was just starting out in &amp;#8220;web dev&amp;#8221; some 10 years ago, proprietary software was the main go-to for a newbie designer. &lt;/p&gt;
-&lt;p&gt;Dreamweaver. Fireworks (those were the days). Photoshop. Illustrator. Adobe products basically had a stranglehold on the web design community. Any company you joined at the time more than likely required you to know and use these tools, making it hard for designers to try out new software for their day-to-day needs. Not to mention the &lt;em&gt;cost&lt;/em&gt; associated with these products.&lt;/p&gt;
-&lt;p&gt;Fast forward a handful of years and we have a lot more options in terms of design &amp;#47; development software (whether Windows, Mac or Linux). UI design tools like Figma, Sketch and Adobe XD have since popped up and become the most popular among designers. New text editors and terminals hit the scene, fighting for developer attention (Atom, Sublime Text, VSCode, LightTable, iTerm2, Hyper, etc.).&lt;/p&gt;
-&lt;p&gt;But what if a designer wanted to go completely FLOSS?&lt;/p&gt;
-&lt;p&gt;Below you will find my own personal list of FLOSS applications I use across design, development and simple document management:&lt;/p&gt;
-&lt;h3 id=&quot;web-browsers&quot;&gt;Web Browsers&lt;/h3&gt;
+&lt;h2 id=&quot;lets-see-it-in-action&quot;&gt;Let&amp;#8217;s see it in action&lt;/h2&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/OGXLEd/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</description>
+ <link>https://btxx.org/ndenting-text-with-css</link>
+ <guid isPermaLink="false">https://btxx.org/ndenting-text-with-css</guid>
+ <pubDate>Fri, 05 Apr 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Using Netlify for Dynamic URL Redirects</title>
+ <description>&lt;h1 id=&quot;using-netlify-for-dynamic-url-redirects&quot;&gt;Using Netlify for Dynamic URL Redirects&lt;/h1&gt;
+&lt;p&gt;2021-12-03&lt;/p&gt;
+&lt;p&gt;With the &lt;a href=&quot;/minor-website-changes/&quot;&gt;recent domain switch&lt;/a&gt; that took place on this website, I needed to have a dependable setup to forward my old domain URLs to the new one. While using something like &amp;#8220;URL forwarding&amp;#8221; through your domain provider could work, it doesn&amp;#8217;t natively support &lt;em&gt;dynamic&lt;/em&gt; linking. Let me explain using a basic example:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Firefox &lt;a href=&quot;https://www.mozilla.org/en-CA/firefox/&quot;&gt;https:&amp;#47;&amp;#47;www.mozilla.org&amp;#47;en-CA&amp;#47;firefox&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Brave &lt;a href=&quot;https://brave.com/&quot;&gt;https:&amp;#47;&amp;#47;brave.com&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;A user clicks on a link that targets a post on your old domain: &lt;code&gt;olddomain.com&amp;#47;random-post&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;You want that link to forward using the same permalink structure: &lt;code&gt;newdomain.com&amp;#47;random-post&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;&amp;#8220;URL forwarding&amp;#8221; through your domain provider &lt;strong&gt;does not&lt;/strong&gt; support this&lt;/li&gt;
&lt;/ul&gt;
-&lt;h3 id=&quot;visual-design&quot;&gt;Visual Design&lt;/h3&gt;
+&lt;p&gt;Simple stuff. So, let&amp;#8217;s breakdown how to easily set this up on Netlify &lt;em&gt;for free&lt;/em&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;setting-up-netlify&quot;&gt;Setting Up Netlify&lt;/h2&gt;
&lt;ul&gt;
-&lt;li&gt;GIMP &lt;a href=&quot;https://www.gimp.org/&quot;&gt;https:&amp;#47;&amp;#47;www.gimp.org&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Inkscape &lt;a href=&quot;https://inkscape.org/&quot;&gt;https:&amp;#47;&amp;#47;inkscape.org&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Pencil &lt;a href=&quot;https://pencil.evolus.vn/&quot;&gt;https:&amp;#47;&amp;#47;pencil.evolus.vn&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h3 id=&quot;code-text-editors&quot;&gt;Code &amp;#47; Text Editors&lt;/h3&gt;
+&lt;li&gt;&lt;p&gt;Create an account (or login to an existing one) and setup a new site[^1]&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Change your &amp;#8220;old&amp;#8221; domain name nameservers to match Netlify&amp;#8217;s (normally done through your domain register)
&lt;ul&gt;
-&lt;li&gt;Brackets &lt;a href=&quot;http://brackets.io/&quot;&gt;http:&amp;#47;&amp;#47;brackets.io&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Visual Studio Code &lt;a href=&quot;https://github.com/Microsoft/vscode&quot;&gt;https:&amp;#47;&amp;#47;github.com&amp;#47;Microsoft&amp;#47;vscode&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Atom &lt;a href=&quot;https://atom.io/&quot;&gt;https:&amp;#47;&amp;#47;atom.io&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;dns1.p03.nsone.net&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;dns2.p03.nsone.net&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;dns3.p03.nsone.net&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;dns4.p03.nsone.net&lt;/code&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Back in Netlify: under &lt;strong&gt;Domain Settings&lt;/strong&gt; you need to add your custom &amp;#8220;old&amp;#8221; domain under the &lt;strong&gt;Custom domains&lt;/strong&gt; section under &lt;strong&gt;Domain management&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Lastly, add the following content inside a &lt;code&gt;_redirects&lt;/code&gt; file (no extension) to your website content&amp;#47;build (changing to your own domains, of course)&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://olddomain.com/*&quot;&gt;https:&amp;#47;&amp;#47;olddomain.com&amp;#47;*&lt;/a&gt; &lt;a href=&quot;https://newdomain.com/:splat&quot;&gt;https:&amp;#47;&amp;#47;newdomain.com&amp;#47;:splat&lt;/a&gt; 301!&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;h3 id=&quot;terminal-shells&quot;&gt;Terminal Shells&lt;/h3&gt;
+&lt;p&gt;That&amp;#8217;s it! Now Netlify will dynamically forward all your pre-existing URLs from your old domain to the new one. No pesky &lt;code&gt;.htaccess&lt;/code&gt; files or running your own basic web server(s)!&lt;/p&gt;
+&lt;p&gt;Hopefully this helps others trying to dynamically redirect their domains without the headache.&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;I normally set this up through Github &amp;#47; git hosting&lt;/li&gt;
+&lt;/ol&gt;</description>
+ <link>https://btxx.org/netlify-urls</link>
+ <guid isPermaLink="false">https://btxx.org/netlify-urls</guid>
+ <pubDate>Fri, 03 Dec 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>News Websites Are Dumpster Fires</title>
+ <description>&lt;h1 id=&quot;news-websites-are-dumpster-fires&quot;&gt;News Websites Are Dumpster Fires&lt;/h1&gt;
+&lt;p&gt;2019-05-29&lt;/p&gt;
+&lt;p&gt;Online news outlets are a dying breed and many users have decided to consume information elsewhere. Why? Because the news industry has become a cesspool of anti-consumer and blackhat practices that has eroded trust for the sake of money.&lt;/p&gt;
+&lt;h2 id=&quot;what-news-sites-get-wrong&quot;&gt;What news sites get wrong&lt;/h2&gt;
+&lt;p&gt;I could write up an entire essay about all the shady practices that &lt;em&gt;most&lt;/em&gt; news sites are guilty of, but here are just a few top level issues:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Terminus &lt;a href=&quot;https://eugeny.github.io/terminus/&quot;&gt;https:&amp;#47;&amp;#47;eugeny.github.io&amp;#47;terminus&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Hyper &lt;a href=&quot;https://hyper.is/&quot;&gt;https:&amp;#47;&amp;#47;hyper.is&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Clickbait headings with misleading information&lt;/li&gt;
+&lt;li&gt;Disabling the user from reading if ad-block is present&lt;/li&gt;
+&lt;li&gt;Tracking the user with 3rd party scripts&lt;/li&gt;
+&lt;li&gt;Taking massive performance hits (specifically on mobile due to huge JavaScript blocks)&lt;/li&gt;
+&lt;li&gt;Pop-up ads&lt;/li&gt;
+&lt;li&gt;Fixed headers or footers which leads to harder readability &amp;#47; accidental element interactions&lt;/li&gt;
&lt;/ul&gt;
-&lt;h3 id=&quot;documents&quot;&gt;Documents&lt;/h3&gt;
+&lt;h2 id=&quot;but-they-need-ad-revenue&quot;&gt;But they need ad revenue!&lt;/h2&gt;
+&lt;p&gt;If your business is solely dependent on tracking scripts, tricking users with clickbait titles and using archaic ads - then you&amp;#8217;re destined to fail regardless. These practices create an unsafe and unhealthy web for everyday users - not to mention most browsers have announced that future updates &lt;a href=&quot;https://support.mozilla.org/en-US/kb/content-blocking&quot;&gt;will be blocking ads by default&lt;/a&gt;. &lt;em&gt;News outlets need to adapt or die&lt;/em&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;whats-the-solution&quot;&gt;What&amp;#8217;s the solution?&lt;/h2&gt;
+&lt;p&gt;I don&amp;#8217;t have a &lt;em&gt;fix all&lt;/em&gt; band-aid to replace current revenue streams for news websites. I&amp;#8217;m sure someone much smarter than I can come up with better ideas, but just off the top of my head:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;LibreOffice &lt;a href=&quot;https://www.libreoffice.org/&quot;&gt;https:&amp;#47;&amp;#47;www.libreoffice.org&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Switch over to a monthly subscription plan (if no one pays for it maybe you weren&amp;#8217;t as useful of a source as you thought)&lt;/li&gt;
+&lt;li&gt;Partner with brands to create sponsored articles (without ruining the user experience of course)&lt;/li&gt;
+&lt;li&gt;Place a larger emphasis on user donations or promotions&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;nothing-special&quot;&gt;Nothing special&lt;/h2&gt;
-&lt;p&gt;This small list I&amp;#8217;ve compiled isn&amp;#8217;t earth-shattering by any means, but I wanted to put this out into the world for any newbie designer that might be starting out. You don&amp;#8217;t need to spend a ridiculous amount of money just to get your feet wet in the design industry. By using the tools listed above, beginners can get a solid head-start on creating for the web without burning a hole in their pocket. &lt;/p&gt;</description>
- <link>https://btxx.org/learning-to-floss</link>
- <guid isPermaLink="false">https://btxx.org/learning-to-floss</guid>
- <pubDate>Fri, 07 Feb 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>The Lazy Developer's Dark Mode</title>
- <description>&lt;h1 id=&quot;the-lazy-developers-dark-mode&quot;&gt;The Lazy Developer&amp;#8217;s Dark Mode&lt;/h1&gt;
-&lt;p&gt;2021-04-12&lt;/p&gt;
-&lt;p&gt;After recently jumping back to Jekyll for my personal blog, I decided to take a closer look at how I was supporting &lt;code&gt;dark mode&lt;/code&gt; for my visitors. I was using the proper CSS query to target those who had system-wide dark mode enabled, but I found that the code had far too many caveats and targeted too many custom classes.&lt;/p&gt;
-&lt;p&gt;So I thought to myself, &amp;#8220;There &lt;em&gt;has&lt;/em&gt; to be a simpler way&amp;#8230;&amp;#8221;&lt;/p&gt;
-&lt;h2 id=&quot;introducing-dark-mode---the-lazy-way&quot;&gt;Introducing Dark Mode - The Lazy Way&lt;/h2&gt;
-&lt;p&gt;Here is the default dark mode for my current website in all it&amp;#8217;s glory:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@media (prefers-color-scheme: dark) {
- body{background:#2d2d2d;filter:invert(1);}
- img,.cp_embed_wrapper,pre{filter:invert(1);}
-}
+&lt;h2 id=&quot;the-news-shouldnt-be-spam&quot;&gt;The News Shouldn&amp;#8217;t be Spam&lt;/h2&gt;
+&lt;p&gt;Most traffic flowing into news websites are there for one thing: &lt;em&gt;the content&lt;/em&gt;. News outlets should not be spamming their main revenue supply (&lt;strong&gt;the users&lt;/strong&gt;) or misleading people with false information.&lt;/p&gt;
+&lt;p&gt;If you&amp;#8217;re a regular consumer of news and you happen to run across a platform that is guilty of any of these practices, shoot them an email explaining why you won&amp;#8217;t be returning to their website (unless they change their ways). These anti-consumer practices will only stop when these organizations start losing money.&lt;/p&gt;</description>
+ <link>https://btxx.org/news-websites-are-dumpster-fires</link>
+ <guid isPermaLink="false">https://btxx.org/news-websites-are-dumpster-fires</guid>
+ <pubDate>Wed, 29 May 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>RE: Creating a Simple HTML/CSS Notice Box</title>
+ <description>&lt;h1 id=&quot;re-creating-a-simple-htmlcss-notice-box&quot;&gt;RE: Creating a Simple HTML&amp;#47;CSS Notice Box&lt;/h1&gt;
+&lt;p&gt;2022-09-22&lt;/p&gt;
+&lt;p&gt;I recently read Kev Quirk&amp;#8217;s post, &lt;a href=&quot;https://kevquirk.com/how-to-create-a-simple-html-css-notice-box/&quot;&gt;How to Create a Simple HTML&amp;#47;CSS Notice Box&lt;/a&gt; and loved the simplicity of it. I&amp;#8217;m a sucker for using pseudo elements in creative ways but still managing to make them useful. Of course, this got me thinking as to whether or not the same style of box could be achieved &lt;em&gt;without&lt;/em&gt; the use of static, pseudo elements&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;bad-semantics&quot;&gt;Bad Semantics&lt;/h2&gt;
+&lt;p&gt;I need to make it clear right away: &lt;strong&gt;these implementations are not semantic&lt;/strong&gt;. They are valid HTML, but I am technically using these tags incorrectly. &lt;em&gt;You have been warned!&lt;/em&gt;&lt;/p&gt;
+&lt;h2 id=&quot;setting-fieldsets&quot;&gt;Setting Fieldsets&lt;/h2&gt;
+&lt;p&gt;The first approach is to wrap everything inside HTML &lt;code&gt;fieldset&lt;/code&gt; tags:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;fieldset&amp;#62;
+ &amp;#60;legend&amp;#62;Notice&amp;#60;&amp;#47;legend&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum, dolor sit amet consectetur adipisicing elit. Totam nihil velit vitae sed beatae earum assumenda deleniti, inventore repellendus, sequi distinctio delectus porro explicabo quidem hic quo quasi voluptas temporibus.&amp;#60;&amp;#47;p&amp;#62;
+&amp;#60;&amp;#47;fieldset&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Not much to look at, eh? Well, let&amp;#8217;s still break it down.&lt;/p&gt;
-&lt;p&gt;First we set the &lt;code&gt;body&lt;/code&gt; to use a nice dark background color (avoid using &lt;code&gt;#000000&lt;/code&gt; directly since that can cause some minor eye strain). Next we tell the browser to invert all the child elements by using &lt;code&gt;filter:invert(1)&lt;/code&gt;. At this point, you could consider your work done - but there are some edge case elements&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;images-codepens-code---oh-my&quot;&gt;Images, CodePens &amp;#38; Code - Oh My!&lt;/h2&gt;
-&lt;p&gt;Most of my articles on this site will include either an image(s), embedded CodePen examples or code snippets directly in the page. For these elements we probably &lt;em&gt;don&amp;#8217;t&lt;/em&gt; want to invert their color&amp;#47;text etc. All we need to do is run the filter property on these a second time (&lt;em&gt;after&lt;/em&gt; the main &lt;code&gt;body&lt;/code&gt; attribute):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@media (prefers-color-scheme: dark) {
- img,.cp_embed_wrapper,pre{filter:invert(1);}
+&lt;p&gt;Then you can include minor styling to closely match the design of Kev&amp;#8217;s notice box:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;fieldset {
+ border: 3px solid;
+ font-family: sans-serif;
+ padding: 30px 10px 10px;
+ position: relative;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Of course, YMMV depending on what other custom elements you want to avoid inverting.&lt;/p&gt;
-&lt;h2 id=&quot;minor-caveats&quot;&gt;Minor Caveats&lt;/h2&gt;
-&lt;p&gt;I should mention that since my website doesn&amp;#8217;t use any custom coloring for anchor links, inverting &lt;code&gt;ahref&lt;/code&gt; elements works out of the box. Certain projects might still require some custom overrides if the inverted version of a certain custom color looks poor.&lt;/p&gt;
-&lt;p&gt;That&amp;#8217;s it - enjoy being lazy!&lt;/p&gt;</description>
- <link>https://btxx.org/lazy-dev-dark-mode</link>
- <guid isPermaLink="false">https://btxx.org/lazy-dev-dark-mode</guid>
- <pubDate>Mon, 12 Apr 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>ThriftyName: $5 Brand Names</title>
- <description>&lt;h1 id=&quot;thriftyname-5-brand-names&quot;&gt;ThriftyName: $5 Brand Names&lt;/h1&gt;
-&lt;p&gt;2021-02-25&lt;/p&gt;
-&lt;p&gt;It&amp;#8217;s been a while since I&amp;#8217;ve written anything on this blog, but for good reason - &lt;strong&gt;I&amp;#8217;ve been working on a handful of side projects&lt;/strong&gt;. I plan to drip-feed release these projects over time, but for today I&amp;#8217;m announcing &lt;a href=&quot;https://thrifty.name&quot;&gt;ThriftyName&lt;/a&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;what-is-thriftyname&quot;&gt;What is ThriftyName?&lt;/h2&gt;
-&lt;p&gt;In case this post title wasn&amp;#8217;t clear enough (or you avoided going to the product site itself) ThriftyName is a place where indie devs, start-ups or entrepreneurs can go to get a custom brand name for &lt;strong&gt;just $10&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;This &amp;#8220;service&amp;#8221; started out as an almost gimmicky joke in my head, but once I began building out the main website I realized that this could be quite useful for cash-strapped indies. After all, not all developers &lt;em&gt;love&lt;/em&gt; to sit around wasting precious time thinking about product names, when they could use that time to &lt;em&gt;build their product&lt;/em&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;learn-more&quot;&gt;Learn More&lt;/h2&gt;
-&lt;p&gt;If you&amp;#8217;re really interested in the reasoning behind making this project, check out the &lt;a href=&quot;https://thrifty.name/#about&quot;&gt;official about page on the site itself&lt;/a&gt;. I go into a little more depth about my thought process.&lt;/p&gt;
-&lt;h2 id=&quot;more-side-projects-incoming&quot;&gt;More Side Projects Incoming&amp;#8230;&lt;/h2&gt;
-&lt;p&gt;Like I said at the beginning of the post, keep a look out for my other side projects that I&amp;#8217;ll be rolling out slowing. I&amp;#8217;m still not sure of the best &amp;#8220;method&amp;#8221; to do this (release one every week? every month?) - but I&amp;#8217;ll figure it out as I go along.&lt;/p&gt;
-&lt;p&gt;Thanks for reading!&lt;/p&gt;</description>
- <link>https://btxx.org/launching-thriftyname</link>
- <guid isPermaLink="false">https://btxx.org/launching-thriftyname</guid>
- <pubDate>Thu, 25 Feb 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Keynote Slides with Pure CSS</title>
- <description>&lt;h1 id=&quot;keynote-slides-with-pure-css&quot;&gt;Keynote Slides with Pure CSS&lt;/h1&gt;
-&lt;p&gt;2020-06-22&lt;/p&gt;
-&lt;p&gt;There are a great deal of options available on the web and built into most operating systems when you need to create presentation &amp;#47; keynote slides. You could use native software like LibremOffice Impress, Powerpoint, Apple&amp;#8217;s Keynote, etc. You could also decide to use preexisting web-based apps like Google Slides or an open source project such as RevealJS. All of these are good options.&lt;/p&gt;
-&lt;p&gt;But thinking more about how overly complex these apps are implemented, it got me wondering if I could quickly code up a presentation slide framework with pure CSS and barely any code.&lt;/p&gt;
-&lt;p&gt;This is what I came up with:&lt;/p&gt;
-&lt;h2 id=&quot;the-demo&quot;&gt;The Demo&lt;/h2&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/jOWBJZb&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;Yes, I know this is &lt;em&gt;ugly&lt;/em&gt;, but this was created as a barebones skeleton for others to build upon. The demo uses a simple set of &lt;code&gt;radio&lt;/code&gt; inputs that correspond to their own individual &lt;code&gt;slide&lt;/code&gt; element. The framework looks at the currently &lt;code&gt;checked&lt;/code&gt; input, then changes the &lt;code&gt;opacity&lt;/code&gt; and &lt;code&gt;z-index&lt;/code&gt; of its corresponding slide item. Pretty straightforward stuff!&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s break down each piece:&lt;/p&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;slider&quot;&amp;#62;
- &amp;#60;input type=&quot;radio&quot; name=&quot;pagination&quot; value=&quot;1&quot; checked&amp;#62;
- &amp;#60;input type=&quot;radio&quot; name=&quot;pagination&quot; value=&quot;2&quot;&amp;#62;
- &amp;#60;input type=&quot;radio&quot; name=&quot;pagination&quot; value=&quot;3&quot;&amp;#62;
- &amp;#60;input type=&quot;radio&quot; name=&quot;pagination&quot; value=&quot;4&quot;&amp;#62;
- &amp;#60;input type=&quot;radio&quot; name=&quot;pagination&quot; value=&quot;5&quot;&amp;#62;
-
- &amp;#60;div class=&quot;slide&quot;&amp;#62;
- &amp;#60;h2&amp;#62;Slide 1&amp;#60;&amp;#47;h2&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;slide&quot;&amp;#62;
- &amp;#60;h2&amp;#62;Slide 2&amp;#60;&amp;#47;h2&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;slide&quot;&amp;#62;
- &amp;#60;h2&amp;#62;Slide 3&amp;#60;&amp;#47;h2&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;slide&quot;&amp;#62;
- &amp;#60;h2&amp;#62;Slide 4&amp;#60;&amp;#47;h2&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;slide&quot;&amp;#62;
- &amp;#60;h2&amp;#62;Slide 5&amp;#60;&amp;#47;h2&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;There isn&amp;#8217;t a whole lot going on here. We are just including a set of &lt;code&gt;radio&lt;/code&gt; inputs (based on how many slides are desired) along with their corresponding &lt;code&gt;slide&lt;/code&gt; class elements. You might notice we don&amp;#8217;t do anything to specifically target each individual slide item - you&amp;#8217;ll see why we don&amp;#8217;t need to in the CSS section!&lt;/p&gt;
-&lt;h2 id=&quot;the-css-scss&quot;&gt;The CSS (SCSS)&lt;/h2&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Basic default styles *&amp;#47;
-.slider {
- height: 100%;
+fieldset legend {
+ background: #AACCFF;
+ border-bottom: 3px solid;
+ border-right: 3px solid;
left: 0;
- position: fixed;
+ margin: 0;
+ padding: 5px 10px;
+ position: absolute;
top: 0;
- width: 100%;
-
- .slide {
- height: 100%;
- opacity: 0;
- position: absolute;
- width: 100%;
- z-index: -2;
- }
-}
-
-input[type=&quot;radio&quot;] { cursor: pointer; }
-
-&amp;#47;* Target slide item based on currently checked radio *&amp;#47;
-input[type=&quot;radio&quot;]:nth-of-type(1):checked ~ .slide:nth-of-type(1),
-input[type=&quot;radio&quot;]:nth-of-type(2):checked ~ .slide:nth-of-type(2),
-input[type=&quot;radio&quot;]:nth-of-type(3):checked ~ .slide:nth-of-type(3),
-input[type=&quot;radio&quot;]:nth-of-type(4):checked ~ .slide:nth-of-type(4),
-input[type=&quot;radio&quot;]:nth-of-type(5):checked ~ .slide:nth-of-type(5) {
- opacity: 1;
- z-index: 1;
+ text-transform: uppercase;
}
-
-&amp;#47;* Individual slide styling *&amp;#47;
-.slide:nth-of-type(1) { background: dodgerblue; }
-.slide:nth-of-type(2) { background: crimson; }
-.slide:nth-of-type(3) { background: rebeccapurple; }
-.slide:nth-of-type(4) { background: goldenrod; }
-.slide:nth-of-type(5) { background: pink; }
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Again, not much to see here. We use CSS to look down through the DOM for each &lt;code&gt;radio&lt;/code&gt; elements slide &amp;#8220;partner&amp;#8221;. We do this by targeting the &lt;code&gt;nth-of-type&lt;/code&gt; on both elements. Simple stuff.&lt;/p&gt;
-&lt;p&gt;Some drawbacks to this approach:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;You need to manually target each new slide you add (color, styling, content, etc.)&lt;/li&gt;
-&lt;li&gt;Lack of animations might require extra work to implement (maybe 3rd party libraries- ke AOS?)&lt;/li&gt;
-&lt;li&gt;Probably won&amp;#8217;t be best for extremely long&amp;#47;complex presentation slides&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;That&amp;#8217;s it! Hope you enjoy playing around with it.&lt;/p&gt;</description>
- <link>https://btxx.org/keynote-slides-css</link>
- <guid isPermaLink="false">https://btxx.org/keynote-slides-css</guid>
- <pubDate>Mon, 22 Jun 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Using Parent Selectors in CSS</title>
- <description>&lt;h1 id=&quot;using-parent-selectors-in-css&quot;&gt;Using Parent Selectors in CSS&lt;/h1&gt;
-&lt;p&gt;2018-12-19&lt;/p&gt;
-&lt;p&gt;I recently saw a Twitter thread posted by Tommy Hodgins on implementing highly requested styling features in CSS with only a minimal amount of JavaScript. Many of his examples are great, but the &lt;code&gt;parent&lt;/code&gt; selector instantly peaked my interest.&lt;/p&gt;
-&lt;p&gt;Being able to target an element&amp;#8217;s parent always becomes a minor annoyance (since vanilla CSS does not support it) - so you always end up having to do something a little ugly like:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;var el = document.getElementById(&amp;#39;custom-div&amp;#39;);
-var parent = el.closest(selectors);
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;And then add any custom styling to the parent element directly in JavaScript - or toggle a class which opens a whole other can of worms.&lt;/p&gt;
-&lt;h2 id=&quot;save-the-day-with-jsincss-parent-selector-and-qaffeine&quot;&gt;Save the day with jsincss-parent-selector and qaffeine&lt;/h2&gt;
-&lt;p&gt;By using the &lt;code&gt;jsincss-parent-selector&lt;/code&gt; and &lt;code&gt;qaffeine&lt;/code&gt; plugins we can target an element&amp;#8217;s parent in CSS without breaking a sweat. Let&amp;#8217;s break it down:&lt;/p&gt;
-&lt;h3 id=&quot;import-the-packages&quot;&gt;Import the packages&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;npm install jsincss-parent-selector qaffeine
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;html-ex.-index.html&quot;&gt;HTML (ex. index.html)&lt;/h3&gt;
-&lt;p&gt;Now we add our very simple HTML skeleton:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;!doctype html&amp;#62;
-&amp;#60;html&amp;#62;
- &amp;#60;head&amp;#62;
- &amp;#60;link rel=&quot;stylesheet&quot; href=&quot;output.css&quot;&amp;#62;
- &amp;#60;&amp;#47;head&amp;#62;
- &amp;#60;body&amp;#62;
- &amp;#60;header&amp;#62;
- &amp;#60;main&amp;#62;
- &amp;#60;h2&amp;#62;This is a header&amp;#60;&amp;#47;h2&amp;#62;
- &amp;#60;&amp;#47;main&amp;#62;
- &amp;#60;&amp;#47;header&amp;#62;
- &amp;#60;&amp;#47;body&amp;#62;
- &amp;#60;script src=output.js&amp;#62;&amp;#60;&amp;#47;script&amp;#62;
-&amp;#60;&amp;#47;html&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;javascript-ex.-input.js&quot;&gt;JavaScript (ex. input.js)&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;const qaffeine = require(&amp;#39;qaffeine&amp;#39;)
-const parent = require(&amp;#39;jsincss-parent-selector&amp;#39;)
-
-qaffeine(
-{
- stylesheet: {},
- rules: {
- parent
- }
-},
-&amp;#39;input.css&amp;#39;,
-&amp;#39;output.js&amp;#39;,
-&amp;#39;output.css&amp;#39;
-)
+&lt;h2 id=&quot;the-devil-is-in-the-details&quot;&gt;The Devil is in the Details&lt;/h2&gt;
+&lt;p&gt;The other option is utilizing the HTML &lt;code&gt;details&lt;/code&gt; tag:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;details open&amp;#62;
+ &amp;#60;summary&amp;#62;Notice&amp;#60;&amp;#47;summary&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Assumenda sequi esse reprehenderit facilis aperiam labore optio minus doloremque nesciunt! Voluptatem esse tempore asperiores recusandae rerum facere, reiciendis officia repudiandae similique?&amp;#60;&amp;#47;p&amp;#62;
+&amp;#60;&amp;#47;details&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;css-ex.-input.css&quot;&gt;CSS (ex. input.css)&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;header {
- display: block;
+&lt;p&gt;You&amp;#8217;ll obviously want to include the &lt;code&gt;open&lt;/code&gt; attribute to avoid users needing to toggle the content manually (unless that is your desired UX). Then add similar styling options to match the &lt;code&gt;fieldset&lt;/code&gt; example:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;details {
+ border: 3px solid;
+ font-family: sans-serif;
+ padding: 0 10px 10px;
}
-main[--js-parent] {
- background: blue;
+details summary {
+ background: #AACCFF;
+ border-bottom: 3px solid;
+ border-right: 3px solid;
+ display: inline-block;
+ margin-left: -10px;
+ padding: 5px 10px;
+ text-transform: uppercase;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then simply run &lt;code&gt;node&lt;/code&gt; against your &lt;code&gt;js&lt;/code&gt; file. That&amp;#8217;s it! I would also suggest checking out Tommy&amp;#8217;s video covering this topic if you prefer to follow along.&lt;/p&gt;</description>
- <link>https://btxx.org/jsincss-parent-selector</link>
- <guid isPermaLink="false">https://btxx.org/jsincss-parent-selector</guid>
- <pubDate>Wed, 19 Dec 2018 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Transferring Media from macOS to a Jellyfin Server (Raspberry Pi 4)</title>
- <description>&lt;h1 id=&quot;transferring-media-from-macos-to-a-jellyfin-server-raspberry-pi-4&quot;&gt;Transferring Media from macOS to a Jellyfin Server (Raspberry Pi 4)&lt;/h1&gt;
-&lt;p&gt;2022-03-12&lt;/p&gt;
-&lt;p&gt;I run a personal media server using Jellyfin on a Raspberry Pi 4 in my home. It&amp;#8217;s pretty great and works well across most devices - Google TV, iOS and Android devices, Chromebooks, etc.&lt;/p&gt;
-&lt;p&gt;The only small headache is adding content (ie. audio, videos) to the existing hard drive that Jellyfin reads from. The last thing you want to do is connect a keyboard and monitor to your Pi to add a few files. Especially if your Pi is setup like mine and buried at the back of a hidden cabinet.&lt;/p&gt;
-&lt;p&gt;More annoying would be the need to remove the hard drive itself, connect it to your device that has the new files you wish to transfer and then port them over. Big ol&amp;#8217; pass on that system.&lt;/p&gt;
-&lt;h2 id=&quot;sshscp-to-the-rescue&quot;&gt;SSH&amp;#47;SCP to the Rescue&lt;/h2&gt;
-&lt;p&gt;&lt;em&gt;Important&lt;/em&gt;: before we begin, I should mention that this article assumes the following:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;The files you plan to transfer from are on a macOS device&lt;/li&gt;
-&lt;li&gt;You have setup Jellyfin on your Raspberry Pi device&lt;/li&gt;
-&lt;li&gt;SSH is enabled and accessible on the Pi (across your local network)&lt;/li&gt;
-&lt;li&gt;The Jellyfin server&amp;#8217;s hard drive is mounted in the root directory via something like &lt;code&gt;&amp;#47;mnt&lt;/code&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Good? Moving on then&amp;#8230;&lt;/p&gt;
-&lt;p&gt;Open your terminal of choice and use the following command:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;scp movie.mp4 pi_user_name@PI_IP_ADDRESS:&amp;#47;mnt&amp;#47;movies&amp;#47;movie.mp4
+&lt;p&gt;Important to note: you can hide the default &amp;#8220;arrow toggle&amp;#8221; on &lt;code&gt;summary&lt;/code&gt; elements by including the following:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;details &amp;#62; summary {
+list-style: none;
+}
+details &amp;#62; summary::-webkit-details-marker {
+display: none;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;ol&gt;
-&lt;li&gt;&lt;code&gt;movie.mp4&lt;/code&gt; is the file in the current macOS directory we plan to copy over&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;pi_user_name&lt;/code&gt; is the username you setup on your Raspberry Pi&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;PI_IP_ADDRESS&lt;/code&gt; is, of course, your Pi&amp;#8217;s IP address&lt;/li&gt;
-&lt;li&gt;The appended &lt;code&gt;:&amp;#47;mnt&amp;#47;movies&amp;#47;movie.mp4&lt;/code&gt; is the directory your Jellyfin server uses to pull-in media&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;You&amp;#8217;ll be prompted for the user password. Once entered the file will begin copying over to your remote Jellyfin server. That&amp;#8217;s it! Although, I should mention a little bonus feature that you should always have in your back pocket, since Jellyfin can sometimes be picky with media file formats:&lt;/p&gt;
-&lt;h2 id=&quot;converting-media-files-with-ease&quot;&gt;Converting Media Files with Ease&lt;/h2&gt;
-&lt;p&gt;This is where your new best friend &lt;code&gt;FFmpeg&lt;/code&gt; comes into your life (if they weren&amp;#8217;t there already).&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Download and install &lt;code&gt;FFmpeg&lt;/code&gt; &amp;#8211;&amp;#62; &lt;a href=&quot;https://www.ffmpeg.org/download.html&quot;&gt;ffmpeg.org&amp;#47;download.html&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Now navigate to the directory containing the media file you wish to convert via your Terminal and run the following command:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;ffmpeg -i input.mp4 output.mkv
+&lt;h2 id=&quot;seeing-is-believing&quot;&gt;Seeing is Believing&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve put together two versions of each implementation (one custom designed and one using default browser styling). You can check them out in the CodePen below:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/jOxLdQP&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</description>
+ <link>https://btxx.org/notice</link>
+ <guid isPermaLink="false">https://btxx.org/notice</guid>
+ <pubDate>Thu, 22 Sep 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Obvious Javascript 'Injection' Fallback</title>
+ <description>&lt;h1 id=&quot;obvious-javascript-injection-fallback&quot;&gt;Obvious Javascript &amp;#8216;Injection&amp;#8217; Fallback&lt;/h1&gt;
+&lt;p&gt;2020-12-04&lt;/p&gt;
+&lt;p&gt;Sometimes websites and web apps might require content to be &amp;#8220;injected&amp;#8221; via Javascript. I should mention that I am strongly against this practice - but often this kind of thing is out of one&amp;#8217;s hands. So, the least I can do is setup these &amp;#8220;injections&amp;#8221; to have proper fallbacks for users who disable JS. You would be surprised how many developers build &lt;em&gt;empty&lt;/em&gt; HTML elements with the assumption they will be filled via Javascript.&lt;/p&gt;
+&lt;h2 id=&quot;our-hypothetical-project&quot;&gt;Our Hypothetical Project&lt;/h2&gt;
+&lt;p&gt;Let&amp;#8217;s pretend that we have a total tally that pulls in the number of current users using our fake SaaS app. We would do something like this:&lt;/p&gt;
+&lt;h3 id=&quot;html&quot;&gt;HTML&lt;/h3&gt;
+&lt;p&gt;Here we create an empty &lt;code&gt;h2&lt;/code&gt; tag that will update with the current number of users via js:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;main&amp;#62;
+ &amp;#60;h2 class=&quot;total-tally&quot;&amp;#62;&amp;#60;&amp;#47;h2&amp;#62;
+&amp;#60;&amp;#47;main&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;ol&gt;
-&lt;li&gt;&lt;code&gt;input.mp4&lt;/code&gt; is the initial file we wish to convert&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;output.mkv&lt;/code&gt; will be the name and file type of our converted media&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;Now you can circle back and run the previous &lt;code&gt;scp&lt;/code&gt; command once you have converted your files to the desired format. Hopefully Jellyfin doesn&amp;#8217;t complain about the formatting!&lt;/p&gt;</description>
- <link>https://btxx.org/jelly</link>
- <guid isPermaLink="false">https://btxx.org/jelly</guid>
- <pubDate>Sat, 12 Mar 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Setup Jekyll from Scratch on a New Linux System</title>
- <description>&lt;h1 id=&quot;setup-jekyll-from-scratch-on-a-new-linux-system&quot;&gt;Setup Jekyll from Scratch on a New Linux System&lt;/h1&gt;
-&lt;p&gt;2022-09-19&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Special Note:&lt;/strong&gt; Credit needs to be given to user &lt;a href=&quot;https://stackoverflow.com/users/4974784/achraf-jeday&quot;&gt;Achraf JEDAY&lt;/a&gt; for putting these instructions together on Stack Overflow (although his comments were targeting an older version of Ruby). This post is more for my own personal notes than anything else.&lt;/p&gt;
-&lt;p&gt;I find myself constantly running into small issues when trying to setup existing Jekyll projects on new Linux systems. I &lt;em&gt;could&lt;/em&gt; use something like Docker, but that just seems so beefy and slow to me. So here is a step-by-step way (and foolproof from my own testing) to get Jekyll running smoothly in no time!&lt;/p&gt;
-&lt;h2 id=&quot;figuring-out-ruby-first&quot;&gt;Figuring out Ruby First&lt;/h2&gt;
-&lt;p&gt;The first item of business is removing the default Ruby that ships with most Linux distros:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo apt-get remove ruby
+&lt;h3 id=&quot;javascript&quot;&gt;Javascript&lt;/h3&gt;
+&lt;p&gt;You&amp;#8217;ll have to use your imagination here and assume that the &lt;code&gt;totalTally&lt;/code&gt; variable pulls in the numbers dynamically via API:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;var totalTally = &quot;273,677&quot; &amp;#47;* This would pull something dynamically in prod *&amp;#47;
+document.getElementsByClassName(&quot;total-tally&quot;)[0].innerHTML=totalTally;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then we check for updates and install everything we need:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo apt update
-sudo apt install git curl libssl-dev libreadline-dev zlib1g-dev autoconf bison build-essential libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev
+&lt;h2 id=&quot;the-problem&quot;&gt;The Problem&lt;/h2&gt;
+&lt;p&gt;The big issue we have now occurs when a user visits this page without JS enabled. The &lt;code&gt;h2&lt;/code&gt; tag will remain empty and they won&amp;#8217;t see anything. I know this seems like a very avoidable issue, but you would be surprised how often it actually happens on the web.&lt;/p&gt;
+&lt;h2 id=&quot;the-overly-simple-solution&quot;&gt;The (overly simple) Solution&lt;/h2&gt;
+&lt;p&gt;The easiest way to avoid these types of empty tags - add static content. I know - mind blowing, right?&lt;/p&gt;
+&lt;h3 id=&quot;html-updated&quot;&gt;HTML (updated)&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;main&amp;#62;
+ &amp;#60;h2 class=&quot;total-tally&quot;&amp;#62;200,000+&amp;#60;&amp;#47;h2&amp;#62;
+&amp;#60;&amp;#47;main&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now we can install &lt;code&gt;rbenv&lt;/code&gt; and &lt;code&gt;ruby-build&lt;/code&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;curl -sL https:&amp;#47;&amp;#47;github.com&amp;#47;rbenv&amp;#47;rbenv-installer&amp;#47;raw&amp;#47;main&amp;#47;bin&amp;#47;rbenv-installer | bash -
+&lt;p&gt;You might be reading this and saying to yourself, &amp;#8220;Wow! Thanks Captain Obvious!&amp;#8221; and that&amp;#8217;s a fair reaction. This is an &lt;em&gt;obvious&lt;/em&gt; demo on purpose. If even one single reader learns to avoid leaving empty HTML tags that are solely dependent on Javascript injection, then I&amp;#8217;d say this demo was a huge success.&lt;/p&gt;
+&lt;p&gt;Rule of thumb: don&amp;#8217;t make assumption about your users. Play it safe.&lt;/p&gt;</description>
+ <link>https://btxx.org/obvious-js-injection-fallback</link>
+ <guid isPermaLink="false">https://btxx.org/obvious-js-injection-fallback</guid>
+ <pubDate>Fri, 04 Dec 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Billing for One CSS Change</title>
+ <description>&lt;h1 id=&quot;billing-for-one-css-change&quot;&gt;Billing for One CSS Change&lt;/h1&gt;
+&lt;p&gt;2019-11-29&lt;/p&gt;
+&lt;p&gt;Every second you spend working as a designer should be billed back to the client. A simple button color change? Bill them. Additional links added to an existing menu? Send that invoice over. Some basic typeface changes? Don&amp;#8217;t do it for free.&lt;/p&gt;
+&lt;p&gt;You need to be charging for &lt;em&gt;all&lt;/em&gt; design work, regardless of difficulty or time required.&lt;/p&gt;
+&lt;p&gt;This concept might seem extremely obvious to more senior level workers but I have seen a good amount of junior devs make the mistake of &amp;#8220;working for experience&amp;#8221; or better yet &amp;#8220;strengthening the client relationship&amp;#8221;. Early on in my career I was just as guilty of doing this kind of thing. It was and still is a very foolish practice.&lt;/p&gt;
+&lt;h2 id=&quot;do-you-really-bill-for-one-css-change&quot;&gt;Do you really bill for &lt;em&gt;one&lt;/em&gt; CSS change?&lt;/h2&gt;
+&lt;p&gt;Absolutely. From the client&amp;#8217;s perspective it may seem like they are being billed for one CSS change and 30 seconds of a designer&amp;#8217;s time. In reality, they are paying for the designer&amp;#8217;s years of experience to be able to solve that problem in &lt;em&gt;only&lt;/em&gt; 30 seconds.&lt;/p&gt;
+&lt;p&gt;Would the client be happier with a significantly less qualified designer charging the same amount of money but taking 3 &lt;em&gt;hours&lt;/em&gt; to complete the task? In the end, what&amp;#8217;s the difference?&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;If it is a simple change that they believe should cost nothing, then why aren&amp;#8217;t they doing it themselves?&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;We as developers and designers work in an odd industry. A lot of people (read clients) outside of our bubble tend to think they have a much better understanding of the work we do. Because of this, they tend to preface work requests with phrases like:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&amp;#8220;This should be a simple change&amp;#8221;&lt;/li&gt;
+&lt;li&gt;&amp;#8220;This shouldn&amp;#8217;t take more than a couple of minutes&amp;#8221;&lt;/li&gt;
+&lt;li&gt;&amp;#8220;This seems like an easy fix&amp;#8221;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Most of the time these comments are harmless, but other times they are a subtle way of downplaying your skill and experience required to complete these work items. That skill and experience shouldn&amp;#8217;t ever come free. It makes you wonder if these same people expect free work from trades-people (electricians, plumbers, etc) when they need what they think is a &amp;#8220;simple&amp;#8221; fix in their house.&lt;/p&gt;
+&lt;p&gt;Do you think workers in &lt;em&gt;most&lt;/em&gt; other industries travel out to someone&amp;#8217;s home and fix &amp;#8220;small&amp;#8221; issues for free? Hell no.&lt;/p&gt;
+&lt;p&gt;So why are developers and designers doing work for free? I truly don&amp;#8217;t know - but it needs to stop.&lt;/p&gt;
+&lt;h2 id=&quot;a-simple-but-useful-system&quot;&gt;A simple but useful system&lt;/h2&gt;
+&lt;p&gt;You should live by the rule that every &lt;em&gt;second&lt;/em&gt; you spend working for someone else is billable. I don&amp;#8217;t mean that you should literally bill per second, but instead round to nearest estimated time slot (whether you are billing hourly, daily, sprint-based or per project). This ensures that your efforts are paid for and that the client will begin to truly value your time. Doing this from the get-go will save you headaches in the future.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m sorry if this comes off as preachy, but I&amp;#8217;m just trying to inspire designers to value their work more. Don&amp;#8217;t sell yourself short - your talent is valuable and shouldn&amp;#8217;t be taken for granted.&lt;/p&gt;</description>
+ <link>https://btxx.org/one-css-property</link>
+ <guid isPermaLink="false">https://btxx.org/one-css-property</guid>
+ <pubDate>Fri, 29 Nov 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>My Coffee Maker Just Makes Coffee</title>
+ <description>&lt;h1 id=&quot;my-coffee-maker-just-makes-coffee&quot;&gt;My Coffee Maker Just Makes Coffee&lt;/h1&gt;
+&lt;p&gt;2023-01-09&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/coffee-couple.svg&quot; alt=&quot;Couple drinking cups of coffee&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;I had to replace my dual Keurig coffee maker &lt;em&gt;twice&lt;/em&gt; over a period of five months. This occurred a year ago and these are my findings.&lt;/p&gt;
+&lt;h2 id=&quot;built-to-fail&quot;&gt;Built to Fail?&lt;/h2&gt;
+&lt;p&gt;I followed the manufactor&amp;#8217;s suggested cleaning schedule and took care of the appliances. My initial conclusion was that the product&amp;#8217;s design wasn&amp;#8217;t thought-out well. &amp;#8220;It&amp;#8217;s built to fail!&amp;#8221; I said to my wife the morning of the &lt;em&gt;second&lt;/em&gt; machine&amp;#8217;s failure. Another product replaced under warranty, while the broken one&amp;#8217;s tossed aside. More e-waste because why not?&lt;/p&gt;
+&lt;p&gt;But after some further reflection, I came to realize the &amp;#8220;poor design&amp;#8221; was a symptom of a greater cause:&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;The product tries to do too much&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m beating a dead horse by referencing &lt;a href=&quot;https://suckless.org&quot;&gt;suckless&lt;/a&gt; software again, but that core philosophy applies here too. Both digital and industrial design suffer from bloat. Far too often I witness fellow designers over-engineer customer requests. Or they add excessive bloat to new product features. It&amp;#8217;s almost a rarity these days to find designers who tackle work as &lt;em&gt;single items&lt;/em&gt;. Everything expands. Everything needs to do one little extra &amp;#8220;cool&amp;#8221; thing. Nothing is ever &lt;em&gt;taken away&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m sure the designers meant well with the creation of this dual coffee maker. It&amp;#8217;s interesting to combine both a standard 12-cup percolator and &amp;#8220;pod-based&amp;#8221; serving options. In theory it sounds quite handy. One appliance that tackles two use-cases. Think of the counter space you&amp;#8217;ll save! &lt;/p&gt;
+&lt;p&gt;Unfortunately, in practice, it fails.&lt;/p&gt;
+&lt;h2 id=&quot;product-decline&quot;&gt;Product Decline&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve felt product quality decline in both household appliances and software. Companies no longer seem content with doing &lt;em&gt;one thing well&lt;/em&gt;. Everyone needs to reach out into many verticals. Everyone copies their competitors.The need to &amp;#8220;grow&amp;#8221; their existing features. Adding things that no one asked for. Products are getting &lt;em&gt;slower&lt;/em&gt; and losing focus.&lt;/p&gt;
+&lt;p&gt;People tend to place all that blame on top-level management or developers. They do deserve some blame - but not all. Designers cause a lot of these issues on their own and it&amp;#8217;s easy to understand why.&lt;/p&gt;
+&lt;p&gt;The design field drops new designers into a &lt;em&gt;world of bloat&lt;/em&gt;. They don&amp;#8217;t stand a chance. The initial programs introduced to them are behemoth, proprietary pieces of garbage. No other options are available. No one is making strides in this field of &amp;#8220;design tool software&amp;#8221; because it&amp;#8217;s a massive uphill battle. Those that &lt;em&gt;try&lt;/em&gt;, get &lt;a href=&quot;https://www.theverge.com/2022/9/15/23354532/adobe-figma-acquisition-20-billion-official&quot;&gt;snatched up by existing platforms&lt;/a&gt;. Designers don&amp;#8217;t have the luxury of &amp;#8220;choice&amp;#8221; as much as developers do (within reason). It&amp;#8217;s a very locked-down industry.&lt;/p&gt;
+&lt;p&gt;So of course designers will carry this mentality into their own work. It&amp;#8217;s all they have known. &amp;#8220;X and Y companies designed their &lt;code&gt;insert-feature-here&lt;/code&gt; with all these &lt;em&gt;extras&lt;/em&gt;, so we&amp;#8217;ll do the same&amp;#8221;. Everything is &lt;a href=&quot;https://invidious.snopyta.org/watch?v=dC1yHLp9bWA&quot;&gt;a copy of a copy of a copy&lt;/a&gt;.&lt;/p&gt;
+&lt;p&gt;The only advice I can give to designers is this: try not to add to the problem. I&amp;#8217;m not asking you to move mountains. But consider working somewhere else if your career only adds more bloat to the world. (Easier said than done, I know). Or keep doing what you&amp;#8217;re doing. What do I know - I&amp;#8217;m only some guy who rambles on the web.&lt;/p&gt;
+&lt;h2 id=&quot;back-to-the-coffee-maker&quot;&gt;Back to the Coffee Maker&lt;/h2&gt;
+&lt;p&gt;So the Keurig is gone. Trashed. The company doesn&amp;#8217;t want the product back, they tell you to scrap it. &amp;#8220;We&amp;#8217;ll send you a new one for free&amp;#8221;. Such a waste.&lt;/p&gt;
+&lt;p&gt;Instead, I snagged the cheapest and most basic coffee maker I could find. It cost me $12. It has no clock, no programming options, no base settings or cleaning functions. Hell, there aren&amp;#8217;t even level numbers on the water reservoir tank. &lt;/p&gt;
+&lt;p&gt;You add your scoops of coffee grounds, along with desired amount of water. Then you switch on the (only) button at the side of the machine. After a handful of minutes, you have coffee.&lt;/p&gt;
+&lt;p&gt;And it&amp;#8217;s been running &lt;em&gt;perfect&lt;/em&gt; for over 8 months now. I clean it every so often by brewing with a small mixture of vinegar and water. That&amp;#8217;s it. No need for &amp;#8220;specialty cleaners&amp;#8221; that cost almost as much as the machine itself. The points of failure get reduced as well, since the machine is bare-bones. Nothing can break when there is nothing to break&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;brewing-software&quot;&gt;&amp;#8220;Brewing&amp;#8221; Software&lt;/h2&gt;
+&lt;p&gt;At least, for me, I plan to only design what &lt;em&gt;needs to be&lt;/em&gt;. If someone asks for a &amp;#8220;coffee&amp;#8221;, they&amp;#8217;ll get a cup of hot, black coffee and nothing else.&lt;/p&gt;</description>
+ <link>https://btxx.org/one-thing</link>
+ <guid isPermaLink="false">https://btxx.org/one-thing</guid>
+ <pubDate>Mon, 09 Jan 2023 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Open Source Typeface Pairings</title>
+ <description>&lt;h1 id=&quot;open-source-typeface-pairings&quot;&gt;Open Source Typeface Pairings&lt;/h1&gt;
+&lt;p&gt;2018-01-25&lt;/p&gt;
+&lt;p&gt;I always love finding new typeface pairings to use across my personal and client projects, but I find many suggested pairings come with a hefty price tag (rightly so - premium typefaces are normally always worth their cost).&lt;/p&gt;
+&lt;p&gt;So, I&amp;#8217;ve curated this personal list of 5 exceptionally beautiful typeface pairings that will cost you absolutely nothing. Open source FTW.&lt;/p&gt;
+&lt;h2 id=&quot;et-book-gill-sans&quot;&gt;ET-Book &amp;#38; Gill Sans&lt;/h2&gt;
+&lt;p&gt;Download: ET Book, Gill Sans&lt;/p&gt;
+&lt;h2 id=&quot;playfair-display-roboto&quot;&gt;Playfair Display &amp;#38; Roboto&lt;/h2&gt;
+&lt;p&gt;Download: Playfair Display, Roboto&lt;/p&gt;
+&lt;h2 id=&quot;karma-open-sans&quot;&gt;Karma &amp;#38; Open Sans&lt;/h2&gt;
+&lt;p&gt;Download: Karma, Open Sans&lt;/p&gt;
+&lt;h2 id=&quot;libre-baskerville-oswald&quot;&gt;Libre Baskerville &amp;#38; Oswald&lt;/h2&gt;
+&lt;p&gt;Download: Libre Baskerville, Oswald&lt;/p&gt;
+&lt;h2 id=&quot;fanwood-league-spartan&quot;&gt;Fanwood &amp;#38; League Spartan&lt;/h2&gt;
+&lt;p&gt;Download: Fanwood, League Spartan&lt;/p&gt;</description>
+ <link>https://btxx.org/open-source-typeface-pairings</link>
+ <guid isPermaLink="false">https://btxx.org/open-source-typeface-pairings</guid>
+ <pubDate>Thu, 25 Jan 2018 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Building openring with Jekyll Build</title>
+ <description>&lt;h1 id=&quot;building-openring-with-jekyll-build&quot;&gt;Building openring with Jekyll Build&lt;/h1&gt;
+&lt;p&gt;2022-12-02&lt;/p&gt;
+&lt;p&gt;I think it&amp;#8217;s great when bloggers post their own personal &amp;#8220;reading list&amp;#8221; of blogs they themselves follow. Whether this is a customized Blogroll page or footnotes in their individual articles, I find it really helpful to find more interesting content on the &amp;#8220;indie&amp;#8221; web. This isn&amp;#8217;t a new concept by any means, but I wanted something a little more &amp;#8220;dynamic&amp;#8221;[^1] for my own blog.&lt;/p&gt;
+&lt;p&gt;After some digging I came across &lt;a href=&quot;https://sr.ht/~sircmpwn/openring/&quot;&gt;openring&lt;/a&gt; and it&amp;#8217;s great. Fully customizable, lightweight and completely open source. What more could you ask for?&lt;/p&gt;
+&lt;p&gt;So, I thought others might be interested in how I&amp;#8217;ve implemented openring through my own Jekyll build system.&lt;/p&gt;
+&lt;h2 id=&quot;installing-openring&quot;&gt;Installing openring&lt;/h2&gt;
+&lt;p&gt;You can pull the project &lt;a href=&quot;https://sr.ht/~sircmpwn/openring/&quot;&gt;directly via SourceHut&lt;/a&gt; if you wish, but I would recommend installing through your default package manager. I&amp;#8217;m running Arch, so for me it was as simple as running:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;yay -S openring
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;After both of those install, you will want to add those to your system &lt;strong&gt;PATH&lt;/strong&gt;:&lt;/p&gt;
-&lt;h3 id=&quot;bash&quot;&gt;Bash&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;echo &amp;#39;export PATH=&quot;$HOME&amp;#47;.rbenv&amp;#47;bin:$PATH&quot;&amp;#39; &amp;#62;&amp;#62; ~&amp;#47;.bashrc
-echo &amp;#39;eval &quot;$(rbenv init -)&quot;&amp;#39; &amp;#62;&amp;#62; ~&amp;#47;.bashrc
-source ~&amp;#47;.bashrc
+&lt;p&gt;That&amp;#8217;s it. I now have full local access to openring!&lt;/p&gt;
+&lt;h2 id=&quot;jekyll-includes&quot;&gt;Jekyll Includes&lt;/h2&gt;
+&lt;p&gt;You &lt;em&gt;could&lt;/em&gt; setup a whole new directory specifically for your openring files, but that seems like overkill. Instead, we will simply add two new files to our existing &lt;code&gt;_includes&lt;/code&gt; directory. We will name these files &lt;code&gt;openring-in.html&lt;/code&gt; and &lt;code&gt;openring-out.html&lt;/code&gt;.&lt;/p&gt;
+&lt;h3 id=&quot;openring-in.html-contents&quot;&gt;openring-in.html Contents&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;!-- License-Id: CC0-1.0 --&amp;#62;
+&amp;#60;section class=&quot;webring&quot;&amp;#62;
+ &amp;#60;h3&amp;#62;Articles from blogs I follow around the world wide web&amp;#60;&amp;#47;h3&amp;#62;
+ &amp;#60;section class=&quot;articles&quot;&amp;#62;
+ {{range .Articles}}
+ &amp;#60;div class=&quot;article&quot;&amp;#62;
+ &amp;#60;h4 class=&quot;title&quot;&amp;#62;
+ &amp;#60;a href=&quot;{{.Link}}&quot; rel=&quot;noopener&quot;&amp;#62;{{.Title}}&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;&amp;#47;h4&amp;#62;
+ &amp;#60;p class=&quot;summary&quot;&amp;#62;{{.Summary}}&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;small class=&quot;source&quot;&amp;#62;
+ via &amp;#60;a href=&quot;{{.SourceLink}}&quot;&amp;#62;{{.SourceTitle}}&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;&amp;#47;small&amp;#62;
+ &amp;#60;small class=&quot;date&quot;&amp;#62;{{.Date | datef &quot;January 2, 2006&quot;}}&amp;#60;&amp;#47;small&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ {{end}}
+ &amp;#60;&amp;#47;section&amp;#62;
+ &amp;#60;p class=&quot;attribution&quot;&amp;#62;
+ Generated by
+ &amp;#60;a href=&quot;https:&amp;#47;&amp;#47;git.sr.ht&amp;#47;~sircmpwn&amp;#47;openring&quot;&amp;#62;openring&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;&amp;#47;p&amp;#62;
+&amp;#60;&amp;#47;section&amp;#62;
+&amp;#60;style&amp;#62;
+.webring .articles {
+ display: flex;
+ flex-wrap: wrap;
+ margin: -0.5rem;
+}
+.webring .title {
+ margin: 0;
+}
+.webring .article {
+ flex: 1 1 0;
+ display: flex;
+ flex-direction: column;
+ margin: 0.5rem;
+ padding: 0.5rem;
+ background: #eee;
+ min-width: 10rem;
+}
+.webring .summary {
+ font-size: 0.8rem;
+ flex: 1 1 0;
+}
+.webring .attribution {
+ text-align: right;
+ font-size: 0.8rem;
+ color: #555;
+}
+&amp;#60;&amp;#47;style&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;zsh&quot;&gt;ZSH&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;echo &amp;#39;export PATH=&quot;$HOME&amp;#47;.rbenv&amp;#47;bin:$PATH&quot;&amp;#39; &amp;#62;&amp;#62; ~&amp;#47;.zshrc
-echo &amp;#39;eval &quot;$(rbenv init -)&quot;&amp;#39; &amp;#62;&amp;#62; ~&amp;#47;.zshrc
-source ~&amp;#47;.zshrc
+&lt;blockquote&gt;
+&lt;p&gt;Sidenote: You will get minor Liquid Syntax warnings in the console when running your website via &lt;code&gt;serve&lt;/code&gt; or &lt;code&gt;build&lt;/code&gt;. I don&amp;#8217;t really mind those warnings but if you do, feel free to move these files out into their own sub-directory in your project folder.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;h3 id=&quot;openring-out.html-contents&quot;&gt;openring-out.html Contents&lt;/h3&gt;
+&lt;p&gt;This will generate itself for us every time we rebuild our Jekyll website. It is important to note that any changes you make in this file will be overwritten the next time you rebuild! All custom styling or layout changes should be made in the &lt;code&gt;openring-in.html&lt;/code&gt; file.&lt;/p&gt;
+&lt;h2 id=&quot;our-new-build-script&quot;&gt;Our &amp;#8220;New&amp;#8221; Build Script&lt;/h2&gt;
+&lt;p&gt;To simplify things, we are going to place our main commands in a single build script in the root directory of our Jekyll project. For my personal blog, I&amp;#8217;ve named this file &lt;code&gt;build-site.sh&lt;/code&gt;. I know - I&amp;#8217;m extremely creative.&lt;/p&gt;
+&lt;p&gt;Place the following inside that file:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;openring \
+ -s https:&amp;#47;&amp;#47;example.com&amp;#47;feed.xml \
+ -s https:&amp;#47;&amp;#47;example.com&amp;#47;feed.xml \
+ -s https:&amp;#47;&amp;#47;example.com&amp;#47;feed.xml \
+ &amp;#60; _includes&amp;#47;openring-in.html \
+ &amp;#62; _includes&amp;#47;openring-out.html
+bundle exec jekyll build
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;With that complete, we can now install the version of Ruby we wish to use and set it globally (at this time of writing it is &lt;code&gt;3.1.2&lt;/code&gt;):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;rbenv install 3.1.2
-rbenv global 3.1.2
+&lt;h2 id=&quot;edit-&quot;&gt;Edit &lt;code&gt;_config.yml&lt;/code&gt;&lt;/h2&gt;
+&lt;p&gt;Next we need to make sure we exclude our new &lt;code&gt;build-site&lt;/code&gt; script file, since we really don&amp;#8217;t need that pushed up to the main server:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;# Includes &amp;#47; Excludes
+exclude:
+ - build-site.sh
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;And &lt;code&gt;rehash&lt;/code&gt; so our changes take:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;rbenv rehash
+&lt;h2 id=&quot;almost-done&quot;&gt;Almost Done&amp;#8230;&lt;/h2&gt;
+&lt;p&gt;Now you just need to decide where you want your &lt;code&gt;openring&lt;/code&gt; feed outputs to render. For this example, we will place them at the bottom of every blog post inside the &lt;code&gt;_layouts&amp;#47;post.html&lt;/code&gt; file, like so:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;{% raw %}{% include openring-out.html %}{% endraw %}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now you should see the properly set Ruby version when you run the following:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;ruby -v
+&lt;h2 id=&quot;build-it-they-will-come&quot;&gt;Build It &amp;#38; They Will Come&lt;/h2&gt;
+&lt;p&gt;This next step is only for those using &lt;a href=&quot;https://srht.site&quot;&gt;SourceHut Pages&lt;/a&gt; to build and host their websites. If you use a different platform (ie Netlify, Vercel, GitHub Pages) the concept should be similar but will most likely require more tweaking on your end. Just a fair warning.&lt;/p&gt;
+&lt;p&gt;I won&amp;#8217;t go into great detail about build script for SourceHut Pages, but feel free to take a look at my &lt;a href=&quot;https://git.sr.ht/~bt/bt.ht/tree/master/item/.build.yml&quot;&gt;very own build file for this website&lt;/a&gt;. That &lt;em&gt;should&lt;/em&gt; work out-of-the-box for most standard Jekyll websites. (Just be sure to edit with your own details!)&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;That&amp;#8217;s it&lt;/strong&gt;. You now have links to blogs you enjoy that will update with each build. Of course, the &amp;#8220;latest&amp;#8221; blog posts shown will become out-of-date if you don&amp;#8217;t blog (or at least re-build your website) on a regular basis. But for me, I see this as a good motivator to keep pushing out content!&lt;/p&gt;
+&lt;p&gt;Happy sharing!&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;Well, as dynamic as a static website can be!&lt;/li&gt;
+&lt;/ol&gt;</description>
+ <link>https://btxx.org/openring</link>
+ <guid isPermaLink="false">https://btxx.org/openring</guid>
+ <pubDate>Fri, 02 Dec 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Over-Engineering an Oil Tank Gauge</title>
+ <description>&lt;h1 id=&quot;over-engineering-an-oil-tank-gauge&quot;&gt;Over-Engineering an Oil Tank Gauge&lt;/h1&gt;
+&lt;p&gt;2020-09-09&lt;/p&gt;
+&lt;p&gt;I almost went down the path of investing a huge amount of time and effort into fixing a stuck oil fuel tank float-gauge in my house. Recently, the float mechanism became stuck and permanently displayed &lt;code&gt;empty&lt;/code&gt; regardless of how much fuel was in the tank - not ideal. It&amp;#8217;s a 20 year-old tank, so I wasn&amp;#8217;t surprised that the float finally gave out. &lt;/p&gt;
+&lt;p&gt;Being the wannabe tinkerer that I am, a light bulb went off in my head and I started thinking on how to incorporate some ultrasonic system to display the accurate fuel reading digitally. Obviously my first thought was just to replace the float gauge with a new one and be done with it. That didn&amp;#8217;t sound very &lt;em&gt;fun&lt;/em&gt; though.&lt;/p&gt;
+&lt;p&gt;I briefly looked at other similar projects and started brainstorming the best way I would implement this for my own situation. The best option I came across seemed to be this: &lt;a href=&quot;https://scottiestech.info/2017/10/24/diy-ultrasonic-fuel-gauge-level-sensor/&quot;&gt;DIY Ultrasonic Fuel Gauge &amp;#47; Level Sensor&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;An ultrasonic system with a cool mini display sounded pretty rad - much cooler than just replacing the broken gauge with a new float arm. So it was settled.&lt;/p&gt;
+&lt;h2 id=&quot;my-oil-think-tank&quot;&gt;My oil think-tank&lt;/h2&gt;
+&lt;p&gt;I quickly thought through my options in my head before jumping too far into things (and even included a &amp;#8220;poor-mans&amp;#8221; temperature strip option):&lt;/p&gt;
+&lt;table&gt;
+&lt;thead&gt;
+&lt;tr&gt;
+&lt;th&gt;Solution&lt;/th&gt;
+&lt;th&gt;Cost&lt;/th&gt;
+&lt;th&gt;Time&lt;/th&gt;
+&lt;/tr&gt;
+&lt;/thead&gt;
+&lt;tbody&gt;
+&lt;tr&gt;
+&lt;td&gt;Ultrasonic Gauge&lt;/td&gt;
+&lt;td&gt;$40-50&lt;/td&gt;
+&lt;td&gt;~2-3 hours&lt;/td&gt;
+&lt;/tr&gt;
+&lt;tr&gt;
+&lt;td&gt;New Float Gauge&lt;/td&gt;
+&lt;td&gt;$25-30&lt;/td&gt;
+&lt;td&gt;~45 minutes&lt;/td&gt;
+&lt;/tr&gt;
+&lt;tr&gt;
+&lt;td&gt;Temperature Strips&lt;/td&gt;
+&lt;td&gt;$10&lt;/td&gt;
+&lt;td&gt;~2 minutes&lt;/td&gt;
+&lt;/tr&gt;
+&lt;/tbody&gt;
+&lt;/table&gt;
+&lt;p&gt;My mind was still set on building and implementing the ultrasonic option. It would be a great learning experience at the very least!&lt;/p&gt;
+&lt;p&gt;So, before I ordered any parts or started designing a case that would house this new super-cool device, I went to investigate&amp;#47;remove the float gauge to get a better look at the damage. With the help of some penetrating oil (the original installer went crazy with the pipe dope) and my trusty wrench, I opened up the gauge cap, partly lifting the float from the tank. Right away I noticed that the float and shaft were slightly stuck together in one small area. I poked it with my finger.&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;The float set itself back into the correct position. It was fixed.&lt;/em&gt;&lt;/p&gt;
+&lt;p&gt;How could I have been so dumb. I was so excited about &lt;em&gt;building something&lt;/em&gt; that I jumped into implementation before fully realizing the problem. Talk about a metaphor for web dev, am I right?&lt;/p&gt;
+&lt;h2 id=&quot;overthinking-simple-problems&quot;&gt;Overthinking simple problems&lt;/h2&gt;
+&lt;p&gt;I can&amp;#8217;t speak for all designers &amp;#47; developers out there, but I catch myself (far more often than I&amp;#8217;d like to admit) over-engineering a solution because of some perceived notion that it is the &amp;#8220;best&amp;#8221; option. Most of the time it isn&amp;#8217;t actually better, it just seems more &lt;em&gt;fun&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;Now don&amp;#8217;t get me wrong, fun is a good thing most of the time. It&amp;#8217;s just that some instances call for the quickest, cleanest, easiest solution in the name of efficiency - just be sure to have fully explored the problem &lt;em&gt;first&lt;/em&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;final-decision&quot;&gt;Final decision&lt;/h2&gt;
+&lt;p&gt;So I ended up doing nothing. I simply re-threaded the cap and placed the float back inside the tank. I know I saved myself time and money, but I can&amp;#8217;t help but feel like I failed&amp;#8230;&lt;/p&gt;
+&lt;p&gt;Just like in the world of software, it&amp;#8217;s best to avoid over-engineering simple problems.&lt;/p&gt;</description>
+ <link>https://btxx.org/over-engineering-an-oil-tank</link>
+ <guid isPermaLink="false">https://btxx.org/over-engineering-an-oil-tank</guid>
+ <pubDate>Wed, 09 Sep 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Over-Nesting</title>
+ <description>&lt;h1 id=&quot;over-nesting&quot;&gt;Over-Nesting&lt;/h1&gt;
+&lt;p&gt;2019-01-06&lt;/p&gt;
+&lt;p&gt;I think since our design industry moves so quickly and exciting new technologies get released almost daily, that we often forget some of the basics when writing CSS. I bring this up because I&amp;#8217;ve recently worked on a few projects that show a slight disregard for proper class&amp;#47;selector nesting.&lt;/p&gt;
+&lt;p&gt;Now it&amp;#8217;s completely understandable why designers and teams alike shrug off the concept of &amp;#8220;over-nesting&amp;#8221;:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;As a team we know the structure of our code (no outside party needs to interact with it)&lt;/li&gt;
+&lt;li&gt;Everything is written in &lt;code&gt;insert pre-processor here&lt;/code&gt; - so it&amp;#8217;s cleaner&amp;#47;compiled anyway&lt;/li&gt;
+&lt;li&gt;It&amp;#8217;s &lt;em&gt;technically&lt;/em&gt; DRY&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;I personally believe these are all weak excuses that don&amp;#8217;t justify the poor experience future maintainers of your code will face. &lt;em&gt;You should always write your code with the idea someone completely new to the project will have to maintain it&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s look at an average example of poor nesting that I&amp;#8217;ve seen out in the wild:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* These children elements can&amp;#39;t be used outside
+of the parent - not very flexible *&amp;#47;
+.main-container {
+ .child-container {
+ &amp;#47;* This class specificity is too deep *&amp;#47;
+ .sub-child-container {}
+ }
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;getting-ruby-gems&quot;&gt;Getting Ruby Gems&lt;/h2&gt;
-&lt;p&gt;In case you don&amp;#8217;t have it installed already, be sure to grab &lt;code&gt;rubygems&lt;/code&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo apt install rubygems
+&lt;p&gt;Even if you know a child element will never be structured outside of it&amp;#8217;s parent, what harm does it cause to still place it out of such deep specificity?&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* This code is far more reusable *&amp;#47;
+.main-container {}
+.child-container {}
+.sub-child-container {}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;running-jekyll&quot;&gt;Running Jekyll&lt;/h2&gt;
-&lt;p&gt;We are almost done! Navigate to your Jekyll project&amp;#8217;s directory and run:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;gem install jekyll bundler
-bundle install
+&lt;h3 id=&quot;exceptions&quot;&gt;Exceptions&lt;/h3&gt;
+&lt;p&gt;As with anything, there are exceptions to the &lt;em&gt;rule&lt;/em&gt;. If the nested elements pertain to the parent itself, it makes complete sense to group these stylings together. A button or link item are excellent examples of this:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.btn-lg {
+ &amp;#38;:hover {}
+ &amp;#38;:active {}
+ &amp;#38;:disabled{}
+}
+
+.link-item {
+ &amp;#38;:hover{}
+ &amp;#38;:focus{}
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it! Now if you run &lt;code&gt;bundle exec jekyll serve&lt;/code&gt; you&amp;#8217;ll find your Jekyll project running locally! Hopefully this helps others when needing to port any Jekyll projects over to a new Linux system. I know it will save me time!&lt;/p&gt;
-&lt;h2 id=&quot;alpine-linux-on-wayland&quot;&gt;Alpine Linux on Wayland&lt;/h2&gt;
-&lt;p&gt;Save yourself a world of trouble: just use &lt;code&gt;docker&lt;/code&gt;. The docker image below (jekyll-serve) works out-of-the-box:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://github.com/BretFisher/jekyll-serve&quot;&gt;https:&amp;#47;&amp;#47;github.com&amp;#47;BretFisher&amp;#47;jekyll-serve&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;Then run the following inside your project:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;docker run -p 4000:4000 -v $(pwd):&amp;#47;site bretfisher&amp;#47;jekyll-serve
-&lt;/code&gt;&lt;/pre&gt;</description>
- <link>https://btxx.org/jekyll</link>
- <guid isPermaLink="false">https://btxx.org/jekyll</guid>
- <pubDate>Mon, 19 Sep 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Hosting a Jekyll Site on Sourcehut</title>
- <description>&lt;h1 id=&quot;hosting-a-jekyll-site-on-sourcehut&quot;&gt;Hosting a Jekyll Site on Sourcehut&lt;/h1&gt;
-&lt;p&gt;2021-12-06&lt;/p&gt;
-&lt;p&gt;I recently decided to switch my personal, static site&amp;#8217;s hosting from Netlify to &lt;a href=&quot;https://srht.site&quot;&gt;sourcehut pages&lt;/a&gt;. The process went &lt;em&gt;fairly&lt;/em&gt; smoothly with only a couple minor hiccups; nothing rage-inducing. After everything was up and running smoothly, I figured writing out a step-by-step tutorial might help others who are thinking of doing a similar switch (or looking to host their first static site).&lt;/p&gt;
-&lt;p&gt;But first, let me briefly explain why I made the switch in the first place&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;why-sourcehut-pages&quot;&gt;Why sourcehut pages?&lt;/h2&gt;
-&lt;p&gt;Using Netlify as your static host is simple, intuitive and comes packed with a great deal of extra functionality you can easily add-on. So, why would I decide to switch over to sourcehut? The best answer comes directly off the main homepage of &lt;a href=&quot;https://sourcehut.org&quot;&gt;sourcehut.org&lt;/a&gt;:&lt;/p&gt;
+&lt;p&gt;Of course, this is all easier said than done. Limitations exist within teams or even on an individual level that might make this impossible to change. Maybe you don&amp;#8217;t have the authority to rework your current CSS or it would eat up too many cycles and time is valuable - especially in the world of startups. &lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m not saying this is &lt;strong&gt;the only way to structure CSS&lt;/strong&gt; - I&amp;#8217;m only trying to make the lives of future designers&amp;#47;developers easier moving forward. &lt;/p&gt;</description>
+ <link>https://btxx.org/over-nesting</link>
+ <guid isPermaLink="false">https://btxx.org/over-nesting</guid>
+ <pubDate>Sun, 06 Jan 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Happily Paying For macOS Apps</title>
+ <description>&lt;h1 id=&quot;happily-paying-for-macos-apps&quot;&gt;Happily Paying For macOS Apps&lt;/h1&gt;
+&lt;p&gt;2022-06-29&lt;/p&gt;
+&lt;p&gt;It&amp;#8217;s no secret that I am a huge advocate for open source software. A solid chunk of my day-to-day workload is done so via FOSS[^0] systems. I also manage a handful of fun side projects that are normally shipped under either MIT or GPL licensing. But that doesn&amp;#8217;t mean I still don&amp;#8217;t enjoy &lt;em&gt;some&lt;/em&gt; non-free, proprietary software.&lt;/p&gt;
+&lt;p&gt;So, I thought I would share my collection of macOS applications that I happily paid for. (There aren&amp;#8217;t many since my needs are limited)&lt;/p&gt;
+&lt;h2 id=&quot;design-tool-sketch&quot;&gt;Design Tool: Sketch&lt;/h2&gt;
+&lt;p&gt;My day job requires me to use Figma, which is totally fine but not nearly as polished as Sketch. Yes, Figma is cross-platform. Yes, Figma can run directly in the browser. Yes, Figma is free for most smaller team sizes.&lt;/p&gt;
+&lt;p&gt;But sorry - Sketch is just better.&lt;/p&gt;
+&lt;p&gt;Since the team at Bohemian Coding have crafted Sketch specifically for macOS it feels native, runs extremely well and fits in with the rest of the ecosystem. The pricing model is okay in my books too, balancing a fine line between &lt;em&gt;optional&lt;/em&gt; yearly subscriptions and one-time purchases. It&amp;#8217;s a smart move and I much prefer it to a forced subscription plan.&lt;/p&gt;
+&lt;p&gt;URL: &lt;a href=&quot;https://www.sketch.com/&quot;&gt;https:&amp;#47;&amp;#47;www.sketch.com&amp;#47;&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;password-manager-secrets&quot;&gt;Password Manager: Secrets&lt;/h2&gt;
+&lt;p&gt;I was originally a subscriber to 1Password but couldn&amp;#8217;t justify spending $7CDN a month for what it was offering. Also, subscriptions suck. After doing some research I stumbled upon Secrets and noticed some things about it that instantly caught my eye:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Absolutely no tracking or advertising&lt;/li&gt;
-&lt;li&gt;All features work without JavaScript&lt;/li&gt;
-&lt;li&gt;Many features work without an account&lt;/li&gt;
-&lt;li&gt;The fastest &amp;#38; lightest software forge&lt;/li&gt;
-&lt;li&gt;100% free and open source software&lt;/li&gt;
+&lt;li&gt;No subscriptions! One-time price forever.&lt;/li&gt;
+&lt;li&gt;iCloud Sync across devices&lt;/li&gt;
+&lt;li&gt;Browser extension support (although I don&amp;#8217;t use this personally)&lt;/li&gt;
+&lt;li&gt;Developed by a one-man team (support indie devs!)&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;After realizing all that, it&amp;#8217;s pretty difficult to stick with Netlify&amp;#8217;s &lt;em&gt;proprietary&lt;/em&gt; stack&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;free-but-not-free&quot;&gt;Free but not &lt;em&gt;&amp;#8220;free&amp;#8221;&lt;/em&gt;&lt;/h2&gt;
-&lt;p&gt;I should note that using sourcehut pages &lt;em&gt;does&lt;/em&gt; require you to be a contributing (read: paying) member on the platform. I&amp;#8217;m a cheapo and selected the $2&amp;#47;month option but you might be inclined to donate more. Paying this &amp;#8220;fee&amp;#8221; is perfectly fine for me, considering the hosting quality (speed and storage) it affords me. It also doesn&amp;#8217;t hurt that I get the &amp;#8220;feel good vibes&amp;#8221; of supporting an important, open source product.&lt;/p&gt;
-&lt;p&gt;Keeping that in mind, let&amp;#8217;s get into setting up our static site!&lt;/p&gt;
-&lt;h2 id=&quot;setting-up-your-repo-locally&quot;&gt;Setting up your repo locally&lt;/h2&gt;
+&lt;p&gt;I purchased both the macOS and iOS versions of Secrets after trying out the free version almost immediately. It&amp;#8217;s wonderful. The UI is clean and flows well with the rest of the Mac ecosystem to give it a native &amp;#8220;Apple&amp;#8221; feel. Syncing my laptop and iPhone works seamless via iCloud.&lt;/p&gt;
+&lt;p&gt;And best of all - no monthly fees.&lt;/p&gt;
+&lt;p&gt;URL: &lt;a href=&quot;https://outercorner.com/secrets-mac/&quot;&gt;https:&amp;#47;&amp;#47;outercorner.com&amp;#47;secrets-mac&amp;#47;&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;transferring-files-transmit-5&quot;&gt;Transferring Files: Transmit 5&lt;/h2&gt;
+&lt;p&gt;The folks at Panic make incredible Mac and iOS apps. I see them as one of the best in the industry. In the early days of my web development career, I used to run Coda exclusively. I&amp;#8217;ve since moved on the Sublime Text but I still have fond memories of the old Panic editor.&lt;/p&gt;
+&lt;p&gt;As for FTP access, I still use Panic&amp;#8217;s Transmit to this day. Beautiful UI that feels snappy even when transferring massive files across servers. Transmit is also a one-time purchase. Thank goodness. (Have I mentioned that I hate software subscriptions?)&lt;/p&gt;
+&lt;p&gt;URL: &lt;a href=&quot;https://panic.com/transmit/&quot;&gt;https:&amp;#47;&amp;#47;panic.com&amp;#47;transmit&amp;#47;&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h2&gt;
+&lt;p&gt;I know this list only includes 3 applications, but that&amp;#8217;s truly all the ones I&amp;#8217;ve spent money on. If in the future I happen to purchase any others I will be sure to update this post accordingly.&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;Create a new account on &lt;a href=&quot;https://sourcehut.org&quot;&gt;sourcehut&lt;/a&gt; (or log in to an existing one)&lt;/li&gt;
-&lt;li&gt;Setup your billing to contribute monthly (tier amount is up to you)&lt;/li&gt;
-&lt;li&gt;Create a new repo under the &lt;strong&gt;git&lt;/strong&gt; section&lt;sup id=&quot;fnref1&quot;&gt;&lt;a href=&quot;#fn1&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
-&lt;li&gt;Connect this repo locally (as you would via any other git host)&lt;/li&gt;
-&lt;li&gt;In this new local directory, place all your Jekyll files as you would with any other static hosting provider&lt;/li&gt;
+&lt;li&gt;Free &amp;#38; open source software&lt;/li&gt;
+&lt;/ol&gt;</description>
+ <link>https://btxx.org/paid-mac-apps</link>
+ <guid isPermaLink="false">https://btxx.org/paid-mac-apps</guid>
+ <pubDate>Wed, 29 Jun 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Yet Another Static Site Generator Switch</title>
+ <description>&lt;h1 id=&quot;yet-another-static-site-generator-switch&quot;&gt;Yet Another Static Site Generator Switch&lt;/h1&gt;
+&lt;p&gt;2022-07-06&lt;/p&gt;
+&lt;p&gt;If you&amp;#8217;re an RSS subscriber, I&amp;#8217;ve probably blown up your feed reader (again). This seems to be an on-going theme with this blog. I can&amp;#8217;t help it.&lt;/p&gt;
+&lt;p&gt;This website now uses my &lt;em&gt;new&lt;/em&gt; Pandoc-based static blog generator: &lt;a href=&quot;https://pblog.bt.ht&quot;&gt;pblog&lt;/a&gt;. I won&amp;#8217;t go into great detail about it&amp;#8217;s features (or lack thereof) - if you&amp;#8217;re interested in that, check out the &lt;a href=&quot;https://pblog.bt.ht/blog/pblog-intro.html&quot;&gt;&amp;#8220;Introducing pblog&amp;#8221; article&lt;/a&gt;.&lt;/p&gt;
+&lt;p&gt;The bigger question is, &amp;#8220;Why the change?&amp;#8221;&lt;/p&gt;
+&lt;h2 id=&quot;wheres-the-love-for-shinobi&quot;&gt;Where&amp;#8217;s the Love for &amp;#8220;Shinobi&amp;#8221;?&lt;/h2&gt;
+&lt;p&gt;Switching over to &lt;code&gt;pblog&lt;/code&gt; wasn&amp;#8217;t caused by a dislike of using &lt;a href=&quot;https://shinobi.bt.ht&quot;&gt;Shinobi&lt;/a&gt;. In fact, I still really enjoy the work flow that that plain-text focused SSG provides. The main issues that popped up for my own blog was &lt;em&gt;accessibility&lt;/em&gt; and &lt;em&gt;poor user experience&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;I had multiple readers reach out and mention poor rendering of content in their RSS reader of choice. That&amp;#8217;s kind of a &lt;strong&gt;big deal&lt;/strong&gt;. I test that project as best I can with my limited access to all available RSS readers - but I can only test so much. It became one of those &amp;#8220;Well, it works on my machine!&amp;#8221; meme. So instead of spending an untold amount of time debugging every RSS reader known to man, I figured my best bet was to render things as &lt;code&gt;HTML&lt;/code&gt;.&lt;/p&gt;
+&lt;p&gt;The next big issue was &lt;em&gt;accessibility&lt;/em&gt;. Screen readers can read &lt;code&gt;txt&lt;/code&gt; formatted files perfectly fine but since elements aren&amp;#8217;t categorized everything ends up with the same level hierarchy. This can cause confusion between headers, list items, URLs, footers etc. For my personal use-case (sharing tutorials and covering design topics) it didn&amp;#8217;t make sense to sacrifice user accessibility for minimalism.&lt;/p&gt;
+&lt;h2 id=&quot;the-search-for-simplicity&quot;&gt;The Search for Simplicity&lt;/h2&gt;
+&lt;p&gt;My initial thought process was to include some form of &amp;#8220;plus&amp;#8221; add-on to the existing Shinobi build script. The idea was to render &lt;code&gt;HTML&lt;/code&gt; versions of each post and dump those into the generated RSS file. Although maybe good in theory, it ended up impractical because:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;No utility or existing tool could render the style of text-based formatting I implemented as semantic HTML (at least not without heavy customization and tinkering)&lt;/li&gt;
+&lt;li&gt;I was actually adding extra bloat to the Shinobi project (true minimalism is the point, right?)&lt;/li&gt;
&lt;/ol&gt;
-&lt;h2 id=&quot;the-sourcehut-build-file&quot;&gt;The sourcehut build file&lt;/h2&gt;
-&lt;p&gt;In order to have your Jekyll site build and push the correct files live, you will need to use sourcehut&amp;#8217;s build system. This will run every time you push out a new change to your repo (new blog post, page content changes, styling updates).&lt;/p&gt;
-&lt;p&gt;To make things easier, you can copy the build file below (remember to use your &lt;em&gt;own&lt;/em&gt; information for usernames, git repo naming etc):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;image: debian&amp;#47;stable
-oauth: pages.sr.ht&amp;#47;PAGES:RW
-packages:
-- ruby-full
-- ruby-dev
-environment:
-site: yourusername.srht.site
-sources:
-- https:&amp;#47;&amp;#47;git.sr.ht&amp;#47;~yourusername&amp;#47;your-repo-name
-tasks:
-- install-bundler: |
- sudo gem install bundler
-- build: |
- cd your-repo-name
- bundle install
- bundle exec jekyll build
-- package: |
- cd your-repo-name&amp;#47;_site
- tar -cvz . &amp;#62; ..&amp;#47;..&amp;#47;site.tar.gz
-- upload: |
- acurl -f https:&amp;#47;&amp;#47;pages.sr.ht&amp;#47;publish&amp;#47;$site -Fcontent=@site.tar.gz
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Save this file as &lt;code&gt;.build.yml&lt;/code&gt; and place it in the root directory of your Jekyll source code.&lt;/p&gt;
-&lt;p&gt;Then, you just need to push your changes to the repo. If everything was setup properly, you&amp;#8217;ll be able to see your live site at &lt;code&gt;https:&amp;#47;&amp;#47;yourusername.srht.site&lt;/code&gt; (just give it a little bit of time to run the full build process)&lt;/p&gt;
-&lt;h2 id=&quot;custom-domains&quot;&gt;Custom Domains&lt;/h2&gt;
-&lt;p&gt;If you&amp;#8217;re like me and want to use your own custom domain - have no fear! This process is actually quite easy.&lt;/p&gt;
-&lt;p&gt;First, add a new A Record through your domain provider:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@ IN A 173.195.146.139
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then change the following &lt;code&gt;environment&lt;/code&gt; parameter inside your existing &lt;code&gt;.build.yml&lt;/code&gt; file:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;environment:
-site: yourcustomdomain.com
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;And that&amp;#8217;s it - custom domain set! If you run into any issues check out the &lt;a href=&quot;https://srht.site/custom-domains&quot;&gt;official documentation on custom domains&lt;/a&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h2&gt;
-&lt;p&gt;Hopefully this helps to streamline the process for others to host their static sites through sourcehut. Having open and healthy competition among host providers and &lt;code&gt;git&lt;/code&gt; workflows is essential to avoiding vendor lock-in. &lt;/p&gt;
-&lt;p&gt;Even low-effort support for open-source products (like where you host your static site or FOSS projects) can go a long way. Just some food for thought.&lt;/p&gt;
-&lt;div class=&quot;footnotes&quot;&gt;
-&lt;hr/&gt;
+&lt;p&gt;So, that option was ruled out pretty quickly.&lt;/p&gt;
+&lt;p&gt;The next option didn&amp;#8217;t take me long to land on: &lt;em&gt;Pandoc&lt;/em&gt;. I&amp;#8217;ve used Pandoc for years and have nothing but great experiences tweaking it for my own needs. I knew that I could piggyback off the original &lt;code&gt;shell&lt;/code&gt; commands in the Shinobi project and alter them as needed to incorporate Pandoc.&lt;/p&gt;
+&lt;p&gt;I honestly didn&amp;#8217;t run into many issues while rolling this out. Fairly seamless!&lt;/p&gt;
+&lt;h2 id=&quot;new-workflow&quot;&gt;New Workflow&lt;/h2&gt;
+&lt;p&gt;With this new blog switch I also decided to try out a new &lt;em&gt;deploy&lt;/em&gt; workflow. I&amp;#8217;ve used &lt;code&gt;rsync&lt;/code&gt; for the longest time but wanted to have something more GUI-based on macOS. I know, &lt;em&gt;blasphemy&lt;/em&gt;!&lt;/p&gt;
+&lt;p&gt;Since I already have a Transmit license, that seemed like the best fit since it is designed specifically for macOS. Now my workflow process is as follows:&lt;/p&gt;
&lt;ol&gt;
-
-&lt;li id=&quot;fn1&quot;&gt;
-&lt;p&gt;Thanks to &lt;a href=&quot;https://cnx.srht.site/&quot;&gt;McSinyx&lt;/a&gt; for pointing out that the repo used for creating your website can be named anything (instead of defaulting to your sourcehut username)&amp;#160;&lt;a href=&quot;#fnref1&quot; rev=&quot;footnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
-&lt;/li&gt;
-
+&lt;li&gt;Write new posts in my root &lt;code&gt;posts&lt;/code&gt; folder&lt;/li&gt;
+&lt;li&gt;Rebuild the &lt;code&gt;pblog&lt;/code&gt; with &lt;code&gt;make&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Use the built-in sync function of Transmit to mirror my local &lt;code&gt;_output&lt;/code&gt; with my web server&lt;/li&gt;
&lt;/ol&gt;
-&lt;/div&gt;</description>
- <link>https://btxx.org/jekyll-sourcehut</link>
- <guid isPermaLink="false">https://btxx.org/jekyll-sourcehut</guid>
- <pubDate>Mon, 06 Dec 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Introducing PageRoast</title>
- <description>&lt;h1 id=&quot;introducing-pageroast&quot;&gt;Introducing PageRoast&lt;/h1&gt;
-&lt;p&gt;2021-03-11&lt;/p&gt;
-&lt;p&gt;Following up with my concept of releasing small side projects weekly, I have officially launched &lt;a href=&quot;https://pageroast.com&quot;&gt;PageRoast&lt;/a&gt;. What is PageRoast I hear you ask?&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;Receive a detailed report analyzing your landing page with actionable items to improve your conversion rate.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;In simple terms that just means I will &lt;strong&gt;roast your landing page&lt;/strong&gt;. Included in a page roast report is:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/transmit-ftp.webp&quot; alt=&quot;The Transmit UI in all of its wonderful glory (before I updated)&quot; /&gt;&lt;/p&gt;
+&lt;h3 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h3&gt;
+&lt;p&gt;Will there be bugs with this switch-over? Most likely. Will some URLs be left behind or broken? Possibly. These small issues will be ironed out over time. For now, I&amp;#8217;m quite happy with keeping things minimal on the workflow side of things, while preserving accessibility and user experience with the output.&lt;/p&gt;
+&lt;p&gt;Thanks for reading!&lt;/p&gt;</description>
+ <link>https://btxx.org/pblog</link>
+ <guid isPermaLink="false">https://btxx.org/pblog</guid>
+ <pubDate>Wed, 06 Jul 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Create a Performance-Focused WordPress Blog</title>
+ <description>&lt;h1 id=&quot;create-a-performance-focused-wordpress-blog&quot;&gt;Create a Performance-Focused WordPress Blog&lt;/h1&gt;
+&lt;p&gt;2021-09-08&lt;/p&gt;
+&lt;p&gt;With my recent switch back to WordPress, and having read Kev Quirk’s latest post about Core Web Vitals, I wanted to make sure my blog still prioritized speed and performance above all else. I’m happy to say that I have closely replicated the same speed of my original &lt;em&gt;static&lt;/em&gt; Jekyll-based version of this blog.&lt;/p&gt;
+&lt;p&gt;And I&amp;#8217;ve achieved this with barely any effort at all. All that&amp;#8217;s needed is: &lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Fully detailed ABCD Framework report&lt;/li&gt;
-&lt;li&gt;Proposed content &amp;#38; design changes&lt;/li&gt;
-&lt;li&gt;Page performance audit&lt;/li&gt;
+&lt;li&gt;a lightweight WordPress theme&lt;/li&gt;
+&lt;li&gt;two free WordPress plugins&lt;/li&gt;
+&lt;li&gt;cheap &amp;#38; fast web hosting&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;And you get all of this for just &lt;strong&gt;$100&lt;/strong&gt; (currently 50% until April 1st with coupon code PHROAST). Alright, enough with the &amp;#8220;sales pitch&amp;#8221; - why did I make this side project?&lt;/p&gt;
-&lt;p&gt;From the main &lt;a href=&quot;https://pageroast.com/#2021-03-10-pageroast-has-launched&quot;&gt;launch blog post on PageRoast itself&lt;/a&gt; I wrote:&lt;/p&gt;
+&lt;p&gt;Let me breakdown each component so those of you interested can do the same without hitting any roadblocks.&lt;/p&gt;
+&lt;h2 id=&quot;choosing-your-wordpress-theme&quot;&gt;Choosing Your WordPress Theme&lt;/h2&gt;
+&lt;p&gt;Selecting an existing theme or trying to build your own can be a daunting experience. For my needs, I forced myself to find an existing theme and just run with it. This gives me more time to focus on writing instead of constantly tweaking the blog’s visuals.&lt;/p&gt;
+&lt;p&gt;I would suggest either using the default starter theme (as of this writing: Twenty Twenty One theme by Automattic) or looking for specific “lightweight” themes across the web. I highly recommend checking out Anders Norén’s &lt;a href=&quot;https://andersnoren.se/teman/&quot;&gt;theme collection&lt;/a&gt;. Others can be found on the official &lt;a href=&quot;https://wordpress.org/&quot;&gt;wordpress.org&lt;/a&gt; website.&lt;/p&gt;
+&lt;h2 id=&quot;two-simple-plugins&quot;&gt;Two Simple Plugins&lt;/h2&gt;
+&lt;p&gt;Once you have decided on a theme, you&amp;#8217;ll also want to be sure to install two very important plugins that greatly help with performance:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Jetpack Boost – &lt;a href=&quot;https://wordpress.org/plugins/jetpack-boost/&quot;&gt;wordpress.org&amp;#47;plugins&amp;#47;jetpack-boost&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Yoast SEO – &lt;a href=&quot;https://wordpress.org/plugins/wordpress-seo/&quot;&gt;wordpress.org&amp;#47;plugins&amp;#47;wordpress-seo&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;jetpack-boost&quot;&gt;Jetpack Boost&lt;/h2&gt;
+&lt;p&gt;This plugin is fantastic. Not only will it run a proper audit (based off Google’s Lighthouse tool) but also gives you the ability to activate optimized CSS, lazy image loading and deferring non-essential JavaScript (if applicable). All of this is done in a super-clean user interface directly inside your WordPress admin.&lt;/p&gt;
+&lt;p&gt;Check out my own testing site metrics below:&lt;/p&gt;
+&lt;h2 id=&quot;yoast-seo&quot;&gt;Yoast SEO&lt;/h2&gt;
+&lt;p&gt;If you’ve worked with WordPress at all you have surely heard of Yoast. Adding this plugin to your site is really a no-brainer. The automatic generation of meta data and SEO tags can save you a lot of time while also improving your overall Lighthouse score.&lt;/p&gt;
+&lt;p&gt;Here is the Lighthouse audit for the test WordPress website:&lt;/p&gt;
+&lt;p&gt;Those scores were achieved without any custom work on my end – I simply activated the plugin and let it work it’s magic. Great stuff.&lt;/p&gt;
+&lt;h2 id=&quot;host-everything-on-easywp&quot;&gt;Host Everything on EasyWP&lt;/h2&gt;
+&lt;p&gt;Up to this point we haven’t spent a single penny. Unfortunately, web hosting isn’t free and you’re going to need it if you actually want your website to have a home on the interwebs!&lt;/p&gt;
+&lt;p&gt;I know – I can hear your collective voices shouting out:&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;I&amp;#8217;ve always been obsessed with developing landing pages that produce high conversion rates. It&amp;#8217;s what I&amp;#8217;ve done for a large portion of my web development career.So I thought to myself, &amp;#8220;Why not launch a small-scale audit service to help indie devs and startups?&amp;#8221;&lt;/p&gt;
+&lt;p&gt;Isn&amp;#8217;t web hosting a little expensive just for my simple hobby blog&amp;#47;site?&lt;/p&gt;
+&lt;p&gt;&amp;#8211; Some of you&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;p&gt;That&amp;#8217;s really all there is to it. If you would like to learn more, check out the following links:&lt;/p&gt;
+&lt;p&gt;I host this test blog for just &lt;strong&gt;$3.88&amp;#47;month&lt;/strong&gt; and the service is actually good. Unreal, right? That’s the price of a medium coffee, so I’m pretty sure it won’t break the bank.&lt;/p&gt;
+&lt;p&gt;This “cheap” hosting is through EasyWP and the Starter plan ($3.88&amp;#47;month) comes with the following:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://pageroast.com&quot;&gt;PageRoast main website&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://pageroast.com/#2021-03-10-pageroast-has-launched&quot;&gt;PageRoast official launch blog post&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;</description>
- <link>https://btxx.org/introducing-pageroast</link>
- <guid isPermaLink="false">https://btxx.org/introducing-pageroast</guid>
- <pubDate>Thu, 11 Mar 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Introducing Notez</title>
- <description>&lt;h1 id=&quot;introducing-notez&quot;&gt;Introducing Notez&lt;/h1&gt;
-&lt;p&gt;2021-01-13&lt;/p&gt;
-&lt;p&gt;I have always been a fan of simple note taking applications, since I tend to take a lot of random notes throughout the work day. Sometimes I reach for simple pen and paper, but other times it&amp;#8217;s nice to stay focused jotting down notes on the same device I&amp;#8217;m working on.&lt;/p&gt;
-&lt;p&gt;Previously, I just created quick &lt;code&gt;notes.txt&lt;/code&gt; files in my open code editor or fell back on the default OS note apps. These worked perfectly fine but often got in my way (or even worse - lost among everything else).&lt;/p&gt;
-&lt;p&gt;So I said the hell with it and built Notez.&lt;/p&gt;
-&lt;h2 id=&quot;what-makes-notez-special&quot;&gt;What makes Notez special?&lt;/h2&gt;
-&lt;p&gt;Nothing, really. It&amp;#8217;s actually a pretty &amp;#8220;stupid&amp;#8221; app compared to others on the market. But this one is &lt;em&gt;mine&lt;/em&gt;. Plus, it was fun to piece it together on a random evening before bed.&lt;/p&gt;
-&lt;p&gt;For those curious, let&amp;#8217;s take a look at the feature list:&lt;/p&gt;
+&lt;li&gt;10 GB SSD storage&lt;/li&gt;
+&lt;li&gt;50k visitors&amp;#47;month&lt;/li&gt;
+&lt;li&gt;Unlimited bandwidth&lt;/li&gt;
+&lt;li&gt;Backups (though not automatic)&lt;/li&gt;
+&lt;li&gt;SFTP access&lt;/li&gt;
+&lt;li&gt;EasyWP Cache plugin (and it&amp;#8217;s actually good!)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;You will need to snag your own SSL certificate though, but this is easily obtained with something like &lt;a href=&quot;https://letsencrypt.org&quot;&gt;letsencrypt.org&lt;/a&gt;.&lt;/p&gt;
+&lt;p&gt;Best of all, if in the future you require more features the next pricing tier is still only $7.88. Not too shabby!&lt;/p&gt;
+&lt;h2 id=&quot;try-yourself&quot;&gt;Try Yourself&lt;/h2&gt;
+&lt;p&gt;The fact that EasyWP gives you a free month trial, there really is no reason not to try spinning up your own blog or online store or whatever the heck you want to build. The more people with personal spaces on the web the better.&lt;/p&gt;</description>
+ <link>https://btxx.org/performance-focused-wordpress-theme</link>
+ <guid isPermaLink="false">https://btxx.org/performance-focused-wordpress-theme</guid>
+ <pubDate>Wed, 08 Sep 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>My Changing Opinion on Personal Website Design</title>
+ <description>&lt;h1 id=&quot;my-changing-opinion-on-personal-website-design&quot;&gt;My Changing Opinion on Personal Website Design&lt;/h1&gt;
+&lt;p&gt;2021-05-19&lt;/p&gt;
+&lt;p&gt;Hey would you look at that - my personal blog has been redesigned &lt;em&gt;again&lt;/em&gt;! Although I am still using good ol&amp;#8217; Jekyll for the backend, I have now added a more fleshed-out CSS design which also includes a set of open source custom typefaces.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Gasp!&lt;/strong&gt; &amp;#8220;How &lt;em&gt;could&lt;/em&gt; you?!&amp;#8221; I hear you ask. Let me explain.&lt;/p&gt;
+&lt;h2 id=&quot;personal-sites-should-feel-personal&quot;&gt;Personal sites should feel personal&lt;/h2&gt;
+&lt;p&gt;I can see how this change might seem hypocritical (it took some convincing myself) but I decided to follow in to footsteps of Kev Quirk and &lt;a href=&quot;https://kevq.uk/adding-some-whimsy-character/&quot;&gt;added a little whimsy and character&lt;/a&gt; to my website. After all, personal websites should &lt;em&gt;feel personal&lt;/em&gt;. My obsession with barebones HTML &amp;#38; CSS serves its purpose on other public projects, but seems limiting for my own little space on the interwebs.&lt;/p&gt;
+&lt;h2 id=&quot;banned-from-my-own-club&quot;&gt;Banned from my own club&lt;/h2&gt;
+&lt;p&gt;I had originally converted this blog&amp;#8217;s design to use &lt;em&gt;zero&lt;/em&gt; CSS and instead rely solely on default browser styling. The main reasoning for doing so, was to have the ability to include my own personal website in the &lt;a href=&quot;https://xhtml.club&quot;&gt;XHTML Club&lt;/a&gt; project. (I never said it was a &lt;em&gt;good&lt;/em&gt; reason)&lt;/p&gt;
+&lt;p&gt;After giving it some thought, I&amp;#8217;ve decided that this limitation seemed too extreme even for me.&lt;/p&gt;
+&lt;h2 id=&quot;moving-forward&quot;&gt;Moving forward&lt;/h2&gt;
+&lt;p&gt;I know I always say &amp;#8220;With this new design, I can finally focus on just writing content!&amp;#8221; - but this is a lie. I&amp;#8217;ll probably be fiddling with my personal website until the day I die. The good news is that I &lt;em&gt;do&lt;/em&gt; have a few tutorial blog posts lined up to publish soon - so be on the lookout for those!&lt;/p&gt;
+&lt;p&gt;Thanks for reading through my pointless ramblings about personal websites. It&amp;#8217;s good to just vent about these things sometimes&amp;#8230;&lt;/p&gt;</description>
+ <link>https://btxx.org/personal-website-opinions</link>
+ <guid isPermaLink="false">https://btxx.org/personal-website-opinions</guid>
+ <pubDate>Wed, 19 May 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>89 Blog Posts in a Single HTML File</title>
+ <description>&lt;h1 id=&quot;89-blog-posts-in-a-single-html-file&quot;&gt;89 Blog Posts in a Single HTML File&lt;/h1&gt;
+&lt;p&gt;2021-04-22&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;This is no longer the current setup of my blog&lt;/em&gt;. I have switched back to Jekyll for performance reasons. I&amp;#8217;ll be leaving this post up as a point of reference though :)&lt;/p&gt;
+&lt;hr/&gt;
+&lt;p&gt;This is my personal blog (if that wasn&amp;#8217;t already obvious). I currently have 89 blog posts living here. But I have done something magical today:&lt;/p&gt;
+&lt;p&gt;All of these articles are rendered inside a &lt;em&gt;single HTML file&lt;/em&gt;. 🤯&lt;/p&gt;
+&lt;h2 id=&quot;what-sorcery-is-this&quot;&gt;What Sorcery is This?!&lt;/h2&gt;
+&lt;p&gt;No magic here - I&amp;#8217;m just using my own personal static site generator called &lt;a href=&quot;https://phpetite.org&quot;&gt;PHPetite&lt;/a&gt;. You can find all the code and more information about PHPetite on the &lt;a href=&quot;https://github.com/bradleytaunt/phpetite&quot;&gt;official Github repo page&lt;/a&gt;. Please note that this project is still very much a WIP, so go easy on me when pointing out bugs or issues!&lt;/p&gt;
+&lt;h2 id=&quot;pingdom-stats&quot;&gt;Pingdom Stats&lt;/h2&gt;
+&lt;p&gt;Before we get into more details on how everything is built, let&amp;#8217;s take a quick look at some of my website stats (not that pure numbers are 100% accurate of user experience):&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;free and open source (github.com&amp;#47;bradleytaunt&amp;#47;notez)&lt;/li&gt;
-&lt;li&gt;uses &lt;code&gt;localStorage&lt;/code&gt; to keep changes persistent (helpful for browser crashes, etc)&lt;/li&gt;
-&lt;li&gt;includes basic export functionality to download content as a simple &lt;code&gt;output.txt&lt;/code&gt; file&lt;/li&gt;
+&lt;li&gt;99 Performance Grade&lt;/li&gt;
+&lt;li&gt;951 ms Load Time&lt;/li&gt;
+&lt;li&gt;231.3 KB Page Size (thank you Netlify compression!)&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;That&amp;#8217;s it. Mind blowing stuff, eh?&lt;/p&gt;
-&lt;h2 id=&quot;making-stuff-is-fun&quot;&gt;Making stuff is fun&lt;/h2&gt;
-&lt;p&gt;My main takeaway when building this tiny, dumb app was to just &lt;em&gt;enjoy building fun stuff&lt;/em&gt;. It crossed my mind several times how there are already hundreds of note taking apps across the vast Internet. I also thought about how others might look at the code I wrote and go, &amp;#8220;Oh my God - why did he do it that way? What an idiot!&amp;#8221;. But I don&amp;#8217;t care - I had fun making it.&lt;/p&gt;
-&lt;p&gt;Hopefully you enjoy using it as well!&lt;/p&gt;</description>
- <link>https://btxx.org/introducing-notez</link>
- <guid isPermaLink="false">https://btxx.org/introducing-notez</guid>
- <pubDate>Wed, 13 Jan 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Improving Tufte CSS for Jekyll</title>
- <description>&lt;h1 id=&quot;improving-tufte-css-for-jekyll&quot;&gt;Improving Tufte CSS for Jekyll&lt;/h1&gt;
-&lt;p&gt;2019-11-01&lt;/p&gt;
-&lt;p&gt;After creating the ET-Jekyll theme almost two years ago, I finally got around to revamping the structure and improving a lot of minor performance issues. Items that have been surely needing of updates for the last couple of years.&lt;/p&gt;
-&lt;h2 id=&quot;introductions&quot;&gt;Introductions&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve always been a sucker for Edward Tufte&amp;#8217;s incredibly simple, yet powerful design work used in his books and handout projects. So, in 2018 I released a Tufte CSS inspired Jekyll theme for the open source community. I called it &lt;a href=&quot;https://et-jekyll.netlify.com&quot;&gt;ET-Jekyll&lt;/a&gt; (so original, I know). Tufte CSS was a great starting point for my Jekyll theme, but there were areas I thought could use some minor improvements.&lt;/p&gt;
-&lt;p&gt;Feel free to read all the details on the design here: &lt;a href=&quot;https://et-jekyll.netlify.com/et-jekyll-theme/&quot;&gt;ET-Jekyll theme details&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;minor-fixes-one-year-later&quot;&gt;Minor Fixes One Year Later&lt;/h2&gt;
-&lt;p&gt;When I finally circled back to this project recently, I noticed some minor issues that could be improved right away with little to no effort. Let&amp;#8217;s see the changes made at a glance:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://tools.pingdom.com/#5e169d6a82000000&quot;&gt;See all the Pingdom details for yourself&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;Now the &lt;code&gt;Page Size&lt;/code&gt; will certainly change as more blog posts are added over time, but if the total webpage size is roughly 230 KB with 89 blog posts, I figure that gives me the ability to add another 200 or so posts before I cross the &lt;a href=&quot;https://1mb.club&quot;&gt;1MB threshold&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ll deal with how to load in the content more efficiently when that times comes&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;what-about-images&quot;&gt;What About Images?&lt;/h2&gt;
+&lt;p&gt;Good question. Since a large portion of my articles tend to be focused on design and CSS, visual examples are somewhat important. So how do I avoid loading in all the individual images on every single post into this single HTML &amp;#8220;website&amp;#8221;?&lt;/p&gt;
+&lt;p&gt;Easy - I don&amp;#8217;t load any images at all.&lt;/p&gt;
+&lt;p&gt;I now simply set any images that are not included in the current, visible &lt;code&gt;section&lt;/code&gt; to &lt;code&gt;display: none&lt;/code&gt;. This avoids breaking things with the RSS feed.&lt;/p&gt;
+&lt;p&gt;Here is an image example of an old Dribbble shot I created years ago:&lt;/p&gt;
+&lt;p&gt;I have noticed that Safari &amp;#47; Firefox on iOS renders the imagery as broken image links - I plan to look into this further to avoid that confusion. For now it works well on desktop Chromium and Firefox.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;figure&amp;#62;
+ &amp;#60;div class=&quot;img-parent&quot;&amp;#62;
+ &amp;#60;img loading=&quot;lazy&quot; src=&quot;&amp;#47;placeholder-image.webp&quot; onclick=&quot;this.src=&amp;#39;https:&amp;#47;&amp;#47;res.cloudinary.com&amp;#47;bradtaunt&amp;#47;image&amp;#47;fetch&amp;#47;q_auto:low&amp;#47;v1570124593&amp;#47;https:&amp;#47;&amp;#47;uglyduck.ca&amp;#47;public&amp;#47;images&amp;#47;aqua-ui-css-buttons.webp&amp;#39;&quot; alt=&quot;Aqua UI buttons&quot;&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;figcaption&amp;#62;&amp;#60;b&amp;#62;Click the placeholder to load in the real image&amp;#60;&amp;#47;b&amp;#62;&amp;#60;br&amp;#62;Example Dribbble shot for testing. Feel free to click the default image in order to load the correct Dribbble source. &amp;#60;a href=&quot;https:&amp;#47;&amp;#47;res.cloudinary.com&amp;#47;bradtaunt&amp;#47;image&amp;#47;fetch&amp;#47;q_auto:low&amp;#47;v1570124593&amp;#47;https:&amp;#47;&amp;#47;uglyduck.ca&amp;#47;public&amp;#47;images&amp;#47;aqua-ui-css-buttons.webp&quot;&amp;#62;View full size image&amp;#60;&amp;#47;a&amp;#62;.&amp;#60;&amp;#47;figcaption&amp;#62;
+&amp;#60;&amp;#47;figure&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;hows-the-seo&quot;&gt;How&amp;#8217;s the SEO?&lt;/h2&gt;
+&lt;p&gt;Probably terrible to be honest. One single file for all blog posts is something Google will most likely frown upon. Whatever - it&amp;#8217;s my personal blog so I don&amp;#8217;t really give a shit.&lt;/p&gt;
+&lt;h2 id=&quot;rss-feed&quot;&gt;RSS Feed&lt;/h2&gt;
+&lt;p&gt;If you recently added my old RSS feed, I&amp;#8217;m sorry, but you&amp;#8217;ll have to update. The new feed is located at &lt;a href=&quot;https://tdarb.org/feeds/posts.xml&quot;&gt;tdarb.org&amp;#47;feeds&amp;#47;posts.xml&lt;/a&gt;. I made this change to avoid spamming the current feed users.&lt;/p&gt;
+&lt;h2 id=&quot;tasty-dog-food&quot;&gt;Tasty Dog Food&lt;/h2&gt;
+&lt;p&gt;At the end of the day, by moving my personal blog over to PHPetite, it makes me more aware of current bugs and restrictions within the project. I feel like this will help me to improve this static site generator even more over time, instead of letting it die a slow death ignored on Github.&lt;/p&gt;
+&lt;p&gt;I hope you enjoyed this little breakdown and maybe even want to try out PHPetite for yourself? 😉&lt;/p&gt;</description>
+ <link>https://btxx.org/phpetite</link>
+ <guid isPermaLink="false">https://btxx.org/phpetite</guid>
+ <pubDate>Thu, 22 Apr 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Stuffing an SSD Inside the Raspberry Pi 400</title>
+ <description>&lt;h1 id=&quot;stuffing-an-ssd-inside-the-raspberry-pi-400&quot;&gt;Stuffing an SSD Inside the Raspberry Pi 400&lt;/h1&gt;
+&lt;p&gt;2021-08-13&lt;/p&gt;
+&lt;p&gt;I have successfully jammed an mSATA SSD into the main shell of my Raspberry Pi 400. It wasn&amp;#8217;t as straightforward as I thought it would be - in fact, most &lt;em&gt;real&lt;/em&gt; hardware tinkerers will probably vomit in their mouths once they see how I achieved this&amp;#8230;&lt;/p&gt;
+&lt;p&gt;But I&amp;#8217;m happy with my build. Those with better skills and knowledge can most likely improve upon this concept (and please do if you can - I&amp;#8217;d love to see it!)&lt;/p&gt;
+&lt;p&gt;Enough chit-chat - on to the build!&lt;/p&gt;
+&lt;h2 id=&quot;the-finished-masterpiece&quot;&gt;The Finished &amp;#8220;Masterpiece&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;Below you can see the final look of my modded Raspberry Pi 400, which I have personally named the &lt;strong&gt;Raspberry Pi 400X&lt;/strong&gt;:&lt;/p&gt;
+&lt;p&gt;Do you see that ugly black USB-C to USB-A cable jutting out from the top? That little guy connects directly to the mSATA SSD &lt;em&gt;inside&lt;/em&gt; the plastic keyboard structure and allows us to boot via USB. It also gives us the flexibility to easily &lt;em&gt;unplug&lt;/em&gt; the internal SSD for times when we desire to boot from micro SD or a different USB device altogether.&lt;/p&gt;
+&lt;p&gt;So, how did I make this?&lt;/p&gt;
+&lt;h2 id=&quot;the-shopping-list&quot;&gt;The Shopping List&lt;/h2&gt;
+&lt;p&gt;Before we deep dive into the terrible hardware modifications I&amp;#8217;ve made to my Pi, I&amp;#8217;ll list out all the items&amp;#47;tools I used during the making of this monstrosity:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Sidenote, marginnote and figure element restyling (flexbox)&lt;/li&gt;
-&lt;li&gt;Table styling fixes (right alignment issues)&lt;/li&gt;
-&lt;li&gt;Switch MathJax over to SVG embeds (performance fixes)&lt;/li&gt;
-&lt;li&gt;Simplify HTML skeleton of main pages, remove overkill classes&lt;/li&gt;
-&lt;li&gt;Remove lazysizes.js to save on load times&lt;/li&gt;
-&lt;li&gt;Fallback on font-display for font loading&lt;/li&gt;
-&lt;li&gt;Inline all CSS for faster initial paint&lt;/li&gt;
-&lt;li&gt;Minor link :hover coloring (accessibility)&lt;/li&gt;
-&lt;li&gt;Add missing image link on example page&lt;/li&gt;
-&lt;li&gt;Update details post structure&lt;/li&gt;
+&lt;li&gt;mSATA 64GB SSD Half Size (KingSpec) &amp;#8594; &lt;a href=&quot;https://www.aliexpress.com/item/32385499968.html?spm=a2g0s.9042311.0.0.210e4c4dIH8xWv&quot;&gt;AliExpress&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;mSATA to USB 3.1 enclosure (gutted) &amp;#8594; &lt;a href=&quot;https://www.amazon.ca/gp/product/B07BBM3BVS/ref=ppx_yo_dt_b_asin_title_o09_s00?ie=UTF8&amp;amp;psc=1&quot;&gt;Amazon&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Dremel rotary tool with soft sanding bits&lt;/li&gt;
+&lt;li&gt;Metal cutting scissors &amp;#47; knife&lt;/li&gt;
+&lt;li&gt;Electrical tape&lt;/li&gt;
+&lt;li&gt;Patience&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;You can view all the updates in more detail &lt;a href=&quot;https://github.com/bradleytaunt/ET-Jekyll/commit/254f9e8f28764c9525ba7405bbbfa18a3867d241&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;So what did this accomplish?&lt;/strong&gt; Let&amp;#8217;s break it down below.&lt;/p&gt;
-&lt;h2 id=&quot;first-contentful-paint-input-delay&quot;&gt;First Contentful Paint &amp;#38; Input Delay&lt;/h2&gt;
-&lt;p&gt;The new improvements have netted the theme a savings of 300ms on first paint and reduced the input delay by 150ms. Small wins - but wins nonetheless since every millisecond counts.&lt;/p&gt;
-&lt;h2 id=&quot;fixing-render-blocking-items&quot;&gt;Fixing Render Blocking Items&lt;/h2&gt;
-&lt;p&gt;The original theme reported a few items that were slowing down the initial render for the end-users:&lt;/p&gt;
+&lt;h2 id=&quot;modding-the-raspberry-pi-400&quot;&gt;Modding the Raspberry Pi 400&lt;/h2&gt;
+&lt;p&gt;The final product requires us to attach the half size mSATA SSD to the (gutted) enclosure and then insert that directly inside the Pi (next to the lock port &amp;#47; ethernet). Our first step will be to disassemble the Pi 400, safely remove the keyboard module and remove the metal heatsink.&lt;/p&gt;
+&lt;p&gt;With your trusty metal cutting scissors (or whatever tool you prefer) you will need to cut out room for our enclosure internals to fit within:&lt;/p&gt;
+&lt;p&gt;Next you will need to carefully remove the Pi board itself from the red part of the case. Once placed safely aside, it&amp;#8217;s time to bust out our sanding dremel and remove the jutting plastic blocking our soon-to-be-added SSD. Remember to wear a mask during this phase, since breathing in plastic dust and fumes is not fun!&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Important to note:&lt;/strong&gt; this will remove one of the screw slots needed to secure the heatsink into the board. Not a big deal if you ask me&amp;#8230;&lt;/p&gt;
+&lt;p&gt;While you have the Pi board removed you should also cut out a slot for the USB-C to USB-A cable to connect our mSATA to one of our USB 3 ports on the Pi. For this I&amp;#8217;ve opted to butcher the lock port (will I ever really use that anyway?)&lt;/p&gt;
+&lt;p&gt;Now all that&amp;#8217;s left is to insert our gutted mSATA enclosure (with the half size SSD attached of course)
+, tape it down with some hideous electrical tape and close this bad boy back up!&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it! You now have the portable power of the Raspberry Pi 400, but now with the speed and performance of an SSD!&lt;/p&gt;
+&lt;h2 id=&quot;the-performance-gains&quot;&gt;The Performance Gains&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
-&lt;th&gt;URL&lt;/th&gt;
-&lt;th&gt;Size (KB)&lt;/th&gt;
-&lt;th&gt;Savings (ms)&lt;/th&gt;
+&lt;th&gt;Storage Type&lt;/th&gt;
+&lt;th&gt;Seq. Write&lt;/th&gt;
+&lt;th&gt;Random W&lt;/th&gt;
+&lt;th&gt;Random R&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
-&lt;td&gt;&amp;#47;css&amp;#47;style.css&lt;/td&gt;
-&lt;td&gt;2.0&lt;/td&gt;
-&lt;td&gt;150&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;&amp;#47;lazysizes@4.0.1&amp;#47;lazysizes.js&lt;/td&gt;
-&lt;td&gt;5.0&lt;/td&gt;
-&lt;td&gt;960&lt;/td&gt;
+&lt;td&gt;Micro SD Card&lt;/td&gt;
+&lt;td&gt;17818 KB&amp;#47;sec&lt;/td&gt;
+&lt;td&gt;812 IOPS&lt;/td&gt;
+&lt;td&gt;2335 IOPS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
-&lt;td&gt;MathJax.js?config=TeX-MML-AM_CHTML&lt;/td&gt;
-&lt;td&gt;18.0&lt;/td&gt;
-&lt;td&gt;1,260&lt;/td&gt;
+&lt;td&gt;mSATA SSD&lt;/td&gt;
+&lt;td&gt;206738 KB&amp;#47;sec&lt;/td&gt;
+&lt;td&gt;14615 IOPS&lt;/td&gt;
+&lt;td&gt;17925 IOPS&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
-&lt;p&gt;These items were resolved by:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Rendering all styling inline (therefore removing the extra HTTP request)&lt;/li&gt;
-&lt;li&gt;Removing the lazysizes library altogether (browsers plan to support lazy loading natively in the future)
+&lt;p&gt;I think it&amp;#8217;s pretty clear that the SSD blows the default micro SD card out of the water&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
+&lt;p&gt;Now clearly you could just plug-in an external SSD and walk away with the same performance boosts - but where is the fun in that?&lt;/p&gt;
+&lt;p&gt;If anyone decides to improve on this or make a cleaner approach, please do share it with me. I&amp;#8217;d love to see it!&lt;/p&gt;</description>
+ <link>https://btxx.org/pi-400-internal-ssd</link>
+ <guid isPermaLink="false">https://btxx.org/pi-400-internal-ssd</guid>
+ <pubDate>Fri, 13 Aug 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Setting Up 1.1.1.1 for Families on a Pi-Hole</title>
+ <description>&lt;h1 id=&quot;setting-up-1.1.1.1-for-families-on-a-pi-hole&quot;&gt;Setting Up 1.1.1.1 for Families on a Pi-Hole&lt;/h1&gt;
+&lt;p&gt;2021-10-28&lt;/p&gt;
+&lt;p&gt;After seeing Cloudflare&amp;#8217;s 1.1.1.1 for Families mentioned on the &lt;a href=&quot;https://news.ycombinator.com/item?id=29024195&quot;&gt;front page of HackerNews&lt;/a&gt;, I thought it might be helpful to show those currently using a &lt;a href=&quot;https://pi-hole.net&quot;&gt;pi-hole device&lt;/a&gt; how to include 1.1.1.1 alongside it.&lt;/p&gt;
+&lt;h2 id=&quot;keeping-things-updated&quot;&gt;Keeping Things Updated&lt;/h2&gt;
+&lt;p&gt;It should go without saying that you should be running the latest stable pi-hole version for security and full feature support. To do so, simply &lt;code&gt;ssh&lt;/code&gt; into your device (or connect to it directly if you prefer) and run the following to check your pi-hole version:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;pihole -v
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;And if your version is out of date, run:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;pihole -up
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Once it completes the update everything will be good to go!&lt;/p&gt;
+&lt;h2 id=&quot;adding-1.1.1.1-1.1.1.2&quot;&gt;Adding 1.1.1.1 (1.1.1.2)&lt;/h2&gt;
+&lt;p&gt;Now you need to navigate to your main pi-hole admin in your browser (most likely the url will be &lt;em&gt;pi.hole&lt;/em&gt;). Login in using your credentials and the do the following steps:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Navigate to &lt;strong&gt;Settings&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Navigate to &lt;strong&gt;DNS&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Under &amp;#8220;Upstream DNS Servers&amp;#8221; enter:&lt;/li&gt;
+&lt;/ol&gt;
&lt;ul&gt;
-&lt;li&gt;The future plan is to integrate something like Cloudinary for out-of-the-box image processing&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Switch over MathJax to render equations as embedded SVGs (saves on bandwidth rendering an entire extra typeface)&lt;/li&gt;
+&lt;li&gt;Custom 1 (IPv4): 1.1.1.2&lt;/li&gt;
+&lt;li&gt;Custom 2 (IPv4): 1.0.0.2&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;lighthouse-numbers&quot;&gt;Lighthouse Numbers&lt;/h2&gt;
-&lt;p&gt;Though it might not look like much, the updated theme receives a 4-point boost to its performance rating during a Lighthouse audit. Having a perfect score would be even better, but I can settle for 2-points under (for now).&lt;/p&gt;
-&lt;h4 id=&quot;old-version&quot;&gt;Old Version&lt;/h4&gt;
+&lt;h2 id=&quot;ad-block-malware-protection&quot;&gt;Ad-Block &amp;#38; Malware Protection&lt;/h2&gt;
+&lt;p&gt;You now officially have protection against both intrusive advertisements &lt;em&gt;and&lt;/em&gt; sites flagged with malware. Happy (and now safer) browsing!&lt;/p&gt;</description>
+ <link>https://btxx.org/pihole-cloudflare</link>
+ <guid isPermaLink="false">https://btxx.org/pihole-cloudflare</guid>
+ <pubDate>Thu, 28 Oct 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Plain Text Emails, Please</title>
+ <description>&lt;h1 id=&quot;plain-text-emails-please&quot;&gt;Plain Text Emails, Please&lt;/h1&gt;
+&lt;p&gt;2019-09-09&lt;/p&gt;
+&lt;p&gt;When it comes to website &amp;#47; product design and development most devs should try to keep things simple. By only using as much code as absolutely necessary, projects avoid growing out of scope or becoming bloated. So, why isn&amp;#8217;t this same approach taken for email?&lt;/p&gt;
+&lt;h2 id=&quot;a-brief-history-of-email&quot;&gt;A brief history of email&lt;/h2&gt;
+&lt;p&gt;Email has been possible since the 1960s with &lt;a href=&quot;https://en.wikipedia.org/wiki/Time-sharing&quot;&gt;time-sharing computers&lt;/a&gt; being used to share files and messages across early devices. Around the 80s and 90s it seemed as though &lt;a href=&quot;https://en.wikipedia.org/wiki/Government_Open_Systems_Interconnection_Profile&quot;&gt;GOSIP&lt;/a&gt; would dominate the market, but this was knocked out in favor of SMTP, POP3 and IMAP in 1995 when the &lt;a href=&quot;http://www.walthowe.com/navnet/history.html&quot;&gt;National Science Foundation ended its sponsorship of the Internet backbone&lt;/a&gt;, and all traffic relied on commercial networks.&lt;/p&gt;
+&lt;p&gt;Things were looking pretty good at this point. Most operating systems now had a shared foundation of sending and receiving emails on the internet, allowing for a set of standards to be slowly developed and agreed upon over time. These were simpler times, with the default content sent between machines being plain text. No embedded images, no CSS3 fallback support, no &lt;em&gt;fluff&lt;/em&gt; - just content.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Sidenote:&lt;/strong&gt;
+Now, I&amp;#8217;m not going to sit here and pretend to be some expert on the history of email (or the internet in general), so I suggest you take the time to read about &lt;a href=&quot;http://www.walthowe.com/navnet/history.html&quot;&gt;the history of the internet&lt;/a&gt; if you&amp;#8217;re into that kind of thing.&lt;/p&gt;
+&lt;h2 id=&quot;looking-at-some-data&quot;&gt;Looking at some data&lt;/h2&gt;
+&lt;blockquote&gt;
+&lt;p&gt;Data isn&amp;#8217;t everything&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;I understand that the data being used is currently 16 years old - but not many extensive research studies have been performed (specifically for email-type preference in general)&lt;/p&gt;
+&lt;p&gt;In 2002[1], &lt;a href=&quot;https://www.clickz.com/real-world-email-client-usage-the-hard-data/47429/&quot;&gt;a small-set survey was run by ClickZ&lt;/a&gt; was created to gauge the details of personal email data. The main data we will focus on is the user preference between HTML or plain text formats:&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Do you prefer receiving HTML or text email?&lt;/strong&gt;&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
-&lt;th&gt;Performance&lt;/th&gt;
-&lt;th&gt;Accessibility&lt;/th&gt;
-&lt;th&gt;Best Practices&lt;/th&gt;
-&lt;th&gt;SEO&lt;/th&gt;
+&lt;th&gt;Response&lt;/th&gt;
+&lt;th&gt;Percentage (%)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
-&lt;td&gt;94&lt;/td&gt;
-&lt;td&gt;100&lt;/td&gt;
-&lt;td&gt;100&lt;/td&gt;
-&lt;td&gt;100&lt;/td&gt;
+&lt;td&gt;HTML&lt;/td&gt;
+&lt;td&gt;41.95&lt;/td&gt;
&lt;/tr&gt;
-&lt;/tbody&gt;
-&lt;/table&gt;
-&lt;h4 id=&quot;new-version&quot;&gt;New Version&lt;/h4&gt;
-&lt;table&gt;
-&lt;thead&gt;
&lt;tr&gt;
-&lt;th&gt;Performance&lt;/th&gt;
-&lt;th&gt;Accessibility&lt;/th&gt;
-&lt;th&gt;Best Practices&lt;/th&gt;
-&lt;th&gt;SEO&lt;/th&gt;
+&lt;td&gt;Plain Text&lt;/td&gt;
+&lt;td&gt;31.52&lt;/td&gt;
&lt;/tr&gt;
-&lt;/thead&gt;
-&lt;tbody&gt;
&lt;tr&gt;
-&lt;td&gt;98&lt;/td&gt;
-&lt;td&gt;100&lt;/td&gt;
-&lt;td&gt;100&lt;/td&gt;
-&lt;td&gt;100&lt;/td&gt;
+&lt;td&gt;No Preference&lt;/td&gt;
+&lt;td&gt;26.53&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
-&lt;h2 id=&quot;final-thoughts&quot;&gt;Final Thoughts&lt;/h2&gt;
-&lt;p&gt;This project could still use some more fine-tuning, but for now I&amp;#8217;m fairly happy with the outcome. Even the smallest boost in performance and rendering time makes me feel like I accomplished something worthwhile. &lt;/p&gt;
-&lt;p&gt;Please don&amp;#8217;t hesitate to suggest features or point out any issues you happen to stumble across if you plan to use ET-Jekyll. Thanks for reading!&lt;/p&gt;</description>
- <link>https://btxx.org/improving-tufte-jekyll</link>
- <guid isPermaLink="false">https://btxx.org/improving-tufte-jekyll</guid>
- <pubDate>Fri, 01 Nov 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Improving Receipt UX</title>
- <description>&lt;h1 id=&quot;improving-receipt-ux&quot;&gt;Improving Receipt UX&lt;/h1&gt;
-&lt;p&gt;2019-05-15&lt;/p&gt;
-&lt;p&gt;There was a pretty interesting article posted a couple days ago about rethinking the standard receipt design that I found quite compelling. Although, as good as the concept is, I think it can be improved (simplified) even further.&lt;/p&gt;
-&lt;h2 id=&quot;what-was-the-redesign-exaclty&quot;&gt;What was the redesign exaclty?&lt;/h2&gt;
-&lt;p&gt;Overall &lt;a href=&quot;https://twitter.com/datatoviz?lang=en&quot;&gt;Susie Lu&lt;/a&gt; did a wonderful job tackling such an old and forgotten design. She fixed some major pain points with the current receipt layout:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Bubble chart to visually indicate total spent per category&lt;/li&gt;
-&lt;li&gt;Categorized items by percentage of total spent&lt;/li&gt;
-&lt;li&gt;List individual items in descending order based on cost&lt;/li&gt;
-&lt;li&gt;Bar charts to compliment the item listing order&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Curious how her redesign looks? &lt;a href=&quot;https://www.fastcompany.com/90347782/the-humble-receipt-gets-a-brilliant-redesign&quot;&gt;Take a look at the original article&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;what-did-this-concept-get-wrong&quot;&gt;What did this concept get wrong?&lt;/h2&gt;
-&lt;p&gt;Simply put: &lt;strong&gt;paper waste&lt;/strong&gt;. &lt;/p&gt;
-&lt;p&gt;Using bubble and bar charts from a visual design perspective is great - but not so eco-friendly in this instance (since we are dealing with physical paper waste). It might seem like a small nitpick but with hundreds of thousands (if not millions) of receipts printed daily, this extra paper space required would add up quickly.&lt;/p&gt;
-&lt;p&gt;Fortunately, I think with some minor tweaks we can keep the underlying principles of the new redesign, while creating a more eco-friendly layout. We can save more space and therefore save on the overall paper needed.&lt;/p&gt;
-&lt;h2 id=&quot;receipt-redesign&quot;&gt;Receipt Redesign&lt;/h2&gt;
-&lt;p&gt;Let&amp;#8217;s take a look at my redesign concept:&lt;/p&gt;
-&lt;p&gt;With this layout we are able to keep all the key concepts that &lt;a href=&quot;https://twitter.com/datatoviz?lang=en&quot;&gt;Susie Lu&lt;/a&gt; initially introduced with her receipt design while preserving more space.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Categories are still listed by percentage of total spent&lt;/li&gt;
-&lt;li&gt;Individual items are organized in descending order based on cost&lt;/li&gt;
-&lt;li&gt;Uppercase and lowercase elements are used to distinguish parent &amp;#47; child items instead of additional space or dividers&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;final-thoughts&quot;&gt;Final thoughts&lt;/h2&gt;
-&lt;p&gt;The original redesign from a visual perspective is &lt;em&gt;wonderful&lt;/em&gt; but when you start to think about implementing it into the real world, it seems slightly impractical. My redesign concept is far from perfect (I&amp;#8217;m sure I&amp;#8217;ve overlooked some use cases) but I think it&amp;#8217;s a strong step forward for redesigning our archaic receipt layouts.&lt;/p&gt;</description>
- <link>https://btxx.org/improving-receipt-ux</link>
- <guid isPermaLink="false">https://btxx.org/improving-receipt-ux</guid>
- <pubDate>Wed, 15 May 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Improving Github's New Design</title>
- <description>&lt;h1 id=&quot;improving-githubs-new-design&quot;&gt;Improving Github&amp;#8217;s New Design&lt;/h1&gt;
-&lt;p&gt;2020-07-07&lt;/p&gt;
-&lt;p&gt;Like many other Github users, I am not a big fan of their recent repository page redesign. In my mind it seems like a change just for the sake of change - the original UI worked perfectly fine.&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;Sigh.&lt;/em&gt;&lt;/p&gt;
-&lt;p&gt;I was planning on recreating the original Github layout with custom CSS but decided against it. Tackling such a big change in design would cause headaches if Github ever changed even one simple class or id on a given element. My final conclusion was to just improve their new design with my own personal quality of life improvements.&lt;/p&gt;
-&lt;p&gt;So, enough chit-chat. Let&amp;#8217;s get into it.&lt;/p&gt;
-&lt;h2 id=&quot;current-design-2020&quot;&gt;Current Design (2020)&lt;/h2&gt;
-&lt;p&gt;The default view for a repo&amp;#8217;s homepage and ticket items are locked at a set &lt;code&gt;max-width&lt;/code&gt;. This causes some visual strain in comparison to the full-width headers and navigations directly above. I use a decently sized montior when using your app Gitub - &lt;strong&gt;let me use all the space available to me&lt;/strong&gt;!&lt;/p&gt;
-&lt;h2 id=&quot;my-improvements&quot;&gt;My Improvements&lt;/h2&gt;
-&lt;p&gt;Your users shouldn&amp;#8217;t have to jump around the page looking for the important information they want to see. Resetting the basic repo information to the left side of the screen allows user to &lt;em&gt;instantly&lt;/em&gt; read-up on the project details. (This design is catered towards left-to-right readers mind you).&lt;/p&gt;
-&lt;p&gt;We now also utilize all the available screen space, dependent on the user&amp;#8217;s browser window size.&lt;/p&gt;
-&lt;p&gt;We make similar updates to the ticket item view and also remove the out-of-place &lt;code&gt;margin-bottom&lt;/code&gt; from the project link headers.&lt;/p&gt;
-&lt;h2 id=&quot;try-it-yourself&quot;&gt;Try It Yourself!&lt;/h2&gt;
-&lt;p&gt;You can very easily implement these custom CSS changes with an extension for the browser of your choice:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Firefox: &lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/styl-us/&quot;&gt;Stylus&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Chrome: &lt;a href=&quot;https://chrome.google.com/webstore/detail/stylebot/oiaejidbmkiecgbjeifoejpgmdaleoha&quot;&gt;Stylebot&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Then create a new custom CSS file to target &lt;code&gt;github.com&lt;/code&gt; with the following properties:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.container-xl {
- max-width: 100%;
-}
-
-.repository-content .gutter-condensed.gutter-lg {
- flex-direction: row-reverse !important;
-}
-
-.repository-content #discussion_bucket .gutter-condensed.gutter-lg {
- flex-direction: row !important;
-}
-
-.repohead &amp;#62; div.d-flex {
- margin-bottom: 0 !important;
-}
-
-#show_issue {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
-}
-
-.repository-content #discussion_bucket,
-#partial-discussion-header {
- width: 100%;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it! Feel free to improve on this and further make it your own! I might create a new repo for this project if I end up adding even more improvements to the core CSS.&lt;/p&gt;</description>
- <link>https://btxx.org/improving-githubs-new-design</link>
- <guid isPermaLink="false">https://btxx.org/improving-githubs-new-design</guid>
- <pubDate>Tue, 07 Jul 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Using HTML Validator Badges Again</title>
- <description>&lt;h1 id=&quot;using-html-validator-badges-again&quot;&gt;Using HTML Validator Badges Again&lt;/h1&gt;
-&lt;p&gt;2019-07-05&lt;/p&gt;
-&lt;p&gt;There was a time on the Internet when websites wore badges of honor, declaring that their code was semantic and followed the W3C guidelines. The validators we used weren&amp;#8217;t great (and &lt;strong&gt;still&lt;/strong&gt; aren&amp;#8217;t perfect) but they represented a community that took pride in caring about the quality of their work. I think it&amp;#8217;s time we bring HTML badges back.&lt;/p&gt;
-&lt;h2 id=&quot;getting-the-flaws-out-of-the-way&quot;&gt;Getting the flaws out of the way&lt;/h2&gt;
-&lt;p&gt;Of course, there were reasons why these badges slowly faded out of popularity. Some of the reasoning made sense, but most felt like a stretch in logic from my perspective. I always looked at it as a &amp;#8220;the good outweighs the bad&amp;#8221;.&lt;/p&gt;
-&lt;p&gt;Jukka Korpela&amp;#8217;s post way back in 2003, &lt;a href=&quot;http://jkorpela.fi/html/validation.html&quot;&gt;HTML validation is a good tool but just a tool&lt;/a&gt;, highlighted a lot of problems with relying so heavily on these HTML validators. I suggest you give it a read if this kind of thing interests you. I found it fascinating, even though I disagree with most of the points he makes.&lt;/p&gt;
-&lt;p&gt;Some negatives used to dismiss HTML badges:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;strong&gt;The badge system is outdated&lt;/strong&gt;
-&lt;ul&gt;
-&lt;li&gt;Dismissing the worth of something based on how long it has been around is foolish. Many tools and frameworks are &amp;#8220;outdated&amp;#8221; but are still used to this day with great success.&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;HTML5 doesn&amp;#8217;t &lt;em&gt;require&lt;/em&gt; validation&lt;/strong&gt;
+&lt;p&gt;On initial review, one could make the argument that the general public &lt;em&gt;prefers&lt;/em&gt; HTML email over plain text (~42% vs ~32%) - but I would disagree with this analysis. The roughly 27% of respondents who answered with &lt;em&gt;No Preference&lt;/em&gt; should not be dismissed so easily.&lt;/p&gt;
+&lt;p&gt;Since the &lt;em&gt;No Preference&lt;/em&gt; respondents don&amp;#8217;t care whether emails they receive are designed in HTML format, why not send them plain text variations by default? The positives of plain text greatly outweigh those of HTML:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Technically &lt;em&gt;no subset of HTML&lt;/em&gt; requires validation - but developers should aim for it. The W3C validators perform a solid job of keeping a standard for web development, so by following a standard we can keep experiences consistent for users.&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Validation is too formal&lt;/strong&gt;
+&lt;li&gt;Plain text has reduced file size
&lt;ul&gt;
-&lt;li&gt;I believe in the ability to achieve your desired outcome based on almost any constraints. If a project leans you towards invalid or non-semantic structure to fulfill requirements, a better approach needs to be evaluated. We as developers tend to settle too quickly on the easiest option available to us.&lt;/li&gt;
+&lt;li&gt;Don&amp;#8217;t forget that many users have limited data usage across much of the world&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Websites &amp;#47; web apps are just &lt;em&gt;too complex&lt;/em&gt; to follow the W3C guidelines&lt;/strong&gt;
+&lt;li&gt;HTML is more likely to be flagged as spam by email clients
&lt;ul&gt;
-&lt;li&gt;I call &lt;em&gt;BS&lt;/em&gt; on this argument. The complexity of a website should have nothing to do with keeping semantic standards. &lt;em&gt;This is your job.&lt;/em&gt;&lt;/li&gt;
+&lt;li&gt;This is due to extra code, tracking scripts, 3rd party assets &amp;#47; resources being called&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;It only exists to catch syntax errors&lt;/strong&gt;
+&lt;li&gt;HTML &amp;#47; CSS can be inconsistent or even limited in support across email clients&lt;/li&gt;
+&lt;li&gt;Text only requires less design work for your development team
&lt;ul&gt;
-&lt;li&gt;For the record, I still see this more of a positive take on using validators. Subtle and nuanced syntax mistakes can be easily overlooked by the human eye.&lt;/li&gt;
+&lt;li&gt;Don&amp;#8217;t forget about testing all the various email clients too&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;nobody-puts-badges-in-a-corner&quot;&gt;&amp;#8220;Nobody puts &lt;em&gt;badges&lt;/em&gt; in a corner&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;A large of amount of designers &amp;#47; developers tend to forget that there are new people entering our industry everyday and they might not be as well versed in the basics of the web (HTML &amp;#38; CSS specifically). Since so many newcomers start out with JavaScript frameworks or jump onto pre-existing projects, they don&amp;#8217;t always grasp the core foundation of valid markup. Some frameworks even break basic standards for visuals or easier development environments - setting their initial expectations that ugly semantics is acceptable code. The ends justify the means, etc.&lt;/p&gt;
-&lt;p&gt;Guiding first-timers towards HTML validators let&amp;#8217;s them rethink their structure when building products or at least give some forethought to their outputted code. We, the more &lt;em&gt;verteran&lt;/em&gt; members of the community, have the knowledge of proper semantics since we grew our careers around this &amp;#8220;trend&amp;#8221;. We shouldn&amp;#8217;t assume newbies have the same understanding. The basics are important.&lt;/p&gt;
-&lt;h2 id=&quot;open-source-html5-badge&quot;&gt;Open source HTML5 badge&lt;/h2&gt;
-&lt;p&gt;Since the W3C doesn&amp;#8217;t officially produce any badges for HTML5 validation 1, I&amp;#8217;ve gone ahead and open sourced &lt;code&gt;SVG&lt;/code&gt; and &lt;code&gt;PNG&lt;/code&gt; versions of a badge based off the current W3C designs. You can check out the Github repo: &lt;a href=&quot;https://github.com/bradleytaunt/html5-valid-badge&quot;&gt;HTML5 Valid Badge&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;If you decide to use these badges, be sure to link these images to your valid passing URL (&lt;a href=&quot;https://html5.validator.nu&quot;&gt;html5.validator.nu&lt;/a&gt;). You can see an example of the link in the footer of this website.&lt;/p&gt;
-&lt;p&gt;Please feel free to reach out and share your websites &amp;#47; projects that pass as valid HTML and include an HTML valid badge. I&amp;#8217;d love to check them out!&lt;/p&gt;
+&lt;p&gt;Add to this that &lt;a href=&quot;https://litmus.com/blog/53-of-emails-opened-on-mobile-outlook-opens-decrease-33&quot;&gt;53% of emails are opened on mobile&lt;/a&gt; - so any &amp;#8220;fancy&amp;#8221; marketing email designs need to look great on mobile screens and also take into account slower connections. What looks better and loads faster than simple plain text? 😛&lt;/p&gt;
+&lt;h2 id=&quot;but-what-about-marketing&quot;&gt;But what about marketing!?&lt;/h2&gt;
+&lt;p&gt;Sorry to say, but marketing should never trump user experience. Teams love to track email opens &amp;#47; click ratios, who subscribed &amp;#47; unsubscribed or who shared the campaign with others - but &lt;strong&gt;it&amp;#8217;s all bloat on the user&amp;#8217;s end&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;Greg Kogan wrote up a great article &amp;#47; case study about his experience &lt;a href=&quot;https://www.gkogan.co/blog/dont-design-emails/&quot;&gt;switching over a client&amp;#8217;s campaign from HTML templates to plain text&lt;/a&gt; with some really interesting results. I highly recommend you give it a read for a better understanding about how the marketing goals and customer goals don&amp;#8217;t always align.&lt;/p&gt;
+&lt;h2 id=&quot;simple-or-lazy---it-doesnt-matter&quot;&gt;Simple or lazy - it doesn&amp;#8217;t matter&lt;/h2&gt;
+&lt;p&gt;Plain text can certainly have a reputation for looking lazy or cheap, but I feel this is mostly perpetuated in the design and marketing communities. I can assure you that your average day-to-day users are much less opinionated about your email campaign design than you are. Look to satisfy your customers&amp;#8217; needs before your own.&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;Life is really simple, but we insist on making it complicated.&lt;/p&gt;
+&lt;p&gt;- Confucius&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;That being said, at the end of the day, companies will justify their own reasons to use HTML email templates over plain text. You can&amp;#8217;t convince everyone. My own personal experience with email template design, along with analyzing some of the data, leaves me to believe that most businesses should default to plain text. At the very least, you should try to convince your team to perform some simple A&amp;#47;B testing with your next email campaign.&lt;/p&gt;
+&lt;p&gt;The results might just surprise you.&lt;/p&gt;
&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;p&gt;1 &lt;a href=&quot;http://html5doctor.com/html5-check-it-before-you-wreck-it-with-miketm-smith/&quot;&gt;Interview with Mike Smith&lt;/a&gt;: &amp;#8220;There won&amp;#8217;t be any proper Valid HTML5 icon forthcoming, so if you&amp;#8217;d like to use one in your content, you&amp;#8217;ll probably need to create one on your own.&amp;#8221;&lt;/p&gt;</description>
- <link>https://btxx.org/html5-validator-badge</link>
- <guid isPermaLink="false">https://btxx.org/html5-validator-badge</guid>
- <pubDate>Fri, 05 Jul 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Write HTML Like It's 1999</title>
- <description>&lt;h1 id=&quot;write-html-like-its-1999&quot;&gt;Write HTML Like It&amp;#8217;s 1999&lt;/h1&gt;
-&lt;p&gt;2019-06-06&lt;/p&gt;
-&lt;p&gt;I am sure it&amp;#8217;s safe to say that most developers love to use the latest and greatest web tools available. Helpful resources such as preprocessors, template engines, syntax formatters - you name it - can all make a developer&amp;#8217;s life easier. Unfortunately, this sometimes comes at a cost: the HTML structure.&lt;/p&gt;
-&lt;p&gt;This is why I try my best to write HTML as if I&amp;#8217;m stuck with the constraints of the 90s (within reason). What does this mean exactly? It means that &lt;code&gt;tables&lt;/code&gt; are coded with &lt;code&gt;table&lt;/code&gt; elements. Navigations are coded with &lt;code&gt;nav&lt;/code&gt; and ordered&amp;#47;unordered list-items. Form inputs are not set with &lt;code&gt;display: none&lt;/code&gt; and replaced with custom containers. You know, &lt;em&gt;semantic&lt;/em&gt; HTML.&lt;/p&gt;
-&lt;p&gt;To be clear, I&amp;#8217;m not advocating for creating projects that &lt;em&gt;look&lt;/em&gt; like they belong in the 1990s. I would just prefer developers &amp;#47; designers be more conscious of their HTML &lt;em&gt;skeleton&lt;/em&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;bad-html-practices&quot;&gt;Bad HTML practices&lt;/h2&gt;
-&lt;p&gt;Let&amp;#8217;s do a very simple breakdown of some of the more common HTML no-nos:&lt;/p&gt;
-&lt;h2 id=&quot;good-html-practices&quot;&gt;Good HTML practices&lt;/h2&gt;
-&lt;p&gt;So what should you do in place of these bad HTML implementations?&lt;/p&gt;
-&lt;h2 id=&quot;my-basic-structure-test&quot;&gt;My basic &amp;#8220;structure&amp;#8221; test&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve found a pretty simple starting point for testing the &lt;em&gt;bones of a website&lt;/em&gt; by using the following single line of CSS:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;* {
- border: 2px dotted black;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This property simply outlines all elements on the current page in a dotted border. By placing a border on every HTML element you can instantly see how overly complex or &lt;em&gt;ugly&lt;/em&gt; your structure might be under the hood.&lt;/p&gt;
-&lt;h2 id=&quot;thanks-captain-obvious&quot;&gt;&amp;#8220;Thanks, Captain Obvious!&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;I know, this stuff is pretty basic. The point of this post isn&amp;#8217;t to tell you (developers) something brand new or mind-blowing, but instead should inspire you to keep things simple.&lt;/p&gt;
-&lt;p&gt;Don&amp;#8217;t forget that there is always someone new into the world of design and development. Hopefully this post steers others towards keeping HTML code semantic and clean.&lt;/p&gt;
-&lt;h2 id=&quot;update-to-this-article&quot;&gt;Update to this article&lt;/h2&gt;
-&lt;p&gt;Since this post received &lt;a href=&quot;https://news.ycombinator.com/item?id=20133817&quot;&gt;so much more attention&lt;/a&gt; than I ever expected, I&amp;#8217;ve decided to touch on a few small points brought up in the comments.&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;&lt;strong&gt;What is the benefit of semantic HTML?&lt;/strong&gt;
-&lt;ul&gt;
-&lt;li&gt;Accessibility. Programs like screen readers are built around the foundation of proper HTML hierarchy. I highly recommend testing all your projects with a screen reader - it will open your eyes to a lot of issues users with disabilities suffer through.&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Tables not being responsive&lt;/strong&gt;
-&lt;ul&gt;
-&lt;li&gt;This simply isn&amp;#8217;t true. It is much more semantic to layout your tables as you would normally, then for mobile devices you can target specific inner elements and alter them with &lt;code&gt;flexbox&lt;/code&gt; etc. (You can see responsive tables in action &lt;a href=&quot;/responsive-tables&quot;&gt;here&lt;/a&gt;)&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Instead of the CSS one-liner, simply use Firefox debugger&lt;/strong&gt;
-&lt;ul&gt;
-&lt;li&gt;Fair point. Firefox is great!&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;This is the &amp;#8220;latest&amp;#8221; detailed survey I could find on email design preference&lt;/li&gt;
&lt;/ol&gt;</description>
- <link>https://btxx.org/html-like-1999</link>
- <guid isPermaLink="false">https://btxx.org/html-like-1999</guid>
- <pubDate>Thu, 06 Jun 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>HTML Dark Mode</title>
- <description>&lt;h1 id=&quot;html-dark-mode&quot;&gt;HTML Dark Mode&lt;/h1&gt;
-&lt;p&gt;2023-04-11&lt;/p&gt;
-&lt;p&gt;I wrote an article back in 2021 called &lt;a href=&quot;https://bt.ht/lazy-dev-dark-mode/&quot;&gt;The Lazy Developer&amp;#8217;s Dark
-Mode&lt;/a&gt; where I explained how to implement
-a very basic &amp;#8220;dark mode&amp;#8221; by using the &lt;code&gt;prefers-color-scheme&lt;/code&gt; CSS attribute.
-This stills works perfectly fine, and in fact there is a cleaner variation of
-this created by &lt;em&gt;jacksonchen666&lt;/em&gt;: &lt;a href=&quot;https://jacksonchen666.com/posts/2023-04-09/13-47-16/&quot;&gt;These 3 Lines of CSS Will Give You Dark Mode for Free&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;But today I wanted to show how to add dark mode functionality to a website
-without &lt;em&gt;any CSS at all&lt;/em&gt;.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;meta name=&quot;color-scheme&quot; content=&quot;dark light&quot;&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Add that line inside the &lt;code&gt;head&lt;/code&gt; tags on your HTML files and you&amp;#8217;re good to go.&lt;/p&gt;
-&lt;h2 id=&quot;minor-caveat&quot;&gt;Minor Caveat&lt;/h2&gt;
-&lt;p&gt;I mentioned this same issue on the official &lt;a href=&quot;https://barf.bt.ht/dark-mode/&quot;&gt;barf blog
-post&lt;/a&gt; but it doesn&amp;#8217;t hurt to repeat it here.
-Safari still has minor ahref &amp;#47; link color issue when defaulting to browser dark
-mode. If supporting that browser is a deal-breaker for you, I suggest looking
-at my &lt;a href=&quot;https://bt.ht/safari-default-dark-mode/&quot;&gt;hacky solution&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;Hopefully this helps others to add dark mode to their existing websites and
-projects with minimal effort!&lt;/p&gt;</description>
- <link>https://btxx.org/html-dark-mode</link>
- <guid isPermaLink="false">https://btxx.org/html-dark-mode</guid>
- <pubDate>Tue, 11 Apr 2023 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Goodbye WordPress, Hello Jekyll (Again)</title>
- <description>&lt;h1 id=&quot;goodbye-wordpress-hello-jekyll-again&quot;&gt;Goodbye WordPress, Hello Jekyll (Again)&lt;/h1&gt;
-&lt;p&gt;2020-08-13&lt;/p&gt;
-&lt;p&gt;For the past four months this blog has been running on WordPress - but that ended today. I&amp;#8217;ve officially switched back over to Jekyll. I&amp;#8217;m not going to spend too much time delving into &lt;em&gt;why&lt;/em&gt; I made the transition back, but I&amp;#8217;ll leave some cliff-notes for any interested parties.&lt;/p&gt;
-&lt;h2 id=&quot;the-big-issues-with-my-wordpress-setup&quot;&gt;The big issues with &lt;em&gt;my&lt;/em&gt; WordPress setup&lt;/h2&gt;
-&lt;p&gt;I have to state that these problems existed based on &lt;em&gt;my own&lt;/em&gt; setup &amp;#47; hosting choices with WordPress - this is not a direct reflection of WP itself.&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;&lt;strong&gt;No theme editor access&lt;/strong&gt;
-&lt;ul&gt;
-&lt;li&gt;I was using EasyWP (Namecheap etc.) for my web hosting. It only cost me $3.88&amp;#47;month, which was very cheap for the quality of service provided. Unfortunately, this low price came with some setbacks. EasyWP doesn&amp;#8217;t allow users to edit &lt;code&gt;header.php&lt;/code&gt; or &lt;code&gt;functions.php&lt;/code&gt; files directly in the theme editor. Having to resort to FTP for simple one-line change was annoying.&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Super cache&lt;/strong&gt;
-&lt;ul&gt;
-&lt;li&gt;Caching web pages is wonderful for users on subsequent visits, but EasyWP took this to the extreme. Making minor styling updates sometimes required code changes in the &lt;code&gt;header.php&lt;/code&gt; file directly in order to persist (see problem with editing these files in point #1).&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Monthly cost&lt;/strong&gt;
-&lt;ul&gt;
-&lt;li&gt;As I stated above, spending $3.88 on a monthly basis was peanuts in the grand scheme of things. Still, an extra monthly subscription for a side hobby seemed overkill for my use case.&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Future proofing&lt;/strong&gt;
-&lt;ul&gt;
-&lt;li&gt;In the end, having the core website generate itself into static files means it will stand the test of time on the interwebs. HTML &amp;#38; CSS FTW.&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;what-i-lost-in-the-switch&quot;&gt;What I lost in the switch&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;&lt;strong&gt;Comments&lt;/strong&gt;
-&lt;ul&gt;
-&lt;li&gt;I loved the concept of owing &amp;#47; hosting comments directly on each post but this seemed like a fair trade-off when compared to the positives listed above. I might circle back around and use something like &lt;a href=&quot;https://commento.io/&quot;&gt;Commento&lt;/a&gt; or &lt;a href=&quot;https://github.com/imsun/gitment&quot;&gt;Gitment&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Blog anywhere&lt;/strong&gt;
-&lt;ul&gt;
-&lt;li&gt;Having the ability to hop on any machine, log in to my site and blog was awesome. Over time though, I found myself not doing this very often. Most times when composing an article I found I would write it out, edit and publish all in one sitting. Cool concept - just not as useful.&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;moving-forward&quot;&gt;Moving forward&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve learned to stick with what keeps me productive (and in this case, keeps me writing consistently). I still love WordPress and won&amp;#8217;t hesitate to reach for it when the need arrives. Unfortunately, it seems my personal website isn&amp;#8217;t one of those instances.&lt;/p&gt;</description>
- <link>https://btxx.org/hello-jekyll</link>
- <guid isPermaLink="false">https://btxx.org/hello-jekyll</guid>
- <pubDate>Thu, 13 Aug 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Converting HEIF Images with macOS Automator</title>
- <description>&lt;h1 id=&quot;converting-heif-images-with-macos-automator&quot;&gt;Converting HEIF Images with macOS Automator&lt;/h1&gt;
-&lt;p&gt;2023-07-21&lt;/p&gt;
-&lt;p&gt;Often times when you save or export photos from iOS to iCloud they often render themselves into &lt;code&gt;heif&lt;/code&gt; or &lt;code&gt;heic&lt;/code&gt; formats. Both macOS and iOS have no problem working with these formats, but a lot of software programs will not even recognize these filetypes. The obvious step would just be to convert them via an application or online service, right?&lt;/p&gt;
-&lt;p&gt;Not so fast! Wouldn&amp;#8217;t it be much cleaner if we could simply right-click our &lt;code&gt;heif&lt;/code&gt; or &lt;code&gt;heic&lt;/code&gt; files and convert them directly in Finder? Well, I&amp;#8217;ve got some good news for you&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;basic-requirements&quot;&gt;Basic Requirements&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;You will need to have &lt;a href=&quot;https://homebrew.sh&quot;&gt;Homebrew&lt;/a&gt; installed&lt;/li&gt;
-&lt;li&gt;You will need to install the &lt;code&gt;libheif&lt;/code&gt; package through Homebrew: &lt;code&gt;brew install libheif&lt;/code&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;creating-our-custom-automator-script&quot;&gt;Creating our custom Automator script&lt;/h2&gt;
-&lt;p&gt;For this example script we are going to convert the image to JPG format. You can freely change this to whatever format you wish (PNG, TIFF, etc.). We&amp;#8217;re just keeping things basic for this tutorial. Don&amp;#8217;t worry if you&amp;#8217;ve never worked with Automator before because setting things up is incredibly simple.&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;&lt;p&gt;Open the macOS Automator from the Applications folder&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Select &lt;code&gt;Quick Option&lt;/code&gt; from the first prompt&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Set &amp;#8220;Workflow receives current&amp;#8221; to &lt;code&gt;image files&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Set the label &amp;#8220;in&amp;#8221; to &lt;code&gt;Finder&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;From the left pane, select &amp;#8220;Library &amp;#62; Utilities&amp;#8221;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;From the presented choices in the next pane, drag and drop &lt;code&gt;Run Shell Script&lt;/code&gt; into the far right pane&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Set the area &amp;#8220;Pass input&amp;#8221; to &lt;code&gt;as arguments&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Enter the following code below as your script and type &lt;code&gt;⌘-S&lt;/code&gt; to save (name it something like &amp;#8220;Convert HEIC&amp;#47;HEIF to JPG&amp;#8221;)&lt;/p&gt;
-&lt;p&gt;for f in &amp;#8220;$@&amp;#8221;
-do
-&amp;#47;opt&amp;#47;homebrew&amp;#47;bin&amp;#47;heif-convert &amp;#8220;$f&amp;#8221; &amp;#8220;${f%.*}.jpg&amp;#8221;
-done&lt;/p&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;making-edits&quot;&gt;Making Edits&lt;/h2&gt;
-&lt;p&gt;If you ever have the need to edit this script (for example, changing the default format to &lt;code&gt;png&lt;/code&gt;), you will need to navigate to your &lt;code&gt;~&amp;#47;Library&amp;#47;Services&lt;/code&gt; folder and open your custom heif Quick Action in the Automator application. &lt;/p&gt;
-&lt;p&gt;Simple as that. Happy converting!&lt;/p&gt;
-&lt;p&gt;If you&amp;#8217;re interested, I also have some other Automator scripts available:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;/batch-webp-conversion/&quot;&gt;Batch Converting Images to webp with macOS Automator&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;/macos-convert-to-html/&quot;&gt;Convert Files to HTML with macOS Automator Quick Actions&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;</description>
- <link>https://btxx.org/heif</link>
- <guid isPermaLink="false">https://btxx.org/heif</guid>
- <pubDate>Fri, 21 Jul 2023 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Stop Using Hamburger Menus (Sometimes)</title>
- <description>&lt;h1 id=&quot;stop-using-hamburger-menus-sometimes&quot;&gt;Stop Using Hamburger Menus (Sometimes)&lt;/h1&gt;
-&lt;p&gt;2023-05-05&lt;/p&gt;
-&lt;p&gt;I recently &lt;a href=&quot;https://fosstodon.org/@tdarb/110264983268249599&quot;&gt;tooted about my hatred of website hamburger menus&lt;/a&gt; which was met with a surprising amount of support from other users. It seems like most people &lt;em&gt;don&amp;#8217;t actually like hamburger menus&lt;/em&gt;. So why do we, as developers, keep using them in our products and designs? Is it our only option? Or is it because we have become conditioned to expect it?&lt;/p&gt;
-&lt;h2 id=&quot;the-core-problem-with-hamburger-menus&quot;&gt;The Core Problem with Hamburger Menus&lt;/h2&gt;
-&lt;p&gt;The biggest headache when coming across these menus on the web is the complete disregard for &lt;strong&gt;accessibility&lt;/strong&gt;. Performance and solid user experience is almost always thrown out the window in favour of a &amp;#8220;prettier&amp;#8221; design layout. You might have made the overall design &amp;#8220;cleaner&amp;#8221; for your users, but you sacrificed all usability to do so.&lt;/p&gt;
-&lt;p&gt;I challenge you to visit a webpage or web app with a hamburger menu and try to navigate solely with your keyboard and screen-readers (or better yet - try these screen readers on mobile!). Within seconds you will find a whole mess of issues. Now try the same test with JavaScript disabled&amp;#8230; Yikes.&lt;/p&gt;
-&lt;h2 id=&quot;but-i-have-no-choice&quot;&gt;&amp;#8220;But I Have No Choice!&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;I see this argument pop-up frequently when taking to design leaders or developers. I call bullshit on this excuse. You &lt;em&gt;absolutely&lt;/em&gt; have the choice to avoid implementing bad designs - that&amp;#8217;s your job! Either you&amp;#8217;re not fighting hard enough against those pushing for it, or you&amp;#8217;re just trying to build a &amp;#8220;pretty&amp;#8221; portfolio.&lt;/p&gt;
-&lt;h2 id=&quot;best-alternative-sitemap-footer&quot;&gt;Best Alternative: Sitemap Footer&lt;/h2&gt;
-&lt;p&gt;So instead of just whining about hamburger menus, I will actually offer up a solid replacement: &lt;strong&gt;sitemap footers&lt;/strong&gt;. Simply place all your website&amp;#47;application links into the bottom footer and link directly to them from your header. Be sure to also include some form of &amp;#8220;Top of the page&amp;#8221; link for quick access back to the initial scroll view.&lt;/p&gt;
-&lt;p&gt;That&amp;#8217;s it. There is nothing else you need to do for this to &lt;em&gt;just work&lt;/em&gt;. It might sound oversimplified and that&amp;#8217;s because it is. Looking for an example? This very website utilizes this technique, so give it a spin! Try using just your keyboard or even better - use a screen reader. Disable JS and CSS and watch it work flawlessly still.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt;&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Keyboard navigation accessible&lt;/li&gt;
-&lt;li&gt;Excellent screen-reader support&lt;/li&gt;
-&lt;li&gt;Works on all devices&amp;#47;screens by default (no media queries!)&lt;/li&gt;
-&lt;li&gt;Stays out of the way until called upon (UX goodness)&lt;/li&gt;
-&lt;li&gt;Requires ZERO CSS or JavaScript&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;&lt;strong&gt;Cons:&lt;/strong&gt;&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Footer can become large with many links (although I &lt;em&gt;really&lt;/em&gt; don&amp;#8217;t see this as a big deal)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;no-excuse&quot;&gt;No Excuse&lt;/h2&gt;
-&lt;p&gt;There really is no excuse to still be using hamburger menus. Users expect them to be present only because we as designers have conditioned them think that way. They deserve a better experience on the web. The &lt;em&gt;least&lt;/em&gt; we can do is improve something as simple as website navigation&amp;#8230;&lt;/p&gt;</description>
- <link>https://btxx.org/hamburgers</link>
- <guid isPermaLink="false">https://btxx.org/hamburgers</guid>
- <pubDate>Fri, 05 May 2023 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Using Hamburger Menus? Try Sausage Links</title>
- <description>&lt;h1 id=&quot;using-hamburger-menus-try-sausage-links&quot;&gt;Using Hamburger Menus? Try Sausage Links&lt;/h1&gt;
-&lt;p&gt;2019-06-14&lt;/p&gt;
-&lt;p&gt;When designing medium to large sized menu navigations on the mobile web the default go-to, for some time now, has been hamburger menus. This isn&amp;#8217;t necessarily a bad thing, but there is a simpler alternative for certain use cases.&lt;/p&gt;
-&lt;p&gt;Before we get into the nitty-gritty details (and a simple demo) of the &lt;em&gt;sausage link&lt;/em&gt; concept, let&amp;#8217;s take a quick look at the pros and cons of hamburger menus.&lt;/p&gt;
-&lt;h2 id=&quot;hamburger-menus&quot;&gt;Hamburger Menus&lt;/h2&gt;
-&lt;p&gt;The concept of the &lt;a href=&quot;https://codepen.io/search/pens?q=hamburger%20menu&amp;amp;page=1&amp;amp;order=popularity&amp;amp;depth=everything&quot;&gt;hamburger menu&lt;/a&gt; isn&amp;#8217;t &lt;em&gt;horrible&lt;/em&gt; by any means, in fact it does solve a lot of problems from a visual perspective. Unfortunately, that doesn&amp;#8217;t mean it exists without some annoying flaws.&lt;/p&gt;
-&lt;h3 id=&quot;the-good&quot;&gt;The Good&lt;/h3&gt;
-&lt;ul&gt;
-&lt;li&gt;Minimizes the amount visual space the menu requires&lt;/li&gt;
-&lt;li&gt;Fairly commonplace now that a good portion of users understand it&amp;#8217;s functionality&lt;/li&gt;
-&lt;li&gt;Makes the lives of designers easier by tucking all items away on mobile 😛&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h3 id=&quot;the-bad&quot;&gt;The Bad&lt;/h3&gt;
-&lt;ul&gt;
-&lt;li&gt;Requires extra testing&amp;#47;work to ensure the menu will play nice with screen readers and keyboard-only users&lt;/li&gt;
-&lt;li&gt;Can get overly complex with the presence of children dropdown elements, help text etc.&lt;/li&gt;
-&lt;li&gt;Adds bloat to projects that might require additional JavaScript to render these menus (CSS only hamburger menus avoid this issue)&lt;/li&gt;
-&lt;li&gt;Adds an additional point of interaction from the user (click to open, then proceed to read through available options)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;As you can see, the bad points listed above aren&amp;#8217;t &lt;em&gt;that&lt;/em&gt; bad. I see them more as minor potholes along the UX journey for your end-users. A good portion of hamburger menu examples in the wild work perfectly fine and should remain as they are. However, those outliers who abuse or misuse the hamburger concept should be introduced to &lt;strong&gt;sausage links&lt;/strong&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;sausage-links&quot;&gt;Sausage Links&lt;/h2&gt;
-&lt;p&gt;I should start by mentioning that this concept is far from &lt;strong&gt;new&lt;/strong&gt;. There are a good number of websites that already implement this menu type in some form or another. The point of this post isn&amp;#8217;t to blow your mind with some new-never-thought-of navigation design. I&amp;#8217;m just trying to bring awareness to another available menu concept.&lt;/p&gt;
-&lt;p&gt;Enough chit-chat, let&amp;#8217;s take a look at sausage links in action:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/scrolling-navigation.png&quot; alt=&quot;Scrolling menu with sausage links&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/QXjjbE/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;The above CodePen adds a good amount of visual design fluff, so let&amp;#8217;s take a look at the bare minimum HTML &amp;#38; CSS needed to accomplish this menu:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;nav class=&quot;sausage-links&quot;&amp;#62;
- &amp;#60;ul&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Homepage&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Categories&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Filter Properties&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Edit Optional Tags&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Research Papers&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;li&amp;#62;&amp;#60;a href=&quot;&quot;&amp;#62;Contact Our Team&amp;#60;&amp;#47;a&amp;#62;&amp;#60;&amp;#47;li&amp;#62;
- &amp;#60;&amp;#47;ul&amp;#62;
-&amp;#60;&amp;#47;nav&amp;#62;
-
-
-
-&amp;#47;* Sausage Links Nav Container *&amp;#47;
-.sausage-links {
- position: relative;
-}
-
-&amp;#47;* The left and right &quot;faded&quot; pseudo elements *&amp;#47;
-.sausage-links:before, .sausage-links:after {
- content: &amp;#39;&amp;#39;;
- height: calc(100% - 2em);
- pointer-events: none;
- position: absolute;
- top: 1em;
- width: 10px;
- z-index: 2;
-}
-.sausage-links:before {
- background: linear-gradient(to right, rgba(255,255,255,0) 0%, white 100%);
- right: 0;
-}
-.sausage-links:after {
- background: linear-gradient(to left, rgba(255,255,255,0) 0%, white 100%);
- left: 0;
-}
-
-&amp;#47;* Basic flexbox to prevent items from breaking lines *&amp;#47;
-.sausage-links ul {
- display: flex;
- flex-wrap: nowrap;
- overflow: auto;
- -webkit-overflow-scrolling: touch;
-}
-
-.sausage-links ul li {
- white-space: nowrap;
-}
-
-.sausage-links ul li a, .sausage-links ul li a:visited {
- display: inline-block;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Pretty simple, eh?&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: Thanks to &lt;a href=&quot;https://twitter.com/dany0w&quot;&gt;@dany0w&lt;/a&gt; for pointing out that I forgot to include &lt;code&gt;-webkit-overflow-scrolling: touch&lt;/code&gt; for momentum scrolling on iOS.&lt;/p&gt;
-&lt;h3 id=&quot;the-good-1&quot;&gt;The Good&lt;/h3&gt;
-&lt;ul&gt;
-&lt;li&gt;Extremely minimal amount of CSS required&lt;/li&gt;
-&lt;li&gt;Screen reader &amp;#47; keyboard-only safe&lt;/li&gt;
-&lt;li&gt;Zero JavaScript needed&lt;/li&gt;
-&lt;li&gt;No need for hacky hidden &lt;code&gt;radio&lt;/code&gt; inputs for toggling parent containers etc.&lt;/li&gt;
-&lt;li&gt;Users can see first few available options without any interaction&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h3 id=&quot;the-bad-1&quot;&gt;The Bad&lt;/h3&gt;
-&lt;ul&gt;
-&lt;li&gt;May not look the most visually appealing for certain project designs (ugly scrollbar in some instances)&lt;/li&gt;
-&lt;li&gt;Better suited for small to medium menu lists compared to massive sitemaps&lt;/li&gt;
-&lt;li&gt;Without proper fade &amp;#47; cut off visual cues, users may not understand they can scroll&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;so-should-i-use-hamburger-menus-or-sausage-links&quot;&gt;So, should I use hamburger menus or sausage links?&lt;/h2&gt;
-&lt;p&gt;That really depends on your project or overall mobile design (I know, such a helpful answer). I&amp;#8217;m sure there are even a few use cases where it would make sense to have sausage links within a toggle-based hamburger menu. The menu possibilities could be endless!&lt;/p&gt;
-&lt;p&gt;That&amp;#8217;s it. I hope I&amp;#8217;ve inspired you to try out sausage links in the near future or at least made you think more deeply about mobile navigation design!&lt;/p&gt;
-&lt;p&gt;&amp;#8230;is anyone else really hungry now?&lt;/p&gt;</description>
- <link>https://btxx.org/hamburger-menu-alternative</link>
- <guid isPermaLink="false">https://btxx.org/hamburger-menu-alternative</guid>
- <pubDate>Fri, 14 Jun 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Goodbye CSS Preprocessors</title>
- <description>&lt;h1 id=&quot;goodbye-css-preprocessors&quot;&gt;Goodbye CSS Preprocessors&lt;/h1&gt;
-&lt;p&gt;2017-09-07&lt;/p&gt;
-&lt;p&gt;I have been using preprocessors across all my side projects since they first popped onto the scene. Sass, Stylus, LESS — you name the CSS preprocessor and I&amp;#8217;ve most likely used it because CSS preprocessors are awesome.&lt;/p&gt;
-&lt;p&gt;But that all changes moving forward. I&amp;#8217;m going back to basics with CSS. Straight vanilla, man.&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/sass-cancel_rl1fsw_c_scale,w_800.webp&quot; alt=&quot;No Sass&quot; /&gt;&lt;/p&gt;
-&lt;h2 id=&quot;why-and-who-cares&quot;&gt;Why? And who cares?&lt;/h2&gt;
-&lt;p&gt;Let&amp;#8217;s start by breaking down the main positives about preprocessors:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Nested syntax&lt;/li&gt;
-&lt;li&gt;Definable variables&lt;/li&gt;
-&lt;li&gt;Advanced mathematical functions&lt;/li&gt;
-&lt;li&gt;Reusable mixins&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;All of these features are great and I completely understand the draw (I was also sucked into the hype) - but now let&amp;#8217;s see the negatives.&lt;/p&gt;
-&lt;h2 id=&quot;1.-debugging-is-a-chore&quot;&gt;1. Debugging is a chore&lt;/h2&gt;
-&lt;p&gt;So you found some weird padding clobbering an element&amp;#8217;s default styles on line 255 of your main complied CSS file? Excellent! Now you just need to figure out which file that property comes from.&lt;/p&gt;
-&lt;p&gt;This might sound trivial or that you can fix this with rendered comments but if you ever work on a project with hundreds of Sass&amp;#47;Stylus&amp;#47;LESS files all importing and compiling into each other - it can get out of hand.&lt;/p&gt;
-&lt;p&gt;Solution: Using plain CSS makes using browser dev tools a breeze. See a bug on line 255? No problem, let me fix line 255.&lt;/p&gt;
-&lt;h2 id=&quot;2.-dependencies-for-development&quot;&gt;2. Dependencies for development&lt;/h2&gt;
-&lt;p&gt;Building a project with a preprocessor brings with it unnecessary baggage; dependencies. You&amp;#8217;ll need to be running some sort of task runner (see grunt or gulp) that will compile and minify your CSS. I see this as extra overhead both during the initial setup of the project for new team members and the testing environment.&lt;/p&gt;
-&lt;p&gt;By using plain CSS, you avoid including an extra package in your package.json file (if applicable) or having to rely on third party compilers such as codekit (although I do recommend this app).&lt;/p&gt;
-&lt;h2 id=&quot;3.-variables-mixins-become-unwieldily&quot;&gt;3. Variables &amp;#38; mixins become unwieldily&lt;/h2&gt;
-&lt;p&gt;Both variables and mixins are great in small doses, but if your project has any real size to it these helpers become a hinderance. By using comma-delimited CSS selectors you can achieve the same outcome without the horror of needing a specific preprocessor file to handle just variables and mixins.&lt;/p&gt;
-&lt;p&gt;Basic example:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;selector, selectTwo, .css-class {
- &amp;#47;* shared styling *&amp;#47;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;4.-welcome-to-nesting-hell&quot;&gt;4. Welcome to nesting hell&lt;/h2&gt;
-&lt;p&gt;Honestly, I&amp;#8217;ve never been a fan of nesting. From a file structure perspective it is indeed very &amp;#8220;clean&amp;#8221;, but you sacrifice that cleanliness in the final compiled production code. You&amp;#8217;re making your development environment easier to glance at and work through at the cost of your production-ready, customer facing code.&lt;/p&gt;
-&lt;p&gt;You also run into another big no-no in my eyes: extreme selector specificity. The DOM target search starts to get out of control once you start having classes and selectors building up towards 10 or more steps.&lt;/p&gt;
-&lt;p&gt;Bad:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;body #home .container .modal nav .inner-nav &amp;#62; ul &amp;#62; li &amp;#62; a {
- color: red;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Good:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.inner-nav a {
- color: red;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Don&amp;#8217;t forget the amount of work needed to override styling with such deep selector specificity. That&amp;#8217;s where you end up diving into the world of !important tags.&lt;/p&gt;
-&lt;h2 id=&quot;final-thoughts&quot;&gt;Final thoughts&lt;/h2&gt;
-&lt;p&gt;It should go without saying that this is just my personal preference, there is no law behind this. If you use and absolutely love preprocessors - more power to you. All I suggest is using plain old vanilla CSS for your next project and see how it works out.&lt;/p&gt;
-&lt;p&gt;And do you know what I&amp;#8217;ve learned to appreciate after switching back to vanilla? CSS is more beautiful when developed in it&amp;#8217;s rawest form.&lt;/p&gt;</description>
- <link>https://btxx.org/goodbye-css-preprocessors</link>
- <guid isPermaLink="false">https://btxx.org/goodbye-css-preprocessors</guid>
- <pubDate>Thu, 07 Sep 2017 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Applying Email-Based Git Patches in Evolution on Linux</title>
- <description>&lt;h1 id=&quot;applying-email-based-git-patches-in-evolution-on-linux&quot;&gt;Applying Email-Based Git Patches in Evolution on Linux&lt;/h1&gt;
-&lt;p&gt;2023-04-25&lt;/p&gt;
-&lt;p&gt;Users who work with git patches through email most likely use a terminal-based program such as &lt;code&gt;aerc&lt;/code&gt; or &lt;code&gt;mutt&lt;/code&gt;. CLI email clients tend to have built-in support for easily applying patches directly to their local repos. But what about people who prefer to use graphical email apps?&lt;/p&gt;
-&lt;p&gt;Lucky for us, it is actually fairly simple to replicate a similar workflow to that of a CLI client. In this example I will be focusing on the Evolution email client, but the core principles should work in most other GUIs.&lt;/p&gt;
-&lt;h2 id=&quot;the-basics&quot;&gt;The Basics&lt;/h2&gt;
-&lt;blockquote&gt;
-&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The following assumes you already have &lt;code&gt;git&lt;/code&gt; installed and setup on your existing system.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;I find it best to first create a top-level folder on your system named &lt;code&gt;patches&lt;/code&gt;. We will use this folder as a temporary location for reviewing any &lt;code&gt;git&lt;/code&gt; patches submitted via email. I normally place this under &lt;code&gt;&amp;#47;home&amp;#47;&amp;#60;username&amp;#62;&amp;#47;patches&lt;/code&gt;.&lt;/p&gt;
-&lt;p&gt;Next, locate the email patch in Evolution and right-click on it. Select &amp;#8220;Save as mbox&amp;#8230;&amp;#8221; and place this file inside your newly created &lt;code&gt;patches&lt;/code&gt; folder.&lt;/p&gt;
-&lt;p&gt;Now simply open your terminal, navigate to your project and run:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;git am &amp;#60;path-to-patches-folder&amp;#62;&amp;#47;&amp;#60;patch-filename&amp;#62;.mbox
+ <link>https://btxx.org/plain-text-emails</link>
+ <guid isPermaLink="false">https://btxx.org/plain-text-emails</guid>
+ <pubDate>Mon, 09 Sep 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Poor Man's CSS Full-Bleed Layout</title>
+ <description>&lt;h1 id=&quot;poor-mans-css-full-bleed-layout&quot;&gt;Poor Man&amp;#8217;s CSS Full-Bleed Layout&lt;/h1&gt;
+&lt;p&gt;2020-10-07&lt;/p&gt;
+&lt;p&gt;I recently came across the very well written and interesting article, &lt;a href=&quot;https://joshwcomeau.com/css/full-bleed/&quot;&gt;Full-Bleed Layout Using CSS Grid&lt;/a&gt;, while browsing my daily designer feeds. I won&amp;#8217;t go into the post&amp;#8217;s specifics here (I recommend you read the article for yourself) but it details how to render full-bleed element effects utilizing the CSS &lt;code&gt;grid&lt;/code&gt; property.&lt;/p&gt;
+&lt;p&gt;While the approach in the article works perfectly fine, I thought to myself, &amp;#8220;Is there not a simpler, more backwards compatible way to do this?&amp;#8221;. Indeed there is.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Don&amp;#8217;t care about the tutorial?&lt;/strong&gt; &lt;a href=&quot;#live-demo&quot;&gt;Skip down to the live demo&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;make-the-web-backwards-compatible&quot;&gt;Make the Web Backwards Compatible&lt;/h2&gt;
+&lt;p&gt;I try my best when creating specific element designs or layouts to have everything render consistently across almost &lt;em&gt;all&lt;/em&gt; browsers. This tends to include the obvious front-runners: Chrome, Firefox, Safari - but I also try my best not to ignore the oldies: IE11, Edge and older versions of Opera. I believe if most web designers even loosely followed this concept we wouldn&amp;#8217;t be stringing together barely implemented CSS properties and hacking together polyfills for all the unsupported browsers. Just my two cents.&lt;/p&gt;
+&lt;p&gt;What does this have to do with full-bleed exactly? Well, the CSS we will be using in this demo is fully compatible with pretty much &lt;em&gt;any browser&lt;/em&gt; that can run the basic version of CSS rendering. If the browser you&amp;#8217;re targeting supports &lt;code&gt;max-width&lt;/code&gt; and &lt;code&gt;margins&lt;/code&gt; - then have no fear, full-bleeds are here.&lt;/p&gt;
+&lt;h2 id=&quot;our-html-example&quot;&gt;Our HTML Example&lt;/h2&gt;
+&lt;p&gt;Let&amp;#8217;s create a single-column blog layout for this example. We will include a heading, some paragraphs, an image, and a blockquote to keep it simple:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;main&amp;#62;
+ &amp;#60;article&amp;#62;
+ &amp;#60;h1&amp;#62;Main Heading&amp;#60;&amp;#47;h1&amp;#62;
+ &amp;#60;p&amp;#62;Et non consequat eiusmod minim fugiat. Magna duis veniam ex reprehenderit occaecat sit. Nisi ut ex aliquip magna enim.&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Laborum repellat ab earum commodi, consequuntur totam adipisci doloremque asperiores quae at quia non temporibus ipsam voluptate voluptatem ipsa nostrum suscipit aliquid!&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;img src=&amp;#39;https:&amp;#47;&amp;#47;images.unsplash.com&amp;#47;photo-1569083692634-f8db90c093ef?ixlib=rb-1.2.1&amp;#38;q=85&amp;#38;fm=jpg&amp;#38;crop=entropy&amp;#38;cs=srgb&amp;#38;ixid=eyJhcHBfaWQiOjE0NTg5fQ&amp;#39; alt=&quot;Some Image&quot;&amp;#62;
+ &amp;#60;p&amp;#62;Ex excepteur Lorem reprehenderit dolore in consequat voluptate commodo ipsum consequat ea et. Nisi tempor proident anim tempor. Laboris est sunt cillum deserunt culpa proident cillum laborum voluptate. Est exercitation Lorem reprehenderit eu ipsum nisi et.&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus dicta perspiciatis vel ex officiis, nisi optio nihil aspernatur exercitationem sed nobis architecto maxime eaque omnis eos, repellendus necessitatibus provident explicabo?&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid placeat ipsum totam, facere animi tenetur explicabo at veniam, culpa vitae debitis hic modi velit cum perferendis minima quos sit quisquam.&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;blockquote&amp;#62;
+ &amp;#60;p&amp;#62;To be, or not to be, that is the question:&amp;#60;br&amp;#62;Whether &amp;#39;tis nobler in the mind to suffer&amp;#60;br&amp;#62;The slings and arrows of outrageous fortune,&amp;#60;br&amp;#62;Or to take Arms against a Sea of troubles,&amp;#60;br&amp;#62;And by opposing end them: to die, to sleep;&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;cite&amp;#62;- Some guy&amp;#60;&amp;#47;cite&amp;#62;
+ &amp;#60;&amp;#47;blockquote&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus dicta perspiciatis vel ex officiis, nisi optio nihil aspernatur exercitationem sed nobis architecto maxime eaque omnis eos, repellendus necessitatibus provident explicabo?&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid placeat ipsum totam, facere animi tenetur explicabo at veniam, culpa vitae debitis hic modi velit cum perferendis minima quos sit quisquam.&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;article&amp;#62;
+&amp;#60;&amp;#47;main&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This should apply the patch directly to your project without issue. You are now free to test these changes locally. If everything looks good, you&amp;#8217;re able to instantly push these changes remotely.&lt;/p&gt;
-&lt;p&gt;Done and done.&lt;/p&gt;
-&lt;p&gt;Feel free to purge your &lt;code&gt;patches&lt;/code&gt; folder regularly or keep them around for future reference if you prefer!&lt;/p&gt;</description>
- <link>https://btxx.org/git-patches</link>
- <guid isPermaLink="false">https://btxx.org/git-patches</guid>
- <pubDate>Tue, 25 Apr 2023 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Simplifying the Craigslist Gallery</title>
- <description>&lt;h1 id=&quot;simplifying-the-craigslist-gallery&quot;&gt;Simplifying the Craigslist Gallery&lt;/h1&gt;
-&lt;p&gt;2022-10-03&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;This article was updated on October 11, 2022&lt;/strong&gt;&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m a big fan of &lt;a href=&quot;https://craigslist.org&quot;&gt;craigslist.org&lt;/a&gt; and the overall UX used throughout their application. My own website is an ever-changing example of &amp;#8220;brutalist&amp;#8221; or minimalist design, so I&amp;#8217;m always inspired by existing web apps out in the wild using the same principles.&lt;/p&gt;
-&lt;p&gt;One nitpick I have with the current craigslist design is their approach to image galleries inside their listings. They use a chunk of bloated JavaScript (more than &lt;code&gt;380kB&lt;/code&gt; total) to render something as simple as a collection of images. This seems like overkill to me.&lt;/p&gt;
-&lt;h2 id=&quot;simplifying-things&quot;&gt;Simplifying Things&lt;/h2&gt;
-&lt;p&gt;My first suggestion would be to remove JavaScript altogether. We can replicate most of the required features with just HTML &amp;#38; CSS. Let&amp;#8217;s start with our core HTML structure:&lt;/p&gt;
-&lt;h3 id=&quot;html&quot;&gt;HTML&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;gallery-wrapper&quot;&amp;#62;
- &amp;#60;div class=&quot;full-size&quot;&amp;#62;
- &amp;#60;a name=&quot;p1&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;100&amp;#47;400&quot; alt=&quot;Picture 1&quot; class=&quot;gallery-item&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;a name=&quot;p2&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;101&amp;#47;400&quot; alt=&quot;Picture 2&quot; class=&quot;gallery-item&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;a name=&quot;p3&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;106&amp;#47;400&quot; alt=&quot;Picture 3&quot; class=&quot;gallery-item&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;thumbnails&quot;&amp;#62;
- &amp;#60;a href=&quot;#p1&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;100&amp;#47;100&quot; alt=&quot;Picture 1 Thumbnail&quot; class=&quot;thumbnail-1&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;a href=&quot;#p2&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;101&amp;#47;100&quot; alt=&quot;Picture 2 Thumbnail&quot; class=&quot;thumbnail-2&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;a href=&quot;#p3&quot;&amp;#62;&amp;#60;img src=&quot;https:&amp;#47;&amp;#47;picsum.photos&amp;#47;id&amp;#47;106&amp;#47;100&quot; alt=&quot;Picture 3 Thumbnail&quot; class=&quot;thumbnail-3&quot;&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
+&lt;p&gt;This works well as it is, but we will need to &amp;#8220;section&amp;#8221; off our different areas of content based on whether we want them &lt;code&gt;full-bleed&lt;/code&gt; or not. We do this with - you guessed it - the &lt;code&gt;section&lt;/code&gt; element. In this demo we want the image and blockquote to become &lt;code&gt;full-bleed&lt;/code&gt; when rendered, so we&amp;#8217;ll add the &lt;code&gt;full-bleed&lt;/code&gt; class to those sections for now (more on that later):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;main&amp;#62;
+ &amp;#60;article&amp;#62;
+ &amp;#60;section&amp;#62;
+ &amp;#60;h1&amp;#62;Main Heading&amp;#60;&amp;#47;h1&amp;#62;
+ &amp;#60;p&amp;#62;Et non consequat eiusmod minim fugiat. Magna duis veniam ex reprehenderit occaecat sit. Nisi ut ex aliquip magna enim.&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Laborum repellat ab earum commodi, consequuntur totam adipisci doloremque asperiores quae at quia non temporibus ipsam voluptate voluptatem ipsa nostrum suscipit aliquid!&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;section&amp;#62;
+ &amp;#60;section class=&quot;full-bleed&quot;&amp;#62;
+ &amp;#60;img src=&amp;#39;https:&amp;#47;&amp;#47;images.unsplash.com&amp;#47;photo-1569083692634-f8db90c093ef?ixlib=rb-1.2.1&amp;#38;q=85&amp;#38;fm=jpg&amp;#38;crop=entropy&amp;#38;cs=srgb&amp;#38;ixid=eyJhcHBfaWQiOjE0NTg5fQ&amp;#39; alt=&quot;Some Image&quot;&amp;#62;
+ &amp;#60;&amp;#47;section&amp;#62;
+ &amp;#60;section&amp;#62;
+ &amp;#60;p&amp;#62;Ex excepteur Lorem reprehenderit dolore in consequat voluptate commodo ipsum consequat ea et. Nisi tempor proident anim tempor. Laboris est sunt cillum deserunt culpa proident cillum laborum voluptate. Est exercitation Lorem reprehenderit eu ipsum nisi et.&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus dicta perspiciatis vel ex officiis, nisi optio nihil aspernatur exercitationem sed nobis architecto maxime eaque omnis eos, repellendus necessitatibus provident explicabo?&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid placeat ipsum totam, facere animi tenetur explicabo at veniam, culpa vitae debitis hic modi velit cum perferendis minima quos sit quisquam.&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;section&amp;#62;
+ &amp;#60;section class=&quot;full-bleed&quot;&amp;#62;
+ &amp;#60;blockquote&amp;#62;
+ &amp;#60;p&amp;#62;To be, or not to be, that is the question:&amp;#60;br&amp;#62;Whether &amp;#39;tis nobler in the mind to suffer&amp;#60;br&amp;#62;The slings and arrows of outrageous fortune,&amp;#60;br&amp;#62;Or to take Arms against a Sea of troubles,&amp;#60;br&amp;#62;And by opposing end them: to die, to sleep;&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;cite&amp;#62;- Some guy&amp;#60;&amp;#47;cite&amp;#62;
+ &amp;#60;&amp;#47;blockquote&amp;#62;
+ &amp;#60;&amp;#47;section&amp;#62;
+ &amp;#60;section&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Ducimus dicta perspiciatis vel ex officiis, nisi optio nihil aspernatur exercitationem sed nobis architecto maxime eaque omnis eos, repellendus necessitatibus provident explicabo?&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p&amp;#62;Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid placeat ipsum totam, facere animi tenetur explicabo at veniam, culpa vitae debitis hic modi velit cum perferendis minima quos sit quisquam.&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;section&amp;#62;
+ &amp;#60;&amp;#47;article&amp;#62;
+&amp;#60;&amp;#47;main&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Here we are placing the full-size gallery images directly inside a single &lt;code&gt;div.full-size&lt;/code&gt; as - you guessed it - &lt;code&gt;img&lt;/code&gt; elements. This already helps us avoid the pitfall of building out spaghetti &lt;code&gt;div&lt;/code&gt; containers.&lt;/p&gt;
-&lt;p&gt;Below this parent container we have another element, &lt;code&gt;div.thumbnails&lt;/code&gt;, which will be used for our separate, smaller thumbnail versions of our main images. The most important items to note are the associated &lt;code&gt;ahref&lt;/code&gt; elements surrounding each &lt;code&gt;img&lt;/code&gt; element. By setting the &lt;code&gt;id&lt;/code&gt; parameter on our thumbnails to match that of the &lt;code&gt;name&lt;/code&gt; on our full-sized images, we can &amp;#8220;scroll&amp;#8221; the proper image into view without the need for JavaScript.&lt;/p&gt;
-&lt;p&gt;Now for the &lt;em&gt;fancy&lt;/em&gt; stuff - the CSS!&lt;/p&gt;
-&lt;h3 id=&quot;css&quot;&gt;CSS&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;.gallery-wrapper {
- position: relative;
-}
-.gallery-wrapper:before {
- background: rgba(255,255,255,0.8);
- content: &quot;Scroll &amp;#47; Swipe 🡢&quot;;
- display: block;
- padding: 5px;
- position: relative;
+&lt;p&gt;That&amp;#8217;s it for the HTML!&lt;/p&gt;
+&lt;h2 id=&quot;the-magic-css-not-really&quot;&gt;The Magic CSS (Not Really)&lt;/h2&gt;
+&lt;p&gt;Now take a deep breath and get ready for some hard CSS work:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;article {
+ width: 100%;
}
-.full-size {
- display: flex;
- scroll-snap-type: x mandatory;
- margin-bottom: 10px;
- max-width: 400px;
- overflow-x: scroll;
+article section {
+ margin: 0 auto;
+ max-width: 480px; &amp;#47;* This can be whatever you want *&amp;#47;
+ width: 100%;
}
-.full-size .gallery-item {
- scroll-snap-align: start;
+article section.full-bleed {
+ max-width: 100%;
}
-
-.thumbnails img {
- cursor: pointer;
- margin-right: 10px;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;That&amp;#8217;s it. &lt;em&gt;Really&lt;/em&gt;. Now any element (blockquotes, specific headers, navigations, footers, etc) that you want to layout as &amp;#8220;full-bleed&amp;#8221;, just wrap it in a &lt;code&gt;section&lt;/code&gt; tag and sick the &lt;code&gt;full-bleed&lt;/code&gt; class on it. Done and done.&lt;/p&gt;
+&lt;p&gt;Obviously you&amp;#8217;ll want to add more styling to clean-up and make your full-bleed layouts more beautiful. This demo was just more of a starting point.&lt;/p&gt;
+&lt;h3 id=&quot;maybe-not-quite-full-bleed&quot;&gt;Maybe Not-Quite-Full-Bleed?&lt;/h3&gt;
+&lt;p&gt;You could also further customize your options by including a class like &lt;code&gt;half-bleed&lt;/code&gt;, which maybe only expands slightly outside the main section &lt;code&gt;max-width&lt;/code&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;article section.half-bleed {
+ max-width: 960px;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Okay, so it isn&amp;#8217;t &lt;em&gt;that&lt;/em&gt; fancy. It&amp;#8217;s actually very basic, which is exactly what we were going for. The images are &amp;#8220;stacked&amp;#8221; inline thanks to the parent container being set to &lt;code&gt;display: flex&lt;/code&gt;, even though it has a set width of &lt;code&gt;600px&lt;/code&gt;. The included &lt;code&gt;scroll-snap-type: x mandatory&lt;/code&gt; tells the browser to allow users to scroll&amp;#47;swipe horizontally through the parent container.&lt;/p&gt;
-&lt;p&gt;The last important piece of this CSS is the &lt;code&gt;scroll-snap-align: start&lt;/code&gt; added to the individual image elements. This parameter &lt;em&gt;snaps&lt;/em&gt; the next image into the starting position of the parent container on scroll, giving a behavior users have come to expect from media galleries.&lt;/p&gt;
-&lt;p&gt;You will also see the included &lt;code&gt;:before&lt;/code&gt; pseudo element attached to the main &lt;code&gt;.gallery-wrapper&lt;/code&gt; element. This isn&amp;#8217;t &lt;em&gt;required&lt;/em&gt; but it certainly helps from a UX standpoint.&lt;/p&gt;
-&lt;h2 id=&quot;live-demo&quot;&gt;Live Demo&lt;/h2&gt;
-&lt;p&gt;Check out the embedded CodePen below to see it in action. More functionality could always be built on top of this, such as rendering all images dynamically on &amp;#8220;build&amp;#8221;, but for a starting point I think it&amp;#8217;s great.&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/ExLRyXz&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</description>
- <link>https://btxx.org/gallery</link>
- <guid isPermaLink="false">https://btxx.org/gallery</guid>
- <pubDate>Mon, 03 Oct 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Chrome OS Could Become the Future Leader of Computing</title>
- <description>&lt;h1 id=&quot;chrome-os-could-become-the-future-leader-of-computing&quot;&gt;Chrome OS Could Become the Future Leader of Computing&lt;/h1&gt;
-&lt;p&gt;2022-01-06&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;FOSS Enthusiasts&lt;/strong&gt;: This article discusses the use of proprietary software and places it in a &lt;em&gt;positive&lt;/em&gt; light. You have been warned. No angry emails please&amp;#8230;&lt;/p&gt;
-&lt;hr/&gt;
-&lt;p&gt;Google has created one of the best operating systems designed with the everyday user1 in mind: &lt;a href=&quot;https://www.google.com/chromebook/chrome-os/&quot;&gt;Chrome OS&lt;/a&gt;. It is undeniably simple, reliable, easy to setup, and ships with several years of support before any form of EOL kicks in. New models have built-in support for the Google Play Store and Android applications, which is helpful for application development and debugging.&lt;/p&gt;
-&lt;p&gt;In addition, Chrome OS devices allow you to run Linux in a separate container alongside the main OS (on supported devices). You can&amp;#8217;t complain about that!&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s take a quick look at other positive features worth mentioning:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Verified boot&lt;/li&gt;
-&lt;li&gt;Sandboxed environment (similar to how Chrome tabs work)&lt;/li&gt;
-&lt;li&gt;Automatic updates[^2]&lt;/li&gt;
-&lt;li&gt;&lt;em&gt;Incredible&lt;/em&gt; battery life (were talking 10+ hours with heavy usage)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;my-personal-experience&quot;&gt;My Personal Experience&lt;/h2&gt;
-&lt;p&gt;A handful of months ago I snagged the Lenovo Chromebook Duet when it was on sale for my wife. Since she does all her work directly through an Android phone, I thought of this as a nice companion device. And indeed it was&amp;#47;is.&lt;/p&gt;
-&lt;p&gt;In that time, I played around with the tablet myself to have a better grasp of the ecosystem and it&amp;#8217;s obvious limitations. But a funny thing happened. I found that those &amp;#8220;limitations&amp;#8221; slowly started to disappear the longer I worked with the device.&lt;/p&gt;
-&lt;p&gt;I decided to get my own Chrome OS device and snagged the &lt;a href=&quot;https://www.lenovo.com/ca/en/laptops/lenovo/student-chromebooks/Lenovo-10e-Chromebook-Tablet/p/82AM000EUS&quot;&gt;Lenovo 10e Chromebook Tablet&lt;/a&gt; (on sale).&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;10.1&amp;#8221; display (1920 x 1200) &amp;#47; 400 nits&lt;/li&gt;
-&lt;li&gt;4GB of RAM&lt;/li&gt;
-&lt;li&gt;32GB of eMMC storage&lt;/li&gt;
-&lt;li&gt;Processor: MediaTek MT8183 Processor (2.00 GHz, 4 Cores, 1 MB Cache)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Now, I know that your initial reaction is likely: &amp;#8220;Wow, those specs are pretty barebones!&amp;#8221; and you would be correct. But it&amp;#8217;s all you need for this ecosystem to work. As cringe-inducing as it may sound, everything you plan to do on these devices should happen &lt;em&gt;in the cloud&lt;/em&gt;. (Let&amp;#8217;s take a moment to avoid vomiting in our collective mouths)&lt;/p&gt;
-&lt;p&gt;Instead of using a few marketing buzz words, let me breakdown how I personally tailor Chrome OS to my needs as a designer &amp;#47; developer:&lt;/p&gt;
+&lt;h3 id=&quot;sidenote&quot;&gt;Sidenote&lt;/h3&gt;
+&lt;p&gt;For those concerned about accessibility: The &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section&quot;&gt;section element&lt;/a&gt; is a flow content element, so it can contain almost all HTML elements.&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/mdEdjzz&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</description>
+ <link>https://btxx.org/poor-mans-full-bleed</link>
+ <guid isPermaLink="false">https://btxx.org/poor-mans-full-bleed</guid>
+ <pubDate>Wed, 07 Oct 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>My Cheapskate Commenting System</title>
+ <description>&lt;h1 id=&quot;my-cheapskate-commenting-system&quot;&gt;My Cheapskate Commenting System&lt;/h1&gt;
+&lt;p&gt;2022-02-03&lt;/p&gt;
+&lt;p&gt;My blog now has comments! Well, &lt;em&gt;kind of&lt;/em&gt;&amp;#8230;&lt;/p&gt;
+&lt;p&gt;I went down a two day long rabbit-hole trying to find the best solution for implementing comments on my static website (generated via Jekyll FYI). There are a ton of options out there and many open source models that allow you to spin up your own instance with something like DigitalOcean or AWS. But I&amp;#8217;m a cheap bastard. I refuse to spend $5&amp;#47;month on a blog mostly used for fun and one that I have zero incentive to &amp;#8220;monetize&amp;#8221;.&lt;/p&gt;
+&lt;p&gt;So, what &lt;em&gt;free&lt;/em&gt; options did this old miser have left to chose from? To my surprise, there were two solid options that initially caught my eye! Let&amp;#8217;s take a look then, shall we?&lt;/p&gt;
+&lt;h2 id=&quot;remarkbox&quot;&gt;Remarkbox&lt;/h2&gt;
+&lt;p&gt;Overall I don&amp;#8217;t have many bad things to say about &lt;a href=&quot;https://www.remarkbox.com&quot;&gt;Remarkbox&lt;/a&gt;. It looks nice, is easy to implement and runs a &amp;#8220;pay what you can&amp;#8221; pricing model. What more could you ask for?! The major issue (for me, &lt;em&gt;personally&lt;/em&gt;) is precisely &lt;strong&gt;that&lt;/strong&gt;; the free model. This makes it difficult for me to trust 100% that this system will still be around in 3-4 years. Now I know - even paid systems can shutdown unexpectedly, but I find free tier options end up shutting their doors sooner. There is an option to self-host Remarkbox, but that requires a yearly license and also comes back to the point I made about not wanting to pay for hosting&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;utterances-github-based&quot;&gt;Utterances (Github-based)&lt;/h2&gt;
+&lt;p&gt;The other major option was &lt;a href=&quot;https://utteranc.es&quot;&gt;Utterances&lt;/a&gt;. This system was almost the winner due to it&amp;#8217;s pretty great feature set:&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;&lt;a href=&quot;#daily-tasks&quot;&gt;Daily Tasks&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#programming&quot;&gt;Programming&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#design&quot;&gt;Design&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#gaming&quot;&gt;Gaming&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Open source&lt;/li&gt;
+&lt;li&gt;No tracking, no ads&lt;/li&gt;
+&lt;li&gt;All data stored in GitHub issues&lt;/li&gt;
+&lt;li&gt;Free!&lt;/li&gt;
&lt;/ol&gt;
-&lt;h2 id=&quot;daily-tasks&quot;&gt;Daily Tasks&lt;/h2&gt;
-&lt;p&gt;I feel like going into &lt;em&gt;great&lt;/em&gt; detail explaining how to do basic, daily computing tasks is a little overkill here. Spreadsheets, word documents, Zoom meetings, and streaming media work as expected. You have the ability to use Google&amp;#8217;s own web apps for these things or reach for other vendors such as Microsoft and Libre Office. Not being &amp;#8220;locked in&amp;#8221; to Google software is nice and I appreciate the Chrome OS team being flexible.&lt;/p&gt;
-&lt;h2 id=&quot;programming&quot;&gt;Programming&lt;/h2&gt;
-&lt;p&gt;This one is a mixed bag and your own mileage may vary depending on your specific requirements. Personally, I use Github for almost all my main development work. Because of this, I utilize &lt;a href=&quot;https://github.com/features/codespaces&quot;&gt;Codespaces&lt;/a&gt;. For those unfamiliar with the service, you are running your Github repo in VSCode through the browser. It&amp;#8217;s pretty impressive.&lt;/p&gt;
-&lt;p&gt;If you happen to be a user who uses GitLab or BitBucket to store your project files, &lt;a href=&quot;https://www.gitpod.io/&quot;&gt;Gitpod&lt;/a&gt; is a similar product to Codespaces (which I&amp;#8217;ve used on occasion). This works if your prefer.&lt;/p&gt;
-&lt;p&gt;Others may not like this programming setup but for me it works great. If running code remotely isn&amp;#8217;t your jam, you could always take a look at running &lt;a href=&quot;https://vscodium.com/&quot;&gt;VSCodium&lt;/a&gt; locally via Linux.&lt;/p&gt;
-&lt;h2 id=&quot;design&quot;&gt;Design&lt;/h2&gt;
-&lt;p&gt;There is flexibility yet again in this category. Personally, I tend to use Figma almost exclusively as my main design tool. The best thing about Figma? It runs directly in the browser. A perfect fit for Chromebooks[^3].&lt;/p&gt;
-&lt;p&gt;I do open Gimp periodically for photo-specific work. It runs in its own Linux container and chugs along smoothly, even with 4GB of available memory. If all else fails, one could use &lt;a href=&quot;https://www.photopea.com/&quot;&gt;Photopea&lt;/a&gt; to keep everything working through the browser (if Linux isn&amp;#8217;t your cup of tea).&lt;/p&gt;
-&lt;p&gt;Those of you in love with MacOS specific apps like Sketch - I can&amp;#8217;t help you. You&amp;#8217;re stuck with Apple&amp;#8217;s ecosystem. (Not that there is anything wrong with Sketch!)&lt;/p&gt;
-&lt;h2 id=&quot;gaming&quot;&gt;Gaming&lt;/h2&gt;
-&lt;p&gt;There are other options (that we will get into) but the main gaming champion here is &lt;strong&gt;Stadia&lt;/strong&gt;[^4]. As long as your internet speeds are over 10mbps, mind you. I use garbage satellite internet (counting down the days for Starlink to become available here&amp;#8230;) with an average speed of 18-20mbps and Stadia runs like a dream. Even &lt;em&gt;wirelessly&lt;/em&gt;. Now pair this with the portability of a Chromebook device and you&amp;#8217;ve got yourself a beefier Nintendo Switch.&lt;/p&gt;
-&lt;p&gt;You have solid secondary options like &lt;a href=&quot;https://play.geforcenow.com/mall/#/layout/games&quot;&gt;GeForce Now&lt;/a&gt; and &lt;a href=&quot;https://www.xbox.com/en-CA/xbox-game-pass/cloud-gaming&quot;&gt;Microsoft&amp;#8217;s xCloud (beta)&lt;/a&gt; for an even larger catalogue of games. Not to mention the ability to play a lot of Android games natively on Chromebooks that support Play Store applications.&lt;/p&gt;
-&lt;h2 id=&quot;eye-rolling-scoffing&quot;&gt;Eye Rolling &amp;#38; Scoffing&lt;/h2&gt;
-&lt;p&gt;I can hear the screeching across the interwebs: &amp;#8220;&lt;em&gt;Wait - this is Google! They are literally Satan in disguise! No one can use products from that evil mega corporation!&lt;/em&gt;&amp;#8221;. And while I agree with the sentiment, I think going down this pure, 100% elitist approach to software &lt;em&gt;doesn&amp;#8217;t work&lt;/em&gt; with the everyday casual user. Not to mention the large swath of developers&amp;#47;designers screaming &amp;#8220;Google is bad!&amp;#8221; while working off an &lt;em&gt;Apple&lt;/em&gt; device&amp;#8230;&lt;/p&gt;
-&lt;p&gt;Hell even I, a vocal advocate for open source software and privacy, can see the great benefits to using Chrome OS as a daily driver. &lt;/p&gt;
-&lt;p&gt;Testing out Chrome OS with your non-technical friends and family could help reduce a lot of headaches found in more &amp;#8220;popular&amp;#8221; systems. That doesn&amp;#8217;t mean advanced users have to switch over. Use what works the best for you. For my immediate family members and social circles, I have nothing but positive things to say about Chrome OS.&lt;/p&gt;
-&lt;p&gt;I have no crystal ball to see what the future of Chrome OS holds but it looks pretty promising to me.&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;&amp;#8220;Users&amp;#8221; referring to those mainly using their devices for word documents, spread sheets, media consumption, programming, messaging, minor interactivity (no heavy video or production editing)&lt;/li&gt;
-&lt;li&gt;These updates go unnoticed, compared to that of MacOS or Windows&amp;#8230;&lt;/li&gt;
-&lt;li&gt;Your mileage may vary depending on how much RAM you have on your device&lt;/li&gt;
-&lt;li&gt;Although, Stadia&amp;#8217;s current game selection leaves a lot to be desired&lt;/li&gt;
-&lt;/ol&gt;</description>
- <link>https://btxx.org/future-os-google</link>
- <guid isPermaLink="false">https://btxx.org/future-os-google</guid>
- <pubDate>Thu, 06 Jan 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Prescription Form UI Improvements</title>
- <description>&lt;h1 id=&quot;prescription-form-ui-improvements&quot;&gt;Prescription Form UI Improvements&lt;/h1&gt;
-&lt;p&gt;2019-03-13&lt;/p&gt;
-&lt;p&gt;I was browsing the Clearly website a few days ago and ended up using their prescription form to update my worsening eyesight. The design of this form wasn&amp;#8217;t &lt;em&gt;bad&lt;/em&gt; per se, but it could certainly be improved.&lt;/p&gt;
-&lt;h2 id=&quot;current-design-of-the-prescription-view&quot;&gt;Current design of the prescription view&lt;/h2&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/prescription-ui.webp&quot; alt=&quot;Default prescription UI&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;As I stated, this design isn&amp;#8217;t horrible by any means, but right away we can notice some problems:&lt;/p&gt;
+&lt;p&gt;But take a look above at point number three. The fact that readers wishing to leave a comment are &lt;strong&gt;required to have a Github account&lt;/strong&gt;. For me, this is a non-starter. I don&amp;#8217;t want to force my audience to sign up for or sign in to &lt;em&gt;any&lt;/em&gt; account just to leave a simple comment on my humble blog. Considering a number of my readers are part of the FOSS community, this just seemed like a bad fit.&lt;/p&gt;
+&lt;h2 id=&quot;finding-inspiration&quot;&gt;Finding Inspiration&lt;/h2&gt;
+&lt;p&gt;I absolutely love the &lt;a href=&quot;https://solar.lowtechmagazine.com&quot;&gt;solar.lowtechmagazine.com&lt;/a&gt; website (both for it&amp;#8217;s content and design) and indirectly found my comment system inspiration there. Okay let&amp;#8217;s be honest, I completely stole their commenting system &amp;#8220;concept&amp;#8221;. Imitation is the sincerest form of flattery, right?&lt;/p&gt;
+&lt;h2 id=&quot;my-comment-system-is&quot;&gt;My Comment System is&amp;#8230;&lt;/h2&gt;
+&lt;p&gt;E-mail. It&amp;#8217;s just &lt;strong&gt;plain e-mail&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ve setup a basic &lt;code&gt;comment-prompt.html&lt;/code&gt; in my &lt;code&gt;_includes&lt;/code&gt; folder that contains a &lt;code&gt;mailto&lt;/code&gt; action button[^1]:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;a href=&quot;mailto:myemail.com?subject=RE: { { page.title | uri_escape } }&quot;&amp;#62;
+ &amp;#60;button&amp;#62;Comment via email&amp;#60;&amp;#47;button&amp;#62;
+&amp;#60;&amp;#47;a&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;This include template is placed at the bottom of every article automatically. Then, that action pulls in the article&amp;#8217;s title as the e-mail subject line in the user&amp;#8217;s default mailing app. That&amp;#8217;s it.&lt;/p&gt;
+&lt;h2 id=&quot;pros&quot;&gt;Pros&lt;/h2&gt;
&lt;ul&gt;
-&lt;li&gt;the layout causes the users&amp;#8217; eyes to jump between left-to-right and top-to-bottom without good correlation&lt;/li&gt;
-&lt;li&gt;title content and &lt;code&gt;next&lt;/code&gt; buttons are centered, while dropdowns are presented as left-to-right&lt;/li&gt;
-&lt;li&gt;anchor link coloring is inconsistent&lt;/li&gt;
-&lt;li&gt;too much whitespace between interactive sections&lt;/li&gt;
-&lt;li&gt;dropdown height overly large&lt;/li&gt;
+&lt;li&gt;No third party application needed&lt;/li&gt;
+&lt;li&gt;Privacy focused&lt;/li&gt;
+&lt;li&gt;More direct interaction with my audience&amp;#47;readers&lt;/li&gt;
+&lt;li&gt;Builds a much more close-knit community&lt;/li&gt;
+&lt;li&gt;Completely free!&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;starting-to-make-some-changes&quot;&gt;Starting to make some changes&lt;/h2&gt;
-&lt;p&gt;Let&amp;#8217;s tackle these problems one at a time. First, we want a more defined page layout so the user can scan through the content more easily (left-to-right, down to the next line, then repeat).&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/prescription-ui-update-1.webp&quot; alt=&quot;Layout wireframe UI&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;We have now left-aligned the title content to be flush with the OD&amp;#47;OS elements below it to help keep the reading flow consistent. &lt;/p&gt;
-&lt;p&gt;The previous layout also had the &lt;code&gt;PD&lt;/code&gt; in-line with the OD&amp;#47;OS element rows which created a problem of resetting the user thought-process. Since it requires the user to jump from the &amp;#8220;right eye&amp;#8221; option to the &amp;#8220;PD&amp;#8221; option, then back to &amp;#8220;left eye&amp;#8221; option it breaks the flow of user &amp;#8220;tasks&amp;#8221;. The new UI shifts the &lt;code&gt;PD&lt;/code&gt; down into it&amp;#8217;s own row, grouping the unrelated tasks on the page separately.&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;You&amp;#8217;ll also notice that I&amp;#8217;ve updated the dropdowns to use a monospace font to convey that these options are number inputs.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;Finally we place the button actions in-line with the &lt;code&gt;PD&lt;/code&gt; block since it previously ate up far more real estate than was necessary.&lt;/p&gt;
-&lt;h2 id=&quot;adding-some-color&quot;&gt;Adding some color&lt;/h2&gt;
-&lt;p&gt;The original design has some inconsistencies with the link coloring - some being a muted grey while others use the accented blue. Updating all interactive links to use Clearly&amp;#8217;s default blue accent color would make for a better disconnect from non-interactive elements.&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/prescription-ui-update-2.webp&quot; alt=&quot;Layout UI with color&quot; /&gt;&lt;/p&gt;
-&lt;h2 id=&quot;finishing-touches&quot;&gt;Finishing touches&lt;/h2&gt;
-&lt;p&gt;Now that the most important aspects of the refreshed UI are complete (layout, UX flow), we can implement all the visual extras to cleanup our basic wireframe.&lt;/p&gt;
+&lt;h2 id=&quot;cons&quot;&gt;Cons&lt;/h2&gt;
&lt;ul&gt;
-&lt;li&gt;make default select styling include depth and importance (this is the main action of the page afterall)&lt;/li&gt;
-&lt;li&gt;round out harsh corner edges on elements&lt;/li&gt;
-&lt;li&gt;set labels and row items with more pleasing backgrounds (while still maintaining contrast)&lt;/li&gt;
-&lt;li&gt;give the &lt;code&gt;next&lt;/code&gt; button visual importance (make it look like a real button)&lt;/li&gt;
+&lt;li&gt;Must be manually curated and posted&lt;/li&gt;
+&lt;li&gt;No notifications&lt;/li&gt;
+&lt;li&gt;No &amp;#8220;built-in&amp;#8221; reply functionality&lt;/li&gt;
+&lt;li&gt;Has the potential to become unwieldy&amp;#8230;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/prescription-ui-update-final.webp&quot; alt=&quot;Layout UI with color&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;That&amp;#8217;s it!&lt;/p&gt;</description>
- <link>https://btxx.org/form-ui-improvements</link>
- <guid isPermaLink="false">https://btxx.org/form-ui-improvements</guid>
- <pubDate>Wed, 13 Mar 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Adaptable Flexbox Grid</title>
- <description>&lt;h1 id=&quot;adaptable-flexbox-grid&quot;&gt;Adaptable Flexbox Grid&lt;/h1&gt;
-&lt;p&gt;2018-11-22&lt;/p&gt;
-&lt;p&gt;You can use &lt;code&gt;flexbox&lt;/code&gt; for many tricky layout &amp;#8220;hacks&amp;#8221; and implementing a grid layout is no different.&lt;/p&gt;
-&lt;p&gt;Check out the CodePen below to see how you can implement a flexbox grid system that adapts automatically based on how many items you insert per row (maximum 6 children in this example).&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/rQdLxv/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</description>
- <link>https://btxx.org/flexbox-grid</link>
- <guid isPermaLink="false">https://btxx.org/flexbox-grid</guid>
- <pubDate>Thu, 22 Nov 2018 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Pure CSS Bar Graphs with Graceful Mobile Fallbacks</title>
- <description>&lt;h1 id=&quot;pure-css-bar-graphs-with-graceful-mobile-fallbacks&quot;&gt;Pure CSS Bar Graphs with Graceful Mobile Fallbacks&lt;/h1&gt;
-&lt;p&gt;2020-12-08&lt;/p&gt;
-&lt;p&gt;I recently published a new open source project, Flexbox Bar Graphs, and wanted to share a simple breakdown of how it was built. It isn&amp;#8217;t anything mind-blowing, but I like the idea of placing bar graphs in a web page with &lt;em&gt;zero&lt;/em&gt; Javascript.&lt;/p&gt;
-&lt;p&gt;So in the end, this is what our bar graphs will look like on desktop:&lt;/p&gt;
-&lt;p&gt;And this is how it will look on smaller devices:&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s get into the details!&lt;/p&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;The main &amp;#8220;secret&amp;#8221; of this project is that our graphs are constructed out of HTML &lt;em&gt;tables&lt;/em&gt;. Now before you freak out - this is perfectly fine and works in our favor quite well.&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;If the user has JS disabled &amp;#8211;&amp;#62; they will still see our graphs&lt;/li&gt;
-&lt;li&gt;If the user has CSS disabled &amp;#8211;&amp;#62; they will see a standard data table set&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;All bases are covered!&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;!-- Using a basic table with our custom data-id --&amp;#62;
-&amp;#60;table data-id=&quot;flexbox-bar-graph&quot;&amp;#62;
- &amp;#60;caption&amp;#62;Web Performance Results&amp;#60;&amp;#47;caption&amp;#62;
- &amp;#60;thead&amp;#62;
- &amp;#60;tr&amp;#62;
- &amp;#60;th&amp;#62;Test Performed&amp;#60;&amp;#47;th&amp;#62;
- &amp;#60;th&amp;#62;Before&amp;#60;&amp;#47;th&amp;#62;
- &amp;#60;th&amp;#62;After&amp;#60;&amp;#47;th&amp;#62;
- &amp;#60;th&amp;#62;Difference&amp;#60;&amp;#47;th&amp;#62;
- &amp;#60;&amp;#47;tr&amp;#62;
- &amp;#60;&amp;#47;thead&amp;#62;
- &amp;#60;tbody&amp;#62;
- &amp;#60;tr&amp;#62;
- &amp;#60;th&amp;#62;Initial Load Time&amp;#60;&amp;#47;th&amp;#62;
- &amp;#60;td&amp;#62;
- &amp;#60;!--
- WTF are these CSS variables?
- See the CSS section below
- --&amp;#62;
- &amp;#60;span style=&quot;--data-set:4.7&amp;#47;5;&quot;&amp;#62;&amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;p&amp;#62;4.7&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td&amp;#62;
- &amp;#60;span style=&quot;--data-set:2.7&amp;#47;5;&quot;&amp;#62;&amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;p&amp;#62;2.7&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td&amp;#62;
- &amp;#60;span style=&quot;--data-set:2&amp;#47;5;&quot;&amp;#62;&amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;p&amp;#62;2&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;&amp;#47;tr&amp;#62;
- &amp;#60;&amp;#47;tbody&amp;#62;
-&amp;#60;&amp;#47;table&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Nothing crazy is happening here - just your standard HTML table structure. The one main thing to notice is the &lt;code&gt;--data-set&lt;/code&gt; CSS variable placed inline on each data point. This will be important for our CSS to configure the individual bar graphs properly.&lt;/p&gt;
-&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;This might look overwhelming if I just dumped the whole CSS file in one big code block, so instead I&amp;#8217;m going to break them down into two parts:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Baseline styling (mobile)&lt;/li&gt;
-&lt;li&gt;Desktop styling&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h3 id=&quot;baseline&quot;&gt;Baseline&lt;/h3&gt;
-&lt;p&gt;Here we target just our table elements with the &lt;code&gt;data-id&lt;/code&gt; of &lt;code&gt;flexbox-bar-graph&lt;/code&gt;. This allows us to avoid worrying about adding classes or IDs and also avoids conflicts with other non-graph styled tables in our projects.&lt;/p&gt;
-&lt;p&gt;The base &lt;code&gt;:root&lt;/code&gt; element holds all of our bar graph colors. Change these as you see fit!&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Bar Graph color variables *&amp;#47;
-:root {
- --bar-color-1: #357EC7;
- --bar-color-2: #E42217;
- --bar-color-3: #4CC417;
- --bar-color-4: #7D0541;
- --bar-color-5: #FFD801;
-}
-
-[data-id=&quot;flexbox-bar-graph&quot;] {
- border-collapse: collapse;
- margin: 4rem 0 6rem;
- width: 100%;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] caption {
- text-align: left;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] thead th {
- text-align: right;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] thead th:nth-child(1),
-[data-id=&quot;flexbox-bar-graph&quot;] tbody th {
- text-align: left;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody th {
- font-weight: normal;
- font-style: italic;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody td {
- text-align: right;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody td p {
- margin: 0;
-}
+&lt;h2 id=&quot;fun-experiment&quot;&gt;Fun Experiment&lt;/h2&gt;
+&lt;p&gt;I figure either way, this will be an interesting experiment. I don&amp;#8217;t know my audience size (since I don&amp;#8217;t use any type of tracking) but I assume it&amp;#8217;s very small. Those willing to write me a personal e-mail in order to share their thoughts on my stupid little blog probably have something interesting to say. At least I hope so. &lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s see how this thing goes&amp;#8230;&lt;/p&gt;</description>
+ <link>https://btxx.org/poormans-comment-system</link>
+ <guid isPermaLink="false">https://btxx.org/poormans-comment-system</guid>
+ <pubDate>Thu, 03 Feb 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Proper UI Hierarchy</title>
+ <description>&lt;h1 id=&quot;proper-ui-hierarchy&quot;&gt;Proper UI Hierarchy&lt;/h1&gt;
+&lt;p&gt;2019-02-05&lt;/p&gt;
+&lt;p&gt;I often feel like an old man when I complain about flat design and how designers these days have lost (or willfully forgotten) the skill to create accessible UIs with proper visual hierarchy. A skill which at it&amp;#8217;s core seems so simple - yet is overlooked in almost every current modern interface.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m unable to pinpoint the exact reason why designers swapped out depth, hierarchical layouts and accessibility for muted colors, abstract imagery, illegible typography, and unimaginative flat designs.&lt;/p&gt;
+&lt;p&gt;But then again, maybe I&amp;#8217;m just a design-dinosaur of a time long forgotten. Maybe I need to adapt and move with the times. Or maybe the current design trends are just lazy.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m pretty sure it&amp;#8217;s lazy design trends.&lt;/p&gt;
+&lt;h2 id=&quot;stop-complaining-and-do-something&quot;&gt;Stop complaining and do something&lt;/h2&gt;
+&lt;p&gt;As an example, I&amp;#8217;m going to breakdown the process of improving the overall design on a set of &amp;#8220;flat&amp;#8221; button elements.&lt;/p&gt;
+&lt;p&gt;Hopefully this demo article inspires even one designer to rethink their method when approaching UI design and push away from what is currently accepted as the &amp;#8220;correct way to design UI&amp;#8221;.&lt;/p&gt;
+&lt;p&gt;And one final note before we deep dive into this demo: &lt;/p&gt;
+&lt;p&gt;The statement that flat design is inherently worse than it&amp;#8217;s predecessor &lt;strong&gt;is not subjective&lt;/strong&gt;. By stripping away the visual cues that help users distinguish between interface elements you are purposely making a worse experience for them. Designers need to stop designing for other designers.&lt;/p&gt;
+&lt;h2 id=&quot;what-we-will-be-designing&quot;&gt;What we will be designing&lt;/h2&gt;
+&lt;p&gt;In this demo we will be improving the default flat design inspired button layout of the following:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/proper-ui.png&quot; alt=&quot;Proper UI buttons, blue and green&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/yLXJmdy&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;hr/&gt;
+&lt;h2 id=&quot;designing-the-skeleton&quot;&gt;Designing the skeleton&lt;/h2&gt;
+&lt;p&gt;This will be our basic HTML structure, along with it&amp;#8217;s default styling (based on today&amp;#8217;s UI standards):&lt;/p&gt;
+&lt;h3 id=&quot;the-html&quot;&gt;The HTML&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;buttons-container&quot;&amp;#62;
+ &amp;#60;button&amp;#62;Sign Up&amp;#60;&amp;#47;button&amp;#62;
+ &amp;#60;button&amp;#62;Log in&amp;#60;&amp;#47;button&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;desktop&quot;&gt;Desktop&lt;/h3&gt;
-&lt;p&gt;Now we set your &amp;#8220;visual&amp;#8221; bar graphs to show at a set width (in this example it is 1000px and above). That way the &amp;#8220;default&amp;#8221; styling can target the mobile device screen sizes.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;p&gt;The &lt;code&gt;thead tr th:nth-child(x):before&lt;/code&gt; elements create the square &amp;#8220;legends&amp;#8221; beside each individual data point heading&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;The &lt;code&gt;tbody tr td:nth-of-type(x) span&lt;/code&gt; elements are the bars themselves&lt;/p&gt;
-&lt;p&gt;@media(min-width: 1000px) {
- [data-id=&quot;flexbox-bar-graph&amp;#8221;] {
- background: transparent;
- display: block;
- min-height: 400px;
- padding: 0;
- position: relative;
- width: 100%;
- }&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;[data-id=&quot;flexbox-bar-graph&quot;] caption {
- display: block;
- font-size: 2rem;
- text-align: center;
- width: 100%;
-}
-
-[data-id=&quot;flexbox-bar-graph&quot;] thead {
- display: block;
- margin: 2rem 0 3rem;
- width: 100%;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] thead tr {
- border-bottom: 1px solid lightgrey;
+&lt;h3 id=&quot;the-css&quot;&gt;The CSS&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Parent container for the buttons *&amp;#47;
+.buttons-container {
+ background: #E0E9EE;
+ border-radius: 5px;
display: flex;
- justify-content: center;
- padding-bottom: 1rem;
+ padding: 20px;
+ margin: 0 auto;
+ max-width: 300px;
+ width: 100%;
}
-[data-id=&quot;flexbox-bar-graph&quot;] thead tr th {
- display: inline-block;
- margin: 0;
- padding: 0;
- position: relative;
- text-align: right;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:before {
- content:&amp;#39;&amp;#39;;
+&amp;#47;*Shared button styles *&amp;#47;
+button {
+ appearance: none;
+ border: 0;
+ border-radius: 5px;
+ color: #fff;
+ cursor: pointer;
display: inline-block;
- height: 10px;
- margin: 0 0.5rem 0 2rem;
- position: relative;
- width: 10px;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(1),
-[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(1):before {
- display: none;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(2):before {
- background: var(--bar-color-1);
-}
-[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(3):before {
- background: var(--bar-color-2);
-}
-[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(4):before {
- background: var(--bar-color-3);
-}
-[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(5):before {
- background: var(--bar-color-4);
-}
-[data-id=&quot;flexbox-bar-graph&quot;] thead tr th:nth-child(6):before {
- background: var(--bar-color-5);
-}
-
-[data-id=&quot;flexbox-bar-graph&quot;] tbody {
- display: flex;
- justify-content: space-between;
- min-height: 300px;
- width: 100%;
+ font-size: 14px;
+ font-weight: bold;
+ padding: 15px 20px;
+ width: 50%;
}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody tr {
- display: flex;
- flex-direction: column-reverse;
- flex-wrap: wrap;
- justify-content: flex-end;
- padding: 0 50px;
- position: relative;
- width: 100%;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody tr th {
- font-size: 90%;
- position: absolute;
- text-align: center;
- top: 100%;
- width: calc(100% - 100px);
-}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td {
- align-items: center;
- display: flex;
- flex-direction: column;
- height: 95%;
- justify-content: flex-end;
+&amp;#47;* Sign up button *&amp;#47;
+button:first-child {
+ background: #2FBC3D;
+ margin-right: 10px;
}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td span {
- display: block;
- height: calc(var(--data-set) * 100%);
- width: 20px;
-}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td:nth-of-type(1) span {
- background: var(--bar-color-1);
-}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td:nth-of-type(2) span {
- background: var(--bar-color-2);
-}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td:nth-of-type(3) span {
- background: var(--bar-color-3);
-}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td:nth-of-type(4) span {
- background: var(--bar-color-4);
+&amp;#47;* Log in button *&amp;#47;
+button:last-child {
+ background: #459BCF;
}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td:nth-of-type(5) span {
- background: var(--bar-color-5);
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;adding-simple-improvements&quot;&gt;Adding simple improvements&lt;/h2&gt;
+&lt;p&gt;Gradients (not solely on their own mind you) within UI systems were initially used to help humans make connections with their analog counterparts. Something like toggles or switches matching those found in the real world, allowed users to mentally connect what that element&amp;#8217;s function did almost instantly. &lt;/p&gt;
+&lt;p&gt;Be warned not to confuse this with skeuomorphic design - an element sharing similar qualities as it&amp;#8217;s analog sibling does not instantly make it so.&lt;/p&gt;
+&lt;p&gt;If you ever run into a designer who rolls their eyes or scoffs at you for proposing the use of something such as gradients (in a tactful way, of course) it is safe to assume they have been brainwashed by the modern design hive-mind.&lt;/p&gt;
+&lt;p&gt;To disregard the use of gradients simply because the belief is &amp;#8220;gradients are bad&amp;#8221; is idiotic. Worse still is to do so based on the belief that &amp;#8220;gradients aren&amp;#8217;t &lt;em&gt;in&lt;/em&gt; right now&amp;#8221;. As a designer, your job is to design a beautiful and &lt;em&gt;usable&lt;/em&gt; product - not win high-fives among your peers. &amp;#47;end rant.&lt;/p&gt;
+&lt;h3 id=&quot;adding-subtle-gradients&quot;&gt;Adding subtle gradients&lt;/h3&gt;
+&lt;p&gt;When gradients are implemented properly, most users won&amp;#8217;t even be aware of their presence. The difference in color (specifically on buttons in this example) helps give the illusion of a light source in the interface, which designers can use to their advantage (ie. pull more attention to elements by &amp;#8220;lifting&amp;#8221; them forward on the page).&lt;/p&gt;
+&lt;h3 id=&quot;the-subtly-improved-css&quot;&gt;The subtly improved CSS&lt;/h3&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Sign up button *&amp;#47;
+button:first-child {
+ background-image: linear-gradient(-180deg, #1EB52A 0%, #0D941C 100%);
}
-[data-id=&quot;flexbox-bar-graph&quot;] tbody tr td p {
- font-size: 90%;
- margin: 0;
- text-align: center;
+&amp;#47;* Log in button *&amp;#47;
+button:last-child {
+ background-image: linear-gradient(-180deg, #489FD2 0%, #0A6DAC 100%);
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;}&lt;/p&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;bonus-styling&quot;&gt;Bonus Styling&lt;/h2&gt;
-&lt;p&gt;In the Flexbox Bar Graph repo, I&amp;#8217;ve also included the ability to display these bar graphs horizontally, like so:&lt;/p&gt;
-&lt;p&gt;The change in CSS is actually quite simple to pull this off - you just need to include the &lt;code&gt;data-layout&lt;/code&gt; attribute on the table itself.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;[data-layout=&quot;horizontal&quot;] tbody {
- min-height: auto;
+&lt;h2 id=&quot;more-depth-light&quot;&gt;More depth &amp;#38; light&lt;/h2&gt;
+&lt;p&gt;With our subtle gradients we are closer to creating a solid contrast between interactive elements, but we can improve this even further. By adding some more depth with a harder light source and more pronounced outlines, we allow the button elements to stand out on their own more strongly.&lt;/p&gt;
+&lt;p&gt;This is fairly easy to accomplish with CSS using the very basic &lt;code&gt;box-shadow&lt;/code&gt;, &lt;code&gt;text-shadow&lt;/code&gt; and &lt;code&gt;border&lt;/code&gt; properties:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Parent container *&amp;#47;
+.buttons-container {
+ background-image: linear-gradient(0deg, #BBC6CD 3%, #E2EBF0 100%);
+ border: 1px solid #8D8D8D;
+ box-shadow: 0 2px 4px 0 rgba(42,42,42,0.40), inset 0 1px 3px 0 rgba(255,255,255,0.50);
}
-[data-layout=&quot;horizontal&quot;] tbody tr {
- flex-direction: column;
- padding: 0 40px;
+&amp;#47;* Shared button styling with text-shadows *&amp;#47;
+.buttons-container button {
+ text-shadow: 0 2px 4px rgba(0,0,0,0.30);
}
-[data-layout=&quot;horizontal&quot;] tbody tr th {
- width: calc(100% - 80px);
+
+&amp;#47;* Sign up button *&amp;#47;
+.buttons-container button:first-child {
+ background-image: linear-gradient(-180deg, #1EB52A 0%, #0D941C 100%);
+ border: 1px solid #0C6B16;
+ box-shadow: 0 1px 5px 0 rgba(9,116,21,0.50), inset 0 -1px 6px 0 rgba(0,0,0,0.20), inset 0 1px 0 0 rgba(255,255,255,0.50), inset 0 2px 4px 0 rgba(255,255,255,0.50);
}
-[data-layout=&quot;horizontal&quot;] tbody tr th {
- text-align: left;
- top: calc(100% + 20px);
+&amp;#47;* Log in button *&amp;#47;
+.buttons-container button:last-child {
+ background-image: linear-gradient(-180deg, #489FD2 0%, #0A6DAC 100%);
+ border: 1px solid #0A486E;
+ box-shadow: 0 1px 5px 0 rgba(9,85,133,0.50), inset 0 -1px 6px 0 rgba(0,0,0,0.20), inset 0 1px 0 0 rgba(255,255,255,0.50), inset 0 2px 4px 0 rgba(255,255,255,0.50);
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;For easy reference, here is the CSS styling in it&amp;#8217;s entirety:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Parent container *&amp;#47;
+.buttons-container {
+ background-image: linear-gradient(0deg, #BBC6CD 3%, #E2EBF0 100%);
+ border-radius: 5px;
+ border: 1px solid #8D8D8D;
+ box-shadow: 0 2px 4px 0 rgba(42,42,42,0.40), inset 0 1px 3px 0 rgba(255,255,255,0.50);
+ display: flex;
+ padding: 20px;
+ margin: 0 auto;
+ max-width: 300px;
+ width: 100%;
}
-[data-layout=&quot;horizontal&quot;] tbody tr td {
- flex-direction: row;
- height: auto;
- justify-content: start;
- margin: 10px 0;
+&amp;#47;* Shared button styling *&amp;#47;
+button {
+ appearance: none;
+ border: 0;
+ border-radius: 5px;
+ color: #fff;
+ cursor: pointer;
+ display: inline-block;
+ font-size: 14px;
+ font-weight: bold;
+ padding: 15px 20px;
+ text-shadow: 0 2px 4px rgba(0,0,0,0.30);
+ width: 50%;
}
-[data-layout=&quot;horizontal&quot;] tbody tr td span {
- height: 20px;
- width: calc(var(--data-set) * 100%);
+&amp;#47;* Sign up button *&amp;#47;
+button:first-child {
+ background-image: linear-gradient(-180deg, #1EB52A 0%, #0D941C 100%);
+ border: 1px solid #0C6B16;
+ box-shadow: 0 1px 5px 0 rgba(9,116,21,0.50), inset 0 1px 0 0 rgba(255,255,255,0.50), inset 0 2px 4px 0 rgba(255,255,255,0.50);
+ margin-right: 10px;
}
-[data-layout=&quot;horizontal&quot;] tbody tr td p {
- margin-left: 10px;
+&amp;#47;* Log in button *&amp;#47;
+button:last-child {
+ background-image: linear-gradient(-180deg, #489FD2 0%, #0A6DAC 100%);
+ border: 1px solid #0A486E;
+ box-shadow: 0 1px 5px 0 rgba(9,85,133,0.50), inset 0 1px 0 0 rgba(255,255,255,0.50), inset 0 2px 4px 0 rgba(255,255,255,0.50);
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;thats-all-folks&quot;&gt;That&amp;#8217;s All Folks!&lt;/h2&gt;
-&lt;p&gt;That just about sums things up. Feel free to check out the Github repo itself, open any issues you find or fork it for your own!&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Github: &lt;a href=&quot;https://github.com/bradleytaunt/flexbox-bar-graphs&quot;&gt;https:&amp;#47;&amp;#47;github.com&amp;#47;bradleytaunt&amp;#47;flexbox-bar-graphs&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Live Demo: &lt;a href=&quot;https://flexbox-bar-graphs.netlify.app/&quot;&gt;https:&amp;#47;&amp;#47;flexbox-bar-graphs.netlify.app&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;</description>
- <link>https://btxx.org/flexbox-bar-graphs</link>
- <guid isPermaLink="false">https://btxx.org/flexbox-bar-graphs</guid>
- <pubDate>Tue, 08 Dec 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>First Letter Pseudo Element</title>
- <description>&lt;h1 id=&quot;first-letter-pseudo-element&quot;&gt;First Letter Pseudo Element&lt;/h1&gt;
-&lt;p&gt;2019-05-03&lt;/p&gt;
-&lt;p&gt;In today&amp;#8217;s TypeTip we will be taking a look at the often overlooked &lt;code&gt;:first-letter&lt;/code&gt; CSS pseudo element. Though you might only use this for specific article-format web pages, it&amp;#8217;s still a nice-to-have in your web dev toolset.&lt;/p&gt;
+&lt;h2 id=&quot;going-even-further-with-this-ui&quot;&gt;Going even further with this UI&lt;/h2&gt;
+&lt;p&gt;This demo article only showcases how to improve on a basic button UI structure with a focus on proper hierarchy between elements.&lt;/p&gt;
+&lt;p&gt;Once completely developed, these element should support all interactive states (&lt;code&gt;hover&lt;/code&gt;, &lt;code&gt;active&lt;/code&gt;, &lt;code&gt;disabled&lt;/code&gt;) and animations to make for a more engaging experience.&lt;/p&gt;</description>
+ <link>https://btxx.org/proper-ui-hierarchy</link>
+ <guid isPermaLink="false">https://btxx.org/proper-ui-hierarchy</guid>
+ <pubDate>Tue, 05 Feb 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>PS4 Download UI with Pure CSS</title>
+ <description>&lt;h1 id=&quot;ps4-download-ui-with-pure-css&quot;&gt;PS4 Download UI with Pure CSS&lt;/h1&gt;
+&lt;p&gt;2021-06-20&lt;/p&gt;
+&lt;p&gt;Overall, I&amp;#8217;m fairly impressed with the user interface design of Sony&amp;#8217;s PS4 system OS. It&amp;#8217;s minimal and keeps the content front and center. Even with it&amp;#8217;s sometimes spotty performance hiccups, I&amp;#8217;ve come to enjoy interacting with it.&lt;/p&gt;
+&lt;p&gt;One of the key UI items I&amp;#8217;ve always been a fan of is the download progress view under the &lt;code&gt;Notifications&lt;/code&gt; settings. So I figured I&amp;#8217;d try my hand at recreating this with pure CSS. Here is the final result:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/ps4-loading.png&quot; alt=&quot;PS4 loading screen bar&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/qBroORG&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;Although I&amp;#8217;ve added some of my own improvements (typography spacing, tweaks to the progress bar animation) - the concept it still pretty close to the original.&lt;/p&gt;
+&lt;p&gt;But enough chit-chat, let&amp;#8217;s walkthrough how to make it!&lt;/p&gt;
&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;Like most pseudo elements, nothing has to change with your pre-existing HTML structure:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;article&amp;#62;
- &amp;#60;p&amp;#62;It was a bright cold day in April, and the clocks were striking thirteen.&amp;#60;&amp;#47;p&amp;#62;
-&amp;#60;&amp;#47;article&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;Here&amp;#8217;s where the magic happens:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;p:first-letter {
- color: orangered;
- font-size: 250%;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;live-codepen&quot;&gt;Live CodePen&lt;/h2&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/gJYbev/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</description>
- <link>https://btxx.org/first-letter</link>
- <guid isPermaLink="false">https://btxx.org/first-letter</guid>
- <pubDate>Fri, 03 May 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>February 2022 Update</title>
- <description>&lt;h1 id=&quot;february-2022-update&quot;&gt;February 2022 Update&lt;/h1&gt;
-&lt;p&gt;2022-02-23&lt;/p&gt;
-&lt;p&gt;It&amp;#8217;s been a little quiet around here lately and for good reason: my wife gave birth to our third child last Thursday. Her name is Harmony and she was born in the late afternoon weighing in at 7 pounds 8 ounces.&lt;/p&gt;
-&lt;p&gt;Besides the lack of sleep, everything has been going very well and our boys are happy to finally have their sister “out” in the real world. She caught a small cold at the beginning but soldiered through it well.&lt;/p&gt;
-&lt;p&gt;As for personal life &amp;#47; work life, I&amp;#8217;ve taken a couple weeks off until Harmony is in a bit more of a routine to make transitioning back to full time easier. I still have a few articles in the works (like setting up a T60 Thinkpad with Linux Mint and using FreeBSD for the first time on an EOL Chromebook) but those will come in time.&lt;/p&gt;
-&lt;p&gt;I guess I should get back to being a proper dad (I&amp;#8217;m writing this on my phone as she sleeps on me and the boys are napping) but I&amp;#8217;ll be back here posting stupid things in no time.&lt;/p&gt;
-&lt;p&gt;See you on the other side!&lt;/p&gt;</description>
- <link>https://btxx.org/february-updates</link>
- <guid isPermaLink="false">https://btxx.org/february-updates</guid>
- <pubDate>Wed, 23 Feb 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Setting Up Fathom Analytics with Netlify</title>
- <description>&lt;h1 id=&quot;setting-up-fathom-analytics-with-netlify&quot;&gt;Setting Up Fathom Analytics with Netlify&lt;/h1&gt;
-&lt;p&gt;2021-01-19&lt;/p&gt;
-&lt;p&gt;It&amp;#8217;s no secret that I&amp;#8217;m passionate about open source software, but I&amp;#8217;m also extremely adamant about protecting the privacy of all users across the web. So when I decided to implement analytics on my own personal website, I ended up choosing Fathom (&lt;em&gt;get a $10 credit using that link!&lt;/em&gt;).&lt;/p&gt;
-&lt;p&gt;You should research further into the company yourself if you&amp;#8217;re interested, but in a nutshell the Fathom platform provides:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;GDPR, ePrivacy, PECR and CCPA compliance&lt;/li&gt;
-&lt;li&gt;ad-blocker bypasses (in a good way -&amp;#62; zero impact on users)&lt;/li&gt;
-&lt;li&gt;anonymous visitor stats&lt;/li&gt;
-&lt;li&gt;software created by indie developers&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Although this might sound like a &amp;#8220;paid&amp;#8221; blog post, I can assure you this is completely based on my own opinions and experience with the service. I&amp;#8217;m just very pleased with the product :)&lt;/p&gt;
-&lt;p&gt;Enough chit-chat - let&amp;#8217;s breakdown how to setup Fathom on your own site hosted through Netlify!&lt;/p&gt;
-&lt;h2 id=&quot;step-0-assumptions&quot;&gt;Step 0: Assumptions&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;m going into this tutorial with the assumption that you:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Have an active Fathom account (or are at least trying the 7-day free trial)&lt;/li&gt;
-&lt;li&gt;Have a website already setup on Netlify (custom domain optional)&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;And that&amp;#8217;s all you need.&lt;/p&gt;
-&lt;h2 id=&quot;step-1-adding-a-custom-domain-dns-setup&quot;&gt;Step 1: Adding a Custom Domain (DNS Setup)&lt;/h2&gt;
-&lt;p&gt;Even though you have the option to use the &lt;code&gt;default&lt;/code&gt; tracking script URL, I would highly recommend setting it up through your own domain. This helps avoid any browser extensions or firewalls that might block outside URL request made by individual sites.&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Navigate to the Fathom &lt;strong&gt;Settings&lt;/strong&gt; page in the bottom footer (must be logged in)&lt;/li&gt;
-&lt;li&gt;Select &lt;strong&gt;Domains&lt;/strong&gt; from the sidebar&lt;/li&gt;
-&lt;li&gt;Enter your custom domain in the &lt;code&gt;Add a new custom domain&lt;/code&gt; input&lt;/li&gt;
-&lt;li&gt;Select &lt;strong&gt;Start Process&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Keep note of both the &lt;code&gt;CNAME&lt;/code&gt; and &lt;code&gt;VALUE&lt;/code&gt; (we will copy this in a moment)&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;Open a new tab, and login to your Netlify account:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;From your &lt;code&gt;Team Overview&lt;/code&gt; page, navigate to the top-level &lt;code&gt;Domains&lt;/code&gt; page&lt;/li&gt;
-&lt;li&gt;Select the domain you plan to add Fathom to&lt;/li&gt;
-&lt;li&gt;Under &lt;strong&gt;DNS settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;DNS records&lt;/strong&gt; select &lt;code&gt;Add New Record&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;Select &lt;code&gt;CNAME&lt;/code&gt; from the dropdown of available options&lt;/li&gt;
-&lt;li&gt;Paste the Fathom &lt;code&gt;CNAME&lt;/code&gt; (from the steps above) into the &lt;strong&gt;Name&lt;/strong&gt; input&lt;/li&gt;
-&lt;li&gt;Paste the Fathom &lt;code&gt;VALUE&lt;/code&gt; (from the steps above) into the &lt;strong&gt;Value&lt;/strong&gt; input&lt;/li&gt;
-&lt;li&gt;Click &lt;strong&gt;Save&lt;/strong&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;That&amp;#8217;s it for DNS setup!&lt;/p&gt;
-&lt;h2 id=&quot;step-2-adding-fathom-your-website&quot;&gt;Step 2: Adding Fathom Your Website&lt;/h2&gt;
-&lt;p&gt;Now that we will be using our own custom domain for the script, it&amp;#8217;s time to actually &lt;em&gt;add it&lt;/em&gt; to our website. From the same Fathom &lt;strong&gt;Settings&lt;/strong&gt; page as before:&lt;/p&gt;
+&lt;p&gt;As with most of my demos, the HTML is very minimal and straightforward. The PS4 system OS download view needs to show the following:&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;Navigate to the &lt;strong&gt;Sites&lt;/strong&gt; page in the sidebar&lt;/li&gt;
-&lt;li&gt;Enter your custom domain in the &lt;code&gt;Add a new site&lt;/code&gt; input and click &lt;strong&gt;Get site code&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;In the modal prompt, select your custom domain from the dropdown list (you&amp;#8217;ll see the script code change accordingly)&lt;/li&gt;
-&lt;li&gt;Copy the tracking code snippet and add it to all the pages you plan to track on your site&lt;/li&gt;
-&lt;li&gt;When ready, select &lt;strong&gt;Verify site code&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;If everything went correctly you should be done!&lt;/li&gt;
+&lt;li&gt;The game&amp;#8217;s title&lt;/li&gt;
+&lt;li&gt;Full game size, amount downloaded and time remaining&lt;/li&gt;
+&lt;li&gt;Visual progress bar&lt;/li&gt;
&lt;/ol&gt;
-&lt;h2 id=&quot;step-3-watch-those-live-stats&quot;&gt;Step 3: Watch Those Live Stats!&lt;/h2&gt;
-&lt;p&gt;Open a cold beer (or a bubbly soda if you prefer) and watch your website visitor stats come rolling in on the dashboard! Not only do you now have solid analytics on your website but you have the piece of mind that your users&amp;#8217; privacy isn&amp;#8217;t being invaded. Everybody wins!&lt;/p&gt;</description>
- <link>https://btxx.org/fathom-analytics-netlify</link>
- <guid isPermaLink="false">https://btxx.org/fathom-analytics-netlify</guid>
- <pubDate>Tue, 19 Jan 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Faking 3D Elements with CSS</title>
- <description>&lt;h1 id=&quot;faking-3d-elements-with-css&quot;&gt;Faking 3D Elements with CSS&lt;/h1&gt;
-&lt;p&gt;2020-04-29&lt;/p&gt;
-&lt;p&gt;Although not always practical, creating the illusion that some of your web elements are 3D can be a fun experiment. I set out to see if I was able to create such an illusion with only 2 HTML elements and as little CSS as possible.&lt;/p&gt;
-&lt;p&gt;This is what I ended up creating:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/css-orb.png&quot; alt=&quot;Blue 3D orb made out pure CSS&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/VwvzKyb&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;Prepare for your mind to be blown:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;main-orb&quot;&amp;#62;
- &amp;#60;div class=&quot;inner-orb&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+&lt;p&gt;So we will place the game&amp;#8217;s title inside our &lt;code&gt;h2&lt;/code&gt; with a class of &lt;code&gt;title&lt;/code&gt; (shocking, I know). The details about game size, downloaded amount and time remaining gets placed under a parent &lt;code&gt;div&lt;/code&gt; with an accompanying &lt;code&gt;details&lt;/code&gt; class. Finally, we create our progress bar by including a parent &lt;code&gt;div&lt;/code&gt; with a class of &lt;code&gt;progress&lt;/code&gt; that contains a child &lt;code&gt;div&lt;/code&gt; with a class of &lt;code&gt;inner-progress&lt;/code&gt;.&lt;/p&gt;
+&lt;p&gt;Pretty clean and easy to understand.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;wrapper&quot;&amp;#62;
+ &amp;#60;img src=&quot;https:&amp;#47;&amp;#47;upload.wikimedia.org&amp;#47;wikipedia&amp;#47;commons&amp;#47;0&amp;#47;00&amp;#47;PlayStation_logo.svg&quot; alt=&quot;PS4&quot; class=&quot;logo&quot;&amp;#62;
+ &amp;#60;h2 class=&quot;title&quot;&amp;#62;Detroit: Become Human&amp;#60;&amp;#47;h2&amp;#62;
+ &amp;#60;div class=&quot;details&quot;&amp;#62;
+ &amp;#60;p&amp;#62;Update File&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p&amp;#62;13.45&amp;#47;17.50 GB (21 Minutes Left)&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;progress&quot;&amp;#62;
+ &amp;#60;div class=&quot;inner-progress&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it - I wasn&amp;#8217;t kidding when I said we would use only 2 HTML elements. The &lt;code&gt;.main-orb&lt;/code&gt; is the core shape (set to 400x400) and the &lt;code&gt;.inner-orb&lt;/code&gt; is placed on top of it&amp;#8217;s parent at a slightly smaller size (360x360) - but more on that below in the CSS portion.&lt;/p&gt;
&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;First we give the bigger orb element (&lt;code&gt;.main-orb&lt;/code&gt;) the default styling needed to represent a 2D circle:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.main-orb {
- background: linear-gradient(#fff 0%, #eee 10%, #2E86FB 50%, #1A237E 100%);
- border-radius: 9999px;
- height: 400px;
- margin: 4rem auto;
- position: relative; &amp;#47;* This is important for the inner orb element later *&amp;#47;
- width: 400px;
+&lt;p&gt;Now it&amp;#8217;s time to utilize all those classes in the HTML above to craft our PS4 UI recreation. I&amp;#8217;ll break this section down into digestible chunks to avoid overwhelming you by vomiting out a bunch of CSS spaghetti.&lt;/p&gt;
+&lt;p&gt;First we&amp;#8217;ll add a bunch of QOL improvements to help better showcase the demo (adding custom fonts, center content etc.).&lt;/p&gt;
+&lt;p&gt;This part is completely &lt;em&gt;optional&lt;/em&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Import fonts *&amp;#47;
+@import url(&amp;#39;https:&amp;#47;&amp;#47;fonts.googleapis.com&amp;#47;css2?family=Source+Sans+Pro:wght@200;400&amp;#38;display=swap&amp;#39;);
+
+&amp;#47;* Gradient background styling, height overrides *&amp;#47;
+body {
+ background: linear-gradient(#226AB6 0%, #144E8A 100%) no-repeat;
+ color: white;
+ display: block;
+ font-family: &amp;#39;Source Sans Pro&amp;#39;, sans-serif;
+ font-weight: 200;
+ height: 100vh;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next, we include both &lt;code&gt;:before&lt;/code&gt; and &lt;code&gt;:after&lt;/code&gt; pseudo elements for our orb&amp;#8217;s drop shadow. You &lt;em&gt;could&lt;/em&gt; do this with a simple &lt;code&gt;box-shadow&lt;/code&gt; property on the &lt;code&gt;.main-orb&lt;/code&gt; itself, but I&amp;#8217;ve explained in a previous post why &lt;a href=&quot;/blog/better-box-shadows.html&quot;&gt;that&amp;#8217;s not the best approach&lt;/a&gt;.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Shared styling for both pseudo elements - Remember DRY *&amp;#47;
-.main-orb:before, .main-orb:after {
- border-radius: 200px 200px 9999px 9999px;
- bottom: -10px;
- content:&amp;#39;&amp;#39;;
- filter: blur(20px);
- height: 40px;
- position: absolute;
- z-index: -1;
+
+&amp;#47;* Wrapper to center content *&amp;#47;
+.wrapper {
+ margin: 0 auto;
+ max-width: 800px;
+ padding: 4rem 0 0;
}
-&amp;#47;* Bigger, lighter shadow *&amp;#47;
-.main-orb:before {
- background: rgba(0,0,0,0.4);
- left: 7.5%;
- width: 85%;
+&amp;#47;* Optional PS4 logo *&amp;#47;
+.logo {
+ display: block;
+ filter: invert(1);
+ margin: 0 0 2rem 0;
+ opacity: 0.5;
+ width: 60px;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Now for the styling that &lt;em&gt;actually matters&lt;/em&gt;. First we will style the game&amp;#8217;s title and accompanying details (&lt;code&gt;flexbox&lt;/code&gt; to the rescue again!):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;h2.title {
+ font-weight: 400;
+ margin: 0;
}
-&amp;#47;* Smaller, darker shadow *&amp;#47;
-.main-orb:after {
- background: rgba(0,0,0,0.7);
- left: 20%;
- width: 60%;
+.details {
+ display: flex;
+ justify-content: space-between;
+ margin: 0.2rem 0 0;
+}
+.details p {
+ margin: 0;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;With our main orb complete we can move on to the &lt;code&gt;.inner-orb&lt;/code&gt; element to help bring slightly more depth to our floating ball of CSS:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.inner-orb {
- background: linear-gradient(#fff 0%, #2E86FB 60%, #283593 100%);
- border-radius: 9999px;
- box-shadow: 0 8px 20px rgba(0,0,0,0.5);
- height: 360px;
- filter: blur(18px);
- left: 20px;
+&lt;p&gt;Not a whole lot of code to get things looking proper, eh? Next we move on to the progress bar. This is &lt;em&gt;slightly&lt;/em&gt; more interesting since we are going to utilize the &lt;code&gt;before&lt;/code&gt; pseudo element - which sounds more complex than it actually is. Pay close attention to the pseudo element and how it calls the &lt;code&gt;progress-bar-shine&lt;/code&gt; animation - more on that later.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.progress {
+ background: #226AB6;
+ border: 1px solid white;
+ height: 15px;
+ margin: 2rem 0 0;
+ position: relative;
+ width: 100%;
+}
+.progress:before {
+ animation: progress-bar-shine 2.5s infinite;
+ background: linear-gradient(to left, white 0%, transparent 100%);
+ border-radius: 10px;
+ content:&amp;#39;&amp;#39;;
+ filter: blur(8px);
+ height: 100%;
+ opacity: 0.8;
position: absolute;
- top: 15px;
- width: 360px;
+ transform:translateX(0);
+ width: 50px;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;poor-mans-3d-elements&quot;&gt;Poor-man&amp;#8217;s 3D elements&lt;/h2&gt;
-&lt;p&gt;Clearly implementing something like this will never come close to generating true 3D renders on a website, but it is a fun exercise to see how much further we can push simple CSS. Feel free to fork the above CodePen to play around with different colors and shadow placements.&lt;/p&gt;</description>
- <link>https://btxx.org/fake-3d-elements-with-css</link>
- <guid isPermaLink="false">https://btxx.org/fake-3d-elements-with-css</guid>
- <pubDate>Wed, 29 Apr 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>ET-Jekyll Theme</title>
- <description>&lt;h1 id=&quot;et-jekyll-theme&quot;&gt;ET-Jekyll Theme&lt;/h1&gt;
-&lt;p&gt;2018-01-14&lt;/p&gt;
-&lt;p&gt;ET-Jekyll theme is based off of Dave Liepmann&amp;#8217;s awesome Tufte CSS - which takes it&amp;#8217;s style and inspiration from the wonderful book and handout designs of Edward Tufte.&lt;/p&gt;
-&lt;p&gt;The differences are subtle when comparing my variation to Tufte CSS, but these changes were made out of personal preference and are not in any way &amp;#8220;better&amp;#8221;. If you prefer the original CSS styling - please use it!&lt;/p&gt;
-&lt;p&gt;This theme is an open source side project by Bradley Taunt - made with passion and care. Edit, improve, customize or butcher this theme as much as you&amp;#8217;d like. If you spot an issue or find a better solution for any user pain-spots, please don&amp;#8217;t hesitate to open a PR with your changes.&lt;/p&gt;
-&lt;p&gt;Enjoy ET-Jekyll!&lt;/p&gt;</description>
- <link>https://btxx.org/et-jekyll-theme</link>
- <guid isPermaLink="false">https://btxx.org/et-jekyll-theme</guid>
- <pubDate>Sun, 14 Jan 2018 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Styling Empty Table Cells</title>
- <description>&lt;h1 id=&quot;styling-empty-table-cells&quot;&gt;Styling Empty Table Cells&lt;/h1&gt;
-&lt;p&gt;2019-07-17&lt;/p&gt;
-&lt;p&gt;Often when designing tables on the web you&amp;#8217;re bound to come across empty pockets of data. These will be rendered as &amp;#8220;blank&amp;#8221; table cells, which isn&amp;#8217;t always the intended outcome. Let&amp;#8217;s take a quick look at how to target and style empty table cells.&lt;/p&gt;
-&lt;h2 id=&quot;the-easy-way&quot;&gt;The easy &lt;code&gt;:empty&lt;/code&gt; way&lt;/h2&gt;
-&lt;p&gt;The most popular way to target &lt;em&gt;any&lt;/em&gt; empty element is by using - you guessed it - the &lt;code&gt;empty&lt;/code&gt; pseudo-class. This pseudo-class is incredibly simple. You target an element&amp;#8217;s &lt;code&gt;empty&lt;/code&gt; state that same way you would target &lt;code&gt;hover&lt;/code&gt; or &lt;code&gt;active&lt;/code&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;table tr td:empty {
- opacity: 0;
+.inner-progress {
+ background: white;
+ height: 100%;
+ opacity: 0.6;
+ width: 450px;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Check out the CodePen examples below for more advanced styling options:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/EBBLEx/&quot;&gt;Live CodePen Example 1&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;You can also include additional pseudo elements to give the user more context about what the empty cells represent:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/bPXqLa/&quot;&gt;Live CodePen Example 2&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;more-specific-property&quot;&gt;More specific &lt;code&gt;empty-cells&lt;/code&gt; property&lt;/h2&gt;
-&lt;p&gt;Although using the &lt;code&gt;:empty&lt;/code&gt; pseudo-class can be helpful, it isn&amp;#8217;t used just for tables. It can be used for any HTML elements that have a lack of content. So, is there a CSS specific property that can target &lt;em&gt;just&lt;/em&gt; table cells? &lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s take a look at the &lt;code&gt;empty-cells&lt;/code&gt; property:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;table {
- empty-cells: hide;
+&lt;p&gt;Almost finished! We just need to animate that &lt;code&gt;before&lt;/code&gt; pseudo element with a simple &lt;code&gt;keyframes&lt;/code&gt; at-rule:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@keyframes progress-bar-shine {
+ to {
+ transform:translateX(450px);
+ opacity:0;
+ }
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/XLLqOW/&quot;&gt;Live CodePen Example 3&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;Pros of using &lt;code&gt;empty-cells&lt;/code&gt;:&lt;/p&gt;
+&lt;h2 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h2&gt;
+&lt;p&gt;Although far from perfect, this experiment still explores what can be created (or in this case, &lt;em&gt;re&lt;/em&gt;created) in the browser using just pure CSS. Remember, you don&amp;#8217;t have to reach for JavaScript just because you can!&lt;/p&gt;</description>
+ <link>https://btxx.org/ps4-download-ui</link>
+ <guid isPermaLink="false">https://btxx.org/ps4-download-ui</guid>
+ <pubDate>Sun, 20 Jun 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Publishing Simple Books With Jekyll</title>
+ <description>&lt;h1 id=&quot;publishing-simple-books-with-jekyll&quot;&gt;Publishing Simple Books With Jekyll&lt;/h1&gt;
+&lt;p&gt;2019-06-20&lt;/p&gt;
+&lt;p&gt;When thinking about writing, designing and ultimately publishing an ebook, most people don&amp;#8217;t think of using a static site generator. Having products like Amazon Publishing, LaTeX or even Microsoft Word available, why should you use Jekyll?&lt;/p&gt;
+&lt;p&gt;Two reasons:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Only one CSS property&lt;/li&gt;
-&lt;li&gt;Targets the table elements specifically&lt;/li&gt;
-&lt;li&gt;No need for custom styles since it simply &lt;em&gt;hides&lt;/em&gt; empty cell borders&lt;/li&gt;
+&lt;li&gt;extremely easy to use&lt;/li&gt;
+&lt;li&gt;total customization&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Some downsides to using this property:&lt;/p&gt;
+&lt;p&gt;I know these same arguments could be made towards the other options mentioned above, but I&amp;#8217;m biased towards Jekyll since I love the simplicity of HTML and CSS. Hopefully, after reading this post, you will feel the same as well!&lt;/p&gt;
+&lt;h2 id=&quot;no-developer-skills-needed&quot;&gt;No developer skills needed&lt;/h2&gt;
+&lt;p&gt;You won&amp;#8217;t need any hardcore development skills or in-depth knowledge of Jekyll to get the most out of this publishing technique. The theme (&lt;a href=&quot;https://github.com/henrythemes/jekyll-book-theme&quot;&gt;Jekyll Book Theme&lt;/a&gt;) will allow you to focus on your book&amp;#8217;s content rather than wrestling with typography and page layouts. A basic command line script will perform all the heavy lifting for us at the end.&lt;/p&gt;
+&lt;h2 id=&quot;what-are-we-creating&quot;&gt;What are we creating?&lt;/h2&gt;
+&lt;p&gt;You can see the demo of the &lt;em&gt;online&lt;/em&gt; and PDF versions of the book below: &lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;No styling customization&lt;/li&gt;
-&lt;li&gt;Trickier to use pseudo-element helpers without invoking the &lt;code&gt;:empty&lt;/code&gt; state&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;http://henrythemes.github.io/jekyll-book-theme/&quot;&gt;Jekyll Book Theme (Website)&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;/public/jekyll-book-theme-sample.pdf&quot;&gt;Jekyll Book Theme (PDF Sample)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;pick-your-preference&quot;&gt;Pick your preference&lt;/h2&gt;
-&lt;p&gt;It doesn&amp;#8217;t matter semantically which option you decide to take when styling &amp;#47; hiding empty table cells. Using the &lt;code&gt;:empty&lt;/code&gt; state gives you a lot more flexibility in terms of what you can target (full rows, columns etc), but using the &lt;code&gt;empty-cells&lt;/code&gt; property let&amp;#8217;s you simply hide the cells and focus on more important items.&lt;/p&gt;</description>
- <link>https://btxx.org/empty-table-cells</link>
- <guid isPermaLink="false">https://btxx.org/empty-table-cells</guid>
- <pubDate>Wed, 17 Jul 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Setting Up a Pi-hole Server with Eero</title>
- <description>&lt;h1 id=&quot;setting-up-a-pi-hole-server-with-eero&quot;&gt;Setting Up a Pi-hole Server with Eero&lt;/h1&gt;
-&lt;p&gt;2022-03-14&lt;/p&gt;
-&lt;p&gt;For the past few years, I&amp;#8217;ve been using a set of Eero routers as my home mesh network. It&amp;#8217;s worked fairly great in that time and even seamlessly transitioned without any hiccups when my family moved house. During the initial setup, I installed Pi-hole on a Raspberry Pi Zero WH because advertisements and tracking scripts suck.&lt;/p&gt;
-&lt;p&gt;It was an easy process to get everything up and running, but I did notice a lack of detailed steps online for those specifically using Eero systems. So, I thought I would document this process here with the hope that it will help someone else along the way (or at the very least remain a semi-permanent place for my own reference).&lt;/p&gt;
-&lt;hr/&gt;
-&lt;p&gt;FYI: You can pay for Eero Secure and allow them to handle ad&amp;#47;tracker blocking for you. Personally, I prefer to have complete control over my blocklists and usage data. YMMV.&lt;/p&gt;
-&lt;hr/&gt;
-&lt;h2 id=&quot;setting-up-the-pi-hole-server&quot;&gt;Setting Up the Pi-hole Server&lt;/h2&gt;
-&lt;p&gt;Before we get into the step-by-step details, here are the required items you&amp;#8217;ll need:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Raspberry Pi device (I recommend the Pi Zero for simplicity and low cost)&lt;/li&gt;
-&lt;li&gt;microSD card preloaded with &lt;a href=&quot;https://www.raspberrypi.com/software/operating-systems/&quot;&gt;Raspberry Pi OS Lite&lt;/a&gt; (having a desktop GUI is overkill for our use case)&lt;/li&gt;
-&lt;li&gt;micro USB to ethernet adapter (check your local Amazon)&lt;/li&gt;
-&lt;li&gt;Patience!&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;Before you place your microSD card into the Pi and boot it up, connect it to your local computer (via USB adapter) - we will need to add some files first. Once loaded into the &lt;code&gt;boot&lt;/code&gt; folder, add an empty file simply called &lt;code&gt;ssh&lt;/code&gt; (no extensions). Next open your preferred text editor and enter the following code, editing the content to match your own country code and home network settings:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;country=US
-ctrl_interface=DIR=&amp;#47;var&amp;#47;run&amp;#47;wpa_supplicant GROUP=netdev
-update_config=1
-
-network={
- ssid=&quot;WIFI_SSID&quot;
- scan_ssid=1
- psk=&quot;WIFI_PASSWORD&quot;
- key_mgmt=WPA-PSK
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Save this file as &lt;code&gt;wpa_supplicant.conf&lt;/code&gt; and add it to the &lt;code&gt;boot&lt;/code&gt; directory as well.&lt;/p&gt;
-&lt;p&gt;You can now safely eject the microSD card and place it into your Raspberry Pi.&lt;/p&gt;
-&lt;h2 id=&quot;plug-it-in-and-boot&quot;&gt;Plug it in and Boot!&lt;/h2&gt;
-&lt;p&gt;Connect power to your Pi and give it a bit of time to boot up. Once you see a nice solid green LED, go back to your local computer&amp;#8217;s terminal and enter the following command:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;ssh pi@raspberrypi.local
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If everything was set up properly you will be asked to trust this device. Next, you will be prompted to enter the device password. The default password will be: &lt;code&gt;raspberry&lt;/code&gt;&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: This is assuming you don&amp;#8217;t currently have any other Pi devices using this hostname parameter!&lt;/p&gt;
-&lt;p&gt;Once you are connected directly to the Pi, it&amp;#8217;s best to check for updates:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo apt update
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;&amp;#8230;and if updates are in fact available, install them via:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo apt upgrade
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This next step is optional but I highly recommend it for security purposes. You should change both the hostname and password of this soon-to-be Pi-hole server. To do this simply run:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo raspi-config
-&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;So without wasting anymore time, let&amp;#8217;s get started!&lt;/p&gt;
+&lt;h2 id=&quot;table-of-contents&quot;&gt;Table of Contents&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;Edit Hostname: navigate to &lt;code&gt;System Settings&lt;/code&gt; &amp;#8211;&amp;#62; &lt;code&gt;Hostname&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;Edit Password: navigate to &lt;code&gt;System Settings&lt;/code&gt; &amp;#8211;&amp;#62; &lt;code&gt;Password&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#setup-jekyll&quot;&gt;Setup Jekyll&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#book-theme&quot;&gt;Using the &amp;#8220;Book&amp;#8221; Jekyll Theme&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#chapter-collections&quot;&gt;Writing Chapters&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#html-to-pdf&quot;&gt;HTML to PDF&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;#closing-thoughts&quot;&gt;Closing Thoughts&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;Once complete, reboot the Pi. Just remember that when you try to reconnect to this device via SSH you&amp;#8217;ll need to use both of these new parameters instead of the defaults.&lt;/p&gt;
-&lt;h2 id=&quot;installing-pi-hole&quot;&gt;Installing Pi-hole&lt;/h2&gt;
-&lt;p&gt;This is the easy part:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;curl -sSL https:&amp;#47;&amp;#47;install.pi-hole.net | bash
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Pi-hole runs a full install script that walks you through step-by-step on setting things up. It&amp;#8217;s best to use the suggested defaults during the install - everything is pretty simple.&lt;/p&gt;
-&lt;p&gt;Near the end of the setup you&amp;#8217;ll be show the newly created static IP for this Pi-hole server (both IPv4 and IPv6). Write these down for easy reference in a moment.&lt;/p&gt;
-&lt;p&gt;Once it&amp;#8217;s finished, shutdown the Pi safely by running:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo shutdown now
+&lt;p&gt;Before we can really do anything else, you will need to install and setup Jekyll. The best way to do so is by following the instructions on the official Jekyll website:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;a href=&quot;https://jekyllrb.com/docs/installation/&quot;&gt;Installing Jekyll&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Run through the simple step-by-step installation instructions based on your operating system.&lt;/p&gt;
+&lt;h3 id=&quot;basic-requirements&quot;&gt;Basic requirements&lt;/h3&gt;
+&lt;ul&gt;
+&lt;li&gt;Ruby version 2.4.0 or above&lt;/li&gt;
+&lt;li&gt;RubyGems&lt;/li&gt;
+&lt;li&gt;GCC and Make (in case your system doesn’t have them installed)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;The example we will be referencing in this post is the open source Jekyll theme called &amp;#8220;Jekyll Book Theme&amp;#8221;. This theme as been designed and optimized for publishing ebooks with Jekyll.&lt;/p&gt;
+&lt;p&gt;Simply following the instructions on the main README page of the &lt;a href=&quot;https://github.com/henrythemes/jekyll-book-theme&quot;&gt;jekyll-book-theme repo&lt;/a&gt;.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: Take the time to edit the &lt;code&gt;title&lt;/code&gt;, and &lt;code&gt;author&lt;/code&gt; properties in the &lt;code&gt;_config.yml&lt;/code&gt; file in the root directory. Make sure these reflect your own book&amp;#8217;s content.&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it. Now let&amp;#8217;s tell Jekyll how we want it to format our chapters.&lt;/p&gt;
+&lt;p&gt;By default, Jekyll will look for latest posts in the &lt;code&gt;_post&lt;/code&gt; directory. This is useful for blogs and basic static websites - but not for us. We want chapters.&lt;/p&gt;
+&lt;h3 id=&quot;using-custom-collections&quot;&gt;Using custom collections&lt;/h3&gt;
+&lt;p&gt;Thankfully, Jekyll is flexible and allows us to set our own custom &amp;#8220;collections&amp;#8221;. Collections are ways to group related content together for easier use dynamically. Our plan is to setup a collection that will house our chapter markdown files in numeric order. You can see this in the &amp;#8220;book&amp;#8221; template top level directory. It should look like the following:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;code&gt;_chapters&lt;/code&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;code&gt;01.md&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;02.md&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;03.md&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;etc..&lt;/code&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h3 id=&quot;but-the-template-already-has-this-setup&quot;&gt;But the template already has this setup&lt;/h3&gt;
+&lt;p&gt;By default the Jekyll Book Theme template has this chapters collection implemented and working as intended. The reason I broke it down step-by-step is so that you can have some better understanding about what is happening &amp;#8220;under the hood&amp;#8221;. &lt;/p&gt;
+&lt;p&gt;Teach a person to fish and all that jazz.&lt;/p&gt;
+&lt;p&gt;Now all you need to do is break your chapters down into their own numbered markdown files inside &lt;code&gt;_chapters&lt;/code&gt;.&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/publishing-with-jekyll.webp&quot; alt=&quot;Publishing with Jekyll&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;Before you can convert your digital book &amp;#8220;website&amp;#8221;, you need to install the &lt;code&gt;wkhtmltopdf&lt;/code&gt; package. Download and follow the instructions below:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;a href=&quot;https://wkhtmltopdf.org/&quot;&gt;wkhtmltopdf&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h3 id=&quot;command-line-conversion&quot;&gt;Command line conversion&lt;/h3&gt;
+&lt;p&gt;In your terminal, navigate inside the &lt;code&gt;_site&lt;/code&gt; folder of your jekyll build and then run the following command:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;for f in *.html; do wkhtmltopdf -g -s Letter --no-background &quot;$f&quot; &quot;${f&amp;#47;_*_&amp;#47;_}.pdf&quot;;done
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;hardware-setup&quot;&gt;Hardware Setup&lt;/h2&gt;
-&lt;p&gt;With the Pi shutdown you can safely relocate it to where you have your modem and gateway Eero setup. Connect your new Pi-hole device to the secondary ethernet port on your gateway Eero[^1] and power it up. (This is where the microUSB to ethernet adapter for our Pi device is needed)&lt;/p&gt;
-&lt;p&gt;See the crude diagram below for visual reference:&lt;/p&gt;
+&lt;p&gt;Shortly after you should have a generated PDF file inside the &lt;code&gt;_site&lt;/code&gt; folder - most likely named &lt;code&gt;index.html.pdf&lt;/code&gt;. That&amp;#8217;s it! Enjoy your fully formatted PDF version of your book!&lt;/p&gt;
+&lt;p&gt;There are a good amount of pros and cons to this approach of &amp;#8220;publishing&amp;#8221; PDF versions of your book. Since I&amp;#8217;m a sucker for &lt;em&gt;good&lt;/em&gt; and &lt;em&gt;bad&lt;/em&gt; bullet lists, let&amp;#8217;s do just that:&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;The Good&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;strong&gt;Grey Wire&lt;/strong&gt;: Incoming internet connection from ISP&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Blue Wire&lt;/strong&gt;: Ethernet cord connecting modem to gateway Eero&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Red Wire&lt;/strong&gt;: Ethernet cord connecting secondary Eero port to Pi Zero&lt;/li&gt;
+&lt;li&gt;Online version and PDF versions share same styling (keeps things consistent)&lt;/li&gt;
+&lt;li&gt;Chapters are written in &lt;code&gt;markdown&lt;/code&gt; (increased flexibility of writing apps etc.)&lt;/li&gt;
+&lt;li&gt;Very fast and streamlined build process&lt;/li&gt;
+&lt;li&gt;PDF format renders out the chapter headers for built-in navigation&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;That&amp;#8217;s all we need to do on the hardware side of things.&lt;/p&gt;
-&lt;h2 id=&quot;configuring-the-eero-app&quot;&gt;Configuring the Eero App&lt;/h2&gt;
-&lt;p&gt;With everything connected properly it&amp;#8217;s finally time to setup our custom DNS settings through Eero.&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Open the Eero app (iOS or Android)&lt;/li&gt;
-&lt;li&gt;Navigate to &lt;strong&gt;Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Network Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;DNS&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Select &lt;strong&gt;Customized DNS&lt;/strong&gt; and enter both your saved IPv4 &amp;#47; IPv6 values&lt;/li&gt;
-&lt;li&gt;Eero will prompt you to reboot your network - do it&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;Next we need to add your Pi-hole&amp;#8217;s address as an IPv4 reservation:[^2]&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;In the Eero app, navigate to &lt;strong&gt;Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Network Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Reservations &amp;#38; port forwarding&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Tap &lt;strong&gt;Add a reservation&lt;/strong&gt; and include your Pi-hole&amp;#8217;s IP address&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;After the system reboots everything &lt;em&gt;should&lt;/em&gt; be working as intended! You can check by navigating to your Pi-hole IP address in your browser.&lt;/p&gt;
-&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
-&lt;p&gt;None of this stuff if groundbreaking, but my hope is that even one person across the internet finds this helpful! If you run into any major bugs, please leave a comment below and I&amp;#8217;ll do my best to help out!&lt;/p&gt;
-&lt;p&gt;Best of luck blocking those pesky ads and trackers!&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;You don&amp;#8217;t &lt;em&gt;have&lt;/em&gt; to use your Eero gateway for this step (credit: &lt;a href=&quot;https://old.reddit.com/user/RollMeAway83&quot;&gt;&amp;#47;u&amp;#47;RollMeAway83&lt;/a&gt;)&lt;/li&gt;
-&lt;li&gt;Thanks to &lt;a href=&quot;https://old.reddit.com/user/YankeesIT&quot;&gt;u&amp;#47;YankeesIT&lt;/a&gt; for pointing out that this is required not &lt;em&gt;optional&lt;/em&gt;&lt;/li&gt;
-&lt;/ol&gt;</description>
- <link>https://btxx.org/eero</link>
- <guid isPermaLink="false">https://btxx.org/eero</guid>
- <pubDate>Mon, 14 Mar 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Easy Toggle Switches</title>
- <description>&lt;h1 id=&quot;easy-toggle-switches&quot;&gt;Easy Toggle Switches&lt;/h1&gt;
-&lt;p&gt;2019-02-18&lt;/p&gt;
-&lt;p&gt;Sometimes there is a need to use toggle elements in-place of the default &lt;code&gt;checkbox&lt;/code&gt; inputs. The problem is, I tend to see a lot of developers reaching for plugins or JavaScript components in order to implement these toggles.&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;This is overkill&lt;/em&gt;. You can create your own custom &lt;code&gt;input&lt;/code&gt; elements to mimic toggles perfectly with just a small amount of CSS.&lt;/p&gt;
-&lt;h2 id=&quot;what-we-will-be-building&quot;&gt;What we will be building&lt;/h2&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/easy-toggle-switches.png&quot; alt=&quot;Easy toggle switches&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/bGgbajY&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;The build structure for these toggles is really simple, we only need:&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;The Bad&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;p&gt;a parent container to hold all our corresponding elements&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;a checkbox &lt;code&gt;input&lt;/code&gt; element (which we will hide)&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;an empty label designed to represent the slider&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;a text label that references the &lt;code&gt;input&lt;/code&gt; &lt;/p&gt;
-&lt;p&gt;&amp;#47;* Main toggle parent container &lt;em&gt;&amp;#47;
-
- &amp;#47;&lt;/em&gt; Checkbox input, hidden with CSS &lt;em&gt;&amp;#47;
-
- &amp;#47;&lt;/em&gt; The toggle slider element &lt;em&gt;&amp;#47;
-
- &amp;#47;&lt;/em&gt; The text label to the right of the slider *&amp;#47;
- Toggle Switch
-&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;Chapters are spit out as one long, single page (I&amp;#8217;m sure this could be rectified with some custom work)&lt;/li&gt;
+&lt;li&gt;More suited for short stories, papers, essay articles (not so great for epic novels)&lt;/li&gt;
+&lt;li&gt;I&amp;#8217;m sure there are other cons I am missing?&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;And that&amp;#8217;s everything we need for the HTML.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;ProTip:&lt;/strong&gt; Don&amp;#8217;t forget to increment both the &lt;code&gt;id&lt;/code&gt; and &lt;code&gt;for&lt;/code&gt; attributes when adding additional toggles. This seems like a no-brainer but it&amp;#8217;s overlooked more than you think.&lt;/p&gt;
+&lt;p&gt;In the end, using something like LaTeX would certainly grant the user more flexibility in design and layout of the final &amp;#8220;print&amp;#8221; PDF product - but I&amp;#8217;m a sucker for using Jekyll when I can. &lt;/p&gt;
+&lt;p&gt;Please let me know if you decide to use this method and end up publishing your own book 😀 I would love to check it out!&lt;/p&gt;</description>
+ <link>https://btxx.org/publish-with-jekyll</link>
+ <guid isPermaLink="false">https://btxx.org/publish-with-jekyll</guid>
+ <pubDate>Thu, 20 Jun 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Pure CSS Simple Dropdown Plugin</title>
+ <description>&lt;h1 id=&quot;pure-css-simple-dropdown-plugin&quot;&gt;Pure CSS Simple Dropdown Plugin&lt;/h1&gt;
+&lt;p&gt;2018-09-20&lt;/p&gt;
+&lt;p&gt;I find myself blowing away default browser &lt;code&gt;select&lt;/code&gt; styling and implementing my own custom dropdowns far more often than I&amp;#8217;d like. So, I recently created a very simple and clean component using just pure CSS.&lt;/p&gt;
+&lt;p&gt;Check out the CodePen below and feel free to morph it as you see fit for your own projects!&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/plug-play.png&quot; alt=&quot;Three dropdown elements styled differently&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/rZPzWy/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</description>
+ <link>https://btxx.org/pure-css-simple-dropdown-plugin</link>
+ <guid isPermaLink="false">https://btxx.org/pure-css-simple-dropdown-plugin</guid>
+ <pubDate>Thu, 20 Sep 2018 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Quick and Dirty Theme Switcher</title>
+ <description>&lt;h1 id=&quot;quick-and-dirty-theme-switcher&quot;&gt;Quick and Dirty Theme Switcher&lt;/h1&gt;
+&lt;p&gt;2020-06-04&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: This article is no longer relevant since my blog design has changed. I&amp;#8217;m keeping this post up since it will still be useful for those wanting to implement a theme switcher on their own site.&lt;/p&gt;
+&lt;hr/&gt;
+&lt;p&gt;&lt;em&gt;I recently added a fairly straightforward color scheme (theme) switcher&lt;/em&gt; to my personal website. You can toggle this simple color switcher in the footer of the site to see it in action. In case anyone else had the desire to add such functionality to their own sites&amp;#47;projects, I figured I&amp;#8217;d write up a quick post explaining how to do so. Let&amp;#8217;s get into it.&lt;/p&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;p&gt;First we need to include the &amp;#8220;buttons&amp;#8221; that will trigger the theme to switch based on which one is selected. (Note: you could always render these as &lt;code&gt;options&lt;/code&gt; in a &lt;code&gt;select&lt;/code&gt; element if you preferred that method)&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;color-select&quot;&amp;#62;
+ &amp;#60;button onclick=&quot;toggleDefaultTheme()&quot;&amp;#62;&amp;#60;&amp;#47;button&amp;#62;
+ &amp;#60;button onclick=&quot;toggleSecondTheme()&quot;&amp;#62;&amp;#60;&amp;#47;button&amp;#62;
+ &amp;#60;button onclick=&quot;toggleThirdTheme()&quot;&amp;#62;&amp;#60;&amp;#47;button&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;That&amp;#8217;s it! Don&amp;#8217;t worry too much about the &lt;code&gt;onclick&lt;/code&gt; parameter right now, we&amp;#8217;ll come back to that when adding our JavaScript. The only remaining item is adding a default theme class to our &lt;code&gt;html&lt;/code&gt; element, like so:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;html class=&quot;theme-default&quot;&amp;#62;
+&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;To get things started we will add the styling to the &lt;code&gt;.toggle-switch&lt;/code&gt; item directly (using &lt;code&gt;flexbox&lt;/code&gt; in this demo for easier layout).&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Sidenote&lt;/strong&gt;: You will notice the inclusion of CSS variables in this demo - if you are unfamiliar with how to use root variables in CSS, take a look at one of my previous posts: CSS variables.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;:root {
- --primary-color: #4A90E2;
+&lt;p&gt;Next we need to style both the &lt;code&gt;color-select&lt;/code&gt; buttons, along with the custom color schemes that will alter the entire website. We will start with the color schemes.&lt;/p&gt;
+&lt;p&gt;For these themes to swap seamlessly between each other, we will be setting our altering color sets as CSS variables:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.theme-default {
+--accent-color: #72f1b8;
+--font-color: #34294f;
}
-.toggle-switch {
- align-items: center;
- display: flex;
- font-size: 14px;
- justify-content: center;
- margin: 20px 0;
+.theme-second {
+ --accent-color: #FFBF00;
+ --font-color: #59316B;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next we will hide the default browser checkbox element since we won&amp;#8217;t be needing it:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.toggle-input {
- position: absolute;
- visibility: hidden;
- z-index: -1;
+
+.theme-third {
+ --accent-color: #d9455f;
+ --font-color: #303960;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Let&amp;#8217;s also add some base styling for the &lt;code&gt;label&lt;/code&gt; containing the text corresponding to it&amp;#8217;s &lt;code&gt;input&lt;/code&gt; sibling:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.toggle-label {
- color: #ccc;
- cursor: pointer;
- font-weight: bold;
- padding-left: 10px;
- text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
- transition: ease all .3s;
+
+body {
+ background-color: var(--accent-color);
+ color: var(--font-color);
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now we target the &lt;code&gt;.toggle-slider&lt;/code&gt; label and add the styling for the main slider base:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* This is just the main slider base *&amp;#47;
-.toggle-slider {
- background: #eee;
+&lt;p&gt;Finally, we style the user-facing color swatches:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.color-select button {
+ -moz-appearance: none;
+ appearance: none;
+ border: 2px solid;
border-radius: 9999px;
- box-shadow: inset 0 2px 4px rgba(0,0,0,0.1),
- inset 0 4px 8px rgba(0,0,0,0.1),
- 0 1px 1px rgba(255,255,255,1);
cursor: pointer;
- display: inline-block;
height: 20px;
- position: relative;
- transition: all ease .3s;
- width: 40px;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;We &lt;em&gt;could&lt;/em&gt; include a separate element for the circle toggle switcher itself, but instead we will use the &lt;code&gt;:before&lt;/code&gt; pseudo element:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.toggle-slider:before {
- background: white;
- border-radius: 9999px;
- box-shadow: 0 4px 8px rgba(0,0,0,0.1),
- 0 2px 4px rgba(0,0,0,0.2);
- content:&amp;#39;&amp;#39;;
- height: 16px;
- left: 2px;
- position: absolute;
- top: 2px;
- transition: all ease .3s;
- width: 16px;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;interaction&quot;&gt;Interaction&lt;/h3&gt;
-&lt;p&gt;Right now we just have a static toggle that does nothing when the user interacts with it. Let&amp;#8217;s change that by moving the pseudo element&amp;#8217;s position based on the checkbox &lt;code&gt;input&lt;/code&gt; state and updating the label text color:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.toggle-input:checked + .toggle-slider {
- background: var(--primary-color);
-}
-.toggle-input:checked + .toggle-slider:before {
- &amp;#47;* Move 100% of the width minus it&amp;#39;s own width plus initial &amp;#39;left&amp;#39; *&amp;#47;
- left: calc(100% - 18px);
+ margin: 0 0.8rem 0.8rem 0;
+ outline: 0;
+ width: 20px;
}
-.toggle-input:checked ~ .toggle-label {
- color: var(--primary-color);
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;And because we already included the &lt;code&gt;transition&lt;/code&gt; property on both the base slider and label text, everything animates nicely between state changes.&lt;/p&gt;
-&lt;h2 id=&quot;final-code&quot;&gt;Final code&lt;/h2&gt;
-&lt;p&gt;To make things easier, you can find the HTML &amp;#38; CSS is their entirety below:&lt;/p&gt;
-&lt;h3 id=&quot;html&quot;&gt;HTML&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;toggle-switch&quot;&amp;#62;
- &amp;#60;input class=&quot;toggle-input&quot; type=&quot;checkbox&quot; id=&quot;toggle-1&quot;&amp;#62;
- &amp;#60;label class=&quot;toggle-slider&quot; for=&quot;toggle-1&quot;&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;label class=&quot;toggle-label&quot; for=&quot;toggle-1&quot;&amp;#62;Toggle Switch&amp;#60;&amp;#47;label&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
-&amp;#60;div class=&quot;toggle-switch&quot;&amp;#62;
- &amp;#60;input class=&quot;toggle-input&quot; type=&quot;checkbox&quot; id=&quot;toggle-2&quot;&amp;#62;
- &amp;#60;label class=&quot;toggle-slider&quot; for=&quot;toggle-2&quot;&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;label class=&quot;toggle-label&quot; for=&quot;toggle-2&quot;&amp;#62;Toggle Switch&amp;#60;&amp;#47;label&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
-&amp;#60;div class=&quot;toggle-switch&quot;&amp;#62;
- &amp;#60;input class=&quot;toggle-input&quot; type=&quot;checkbox&quot; id=&quot;toggle-3&quot; checked&amp;#62;
- &amp;#60;label class=&quot;toggle-slider&quot; for=&quot;toggle-3&quot;&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;label class=&quot;toggle-label&quot; for=&quot;toggle-3&quot;&amp;#62;Toggle Switch&amp;#60;&amp;#47;label&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
-&amp;#60;div class=&quot;toggle-switch&quot;&amp;#62;
- &amp;#60;input class=&quot;toggle-input&quot; type=&quot;checkbox&quot; id=&quot;toggle-4&quot;&amp;#62;
- &amp;#60;label class=&quot;toggle-slider&quot; for=&quot;toggle-4&quot;&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;label class=&quot;toggle-label&quot; for=&quot;toggle-4&quot;&amp;#62;Toggle Switch&amp;#60;&amp;#47;label&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
+&amp;#47;* Style each swatch to match the corresponding theme *&amp;#47;
+.color-select button:nth-child(1) { background: #72f1b8; border-color: #34294f; }
+.color-select button:nth-child(2) { background: #FFBF00; border-color: #59316B; }
+.color-select button:nth-child(3) { background: #d9455f; border-color: #303960; }
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;the-css-1&quot;&gt;The CSS&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;:root {
- --primary-color: #4A90E2;
-}
-.toggle-switch {
- align-items: center;
- display: flex;
- font-size: 14px;
- justify-content: center;
- margin: 20px 0;
-}
-.toggle-input {
- position: absolute;
- visibility: hidden;
- z-index: -1;
-}
-.toggle-slider {
- background: #eee;
- border-radius: 9999px;
- box-shadow: inset 0 2px 4px rgba(0,0,0,0.1),
- inset 0 4px 8px rgba(0,0,0,0.1),
- 0 1px 1px rgba(255,255,255,1);
- cursor: pointer;
- display: inline-block;
- height: 20px;
- position: relative;
- transition: all ease .3s;
- width: 40px;
-}
-.toggle-slider:before {
- background: white;
- border-radius: 9999px;
- box-shadow: 0 4px 8px rgba(0,0,0,0.1),
- 0 2px 4px rgba(0,0,0,0.2);
- content:&amp;#39;&amp;#39;;
- height: 16px;
- left: 2px;
- position: absolute;
- top: 2px;
- transition: all ease .3s;
- width: 16px;
-}
-.toggle-input:checked + .toggle-slider {
- background: var(--primary-color);
+&lt;h2 id=&quot;the-javascript&quot;&gt;The JavaScript&lt;/h2&gt;
+&lt;p&gt;We need to have each color swatch button trigger it&amp;#8217;s corresponding theme and swap out the &lt;code&gt;theme-default&lt;/code&gt; class that we have originally attached to the main &lt;code&gt;html&lt;/code&gt; element. We also need to store what the user has selected into &lt;code&gt;localStorage&lt;/code&gt;, so their choice persists when reloading or navigating to other pages.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;&amp;#47; Set a given theme&amp;#47;color-scheme
+function setTheme(themeName) {
+ localStorage.setItem(&amp;#39;theme&amp;#39;, themeName);
+ document.documentElement.className = themeName;
}
-.toggle-input:checked + .toggle-slider:before {
- left: calc(100% - 18px);
+
+&amp;#47;&amp;#47; Toggle between color themes
+function toggleDefaultTheme() {
+ if (localStorage.getItem(&amp;#39;theme&amp;#39;) !== &amp;#39;theme-default&amp;#39;){
+ setTheme(&amp;#39;theme-default&amp;#39;);
+ }
}
-.toggle-label {
- color: #ccc;
- cursor: pointer;
- font-weight: bold;
- padding-left: 10px;
- text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
- transition: ease all .3s;
+function toggleSecondTheme() {
+ if (localStorage.getItem(&amp;#39;theme&amp;#39;) !== &amp;#39;theme-second&amp;#39;){
+ setTheme(&amp;#39;theme-second&amp;#39;);
+ }
}
-.toggle-input:checked ~ .toggle-label {
- color: var(--primary-color);
+function toggleThirdTheme() {
+ if (localStorage.getItem(&amp;#39;theme&amp;#39;) !== &amp;#39;theme-third&amp;#39;){
+ setTheme(&amp;#39;theme-third&amp;#39;);
+ }
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Enjoy your custom toggles!&lt;/p&gt;</description>
- <link>https://btxx.org/easy-toggle-switches</link>
- <guid isPermaLink="false">https://btxx.org/easy-toggle-switches</guid>
- <pubDate>Mon, 18 Feb 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Easy Custom Radio Inputs</title>
- <description>&lt;h1 id=&quot;easy-custom-radio-inputs&quot;&gt;Easy Custom Radio Inputs&lt;/h1&gt;
-&lt;p&gt;2019-01-21&lt;/p&gt;
-&lt;p&gt;Default radio inputs are notoriously horrible looking and are something designers tend to over-think when trying to customize them. Let&amp;#8217;s walk through how to create custom radio buttons with &lt;em&gt;pure CSS&lt;/em&gt;, while still preserving performance and accessibility.&lt;/p&gt;
-&lt;h2 id=&quot;the-final-product&quot;&gt;The Final Product&lt;/h2&gt;
-&lt;p&gt;This is what we will be designing:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/custom-radio-inputs.png&quot; alt=&quot;Custom radio inputs&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/oNjwMyX&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;hr/&gt;
-&lt;h2 id=&quot;the-bones-of-our-radio-inputs-html&quot;&gt;The bones of our radio inputs (HTML)&lt;/h2&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-1&quot; type=&quot;radio&quot;&amp;#62;
-&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-1&quot;&amp;#62;&amp;#60;span&amp;#62;I am very satisfied&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
-&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-2&quot; type=&quot;radio&quot;&amp;#62;
-&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-2&quot;&amp;#62;&amp;#60;span&amp;#62;I am satisfied&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
-
-&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-3&quot; type=&quot;radio&quot;&amp;#62;
-&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-3&quot;&amp;#62;&amp;#60;span&amp;#62;I am indifferent&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
-
-&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-4&quot; type=&quot;radio&quot;&amp;#62;
-&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-4&quot;&amp;#62;&amp;#60;span&amp;#62;I am unsatisfied&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
-
-&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-5&quot; type=&quot;radio&quot;&amp;#62;
-&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-5&quot;&amp;#62;&amp;#60;span&amp;#62;I am very unsatisfied&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;I know it looks like a lot is going on here, but it&amp;#8217;s pretty straightforward so let&amp;#8217;s unpackage line by line:&lt;/p&gt;
-&lt;h3 id=&quot;radio-inputs&quot;&gt;Radio inputs&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;input class=&quot;radio-btn&quot; name=&quot;radio-collection&quot; id=&quot;radio-1&quot; type=&quot;radio&quot;&amp;#62;
+&amp;#47;&amp;#47; Immediately set the theme on initial load
+(function () {
+ if (localStorage.getItem(&amp;#39;theme&amp;#39;) === &amp;#39;theme-default&amp;#39;) {
+ setTheme(&amp;#39;theme-default&amp;#39;);
+ }
+ if (localStorage.getItem(&amp;#39;theme&amp;#39;) === &amp;#39;theme-second&amp;#39;) {
+ setTheme(&amp;#39;theme-second&amp;#39;);
+ }
+ if (localStorage.getItem(&amp;#39;theme&amp;#39;) === &amp;#39;theme-third&amp;#39;) {
+ setTheme(&amp;#39;theme-third&amp;#39;);
+ }
+})();
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This is the default &lt;code&gt;radio&lt;/code&gt; input. We give it:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;a &lt;code&gt;name&lt;/code&gt; (inputs with a shared &lt;code&gt;name&lt;/code&gt; are grouped together)&lt;/li&gt;
-&lt;li&gt;an &lt;code&gt;id&lt;/code&gt; (so our label can target this input)&lt;/li&gt;
-&lt;li&gt;a &lt;code&gt;class&lt;/code&gt; (so we can style it later)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: be sure to have a unique &lt;code&gt;id&lt;/code&gt; for each input so your labels don&amp;#8217;t end up connected to multiple radios. In this demo we are simply incrementing them by one.&lt;/p&gt;
-&lt;h3 id=&quot;labels&quot;&gt;Labels&lt;/h3&gt;
-&lt;p&gt;Adding the labels is fairly straightforward, we just include the corresponding input&amp;#8217;s &lt;code&gt;id&lt;/code&gt; in the label&amp;#8217;s &lt;code&gt;for&lt;/code&gt; attribute. The label content is wrapped in a &lt;code&gt;span&lt;/code&gt; - which I will explain the reasoning for later.&lt;/p&gt;
-&lt;p&gt;For styling purposes we also add the &lt;code&gt;radio-label&lt;/code&gt; class.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;label class=&quot;radio-label&quot; for=&quot;radio-1&quot;&amp;#62;&amp;#60;span&amp;#62;I am very satisfied&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;label&amp;#62;
+&lt;p&gt;And that&amp;#8217;s it! Now it just depends on how custom you want each individual theme style to be. The possibilities are endless!&lt;/p&gt;
+&lt;h2 id=&quot;extra-improvements&quot;&gt;Extra Improvements&lt;/h2&gt;
+&lt;p&gt;You could improve this concept even further hiding the &lt;code&gt;color-select&lt;/code&gt; item if the user has JavaScript disabled. For my needs, I felt it was a fine trade-off to keep the non-functioning color swatch pickers if JavaScript was disabled. However, your project&amp;#47;site might need better fallbacks.&lt;/p&gt;</description>
+ <link>https://btxx.org/quick-dirty-theme-switcher</link>
+ <guid isPermaLink="false">https://btxx.org/quick-dirty-theme-switcher</guid>
+ <pubDate>Thu, 04 Jun 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Clickable Links Inside XML</title>
+ <description>&lt;h1 id=&quot;clickable-links-inside-xml&quot;&gt;Clickable Links Inside XML&lt;/h1&gt;
+&lt;p&gt;2022-06-20&lt;/p&gt;
+&lt;p&gt;With the recent patch to the Shinobi Website project, I thought it would be best to share my experience implementing clickable links inside a rendered XML RSS file directly through a browser. This is made possible thanks to the awesome power of XSL formatting.&lt;/p&gt;
+&lt;p&gt;Before we begin, it should be noted that both Safari for macOS and &lt;em&gt;all&lt;/em&gt; browsers on iOS do NOT support the ability to render XML files. Instead you are required to download the feeds as static files to your system. Major bummmer. Hopefully this will be fixed in the near future.&lt;/p&gt;
+&lt;h2 id=&quot;the-code&quot;&gt;The Code&lt;/h2&gt;
+&lt;p&gt;Rendering your entry links as interactive URLs is fairly intuitive. You just need to:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;p&gt;Tell the file which tag it needs to render as the &amp;#8220;a:link&amp;#8221; element&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Set the inner child attribute to &amp;#8220;href&amp;#8221;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Set the value of that attribute to use the entry&amp;#8217;s &lt;code&gt;link&lt;/code&gt; parameter&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;/xsl:attribute&quot;&gt;&amp;#47;xsl:attribute&lt;/a&gt;
+
+&lt;a href=&quot;/xsl:element&quot;&gt;&amp;#47;xsl:element&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;In the instance above I am rendering the entry title as a clickable element which will direct users to the specific entry URL. You could simply render the full entry link URL text as the interactive link if you prefer. Something like:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;xsl:element name=&quot;a&quot;&amp;#62;
+ &amp;#60;xsl:attribute name=&quot;href&quot;&amp;#62;
+ &amp;#60;xsl:value-of select=&quot;link&quot;&amp;#47;&amp;#62;
+ &amp;#60;&amp;#47;xsl:attribute&amp;#62;
+ &amp;#60;pre&amp;#62;&amp;#60;xsl:value-of select=&quot;link&quot;&amp;#47;&amp;#62;&amp;#60;&amp;#47;pre&amp;#62;
+&amp;#60;&amp;#47;xsl:element&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This is looking pretty terrible - but that&amp;#8217;s nothing some good ol&amp;#8217; CSS can&amp;#8217;t fix!&lt;/p&gt;
-&lt;h2 id=&quot;the-flesh-of-our-radio-inputs-css&quot;&gt;The flesh of our radio inputs (CSS)&lt;/h2&gt;
-&lt;p&gt;First we give some basic styling to our &lt;code&gt;label&lt;/code&gt; and &lt;code&gt;input&lt;/code&gt; classes (along with hover states). The &lt;code&gt;radio&lt;/code&gt; element is actually hidden from view, but by using the &lt;code&gt;visibility&lt;/code&gt; attribute we still keep it accessible for screen-readers.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.radio-label {
- background: white;
- border: 1px solid #eee;
- border-radius: 5px;
- box-shadow: 0 2px 4px rgba(0,0,0,0.05);
- cursor: pointer;
- display: inline-block;
- font-weight: 600;
- margin: 0 auto 10px;
- &amp;#47;* This 65px padding makes room for the custom input *&amp;#47;
- padding: 20px 20px 20px 65px;
- position: relative;
- transition: .3s ease all;
- width: 100%;
-}
-.radio-label:hover {
- box-shadow: 0 4px 8px rgba(0,0,0,0.05);
-}
-.radio-btn {
- position: absolute;
- visibility: hidden;
-}
+&lt;h2 id=&quot;live-example&quot;&gt;Live Example&lt;/h2&gt;
+&lt;p&gt;In a supported browser, you can see the code in action here: &lt;a href=&quot;https://pblog.bt.ht/feed.xml&quot;&gt;https:&amp;#47;&amp;#47;pblog.bt.ht&amp;#47;feed.xml&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s really all there is to it.&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;a href=&quot;https://shinobi.bt.ht/posts/patch-3.txt&quot;&gt;https:&amp;#47;&amp;#47;shinobi.bt.ht&amp;#47;posts&amp;#47;patch-3.txt&lt;/a&gt;&lt;/li&gt;
+&lt;/ol&gt;</description>
+ <link>https://btxx.org/rss-click</link>
+ <guid isPermaLink="false">https://btxx.org/rss-click</guid>
+ <pubDate>Mon, 20 Jun 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>RSS Hacks With XSLT</title>
+ <description>&lt;h1 id=&quot;rss-hacks-with-xslt&quot;&gt;RSS Hacks With XSLT&lt;/h1&gt;
+&lt;p&gt;2022-05-23&lt;/p&gt;
+&lt;p&gt;In my spare time I&amp;#8217;ve been further tinkering (hopefully for the better) with my humble Shinobi Website[^0] script. The most recent update in &lt;code&gt;patch-1&lt;/code&gt; came with a solid amount of QoL improvements. If you&amp;#8217;re interested, I wrote about it on the official Shinobi blog[^1].&lt;/p&gt;
+&lt;p&gt;The next feature I wanted to tackle was designing a custom layout for the XML files directly in the browser. I was greatly inspired to create something similar to Len Falken&amp;#8217;s main directory listing[^2], since that blog was one of the original inspirations for Shinobi. I&amp;#8217;m not able to copy what&amp;#8217;s there though, since our feed builds are quite a bit different.&lt;/p&gt;
+&lt;p&gt;I then proceeded to fall down the XSLT rabbit hole.&lt;/p&gt;
+&lt;h2 id=&quot;it-never-works-the-first-time-does-it&quot;&gt;It Never Works the First Time, Does It?&lt;/h2&gt;
+&lt;p&gt;Since the shinobi script generates valid RSS code by default, I didn&amp;#8217;t want to mess around &lt;em&gt;too&lt;/em&gt; much via XSLT and risk breaking validation. I also wanted to keep the &amp;#8220;plain text&amp;#8221; look-and-feel for consistency with the rest of the site, even though the XSLT template would render into standard HTML. Minor CSS styling and placing the content directly inside &lt;code&gt;pre&lt;/code&gt; tags solved these issues.&lt;/p&gt;
+&lt;p&gt;My first attempt was to use the available &lt;code&gt;sort&lt;/code&gt; parameter (in XSL version 1.1+) targeting the &lt;code&gt;dc:date&lt;/code&gt; type linked to the &lt;code&gt;pubDate&lt;/code&gt; element:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;xsl:sort select=&quot;pubDate&quot; data-type=&quot;dc:date&quot; order=&quot;descending&quot;&amp;#47;&amp;#62;
+&amp;#60;!-- each individual post&amp;#39;s content here --&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Remember that &lt;code&gt;span&lt;/code&gt; element inside the label? We set it&amp;#8217;s &lt;code&gt;user-select&lt;/code&gt; property to &lt;code&gt;none&lt;/code&gt; so we avoid any possible issue with the user selecting the text on-click:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.radio-label span {
- -webkit-user-select: none;
- -moz-user-select: none;
- user-select: none;
-}
+&lt;p&gt;This did not work as intended. RSS 2.0 requires that the &lt;code&gt;pubDate&lt;/code&gt; content is set to comply with the RFC-822 date-time[^3], which shinobi handles perfectly fine. The issue came from the XSL &lt;code&gt;sort&lt;/code&gt; parameter not honoring this setting across all dates. My best guess is that it struggles to properly organize posts from their &amp;#8220;month&amp;#8221; parameter, so it sets the posts in order of date in what I refer to as &amp;#8220;monthly sections&amp;#8221;.&lt;/p&gt;
+&lt;p&gt;If anyone knows why this failed to consistently order the posts via &lt;code&gt;pubDate&lt;/code&gt;, please let me know using the comment link below. I&amp;#8217;m far from an XSLT expert and might have overlooked something painfully obvious!&lt;/p&gt;
+&lt;h2 id=&quot;rss-hack-categories&quot;&gt;RSS Hack: Categories&lt;/h2&gt;
+&lt;p&gt;After spending far too much time reading over documentation, official manual pages and Stack Overflow comments I gave up on the &lt;code&gt;dc:date&lt;/code&gt; sort. I realized I could sort the posts much easier if they were converted into a format similar to ISO 8601. But &lt;code&gt;pubDate&lt;/code&gt; is required to be in RFC-822, so I couldn&amp;#8217;t alter that in the final XML file.&lt;/p&gt;
+&lt;p&gt;Then I remembered the &lt;code&gt;category&lt;/code&gt; tag which shinobi does not utilize by default.&lt;/p&gt;
+&lt;p&gt;First I needed to convert the RFC-822 formatted date (found on the first line of all blog post text files) and render it inside a &lt;code&gt;category&lt;/code&gt; tag. This was simple enough:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;$(date -j -f &quot;%a, %d %b %Y&quot; &quot;$(head -n 1 $file)&quot; +&quot;%Y&amp;#47;%m&amp;#47;%d&amp;#47;%u&quot;)
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next we include the default empty selection element (to mimic the original radio input) via a pseudo element:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.radio-label:before {
- background: #eee;
- border-radius: 50%;
- content:&amp;#39;&amp;#39;;
- height: 30px;
- left: 20px;
- position: absolute;
- &amp;#47;* Half the height of it&amp;#39;s parent minus half of it&amp;#39;s own height *&amp;#47;
- top: calc(50% - 15px);
- transition: .3s ease background-color;
- width: 30px;
-}
+&lt;p&gt;In a nutshell, this converts the RFC-822 date into the format &amp;#8220;2022&amp;#47;05&amp;#47;24&amp;#47;2&amp;#8221;. Simple numbers that can be sorted much easier by XSL. Now all that was needed was setting to &lt;code&gt;sort&lt;/code&gt; parameter properly:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;xsl:sort select=&quot;category&quot; order=&quot;descending&quot;&amp;#47;&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;a-few-final-steps&quot;&gt;A Few Final Steps&lt;/h2&gt;
-&lt;p&gt;The final step is adding the custom styling for when an &lt;code&gt;input&lt;/code&gt; item is selected (&lt;code&gt;:checked&lt;/code&gt;).&lt;/p&gt;
-&lt;p&gt;You will notice the use of a &lt;code&gt;base64&lt;/code&gt; element for the custom checkmark - feel free to subsitute this for an actual image or none at all (this is just my personal design preference).&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.radio-btn:checked + .radio-label {
- background: #ECF5FF;
- border-color: #4A90E2;
-}
-.radio-btn:checked + .radio-label:before {
- background-color: #4A90E2;
- background-image: url(&amp;#39;data:image&amp;#47;svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIyNiIgaGVpZ2h0PSIyMCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIyLjAyOTY4IC00MC4wOTAzIDI2IDIwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj48IS0tR2VuZXJhdGVkIGJ5IElKU1ZHIChodHRwczovL2dpdGh1Yi5jb20vaWNvbmphci9JSlNWRyktLT48cGF0aCBkPSJNMjcuOTc0MywtMzYuMTI3MmMwLDAuNDQ2NDI4IC0wLjE1NjI1LDAuODI1ODkzIC0wLjQ2ODc1LDEuMTM4MzlsLTEyLjEyMDUsMTIuMTIwNWwtMi4yNzY3OSwyLjI3Njc5Yy0wLjMxMjUsMC4zMTI1IC0wLjY5MTk2NCwwLjQ2ODc1IC0xLjEzODM5LDAuNDY4NzVjLTAuNDQ2NDI4LDAgLTAuODI1ODkzLC0wLjE1NjI1IC0xLjEzODM5LC0wLjQ2ODc1bC0yLjI3Njc5LC0yLjI3Njc5bC02LjA2MDI3LC02LjA2MDI3Yy0wLjMxMjUsLTAuMzEyNSAtMC40Njg3NSwtMC42OTE5NjUgLTAuNDY4NzUsLTEuMTM4MzljMCwtMC40NDY0MjkgMC4xNTYyNSwtMC44MjU4OTMgMC40Njg3NSwtMS4xMzgzOWwyLjI3Njc5LC0yLjI3Njc5YzAuMzEyNSwtMC4zMTI1IDAuNjkxOTY1LC0wLjQ2ODc1IDEuMTM4MzksLTAuNDY4NzVjMC40NDY0MjksMCAwLjgyNTg5MywwLjE1NjI1IDEuMTM4MzksMC40Njg3NWw0LjkyMTg4LDQuOTM4NjJsMTAuOTgyMSwtMTAuOTk4OWMwLjMxMjUsLTAuMzEyNSAwLjY5MTk2NCwtMC40Njg3NSAxLjEzODM5LC0wLjQ2ODc1YzAuNDQ2NDI4LDAgMC44MjU4OTMsMC4xNTYyNSAxLjEzODM5LDAuNDY4NzVsMi4yNzY3OCwyLjI3Njc5YzAuMzEyNSwwLjMxMjUgMC40Njg3NSwwLjY5MTk2NCAwLjQ2ODc1LDEuMTM4MzlaIiB0cmFuc2Zvcm09InNjYWxlKDEuMDAxOTgpIiBmaWxsPSIjZmZmIj48L3BhdGg+PC9zdmc+&amp;#39;);
- background-repeat: no-repeat;
- background-position: center;
- background-size: 15px;
-}
+&lt;p&gt;Everything worked perfectly and the RSS was still valid!&lt;/p&gt;
+&lt;h3 id=&quot;patch-2-pending&quot;&gt;Patch-2 Pending&lt;/h3&gt;
+&lt;p&gt;I&amp;#8217;ve ported these changes over to this blog to perform some &amp;#8220;in the wild&amp;#8221; testing. You can see the custom feed list in your supported browser by visiting:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://pblog.bt.ht/feed.xml&quot;&gt;https:&amp;#47;&amp;#47;pblog.bt.ht&amp;#47;feed.xml&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;As for the shinobi project itself, I have not merged these updates into the main master branch (at the time of publishing this article). They can be found sitting on patch-2[^4]. My plan is to get this merged ASAP once a little more real-world testing is finished and I can include a better &amp;#8220;setup&amp;#47;install&amp;#8221; section for newcomers.&lt;/p&gt;
+&lt;h2 id=&quot;shinobi-updates&quot;&gt;Shinobi Updates&lt;/h2&gt;
+&lt;p&gt;If you&amp;#8217;re interested in more updates and details about the shinobi project itself, feel free to sub to that specific feed below. This post was more focused on hacking RSS parameters that happened to involve shinobi, but in the future all updates specific to the project will be posted there:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://shinobi.bt.ht/feed.xml&quot;&gt;https:&amp;#47;&amp;#47;shinobi.bt.ht&amp;#47;feed.xml&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;a href=&quot;https://shinobi.website/&quot;&gt;https:&amp;#47;&amp;#47;shinobi.website&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://shinobi.website/posts/patch-1.txt&quot;&gt;https:&amp;#47;&amp;#47;shinobi.website&amp;#47;posts&amp;#47;patch-1.txt&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;http://len.falken.directory/&quot;&gt;http:&amp;#47;&amp;#47;len.falken.directory&amp;#47;&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://validator.w3.org/feed/docs/error/InvalidRFC2822Date.html&quot;&gt;https:&amp;#47;&amp;#47;validator.w3.org&amp;#47;feed&amp;#47;docs&amp;#47;error&amp;#47;InvalidRFC2822Date.html&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://git.sr.ht/~tdarb/shinobi-script/tree/patch-2&quot;&gt;https:&amp;#47;&amp;#47;git.sr.ht&amp;#47;~tdarb&amp;#47;shinobi-script&amp;#47;tree&amp;#47;patch-2&lt;/a&gt;&lt;/li&gt;
+&lt;/ol&gt;</description>
+ <link>https://btxx.org/rss-hacks</link>
+ <guid isPermaLink="false">https://btxx.org/rss-hacks</guid>
+ <pubDate>Mon, 23 May 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Installing Ruby with RVM on Alpine Linux</title>
+ <description>&lt;h1 id=&quot;installing-ruby-with-rvm-on-alpine-linux&quot;&gt;Installing Ruby with RVM on Alpine Linux&lt;/h1&gt;
+&lt;p&gt;2023-03-16&lt;/p&gt;
+&lt;p&gt;For some on-going projects I need to switch to different versions of &lt;code&gt;ruby&lt;/code&gt;. Although there exist many step-by-step instructions on installing and configuring &lt;code&gt;rvm&lt;/code&gt; for most Linux distros, there aren&amp;#8217;t many focused on Alpine &amp;#8220;daily drivers&amp;#8221;.&lt;/p&gt;
+&lt;p&gt;So this post is more or less a helpful document for my future self. If it happens to help others then that&amp;#8217;s an added bonus!&lt;/p&gt;
+&lt;h2 id=&quot;simple-setup&quot;&gt;Simple Setup&lt;/h2&gt;
+&lt;p&gt;Make sure you have the basic packages first:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;apk update
+apk add curl gcc gnupg gpg dirmngr procps musl-dev linux-headers zlib zlib-dev openssl openssl-dev libssl1.1
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;&lt;strong&gt;And that&amp;#8217;s it.&lt;/strong&gt;&lt;/p&gt;
-&lt;p&gt;For easier reference the entire CSS file can be found below:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.radio-label {
- background: white;
- border: 1px solid #eee;
- border-radius: 5px;
- box-shadow: 0 2px 4px rgba(0,0,0,0.05);
- cursor: pointer;
- display: inline-block;
- font-weight: 600;
- margin: 0 auto 10px;
- padding: 20px 20px 20px 65px;
- position: relative;
- transition: .3s ease all;
- width: 100%;
-}
-.radio-label:hover {
- box-shadow: 0 4px 8px rgba(0,0,0,0.05);
-}
-.radio-label:before {
- background: #eee;
- border-radius: 50%;
- content:&amp;#39;&amp;#39;;
- height: 30px;
- left: 20px;
- position: absolute;
- top: calc(50% - 15px);
- transition: .3s ease background-color;
- width: 30px;
-}
-.radio-label span {
- -webkit-user-select: none;
- -moz-user-select: none;
- user-select: none;
-}
-.radio-btn {
- position: absolute;
- visibility: hidden;
-}
-.radio-btn:checked + .radio-label {
- background: #ECF5FF;
- border-color: #4A90E2;
-}
-.radio-btn:checked + .radio-label:before {
- background-color: #4A90E2;
- background-image: url(&amp;#39;data:image&amp;#47;svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIyNiIgaGVpZ2h0PSIyMCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIyLjAyOTY4IC00MC4wOTAzIDI2IDIwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj48IS0tR2VuZXJhdGVkIGJ5IElKU1ZHIChodHRwczovL2dpdGh1Yi5jb20vaWNvbmphci9JSlNWRyktLT48cGF0aCBkPSJNMjcuOTc0MywtMzYuMTI3MmMwLDAuNDQ2NDI4IC0wLjE1NjI1LDAuODI1ODkzIC0wLjQ2ODc1LDEuMTM4MzlsLTEyLjEyMDUsMTIuMTIwNWwtMi4yNzY3OSwyLjI3Njc5Yy0wLjMxMjUsMC4zMTI1IC0wLjY5MTk2NCwwLjQ2ODc1IC0xLjEzODM5LDAuNDY4NzVjLTAuNDQ2NDI4LDAgLTAuODI1ODkzLC0wLjE1NjI1IC0xLjEzODM5LC0wLjQ2ODc1bC0yLjI3Njc5LC0yLjI3Njc5bC02LjA2MDI3LC02LjA2MDI3Yy0wLjMxMjUsLTAuMzEyNSAtMC40Njg3NSwtMC42OTE5NjUgLTAuNDY4NzUsLTEuMTM4MzljMCwtMC40NDY0MjkgMC4xNTYyNSwtMC44MjU4OTMgMC40Njg3NSwtMS4xMzgzOWwyLjI3Njc5LC0yLjI3Njc5YzAuMzEyNSwtMC4zMTI1IDAuNjkxOTY1LC0wLjQ2ODc1IDEuMTM4MzksLTAuNDY4NzVjMC40NDY0MjksMCAwLjgyNTg5MywwLjE1NjI1IDEuMTM4MzksMC40Njg3NWw0LjkyMTg4LDQuOTM4NjJsMTAuOTgyMSwtMTAuOTk4OWMwLjMxMjUsLTAuMzEyNSAwLjY5MTk2NCwtMC40Njg3NSAxLjEzODM5LC0wLjQ2ODc1YzAuNDQ2NDI4LDAgMC44MjU4OTMsMC4xNTYyNSAxLjEzODM5LDAuNDY4NzVsMi4yNzY3OCwyLjI3Njc5YzAuMzEyNSwwLjMxMjUgMC40Njg3NSwwLjY5MTk2NCAwLjQ2ODc1LDEuMTM4MzlaIiB0cmFuc2Zvcm09InNjYWxlKDEuMDAxOTgpIiBmaWxsPSIjZmZmIj48L3BhdGg+PC9zdmc+&amp;#39;);
- background-repeat: no-repeat;
- background-position: center;
- background-size: 15px;
-}
+&lt;p&gt;Next download the latest &lt;code&gt;stable&lt;/code&gt; version of &lt;code&gt;rvm&lt;/code&gt; from Github, unpack it, place it in the proper user directory (~&amp;#47;.rvm) and install any required libs:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;curl -sSL https:&amp;#47;&amp;#47;github.com&amp;#47;rvm&amp;#47;rvm&amp;#47;tarball&amp;#47;stable -o rvm-stable.tar.gz
+echo &amp;#39;export rvm_prefix=&quot;$HOME&quot;&amp;#39; &amp;#62; ~&amp;#47;.rvmrc
+echo &amp;#39;export rvm_path=&quot;$HOME&amp;#47;.rvm&quot;&amp;#39; &amp;#62;&amp;#62; ~&amp;#47;.rvmrc
+mkdir rvm &amp;#38;&amp;#38; cd rvm
+tar --strip-components=1 -xzf ..&amp;#47;rvm-stable.tar.gz
+.&amp;#47;install --auto-dotfiles --autolibs=0
&lt;/code&gt;&lt;/pre&gt;
-&lt;hr/&gt;
-&lt;h2 id=&quot;but-wait---we-can-get-even-fancier&quot;&gt;But wait - we can get even fancier!&lt;/h2&gt;
-&lt;p&gt;Since this demo is based off a survey-type questionaire, wouldn&amp;#8217;t it be interesting to give the different selectable options their own styling based on their context? Take a look at the further customized version below:&lt;/p&gt;
-&lt;p&gt;We can do so by adding &lt;code&gt;positive&lt;/code&gt;, &lt;code&gt;neutral&lt;/code&gt; and &lt;code&gt;negative&lt;/code&gt; class names to the radio inputs with their own respective properties:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.radio-btn.positive:checked + .radio-label {
- background: #EAFFF6;
- border-color: #32B67A;
-}
-.radio-btn.positive:checked + .radio-label:before {
- background-color: #32B67A;
-}
-.radio-btn.neutral:checked + .radio-label:before {
- background-image: url(&amp;#39;data:image&amp;#47;svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAtMTUgMzAgOC41NzE0MyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PCEtLUdlbmVyYXRlZCBieSBJSlNWRyAoaHR0cHM6Ly9naXRodWIuY29tL2ljb25qYXIvSUpTVkcpLS0+PHBhdGggZD0iTTMwLC0xMi4zMjE0djMuMjE0MjljMCwwLjczNjYwNyAtMC4yNjIyNzcsMS4zNjcxOSAtMC43ODY4MywxLjg5MTc0Yy0wLjUyNDU1NCwwLjUyNDU1NCAtMS4xNTUxMywwLjc4NjgzMSAtMS44OTE3NCwwLjc4NjgzMWgtMjQuNjQyOWMtMC43MzY2MDcsMCAtMS4zNjcxOSwtMC4yNjIyNzcgLTEuODkxNzQsLTAuNzg2ODMxYy0wLjUyNDU1MywtMC41MjQ1NTMgLTAuNzg2ODMsLTEuMTU1MTMgLTAuNzg2ODMsLTEuODkxNzR2LTMuMjE0MjljMCwtMC43MzY2MDcgMC4yNjIyNzcsLTEuMzY3MTkgMC43ODY4MywtMS44OTE3NGMwLjUyNDU1NCwtMC41MjQ1NTMgMS4xNTUxMywtMC43ODY4MyAxLjg5MTc0LC0wLjc4NjgzaDI0LjY0MjljMC43MzY2MDcsMCAxLjM2NzE5LDAuMjYyMjc3IDEuODkxNzQsMC43ODY4M2MwLjUyNDU1MywwLjUyNDU1NCAwLjc4NjgzLDEuMTU1MTMgMC43ODY4MywxLjg5MTc0WiIgZmlsbD0iI2ZmZiI+PC9wYXRoPjwvc3ZnPg==&amp;#39;);
-}
-.radio-btn.negative:checked + .radio-label {
- background: #FFF2F2;
- border-color: #E75153;
-}
-.radio-btn.negative:checked + .radio-label:before {
- background-color: #E75153;
- background-image: url(&amp;#39;data:image&amp;#47;svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIxLjg1MTg1IC0zOS42OTcgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjwhLS1HZW5lcmF0ZWQgYnkgSUpTVkcgKGh0dHBzOi8vZ2l0aHViLmNvbS9pY29uamFyL0lKU1ZHKS0tPjxwYXRoIGQ9Ik0yMS43Mjk5LC0yMy40NzFjMCwwLjQ0NjQyOCAtMC4xNTYyNSwwLjgyNTg5MyAtMC40Njg3NSwxLjEzODM5bC0yLjI3Njc5LDIuMjc2NzljLTAuMzEyNSwwLjMxMjUgLTAuNjkxOTY0LDAuNDY4NzUgLTEuMTM4MzksMC40Njg3NWMtMC40NDY0MjgsMCAtMC44MjU4OTMsLTAuMTU2MjUgLTEuMTM4MzksLTAuNDY4NzVsLTQuOTIxODcsLTQuOTIxODhsLTQuOTIxODgsNC45MjE4OGMtMC4zMTI1LDAuMzEyNSAtMC42OTE5NjQsMC40Njg3NSAtMS4xMzgzOSwwLjQ2ODc1Yy0wLjQ0NjQyOCwwIC0wLjgyNTg5MiwtMC4xNTYyNSAtMS4xMzgzOSwtMC40Njg3NWwtMi4yNzY3OSwtMi4yNzY3OWMtMC4zMTI1LC0wLjMxMjUgLTAuNDY4NzUsLTAuNjkxOTY1IC0wLjQ2ODc1LC0xLjEzODM5YzAsLTAuNDQ2NDI5IDAuMTU2MjUsLTAuODI1ODkzIDAuNDY4NzUsLTEuMTM4MzlsNC45MjE4OCwtNC45MjE4OGwtNC45MjE4OCwtNC45MjE4OGMtMC4zMTI1LC0wLjMxMjUgLTAuNDY4NzUsLTAuNjkxOTY0IC0wLjQ2ODc1LC0xLjEzODM5YzAsLTAuNDQ2NDI4IDAuMTU2MjUsLTAuODI1ODkzIDAuNDY4NzUsLTEuMTM4MzlsMi4yNzY3OSwtMi4yNzY3OGMwLjMxMjUsLTAuMzEyNSAwLjY5MTk2NCwtMC40Njg3NSAxLjEzODM5LC0wLjQ2ODc1YzAuNDQ2NDI5LDAgMC44MjU4OTMsMC4xNTYyNSAxLjEzODM5LDAuNDY4NzVsNC45MjE4OCw0LjkyMTg4bDQuOTIxODcsLTQuOTIxODhjMC4zMTI1LC0wLjMxMjUgMC42OTE5NjUsLTAuNDY4NzUgMS4xMzgzOSwtMC40Njg3NWMwLjQ0NjQyOSwwIDAuODI1ODkzLDAuMTU2MjUgMS4xMzgzOSwwLjQ2ODc1bDIuMjc2NzksMi4yNzY3OGMwLjMxMjUsMC4zMTI1IDAuNDY4NzUsMC42OTE5NjUgMC40Njg3NSwxLjEzODM5YzAsMC40NDY0MjkgLTAuMTU2MjUsMC44MjU4OTMgLTAuNDY4NzUsMS4xMzgzOWwtNC45MjE4OCw0LjkyMTg4bDQuOTIxODgsNC45MjE4OGMwLjMxMjUsMC4zMTI1IDAuNDY4NzUsMC42OTE5NjQgMC40Njg3NSwxLjEzODM5WiIgdHJhbnNmb3JtPSJzY2FsZSgxLjAwNTYxKSIgZmlsbD0iI2ZmZiI+PC9wYXRoPjwvc3ZnPg==&amp;#39;);
-}
+&lt;p&gt;Now we can remove everything and properly link to &lt;code&gt;rvm&lt;/code&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;cd ..&amp;#47; &amp;#38;&amp;#38; rm -rf rvm-stable stable.tar.gz rvm
+source ~&amp;#47;.rvm&amp;#47;scripts&amp;#47;rvm
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;I hope this shows new designers that simple custom radio inputs aren&amp;#8217;t so hard to implement after-all and can actually be pretty fun to design.&lt;/p&gt;</description>
- <link>https://btxx.org/easy-custom-radio-inputs</link>
- <guid isPermaLink="false">https://btxx.org/easy-custom-radio-inputs</guid>
- <pubDate>Mon, 21 Jan 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Dynamic Checkboxes</title>
- <description>&lt;h1 id=&quot;dynamic-checkboxes&quot;&gt;Dynamic Checkboxes&lt;/h1&gt;
-&lt;p&gt;2019-07-30&lt;/p&gt;
-&lt;p&gt;Checkboxes are used quite frequently on forms across the web. Whether you&amp;#8217;re selecting a pricing plan during a site&amp;#8217;s sign-up process or just simply selecting to opt-out from a newsletter, you have most likely interacted with some form of checkbox element.&lt;/p&gt;
-&lt;p&gt;What if we could make everyday checkboxes more beautiful &lt;em&gt;and&lt;/em&gt; more intuitive? &lt;em&gt;It&amp;#8217;s easier than you think&lt;/em&gt;. We only need a small amount of CSS and JavaScript to make considerable improvements to your average checkbox UX.&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s get into it.&lt;/p&gt;
-&lt;h2 id=&quot;what-we-are-building&quot;&gt;What we are building&lt;/h2&gt;
-&lt;p&gt;Take a look and play around with the CodePen below to get an idea of what we are going to build. The premise is a simple add-on pricing form which calculates the additional monthly total to the user in real-time.&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/rXWEpy/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;the-structure-html&quot;&gt;The Structure (HTML)&lt;/h2&gt;
-&lt;p&gt;As always, we will start by breaking down the &amp;#8220;bones&amp;#8221; of the HTML structure for this checkbox form. Let&amp;#8217;s take a look at the HTML in it&amp;#8217;s entirety (don&amp;#8217;t worry, it is a lot more simple than it seems at first glance):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;h2&amp;#62;Add-ons&amp;#60;&amp;#47;h2&amp;#62;
-
-&amp;#60;input class=&quot;checkbox-btn&quot; name=&quot;checkbox-collection&quot; id=&quot;checkbox-1&quot; type=&quot;checkbox&quot; value=&quot;49&quot;&amp;#62;
-&amp;#60;label class=&quot;checkbox-label&quot; for=&quot;checkbox-1&quot;&amp;#62;
- &amp;#60;span&amp;#62;
- White-labeled Domain
- &amp;#60;em&amp;#62;Use your own custom domain with SSL security included.&amp;#60;&amp;#47;em&amp;#62;
- &amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;span&amp;#62;$49&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
-&amp;#60;&amp;#47;label&amp;#62;
-
-&amp;#60;input class=&quot;checkbox-btn&quot; name=&quot;checkbox-collection&quot; id=&quot;checkbox-2&quot; type=&quot;checkbox&quot; value=&quot;49&quot;&amp;#62;
-&amp;#60;label class=&quot;checkbox-label&quot; for=&quot;checkbox-2&quot;&amp;#62;
- &amp;#60;span&amp;#62;
- API Access
- &amp;#60;em&amp;#62;Make API calls to perform custom serving and account actions.&amp;#60;&amp;#47;em&amp;#62;
- &amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;span&amp;#62;$49&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
-&amp;#60;&amp;#47;label&amp;#62;
-
-&amp;#60;input class=&quot;checkbox-btn&quot; name=&quot;checkbox-collection&quot; id=&quot;checkbox-3&quot; type=&quot;checkbox&quot; value=&quot;349&quot;&amp;#62;
-&amp;#60;label class=&quot;checkbox-label&quot; for=&quot;checkbox-3&quot;&amp;#62;
- &amp;#60;span&amp;#62;
- Priority Support
- &amp;#60;em&amp;#62;A dedicated account manager to assist your team with ongoing deployments.&amp;#60;&amp;#47;em&amp;#62;
- &amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;span&amp;#62;$349&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
-&amp;#60;&amp;#47;label&amp;#62;
-
-&amp;#60;div class=&quot;total-cost&quot;&amp;#62;
- &amp;#60;h2&amp;#62;Your Plan&amp;#60;&amp;#47;h2&amp;#62;
- &amp;#60;div&amp;#62;
- &amp;#60;span&amp;#62;$&amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;span id=&quot;total-cost-inner&quot;&amp;#62;0&amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;input id=&quot;output&quot; type=&quot;text&quot; value=&quot;0&quot; disabled&amp;#47;&amp;#62;
- &amp;#60;span&amp;#62;&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
+&lt;p&gt;Now you can freely install any version of Ruby that you desire!&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;rvm install ruby-X.X.X
+&lt;/code&gt;&lt;/pre&gt;</description>
+ <link>https://btxx.org/rvm</link>
+ <guid isPermaLink="false">https://btxx.org/rvm</guid>
+ <pubDate>Thu, 16 Mar 2023 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Dear Apple, Please Fix Safari's Default Dark Mode Link Color</title>
+ <description>&lt;h1 id=&quot;dear-apple-please-fix-safaris-default-dark-mode-link-color&quot;&gt;Dear Apple, Please Fix Safari&amp;#8217;s Default Dark Mode Link Color&lt;/h1&gt;
+&lt;p&gt;2022-04-18&lt;/p&gt;
+&lt;p&gt;Supporting dark mode on the modern web falls under the realm of accessibility and should not be ignored. It is important and helps keep the visual flow of your content to match that of your users&amp;#8217; operating system UI. Not to mention, it&amp;#8217;s easy to implement and keep consistent across browsers.&lt;/p&gt;
+&lt;h2 id=&quot;support-dark-mode-with-zero-css&quot;&gt;Support Dark Mode with Zero CSS&lt;/h2&gt;
+&lt;p&gt;A common practice is to include a &lt;code&gt;@media&lt;/code&gt; query via CSS to target styling changes based on whether &lt;code&gt;dark-mode&lt;/code&gt; is active. I tend to believe this is overkill for basic websites. Many developers aren&amp;#8217;t aware of the HTML &lt;code&gt;color-scheme&lt;/code&gt; parameter. (This website itself is using it in place of CSS media queries)&lt;/p&gt;
+&lt;h3 id=&quot;html-color-scheme&quot;&gt;HTML &amp;#8220;color-scheme&amp;#8221;&lt;/h3&gt;
+&lt;p&gt;Adding the following meta tag inside your document&amp;#8217;s &lt;code&gt;head&lt;/code&gt; element, you can enable dark mode instantly with zero configuration:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;meta name=&quot;color-scheme&quot; content=&quot;dark light&quot; &amp;#47;&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;the-checkbox-inputs-labels&quot;&gt;The checkbox inputs &amp;#38; labels&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;!-- #1 --&amp;#62;
-&amp;#60;input class=&quot;checkbox-btn&quot; name=&quot;checkbox-collection&quot; id=&quot;checkbox-1&quot; type=&quot;checkbox&quot; value=&quot;49&quot;&amp;#62;
-
-&amp;#60;!-- #2 --&amp;#62;
-&amp;#60;label class=&quot;checkbox-label&quot; for=&quot;checkbox-1&quot;&amp;#62;
-
- &amp;#60;!-- #2i --&amp;#62;
- &amp;#60;span&amp;#62;
- White-labeled Domain
- &amp;#60;em&amp;#62;Use your own custom domain with SSL security included.&amp;#60;&amp;#47;em&amp;#62;
- &amp;#60;&amp;#47;span&amp;#62;
-
- &amp;#60;!-- #2ii --&amp;#62;
- &amp;#60;span&amp;#62;$49&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
-
-&amp;#60;&amp;#47;label&amp;#62;
+&lt;p&gt;There are minor caveats:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;You should not be specifying any &lt;code&gt;background&lt;/code&gt; styling to your &lt;code&gt;body&lt;/code&gt; or &lt;code&gt;html&lt;/code&gt; elements&lt;/li&gt;
+&lt;li&gt;You should be not specifying any &lt;code&gt;color&lt;/code&gt; styling across any of your readable content (paragraphs, headings, lists, blockquotes)&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;That&amp;#8217;s it! In case you were curious, all major browsers support this color scheme meta tag: &lt;a href=&quot;https://caniuse.com/mdn-html_elements_meta_name_color-scheme&quot;&gt;https:&amp;#47;&amp;#47;caniuse.com&amp;#47;mdn-html&lt;em&gt;elements&lt;/em&gt;meta&lt;em&gt;name&lt;/em&gt;color-scheme&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;but-wait-whats-this-about-safari&quot;&gt;But Wait, What&amp;#8217;s This About Safari?&lt;/h2&gt;
+&lt;p&gt;Even though by adding the color-scheme meta tag we get ourselves good dark mode support across all browsers - Safari has one big oversight: link color. Take a look at the comparison screenshots below (based on one of my older articles). The first one is taken in Firefox, the second in Safari:&lt;/p&gt;
+&lt;p&gt;Luckily for us there is a simple solution using minimal amounts of CSS[^1]:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@supports (color-scheme: dark light) {
+ @media screen and (prefers-color-scheme: dark) {
+ a:link {color: #9e9eff;}
+ a:visited {color: #d0adf0;}
+ a:active {color: red;}
+ }
+}
&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;We are brute-forcing Safari to implement the same color HEX codes used by both Firefox and Chrome browsers. How a horrible accessibility oversight could happen within a company as large as Apple is astounding&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;apple-fix-your-browsers-dark-mode&quot;&gt;Apple: Fix Your Browser&amp;#8217;s Dark Mode&lt;/h2&gt;
+&lt;p&gt;My hope if that even one Safari design or development team member stumbles across this article and raises this ticket to the rest of the team[^2]. It&amp;#8217;s an unbelievably easy fix and would save developers the headache of overriding these things ourselves.&lt;/p&gt;
+&lt;p&gt;Thanks for reading and happy dark mode to you all!&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;&lt;p&gt;This input will be hidden via &lt;code&gt;position:absolute&lt;/code&gt; by default. All checkbox inputs need to share the same &lt;code&gt;name&lt;/code&gt; value and all checkboxes require their our custom &lt;code&gt;id&lt;/code&gt; that will link with the corresponding &lt;code&gt;for&lt;/code&gt; value on the label.&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;This label needs it&amp;#8217;s &lt;code&gt;for&lt;/code&gt; value to correspond with it&amp;#8217;s partnered checkbox.&lt;/p&gt;
+&lt;li&gt;Special thanks to &lt;a href=&quot;https://seirdy.one/&quot;&gt;Seirdy&lt;/a&gt; for suggesting the use of :link and :active support. I recommend you check out his take on &lt;a href=&quot;https://seirdy.one/2020/11/23/website-best-practices.html#dark-themes&quot;&gt;dark mode &amp;#47; theme support&lt;/a&gt;.&lt;/li&gt;
+&lt;li&gt;This has an open ticket through &lt;a href=&quot;https://bugs.webkit.org/show_bug.cgi?id=209851&quot;&gt;Webkit Bugzilla&lt;/a&gt;&lt;/li&gt;
+&lt;/ol&gt;</description>
+ <link>https://btxx.org/safari-default-dark-mode</link>
+ <guid isPermaLink="false">https://btxx.org/safari-default-dark-mode</guid>
+ <pubDate>Mon, 18 Apr 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Enabling Safari Extensions with the macOS Catalina Patcher</title>
+ <description>&lt;h1 id=&quot;enabling-safari-extensions-with-the-macos-catalina-patcher&quot;&gt;Enabling Safari Extensions with the macOS Catalina Patcher&lt;/h1&gt;
+&lt;p&gt;2021-09-23&lt;/p&gt;
+&lt;p&gt;I have an old 2011 MacBook Air that is running the latest version of macOS Catalina thanks to the very wonderful &lt;a href=&quot;http://dosdude1.com/catalina/&quot;&gt;Catalina Patcher&lt;/a&gt; by dosdude1. This project has made it possible for me to run and test some of the latest software from Apple - namely Safari 15.&lt;/p&gt;
+&lt;p&gt;I ran into a small bug early on though – Safari extensions couldn’t be activated via the preferences menu. Luckily I discovered a very simple fix. My hope is this might help others (as small of a demographic that might be) who run into the same issue with the Catalina Patcher.&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;i) The first span holds the title and description information of the add-on&lt;/li&gt;
-&lt;li&gt;ii) The last span holds the cost associated with the current add-on&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h3 id=&quot;the-total-cost-container-output&quot;&gt;The total cost container output&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;!-- #1 --&amp;#62;
-&amp;#60;div class=&quot;total-cost&quot;&amp;#62;
-
- &amp;#60;h2&amp;#62;Your Plan&amp;#60;&amp;#47;h2&amp;#62;
-
- &amp;#60;!-- #2 --&amp;#62;
- &amp;#60;div&amp;#62;
-
- &amp;#60;!-- #2i --&amp;#62;
- &amp;#60;span&amp;#62;$&amp;#60;&amp;#47;span&amp;#62;
-
- &amp;#60;!-- #2ii --&amp;#62;
- &amp;#60;span id=&quot;total-cost-inner&quot;&amp;#62;0&amp;#60;&amp;#47;span&amp;#62;
-
- &amp;#60;!-- #2iii --&amp;#62;
- &amp;#60;input id=&quot;output&quot; type=&quot;text&quot; value=&quot;0&quot; disabled&amp;#47;&amp;#62;
-
- &amp;#60;!-- #2iv --&amp;#62;
- &amp;#60;span&amp;#62;&amp;#47;mo&amp;#60;&amp;#47;span&amp;#62;
-
- &amp;#60;&amp;#47;div&amp;#62;
-
-&amp;#60;&amp;#47;div&amp;#62;
+&lt;li&gt;Close&amp;#47;Quit Safari completely&lt;/li&gt;
+&lt;li&gt;Open the Finder and use the shortcut &lt;code&gt;⌘ Shift G&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Paste the following to navigate to the proper folder: &lt;code&gt;~&amp;#47;Library&amp;#47;Containers&amp;#47;com.apple.Safari&amp;#47;Data&amp;#47;Library&amp;#47;Safari&amp;#47;AppExtensions&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Open the &lt;code&gt;Extensions.plist&lt;/code&gt; in your favourite text editor (I’m a big fan of Panic&amp;#8217;s Nova)&lt;/li&gt;
+&lt;li&gt;Below each extensions &lt;code&gt;&amp;#60;dict&amp;#62;&lt;/code&gt; tag, add the following: &lt;code&gt;&amp;#60;key&amp;#62;Enabled&amp;#60;&amp;#47;key&amp;#62;&amp;#60;true&amp;#47;&amp;#62;&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Save the file and relaunch Safari&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Reference of what it should look like (AdBlock for this example):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;key&amp;#62;org.adblockplus...&amp;#60;&amp;#47;key&amp;#62;
+ &amp;#60;dict&amp;#62;
+ &amp;#60;key&amp;#62;AddedDate&amp;#60;&amp;#47;key&amp;#62;
+ &amp;#60;date&amp;#62;2021-09-23T14:00:47Z&amp;#60;&amp;#47;date&amp;#62;
+ &amp;#60;key&amp;#62;Enabled&amp;#60;&amp;#47;key&amp;#62;
+ &amp;#60;true&amp;#47;&amp;#62;
+ &amp;#60;key&amp;#62;WebsiteAccess&amp;#60;&amp;#47;key&amp;#62;
+ &amp;#60;dict&amp;#62;
+ &amp;#60;key&amp;#62;Allowed Domains&amp;#60;&amp;#47;key&amp;#62;
+ &amp;#60;array&amp;#47;&amp;#62;
+ &amp;#60;key&amp;#62;Has Injected Content&amp;#60;&amp;#47;key&amp;#62;
+ &amp;#60;true&amp;#47;&amp;#62;
+ &amp;#60;key&amp;#62;Level&amp;#60;&amp;#47;key&amp;#62;
+ &amp;#60;string&amp;#62;All&amp;#60;&amp;#47;string&amp;#62;
+ &amp;#60;&amp;#47;dict&amp;#62;
+ &amp;#60;&amp;#47;dict&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;After following those simple steps you should have working extensions in Safari. Have fun on your old, &amp;#8220;unsupported&amp;#8221; Apple devices!&lt;/p&gt;</description>
+ <link>https://btxx.org/safari-extensions-catalina-patcher</link>
+ <guid isPermaLink="false">https://btxx.org/safari-extensions-catalina-patcher</guid>
+ <pubDate>Thu, 23 Sep 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Schools Should Be Using Open Source Software</title>
+ <description>&lt;h1 id=&quot;schools-should-be-using-open-source-software&quot;&gt;Schools Should Be Using Open Source Software&lt;/h1&gt;
+&lt;p&gt;2022-05-30&lt;/p&gt;
+&lt;p&gt;I firmly believe that proprietary software has no business in any school environment. Educational institutions lean heavily on Windows systems in the name of &amp;#8220;security&amp;#8221; or &amp;#8220;easier platform management&amp;#8221;. This approach forces students into using locked-down, closed sourced software applications.&lt;/p&gt;
+&lt;p&gt;Word, Excel, PowerPoint. Why have these become the &amp;#8220;standard&amp;#8221; of text manipulation and processing?&lt;/p&gt;
+&lt;p&gt;Photoshop. Illustrator. Why are these the first applications used for image editing and creation?&lt;/p&gt;
+&lt;p&gt;Schools should only be allowed to use and teach with open source software. Starting students off down the path of vendor lock-in is only beneficial to the companies building those software systems.&lt;/p&gt;
+&lt;h2 id=&quot;the-internet&quot;&gt;The Internet&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;m an older fart, so my elementary school experience only included computers near the tail-end of mid-school. As such, it was forgivable to have students locked-in to using Internet Explorer (which would have been version 4 or 5 during my time) since there wasn&amp;#8217;t a great deal of competition.&lt;/p&gt;
+&lt;p&gt;The major problem is that IE&amp;#47;Edge is still the default and often times ONLY browser available in these classrooms. Again, I believe IT departments use the excuse of &amp;#8220;security&amp;#8221; to keep students on such dated browsers.&lt;/p&gt;
+&lt;p&gt;Firefox, anyone? LibreWolf? Pale Moon?&lt;/p&gt;
+&lt;p&gt;Any of these browsers can be easily managed and secured by school IT departments. It doesn&amp;#8217;t HAVE to be IE&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;reducing-hardware-cost&quot;&gt;Reducing Hardware Cost&lt;/h2&gt;
+&lt;p&gt;By shifting towards a purely &amp;#8220;open&amp;#8221; software stack, schools then have the ability to purchase older, cheaper hardware. Instead of running bloated spyware (Windows) IT departments could opt to use any one of the lightweight Linux distros available.&lt;/p&gt;
+&lt;p&gt;This would reduce e-waste, save school districts significant amounts of money (no need to purchase Windows licenses or beefy hardware to be able to even &lt;em&gt;run&lt;/em&gt; the operating system) all while still maintaining a high level of user&amp;#47;network security.&lt;/p&gt;
+&lt;p&gt;Heck, you could even have a fleet of Raspberry Pi devices as your main student &amp;#8220;computers&amp;#8221;. The cost of replacement also becomes less significant (these are children using these devices remember).&lt;/p&gt;
+&lt;h2 id=&quot;security&quot;&gt;Security&lt;/h2&gt;
+&lt;p&gt;I briefly mentioned user and network security above but figured it deserved its own section. A great deal of push-back comes from stubborn IT professionals[^0] determined to keep things running on Windows - since this is mostly what they are familiar with.&lt;/p&gt;
+&lt;p&gt;My mother-in-law was an &amp;#8220;at-risk&amp;#8221; educator for most of her career. She explained to me that their IT department did a major switch over to use BRAND NEW Apple laptops for all the students just before her retirement. I can&amp;#8217;t even begin to imagine the cost associated with this change. Not to mention the cost of repair for any of these devices when (not if) damaged.&lt;/p&gt;
+&lt;p&gt;Who the hell is making these decisions? Even worse, who is approving them?! The school board had the opportunity to switch away from Windows devices and decided on Apple? Education reform is greatly needed[^1].&lt;/p&gt;
+&lt;h2 id=&quot;what-about-the-job-market&quot;&gt;What About The &amp;#8220;Job Market&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;m not ignorant to the fact that many businesses in the real world require familiarity with some of these more popular closed source applications (Word, Excel). I don&amp;#8217;t have a magic solution to instantly convert all applications used by the companies, but beginning the process in the education system is a solid start. Over time, the standard will &lt;em&gt;become&lt;/em&gt; these open platforms. The initial change just needs to be made.&lt;/p&gt;
+&lt;p&gt;It should also be mentioned that these open source applications carry over a lot of similar functionality to their closed-sourced counterparts. So it isn&amp;#8217;t as if a user with extensive LibreOffice experience would be utterly lost while using Microsoft Word.&lt;/p&gt;
+&lt;h2 id=&quot;looking-under-the-hood&quot;&gt;Looking Under the Hood&lt;/h2&gt;
+&lt;p&gt;Another bonus in using fully open source software is the ability for the students to deep dive into the code itself. This can be a great resource for early programming fundamentals and beginner coding classes. Why not dissect the very program used in your other classes? Here&amp;#8217;s an example of a possible class project: students could build out their own plugins or extensions for an existing application!&lt;/p&gt;
+&lt;h2 id=&quot;suggested-alternatives&quot;&gt;Suggested Alternatives&lt;/h2&gt;
+&lt;p&gt;So what are these &amp;#8220;open source&amp;#8221; alternatives? Check out my simple suggestions below:&lt;/p&gt;
+&lt;p&gt;MS Office Suite ==&amp;#62; LibreOffice Suite[^2]&lt;/p&gt;
+&lt;p&gt;Photoshop ==&amp;#62; GIMP&lt;/p&gt;
+&lt;p&gt;Illustrator ==&amp;#62; Inkscape&lt;/p&gt;
+&lt;p&gt;IE&amp;#47;Edge ==&amp;#62; Firefox[^3]&lt;/p&gt;
+&lt;p&gt;Coding IDE (optional) ===&amp;#62; vim&lt;/p&gt;
+&lt;p&gt;You could easily expand upon these options, but for most elementary school task these are more than enough.&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;&lt;p&gt;A simple &lt;code&gt;div&lt;/code&gt; with a class we can easily target later&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;A &lt;code&gt;div&lt;/code&gt; parent container is needed to house all the total &lt;code&gt;spans&lt;/code&gt; together (more on this when we get into the CSS)&lt;/p&gt;
+&lt;li&gt;Not &lt;em&gt;all&lt;/em&gt; IT workers in the school system fall into this category. But most of the underlining structure prevents them from changing much.&lt;/li&gt;
+&lt;li&gt;At least in my country of Canada. I can&amp;#8217;t speak for others.&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;groff&lt;/code&gt; would be my personal suggestion instead, since it helps introduce children into the structure of basic file formatting and &amp;#8220;programming&amp;#8221;. I&amp;#8217;ll go into greater details about this in another post.&lt;/li&gt;
+&lt;li&gt;As mentioned in the beginning of the post, I&amp;#8217;d even suggest forks of Firefox -&amp;#62; LibreWolf or Pale Moon (if possible)&lt;/li&gt;
+&lt;/ol&gt;</description>
+ <link>https://btxx.org/schools</link>
+ <guid isPermaLink="false">https://btxx.org/schools</guid>
+ <pubDate>Mon, 30 May 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>What Happened to Self-Hosted Blogs?</title>
+ <description>&lt;h1 id=&quot;what-happened-to-self-hosted-blogs&quot;&gt;What Happened to Self-Hosted Blogs?&lt;/h1&gt;
+&lt;p&gt;2018-10-18&lt;/p&gt;
+&lt;p&gt;I remember a time on the internet1 when everyone and their grandmother was running a personal blog. And I mean &lt;em&gt;personal&lt;/em&gt; - not hosted on some side platform or a tacked-on addition to the rest of their website.&lt;/p&gt;
+&lt;p&gt;Nowadays companies and individuals alike use platforms like Medium to host and promote all of their articles, essays and case studies. I understand the draw, and can even list out the positives:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;A large community already exists under the Medium brand&lt;/li&gt;
+&lt;li&gt;It&amp;#8217;s easy to promote your own work and follow others&lt;/li&gt;
+&lt;li&gt;The platform is fairly easy to setup and implement&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;Unfortunately this has had a pretty severe impact on the blogging community as a whole - no one controls their own blogs anymore. I remember when finding a new blog was an interesting and fun experience:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;i) The first &lt;code&gt;span&lt;/code&gt; holds the static currency symbol&lt;/li&gt;
-&lt;li&gt;ii) The second &lt;code&gt;span&lt;/code&gt; is where our updated cost will be injected&lt;/li&gt;
-&lt;li&gt;iii) This input field is required for us to take-in the &lt;code&gt;value&lt;/code&gt; of the associated &lt;code&gt;:checked&lt;/code&gt; inputs and add them together. This current value is then used for the injection into the second &lt;code&gt;span&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;iv) The final &lt;code&gt;span&lt;/code&gt; simply holds the static monthly duration content&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;how did they decide to layout the page design?&lt;/li&gt;
+&lt;li&gt;what typefaces have they decided to use?&lt;/li&gt;
+&lt;li&gt;what back-end are they using?&lt;/li&gt;
+&lt;li&gt;how does it look and feel on mobile?&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;These custom self-hosted blogs inspired other developers and designers to create their own blogs or tweak current ones. In a way it was a small factor in pushing what we could do on the web further and further, as designers engaged in friendly competition trying to one-up each others&amp;#8217; creations.&lt;/p&gt;
+&lt;p&gt;I also believe this inspired people to write better content instead of opting for clickbait garbage in order to get &amp;#8220;featured&amp;#8221; or boosted promotion on the main blogging platform. But I don&amp;#8217;t even think that&amp;#8217;s the worst to come of this mass-migration to a singular blogging platform.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;All2 blogs look identical now.&lt;/strong&gt; I&amp;#8217;m not sure if that was Medium&amp;#8217;s intention, but either way I personally think it&amp;#8217;s horrible. The individual personality of most design and development blogs has been completely stripped away.&lt;/p&gt;
+&lt;p&gt;Maybe I&amp;#8217;m just a salty designer with a narrow-minded, pessimistic view on where our blogging communities seem to be heading - or maybe I just have higher standards.&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;p&gt;1 the design world of the internet
+2 by &amp;#8220;All&amp;#8221; I mean the majority&lt;/p&gt;</description>
+ <link>https://btxx.org/self-hosted-blogs</link>
+ <guid isPermaLink="false">https://btxx.org/self-hosted-blogs</guid>
+ <pubDate>Thu, 18 Oct 2018 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Self-Hosting Fathom Analytics with DigitalOcean</title>
+ <description>&lt;h1 id=&quot;self-hosting-fathom-analytics-with-digitalocean&quot;&gt;Self-Hosting Fathom Analytics with DigitalOcean&lt;/h1&gt;
+&lt;p&gt;2021-02-02&lt;/p&gt;
+&lt;p&gt;Since my previous post walked through the process of setting up Fathom PRO on Netlify, I figured it made sense to create a similar tutorial for the &amp;#8220;Lite&amp;#8221; variation, self-hosted on DigitalOcean.&lt;/p&gt;
+&lt;p&gt;Please note that while I think the PRO version of Fathom Analytics is truly great, for my small, niche blog it seemed overkill compared to self-hosting. Switching over from $14&amp;#47;mo to $5&amp;#47;mo while retaining most of the same functionality was a no-brainer. Choose the option that best suits your needs (or in the case - budget &amp;#38; bandwidth).&lt;/p&gt;
+&lt;p&gt;With that cleared up - let&amp;#8217;s get into it!&lt;/p&gt;
+&lt;h2 id=&quot;prerequisites&quot;&gt;Prerequisites&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;One or more website(s) where you would like to include analytics&lt;/li&gt;
+&lt;li&gt;DigitalOcean account (&lt;strong&gt;this link will give you a $100 credit!&lt;/strong&gt;)&lt;/li&gt;
+&lt;li&gt;Positive attitude and passion for privacy-respecting analytics!&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;All that&amp;#8217;s all we need for the HTML!&lt;/p&gt;
-&lt;h2 id=&quot;the-visuals-css&quot;&gt;The Visuals (CSS)&lt;/h2&gt;
-&lt;p&gt;Again, lets take a look at the entire file before we break it down step-by-step:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.checkbox-label {
- align-items: center;
- background-color: none;
- border: 1px solid lightgrey;
- border-radius: 5px;
- cursor: pointer;
- display: flex;
- font-weight: 600;
- justify-content: space-between;
- margin: 0 auto 10px;
- padding: 20px 20px 20px 70px;
- position: relative;
- transition: .3s ease all;
- width: 100%;
-}
-.checkbox-label span:last-child {
- padding: 0 0 0 20px;
-}
-.checkbox-label:hover {
- background-color: rgba(255,255,255,0.2);
-}
-.checkbox-label:before {
- background-repeat: no-repeat;
- background-position: center;
- background-size: 15px;
- border: 1px solid lightgrey;
- border-radius: 50%;
- content:&amp;#39;&amp;#39;;
- height: 30px;
- left: 20px;
- position: absolute;
- top: calc(50% - 15px);
- transition: .3s ease background-color;
- width: 30px;
-}
-.checkbox-label:hover:before {
- background-image:
- url(&amp;#39;data:image&amp;#47;svg+xml;utf8,&amp;#60;svg xmlns=&quot;http:&amp;#47;&amp;#47;www.w3.org&amp;#47;2000&amp;#47;svg&quot; width=&quot;23.571429&quot; height=&quot;23.571429&quot; viewBox=&quot;0.000000 -47.142857 23.571429 23.571429&quot;&amp;#62;&amp;#60;path fill=&quot;lightgrey&quot; d=&quot;M23.571429 -36.964286L23.571429 -33.750000C23.571429 -33.303571 23.415179 -32.924107 23.102679 -32.611607C22.790179 -32.299107 22.410714 -32.142857 21.964286 -32.142857L15.000000 -32.142857L15.000000 -25.178571C15.000000 -24.732143 14.843750 -24.352679 14.531250 -24.040179C14.218750 -23.727679 13.839286 -23.571429 13.392857 -23.571429L10.178571 -23.571429C9.732143 -23.571429 9.352679 -23.727679 9.040179 -24.040179C8.727679 -24.352679 8.571429 -24.732143 8.571429 -25.178571L8.571429 -32.142857L1.607143 -32.142857C1.160714 -32.142857 0.781250 -32.299107 0.468750 -32.611607C0.156250 -32.924107 0.000000 -33.303571 0.000000 -33.750000L0.000000 -36.964286C0.000000 -37.410714 0.156250 -37.790179 0.468750 -38.102679C0.781250 -38.415179 1.160714 -38.571429 1.607143 -38.571429L8.571429 -38.571429L8.571429 -45.535714C8.571429 -45.982143 8.727679 -46.361607 9.040179 -46.674107C9.352679 -46.986607 9.732143 -47.142857 10.178571 -47.142857L13.392857 -47.142857C13.839286 -47.142857 14.218750 -46.986607 14.531250 -46.674107C14.843750 -46.361607 15.000000 -45.982143 15.000000 -45.535714L15.000000 -38.571429L21.964286 -38.571429C22.410714 -38.571429 22.790179 -38.415179 23.102679 -38.102679C23.415179 -37.790179 23.571429 -37.410714 23.571429 -36.964286ZM23.571429 -36.964286&quot;&amp;#62;&amp;#60;&amp;#47;path&amp;#62;&amp;#60;&amp;#47;svg&amp;#62;&amp;#39;);
-}
-.checkbox-label span {
- -webkit-user-select: none;
- -moz-user-select: none;
- user-select: none;
-}
-.checkbox-label span em {
- display: block;
- font-size: 80%;
- font-style: normal;
- font-weight: 400;
- line-height: 1.2;
-}
-.checkbox-btn {
- position: absolute;
- visibility: hidden;
-}
-.checkbox-btn:checked + .checkbox-label {
- background-color: white;
- border-color: mediumpurple;
- box-shadow: 0 2px 4px rgba(0,0,0,0.05);
-}
-.checkbox-btn:checked + .checkbox-label:before {
- background-color: mediumpurple;
- background-image:
- url(&amp;#39;data:image&amp;#47;svg+xml;utf8,&amp;#60;svg xmlns=&quot;http:&amp;#47;&amp;#47;www.w3.org&amp;#47;2000&amp;#47;svg&quot; width=&quot;25.948661&quot; height=&quot;19.888393&quot; viewBox=&quot;2.025670 -40.011161 25.948661 19.888393&quot;&amp;#62;&amp;#60;path fill=&quot;white&quot; d=&quot;M27.974330 -36.127232C27.974330 -35.680804 27.818080 -35.301339 27.505580 -34.988839L15.385045 -22.868304L13.108259 -20.591518C12.795759 -20.279018 12.416295 -20.122768 11.969866 -20.122768C11.523438 -20.122768 11.143973 -20.279018 10.831473 -20.591518L8.554688 -22.868304L2.494420 -28.928571C2.181920 -29.241071 2.025670 -29.620536 2.025670 -30.066964C2.025670 -30.513393 2.181920 -30.892857 2.494420 -31.205357L4.771205 -33.482143C5.083705 -33.794643 5.463170 -33.950893 5.909598 -33.950893C6.356027 -33.950893 6.735491 -33.794643 7.047991 -33.482143L11.969866 -28.543527L22.952009 -39.542411C23.264509 -39.854911 23.643973 -40.011161 24.090402 -40.011161C24.536830 -40.011161 24.916295 -39.854911 25.228795 -39.542411L27.505580 -37.265625C27.818080 -36.953125 27.974330 -36.573661 27.974330 -36.127232ZM27.974330 -36.127232&quot;&amp;#62;&amp;#60;&amp;#47;path&amp;#62;&amp;#60;&amp;#47;svg&amp;#62;&amp;#39;);
- border-color: mediumpurple;
-}
-
-.total-cost {
- align-items: baseline;
- border-top: 1px solid lightgrey;
- display: flex;
- justify-content: space-between;
- margin-top: 40px;
- padding: 40px 20px 0;
-}
-.total-cost div {
- align-items: baseline;
- display: flex;
-}
-.total-cost span:nth-child(1) {
- align-self: flex-start;
- padding-top: 5px;
-}
-.total-cost span:nth-child(2) {
- font-size: 32px;
- font-weight: bold;
-}
-.total-cost input {
- display: none;
-}
-
-@media(max-width:480px) {
- .checkbox-label {
- align-items: flex-start;
- flex-direction: column;
- flex-wrap: wrap;
- }
- .checkbox-label span:last-child {
- padding: 10px 0 0 0;
- }
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;the-checkbox-label&quot;&gt;The checkbox label&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;*
-This is the main element for each checkbox &quot;container&quot;.
-Inside it houses the title, description and price.
-*&amp;#47;
-.checkbox-label {
- align-items: center;
- background-color: none;
- border: 1px solid lightgrey;
- border-radius: 5px;
- cursor: pointer;
- display: flex;
- font-weight: 600;
- justify-content: space-between;
- margin: 0 auto 10px;
- padding: 20px 20px 20px 70px;
- position: relative;
- transition: .3s ease all;
- width: 100%;
-}
-.checkbox-label:hover {
- background-color: rgba(255,255,255,0.2);
-}
-
-&amp;#47;* Update the label styling when the input is :checked *&amp;#47;
-.checkbox-btn:checked + .checkbox-label {
- background-color: white;
- border-color: mediumpurple;
- box-shadow: 0 2px 4px rgba(0,0,0,0.05);
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;the-custom-checkbox-input&quot;&gt;The custom checkbox input&lt;/h3&gt;
-&lt;p&gt;We need to hide the browser&amp;#8217;s default checkbox input and replace it with our own using pseudo selectors.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Hide browser default input *&amp;#47;
-.checkbox-btn {
- position: absolute;
- visibility: hidden;
-}
-
-&amp;#47;* Our custom input checkbox *&amp;#47;
-.checkbox-label:before {
- background-repeat: no-repeat;
- background-position: center;
- background-size: 15px;
- border: 1px solid lightgrey;
- border-radius: 50%;
- content:&amp;#39;&amp;#39;;
- height: 30px;
- left: 20px;
- position: absolute;
- top: calc(50% - 15px);
- transition: .3s ease background-color;
- width: 30px;
-}
-
-&amp;#47;*
-Here we add a simple &amp;#39;+&amp;#39; icon on hover
-to our custom pseudo element.
-Adding it as an inline SVG gives us the
-ability to fully customize it&amp;#39;s styling
-*&amp;#47;
-.checkbox-label:hover:before {
- background-image:
- url(&amp;#39;data:image&amp;#47;svg+xml;utf8,&amp;#60;svg xmlns=&quot;http:&amp;#47;&amp;#47;www.w3.org&amp;#47;2000&amp;#47;svg&quot; width=&quot;23.571429&quot; height=&quot;23.571429&quot; viewBox=&quot;0.000000 -47.142857 23.571429 23.571429&quot;&amp;#62;&amp;#60;path fill=&quot;lightgrey&quot; d=&quot;M23.571429 -36.964286L23.571429 -33.750000C23.571429 -33.303571 23.415179 -32.924107 23.102679 -32.611607C22.790179 -32.299107 22.410714 -32.142857 21.964286 -32.142857L15.000000 -32.142857L15.000000 -25.178571C15.000000 -24.732143 14.843750 -24.352679 14.531250 -24.040179C14.218750 -23.727679 13.839286 -23.571429 13.392857 -23.571429L10.178571 -23.571429C9.732143 -23.571429 9.352679 -23.727679 9.040179 -24.040179C8.727679 -24.352679 8.571429 -24.732143 8.571429 -25.178571L8.571429 -32.142857L1.607143 -32.142857C1.160714 -32.142857 0.781250 -32.299107 0.468750 -32.611607C0.156250 -32.924107 0.000000 -33.303571 0.000000 -33.750000L0.000000 -36.964286C0.000000 -37.410714 0.156250 -37.790179 0.468750 -38.102679C0.781250 -38.415179 1.160714 -38.571429 1.607143 -38.571429L8.571429 -38.571429L8.571429 -45.535714C8.571429 -45.982143 8.727679 -46.361607 9.040179 -46.674107C9.352679 -46.986607 9.732143 -47.142857 10.178571 -47.142857L13.392857 -47.142857C13.839286 -47.142857 14.218750 -46.986607 14.531250 -46.674107C14.843750 -46.361607 15.000000 -45.982143 15.000000 -45.535714L15.000000 -38.571429L21.964286 -38.571429C22.410714 -38.571429 22.790179 -38.415179 23.102679 -38.102679C23.415179 -37.790179 23.571429 -37.410714 23.571429 -36.964286ZM23.571429 -36.964286&quot;&amp;#62;&amp;#60;&amp;#47;path&amp;#62;&amp;#60;&amp;#47;svg&amp;#62;&amp;#39;);
-}
-
-&amp;#47;*
-When the checkbox input is :checked we need to
-update the inline SVG to use a checkmark symbol
-*&amp;#47;
-.checkbox-btn:checked + .checkbox-label:before {
- background-color: mediumpurple;
- background-image:
- url(&amp;#39;data:image&amp;#47;svg+xml;utf8,&amp;#60;svg xmlns=&quot;http:&amp;#47;&amp;#47;www.w3.org&amp;#47;2000&amp;#47;svg&quot; width=&quot;25.948661&quot; height=&quot;19.888393&quot; viewBox=&quot;2.025670 -40.011161 25.948661 19.888393&quot;&amp;#62;&amp;#60;path fill=&quot;white&quot; d=&quot;M27.974330 -36.127232C27.974330 -35.680804 27.818080 -35.301339 27.505580 -34.988839L15.385045 -22.868304L13.108259 -20.591518C12.795759 -20.279018 12.416295 -20.122768 11.969866 -20.122768C11.523438 -20.122768 11.143973 -20.279018 10.831473 -20.591518L8.554688 -22.868304L2.494420 -28.928571C2.181920 -29.241071 2.025670 -29.620536 2.025670 -30.066964C2.025670 -30.513393 2.181920 -30.892857 2.494420 -31.205357L4.771205 -33.482143C5.083705 -33.794643 5.463170 -33.950893 5.909598 -33.950893C6.356027 -33.950893 6.735491 -33.794643 7.047991 -33.482143L11.969866 -28.543527L22.952009 -39.542411C23.264509 -39.854911 23.643973 -40.011161 24.090402 -40.011161C24.536830 -40.011161 24.916295 -39.854911 25.228795 -39.542411L27.505580 -37.265625C27.818080 -36.953125 27.974330 -36.573661 27.974330 -36.127232ZM27.974330 -36.127232&quot;&amp;#62;&amp;#60;&amp;#47;path&amp;#62;&amp;#60;&amp;#47;svg&amp;#62;&amp;#39;);
- border-color: mediumpurple;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;the-total-cost-container&quot;&gt;The total cost container&lt;/h3&gt;
-&lt;p&gt;We only need some very basic flexbox styling for our bottom &amp;#8220;total&amp;#8221; container:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.total-cost {
- align-items: baseline;
- border-top: 1px solid lightgrey;
- display: flex;
- justify-content: space-between;
- margin-top: 40px;
- padding: 40px 20px 0;
-}
-.total-cost div {
- align-items: baseline;
- display: flex;
-}
-.total-cost span:nth-child(1) {
- align-self: flex-start;
- padding-top: 5px;
-}
-.total-cost span:nth-child(2) {
- font-size: 32px;
- font-weight: bold;
-}
-
-&amp;#47;*
-This input is used in our JavaScript - look at the
-function part of this post to understand why
-*&amp;#47;
-.total-cost input {
- display: none;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;last-but-not-least---mobile&quot;&gt;Last but not least - mobile&lt;/h3&gt;
-&lt;p&gt;Now we just ensure that on smaller devices our checkbox labels render nicely:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@media(max-width:480px) {
- &amp;#47;*
- Avoids the inner label content from squishing together
- and becoming unreadable
- *&amp;#47;
- .checkbox-label {
- align-items: flex-start;
- flex-direction: column;
- flex-wrap: wrap;
- }
- .checkbox-label span:last-child {
- padding: 10px 0 0 0;
- }
-}
+&lt;h2 id=&quot;create-a-droplet&quot;&gt;Create a Droplet&lt;/h2&gt;
+&lt;p&gt;Once your DigitalOcean account is setup, navigate to the Marketplace and search for &lt;code&gt;Fathom Analytics&lt;/code&gt;. Then click the &lt;code&gt;Create Fathom Analytics Droplet&lt;/code&gt;.&lt;/p&gt;
+&lt;p&gt;From here you&amp;#8217;ll be brought to a page that allows you to customize the specifications of your new droplet. If you&amp;#8217;re a smaller traffic site (personal blog, etc) selecting the &lt;strong&gt;$5&amp;#47;month&lt;/strong&gt; Basic Shared CPU option is your best bet.&lt;/p&gt;
+&lt;p&gt;Select the data-center region based on where most of your traffic originates from. I would suggest enabling &lt;code&gt;IPv6&lt;/code&gt; and setting up your authentication via SSH instead of a regular password system. Adding backups is entirely at your own discretion.&lt;/p&gt;
+&lt;p&gt;Once you&amp;#8217;re ready, click &lt;strong&gt;Create Droplet&lt;/strong&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;enter-the-matrix-not-really&quot;&gt;Enter the Matrix (not really)&lt;/h2&gt;
+&lt;p&gt;Once DigitalOcean finishes spinning up your new droplet, open a terminal and connect to it by entering:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;ssh root@YOUR_DROPLET_IP
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it for the styling!&lt;/p&gt;
-&lt;h2 id=&quot;the-function-js&quot;&gt;The Function (JS)&lt;/h2&gt;
-&lt;p&gt;As you can see below, we only need a very minor amount of JavaScript to accomplish our total cost &amp;#8220;injection&amp;#8221;.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;window.onload=function(){
-
-&amp;#47;&amp;#47; Place the default browser checkbox inputs into a variable
-var inputs = document.getElementsByClassName(&amp;#39;checkbox-btn&amp;#39;)
-
-&amp;#47;&amp;#47; Now we loop through the inputs and check if they are
-&amp;#47;&amp;#47; greater than zero. If so, we run our function.
-for (var i=0; i &amp;#60; inputs.length; i++) {
-
- inputs[i].onchange = function() {
-
- &amp;#47;&amp;#47; Create `add` variable which takes the :checked input value
- var add = this.value * (this.checked ? 1 : -1);
-
- &amp;#47;&amp;#47; We grab the current total value on our hidden input field and return it
- &amp;#47;&amp;#47; as a floating point number
- &amp;#47;&amp;#47; (since in this use case it will be a price number based on currency)
- var new_total = parseFloat(document.getElementById(&amp;#39;output&amp;#39;).value);
-
- &amp;#47;&amp;#47; Now we simply add the existing total value with the newly &quot;:checked&quot; input value
- var updated_total = document.getElementById(&amp;#39;output&amp;#39;).value=new_total + add
-
- &amp;#47;&amp;#47; Place the new updated total directly inside the `total-cost-inner` span element
- document.getElementById(&amp;#39;total-cost-inner&amp;#39;).innerHTML = updated_total;
- }
-
-}
-}
+&lt;p&gt;If you setup your login via SSH everything should work as-is. If you went the password route, you&amp;#8217;ll given a prompt to enter it.&lt;/p&gt;
+&lt;p&gt;Now that you&amp;#8217;re connected, Fathom will guide you through a simple configuration setup. It&amp;#8217;s fairly straightforward and painless. Once complete, move to the next step.&lt;/p&gt;
+&lt;h2 id=&quot;domains&quot;&gt;Domains&lt;/h2&gt;
+&lt;p&gt;You&amp;#8217;ll most likely want to host this instance on your own domain or subdomain - instead of connecting directly via the droplet&amp;#8217;s &lt;code&gt;IP&lt;/code&gt;. Head over to your &lt;strong&gt;Networking&lt;/strong&gt; page in the sidebar of DigitalOcean and add your custom domain.&lt;/p&gt;
+&lt;p&gt;Then, click on that newly added domain - we need to add some new records. You&amp;#8217;re going to add two new &lt;code&gt;A&lt;/code&gt; records to this domain:&lt;/p&gt;
+&lt;p&gt;The last thing you need to do is set your nameservers to point to DigitalOcean:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;ns1.digitalocean.com
+ns2.digitalocean.com
+ns3.digitalocean.com
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it! Feel free to play with the demo some more at the top of the post, or check out the &lt;a href=&quot;https://codepen.io/bradleytaunt/pen/rXWEpy&quot;&gt;CodePen source directly&lt;/a&gt;.&lt;/p&gt;</description>
- <link>https://btxx.org/dynamic-checkboxes</link>
- <guid isPermaLink="false">https://btxx.org/dynamic-checkboxes</guid>
- <pubDate>Tue, 30 Jul 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Bringing dwm Shortcuts to GNOME</title>
- <description>&lt;h1 id=&quot;bringing-dwm-shortcuts-to-gnome&quot;&gt;Bringing dwm Shortcuts to GNOME&lt;/h1&gt;
-&lt;p&gt;2023-11-02&lt;/p&gt;
-&lt;p&gt;The &lt;code&gt;dwm&lt;/code&gt; window manager is my standard &amp;#8220;go-to&amp;#8221; for most of my personal laptop environments. For desktops with larger, higher resolution monitors I tend to lean towards using GNOME. The GNOME DE is fairly solid for my own purposes. This article isn&amp;#8217;t going to deep dive into GNOME itself, but instead highlight some minor configuration changes I make to mimic a few &lt;code&gt;dwm&lt;/code&gt; shortcuts.&lt;/p&gt;
-&lt;p&gt;For reference, I&amp;#8217;m running GNOME 45.0 on Ubuntu 23.10&lt;/p&gt;
-&lt;h2 id=&quot;setting-up-fixed-workspaces&quot;&gt;Setting Up Fixed Workspaces&lt;/h2&gt;
-&lt;p&gt;When I use &lt;code&gt;dwm&lt;/code&gt; I tend to have a hard-set amount of &lt;code&gt;tags&lt;/code&gt; to cycle through (normally 4-5). Unfortunately, dynamic rendering is the default for workspaces (ie. tags) in GNOME. For my personal preference I set this setting to &lt;code&gt;fixed&lt;/code&gt;. We can achieve this by opening &lt;strong&gt;Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Multitasking&lt;/strong&gt; and selecting &amp;#8220;Fixed number of workspaces&amp;#8221;.&lt;/p&gt;
-&lt;h2 id=&quot;setting-our-keybindings&quot;&gt;Setting Our Keybindings&lt;/h2&gt;
-&lt;p&gt;Now all that is left is to mimic &lt;code&gt;dwm&lt;/code&gt; keyboard shortcuts, in this case: ALT + $num for switching between workspaces and ALT + SHIFT + $num for moving windows across workspaces. These keyboard shortcuts can be altered under &lt;strong&gt;Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Keyboard&lt;/strong&gt; &amp;#62; &lt;strong&gt;View and Customize Shortcuts&lt;/strong&gt; &amp;#62; &lt;strong&gt;Navigation&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;You&amp;#8217;ll want to make edits to both the &amp;#8220;Switch to workspace &lt;em&gt;n&lt;/em&gt;&amp;#8221; and &amp;#8220;Move window to workspace &lt;em&gt;n&lt;/em&gt;&amp;#8221;. &lt;/p&gt;
-&lt;p&gt;That&amp;#8217;s it. You&amp;#8217;re free to include even more custom keyboard shortcuts (open web browser, lock screen, hibernate, etc.) but this is a solid starting point. Enjoy tweaking GNOME!&lt;/p&gt;</description>
- <link>https://btxx.org/dwm-gnome</link>
- <guid isPermaLink="false">https://btxx.org/dwm-gnome</guid>
- <pubDate>Thu, 02 Nov 2023 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Dynamic Viewports with CSS</title>
- <description>&lt;h1 id=&quot;dynamic-viewports-with-css&quot;&gt;Dynamic Viewports with CSS&lt;/h1&gt;
-&lt;p&gt;2023-02-08&lt;/p&gt;
-&lt;p&gt;I think it&amp;#8217;s safe to assume most web designers and developers are familiar with the standard &lt;code&gt;vh&lt;/code&gt; and &lt;code&gt;vw&lt;/code&gt; parameters in CSS. These parameters are used for setting an element&amp;#8217;s height and&amp;#47;or width, relative to the viewport (v) height (h) or width (w). For example:&lt;/p&gt;
-&lt;p&gt;If I want my &lt;code&gt;.box&lt;/code&gt; element to take up the entire height of a device&amp;#8217;s screen:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.box {
- height: 100vh;
-}
+&lt;p&gt;Give it some time to propagate and you&amp;#8217;ll be in business!&lt;/p&gt;
+&lt;h2 id=&quot;ssl-ftw&quot;&gt;SSL FTW&lt;/h2&gt;
+&lt;p&gt;There is hardly a good reason not to practice security on the web, so setting up your new analytics to be served over &lt;code&gt;HTTPS&lt;/code&gt; is just the smart thing to do. Did I mention that this is completely free as well? See - no excuses.&lt;/p&gt;
+&lt;p&gt;In order to get a free SSL certificate setup, you&amp;#8217;ll need to install &lt;code&gt;certbot&lt;/code&gt;. While connected to your droplet, enter the following:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;sudo apt-get install python-certbot-nginx
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Or I want my &lt;code&gt;.box&lt;/code&gt; element to take up the entire width of a device&amp;#8217;s screen:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.box {
- width: 100vw;
-}
+&lt;p&gt;Once installed, enter the following to setup SSL (remember to swap out the domain with your own):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;certbot --nginx -d your-cool-domain.com
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;These are wonderful options to have - specifically for those of us designing web applications. But there are some &lt;em&gt;minor&lt;/em&gt; issues with &lt;code&gt;vh&lt;/code&gt; and &lt;code&gt;vw&lt;/code&gt;.&lt;/p&gt;
+&lt;p&gt;Follow the steps (it&amp;#8217;s very quick and easy) and you&amp;#8217;ll have &lt;code&gt;HTTPS&lt;/code&gt; setup in a jiffy!&lt;/p&gt;
+&lt;h2 id=&quot;the-final-lap&quot;&gt;The Final Lap&lt;/h2&gt;
+&lt;p&gt;The last thing to do is login to your newly self-hosted Fathom instance, add your site you wish to track, grab the generated tracking code and then slap that badboy on whatever pages you need to track!&lt;/p&gt;
+&lt;p&gt;Congrats! You&amp;#8217;re now officially running your own set of analytics tools. You should be happy about what you&amp;#8217;ve accomplished and proud for respecting your users&amp;#8217; privacy!&lt;/p&gt;</description>
+ <link>https://btxx.org/self-hosting-fathom</link>
+ <guid isPermaLink="false">https://btxx.org/self-hosting-fathom</guid>
+ <pubDate>Tue, 02 Feb 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Setting Up a Free SSL</title>
+ <description>&lt;h1 id=&quot;setting-up-a-free-ssl&quot;&gt;Setting Up a Free SSL&lt;/h1&gt;
+&lt;p&gt;2018-08-07&lt;/p&gt;
+&lt;p&gt;I never had to worry about SSL certificates when I originally hosted my blog through Github Pages, but since switching over to Surge.sh I lost my ability to utilize &lt;code&gt;https&lt;/code&gt; protocol.&lt;/p&gt;
+&lt;p&gt;Luckily, Cloudflare offers a very simple way to implement SSL on your website - and it&amp;#8217;s free!&lt;/p&gt;
+&lt;h3 id=&quot;ssl-in-3-easy-steps&quot;&gt;SSL in 3 easy steps&lt;/h3&gt;
&lt;ol&gt;
-&lt;li&gt;The setting does not take into account device-specific UI (status bars, toolbars, search fields etc.)&lt;/li&gt;
-&lt;li&gt;In some instances these will not play nice with &lt;code&gt;box-sizing&lt;/code&gt; properties&lt;/li&gt;
+&lt;li&gt;You will need to have a Cloudflare account - you can setup one here. Be sure to select the &amp;#8216;Free&amp;#8217; pricing plan (unless you want some extras features)&lt;/li&gt;
+&lt;li&gt;Follow the process on updating your nameservers to the proper Cloudflare servers and wait for your domain to update the changes. (This can take up to 24 hours)&lt;/li&gt;
+&lt;li&gt;From the main Cloudflare dashboard navigate to the Crypto tab. Then under the SSL section, select &amp;#8220;Flexible&amp;#8221; from the dropdown.&lt;/li&gt;
&lt;/ol&gt;
-&lt;h2 id=&quot;have-no-fear-dynamic-viewport-is-here&quot;&gt;Have No Fear, Dynamic Viewport is Here!&lt;/h2&gt;
-&lt;p&gt;Lucky for us there exists an awesome &lt;em&gt;new-ish&lt;/em&gt; CSS API called dynamic viewport-percentage units: &lt;code&gt;dvh&lt;/code&gt; &amp;#38; &lt;code&gt;dvw&lt;/code&gt;. They are defined as follows:&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;The dynamic viewport-percentage units (dv) are defined with respect to the dynamic viewport size: the viewport sized with dynamic consideration of any UA interfaces that are dynamically expanded and retracted. This allows authors to size content such that it can exactly fit within the viewport whether or not such interfaces are present.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;So our examples above would translate into:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.box {
- height: 100dvh;
- width: 100dvw;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;what-about-browser-support&quot;&gt;What About Browser Support?&lt;/h3&gt;
-&lt;p&gt;&lt;a href=&quot;https://caniuse.com/mdn-api_css_dvh&quot;&gt;Can I Use Stats&lt;/a&gt; &amp;#47; ~67.17% coverage.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Even though the caniuse page states that Firefox 109+ and iOS Safari 16.3 do not support &lt;code&gt;dvh&lt;/code&gt;, in my experiments they do. I&amp;#8217;m not sure what testing was done for those two browsers, so YMMV.&lt;/p&gt;
-&lt;p&gt;If you want to play it safe, use dynamic viewports with standard &amp;#8220;traditional&amp;#8221; viewports as backup. That way you support all use cases while still taking advantage of newer CSS properties.&lt;/p&gt;</description>
- <link>https://btxx.org/dv</link>
- <guid isPermaLink="false">https://btxx.org/dv</guid>
- <pubDate>Wed, 08 Feb 2023 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Don't Make a Blog, Make a Brain Dump</title>
- <description>&lt;h1 id=&quot;dont-make-a-blog-make-a-brain-dump&quot;&gt;Don&amp;#8217;t Make a Blog, Make a Brain Dump&lt;/h1&gt;
-&lt;p&gt;2022-09-10&lt;/p&gt;
-&lt;p&gt;Not enough people have personal blogs. This is a point brought up by many of those passionate about the &amp;#8220;golden age&amp;#8221; in the timeline of the modern internet. A time when websites were more like a small collection of winding side-streets and flea markets. Today, it&amp;#8217;s all shopping malls, hostile pedestrians, and corporate buildings. People have their one or two &amp;#8220;outlets&amp;#8221; that make it easier for them to meet-up with friends and family. There&amp;#8217;s no need for these people to have their &amp;#8220;own thing&amp;#8221;. Someone else has already built it for them. They&amp;#8217;re become fully adjusted to their internet slums.&lt;/p&gt;
-&lt;p&gt;Okay, sorry about the terrible metaphors. But you get my point. &lt;em&gt;Convenience breeds laziness&lt;/em&gt;. &lt;em&gt;Laziness breeds mediocrity&lt;/em&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;whats-a-brain-dump&quot;&gt;What&amp;#8217;s a &amp;#8220;Brain Dump&amp;#8221;?&lt;/h2&gt;
-&lt;p&gt;A brain dump is a better way to look at sharing your own experiences or thoughts on the web. The term &amp;#8220;blog&amp;#8221; has a lot of baggage connected to it, so newcomers are quickly scared away by the concept. Or even worse - they decide to only share themselves on locked-in, walled gardens&lt;sup id=&quot;fnref1&quot;&gt;&lt;a href=&quot;#fn1&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;
-&lt;p&gt;Another problem arises when you finally &lt;em&gt;do&lt;/em&gt; convince someone to start &amp;#8220;blogging&amp;#8221; online; self-doubt.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;&amp;#8220;What could I possibly have to share?&amp;#8221;&lt;/li&gt;
-&lt;li&gt;&amp;#8220;What if everyone &lt;em&gt;hates&lt;/em&gt; what I post?&amp;#8221;&lt;/li&gt;
-&lt;li&gt;&amp;#8220;What if my content sucks?&amp;#8221;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Just dump it. Who cares. It&amp;#8217;s the internet after all, so who are you trying to impress? The point is that your sharing your own experiences that are unique to you as an individual. Posting something that you think is pointless or mundane might be extremely helpful or, at the very least, entertaining for someone else.&lt;/p&gt;
-&lt;p&gt;Write up what you did over the weekend, a new recipe you tried out, review a movie&amp;#47;book or video game you enjoyed, list step-by-step instructions on how you installed a new appliance in your house - anything! Just &lt;em&gt;write&lt;/em&gt; and be part of what made the internet fun, exciting and personal again.&lt;/p&gt;
-&lt;p&gt;But let me reiterate: &lt;strong&gt;stay away from walled gardens!&lt;/strong&gt; Control your own space on the internet. Be the master of your own brain dump! Say &amp;#8220;screw you&amp;#8221; to app algorithms and &lt;em&gt;trending&lt;/em&gt; bullshit. Just be you.&lt;/p&gt;
-&lt;p&gt;Convinced? Awesome. Now let&amp;#8217;s get into setting things up. I&amp;#8217;ll break these down into two separate categories: one for those with limited web&amp;#47;software experience, and one for those wanting a little more control.&lt;/p&gt;
-&lt;h3 id=&quot;no-code-solutions&quot;&gt;No Code Solutions&lt;/h3&gt;
-&lt;p&gt;Before I get into my suggested options in this &amp;#8220;no-code&amp;#8221; category, I would like to mention why WordPress &lt;em&gt;is not&lt;/em&gt; listed here. Personally, I think WordPress gets in the way of users wanting to &amp;#8220;just blog&amp;#8221;. There once was an era where blogging was WP&amp;#8217;s main focus, but that is now a time long forgotten. It tries to do too much. The back-end is a cluttered mess. Initial learning curves for security, plugins and themes is far too great for newbies. Gutenberg - dear God.&lt;/p&gt;
-&lt;p&gt;That&amp;#8217;s not even mentioning hosting costs, installation, backups, etc. My personal take - just steer clear. This option is better suited in the &lt;em&gt;second&lt;/em&gt; category for those with more web experience.&lt;/p&gt;
-&lt;p&gt;With that out of the way, let&amp;#8217;s see my top selections for &amp;#8220;no-code&amp;#8221;:&lt;/p&gt;
-&lt;h4 id=&quot;blot&quot;&gt;Blot&lt;/h4&gt;
-&lt;p&gt;&lt;a href=&quot;https://blot.im/&quot;&gt;Blot&lt;/a&gt; has been around for quite a while. You simply post to a third-party service like Dropbox, Google Drive or a &lt;code&gt;git&lt;/code&gt; repo and Blot takes care of the rest.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;$4&amp;#47;month (includes custom domain use, hosting &amp;#38; support)&lt;/li&gt;
-&lt;li&gt;Easy sign up&lt;/li&gt;
-&lt;li&gt;Multiple themes to choose from&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h4 id=&quot;bear-blog&quot;&gt;Bear Blog&lt;/h4&gt;
-&lt;p&gt;&lt;a href=&quot;https://bearblog.dev/&quot;&gt;Bear Blog&lt;/a&gt; is an excellent platform that focuses on content and not much else.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Free ($25&amp;#47;year for extras)&lt;/li&gt;
-&lt;li&gt;Easy sign up&lt;/li&gt;
-&lt;li&gt;No trackers, no javascript, no ads&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h4 id=&quot;mataroa-blog&quot;&gt;Mataroa Blog&lt;/h4&gt;
-&lt;p&gt;&lt;a href=&quot;https://mataroa.blog/&quot;&gt;Mataroa&lt;/a&gt; follows in the same vein as Bear Blog, a simple blogging platform focused on &lt;em&gt;writing&lt;/em&gt;.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Free (with optional $9&amp;#47;year for premium features)&lt;/li&gt;
-&lt;li&gt;No ads, no tracking&lt;/li&gt;
-&lt;li&gt;Open source&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h4 id=&quot;write.as&quot;&gt;Write.as&lt;/h4&gt;
-&lt;p&gt;&lt;a href=&quot;https://write.as/&quot;&gt;Write.as&lt;/a&gt; is another good option for those looking to just get words down and shared on the internet.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Free with optional paid tiers (custom domains, themes etc.)&lt;/li&gt;
-&lt;li&gt;Option to self host via &lt;a href=&quot;https://writefreely.org/&quot;&gt;Write Freely&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h3 id=&quot;build-your-own&quot;&gt;Build Your Own&lt;/h3&gt;
-&lt;p&gt;If you&amp;#8217;re deep into this section of the post, I think it&amp;#8217;s safe to assume your technical level is fairly &lt;em&gt;decent&lt;/em&gt;. So, I won&amp;#8217;t be into great detail with the options below:&lt;/p&gt;
-&lt;h4 id=&quot;sourcehut-pages&quot;&gt;SourceHut Pages&lt;/h4&gt;
-&lt;p&gt;This very website you&amp;#8217;re reading is built and run off of &lt;a href=&quot;https://srht.site/&quot;&gt;SourceHut Pages&lt;/a&gt;. I highly recommend the service.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;$3+&amp;#47;month (depending on what you &lt;em&gt;choose&lt;/em&gt; to pay)&lt;/li&gt;
-&lt;li&gt;No javascript, no trackers&lt;/li&gt;
-&lt;li&gt;Customizable build settings&lt;/li&gt;
-&lt;li&gt;Support open source software!&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;&lt;strong&gt;Sidenote:&lt;/strong&gt; If you&amp;#8217;re interested in setting up a SSG (such as Jekyll or Hugo) through SourceHut, feel free to &lt;a href=&quot;https://git.sr.ht/~bt/bt.ht&quot;&gt;fork this very website as a starting point&lt;/a&gt;. I also wrote up how to publish&amp;#47;build a Jekyll site on SourceHut in a &lt;a href=&quot;/srht&quot;&gt;separate post&lt;/a&gt; if you wish to see all the nitty-gritty details.&lt;/p&gt;
-&lt;h4 id=&quot;wordpress&quot;&gt;WordPress&lt;/h4&gt;
-&lt;p&gt;As I mentioned above, I find this platform can be a little overkill for a simple &amp;#8220;blog&amp;#8221; (or in this case, a brain dump). I&amp;#8217;m aware that many devs might already be familiar with WP, so it makes sense to include it here.&lt;/p&gt;
+&lt;h3 id=&quot;enjoy-your-newly-secure-site&quot;&gt;Enjoy your newly secure site&lt;/h3&gt;
+&lt;p&gt;That&amp;#8217;s it! Give it a bit of time and soon your website will support &lt;code&gt;https&lt;/code&gt; and best of all it costs you nothing!&lt;/p&gt;
+&lt;p&gt;I suggest checking out the other interesting features Cloudflare offers while your playing with the dashboard as well. They have a lot of impressive options that can really improve the overall performance of your site &amp;#47; web app.&lt;/p&gt;</description>
+ <link>https://btxx.org/setting-up-free-ssl</link>
+ <guid isPermaLink="false">https://btxx.org/setting-up-free-ssl</guid>
+ <pubDate>Tue, 07 Aug 2018 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Blogging for 7 Years</title>
+ <description>&lt;h1 id=&quot;blogging-for-7-years&quot;&gt;Blogging for 7 Years&lt;/h1&gt;
+&lt;p&gt;2023-06-24&lt;/p&gt;
+&lt;p&gt;My &lt;a href=&quot;/aui&quot;&gt;first public article&lt;/a&gt; was posted on June 28th 2016. That was &lt;em&gt;seven&lt;/em&gt; years ago.&lt;/p&gt;
+&lt;p&gt;In that time, quite a lot has changed in my life both personally and professionally. So, I figured it would be interesting to reflect on these years and document it for my own personal records. My hope is that this is something I could start doing every 5 or 10 years (if I can keep going that long!). This way, my blog also serves as a &amp;#8220;time capsule&amp;#8221; or museum of the past&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;fun-facts&quot;&gt;Fun Facts&lt;/h2&gt;
+&lt;p&gt;&lt;strong&gt;This Blog&lt;/strong&gt;:&lt;/p&gt;
+&lt;p&gt;I originally started blogging on &lt;code&gt;bradleytaunt.com&lt;/code&gt; using WordPress, but since then I have changed both my main domain and blog infrastructure multiple times. At a glance I have used:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Free options (custom domains, premium features will require some form of paid hosting)&lt;/li&gt;
-&lt;li&gt;Room for growth with extensive plugins &amp;#47; themes&lt;/li&gt;
-&lt;li&gt;Huge amount of documentation and resources&lt;/li&gt;
+&lt;li&gt;Jekyll&lt;/li&gt;
+&lt;li&gt;Hugo&lt;/li&gt;
+&lt;li&gt;Blot&lt;/li&gt;
+&lt;li&gt;Static HTML&amp;#47;CSS&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://phpetite.bt.ht&quot;&gt;PHPetite&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://shinobi.bt.ht&quot;&gt;Shinobi&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://pblog.bt.ht&quot;&gt;pblog&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://barf.bt.ht&quot;&gt;barf&lt;/a&gt; &lt;em&gt;Currently using!&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;h4 id=&quot;static-html-and-a-web-host&quot;&gt;Static HTML and a Web Host&lt;/h4&gt;
-&lt;p&gt;Why not, right? Using a service like &lt;a href=&quot;https://www.nearlyfreespeech.net/&quot;&gt;NearlyFreeSpeech&lt;/a&gt; or spinning up a cheap VPS with &lt;a href=&quot;https://www.digitalocean.com/&quot;&gt;DigitalOcean&lt;/a&gt; and then dropping static HTML files on your server is pretty straightforward. You don&amp;#8217;t need any fancy scripts or syncing tools - an FTP client and a text editor is more than enough!&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Personal:&lt;/strong&gt;&lt;/p&gt;
+&lt;p&gt;As with anyone over time, the personal side of my life has seen the biggest &lt;em&gt;updates&lt;/em&gt;:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;$2-5&amp;#47;month (depending on service provider)&lt;/li&gt;
-&lt;li&gt;&amp;#8220;Drag-and-drop&amp;#8221; workflow&lt;/li&gt;
-&lt;li&gt;Easily portable to other hosting services in the future&lt;/li&gt;
+&lt;li&gt;Married the love of my life (after knowing each other for ~14 years!)&lt;/li&gt;
+&lt;li&gt;Moved out into rural Ontario for some peace and quiet&lt;/li&gt;
+&lt;li&gt;Had three wonderful kids with said wife (two boys and a girl)&lt;/li&gt;
+&lt;li&gt;Started noticing grey sprinkles in my stubble (I guess I can officially call myself a &amp;#8220;grey beard&amp;#8221;?)&lt;/li&gt;
&lt;/ul&gt;
-&lt;h4 id=&quot;github-pages&quot;&gt;GitHub Pages&lt;/h4&gt;
-&lt;p&gt;Since GitHub is used by almost every developer across the globe, it makes sense to mention their free website hosting option via &lt;a href=&quot;https://pages.github.com/&quot;&gt;GitHub Pages&lt;/a&gt;. I personally &lt;em&gt;don&amp;#8217;t&lt;/em&gt; advise newcomers to use this platform, but you&amp;#8217;re free to do as you like!&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Professionally:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&amp;#8220;Free&amp;#8221;&lt;/li&gt;
-&lt;li&gt;Fairly limited (no static site plugin support)&lt;/li&gt;
+&lt;li&gt;Pivoted heavily into UX research and design for a handful of years (after working mostly with web front-ends)&lt;/li&gt;
+&lt;li&gt;Recently switched back into a more fullstack development role to challenge myself and learn more&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h2&gt;
-&lt;p&gt;There are many services in both categories above that I did not include. That&amp;#8217;s okay. I didn&amp;#8217;t exclude them because I &lt;em&gt;dislike&lt;/em&gt; them but instead focused on what &lt;em&gt;I believe&lt;/em&gt; to be the easiest solutions for both camps (techies and non-techies).&lt;/p&gt;
-&lt;p&gt;At the end of the day - who cares what you choose. Just choose &lt;em&gt;something&lt;/em&gt;. Stop looking at it as &amp;#8220;blogging&amp;#8221; or trying to &amp;#8220;capture an audience&amp;#8221;. Dump your brain&amp;#8217;s thoughts out into the internet, on your &lt;em&gt;own piece&lt;/em&gt; of the internet, and help make the world wide web as fun as it used to be!&lt;/p&gt;
-&lt;div class=&quot;footnotes&quot;&gt;
+&lt;h2 id=&quot;nothing-special&quot;&gt;Nothing Special&lt;/h2&gt;
+&lt;p&gt;This post isn&amp;#8217;t anything ground-breaking but for me it&amp;#8217;s nice to reflect on the time passed and remember how much can change in such little time. Hopefully I&amp;#8217;ll be right back here in another 7 years and maybe you&amp;#8217;ll still be reading along with me!&lt;/p&gt;</description>
+ <link>https://btxx.org/seven-years</link>
+ <guid isPermaLink="false">https://btxx.org/seven-years</guid>
+ <pubDate>Sat, 24 Jun 2023 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Sharing The Things We Use</title>
+ <description>&lt;h1 id=&quot;sharing-the-things-we-use&quot;&gt;Sharing The Things We Use&lt;/h1&gt;
+&lt;p&gt;2021-07-24&lt;/p&gt;
+&lt;p&gt;I always love stumbling across personal websites that include some form of a &amp;#8220;uses&amp;#8221; page. A place where the author lists out all the tools they use on a regular basis - whether it be hardware, software or something else entirely. It allows readers to get a slightly more personal peek into the daily work-life of that author and maybe even provides better context for &lt;em&gt;how&lt;/em&gt; they work.&lt;/p&gt;
+&lt;p&gt;Since I realized how much I enjoy reading other people&amp;#8217;s &lt;em&gt;uses&lt;/em&gt; pages, I&amp;#8217;ve decided to finally publish my own! My list of hardware and software is fairly boring and predictable for a designer&amp;#47;developer - but sharing is caring! My hope is that even one personal out in the great-wide web can find something useful (pun intended!) or least inspiring about my personal setup.&lt;/p&gt;
+&lt;p&gt;Fell free to check it out: &lt;a href=&quot;/uses&quot;&gt;The Things I Use&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;PS. I plan to add a desktop picture of my complete setup once I find the time!&lt;/em&gt;&lt;/p&gt;</description>
+ <link>https://btxx.org/sharing-the-things-we-use</link>
+ <guid isPermaLink="false">https://btxx.org/sharing-the-things-we-use</guid>
+ <pubDate>Sat, 24 Jul 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>This Site is Now a Shinobi Website</title>
+ <description>&lt;h1 id=&quot;this-site-is-now-a-shinobi-website&quot;&gt;This Site is Now a Shinobi Website&lt;/h1&gt;
+&lt;p&gt;2022-05-13&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Update 2023&lt;/strong&gt;: this website is now built with &lt;a href=&quot;https://barf.bt.ht&quot;&gt;barf&lt;/a&gt;&lt;/p&gt;
&lt;hr/&gt;
-&lt;ol&gt;
-
-&lt;li id=&quot;fn1&quot;&gt;
-&lt;p&gt;Facebook, Twitter, Reddit, Instagram, etc. These should be completely avoided for the sake of both your health and your internet freedom.&amp;#160;&lt;a href=&quot;#fnref1&quot; rev=&quot;footnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
-&lt;/li&gt;
-
-&lt;/ol&gt;
-&lt;/div&gt;</description>
- <link>https://btxx.org/dump</link>
- <guid isPermaLink="false">https://btxx.org/dump</guid>
- <pubDate>Sat, 10 Sep 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Two Weeks with the DuckDuckGo Browser</title>
- <description>&lt;h1 id=&quot;two-weeks-with-the-duckduckgo-browser&quot;&gt;Two Weeks with the DuckDuckGo Browser&lt;/h1&gt;
-&lt;p&gt;2022-05-17&lt;/p&gt;
-&lt;p&gt;After using the beta apps for the new DuckDuckGo browser for both macOS and iOS, I have returned to Safari.&lt;/p&gt;
-&lt;p&gt;This switch back doesn&amp;#8217;t mean that these browsers are &lt;em&gt;bad&lt;/em&gt; by any means. Both browsers are decently fine for casual users. Unfortunately, they aren&amp;#8217;t ready for prime time &amp;#8220;power&amp;#8221; users. I&amp;#8217;m happy to see another company jump into the browser market (and one that is using WebKit instead of another Chromium clone) but for my day-to-day needs it doesn&amp;#8217;t cut it.&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s break things down:&lt;/p&gt;
-&lt;h2 id=&quot;the-good&quot;&gt;The Good&lt;/h2&gt;
-&lt;ul&gt;
-&lt;li&gt;Clean UI with a mix between Chrome and Safari&lt;/li&gt;
-&lt;li&gt;The &amp;#8220;Leave No Trace&amp;#8221; fire button to purge data, cache and cookies&lt;/li&gt;
-&lt;li&gt;Feels snappy and responsive&lt;/li&gt;
-&lt;li&gt;Based on WebKit NOT Chromium&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;the-not-so-good&quot;&gt;The Not So Good&lt;/h2&gt;
-&lt;ul&gt;
-&lt;li&gt;No sync options between systems (that I could find)&lt;/li&gt;
-&lt;li&gt;No extension support&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Now you might look at this list and notice there are more listed points set under the &lt;code&gt;Good&lt;/code&gt; category. Keep in mind that quantity does not always equal quality. The main negative of not allowing user extensions cannot be overstated. I think that when building a browser in this $CURRENT_YEAR it&amp;#8217;s imperative to allow for total user control. Don&amp;#8217;t wall things off. Don&amp;#8217;t &lt;em&gt;assume&lt;/em&gt; you know best for your users.&lt;/p&gt;
-&lt;p&gt;This is a huge issue since a good majority of friends, family and coworkers I talk with use more elaborate ad-blocking. One of the first things I tested with the DuckDuckGo browser on desktop was to watch a YouTube video. I was immediately slammed with multiple ads - both in video form and as banner pop-ups.&lt;/p&gt;
-&lt;p&gt;Overlooks like this shouldn&amp;#8217;t happen. This is UX 101.&lt;/p&gt;
-&lt;p&gt;Another obvious overlook is history and account syncing across devices. Unless I missed something obvious, I could not figure out how to seamlessly sync content from my macOS browser to my iOS one. Again, this function greatly improves the experience of jumping between desktop and mobile clients. Don&amp;#8217;t make me think![^1]&lt;/p&gt;
+&lt;p&gt;My personal website is now an RSS-focused blog, generated from a collection of plain text files.&lt;/p&gt;
+&lt;p&gt;But before we get into greater details about the switch, let me first introduce the concept of a &amp;#8220;shinobi website&amp;#8221;.&lt;/p&gt;
+&lt;h2 id=&quot;the-shinobi-website-project&quot;&gt;The Shinobi Website Project&lt;/h2&gt;
+&lt;p&gt;Instead of repeating myself in this post, feel free to read up about the project at the official site:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://shinobi.bt.ht&quot;&gt;https:&amp;#47;&amp;#47;shinobi.bt.ht&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;To summarize: by using a simple &lt;code&gt;shell&lt;/code&gt; script I&amp;#8217;m able to render all my plain text files (which is now how I solely write my articles) into a structured RSS 2.0 &lt;code&gt;xml&lt;/code&gt; file. Subscribers can now consume my posts directly in their RSS reader of choice without the need to directly visit the article&amp;#8217;s URL.[^0]&lt;/p&gt;
+&lt;h2 id=&quot;why-the-change&quot;&gt;Why the Change?&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;m a hardcore minimalist at heart and have a tendency to make my own personal projects &lt;em&gt;leaner&lt;/em&gt; all the time. I also have been trying my best to find the most refined writing workflow to keep myself posting consistently (and hopefully keeping the quality high). My first iteration towards this step was switching over to hand-coding everything via HTML &amp;#38; CSS[^1]. That worked well - for a very brief time.&lt;/p&gt;
+&lt;p&gt;After recently launching the Shinobi project, I kept toying with the idea of switching my personal website over to use the same format. There was a heavy internal debate about ditching HTML in favour of plain text. What kind of impact would this have on both my site and audience? Would people be pissed about yet &lt;em&gt;another&lt;/em&gt; radical change?&lt;/p&gt;
+&lt;p&gt;After sleeping on it for a couple nights, I decide to say screw it. This is my personal website and it should ultimately reflect who I am and what I prefer. Dwelling too long on the opinion of others (as much as I respect any of you kind enough to follow along) can lead to decisions that negatively impact ones own well being.&lt;/p&gt;
+&lt;p&gt;So here we are. Blogging in plain text.&lt;/p&gt;
+&lt;h2 id=&quot;avoiding-link-rot&quot;&gt;Avoiding Link-Rot&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;ve manually added this blog post to my original &lt;code&gt;feed.xml&lt;/code&gt;, in order to help inform those of you following that feed of this change. But this will be the last entry of that feed.&lt;/p&gt;
+&lt;p&gt;If you decide not to re-sub, I completely understand and thank you for your time! Those of you choosing to still follow along: welcome aboard a new adventure!&lt;/p&gt;
+&lt;p&gt;As for the older HTML-based articles, no worries. They will remain on this site under the standard &lt;code&gt;blog&lt;/code&gt; directory so that old links don&amp;#8217;t break or cause conflicts. You can find that directory here:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://tdarb.org/feeds/posts.xml&quot;&gt;https:&amp;#47;&amp;#47;tdarb.org&amp;#47;feeds&amp;#47;posts.xml&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;tutorials-and-demos&quot;&gt;Tutorials and Demos&lt;/h2&gt;
+&lt;p&gt;I will still be writing up detailed tutorials and interactive demos going forward - no need to worry. My plan is to link directly to a collaborative coding site like CodePen, etc. I haven&amp;#8217;t decided on the best option yet (want to keep things as easy for my readers as possible) so only time will tell what my decision will be.&lt;/p&gt;
+&lt;p&gt;Feel free to comment below if you have any suggestions! Preferably one that respects user privacy and advocates for a more open web.&lt;/p&gt;
+&lt;h2 id=&quot;speaking-of-comments&quot;&gt;Speaking of Comments&amp;#8230;&lt;/h2&gt;
+&lt;p&gt;Since the old commenting system[^2] required me to manually add each comment individually, I assumed I would just do the same here. Then I got a hack-y idea. What if I used a mailing list linked through this website&amp;#8217;s sourcehut project?&lt;/p&gt;
+&lt;p&gt;It might not be the most user friendly or sustainable but I think it could be an interesting experiment at the very least!&lt;/p&gt;
+&lt;p&gt;Now each new article will have a link (which I will generate manually) that users can email directly to in order to share their comments. I have no idea how spam will work with this concept. This whole idea could blow up in my face. Only time will tell.&lt;/p&gt;
&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
-&lt;p&gt;I appreciate the effort from the DuckDuckGo team. I&amp;#8217;m certain this project will get better over time, as they are listening closely to user feedback during the beta. With future improvements I could see myself giving things a second chance.&lt;/p&gt;
-&lt;p&gt;As it stands now, this feels like something that should be an extension[^2], not a standalone browser.&lt;/p&gt;
+&lt;p&gt;This workflow is clean and simple. It allows me to open a blank text file and instantly start writing. Once I&amp;#8217;m happy with it, I run a simple shell command to update the RSS feed and sync it with my web server. Local testing is dead simple too since everything is set as &lt;code&gt;.txt&lt;/code&gt;.&lt;/p&gt;
+&lt;p&gt;Some may like the concept of reading my new articles in their RSS reader, others might hate it. I&amp;#8217;ve learned over the years that you can&amp;#8217;t please everyone.&lt;/p&gt;
+&lt;p&gt;Thanks for taking the time to read my jumbled thoughts.&lt;/p&gt;
&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;&lt;a href=&quot;https://sensible.com/dont-make-me-think/&quot;&gt;https:&amp;#47;&amp;#47;sensible.com&amp;#47;dont-make-me-think&amp;#47;&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Technically this already exists as a Safari extension &lt;a href=&quot;https://apps.apple.com/us/app/duckduckgo-privacy-essentials/id1482920575?mt=12&quot;&gt;here&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Users can &lt;em&gt;of course&lt;/em&gt; still visit the individual article &lt;code&gt;.txt&lt;/code&gt; files in their browser, if they so wish.&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://tdarb.org/blog/my-static-blog-publishing-setup.html&quot;&gt;https:&amp;#47;&amp;#47;tdarb.org&amp;#47;blog&amp;#47;my-static-blog-publishing-setup.html&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://tdarb.org/blog/poormans-comment-system.html&quot;&gt;https:&amp;#47;&amp;#47;tdarb.org&amp;#47;blog&amp;#47;poormans-comment-system.html&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description>
- <link>https://btxx.org/duckduckno</link>
- <guid isPermaLink="false">https://btxx.org/duckduckno</guid>
- <pubDate>Tue, 17 May 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Designers Need Thicker Skin</title>
- <description>&lt;h1 id=&quot;designers-need-thicker-skin&quot;&gt;Designers Need Thicker Skin&lt;/h1&gt;
-&lt;p&gt;2017-07-10&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m not normally one to comment or even really care about &amp;#8220;drama&amp;#8221; within our design industry. Opinions are just that and should just be consumed at face value. But this week I was moderately annoyed with a subset of designers in design-land.&lt;/p&gt;
-&lt;h3 id=&quot;critique-the-critics&quot;&gt;Critique the critics&lt;/h3&gt;
-&lt;p&gt;Designer&amp;#47;design critic Eli Schiff tweeted his thoughts about the newly released promo video from Framer showcasing their new gradient feature. See the initial tweet below:&lt;/p&gt;
-&lt;p&gt;Let me begin by saying my views on this comment: I don&amp;#8217;t care. I honestly don’t feel strongly one way or the other about them making a video promo for gradients. Could it have just been a simple text tweet? Sure. Does it really matter that they decided to make a video for it? Not at all.&lt;/p&gt;
-&lt;p&gt;But this isn’t the problem.&lt;/p&gt;
-&lt;p&gt;Other designers took to Twitter and started attacking Eli, not even as a design critic but as a person. This was ugly to see. What happened to civil discussion and giving the other side a chance to say their piece? Calling to &amp;#8220;ban him&amp;#8221; from sites such as DesignerNews or suggesting to unfollow him on Twitter is unbelievably childish - in an industry that we tote as &amp;#8220;accepting of everyone&amp;#8221; no less.&lt;/p&gt;
-&lt;p&gt;That&amp;#8217;s all I&amp;#8217;m going to say because I don’t want to spend too much time on this foolishness, but honestly designers - get some thicker skin.&lt;/p&gt;
-&lt;p&gt;Yeesh.&lt;/p&gt;</description>
- <link>https://btxx.org/dts</link>
- <guid isPermaLink="false">https://btxx.org/dts</guid>
- <pubDate>Mon, 10 Jul 2017 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Disabling Comments in WordPress</title>
- <description>&lt;h1 id=&quot;disabling-comments-in-wordpress&quot;&gt;Disabling Comments in WordPress&lt;/h1&gt;
-&lt;p&gt;2020-12-28&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;I seem to come across a decent amount of clients&lt;/em&gt; and users online that have a difficult time knowing how to disable comments for both future &lt;em&gt;and&lt;/em&gt; previous blog posts. It isn’t the easiest for both use cases, so let’s break it down.&lt;/p&gt;
-&lt;h2 id=&quot;back-to-the-future&quot;&gt;Back to the future&lt;/h2&gt;
-&lt;p&gt;Disabling comments on all &lt;em&gt;future&lt;/em&gt; blog posts is fairly straightforward:&lt;/p&gt;
-&lt;h2 id=&quot;but-what-about-old-posts&quot;&gt;But what about old posts?&lt;/h2&gt;
-&lt;p&gt;Have no fear - “Bulk Actions” are here to save the day! In order to retroactively disable comments on older posts, do the following:&lt;/p&gt;
-&lt;p&gt;I hope this article saves others any headaches in the future. WordPress itself could certainly make this more streamlined, but for now what we have works. Happy (not) commenting!&lt;/p&gt;</description>
- <link>https://btxx.org/disabling-comments-in-wordpress</link>
- <guid isPermaLink="false">https://btxx.org/disabling-comments-in-wordpress</guid>
- <pubDate>Mon, 28 Dec 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Unsolicited Design Review - Dropbox</title>
- <description>&lt;h1 id=&quot;unsolicited-design-review---dropbox&quot;&gt;Unsolicited Design Review - Dropbox&lt;/h1&gt;
-&lt;p&gt;2017-10-10&lt;/p&gt;
-&lt;p&gt;Earlier last week the design team at Dropbox unveiled their new branding &amp;#47; design system for the company as a whole. If you haven&amp;#8217;t seen the updated design yet, you can do so here: &lt;a href=&quot;https://dropbox.design/&quot;&gt;dropbox.design&lt;/a&gt; (Take your time, I can wait).&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/dropbox-logo_djnecj_c_scale,w_1400.webp&quot; alt=&quot;Dropbox Logo&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;I won&amp;#8217;t mince words when I say I believe this is a huge step backwards for their brand. Not only is it uninspired and broken, but it also shows how our industry is plagued with a need to redesign things just for the sake of redesigning them.&lt;/p&gt;
-&lt;p&gt;So without anymore fluff - let&amp;#8217;s get into it. Please leave your bias at the door.&lt;/p&gt;
-&lt;h2 id=&quot;purpose&quot;&gt;Purpose&lt;/h2&gt;
-&lt;p&gt;It&amp;#8217;s good to try and understand the motive or problem that a company is trying to solve when redesigning something as fundamental as core branding, but this is where the first red flag appears for Dropbox. There is no real problem to solve.&lt;/p&gt;
-&lt;p&gt;On the marketing site promoting the new design system, the Dropbox team doesn&amp;#8217;t mention a single problem that this branding redesign is meant to fix. Were users confused by the previous system? Is there data showing large drop-off and a lack of conversion directly connected with the design system itself? All they state is they needed a change with zero reasoning as to why.&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;We realized our brand needs to change&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;As I stated at the beginning of this review - it&amp;#8217;s a redesign for the sake of a redesign. Sometimes this can be acceptable if done correctly, but this is not the case for Dropbox.&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;Our new brand system shows that Dropbox isn&amp;#8217;t just a place to store your files - &lt;strong&gt;it&amp;#8217;s a living workspace that brings teams and ideas together&lt;/strong&gt;&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;Let&amp;#8217;s stop right there. &amp;#8220;A place to store your files&amp;#8221; is literally 99% of what Dropbox does. I get that they want to be involved in more than that but Dropbox &lt;em&gt;is&lt;/em&gt; a cloud storage service. Why is there a desperate need to shift away from that?&lt;/p&gt;
-&lt;p&gt;There isn&amp;#8217;t much else to speak of in terms of &amp;#8216;purpose&amp;#8217; regarding the redesign since there doesn&amp;#8217;t seem to be one. Let&amp;#8217;s move on.&lt;/p&gt;
-&lt;h2 id=&quot;design-principles&quot;&gt;Design Principles&lt;/h2&gt;
-&lt;p&gt;I hate to be that guy who bases design on a written list of principles, but when it works it works. Dieter Rams states it best:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Good design is innovative&lt;/li&gt;
-&lt;li&gt;Good design makes a product useful&lt;/li&gt;
-&lt;li&gt;Good design is aesthetic&lt;/li&gt;
-&lt;li&gt;Good design makes a product understandable&lt;/li&gt;
-&lt;li&gt;Good design is unobtrusive&lt;/li&gt;
-&lt;li&gt;Good design is honest&lt;/li&gt;
-&lt;li&gt;Good design is long-lasting&lt;/li&gt;
-&lt;li&gt;Good design is thorough down to the last detail&lt;/li&gt;
-&lt;li&gt;Good design is environmentally friendly&lt;/li&gt;
-&lt;li&gt;Good design is as little design as possible&lt;/li&gt;
-&lt;/ol&gt;
-&lt;hr/&gt;
-&lt;ol&gt;
-&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is innovative&lt;/strong&gt;. There is zero innovation in this re-brand, it&amp;#8217;s simply following the trend of quirky &amp;#47; brutal &amp;#47; modern flat elitism that is currently sweeping the industry. It&amp;#8217;s a fad and will be out-of-date rather quickly.&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design makes a product useful&lt;/strong&gt;. Looking through their reasoning and explanations I can see no boost or improvement to the usefulness of the product. Not to repeat myself, but without any supporting data as to &lt;em&gt;why&lt;/em&gt; this change was made we have nothing to base it off of.&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is aesthetic&lt;/strong&gt;. See #1.&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design makes a product understandable&lt;/strong&gt;. Were customers not able to understand the Dropbox brand prior to this update? Were users misinformed about what the product could do for them? The previous design did a wonderful job of getting out of the way and showing the user exactly what they needed &amp;#47; wanted.&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is unobtrusive&lt;/strong&gt;. Talk about going backwards on this one. Original system was clean, readable and friendly to new users. Their current system uses an illegible typeface, colors with terrible contrast and a lack of support for the visually impaired, crude illustrations that give no explanation as to what they represent (more on that later), and a lack of browser support &amp;#47; performance issues.&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is honest&lt;/strong&gt;. Dropbox still maintains this principle. They don&amp;#8217;t over-promise or outright lie about who and what they are as a product.&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is long-lasting&lt;/strong&gt;. See #1 &amp;#38; #3 again.&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is thorough down to the last detail&lt;/strong&gt;. The fact that even their marketing site crashes latest Firefox, lags on Safari for iOS and stutters in Chrome on desktop shows the lack of performance testing that was done. Not to mention the complete disregard for those with visual impairments with their color palette, typeface and contrast selections.&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is environmentally friendly&lt;/strong&gt;. Doesn&amp;#8217;t really apply here.&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;&lt;strong&gt;Good design is as little design as possible&lt;/strong&gt;. This new brand system is incredibly over-designed.&lt;/p&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;blockquote&gt;
-&lt;p&gt;Our users&amp;#8230;tell us they feel overwhelmed and distracted during the workday&amp;#8230;we want to change this, by building products and a brand that help people focus on meaningful work, instead of busywork.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;Then maybe your design system should get out of the way. To me, this seems like you want your design to take center-stage over the user&amp;#8217;s content.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Remember: a great design system should go completely unnoticed.&lt;/strong&gt;&lt;/p&gt;
-&lt;h2 id=&quot;accessibility&quot;&gt;Accessibility&lt;/h2&gt;
-&lt;p&gt;Any persons with visual impairments need not apply. This design system is not built for you - seek shelter elsewhere.&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;With 259 fonts, our new typeface Sharp Grotesk gives us lots of versatility, allowing us to &amp;#8220;speak&amp;#8221; in a variety of tones.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/dropbox-fonts_vthivw_c_scale,w_1122.webp&quot; alt=&quot;DropBox fonts&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;Not a single one of these typeface styles is initially readable&amp;#8230;&lt;/p&gt;
-&lt;p&gt;The typeface they have chosen looks terrible at any view-port size and readability takes a backseat. I can&amp;#8217;t help but feel this falls into the &amp;#8220;let&amp;#8217;s be trendy&amp;#8221; category and ends up sacrificing almost all good usability practices for gimmicky type.&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;Our users run the gamut from business professionals to scientists and creative types. Most of these folks tell us they feel overwhelmed and distracted during the workday, and that this is one of the biggest barriers to creating work they’re proud of.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;Irony at it&amp;#8217;s finest. &amp;#8220;Our users tell us that they hate being distracted and overwhelmed, so we&amp;#8217;ve decided to use headache inducing color palettes, crude illustrations, a barely legible typeface, and some of the most visually loud photography throughout our system&amp;#8221;. I hate coming off as mean-spirited - but this is some elaborate joke, right?&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/dropbox-logos-color_fcogaj_c_scale,w_1400.webp&quot; alt=&quot;DropBox color logos&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;After running it through a color contrast accessibility checker:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/dropbox-contrast_plkfxb_c_scale,w_1400.webp&quot; alt=&quot;DropBox contrast&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;Multiple accessibility failures&amp;#8230;&lt;/p&gt;
-&lt;p&gt;Next we have the child-like &amp;#8216;scribble&amp;#8217; illustrations. Now don&amp;#8217;t get me wrong, I love seeing different illustration styles and I actively use &amp;#8216;sketch &amp;#47; scribble&amp;#8217; artwork myself, but I don&amp;#8217;t believe this is the best fit for a brand like Dropbox. These cartoon visuals conflict with the business enterprise service Dropbox should be trying to convey.&lt;/p&gt;
-&lt;p&gt;Another issue with these illustrations is their usage. Look at the image below and ask yourself if you would correlate it with an error page if no accompanying text was present.&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/dropbox-404_bovayg_c_scale,w_758.webp&quot; alt=&quot;DropBox 404 page design&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;What does this have to do with a 404 error page?&lt;/p&gt;
-&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
-&lt;p&gt;I could go into even deeper analysis (including the oversimplification of their box logo, etc.) but I believe I&amp;#8217;ve spent enough time defending my initial reaction as well as my thoughts after a week of soak time. In my opinion this redesign was completely unnecessary. I think this was a problem of too many designers with too much time without a proper project to channel all that talent.&lt;/p&gt;
-&lt;p&gt;Unfortunately because they decided to just follow the current trend and design with a lack of purpose, I see Dropbox launching another redesign within the next year once this current design fad dies. My only hope is that the next brand system sets out to solve an actual problem, instead of just trying to be trendy.&lt;/p&gt;</description>
- <link>https://btxx.org/design-review-dropbox</link>
- <guid isPermaLink="false">https://btxx.org/design-review-dropbox</guid>
- <pubDate>Tue, 10 Oct 2017 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Modern Improvements for Default Browser Styles</title>
- <description>&lt;h1 id=&quot;modern-improvements-for-default-browser-styles&quot;&gt;Modern Improvements for Default Browser Styles&lt;/h1&gt;
-&lt;p&gt;2021-11-09&lt;/p&gt;
-&lt;p&gt;This website &lt;em&gt;almost&lt;/em&gt; exclusively uses the browser&amp;#8217;s (whichever one that might be) default styling to render it&amp;#8217;s HTML. I firmly believe, and have &lt;a href=&quot;/css-js-mistake/&quot;&gt;stated in a previous post&lt;/a&gt;, that the default HTML styling across all browsers is a thing of beauty. &amp;#8220;Consistent and boring&amp;#8221; is how I tend to refer to default browser styles - and I mean that in a &lt;em&gt;good way&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;But that doesn&amp;#8217;t mean some minor, modern improvements couldn&amp;#8217;t be made&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;boosting-margins-and-increasing-font-size&quot;&gt;Boosting Margins and Increasing Font Size&lt;/h2&gt;
-&lt;p&gt;A little extra breathing room for a website&amp;#8217;s content never hurts. Browser defaults set the inner content too close to the main window borders, creating mild eye strain to focus on the far edges of the screen when reading. Pair this with a typeface set too small and you&amp;#8217;ve got a recipe for disaster (in terms of user experience and accessibility). Luckily for us, adding two basic CSS properties fixes all of our readability woes. All that is required is a simple boost to the existing &lt;code&gt;margin&lt;/code&gt; property set on the &lt;code&gt;body&lt;/code&gt; element (I personally lean towards a very specific &lt;code&gt;1.5em&lt;/code&gt;) and overriding the default &lt;code&gt;font-size&lt;/code&gt; to &lt;code&gt;18px&lt;/code&gt;[^1]:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;body {
- font-size:18px;
- margin:1.5em;
-}
+ <link>https://btxx.org/shinobi-website</link>
+ <guid isPermaLink="false">https://btxx.org/shinobi-website</guid>
+ <pubDate>Fri, 13 May 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Shiny, Animated CSS Buttons</title>
+ <description>&lt;h1 id=&quot;shiny-animated-css-buttons&quot;&gt;Shiny, Animated CSS Buttons&lt;/h1&gt;
+&lt;p&gt;2021-04-27&lt;/p&gt;
+&lt;p&gt;Everyone can appreciate fancy, animated buttons - but often times they come with a performance cost: &lt;em&gt;JavaScript&lt;/em&gt;. Luckily for us, we can create our very own shiny, animated buttons with pure CSS.&lt;/p&gt;
+&lt;h2 id=&quot;the-demo&quot;&gt;The Demo&lt;/h2&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/shiny-buttons.png&quot; alt=&quot;Four buttons that shine when hovered&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/oNBQevj&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;p&gt;Nothing fancy going on here, just a set of &lt;code&gt;ahref&lt;/code&gt; elements with specific &lt;code&gt;button&lt;/code&gt; classes added:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;a href=&quot;#&quot; class=&quot;button green&quot;&amp;#62;&amp;#60;span&amp;#62;Green Button&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+&amp;#60;a href=&quot;#&quot; class=&quot;button blue&quot;&amp;#62;&amp;#60;span&amp;#62;Blue Button&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+&amp;#60;a href=&quot;#&quot; class=&quot;button orange&quot;&amp;#62;&amp;#60;span&amp;#62;Orange Button&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+&amp;#60;a href=&quot;#&quot; class=&quot;button purple&quot;&amp;#62;&amp;#60;span&amp;#62;Purple Button&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;There is one &lt;em&gt;small&lt;/em&gt; caveat with setting the &lt;code&gt;font-size&lt;/code&gt; across the whole &lt;code&gt;body&lt;/code&gt; element: code elements set in &lt;code&gt;monospace&lt;/code&gt;. They will stand out larger than the other fonts found in the document (due to variations in different typeface heights, spacing etc.) so we will need to target these elements specifically:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;code {
- font-size:14px;
- &amp;#47;* Word wrap is optional if you plan to have long inline code snippets *&amp;#47;
- word-wrap:break-word;
+&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
+&lt;p&gt;First we set the default base styling for all the buttons. We also place the inner text into &lt;code&gt;span&lt;/code&gt; elements (I will explain why in a little bit):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.button {
+ background: white;
+ border: 1px solid #a5b1c2;
+ border-radius: 6px;
+ box-shadow: 0 4px 8px rgba(0,0,0,0.1);
+ color: #111111;
+ display: inline-block;
+ margin: 1rem auto;
+ min-width: 180px;
+ overflow: hidden;
+ padding: 15px 30px;
+ position: relative;
+ text-align: center;
+ text-decoration: none;
+ transition: .3s ease-in-out all;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;code-pre-tags&quot;&gt;Code &amp;#38; Pre Tags&lt;/h2&gt;
-&lt;p&gt;Since we&amp;#8217;ve mentioned &lt;code&gt;code&lt;/code&gt; elements, let&amp;#8217;s fix those as well. The existing styling for inline code snippets and larger pre-formatted text sections leave a lot to be desired. They don&amp;#8217;t provide any means to wrap their inner content or make use of &lt;code&gt;overflow&lt;/code&gt; properties to avoid vertically scrolling on smaller device screens. Sharing code examples becomes quite a pain when your webpage&amp;#8217;s flow and layout is broken just by including them. Browsers could fix this easily enough by defaulting to:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;pre {
- overflow:auto;
+.button span {
+ position: relative;
+ z-index: 2;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;basic-dark-mode-support&quot;&gt;Basic Dark Mode Support&lt;/h2&gt;
-&lt;p&gt;Barebones styling in current web browsers have no sane defaults[^2] for system-level dark mode. What a huge letdown. This is where the most &amp;#8220;drastic&amp;#8221; changes will be implemented with our browser default updates. We will need the browser to change the main &lt;code&gt;background-color&lt;/code&gt;, along with resetting both the text and anchor link &lt;code&gt;color&lt;/code&gt; for improved accessibility. Browser defaults for anchor link color in &amp;#8220;light mode&amp;#8221; are blue&amp;#47;purple - so I&amp;#8217;ve opted towards using gold, orange and orangered in dark mode respectively:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Dark mode *&amp;#47;
-@media (prefers-color-scheme: dark) {
- @media not print {
- html {background:#0e0e0e;color:#e1e1e1; }
- a {color: gold;}
- a:visited {color: orange;}
- a:hover,a:focus{color: orangered;}
- }
+&lt;p&gt;Now we need to create our &lt;em&gt;shiny&lt;/em&gt; element that will pass across the button on &lt;code&gt;hover&lt;/code&gt; or &lt;code&gt;focus&lt;/code&gt;. For this object we will use the &lt;code&gt;before&lt;/code&gt; pseudo element:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.button:before {
+ background: linear-gradient(transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
+ content:&amp;#39;&amp;#39;;
+ height: 200%;
+ position: absolute;
+ right: calc(100% + 20px);
+ top: -55%;
+ transform: rotate(-70deg);
+ transition: .6s ease-in-out right;
+ width: 80px;
+ z-index: 0;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That is probably the most streamlined dark mode on the web&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;the-reading-length-debate&quot;&gt;The &amp;#8220;Reading Length&amp;#8221; Debate&lt;/h2&gt;
-&lt;p&gt;Proper reading length tends to be quite the point of contention on the web. Hell, even I&amp;#8217;ve &lt;a href=&quot;/character-unit/&quot;&gt;written about it quite a bit&lt;/a&gt; in the past (and many of my side projects follow that standard). The main problem I have with this is lack of &lt;em&gt;user control&lt;/em&gt;. I don&amp;#8217;t think the browser (or designers for that matter) should determine the best reading length for my own personal reading preferences. UX testing and group feedback has (somewhat) agreed upon 66-75 characters per line to be the most optimal reading experience. That is good to know. I &lt;em&gt;still&lt;/em&gt; believe it should come down to user preference.&lt;/p&gt;
-&lt;p&gt;Do you want to know an incredible feature built into browsers? &lt;em&gt;Window resizing&lt;/em&gt;. Abandon the idea that you &amp;#8220;know better&amp;#8221; than your users and give them the power to adjust as they see fit. The web was meant to be personal and flexible.&lt;/p&gt;
-&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
-&lt;p&gt;There isn&amp;#8217;t much else to say, really. I think these tiny tweaks would greatly improve the default browser experience and maybe even convince others to just &lt;em&gt;use&lt;/em&gt; these defaults instead of falling down the CSS rabbit hole (as fun as that might be sometimes). For easier convenience, I&amp;#8217;ll leave the full set of CSS changes below:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;body {
- font-size:18px;
- margin:1.5em;
-}
-code {
- font-size:14px;
-}
-pre {
- overflow:auto;
+&lt;p&gt;Next, we tell the &lt;code&gt;before&lt;/code&gt; element to swipe across the main &lt;code&gt;.button&lt;/code&gt; parent element when the user hovers or focuses on it. Remember placing our inner content into a &lt;code&gt;span&lt;/code&gt; element? That insures that our shiny&amp;#47;swipe element doesn&amp;#8217;t position itself &lt;em&gt;over&lt;/em&gt; the text, but instead flows under it:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.button:hover:before {
+ right: -100%;
}
-@media (prefers-color-scheme: dark) {
- @media not print {
- html {background:#0e0e0e;color:#e1e1e1; }
- a {color: gold;}
- a:visited {color: orange;}
- a:hover,a:focus{color: orangered;}
- }
+&amp;#47;* Extra visual styling for buttons on hover - optional *&amp;#47;
+.button:hover, button:focus {
+ box-shadow: 0 8px 12px rgba(0,0,0,0.1), inset 0 10px 30px rgba(255,255,255,0.3), inset 0 2px 2px rgba(255,255,255,0.2);
+ color: white;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;p&gt;All that&amp;#8217;s left is adding some visual flare to each individual button - in this case background-color and border-color:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.button.green:hover, button.green:focus { background: #20bf6b; border-color: #20bf6b; }
+.button.blue:hover, button.blue:focus { background: #0984e3; border-color: #0984e3; }
+.button.orange:hover, button.orange:focus { background: #ff793f; border-color: #ff793f; }
+.button.purple:hover, button.purple:focus { background: #6c5ce7; border-color: #6c5ce7; }
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;browser-support&quot;&gt;Browser Support&lt;/h2&gt;
+&lt;p&gt;These buttons work across all browsers flawlessly. See the details &lt;a href=&quot;https://caniuse.com/css-gencontent&quot;&gt;on the caniuse report itself&lt;/a&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;the-live-codepen&quot;&gt;The Live CodePen&lt;/h2&gt;
+&lt;p&gt;You can find the live demo embedded at the top of this post, or &lt;a href=&quot;https://codepen.io/bradleytaunt/pen/oNBQevj&quot;&gt;directly on CodePen here&lt;/a&gt;.&lt;/p&gt;</description>
+ <link>https://btxx.org/shiny-css-buttons</link>
+ <guid isPermaLink="false">https://btxx.org/shiny-css-buttons</guid>
+ <pubDate>Tue, 27 Apr 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Simple Accessibility</title>
+ <description>&lt;h1 id=&quot;simple-accessibility&quot;&gt;Simple Accessibility&lt;/h1&gt;
+&lt;p&gt;2018-09-07&lt;/p&gt;
+&lt;p&gt;Implementing proper accessibility practices can seem a little daunting at first, but there are a few basic standards you can introduce into your project work-flow that are fairly straightforward:&lt;/p&gt;
+&lt;h2 id=&quot;basic-design&quot;&gt;Basic design&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;&lt;code&gt;18px&lt;/code&gt; seems to be the perfect sweet spot between &amp;#8220;almost too large, yet not small enough to strain my eyes&amp;#8221;&lt;/li&gt;
-&lt;li&gt;At the time of this article&amp;#8217;s publish date&lt;/li&gt;
-&lt;/ol&gt;</description>
- <link>https://btxx.org/default-html-style-updates</link>
- <guid isPermaLink="false">https://btxx.org/default-html-style-updates</guid>
- <pubDate>Tue, 09 Nov 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Very Basic Form Styling</title>
- <description>&lt;h1 id=&quot;very-basic-form-styling&quot;&gt;Very Basic Form Styling&lt;/h1&gt;
-&lt;p&gt;2019-11-13&lt;/p&gt;
-&lt;p&gt;Web forms can be great - I&amp;#8217;m borderline obsessed with them. I love tinkering with pre-existing logins &amp;#47; sign up pages and I&amp;#8217;ve also open sourced a minimal CSS form-styling plugin: &lt;a href=&quot;https://normform.netlify.com/&quot;&gt;Normform&lt;/a&gt;. While simple CSS plugins like these can be helpful, I often feel like we are over-engineering our web forms. I&amp;#8217;m certainly guilty of it.&lt;/p&gt;
-&lt;p&gt;That&amp;#8217;s not to say developers should just use default browser styling for their forms and call it a day - that is far from ideal. Just pull-back on adding so much styling garbage to the forms themselves.&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s check out an embedded demo below to see what some bare-bones form styling could look like:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/oNwzvMa&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;This form isn&amp;#8217;t going to win any design awards or blow anyone away with its creativity. That&amp;#8217;s okay - because it gets the job done. Users understand it&amp;#8217;s a form and items are broken down into digestible chunks. Mission accomplished, right?&lt;/p&gt;
-&lt;h2 id=&quot;breaking-the-form-down&quot;&gt;Breaking the form down&lt;/h2&gt;
-&lt;p&gt;Let&amp;#8217;s take a look at the HTML of the entire form:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;form action=&quot;&quot;&amp;#62;
- &amp;#60;fieldset&amp;#62;
- &amp;#60;legend&amp;#62;Personal Details&amp;#60;&amp;#47;legend&amp;#62;
- &amp;#60;label for=&quot;username&quot;&amp;#62;Desired Username:&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;input type=&quot;text&quot; id=&quot;username&quot;&amp;#62;
- &amp;#60;label for=&quot;name&quot;&amp;#62;Full Name:&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;input type=&quot;text&quot; id=&quot;name&quot;&amp;#62;
- &amp;#60;label for=&quot;email&quot;&amp;#62;Email Address:&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;input type=&quot;email&quot; id=&quot;email&quot;&amp;#62;
- &amp;#60;label for=&quot;date&quot;&amp;#62;Date of Birth:&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;input type=&quot;date&quot; id=&quot;date&quot;&amp;#62;
- &amp;#60;&amp;#47;fieldset&amp;#62;
- &amp;#60;br&amp;#62;
- &amp;#60;fieldset&amp;#62;
- &amp;#60;legend&amp;#62;Contact Details&amp;#60;&amp;#47;legend&amp;#62;
- &amp;#60;label for=&quot;address&quot;&amp;#62;Home Address:&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;input type=&quot;text&quot; id=&quot;address&quot;&amp;#62;
- &amp;#60;label for=&quot;postal&quot;&amp;#62;Postal Code:&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;input type=&quot;text&quot; id=&quot;postal&quot;&amp;#62;
- &amp;#60;label for=&quot;phone&quot;&amp;#62;Phone Number:&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;input type=&quot;tel&quot; id=&quot;phone&quot;&amp;#62;
- &amp;#60;&amp;#47;fieldset&amp;#62;
- &amp;#60;br&amp;#62;
- &amp;#60;fieldset&amp;#62;
- &amp;#60;legend&amp;#62;Select an Option&amp;#60;&amp;#47;legend&amp;#62;
- &amp;#60;label for=&quot;radio-1&quot;&amp;#62;
- &amp;#60;input type=&quot;radio&quot; id=&quot;radio-1&quot; name=&quot;radio-choice&quot;&amp;#62;
- The option is pretty nice
- &amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;label for=&quot;radio-2&quot;&amp;#62;
- &amp;#60;input type=&quot;radio&quot; id=&quot;radio-2&quot; name=&quot;radio-choice&quot;&amp;#62;
- This option is a little bit better
- &amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;label for=&quot;radio-3&quot;&amp;#62;
- &amp;#60;input type=&quot;radio&quot; id=&quot;radio-3&quot; name=&quot;radio-choice&quot;&amp;#62;
- This option is the best
- &amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;&amp;#47;fieldset&amp;#62;
- &amp;#60;br&amp;#62;
- &amp;#60;fieldset&amp;#62;
- &amp;#60;legend&amp;#62;Notifications&amp;#60;&amp;#47;legend&amp;#62;
- &amp;#60;label for=&quot;checkbox-1&quot;&amp;#62;
- &amp;#60;input type=&quot;checkbox&quot; id=&quot;checkbox-1&quot;&amp;#62;
- I would like to receive email notifications
- &amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;label for=&quot;checkbox-2&quot;&amp;#62;
- &amp;#60;input type=&quot;checkbox&quot; id=&quot;checkbox-2&quot;&amp;#62;
- I would like to subscribe to the weekly newsletter
- &amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;&amp;#47;fieldset&amp;#62;
- &amp;#60;br&amp;#62;
- &amp;#60;input type=&quot;reset&quot; value=&quot;Reset&quot;&amp;#62;
- &amp;#60;input type=&quot;submit&quot; value=&quot;Submit&quot;&amp;#62;
-&amp;#60;&amp;#47;form&amp;#62;
+&lt;li&gt;Test that your project has the proper contrast color settings between type, backgrounds, icons etc.&lt;/li&gt;
+&lt;li&gt;Only use &amp;#8220;fancy&amp;#8221; grid-ordering for minor layout design - avoid rearranging important content via CSS&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;content&quot;&gt;Content&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;Use proper HTML structures (aside, header, main, footer elements as needed)&lt;/li&gt;
+&lt;li&gt;Make use of the &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-label_attribute&quot;&gt;aria-label attribute&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Ensure your website&amp;#47;app can be navigated completely (and properly) with only a keyboard&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;images&quot;&gt;Images&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;Avoid using CSS backgrounds for content images (should only be used for patterns, layout design etc.)&lt;/li&gt;
+&lt;li&gt;Ensure proper &lt;code&gt;alt&lt;/code&gt; attributes are provided on all images&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;It isn&amp;#8217;t much - but follow these basics and you&amp;#8217;ll be one step closer to providing better accessibility to your users.&lt;/p&gt;</description>
+ <link>https://btxx.org/simple-accessibility</link>
+ <guid isPermaLink="false">https://btxx.org/simple-accessibility</guid>
+ <pubDate>Fri, 07 Sep 2018 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Simple Does Not Mean Ugly</title>
+ <description>&lt;h1 id=&quot;simple-does-not-mean-ugly&quot;&gt;Simple Does Not Mean Ugly&lt;/h1&gt;
+&lt;p&gt;2019-03-26&lt;/p&gt;
+&lt;p&gt;I see new blog posts popping up now and again advocating for designers to keep their products as simple as possible - and I couldn&amp;#8217;t agree more.&lt;/p&gt;
+&lt;p&gt;A lot of designers tend to think they need to reinvent the wheel when it comes to UI concepts that are standard defaults and expected by most users. Not only does this add extra work for your design and development cycles, but also increases the potential of frustration for your users when they are using your product.&lt;/p&gt;
+&lt;p&gt;Your job as a designer is to focus on the user experience journey and understand what those users &lt;em&gt;expect&lt;/em&gt; to happen - not what &lt;em&gt;you want&lt;/em&gt; to happen. This is a very delicate balance of design “give and take”, hence why simple designs always seem to work best.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;But simple does not mean “ugly”&lt;/strong&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;ugly-simple&quot;&gt;Ugly Simple&lt;/h2&gt;
+&lt;p&gt;Anyone who has read some of my opinion pieces on here in regards to UI know that I have a profound distaste for the overused “flat design” trend. Many designers consider this trend a clean and “simple” approach to most UI conventions - which is complete nonsense to most professionals in the industry (at least those not drinking the kool-aid).&lt;/p&gt;
+&lt;p&gt;Using the term “simple” in the context of UI is currently quite damaging to modern application and product development. Designers take these definitions too literally, leading to stripped down interfaces with little to no usability for their end-users.&lt;/p&gt;
+&lt;p&gt;Cap Watkins wrote a post back in 2014 where he explained his admiration for &lt;a href=&quot;https://capwatkins.com/blog/the-boring-designer&quot;&gt;boring designers&lt;/a&gt; and how they tackled design problems using the most boring or “lazy” techniques. While I don’t agree completely with his arguments, nor do I think one should try to attain the status of “boring designer”, I can understand his main sentiment: everyone can appreciate obvious and clever design.&lt;/p&gt;
+&lt;h2 id=&quot;fixing-simple&quot;&gt;Fixing Simple&lt;/h2&gt;
+&lt;p&gt;I hate when people point out problems without at least attempting to suggest some sort of solution - which is exactly what I’m going to do here (with only a few set examples of course, otherwise the post would become a book). Let’s take a look at the major culprits I find around the web: navigations, buttons and form elements.&lt;/p&gt;
+&lt;h3 id=&quot;1.-hidden-navigations&quot;&gt;1. Hidden Navigations&lt;/h3&gt;
+&lt;p&gt;How many native apps that you use regularly rely on the trusty “hamburger” menu icon navigation system? What about news sites, video streaming services, or blogs? Maybe you’ve implemented this concept in your own projects as well, advocating for it’s “cleaner” approach to navigation. &lt;/p&gt;
+&lt;p&gt;The &lt;em&gt;hamburger&lt;/em&gt; is a great example of “ugly simple”. You are purposely hiding the main structure that allows your users to move around your product freely behind an &lt;strong&gt;additional&lt;/strong&gt; interaction. That is the opposite of simple.&lt;/p&gt;
+&lt;p&gt;The only time you should be using the “hamburger crutch” as I call it, is for very small screen sizes or when targeting mobile user agents directly. That’s it. If your users are viewing your product on a larger screen, for the love of God, &lt;strong&gt;use the space available&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/navigation.webp&quot; alt=&quot;Desktop Navigation&quot; /&gt;&lt;/p&gt;
+&lt;h3 id=&quot;2.-buttons-not-looking-like-buttons&quot;&gt;2. Buttons Not Looking Like Buttons&lt;/h3&gt;
+&lt;p&gt;It’s difficult for users to actually &lt;strong&gt;do&lt;/strong&gt; the action you want them to perform when your buttons look like text. I’m not exactly sure why designers have pivoted towards removing all stylings that regular users have come to expect from button elements, but it’s plaguing far too many websites.&lt;/p&gt;
+&lt;p&gt;Buttons should be eye-catching, colorful, fun to interact with, and support all proper CSS states. Clients and agencies will tend to push for “cleaner” buttons - which most of the time refers to setting the buttons as simple underlined text items. Do not be brainwashed into thinking this is better:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/buttons.webp&quot; alt=&quot;Button Comparsion&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;You tell me what looks more interactive&amp;#8230;&lt;/p&gt;
+&lt;h3 id=&quot;3.-overriding-form-elements&quot;&gt;3. Overriding Form Elements&lt;/h3&gt;
+&lt;p&gt;Designers should rarely rebuild the browser structure for web form elements in their projects. I should clarify - I’m not suggesting that you use the barebones default styles provided by the browser, I’m saying that you shouldn’t hide the elements themselves just to replace them with mimicking components. I find this practice is becoming more and more noticeable with the growing popularity of component-based frameworks. Don’t fall into these bad design habits.&lt;/p&gt;
+&lt;p&gt;For example, you should leave the following &lt;code&gt;select&lt;/code&gt; element as is:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;select&amp;#62;
+ &amp;#60;option&amp;#62;
+&amp;#60;&amp;#47;select&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Notice the &lt;code&gt;fieldset&lt;/code&gt; and &lt;code&gt;legend&lt;/code&gt; elements? I bet you don&amp;#8217;t see or hear about those HTML items very often. By default, &lt;code&gt;fieldset&lt;/code&gt; allows sibling or related inputs to be semantically grouped together. The &lt;code&gt;legend&lt;/code&gt; elements give the user great visual cues about which items are grouped together, helping to focus on each section individually as they complete the form. Use these grouping elements as much as possible (when it makes sense of course) for a better guided experience for your users. &lt;/p&gt;
-&lt;p&gt;Avoid making your own custom sections and instead use these existing HTML semantics.&lt;/p&gt;
-&lt;h2 id=&quot;almost-no-css-at-all&quot;&gt;Almost no CSS at all&lt;/h2&gt;
-&lt;p&gt;Now it&amp;#8217;s time to style this form with only 6 property declarations:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;form label {
- display: block;
-}
-form input {
- display: inline-block;
- margin-bottom: 10px;
- padding: 10px;
- width: 100%;
-}
-form input[type=&quot;radio&quot;],
-form input[type=&quot;checkbox&quot;],
-form input[type=&quot;reset&quot;],
-form input[type=&quot;submit&quot;] {
- width: auto;
-}
+&lt;p&gt;Instead of doing something like this:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;select style=&quot;display:none;&quot;&amp;#62;&amp;#60;&amp;#47;select&amp;#62;
+&amp;#60;div class=&quot;custom-select-container&quot;&amp;#62;
+ &amp;#60;span&amp;#62;Option&amp;#60;&amp;#47;span&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Of course, you can always add minor adjustments (like in my demo example above)&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Legend typeface and sizing&lt;/li&gt;
-&lt;li&gt;Form and fieldset background colors&lt;/li&gt;
-&lt;li&gt;Extra margin and padding&lt;/li&gt;
-&lt;li&gt;Custom reset &amp;#47; submit buttons&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;But the main point of this post is to showcase how little CSS is needed to implement decent web forms - so any further improvements are up to you, dear reader. &lt;/p&gt;
-&lt;p&gt;Just try not to reinvent the wheel.&lt;/p&gt;
-&lt;h2 id=&quot;final-rant---dont-ignore-the-reset&quot;&gt;Final rant - don&amp;#8217;t ignore the reset&lt;/h2&gt;
-&lt;p&gt;A lot of &amp;#8220;modern&amp;#8221; web forms have moved away from including the reset input on their forms, which I think is fairly short-sighted. Resetting all form fields might be a smaller edge case, but it is certainly a better option than relying on the user to refresh or in some cases, individually deleting each input. Yikes.&lt;/p&gt;
-&lt;p&gt;Happy form building!&lt;/p&gt;</description>
- <link>https://btxx.org/default-brower-forms</link>
- <guid isPermaLink="false">https://btxx.org/default-brower-forms</guid>
- <pubDate>Wed, 13 Nov 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>The Death of Personality</title>
- <description>&lt;h1 id=&quot;the-death-of-personality&quot;&gt;The Death of Personality&lt;/h1&gt;
-&lt;p&gt;2017-11-01&lt;/p&gt;
-&lt;p&gt;On September 18, 2013 truly original product design (everything from icon and app design to UI and experience interactions) began it&amp;#8217;s fast decline into the abyss with the release of Apple&amp;#8217;s iOS 7 update. It was called revolutionary. It was seen as a &amp;#8216;new age&amp;#8217; of design. I think it was a big mistake.&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/flat-design-tombstone_cfkyrq_c_scale,w_700.webp&quot; alt=&quot;Flat design tombstone&quot; /&gt;&lt;/p&gt;
-&lt;h3 id=&quot;stepping-backwards&quot;&gt;Stepping backwards&lt;/h3&gt;
-&lt;p&gt;Let me start off by saying I understand where they were trying to take mobile app design as a whole. &amp;#8220;Less is more&amp;#8221;, &amp;#8220;cleaner UI to let the content be the focus&amp;#8221;, &amp;#8220;more touch based interactions&amp;#8221;. The problem is that they cranked the dial too far in the other direction.&lt;/p&gt;
-&lt;p&gt;Because of this, a large movement was created based around the idea that skeuomorphic design is garbage, flat design is the future. And everyone drank the kool-aid without a single objection.
-I&amp;#8217;m using this ironically.&lt;/p&gt;
-&lt;h3 id=&quot;icons-with-no-identity&quot;&gt;Icons with no identity&lt;/h3&gt;
-&lt;p&gt;Do you remember Instagram&amp;#8217;s original app icon and UI? Do you remember how everyone initially praised it? Show those old designs to the same designers who loved it only a few years ago, and they will now laugh at how &amp;#8220;bad&amp;#8221; it is.&lt;/p&gt;
-&lt;p&gt;Unfortunately the same can be said for Apple&amp;#8217;s system icons across both iOS and macOS.&lt;/p&gt;
-&lt;p&gt;I believe Apple took the concept of a &amp;#8216;consistent&amp;#8217; design system across their iconography too literally. All the system icons should compliment one another, but they shouldn&amp;#8217;t lose their own individual look and feel.&lt;/p&gt;
-&lt;h3 id=&quot;lackluster-ui&quot;&gt;Lackluster UI&lt;/h3&gt;
-&lt;p&gt;The once inspiring and hierarchically consistent interface of both iOS and macOS was also quickly swatted away. In it&amp;#8217;s place we as users saw the removal of depth, initial visual cues as to what was interactive and what was static, and sadly even the overall color was muted.&lt;/p&gt;
-&lt;h3 id=&quot;impact-on-the-web&quot;&gt;Impact on the web&lt;/h3&gt;
-&lt;p&gt;This may not have been a bad thing if it was self-contained to Apple itself. The problem is that Apple has such a huge influence on the design industry - although that is starting to diminish, due to disasters like the iPhone X - that everyone starts to mimic and copy their style. This includes designers of sites and progressive web apps.&lt;/p&gt;
-&lt;p&gt;With the evolution of websites morphing into progressive web apps, designers have felt the need to start implementing this bland style for their design systems.&lt;/p&gt;
-&lt;p&gt;What we got in return:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;washed out colors&lt;/li&gt;
-&lt;li&gt;zero gradients for depth&lt;/li&gt;
-&lt;li&gt;the removal of all drop shadows (in meaningful ways that is)&lt;/li&gt;
-&lt;li&gt;the same generic Helvetica-based typefaces&lt;/li&gt;
-&lt;li&gt;the absence of hover states on interactive elements&lt;/li&gt;
-&lt;li&gt;a lack of any proper information density&lt;/li&gt;
-&lt;li&gt;an overkill of whitespace&lt;/li&gt;
-&lt;li&gt;one dimensional buttons (you know, the thing you want the user to interact with)&lt;/li&gt;
-&lt;li&gt;a complete disregard for original design not based off every other popular product&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h3 id=&quot;breaking-free-of-the-modern-era&quot;&gt;Breaking free of the &amp;#8216;modern era&amp;#8217;&lt;/h3&gt;
-&lt;p&gt;Thankfully, there are still a few good designers who continue to create original and inspiring work not based solely on current trends.&lt;/p&gt;
-&lt;p&gt;Flexibits recently launched a new contact app for macOS called Cardhop. While the UI still shifts a little too far to the &amp;#8216;flat trend&amp;#8217; for my liking, they thankfully hired the very talented David Lanham to design the beautiful application icon.&lt;/p&gt;
-&lt;p&gt;This is where visual design shines. Icon designs like Cardhop&amp;#8217;s are what allow individual applications to stand out in the dock or mobile home-screen among all the others. So how is that not UX design?&lt;/p&gt;
-&lt;p&gt;The current trendy thought process from designers that &amp;#8220;visual design doesn&amp;#8217;t involve UX design&amp;#8221; is garbage. Neither are mutually exclusive and I think anyone who believes so is being incredibly short-sighted.&lt;/p&gt;
-&lt;p&gt;If you&amp;#8217;re a designer, please stop riding trends and make your work visually beautiful. That doesn&amp;#8217;t mean you need to sacrifice usability or function, but just put more love and confidence into your profession. Companies like Apple and Google don&amp;#8217;t control how everyone else&amp;#8217;s apps and sites should look, and based on their current design decisions - they shouldn&amp;#8217;t.&lt;/p&gt;</description>
- <link>https://btxx.org/death-of-personality</link>
- <guid isPermaLink="false">https://btxx.org/death-of-personality</guid>
- <pubDate>Wed, 01 Nov 2017 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Cut Your Forms in Half</title>
- <description>&lt;h1 id=&quot;cut-your-forms-in-half&quot;&gt;Cut Your Forms in Half&lt;/h1&gt;
-&lt;p&gt;2019-05-09&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;Building web forms can sometimes feel like a boring or daunting task&lt;/em&gt;. Don&amp;#8217;t pass this dread on to your users - rip out as many of your form fields as possible.&lt;/p&gt;
-&lt;p&gt;Web forms tend to get a bad rep, mainly because so many horrible design choices are made without the user experience set at the forefront. Often times clients demand that they &lt;strong&gt;need&lt;/strong&gt; those twenty input fields or else how will they collect critical information from their users? Normally when I&amp;#8217;m approached with such a statement I simply ask them:&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;&amp;#8220;How many form fields would you be willing to fill out for an emergency situation?&amp;#8221;&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;&amp;#8220;My form isn&amp;#8217;t for emergencies though&amp;#8221;, they might reply. In that case ask them why they feel it acceptable to waste their users&amp;#8217; time just because it isn&amp;#8217;t urgent. Time is valuable.&lt;/p&gt;
-&lt;h2 id=&quot;fixing-a-form-in-the-wild&quot;&gt;Fixing a form in the wild&lt;/h2&gt;
-&lt;p&gt;Let&amp;#8217;s use a real-world form off the &lt;a href=&quot;https://www.greatwestlife.com&quot;&gt;Great West Life Insurance&lt;/a&gt; website as an example (left is original, right is updated):&lt;/p&gt;
-&lt;h3 id=&quot;breaking-things-down&quot;&gt;Breaking things down&lt;/h3&gt;
-&lt;p&gt;So what exactly have we changed?&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Combined first and last name fields into a single input&lt;/li&gt;
-&lt;li&gt;Removed the overkill &amp;#8220;retype&amp;#8221; email &amp;#38; password field (with the optional &lt;code&gt;show password&lt;/code&gt; this becomes redundant)&lt;/li&gt;
-&lt;li&gt;Minor position changes for optional subscription sign up and input field descriptions&lt;/li&gt;
-&lt;li&gt;Removed &lt;code&gt;recovery email&lt;/code&gt;
-&lt;ul&gt;
-&lt;li&gt;This is something that should be prompted to the user after successful registration - don&amp;#8217;t bog them down before they even sign up&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;helpful-micro-improvements&quot;&gt;Helpful Micro improvements&lt;/h2&gt;
-&lt;p&gt;You don&amp;#8217;t need to be extreme when gutting form fields - just be practical.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Don&amp;#8217;t use &amp;#8220;first&amp;#8221; and &amp;#8220;last&amp;#8221; names as separate inputs, instead use something like &amp;#8220;Full Name&amp;#8221;&lt;/li&gt;
-&lt;li&gt;Make complex questions use preset answers via &lt;code&gt;checkbox&lt;/code&gt; or &lt;code&gt;radio&lt;/code&gt; inputs&lt;/li&gt;
-&lt;li&gt;Avoid &lt;code&gt;select&lt;/code&gt; items whenever possible (these are clunky and most times unnecessary)&lt;/li&gt;
-&lt;li&gt;Include easy to understand, real-time error prompts&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;further-reading&quot;&gt;Further reading&lt;/h2&gt;
-&lt;ul&gt;
-&lt;li&gt;Great place to deep-dive into UX form design: &lt;a href=&quot;https://uxmovement.com/category/forms/&quot;&gt;UX Movement&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;</description>
- <link>https://btxx.org/cut-your-forms-in-half</link>
- <guid isPermaLink="false">https://btxx.org/cut-your-forms-in-half</guid>
- <pubDate>Thu, 09 May 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>CSS Value: `currentColor`</title>
- <description>&lt;h1 id=&quot;css-value-&quot;&gt;CSS Value: &lt;code&gt;currentColor&lt;/code&gt;&lt;/h1&gt;
-&lt;p&gt;2019-04-13&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;There are a large number of nuanced and mostly unheard of&lt;/em&gt; CSS value types, but today we are going to focus on &lt;code&gt;currentColor&lt;/code&gt;. So what is the &lt;code&gt;currentColor&lt;/code&gt; value type anyway?&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;The currentColor value type will apply the existing color value to other properties like background-color, etc.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;h2 id=&quot;see-it-in-action&quot;&gt;See it in action&lt;/h2&gt;
-&lt;p&gt;Let&amp;#8217;s assume with have a single div with the following properties:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;div {
- color: dodgerblue;
-}
+&lt;p&gt;There are cleaner ways to customize web forms with straightforward CSS. Have a look at my own open source project &lt;a href=&quot;https://normform.netlify.com/&quot;&gt;Normform&lt;/a&gt; if you’d prefer to just use a lightweight plugin to do this for you. (Shameless plug, I know)&lt;/p&gt;
+&lt;h2 id=&quot;simple-can-be-good&quot;&gt;Simple Can Be Good&lt;/h2&gt;
+&lt;p&gt;Having a boring or lazy design thought-process doesn’t mean you should develop ugly UI for the sake of “simple”. Too often that word is associated with “minimalism” or “less content” and that is only half true.&lt;/p&gt;
+&lt;p&gt;The &lt;em&gt;experience&lt;/em&gt; is what needs to be simple for your users - the UI itself should still be beautiful.&lt;/p&gt;</description>
+ <link>https://btxx.org/simple-does-not-mean-ugly</link>
+ <guid isPermaLink="false">https://btxx.org/simple-does-not-mean-ugly</guid>
+ <pubDate>Tue, 26 Mar 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Simple Navigation Setup in Jekyll 3.9.0</title>
+ <description>&lt;h1 id=&quot;simple-navigation-setup-in-jekyll-3.9.0&quot;&gt;Simple Navigation Setup in Jekyll 3.9.0&lt;/h1&gt;
+&lt;p&gt;2020-09-29&lt;/p&gt;
+&lt;p&gt;I have found that there is a lot of information on the internet in regards to setting up &amp;#8220;dynamic&amp;#8221; navigation in Jekyll. The problem I&amp;#8217;ve noticed is that a good amount of these implementations are overly complex. Here is the simplest way that I tend to use when building out &lt;code&gt;nav&lt;/code&gt; elements in Jekyll (3.9.0 as of this writing).&lt;/p&gt;
+&lt;h2 id=&quot;creating-the-directories-files&quot;&gt;Creating the Directories &amp;#38; Files&lt;/h2&gt;
+&lt;p&gt;In your Jekyll project, at the top level, you need to create a directory called &lt;code&gt;_data&lt;/code&gt;. Inside this folder we will be creating a new file called &lt;code&gt;navigation.yml&lt;/code&gt;. The contents of this file will contain all your navigation links and they are rendered like so:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;- title: Home
+url: &amp;#47;
+
+- title: Articles
+url: &amp;#47;articles&amp;#47;
+
+- title: About
+url: &amp;#47;about&amp;#47;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If we wanted to use that same color for other properties on elements inside that initial &lt;code&gt;div&lt;/code&gt;, it&amp;#8217;s simple - we just need to call &lt;code&gt;currentColor&lt;/code&gt; like so:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;div {
- color: dodgerblue;
-}
+&lt;h2 id=&quot;dynamically-rendering-the-navigation&quot;&gt;Dynamically Rendering the Navigation&lt;/h2&gt;
+&lt;p&gt;The next and final step is rendering out the navigation with a simple loop:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;{% for item in site.data.navigation %}
+ &amp;#60;li&amp;#62;
+ &amp;#60;a href=&quot;{{ item.url }}&quot;&amp;#62;&amp;#60;span&amp;#62;{{ item.title }}&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;&amp;#47;li&amp;#62;
+{% endfor %}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;highlight-current-page&quot;&gt;Highlight Current Page&lt;/h2&gt;
+&lt;p&gt;It&amp;#8217;s also very easy to extend this method to add a CSS class based on whether a user is on the currently selected page or not:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;{% for item in site.data.navigation %}
+ &amp;#60;li&amp;#62;
+ {% if item.url == page.url %}
+ &amp;#60;a class=&quot;active&quot; href=&quot;{{ item.url }}&quot;&amp;#62;&amp;#60;span&amp;#62;{{ item.title }}&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+ {% else %}
+ &amp;#60;a href=&quot;{{ item.url }}&quot;&amp;#62;&amp;#60;span&amp;#62;{{ item.title }}&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;a&amp;#62;
+ {% endif %}
+ &amp;#60;&amp;#47;li&amp;#62;
+{% endfor %}
-div header {
- background-color: currentColor;
-}
-div a {
- border-bottom: 1px solid currentColor;
-}
+
+&amp;#47;* Custom styling for active class *&amp;#47;
+li a.active { color: red; }
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;&lt;strong&gt;Sidenote&lt;/strong&gt;: If you re-declare the default &lt;code&gt;color&lt;/code&gt; property further along in your CSS, the &lt;code&gt;currentColor&lt;/code&gt; value will update according to the last color set.&lt;/p&gt;
-&lt;p&gt;And that&amp;#8217;s it. Best of all, this value type is supported across all major browsers!&lt;/p&gt;</description>
- <link>https://btxx.org/current-color</link>
- <guid isPermaLink="false">https://btxx.org/current-color</guid>
- <pubDate>Sat, 13 Apr 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>CSS Video Backgrounds</title>
- <description>&lt;h1 id=&quot;css-video-backgrounds&quot;&gt;CSS Video Backgrounds&lt;/h1&gt;
-&lt;p&gt;2018-04-16&lt;/p&gt;
-&lt;p&gt;With the release of Safari 11.1 on macOS and Safari on iOS 11.3, developers now have the ability to support background videos (mp4 support only - at the time of this article) with pure CSS.&lt;/p&gt;
-&lt;p&gt;Example:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.video-background {
- background-image: url(&amp;#39;path-to-video.mp4);
-}
+&lt;p&gt;Congrats! You now have fully functional, dynamic navigation on your Jekyll site.&lt;/p&gt;</description>
+ <link>https://btxx.org/simple-jekyll-navigation</link>
+ <guid isPermaLink="false">https://btxx.org/simple-jekyll-navigation</guid>
+ <pubDate>Tue, 29 Sep 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Skip to Content Button</title>
+ <description>&lt;h1 id=&quot;skip-to-content-button&quot;&gt;Skip to Content Button&lt;/h1&gt;
+&lt;p&gt;2019-03-25&lt;/p&gt;
+&lt;p&gt;One of the golden rules for testing your website&amp;#8217;s accessibility is the &amp;#8220;keyboard-only&amp;#8221; audit. This is where you test navigating through your entire site without the use of a mouse, but instead rely solely on tabbing through your content.&lt;/p&gt;
+&lt;p&gt;Unfortunately, one item is normally overlooked during this audit - a &amp;#8220;skip to content&amp;#8221; context button. Including a &amp;#8220;skip to content&amp;#8221; navigation item in your project is extremely useful because:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;speeds up user interaction with the content you &lt;strong&gt;want&lt;/strong&gt; them to see&lt;/li&gt;
+&lt;li&gt;on subsequent pages the user shouldn&amp;#8217;t need to tab through the entire navigation each time&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;p&gt;For the sake of this demo we will assume that we currently have the following navigation setup in our project:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;nav role=&quot;navigation&quot;&amp;#62;
+ &amp;#60;a href=&quot;&amp;#47;&quot;&amp;#62;Home&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;a href=&quot;&amp;#47;about&quot;&amp;#62;About&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;a href=&quot;&amp;#47;archive&quot;&amp;#62;Archive&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;a href=&quot;&amp;#47;atom.xml&quot;&amp;#62;RSS&amp;#60;&amp;#47;a&amp;#62;
+&amp;#60;&amp;#47;nav&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;see-it-in-action&quot;&gt;See it in action&lt;/h2&gt;
-&lt;p&gt;Check out the very basic CodePen I created below to see it live (make sure you view it in latest Safari or else you won&amp;#8217;t see anything :P)&lt;/p&gt;
-&lt;p&gt;CSS Video Background (Safari Only)&lt;/p&gt;
-&lt;p&gt;You can read up on all the new features implemented in 11.1 Safari here:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://webkit.org/blog/8216/new-webkit-features-in-safari-11-1/&quot;&gt;New WebKit Features in Safari 11.1&lt;/a&gt;&lt;/p&gt;</description>
- <link>https://btxx.org/css-video-backgrounds</link>
- <guid isPermaLink="false">https://btxx.org/css-video-backgrounds</guid>
- <pubDate>Mon, 16 Apr 2018 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>CSS Variables</title>
- <description>&lt;h1 id=&quot;css-variables&quot;&gt;CSS Variables&lt;/h1&gt;
-&lt;p&gt;2018-03-24&lt;/p&gt;
-&lt;p&gt;The CSS language is becoming even more awesome and powerful everyday. In this quick article I&amp;#8217;d like to focus specifically on the &amp;#8220;new&amp;#8221; CSS variable function that you can start using in your projects &lt;em&gt;right now&lt;/em&gt;.&lt;/p&gt;
-&lt;h3 id=&quot;getting-started-is-easy&quot;&gt;Getting started is easy&lt;/h3&gt;
-&lt;p&gt;Let&amp;#8217;s just jump right in - this is how you create variables in vanilla CSS:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;:root {
- --base-color: #e0e0e0;
- --text-color: #111;
-}
+&lt;p&gt;Now for the easy part - adding our simple content skip link with it&amp;#8217;s own custom &lt;code&gt;skip-content&lt;/code&gt; class:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;nav role=&quot;navigation&quot;&amp;#62;
+ &amp;#60;!-- Skip to content button --&amp;#62;
+ &amp;#60;a class=&quot;skip-content&quot; href=&quot;#main&quot;&amp;#62;Skip to Content (Press Enter)&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;a href=&quot;&amp;#47;&quot;&amp;#62;Home&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;a href=&quot;&amp;#47;about&quot;&amp;#62;About&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;a href=&quot;&amp;#47;archive&quot;&amp;#62;Archive&amp;#60;&amp;#47;a&amp;#62;
+ &amp;#60;a href=&quot;&amp;#47;atom.xml&quot;&amp;#62;RSS&amp;#60;&amp;#47;a&amp;#62;
+&amp;#60;&amp;#47;nav&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;We are using the &lt;code&gt;:root&lt;/code&gt; selector at the very top of our CSS file in order to call these variables into any elements in the rest of our document. This is normally the safest way to include variables.&lt;/p&gt;
-&lt;p&gt;As for the variables themselves, you declare that they are variables using the &lt;code&gt;--&lt;/code&gt; tags, followed by the variable&amp;#8217;s name and it&amp;#8217;s property. Pretty simple stuff, right?&lt;/p&gt;
-&lt;p&gt;Now let&amp;#8217;s use those variables:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.header {
- border: 1px solid var(--base-color);
+&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
+&lt;p&gt;Our first task is to make sure this new link isn&amp;#8217;t visible or interactive by default unless the user explicitly tabs through the navigation. We do so by positioning the link outside of the main content view. It is important to use this &lt;code&gt;absolute&lt;/code&gt; position style instead of setting the display property to &lt;code&gt;none&lt;/code&gt;, since the display property technique will fully remove the element from the DOM (bad accessibility practices).&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;a.skip-content {
+ background: grey;
+ color: white;
+ left: -9999px;
+ padding: 0.5rem;
+ position: absolute;
+ top: 0;
}
-
-.main-container {
- background-color: var(--base-color);
- color: var(--text-color);
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;almost-there&quot;&gt;Almost there&lt;/h2&gt;
+&lt;p&gt;Now we just re-position the element when the user focuses on the link with a keyboard tab:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;a.skip-content:focus {
+ left: 1rem; &amp;#47;* Whatever desired position *&amp;#47;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it! It&amp;#8217;s also good to know that CSS variables have pretty decent &lt;a href=&quot;https://caniuse.com/#feat=css-variables&quot;&gt;browser support&lt;/a&gt; (who likes IE11 anyway).&lt;/p&gt;
-&lt;h3 id=&quot;why-not-just-use-a-preprocessor&quot;&gt;Why not just use a preprocessor?&lt;/h3&gt;
-&lt;p&gt;I&amp;#8217;m a pretty big fan of Sass and Stylus, but sometimes it&amp;#8217;s refreshing to just use vanilla CSS for certain projects. Most preprocessors have had the ability to use variables and mixins for a while, but I prefer to avoid build scripts when not absolutely necessary.&lt;/p&gt;
-&lt;p&gt;Get out there and have fun with some variables!&lt;/p&gt;</description>
- <link>https://btxx.org/css-variables</link>
- <guid isPermaLink="false">https://btxx.org/css-variables</guid>
- <pubDate>Sat, 24 Mar 2018 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>CSS Slope Graphs</title>
- <description>&lt;h1 id=&quot;css-slope-graphs&quot;&gt;CSS Slope Graphs&lt;/h1&gt;
-&lt;p&gt;2021-06-07&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;I am a huge sucker for simplistic and beautifully designed visual data on the web&lt;/em&gt;. Most data tends to be graphed via line or bar systems - which is fine - but I think slope graphs are highly underrated. Let&amp;#8217;s change that, shall we?&lt;/p&gt;
-&lt;h2 id=&quot;the-demo&quot;&gt;The Demo&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;m basing this demo off the design patterns found in &lt;a href=&quot;https://www.edwardtufte.com/tufte/books_vdqi&quot;&gt;Edward Tufte&amp;#8217;s visualization work&lt;/a&gt;, specifically his slope graph designs:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/jOBzXMe&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;all-done&quot;&gt;All Done&lt;/h2&gt;
+&lt;p&gt;This is a very basic accessibility win you can implement in your current projects with next to zero effort. Enjoy!&lt;/p&gt;</description>
+ <link>https://btxx.org/skip-to-content</link>
+ <guid isPermaLink="false">https://btxx.org/skip-to-content</guid>
+ <pubDate>Mon, 25 Mar 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Converting My X201 ThinkPad into a Slabtop</title>
+ <description>&lt;h1 id=&quot;converting-my-x201-thinkpad-into-a-slabtop&quot;&gt;Converting My X201 ThinkPad into a Slabtop&lt;/h1&gt;
+&lt;p&gt;2023-05-01&lt;/p&gt;
+&lt;p&gt;I recently wrote &lt;a href=&quot;/x201/&quot;&gt;about physically disabling the WiFi toggle switch on my X201&lt;/a&gt; which was a fun &amp;#8220;hack&amp;#8221; to an annoying issue I was running into. Since then, the laptop has been running flawlessly.&lt;/p&gt;
+&lt;p&gt;The only other &lt;em&gt;minor&lt;/em&gt; issue I had was the poor display quality. The screen works perfectly fine but the X201&amp;#8217;s age prevents it from being the best possible display for day-to-day tasks. Both the resolution and viewing angles are quite poor.&lt;/p&gt;
+&lt;p&gt;So, what were my options to remedy this problem?&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;Swap out and upgrade the laptop&amp;#8217;s display (not many options for this though)&lt;/li&gt;
+&lt;li&gt;Connect an external display, keyboard, mouse and dock the X201&lt;/li&gt;
+&lt;li&gt;Something else?&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;looking-into-something-else&quot;&gt;Looking into &amp;#8220;Something Else&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;I found that the possible replacement screens weren&amp;#8217;t worth the cost&amp;#47;hassle to swap out. And setting the laptop aside, docked with external peripherals sounded fine in theory - but then I would be missing out on the X201&amp;#8217;s amazing classic keyboard&amp;#8230;&lt;/p&gt;
+&lt;p&gt;Then I thought to myself, &amp;#8220;Why not just remove the display &lt;em&gt;entirely&lt;/em&gt;?&amp;#8221;&lt;/p&gt;
+&lt;p&gt;So that&amp;#8217;s what I did.&lt;/p&gt;
+&lt;p&gt;Removing the entire top lid was easier than I initially thought it would be. The beautiful thing about these older, classic ThinkPads is the ability to completely dissemble them. I won&amp;#8217;t go into heavy details on how to take one of these machines apart, since great documentation &lt;a href=&quot;https://www.ifixit.com/Device/Lenovo_Thinkpad_X201_Tablet&quot;&gt;already exists&lt;/a&gt;. But once you have the keyboard and hinge screws removed it is essentially as easy as &lt;em&gt;lifting&lt;/em&gt; the lid out of the chassis. (After disconnecting the small display connectors, of course)&lt;/p&gt;
+&lt;h2 id=&quot;ditching-alpine-for-debian&quot;&gt;Ditching Alpine for Debian&lt;/h2&gt;
+&lt;p&gt;I love Alpine Linux. It&amp;#8217;s normally my &lt;a href=&quot;https://as.bt.ht&quot;&gt;go-to distro&lt;/a&gt; (paired with dwm) for most of my laptop devices. Unfortunately, I find tiling window managers a slight pain to use on larger, 4K displays. I also wanted this slabtop to &amp;#8220;just work&amp;#8221;, instead of needing to fiddle around with WiFi, &lt;code&gt;xrandr&lt;/code&gt;, audio etc. Not to mention that Debian is rock solid stable. Defaulting to the XFCE DE was a no-brainer as well since this device is somewhat &lt;em&gt;old&lt;/em&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
+&lt;p&gt;This slabtop gives me those old-school &amp;#8220;Commodore64&amp;#8221; vibes (or more recent devices like the Raspberry Pi 400). This setup certainly isn&amp;#8217;t for everyone but for my use case it&amp;#8217;s working well. Traveling with a machine like this might prove a little more challenging - although you could simply pair it with a smaller travel monitor (I&amp;#8217;m sure the overall carrying weight would be similar to the standard X201).&lt;/p&gt;
+&lt;p&gt;If nothing else, it is good to keep this option in mind if you ever break your laptop&amp;#8217;s display and don&amp;#8217;t feel like spending the money to fix it. Just grab an external monitor you have laying around and make a slabtop!&lt;/p&gt;</description>
+ <link>https://btxx.org/slabtop</link>
+ <guid isPermaLink="false">https://btxx.org/slabtop</guid>
+ <pubDate>Mon, 01 May 2023 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Embracing Slow Tech</title>
+ <description>&lt;h1 id=&quot;embracing-slow-tech&quot;&gt;Embracing Slow Tech&lt;/h1&gt;
+&lt;p&gt;2022-11-22&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m writing this post on my &amp;#8220;new&amp;#8221; X260 ThinkPad running &lt;a href=&quot;https://garudalinux.org/&quot;&gt;Garuda Linux&lt;/a&gt; through Wayland&amp;#47;Sway and it is going well so far. Setting things up was much easier than I initially expected. There were only a few minor tweaks I had to make, such as setting &lt;code&gt;vim&lt;/code&gt; as the default EDITOR and installing a small collection of applications (Bitwarden, qutebrowser etc).&lt;/p&gt;
+&lt;p&gt;I ran into some headaches with generating proper SSH keys but that was solved by calling in &lt;code&gt;ssh-agent&lt;/code&gt; whenever launching a new instance of Alacritty. This could certainly be cleaned up further, but for now everything works fine. (A more detailed post about this X260 is in the works!)&lt;/p&gt;
+&lt;p&gt;&amp;#8220;Okay&amp;#8221;, I hear you say, &amp;#8220;But what does this have to do with &lt;em&gt;slow tech&lt;/em&gt;?&amp;#8221;&lt;/p&gt;
+&lt;p&gt;Good question! Let me explain.&lt;/p&gt;
+&lt;h2 id=&quot;purposely-unplugged&quot;&gt;Purposely Unplugged&lt;/h2&gt;
+&lt;p&gt;For the longest time I have had some form of &amp;#8220;smart&amp;#8221; device on my persons while performing tasks away from my main computer. Whether that was grocery shopping, playing with the kids in the backyard, going on road trips - you name it. This was never a &lt;em&gt;bad thing&lt;/em&gt; or something I actively looked to change. In fact, I hardly used these devices to connect much to the internet anyway[^1]. But I did notice that I would check things like Mastodon or my email every so often. &lt;/p&gt;
+&lt;p&gt;What I started to realize was that I was checking these &amp;#8220;online&amp;#8221; items out of pure habit. I hardly ever responded to any email on my iPhone (it doesn&amp;#8217;t help that Apple Mail on iOS is horrendous for plain text emails) and engaging in Mastodon, while fun, was certainly not a priority while out of the office. My attitude towards being &amp;#8220;always online&amp;#8221; started to shift towards being what I call &lt;em&gt;purposely unplugged&lt;/em&gt;. I decided to make a personal change towards my online access:&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;If something is important, then I will take the time to complete that task at &lt;strong&gt;my office computer&lt;/strong&gt;. I do not need to be &amp;#8220;always online&amp;#8221;.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;It really makes you wonder how people back in the late 90s or early 2000s ever managed their lives without being connected online 24&amp;#47;7. I certainly remember a time where you booted up a family computer to browse the internet, respond to emails, and complete work items. When you were done - you were done. You shutdown the machine and went about your life. &amp;#8220;I&amp;#8217;ll check back later tonight before bed&amp;#8221; or &amp;#8220;Hopefully there will be an email response by tomorrow morning&amp;#8221; was the normal thought process after logging off. Now there is no &amp;#8220;logging off&amp;#8221;. It&amp;#8217;s just switching devices. I don&amp;#8217;t think it is healthy and really who benefits? Certainly not the individual.&lt;/p&gt;
+&lt;p&gt;Hardware (computers specifically in this case) serve a purpose. They are meant to serve the individual using them. When did we cross-over into a world where we seem to be serving our devices? &lt;strong&gt;You are not important enough to be &amp;#8220;available online&amp;#8221; all the time&lt;/strong&gt;. Sorry, but it&amp;#8217;s true.&lt;/p&gt;
+&lt;h2 id=&quot;mobile-sucks-anyway&quot;&gt;Mobile Sucks Anyway&lt;/h2&gt;
+&lt;p&gt;Browsing the web is an absolute shitshow on mobile devices. Every service and their grandma begs you to install their native app. Adblockers are pretty much non-existent, which makes the modern web almost intolerable to visit. Then you have the issue of walled gardens, security breaches, planned EOL for perfectly functional hardware, increased e-waste - the list goes on.&lt;/p&gt;
+&lt;p&gt;Functional computing and online interactions have already been perfected. It&amp;#8217;s called a &lt;strong&gt;computer&lt;/strong&gt;[^3]. Computers (desktops and laptops) give us the ability to control our devices at the OS-level, granting us incredible freedom to tweak things to our individual preferences. Unless you are technical enough to fiddle around with &amp;#8220;beta&amp;#8221; mobile Linux devices, the majority of users are stuck with what they are given. And it isn&amp;#8217;t much.&lt;/p&gt;
+&lt;p&gt;The corporate push to move everyone over to &amp;#8220;mobile computing&amp;#8221; is no accident. The ability to ban certain apps, push ads to users, collect customer details, and harvest user data is more than enough motivation for companies to usher in a future of &amp;#8220;mobile&amp;#8221; computing.&lt;/p&gt;
+&lt;p&gt;Not to mention &lt;em&gt;cost&lt;/em&gt;. New, top-of-the-line mobile devices sell for the same, if not more, than a standard laptop or desktop. You give up flexibility, customization and freedom for what exactly? A really good camera? Built-in GPS navigation?&lt;/p&gt;
+&lt;p&gt;Get a &lt;em&gt;real&lt;/em&gt; camera and grab a standard GPS. I&amp;#8217;m serious. If that sounds ridiculous than you probably never really needed those things in the first place. Use the proper tool for the job. Smushing everything into one, locked-down device is a recipe for disaster.&lt;/p&gt;
+&lt;p&gt;Overall - just use a &lt;em&gt;real&lt;/em&gt; computer.&lt;/p&gt;
+&lt;h2 id=&quot;dont-flip-out&quot;&gt;Don&amp;#8217;t Flip-Out&lt;/h2&gt;
+&lt;p&gt;So, with all of that in mind, I swapped out my iPhone SE (2020) smart phone for the ZTE Cymbal 2 &amp;#8220;dumb&amp;#8221; flip phone. &lt;/p&gt;
+&lt;p&gt;The screen is extremely small with low resolution. The camera is absolute garbage. Writing text messages requires use (and knowledge) of the T9 composer[^2]. Most modern applications besides email or the photo gallery are non-existent.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;But I absolutely love it&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;It&amp;#8217;s a phone. It makes phone calls and allows me to send texts. Texts themselves are a little more time consuming, which forces me to be more concise in my writing. Anything that requires great detail should probably be an email - which is what my computer is for. What else do I need? If I ever drop it and smash into a million pieces I can replace it for &amp;#60;$50. I have the ability to replace the battery - not to mention battery life is measured in &lt;em&gt;days&lt;/em&gt; not hours. It&amp;#8217;s rugged, so I don&amp;#8217;t need to be so delicate with it or slap some huge protective case on it.&lt;/p&gt;
+&lt;p&gt;It does its job. No more, no less.&lt;/p&gt;
+&lt;h2 id=&quot;good-for-you&quot;&gt;&amp;#8220;Good for You&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;I know that some of you reading this might think that this workflow is fine for &lt;em&gt;me&lt;/em&gt; but would never be suitable for your needs. Maybe that&amp;#8217;s true, but I&amp;#8217;d probably disagree. I think people have just been conditioned to &lt;em&gt;believe&lt;/em&gt; that most day-to-day activites would be impossible without a smart device or a connection to the internet. If not, many would at least feel that without such access things would become far too inconvenient. My stance remains: the majority of people do not need constant access to a computer in their pocket.&lt;/p&gt;
+&lt;p&gt;It&amp;#8217;s completely fine to enjoy your own setup and device preferences - I&amp;#8217;m not trying to convert anyone but instead just describing my own experiences. So please, keep your torches and pitchforks at home.&lt;/p&gt;
+&lt;p&gt;Thanks for reading.&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;It helps that I have pretty much zero active accounts across most &amp;#8220;popular&amp;#8221; social media platforms.&lt;/li&gt;
+&lt;li&gt;Some of you readers might not have ever experienced the wonders of T9&amp;#8230;&lt;/li&gt;
+&lt;li&gt;I understand that even smart phones can be classified as &amp;#8220;computers&amp;#8221;. I am using this term in the classical sense.&lt;/li&gt;
+&lt;/ol&gt;</description>
+ <link>https://btxx.org/slow</link>
+ <guid isPermaLink="false">https://btxx.org/slow</guid>
+ <pubDate>Tue, 22 Nov 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>SOMA Inspired Terminal Display with CSS</title>
+ <description>&lt;h1 id=&quot;soma-inspired-terminal-display-with-css&quot;&gt;SOMA Inspired Terminal Display with CSS&lt;/h1&gt;
+&lt;p&gt;2021-05-29&lt;/p&gt;
+&lt;p&gt;A few years back I played (and loved) &lt;a href=&quot;https://store.steampowered.com/app/282140/SOMA/&quot;&gt;SOMA&lt;/a&gt;, a first-person sci-fi horror-adventure game. The story was intriguing and the developers nailed the overall atmosphere of Pathos-II. Though both those aspects were great, what I found the most enjoyable were the interactive computers and displays found sprinkled throughout the world.&lt;/p&gt;
+&lt;p&gt;Three years ago I wanted to see if I could recreate one of those terminal displays with HTML &amp;#38; CSS. And I did just that.&lt;/p&gt;
+&lt;p&gt;So, why am I writing about this &lt;em&gt;three years later&lt;/em&gt;? Well, I never did a proper write-up explaining how I achieved it. I&amp;#8217;m sure someone out there in the wild west of the web could get some value out of this tutorial, right? I hope so!&lt;/p&gt;
+&lt;h2 id=&quot;the-live-demo&quot;&gt;The Live Demo&lt;/h2&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/soma-terminal.png&quot; alt=&quot;Terminal based off the SOMA computers&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/ZEeLgmz&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;For this concept we will actually be building this graph out of &lt;code&gt;tables&lt;/code&gt; - crazy, right? The greatest benefit of rendering all the data inside of a &lt;code&gt;table&lt;/code&gt; element is the ability to easily support smaller screens and mobile devices. Larger viewports will get to see the pretty slope graph, while those below a certain threshold will view a simple table.&lt;/p&gt;
-&lt;p&gt;(But more on that in the CSS section)&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;p&amp;#62;Sales of the leading frozen pizza brands of the United States from 2011 to 2017 (in million US dollars) &amp;#60;br&amp;#62;&amp;#60;em&amp;#62;Source: Statisa 2018&amp;#60;&amp;#47;em&amp;#62;&amp;#60;&amp;#47;p&amp;#62;
-&amp;#60;table&amp;#62;
- &amp;#60;thead&amp;#62;
- &amp;#60;tr&amp;#62;
- &amp;#60;th&amp;#62;Pizza Brand&amp;#60;&amp;#47;th&amp;#62;
- &amp;#60;th&amp;#62;2011&amp;#60;&amp;#47;th&amp;#62;
- &amp;#60;th&amp;#62;2017&amp;#60;&amp;#47;th&amp;#62;
- &amp;#60;&amp;#47;tr&amp;#62;
- &amp;#60;&amp;#47;thead&amp;#62;
- &amp;#60;tbody&amp;#62;
- &amp;#60;tr&amp;#62;
- &amp;#60;td data-set=&quot;677.0&quot;&amp;#62;DiGiorno&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td&amp;#62;&amp;#60;span&amp;#62;677.0&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td data-name=&quot;DiGiorno&quot;&amp;#62;1014.6&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;&amp;#47;tr&amp;#62;
- &amp;#60;tr&amp;#62;
- &amp;#60;td data-set=&quot;294.8&quot;&amp;#62;Private Label&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td&amp;#62;&amp;#60;span&amp;#62;294.8&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td data-name=&quot;Private Label&quot;&amp;#62;524.8&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;&amp;#47;tr&amp;#62;
- &amp;#60;tr&amp;#62;
- &amp;#60;td data-set=&quot;286.1&quot;&amp;#62;Red Baron&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td&amp;#62;&amp;#60;span&amp;#62;286.1&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td data-name=&quot;Red Baron&quot;&amp;#62;572.3&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;&amp;#47;tr&amp;#62;
- &amp;#60;tr&amp;#62;
- &amp;#60;td data-set=&quot;257.9&quot;&amp;#62;Tombstone&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td&amp;#62;&amp;#60;span&amp;#62;257.9&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td data-name=&quot;Tombstone&quot;&amp;#62;270.6&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;&amp;#47;tr&amp;#62;
- &amp;#60;tr&amp;#62;
- &amp;#60;td data-set=&quot;164.5&quot;&amp;#62;Totino&amp;#39;s Party Pizza&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td&amp;#62;&amp;#60;span&amp;#62;164.5&amp;#60;&amp;#47;span&amp;#62;&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;td data-name=&quot;Totino&amp;#39;s Party Pizza&quot;&amp;#62;347.2&amp;#60;&amp;#47;td&amp;#62;
- &amp;#60;&amp;#47;tr&amp;#62;
- &amp;#60;&amp;#47;tbody&amp;#62;
-&amp;#60;&amp;#47;table&amp;#62;
+&lt;p&gt;Nothing fancy going on here - just some simple &lt;code&gt;div&lt;/code&gt; elements holding a few paragraphs and spans:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;outer-frame&quot;&amp;#62;
+ &amp;#60;div class=&quot;screen&quot;&amp;#62;
+ &amp;#60;div class=&quot;screen-guts&quot;&amp;#62;
+ &amp;#60;h2&amp;#62;Key Control&amp;#60;&amp;#47;h2&amp;#62;
+ &amp;#60;p&amp;#62;&amp;#60;span&amp;#62;Panel Chip&amp;#60;&amp;#47;span&amp;#62; (Connector)&amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p class=&quot;column&quot;&amp;#62;
+ Security Keys: 023-027&amp;#60;br&amp;#62;C819738-23
+ &amp;#60;br&amp;#62;
+ &amp;#60;span class=&quot;error&quot;&amp;#62;Error: Key Expired&amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;br&amp;#62;
+ &amp;#60;em&amp;#62;Please update...&amp;#60;&amp;#47;em&amp;#62;
+ &amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;p&amp;#62;
+ &amp;#60;span&amp;#62;Permission&amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;br&amp;#62;
+ Standard ThetaCipher
+ &amp;#60;br&amp;#62;
+ &amp;#60;span&amp;#62;Secop-Jstrohweier&amp;#60;&amp;#47;span&amp;#62;
+ &amp;#60;&amp;#47;p&amp;#62;
+ &amp;#60;button class=&quot;update-button&quot;&amp;#62;Update Chip&amp;#60;&amp;#47;button&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;bottom-controls&quot;&amp;#62;
+ &amp;#60;button class=&quot;back-button&quot;&amp;#62;Back 背部&amp;#60;&amp;#47;button&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;As you can see, nothing too fancy is happpening here. Pay close attention to the &lt;code&gt;data-set&lt;/code&gt; and &lt;code&gt;data-name&lt;/code&gt; variables though - those will be important for the CSS portion of this design, mainly the rendering of the line elements.&lt;/p&gt;
&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;To avoid overwhelming your brain all-at-once, let&amp;#8217;s break the CSS down into bite-sized chunks, starting with the base styling:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@import url(&amp;#39;https:&amp;#47;&amp;#47;opentype.netlify.com&amp;#47;et-book&amp;#47;index.css&amp;#39;);
+&lt;p&gt;Let&amp;#8217;s just dump all the CSS right here (don&amp;#8217;t worry, it looks far more complicated than it really is):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@import url(&amp;#39;https:&amp;#47;&amp;#47;opentype.netlify.com&amp;#47;sansation&amp;#47;index.css&amp;#39;);
+
* {
box-sizing: border-box;
}
-html {
- height: 100%;
-}
-
body {
- background: #fffff8;
- font-family: &quot;et-book&quot;, serif;
- height: 100%;
- margin: 0 auto;
- max-width: 800px;
- padding: 0 0.5rem;
+ background: #333;
+ font-family: &quot;Sansation&quot;, sans-serif;
+ padding: 3rem 0;
}
-p {
+button {
+ appearance: none;
+ border: 0;
+ cursor: pointer;
+ font-family: &quot;Inconsolata&quot;, &quot;Consolas&quot;, mono;
font-size: 18px;
- margin: 4rem 0 6rem;
+ transition: 0.3s ease all;
}
-table {
- border-collapse: collapse;
- text-align: left;
- width: 100%;
+.outer-frame,
+.screen {
+ display: block;
+ margin: 0 auto;
+ position: relative;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Pretty basic stuff.&lt;/p&gt;
-&lt;p&gt;Now we need to design how our slope graph will look on larger screens &amp;#47; desktops. For this instance, we will target these larger devices with a &lt;code&gt;min-width&lt;/code&gt; media query of &lt;code&gt;800px&lt;/code&gt;. The rest of the CSS might look a little confusing but I assure you it is quite simple.&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;&lt;p&gt;On larger devices we hide the first &lt;code&gt;thead tr th&lt;/code&gt; element with &lt;code&gt;display: none&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;The first and second &lt;code&gt;td&lt;/code&gt; elements inside each &lt;code&gt;tbody&lt;/code&gt; row need to be set as &lt;code&gt;position: absolute&lt;/code&gt; to avoid duplicate content&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;The inner &lt;code&gt;span&lt;/code&gt; that we include in our HTML inside the second &lt;code&gt;tbody tr td&lt;/code&gt; also needs to be &lt;code&gt;display: none&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Remember that &lt;code&gt;data-set&lt;/code&gt; variable? We now use that for our &lt;code&gt;:before&lt;/code&gt; pseudo element for &lt;code&gt;table tbody tr td:nth-of-type(1)&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Remember that &lt;code&gt;data-name&lt;/code&gt; variable? We now use that for our &lt;code&gt;:before&lt;/code&gt; pseudo element for &lt;code&gt;table tbody tr td:nth-of-type(3)&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;After that, you can see the simple customization we include to render the angle &amp;#47; position of the slope lines and the corresponding labels&lt;/p&gt;
-&lt;p&gt;@media(min-width:800px) {
- table {
- display: block;
- position: relative;
- margin-bottom: 25rem;
- }&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;table thead th {
- border-bottom: 1px solid lightgrey;
- font-size: 24px;
+
+.outer-frame {
+ background: #ccc url(&quot;https:&amp;#47;&amp;#47;preview.ibb.co&amp;#47;iS9nz7&amp;#47;screen_grunge.webp&quot;) no-repeat center;
+ background-size: cover;
+ border-radius: 5px;
+ box-shadow: 0 5px 20px rgba(0,0,0,0.6);
+ height: 560px;
+ width: 750px;
+}
+.outer-frame:before {
+ background: rgba(0,0,0,0.3);
+ border-radius: 5px;
+ box-shadow: inset 5px 5px 10px rgba(0,0,0,0.4), 1px 1px 1px rgba(255,255,255,0.3);
+ content: &amp;#39;&amp;#39;;
+ height: 538px;
+ left: 15px;
position: absolute;
- top: -50px;
- width: 45%;
+ top: 11px;
+ width: 720px;
}
-table thead th:nth-child(1){ display: none; }
-table thead th:nth-child(2){ left: 0; }
-table thead th:nth-child(3){ right: 0; text-align: right; }
-table tbody tr td:nth-of-type(1),
-table tbody tr td:nth-of-type(2) { position: absolute;}
+.screen {
+ background: #000 url(&quot;https:&amp;#47;&amp;#47;image.ibb.co&amp;#47;gOqSz7&amp;#47;screen_dust.webp&quot;) no-repeat center;
+ background-size: cover;
+ border-radius: 5px;
+ height: 450px;
+ left: 75px;
+ padding: 60px;
+ position: absolute;
+ top: 55px;
+ width: 600px;
+}
+.screen:after {
+ background: url(&quot;https:&amp;#47;&amp;#47;s13.postimg.org&amp;#47;85ryuy1o7&amp;#47;dust.webp&quot;) no-repeat center;
+ background-size: cover;
+ border-radius: 5px;
+ box-shadow: inset 0 0 20px rgba(0,0,0,0.5), inset 5px 5px 10px rgba(0,0,0,0.4), 1px 1px 1px rgba(255,255,255,0.3);
+ content: &amp;#39;&amp;#39;;
+ height: 100%;
+ left: 0;
+ opacity: 0.8;
+ pointer-events: none;
+ position: absolute;
+ top: 0;
+ width: 100%;
+ z-index: 2;
+}
-table tbody tr td:nth-of-type(2) span { display: none; }
-table tbody tr td:nth-of-type(1):before {
- content: attr(data-set);
- margin-right: 10px;
+.screen-guts {
+ border-bottom: 2px solid #8fc8c8;
+ border-top: 2px solid #8fc8c8;
+ height: calc(100% - 50px);
position: relative;
+ width: 100%;
+ z-index: 0;
}
-
-table tbody tr td:nth-of-type(2) { padding-left: 10px; }
-
-table tbody tr td:nth-of-type(3) {
+.screen-guts:after {
+ border: 2px solid #8fc8c8;
+ color: #8fc8c8;
+ content: &amp;#39;键&amp;#39;;
+ padding: 5px 8px;
position: absolute;
right: 0;
+ top: 5px;
}
-table tbody tr td:nth-of-type(3):before {
- content: attr(data-name);
- margin-right: 10px;
- position: relative;
+.screen-guts h2 {
+ background: #8fc8c8;
+ color: #fff;
+ display: inline-block;
+ font-size: 24px;
+ margin: 0 0 30px 0;
+ padding: 10px;
}
-
-&amp;#47;* Custom individual slopes -- Left *&amp;#47;
-tbody tr:nth-child(1) td:nth-child(1),
-tbody tr:nth-child(1) td:nth-child(2) { top: 60px; }
-tbody tr:nth-child(2) td:nth-child(1),
-tbody tr:nth-child(2) td:nth-child(2) { top: 140px; }
-tbody tr:nth-child(3) td:nth-child(1),
-tbody tr:nth-child(3) td:nth-child(2) { top: 165px; }
-tbody tr:nth-child(4) td:nth-child(1),
-tbody tr:nth-child(4) td:nth-child(2) { top: 220px; }
-tbody tr:nth-child(5) td:nth-child(1),
-tbody tr:nth-child(5) td:nth-child(2) { top: 270px; }
-
-&amp;#47;* Custom individual slopes -- Right *&amp;#47;
-[data-name=&quot;DiGiorno&quot;] { top: 0; }
-[data-name=&quot;Red Baron&quot;] { top: 65px; }
-[data-name=&quot;Private Label&quot;] { top: 100px; }
-[data-name=&quot;Tombstone&quot;] { top: 180px; }
-[data-name=&quot;Totino&amp;#39;s Party Pizza&quot;] { top: 150px; }
-
-&amp;#47;* The custom visual lines *&amp;#47;
-tbody tr:after {
- background: black;
- content: &amp;#39;&amp;#39;;
- height: 1px;
- left: 14.5%;
- position: absolute;
- width: 70%;
+.screen-guts p {
+ color: #8fc8c8;
+ font-size: 18px;
+ margin: 0 0 30px 0;
}
-tbody tr:nth-child(1):after {
- top: 40px;
- transform: rotate(-6deg);
+.screen-guts p.column {
+ column-width: 200px;
}
-tbody tr:nth-child(2):after {
- left: 17.5%;
- top: 130px;
- transform: rotate(-4deg);
- width: 65%;
+.screen-guts p span {
+ text-transform: uppercase;
}
-tbody tr:nth-child(3):after {
- left: 15%;
- top: 125px;
- transform: rotate(-10.25deg);
- width: 70%;
+.screen-guts p span.error {
+ color: #f37c56;
}
-tbody tr:nth-child(4):after {
- left: 16%;
- top: 210px;
- transform: rotate(-4deg);
- width: 68%;
+.screen-guts p span em {
+ text-transform: none;
}
-tbody tr:nth-child(5):after {
- left: 22%;
- top: 222px;
- transform: rotate(-16deg);
- width: 56%;
+.screen-guts button.update-button {
+ background: #889314;
+ bottom: 10px;
+ color: #fff;
+ padding: 15px 20px;
+ position: absolute;
+ right: 0;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;}&lt;/p&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;All that&amp;#8217;s left are some minor styles to make everything look nice on mobile:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@media(max-width:800px) {
- p {
- margin: 2rem 0;
- }
- table td, table th {
- border-bottom: 1px solid grey;
- padding: 10px;
- }
- table td:last-of-type, table th:last-of-type {
- text-align: right;
- }
+.screen-guts button.update-button:hover {
+ background: #515905;
+}
+
+.bottom-controls {
+ background: #8fc8c8;
+ border-radius: 0 0 5px 5px;
+ bottom: 0;
+ display: flex;
+ left: 0;
+ height: 50px;
+ padding: 5px;
+ position: absolute;
+ width: 100%;
+}
+.bottom-controls button.back-button {
+ background: rgba(0,0,0,0.2);
+ color: #fff;
+ line-height: 20px;
+ padding: 8px 20px;
+ text-transform: uppercase;
+}
+.bottom-controls button.back-button:hover {
+ background: rgba(0,0,0,0.6);
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;not-the-most-practical&quot;&gt;Not the most practical&lt;/h2&gt;
-&lt;p&gt;This slope graph concept is far from perfect for use in real-world situations. The fact that you need to manually render each point of data yourself makes this implementation quite annoying for more in-depth projects.&lt;/p&gt;
-&lt;p&gt;But it was fun to mess around with and create, so who cares!&lt;/p&gt;</description>
- <link>https://btxx.org/css-slope-graphs</link>
- <guid isPermaLink="false">https://btxx.org/css-slope-graphs</guid>
- <pubDate>Mon, 07 Jun 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>A Reality Where CSS and JavaScript Don't Exist</title>
- <description>&lt;h1 id=&quot;a-reality-where-css-and-javascript-dont-exist&quot;&gt;A Reality Where CSS and JavaScript Don&amp;#8217;t Exist&lt;/h1&gt;
-&lt;p&gt;2021-11-03&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;This is my personal opinion. Please leave your pitchforks at the door&amp;#8230;&lt;/em&gt;&lt;/p&gt;
-&lt;p&gt;I love CSS. I can spend hours deep diving into a website&amp;#8217;s CSS system and never find myself getting bored. It&amp;#8217;s pretty amazing to see the problems other designers are able to solve with just a little bit of custom styling and determination.&lt;/p&gt;
-&lt;p&gt;I like JavaScript. It serves it&amp;#8217;s purpose and makes complex functionality on the web easier to wrangle in and understand.&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;But I think both should have never come into existence&lt;/em&gt;.&lt;/p&gt;
-&lt;h3 id=&quot;heresey&quot;&gt;Heresey!&lt;/h3&gt;
-&lt;p&gt;I know, I know - this website itself uses a little, teeny-tiny amount of CSS. I am indeed a hypocrite - but did I ever claim that I &lt;em&gt;practice&lt;/em&gt; what I preach? At least this personal website is JavaScript-free&amp;#8230; (apart from a handful of CodePen examples embedded in some of the tutorials).&lt;/p&gt;
-&lt;h3 id=&quot;moving-on&quot;&gt;Moving On&amp;#8230;&lt;/h3&gt;
-&lt;p&gt;I&amp;#8217;m not a complete idiot. I realize that the web has evolved significantly over the years, and to propose that it should have remained stagnant with it&amp;#8217;s original concept of &amp;#8220;paged documents&amp;#8221; is foolish. But that &lt;em&gt;is&lt;/em&gt; what I&amp;#8217;m suggesting - at least, partially.&lt;/p&gt;
-&lt;h3 id=&quot;consistent-boring&quot;&gt;Consistent &amp;#38; Boring&lt;/h3&gt;
-&lt;p&gt;Out there in the multiverse is a reality where the web is a complete borefest. Information is the only driving factor to visit a &amp;#8220;web page&amp;#8221; and PWAs have never come to exist. Custom styling, fancy interactive animations and single-page functionality isn&amp;#8217;t even something that can be implemented. The web is just a system of HTML&amp;#47;plaintext documents sharing information and data. Users browse the web in quick bursts to satisfy their queries or read something interesting. Then, they return to &lt;em&gt;real life&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;My goodness what a &lt;em&gt;beautiful&lt;/em&gt; reality that would be. Consistent, boring and wonderful.&lt;/p&gt;
-&lt;h3 id=&quot;wait---arent-you-a-designer&quot;&gt;&amp;#8220;Wait - Aren&amp;#8217;t You a Designer?&amp;#8221;&lt;/h3&gt;
-&lt;p&gt;Yes - and again more hypocrisy. My livelihood depends on software requiring custom UIs and properly audited UX flows. By suggesting this change I am throwing myself under the bus and putting myself out of work. All my experience would become worthless and the world of software &lt;em&gt;design&lt;/em&gt; would cease to exist.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;I would be okay with that&lt;/strong&gt;. If it meant the web as a whole was a better place - so be it.&lt;/p&gt;
-&lt;h3 id=&quot;a-look-at-the-new-world&quot;&gt;A Look at the &amp;#8220;New World&amp;#8221;&lt;/h3&gt;
-&lt;p&gt;Sometimes it is easier to visualize a concept instead of just discussing it. Below you can find an example of a &amp;#8220;converted&amp;#8221; website[^1] showcasing how sites would look and feel in this design-less reality:&lt;/p&gt;
+&lt;p&gt;The overall styling is fairly simple (which is great for browser support) with only a couple pseudo elements. It&amp;#8217;s important to include the custom &lt;code&gt;Sansation&lt;/code&gt; typeface, since this is what the game uses for most UI elements and terminals. (I&amp;#8217;m loading in this font via my &lt;a href=&quot;https://opentype.netlify.app&quot;&gt;OpenType side project&lt;/a&gt;)&lt;/p&gt;
+&lt;p&gt;The most important properties that truly bring this design together are those associated with the &lt;code&gt;.outer-frame&lt;/code&gt; and &lt;code&gt;.screen&lt;/code&gt; pseudo elements. Both of these elements use custom &lt;code&gt;background-images&lt;/code&gt; that give a little more depth and life to the terminal - in this case fingerprints, dust and smudges.&lt;/p&gt;
+&lt;p&gt;Feel free to swap these image textures out with your own and alter the terminal as you see fit!&lt;/p&gt;</description>
+ <link>https://btxx.org/soma-terminal-css</link>
+ <guid isPermaLink="false">https://btxx.org/soma-terminal-css</guid>
+ <pubDate>Sat, 29 May 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Never Do Spec Work for Free</title>
+ <description>&lt;h1 id=&quot;never-do-spec-work-for-free&quot;&gt;Never Do Spec Work for Free&lt;/h1&gt;
+&lt;p&gt;2022-11-07&lt;/p&gt;
+&lt;p&gt;Your time is valuable and shouldn&amp;#8217;t be taken for granted. Let me say that again for the people in the back: &lt;em&gt;your time is valuable and shouldn&amp;#8217;t be taken for granted&lt;/em&gt;. Time is the most precious commodity we have as human beings, so never waste that time on free &amp;#8220;spec&amp;#8221; work. It&amp;#8217;s never worth it. Ever.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ve had up-and-coming designers reach out to me multiple times and ask specifically about completing spec work or &amp;#8220;challenges&amp;#8221; presented by hiring staff. My first question is normally, &amp;#8220;Are they paying you for it?&amp;#8221;. If the answer is no, then I tell these individuals to move on. The company and the role is not worth their time.&lt;/p&gt;
+&lt;p&gt;There are plenty of companies that respect the hiring process and will pay you for your time. Good on them. These are the places that you should be striving to work with&amp;#47;for. Avoid those who don&amp;#8217;t. If they don&amp;#8217;t respect your time before they even consider hiring you, what makes you think they&amp;#8217;ll respect it once you&amp;#8217;re on the team?&lt;/p&gt;
+&lt;h2 id=&quot;never&quot;&gt;Never?&lt;/h2&gt;
+&lt;p&gt;Never. If a company or individual is considering you for a role, so much so that they are interested in seeing how you would work with them directly, &lt;strong&gt;they need to pay you&lt;/strong&gt;. These companies (large or small) would &lt;em&gt;laugh&lt;/em&gt; at the concept of doing something free for you. Why is their time respected but yours isn&amp;#8217;t?&lt;/p&gt;
+&lt;h2 id=&quot;asking-for-free-spec-work-stop.&quot;&gt;Asking for Free Spec Work? Stop.&lt;/h2&gt;
+&lt;p&gt;If you&amp;#8217;re implementing these practices at your place of business, then you&amp;#8217;re part of the problem. Maybe you need a more robust candidate review process, so those interviewees you are willing to pay for &amp;#8220;code challenges&amp;#8221; or spec work are more finely tuned. Maybe you just need to re-evaluate how much you value the workers you&amp;#8217;re looking to hire.&lt;/p&gt;
+&lt;p&gt;The software world is a strange beast where we have adapted this &amp;#8220;work for free before we &lt;em&gt;think&lt;/em&gt; about paying you&amp;#8221;. Imagine implementing this system for something like a plumber?&lt;/p&gt;
+&lt;p&gt;&amp;#8220;Hey, could you install this new sink for me - for &lt;strong&gt;free&lt;/strong&gt;? Then, if I think you did a good job, I can start to pay you for other work around my house?&amp;#8221;&lt;/p&gt;
+&lt;p&gt;Good luck with that.&lt;/p&gt;
+&lt;h2 id=&quot;be-confident&quot;&gt;Be Confident&lt;/h2&gt;
+&lt;p&gt;This post is mostly targeted to new designers and developers, but can certainly still apply to those with years of experience under their belts. I&amp;#8217;ve been guilty of doing free spec work years ago when I was first starting out (my grey hairs are showing&amp;#8230;) and it &lt;strong&gt;never&lt;/strong&gt; paid off. Literally and figuratively. Learn through my own mistakes and just walk away from people asking you to work for free.&lt;/p&gt;
+&lt;p&gt;No matter what you think about your skill level or real-world experience, you need to have at least a bare-minimum standard for yourself: &lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Never work for free&lt;/strong&gt; &amp;#8211; Unless you &lt;em&gt;choose&lt;/em&gt; to work for free on something like a personal or open source project. That is obviously a different situation!&lt;/p&gt;</description>
+ <link>https://btxx.org/spec</link>
+ <guid isPermaLink="false">https://btxx.org/spec</guid>
+ <pubDate>Mon, 07 Nov 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Migrating from GitHub to sourcehut</title>
+ <description>&lt;h1 id=&quot;migrating-from-github-to-sourcehut&quot;&gt;Migrating from GitHub to sourcehut&lt;/h1&gt;
+&lt;p&gt;2022-11-14&lt;/p&gt;
+&lt;p&gt;It has taken a little bit longer than I anticipated, but I have finally started to port over all my personal open-source projects to &lt;a href=&quot;https://sourcehut.org&quot;&gt;sourcehut.org&lt;/a&gt;. I&amp;#8217;ll get into the &lt;em&gt;why&lt;/em&gt; and &lt;em&gt;how&lt;/em&gt; momentarily, but first let&amp;#8217;s take a look at all the impacted projects:&lt;/p&gt;
+&lt;h2 id=&quot;ported-projects&quot;&gt;Ported Projects&lt;/h2&gt;
&lt;ul&gt;
-&lt;li&gt;Wealthsimple: &lt;a href=&quot;https://www.wealthsimple.com/en-ca/&quot;&gt;Current Website&lt;/a&gt; &amp;#47; &lt;a href=&quot;/etc/html-only/wealthsimple/&quot;&gt;New Version&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://vanillacss.com&quot;&gt;Vanilla CSS&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://1mb.club&quot;&gt;1mb.club&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://pblog.bt.ht&quot;&gt;pblog&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://shinobi.bt.ht&quot;&gt;shinobi&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://audit.bt.ht&quot;&gt;Web Audit&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;As you can see, all the &lt;em&gt;fluff&lt;/em&gt; has been removed from the existing design and only the content remains. No scroll-jacking or extra JavaScript libraries are downloaded. Users can easily skim through all the content and screen readers won&amp;#8217;t struggle through any custom elements. It also loads incredibly fast.&lt;/p&gt;
-&lt;p&gt;Of course, to our[^2] eyes, this design might look ugly or seem as though the site&amp;#8217;s CSS failed to load - but in a reality where this is the standard, it is beautifully minimal. Either way, I find that this was at least a fun thought experiment and hopefully leaves you thinking about how the web &lt;em&gt;could have been&lt;/em&gt; as well.&lt;/p&gt;
-&lt;p&gt;Now, back to designing UIs for the web&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;still-wip&quot;&gt;Still WIP&lt;/h2&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;a href=&quot;https://1kb.club&quot;&gt;1kb.club&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://phpetite.org&quot;&gt;phpetite.org&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;&lt;em&gt;Some others are being worked on but have less &amp;#8220;popularity&amp;#8221;&lt;/em&gt;&lt;/p&gt;
+&lt;h2 id=&quot;why&quot;&gt;Why?&lt;/h2&gt;
+&lt;p&gt;GitHub has landed itself in some hot water with their &lt;a href=&quot;https://githubcopilotlitigation.com/&quot;&gt;recent lawsuit(s) surrounding their Copilot feature&lt;/a&gt;. I was already on the fence about keeping GitHub as my main &amp;#8220;code forge&amp;#8221; after they were scooped up by Microsoft, who then killed off Atom and then started collecting telemetry data through VSCode. This seemed like a good excuse as any to finally leave the platform. The &lt;em&gt;straw&lt;/em&gt;, if you will.&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;&amp;#62;&amp;#62; Sourcehut has entered the chat &amp;#60;&amp;#60;&lt;/em&gt;&lt;/p&gt;
+&lt;p&gt;We, as designers and developers, shouldn&amp;#8217;t be supporting crap like this. I would much rather put my money where my mouth is and directly support a truly transparent alternative[^1]. Although I might only be paying for the &lt;strong&gt;Typical Hacker&lt;/strong&gt; tier on &lt;a href=&quot;https://sourcehut.org/pricing/&quot;&gt;sourcehut&lt;/a&gt;, I like to think that every little bit helps the platform. Even if you choose a different code forge, please consider donating to support independent alternatives!&lt;/p&gt;
+&lt;h2 id=&quot;git-email-jump-into-the-deep-end&quot;&gt;Git Email? Jump into the Deep End&lt;/h2&gt;
+&lt;p&gt;One aspect of sourcehut that initially scared me off was the lack of a proper &amp;#8220;PR-flow&amp;#8221;, web UI-based system[^2]. Instead, reporting bugs, creating tickets, and submitting PATCHES are generally done through regular, plain-text email.&lt;/p&gt;
+&lt;p&gt;In the end, I&amp;#8217;m glad I stuck it out. I&amp;#8217;m still pretty slow with this new workflow (so please be patient with me if you submit a patch on a project!) but it actually seems cleaner. The phrase &amp;#8220;streamlined&amp;#8221; is what comes to mind.&lt;/p&gt;
+&lt;p&gt;And really, if you think about it, at one point in time GitHub&amp;#8217;s PR system would have been &amp;#8220;new&amp;#8221; for most users. Everything takes time to learn. This workflow is no different.&lt;/p&gt;
+&lt;p&gt;Drew (creator of sourcehut) actually put together an extremely helpful guide on getting &lt;a href=&quot;https://git-send-email.io/&quot;&gt;setup with git send-email&lt;/a&gt;. I still reference back to this if&amp;#47;when I need to get up-and-running on a new machine. I highly recommend checking it out.&lt;/p&gt;
+&lt;h2 id=&quot;wrapping-up&quot;&gt;Wrapping Up&lt;/h2&gt;
+&lt;p&gt;That&amp;#8217;s it really. I&amp;#8217;m still in the process of moving over some projects, archiving original GitHub repos and becoming more adapted to the whole sourcehut &amp;#8220;workflow&amp;#8221;. I&amp;#8217;m enjoying it and it feels good to pay for something that is not only useful but open source at its core.&lt;/p&gt;
+&lt;p&gt;Will I be deleting my GitHub profile outright? Maybe. I&amp;#8217;m not sure. For now the first step is removing any dependence I once had on that platform. Baby steps.&lt;/p&gt;
+&lt;p&gt;For those interested, my sourcehut public profile is: &lt;a href=&quot;https://sr.ht/~bt/&quot;&gt;https:&amp;#47;&amp;#47;sr.ht&amp;#47;~bt&amp;#47;&lt;/a&gt;. Maybe I&amp;#8217;ll see you on the other side ;)&lt;/p&gt;
&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;Selected site based on my own personal preference&lt;/li&gt;
-&lt;li&gt;Referring to current users of the web&lt;/li&gt;
+&lt;li&gt;I keep an up-to-date document of all the open source software&amp;#47;communities I pay for on &lt;a href=&quot;/uses&quot;&gt;my &amp;#8220;Uses&amp;#8221; page&lt;/a&gt; for reference.&lt;/li&gt;
+&lt;li&gt;Put your pitchforks and torches away - I&amp;#8217;m aware that a web-facing UI exists on sourcehut as well!&lt;/li&gt;
&lt;/ol&gt;</description>
- <link>https://btxx.org/css-js-mistake</link>
- <guid isPermaLink="false">https://btxx.org/css-js-mistake</guid>
- <pubDate>Wed, 03 Nov 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Web Development on a $200 Chromebook</title>
- <description>&lt;h1 id=&quot;web-development-on-a-200-chromebook&quot;&gt;Web Development on a $200 Chromebook&lt;/h1&gt;
-&lt;p&gt;2020-01-07&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;This blog post was written, edited and tested locally&lt;/em&gt; on a cheap $200 Chromebook. The article draft was composed in Sublime Text. Jekyll (the SSG this website uses) was generated via the Linux Beta Terminal running alongside Chrome OS. It was then pushed to the Github repo from the same Terminal and published automatically to Netlify. But more on that later.&lt;/p&gt;
-&lt;p&gt;First, we need to ask an important question: why use a Chromebook for web development? Maybe a better question might be: why not?&lt;/p&gt;
-&lt;h2 id=&quot;mild-interest-turned-into-an-experiment&quot;&gt;Mild interest turned into an experiment&lt;/h2&gt;
-&lt;p&gt;Looking from the outside, I always liked the concept of the Chrome OS ecosystem. It had a solid list of features that appealed to me, specifically:&lt;/p&gt;
+ <link>https://btxx.org/srht2</link>
+ <guid isPermaLink="false">https://btxx.org/srht2</guid>
+ <pubDate>Mon, 14 Nov 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Stay Hungry</title>
+ <description>&lt;h1 id=&quot;stay-hungry&quot;&gt;Stay Hungry&lt;/h1&gt;
+&lt;p&gt;2018-02-12&lt;/p&gt;
+&lt;p&gt;It can feel daunting in this developer &amp;#47; designer landscape to keep yourself up-to-date with the latest and greatest technologies available. Which new framework should I invest the most time into? Will it even be maintained a couple years down the road? Is it just a fad?&lt;/p&gt;
+&lt;p&gt;What about programming languages? Should I learn as many as possible or should I become an expert in one specialized area? &lt;em&gt;Should designers code?&lt;/em&gt; The list of possible &lt;em&gt;new&lt;/em&gt; things you could be learning continues to grow.
+This is sarcasm. Please don&amp;#8217;t take this seriously&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;jumping-right-in&quot;&gt;Jumping right in&lt;/h2&gt;
+&lt;p&gt;Want my advice? Pick something and dive head first into it. Don&amp;#8217;t worry if it&amp;#8217;s not the most popular programming language or if it&amp;#8217;s a new design system that isn&amp;#8217;t gaining much traction. Do you find it interesting? Awesome - that&amp;#8217;s what matters most. How can you teach yourself something new when you have &lt;em&gt;zero&lt;/em&gt; interest in it?&lt;/p&gt;
+&lt;h2 id=&quot;less-talk-more-action&quot;&gt;Less talk, more action&lt;/h2&gt;
+&lt;p&gt;So what am I currently doing to keep my mind fresh and thinking outside of my comfort zone?&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Blazingly fast boot times&lt;/li&gt;
-&lt;li&gt;Long lasting battery life (roughly 8 hours with consistent usage)&lt;/li&gt;
-&lt;li&gt;Extremely cheap entry point for &amp;#8220;low-end&amp;#8221; devices&lt;/li&gt;
-&lt;li&gt;And, more recently, support for Android &amp;#38; Linux apps&lt;/li&gt;
+&lt;li&gt;Teaching myself the R programming language&lt;/li&gt;
+&lt;li&gt;Deep diving into the &lt;code&gt;ggplot2&lt;/code&gt; package&lt;/li&gt;
+&lt;li&gt;Developing my first side project website using &lt;code&gt;blogdown&lt;/code&gt; and Hugo&lt;/li&gt;
+&lt;li&gt;Trying out Figma as my exclusive design program for the next few months&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;The obvious downside to using a Chromebook is the lack of a &amp;#8220;real&amp;#8221; operating system. A Windows, Mac or Linux machine will always have more flexibility and depth than a simple Chromebook. But I&amp;#8217;ve found that simple is all I need - or want.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Side note:&lt;/strong&gt; &lt;em&gt;I wrote an article not to long ago about &lt;a href=&quot;https://uglyduck.ca/stop-crawling-google/&quot;&gt;blocking Google from my website&lt;/a&gt; and I can see how this current post may come across as hypocritical. Since the search&amp;#47;AMP teams are not that same as the Chrome OS &amp;#47; Chromebook development team, I can view each of those projects based on their own merits. If you still view me as a hypocrite, that&amp;#8217;s fine&lt;/em&gt; :)&lt;/p&gt;
-&lt;h2 id=&quot;my-use-case-ymmv&quot;&gt;My use case (YMMV)&lt;/h2&gt;
-&lt;p&gt;I ended up grabbing the &lt;a href=&quot;https://amzn.to/2Xvx20q&quot;&gt;Acer 11 N7 Chromebook&lt;/a&gt; off of Amazon for $200 (on sale and in Canuck bucks). It comes packed with 4GB of RAM with an Intel Celeron (1.6GHz) and 32GB of storage. Fairly barebones stuff.&lt;/p&gt;
-&lt;p&gt;My day-to-day use cases are fairly straightforward. I work with git, static site generators, WordPress locally and on staging servers, edit documents, send emails and watch stupid YouTube videos. You know, the basics. My dirt-cheap Chromebook handles all of these things with ease.&lt;/p&gt;
-&lt;p&gt;My Chromebook setup is as follows:&lt;/p&gt;
+&lt;p&gt;Programming your brain to learn something new can be frustrating and pull you out of your comfort zone. Don&amp;#8217;t let this become stressful - instead use it as inspiration to push yourself through the struggle.&lt;/p&gt;
+&lt;p&gt;There is no real reason to avoid learning something new outside your current circle of knowledge - only crappy excuses.&lt;/p&gt;
+&lt;p&gt;Get on it.&lt;/p&gt;</description>
+ <link>https://btxx.org/stay-hungry</link>
+ <guid isPermaLink="false">https://btxx.org/stay-hungry</guid>
+ <pubDate>Mon, 12 Feb 2018 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Stop Using Sticky Navigation on Mobile</title>
+ <description>&lt;h1 id=&quot;stop-using-sticky-navigation-on-mobile&quot;&gt;Stop Using Sticky Navigation on Mobile&lt;/h1&gt;
+&lt;p&gt;2019-10-06&lt;/p&gt;
+&lt;p&gt;Stop styling your web elements to be &amp;#8220;sticky&amp;#8221; on mobile. This creates a horrible experience for your users and also looks like trash from a UI perspective. Don&amp;#8217;t style your navigation (or any components for that matter) to be &amp;#8220;sticky&amp;#8221; on mobile. They create poor experiences for your users and take away valuable screen space.&lt;/p&gt;
+&lt;h2 id=&quot;what-do-you-mean-by-sticky&quot;&gt;What do you mean by &amp;#8220;sticky&amp;#8221;?&lt;/h2&gt;
+&lt;p&gt;The concept of &lt;em&gt;sticky&lt;/em&gt; elements include but are not exclusive to:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Linux Beta (ships with &lt;code&gt;git&lt;/code&gt;, etc)&lt;/li&gt;
-&lt;li&gt;Sublime Text (you can always use VSCode if you prefer)&lt;/li&gt;
-&lt;li&gt;Terminal&lt;/li&gt;
-&lt;li&gt;Local by Flywheel (local WordPress development)&lt;/li&gt;
-&lt;li&gt;Figma in Chrome (UI design &amp;#47; mockups)&lt;/li&gt;
+&lt;li&gt;Navigations that follow users as they scroll&lt;/li&gt;
+&lt;li&gt;Chatbot prompt bubbles eating up half the bottom of the screen&lt;/li&gt;
+&lt;li&gt;Banners or modal prompts that pester the user to &amp;#8220;sign up, accept cookies&amp;#8221; etc.&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;That&amp;#8217;s it. I understand other developers may require a lot more than this, but with Linux running in a container alongside Chrome OS you can pretty much run anything you could possibly need (excluding exclusive Mac &amp;#38; Windows apps, of course).&lt;/p&gt;
-&lt;h2 id=&quot;can-a-200-chromebook-be-your-next-web-dev-machine&quot;&gt;Can a $200 Chromebook be your next web dev machine?&lt;/h2&gt;
-&lt;p&gt;For me? Yes. For you? Maybe.&lt;/p&gt;
-&lt;p&gt;I mean, it really just depends on what you need your machine to accomplish. If you can be productive and the apps you use are just as fast and responsive as they would be on a more robust OS - then I say go for it. You don&amp;#8217;t even need to be a cheapo like me, instead you can snag a fancier Chromebook or Google&amp;#8217;s own Pixelbook. There are a ton of options when it comes to Chrome OS based devices.&lt;/p&gt;
-&lt;p&gt;If you wanted to experiment to see if the Chrome OS ecosystem could work with your development flow, you can always check out something like &lt;a href=&quot;https://www.neverware.com/freedownload&quot;&gt;CloudReady&lt;/a&gt; to test on your current machine before pulling the trigger.&lt;/p&gt;
-&lt;p&gt;In the end, it doesn&amp;#8217;t matter what operating system or apps you use to get your development work done - so long as it is productive and easy-to-use.&lt;/p&gt;
-&lt;p&gt;For my current situation, all I need is my cheap little Chromebook.&lt;/p&gt;</description>
- <link>https://btxx.org/chromebook-web-dev</link>
- <guid isPermaLink="false">https://btxx.org/chromebook-web-dev</guid>
- <pubDate>Tue, 07 Jan 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Portable Pi: Cheap Raspberry Pi Zero Hacker Terminal</title>
- <description>&lt;h1 id=&quot;portable-pi-cheap-raspberry-pi-zero-hacker-terminal&quot;&gt;Portable Pi: Cheap Raspberry Pi Zero Hacker Terminal&lt;/h1&gt;
-&lt;p&gt;2020-09-16&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;I recently came across &lt;a href=&quot;https://n-o-d-e.net/zeroterminal3.html&quot;&gt;the incredibly cool design&lt;/a&gt; for an &amp;#8220;ultimate Raspberry Pi computer&amp;#8221;&lt;/em&gt; by NODE and was inspired to create my own &amp;#8220;portable&amp;#8221; Pi device. Although, with my concept, I decided to set a few restrictions on the build:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;I wanted to keep the total cost as low as possible
+&lt;p&gt;&lt;strong&gt;These are bad and you should feel bad for implementing them.&lt;/strong&gt; Spacing and layout is a critical part of a product’s design and greatly impacts the experience of its users. Stop screwing it up with ugly sticky elements.&lt;/p&gt;
+&lt;p&gt;First, let&amp;#8217;s breakdown &amp;#8220;sticky&amp;#8221; navigations and why they&amp;#8217;re terrible. We&amp;#8217;ll also go over some easy solutions to avoid making these bad design decisions in the first place.&lt;/p&gt;
+&lt;h2 id=&quot;the-stalking-navigation&quot;&gt;The stalking navigation&lt;/h2&gt;
+&lt;p&gt;When you make a decision to eat away &lt;code&gt;&amp;#62;50px&lt;/code&gt; of space at the top of the page for your site&amp;#8217;s navigation - you&amp;#8217;re hurting your users. You&amp;#8217;re also making their time interacting with your website more painful.&lt;/p&gt;
+&lt;p&gt;&amp;#8220;Wait!&amp;#8221; I hear sticky-nav defenders exclaim, &amp;#8220;this navigation bar makes it so the user can &lt;em&gt;easily&lt;/em&gt; interact with the site&amp;#8217;s pages!&amp;#8221;&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;What absolute rubbish.&lt;/strong&gt; A user should only see a website&amp;#8217;s navigation when they &lt;em&gt;need to use it&lt;/em&gt;. This isn&amp;#8217;t rocket science.&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s a take a look at the problem:&lt;/p&gt;
+&lt;p&gt;Knowing when to show navigation can be easily solved where the user isn&amp;#8217;t bogged down with a chunk of their screen permanently taken away, all the while still having access to the navigation. This can be fixed by simply understanding the user context at a given time. See below:&lt;/p&gt;
+&lt;p&gt;Here the navigation flows up with the rest of the page as the user scrolls the main content into view. Don&amp;#8217;t worry about creating confusion - the user knows the navigation is still at the top of the page because they &lt;em&gt;watched it scroll out of view&lt;/em&gt;. This is best paired by having a matching navigation in the footer of the page as well. That way, when the user makes it to the end of a specific view they can change pages right in the &amp;#8220;footer&amp;#8221;. No need to scroll back to the top.&lt;/p&gt;
+&lt;h2 id=&quot;the-best-of-both-worlds&quot;&gt;The best of both worlds?&lt;/h2&gt;
+&lt;p&gt;Maybe you want to hide the navigation without losing the flexibility of it always being accessible at the top of the page? This is possible, although I find it still &lt;em&gt;somewhat&lt;/em&gt; intrusive on the user. An easy way achieve this is by displaying the navigation when users perform a specific action, such as:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;including the Pi Zero &lt;em&gt;and&lt;/em&gt; extra hardware&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;I wanted to avoid any custom casings or need for 3D printed materials&lt;/li&gt;
-&lt;li&gt;I wanted to make the full design extremely portable &amp;#47; lightweight&lt;/li&gt;
-&lt;li&gt;I wanted to keep the build as user-friendly as possible (no soldering, odd hacks etc.)&lt;/li&gt;
+&lt;li&gt;Long or multiple upward swipes on the page&lt;/li&gt;
+&lt;li&gt;Pull down menu from top of current view (easily shown to user)&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;With these constraints put in place, I built my very own Raspberry Pi Zero &amp;#8220;hacker&amp;#8221; terminal. You can see the finished product below:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/portable-pi-1.webp&quot; alt=&quot;Portable Pi front&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/portable-pi-2.webp&quot; alt=&quot;Portable Pi back&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m pretty happy with the final outcome and best of all - you can easily recreate this yourself with little-to-no effort!&lt;/p&gt;
-&lt;p&gt;So enough chit-chat - let&amp;#8217;s build this bad-boy!&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Most items in the hardware section are Amazon affiliate links&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;h2 id=&quot;table-of-contents&quot;&gt;Table of Contents&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;&lt;a href=&quot;#expectations&quot;&gt;Setting Expectations&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#hardware&quot;&gt;The Hardware&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#software&quot;&gt;The Software&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#setup&quot;&gt;Getting Setup&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;#summary&quot;&gt;Final Summary&lt;/a&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;&lt;strong&gt;This hardware will not&lt;/strong&gt; replace your laptop or any other &amp;#8220;high-powered&amp;#8221; portable device. Honestly, you&amp;#8217;re mobile phone would (most likely) work better in terms of a compact-sized computer. The concept behind this &amp;#8220;portable pi&amp;#8221; project was to make something &lt;em&gt;for fun&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;Please reserve any sassy comments about how buying a cheap $50 laptop off eBay would be more efficient than building out something like I have done here. You&amp;#8217;re missing the point entirely.&lt;/p&gt;
-&lt;p&gt;Moving on for those still interested&amp;#8230; &lt;/p&gt;
-&lt;p&gt;I live in Canada, so some of the options are based on available hardware near my location. You&amp;#8217;re likely to find similar hardware close to your own country for better pricing &amp;#47; shipping costs.&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: I&amp;#8217;ve decided to use a wireless, USB dongle-based keyboard. You can opt to use a bluetooth-based keyboard, but I just find them more trouble than they are worth (keeping a charge, losing connections, interference from other devices)&lt;/p&gt;
-&lt;/blockquote&gt;
+&lt;h2 id=&quot;navigations-arent-the-only-culprits&quot;&gt;Navigations aren&amp;#8217;t the only culprits&lt;/h2&gt;
+&lt;p&gt;I wish that navigation items were the only sinners of the &amp;#8220;sticky&amp;#8221; position on mobile - but they are not alone. A few other problematic components include:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;SBC: &lt;a href=&quot;https://amzn.to/3jCVXHG&quot;&gt;Raspberry Pi Zero WH&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Storage &amp;#47; OS: &lt;a href=&quot;https://amzn.to/2GHm01R&quot;&gt;64GB Micro SD Card&lt;/a&gt; (Always have an SD backup!)&lt;/li&gt;
-&lt;li&gt;Battery HAT: &lt;a href=&quot;https://amzn.to/3jGq8xp&quot;&gt;Li-ion Battery HAT&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Battery: &lt;em&gt;This depends on your location. I was able to order &lt;a href=&quot;https://www.walmart.ca/en/ip/Brand-New-4-Pcs-2500mAh-TR14500-3-7V-Rechargeable-Li-ion-Battery-for-Flashlight-Torch/PRD3Z73LMZZ3VK9&quot;&gt;online through Walmart&lt;/a&gt;, but if you live in the USA there are plenty of battery-specific vendors available. Find whatever works best for your needs!&lt;/em&gt;&lt;/li&gt;
-&lt;li&gt;Display: &lt;a href=&quot;https://www.buyapi.ca/product/3-5-inch-raspberry-pi-tft-display/&quot;&gt;KeDei 3.5-inch TFT Display&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Keyboard: &lt;a href=&quot;https://amzn.to/2Gqkwt6&quot;&gt;Mini USB Wireless Keyboard&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Adapter: &lt;a href=&quot;https://amzn.to/36I6T3c&quot;&gt;Micro USB OTG Cable&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Chatbot or support &amp;#8220;bubbles&amp;#8221;&lt;/li&gt;
+&lt;li&gt;&amp;#8220;Agree to our cookies&amp;#8221; prompts&lt;/li&gt;
+&lt;li&gt;Time-based pop-up modals&lt;/li&gt;
&lt;/ul&gt;
-&lt;h4 id=&quot;raspberry-pi-zero-wh&quot;&gt;Raspberry Pi Zero WH&lt;/h4&gt;
-&lt;p&gt;You will need a Raspberry Pi Zero W with GPIO header pins already soldered on to the board. (You could also do this yourself manually if you have the tools and skill to do so)&lt;/p&gt;
-&lt;h4 id=&quot;li-ion-battery-hat&quot;&gt;Li-Ion Battery HAT&lt;/h4&gt;
-&lt;p&gt;This HAT holds a single li-ion battery and for our purposes will connect with our Pi Zero via the GPIO header pins. You could also look into double-set battery HATs if that is something you would prefer - for my needs a single rechargeable battery works fine.&lt;/p&gt;
-&lt;p&gt;Since our main &amp;#8220;OS&amp;#8221; is purely terminal based, I find you don&amp;#8217;t really need a li-ion battery with a massive amount of power storage. 2500mAh will easily last a handful of hours mucking about with emails, files and web browsing. Plus, you can always carry a few extras for swapping out on-the-go.&lt;/p&gt;
-&lt;h4 id=&quot;3.5-inch-tft-display&quot;&gt;3.5-inch TFT Display&lt;/h4&gt;
-&lt;p&gt;A simple and fairly cheap touchscreen display. We won&amp;#8217;t require our display to render videos or pretty graphics (since we will be entirely terminal-based) so this works just fine for our needs. I am using version 6.3 for this build.&lt;/p&gt;
-&lt;h4 id=&quot;micro-usb-otg-adapter&quot;&gt;Micro USB OTG Adapter&lt;/h4&gt;
-&lt;p&gt;As mentioned above, this item is optional if you feel more comfortable with using a pure bluetooth keyboard. I just personally prefer this method.&lt;/p&gt;
-&lt;h4 id=&quot;wireless-keyboard&quot;&gt;Wireless Keyboard&lt;/h4&gt;
-&lt;p&gt;In my product demo image at the beginning of the article, I&amp;#8217;m actually using an old Logitech wireless keyboard since this one still hasn&amp;#8217;t arrived. I plan to swap them out once I have it - the Logitech is far to large to be deemed &amp;#8220;portable&amp;#8221;.&lt;/p&gt;
+&lt;p&gt;Every time you implement one of these components, somewhere in the world a puppy dies. Seriously - don&amp;#8217;t be part of the problem and build these things. Push back on &amp;#8220;marketing research&amp;#8221; or team leads who tell you that this crap works. You&amp;#8217;re making the mobile web worse for everyone and setting a terrible precedent for future developers.&lt;/p&gt;
+&lt;p&gt;Stay &lt;em&gt;static&lt;/em&gt;, my friends!&lt;/p&gt;</description>
+ <link>https://btxx.org/sticky-elements</link>
+ <guid isPermaLink="false">https://btxx.org/sticky-elements</guid>
+ <pubDate>Sun, 06 Oct 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Yes, I Still Use jQuery</title>
+ <description>&lt;h1 id=&quot;yes-i-still-use-jquery&quot;&gt;Yes, I Still Use jQuery&lt;/h1&gt;
+&lt;p&gt;2019-04-15&lt;/p&gt;
+&lt;p&gt;I have seen a handful of condescending comments from front-end developers since the newest build of jQuery (&lt;a href=&quot;http://blog.jquery.com/2019/04/10/jquery-3-4-0-released/&quot;&gt;3.4.0&lt;/a&gt;) released a couple of days ago. While I understand not all developers share the same work-style or are using the same tech-stack, dismissive comments towards any &lt;em&gt;useful&lt;/em&gt; library comes off as entitled or elitist.&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Operating System: &lt;a href=&quot;https://www.raspberrypi.org/downloads/raspberry-pi-os/&quot;&gt;Raspberry Pi OS Lite&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Display Driver: &lt;a href=&quot;http://kedei.net/raspberry/raspberry.html&quot;&gt;KeDei 3.5 Driver&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Email: &lt;a href=&quot;https://github.com/LukeSmithxyz/mutt-wizard&quot;&gt;Neomutt&lt;/a&gt; (via Mutt Wizard)&lt;/li&gt;
-&lt;li&gt;Web Browser: &lt;a href=&quot;https://lynx.browser.org/&quot;&gt;Lynx&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Text Editor: &lt;a href=&quot;https://www.nano-editor.org/&quot;&gt;Nano&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;Code Editor: &lt;a href=&quot;https://www.vim.org/&quot;&gt;Vim&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&amp;#8220;Why would you use jQuery nowadays?&amp;#8221; &lt;/li&gt;
+&lt;li&gt;&amp;#8220;People are still developing this library?&amp;#8221;&lt;/li&gt;
+&lt;li&gt;&amp;#8220;Why use jQuery when you can use [insert latest trendy web tech here]&amp;#8221;.&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;I will be setting up this &amp;#8220;portable pi&amp;#8221; via &lt;a href=&quot;https://www.raspberrypi.org/documentation/configuration/wireless/headless.md&quot;&gt;headless installation&lt;/a&gt; with my main &lt;a href=&quot;https://uglyduck.ca/my-pi-desktop/&quot;&gt;Raspberry Pi 4 desktop&lt;/a&gt;. Included below are some quick instructions on how to setup the Raspberry Pi Zero for &lt;code&gt;ssh&lt;/code&gt; access.&lt;/p&gt;
-&lt;h4 id=&quot;preparing-the-microsd-card&quot;&gt;Preparing the microSD card&lt;/h4&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;p&gt;Use Raspberry Pi Imager to write the Raspberry Pi Lite OS to your microSD card
-&lt;ul&gt;
-&lt;li&gt;Once complete, remove the microSD storage device and then re-connect it&lt;/li&gt;
-&lt;/ul&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Navigate to the &lt;code&gt;boot&lt;/code&gt; folder of the microSD device - we will be adding 2 files here
+&lt;p&gt;&lt;strong&gt;I still use jQuery&lt;/strong&gt;. Well, I may not use the library for all projects since every project is different - but I certainly don&amp;#8217;t avoid using it solely because &amp;#8220;its jQuery&amp;#8221;. I&amp;#8217;ve always believed in using the best tools for the job.&lt;/p&gt;
+&lt;h2 id=&quot;use-what-works-for-you&quot;&gt;Use what works for you&lt;/h2&gt;
+&lt;p&gt;If you produce better work in a shorter amount of time using one of the latest and greatest technologies (React, Vue.js, Angular, etc.) then you should absolutely do so. If another developer can be just as productive building their projects with jQuery, what does it matter in the grand scheme of things?&lt;/p&gt;
+&lt;p&gt;My thought-process is this: a large percentage of web projects are done for clients not involved in the day-to-day happenings of the developer world. What they want is a solution to a particular problem. Clients don&amp;#8217;t care how things are done behind the scenes - so long as it is done efficiently and &lt;em&gt;properly&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;I tend to follow these principles when working on a project (with shared equal importance):&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;First add a completely empty file and name it &lt;code&gt;ssh&lt;/code&gt; (no file extension)&lt;/li&gt;
-&lt;li&gt;Next add an empty file named &lt;code&gt;wpa_supplicant.conf&lt;/code&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Open the &lt;code&gt;wpa_supplicant.conf&lt;/code&gt; file in a code &amp;#47; text editor and paste the following (be sure to change &lt;code&gt;country&lt;/code&gt; to your proper country code, as well as properly setting your network name &amp;#47; password):&lt;/p&gt;
-&lt;p&gt;ctrl&lt;em&gt;interface=DIR=&amp;#47;var&amp;#47;run&amp;#47;wpa&lt;/em&gt;supplicant GROUP=netdev
-update_config=1
-country=US&lt;/p&gt;
-&lt;p&gt;network={
- ssid=&quot;Your network name&amp;#47;SSID&amp;#8221;
- psk=&quot;Your WPA&amp;#47;WPA2 security key&amp;#8221;
- key_mgmt=WPA-PSK
-}&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Unmount the microSD device, then place the microSD card in your RPi Zero&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Assemble the Raspberry Pi Zero with the Battery HAT (li-ion battery attached) connected via GPIO pins, and the 3.5 display connected on-top of the battery HAT&amp;#8217;s pins&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Turn on the battery HAT switch to power the RPi Zero. Give the device roughly 90 seconds to perform the initial boot&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;fast performance&lt;/li&gt;
+&lt;li&gt;accessible&lt;/li&gt;
+&lt;li&gt;simple UI&lt;/li&gt;
+&lt;li&gt;intuitive UX&lt;/li&gt;
&lt;/ul&gt;
+&lt;p&gt;As long as all of these items are accomplished, I don&amp;#8217;t care if the project was a direct export from Microsoft Word straight to the web1. If it works great, then it works great.&lt;/p&gt;
+&lt;p&gt;So use whatever tools make you a happier developer, as long as your projects don&amp;#8217;t suffer because of them.&lt;/p&gt;
+&lt;p&gt;1This would obviously be terrible for development, but its just an extreme example&lt;/p&gt;</description>
+ <link>https://btxx.org/still-using-jquery</link>
+ <guid isPermaLink="false">https://btxx.org/still-using-jquery</guid>
+ <pubDate>Mon, 15 Apr 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Stripe Menu Dropdowns (CSS)</title>
+ <description>&lt;h1 id=&quot;stripe-menu-dropdowns-css&quot;&gt;Stripe Menu Dropdowns (CSS)&lt;/h1&gt;
+&lt;p&gt;2020-03-31&lt;/p&gt;
+&lt;p&gt;In a previous article I wrote, &lt;a href=&quot;blog/minimal-css-menu&quot;&gt;Minimal CSS: Dropdown Menus&lt;/a&gt;, I showed how you could create a basic menu dropdown with only 121 bytes of CSS. While this demo is great for simple text-based menu dropdowns, it doesn&amp;#8217;t show just how complex (in a good way) you can make CSS-only menus. So, let&amp;#8217;s do just that.&lt;/p&gt;
+&lt;h2 id=&quot;what-we-want-to-emulate&quot;&gt;What we want to emulate&lt;/h2&gt;
+&lt;p&gt;I think, like most designers, that the UI and web design work from the &lt;a href=&quot;https://stripe.com/&quot;&gt;Stripe&lt;/a&gt; team is pretty fantastic. Their clean approach using subtle animations and minimal elements make for a pleasant experience. Unfortunately, there is one problem with their current dropdown menus on their main website:&lt;/p&gt;
+&lt;p&gt;They don&amp;#8217;t work if JavaScript is disabled.&lt;/p&gt;
+&lt;p&gt;But we can easily fix that. So enough chit-chat, let&amp;#8217;s rip-off their menu design and recreate it with only CSS!&lt;/p&gt;
+&lt;h3 id=&quot;original-stripe-website&quot;&gt;Original (&lt;a href=&quot;https://stripe.com&quot;&gt;Stripe Website&lt;/a&gt;)&lt;/h3&gt;
+&lt;h3 id=&quot;our-recreation-codepen-demo&quot;&gt;Our recreation (&lt;a href=&quot;https://codepen.io/bradleytaunt/full/ExjMjLL&quot;&gt;CodePen Demo&lt;/a&gt;)&lt;/h3&gt;
+&lt;p&gt;Although our redesign is far from an exact replica (some subtle animations are missing which could always be added) - it&amp;#8217;s still impressive what you can do with some bare-bones CSS. Just something to keep in mind the next time you decide to reach for a JavaScript library to implement a similar design.&lt;/p&gt;
+&lt;h2 id=&quot;see-it-live-in-action&quot;&gt;See it live in action&lt;/h2&gt;
+&lt;p&gt;Load in the CodePen below and play around with the menu dropdown. Feel free to re-use, break. share or steal this for any and all purposes. Enjoy!&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/ExjMjLL&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</description>
+ <link>https://btxx.org/stripe-menu-css</link>
+ <guid isPermaLink="false">https://btxx.org/stripe-menu-css</guid>
+ <pubDate>Tue, 31 Mar 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Launching Sublime Text with dmenu on Alpine Linux</title>
+ <description>&lt;h1 id=&quot;launching-sublime-text-with-dmenu-on-alpine-linux&quot;&gt;Launching Sublime Text with dmenu on Alpine Linux&lt;/h1&gt;
+&lt;p&gt;2023-04-13&lt;/p&gt;
+&lt;p&gt;Everyone seems to be running some version of VSCode as their main editor these days. But not me. I find VSCode to be too bloated for my needs - not to mention being built on top of electron instead of &lt;em&gt;native&lt;/em&gt; code. I prefer running programs that don&amp;#8217;t try to devour all of my machine&amp;#8217;s available memory or spike my CPU.&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: the display will turn on but only show a white screen - this is normal&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: It&amp;#8217;s important to remember my personal machine is a ThinkPad X201 with only 6GB of RAM (plan to upgrade to 8GB soon!). Obviously your mileage may vary if you&amp;#8217;re using a beefier laptop or desktop&amp;#8230;&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;h4 id=&quot;connecting-to-your-zero-via-ssh&quot;&gt;Connecting to your Zero via SSH&lt;/h4&gt;
-&lt;p&gt;Open the terminal on your Raspberry Pi desktop and enter the following command:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;ssh pi@raspberrypi.local
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;You will then be asked if you wish to trust this device (say yes), then prompted for the &lt;code&gt;pi&lt;/code&gt; user&amp;#8217;s password - which is &lt;code&gt;raspberry&lt;/code&gt;. After a moment you will be directly connected to your Raspberry Pi Zero. Hooray!&lt;/p&gt;
-&lt;p&gt;We just want to make a couple small configuration changes before going forward (mostly for security):&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Run the command &lt;code&gt;sudo raspi-config&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;Select &amp;#8220;Change User Password&amp;#8221; from the menu and change the password
-&lt;img src=&quot;/public/images/raspi-config.webp&quot; alt=&quot;Raspberry config&quot; /&gt;&lt;/li&gt;
-&lt;li&gt;After that, select &amp;#8220;Network Options&amp;#8221; and change your device name
-&lt;ul&gt;
-&lt;li&gt;This will avoid any conflicts of connecting to newer RPi devices down the line&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;That&amp;#8217;s it!&lt;/p&gt;
-&lt;h4 id=&quot;installing-display-driver&quot;&gt;Installing display driver&lt;/h4&gt;
-&lt;p&gt;Next we will need to download and run the drivers needed for our 3.5-inch display to play nicely with our Pi Zero (just a blank white screen doesn&amp;#8217;t help us much). While connected to our RPi Zero via SSH, run the following commands:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;wget http:&amp;#47;&amp;#47;kedei.net&amp;#47;raspberry&amp;#47;v6_1&amp;#47;LCD_show_v6_1_3.tar.gz
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If you have snail-paced rural internet like I do, now is a good time to go and grab a coffee while this download completes.&lt;/p&gt;
-&lt;p&gt;Once the download has finished, extract the contents and navigate to the new directory and install the driver:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo tar xzf LCD_show_v6_1_3.tar.gz
-cd LCD_show_v6_1_3
-sudo .&amp;#47;LCD35_v
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Once completed, the RPi Zero will reboot and everything should work as expected!&lt;/p&gt;
-&lt;h4 id=&quot;installing-software&quot;&gt;Installing software&lt;/h4&gt;
-&lt;p&gt;I&amp;#8217;m not going to jump into heavy details about installing terminal-based software for this setup. The links I&amp;#8217;ve attached in the software section should provide you with more than enough information to get started. For reference, I&amp;#8217;m using a very basic set of applications:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Neomutt (emails)&lt;/li&gt;
-&lt;li&gt;Lynx (quick and simple web browsing)&lt;/li&gt;
-&lt;li&gt;Nano (writing notes &amp;#47; blog posts in a hurry)&lt;/li&gt;
-&lt;li&gt;Vim (making any config edits or project work)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;There you have it - a terminal-based, portable Raspberry Pi Zero &amp;#8220;hacker&amp;#8221; device. &lt;/p&gt;
-&lt;p&gt;Is it practical? Not really. Can it replace any other &lt;em&gt;portable&lt;/em&gt; device you might own? Probably not. Is it fun to make and experiment on? You bet! And in the end - isn&amp;#8217;t that what matters most with pet Pi projects?&lt;/p&gt;</description>
- <link>https://btxx.org/cheap-portable-pi</link>
- <guid isPermaLink="false">https://btxx.org/cheap-portable-pi</guid>
- <pubDate>Wed, 16 Sep 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Chasing Performance</title>
- <description>&lt;h1 id=&quot;chasing-performance&quot;&gt;Chasing Performance&lt;/h1&gt;
-&lt;p&gt;2017-11-20&lt;/p&gt;
-&lt;h2 id=&quot;update&quot;&gt;Update&lt;/h2&gt;
-&lt;p&gt;This post is no longer relevant since this blog has been redesigned since. I&amp;#8217;m keeping this article up as a point of reference.&lt;/p&gt;
-&lt;hr/&gt;
-&lt;p&gt;So I decided to participate in Smashing Mag&amp;#8217;s Front End Performance Challenge, not only for the potential of winning the prize but to further experiment with optimizing my site. (Web performance is a passion of mine)&lt;/p&gt;
-&lt;p&gt;Below I will breakdown the before &amp;#38; after statistics of my personal site and what changes I made in great detail.&lt;/p&gt;
-&lt;p&gt;I will be using both my homepage and the image-heavy article I recently wrote, The Death of Personality, as the basis for my tests.&lt;/p&gt;
-&lt;h3 id=&quot;lighthouse-score---homepage&quot;&gt;Lighthouse Score - Homepage&lt;/h3&gt;
-&lt;p&gt;Full source original stats &amp;#47;&amp;#47; Full source updated stats&lt;/p&gt;
-&lt;h3 id=&quot;lighthouse-score---article-page&quot;&gt;Lighthouse Score - Article Page&lt;/h3&gt;
-&lt;p&gt;Full source original stats &amp;#47;&amp;#47; Full source updated stats&lt;/p&gt;
-&lt;h3 id=&quot;web-page-test---homepage&quot;&gt;Web Page Test - Homepage&lt;/h3&gt;
-&lt;p&gt;Full source original stats &amp;#47;&amp;#47; Full source updated stats&lt;/p&gt;
-&lt;h3 id=&quot;web-page-test---article-page&quot;&gt;Web Page Test - Article Page&lt;/h3&gt;
-&lt;p&gt;Full source original stats &amp;#47;&amp;#47; Full source updated stats&lt;/p&gt;
-&lt;h3 id=&quot;quick-look&quot;&gt;Quick Look&lt;/h3&gt;
-&lt;p&gt;Though my homepage only made some minor speed performance enhancements, my article post&amp;#8217;s initial load time was slimmed down by a &lt;strong&gt;whopping 4.2 seconds!&lt;/strong&gt; That&amp;#8217;s pretty incredible and very noticeable from an end-user&amp;#8217;s perspective.&lt;/p&gt;
-&lt;h3 id=&quot;so---what-changed&quot;&gt;So - What Changed?&lt;/h3&gt;
-&lt;p&gt;Webfonts&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;m not using any webfonts but instead defaulting to the user&amp;#8217;s OS System Fonts. I love custom typefaces but performance takes just too much of a hit on my personal site to bother with them.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;body {
-font-family: -apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,Oxygen,Ubuntu,Cantarell,&quot;Open Sans&quot;,&quot;Helvetica Neue&quot;,sans-serif,&quot;Sans Serif&quot;,Icons;
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;For reference, there are some things you should to look out for when using custom typefaces:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Readability and accessibility&lt;/li&gt;
-&lt;li&gt;Possible extra overhead loading in a custom @font-face&lt;/li&gt;
-&lt;li&gt;Try to avoid any FOUT, FOIT, FOFT&lt;/li&gt;
-&lt;li&gt;Don&amp;#8217;t go down the rabbit hole of using 3rd party plugins to optimize something as basic as a typeface&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h3 id=&quot;critical-css&quot;&gt;Critical CSS&lt;/h3&gt;
-&lt;p&gt;This part was easy. In order to avoid the weird styling &amp;#8216;pops&amp;#8217; present on some websites when initially loading with slow connections, it&amp;#8217;s best to place all your most critical styling inline and then load your external CSS once everything else has loaded.&lt;/p&gt;
-&lt;p&gt;On top of that, I decided to also implement Filament Group&amp;#8217;s loadCSS function to load my CSS asynchronously. If you are not currently using this in any of your projects; stop reading this and go do it! It&amp;#8217;s a game changer.&lt;/p&gt;
-&lt;h3 id=&quot;critical-javascript&quot;&gt;Critical JavaScript&lt;/h3&gt;
-&lt;p&gt;My personal site only uses a small amount of JavaScript on the article post Jekyll template pages. By using the defer property I can be sure to load the IntersectionObserver API polyfill after the rest of the DOM as finished loading.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;script src=&quot;https:&amp;#47;&amp;#47;cdn.polyfill.io&amp;#47;v2&amp;#47;polyfill.min.js?features=IntersectionObserver&quot; defer&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;I could probably optimize this further by only calling these scripts if an image is actually present in the article post, but this fits my needs nicely as is.&lt;/p&gt;
-&lt;h3 id=&quot;responsive-images&quot;&gt;Responsive Images&lt;/h3&gt;
-&lt;p&gt;The only images I use are those included in supported blog posts, so the first step was making sure to only call iolazy.min.js on those specific template pages. The next step was defaulting to webp image formats with a lossless jpg fall-back with the help of the picture element:&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ve also included responsive image sizes for further optimization based on screen size and loading speeds.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;figure&amp;#62;
-&amp;#60;picture
- &amp;#60;source type=&quot;image&amp;#47;webp&quot;
- data-srcset=&quot;
- &amp;#47;images&amp;#47;articles&amp;#47;webp&amp;#47;flat-design-toggles_p0v2hv_c_scale,w_200.webp 200w,
- &amp;#47;images&amp;#47;articles&amp;#47;webp&amp;#47;flat-design-toggles_p0v2hv_c_scale,w_1400.webp 1400w&quot;
- class=&quot;lazyload&quot;&amp;#47;&amp;#62;
- &amp;#60;img
- sizes=&quot;(max-width: 1400px) 100vw, 1400px&quot;
- data-srcset=&quot;
- &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_200.webp 200w,
- &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_727.webp 727w,
- &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_1065.webp 1065w,
- &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_1400.webp 1400w&quot;
- src=&quot;&amp;#47;images&amp;#47;placeholder.webp&quot;
- alt=&quot;Toggles Comparison&quot;
- class=&quot;lazyload&quot;&amp;#47;&amp;#62;
-&amp;#60;&amp;#47;picture&amp;#62;
-&amp;#60;&amp;#47;figure&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;What about users with JavaScript disabled I hear you ask? It&amp;#8217;s time for noscript to save the day:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;noscript&amp;#62;
- &amp;#60;picture&amp;#62;
- &amp;#60;source type=&quot;image&amp;#47;webp&quot;
- srcset=&quot;
- &amp;#47;images&amp;#47;articles&amp;#47;webp&amp;#47;flat-design-toggles_p0v2hv_c_scale,w_200.webp 200w,
- &amp;#47;images&amp;#47;articles&amp;#47;webp&amp;#47;flat-design-toggles_p0v2hv_c_scale,w_1400.webp 1400w&quot;&amp;#62;
- &amp;#60;img
- sizes=&quot;(max-width: 1400px) 100vw, 1400px&quot;
- srcset=&quot;
- &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_200.webp 200w,
- &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_727.webp 727w,
- &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_1065.webp 1065w,
- &amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_1400.webp 1400w&quot;
- src=&quot;&amp;#47;images&amp;#47;articles&amp;#47;flat-design-toggles_qfre51_c_scale,w_1400.webp&quot;
- alt=&quot;Toggles Comparison&quot;&amp;#47;&amp;#62;
- &amp;#60;&amp;#47;picture&amp;#62;
-&amp;#60;&amp;#47;noscript&amp;#62;
+&lt;p&gt;In case the title of this post didn&amp;#8217;t make this obvious, my editor of choice is Sublime Text. It&amp;#8217;s fast, has a robust plugin ecosystem, and a very friendly community of users. Because of its popularity, troubleshooting any issues you might encounter becomes much easier with the amount of information freely available online.&lt;/p&gt;
+&lt;p&gt;The only minor downside is that it isn&amp;#8217;t &lt;em&gt;fully&lt;/em&gt; open source. Personally, I think it is well worth buying a license directly from the developers to support their efforts.&lt;/p&gt;
+&lt;p&gt;If you haven&amp;#8217;t played around with it yet, I highly recommend giving it a try. At the very least, I guarantee you&amp;#8217;ll be impressed with the editor&amp;#8217;s performance and speed! [&amp;#60;#1&amp;#62;]&lt;/p&gt;
+&lt;h2 id=&quot;one-small-problem&quot;&gt;One Small Problem&amp;#8230;&lt;/h2&gt;
+&lt;p&gt;Sublime is precompiled against glibc and Alpine uses musl. This makes things a little difficult. Luckily we can get around this roadblock by falling back on flatpak (which is unfortunately still locked at version 3 for Sublime).&lt;/p&gt;
+&lt;p&gt;You&amp;#8217;ll need to install flatpak, give your current user permission to install flatpak apps, and then install Sublime.&lt;/p&gt;
+&lt;p&gt;(The following snippets assume you are using &lt;code&gt;doas&lt;/code&gt;. If you are using &lt;code&gt;sudo&lt;/code&gt;, be sure to swap accordingly)&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;apk add flatpak
+adduser &amp;#60;YourUsername&amp;#62; flatpak
+flatpak remote-add --user --if-not-exists flathub https:&amp;#47;&amp;#47;flathub.org&amp;#47;repo&amp;#47;flathub.flatpakrepo
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;https-caching&quot;&gt;HTTPS &amp;#38; Caching&lt;/h3&gt;
-&lt;p&gt;The Lighthouse audit also suggested implementing an SSL certificate (something I&amp;#8217;ve been meaning to do for a while anyway) and also utilize CDN caching. So it was Cloudflare to the rescue!&lt;/p&gt;
-&lt;p&gt;Since my website is hosted through Github, setting up a &lt;em&gt;free&lt;/em&gt; SSL certificate and enabling site-wide caching was a breeze. If you&amp;#8217;re interested in setting this up yourself, step-by-step instructions can be found here.&lt;/p&gt;
-&lt;p&gt;This simple update helped boost my best practices score from a 69 to a 94. Yet another performance enhancement you should be enabling for all your current and future projects!&lt;/p&gt;
-&lt;h2 id=&quot;performance-happiness&quot;&gt;Performance Happiness&lt;/h2&gt;
-&lt;p&gt;Overall I&amp;#8217;m pretty content with the &lt;strong&gt;major&lt;/strong&gt; performance boost my site has received from these fairly &lt;em&gt;minor&lt;/em&gt; updates and I hope this article inspires other designers and developers to jump into updating their own site&amp;#47;app performance speeds. The pay-off is truly worth it!&lt;/p&gt;
-&lt;h3 id=&quot;some-extra-reading-material&quot;&gt;Some Extra Reading Material&lt;/h3&gt;
-&lt;ul&gt;
-&lt;li&gt;Web Performance in Action by Jeremy Wagner&lt;/li&gt;
-&lt;li&gt;Responsible Responsive Design by Scott Jehl&lt;/li&gt;
-&lt;li&gt;Designing with Progressive Enhancement: Building the Web that Works for Everyone by Todd Parker, Scott Jehl,‎ Maggie Costello Wachs,‎ Patty Toland&lt;/li&gt;
-&lt;/ul&gt;</description>
- <link>https://btxx.org/chasing-performance</link>
- <guid isPermaLink="false">https://btxx.org/chasing-performance</guid>
- <pubDate>Mon, 20 Nov 2017 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>CSS Character Unit</title>
- <description>&lt;h1 id=&quot;css-character-unit&quot;&gt;CSS Character Unit&lt;/h1&gt;
-&lt;p&gt;2019-04-23&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;When it comes to proper readability with large portions of text&lt;/em&gt;, the golden standard is to have no more than &lt;a href=&quot;http://webtypography.net/2.1.2&quot;&gt;75 characters per line&lt;/a&gt;. This is easy to achieve in the world of print but on the responsive, ever-changing web - statically defined typography becomes a little more difficult.&lt;/p&gt;
-&lt;p&gt;You could go through the long process of setting up media queries for every possible screen size, adjusting text size and padding accordingly - but there is a &lt;em&gt;better way&lt;/em&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;introducing-character-units&quot;&gt;Introducing character units&lt;/h2&gt;
-&lt;p&gt;By setting your main containers or text elements with the CSS character unit (&lt;code&gt;ch&lt;/code&gt;), you need to set the character length only once. Let&amp;#8217;s look at a simple example for reference.&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s say you have an article which will fill the entire length of the screen. Something like this:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;container&quot;&amp;#62;
- &amp;#60;p&amp;#62;Reprehenderit aliqua in quis eiusmod ea culpa aliquip. Velit duis est irure voluptate occaecat labore laborum ut pariatur ex veniam deserunt esse est. Esse sunt exercitation id reprehenderit deserunt elit commodo sit ullamco amet commodo magna consequat. Excepteur voluptate tempor consectetur eu aliqua aliquip laboris aliquip veniam excepteur labore.&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;p&amp;#62;Voluptate excepteur sint magna ipsum occaecat irure sit. In occaecat excepteur in id ullamco id est incididunt irure et. Consectetur veniam exercitation occaecat exercitation labore nulla excepteur irure ex anim. Commodo sint anim non ad excepteur exercitation eiusmod Lorem nisi. Tempor ut ipsum do adipisicing dolore.&amp;#60;&amp;#47;p&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
+&lt;p&gt;Congrats. You now have setup &lt;code&gt;flatpak&lt;/code&gt; on your machine! Next we install Sublime Text:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;flatpak install flathub com.sublimetext.three
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;With this structure, you might normally set the default &lt;code&gt;max-width&lt;/code&gt; property with your desired maximum width (whatever you believe is the best reading length):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.container {
- max-width: 38em;
-}
+&lt;p&gt;You could stop now and simply open Sublime anytime by running the following command in your terminal:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;flatpak run com.sublimetext.three
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This works - but it isn&amp;#8217;t ideal. Time for character units to save the day! You will still target the &lt;code&gt;max-width&lt;/code&gt; property but this time we set it to use the &lt;code&gt;ch&lt;/code&gt; value like so:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.container {
- max-width: 66ch;
-}
+&lt;p&gt;This works perfectly fine but I find it a little cumbersome. I would much rather open my programs directly through dmenu. Let&amp;#8217;s set that up.&lt;/p&gt;
+&lt;h2 id=&quot;creating-system-links&quot;&gt;Creating System Links&lt;/h2&gt;
+&lt;pre&gt;&lt;code&gt;doas ln -s ~&amp;#47;.local&amp;#47;share&amp;#47;flatpak&amp;#47;exports&amp;#47;bin&amp;#47;com.sublimetext.three &amp;#47;usr&amp;#47;bin&amp;#47;sublimetext
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This setting makes sure content will not exceed more than 66 characters per line, making for a better reading experience with little effort.&lt;/p&gt;
-&lt;h2 id=&quot;browser-support&quot;&gt;Browser support&lt;/h2&gt;
-&lt;p&gt;The character unit attribute has pretty great support - even partial IE11! Check out the supported browsers &lt;a href=&quot;https://caniuse.com/#feat=ch-unit&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;</description>
- <link>https://btxx.org/character-unit</link>
- <guid isPermaLink="false">https://btxx.org/character-unit</guid>
- <pubDate>Tue, 23 Apr 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Browser History Sucks</title>
- <description>&lt;h1 id=&quot;browser-history-sucks&quot;&gt;Browser History Sucks&lt;/h1&gt;
-&lt;p&gt;2019-04-20&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;Have you ever needed to step back through your browser history&lt;/em&gt; to find a particular site or product? Do you remember that experience being good? Most likely not.&lt;/p&gt;
-&lt;p&gt;Much like printers, the design of browser history interfaces hasn&amp;#8217;t changed in years. This would be fine if these UIs had been well thought out and optimized for an easy user experience - but they weren&amp;#8217;t.&lt;/p&gt;
-&lt;p&gt;Browser history views rely on the user&amp;#8217;s own memory for more in-depth searches. This defeats the whole purpose of having a robust, documented history. The browser should be doing this heavy-lifting.&lt;/p&gt;
-&lt;h2 id=&quot;what-browsers-get-wrong&quot;&gt;What browsers get wrong&lt;/h2&gt;
-&lt;p&gt;Modern browsers give the general public too much credit when it comes to memory (I don&amp;#8217;t mean this as an insult!). To assume users remember the URL or site name when browsing random pages is short-sighted. I find myself asking these types of questions when jumping back into my view history far too often:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;&amp;#8220;That article had &lt;em&gt;something&lt;/em&gt; to do with CSS&amp;#8230;&amp;#8221;&lt;/li&gt;
-&lt;li&gt;&amp;#8220;I remember seeing a beautifully designed site a month ago but have no clue what the URL was&amp;#8230;&amp;#8221;&lt;/li&gt;
-&lt;li&gt;&amp;#8220;My browser crashed and I can&amp;#8217;t recall that [example website] I had pinned in my tab for weeks&amp;#8230;&amp;#8221;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;For reference, let&amp;#8217;s take a look at the current Chrome (73) history view:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/browser-history-01.webp&quot; alt=&quot;Default Chrome History&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;As you may have noticed - this UI is lackluster at best. An oversimplified search field in the header is the only means of filtering items.&lt;/p&gt;
-&lt;h2 id=&quot;why-not-use-extensions&quot;&gt;Why not use extensions?&lt;/h2&gt;
-&lt;p&gt;I know using browser extensions or tagging favorites can alleviate some of these issues. This is great, but why not simplify everything by having these features &lt;em&gt;inside&lt;/em&gt; the history view? If an extension can add these features, why not have those extras built-in?&lt;/p&gt;
-&lt;h2 id=&quot;two-subtle-improvements&quot;&gt;Two subtle improvements&lt;/h2&gt;
-&lt;p&gt;A little goes a long way. With just two small changes, we can drastically increase the history view&amp;#8217;s UX.&lt;/p&gt;
-&lt;p&gt;We start by adding a date picker. Users open the new calendar icon to filter by days, months or years before searching. Seems trivial, but this saves the headache of filtering through all saved history.&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/browser-history-02.webp&quot; alt=&quot;Chrome History with date picker&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;The second small functional change we can make is including extra subcategories. These new options allow users to focus their searches based on:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Session length&lt;/li&gt;
-&lt;li&gt;Number of return visits&lt;/li&gt;
-&lt;li&gt;Last restored tabs&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h3 id=&quot;session-length&quot;&gt;Session length&lt;/h3&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/browser-history-03.webp&quot; alt=&quot;Chrome History by session length&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;Allow users to display their history filtered by session duration. This helps when searching for an stagnant page or pinned site during a user&amp;#8217;s long session. An example default would allow filtering by:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;longest to shortest&lt;/li&gt;
-&lt;li&gt;shortest to longest&lt;/li&gt;
-&lt;li&gt;pinned tabs&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h3 id=&quot;return-visits&quot;&gt;Return visits&lt;/h3&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/browser-history-04.webp&quot; alt=&quot;Chrome History by return visits&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;When users make repeat visits to a site or web app, the browser should keep a record of return sessions. This allows the user to refine their search by many or singular visits.&lt;/p&gt;
-&lt;h3 id=&quot;last-restored-tabs&quot;&gt;Last restored tabs&lt;/h3&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/browser-history-05.webp&quot; alt=&quot;Chrome History by restored tabs&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;A basic concept, but the ability for users to view all previous instances of restored tabs is helpful. This would fix most edge cases not covered by the other two categories.&lt;/p&gt;
-&lt;h2 id=&quot;far-from-perfect&quot;&gt;Far from perfect&lt;/h2&gt;
-&lt;p&gt;The Chrome (or any browser for that matter) browser history view is simplistic to a fault. The current UI is prone to human error, since it makes assumptions and relies heavily on user memory.&lt;/p&gt;
-&lt;p&gt;These are simple fixes that attempt to boost the basic UX of the history view. Are these concepts absolutely perfect? Not at all. Is it at least an improvement? I believe it is. When products decrease the effort required of it&amp;#8217;s users, I see that as a positive.&lt;/p&gt;</description>
- <link>https://btxx.org/browser-history-sucks</link>
- <guid isPermaLink="false">https://btxx.org/browser-history-sucks</guid>
- <pubDate>Sat, 20 Apr 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Bidirectional Scrolling: Why Not Both?</title>
- <description>&lt;h1 id=&quot;bidirectional-scrolling-why-not-both&quot;&gt;Bidirectional Scrolling: Why Not Both?&lt;/h1&gt;
-&lt;p&gt;2020-11-09&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;I recently came across Adam Silver&amp;#8217;s post &lt;a href=&quot;https://adamsilver.io/articles/bidirectional-scrolling-whats-not-to-like/&quot;&gt;about the merits and pitfalls of bidirectional scrolling&lt;/a&gt;&lt;/em&gt; and found myself conflicted with the design arguments put forth in the article. It&amp;#8217;s a very good article overall, and I suggest giving it a read before digging deeper into my post here.&lt;/p&gt;
-&lt;h2 id=&quot;the-premise&quot;&gt;The Premise&lt;/h2&gt;
-&lt;p&gt;The original article argues that displaying page content via horizontal scrolling (and therefore slightly hiding interactive content) creates a few major issues:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;it increases the chance users won&amp;#8217;t see it&lt;/li&gt;
-&lt;li&gt;there&amp;#8217;s a greater reliance on digital literacy&lt;/li&gt;
-&lt;li&gt;it&amp;#8217;s generally more labour intensive for users&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Adam also makes a solid statement here:&lt;/p&gt;
+&lt;p&gt;Now that those directories are linked, simply open dmenu and start typing &lt;code&gt;sublimetext&lt;/code&gt;. Done and done. No more terminal commands needed to open Sublime!&lt;/p&gt;
+&lt;hr/&gt;
+&lt;p&gt;1. I am aware that using a terminal-based editor such as vim or emacs would be even &lt;em&gt;more&lt;/em&gt; efficient. For my own personal use I find more classical &amp;#8220;IDE&amp;#8221; applications to work best for me.
+&lt;/p&gt;</description>
+ <link>https://btxx.org/sublime</link>
+ <guid isPermaLink="false">https://btxx.org/sublime</guid>
+ <pubDate>Thu, 13 Apr 2023 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>I Want to Suckless and You Can Too</title>
+ <description>&lt;h1 id=&quot;i-want-to-suckless-and-you-can-too&quot;&gt;I Want to Suckless and You Can Too&lt;/h1&gt;
+&lt;p&gt;2022-12-23&lt;/p&gt;
+&lt;h2 id=&quot;the-desire-to-suckless&quot;&gt;The Desire to Suckless&lt;/h2&gt;
+&lt;p&gt;While I have been happy with my &lt;a href=&quot;/alpine&quot;&gt;previous desktop setup&lt;/a&gt; using Wayland on Alpine Linux, I just couldn&amp;#8217;t shake the urge to fully embrace the &lt;a href=&quot;https://suckless.org&quot;&gt;suckless ecosystem&lt;/a&gt;. Although, this meant ditching Wayland and returning to X11, which is apparently the new &amp;#8220;cool thing to hate&amp;#8221; in Linux land. At least, that&amp;#8217;s what I&amp;#8217;ve seen online lately.&lt;/p&gt;
+&lt;p&gt;But I&amp;#8217;m getting ahead of myself&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;what-is-suckless&quot;&gt;What is Suckless?&lt;/h2&gt;
+&lt;p&gt;I&amp;#8217;m not going to spend too much time repeating what you can &lt;a href=&quot;https://suckless.org/philosophy/&quot;&gt;already read on the suckless.org website itself&lt;/a&gt;, but in a nutshell:&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;Having to scroll down and across in a zig zag fashion can be tiresome, especially for people with motor impairments.&lt;/p&gt;
+&lt;p&gt;Software with a focus on simplicity, clarity, and frugality.&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;p&gt;But I don&amp;#8217;t believe these issues create a need to completely remove the horizontal &amp;#8220;scrolling&amp;#8221; design altogether. You can still implement the &lt;code&gt;See All Items&lt;/code&gt; category link, while allowing the horizontal content to load in &lt;em&gt;dynamically&lt;/em&gt;. Balance is always key.&lt;/p&gt;
-&lt;h2 id=&quot;not-all-at-once-please&quot;&gt;Not All At Once, Please!&lt;/h2&gt;
-&lt;p&gt;So what exactly do I mean by &lt;em&gt;dynamically&lt;/em&gt; loading in horizontal content?&lt;/p&gt;
+&lt;p&gt;The developers also pride themselves on catering to &lt;em&gt;advanced and experienced computer users&lt;/em&gt;, which is actually a refreshing take in my opinion. There are enough pre-existing open source solutions for non-technical or average Linux users looking for a desktop system. Having an option that requires users to deep-dive into the code, compile the programs manually, and better understand the software they are running is a welcome addition.&lt;/p&gt;
+&lt;p&gt;This process of &amp;#8220;owing your software&amp;#8221; was one of the core concepts that initially grabbed my attention. I&amp;#8217;ve always been mildly mediocre at reading and writing C (ie. enough to be dangerous), so the thought of jumping head first into a system that would require me to better learn that language was tempting[^1]. And that temptation was enough to give it a shot!&lt;/p&gt;
+&lt;h2 id=&quot;lets-get-started&quot;&gt;Let&amp;#8217;s Get Started&lt;/h2&gt;
+&lt;p&gt;So I made my decision. I would (at the very least) &lt;em&gt;try&lt;/em&gt; switching my daily driver over to a completely &amp;#8220;suckless&amp;#8221; system. But I was immediately faced with my first obstacle: &lt;em&gt;which distro should I use&lt;/em&gt;?&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m sure many would suggest Gentoo, since it follows the principles of suckless more than any other distribution on the market. But I don&amp;#8217;t hate myself enough to go down that insane rabbit-hole. I&amp;#8217;m hardly advanced enough to take on such a steep challenge, not to mention my plan was to build out a &amp;#8220;setup script&amp;#8221; so others could roll their own suckless build. Something like that looked daunting under Gentoo. Maybe in the future&amp;#8230;&lt;/p&gt;
+&lt;p&gt;So what&amp;#8217;s left? Void? Arch? Something fresh, like Metis? I really didn&amp;#8217;t know the &amp;#8220;best&amp;#8221; choice. Maybe there were just &lt;em&gt;too many&lt;/em&gt; options? &lt;/p&gt;
+&lt;p&gt;Luckily, I did know of a distro that was my go-to for most projects&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;trying-alpine&quot;&gt;Trying Alpine&lt;/h2&gt;
+&lt;p&gt;Alpine Linux is one of the best distributions available. If you disagree, you clearly haven&amp;#8217;t achieved galaxy-brain levels of intelligence and I feel sorry for you[^2].&lt;/p&gt;
+&lt;p&gt;Having just rolled my own &lt;a href=&quot;https://git.sr.ht/~bt/alpine-linux-setup&quot;&gt;installer script&lt;/a&gt; for Wayland&amp;#47;Sway on Alpine, I figured why not piggyback off that existing project? Work smart not hard, right? So I started putting together an absolute &lt;em&gt;bare minimum&lt;/em&gt; list of requirements I needed to get a proper desktop system running:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;The user is shown the top 4 items in a given category&lt;/li&gt;
-&lt;li&gt;From there, the user can use the &lt;code&gt;See All Items&lt;/code&gt; link to jump into a full category page&lt;/li&gt;
-&lt;li&gt;If they so desire, they can begin scroll horizontally in a given category row
+&lt;li&gt;working suspend&amp;#47;awake&lt;/li&gt;
+&lt;li&gt;working audio&lt;/li&gt;
+&lt;li&gt;working wifi&amp;#47;networking&lt;/li&gt;
+&lt;li&gt;reduced screen tearing (X11 gave me problems in the past with this)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;As you can see, I have very low expectations. But there were issues&amp;#8230;.&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;I could not build my blog locally (built via Jekyll) since the &lt;code&gt;sass-embedded&lt;/code&gt; dependencies has not been built against musl-libc.&lt;/li&gt;
+&lt;li&gt;VSCodium would require the extra &amp;#8220;bloat&amp;#8221; of the flatpak manager (not to mention the spotty support some applications have through flatpak&amp;#47;snap).&lt;/li&gt;
+&lt;li&gt;The distro&amp;#47;system &lt;em&gt;feels&lt;/em&gt; like it was better designed with Wayland in mind. Too often I felt like I was losing an uphill battle wrestling against Alpine.&lt;/li&gt;
+&lt;/ol&gt;
+&lt;h2 id=&quot;getting-sucked-into-the-void&quot;&gt;Getting Sucked into the Void&lt;/h2&gt;
+&lt;p&gt;After mentioning my struggles on Mastodon, some &lt;a href=&quot;https://fosstodon.org/@tdarb/109554576434981872&quot;&gt;helpful friends suggested taking a look at Void&lt;/a&gt;. I always knew of the project but never used it as a &amp;#8220;daily driver&amp;#8221;. Since this was overall one &lt;em&gt;large&lt;/em&gt; experiment, I figured I&amp;#8217;d give it a shot.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;m glad I did. Void Linux is &lt;em&gt;pretty great&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;The installer seemed more complex than Alpine at first, but I found an excellent walkthrough &lt;a href=&quot;https://linuxiac.com/void-linux-installation/&quot;&gt;here&lt;/a&gt; (which I was more beginner-friendly than the official docs). Once everything was set, it was time to run my suckless &amp;#8220;installer&amp;#8221;.&lt;/p&gt;
+&lt;h2 id=&quot;introducing-void-suck&quot;&gt;Introducing void-suck&lt;/h2&gt;
+&lt;p&gt;If you don&amp;#8217;t care about the nitty-gritty details, feel free to just jump over to the &lt;a href=&quot;https://git.sr.ht/~bt/void-suck&quot;&gt;void-suck repo on scourehut&lt;/a&gt; and read through the code yourself. There is nothing groundbreaking here. A huge inspiration came from &lt;a href=&quot;https://github.com/mad-ara/void-rice&quot;&gt;mad-ara&amp;#8217;s &amp;#8220;void-rice&amp;#8221; project on Github&lt;/a&gt; - so a big thanks to him for making that project in the first place!&lt;/p&gt;
+&lt;p&gt;You can find the basic instructions in the README of the project itself, but it pulls in just the required dependencies along with my own custom suckless tools. You can easily swap out these with your own or simply default to the standard ones provided by &lt;a href=&quot;https://suckless.org&quot;&gt;suckless.org&lt;/a&gt;.&lt;/p&gt;
+&lt;p&gt;Everything &lt;em&gt;should&lt;/em&gt; work out of the box, but in case it doesn&amp;#8217;t please &lt;a href=&quot;https://todo.sr.ht/~bt/void-suck&quot;&gt;open a ticket&lt;/a&gt; or &lt;a href=&quot;https://lists.sr.ht/~bt/void-suck&quot;&gt;submit a patch&lt;/a&gt;. I&amp;#8217;m certain I overlooked some items!&lt;/p&gt;
+&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
+&lt;p&gt;We&amp;#8217;ll see how things go. So far I&amp;#8217;m enjoying my time with a much simpler desktop and the &amp;#8220;forced&amp;#8221; push towards getting better with C is an added bonus. I still love Alpine, but Void is slowly winning me over&amp;#8230;&lt;/p&gt;
+&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
+&lt;ol&gt;
+&lt;li&gt;I find this to be the best way to learn new things. Reading technical books are helpful, but concepts never stick with me unless I am forced to implement them.&lt;/li&gt;
+&lt;li&gt;This is a joke. Alpine is certainly not for everyone. There are many more &amp;#8220;fully featured&amp;#8221; distros available and everyone should use what they enjoy! Try not to take my blog posts so seriously&amp;#8230;&lt;/li&gt;
+&lt;/ol&gt;</description>
+ <link>https://btxx.org/suckless</link>
+ <guid isPermaLink="false">https://btxx.org/suckless</guid>
+ <pubDate>Fri, 23 Dec 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Super Mario Blocks in CSS</title>
+ <description>&lt;h1 id=&quot;super-mario-blocks-in-css&quot;&gt;Super Mario Blocks in CSS&lt;/h1&gt;
+&lt;p&gt;2019-02-15&lt;/p&gt;
+&lt;p&gt;Just because we can, let&amp;#8217;s make a quick demo on how to build interactive elements based off the original Mario punch blocks.&lt;/p&gt;
+&lt;p&gt;What our final product will look like:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/mario-block.png&quot; alt=&quot;Mario blocks cretaed with CSS&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/JjEPOVe&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;p&gt;The set of Mario blocks doesn&amp;#8217;t require a huge amount of effort for it&amp;#8217;s &lt;code&gt;html&lt;/code&gt; structure, we only need:&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Once they reach the end of the row, 4 more items will load in automatically to expand the list&lt;/li&gt;
-&lt;li&gt;To avoid a never-ending list, it might be best to limit total row items to ~20 items. At this point the UI could prompt the user to &lt;code&gt;View All Items&lt;/code&gt; in that category.&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Parent div for each block&lt;/li&gt;
+&lt;li&gt;Checkbox input&lt;/li&gt;
+&lt;li&gt;Checkbox label&lt;/li&gt;
+&lt;li&gt;Inner label divs to represent the block &amp;#8220;dots&amp;#8221;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;By loading the row content in piece-by-piece, initial loads for users will be faster and subsequent list items will load quickly as well (since they would limit to a set default - in this case only 4).&lt;/p&gt;
-&lt;h2 id=&quot;final-improvements&quot;&gt;Final Improvements&lt;/h2&gt;
-&lt;p&gt;Below you can find a quick, static version of this concept. Here you can see the horizontal list items, along with their corresponding &lt;code&gt;See All Items&lt;/code&gt; links. You&amp;#8217;ll have to use your imagination for how new items would load once you each the end of a horizontal row. (I&amp;#8217;m too lazy to spend extra time building out that functionality for a hypothetical blog post)&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/pobxpXz&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;</description>
- <link>https://btxx.org/bidirectional-scrolling</link>
- <guid isPermaLink="false">https://btxx.org/bidirectional-scrolling</guid>
- <pubDate>Mon, 09 Nov 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Better Box Shadows</title>
- <description>&lt;h1 id=&quot;better-box-shadows&quot;&gt;Better Box Shadows&lt;/h1&gt;
-&lt;p&gt;2019-01-08&lt;/p&gt;
-&lt;p&gt;Box shadow on HTML elements has been widely supported across most browsers for a while now, but I find the default options don&amp;#8217;t allow for much visual manipulation of the shadows in general.&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s take a look at a default configuration of &lt;code&gt;box-shadow&lt;/code&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.box-container {
- box-shadow: 0 4px 8px rgba(0,0,0,0.3);
-}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;In the example above the first property number is the origin of the &lt;em&gt;x-axis&lt;/em&gt;, the second number is the origin of the &lt;em&gt;y-axis&lt;/em&gt; and the third is the amount of &lt;em&gt;blur&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;We should also add some minimal styling to cleanup the &lt;code&gt;.box-container&lt;/code&gt; a little bit for our example:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;box-container&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+&lt;p&gt;&lt;strong&gt;Sidenote&lt;/strong&gt;: This is only how &lt;em&gt;I&lt;/em&gt; chose to add the inner dots to the Mario blocks. There are many other ways to create these, so please feel free to implement them however you see fit.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;!-- Main parent block --&amp;#62;
+&amp;#60;div class=&quot;mario-block&quot;&amp;#62;
+ &amp;#60;!-- Checkbox input (disabled by default) --&amp;#62;
+ &amp;#60;input type=&quot;checkbox&quot; id=&quot;1&quot; disabled&amp;#62;
-.box-container {
- box-shadow: 0 4px 8px rgba(0,0,0,0.3);
- &amp;#47;* Styles to make it less ugly *&amp;#47;
- background: white;
- border-radius: 10px;
- border: 1px solid #eee;
- height: 200px;
- padding: 10px;
- position: relative;
- width: 250px;
-}
+ &amp;#60;!-- Checkbox label --&amp;#62;
+ &amp;#60;label for=&quot;1&quot;&amp;#62;
+ &amp;#60;!-- Inner dots for blocks --&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;label&amp;#62;
+
+&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Which would render as this:&lt;/p&gt;
-&lt;p&gt;Not bad - but we can do a lot better than this.&lt;/p&gt;
-&lt;h2 id=&quot;please-sir-i-want-some-more-depth&quot;&gt;Please sir, I want some more (depth)&lt;/h2&gt;
-&lt;p&gt;We just need to add a simple child &lt;code&gt;div&lt;/code&gt; (or use a &lt;code&gt;pseudo&lt;/code&gt; element if you prefer) inside our main element we want to apply the shadow to:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;box-container&quot;&amp;#62;
- &amp;#60;div class=&quot;box-container-inner&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+&lt;p&gt;Now we just add as many default blocks we want, along with the interactive punch block (&lt;code&gt;.mario-block--question&lt;/code&gt;):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;mario-block&quot;&amp;#62;
+ &amp;#60;input type=&quot;checkbox&quot; id=&quot;1&quot; disabled&amp;#62;
+ &amp;#60;label for=&quot;1&quot;&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;label&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
+
+&amp;#60;div class=&quot;mario-block&quot;&amp;#62;
+ &amp;#60;input type=&quot;checkbox&quot; id=&quot;2&quot; disabled&amp;#62;
+ &amp;#60;label for=&quot;2&quot;&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;label&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
+
+&amp;#60;div class=&quot;mario-block mario-block--question&quot;&amp;#62;
+ &amp;#60;input type=&quot;checkbox&quot; id=&quot;3&quot;&amp;#62;
+ &amp;#60;label for=&quot;3&quot;&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;question-mark&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;label&amp;#62;
+&amp;#60;&amp;#47;div&amp;#62;
+
+&amp;#60;div class=&quot;mario-block&quot;&amp;#62;
+ &amp;#60;input type=&quot;checkbox&quot; id=&quot;4&quot; disabled&amp;#62;
+ &amp;#60;label for=&quot;4&quot;&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;div class=&quot;dot&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;label&amp;#62;
&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Now we make our inner child element &lt;code&gt;absolute&lt;/code&gt; and set it&amp;#8217;s &lt;code&gt;height&lt;/code&gt; and &lt;code&gt;width&lt;/code&gt; dynamically to be slightly smaller than it&amp;#8217;s parent (percentages work best for this). &lt;/p&gt;
-&lt;p&gt;Remember to set this child element behind it&amp;#8217;s parent by adding &lt;code&gt;z-index: -1&lt;/code&gt;.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.box-container {
- &amp;#47;* No box-shadow needed on this element anymore *&amp;#47;
- &amp;#47;* Styles to make it less ugly *&amp;#47;
- background: white;
- border-radius: 10px;
- border: 1px solid #eee;
- height: 200px;
- padding: 10px;
+&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
+&lt;p&gt;First we need to remove the default &lt;code&gt;checkbox&lt;/code&gt; input styling and place all new styling on it&amp;#8217;s corresponding &lt;code&gt;label&lt;/code&gt;.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Mario block parent div *&amp;#47;
+.mario-block {
+ display: inline-block;
+ height: 80px;
+ margin-right: -7px; &amp;#47;* Fixes inline-block margin bug *&amp;#47;
position: relative;
- width: 250px;
+ width: 80px;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;inner-containers&quot;&gt;Inner Containers&lt;/h2&gt;
-&lt;p&gt;We also need to target the &lt;code&gt;box-container-inner&lt;/code&gt; element set inside the current parent to reflect our custom shadow styling:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.box-container-inner {
- bottom: 0;
- &amp;#47;* The box-shadow is added here now *&amp;#47;
- box-shadow: 0 4px 12px rgba(0,0,0,0.3);
- height: 94%;
- left: 3%;
+
+&amp;#47;* Hide default checkbox input *&amp;#47;
+.mario-block input {
position: absolute;
- width: 94%;
+ visibility: hidden;
z-index: -1;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Which will make the drop-shadow render with a little more realistic depth:&lt;/p&gt;
-&lt;h2 id=&quot;but-wait---theres-more&quot;&gt;But wait - there&amp;#8217;s more!&lt;/h2&gt;
-&lt;p&gt;We could stop now and have a decent drop-shadow that is certainly easier on the eyes - but we can make this even better with one extra property - &lt;code&gt;filter:blur();&lt;/code&gt;. &lt;/p&gt;
-&lt;p&gt;So your final code would look like this:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.box-container {
- &amp;#47;* Styles to make it less ugly *&amp;#47;
- background: white;
- border-radius: 10px;
- border: 1px solid #eee;
- height: 200px;
- padding: 10px;
+&lt;p&gt;Now to target the &lt;code&gt;label&lt;/code&gt; elements found inside the block:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Style checkbox label accordingly *&amp;#47;
+.mario-block label {
+ background: #F88D2E;
+ border: 4px solid #070000;
+ box-shadow: inset -4px -4px 0 #965117, inset 4px 4px 0 #FAB89B;
+ display: block;
+ height: 100%;
position: relative;
- width: 250px;
+ width: 100%;
}
-
-.box-container-inner {
- bottom: 0;
- box-shadow: 0 4px 12px rgba(0,0,0,0.3);
- filter: blur(6px);
- height: 94%;
- left: 3%;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;Next we style our included &lt;code&gt;.dots&lt;/code&gt; elements to be placed in the four corners of each block:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.mario-block .dot {
+ background: #070000;
+ height: 5px;
position: absolute;
- width: 94%;
- z-index: -1;
+ width: 5px;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Which renders out into a much smoother blend of a drop-shadow, creating a more realistic illusion of depth:&lt;/p&gt;</description>
- <link>https://btxx.org/better-box-shadows</link>
- <guid isPermaLink="false">https://btxx.org/better-box-shadows</guid>
- <pubDate>Tue, 08 Jan 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Hosting with Codeberg Pages</title>
- <description>&lt;h1 id=&quot;hosting-with-codeberg-pages&quot;&gt;Hosting with Codeberg Pages&lt;/h1&gt;
-&lt;p&gt;2022-07-29&lt;/p&gt;
-&lt;p&gt;I recently switched the &lt;a href=&quot;https://pblog.bt.ht&quot;&gt;pblog&lt;/a&gt; project repo over from Sourcehut to Codeberg (mostly for UX reasons) and it got me looking into &lt;a href=&quot;https://codeberg.page&quot;&gt;Codeberg Pages&lt;/a&gt;. It seemed like a cleaner approach to host my personal blog on the same platform I planned to also share the source code.&lt;/p&gt;
-&lt;p&gt;I decided to share the setup process here since I couldn&amp;#8217;t find a straightforward guide explaining everything required to get going. So, let&amp;#8217;s dig in.&lt;/p&gt;
-&lt;h2 id=&quot;create-the-repos&quot;&gt;Create the Repos&lt;/h2&gt;
-&lt;p&gt;&lt;strong&gt;Disclaimer&lt;/strong&gt;: My personal blog uses &lt;a href=&quot;https://pblog.bt.ht&quot;&gt;pblog&lt;/a&gt;, so although these instructions will be catered towards that SSG the same concept &lt;em&gt;should&lt;/em&gt; apply for any other generator (Jekyll, Hugo, Next, etc.).&lt;/p&gt;
-&lt;p&gt;The first step is to create the main repo that would house the core files of &lt;code&gt;pblog&lt;/code&gt;. Then we need to make a separate repo simply called &lt;code&gt;pages&lt;/code&gt;. This second project is where all the generated &amp;#8220;static&amp;#8221; files get rendered.&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;Side note&lt;/em&gt;: Be sure to at least include a &lt;code&gt;README&lt;/code&gt; file in that &lt;code&gt;pages&lt;/code&gt; repo. This will avoid any errors or warnings when setting up our submodules in the next steps.&lt;/p&gt;
-&lt;h2 id=&quot;configuration-edits&quot;&gt;Configuration Edits&lt;/h2&gt;
-&lt;p&gt;Once your two repos are created, you will need to make some minor edits to the &lt;code&gt;_config.sh&lt;/code&gt; in the core &lt;code&gt;pblog&lt;/code&gt; project to tell the build script where the generated files should go (in this case the &lt;code&gt;pages&lt;/code&gt; repo):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;OUTPUT=&quot;_output&amp;#47;pages&amp;#47;&quot;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;the-submodule&quot;&gt;The Submodule&lt;/h2&gt;
-&lt;p&gt;Using terminal, navigate to the &lt;code&gt;_output&amp;#47;&lt;/code&gt; directory in your core &lt;code&gt;pblog&lt;/code&gt; project. Run the following, remembering to replace the USERNAME parameter with your own:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;git submodule add git@codeberg.org:USERNAME&amp;#47;pages.git
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If everything worked correctly you should now have a &lt;code&gt;.gitmodules&lt;/code&gt; file in your main &lt;code&gt;pblog&lt;/code&gt; project. If you get any errors, you might need to include the name of the directory at the end of the command:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;git submodule add git@codeberg.org:USERNAME&amp;#47;pages.git pages
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;the-workflow&quot;&gt;The Workflow&lt;/h2&gt;
-&lt;p&gt;Now you can make changes, add new posts and pages in the main &lt;code&gt;pblog&lt;/code&gt; project and have those generated files render into your other &lt;code&gt;pages&lt;/code&gt; repo. For this workflow, I simply push commits to both projects when I am happy with my changes but I&amp;#8217;m sure you could look into automating this process (ie. a single push from the &lt;code&gt;pblog&lt;/code&gt; repo forces a the &lt;code&gt;pages&lt;/code&gt; repo to also update).&lt;/p&gt;
-&lt;p&gt;Now you can navigate to the standard Codeberg Pages URL to see it in action:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;USERNAME.codeberg.page
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If you want to use your own custom domain (who doesn&amp;#8217;t?) then continue reading.&lt;/p&gt;
-&lt;h2 id=&quot;custom-domains-optional&quot;&gt;Custom Domains (Optional)&lt;/h2&gt;
-&lt;p&gt;The first thing you will need to do is add a &lt;code&gt;.domains&lt;/code&gt; file to your &lt;code&gt;pages&lt;/code&gt; root directory. In this file you will want to list your custom domain on the first line, followed by the standard Codeberg pages URL below it. Like so:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;yourcustomdomain.com
-USERNAME.codeberg.page
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;I&amp;#8217;m keeping this very basic, but I suggest you look further into the &lt;a href=&quot;https://docs.codeberg.org/codeberg-pages/#custom-domains&quot;&gt;official documentation&lt;/a&gt; if there are any extra settings you&amp;#8217;d like to tinker with.&lt;/p&gt;
-&lt;p&gt;The final step is configuring a &lt;code&gt;CNAME&lt;/code&gt; DNS setting through your registrar:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@ -&amp;#62; USERNAME.codeberg.page
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Give the DNS settings a bit of time to take (24-48 hours) and you&amp;#8217;ll have your custom domain working just fine.&lt;/p&gt;
-&lt;p&gt;Happy hosting!&lt;/p&gt;</description>
- <link>https://btxx.org/berg</link>
- <guid isPermaLink="false">https://btxx.org/berg</guid>
- <pubDate>Fri, 29 Jul 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Being More Efficient as a Designer and Developer</title>
- <description>&lt;h1 id=&quot;being-more-efficient-as-a-designer-and-developer&quot;&gt;Being More Efficient as a Designer and Developer&lt;/h1&gt;
-&lt;p&gt;2019-09-28&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;I recently began working on a small side project&lt;/em&gt; (a marketing site &amp;#47; blog for an upcoming UX book I&amp;#8217;m writing, but I have nothing to promote yet - sorry) and found myself circling around different static site generators (SSG) in the initial design concepts. The thought of learning an entirely new blogging platform was inspiring and seemed like a good excuse to expand my skillset.&lt;/p&gt;
-&lt;p&gt;Although I&amp;#8217;ve used 11ty and Hugo in the past for client work, this personal website runs on Jekyll. I&amp;#8217;m very familiar with Jekyll and can push out a point-of-concept site in a flash with little-to-no effort. So, why was I looking to jump into a SSG I hadn&amp;#8217;t used before? &lt;/p&gt;
-&lt;p&gt;And that got me thinking&amp;#8230; &lt;strong&gt;Why am I moving away from being efficient?&lt;/strong&gt;&lt;/p&gt;
-&lt;h2 id=&quot;before-we-begin&quot;&gt;Before we begin&amp;#8230;&lt;/h2&gt;
-&lt;p&gt;I should preface everything else I&amp;#8217;m going to mention in this post with this: &lt;em&gt;learning new stuff is awesome&lt;/em&gt;. You should expand your knowledge as much as you can, no matter what industry you find yourself in. I&amp;#8217;ve found it to be a great catalyst for boosting my passion in design and development.&lt;/p&gt;
-&lt;p&gt;Okay, I&amp;#8217;ve made it clear that learning is important to the growth of your career - so please keep that in mind before you read my next statement:&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Just use what you already know.&lt;/strong&gt;&lt;/p&gt;
-&lt;p&gt;By using your current experience (maybe even expertise) with a design system, CSS framework, blogging platform, programming language, etc. you can get something &lt;em&gt;built&lt;/em&gt;. Not to mention you can get that thing built in a &lt;em&gt;fraction of the time&lt;/em&gt;. After all, building things is kind of the point of being a designer (or developer), right?&lt;/p&gt;
-&lt;p&gt;My current side project may be a slight edge case in this regard. Since it&amp;#8217;s a personal &amp;#8220;dev&amp;#8221; website, most of the tech stack choices comes down to personal preference - not client requirements. But I believe my point still remains: you shouldn&amp;#8217;t reach for something new and shiny &lt;em&gt;just because&lt;/em&gt; it&amp;#8217;s new and shiny.&lt;/p&gt;
-&lt;h2 id=&quot;some-vague-examples&quot;&gt;Some vague examples&lt;/h2&gt;
-&lt;p&gt;It might be easier to understand what I mean by using some possible real-world examples:&lt;/p&gt;
-&lt;table&gt;
-&lt;thead&gt;
-&lt;tr&gt;
-&lt;th&gt;Problem&lt;/th&gt;
-&lt;th&gt;New Way&lt;/th&gt;
-&lt;th&gt;Efficient Way&lt;/th&gt;
-&lt;/tr&gt;
-&lt;/thead&gt;
-&lt;tbody&gt;
-&lt;tr&gt;
-&lt;td&gt;A local bakery needs product and e-cart functionality&lt;/td&gt;
-&lt;td&gt;Learn a new custom ecommerce platform&lt;/td&gt;
-&lt;td&gt;Use a popular pre-existing library you&amp;#8217;re familiar with&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;Create an add-on blog for a medical clinic&lt;/td&gt;
-&lt;td&gt;Try a custom built static site generator and hook in a git-based CMS&lt;/td&gt;
-&lt;td&gt;Spin up a quick WordPress site and hand-off&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;UI mockups for a workout iOS app&lt;/td&gt;
-&lt;td&gt;Test out the newest design tool just released&lt;/td&gt;
-&lt;td&gt;Use your go-to default design tool you (Sketch, Figma, etc)&lt;/td&gt;
-&lt;/tr&gt;
-&lt;/tbody&gt;
-&lt;/table&gt;
-&lt;p&gt;I know all of this is very much &amp;#8220;common sense&amp;#8221;, but you would be surprised how often we reach out for the latest and greatest tools (we are creative problem-solvers, after-all). If a current project allots you the time to learn a new skillset alongside outputting a quality product - then more power to you. In my experience that&amp;#8217;s a rare luxury, so my advice is to focus on shipping quality work (whether that&amp;#8217;s code, design, analytics, content, etc) instead of getting caught up in the &amp;#8220;new and shiny&amp;#8221;.&lt;/p&gt;
-&lt;h2 id=&quot;but-wait-how-when-do-i-learn-new-things&quot;&gt;But wait, how &amp;#47; when do I learn new things?&lt;/h2&gt;
-&lt;p&gt;It isn&amp;#8217;t exactly ground breaking to state that you should keep things simple as a developer. There are probably hundreds of posts on the web advocating for the exact same thing - which is good. At the same time, we as designers and developers need to avoid stagnation - something that can happen all too easily.&lt;/p&gt;
-&lt;p&gt;So how do we learn new things? This is a hard thing to answer. Really, the best response would be: &lt;strong&gt;it depends on the designer &amp;#47; developer&lt;/strong&gt;. I know, &lt;em&gt;what a cop-out&lt;/em&gt;. Unfortunately, it&amp;#8217;s true. There is no one solution to learning anything new.&lt;/p&gt;
-&lt;p&gt;The best I can do is offer up some possible options:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Learn outside of work
-&lt;ul&gt;
-&lt;li&gt;Reading &amp;#47; listening to a technical book on your commute or before bed&lt;/li&gt;
-&lt;li&gt;Take an online course you can work on after hours&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Contribute to an open source project that you aren&amp;#8217;t familiar with but are interested in
-&lt;ul&gt;
-&lt;li&gt;Even tiny contributions go a long way, don&amp;#8217;t doubt yourself so much&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Ask your current company (if not a freelancer that is) to learn on their time
-&lt;ul&gt;
-&lt;li&gt;It&amp;#8217;s a valid argument that your company should have vested interest in you becoming a better developer &amp;#47; designer&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;easier-said-than-done&quot;&gt;Easier said than done&lt;/h2&gt;
-&lt;p&gt;Sometimes, even the suggestions above don&amp;#8217;t work for certain individuals. Life is hectic and other important things can pop-up taking precedence. Don&amp;#8217;t let it get you down - there are more important things in life than mastering the newest framework that released 25 minutes ago.&lt;/p&gt;
-&lt;p&gt;My motto is to keep shipping quality products that you actually give a shit about. Otherwise it doesn&amp;#8217;t matter how &amp;#8220;new&amp;#8221; it is.&lt;/p&gt;</description>
- <link>https://btxx.org/being-efficient</link>
- <guid isPermaLink="false">https://btxx.org/being-efficient</guid>
- <pubDate>Sat, 28 Sep 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Improving Laptop Battery Performance on OpenBSD</title>
- <description>&lt;h1 id=&quot;improving-laptop-battery-performance-on-openbsd&quot;&gt;Improving Laptop Battery Performance on OpenBSD&lt;/h1&gt;
-&lt;p&gt;2023-06-13&lt;/p&gt;
-&lt;p&gt;It is no secret that OpenBSD has poor battery performance on laptops. Although not as impressive as something like Alpine Linux or FreeBSD, you can tweak OpenBSD &lt;em&gt;just enough&lt;/em&gt; to squeeze more life out of your machine&amp;#8217;s battery.&lt;/p&gt;
-&lt;h2 id=&quot;our-new-best-friend-&quot;&gt;Our New Best Friend: &lt;code&gt;ampd&lt;/code&gt;&lt;/h2&gt;
-&lt;p&gt;I won&amp;#8217;t go into great detail about &lt;code&gt;ampd&lt;/code&gt; here - that&amp;#8217;s what the incredible &lt;a href=&quot;https://man.openbsd.org/apmd&quot;&gt;documentation is for&lt;/a&gt;. You&amp;#8217;ll want to make sure to start it before trying to configure it:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;doas rcctl start apmd
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If already running in a live session, you can default to &lt;code&gt;-A&lt;/code&gt; (auto) but I suggest setting cpu performance to low:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;apm -L
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;To make these changes permanent on boot:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;doas rcctl set apmd flags -L
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Optimizating battery life via &lt;code&gt;ampd&lt;/code&gt; will have the most noticable impact but you can improve things even further by implementing some extra &amp;#8220;small&amp;#8221; performance wins.&lt;/p&gt;
-&lt;h2 id=&quot;small-performance-wins&quot;&gt;Small Performance Wins&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Reduce your screen&amp;#8217;s brightness (&lt;code&gt;xbacklight -set 50&lt;/code&gt;)&lt;/li&gt;
-&lt;li&gt;Use a lightweight window manager instead of a beefer desktop environment&lt;/li&gt;
-&lt;li&gt;Enable battery saving options in your system BIOS (if available)&lt;/li&gt;
-&lt;li&gt;Disable the fingerprint scanner and bluetooth in your system BIOS (if available)&lt;/li&gt;
-&lt;li&gt;Use utilities such as &lt;code&gt;mpv&lt;/code&gt; and &lt;code&gt;ffmpeg&lt;/code&gt; for media consumption&lt;/li&gt;
-&lt;li&gt;Reduce the number of open applications at any given time&lt;/li&gt;
-&lt;/ol&gt;</description>
- <link>https://btxx.org/battery</link>
- <guid isPermaLink="false">https://btxx.org/battery</guid>
- <pubDate>Tue, 13 Jun 2023 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Batch Converting Images to webp with macOS Automator</title>
- <description>&lt;h1 id=&quot;batch-converting-images-to-webp-with-macos-automator&quot;&gt;Batch Converting Images to webp with macOS Automator&lt;/h1&gt;
-&lt;p&gt;2021-10-15&lt;/p&gt;
-&lt;p&gt;A great deal of my time working as a web&amp;#47;UI designer is spent exporting and&amp;#47;or converting images for software products and websites. Although a lot of modern applications can render image conversions at build time, a custom conversion is sometimes requested for an image to be set as &lt;code&gt;webp&lt;/code&gt;.&lt;/p&gt;
-&lt;p&gt;You &lt;em&gt;could&lt;/em&gt; download one of the many native apps from the Mac App Store to do this for you - but why not create your own script and run it with a simple right-click directly inside Finder? &lt;strong&gt;Let&amp;#8217;s do just that!&lt;/strong&gt;&lt;/p&gt;
-&lt;h2 id=&quot;basic-requirements&quot;&gt;Basic requirements&lt;/h2&gt;
-&lt;p&gt;&lt;strong&gt;Important!&lt;/strong&gt;: As of this time of writing, the official &lt;code&gt;libwebp&lt;/code&gt; package release is &lt;em&gt;libwebp-1.2.1-mac-10.15&lt;/em&gt;. If this has been updated since then, change the command below to match that of the proper release version.&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;First you will need to download the &lt;code&gt;libwebp&lt;/code&gt; package to your Downloads folder: &lt;a href=&quot;https://developers.google.com/speed/webp/download&quot;&gt;developers.google.com&amp;#47;speed&amp;#47;webp&amp;#47;download&lt;/a&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;em&gt;Look for the &amp;#8220;Download for macOS link&amp;#8221;&lt;/em&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Next we will need to copy the &lt;code&gt;cwebp&lt;/code&gt; folder to our &lt;code&gt;&amp;#47;usr&amp;#47;local&amp;#47;bin&lt;/code&gt; directory:
-&lt;ul&gt;
-&lt;li&gt;Open macOS Terminal&lt;/li&gt;
-&lt;li&gt;Run &lt;code&gt;sudo cp &amp;#47;Downloads&amp;#47;libwebp-1.2.1-mac-10.15&amp;#47;bin&amp;#47;cwebp &amp;#47;usr&amp;#47;local&amp;#47;bin&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;&lt;em&gt;Note:&lt;/em&gt; if the &lt;code&gt;&amp;#47;usr&amp;#47;local&amp;#47;bin&lt;/code&gt; directory doesn&amp;#8217;t exist, simply create it by running: &lt;code&gt;sudo cd &amp;#47;usr&amp;#47;local &amp;#38;&amp;#38; mkdir bin&lt;/code&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;creating-our-custom-automator-script&quot;&gt;Creating our custom Automator script&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;&lt;p&gt;Open the macOS Automator from the Applications folder&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Select &lt;code&gt;Quick Option&lt;/code&gt; from the first prompt&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Set &amp;#8220;Workflow receives current&amp;#8221; to &lt;code&gt;image files&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Set the label &amp;#8220;in&amp;#8221; to &lt;code&gt;Finder&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;From the left pane, select &amp;#8220;Library &amp;#62; Utilities&amp;#8221;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;From the presented choices in the next pane, drag and drop &lt;code&gt;Run Shell Script&lt;/code&gt; into the far right pane&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Set the area &amp;#8220;Pass input&amp;#8221; to &lt;code&gt;as arguments&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;Enter the following code below as your script and type &lt;code&gt;⌘-S&lt;/code&gt; to save (name it something like &amp;#8220;Convert to webp&amp;#8221;)&lt;/p&gt;
-&lt;p&gt;for f in &amp;#8220;$@&amp;#8221;
-do
-&amp;#47;usr&amp;#47;local&amp;#47;bin&amp;#47;cwebp -q 85 &amp;#8220;$f&amp;#8221; -o &amp;#8220;${f%.*}.webp&amp;#8221;
-done&lt;/p&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;For visual reference, it should look something like this:&lt;/p&gt;
-&lt;p&gt;And when right-clicking an image file in the Finder window, it should now give you the option to convert:&lt;/p&gt;
-&lt;h2 id=&quot;making-edits-to-your-script&quot;&gt;Making edits to your script&lt;/h2&gt;
-&lt;p&gt;If you ever have the need to edit this script (for example, changing the default &lt;code&gt;85&lt;/code&gt; quality parameter), you will need to navigate to your &lt;code&gt;~&amp;#47;Library&amp;#47;Services&lt;/code&gt; folder and open your custom webp Quick Action in the Automator application. &lt;/p&gt;
-&lt;p&gt;Simple as that!&lt;/p&gt;
-&lt;h2 id=&quot;possible-hiccups&quot;&gt;Possible Hiccups&lt;/h2&gt;
-&lt;p&gt;I was contacted by the very helpful &lt;a href=&quot;https://kevq.uk&quot;&gt;Kev Quirk&lt;/a&gt; about a minor problem he encountered while following this tutorial. When trying to run &lt;code&gt;cwebp&lt;/code&gt; he received the following error message:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;cwebp cannot be opened because it&amp;#39;s from an unverified developer
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Doing the next steps seemed to have fixed this issue for him:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Click on the &amp;#8220;Open in Finder&amp;#8221; in the error message prompt&lt;/li&gt;
-&lt;li&gt;Double-click on the &lt;code&gt;cwebp&lt;/code&gt; utility to open in Terminal&lt;/li&gt;
-&lt;li&gt;You&amp;#8217;ll then be prompted with a pop-up asking if you wish to execute&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;After following these steps, the issue should be resolved.&lt;/p&gt;</description>
- <link>https://btxx.org/batch-webp-conversion</link>
- <guid isPermaLink="false">https://btxx.org/batch-webp-conversion</guid>
- <pubDate>Fri, 15 Oct 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Basic Gulp Build for Sass</title>
- <description>&lt;h1 id=&quot;basic-gulp-build-for-sass&quot;&gt;Basic Gulp Build for Sass&lt;/h1&gt;
-&lt;p&gt;2019-01-15&lt;/p&gt;
-&lt;p&gt;Some designers might shy away from build tools when first starting out and I can understand the reasoning - task runners like &lt;code&gt;gulp&lt;/code&gt; and &lt;code&gt;grunt&lt;/code&gt; can seem daunting at first. So, I&amp;#8217;ve decided to showcase my go-to setup for &lt;code&gt;gulp&lt;/code&gt; and explain what the heck it does step-by-step. &lt;/p&gt;
-&lt;p&gt;Here is the final &lt;code&gt;gulp.js&lt;/code&gt; file in all it&amp;#8217;s glory:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;var gulp = require(&amp;#39;gulp&amp;#39;);
-var shell = require(&amp;#39;gulp-shell&amp;#39;);
-var sass = require(&amp;#39;gulp-sass&amp;#39;);
-
-&amp;#47;* Build and watch Jekyll (change this task to whatever you need) *&amp;#47;
-gulp.task(&amp;#39;generate&amp;#39;, shell.task(&amp;#39;jekyll serve&amp;#39;));
-
-&amp;#47;* Compile SCSS files to CSS *&amp;#47;
-gulp.task(&amp;#39;styles&amp;#39;, function () {
- return gulp.src(&amp;#39;_includes&amp;#47;assets&amp;#47;sass&amp;#47;styles.scss&amp;#39;)
- .pipe(sass({
- outputStyle: &amp;#39;compressed&amp;#39;
- }).on(&amp;#39;error&amp;#39;, sass.logError))
- .pipe(gulp.dest(&amp;#39;_includes&amp;#47;assets&amp;#47;css&amp;#47;&amp;#39;));
-});
-
-&amp;#47;* Compile the assets *&amp;#47;
-gulp.task(&amp;#39;assets&amp;#39;, gulp.parallel(
- &amp;#39;styles&amp;#39;
-));
-
-&amp;#47;* Build *&amp;#47;
-gulp.task(&amp;#39;build&amp;#39;, gulp.series(
- &amp;#39;assets&amp;#39;,
- &amp;#39;generate&amp;#39;
-));
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Trust me, it&amp;#8217;s not complicated at all.&lt;/p&gt;
-&lt;h2 id=&quot;grabbing-what-we-need&quot;&gt;Grabbing what we need&lt;/h2&gt;
-&lt;p&gt;For our basic build file we are going to need only three modules: &lt;code&gt;gulp&lt;/code&gt;, &lt;code&gt;gulp-shell&lt;/code&gt; and &lt;code&gt;gulp-sass&lt;/code&gt;.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;var gulp = require(&amp;#39;gulp&amp;#39;);
-var shell = require(&amp;#39;gulp-shell&amp;#39;);
-var sass = require(&amp;#39;gulp-sass&amp;#39;);
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h4 id=&quot;gulp&quot;&gt;gulp&lt;/h4&gt;
-&lt;p&gt;This is the streaming build system, without it we can&amp;#8217;t do anything else.&lt;/p&gt;
-&lt;h4 id=&quot;gulp-shell&quot;&gt;gulp-shell&lt;/h4&gt;
-&lt;p&gt;A gulp command line interface for us to interact with our terminal.&lt;/p&gt;
-&lt;h4 id=&quot;gulp-sass&quot;&gt;gulp-sass&lt;/h4&gt;
-&lt;p&gt;Required for gulp to compile Sass into vanilla CSS.&lt;/p&gt;
-&lt;h4 id=&quot;bonus-tasks&quot;&gt;Bonus tasks&lt;/h4&gt;
-&lt;h2 id=&quot;generating-the-build&quot;&gt;Generating the build&lt;/h2&gt;
-&lt;p&gt;Our first step is to create the default task that will generate our build. In this example we are making the assumption that we&amp;#8217;re building a Jekyll website (but you can place any build command here):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;gulp.task(&amp;#39;generate&amp;#39;, shell.task(&amp;#39;jekyll serve&amp;#39;));
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Don&amp;#8217;t worry if this &lt;code&gt;generate&lt;/code&gt; isn&amp;#8217;t clear, we come back to that later.&lt;/p&gt;
-&lt;h2 id=&quot;processing-our-pre-processor&quot;&gt;Processing our pre-processor&lt;/h2&gt;
-&lt;p&gt;We will name this next task &lt;code&gt;styles&lt;/code&gt; since that&amp;#8217;s what it outputs - our styling. We start by telling gulp where our main &lt;code&gt;scss&lt;/code&gt; directory is:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Change this directory to match yours *&amp;#47;
-return gulp.src(&amp;#39;_includes&amp;#47;assets&amp;#47;sass&amp;#47;styles.scss&amp;#39;)
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This next piece tells the plugin to compress our final compiled CSS, log any errors if there are issues with the build and then export it to our destination directory:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.pipe(sass({
- outputStyle: &amp;#39;compressed&amp;#39;
-}).on(&amp;#39;error&amp;#39;, sass.logError))
-
-&amp;#47;* Change this to your destination directory *&amp;#47;
-.pipe(gulp.dest(&amp;#39;_includes&amp;#47;assets&amp;#47;css&amp;#47;&amp;#39;));
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;building-our-assets&quot;&gt;Building our assets&lt;/h2&gt;
-&lt;p&gt;This step isn&amp;#8217;t 100% needed, but I like to include it for when more assets need to be added (minifying JavaScript, compressing images, etc)&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;*
-Compile the assets
-*&amp;#47;
-gulp.task(&amp;#39;assets&amp;#39;, gulp.parallel(
- &amp;#39;styles&amp;#39;
-));
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;altogether-now&quot;&gt;Altogether now!&lt;/h2&gt;
-&lt;p&gt;Now we add a task that runs all other tasks in our gulp file (in this case it will run both &lt;code&gt;assets&lt;/code&gt; and &lt;code&gt;generate&lt;/code&gt;)&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;*
-Build
-*&amp;#47;
-gulp.task(&amp;#39;build&amp;#39;, gulp.series(
- &amp;#39;assets&amp;#39;,
- &amp;#39;generate&amp;#39;
-));
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;And that&amp;#8217;s it - we&amp;#8217;re done! A very basic &lt;code&gt;gulp&lt;/code&gt; build for compiling Sass.&lt;/p&gt;</description>
- <link>https://btxx.org/basic-gulp-build-for-sass</link>
- <guid isPermaLink="false">https://btxx.org/basic-gulp-build-for-sass</guid>
- <pubDate>Tue, 15 Jan 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Base64 All The Things! (Sometimes)</title>
- <description>&lt;h1 id=&quot;base64-all-the-things-sometimes&quot;&gt;Base64 All The Things! (Sometimes)&lt;/h1&gt;
-&lt;p&gt;2020-03-18&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;An extremely overlooked process for displaying fonts&lt;/em&gt;, images, documents, spreadsheets, etc. on the web is the use of &lt;strong&gt;base64 encoding&lt;/strong&gt;. Although it may not be the most efficient (or easy) way to display and include these elements it can be a lifesaver in certain situations.&lt;/p&gt;</description>
- <link>https://btxx.org/base64-all-the-things</link>
- <guid isPermaLink="false">https://btxx.org/base64-all-the-things</guid>
- <pubDate>Wed, 18 Mar 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>A Warning for New Designers: Avoid Dribbble</title>
- <description>&lt;h1 id=&quot;a-warning-for-new-designers-avoid-dribbble&quot;&gt;A Warning for New Designers: Avoid Dribbble&lt;/h1&gt;
-&lt;p&gt;2022-09-08&lt;/p&gt;
-&lt;p&gt;Everyday a new designer begins their journey into the world of [&lt;em&gt;insert design industry here&lt;/em&gt;] and it is magical! Having a fresh pair of eyes untainted from the current trends of the time can help improve design as a whole. Newbies can even teach new things to older, grumpier luddites (like yours truly). But over the years I&amp;#8217;ve noticed a concerning trend among junior designers; &lt;strong&gt;they rely too heavily on Dribbble&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;Relying on Dribbble for minor inspiration is one thing. Referencing &amp;#8220;shots&amp;#8221; as justification for real-world design work? Not so much. I believe Dribbble shouldn&amp;#8217;t be used for either of these use cases, but I can at least give a pass at browsing for basic inspiration (colors, padding, layout).&lt;/p&gt;
-&lt;p&gt;Now, using concept shots to push for your own design decisions? That is a terrible idea. We &amp;#8220;senior&amp;#8221; designers need to step up and help newbies avoid this trap.&lt;/p&gt;
-&lt;h3 id=&quot;designing-for-other-designers&quot;&gt;Designing for Other Designers&lt;/h3&gt;
-&lt;p&gt;Dribbble is rarely a place for design feedback and discussion anymore. Hell, most people use it as a digital portfolio to share with prospective clients. Others use it like some form of &amp;#8220;design Linkedin&amp;#8221;, which has its own host of problems.&lt;/p&gt;
-&lt;p&gt;Dribble is now (mainly) a place where designers post &amp;#8220;work&amp;#8221; for other designers. There &lt;em&gt;is&lt;/em&gt; a small minority of users still looking for real, human feedback on their work - but they are a rarity.&lt;/p&gt;
-&lt;p&gt;Take a look at the &lt;a href=&quot;https://dribbble.com/shots/popular&quot;&gt;popular shots&lt;/a&gt; category at any give time. Most shots are promo pieces used to attract potential clients. Nearly all design concepts are impractical or simply impossible to create in a real-life setting. This is incredibly damaging to newcomers trying to learn &amp;#8220;good&amp;#8221; design practices. Dribbble shots simply ride the wave of the current trends, which doesn&amp;#8217;t provide junior designers with a solid foundation or core understanding of design as a whole. It just causes them to endlessly chase the &amp;#8220;latest and greatest&amp;#8221; trend.&lt;/p&gt;
-&lt;p&gt;Shot posters rarely go into the reasoning behind their design decisions. No research or iterations are shared to show the process. Instead it simply states &amp;#8220;here is a cool website layout for a company that doesn&amp;#8217;t exist&amp;#8221;. Zero constraints or goals needed to be met. No discussion about how one version of their design didn&amp;#8217;t perform as well when tested on real users. So of course it ends up looking &lt;em&gt;so cool and original&lt;/em&gt; - &lt;strong&gt;it wasn&amp;#8217;t designed in reality&lt;/strong&gt;.&lt;/p&gt;
-&lt;h3 id=&quot;i-dont-have-all-the-answers---but-ill-try&quot;&gt;I Don&amp;#8217;t Have All the Answers - But I&amp;#8217;ll Try&lt;/h3&gt;
-&lt;p&gt;I am not the holy savior of &lt;em&gt;all things design&lt;/em&gt;. I&amp;#8217;m just a designer who has been around the block a few times. If new designers want to keep using Dribbble as their main source of guidance and think I should go kick rocks - that&amp;#8217;s fine. I will. But for those with a little more passion for the profession, might I suggest some humble alternatives to get you on a more consistent path?&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Read some good design books (to get you started):
-&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://sensible.com/dont-make-me-think/&quot;&gt;Don&amp;#8217;t Make Me Think - Revisited&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/The_Design_of_Everyday_Things&quot;&gt;The Design of Everyday Things&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://www.edwardtufte.com/tufte/books_vdqi&quot;&gt;The Visual Display of Quantitative Information&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://www.amazon.ca/Dieter-Rams-Less-But-Better/dp/3899555252&quot;&gt;Less But Better&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Talk to &lt;em&gt;real&lt;/em&gt; people
-&lt;ul&gt;
-&lt;li&gt;Chat with your team&amp;#8217;s marketers, customer support specialists, senior design leads, and developers about new features (they often have better insights than you)&lt;/li&gt;
-&lt;li&gt;Perform customer interviews early and often (they use your product or service - let them tell you what they want!)&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;R ad through some quality UX reports and research
-&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://www.nngroup.com/&quot;&gt;Nielsen Norman Group&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://baymard.com/&quot;&gt;Baymard Institute&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;P y attention to real world design (good and bad)
-&lt;ul&gt;
-&lt;li&gt;Grocery item designs, labels packaging&lt;/li&gt;
-&lt;li&gt;Vehicle analog and digital dashboards &amp;#47; safety features&lt;/li&gt;
-&lt;li&gt;Warning and safety labeling (great for universal and minimal design inspiration)&lt;/li&gt;
-&lt;li&gt;Government websites and applications (notoriously terrible - great for &amp;#8220;what not to do&amp;#8221; examples)&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Your own experience (over time)&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;These are just my own suggestions to help new designers get a better foundation of core design concepts &lt;em&gt;before&lt;/em&gt; falling down the Dribbble hole. Take it or leave it. I&amp;#8217;m not your dad.&lt;/p&gt;
-&lt;p&gt;Most designers who are pro-Dribbble will most likely write me off as a grumpy old man yelling at a cloud. That&amp;#8217;s only half true. But if just one person reading this even &lt;em&gt;considers&lt;/em&gt; avoiding Dribbble as a source for learning proper design - then it was worth it.&lt;/p&gt;
-&lt;p&gt;Now if you will excuse me, there are many more clouds to yell at&amp;#8230;&lt;/p&gt;</description>
- <link>https://btxx.org/avoid</link>
- <guid isPermaLink="false">https://btxx.org/avoid</guid>
- <pubDate>Thu, 08 Sep 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Aqua UI CSS Buttons</title>
- <description>&lt;h1 id=&quot;aqua-ui-css-buttons&quot;&gt;Aqua UI CSS Buttons&lt;/h1&gt;
-&lt;p&gt;2016-06-28&lt;/p&gt;
-&lt;p&gt;Though it may feel like nostalgia, the old OS design for Mac was arguably better than the current iteration (as of this writing - High Sierra). I recently designed a quick Dribbble shot showcasing how the older operating system used to have so much more character and depth.&lt;/p&gt;
-&lt;p&gt;Since I&amp;#8217;ve been wanting to dip my toes into more tutorial-based articles (maybe I&amp;#8217;ll even do some screencasts in the future), I decided to start out simple. Let&amp;#8217;s walk through how to implement these &amp;#8216;aqua&amp;#8217; UI buttons with pure CSS.&lt;/p&gt;
-&lt;h3 id=&quot;starting-with-a-basic-foundation&quot;&gt;Starting with a basic foundation&lt;/h3&gt;
-&lt;p&gt;Since this project consists of only two buttons elements, the HTML or skeleton of this project is very straightforward:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;button class=&quot;cancel&quot;&amp;#62;Cancel&amp;#60;&amp;#47;button&amp;#62;
-&amp;#60;button class=&quot;confirm&quot;&amp;#62;Confirm&amp;#60;&amp;#47;button&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;styling-the-buttons&quot;&gt;Styling the buttons&lt;/h3&gt;
-&lt;p&gt;The first step is to remove the browser&amp;#8217;s default button styling by using the &lt;code&gt;appearance&lt;/code&gt; property. This will help avoid having to fight against the browser and minimize our CSS code.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;button {
- -webkit-appearance: none;
- -moz-appearance: none;
+.mario-block .dot:nth-child(1) {
+ left: 4px;
+ top: 4px;
+}
+.mario-block .dot:nth-child(2) {
+ right: 4px;
+ top: 4px;
+}
+.mario-block .dot:nth-child(3) {
+ bottom: 4px;
+ left: 4px;
+}
+.mario-block .dot:nth-child(4) {
+ bottom: 4px;
+ right: 4px;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next, we apply a fairly simple set of CSS that will be shared across both the confirm and cancel buttons:&lt;/p&gt;
-&lt;p&gt;(Pay attention to the &lt;code&gt;transition&lt;/code&gt; property as we will be returning to that shortly)&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;button {
- -webkit-appearance: none;
- -moz-appearance: none;
- border: 1px solid #ccc;
- border-radius: 125px;
- box-shadow: inset 0 13px 25px rgba(255,255,255,0.5), 0 3px 5px rgba(0,0,0,0.2), 0 10px 13px rgba(0,0,0,0.1);
+&lt;h3 id=&quot;punch-able-block&quot;&gt;Punch-able block&lt;/h3&gt;
+&lt;p&gt;Now we need to include the &amp;#8220;question mark&amp;#8221; SVG and custom CSS for the interactive Mario block. You can download a copy of the custom &lt;code&gt;svg&lt;/code&gt; question mark I created.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.mario-block--question label {
cursor: pointer;
- font-family: &amp;#39;Lucida Grande&amp;#39;, Helvetica, Arial, sans-serif;
- font-size: 2rem;
- margin: 5rem 1rem;
- padding: 1.2rem 4rem;
- position: relative;
- transition: all ease .3s;
+}
+.mario-block--question .question-mark {
+ background-image: url(&amp;#39;&amp;#47;public&amp;#47;images&amp;#47;mario-block-question-mark.svg&amp;#39;);
+ background-position: center;
+ background-repeat: no-repeat;
+ background-size: 40px;
+ bottom: 0;
+ left: 0;
+ position: absolute;
+ right: 0;
+ top: 0;
+ z-index: 1;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then we separate the specific confirm and cancel button styles into their own class selectors:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;button.confirm {
- background: #4A90E2;
- border-color: #3672B6;
- color: #fff;
+&lt;h3 id=&quot;the-last-piece&quot;&gt;The last piece&lt;/h3&gt;
+&lt;p&gt;The last item we need to design is the &lt;code&gt;checked&lt;/code&gt; state of the interactive question mark block. The extra inner dark dashes will be added as &lt;code&gt;pseudo&lt;/code&gt; elements:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Mario block in `checked` state *&amp;#47;
+.mario-block input:checked + label {
+ background: #885818;
+ box-shadow: inset -4px -4px 0 #68400B, inset 4px 4px 0 #FAB89B;
}
-button.cancel {
- background: #D0D0D0;
- border-color: #B8B8B8;
- color: #6F6F6F;
+&amp;#47;* Hide both the default dots and question mark svg on checked *&amp;#47;
+.mario-block input:checked + label .dot,
+.mario-block input:checked + label .question-mark {
+ display: none;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;playing-with-pseudo-elements&quot;&gt;Playing with pseudo elements&lt;/h3&gt;
-&lt;p&gt;Now that the button is styled and structured with basic formatting, it&amp;#8217;s time to add that classic &amp;#8216;shine&amp;#8217; seen in the original Dribbble shot.&lt;/p&gt;
-&lt;p&gt;The cleanest way to do this is by using the &lt;code&gt;:before&lt;/code&gt; pseudo element paired with a linear-gradient background.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;button:before {
- background: linear-gradient(rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
- border-radius: 125px;
- content:&amp;#39;&amp;#39;;
- height: 50px;
- left: 4%;
+
+&amp;#47;* Shared pseudo element styling *&amp;#47;
+.mario-block input:checked + label:before,
+.mario-block input:checked + label:after {
+ content: &amp;#39;&amp;#39;;
+ height: 20px;
position: absolute;
- top: 1px;
- transition: all ease .3s;
- width: 92%;
+ transform: rotate(45deg);
+ width: 20px;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;adding-interaction&quot;&gt;Adding interaction&lt;/h3&gt;
-&lt;p&gt;The final step is adding the user hover interaction: (Remember that &lt;code&gt;transition&lt;/code&gt; property?)&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;button:hover {
- box-shadow: inset 0 13px 25px rgba(255,255,255,0.8), 0 3px 5px rgba(0,0,0,0.2), 0 10px 13px rgba(0,0,0,0.2);
- transform: scale(1.02);
+
+&amp;#47;* Right dash *&amp;#47;
+.mario-block input:checked + label:before {
+ border-right: 4px solid #070000;
+ right: 18px;
+ top: 15px;
+ transform: rotate(45deg);
+}
+
+&amp;#47;* Left dash *&amp;#47;
+.mario-block input:checked + label:after {
+ border-left: 4px solid #070000;
+ left: 18px;
+ top: 15px;
+ transform: rotate(-45deg);
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That&amp;#8217;s it!&lt;/p&gt;
-&lt;h3 id=&quot;see-it-live-on-codepen&quot;&gt;See it live on CodePen&lt;/h3&gt;
-&lt;p&gt;You can view this project on CodePen here.&lt;/p&gt;
-&lt;p&gt;Feel free to fork it or implement your own!&lt;/p&gt;</description>
- <link>https://btxx.org/aui</link>
- <guid isPermaLink="false">https://btxx.org/aui</guid>
- <pubDate>Tue, 28 Jun 2016 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Audio Hotkeys on Linux Mint</title>
- <description>&lt;h1 id=&quot;audio-hotkeys-on-linux-mint&quot;&gt;Audio Hotkeys on Linux Mint&lt;/h1&gt;
-&lt;p&gt;2020-06-14&lt;/p&gt;
-&lt;p&gt;I recently switched out the OS on my old 2011 MacBook Air with Linux Mint. It&amp;#8217;s a distro I&amp;#8217;ve used a few times in the past, but never set it as one of my main daily drivers until now.&lt;/p&gt;
-&lt;p&gt;Setting up all my go-to applications (Sublime, LocalWP, Riot, Evolution, etc) was a breeze. The only snag I ran into was properly setting up the volume shortcuts on my wireless &lt;a href=&quot;https://www.amazon.com/gp/product/B01AROOL12/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=B01AROOL12&amp;amp;linkCode=as2&amp;amp;tag=uglyduck-20&amp;amp;linkId=5cfe5875a0f263b933692c381a6a88a9&quot;&gt;Logitech MK235 keyboard&lt;/a&gt;. After looking a little too long on DDG &amp;#38; even Google, I finally found &lt;a href=&quot;https://forums.linuxmint.com/viewtopic.php?t=253048&quot;&gt;this forum thread with the solution&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;For my own personal reference, I&amp;#8217;m also going to include those code snippets here since you never know when you might need it again! And who knows, maybe this will help someone else stumbling around the internet.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;&amp;#47; Volume Up
-pactl set-sink-volume @DEFAULT_SINK@ +5%
+&lt;h2 id=&quot;taking-it-further&quot;&gt;Taking it further&lt;/h2&gt;
+&lt;p&gt;As always, you can take this concept and flesh it out even further. I was trying to mimic the &amp;#8220;pixel&amp;#8221; style of the original Mario games, but you could make the lighting and depth more realistic with some extra subtle gradients or &lt;code&gt;filter&lt;/code&gt; properties.&lt;/p&gt;</description>
+ <link>https://btxx.org/super-mario-blocks-css</link>
+ <guid isPermaLink="false">https://btxx.org/super-mario-blocks-css</guid>
+ <pubDate>Fri, 15 Feb 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Tabbed Content Without JavaScript</title>
+ <description>&lt;h1 id=&quot;tabbed-content-without-javascript&quot;&gt;Tabbed Content Without JavaScript&lt;/h1&gt;
+&lt;p&gt;2019-01-28&lt;/p&gt;
+&lt;p&gt;Creating tabs is a fairly trivial and common practice in web design, but many times it requires JavaScript to properly implement. Fortunately it &lt;em&gt;is&lt;/em&gt; possible to create tabbed content with only using CSS.&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/tabbed-content.png&quot; alt=&quot;Tabbed elements with only CSS&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/abjmayw&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;hr/&gt;
+&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
+&lt;p&gt;The skeleton for this component is fairly basic - we just need the following structure:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;&lt;p&gt;Parent element for each tab item&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Default radio input&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Label linked to corresponding input&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Inner content associated with each tab item&lt;/p&gt;&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;Full HTML for reference:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;tabs&quot;&amp;#62;
-&amp;#47;&amp;#47; Volume Down
-pactl set-sink-volume @DEFAULT_SINK@ -5%
+ &amp;#60;div class=&quot;tab-item&quot;&amp;#62;
+ &amp;#60;input class=&quot;tab-input&quot; type=&quot;radio&quot; name=&quot;tabs&quot; id=&quot;tab-1&quot;&amp;#62;
+ &amp;#60;label class=&quot;tab-label&quot; for=&quot;tab-1&quot;&amp;#62;Tab 1&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;div class=&quot;tab-content&quot;&amp;#62;Content goes here&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+
+ &amp;#60;div class=&quot;tab-item&quot;&amp;#62;
+ &amp;#60;input class=&quot;tab-input&quot; type=&quot;radio&quot; name=&quot;tabs&quot; id=&quot;tab-2&quot;&amp;#62;
+ &amp;#60;label class=&quot;tab-label&quot; for=&quot;tab-2&quot;&amp;#62;Tab 2&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;div class=&quot;tab-content&quot;&amp;#62;Content goes here&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
+
+ &amp;#60;div class=&quot;tab-item&quot;&amp;#62;
+ &amp;#60;input class=&quot;tab-input&quot; type=&quot;radio&quot; name=&quot;tabs&quot; id=&quot;tab-3&quot;&amp;#62;
+ &amp;#60;label class=&quot;tab-label&quot; for=&quot;tab-3&quot;&amp;#62;Tab 3&amp;#60;&amp;#47;label&amp;#62;
+ &amp;#60;div class=&quot;tab-content&quot;&amp;#62;Content goes here&amp;#60;&amp;#47;div&amp;#62;
+ &amp;#60;&amp;#47;div&amp;#62;
-&amp;#47;&amp;#47; Toggle Mute
-pactl set-sink-mute @DEFAULT_SINK@ toggle
-&lt;/code&gt;&lt;/pre&gt;</description>
- <link>https://btxx.org/audio-hotkeys-on-linux-mint</link>
- <guid isPermaLink="false">https://btxx.org/audio-hotkeys-on-linux-mint</guid>
- <pubDate>Sun, 14 Jun 2020 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Animated Radio Tab Toggles</title>
- <description>&lt;h1 id=&quot;animated-radio-tab-toggles&quot;&gt;Animated Radio Tab Toggles&lt;/h1&gt;
-&lt;p&gt;2021-01-05&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;In this demo tutorial, we are making the assumption&lt;/em&gt; that we need to create a radio slide toggle for our made-up payment options. For this we want to display 3 simple payment choices to the user:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;One-time payment&lt;/li&gt;
-&lt;li&gt;Recurring payment&lt;/li&gt;
-&lt;li&gt;Free tier payment&lt;/li&gt;
-&lt;/ul&gt;
-&lt;h2 id=&quot;the-final-demo&quot;&gt;The Final Demo&lt;/h2&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/embed/vYXjpLO&quot;&gt;Live CodePen&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;Let’s get started with the base skeleton.&lt;/p&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;radio-toggles&quot;&amp;#62;
- &amp;#60;input type=&quot;radio&quot; id=&quot;option-1&quot; name=&quot;radio-options&quot;&amp;#62;
- &amp;#60;label for=&quot;option-1&quot;&amp;#62;One-Time&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;input type=&quot;radio&quot; id=&quot;option-2&quot; name=&quot;radio-options&quot; checked&amp;#62;
- &amp;#60;label for=&quot;option-2&quot;&amp;#62;Recurring&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;input type=&quot;radio&quot; id=&quot;option-3&quot; name=&quot;radio-options&quot;&amp;#62;
- &amp;#60;label for=&quot;option-3&quot;&amp;#62;Free&amp;#60;&amp;#47;label&amp;#62;
- &amp;#60;div class=&quot;slide-item&quot;&amp;#62;&amp;#60;&amp;#47;div&amp;#62;
&amp;#60;&amp;#47;div&amp;#62;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;Now for the main event – the CSS. First we want to style the wrapper that holds all of our pieces together. You can tweak this to your liking, but I prefer a simple and clean style:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.radio-toggles {
- align-items: center;
- background: #eee;
- border: 1px solid lightgrey;
- border-radius: 9999px;
- display: flex;
- justify-content: center;
- margin: 20px auto;
- max-width: 400px;
- overflow: hidden;
- padding: 4px;
+&lt;p&gt;First, we need to set each &lt;code&gt;input&lt;/code&gt;, &lt;code&gt;label&lt;/code&gt; and inner content into their own parent containers:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Main parent that holds all contents *&amp;#47;
+.tabs {
+ height: 100%;
+ min-height: 250px;
position: relative;
}
+
+&amp;#47;* Each tab items (includes heading &amp;#38; content) *&amp;#47;
+.tab-item {
+ display: inline;
+}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next, we “hide” (only visually) the default &lt;code&gt;radio&lt;/code&gt; inputs:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;input[type=&quot;radio&quot;] {
- left: -9999px;
+&lt;p&gt;Next, we will hide the default &lt;code&gt;radio&lt;/code&gt; input and design our labels to resemble a basic web tab element. The &lt;code&gt;z-index&lt;/code&gt; property on the label is important for how we will be stacking our content on the z-axis (labels above inner content for example).&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Hide the default radio inputs *&amp;#47;
+.tab-input {
position: absolute;
- z-index: -1;
+ visibility: hidden;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then we give the corresponding &lt;code&gt;label&lt;/code&gt; elements a little spacing and breathing room:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;label {
+
+&amp;#47;* The main tab headings *&amp;#47;
+.tab-label {
+ background: white;
+ box-shadow: inset 0 -4px 4px rgba(0,0,0,0.02);
+ color: lightgrey;
cursor: pointer;
+ display: inline-block;
+ font-weight: 600;
+ margin: 0 5px 0 0;
padding: 10px 20px;
+ position: relative;
text-align: center;
- width: 33.33%;
- z-index: 2;
+ z-index: 0;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Remember that &lt;code&gt;.slide-item&lt;/code&gt; I referenced earlier? That element will be the visual “slider” that animates between the individual radio options. We style that like so:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.slide-item {
+&lt;p&gt;The main inner content of each tab needs to have an &lt;code&gt;absolute&lt;/code&gt; position set as it&amp;#8217;s default, since the one currently selected will switch to &lt;code&gt;relative&lt;/code&gt; on mobile (more on that in a moment):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* The inner tab content *&amp;#47;
+.tab-content {
background: white;
- border-radius: 9999px;
- box-shadow: 0 2px 4px rgba(0,0,0,0.15);
- height: calc(100% - 8px);
- left: calc(33.33% + 4px);
+ bottom: 0;
+ box-shadow: 0 6px 8px rgba(0,0,0,0.02);
+ left: 0;
+ overflow: scroll;
+ padding: 20px;
position: absolute;
- width: calc(33.33% - 8px);
- transition: left .4s;
+ right: 0;
+ top: 50px;
z-index: 0;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;You&amp;#8217;ll notice the &lt;code&gt;left&lt;/code&gt;, &lt;code&gt;height&lt;/code&gt;, and &lt;code&gt;width&lt;/code&gt; properties utilize the CSS &lt;code&gt;calc&lt;/code&gt; attributes – this just gives some much needed padding and visual clean-up to the whole tabbed interface.&lt;/p&gt;
-&lt;p&gt;For the finishing touches, we just need to tell the &lt;code&gt;.slide-item&lt;/code&gt; where to position itself based on which &lt;code&gt;radio&lt;/code&gt; input is currently selected:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;input[type=&quot;radio&quot;]:nth-of-type(1):checked ~ .slide-item {
- left: 4px;
+&lt;p&gt;The final step is just telling the browser to style both the &lt;code&gt;label&lt;/code&gt; and inner content of the currently selected radio &lt;code&gt;input&lt;/code&gt;:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Style the currently selected tab label *&amp;#47;
+.tab-input:checked + .tab-label {
+ border: 1px solid #eee;
+ border-bottom: 0;
+ box-shadow: 0 -6px 8px rgba(0,0,0,0.02);
+ color: #268bd2;
+ z-index: 2;
}
-input[type=&quot;radio&quot;]:nth-of-type(3):checked ~ .slide-item {
- left: calc(66.66% + 4px);
+
+&amp;#47;* Show the currently selected tab content *&amp;#47;
+.tab-input:checked ~ .tab-content {
+ border: 1px solid #eee;
+ z-index: 1;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s pretty much it! You now have a fully functional, animated toggle slider with just a set of simple &lt;code&gt;radio&lt;/code&gt; inputs and pure CSS.&lt;/p&gt;</description>
- <link>https://btxx.org/animated-toggle-tabs</link>
- <guid isPermaLink="false">https://btxx.org/animated-toggle-tabs</guid>
- <pubDate>Tue, 05 Jan 2021 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Animated Card Tiles</title>
- <description>&lt;h1 id=&quot;animated-card-tiles&quot;&gt;Animated Card Tiles&lt;/h1&gt;
-&lt;p&gt;2019-02-27&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;The design trend of using &amp;#8220;cards&amp;#8221; or &amp;#8220;tiles&amp;#8221; to display interactive&lt;/em&gt; sections&amp;#47;article headings in an app or website remains a popular choice among designers. So, let&amp;#8217;s build a set of animated cards with only HTML &amp;#38; CSS. &lt;/p&gt;
-&lt;h2 id=&quot;what-we-will-be-building-live-demo&quot;&gt;What we will be building (live demo)&lt;/h2&gt;
-&lt;p&gt;This is the set of animated card tiles we will be creating:&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;(try hovering)&lt;/em&gt;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/rNjBpob&quot;&gt;Live CodePen&lt;/a&gt;&lt;/p&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;For the base skeleton of these cards we only need:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;&lt;p&gt;a &lt;code&gt;flexbox&lt;/code&gt; main container to hold everything&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;a &lt;code&gt;.card-tile&lt;/code&gt; parent element&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;the inner child element that will display on &lt;code&gt;:hover&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
-&lt;li&gt;&lt;p&gt;proper &lt;code&gt;h4&lt;/code&gt; and &lt;code&gt;p&lt;/code&gt; tags inside that child element&lt;/p&gt;&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;That&amp;#8217;s all that is needed - for now. We will be returning to this code shortly to add some extra classes to make our lives easier.&lt;/p&gt;
-&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
-&lt;p&gt;First we set the main housing container to use &lt;code&gt;flex&lt;/code&gt; so we save ourselves the headache of aligning all the cards in a nice row:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.card-tiles-container {
- display: flex;
- font-size: 14px;
- margin: 20px 0;
+&lt;p&gt;It&amp;#8217;s as simple as that! For reference, here is the entire CSS file for easier access:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Main parent that holds all contents *&amp;#47;
+.tabs {
+ height: 100%;
+ min-height: 250px;
+ position: relative;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next we create the default styling for our tile cards and set the &lt;code&gt;transform&lt;/code&gt; property to scale the card on &lt;code&gt;:hover&lt;/code&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Default card tile styles *&amp;#47;
-.card-tile {
- border: 1px solid;
- border-radius: 10px;
+
+&amp;#47;* Each tab items (includes heading &amp;#38; content) *&amp;#47;
+.tab-item {
+ display: inline;
+}
+
+&amp;#47;* Hide the default radio inputs *&amp;#47;
+.tab-input {
+ position: absolute;
+ visibility: hidden;
+}
+
+&amp;#47;* The main tab headings *&amp;#47;
+.tab-label {
+ background: white;
+ box-shadow: inset 0 -4px 4px rgba(0,0,0,0.02);
+ color: lightgrey;
cursor: pointer;
- height: 150px;
- margin: 0 10px;
- overflow: hidden;
+ display: inline-block;
+ font-weight: 600;
+ margin: 0 5px 0 0;
+ padding: 10px 20px;
position: relative;
- width: 33.33%;
-}
-.card-tile:hover {
- transform: scale(1.1);
+ text-align: center;
+ z-index: 0;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;where-are-my-cards&quot;&gt;Where are my cards?!&lt;/h3&gt;
-&lt;p&gt;Don&amp;#8217;t panic if you can&amp;#8217;t &lt;em&gt;visually&lt;/em&gt; see any card elements in your demo yet - that&amp;#8217;s to be expected. We will be styling these card elements momentarily.&lt;/p&gt;
-&lt;p&gt;Our next step is to hide the default inner &lt;code&gt;text-content&lt;/code&gt; and only show it on hover. We achieve this by setting it&amp;#8217;s position to &lt;code&gt;absolute&lt;/code&gt;, placing it&amp;#8217;s opacity at 0 and pushing it&amp;#8217;s z-index back to -1.&lt;/p&gt;
-&lt;p&gt;When the user hovers over a main card tile, we change the &lt;code&gt;text-content&lt;/code&gt; values of both the opacity and z-index to 1.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Card tile text content *&amp;#47;
-.card-tile .text-content {
- background: linear-gradient(rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
- bottom: 10px;
- border: 1px solid rgba(0,0,0,0.4);
- border-radius: 5px;
- box-shadow: inset 0 1px 1px rgba(255,255,255,0.8),
- 0 2px 4px rgba(0,0,0,0.5);
- height: 65px;
- left: 10px;
- opacity: 0;
- padding: 10px;
+
+&amp;#47;* The inner tab content *&amp;#47;
+.tab-content {
+ background: white;
+ bottom: 0;
+ box-shadow: 0 6px 8px rgba(0,0,0,0.02);
+ left: 0;
+ overflow: scroll;
+ padding: 20px;
position: absolute;
- width: calc(100% - 20px);
- z-index: -1;
+ right: 0;
+ top: 50px;
+ z-index: 0;
}
-.card-tile:hover .text-content {
- opacity: 1;
- z-index: 1;
+
+&amp;#47;* Style the currently selected tab label *&amp;#47;
+.tab-input:checked + .tab-label {
+ border: 1px solid #eee;
+ border-bottom: 0;
+ box-shadow: 0 -6px 8px rgba(0,0,0,0.02);
+ color: #268bd2;
+ z-index: 2;
}
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Finally we add some minor styling for the inner header and paragraph tags:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;.card-tile .text-content h4,
-.card-tile .text-content p {
- color: #fff;
- margin: 0;
- text-shadow: 1px 1px 1px rgba(0,0,0,0.6);
+
+&amp;#47;* Show the currently selected tab content *&amp;#47;
+.tab-input:checked ~ .tab-content {
+ border: 1px solid #eee;
+ z-index: 1;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;dont-forget-mobile&quot;&gt;Don&amp;#8217;t forget mobile&lt;/h3&gt;
-&lt;p&gt;We want out UI to stack the cards if users are viewing them on smaller devices:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;@media(max-width: 600px) {
- .card-tiles-container {
- flex-direction: column;
- }
- .card-tile {
- margin: 0 0 10px 0;
+&lt;h2 id=&quot;dont-forget-about-mobile&quot;&gt;Don&amp;#8217;t forget about mobile&lt;/h2&gt;
+&lt;p&gt;With only a few extra lines of CSS we can ensure that our custom tabs will stack on top of each other and look solid on mobile devices:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;@media(max-width:38em) {
+ .tab-label {
+ display: block;
width: 100%;
}
+ .tab-content {
+ display: none;
+ }
+ .tab-input:checked ~ .tab-content {
+ bottom: auto;
+ display: block;
+ position: relative;
+ top: auto;
+ }
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;customizing-each-card&quot;&gt;Customizing each card&lt;/h2&gt;
-&lt;p&gt;Remember how I mentioned that we would be adding more classes to the original HTML? Now is the time. We will be including a simple class on each card tile to provide it&amp;#8217;s own custom coloring:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;card-tiles-container&quot;&amp;#62;
- &amp;#60;!-- `Blue` class --&amp;#62;
- &amp;#60;div class=&quot;card-tile blue&quot;&amp;#62;
- &amp;#60;div class=&quot;text-content&quot;&amp;#62;
- &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
- &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;!-- `Orange` class --&amp;#62;
- &amp;#60;div class=&quot;card-tile orange&quot;&amp;#62;
- &amp;#60;div class=&quot;text-content&quot;&amp;#62;
- &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
- &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;!-- `Green` class --&amp;#62;
- &amp;#60;div class=&quot;card-tile green&quot;&amp;#62;
- &amp;#60;div class=&quot;text-content&quot;&amp;#62;
- &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
- &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;And these color classes correlate to some new CSS styling:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Blue Card *&amp;#47;
-.card-tile.blue {
- background-color: #0093E9;
- background-image: linear-gradient(0deg, #0093E9 0%, #80D0C7 100%);
- border-color: #0093E9;
- box-shadow: 0 4px 12px rgba(128,208,199,0.7),
- inset 0 2px 1px rgba(255,255,255,0.6);
-}
-.card-tile.blue:hover {
- box-shadow: 0 8px 18px rgba(128,208,199,0.4),
- inset 0 2px 1px rgba(255,255,255,0.6);
-}
-
-&amp;#47;* Orange Card *&amp;#47;
-.card-tile.orange {
- background-color: #FAD961;
- background-image: linear-gradient(180deg, #FAD961 0%, #F76B1C 100%);
- border-color: #F76B1C;
- box-shadow: 0 4px 12px rgba(247,107,28,0.7),
- inset 0 2px 1px rgba(255,255,255,0.6);
-}
-.card-tile.orange:hover {
- box-shadow: 0 8px 18px rgba(247,107,28,0.4),
- inset 0 2px 1px rgba(255,255,255,0.6);
-}
-
-&amp;#47;* Green Card *&amp;#47;
-.card-tile.green {
- background-color: #096e40;
- background-image: linear-gradient(0deg, #096e40 0%, #2AF598 100%);
- border-color: #096e40;
- box-shadow: 0 4px 12px rgba(9,110,64,0.7),
- inset 0 2px 1px rgba(255,255,255,0.6);
-}
-.card-tile.green:hover {
- box-shadow: 0 8px 18px rgba(9,110,64,0.4),
- inset 0 2px 1px rgba(255,255,255,0.6);
+&lt;h2 id=&quot;one-minor-caveat&quot;&gt;One minor caveat&lt;/h2&gt;
+&lt;p&gt;Even though I&amp;#8217;m a pretty big fan of implementing tabs this way, there is a small drawback:&lt;/p&gt;
+&lt;p&gt;The &lt;code&gt;height&lt;/code&gt; of the inner content doesn&amp;#8217;t grow dynamically since it defaults as &lt;code&gt;absolute&lt;/code&gt;, so a &lt;code&gt;min-height&lt;/code&gt; or &lt;code&gt;height&lt;/code&gt; value is required on the parent element. This could become a problem in certain situations where you don&amp;#8217;t have the luxury of setting a static height.&lt;/p&gt;
+&lt;p&gt;Other than that, enjoy building some JavaScript-free tabs!&lt;/p&gt;</description>
+ <link>https://btxx.org/tabbed-content</link>
+ <guid isPermaLink="false">https://btxx.org/tabbed-content</guid>
+ <pubDate>Mon, 28 Jan 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Making Tables Responsive With Minimal CSS</title>
+ <description>&lt;h1 id=&quot;making-tables-responsive-with-minimal-css&quot;&gt;Making Tables Responsive With Minimal CSS&lt;/h1&gt;
+&lt;p&gt;2019-06-11&lt;/p&gt;
+&lt;hr/&gt;
+&lt;p&gt;I find that the need to create responsive table layouts pops up far more often than most developers would expect. The gut reaction might to be implement some sort of custom grid-system or pull in a pre-built library. Don&amp;#8217;t do this - just use tables and some simple CSS.&lt;/p&gt;
+&lt;p&gt;My recent article, &lt;a href=&quot;/html-like-1999&quot;&gt;Write HTML Like It&amp;#8217;s 1999&lt;/a&gt;, received far more attention than I ever expected on HackerNews. With this attention came a few comments mentioning how &lt;code&gt;table&lt;/code&gt; elements don&amp;#8217;t play nice with mobile devices or that it&amp;#8217;s not possible to have a useable layout on smaller screens. &lt;em&gt;This simply isn&amp;#8217;t true&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;Included below are two separate demos showing how to optimize &lt;code&gt;table&lt;/code&gt; HTML for mobile devices using only a minimal amount of CSS. These implementations may not be perfect, but they are far superior to injecting a bunch of custom &lt;code&gt;div&lt;/code&gt; elements to &lt;em&gt;look&lt;/em&gt; like tables.&lt;/p&gt;
+&lt;h2 id=&quot;demo-1-just-let-them-scroll&quot;&gt;Demo 1: Just let them scroll&lt;/h2&gt;
+&lt;p&gt;Okay I will admit, this implementation isn&amp;#8217;t the &lt;em&gt;greatest&lt;/em&gt; but I find it does work well with huge datasets. Simply set a &lt;code&gt;min-width&lt;/code&gt; on your parent &lt;code&gt;table&lt;/code&gt; element and the browser will just require the user to scroll the contents horizontally.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;table {
+ min-width: 800px; &amp;#47;* Set your desired min-width here *&amp;#47;
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;adding-transitions&quot;&gt;Adding transitions&lt;/h3&gt;
-&lt;p&gt;We can now see the actual cards visually and have the ability to interact with them, but there is a problem - they don&amp;#8217;t animate.&lt;/p&gt;
-&lt;p&gt;Lucky we can target all elements we wish to animate with the &lt;code&gt;transition&lt;/code&gt; property, like so:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#47;* Shared transitions *&amp;#47;
-.card-tile,
-.card-tile .text-content {
- transition: .3s ease all;
+&lt;p&gt;Check out the CodePen below to see it in action:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/ewObbW/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;I actually prefer this method because of its simplicity and function. Users on mobile are familiar with scrolling since it is one of the most basic actions required. Seeing a &amp;#8220;cut-off&amp;#8221; table gives them an instant visual cue that they have the ability to scroll the content.&lt;/p&gt;
+&lt;h2 id=&quot;demo-2-more-flexible-than-you-think&quot;&gt;Demo 2: More flexible than you think&lt;/h2&gt;
+&lt;p&gt;Using something like &lt;code&gt;flexbox&lt;/code&gt; tends to work better when you are working with smaller table datasets. All you need to do is add some minor &lt;code&gt;flexbox&lt;/code&gt; layout at your targeted mobile screen size.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Using 800px as mobile screen in this example *&amp;#47;
+@media(max-width: 800px) {
+ &amp;#47;* Hide the table headings *&amp;#47;
+ table thead {
+ left: -9999px;
+ position: absolute;
+ visibility: hidden;
+ }
+ table tr {
+ border-bottom: 0;
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ margin-bottom: 40px;
+ }
+ table td {
+ border: 1px solid;
+ margin: 0 -1px -1px 0; &amp;#47;* Removes double-borders *&amp;#47;
+ width: 50%;
+ }
}
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Done and done.&lt;/p&gt;
-&lt;h2 id=&quot;the-final-code&quot;&gt;The final code&lt;/h2&gt;
-&lt;p&gt;To make things easier for reference, I have included all the &lt;code&gt;html&lt;/code&gt; and &lt;code&gt;css&lt;/code&gt; below. Please feel free to use these cards anywhere you like and change them as you see fit!&lt;/p&gt;
-&lt;h3 id=&quot;html&quot;&gt;HTML&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;div class=&quot;card-tiles-container&quot;&amp;#62;
- &amp;#60;div class=&quot;card-tile blue&quot;&amp;#62;
- &amp;#60;div class=&quot;text-content&quot;&amp;#62;
- &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
- &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;card-tile orange&quot;&amp;#62;
- &amp;#60;div class=&quot;text-content&quot;&amp;#62;
- &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
- &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;div class=&quot;card-tile green&quot;&amp;#62;
- &amp;#60;div class=&quot;text-content&quot;&amp;#62;
- &amp;#60;h4&amp;#62;Card Title&amp;#60;&amp;#47;h4&amp;#62;
- &amp;#60;p&amp;#62;Inner card content text&amp;#60;&amp;#47;p&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
- &amp;#60;&amp;#47;div&amp;#62;
-&amp;#60;&amp;#47;div&amp;#62;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;css&quot;&gt;CSS&lt;/h3&gt;
-&lt;pre&gt;&lt;code&gt;.card-tiles-container {
- display: flex;
- font-size: 14px;
- margin: 20px 0;
-}
-&amp;#47;* Shared transitions *&amp;#47;
-.card-tile,
-.card-tile .text-content {
- transition: .3s ease all;
-}
-&amp;#47;* Default card tile styles *&amp;#47;
-.card-tile {
- border: 1px solid;
- border-radius: 10px;
- cursor: pointer;
- height: 150px;
- margin: 0 10px;
- overflow: hidden;
- position: relative;
- width: 33.33%;
-}
-&amp;#47;* Blue Card *&amp;#47;
-.card-tile.blue {
- background-color: #0093E9;
- background-image: linear-gradient(0deg, #0093E9 0%, #80D0C7 100%);
- border-color: #0093E9;
- box-shadow: 0 4px 12px rgba(128,208,199,0.7),
- inset 0 2px 1px rgba(255,255,255,0.6);
-}
-.card-tile.blue:hover {
- box-shadow: 0 8px 18px rgba(128,208,199,0.4),
- inset 0 2px 1px rgba(255,255,255,0.6);
-}
-&amp;#47;* Orange Card *&amp;#47;
-.card-tile.orange {
- background-color: #FAD961;
- background-image: linear-gradient(180deg, #FAD961 0%, #F76B1C 100%);
- border-color: #F76B1C;
- box-shadow: 0 4px 12px rgba(247,107,28,0.7),
- inset 0 2px 1px rgba(255,255,255,0.6);
-}
-.card-tile.orange:hover {
- box-shadow: 0 8px 18px rgba(247,107,28,0.4),
- inset 0 2px 1px rgba(255,255,255,0.6);
-}
-&amp;#47;* Green Card *&amp;#47;
-.card-tile.green {
- background-color: #096e40;
- background-image: linear-gradient(0deg, #096e40 0%, #2AF598 100%);
- border-color: #096e40;
- box-shadow: 0 4px 12px rgba(9,110,64,0.7),
- inset 0 2px 1px rgba(255,255,255,0.6);
-}
-.card-tile.green:hover {
- box-shadow: 0 8px 18px rgba(9,110,64,0.4),
- inset 0 2px 1px rgba(255,255,255,0.6);
-}
-&amp;#47;* Card tile text content *&amp;#47;
-.card-tile .text-content {
- background: linear-gradient(rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
- bottom: 10px;
- border: 1px solid rgba(0,0,0,0.4);
- border-radius: 5px;
- box-shadow: inset 0 1px 1px rgba(255,255,255,0.8),
- 0 2px 4px rgba(0,0,0,0.5);
- height: 65px;
- left: 10px;
- opacity: 0;
- padding: 10px;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/mZbvOb/&quot;&gt;Check out the CodePen demo&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;There are some caveats with this approach:&lt;/p&gt;
+&lt;ol&gt;
+&lt;li&gt;We currently hide the &lt;code&gt;thead&lt;/code&gt; row when in mobile view (only visually - screen readers can still scan it)&lt;/li&gt;
+&lt;li&gt;Some more custom work might be needed depending on how many items per &lt;code&gt;flexbox&lt;/code&gt; row makes sense (based on project and dataset)&lt;/li&gt;
+&lt;/ol&gt;
+&lt;p&gt;You could keep the table headings and style them the same as the &lt;code&gt;tbody&lt;/code&gt; contents, but I find hiding them a little cleaner. That choice is entirely up to your personal preference. You can also decide to add heading &lt;code&gt;span&lt;/code&gt; elements inside the main &lt;code&gt;tbody&lt;/code&gt; elements like so:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Default span styling - hidden on desktop *&amp;#47;
+table td span {
+ background: #eee;
+ color: dimgrey;
+ display: none;
+ font-size: 10px;
+ font-weight: bold;
+ padding: 5px;
position: absolute;
- width: calc(100% - 20px);
- z-index: -1;
-}
-.card-tile .text-content h4,
-.card-tile .text-content p {
- color: #fff;
- margin: 0;
- text-shadow: 1px 1px 1px rgba(0,0,0,0.6);
-}
-&amp;#47;* All animations on hover *&amp;#47;
-.card-tile:hover {
- transform: scale(1.1);
-}
-.card-tile:hover .text-content {
- opacity: 1;
- z-index: 1;
+ text-transform: uppercase;
+ top: 0;
+ left: 0;
}
-@media(max-width: 600px) {
- .card-tiles-container {
- flex-direction: column;
+
+&amp;#47;* Simple CSS for flexbox table on mobile *&amp;#47;
+@media(max-width: 800px) {
+ table thead {
+ left: -9999px;
+ position: absolute;
+ visibility: hidden;
}
- .card-tile {
- margin: 0 0 10px 0;
- width: 100%;
+ table tr {
+ border-bottom: 0;
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ margin-bottom: 40px;
+ }
+ table td {
+ border: 1px solid;
+ margin: 0 -1px -1px 0;
+ padding-top: 35px; &amp;#47;* additional padding to avoid heading overlap *&amp;#47;
+ position: relative;
+ width: 50%;
+ }
+ &amp;#47;* Show the heading span *&amp;#47;
+ table td span {
+ display: block;
}
}
-&lt;/code&gt;&lt;/pre&gt;</description>
- <link>https://btxx.org/animated-card-tiles</link>
- <guid isPermaLink="false">https://btxx.org/animated-card-tiles</guid>
- <pubDate>Wed, 27 Feb 2019 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Adventures in Creating a Minimal Alpine Linux Installer</title>
- <description>&lt;h1 id=&quot;adventures-in-creating-a-minimal-alpine-linux-installer&quot;&gt;Adventures in Creating a Minimal Alpine Linux Installer&lt;/h1&gt;
-&lt;p&gt;2022-12-08&lt;/p&gt;
-&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve made the switch to Alpine Linux as my main laptop&amp;#47;desktop hybrid
-workstation and I love it - warts and all. This post will follow my process building my Alpine Linux &amp;#8220;installer&amp;#8221; I used for this workstation, along with covering some bugs I found during my adventure.&lt;/p&gt;
-&lt;p&gt;My main goals when starting this project were to have a daily driver that was:&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;free of any &amp;#8220;real&amp;#8221; desktop environment&lt;/li&gt;
-&lt;li&gt;Wayland based with SwayWM&lt;/li&gt;
-&lt;li&gt;as lightweight as possible&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;Overall, I think I achieved what I was aiming for. After logging in (there is no login manager, you do it directly through the boot terminal) you will see:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/alpine-1.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;(You can view the &lt;a href=&quot;/public/images/alpine-1.jpg&quot;&gt;full res image here&lt;/a&gt;)&lt;/p&gt;
-&lt;p&gt;For reference this is running on a X260 ThinkPad with 16GB RAM, docked and connected to a 27&amp;#8221; 4K monitor.&lt;/p&gt;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/mZdzmZ/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Updated&lt;/strong&gt;: As pointed out by user &lt;a href=&quot;https://news.ycombinator.com/user?id=mmoez&quot;&gt;mmoez&lt;/a&gt;, it is far less repetitive to use &lt;code&gt;:nth-child&lt;/code&gt; pseudo selectors to implement the heading fields on mobile (as outlined in this &lt;a href=&quot;https://css-tricks.com/responsive-data-tables/&quot;&gt;CSS-Tricks article&lt;/a&gt;).&lt;/p&gt;
+&lt;h2 id=&quot;why-should-i-care-to-use-elements&quot;&gt;Why should I care to use &lt;code&gt;table&lt;/code&gt; elements?&lt;/h2&gt;
+&lt;p&gt;Simply put: &lt;strong&gt;accessibility&lt;/strong&gt; and &lt;strong&gt;proper semantics&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;Why use a screwdriver when you need a hammer? Sure, you can make that screwdriver look and &lt;em&gt;almost&lt;/em&gt; work the same as a hammer, but for what purpose? Just use the damn hammer1.&lt;/p&gt;
+&lt;p&gt;Have fun making your tables responsive!&lt;/p&gt;
+&lt;p&gt;1 I know, this is a terrible analogy&amp;#8230;&lt;/p&gt;</description>
+ <link>https://btxx.org/tables</link>
+ <guid isPermaLink="false">https://btxx.org/tables</guid>
+ <pubDate>Tue, 11 Jun 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>The Wonders of Text Ellipsis</title>
+ <description>&lt;h1 id=&quot;the-wonders-of-text-ellipsis&quot;&gt;The Wonders of Text Ellipsis&lt;/h1&gt;
+&lt;p&gt;2016-11-15&lt;/p&gt;
+&lt;p&gt;A common issue when working with constrained UI elements is text overflowing outside of it&amp;#8217;s parent or breaking into addition lines (thus breaking the layout).&lt;/p&gt;
+&lt;p&gt;This is most commonly seen with the direct and placeholder values for input fields on form elements. For example, the following input placeholder will be cutoff from the user&amp;#8217;s view:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/OgpzyY/&quot;&gt;CodePen live example&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;Luckily, 3 simple CSS parameters can fix this.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;input::placeholder {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;This allows the user to understand there is more content cut out from their current view. It&amp;#8217;s not ideal to ever have content overflowing outside of the parent container, but if you need to the best workaround is to use text-overflow.&lt;/p&gt;</description>
+ <link>https://btxx.org/te</link>
+ <guid isPermaLink="false">https://btxx.org/te</guid>
+ <pubDate>Tue, 15 Nov 2016 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Text Align: Justify</title>
+ <description>&lt;h1 id=&quot;text-align-justify&quot;&gt;Text Align: Justify&lt;/h1&gt;
+&lt;p&gt;2019-05-22&lt;/p&gt;
+&lt;p&gt;The text-align property is fairly well known in the world of CSS, even among those just starting out with the language. Values such as &lt;code&gt;center&lt;/code&gt;, &lt;code&gt;left&lt;/code&gt; and &lt;code&gt;right&lt;/code&gt; are used often with this property, but a more forgotten option is &lt;code&gt;justify&lt;/code&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;what-does-justify-do&quot;&gt;What does justify do?&lt;/h2&gt;
+&lt;p&gt;The MDN web docs define the &lt;code&gt;justify&lt;/code&gt; value for &lt;code&gt;text-align&lt;/code&gt; as such:&lt;/p&gt;
+&lt;h3 id=&quot;see-it-in-action&quot;&gt;See it in action&lt;/h3&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/vwpmNz/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;when-should-i-use-this&quot;&gt;When should I use this?&lt;/h2&gt;
+&lt;p&gt;It isn&amp;#8217;t always appropriate to use &lt;code&gt;justify&lt;/code&gt; in most instances, although it becomes very useful for long form articles or blog posts. Since it takes a heavy influence from original &lt;em&gt;print&lt;/em&gt; book layouts, the &lt;code&gt;justify&lt;/code&gt; value helps improve readability for larger chunks of content.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Fair warning&lt;/strong&gt;: it is best to remove any &lt;code&gt;justify&lt;/code&gt; values when targeting smaller screen sizes. Mobile devices and&amp;#47;or tablets tend to be small enough to break up the content already. This CSS value is better suited for larger viewports.&lt;/p&gt;
+&lt;h2 id=&quot;browser-support&quot;&gt;Browser support&lt;/h2&gt;
+&lt;p&gt;The good news is that all major browsers support the &lt;code&gt;justify&lt;/code&gt; value for the &lt;code&gt;text-align&lt;/code&gt; CSS property. So have some worry-free fun with it!&lt;/p&gt;</description>
+ <link>https://btxx.org/text-align-justify</link>
+ <guid isPermaLink="false">https://btxx.org/text-align-justify</guid>
+ <pubDate>Wed, 22 May 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>They Won't Wait: A Warning for Slow Websites</title>
+ <description>&lt;h1 id=&quot;they-wont-wait-a-warning-for-slow-websites&quot;&gt;They Won&amp;#8217;t Wait: A Warning for Slow Websites&lt;/h1&gt;
+&lt;p&gt;2019-06-25&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;Your website is probably slow&lt;/em&gt;. I&amp;#8217;m not trying to make you feel bad or dismiss all the hard work you&amp;#8217;ve put into your project. Heck, performance might have been a core value of the design. But websites can always be faster.&lt;/p&gt;
+&lt;p&gt;People have become increasingly more impatient over the last decade when it comes to technology, specifically non-native web-based interactions. Users expect your website to load almost instantly or they will leave and try another site, probably one of your competitors. Why should they stick around if your competitors&amp;#8217; websites load half a second faster?&lt;/p&gt;
+&lt;p&gt;Users are tired of being bombarded with tracking scripts, having to download massive component libraries, forced to deal with &amp;#8220;accept cookies&amp;#8221; prompts, playing a small mini-game of &amp;#8220;close those ads!&amp;#8221;, and then being subjected to never-ending loading screens. This is not the internet we were promised.&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;If you&amp;#8217;d prefer to just go straight to the installer, feel free to jump over to the project repo: &lt;a href=&quot;https://git.sr.ht/~bt/alpine-linux-setup&quot;&gt;https:&amp;#47;&amp;#47;git.sr.ht&amp;#47;~bt&amp;#47;alpine-linux-setup&lt;/a&gt;&lt;/p&gt;
+&lt;p&gt;It&amp;#8217;s in my nature, I always liked &lt;strong&gt;speed&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;- Guy Lafleur&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;h2 id=&quot;getting-started&quot;&gt;Getting Started&lt;/h2&gt;
-&lt;p&gt;My main reasoning for switching away from my previous setup (Garuda Linux running Sway) to Alpine was two fold:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;I wanted a more lightweight, less resource hungry system&lt;/li&gt;
-&lt;li&gt;I wanted to go as &amp;#8220;full&amp;#8221; Wayland as possible&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h3 id=&quot;benchmarks-comparisons&quot;&gt;Benchmarks Comparisons&lt;/h3&gt;
-&lt;p&gt;I should mention that these are not official &amp;#8220;benchmark&amp;#8221; applications or proper testing. I merely reproduced the same tasks, using the same applications, for the same amount of time and compared the usage. Just keep that in mind!&lt;/p&gt;
+&lt;h2 id=&quot;we-can-do-better&quot;&gt;We can do better&lt;/h2&gt;
+&lt;p&gt;If there is only one thing that you learn from this post, hopefully it&amp;#8217;s knowing to better value the &lt;strong&gt;time and money of your users&lt;/strong&gt;. It&amp;#8217;s a user&amp;#8217;s &lt;em&gt;choice&lt;/em&gt; to visit your website, so taking advantage of their time is extremely careless. Don&amp;#8217;t be arrogant and ignore the cost of data on most mobile plans either. Eating up a chunk of someone&amp;#8217;s data just for hitting your website is rage-inducing. That&amp;#8217;s how you can lose customers permanently.&lt;/p&gt;
+&lt;p&gt;Let&amp;#8217;s do an analogy, because &lt;strong&gt;I love stupid analogies&lt;/strong&gt;:&lt;/p&gt;
+&lt;p&gt;Imagine going to your local hardware store because you need to buy a new hammer. Once you get to the entrance a woman holds the the door closed and asks you if it&amp;#8217;s alright for someone to follow you around the store today. You say no. She then follows up by asking if you accept their hardware store agreement before proceeding inside - you tell her &amp;#8220;sure&amp;#8221;. She finally opens the door and lets you in. As you walk into the store she quickly stuffs a few advertisements for other local businesses into you hand. &amp;#8220;Thanks&amp;#8221;, you mutter.&lt;/p&gt;
+&lt;p&gt;Once inside you realize the hardware store is &lt;em&gt;very big&lt;/em&gt; and manually looking for a hammer might take a while. You walk up to the front desk to ask where you can find a hammer but notice the cashier is playing with their phone behind the counter. You try to get their attention but they simply raise their hand and shout &amp;#8220;Be with you in a minute&amp;#8221;. After a short while they get off their phone and &lt;em&gt;finally&lt;/em&gt; listen to your question. They then tell you where to find the hammers.&lt;/p&gt;
+&lt;p&gt;Does this sound like a &lt;em&gt;fast&lt;/em&gt; and easy experience?&lt;/p&gt;
+&lt;p&gt;As silly as this hypothetical trip to the hardware store might be, it&amp;#8217;s exactly what many current websites are putting their users through. Users - read &lt;em&gt;customers&lt;/em&gt; - are coming to your website with a specific goal in mind; checking out a product, consuming information or just satisfying their curiosity. Stop putting so many blockers and excessive bloat in front of them.&lt;/p&gt;
+&lt;h2 id=&quot;data-doesnt-lie&quot;&gt;Data doesn&amp;#8217;t lie&lt;/h2&gt;
+&lt;p&gt;If my terrible analogy wasn&amp;#8217;t enough to convince you to implement better performance on your website, then maybe some &amp;#8220;BIG DATA&amp;#8221; will.&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;strong&gt;Garuda Linux&lt;/strong&gt;
+&lt;li&gt;&lt;a href=&quot;https://web.archive.org/web/20081117195303if_/http://home.blarg.net/~glinden/StanfordDataMining.2006-11-29.ppt&quot;&gt;Amazon (PowerPoint, slide #15)&lt;/a&gt;: 100 ms of latency resulted in 1% less sales.&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://youtu.be/6x0cAzQ7PVs?t=936&quot;&gt;Google (video)&lt;/a&gt;: 500 ms caused a 20% drop in traffic.&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://www.slideshare.net/devonauerswald/walmart-pagespeedslide&quot;&gt;Walmart (slide #46)&lt;/a&gt;: a 100 ms improvement brought up to 1% incremental revenue&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://blog.mozilla.org/metrics/2010/04/05/firefox-page-load-speed-%E2%80%93-part-ii/&quot;&gt;Mozilla&lt;/a&gt;: Shaving 2.2 seconds off page load time increased downloads by 15.4%&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://www.slideshare.net/stubbornella/designing-fast-websites-presentation/23-1_Create_a_component_library&quot;&gt;Yahoo&lt;/a&gt;: 400 ms resulted in a 5 to 9% drop in traffic&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;All data taken from &lt;a href=&quot;https://instant.page&quot;&gt;instant.page&lt;/a&gt; (which I am a huge fan of &amp;hearts;)&lt;/p&gt;
+&lt;p&gt;The fact something as small as 100 ms can have such a profound impact on your bottom-line should be eye-opening. You&amp;#8217;re leaving money of the table by not tackling even the low-hanging, easy performance wins. You need to start valuing your users&amp;#8217; time and stop serving them excessive garbage they never asked for.&lt;/p&gt;
+&lt;h2 id=&quot;small-and-easy-wins&quot;&gt;Small and easy wins&lt;/h2&gt;
+&lt;p&gt;Not all of these suggestions can work for every project (due to restrictions, brand guidelines, required marketing targets, etc.) but for most developers&amp;#47;designers they should be easy to implement: (in no particular order of importance)&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;SwayWM&lt;/li&gt;
-&lt;li&gt;Firefox: 9 tabs (Figma included)&lt;/li&gt;
-&lt;li&gt;qutebrowser: 7 tabs&lt;/li&gt;
-&lt;li&gt;aerc: open&amp;#47;running&lt;/li&gt;
-&lt;li&gt;tut: open-running&lt;/li&gt;
-&lt;li&gt;Sublime Text: single project open&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Memory usage (range): 6.0-7.2 GB&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;Reduce the number of web requests
+&lt;ul&gt;
+&lt;li&gt;&lt;a href=&quot;https://developers.google.com/web/fundamentals/performance/get-started/httprequests-5&quot;&gt;HTTP Requests&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Alpine Linux&lt;/strong&gt;
+&lt;li&gt;Use web-safe fonts when available or if using custom fonts utilize the &lt;code&gt;font-display&lt;/code&gt; property
&lt;ul&gt;
-&lt;li&gt;SwayWM&lt;/li&gt;
-&lt;li&gt;Firefox: 9 tabs (Figma included)&lt;/li&gt;
-&lt;li&gt;qutebrowser: 7 tabs&lt;/li&gt;
-&lt;li&gt;aerc: open&amp;#47;running&lt;/li&gt;
-&lt;li&gt;tut: open-running&lt;/li&gt;
-&lt;li&gt;&lt;strong&gt;Memory usage (range): 1.0-3.5 GB&lt;/strong&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://www.cssfontstack.com/&quot;&gt;CSS Font Stack&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://css-tricks.com/font-display-masses/&quot;&gt;Font Display for the Masses&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Make proper use of &lt;em&gt;critical CSS&lt;/em&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;a href=&quot;https://alexwright.net/web-design-secrets/how-to-use-critical-css/&quot;&gt;How to Use Critical CSS&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Automatically generate CSS based on &amp;#8220;above the fold&amp;#8221;: &lt;a href=&quot;https://github.com/filamentgroup/criticalCSS&quot;&gt;criticalCSS&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Process all media (images &amp;#47; videos) through 3rd party tools
+&lt;ul&gt;
+&lt;li&gt;&lt;a href=&quot;https://cloudinary.com/&quot;&gt;Cloudinary&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://kraken.io/&quot;&gt;Kraken.io&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;&lt;a href=&quot;https://piio.co/&quot;&gt;Piio&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Sidenote: this blog uses the &lt;a href=&quot;https://nhoizey.github.io/jekyll-cloudinary/&quot;&gt;jekyll-cloudinary&lt;/a&gt; plugin to automatically process images&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Use &amp;#8220;just-in-time&amp;#8221; preloading (highly recommended for improved UX)
+&lt;ul&gt;
+&lt;li&gt;&lt;a href=&quot;https://instant.page/&quot;&gt;Instant Page&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;&lt;/li&gt;
+&lt;li&gt;Avoid using heavy tech-stacks whenever possible
+&lt;ul&gt;
+&lt;li&gt;Unless it is a critical use-case, users should not have to process or download extra resources&lt;/li&gt;
+&lt;li&gt;This also includes remove ads, pop-ups, 3rd party sign-up prompts, cookie notifications, over-the-top element animations, and all other &lt;strong&gt;garbage&lt;/strong&gt;. This impacts &lt;em&gt;UX&lt;/em&gt; performance, which is just as crucial as website loading speed&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Switching over has basically cut my system memory usage &lt;strong&gt;in half&lt;/strong&gt;. That ended up being a much better improvement than I predicted. These are beyond just numbers too - the system &lt;em&gt;feels&lt;/em&gt; snappier.&lt;/p&gt;
-&lt;p&gt;So, from a speed and usability stand point I considered this a success already.&lt;/p&gt;
-&lt;h2 id=&quot;crashes-roadblocks&quot;&gt;Crashes &amp;#38; Roadblocks&lt;/h2&gt;
-&lt;p&gt;Of course, things didn&amp;#8217;t run 100% flawlessly out-of-the-box. There were some pretty annoying &lt;strong&gt;crashes&lt;/strong&gt; and issues.&lt;/p&gt;
-&lt;h3 id=&quot;greetings-tty&quot;&gt;Greetings, tty&lt;/h3&gt;
-&lt;p&gt;After installing &lt;code&gt;tut&lt;/code&gt; I started walking through its guided setup. Once it prompted me to login via browser in order to authenticate, I clicked the link provided in the terminal. I was immediately thrown out of my session and into &lt;code&gt;tty&lt;/code&gt;. Awesome.&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ll save you both the headache and large amount of time I wasted on this silly &amp;#8220;bug&amp;#8221; and just say it had to do with my user settings trying to launch &amp;#8220;Chromium&amp;#8221; as my default browser. I normally set qutebrowser as much default, so this was a change I needed to make anyway.&lt;/p&gt;
-&lt;p&gt;I put the following in my &lt;code&gt;&amp;#47;etc&amp;#47;xdg&amp;#47;mimeapps.list&lt;/code&gt; (which is included by default with the installer)&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;[Default Applications]
-x-scheme-handler&amp;#47;http=org.qutebrowser.qutebrowser.desktop
-x-scheme-handler&amp;#47;https=org.qutebrowser.qutebrowser.desktop
-x-scheme-handler&amp;#47;ftp=org.qutebrowser.qutebrowser.desktop
-x-scheme-handler&amp;#47;chrome=org.qutebrowser.qutebrowser.desktop
-text&amp;#47;html=org.qutebrowser.qutebrowser.desktop
-application&amp;#47;x-extension-htm=org.qutebrowser.qutebrowser.desktop
-application&amp;#47;x-extension-html=org.qutebrowser.qutebrowser.desktop
-application&amp;#47;x-extension-shtml=org.qutebrowser.qutebrowser.desktop
-application&amp;#47;xhtml+xml=org.qutebrowser.qutebrowser.desktop
-application&amp;#47;x-extension-xhtml=org.qutebrowser.qutebrowser.desktop
-application&amp;#47;x-extension-xht=org.qutebrowser.qutebrowser.desktop
-image&amp;#47;bmp=feh.desktop
-image&amp;#47;gif=feh.desktop
-image&amp;#47;jpeg=feh.desktop
-image&amp;#47;jpg=feh.desktop
-image&amp;#47;png=feh.desktop
-image&amp;#47;tiff=feh.desktop
-image&amp;#47;x-bmp=feh.desktop
-image&amp;#47;x-pcx=feh.desktop
-image&amp;#47;x-tga=feh.desktop
-image&amp;#47;x-portable-pixmap=feh.desktop
-image&amp;#47;x-portable-bitmap=feh.desktop
-image&amp;#47;x-targa=feh.desktop
-image&amp;#47;x-portable-greymap=feh.desktop
-application&amp;#47;pcx=feh.desktop
-image&amp;#47;svg+xml=feh.desktop
-image&amp;#47;svg-xml=feh.desktop
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;You might have also noticed that I use &lt;code&gt;feh&lt;/code&gt; as my default image viewer as well. That&amp;#8217;s just my personal preference, feel free to switch that out as you see fit.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Sidenote:&lt;/strong&gt; Chromium now runs perfectly fine since the original crashes. I have no clue how or why. Wayland black magic, I assume? Maybe I installed a package that helped or an update occurred. &lt;em&gt;Shrug&lt;/em&gt;&lt;/p&gt;
-&lt;h3 id=&quot;screen-sharing&quot;&gt;Screen Sharing&lt;/h3&gt;
-&lt;p&gt;This has been a complete failure for me. I&amp;#8217;ve tried both the Chromium and Firefox &lt;a href=&quot;https://lr.vern.cc/r/swaywm/comments/l4e55v/guide_how_to_screenshare_from_chromiumfirefox/&quot;&gt;implementations of these &amp;#8220;hacks&amp;#8221;&lt;/a&gt; but neither work. For now I will fallback to my Garuda Linux OS boot and share my screen there. It&amp;#8217;s a silly workaround but I hardly ever need to &amp;#8220;show my screen&amp;#8221; in any capacity as is.&lt;/p&gt;
-&lt;p&gt;I can live without this for now. (Please &lt;a href=&quot;https://lists.sr.ht/~bt/public-inbox&quot;&gt;leave a message in my personal inbox&lt;/a&gt; if you know of another workaround for this!)&lt;/p&gt;
-&lt;h2 id=&quot;some-minor-tweaks&quot;&gt;Some Minor Tweaks&lt;/h2&gt;
-&lt;p&gt;Some of these &amp;#8220;hacks&amp;#8221; or tweaks I had to implement might help others who run into similar issues when setting up their own Alpine desktops.&lt;/p&gt;
-&lt;h3 id=&quot;aerc-mail&quot;&gt;aerc-mail&lt;/h3&gt;
-&lt;p&gt;It is important to install &lt;code&gt;gawk&lt;/code&gt; since &lt;code&gt;awk&lt;/code&gt; isn&amp;#8217;t &amp;#8220;real&amp;#8221; on Alpine. Once you have that on you system &lt;code&gt;aerc&lt;/code&gt; will render emails out-of-the-box.[^1]&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;apk add gawk
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h3 id=&quot;sublime-text&quot;&gt;Sublime Text&lt;/h3&gt;
-&lt;p&gt;Sublime Text requires flatpak, so if that isn&amp;#8217;t your &lt;em&gt;thing&lt;/em&gt; then you&amp;#8217;re better off snagging a different editor. I&amp;#8217;ve tried multiple times throughout my career to use an alternate editor (preferably 100% open source) but keep finding myself returning to Sublime. Maybe one day&amp;#8230;&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;apk add flatpak
-flatpak remote-add --if-not-exists flathub https:&amp;#47;&amp;#47;flathub.org&amp;#47;repo&amp;#47;flathub.flatpakrepo
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then reboot your machine for the changes to take. Login again and run:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;flatpak install flathub com.sublimetext.three
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;FYI: You &lt;em&gt;might&lt;/em&gt; need to run the above commands under &lt;code&gt;sudo&lt;/code&gt; if your current user lacks proper permissions.&lt;/p&gt;
-&lt;h3 id=&quot;cursors&quot;&gt;Cursors&lt;/h3&gt;
-&lt;p&gt;This was an odd edge case. For the most part, the default system cursors worked out of the box. Then I installed Firefox. That caused me to go down a rabbit-hole of (still open) tickets referencing poor cursor rendering for Wayland Firefox. Apparently some users even have their cursors disappear completely!&lt;/p&gt;
-&lt;p&gt;Not to worry though - there is an easy fix!&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Install &lt;a href=&quot;https://github.com/keeferrourke/capitaine-cursors&quot;&gt;capitaine cursors&lt;/a&gt;:
-apk add capitaine-cursors&lt;/li&gt;
-&lt;li&gt;Make a new directory:
-mkdir -p ~&amp;#47;.icons&amp;#47;capitaine-cursors&lt;/li&gt;
-&lt;li&gt;Copy the files over:
-sudo cp -r &amp;#47;usr&amp;#47;share&amp;#47;icons&amp;#47;capitaine-cursors-dark ~&amp;#47;.icons&amp;#47;capitaine-cursors&lt;/li&gt;
-&lt;li&gt;The make your cursor changes using &lt;code&gt;gnome-tweaks&lt;/code&gt;&lt;/li&gt;
-&lt;li&gt;Profit!&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
-&lt;p&gt;Overall I&amp;#8217;m decently satisfied with my &amp;#8220;installer&amp;#8221;. I&amp;#8217;ve included &lt;em&gt;just enough&lt;/em&gt; packages to hit the ground running when using this on new hardware or even needing to recover existing devices. This project certainly won&amp;#8217;t cover the needs of all users, but my hope is that others can always fork their own and give it a spin! (Please do report any bugs or issues as you come across them!)&lt;/p&gt;
-&lt;p&gt;Alpine Linux can be more than just a &amp;#8220;server distro&amp;#8221;. My daily driver proves it!&lt;/p&gt;
-&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;This is now included in my official installer script, but I originally had to install this manually.&lt;/li&gt;
-&lt;/ol&gt;</description>
- <link>https://btxx.org/alpine</link>
- <guid isPermaLink="false">https://btxx.org/alpine</guid>
- <pubDate>Thu, 08 Dec 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Avoiding Featurism</title>
- <description>&lt;h1 id=&quot;avoiding-featurism&quot;&gt;Avoiding Featurism&lt;/h1&gt;
-&lt;p&gt;2022-10-14&lt;/p&gt;
-&lt;p&gt;I rather enjoy the term &amp;#8220;featurism&amp;#8221;. I came across this term while reading the wonderful article &lt;a href=&quot;https://www.complang.tuwien.ac.at/anton/why-ancient-browsers.html&quot;&gt;Why I don&amp;#8217;t use Netscape&lt;/a&gt;, which the author credits to Bernd Paysan. Although it sums up the current &amp;#8220;digital product&amp;#8221; industry quite well the more specific terminology, &lt;em&gt;creeping featurism&lt;/em&gt;, works better:&lt;/p&gt;
+&lt;h2 id=&quot;no-need-to-be-extreme&quot;&gt;No need to be extreme&lt;/h2&gt;
+&lt;p&gt;These quick &amp;#8220;guidelines&amp;#8221; are just a solid jumping-off point when tackling new projects or re-working current websites. There isn&amp;#8217;t some agreed upon &lt;em&gt;golden standard&lt;/em&gt; when it comes to web performance, but I find these rules work as a great place to start. Hopefully it can help others as well.&lt;/p&gt;</description>
+ <link>https://btxx.org/they-wont-wait</link>
+ <guid isPermaLink="false">https://btxx.org/they-wont-wait</guid>
+ <pubDate>Tue, 25 Jun 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Icons Should be Complementary - Text is Always Better</title>
+ <description>&lt;h1 id=&quot;icons-should-be-complementary---text-is-always-better&quot;&gt;Icons Should be Complementary - Text is Always Better&lt;/h1&gt;
+&lt;p&gt;2021-12-17&lt;/p&gt;
+&lt;p&gt;Designing[^1] software is a complex thing. A great deal of real-world testing and user feedback is needed to create the best solution to the problem you are trying to fix. Obvious requirements are to keep things simple, make it easy to understand by &lt;em&gt;looking&lt;/em&gt; at it, and build it to be headache-resistant for future updates. All these things are easier said than done. This is the challenge of a designer&amp;#8217;s dat-to-day.&lt;/p&gt;
+&lt;p&gt;But with this term of &amp;#8220;simplicity&amp;#8221; modern designers tend to take this approach too much to heart. In my 12+ years involved in UI&amp;#47;UX software design, I have lost count how many initial iterations of interfaces suffer from the same &amp;#8220;dumbing down&amp;#8221; decision making:&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Using icons to represent an action or function without textual information&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;If you decide to stop reading the rest of this article, at least take away this one important thing:&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;&lt;strong&gt;creeping featurism&lt;/strong&gt; (&lt;em&gt;noun&lt;/em&gt;)&lt;/p&gt;
-&lt;p&gt;A condition in which one or more people, often in the form of a committee, progressively increase the scope and complexity of a project until the project is deemed infeasible and subsequently cancelled to the detriment of all involved.&lt;/p&gt;
+&lt;p&gt;&lt;em&gt;Always try to use text to convey your designs&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;p&gt;Throughout my career of designing and developing software I have run into this exact issue far too often. The major issue with getting sucked into a black-hole of &amp;#8220;featurism&amp;#8221; is there is no single person to blame. It probably seems easy to place all the responsibility on PMs or team leaders, but even &lt;em&gt;if&lt;/em&gt; they are the ones adding excessive complexity to a given project, it is the role of developers and designers to speak up. It requires a team effort. Therefore, the &lt;em&gt;whole team&lt;/em&gt; needs to be on-guard to avoid it.&lt;/p&gt;
-&lt;h3 id=&quot;simple-guidelines&quot;&gt;Simple Guidelines&lt;/h3&gt;
-&lt;p&gt;These &amp;#8220;tips&amp;#8221; are not perfect, nor will they work for every work environment. Hopefully they can at least be used as basic guidelines and expanded upon from there.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Explore the feature&amp;#8217;s &lt;em&gt;benefit&lt;/em&gt; to the product. You need to confirm that this addition will be a net-positive for both customers and your bottom-line.&lt;/li&gt;
-&lt;li&gt;All team members assigned to a feature need to scope it out. Far too often I see feature sets that require design input being estimated solely by developers and vice versa.&lt;/li&gt;
-&lt;li&gt;Radically limit the scope of each individual task[^1]. Each task should be clear-cut, bite-sized and look almost trivial.&lt;/li&gt;
-&lt;li&gt;Lock-in tickets. Once they are agreed upon they &lt;strong&gt;cannot&lt;/strong&gt; be altered[^2]. Anything that absolutely &lt;em&gt;needs&lt;/em&gt; to be added should become a future ticket itself.&lt;/li&gt;
-&lt;li&gt;Follow-up with feature reviews. When a sprint or milestone is reached, it is important to reflect on what worked and what didn&amp;#8217;t. Call out any instances where the team steered away from the guidelines above.&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;That&amp;#8217;s it. Just a nice, simple baseline to branch off from to avoid &amp;#8220;featurism&amp;#8221;. Some items listed won&amp;#8217;t make sense for certain teams and that&amp;#8217;s okay. If you take the time to at least reflect on your feature workflow, I guarantee you&amp;#8217;ll find areas to improve.&lt;/p&gt;
-&lt;p&gt;Creeping featurism can kill your product and the morale of your team. Avoid it like the plague!&lt;/p&gt;
+&lt;p&gt;After achieving this, you should start reiterating those designs to include iconography. Even then, not all UI instances will require you to do that. Designers will find this process difficult, which is why it is important to get &lt;em&gt;right&lt;/em&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;icons-make-an-ass-out-of-u-and-me&quot;&gt;Icons make an &lt;em&gt;ass&lt;/em&gt; out of &lt;em&gt;u&lt;/em&gt; and &lt;em&gt;me&lt;/em&gt;&lt;/h2&gt;
+&lt;p&gt;Icons make general assumptions about what the user may or may not understand. Leading with this in your designs will end &lt;em&gt;poorly for you&lt;/em&gt;. Trust me - I&amp;#8217;ve learned this through failed designs many times over. A certain visualization might be common knowledge to you, while differing greatly to someone else with a different set of experiences.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ve found the only thing you should ever &lt;em&gt;assume&lt;/em&gt; is that the user knows nothing. Please note - I&amp;#8217;m not referring to their intelligence but instead their software literacy.&lt;/p&gt;
+&lt;p&gt;Take a look at our now &amp;#8220;famous&amp;#8221; save icon used in almost every piece of software; the floppy disk. Do any software users below the legal drinking age even understand the initial reasoning for using this icon? In all honesty, it was a terrible icon decision even when first introduced. No &amp;#8220;hard copy&amp;#8221; of the save action is taking place, software creates this save in a digital space[^2]. Yet, it was adopted and people (ie. designers) went along with it.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Quality is not measured by mass appeal.&lt;/strong&gt;&lt;/p&gt;
+&lt;p&gt;The argument could be made &amp;#8220;People learned to associate &amp;#8220;Save&amp;#8221; with a Floppy Disk icon&amp;#8230;&amp;#8221; and my response would be &amp;#8220;But what alternatives were they given?&amp;#8221;&lt;/p&gt;
+&lt;p&gt;Original software designers (and developers) held all the power in early UI decision making. General users didn&amp;#8217;t &lt;em&gt;know&lt;/em&gt; any better. Things were new and fresh. Now our response is to shrug our collective shoulders and say, &amp;#8220;That&amp;#8217;s how the save icon has to be now!&amp;#8221;&lt;/p&gt;
+&lt;p&gt;Hogwash. Make it a button that says, &lt;code&gt;Save File&lt;/code&gt;. I&amp;#8217;m not kidding. Oh, it doesn&amp;#8217;t work with your current design? Then your initial design wasn&amp;#8217;t future-proof then, was it? I sound snarky here but many designers put up imaginary walls around their design systems, making them incredibly rigid and difficult to adapt.&lt;/p&gt;
+&lt;p&gt;Take the time to do even a small thought &amp;#47; wireframe experiment: redo the layout and flow of your application without using a single piece of iconography. If you can&amp;#8217;t achieve this with even limited success, something is wrong with the design.&lt;/p&gt;
+&lt;h2 id=&quot;the-hamburger-menu-is-the-7th-circle-of-hell&quot;&gt;The hamburger menu is the 7th circle of Hell&lt;/h2&gt;
+&lt;p&gt;Normally, the inclusion of a hamburger menu is indicative of an overly complex application. Too many cooks and all that jazz. Enterprise applications don&amp;#8217;t get a pass here either, as they tend to be the worst culprits of pouring out everything on to the user as software vomit. Sweeping all this interaction under the hamburger &amp;#8220;rug&amp;#8221; does not make for a cleaner design.&lt;/p&gt;
+&lt;p&gt;New features are great, but stop dumping so much of it behind hidden, unintuitive sub-navigation. This design is such a &amp;#8220;quick fix&amp;#8221; and plagues far too many software apps[^3]. Both desktop computers and mobile devices allow users to &lt;em&gt;scroll&lt;/em&gt;, let them.&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ve discussed this in further detail here: &lt;a href=&quot;https://bt.ht/hamburger-menu-alternative/&quot;&gt;Using Hamburger Menus? Try Sausage Links&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;but-what-of-the-advanced-users&quot;&gt;But what of the &amp;#8220;advanced&amp;#8221; users?&lt;/h2&gt;
+&lt;p&gt;I understand applications will have advanced or &amp;#8220;pro&amp;#8221; users that have full knowledge of the product and wouldn&amp;#8217;t need things &lt;em&gt;spoon fed&lt;/em&gt; to them. This is a more difficult problem that I myself haven&amp;#8217;t been able to solve without approaching each one on a case-by-case basis. Unfortunately, there is no &amp;#8220;one size fits all&amp;#8221; method to this. But, although solving for advanced users proves difficult doesn&amp;#8217;t mean we should dismiss the merits of avoiding icons as a crutch.&lt;/p&gt;
+&lt;h2 id=&quot;try-for-yourself&quot;&gt;Try for yourself&lt;/h2&gt;
+&lt;p&gt;As I stated above, try doing a quick design experiment by replacing all your existing iconography in your application with simple text. I assure you that at least you&amp;#8217;ll discover interesting design flaws in your system.&lt;/p&gt;
&lt;h2 id=&quot;refs&quot;&gt;Refs&lt;/h2&gt;
&lt;ol&gt;
-&lt;li&gt;This is easier said than done. Normally you will need to have developed some form of &amp;#8220;point system&amp;#8221; internally, so you know how to effectively divide features.&lt;/li&gt;
-&lt;li&gt;&lt;em&gt;Taking away&lt;/em&gt; complexity, making changes that do not impact workload or reducing the ticket is fine - within reason.&lt;/li&gt;
+&lt;li&gt;By &amp;#8220;design&amp;#8221; I&amp;#8217;m referring to visuals not programming or system engineering&lt;/li&gt;
+&lt;li&gt;Early software programs did save to an external floppy disk. My point stands that many digital file storage applications copied this iconography blindly.&lt;/li&gt;
+&lt;li&gt;Not to mention how rampant it is on plain ol&amp;#8217; regular websites. If you&amp;#8217;re hiding five menu items behind a hamburger menu for &amp;#8220;mobile users&amp;#8221;, you&amp;#8217;re doing it wrong.&lt;/li&gt;
&lt;/ol&gt;</description>
- <link>https://btxx.org/af</link>
- <guid isPermaLink="false">https://btxx.org/af</guid>
- <pubDate>Fri, 14 Oct 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Setting Up AdGuard Home with Eero</title>
- <description>&lt;h1 id=&quot;setting-up-adguard-home-with-eero&quot;&gt;Setting Up AdGuard Home with Eero&lt;/h1&gt;
-&lt;p&gt;2022-11-04&lt;/p&gt;
-&lt;p&gt;Eariler this year I posted &lt;a href=&quot;/eero&quot;&gt;detailed instructions on setting up Pi-Hole with Eero&lt;/a&gt; and it seemed to help out a few people having troubles. With AdGuard Home recently popping up on the &lt;a href=&quot;https://news.ycombinator.com/item?id=33387678&quot;&gt;frontpage of HackerNews&lt;/a&gt;, I thought now would be a great time to post instructions of setting up &lt;em&gt;that&lt;/em&gt; service alongside Eero devices.&lt;/p&gt;
-&lt;h2 id=&quot;what-youll-need&quot;&gt;What You&amp;#8217;ll Need&lt;/h2&gt;
-&lt;ol&gt;
-&lt;li&gt;Raspberry Pi device (I recommend the Pi Zero for simplicity and low cost)&lt;/li&gt;
-&lt;li&gt;microSD card&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://www.raspberrypi.com/software/&quot;&gt;Raspberry Pi Imager&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;micro USB to ethernet adapter (check your local Amazon)&lt;/li&gt;
-&lt;li&gt;Patience!&lt;/li&gt;
-&lt;/ol&gt;
-&lt;h2 id=&quot;setting-up-the-raspberry-pi&quot;&gt;Setting Up the Raspberry Pi&lt;/h2&gt;
-&lt;p&gt;The first thing we need to do is flash Raspberry Pi &lt;strong&gt;Lite&lt;/strong&gt; onto our SD card. Open Raspberry Pi Imager, select the &lt;strong&gt;Lite&lt;/strong&gt; version of the OS and your respective media (the SD card):&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/rpi-lite-os.webp&quot; alt=&quot;Raspberry Pi Lite&quot; /&gt;&lt;/p&gt;
-&lt;p&gt;Don&amp;#8217;t flash anything just yet! Be sure to use the gear icon and edit the settings. Set a custom hostname, enable &lt;code&gt;ssh&lt;/code&gt; and setup a proper user:&lt;/p&gt;
-&lt;p&gt;&lt;img src=&quot;/public/images/rpi-adguard-1.webp&quot; alt=&quot;Imager settings&quot; /&gt;&lt;/p&gt;
-&lt;h2 id=&quot;plug-it-in-and-boot&quot;&gt;Plug it in and Boot!&lt;/h2&gt;
-&lt;p&gt;Put the SD card into your Pi, connect power and ethernet. Give it a bit of time to boot up. Once you see a nice solid green LED, go back to your local computer&amp;#8217;s terminal and enter the following command:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;ssh piguard@piguard.local
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If everything was set up properly you will be asked to trust this device. Next, you will be prompted to enter the device password you setup.&lt;/p&gt;
-&lt;p&gt;Once you are connected directly to the Pi, it&amp;#8217;s best to check for updates:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo apt update
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;&amp;#8230;and if updates are in fact available, install them via:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;sudo apt upgrade
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;installing-adguard-home&quot;&gt;Installing AdGuard Home&lt;/h2&gt;
-&lt;p&gt;Simply run the automated installer:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;curl -s -S -L https:&amp;#47;&amp;#47;raw.githubusercontent.com&amp;#47;AdguardTeam&amp;#47;AdGuardHome&amp;#47;master&amp;#47;scripts&amp;#47;install.sh | sh -s -- -v
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Follow the instructions and you&amp;#8217;ll be setup in no time! To view your AdGuard dashboard at any time, you can now simply navigate to &lt;code&gt;piguard.local&lt;/code&gt;.&lt;/p&gt;
-&lt;p&gt;If you run into any issues, I strongly suggest &lt;a href=&quot;https://github.com/AdguardTeam/AdGuardHome#getting-started&quot;&gt;reading through the &amp;#8220;Getting Started&amp;#8221; guide&lt;/a&gt;.&lt;/p&gt;
-&lt;h2 id=&quot;configuring-the-eero-app&quot;&gt;Configuring the Eero App&lt;/h2&gt;
-&lt;p&gt;Once your AdGuard Home server is installed and running, you can finally point your Eero network at it.&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Open the Eero app (iOS or Android)&lt;/li&gt;
-&lt;li&gt;Navigate to &lt;strong&gt;Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;Network Settings&lt;/strong&gt; &amp;#62; &lt;strong&gt;DNS&lt;/strong&gt;&lt;/li&gt;
-&lt;li&gt;Select &lt;strong&gt;Customized DNS&lt;/strong&gt; and enter both your saved IPv4 &amp;#47; IPv6 values (These can be found under the &lt;code&gt;Setup Guide&lt;/code&gt; tab in the main AdGuard Dashboard)&lt;/li&gt;
-&lt;li&gt;Eero will prompt you to reboot your network - do it&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;After the system reboots everything &lt;em&gt;should&lt;/em&gt; be working as intended!&lt;/p&gt;
-&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve personally switched over from Pi-Hole to AdGuard Home - it just feels more robust and the UI is significantly cleaner. Hopefully this helps others trying to do the same!&lt;/p&gt;</description>
- <link>https://btxx.org/adguard</link>
- <guid isPermaLink="false">https://btxx.org/adguard</guid>
- <pubDate>Fri, 04 Nov 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Website Backups with Apple iCloud</title>
- <description>&lt;h1 id=&quot;website-backups-with-apple-icloud&quot;&gt;Website Backups with Apple iCloud&lt;/h1&gt;
-&lt;p&gt;2024-02-16&lt;/p&gt;
-&lt;p&gt;My main work machine, an M2 MacBook Air, meshes really well with my iPhone SE (they are in the same ecosystem after all - duh!). Since both of these devices are Apple products, it makes sense that I pay for the optional iCloud service for extra storage. 50GB to be exact. I only need to bare minimum which costs just $1.68 a month, making this storage option cheaper than most cups of coffee these days.&lt;/p&gt;
-&lt;p&gt;Recently I&amp;#8217;ve been using iCloud as my &amp;#8220;middle-man&amp;#8221; backup system. I still have local, offline storage for most personal data but having additional off-site backups is never a bad thing. I make things easier for myself by taking advantage of &lt;code&gt;rsync&lt;/code&gt;. You&amp;#8217;ll need to make sure you have that program installed before trying this yourself:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;# This assumes you have homebrew installed first
-brew install rsync
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then, whenever I feel like backing up an existing project or website I simply run:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;rsync -a user_name@ssh.webserver.domain:&amp;#47;home&amp;#47;var&amp;#47;www&amp;#47; &amp;#47;Users&amp;#47;username&amp;#47;Library&amp;#47;Mobile\ Documents&amp;#47;com\~apple\~CloudDocs&amp;#47;Backups&amp;#47;site-backup
+ <link>https://btxx.org/use-text-not-icons</link>
+ <guid isPermaLink="false">https://btxx.org/use-text-not-icons</guid>
+ <pubDate>Fri, 17 Dec 2021 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Using User-Select</title>
+ <description>&lt;h1 id=&quot;using-user-select&quot;&gt;Using User-Select&lt;/h1&gt;
+&lt;p&gt;2019-06-04&lt;/p&gt;
+&lt;p&gt;Highlighting text in order to copy, cut or paste content is a staple action across the web. Now, what if I told you the ability to control what a user can select is configurable with a single CSS property?&lt;/p&gt;
+&lt;h2 id=&quot;introducing-the-css-property&quot;&gt;Introducing the CSS property&lt;/h2&gt;
+&lt;p&gt;Simply put, the &lt;code&gt;user-select&lt;/code&gt; property is defined as follows:&lt;/p&gt;
+&lt;blockquote&gt;
+&lt;p&gt;&lt;code&gt;user-select&lt;/code&gt; controls whether the user can select text (cursor or otherwise)&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;h2 id=&quot;the-css&quot;&gt;The CSS&lt;/h2&gt;
+&lt;p&gt;The property&amp;#8217;s available attributes are very straightforward (just remember to target specific browsers for full support!)&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;* Default *&amp;#47;
+p.default {
+ user-select: auto;
+ -moz-user-select: auto;
+ -webkit-user-select: auto;
+}
+
+&amp;#47;* Disable the user from selecting text *&amp;#47;
+p.no-select {
+ user-select: none;
+ -moz-user-select: none;
+ -webkit-user-select: none;
+}
+
+&amp;#47;* Select all text when user clicks *&amp;#47;
+p.select-all {
+ user-select: all;
+ -moz-user-select: all;
+ -webkit-user-select: all;
+}
&lt;/code&gt;&lt;/pre&gt;
+&lt;h2 id=&quot;lets-see-it-in-action&quot;&gt;Let&amp;#8217;s see it in action&lt;/h2&gt;
+&lt;p&gt;Try selecting the separate paragraph elements in the CodePen below:&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;https://codepen.io/bradleytaunt/pen/QRooZp/&quot;&gt;Live CodePen Example&lt;/a&gt;&lt;/p&gt;
+&lt;h2 id=&quot;browser-support&quot;&gt;Browser Support&lt;/h2&gt;
+&lt;p&gt;The great news is &lt;code&gt;user-select&lt;/code&gt; is fully supported across all modern browsers (even as far back as IE10!)&lt;/p&gt;</description>
+ <link>https://btxx.org/user-select</link>
+ <guid isPermaLink="false">https://btxx.org/user-select</guid>
+ <pubDate>Tue, 04 Jun 2019 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Running VSCode in Chromium on OpenBSD</title>
+ <description>&lt;h1 id=&quot;running-vscode-in-chromium-on-openbsd&quot;&gt;Running VSCode in Chromium on OpenBSD&lt;/h1&gt;
+&lt;p&gt;2023-06-05&lt;/p&gt;
+&lt;p&gt;VSCode and its many variations are not available on OpenBSD. This doesn&amp;#8217;t cause issue with many OpenBSD users, but those making the jump from Linux might miss access to such a popular editor. Lucky for us, there is a &lt;em&gt;hacky&lt;/em&gt; workaround to solve this problem.&lt;/p&gt;
+&lt;h2 id=&quot;vscode-in-the-browser&quot;&gt;VSCode in the Browser&lt;/h2&gt;
+&lt;p&gt;I tried my best to build something like &lt;code&gt;code-server&lt;/code&gt; locally and run that directly in my browser - but I failed miserably. Instead, I fell back on &lt;a href=&quot;https://vscode.dev&quot;&gt;vscode.dev&lt;/a&gt; which is essentially a remote version of &lt;code&gt;code-server&lt;/code&gt;.&lt;/p&gt;
+&lt;p&gt;Getting things to work seamlessly proved a little more challenging. I found the best performance was running everything through Chromium with special parameters enabled on launch.&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;Note: The &lt;code&gt;-a&lt;/code&gt; option tells &lt;code&gt;rsync&lt;/code&gt; to sync directories recursively, transfer special and block devices, preserve symbolic links, modification times, groups, ownership, and permissions.&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The following assumes you have already installed &lt;code&gt;chromium&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;p&gt;The beautiful magic of &lt;code&gt;rsync&lt;/code&gt;! Obviously, you&amp;#8217;d want to properly name your directories (ie. &lt;code&gt;&amp;#47;Backups&amp;#47;site-backup&lt;/code&gt;) for a cleaner structure and ensure that your iCloud directory is set correctly. (remember to read code before just copy-pasting!). With this approach you can backup entire server directories or be specific with each individual project folder. I would also recommend setting up some alias in your &lt;code&gt;.bashrc&lt;/code&gt; or &lt;code&gt;.zshrc&lt;/code&gt; etc. to make things more streamlined when running backups manually:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;alias site-backup=&quot;rsync -a user_name@ssh.webserver.domain:&amp;#47;home&amp;#47;var&amp;#47;www&amp;#47; &amp;#47;Users&amp;#47;username&amp;#47;Library&amp;#47;Mobile\ Documents&amp;#47;com\~apple\~CloudDocs&amp;#47;Backups&amp;#47;site-backup&quot;
-# Then you simply run the following for a manual backup:
-site-backup
+&lt;p&gt;First we need to disable &lt;a href=&quot;https://man.openbsd.org/unveil.2&quot;&gt;unveil&lt;/a&gt; for Chromium. This will allow us to access our system files through &lt;a href=&quot;https://vscode.dev&quot;&gt;vscode.dev&lt;/a&gt; using the &amp;#8220;Open folder&amp;#8230;&amp;#8221; or &amp;#8220;Open file&amp;#8230;&amp;#8221; commands without issue:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;chrome --disable-unveil
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;You can take this further by automating things via cron jobs, but for my use case that is a little overkill. Hopefully this helps anyone looking for a quick and dirty backup system, especially one that can piggyback of your existing iCloud that you might be paying for already.&lt;/p&gt;</description>
- <link>https://btxx.org/Website_Backups_with_Apple_iCloud</link>
- <guid isPermaLink="false">https://btxx.org/Website_Backups_with_Apple_iCloud</guid>
- <pubDate>Fri, 16 Feb 2024 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Switching Things Over to ikiwiki</title>
- <description>&lt;h1 id=&quot;switching-things-over-to-ikiwiki&quot;&gt;Switching Things Over to ikiwiki&lt;/h1&gt;
-&lt;p&gt;2023-12-17&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ve done it again. My personal website is no longer generated with &lt;a href=&quot;https://barf.btxx.org&quot;&gt;barf&lt;/a&gt; but is instead built on top of ikiwiki. The old RSS feed (&lt;a href=&quot;https://btxx.org/atom.xml&quot;&gt;btxx.org&amp;#47;atom.xml&lt;/a&gt;) still exists but will no longer receive updates. The new feed can be found on the bottom of the homepage (&lt;a href=&quot;/index.rss&quot;&gt;index.rss&lt;/a&gt;)&lt;/p&gt;
-&lt;h2 id=&quot;why-a-wiki&quot;&gt;Why a Wiki?&lt;/h2&gt;
-&lt;p&gt;I love the simplicity of a minimal blog, which is why I always gravitated towards purely &amp;#8220;static&amp;#8221; site builders. Over time though, I found two minor issues that slowly chipped away at me: ease-of-use and flexibility.&lt;/p&gt;
-&lt;p&gt;I had a vision, back when I began tinkering with my own place on the web, of building out my own personal &amp;#8220;resource center&amp;#8221; or wiki. Often times through work or personal projects I stumble into little problems that I need to solve. Most times I find a solution and move on with my life. The problem with this approach is &lt;em&gt;lack of documentation&lt;/em&gt;.&lt;/p&gt;
-&lt;p&gt;What if I come across that issue at a later point in time? Will I even remember my old solution? Probably not. So, I&amp;#8217;ve made the switch to a more flexible, personal wiki (which also happens to be a blog!)&lt;/p&gt;
-&lt;h2 id=&quot;text-editors-terminals-and-web-ui---oh-my&quot;&gt;Text Editors, Terminals, and Web UI - Oh My!&lt;/h2&gt;
-&lt;p&gt;ikiwiki comes packed with multiple ways to publish pages and posts. Since it is built with ikiwiki and git version control in mind, you have the ability to push out changes directly to your server similar to that of pre-existing static site generators. It also gives you the choice to &lt;code&gt;ssh&lt;/code&gt; directly into your server and publish content from your terminal if you so desire.&lt;/p&gt;
-&lt;p&gt;Best of all, ikiwiki offers a web UI interface. This is something I have long missed since leaving &amp;#8220;dynamic&amp;#8221; websites behind.&lt;/p&gt;
-&lt;h2 id=&quot;but-wait-theres-more&quot;&gt;But Wait, There&amp;#8217;s More!&lt;/h2&gt;
-&lt;p&gt;Did I mention that this site now supports a built-in search form &lt;em&gt;and&lt;/em&gt; a comment system? I&amp;#8217;ve been wanting comments or discussions directly on my personal web space for the longest time and now I do! The search function is really an added bonus, mostly for my own personal use to find something I documented quickly.&lt;/p&gt;
-&lt;h2 id=&quot;broken-links-and-bugs&quot;&gt;Broken Links and Bugs&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve done my best to properly forward all original posts and pages to their new URLs - but I&amp;#8217;m sure some things will be overlooked. So please feel free to reach out and let me know if anything seems broken.&lt;/p&gt;
-&lt;p&gt;I look forward to growing out this &amp;#8220;platform&amp;#8221; and seeing how it impacts my workflow writing documentation &amp;#47; blog posts. I hope you&amp;#8217;ll come along for the ride!&lt;/p&gt;</description>
- <link>https://btxx.org/Switching_Things_Over_to_ikiwiki</link>
- <guid isPermaLink="false">https://btxx.org/Switching_Things_Over_to_ikiwiki</guid>
- <pubDate>Sun, 17 Dec 2023 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Please Make Your Table Headings Sticky</title>
- <description>&lt;h1 id=&quot;please-make-your-table-headings-sticky&quot;&gt;Please Make Your Table Headings Sticky&lt;/h1&gt;
-&lt;p&gt;2024-02-23&lt;/p&gt;
-&lt;p&gt;I often stumble upon large data sets or table layouts across the web. When these tables contain hundreds of rows of content, things become problematic once you start to scroll&amp;#8230;&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;/public/videos/not-fixed-header-tables.mp4&quot;&gt;Link to video example of standard table header&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;Look at that table header disappear! Now, if I scroll all the way down to item #300 (for example) will I remember what each column&amp;#8217;s data is associated with? If this is my first time looking at this table - probably not. Luckily we can fix this (no pun intended!) with a tiny amount of CSS.&lt;/p&gt;
-&lt;h2 id=&quot;sticky-header&quot;&gt;Sticky Header&lt;/h2&gt;
-&lt;p&gt;Check it out:&lt;/p&gt;
-&lt;p&gt;&lt;a href=&quot;/public/videos/fixed-header-tables.mp4&quot;&gt;Link to video example of fixed table header&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;Pretty awesome, right? It might look like magic but it&amp;#8217;s actually very easy to implement. You only need to add 2 CSS properties on your &lt;code&gt;thead&lt;/code&gt;:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;position: sticky;
-top: 0;
+&lt;p&gt;Everything should work pretty solid right out the box now - except it doesn&amp;#8217;t. Syntax highlighting does not work without enabling WASM&amp;#47;WebAssembly. Your experience might be different, but I had to include the following when launching Chromium from the terminal:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;ENABLE_WASM=1 chrome --enable-wasm
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it! Best of all, &lt;code&gt;sticky&lt;/code&gt; has &lt;a href=&quot;https://caniuse.com/?search=sticky&quot;&gt;~96% global support&lt;/a&gt; which means this isn&amp;#8217;t some &amp;#8220;bleeding-edge&amp;#8221; property and can safely support a ton of browsers. Not to mention the improved experience for your end-users!&lt;/p&gt;
-&lt;p&gt;You can view a live demo of this table on the &lt;a href=&quot;https://codepen.io/bradleytaunt/pen/bGZyJBj&quot;&gt;CodePen example pen&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;If you found this interesting, feel free to check out my other table-focused post: &lt;a href=&quot;https://btxx.org/posts/tables/&quot;&gt;Making Tables Responsive With Minimal CSS&lt;/a&gt;&lt;/p&gt;</description>
- <link>https://btxx.org/Please_Make_Your_Table_Headings_Sticky</link>
- <guid isPermaLink="false">https://btxx.org/Please_Make_Your_Table_Headings_Sticky</guid>
- <pubDate>Fri, 23 Feb 2024 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>OpenBSD is a Cozy Operating System</title>
- <description>&lt;h1 id=&quot;openbsd-is-a-cozy-operating-system&quot;&gt;OpenBSD is a Cozy Operating System&lt;/h1&gt;
-&lt;p&gt;2024-04-11&lt;/p&gt;
-&lt;p&gt;With the recent release of OpenBSD 7.5, I decided to run through my &lt;a href=&quot;https://git.btxx.org/open-suck/about/&quot;&gt;personal OpenBSD &amp;#8220;installer&amp;#8221;&lt;/a&gt; for laptop&amp;#47;desktop devices. The project is built off of the &lt;code&gt;dwm&lt;/code&gt; tiling window manager and only installs a few basic packages. The last time I updated it was with the release of 7.3, so it&amp;#8217;s been due for an minor rework.&lt;/p&gt;
-&lt;p&gt;While making these minor changes, I remembered how incredibly easy the entire install process for OpenBSD is and how &lt;em&gt;cozy&lt;/em&gt; the entire operating system feels. All the core systems just work out the box. Yes, you need to &amp;#8220;patch&amp;#8221; in WiFi with a firmware update, so you&amp;#8217;ll need an Ethernet connection during the initial setup. Yes, the default desktop environment is not intuitive or ideal for newcomers.&lt;/p&gt;
-&lt;p&gt;But the positives heavily outweigh the negatives (in my opinion):&lt;/p&gt;
+&lt;p&gt;Success! We can avoid typing out these complex commands everytime we want to launch our editor by setting up an &lt;code&gt;alias&lt;/code&gt; (in my case via &lt;code&gt;.zshrc&lt;/code&gt;):&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;alias vscode=&quot;ENABLE_WASM=1 chrome --enable-wasm --disable-unveil&quot;
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;That&amp;#8217;s it! Now I can just pop open VSCode on OpenBSD by simply running &lt;code&gt;vscode&lt;/code&gt; in my terminal. Hopefully this can help others slowly transition over to OpenBSD - which you should do because it is amazing!&lt;/p&gt;</description>
+ <link>https://btxx.org/vscode</link>
+ <guid isPermaLink="false">https://btxx.org/vscode</guid>
+ <pubDate>Mon, 05 Jun 2023 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Stop Using Custom Web Fonts</title>
+ <description>&lt;h1 id=&quot;stop-using-custom-web-fonts&quot;&gt;Stop Using Custom Web Fonts&lt;/h1&gt;
+&lt;p&gt;2023-03-14&lt;/p&gt;
+&lt;p&gt;I recently read an excellent post by Manu Moreale titled &lt;a href=&quot;https://manuelmoreale.com/a-rant-on-web-font-licenses&quot;&gt;A rant on web font licenses&lt;/a&gt;. I highly recommend you give it a read (it&amp;#8217;s relatively short) since Manu makes a solid argument against existing font licenses. After reading, I found myself thinking about it throughout the rest of the day.&lt;/p&gt;
+&lt;p&gt;I was trying to understand how we ended up in a situation where web&amp;#47;UI designers (myself included) have started to &lt;em&gt;insist&lt;/em&gt; on using proprietary, custom web fonts. Do any users actively benefit from custom web fonts? Are there any &lt;em&gt;useful&lt;/em&gt; and &lt;em&gt;measurable&lt;/em&gt; goals achieved by including them? Do end-users actually &lt;em&gt;care&lt;/em&gt; about a website&amp;#8217;s typeface?&lt;/p&gt;
+&lt;p&gt;For the most part, I believe the answer to all those questions is: &lt;strong&gt;not really&lt;/strong&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;system-fonts-look-good&quot;&gt;System Fonts Look Good&lt;/h2&gt;
+&lt;p&gt;We are no longer in the early days of the internet. Browsers have matured. Operating systems already ship with usable and often times pretty typefaces. The &amp;#8220;wow factor&amp;#8221; of having a custom web font on a website is completely gone. Not to mention, recent trends see designers including &lt;em&gt;terrible&lt;/em&gt; typefaces that actually make things more difficult to read and break basic accessibility.&lt;/p&gt;
+&lt;p&gt;All of this for the sake of a company&amp;#8217;s &amp;#8220;brand&amp;#8221;. I say: &lt;strong&gt;fuck your brand&lt;/strong&gt;. Your end-users should always trump your design &amp;#8220;guidelines&amp;#8221;. Period.&lt;/p&gt;
+&lt;h2 id=&quot;think-of-the-consistency&quot;&gt;&amp;#8220;Think of the Consistency!&amp;#8221;&lt;/h2&gt;
+&lt;p&gt;Often times designers will argue that designs will look too different across browsers&amp;#47;operating systems. I&amp;#8217;m not sure why this is seen as a bad thing. First, users will be familiar with the fonts already available to them. Second, as designers our work should never rely on one point of failure (in this instance: fonts). Your designs should be agnostic of your typeface selection. &lt;/p&gt;
+&lt;p&gt;And what about users with browser extensions that already block your custom web fonts? Screw them I guess?&lt;/p&gt;
+&lt;p&gt;People work on different systems with different constraints and settings. Embrace that - don&amp;#8217;t try to override it.&lt;/p&gt;
+&lt;h2 id=&quot;loss-of-personality&quot;&gt;Loss of Personality&lt;/h2&gt;
+&lt;p&gt;The web is not the same medium as graphic design. Digital designers often get this confused. Web applications serve an action or purpose. The user wants to complete a &lt;em&gt;task&lt;/em&gt; - not look at a pretty poster. I understand this sounds harsh, but many designers design more for their own ego and portfolio rather than the end-user. That extra &lt;em&gt;flair&lt;/em&gt; on your lowercase &amp;#8220;t&amp;#8221; doesn&amp;#8217;t help the user better interact with your features or UI. It just slows them down.&lt;/p&gt;
+&lt;h2 id=&quot;hurting-performance-wasting-resources&quot;&gt;Hurting Performance &amp;#38; Wasting Resources&lt;/h2&gt;
+&lt;p&gt;A lot of designers I&amp;#8217;ve worked with or talked to in the past tend to be big supporters of reducing their carbon footprint and minimizing their individual output of &amp;#8220;waste&amp;#8221;. What I always find interesting is how that never seems to translate into their work.&lt;/p&gt;
+&lt;p&gt;It might be small in the grand scheme of things, but having an extra HTTP request (or more) for your custom fonts and requiring your users to consume more bandwidth on their end is not &amp;#8220;eco&amp;#8221;. As designers we should cut the fat and reduce software bloat in the small areas that we&amp;#8217;re able to: the front end.&lt;/p&gt;
+&lt;p&gt;My hope is that even one designer reading this decides to rollout a web app or marketing page without dumping a bunch of custom fonts on their users. It&amp;#8217;s just the &lt;em&gt;nice&lt;/em&gt; thing to do.&lt;/p&gt;</description>
+ <link>https://btxx.org/webfonts</link>
+ <guid isPermaLink="false">https://btxx.org/webfonts</guid>
+ <pubDate>Tue, 14 Mar 2023 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Width or Flex-Basis?</title>
+ <description>&lt;h1 id=&quot;width-or-flex-basis&quot;&gt;Width or Flex-Basis?&lt;/h1&gt;
+&lt;p&gt;2018-11-28&lt;/p&gt;
+&lt;p&gt;Creating rows and columns of elements that adapt dynamically can be a little tricky depending on the desired outcome. Let&amp;#8217;s breakdown how to solve this issue using both &lt;code&gt;inline-block&lt;/code&gt; paired with &lt;code&gt;width&lt;/code&gt; and &lt;code&gt;flex-basis&lt;/code&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;width&quot;&gt;Width&lt;/h2&gt;
+&lt;p&gt;Setting the width of the inner children to a divisible value and setting their display to &lt;code&gt;inline-block&lt;/code&gt;, we are able to create self-wrapping elements:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.width-container {
+ display: block;
+}
+.width-container__item {
+ display: inline-block;
+ width: calc(33% - 3px); &amp;#47;* Fix for wonky inline-block margins *&amp;#47;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;h3 id=&quot;pros&quot;&gt;Pros&lt;/h3&gt;
&lt;ul&gt;
-&lt;li&gt;Incredibly secure operating system (No &lt;code&gt;xz&lt;/code&gt; drama here&amp;#8230;)&lt;/li&gt;
-&lt;li&gt;Detailed documentation. Probably one of the best of any OS&lt;/li&gt;
-&lt;li&gt;Much smaller codebase and small core team&lt;/li&gt;
-&lt;li&gt;&lt;em&gt;Complete&lt;/em&gt; operating system (kernel, userland utilities, libraries, applications combined)&lt;/li&gt;
+&lt;li&gt;Full browser support (as far back as IE6)&lt;/li&gt;
+&lt;li&gt;No floats needed&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;These points might not seem important to others, but they are to me. Maybe you&amp;#8217;re possibly interested in checking it out yourself? If you are, then read on&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;try-it-yourself&quot;&gt;Try it Yourself!&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve tried my best to write up a simplified, noob-friendly guide on both setting up the core OpenBSD system, along with installing a simple &lt;code&gt;dwm&lt;/code&gt; based desktop environment. These are both focused on personal devices (laptops&amp;#47;computers), so if you&amp;#8217;re looking for server-specific setups you won&amp;#8217;t find that here!&lt;/p&gt;
-&lt;p&gt;You can find both of those wiki-pages below:&lt;/p&gt;
+&lt;h3 id=&quot;cons&quot;&gt;Cons&lt;/h3&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://btxx.org/wiki/openbsd/installation/&quot;&gt;Installing OpenBSD&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://btxx.org/wiki/openbsd/desktop_environment/&quot;&gt;Setting up a Desktop Environment for OpenBSD&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Buggy &lt;code&gt;margin&lt;/code&gt; workaround needed&lt;/li&gt;
+&lt;li&gt;Wrapped elements cannot dynamically fill remaining empty parent space&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Some additional reading I highly recommend is: &lt;a href=&quot;https://www.c0ffee.net/blog/openbsd-on-a-laptop&quot;&gt;c0ffee.net&amp;#47;blog&amp;#47;openbsd-on-a-laptop&lt;/a&gt;&lt;/p&gt;</description>
- <link>https://btxx.org/OpenBSD_is_a_Cozy_Operating_System</link>
- <guid isPermaLink="false">https://btxx.org/OpenBSD_is_a_Cozy_Operating_System</guid>
- <pubDate>Thu, 11 Apr 2024 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>New Domain and Code Forge</title>
- <description>&lt;h1 id=&quot;new-domain-and-code-forge&quot;&gt;New Domain and Code Forge&lt;/h1&gt;
-&lt;p&gt;2024-01-29&lt;/p&gt;
-&lt;p&gt;As you can clearly see, my site&amp;#8217;s domain has switched over to &lt;strong&gt;btxx.org&lt;/strong&gt;. This post will go into details about the reason for this URL swap (spoilers: I&amp;#8217;m a cheapskate) - but that isn&amp;#8217;t all. I have moved my personal git repositories over to my own hosting. I will explain the reasoning for that switch as well.&lt;/p&gt;
-&lt;p&gt;But enough introductions, let&amp;#8217;s get into it!&lt;/p&gt;
-&lt;h2 id=&quot;bt.ht-is-no-more&quot;&gt;bt.ht is No More&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;ve abandoned &lt;code&gt;bt.ht&lt;/code&gt;. Well, kind of. That domain doesn&amp;#8217;t expire until 2025, which works out nicely since I can keep a complete web forward active for the entire year. This will avoid such a radical switch, similar to what I did years ago with my &amp;#8220;uglyduck&amp;#8221; domain&lt;sup id=&quot;fnref1&quot;&gt;&lt;a href=&quot;#fn1&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;. Hopefully anyone who follows my dumb ramblings will have more than enough time to become familiar with the new URL.&lt;/p&gt;
-&lt;p&gt;For reference, those interested in updating their RSS will need to use the latest URLs: &lt;/p&gt;
+&lt;h2 id=&quot;flex-basis&quot;&gt;Flex-basis&lt;/h2&gt;
+&lt;p&gt;This is my personal preference for dynamically wrapping inner children elements. Simply set the parent as &lt;code&gt;display: flex&lt;/code&gt;, allow flex-wrapping and then set the &lt;code&gt;flex-basis&lt;/code&gt; of the children to any percentage value.&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;.flex-container {
+ display: flex;
+ flex-wrap: wrap;
+}
+.flex-container__item {
+ flex: 1 1 auto;
+ flex-basis: 33%;
+}
+&lt;/code&gt;&lt;/pre&gt;
+&lt;p&gt;You will also notice the &lt;code&gt;flex&lt;/code&gt; property set to &lt;code&gt;1 1 auto&lt;/code&gt;. This is important if you require your wrapped elements to fill the remaining space of the parent container.&lt;/p&gt;
+&lt;h3 id=&quot;pros-1&quot;&gt;Pros&lt;/h3&gt;
&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://btxx.org/index.rss&quot;&gt;RSS&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://btxx.org/index.atom&quot;&gt;Atom&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;No buggy margins to play with&lt;/li&gt;
+&lt;li&gt;Dynamically renders children to fill parent container if &lt;code&gt;flex&lt;/code&gt; is set&lt;/li&gt;
+&lt;li&gt;Scales well across screen &amp;#47; device sizes&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;You have roughly a year to do so, since new posts should still automatically appear even with defaulting to the older URL (hooray for 301 redirects!).&lt;/p&gt;
-&lt;p&gt;There were two core reasons for switching domains. The first was based off a change in ownership with my previous domain registrar, Gandi. You can read more details &lt;a href=&quot;https://news.ycombinator.com/item?id=35080777&quot;&gt;here&lt;/a&gt;, but they were essentially bought out, then decided to cancel their free email service and raised their prices. Not many registrars support the &lt;code&gt;.ht&lt;/code&gt; TLD, so moving to another provider was already proving to be difficult. Once my mind was made up that I didn&amp;#8217;t want to support such shady actions from a company, I thought even more about the concept of spending &lt;em&gt;so much&lt;/em&gt; on a domain name in the first place. It was a novelty to have such a &amp;#8220;short&amp;#8221; domain, but that seems silly in hindsight.&lt;/p&gt;
-&lt;p&gt;Just take a look at the differences in domain costs and email services below:&lt;/p&gt;
-&lt;table&gt;
-&lt;thead&gt;
-&lt;tr&gt;
-&lt;th&gt;URL&lt;/th&gt;
-&lt;th&gt;Domain&amp;#47;year&lt;/th&gt;
-&lt;th&gt;Email&amp;#47;year&lt;/th&gt;
-&lt;th&gt;Total&lt;/th&gt;
-&lt;/tr&gt;
-&lt;/thead&gt;
-&lt;tbody&gt;
-&lt;tr&gt;
-&lt;td&gt;bt.ht&lt;/td&gt;
-&lt;td&gt;$172&lt;/td&gt;
-&lt;td&gt;$60&lt;/td&gt;
-&lt;td&gt;$232&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;btxx.org&lt;/td&gt;
-&lt;td&gt;$17&lt;/td&gt;
-&lt;td&gt;$19&lt;/td&gt;
-&lt;td&gt;$36&lt;/td&gt;
-&lt;/tr&gt;
-&lt;/tbody&gt;
-&lt;/table&gt;
-&lt;p&gt;By making this switch (for both my domain and email service) I would save a yearly total of &lt;strong&gt;$196 USD&lt;/strong&gt;. This was a no-brainer. The minute I did the math I thought, &amp;#8220;Hell, I&amp;#8217;m already moving everything to a different registrar &lt;em&gt;and&lt;/em&gt; I need to look for a separate email provider&amp;#8230;why not just start fresh with a new, &lt;em&gt;cheaper&lt;/em&gt; domain?&amp;#8221;&lt;/p&gt;
-&lt;p&gt;So that&amp;#8217;s what I&amp;#8217;ve done.&lt;/p&gt;
-&lt;h2 id=&quot;my-own-code-forge&quot;&gt;My Own Code Forge&lt;/h2&gt;
-&lt;p&gt;As some people in the open source community might already be aware, &lt;a href=&quot;https://sourcehut.org&quot;&gt;sourcehut&lt;/a&gt; had a major outage a couple weeks back. It lasted a few days and all services were impacted. This meant that all publicly hosted websites, build processes and &lt;code&gt;git&lt;/code&gt; repositories were unavailable. It was no fault of sourcehut of course, they were viciously attacked for no &lt;em&gt;real&lt;/em&gt; reason. &lt;/p&gt;
-&lt;p&gt;But this outage did get me thinking about what it means to &amp;#8220;control&amp;#8221; my own code. I always liked the idea of hosting my own git projects but relied on third-party services since they were more convenient. The problem with entrusting anything, not just code storage, to third-party services is lack of oversight. You really have no idea what is happening behind the scenes. You don&amp;#8217;t control your own backups. You don&amp;#8217;t have the freedom to tweak UI or user flow of your project views (which I understand is certainly an edge-case).&lt;/p&gt;
-&lt;p&gt;These thoughts lead me to research some &amp;#8220;self-hosted&amp;#8221; code forge options. My main contenders were:&lt;/p&gt;
+&lt;h3 id=&quot;cons-1&quot;&gt;Cons&lt;/h3&gt;
&lt;ul&gt;
-&lt;li&gt;GitWeb&lt;/li&gt;
-&lt;li&gt;cgit&lt;/li&gt;
-&lt;li&gt;Gitea&lt;/li&gt;
+&lt;li&gt;Some versions of IE struggle with browser support&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;I&amp;#8217;ll save you the suspense: I went with cgit. Getting GitWeb configured properly was giving me a lot of issues and Gitea seemed overkill for my person needs. I host through NearlyFreeSpeech (running FreeBSD) and they had a decent tutorial for setting cgit up on their servers. I&amp;#8217;ve updated my own wiki for those interested in doing something similar: &lt;a href=&quot;/wiki/cgit&quot;&gt;read the full step-by-step instructions for setting up cgit&lt;/a&gt;.&lt;/p&gt;
-&lt;p&gt;I still need to go through most of the existing projects on sourcehut and update their READMEs and purge the contents. The last thing I want to do is have users confused about which repo is the &amp;#8220;real&amp;#8221; one.&lt;/p&gt;
-&lt;p&gt;Fore reference the my repos are now located here: &lt;a href=&quot;https://git.btxx.org&quot;&gt;git.btxx.org&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;(I plan to place this in the main navigation soon&amp;#8230;)&lt;/p&gt;
-&lt;h2 id=&quot;mirror-mirror-on-the-wall&quot;&gt;Mirror, Mirror on the Wall&amp;#8230;&lt;/h2&gt;
-&lt;p&gt;I&amp;#8217;m aware that to have extra protection from &amp;#8220;downtime&amp;#8221; that I should also mirror my code on separate forges. I plan to do this sometime in the future, but this isn&amp;#8217;t a major priority for me currently. When the time comes I&amp;#8217;ll be sure to update my repos referring to the mirrors (whatever platform that is I choose).&lt;/p&gt;
-&lt;h2 id=&quot;room-for-improvement&quot;&gt;Room for Improvement&lt;/h2&gt;
-&lt;p&gt;My code forge is far from perfect. Mobile view is lacking, there is no dark mode support and things could be slightly more intuitive. But I love it. The beauty of hosting everything on my own is that I can improve these things myself. For now, I&amp;#8217;m happy with the outcome!&lt;/p&gt;
-&lt;div class=&quot;footnotes&quot;&gt;
-&lt;hr/&gt;
+&lt;h2 id=&quot;codepen-demo&quot;&gt;CodePen Demo&lt;/h2&gt;
+&lt;p&gt;Feel free to play around with a slightly more stylized version of both options below:&lt;/p&gt;
+&lt;p&gt;CodePen Demo: Width or flex-basis&lt;/p&gt;</description>
+ <link>https://btxx.org/width-vs-flex-basis</link>
+ <guid isPermaLink="false">https://btxx.org/width-vs-flex-basis</guid>
+ <pubDate>Wed, 28 Nov 2018 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Setting Up Jekyll on Windows </title>
+ <description>&lt;h1 id=&quot;setting-up-jekyll-on-windows&quot;&gt;Setting Up Jekyll on Windows&lt;/h1&gt;
+&lt;p&gt;2022-09-02&lt;/p&gt;
+&lt;p&gt;I&amp;#8217;ve recently been playing around with using Windows 10 as my daily operating system. So far, it has been going fairly well. Nothing will probably ever feel as &amp;#8220;optimized&amp;#8221; as running a Linux-based system but it works well for my current needs. Getting a Jekyll development environment setup was a different story though&amp;#8230;&lt;/p&gt;
+&lt;p&gt;One of the first issues with using Windows 10 is the need to run a few of my open source projects that are built off Jekyll locally. This process initially seemed a like complex process to get things running smoothly but in the end was very straightforward. The main issue came from needing to bounce around through a handful of separate tutorials to get everything running smoothly.&lt;/p&gt;
+&lt;p&gt;So, I thought I would make this quick write-up to help those in the same situation (or even for my future self the need arises). Let&amp;#8217;s get into it.&lt;/p&gt;
+&lt;h2 id=&quot;wsl&quot;&gt;WSL&lt;/h2&gt;
+&lt;p&gt;The first step involves installing &lt;a href=&quot;https://docs.microsoft.com/en-us/windows/wsl/install&quot;&gt;WSL&lt;/a&gt; in order to run Linux alongside the main Windows OS. The documentation is well written and will get you up-and-running in no time. For quick reference, it essentially comes down to:&lt;/p&gt;
&lt;ol&gt;
-
-&lt;li id=&quot;fn1&quot;&gt;
-&lt;p&gt;Someone oddly picked up that domain and piggybacked off the back-links. They happen to also be a designer&amp;#8230;Guess the naming was that cool? &amp;#160;&lt;a href=&quot;#fnref1&quot; rev=&quot;footnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
-&lt;/li&gt;
-
+&lt;li&gt;Opening PowerShell or Command Prompt as an administrator&lt;/li&gt;
+&lt;li&gt;Installing via the command: &lt;code&gt;wsl --install&lt;/code&gt;&lt;/li&gt;
+&lt;li&gt;Restarting your machine after the install completes&lt;/li&gt;
+&lt;li&gt;Creating your UNIX username and password&lt;/li&gt;
&lt;/ol&gt;
-&lt;/div&gt;</description>
- <link>https://btxx.org/New_Domain_and_Code_Forge</link>
- <guid isPermaLink="false">https://btxx.org/New_Domain_and_Code_Forge</guid>
- <pubDate>Mon, 29 Jan 2024 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>My Text Edtior is Not Open Source</title>
- <description>&lt;h1 id=&quot;my-text-edtior-is-not-open-source&quot;&gt;My Text Edtior is Not Open Source&lt;/h1&gt;
-&lt;p&gt;2024-01-02&lt;/p&gt;
-&lt;p&gt;I&amp;#8217;ve been using Sublime Text on and off for longer than I can remember. I think Sublime has been around since the start of my &amp;#8220;real&amp;#8221; career over 10 years ago, but I could be mistaken&lt;sup id=&quot;fnref1&quot;&gt;&lt;a href=&quot;#fn1&quot; rel=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;. It certainly &lt;em&gt;feels&lt;/em&gt; that long. And in that time I have never gotten upset with Sublime. I&amp;#8217;ve never rage quit or ran into an issue of Sublime not being able to &lt;em&gt;do the thing I wanted it to do&lt;/em&gt;. As much of a cliche it may sound: it just works.&lt;/p&gt;
-&lt;p&gt;Even when I switch editors (VSCode, Geany, kitty+vim etc.) for a period of time, I find myself always coming back to Sublime. The only reason I try other editors is simply that: to try them. Maybe that&amp;#8217;s why these editors don&amp;#8217;t click with me. Maybe I&amp;#8217;m giving Sublime an unfair advantage since I&amp;#8217;m simply &amp;#8220;testing&amp;#8221; other editors, rather than looking for a solid alternative.&lt;/p&gt;
-&lt;p&gt;And don&amp;#8217;t get me wrong, I understand &lt;em&gt;why&lt;/em&gt; editors like VSCode are extremely popular. VSCode has a massive ecosystem and new plugins are generally developed for that editor before all others. Finding solutions to problems online is very easy, since it is so popular. But best of all - it&amp;#8217;s open source&lt;sup id=&quot;fnref2&quot;&gt;&lt;a href=&quot;#fn2&quot; rel=&quot;footnote&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;.&lt;/p&gt;
-&lt;p&gt;So why am I using a &lt;em&gt;non&lt;/em&gt;-open source editor? (Spoilers: because it&amp;#8217;s a great editor)&lt;/p&gt;
-&lt;h2 id=&quot;a-proprietary-editor---how-could-you&quot;&gt;&amp;#8220;A Proprietary Editor - How Could You?!&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;I know, I know. If you&amp;#8217;re familiar with me or the things I write about it must seem odd that I would willingly use proprietary software over open source. This is something I struggle with constantly day-to-day in the realm of &amp;#8220;personal tech&amp;#8221;. I find with age I become more open-minded to having a diverse range of software and hardware choices. Open source is best in &lt;em&gt;concept&lt;/em&gt; but not always best in practice.&lt;/p&gt;
-&lt;p&gt;The problem is that Sublime is just such a &lt;em&gt;great&lt;/em&gt; editor. I can&amp;#8217;t ignore quality and refuse to use good software solely based on it&amp;#8217;s licensing. A few personal things I love about Sublime:&lt;/p&gt;
+&lt;h2 id=&quot;installing-ruby-dependencies&quot;&gt;Installing Ruby &amp;#38; Dependencies&lt;/h2&gt;
+&lt;p&gt;Once logged into your UNIX terminal session (with your created user) you can begin installing everything we need for Jekyll to work properly. The first step is to installing &lt;code&gt;rvm&lt;/code&gt; and the &lt;a href=&quot;https://github.com/rvm/ubuntu_rvm&quot;&gt;official project documentation&lt;/a&gt; does a very good job of walking you through this.&lt;/p&gt;
&lt;ul&gt;
-&lt;li&gt;Incredibly fast&lt;/li&gt;
-&lt;li&gt;Handles massive files without breaking a sweat&lt;/li&gt;
-&lt;li&gt;Minimal resource footprint (ex. uses &amp;#60;0.1% CPU working on huge projects)&lt;/li&gt;
-&lt;li&gt;Large ecosystem of plugins&amp;#47;themes&lt;/li&gt;
-&lt;li&gt;No Electron&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Be sure dependencies as installed: &lt;code&gt;sudo apt-get install software-properties-common&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Add the PPA and install the package:&lt;/p&gt;
+&lt;p&gt;sudo apt-add-repository -y ppa:rael-gc&amp;#47;rvm
+sudo apt-get update
+sudo apt-get install rvm&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Add your existing user to the &lt;code&gt;rvm&lt;/code&gt; group: &lt;code&gt;sudo usermod -a -G rvm $USER&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
-&lt;p&gt;Other editors can certainly check off a few of those boxes as well, but you&amp;#8217;d be hard-pressed to find one that checks off them all.&lt;/p&gt;
-&lt;h2 id=&quot;being-a-cheapskate&quot;&gt;Being a Cheapskate&lt;/h2&gt;
-&lt;p&gt;I must confess something that I think most Sublime users are guilty of: I&amp;#8217;ve never &lt;a href=&quot;https://www.sublimehq.com/store/text&quot;&gt;bought a license&lt;/a&gt;. I&amp;#8217;ve installed and used Sublime on countless machines, on multiple operating systems from Linux to Windows to MacOS. That &lt;code&gt;Unregistered&lt;/code&gt; text in the top right application bar has been with me since the beginning. But that in no longer the case.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;I finally purchased a license.&lt;/strong&gt; I bundled it with &lt;a href=&quot;https://www.sublimemerge.com/&quot;&gt;Sublime Merge&lt;/a&gt;, so it ended up costing me $168 USD. When I initially looked at that price tag I must admit I was tempted to close the browser tab and forget the whole thing. But then I realized I have been using this editor &lt;em&gt;free of charge&lt;/em&gt; for over 10 years. (Not to mention using Sublime Merge for quite some time as well!)&lt;/p&gt;
-&lt;p&gt;So I did a little math:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;$168 &amp;#47; 10 years = $16.80
+&lt;p&gt;You will need to close and restart your session to your Ubuntu system for these changes to take. After that, we can use &lt;code&gt;rvm&lt;/code&gt; to install the latest version (at this time of writing) of ruby:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;rvm install 3.1.2
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Looking at it in that perspective, it&amp;#8217;s actually a great deal. Not to mention they have very respectable terms for their licenses:&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;Personal licenses come with 3 years of updates. After 3 years, you&amp;#8217;ll be able to continue to use the last version released within 3 years of purchase (in other words, licenses do not expire). Any versions released 3 years or more after the purchase date will require a paid upgrade to use.&lt;/p&gt;
-&lt;p&gt;Individual licenses are valid for 3 years of updates, but do not expire after 3 years. Only if you wish to use newer versions will an upgrade fee be required. &lt;/p&gt;
-&lt;p&gt;Licenses are per-user, so you&amp;#8217;re welcome to use the one license on all computers and operating systems where you are the primary user.&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;I won&amp;#8217;t copy everything from their main &lt;a href=&quot;https://www.sublimehq.com/sales_faq&quot;&gt;FAQ page&lt;/a&gt; but as you can see it is very reasonable. I also get to feel decent for supporting developers who make very good software.&lt;/p&gt;
-&lt;h2 id=&quot;final-notes&quot;&gt;Final Notes&lt;/h2&gt;
-&lt;p&gt;This post is not meant to convince you to switch or anything of that nature. Use what works for you! I just wanted to share my own personal preference when it came to my main text editor. Maybe this will also convince &amp;#8220;hardcore&amp;#8221; open source people (like me!) to realize it is &lt;em&gt;okay&lt;/em&gt; to pay for software sometimes&amp;#8230;&lt;/p&gt;
-&lt;hr/&gt;
-&lt;p&gt;I should be very clear about something: this post &lt;em&gt;is not an advertisement&lt;/em&gt;. I have not received any money or &amp;#8220;kick backs&amp;#8221; to write about my happy times with Sublime. This is purely my own opinion that I wanted to share with the internet!&lt;/p&gt;
-&lt;p&gt;BTW if anyone from SublimeHQ happens to come across this post: PLEASE look into building a &amp;#8220;native&amp;#8221; version of Sublime Text for FreeBSD&amp;#47;OpenBSD. I (and many others) would be forever grateful!&lt;/p&gt;
-&lt;div class=&quot;footnotes&quot;&gt;
-&lt;hr/&gt;
-&lt;ol&gt;
-
-&lt;li id=&quot;fn1&quot;&gt;
-&lt;p&gt;Sublime does mention copyright since 2006&amp;#8230;&amp;#160;&lt;a href=&quot;#fnref1&quot; rev=&quot;footnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
-&lt;/li&gt;
-
-&lt;li id=&quot;fn2&quot;&gt;
-&lt;p&gt;Not the pre-packaged Microsoft version&amp;#160;&lt;a href=&quot;#fnref2&quot; rev=&quot;footnote&quot;&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
-&lt;/li&gt;
-
-&lt;/ol&gt;
-&lt;/div&gt;</description>
- <link>https://btxx.org/My_Text_Editor_Is_Not_Open_Source</link>
- <guid isPermaLink="false">https://btxx.org/My_Text_Editor_Is_Not_Open_Source</guid>
- <pubDate>Tue, 02 Jan 2024 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Installing WordPress on NearlyFreeSpeech</title>
- <description>&lt;h1 id=&quot;installing-wordpress-on-nearlyfreespeech&quot;&gt;Installing WordPress on NearlyFreeSpeech&lt;/h1&gt;
-&lt;p&gt;2024-05-27&lt;/p&gt;
-&lt;p&gt;I recently went through the process of porting over my wife&amp;#8217;s small business website (built off of WordPress + Woocommerce) from EasyWP to NearlyFreeSpeech. Although the process was fairly easy-going, I thought I would post my complete process here. That way, others who might wish to make the same switch can avoid running into any minor bumps along the way.&lt;/p&gt;
-&lt;blockquote&gt;
-&lt;p&gt;Some of this information has been lifted from &lt;a href=&quot;https://members.nearlyfreespeech.net/tdarb/support/wordpress&quot;&gt;the official NFS docs&lt;/a&gt;, but these pages require a membership to access&lt;/p&gt;
-&lt;/blockquote&gt;
-&lt;h3 id=&quot;download-wordpress&quot;&gt;Download WordPress&lt;/h3&gt;
-&lt;p&gt;We will use the &lt;code&gt;wp-cli&lt;/code&gt; that comes packaged with NearlyFreeSpeech (NFS):&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Connect to your site via SSH.&lt;/li&gt;
-&lt;li&gt;Change to the directory you want to be the base of your blog (e.g. &amp;#47;home&amp;#47;public if WordPress will be running the whole site, or &amp;#47;home&amp;#47;public&amp;#47;blog if you want to share the site with other content).&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;For help using WP-CLI from the SSH command line, use this command:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;wp help
+&lt;p&gt;That&amp;#8217;s it!&lt;/p&gt;
+&lt;h2 id=&quot;jekyll---finally&quot;&gt;Jekyll - Finally!&lt;/h2&gt;
+&lt;p&gt;The final step is to update our gems and install Jekyll:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;gem update
+gem install jekyll bundler
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;To download and unpack the latest version of WordPress, enter the following command:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;wp core download
+&lt;p&gt;Once complete you can now run your Jekyll projects locally through WSL! Nothing ground-breaking but still pretty helpful for first-time users. And best of all, at least I have a good reference point in the future if I ever run into this issue again!&lt;/p&gt;</description>
+ <link>https://btxx.org/windows</link>
+ <guid isPermaLink="false">https://btxx.org/windows</guid>
+ <pubDate>Fri, 02 Sep 2022 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>WP Enqueue for Beginners</title>
+ <description>&lt;h1 id=&quot;wp-enqueue-for-beginners&quot;&gt;WP Enqueue for Beginners&lt;/h1&gt;
+&lt;p&gt;2020-05-05&lt;/p&gt;
+&lt;p&gt;Throughout my career designing, developing and auditing WordPress themes, I&amp;#8217;ve come across many that include their custom styles &amp;#47; scripts as static HTML elements inside their respective &lt;code&gt;header&lt;/code&gt; and &lt;code&gt;footer&lt;/code&gt; templates. This is perfectly &lt;em&gt;fine&lt;/em&gt;, but there is a cleaner way to include these files.&lt;/p&gt;
+&lt;p&gt;This post is purposefully catered for WordPress beginners, so if this seems overly simple, then you&amp;#8217;re probably already developing WordPress themes that utilize these techniques. (Which is awesome!)&lt;/p&gt;
+&lt;h2 id=&quot;introducing-wp-enqueue&quot;&gt;Introducing WP Enqueue&lt;/h2&gt;
+&lt;p&gt;The description of Wp Enqueue from the WordPress documentation:&lt;/p&gt;
+&lt;p&gt;In a nutshell: Placing a &lt;code&gt;wp_enqueue_script&lt;/code&gt; or &lt;code&gt;wp_enqueue_style&lt;/code&gt; script in the &lt;code&gt;functions.php&lt;/code&gt; of your custom theme tells WordPress to pull external files into the header or footer of your website. Best practice being: &lt;em&gt;styles into the header, scripts into the footer&lt;/em&gt;.&lt;/p&gt;
+&lt;p&gt;I suggest you read the official documentation for more details: &lt;a href=&quot;https://developer.wordpress.org/reference/functions/wp_enqueue_script/&quot;&gt;wp_enqueue_script&lt;/a&gt; and &lt;a href=&quot;https://developer.wordpress.org/reference/functions/wp_enqueue_style/&quot;&gt;wp_enqueue_style&lt;/a&gt;.&lt;/p&gt;
+&lt;h2 id=&quot;enqueue-stylesheets&quot;&gt;Enqueue Stylesheets&lt;/h2&gt;
+&lt;p&gt;The default script to enqueue a CSS stylesheet:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;wp_enqueue_style( $handle, $src, $deps, $ver, $media );
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;create-a-mysql-process-and-database&quot;&gt;Create a MySQL Process and Database&lt;/h2&gt;
-&lt;p&gt;Follow the instructions in the NearlyFreeSpeech.NET FAQ to &lt;a href=&quot;https://members.nearlyfreespeech.net/faq?q=MySQL#MySQL&quot;&gt;create a MySQL process&lt;/a&gt; if you haven&amp;#8217;t already.&lt;/p&gt;
-&lt;p&gt;Next, &lt;a href=&quot;https://members.nearlyfreespeech.net/faq?q=CreateDatabase#CreateDatabase&quot;&gt;create a new database&lt;/a&gt; within that process. Note the name of the process and the name of the database.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Important&lt;/strong&gt;: Do not use your own MySQL credentials to connect WordPress to your database. Instead, create a new user. This will protect your member password in the event that your site becomes compromised.&lt;/p&gt;
-&lt;ul&gt;
-&lt;li&gt;Click on the &lt;a href=&quot;https://members.nearlyfreespeech.net/mysql&quot;&gt;MySQL tab&lt;/a&gt; in the member interface&lt;/li&gt;
-&lt;li&gt;Click &amp;#8220;[Open phpMyAdmin](&lt;a href=&quot;https://phpmyadmin.nearlyfreespeech.net/&quot;&gt;https:&amp;#47;&amp;#47;phpmyadmin.nearlyfreespeech.net&amp;#47;&lt;/a&gt;&amp;#8221; in the Actions box.&lt;/li&gt;
-&lt;li&gt;Enter the DSN (&amp;#8220;Server&amp;#8221;) of your MySQL Process, MySQL username, and MySQL password. The DSN and username can be found on the Process Information page in our member UI.&lt;/li&gt;
-&lt;li&gt;Click on the &amp;#8220;Users&amp;#8221; tab.&lt;/li&gt;
-&lt;li&gt;Click &amp;#8220;Add user.&amp;#8221; (It&amp;#8217;s toward the bottom left of the page.)&lt;/li&gt;
-&lt;li&gt;Give the user a descriptive name. We&amp;#8217;ll use exampledbuser here, but you should pick something better, like wpuser or something representative of your blog.&lt;/li&gt;
-&lt;li&gt;Make sure to leave the Host: selectbox on &amp;#8220;Any host.&amp;#8221;&lt;/li&gt;
-&lt;li&gt;Click the &amp;#8220;Generate&amp;#8221; link to generate a nice strong password.&lt;/li&gt;
-&lt;li&gt;Use cut and paste to copy the new password somewhere, you&amp;#8217;ll need it later. (We&amp;#8217;ll use dbpassword here.)&lt;/li&gt;
-&lt;li&gt;Grant the following permissions to the new user:
&lt;ul&gt;
-&lt;li&gt;All the permissions except &amp;#8220;file&amp;#8221; in the &amp;#8220;data&amp;#8221; box,&lt;/li&gt;
-&lt;li&gt;Everything in the &amp;#8220;structure&amp;#8221; box, and&lt;/li&gt;
-&lt;li&gt;&amp;#8220;LOCK TABLES&amp;#8221; in the &amp;#8220;administration&amp;#8221; box.&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Click the &amp;#8220;Go&amp;#8221; button in the lower right.&lt;/li&gt;
-&lt;li&gt;Exit phpMyAdmin.&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$handle&lt;/code&gt; - the name associated with your stylesheet&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$src&lt;/code&gt; - URL pointing to the directory of the stylesheet itself&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$deps&lt;/code&gt; - An array of any other stylesheets needed as dependencies&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$ver&lt;/code&gt; - The version number of the stylesheet (used for cache busting)&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$media&lt;/code&gt; - Specify media type (&lt;code&gt;all&lt;/code&gt;, &lt;code&gt;print&lt;/code&gt;, &lt;code&gt;screen&lt;/code&gt;, etc.)&lt;/li&gt;
&lt;/ul&gt;
-&lt;h2 id=&quot;generate-a-wordpress-configuration-file&quot;&gt;Generate a WordPress Configuration File&lt;/h2&gt;
-&lt;p&gt;At the SSH command line (replace the examples with the info for the database and user you created above):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;wp core config --dbhost=example.db --dbname=exampledb --dbuser=exampledbuser --dbpass=dbpassword
-chmod 644 wp-config.php
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;run-the-wordpress-installation-and-setting-permissions&quot;&gt;Run the WordPress Installation and Setting Permissions&lt;/h2&gt;
-&lt;p&gt;To get your permalinks to work properly, you must set up an .htaccess file. &lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;Go to the Dashboard for your WordPress site. (e.g. &lt;a href=&quot;https://www.example.com/wp-admin/index.php&quot;&gt;https:&amp;#47;&amp;#47;www.example.com&amp;#47;wp-admin&amp;#47;index.php&lt;/a&gt;)&lt;/li&gt;
-&lt;li&gt;In the navigation sidebar, find Settings and, under that, Permalinks.&lt;/li&gt;
-&lt;li&gt;Select your preferred link style under &amp;#8220;Common Settings.&amp;#8221; (We like &amp;#8220;Day and name.&amp;#8221;)&lt;/li&gt;
-&lt;li&gt;Scroll down and select the &amp;#8220;Save Changes&amp;#8221; button.&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;Next, create an &lt;code&gt;.htaccess&lt;/code&gt; file for your WordPress site. We suggest doing this directly from the SSH command line using the cat shell command:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;cat &amp;#62;.htaccess &amp;#60;&amp;#60;NFSNRULES # This line is a shell command, not part of .htaccess!
-RewriteEngine On
-RewriteBase &amp;#47;
-RewriteRule ^index\.php$ - [L]
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteCond %{REQUEST_FILENAME} !-d
-RewriteRule . &amp;#47;index.php [L]
-NFSNRULES
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If you prefer, you can copy-paste the text into an editor:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;RewriteEngine On
-RewriteBase &amp;#47;
-RewriteRule ^index\.php$ - [L]
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteCond %{REQUEST_FILENAME} !-d
-RewriteRule . &amp;#47;index.php [L]
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;We need to run the following commands in order to install, uninstall, activate, and deactivate plugins&amp;#47;themes from within the admin web GUI of WordPress:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;chgrp web .htaccess
-chmod 664 .htaccess
-chgrp -R web *
-find . -type d -exec chmod 775 {} \;
-find . -type f -exec chmod 664 {} \;
-wp config set FS_METHOD direct
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;enable-file-uploading&quot;&gt;Enable File Uploading&lt;/h2&gt;
-&lt;p&gt;In your main WordPress installation folder enter the following SSH commands:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;cd wp-content
-mkdir -p uploads
-chgrp -R web uploads
-chmod -R 775 uploads
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;keeping-wordpress-up-to-date-automatically-via-command-line&quot;&gt;Keeping WordPress Up-To-Date Automatically via Command Line&lt;/h2&gt;
-&lt;p&gt;It is &lt;strong&gt;critically&lt;/strong&gt; important to keep your WordPress installation up-to-date including, if applicable, your theme and plugins. PHP, WordPress, and WordPress themes and plugins all have a track record of security problems. Most of those get fixed quickly, but if you don&amp;#8217;t update, you don&amp;#8217;t get the fixes.&lt;/p&gt;
-&lt;p&gt;To help you keep WordPress up-to-date, NFS provides a streamlined script.&lt;/p&gt;
-&lt;p&gt;This command, which must be run from an interactive ssh session, will set up our system to check your WordPress install (and themes &amp;#38; plugins) for you every day, and update them automatically when needed:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;wp-update.sh -a
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;By default, it will tell you via email when updates happen. If you don&amp;#8217;t want that, just add &lt;code&gt;-q&lt;/code&gt; (for &amp;#8220;quiet&amp;#8221;) to the command. It will work silently unless there is an error.&lt;/p&gt;
-&lt;p&gt;If you get errors from wp-cron (not wp-update) about failed automatic updates, you may also wish to add this to your wp-config.php file:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;define( &amp;#39;AUTOMATIC_UPDATER_DISABLED&amp;#39;, true );
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This disables the insecure automatic updater bundled with recent versions of WordPress.&lt;/p&gt;
-&lt;p&gt;&lt;strong&gt;Do not attempt&lt;/strong&gt; to use WordPress&amp;#8217;s built-in ability to update itself through its admin panel. That insecure, outdated approach should not still exist. It does not work on NFS, which is a feature, not a bug. Getting it to work requires almost completely destroying your site&amp;#8217;s security, thereby ensuring that any undiscovered security flaw can enable hackers to completely obliterate your site. The update methods described here are faster, easier, and safer.&lt;/p&gt;
-&lt;h2 id=&quot;logging-in&quot;&gt;Logging In&lt;/h2&gt;
-&lt;p&gt;You should be able to navigate to &lt;code&gt;yourwebsite.com&amp;#47;wp-admin&lt;/code&gt;, login and have everything work as expected. Congrats - enjoy your blog!&lt;/p&gt;
-&lt;p&gt;Below you can find more advanced configuration to get the most out of your WordPress project.&lt;/p&gt;
-&lt;hr/&gt;
-&lt;h2 id=&quot;backing-up-wordpress&quot;&gt;Backing up WordPress&lt;/h2&gt;
-&lt;p&gt;NFS recommends backing up your WordPress setup on a regular basis.&lt;/p&gt;
-&lt;p&gt;This is a two-step process. You must back up both the files and the database.&lt;/p&gt;
-&lt;h3 id=&quot;backing-up-wordpress-files&quot;&gt;Backing up WordPress Files&lt;/h3&gt;
-&lt;p&gt;To back up your WordPress files directly from a Unix-like system of your own, you can use a command like:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;ssh yourmembername_siteshortname@ssh.phx.nearlyfreespeech.net tar -C &amp;#47;home&amp;#47;public -cvf - . | gzip &amp;#62;name-of-wordpress-backup.tar.gz
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;To back up WordPress to a file on our system that you can transfer via SFTP to your own computer, you can use a command like:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;tar -C &amp;#47;home&amp;#47;public -cvzf &amp;#47;home&amp;#47;tmp&amp;#47;name-of-wordpress-backup.tar.gz .
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This assumes that your WordPress install is in the default location (&lt;code&gt;&amp;#47;home&amp;#47;public&lt;/code&gt;). It will put your backup file in your &lt;code&gt;&amp;#47;home&amp;#47;tmp&lt;/code&gt; directory.&lt;/p&gt;
-&lt;p&gt;Do not try to back up your WordPress folder into your WordPress folder, as that occasionally results in attempts to use infinite disk space by trying to back up the backup of the backup of the backup of the&amp;#8230;&lt;/p&gt;
-&lt;h3 id=&quot;backing-up-the-wordpress-database&quot;&gt;Backing up the WordPress Database&lt;/h3&gt;
-&lt;p&gt;If you have a Unix-like system of your own (e.g. macOS or Linux), you can do the backup directly from there using your local command prompt using the MySQL username and password you created for WordPress:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;ssh yourmembername_siteshortname@ssh.phx.nearlyfreespeech.net wp db export - | gzip &amp;#62;wordpress-backup.sql.gz
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Or you can do it from the SSH command line via WP-CLI:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;wp db export &amp;#47;home&amp;#47;tmp&amp;#47;wordpress-backup.sql
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;The &lt;code&gt;wordpress-backup.sql&lt;/code&gt; file this generates will be stored in your site&amp;#8217;s &lt;code&gt;&amp;#47;home&amp;#47;tmp&lt;/code&gt; directory. Download it from there to have a local copy.&lt;/p&gt;
-&lt;h2 id=&quot;thats-it&quot;&gt;That&amp;#8217;s It!&lt;/h2&gt;
-&lt;p&gt;Your WordPress site should be up-and-running now. Further customization or extra plugins&amp;#47;services can be freely added if so desired. Enjoy your site!&lt;/p&gt;</description>
- <link>https://btxx.org/Installing_WordPress_on_NearlyFreeSpeech</link>
- <guid isPermaLink="false">https://btxx.org/Installing_WordPress_on_NearlyFreeSpeech</guid>
- <pubDate>Mon, 27 May 2024 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Building rbenv on OpenBSD 7.5</title>
- <description>&lt;h1 id=&quot;building-rbenv-on-openbsd-7.5&quot;&gt;Building rbenv on OpenBSD 7.5&lt;/h1&gt;
-&lt;p&gt;2024-06-02&lt;/p&gt;
-&lt;p&gt;I use Ruby (specifically with Jekyll) for a lot of my clubs&amp;#47;projects while using my personal laptop (&lt;a href=&quot;/posts/x220/&quot;&gt;X220 ThinkPad&lt;/a&gt;) which is runs OpenBSD. Since I recently upgraded to OpenBSD 7.5 I thought it could be helpful for others if I shared my process of building and using &lt;code&gt;rbenv&lt;/code&gt; to install different Ruby versions.&lt;/p&gt;
-&lt;h2 id=&quot;before-we-build&quot;&gt;Before We Build&lt;/h2&gt;
-&lt;p&gt;First, be sure to install the required packages in order to build from source, and then clone the core &lt;code&gt;rbenv&lt;/code&gt; repo:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;pkg_add git gcc gmake libffi libyaml openssl
-git clone https:&amp;#47;&amp;#47;github.com&amp;#47;rbenv&amp;#47;rbenv.git ~&amp;#47;.rbenv
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;building-&quot;&gt;Building &lt;code&gt;rbenv&lt;/code&gt;&lt;/h2&gt;
-&lt;p&gt;Add &lt;code&gt;rbenv&lt;/code&gt; to your PATH and initialize it (place this inside your &lt;code&gt;.bashrc&lt;/code&gt; or &lt;code&gt;.zshrc&lt;/code&gt; etc):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;export PATH=&quot;$HOME&amp;#47;.rbenv&amp;#47;bin:$PATH&quot;
-export PATH=&quot;$HOME&amp;#47;.rbenv&amp;#47;shims:$PATH&quot;
-export RUBY_CONFIGURE_OPTS=&quot;--with-openssl-dir=&amp;#47;usr&amp;#47;local&quot;
-eval &quot;$(rbenv init -)&quot;
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Then reload your shell (zsh in this example): &lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;source ~&amp;#47;.zshrc
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;Next we will need to install &lt;code&gt;ruby-build&lt;/code&gt; as a &lt;code&gt;rbenv&lt;/code&gt; plugin. Clone the ruby-build repository into the rbenv plugins directory:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;git clone https:&amp;#47;&amp;#47;github.com&amp;#47;rbenv&amp;#47;ruby-build.git ~&amp;#47;.rbenv&amp;#47;plugins&amp;#47;ruby-build
-&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;installing-ruby-and-setting-our-version&quot;&gt;Installing Ruby and Setting Our Version&lt;/h2&gt;
-&lt;p&gt;Now use &lt;code&gt;rbenv&lt;/code&gt; to install the desired version of Ruby (we will get an older version for this example):&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;rbenv install 3.3.0
-&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If you run into issues, you may need to specify your openssl directory:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;RUBY_CONFIGURE_OPTS=&quot;--with-openssl-dir=&amp;#47;usr&amp;#47;local&quot; rbenv install 3.3.0
+&lt;p&gt;So, with all those parameters in mind, here is what a standard default enqueue of a CSS stylesheet looks like:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;wp_enqueue_style( &amp;#39;google-fonts&amp;#39;, &amp;#39;https:&amp;#47;&amp;#47;fonts.googleapis.com&amp;#47;css?family=Montserrat:200,300,300i,400,600,700,800,900&amp;#39;, &amp;#39;&amp;#39;, &amp;#39;1.0&amp;#39;, &amp;#39;&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;If you&amp;#8217;re on a slower machine (like mine) this might take a little bit. Just grab a coffee or a snack while you wait!&lt;/p&gt;
-&lt;p&gt;Then navigate to your project of choice and set the &lt;code&gt;local&lt;/code&gt; Ruby version:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;rbenv local 3.3.0
+&lt;p&gt;In this example we have rendered the following:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;code&gt;$handle&lt;/code&gt;: google-fonts&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$src&lt;/code&gt;: &lt;a href=&quot;https://fonts.googleapis.com/css?family=Montserrat:200,300,300i,400,600,700,800-&quot;&gt;https:&amp;#47;&amp;#47;fonts.googleapis.com&amp;#47;css?family=Montserrat:200,300,300i,400,600,700,800-&lt;/a&gt; 0&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$deps&lt;/code&gt;: Null (left blank)&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$ver&lt;/code&gt;: 1.0&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$media&lt;/code&gt;: Null (left blank)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; Keep in mind that the &lt;code&gt;wp_enqueue_style&lt;/code&gt; script will render the stylesheet link into the WordPress header automatically.&lt;/p&gt;
+&lt;h2 id=&quot;enqueue-scripts&quot;&gt;Enqueue Scripts&lt;/h2&gt;
+&lt;p&gt;The default script to enqueue an external JS file:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer );
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;That&amp;#8217;s it! If you&amp;#8217;d prefer to set this version of Ruby for all projects going forward, simply replace &lt;code&gt;local&lt;/code&gt; with &lt;code&gt;global&lt;/code&gt;.&lt;/p&gt;</description>
- <link>https://btxx.org/Building_rbenv_on_OpenBSD_7.5</link>
- <guid isPermaLink="false">https://btxx.org/Building_rbenv_on_OpenBSD_7.5</guid>
- <pubDate>Sun, 02 Jun 2024 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Making a Website Under 1kB</title>
- <description>&lt;h1 id=&quot;making-a-website-under-1kb&quot;&gt;Making a Website Under 1kB&lt;/h1&gt;
-&lt;p&gt;2022-08-02&lt;/p&gt;
-&lt;p&gt;I recently launched (another) website club called the &lt;a href=&quot;https://1kb.club&quot;&gt;1kB Club&lt;/a&gt;. Unlike the &lt;a href=&quot;https://1mb.club&quot;&gt;1MB Club&lt;/a&gt;, it isn&amp;#8217;t as accessible for most modern websites to become official members. Building a website that actually serves useful content while squeezing its page size under 1,024 bytes is no easy feat.&lt;/p&gt;
-&lt;p&gt;But it is possible. And I did it myself!&lt;/p&gt;
-&lt;p&gt;&lt;em&gt;Note:&lt;/em&gt; Big shout-out to &lt;a href=&quot;https://t0.vc&quot;&gt;Tanner&lt;/a&gt;, who inspired this whole &amp;#8220;movement&amp;#8221; with his own minimal website. (He also has some really great creations&amp;#47;articles there too!)&lt;/p&gt;
-&lt;h2 id=&quot;the-html&quot;&gt;The HTML&lt;/h2&gt;
-&lt;p&gt;For reference, you can view my &amp;#8220;mini&amp;#8221; website here: &lt;a href=&quot;https://cv.tdarb.org&quot;&gt;cv.tdarb.org&lt;/a&gt;. It is &lt;em&gt;very&lt;/em&gt; minimal and serves only as a personal curriculum vitae. It also weighs only &lt;strong&gt;920 bytes&lt;/strong&gt; and is valid HTML.&lt;/p&gt;
-&lt;p&gt;Let&amp;#8217;s take a look at the full HTML and then break things down from there:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;!DOCTYPE html&amp;#62;&amp;#60;link rel=&quot;icon&quot; href=&quot;data:,&quot;&amp;#62;&amp;#60;meta name=&quot;viewport&quot; content=&quot;width=device-width,initial-scale=1.0&quot;&amp;#62;&amp;#60;title&amp;#62;CV&amp;#60;&amp;#47;title&amp;#62;&amp;#60;p&amp;#62;Hi, I&amp;#39;m &amp;#60;a href=&quot;t&quot;&amp;#62;Brad Taunt&amp;#60;&amp;#47;a&amp;#62;! I&amp;#39;m a UX designer.&amp;#60;p&amp;#62;Email: hello@tdarb.org&amp;#60;p&amp;#62;Resume&amp;#60;p&amp;#62;Senior Product Designer @ Donorbox, 2021-&amp;#60;br&amp;#62;Web Designer @ Purism, 2019-2021&amp;#60;br&amp;#62;Product Designer @ Benbria, 2013-2019&amp;#60;br&amp;#62;Web Designer @ Netvatise, 2009-2013&amp;#60;p&amp;#62;Projects&amp;#60;p&amp;#62;&amp;#60;a href=&quot;1&quot;&amp;#62;1MB Club&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;k&quot;&amp;#62;1kB Club&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;p&quot;&amp;#62;pblog&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;s&quot;&amp;#62;shinobi&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;h&quot;&amp;#62;PHPetite&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;v&quot;&amp;#62;Vanilla CSS&amp;#60;&amp;#47;a&amp;#62;&amp;#60;p&amp;#62;Writing&amp;#60;p&amp;#62;&amp;#60;a href=&quot;d&quot;&amp;#62;The Death of Personality&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;u&quot;&amp;#62;Simple Does Not Mean Ugly&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;e&quot;&amp;#62;Plain Text Emails, Please&amp;#60;&amp;#47;a&amp;#62;&amp;#60;br&amp;#62;&amp;#60;a href=&quot;tb&quot;&amp;#62;[more]&amp;#60;&amp;#47;a&amp;#62;
+&lt;ul&gt;
+&lt;li&gt;&lt;code&gt;$handle&lt;/code&gt; - the name associated with your script&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$src&lt;/code&gt; - URL pointing to the directory of the script itself&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$deps&lt;/code&gt; - An array of any other scripts needed as dependencies&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$ver&lt;/code&gt; - The version number of the script (used for cache busting)&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$in_footer&lt;/code&gt; - Set whether the script is loaded in the &lt;code&gt;&amp;#60;head&amp;#62;&lt;/code&gt; or just before the &lt;code&gt;&amp;#60;&amp;#47;body&amp;#62;&lt;/code&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;With all those parameters in mind, here is what a standard default enqueue of a Javascript file looks like:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;wp_enqueue_script( &amp;#39;bxslider&amp;#39;, get_template_directory_uri() . &amp;#39;&amp;#47;js&amp;#47;bxslider.js&amp;#39;, array(&amp;#39;jquery&amp;#39;), &amp;#39;1.0.0&amp;#39;, true );
&lt;/code&gt;&lt;/pre&gt;
-&lt;h2 id=&quot;sneaky-hacks&quot;&gt;Sneaky &amp;#8220;Hacks&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;The first thing you&amp;#8217;ll notice is that the HTML is compressed. White space adds extra bytes of data to the page weight - so it needs to go. Next, you might have caught the &lt;em&gt;odd&lt;/em&gt; favicon meta tag:&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;&amp;#60;link rel=&quot;icon&quot; href=&quot;data:,&quot;&amp;#62;
+&lt;p&gt;In this example we have rendered the following:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;&lt;code&gt;$handle&lt;/code&gt;: bxslider&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$src&lt;/code&gt;: get_template_directory_uri() . &amp;#47;js&amp;#47;bxslider.js&amp;#8217;&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$deps&lt;/code&gt;: array(jquery&amp;#8217;)&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$ver&lt;/code&gt;: 1.0.0&lt;/li&gt;
+&lt;li&gt;&lt;code&gt;$in_footer&lt;/code&gt;: True (&lt;em&gt;places script before closing body tag&lt;/em&gt;)&lt;/li&gt;
+&lt;/ul&gt;
+&lt;h2 id=&quot;packaging-everything-together&quot;&gt;Packaging Everything Together&lt;/h2&gt;
+&lt;p&gt;Now that we have the custom stylesheet and script ready to be loaded into our custom WordPress theme, we just need to properly package them together as a function in our &lt;code&gt;functions.php&lt;/code&gt; file:&lt;/p&gt;
+&lt;pre&gt;&lt;code&gt;&amp;#47;&amp;#47; Add styles and scripts to the header&amp;#47;footer
+function custom_enqueue_scripts() {
+ wp_enqueue_style( &amp;#39;google-fonts&amp;#39;, &amp;#39;https:&amp;#47;&amp;#47;fonts.googleapis.com&amp;#47;css?family=Montserrat:200,300,300i,400,600,700,800,900&amp;#39;);
+ wp_enqueue_script( &amp;#39;bxslider&amp;#39;, get_template_directory_uri() . &amp;#39;&amp;#47;js&amp;#47;bxslider.js&amp;#39;, array(&amp;#39;jquery&amp;#39;), &amp;#39;1.0.0&amp;#39;, true );
+}
+
+add_action( &amp;#39;wp_enqueue_scripts&amp;#39;, &amp;#39;custom_enqueue_scripts&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;
-&lt;p&gt;This is required to stop the browser from making the standard favicon request (normally pulling from &lt;code&gt;favicon.ico&lt;/code&gt;). By adding this meta tag you are telling the browser to load in an empty image without running another server request. This saves about 400 bytes of bandwidth on its own!&lt;/p&gt;
-&lt;p&gt;The next two meta tags after the &lt;code&gt;icon&lt;/code&gt; are technically optional. These are the &lt;code&gt;viewport&lt;/code&gt; and &lt;code&gt;title&lt;/code&gt; tags. You could save a good amount of data by excluding them altogether, but I had my own personal reasons for keeping them:&lt;/p&gt;
-&lt;ol&gt;
-&lt;li&gt;I wanted the web page to be responsive&lt;/li&gt;
-&lt;li&gt;I wanted the page to be &lt;a href=&quot;https://validator.w3.org/nu/?doc=https%3A%2F%2Fcv.tdarb.org%2F&quot;&gt;valid HTML&lt;/a&gt;&lt;/li&gt;
-&lt;/ol&gt;
-&lt;p&gt;So, I kept these tags but made them as minimal as I possibly could (looking at you &lt;code&gt;title&lt;/code&gt; tag). After that, it was time to add my content!&lt;/p&gt;
-&lt;h2 id=&quot;where-were-going-we-dont-need-tags&quot;&gt;Where We&amp;#8217;re Going, We Don&amp;#8217;t Need Tags&amp;#8230;&lt;/h2&gt;
-&lt;p&gt;The beauty of using HTML5 is the ability to ditch &amp;#8220;default&amp;#8221; and closing tags on most elements. Think of all those bytes we can save!&lt;/p&gt;
-&lt;p&gt;In the HTML above you will notice:&lt;/p&gt;
+&lt;p&gt;That&amp;#8217;s it! Hopefully this helps prevent WordPress newbies from statically rendering their external CSS and JS files directly in template files. Let WordPress do that for you!&lt;/p&gt;</description>
+ <link>https://btxx.org/wp-enqueue-for-beginners</link>
+ <guid isPermaLink="false">https://btxx.org/wp-enqueue-for-beginners</guid>
+ <pubDate>Tue, 05 May 2020 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>Bypassing the WiFi Hardware Switch on the Lenovo X201</title>
+ <description>&lt;h1 id=&quot;bypassing-the-wifi-hardware-switch-on-the-lenovo-x201&quot;&gt;Bypassing the WiFi Hardware Switch on the Lenovo X201&lt;/h1&gt;
+&lt;p&gt;2023-04-02&lt;/p&gt;
+&lt;p&gt;I recently received a ThinkPad X201 to start using as my daily driver. I purchased the X201 to replace my existing X260. Although some might look at this as a &amp;#8220;downgrade&amp;#8221; in terms of specs and hardware, I would have to disagree. &lt;/p&gt;
+&lt;p&gt;The X201 is an absolute masterpiece in laptop hardware design and only faulted by some of the constraints set by the motherboard, namely the lack to support more than 8GB of RAM. Other than that, I think it&amp;#8217;s perfect. Well&amp;#8230;&lt;em&gt;almost&lt;/em&gt; perfect. There is one small annoyance:&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;The physical WiFi kill switch&lt;/strong&gt;.&lt;/p&gt;
+&lt;p&gt;This thing can become really flaky on these older devices and countless people on the web report connection issues across multiple operating systems. I too ran into this issue not long after getting Alpine setup nicely on my machine.&lt;/p&gt;
+&lt;p&gt;Some remedies include re-installing hardware drivers, flicking the hardware toggle off and on repeatedly, or even simply logging out of the current user session. All these options seemed like a pain in the ass.&lt;/p&gt;
+&lt;p&gt;So I listed out my possible options:&lt;/p&gt;
&lt;ol&gt;
-&lt;li&gt;There is no &lt;code&gt;html&lt;/code&gt; element&lt;/li&gt;
-&lt;li&gt;There is no &lt;code&gt;head&lt;/code&gt; element&lt;/li&gt;
-&lt;li&gt;There is no &lt;code&gt;body&lt;/code&gt; element&lt;/li&gt;
-&lt;li&gt;There are no closing &lt;code&gt;p&lt;/code&gt; tags&lt;/li&gt;
+&lt;li&gt;Whitelist my BIOS WiFi settings (requires flashing BIOS) and install a newer wifi card, hoping the problem fixes itself&lt;/li&gt;
+&lt;li&gt;Purchase a replacement WiFi card (maybe mine was just buggy??)&lt;/li&gt;
+&lt;li&gt;Block PIN20 on the existing Wifi card&lt;/li&gt;
+&lt;li&gt;Somehow disconnect the hardware killswitch (requires soldering which I have ZERO experience with)&lt;/li&gt;
&lt;/ol&gt;
-&lt;p&gt;Even with all those &amp;#8220;missing&amp;#8221; elements, the webpage is still valid HTML5! Craziness.&lt;/p&gt;
-&lt;p&gt;The final hack that saved a &lt;em&gt;ton&lt;/em&gt; of bandwidth was implementing custom &lt;code&gt;href&lt;/code&gt; URLs. Most of the links on the page take the user to another website altogether - which is fine. The problem is including these full domains inside the &lt;code&gt;a:href&lt;/code&gt; tag. Those can start to eat up a lot of data.&lt;/p&gt;
-&lt;p&gt;Luckily, I host this mini-site through Netlify so I can take full advantage of their optional &lt;code&gt;_redirects&lt;/code&gt; file. Links are now set with a single character (ie. &amp;#8220;1&amp;#8221; for the 1MB Club link) and the &lt;code&gt;_redirects&lt;/code&gt; file simply forwards the user to the custom domain. Pretty sneaky!&lt;/p&gt;
-&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing Thoughts&lt;/h2&gt;
-&lt;p&gt;This is a silly project that isn&amp;#8217;t meant to be taken so seriously. That being said, I&amp;#8217;d love to see what other pages people are able to create while being limited to just 1kB.&lt;/p&gt;</description>
- <link>https://btxx.org/1kb</link>
- <guid isPermaLink="false">https://btxx.org/1kb</guid>
- <pubDate>Tue, 02 Aug 2022 00:00:00 +0000</pubDate>
- </item>
- <item>
- <title>Do You Have an Extra $10?</title>
- <description>&lt;h1 id=&quot;do-you-have-an-extra-10&quot;&gt;Do You Have an Extra $10?&lt;/h1&gt;
-&lt;p&gt;2022-11-23&lt;/p&gt;
-&lt;p&gt;As software designers and developers, think of all the little things that we spend $10 on. Maybe it&amp;#8217;s a couple coffees over the course of a week. Maybe it&amp;#8217;s a TV streaming subscription. Maybe it&amp;#8217;s an impulse buy while we&amp;#8217;re out shopping for groceries. Maybe it goes into a mason jar on top of the fridge, stored away for a rainy day.&lt;/p&gt;
-&lt;p&gt;$10 doesn&amp;#8217;t seem like a &lt;em&gt;ton&lt;/em&gt; of money, but a little does go a long way. What if, combined with &lt;em&gt;other people&lt;/em&gt;, that $10 could grow and support an open source project? A project that you might even use &lt;em&gt;every day&lt;/em&gt; without cost. &lt;/p&gt;
-&lt;p&gt;Plenty of people already do this - it&amp;#8217;s nothing new. If you already contribute to the open source community (whether through code or donations) then this post isn&amp;#8217;t really geared towards you. You&amp;#8217;re already helping out and are greatly appreciated. Feel free to stop reading right now and continue on with your day!&lt;/p&gt;
-&lt;p&gt;But, if you&amp;#8217;re like how I used to be, you might be one of those people who enjoys &lt;em&gt;the idea&lt;/em&gt; of donating to a FOSS project instead of actually doing so. That&amp;#8217;s fine. Zero judgement here since I was doing &lt;em&gt;exactly that&lt;/em&gt; for years. All I ask is for you to try it out for even a couple months. You&amp;#8217;ll soon realize that $10 doesn&amp;#8217;t break the bank, while at the same time, you get that &amp;#8220;warm, fuzzy feeling&amp;#8221; of supporting important projects&amp;#47;communities.&lt;/p&gt;
-&lt;p&gt;In a way, it&amp;#8217;s actually kind of selfish. You start doing it more for the &lt;em&gt;feel good&lt;/em&gt; endorphin that kicks in each time you donate. At least, that&amp;#8217;s been my experience&amp;#8230;&lt;/p&gt;
-&lt;h2 id=&quot;open-source-isnt-free&quot;&gt;Open Source isn&amp;#8217;t Free&lt;/h2&gt;
-&lt;p&gt;Maintaining any open source project takes years of prior design&amp;#47;development experience, along with sacrificing personal time. Contributors might enjoy working on their project. Most probably love connecting with their end-users and community - but their time is still a hard requirement.&lt;/p&gt;
-&lt;p&gt;I believe this time is worth paying for. If a project you depend on were to suddenly &amp;#8220;shut down&amp;#8221;, how much time, effort, and income do you stand to lose? Is it more than $10 a month?&lt;/p&gt;
-&lt;h2 id=&quot;donating-in-this-economy&quot;&gt;&amp;#8220;Donating? In THIS Economy?&amp;#8221;&lt;/h2&gt;
-&lt;p&gt;Things aren&amp;#8217;t great for a lot of folks financially right now. I&amp;#8217;m not ignorant to this fact and completely understand people tightening their belts. We all have to. I&amp;#8217;m merely suggesting that if you &lt;em&gt;have the means&lt;/em&gt; to support FOSS communities with any disposable income, you should. And I&amp;#8217;m not suggesting a lot - &lt;strong&gt;just ten bucks&lt;/strong&gt;.&lt;/p&gt;
-&lt;p&gt;Allow me to put my money where my mouth is and showcase my own $10 donation breakdown:&lt;/p&gt;
-&lt;h2 id=&quot;my-10-breakdown&quot;&gt;My $10 Breakdown&lt;/h2&gt;
-&lt;table&gt;
-&lt;thead&gt;
-&lt;tr&gt;
-&lt;th&gt;Service&lt;/th&gt;
-&lt;th&gt;Cost&amp;#47;month&lt;/th&gt;
-&lt;/tr&gt;
-&lt;/thead&gt;
-&lt;tbody&gt;
-&lt;tr&gt;
-&lt;td&gt;&lt;a href=&quot;https://sourcehut.org&quot;&gt;sourcehut&lt;/a&gt;&lt;/td&gt;
-&lt;td&gt;$5.00&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;&lt;a href=&quot;https://fosstodon.org&quot;&gt;fosstodon&lt;/a&gt;&lt;/td&gt;
-&lt;td&gt;$3.00&lt;/td&gt;
-&lt;/tr&gt;
-&lt;tr&gt;
-&lt;td&gt;&lt;a href=&quot;https://qutebrowser.org&quot;&gt;qutebrowser&lt;/a&gt;&lt;/td&gt;
-&lt;td&gt;$2.00&lt;/td&gt;
-&lt;/tr&gt;
-&lt;/tbody&gt;
-&lt;/table&gt;
-&lt;p&gt;&lt;em&gt;In case you are reading the post at a later point in time, the most up-to-date donation listing can always be found &lt;a href=&quot;/uses/&quot;&gt;on my official Uses page&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
-&lt;h2 id=&quot;sourcehut&quot;&gt;SourceHut&lt;/h2&gt;
-&lt;p&gt;To be fair, this is an active service which just so happens to be available for &amp;#8220;free&amp;#8221; in its current state. Drew &lt;a href=&quot;https://sourcehut.org/pricing/&quot;&gt;mentions on the main pricing page&lt;/a&gt; that payment is &lt;em&gt;currently&lt;/em&gt; optional, but will eventually require maintainers to upgrade (contributors will always have free access):&lt;/p&gt;
+&lt;p&gt;Out of pure laziness, I chose option &lt;strong&gt;three&lt;/strong&gt;. In case you were unaware, PIN20 on older PCIE WLAN cards is the &amp;#8220;wifi disable&amp;#8221; and used as an RF killswitch. By &amp;#8220;blocking&amp;#8221; this PIN, we stop the system from being able to disable the WiFi connection. Losing the ability to disable WiFi on the hardware level didn&amp;#8217;t bother me much, so I moved forward with this easier approach.&lt;/p&gt;
+&lt;h2 id=&quot;opening-up-the-x201&quot;&gt;Opening Up the X201&lt;/h2&gt;
+&lt;p&gt;To access the WiFi card, you&amp;#8217;ll need to remove the keyboard and touchpad palm rest cover. It might sound daunting for newcomers but I assure you it is very simple. These machines were built during a time when Lenovo &lt;em&gt;expected&lt;/em&gt; their users to tinker with their devices and built them with modular components in mind. Yet another reason for my decision to swap this laptop for my more &amp;#8220;locked down&amp;#8221; X260.&lt;/p&gt;
&lt;blockquote&gt;
-&lt;p&gt;sr.ht is currently in alpha, and the quality of the service may reflect that. As such, payment is currently optional, and only encouraged for users who want to support the ongoing development of the site. &lt;/p&gt;
+&lt;p&gt;Note: I&amp;#8217;m not sure how important this is, but I made sure to set my WiFi hardware toggle switch into the &amp;#8220;ON&amp;#8221; position before doing any of the other steps.&lt;/p&gt;
&lt;/blockquote&gt;
-&lt;p&gt;I still consider this &amp;#8220;donating&amp;#8221; since it helps keep this specific instance alive. It&amp;#8217;s also my main code forge since I&amp;#8217;ve been &lt;a href=&quot;/srht2/&quot;&gt;migrating away from GitHub&lt;/a&gt;. I want to see SourceHut succeed, so while I &lt;em&gt;could&lt;/em&gt; use the service completely free, I believe it&amp;#8217;s more than worth it to coverage my usage.&lt;/p&gt;
-&lt;h2 id=&quot;fosstodon&quot;&gt;Fosstodon&lt;/h2&gt;
-&lt;p&gt;&lt;a href=&quot;https://fosstodon.org&quot;&gt;fosstodon.org&lt;/a&gt; is my main &amp;#8220;social&amp;#8221; platform and the Mastodon instance I chose to join some time ago. The people I&amp;#8217;ve interacted with have been nothing but helpful, insightful and fun. The maintainers are also very down to earth (shoutout to &lt;a href=&quot;https://kevquirk.com/&quot;&gt;Kev&lt;/a&gt; specifically for making my initial experience great!)&lt;/p&gt;
-&lt;p&gt;Hosting a large Mastodon instance can become expensive. Not to mention the recent influx of Twitter users flocking to the platform in general. Fosstodon recently &lt;a href=&quot;https://hub.fosstodon.org/more-upgrades-twitter-storm/&quot;&gt;posted an update&lt;/a&gt; detailing how their server costs are now &amp;#62;$1800. That&amp;#8217;s insane.&lt;/p&gt;
-&lt;p&gt;The least I can do is toss a few bucks towards the service. I know it isn&amp;#8217;t much, but it certainly feels better than using such an awesome platform for absolutely nothing. Keep up the great work maintainers&amp;#47;mods!&lt;/p&gt;
-&lt;h2 id=&quot;qutebrowser&quot;&gt;qutebrowser&lt;/h2&gt;
-&lt;p&gt;&lt;strong&gt;The best browser I have ever used&lt;/strong&gt;. I refuse to go back to Firefox or even FireDragon&amp;#47;Pale Moon. I&amp;#8217;m only currently donating $2 but my goal is to increase this in the future before adding any other services &amp;#47; communities to my &amp;#8220;collection&amp;#8221;. If you haven&amp;#8217;t yet tried it, I highly recommend it.&lt;/p&gt;
-&lt;h2 id=&quot;food-for-thought&quot;&gt;Food for Thought&lt;/h2&gt;
-&lt;p&gt;That&amp;#8217;s really all there is for me to say on the matter. It essentially comes down to personal preference and the financial ability to donate. As I said before: there is no judgement here. All I&amp;#8217;m suggesting is that people do what they can to help support the FOSS projects they love.&lt;/p&gt;
-&lt;p&gt;And really, it&amp;#8217;s just $10.&lt;/p&gt;</description>
- <link>https://btxx.org/$10</link>
- <guid isPermaLink="false">https://btxx.org/$10</guid>
- <pubDate>Wed, 23 Nov 2022 00:00:00 +0000</pubDate>
- </item>
+&lt;p&gt;You can follow the very beautiful visual instructions provided by Lenovo below. Just remember to always power off you machine and remove the battery before tinkering.&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/x201-1.png&quot; alt=&quot;Unscrew the main keyboard and touchpad screws on the back of the laptop&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/x201-2.png&quot; alt=&quot;Gently push the keyboard towards the screen to remove&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/x201-3.png&quot; alt=&quot;The keyboard cable is very fragile, remove it carefully&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/x201-4.png&quot; alt=&quot;Slide the palm rest down and away from the laptop to remove safely&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/x201-5.png&quot; alt=&quot;Remove the two screws on the WiFi card to access it&quot; /&gt;&lt;/p&gt;
+&lt;h2 id=&quot;electrical-tape-fixes-everything&quot;&gt;Electrical Tape Fixes Everything&lt;/h2&gt;
+&lt;p&gt;Now that the WiFi card has been safely removed from its port (you most likely do not need to disconnect the cables though!) it is time to block PIN20.&lt;/p&gt;
+&lt;p&gt;On the Centrino Advanced-N 6200 card PIN20 is located on the back side, since the front is designated to all odd-set pins. You&amp;#8217;ll need to cut a ridiculously thin piece of electrical tape to cover this &lt;em&gt;single&lt;/em&gt; pin. I found this part to be the most taxing of my patience during the entire process. Just keep thinking happy thoughts and you can do it!&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/x201-tape.jpg&quot; alt=&quot;My hacky electrical tape job on PIN20&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;Once it is on PIN20, place your card back into its port, rebuild you X201, pop in your battery and boot up! If things were done properly, your WiFi should now be rock solid.&lt;/p&gt;
+&lt;p&gt;Best of all, you don&amp;#8217;t have to worry about accidentally toggling your WiFi toggle switch - it does nothing! Mine is actually set in the &amp;#8220;OFF&amp;#8221; position all the time now.&lt;/p&gt;
+&lt;p&gt;Enjoy less flaky WiFi.&lt;/p&gt;</description>
+ <link>https://btxx.org/x201</link>
+ <guid isPermaLink="false">https://btxx.org/x201</guid>
+ <pubDate>Sun, 02 Apr 2023 00:00:00 +0000</pubDate>
+ </item>
+ <item>
+ <title>The X220 ThinkPad is the Best Laptop in the World</title>
+ <description>&lt;h1 id=&quot;the-x220-thinkpad-is-the-best-laptop-in-the-world&quot;&gt;The X220 ThinkPad is the Best Laptop in the World&lt;/h1&gt;
+&lt;p&gt;2023-09-26&lt;/p&gt;
+&lt;p&gt;The X220 ThinkPad is the greatest laptop ever made and you&amp;#8217;re wrong if you think otherwise. No laptop hardware has since surpassed the nearly perfect build of the X220. New devices continue to get thinner and more fragile. Useful ports are constantly discarded for the sake of &amp;#8220;design&amp;#8221;. Functionality is no longer important to manufacturers. Repairability is purposefully removed to prevent users from truly &amp;#8220;owing&amp;#8221; their hardware.&lt;/p&gt;
+&lt;p&gt;It&amp;#8217;s a mess out there. But thank goodness I still have my older, second-hand X220.&lt;/p&gt;
+&lt;h2 id=&quot;specs&quot;&gt;Specs&lt;/h2&gt;
+&lt;p&gt;Before I get into the details explaining why this laptop is the very best of its kind, let&amp;#8217;s first take a look at my machine&amp;#8217;s basic specifications:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;CPU: Intel i7-2640M (4) @ 3.500GHz&lt;/li&gt;
+&lt;li&gt;GPU: Intel 2nd Generation Core Processor&lt;/li&gt;
+&lt;li&gt;Memory: 16GB DDR3&lt;/li&gt;
+&lt;li&gt;OS: Arch Linux &amp;#47; OpenBSD&lt;/li&gt;
+&lt;li&gt;Resolution: 1366x768&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;With that out of the way, I will break down my thoughts on the X220 into five major sections: Build quality, available ports, the keyboard, battery life, and repairability.&lt;/p&gt;
+&lt;h2 id=&quot;build-quality&quot;&gt;Build Quality&lt;/h2&gt;
+&lt;p&gt;The X220 (like most of Lenovo&amp;#8217;s older X&amp;#47;T models) is built like a tank. Although the inner pieces are sourced from mostly plastic, the device is still better equipped to handle drops and mishandling compared to that of more fragile devices (such as the MacBook Air or Framework). This is made further impressive since the X220 is actually composed of many smaller interconnected pieces (more on this later).&lt;/p&gt;
+&lt;p&gt;A good litmus test I perform on most laptops is the &amp;#8220;corner test&amp;#8221;. You grab the base corner of a laptop in its open state. The goal is to see if the device displays any noticeable give or flex. In the X220&amp;#8217;s case: it feels rock solid. The base remains stiff and bobbing the device causes no movement on the opened screen. I&amp;#8217;m aware that holding a laptop in this position is certainly not a normal use case, but knowing it is built well enough to do so speaks volumes of its construction.&lt;/p&gt;
+&lt;p&gt;The X220 is also &lt;em&gt;not&lt;/em&gt; a lightweight laptop. This might be viewed as a negative for most users, but I actually prefer it. I often become too cautious and end up &amp;#8220;babying&amp;#8221; thinner laptops out of fear of breakage. A minor drop from even the smallest height will severely damage these lighter devices. I have no such worries with my X220.&lt;/p&gt;
+&lt;p&gt;As for the laptop&amp;#8217;s screen and resolution: your mileage may vary. I have zero issues with the default display or the smaller aspect ratio. I wrote about how I &lt;a href=&quot;/monitor&quot;&gt;stopped using an external monitor&lt;/a&gt;, so I might be a little biased.&lt;/p&gt;
+&lt;p&gt;Overall, this laptop is a device you can snatch up off your desk, whip into your travel bag and be on your way. The rugged design and bulkier weight help put my mind at ease - which is something I can&amp;#8217;t say for newer laptop builds.&lt;/p&gt;
+&lt;h2 id=&quot;ports&quot;&gt;Ports&lt;/h2&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/ports-everywhere.jpg&quot; alt=&quot;Buzz Lightyear and Woody meme: &#39;Ports, Ports Everywhere&#39;&quot; /&gt;&lt;/p&gt;
+&lt;p&gt;I don&amp;#8217;t think I need to explain how valuable it is to have functional ports on a laptop. Needing to carrying around a bunch of dongles for ports that should already be &lt;em&gt;on the device&lt;/em&gt; just seems silly.&lt;/p&gt;
+&lt;p&gt;The X220 comes equipped with:&lt;/p&gt;
+&lt;ul&gt;
+&lt;li&gt;3 USB ports (one of those being USB3 on the i7 model)&lt;/li&gt;
+&lt;li&gt;DisplayPort&lt;/li&gt;
+&lt;li&gt;VGA&lt;/li&gt;
+&lt;li&gt;Ethernet&lt;/li&gt;
+&lt;li&gt;SD Card Reader&lt;/li&gt;
+&lt;li&gt;3.5mm Jack&lt;/li&gt;
+&lt;li&gt;Ultrabay (SATA)&lt;/li&gt;
+&lt;li&gt;Wi-Fi hardware kill-switch&lt;/li&gt;
+&lt;/ul&gt;
+&lt;p&gt;Incredibly versatile and ready for anything I throw at it!&lt;/p&gt;
+&lt;h2 id=&quot;keyboard&quot;&gt;Keyboard&lt;/h2&gt;
+&lt;p&gt;The classic ThinkPad keyboards are simply that: classic. I don&amp;#8217;t think anyone could argue against these keyboards being the golden standard for laptops. It&amp;#8217;s commendable how Lenovo managed to package so much functionality into such a small amount of real estate. Most modern laptops lack helpful keys such as &lt;code&gt;Print Screen&lt;/code&gt;, &lt;code&gt;Home&lt;/code&gt;, &lt;code&gt;End&lt;/code&gt;, and &lt;code&gt;Scroll Lock&lt;/code&gt;.&lt;/p&gt;
+&lt;p&gt;They&amp;#8217;re also an absolute &lt;em&gt;joy&lt;/em&gt; to type on. The fact that so many people go out of their way to mod X230 ThinkPad models with X220 keyboards should tell you something&amp;#8230; Why Lenovo moved away from these keyboards will always baffle me. (I know &lt;em&gt;why&lt;/em&gt; they did it - I just think it&amp;#8217;s stupid).&lt;/p&gt;
+&lt;p&gt;Did I mention these classic keyboards come with the extremely useful Trackpoint as well?&lt;/p&gt;
+&lt;h2 id=&quot;battery-life&quot;&gt;Battery Life&lt;/h2&gt;
+&lt;blockquote&gt;
+&lt;p&gt;&lt;strong&gt;Author&amp;#8217;s Note:&lt;/strong&gt; This section is very subjective. The age, quality, and size of the X220&amp;#8217;s battery can have a massive impact on benchmarks. I should also mention that I run very lightweight operating systems and use DWM as opposed to a heavier desktop environment. Just something to keep in mind.&lt;/p&gt;
+&lt;/blockquote&gt;
+&lt;p&gt;The battery life on my own X220 is fantastic. I have a brand-new 9-cell that lasts for roughly 5-6 hours of daily work. Obviously these numbers don&amp;#8217;t come close to the incredible battery life of Apple&amp;#8217;s M1&amp;#47;M2 chip devices, but it&amp;#8217;s still quite competitive against other &amp;#8220;newer&amp;#8221; laptops on the market.&lt;/p&gt;
+&lt;p&gt;Although, even if the uptime was lower than 5-6 hours, you have the ability to carry extra batteries with you. The beauty of swapping out your laptop&amp;#8217;s battery without needing to &lt;em&gt;open up&lt;/em&gt; the device itself is fantastic. Others might whine about the annoyance of carrying an extra battery in their travel bag, but doing so is completely &lt;em&gt;optional&lt;/em&gt;. A core part of what makes the X220 so wonderful is user control and choice. The X220&amp;#8217;s battery is another great example of that.&lt;/p&gt;
+&lt;h2 id=&quot;repairability&quot;&gt;Repairability&lt;/h2&gt;
+&lt;p&gt;The ability to completely disassemble and replace almost everything on the X220 has to be one of its biggest advantages over newer laptops. No glue to rip apart. No special proprietary tools required. Just some screws and plastic snaps. If someone as monkey-brained as me can completely strip down this laptop and put it back together again without issue, then the hardware designers have done something right!&lt;/p&gt;
+&lt;p&gt;Best of all, Lenovo provides a very detailed &lt;a href=&quot;https://download.lenovo.com/pccbbs/mobiles_pdf/0a60739_01.pdf&quot;&gt;hardware maintenance manual&lt;/a&gt; to help guide you through the entire process.&lt;/p&gt;
+&lt;p&gt;My disassembled X220 when I was reapplying the CPU thermal paste:&lt;/p&gt;
+&lt;p&gt;&lt;img src=&quot;/public/images/x220-pieces.jpeg&quot; alt=&quot;My disassembled X220 laptop&quot; /&gt;&lt;/p&gt;
+&lt;h2 id=&quot;bonus-round-price&quot;&gt;Bonus Round: Price&lt;/h2&gt;
+&lt;p&gt;I didn&amp;#8217;t list this in my initial section &amp;#8220;breakdown&amp;#8221; but it&amp;#8217;s something to consider. I purchased my X220 off eBay for $175 Canadian. While this machine came with a HDD instead of an SSD and only 8GB of total memory, that was still an incredible deal. I simply swapped out the hard-drive with an SSD I had on hand, along with upgrading the DDR3 memory to its max of 16.&lt;/p&gt;
+&lt;p&gt;Even if you needed to buy those components separately you would be hard-pressed to find such a good deal for a decent machine. Not to mention you would be helping to prevent more e-waste!&lt;/p&gt;
+&lt;h2 id=&quot;what-more-can-i-say&quot;&gt;What More Can I Say?&lt;/h2&gt;
+&lt;p&gt;Obviously the title and tone of this article is all in good fun. Try not to take things so seriously! But, I still &lt;em&gt;personally&lt;/em&gt; believe the X220 is one of, if not &lt;em&gt;the&lt;/em&gt; best laptop in the world.&lt;/p&gt;</description>
+ <link>https://btxx.org/x220</link>
+ <guid isPermaLink="false">https://btxx.org/x220</guid>
+ <pubDate>Tue, 26 Sep 2023 00:00:00 +0000</pubDate>
+ </item>
</channel>
</rss>
diff --git a/posts/OpenBSD_is_a_Cozy_Operating_System.md b/posts/OpenBSD_is_a_Cozy_Operating_System.md
index 93d70ec..584d5e1 100644
--- a/posts/OpenBSD_is_a_Cozy_Operating_System.md
+++ b/posts/OpenBSD_is_a_Cozy_Operating_System.md
@@ -2,10 +2,9 @@
2024-04-11
-<figure>
-<img src="https://btxx.org/posts/OpenBSD_is_a_Cozy_Operating_System/open-suck-75.png" alt="Screenshot of OpenBSD 7.5 running dwm">
-<figcaption>OpenBSD 7.5 running dwm on my X220</figcaption>
-</figure>
+![Screenshot of OpenBSD 7.5 running dwm](/public/images/open-suck-75.png)
+
+*OpenBSD 7.5 running dwm on my X220*
With the recent release of OpenBSD 7.5, I decided to run through my [personal OpenBSD "installer"](https://git.btxx.org/open-suck/about/) for laptop/desktop devices. The project is built off of the `dwm` tiling window manager and only installs a few basic packages. The last time I updated it was with the release of 7.3, so it's been due for an minor rework.
diff --git a/posts/Please_Make_Your_Table_Headings_Sticky.md b/posts/Please_Make_Your_Table_Headings_Sticky.md
index b64928d..ef2e810 100644
--- a/posts/Please_Make_Your_Table_Headings_Sticky.md
+++ b/posts/Please_Make_Your_Table_Headings_Sticky.md
@@ -4,7 +4,14 @@
I often stumble upon large data sets or table layouts across the web. When these tables contain hundreds of rows of content, things become problematic once you start to scroll...
-[Link to video example of standard table header](/public/videos/not-fixed-header-tables.mp4)
+
+<video width="100%" controls>
+<source src="https://btxx.org/posts/Please_Make_Your_Table_Headings_Sticky/not-fixed-header-tables.mp4" type="video/mp4">
+Your browser does not support the video tag.
+</video>
+
+
+<h2>This should be a header</h2>
Look at that table header disappear! Now, if I scroll all the way down to item #300 (for example) will I remember what each column's data is associated with? If this is my first time looking at this table - probably not. Luckily we can fix this (no pun intended!) with a tiny amount of CSS.
@@ -12,7 +19,12 @@ Look at that table header disappear! Now, if I scroll all the way down to item #
Check it out:
-[Link to video example of fixed table header](/public/videos/fixed-header-tables.mp4)
+
+<video width="100%" controls>
+<source src="https://btxx.org/ikiwiki/git/fixed-header-tables.mp4" type="video/mp4">
+Your browser does not support the video tag.
+</video>
+
Pretty awesome, right? It might look like magic but it's actually very easy to implement. You only need to add 2 CSS properties on your `thead`:
diff --git a/posts/aui.md b/posts/aui.md
index 2aa7fdb..fa6786b 100644
--- a/posts/aui.md
+++ b/posts/aui.md
@@ -4,10 +4,9 @@
Though it may feel like nostalgia, the old OS design for Mac was arguably better than the current iteration (as of this writing - High Sierra). I recently designed a quick Dribbble shot showcasing how the older operating system used to have so much more character and depth.
-<figure>
-<img src="/public/images/aqua-ui-css-buttons.webp" alt="Old macOS Buttons">
-<figcaption>My initial Dribbble shot, which can be found <a href="https://dribbble.com/shots/4561658-Aqua-Buttons-UI">here</a>.</figcaption>
-</figure>
+![Old macOS Buttons](/public/images/aqua-ui-css-buttons.webp)
+
+*My initial Dribbble shot, which can be found [here](https://dribbble.com/shots/4561658-Aqua-Buttons-UI)*
Since I've been wanting to dip my toes into more tutorial-based articles (maybe I'll even do some screencasts in the future), I decided to start out simple. Let's walk through how to implement these 'aqua' UI buttons with pure CSS.
diff --git a/posts/batch-webp-conversion.md b/posts/batch-webp-conversion.md
index f9666ec..4bf930e 100644
--- a/posts/batch-webp-conversion.md
+++ b/posts/batch-webp-conversion.md
@@ -36,12 +36,12 @@ You *could* download one of the many native apps from the Mac App Store to do th
8) Enter the following code below as your script and type `⌘-S` to save (name it something like "Convert to webp")
-
- for f in "$@"
- do
- /usr/local/bin/cwebp -q 85 "$f" -o "${f%.*}.webp"
- done
-
+```
+for f in "$@"
+do
+/usr/local/bin/cwebp -q 85 "$f" -o "${f%.*}.webp"
+done
+```
For visual reference, it should look something like this:
@@ -67,9 +67,9 @@ Simple as that!
I was contacted by the very helpful [Kev Quirk](https://kevq.uk) about a minor problem he encountered while following this tutorial. When trying to run `cwebp` he received the following error message:
-
- cwebp cannot be opened because it's from an unverified developer
-
+```
+cwebp cannot be opened because it's from an unverified developer
+```
Doing the next steps seemed to have fixed this issue for him:
diff --git a/posts/heif.md b/posts/heif.md
index 50f6847..dc747b4 100644
--- a/posts/heif.md
+++ b/posts/heif.md
@@ -24,12 +24,12 @@ For this example script we are going to convert the image to JPG format. You can
7. Set the area "Pass input" to `as arguments`
8. Enter the following code below as your script and type `⌘-S` to save (name it something like "Convert HEIC/HEIF to JPG")
-
- for f in "$@"
- do
- /opt/homebrew/bin/heif-convert "$f" "${f%.*}.jpg"
- done
-
+```
+for f in "$@"
+do
+/opt/homebrew/bin/heif-convert "$f" "${f%.*}.jpg"
+done
+```
## Making Edits
diff --git a/public/images/open-suck-75.png b/public/images/open-suck-75.png
new file mode 100644
index 0000000..1ed67e0
--- /dev/null
+++ b/public/images/open-suck-75.png
Binary files differ
diff --git a/timestamps.tsv b/timestamps.tsv
new file mode 100644
index 0000000..8039de9
--- /dev/null
+++ b/timestamps.tsv
@@ -0,0 +1,181 @@
+index.md 1718024795
+posts/$10.md 1717867548
+posts/1kb.md 1717867548
+posts/Building_rbenv_on_OpenBSD_7.5.md 1717867548
+posts/Installing_WordPress_on_NearlyFreeSpeech.md 1717867548
+posts/My_Text_Editor_Is_Not_Open_Source.md 1717867548
+posts/New_Domain_and_Code_Forge.md 1717867548
+posts/Please_Make_Your_Table_Headings_Sticky.md 1717954085
+posts/Switching_Things_Over_to_ikiwiki.md 1717867548
+posts/Website_Backups_with_Apple_iCloud.md 1717867548
+posts/adguard.md 1717867548
+posts/af.md 1717867548
+posts/alpine.md 1717867548
+posts/animated-card-tiles.md 1717867548
+posts/animated-toggle-tabs.md 1717867548
+posts/audio-hotkeys-on-linux-mint.md 1717867548
+posts/avoid.md 1717867548
+posts/base64-all-the-things.md 1717867548
+posts/basic-gulp-build-for-sass.md 1717867548
+posts/batch-webp-conversion.md 1717953753
+posts/battery.md 1717867548
+posts/being-efficient.md 1717867548
+posts/berg.md 1717867548
+posts/better-box-shadows.md 1717867548
+posts/bidirectional-scrolling.md 1717867548
+posts/browser-history-sucks.md 1717867548
+posts/character-unit.md 1717867548
+posts/chasing-performance.md 1717867548
+posts/cheap-portable-pi.md 1717867548
+posts/chromebook-web-dev.md 1717867548
+posts/css-js-mistake.md 1717867548
+posts/css-slope-graphs.md 1717867548
+posts/css-variables.md 1717867548
+posts/css-video-backgrounds.md 1717867548
+posts/current-color.md 1717867548
+posts/cut-your-forms-in-half.md 1717867548
+posts/death-of-personality.md 1717867548
+posts/default-brower-forms.md 1717867548
+posts/default-html-style-updates.md 1717867548
+posts/design-review-dropbox.md 1717868283
+posts/disabling-comments-in-wordpress.md 1717867548
+posts/dts.md 1717867548
+posts/duckduckno.md 1717867548
+posts/dump.md 1717867548
+posts/dv.md 1717867548
+posts/dwm-gnome.md 1717867548
+posts/dynamic-checkboxes.md 1717867548
+posts/easy-custom-radio-inputs.md 1717867548
+posts/easy-toggle-switches.md 1717867548
+posts/eero.md 1717867548
+posts/empty-table-cells.md 1717867548
+posts/et-jekyll-theme.md 1717867548
+posts/fake-3d-elements-with-css.md 1717867548
+posts/fathom-analytics-netlify.md 1717867548
+posts/february-updates.md 1717867548
+posts/first-letter.md 1717867548
+posts/flexbox-bar-graphs.md 1717867548
+posts/flexbox-grid.md 1717867548
+posts/form-ui-improvements.md 1717867548
+posts/future-os-google.md 1717867548
+posts/gallery.md 1717867548
+posts/git-patches.md 1717867548
+posts/goodbye-css-preprocessors.md 1717867548
+posts/hamburger-menu-alternative.md 1717867548
+posts/hamburgers.md 1717867548
+posts/heif.md 1717953786
+posts/hello-jekyll.md 1717867548
+posts/html-dark-mode.md 1717867548
+posts/html-like-1999.md 1717867548
+posts/html5-validator-badge.md 1717867548
+posts/improving-githubs-new-design.md 1717867548
+posts/improving-receipt-ux.md 1717867548
+posts/improving-tufte-jekyll.md 1717867548
+posts/introducing-notez.md 1717867548
+posts/introducing-pageroast.md 1717867548
+posts/jekyll-sourcehut.md 1717867548
+posts/jekyll.md 1717867548
+posts/jelly.md 1717867548
+posts/jsincss-parent-selector.md 1717867548
+posts/keynote-slides-css.md 1717867548
+posts/launching-thriftyname.md 1717867548
+posts/lazy-dev-dark-mode.md 1717867548
+posts/learning-to-floss.md 1717867548
+posts/lf.md 1717867548
+posts/linux-love.md 1717867548
+posts/linux-mint-macbook-air.md 1717867548
+posts/load-image-on-click.md 1717867548
+posts/localwp-fedora.md 1717867548
+posts/loop.md 1717867548
+posts/luba.md 1717867548
+posts/macos-convert-to-html.md 1717867548
+posts/macos-icon-css.md 1717867548
+posts/mail.md 1717867548
+posts/mango.md 1717867548
+posts/menu-toggle-css.md 1717867548
+posts/mini-interactive-keyboard-with-pure-css.md 1717867548
+posts/minimal-css-menu.md 1717867548
+posts/minor-website-changes.md 1717867548
+posts/mongodb-arch.md 1717867548
+posts/monitor.md 1717867548
+posts/multiple-css-background-images.md 1717867548
+posts/my-pi-desktop.md 1717867548
+posts/my-static-blog-publishing-setup.md 1717867548
+posts/ndenting-text-with-css.md 1717867548
+posts/netlify-urls.md 1717867548
+posts/news-websites-are-dumpster-fires.md 1717867548
+posts/notice.md 1717867548
+posts/obvious-js-injection-fallback.md 1717867548
+posts/one-css-property.md 1717867548
+posts/one-thing.md 1717867548
+posts/open-source-typeface-pairings.md 1717867548
+posts/openring.md 1717867548
+posts/over-engineering-an-oil-tank.md 1717867548
+posts/over-nesting.md 1717867548
+posts/paid-mac-apps.md 1717867548
+posts/pblog.md 1717867548
+posts/performance-focused-wordpress-theme.md 1717867548
+posts/personal-website-opinions.md 1717867548
+posts/phpetite.md 1717867548
+posts/pi-400-internal-ssd.md 1717867548
+posts/pihole-cloudflare.md 1717867548
+posts/plain-text-emails.md 1717867548
+posts/poor-mans-full-bleed.md 1717867548
+posts/poormans-comment-system.md 1717867548
+posts/proper-ui-hierarchy.md 1717867548
+posts/ps4-download-ui.md 1717867548
+posts/publish-with-jekyll.md 1717867548
+posts/pure-css-simple-dropdown-plugin.md 1717867548
+posts/quick-dirty-theme-switcher.md 1717867548
+posts/rss-click.md 1717867548
+posts/rss-hacks.md 1717867548
+posts/rvm.md 1717867548
+posts/safari-default-dark-mode.md 1717867548
+posts/safari-extensions-catalina-patcher.md 1717867548
+posts/schools.md 1717867548
+posts/self-hosted-blogs.md 1717867548
+posts/self-hosting-fathom.md 1717867548
+posts/setting-up-free-ssl.md 1717867548
+posts/seven-years.md 1717867548
+posts/sharing-the-things-we-use.md 1717867548
+posts/shinobi-website.md 1717867548
+posts/shiny-css-buttons.md 1717867548
+posts/simple-accessibility.md 1717867548
+posts/simple-does-not-mean-ugly.md 1717867548
+posts/simple-jekyll-navigation.md 1717867548
+posts/skip-to-content.md 1717867548
+posts/slabtop.md 1717867548
+posts/slow.md 1717867548
+posts/soma-terminal-css.md 1717867548
+posts/spec.md 1717867548
+posts/srht2.md 1717867548
+posts/stay-hungry.md 1717867548
+posts/sticky-elements.md 1717867548
+posts/still-using-jquery.md 1717867548
+posts/stripe-menu-css.md 1717867548
+posts/sublime.md 1717867548
+posts/suckless.md 1717867548
+posts/super-mario-blocks-css.md 1717867548
+posts/tabbed-content.md 1717867548
+posts/tables.md 1717867548
+posts/te.md 1717867548
+posts/text-align-justify.md 1717867548
+posts/they-wont-wait.md 1717867548
+posts/use-text-not-icons.md 1717867548
+posts/user-select.md 1717867548
+posts/vscode.md 1717867548
+posts/webfonts.md 1717867548
+posts/width-vs-flex-basis.md 1717867548
+posts/windows.md 1717867548
+posts/wp-enqueue-for-beginners.md 1717867548
+posts/x201.md 1717867548
+posts/x220.md 1717867548
+pages/colophon.md 1717867548
+pages/donate.md 1717867548
+pages/now.md 1717867548
+pages/projects.md 1717867548
+pages/resume.md 1717867548
+pages/uses.md 1717867548
+pages/wiki.md 1717867548
+posts/OpenBSD_is_a_Cozy_Operating_System.md 1718026693
+posts/aui.md 1718026803