Latest Articles

Generating Licence Keys with TypeScript

I’m always looking for fun little coding challenges that are not full projects, and I thought I would do a fun little licence key generator using Typescript. Step 1: Setting Up the Project First, create a new directory for your project and navigate into it using your terminal. Then, initialise a new TypeScript project by running the following command: npm init -y npm install --save-dev typescript Step 2: Configuring TypeScript

Why AI Won't Make Devs Obsolete: Navigating the Future of Code, Creativity, and Maybe a Leather Jacket

Let’s talk about the elephant in the room—or, should I say, the AI in the code editor. Recently, NVIDIA’s big cheese, Jensen Huang, made waves with his take on the future of coding at the World Government Summit in Dubai. His hot take? In the face of AI’s rise, maybe kids shouldn’t learn to code. Instead, they should focus on fields where humans still have the upper hand, like biology or even farming.

Implementing a Logout Feature in WordPress Menus

WordPress, a flexible content management system, allows various customisations to enhance user experience and streamline site management. One common requirement is to provide users with an easy and intuitive way to log out. This guide explores a best practice approach to adding a logout link directly within a WordPress menu, utilizing hooks and filters for a clean and efficient implementation. Opting for a menu item logout link over a separate logout page or relying on plugins offers several advantages:

A Review of Gemini Advanced (powered by Gemini Ultra 1.0)

The wait is finally over. Google has debuted Gemini Ultra 1.0, its GPT-4 competing model powering Gemini (formerly Bard), and it’s time to dig in and see if it lives up to the promise of being on the same level as GPT-4 or falls short. I have been anticipating Gemini Ultra since it was announced in December 2023. I’ve grown frustrated with the lack of stability and constant issues with GPT-4. I use ChatGPT and the GPT-4 API. I also use Microsoft Copilot Pro (my AI subscriptions are starting to add up now).

Unveiling the Power of JavaScript Proxies: Objects, Arrays, and Beyond

In the vast, evolving landscape of JavaScript, there’s a feature that stands out for its versatility and power yet remains underappreciated by many developers: JavaScript proxies. Like the chameleons of the coding world, proxies offer the ability to intercept and customize fundamental operations on objects and arrays. Today, we’re diving deep into how proxies can transform your approach to JavaScript programming, with practical examples that illuminate their potential. What Are JavaScript Proxies? Introduced in ECMAScript 2015 (ES6), proxies are a metaprogramming feature allowing developers to create a proxy for another object. This proxy can intercept and redefine fundamental operations such as property lookup, assignment, and function invocation. Imagine having a personal assistant who can filter your calls, handle requests on your behalf, and notify you only when necessary; that’s what proxies do for your objects and arrays in JavaScript.

Setting Up a Linux Server with Ubuntu, Nginx, PHP and MySQL

In this guide, we’ll set up a new Linux server running Ubuntu, configured with Nginx, PHP, and MySQL. This stack often called the LEMP stack (Linux, Nginx, MySQL, PHP), is a popular choice for deploying dynamic websites and applications. Initial Server Setup 1. Access Your Server First, access your server via SSH. Replace your_server_ip with your server’s IP address. ssh root@your\_server\_ip 2. Create a New User For security reasons, it’s best not to use the root account for all tasks. Create a new user:

Homemade Koh Cleaner

Like many, my wife and I fell for the Koh Cleaner advertisements on Facebook. While their surface cleaner works, you’ve probably heard (or maybe not) that Koh is mostly water. In fact, the active ingredient, potassium hydroxide (KOH), comprises about 0.5% of the total solution, with the rest being purified (distilled) water. Below is a safe and accurate way to make a roughly 0.5% KOH solution at home for a fraction of the cost, what’s often referred to as a homemade Koh cleaner.

What are Neural DSP Up To at NAMM 2024?

This year Neural DSP did something strange at NAMM 2024. Instead of a booth where they have things to show like they did in 2023 when they demoed Cortex Control, in 2024 Neural DSP left “SOON” instead. Instead of the usual booth setup, they’ve left a cryptic message: “SOON” in big, bold letters. This has sparked a flurry of speculation and rumours within the community. Could this be a teaser for a new product launch? Did they get annoyed? Or perhaps an indication of a significant update to existing offerings?

Dealing with a mosquito problem: the Bunnings way

My family and I live in a rural area that gets warm and wet when it rains. And because we have a lot of plants, grass and vegetation, it’s a free-for-all with mozzies. During the wet season of 2022, we had a serious mozzie infestation. We didn’t think to look for a spray product then, opting for singular mozzie sprays, patches and mosquito coils instead. And after a few wet days recently, it happened again. We’ve added to our garden since, and the mosquitoes have been even worse recently.

Logging Like a Lumberjack: Crafting Custom Loggers in Aurelia 2

Once upon a console, in the deep, dark woods of an Aurelia 2 application, there was a developer who wanted to chop down the forest of confusion and carve out their own path with a custom logger. If you’re like this brave code-warrior, ready to leave the beaten track of default logging behind, then grab your virtual axe because we’re about to get crafty with some log-making magic! First things first, let’s set up camp. Imagine your app as a cosy log cabin in the wilderness of the World Wide Web. You want to make sure that every creak of the floorboards (or, in this case, every line of code that executes) is heard loud and clear. But not just any old echo through the forest will do – you want your logging to be like the call of a majestic moose: distinctive, purposeful, and impossible to ignore.