CategoryProgramming

My first PHP package: the Discord Table Builder

Something has been bothering me for a long time. I’ve got a ton of good, kind of modular PHP code, and I’ve failed to make time to publish any of it for a long time. But today, I published my first PHP package on Packagist. 😊

Discord Table Builder

For WhatPulse, we wanted to publish the weekly leaderboard on our Discord server for some community rivalry. But, the Discord API doesn’t have built-in support for tables or any easy way to format tabular data. I wanted something like this:

Discord table builder in action

After searching for an existing solution and coming up empty, … Read more

Using OpenAI’s [free] Content Moderation API

By now, everyone knows about ChatGPT, GPT itself, and OpenAI. However, OpenAI is more than GPT: you can use their API to do image generation, speech to text, and text moderation assessments. This post is about their text moderation API, as I’ve recently discovered it’s free.

The idea is to use the moderation API to decide whether the rest of OpenAI’s models would accept the input text, but it can be used on its own as well. It might change in the future, but moderation API calls are not metered against your bill. 

Why would you want to … Read more

Azure DevOps – Post-job Installing Apple Certificate failing

For backwards compatibility purposes, I like to keep my continuous integration and deployment workers on the lowest version available. For macOS, this was 10.15 up until recently when Microsoft (rightfully) retired it and made macOS 11 the lowest version available.

Here’s the reason for this post: there’s a change in the exit code behavior of the security command, making any pipeline with multiple certificates fail.

It took me a while to figure out why and there wasn’t an existing post documenting this error. So, here we go. 😉

App & Installer Certificates

I mostly build desktop apps, which have … Read more

Using Azure DevOps Pipelines with Qt

This post goes into building an Azure DevOps Pipeline, which builds an Qt application. I recently moved to Azure, and found this combination not documented very well. I stepped in a lot of pitfalls and want to spare you the same.

First, some backstory; I’ve created this application, called WhatPulse (personal computer & productivity stats), which is built in C++ and the Qt framework. I’ve been using GitLab to host the code, and have been using their CI/CD pipelines to do automated compiling and testing of WhatPulse. The workers (the machines that execute the pipeline) were VMs, running locally … Read more

© 2024 Lostdomain

Theme by Anders NorénUp ↑