Open post
Patterns Logo

Expressions, Patterns & Regex101 Make Writing Regular Expressions Easy and Fun

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.

Continue reading “Expressions, Patterns & Regex101 Make Writing Regular Expressions Easy and Fun”

Open post
some random regex

I Have Made Fire – I Coded in Perl with Regex!

ChaptersWe’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.

Continue reading “I Have Made Fire – I Coded in Perl with Regex!”

Open post
NosillaCast Logo

NC #655 Follow Up on Chapters, Reader View and Adding Workouts, Show Hidden Files, Mind Map iOS 11 Settings, Security Bits

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.

mp3 download

Continue reading “NC #655 Follow Up on Chapters, Reader View and Adding Workouts, Show Hidden Files, Mind Map iOS 11 Settings, Security Bits”

Open post
tiny tip logo

Tiny Tip – Show Hidden Files

HiddenThis 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:

defaults write com.apple.finder AppleShowAllFiles YES

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.

Open post
PBS logo

CCATP #511 – Bart Busschots on PBS 44 – ES6 Arguments & Objects

In this installment of Programming By Stealth, Bart Busschots teaches us new ways to deal with arguments and objects in JavaScript ES6. We learn how to set default argument values for functions in a way that is self-documenting. He explains how variadic (aka Rest) arguments allow you to shove all of the arguments of a function into an array. Then he walks us through how to use for … in loops to loop over objects. He reminds us of the difference between instance and static properties and explains how for … in loops work with both kinds of properties. I really enjoyed this episode and followed almost all of it on the first time through!

Detailed tutorial for the podcast is available at bartbusschots.ie/…

mp3 download

iOS Settings – I Mind Mapped Them All

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?”

Continue reading “iOS Settings – I Mind Mapped Them All”

Open post
NosillaCast Logo

NC #654 Phileas Club, Duolingo,Reader View, My Podcasting Gear, Starbucks App and Face ID, Just Ask Again

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.

mp3 download

Continue reading “NC #654 Phileas Club, Duolingo,Reader View, My Podcasting Gear, Starbucks App and Face ID, Just Ask Again”

Open post
tiny tip logo

Tiny Tip – How to Add a Workout to Apple Health from iPhone by Sandy Foster

SandyThis 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.

SandyScroll 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.

Just Ask…Again

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?

Continue reading “Just Ask…Again”

Open post
Chit Chat Across the Pond Lite logo

CCATP #510 – Dr. Maryanne Garry on Many Memory Questions

DrThis week our guest is Dr. Maryanne Garry, a professor from the University of Waikato in New Zealand. Dr. Garry is a scientific researcher into memory, memory distortions, false memories, the myth of repression and its overlap with the law. This is her third appearance on Chit Chat Across the Pond, and has pretty much ruined everything we think we knew about memory.

Questions I asked Dr. Garry:

  • Do you look for things to study that have a specific problem to be solved? Secondarily – how are these projects funded?
  • What is a cognitive psychologist, and what other kind is there?
  • Can you explain the difference between autobiographical and semantic memories?
  • Why do we have some things that are easy to remember and others (like names and dates) that are more difficult to remember
  • Some medical procedures include a drug to make you forget. How do we know these memories of a horrible experience aren’t still there, buried? And couldn’t these memories be harmful?
  • Much of your work is about proving that you can implant false memories. Because you can do that, do we actually know that real repressed memories don’t exist?
  • How is it some adults can recall traumatic childhood memories with such vivid detail?
  • You’ve recently received a significant grant. Can you tell us about the new research?
  • Your research was published in the Journal of Applied Research in Memory and Cognition about the concept of making America Great Again. This paper was cited in The Guardian. Can you tell us what you’ve learned?

Video of Dr. Garry’s talk “The End of Facts” at Claremont Graduate University. Thanks to Steve for capturing this.

mp3 download

Posts navigation

1 2 3 4 5 139 140 141
Scroll to top