Category Archives: How To

How to remove files from ZIP Archives in macOS and Linux

When ZIP up directories, particularly on macOS, some files may find their way into our ZIP archives that were never meant to be there. I’m thinking of those pesky .DS_Store and __MACOSX files, maybe even .htaccess files. For *nix based systems, * really means “everything”.

The ZIP command line tool let us remove such unwanted files from an existing archive. Here’s how:

The -d switch tells ZIP to hunt for and delete the unwanted files. Files whose names contain spaces can be defined in “regular quotes”, and the * asterisk can be used as usual.

For example, to remove all DS_Store files and __MACOSX files, we can use this:

To verify that such idiosyncrasies have indeed been removed from a ZIP archive before we release it into the wide, we can check with the UNZIP utility:

This will simply list the contents of your-archive.zip without actually extracting it.

How to add files to an existing ZIP Archive on macOS and Linux

Sometimes it’s easy to delete a ZIP file and create a new one – say you’ve forgotten to include a file. Just drag it into the folder to be ZIPped up and start again.

However, the clever little ZIP command line tool has a built-in ability to simply add a file to an existing archive without us having to do any manual grunt work. That can come in handy when we no longer have access to existing unZIPped content.

Here’s how it works:

We can even add entire directories this way too, like so:

This will recursively add all files (indulging hidden and annoying ones) to our file.

Note that ZIP accomplishes this by temporarily extracting all files before creating a new archive for is (while deleting our original file). So in essence, the tools is doing what we’d do manually, just more conveniently and in the background without bothering us.

How to make turn URLs into clickable links in the_content()

The P2 theme has a nice feature built-in: the ability to turn URLs into clickable links on the fly. It does this by using a WordPress built-in function called make_clickable().

Here’s how we can use this function to make this feature available to any theme.

The above code, once inserted into your child theme’s functions.php file, will take the_content(), pass it to the make_clickable() function, and then return it before it’s printed on the screen.

The advantage of using it this way is that no content in the database is modified, and it’s easy to remove this feature when it’s not needed anymore. Feel free to add conditions depending on categories or other factors (you could check if the string “http” is present in the_content(), or only do this with .com endings, etc).

Learn more about this function here: https://codex.wordpress.org/Function_Reference/make_clickable

Creating a Podcast Feed with WordPress and PowerPress – Part 1

In this episode I’ll show you how to add podcasting capabilities to your WordPress website, using the Blubrry PowerPress plugin. I’ll explain the concepts and inner workings of a Podcast Feed, how it can be read by podcast directors and readers alike, and talk you through the installation of the plugin.

For this example, I will setup Category Podcasting on my website https://supersurvivor.tv, which will allow me to host more than one Podcast Feed from the site.

Catch this episode on my WP Guru Podcast:

Mozilla removed RSS Feed Reader Support in Firefox 64. Now what?

I only ever use Mozilla’s Firefox browser as an additional tool every once in a while. But when I do use it, I rely on features to work as they always have for me. Sometimes though, features that I rely on for testing are removed without advance notice (or perhaps I’m just not reading the right support forums). 

Which is why I was extremely sad to find out the hard way that RSS Feed Support was removed in Firefox 64, to which my browser upgraded itself today. Only the venerable Martin Brinkmann revealed this as far back as June, even though I only just found out about it today.

Rats, I thought. How am I going to test my Podcast Feeds? They’re all RSS based.

Turns out there are two solutions, one short term and one long term. In fact, there are probably a few others too, but sticking strictly with Firefox for now, here’s what can be done to display an RSS Feed in Firefox without additional tools.

Continue reading Mozilla removed RSS Feed Reader Support in Firefox 64. Now what?

How to submit your Podcast Feed to Spotify

In this episode I’ll show you how to add your Podcast Feed to Spotify. Until very recently, this was only possible if you were hosting your podcast with a specialist “aggregator service” (also known as podcast hosts), but Spotify have now enabled submissions from the likes of you and me as well. Here’s how to do it.

Catch this episode on my WP Guru Podcast:

How to find the URL to your YouTube Playlists

In this episode I’ll show you how to find the URL to your own YouTube Playlists in Creator Studio Classic. At the time of recording, Playlists cannot be accessed or shared from YouTube Studio Beta on a desktop browser. I will also show you how to share a playlist with the YouTube Studio iOS App, in which this feature is implemented.

Catch this episode on my WP Guru Podcast:

How to see you Amazon Prime Watch History (2018)

I really enjoy the Watch History feature in YouTube. It allows me to share links to videos I’ve watched recently, without having to remember where they are. So I thought I’d hunt around for a similar feature on Amazon Prime.

Eventually I found it, but it was so hidden that I probably won’t remember where it was – unless I write it down somewhere. And that place shall be here 🙂

Here’s how to find what you’ve recently watched on your Amazon Prime Video account (as of December 2018).

Continue reading How to see you Amazon Prime Watch History (2018)

How to login to the Google Play Podcast Portal

Google have done a fantastic job at hiding the option for us to submit new podcast feeds on Google Play. It’s easy to login and listen to music and podcasts, and seemingly impossible to login to the section in which to submit either.

I usually get there somehow by looking at my history, but I can imagine that’ll be lost at one point – so I did a bit of URL testing and tweaking and found out. Here’s how to find that mysteriously hidden URL.

Continue reading How to login to the Google Play Podcast Portal

How to fix the greyed out option for Scheduled Videos on YouTube

For several times I’ve experienced an issue with the YouTube Creator Studio Classic, in which I can’t seem to schedule new videos. The error manifests after hitting upload, with all appearance options available except for Scheduled (so Public, Unlisted and Private are all available, but Scheduled is greyed out).

So what’s going on here? I already know that once a video is made Public, it cannot be scheduled anymore for obvious reasons. But both Private and Unscheduled videos, if they’ve never been Public should still be schedulable, right? If that is a word…

Turns out there’s an easy fix to this glitch. I’ve discovered it by accident so I thought I’d share how to rectify this:

  1. choose Private from the menu
  2. hit Save Changes
  3. examine the previous menu
  4. the Scheduled option is now available 🙂

That was easy!

Here’s hoping the issue will have been eliminated by the time YouTube Studio Beta goes live in 2019. Until then, we can use the above workaround.