Cloudflare: Deploying a blog in a subdirectory of an existing site

Let’s say you have an existing website or web application where you’d like to add a blog or documentation site like VuePress or Docusaurus. While keeping it separate from the existing site’s codebase, but still using the same domain name.

When it comes to search engine optimization (SEO), there’s evidence that sub domains don’t benefit from the backlinks your main domain has, thus ranking sub domains lower.

Background

In this case, I have a typing test app called TypeTest.io and I wanted to add a blog to optimize for SEO. I did not want to add it to the NuxtJS Read more

VMware Fusion: Direct USB Keyboard & Mouse

I’ve been using a Mac for forever. It’s just the right level of ultimate control over the system, with a graphical user interface that just works ™. 

But, I develop cross-platform apps (i.e., WhatPulse, MuteDeck) which need to work on both macOS and Windows. For that, I run Windows inside a VM on VMware Fusion.

This is a quick article on how to directly connect a keyboard and/or mouse to that VM, instead of using the input device sharing that’s built in.

The Need for a Keyboard & Mouse

WhatPulse is a computing activity tracker, which keeps … Read more

Learnings from a new manager

It’s been ~12 months since I started managing an engineering team, and I’ve learned so much from them. Here are 9 things I wished my previous managers did (or didn’t do).

No scheduled 1-on-1’s

Make it clear that you don’t have to wait until a recurring touchpoint to bring up issues. Always be available for chats; enabling them is your primary job. Also, translates to: don’t be so busy it deters people from reaching out. Having them think, “He’s probably not busy; I can give him a call,” is a good thing.

Goals

Please don’t ask them to translate company … Read more

Introducing AI Spend: AI API Usage Monitoring Made Easy

As an AI enthusiast who has built multiple AI products, I know the importance of tracking OpenAI API costs, identifying abuse instances and preventing runaway apps. While there are several tools available that enable you to see your API usage by entering the API key, I wanted an effortless and passive monitoring tool to keep track of my API usage.

Keeping this in mind, I developed AI Spend – an intelligent monitoring tool that synchronises your API usage per model in cost, tokens, and requests in an encrypted database. With this tool, you can effortlessly control the costs and … 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

Tunneling Plugwise Smile P1 Stats to Grafana

Hi! It’s been a while. I’m going to (re)start sharing solutions to problems that I’m building things for. Expect posts mostly around coding and IoT. Starting with this post; a quick tutorial on how to get power statistics from a Plugwise Smile P1 gateway to Grafana, using Telegraf.

I’ve got solar panels with Enphase inverters with central management, which has an API. Its been streaming power generation stats to Grafana using this solution, for a while. Recently, I added a Plugwise Smile P1 gateway to monitor the smart meter and I wanted to get its power stats into

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

© 2024 Lostdomain

Theme by Anders NorénUp ↑