Posts

A Quick Review of Windows 11: Should You Upgrade?

If Windows 11 were a product with a slogan, it would be “same Windows, now 50% less ugly.” With Windows 11 finally, upon us, the question on the lips of many is: is it worth the upgrade? Instead of starting from scratch, Microsoft took Windows 10 (which was already quite good), pulled some levers, put some finesse on the UI and modernised a few parts of the 35-year-old operating system (which was starting to show its age).

How to Add Infinite Scrolling to a HTML Element With Vanilla JavaScript

There is a Javascript library for almost anything. But sometimes, it’s good to code your solutions to specific problems where the resulting code will be lighter, and you will feel more rewarded as a result. When it comes to infinite scrolling in Javascript, many examples, you will find online relate to scrolling the main window (which is a common thing). But what if you have an overflowing DIV that you want to add infinite scrolling on? The logic is the same.

How to Upgrade to Windows 11 if You Don’t Want to Wait for the Upgrade Prompt

Windows 11 is finally here, and like Windows 10, it will be a free upgrade for Windows 10 users. However, the rollout will be slow and staggered despite Windows 11 releasing on October 5, 2021. This means for many Windows 10 users. It could take months and upwards of mid-2022 before you get the upgrade popup (if your machine is compatible). If you are like me and live on the edge, you are most likely looking to upgrade now. The good news, you don’t have to wait for Microsoft to tell you that you can get Windows 11. There is a trick that currently allows you to upgrade without having to wait.

The Only Long-Term Casualties of the Pandemic Are Companies Who Push for Workers to Return to the Office

Some of you already know my stance on remote work vs the office. As the pandemic rages on, the world is trying to return to a sense of normality. Name a company that went out of business because its employees had to work remotely. Productivity of employees can be measured in output, not bums in seats in an office. As you’ll soon learn, remote work is no longer a Silicon Valley startup perk to attract talent. It’s now expected by many.

Quora's Slow Descent Into Nothingness

A few short years ago, Quora was the darling of the tech world. A place where you could ask questions and get answers from people at the top in their chosen field. CEO’s, leaders, heavy hitters. The fun part of Quora was how accessible skilled experts were, who would otherwise not be easy to reach. You could ask pilots questions about flying. You could ask police officers about their job. I mean, even astronauts were answering questions on Quora.

Is the Nintendo Switch OLED Worth It?

Despite having had my Switch since 2017, I am still in love with the console. After a busy life and kids made my Playstation 4 obsolete because it was constantly downloading some massive patch, the instant-on nature of the Nintendo Switch appealed to me. Sure, the Switch is a little rough around the edges, and the screen isn’t the prettiest thing to look at, but it still looks good and performs well.

How to Deploy a Site via SSH Using GitHub Actions

I love GitHub Actions. They are so simple and powerful, allowing you to have your code deployment and source code in one location. I manage and deploy all of my sites using SSH (because it’s more secure), and over the years, I’ve adopted numerous deployment strategies. I adopted a Git strategy not too long ago where my server would pull down changes from Git, but it’s a flawed approach. Here is an actual GitHub Actions build file I use for a project. It’s a mixture of Node.js and WordPress. If your needs are not as complicated, your file will resemble a fraction of this.

How to Parse Dates With Different Timezones in PHP (and convert them)

Recently I was tasked with processing some content from an API, the published dates and times were coming through with timezone values in the string. My dates looked like this: 2021-09-29T04:24:39Z If you parse these using strtotime like I was and importing them into WordPress, even if your server timezone is configured correctly, the timezone will be wrong. In my situation, the dates and times were showing all hours of the morning.

How to Get Authentication Working Using the Node WPApi Package

If you are working with WordPress version 5 and up, you might be using the REST API. I love the in-built REST API WordPress provides, especially for creating applications on top of WordPress. The Node WPApi package makes this a breeze, especially when it comes to authentication based actions. My first test with this package was creating a new post, and I got this error message: Sorry, you are not allowed to create posts as this user. I was confused at first because I entered the correct username and password for my WordPress installation. Well, as you will discover, WordPress won’t just allow you to perform authentication-based requests using your standard credentials.

How to Remove WordPress Menu Items (Including Those Created by Plugins)

WordPress comes with a lot of stuff out of the box. Throw in some plugins, and it gets even noisier. Next minute, your menu sidebar in admin looks like that drawer in the kitchen you shove everything into (known in Australia as a crap draw). Now, you’ll want to hide some menu items for particular roles or even users (whatever floats your boat). The first hurdle can be knowing what each item is registered as (the slug matters). The core menu items like plugins and tools are easy enough, but custom menu items like “Custom Fields” and “Elite Video Player” — you need to know the slugs these were registered using.