How To Archives

How to embed your latest YouTube Video with responsive CSS

I’ve recently had to update the code that’s responsible for pulling in my latest YouTube upload on the front page. I had previously used a solution that uses the channel name rather than the channel ID. Apparently that API has stopped working and I had to find a workaround.

In addition to making it work again, I also wanted my embed to be responsive and look handsome on all screen sizes. The trouble is that regular iFrame embeds use a static size for the video (like 600×360 or 800×480), but being the future-proof thinking kind of guy that I am, I wondered if there was a way to make this dynamic. The “height=auto” trick didn’t work for me, but thankfully I came across a great piece of CSS that adds this feature.

Let me show you both parts to solving this puzzle.

Read more

How to recover from a 6-beep BIOS error on a HP Z600 / Z800 Workstation

Funny story: I was setting browsing through the Z600 BIOS today trying to optimise an issue I was investigating, when I came across an interesting option I thought I’d fiddle with: the PCI-e compute option. You can find it under Advanced PCI options I believe. I thought perhaps it’ll turn my two GPUs on the … Read more

How to get the URL to your next Live Stream on YouTube (stream now)

YouTube’s Studio “forever Beta” interface is in a continuous state of disarray. At the time of writing, and since 2018, we’re seeing a partially upgraded interface with plenty of deep links into the older YouTube Classic experience. 2020 is almost half over, and YouTube have upgraded half of the Live Streaming experience (Events). However, the Stream Now option is still Classic, and as such has a few issues that won’t be fixed (until we see the rest of YouTube’s upgrade… at some point in the indeterminate future).

The issue that I sometimes have is to find the URL to my new Stream Now live stream. With events it’s not a problem, but Stream Live Classic will often show us the generic live URL to our channel (say https://youtube.com/TheWPguru/live) rather than a direct URL with an ID. It entirely depends on the channel. On some you’ll see this (generic):

where you’d really like to see this (direct ID):

The latter is preferred because you can start chatting with people before you go live, and you can give out this link before the event begins. Although the generic live URL will work, the event will not be accessible when you start streaming the next time.

Thankfully, there is a way to extract the correct direct URL from the new YouTube Studio interface, but it’s not entirely obvious. Here’s how to grab it:

Read more

SVN Command Line Basics

I keep forgetting SubVersion basics from the command line, and thought this quick little cheat sheet might come in handy. I’ll cover the basics: checking out updating your local copy checking current file status committing a change adding a file removing a file Checkout Out To make an initial copy of an online repository, we … Read more

How to redirect a URL in NGINX

I’m a fan of easy to remember URLs, rather than long cryptic ones. For things I give our verbally or in chat I sometimes setup redirects using one of my domains and NGINX directives. So when I’d like to point users to my 3D Shenanigans channel, I can tell them to go to https://3ds.wpguru.tv rather … Read more

How to setup Loop Recording on the GoPro HERO 8

Loop Recording has been fairly intuitive to setup up until the GoPro HERO 7. The option is still available on the HERO 8, but it wasn’t obvious to me how to enable it. Now that I’ve found out how to do it, I thought I’d share it with you.

The trick is that any of the new settings presets (i.e. Standard, Cinematic and Activity) cannot enable Loop Recording. You have to create a fourth (custom) preset with which you can activate it.

Read more