<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Regex on myByways</title><link>https://myByways.com/tags/regex/</link><description>Recent content in Regex on myByways</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 11 Jun 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://myByways.com/tags/regex/index.xml" rel="self" type="application/rss+xml"/><item><title>Run code in a macOS Sandbox</title><link>https://myByways.com/post/run-code-in-a-macos-sandbox/</link><pubDate>Sun, 11 Jun 2023 00:00:00 +0000</pubDate><guid>https://myByways.com/post/run-code-in-a-macos-sandbox/</guid><description>&lt;p&gt;I sometimes test randomly downloaded code on macOS in a &lt;strong&gt;Sandbox&lt;/strong&gt; that has limited and network access. I posted about this way back in Jan 2017, &lt;a href="https://myByways.com/post/creating-a-macos-sandbox-to-run-kodi"&gt;Creating a macOS Sandbox to run Kodi&lt;/a&gt;, and this is a short refresher for me&amp;hellip;&lt;/p&gt;</description></item><item><title>File Date Created = Photo / video metadata</title><link>https://myByways.com/post/file-date-created-to-photo-video-metadata/</link><pubDate>Sun, 04 Jun 2023 00:00:00 +0000</pubDate><guid>https://myByways.com/post/file-date-created-to-photo-video-metadata/</guid><description>&lt;p&gt;When I export photos or videos from &lt;strong&gt;Photos.app&lt;/strong&gt;, I want the file’s &lt;strong&gt;Created Date&lt;/strong&gt; (&lt;strong&gt;Created Date&lt;/strong&gt; in Finder) to be the time the photo or video was taken. Alas, this is not the way Photos works, and setting the date turned out to be more challenging than expected.&lt;/p&gt;</description></item><item><title>Bluetooth keyboard and trackpad battery level</title><link>https://myByways.com/post/bluetooth-keyboard-and-trackpad-battery-level/</link><pubDate>Sun, 30 Apr 2023 00:00:00 +0000</pubDate><guid>https://myByways.com/post/bluetooth-keyboard-and-trackpad-battery-level/</guid><description>&lt;p&gt;Want to check your connected bluetooth device battery level on a mac? Here is one way: using &lt;a href="https://xbarapp.com/" rel="external"&gt;xbar&lt;/a&gt; (I am aware there are a bunch of other xbar plugins to do something similar, but I’ve been using my own script before I ever used xbar).&lt;/p&gt;</description></item><item><title>VS Code Snippet to insert formatted date and time</title><link>https://myByways.com/post/vs-code-snippet-to-insert-formatted-date-and-time/</link><pubDate>Thu, 07 Jul 2022 00:00:00 +0000</pubDate><guid>https://myByways.com/post/vs-code-snippet-to-insert-formatted-date-and-time/</guid><description>&lt;p&gt;I’ve known that it is possible to &lt;a href="https://code.visualstudio.com/docs/editor/userdefinedsnippets#_creating-your-own-snippets"&gt;create snippets in Visual Studio Code&lt;/a&gt;. Recently, I discovered a few tweaks to help me when taking notes. Here, I share a snippet for inserting the date and time in the format of my choosing in a &lt;strong&gt;Markdown&lt;/strong&gt; note.&lt;/p&gt;</description></item><item><title>Customizing VS Code for Markdown note-taking</title><link>https://myByways.com/post/customizing-vs-code-for-markdown-note-taking/</link><pubDate>Sun, 18 Jul 2021 00:00:00 +0000</pubDate><guid>https://myByways.com/post/customizing-vs-code-for-markdown-note-taking/</guid><description>&lt;p&gt;I’ve been using &lt;a href="https://code.visualstudio.com/" rel="external"&gt;Visual Studio Code&lt;/a&gt; for all my notes. I have used &lt;a href="https://typora.io/" rel="external"&gt;Typora&lt;/a&gt;, &lt;a href="https://obsidian.md/" rel="external"&gt;Obsidian&lt;/a&gt;, and &lt;a href="https://www.zettlr.com/" rel="external"&gt;Zetlr&lt;/a&gt;, but I keep coming back to VS Code, because of its extensibility, customizability and integrated terminal. Here is how I set it up for note-taking.&lt;/p&gt;</description></item><item><title>PowerShell Pipeline to Rename Files</title><link>https://myByways.com/post/powershell-pipeline-to-rename-files/</link><pubDate>Mon, 30 Dec 2019 00:00:00 +0000</pubDate><guid>https://myByways.com/post/powershell-pipeline-to-rename-files/</guid><description>&lt;p&gt;For me, Microsoft &lt;strong&gt;PowerShell&lt;/strong&gt; is hard! I can’t wrap my mind around &lt;a href="https://docs.microsoft.com/en-us/powershell/scripting/learn/understanding-the-powershell-pipeline?view=powershell-6" rel="external"&gt;data pipelines&lt;/a&gt; (&lt;code&gt;|&lt;/code&gt;). Instead, I keep reverting to if/then, loops and other traditional programming paradigms, similar to what I’d do in UNIX shell!&lt;/p&gt;</description></item><item><title>Enabling PHP in Apache on macOS Catalina 10.15</title><link>https://myByways.com/post/enabling-php-in-apache-on-macos-catalina-10-15/</link><pubDate>Sun, 03 Nov 2019 00:00:00 +0000</pubDate><guid>https://myByways.com/post/enabling-php-in-apache-on-macos-catalina-10-15/</guid><description>&lt;p&gt;Every time Apple releases a new version of macOS, I have to go in and re-configure &lt;strong&gt;Apache&lt;/strong&gt; with &lt;strong&gt;PHP&lt;/strong&gt; the way I want it. So this time, I thought I’d automate the configuration changes with a single command.&lt;/p&gt;</description></item><item><title>A bash script to search a CSV file</title><link>https://myByways.com/post/bash_script_to_search_csv_file/</link><pubDate>Sat, 19 May 2018 00:00:00 +0000</pubDate><guid>https://myByways.com/post/bash_script_to_search_csv_file/</guid><description>&lt;p&gt;I sometimes need to search a huge CSV file (13 MB), containing 21,000 rows and roundabout 40 columns, which &lt;strong&gt;Numbers&lt;/strong&gt; takes half a minute to open. All I need to do is search and display the results of a few columns only&amp;hellip; so I wrote a &lt;strong&gt;bash&lt;/strong&gt; script to do this for me - and I was quite specific in that I wanted the results in &lt;strong&gt;color!&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>Fixing PowerPoint TIFF images and fonts</title><link>https://myByways.com/post/fixing-powerpoint-tiff-images-and-fonts/</link><pubDate>Fri, 25 Aug 2017 00:00:00 +0000</pubDate><guid>https://myByways.com/post/fixing-powerpoint-tiff-images-and-fonts/</guid><description>&lt;p&gt;&lt;strong&gt;Microsoft PowerPoint 2016 for Mac&lt;/strong&gt; (aka version 15) has a strange quirk - when I copy and paste images from &lt;strong&gt;Preview&lt;/strong&gt; or most other applications, the image gets copied in &lt;a href="https://en.wikipedia.org/wiki/TIFF" rel="external"&gt;Tagged Image File Format (TIFF)&lt;/a&gt;. The image is practically uncompressed (or possibly minimally compressed), resulting in very, very huge PPTX files! &lt;strong&gt;Plus:&lt;/strong&gt; Removing unwanted font references.&lt;/p&gt;</description></item><item><title>Text Manipulation Cheat Sheet</title><link>https://myByways.com/post/text-manipulation-cheat-sheet/</link><pubDate>Mon, 26 Jun 2017 00:00:00 +0000</pubDate><guid>https://myByways.com/post/text-manipulation-cheat-sheet/</guid><description>&lt;p&gt;I recently had the &amp;ldquo;opportunity&amp;rdquo; to perform some text manipulation to get data from a huge log file into a spreadsheet. I had done this sort of work a long time ago as a developer, but had forgotten over the years. So I decided to compile a &lt;strong&gt;text manipulation cheat-sheet&lt;/strong&gt; for macOS.&lt;/p&gt;</description></item><item><title>Retrieving an Exchange Rate with Workflow</title><link>https://myByways.com/post/retrieving-an-exchange-rate-with-workflow/</link><pubDate>Tue, 28 Mar 2017 00:00:00 +0000</pubDate><guid>https://myByways.com/post/retrieving-an-exchange-rate-with-workflow/</guid><description>&lt;p&gt;Here&amp;rsquo;s how to retrieve and display the latest exchange rate for two currencies with the &lt;strong&gt;Workflow&lt;/strong&gt; App (though one could just &lt;a href="https://myByways.com/post/numbers-has-a-new-stock-trick"&gt;use Numbers on iOS or macOS too&lt;/a&gt;).&lt;/p&gt;</description></item></channel></rss>