Moving to Hugo

01/10/2024

Hugo

Why I’m Moving Away from WordPress: Embracing Hugo for the Future

After years of building and managing websites with WordPress, I’ve finally made the decision to switch gears. From now on, all my future websites that are simple will be built with Hugo, and here’s why.

Why Hugo?

  1. Lightning-Fast Speeds: One of the biggest benefits of Hugo is its incredible speed. Unlike WordPress, which can sometimes feel sluggish due to its reliance on PHP and database queries, Hugo generates static files that load almost instantly. This translates to a seamless experience for visitors and a boost in SEO performance.

    Continue reading


Coming Soon

30/09/2024

I am pleased to announce the release of my new website made with Hugo. Coming soon, I will be making Python and JavaScript Discord bots and sharing the source code with you all!

Continue reading


Back on Linux - New software coming soon - App source code

26/06/2024

Hello all, as the title suggests, I am now back on Linux.

I am working on an app that will show a webpage and have push notifications. This app will be created for MHmatters - a social network I run for mental health. I will be making it in Flutter and will release a boilerplate template for you to use for your own websites. The first version I will be releasing is for Android.

Continue reading


Nearly complete MathsGame

25/05/2023

Spent a lot more time working on this project, and it’s nearly complete! Once it’s finished, I will add a new post with download links. The aim now is to finalize this for computers and then start work on mobile apps. :)

Progress Screenshots

Screenshot 1 Screenshot 2 Screenshot 3 Screenshot 4 Screenshot 5 Screenshot 6 Screenshot 7 Screenshot 8 Screenshot 9 Screenshot 10

Continue reading


Helping with maths

23/05/2023

Maths Project Screenshot

So here is the story in short: I have a young family member who struggles with maths, so I wanted to try and make this as fun as possible. Below are the C++ project files. At the moment, it’s simple maths; however, I will be adding settings that will allow you, the parent, to set the difficulty. I will also be implementing an automatic difficulty setting that is linked to the score. The plan is for the difficulty to increase once the score reaches 20.

Continue reading


Expanding on Want Cake with Strings

27/03/2023 | #ExampleTag #Tutorial

So here is what I wanted for the “Want Cake” program I made. I really wanted it to output text as well, so I started working with strings to achieve this. Now the program asks, “What drink do you want?”

#include <iostream>
#include <string>

using namespace std;

int main() {
    string cake;
    cout << "How many pieces of cake do you want? ";
    getline(cin, cake);
    cout << "You now have " << cake << " Pieces of Cake.\n";
    cout << "What drink do you want? ";
    getline(cin, cake);
    cout << "You now have a " << cake << " as well.\n";
    return 0;
}

Continue reading


WTH is Jibberish

27/03/2023

So what started out as a little idea became a main feature of the website https://mhmatters.life The concept is simple to create a simple encryption system that adds a character so for example "A" becomes "B" but I may have taken it a little too far, for example, the website has it. The discord bot can decode it, the staff have their own tool both online and Python desktop software. Below are all the ways it can be used:

Continue reading


ChatGPT bot for Discord in Python

12/03/2023

To get started, you will need three things: a Discord server, a Discord Developer application, and the ChatGPT API.

Let’s get started. You are going to need two Python files. This is not essential, as you can merge your tokens into one script, but for the sake of this tutorial, we will separate the config file. The scripts should be called main.py and config.py.

Here is the code for both files:

# config.py

TOKEN = "INSERT YOUR DISCORD TOKEN"
API_KEY = "INSERT YOUR CHATGPT API"

# main.py

import asyncio
import discord
from discord.ext import commands
import openai

from config import TOKEN, API_KEY

openai.api_key = API_KEY

bot = commands.Bot(command_prefix="?")

@bot.event
async def on_ready():
    print("Bot has connected")

@bot.event
async def on_message(message):
    if message.content.startswith("?"):
        print('I read the message')
        print(f"{message.author} asked {message.content[1:]}")

        async with message.channel.typing():
            await asyncio.sleep(0.5)

        question = message.content[1:]

        response = openai.Completion.create(
            engine="text-davinci-003",
            prompt=f"{question}\n",
            temperature=0.7,
            max_tokens=1024,
            top_p=1,
            frequency_penalty=0,
            presence_penalty=0
        )

        await message.channel.send(response.choices[0].text)
        print(f"I replied with {response.choices[0].text}")

bot.run(TOKEN)

Continue reading