How To Archives

The main subject of this site: how to get something done, further divided by tags.

How to re-open a closed Tab in Firefox

Hey I’ve been there more times than I can count: close one or several tabs, only to think, “dang – I needed to keep that one open. What was that URL again?” Looks like I’m not alone, because many browsers support a feature that lets us re-open an accidentally closed tab. I use Firefox, and … Read more

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 specify a resolution when connecting with NoMachine

I control most of my local computers around the office with NoMachine. It’s the only client that lets me start several GUI heavy apps from the command line without running into some type of issue (like OpenGL driver shenanigans). You can download it from NoMachine.com for free, and I absolutely love it. One thing that’s … 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