In my post about using regular expressions to find matches in a text file, I promised to tell you about the two applications I used to help me write my regex. By the way, Regex is what the cool kids call Regular Expressions.
Let’s state the problem to be solved first. If you have a text file where you want to change something that’s repeated throughout the file, it’s pretty easy to do a search/change all. We do it all the time in text editors. But what if you have a text file that is repeatedly generated and always has the same thing wrong with it? Maybe it’s a date in the wrong format. Or maybe an online system hasn’t been updated with your new company name. Or what if instead of changing the text, you just need to know what the text actually says? Let’s say it’s a date in a document and you want to write a script to change the name of the document to include the date? All of these examples are a great place to try out regex.
We’re entering chapter 3 of my quest to provide chapter markers in the podcast. The original request was from Joe LaGreca but since I’ve started talking about it on the show, people have been coming out of the woodwork saying, “Yes, please!”
I have been working my little fingers and brain to the bone on this and I’ve figured out a really geeky solution. But first, let’s walk through what doesn’t work.
To review, I record the show in Hindenburg Journalist. I stop recording when I end each topic anyway, so it’s super easy to hit ⌘-control-enter to add a chapter and then type in the subject. The problem is that Hindenburg isn’t embedding those chapters on export. The dev and I have gone back and forth a few times and they seem to be saying that the chapters should be maintained, but they’re definitely not in the file.
I’m still working on how to get chapters in the podcast (this show might have them!) Follow up tips from Mike Price and Kaylee Dayo on Reader View. How Sandy and Allister saved Thanksgiving with their tip on saving a workout from last week. Bart brings us a Tiny Tip on a trivially easy way to show and hide hidden files in macOS Sierra and High Sierra. I mind mapped all of the settings in iOS 11, and it was utter madness. In Security Bits Bart and I talk about how Face ID isn’t broken, we learn about USB bugs in the Linux Kernel and how there’s a vulnerability in Intel chips you might need to know about.
This week’s Tiny Tip is from Bart Busschots. The problem he is solving is how to easily show hidden files in the Finder. There are various tools to do this, including using the defaults write command in the Terminal:
After which you have to relaunch the Finder. It’s not hard to do but you always have to look it up, and after you’re done looking for the hidden file in question you have to flip the switch to NO, and relaunch Finder again.
The Tiny Tip Bart discovered has been available since Sierra, but I sure never heard about it. It’s a beautiful thing.
With the Finder in focus, simply hold down command-shift-. And instantly all windows will show all hidden files! Hit the same keystroke again and they disappear.
I LOVE this tip. The keystroke is even easy to remember because . is often at the front of all hidden files, so command-shift-. Is entirely memorable.
I seem to be falling into a pattern. A pattern of obsessiveness of discovery. Who can forget the minute detail I went to in order to determine the size of the iPhone X screen? Or how about actually reading NIST Special Publication 800-63B in order to understand what the rules are about two-factor authentication and our banks? And then there’s documenting every minute change in the different MacBook Pro models to help you decide which one to buy. Or mapping all of the specs of the different iPhone models Apple is selling?
Well, I’ve done it again. I decided to mind map all, and I mean all of the Settings in iOS 11. I did not understand the utter madness into which I was about to descend when I undertook this project. But utter madness it was.
What’s the problem to be solved here? Personally, I find myself often digging around in Settings muttering to myself, “Where IS that setting? Was it in Mail, iCloud? Or was it in iCloud, Mail?”
This is an episode packed with Tiny Tips and Dumb questions and listener reviews. Dr. Maryanne Garry is back in Chit Chat Across the Pond, and Steve posted a video of her recent talk, “The End of Facts” at Claremont Graduate University. I was on The Phileas Club with Patrick Beja at frenchspin.com/…. Sandy brings us a Tiny Tip on how to add a workout to Apple Health via iPhone. Terry Vogelaar reviews Duolingo for learning a new language like Esperanto. I’ve got a Tiny Tip on Reader view in Safari on iOS and macOS to make your web reading more pleasant and readable. I created a page on all my podcasting gear. . Steve Sheridan brings us a Tiny Tip on how to get apps that are cranky about Face ID to straighten up and fly right. I’ve got a redux of my post about how you should ask me to change things about the podcast and website, and how I might just do some of them. In Dumb Question Corner, Rally Barnard asks some great questions about the new HEIF/HEVC formats on iOS 11 and High Sierra.
This Tiny, or possibly Nano tip came up when Sandy Foster asked in our Google Plus group at podfeet.com/googleplus how to add a workout from the iPhone. I responded that I didn’t think it was even possible, but luckily Allister Jenks stepped in and helped. Here’s Sandy’s Nano Tip:
Hi Allison. This is Sandy Foster with a quick tip, thanks to Allister’s help. I sometimes forget to start a workout on my Apple Watch before beginning. That’s usually because I’m with friends and we get talking. Oh well. I had a difficult time finding out how to manually add a workout, but here’s how it’s done.
Open the Health app on the iPhone. Go to the bottom of the page and tap on the second icon from the left; it’s the Health Data icon.
On the new page that opens, you will see four large colored squares. Tap on the one that says Activity, which will take you to a new page.
Scroll down a little to see “This Week” and — under that — “Exercise Minutes” and “Workouts”. Tap on Workouts. This takes you to yet another page.
This new page is the one I’d been searching for. In the top right-hand corner is a red plus sign. Tap on that.
Now just tap on the Activity Type field to get a selection of different workouts in a scrolling section at the bottom of the page; select the appropriate one. Then tap on the Starts and Ends sections in turn to set the date and time of the workout.
At the top of the page, tap Add, and you’re all done!
Allison interrupting again. Sandy and I chatted after she submitted this awesome tip because I couldn’t find Workouts below This Week. For some reason mine were above This Week. Workouts are hard to notice because they’re an orange button that looks like all the other buttons. I’m sure you’re more clever than me and can find them though.
I asked her the benefit of adding workouts in this manner, and she explained that this will give you credit in the Apple Activity app for time exercised and even calories if you have a good way to estimate what you burned.
A little over a year ago I told you that if you want something to be different about podfeet.com or the podcast, you should go ahead and ask. I think this bears repeating, maybe once a year. It has come up just lately because a few people have made requests and I thought if I told you about their suggestions it might give you courage to ask. I want to emphasize that I will absolutely entertain all suggestions but I definitely don’t implement every request. Some I just don’t want to do, and some are too hard to do. But why not ask? Worst thing I can do is say no, right?