RSSAmplifier

Blog

Dave Mateer's Blog

In depth articles on software production

davemateer.comRSS feed ↗21 posts

Latest posts

Nextjs

This article is a culmination of learning on a 6 week ‘bet’ of mine where I wanted to push foward with learning more on Next.js I’m envisaging running SaaS products using this tech The output in a project called https://github.com/djhmateer/minimal-nextjs Here is the sample app running on my ‘prod’ server internally. App Router Patterns (this is a tricky area and no real correct ways) React Hook…

S3 View and Copy

I’ve used Cyberduck for years as an S3 viewer for files in Digital Ocean Spaces. The main problem has been selecting a large number of files and downloading them. For choices in s3 storage see this article S3 Browser https://s3browser.com/ So I looked at alternatives, and found that important features such as Download To are not available in the free version. So quickly moved onto: rclone…

S3 Storage - Non US Based

I’ve been using Digital Ocean Spaces but need S3 storage providers based in Europe with no US ownership: Hetzner (Germany) Object Storage announced in Dec 2024. 5.99 Euro/month - regardless of how many buckets you have 1TB-hour of included storage 1.5GB traffic per hour (1TB per month) Ingress is free Will send me a recovery key for 2FA in the post if I lose mine. Have to use my authenticator on…

VSCode TypeScript tsserver Prettier and ESlint

A look into how TypeScript validation works in VSCode/Cursor Language Server - tsc Code Formatter - Prettier Linter - ESLint Code repo https://github.com/djhmateer/ts-testing Language Server VSCode / Cursor integrates with TypeScript via the Language Server Protocol using a Node.js based language server called tsserver. More Detail on MS Github Above tsserver giving an error that the constant…

Web Page Archiving

How to Archive Single URLs: A Guide Need to archive webpages but are unsure how to go about it? This guide will walk you through my favourite tools and techniques to ensure your links are archived in the best way possible. In This Article Why Archive? – The importance of preserving webpages. General Archival Tools – The most reliable solutions. Platform-Specific Archival Tools – What works best…

Advent of code

https://adventofcode.com/ For the joy of finding things out, I thought I’d try AoC Other challenges like Project Euler are here JavaScript / TypeScript I’ve never really tried out the JS/TS world, so this is an opportunity. Install notes on React helped on my laptop. # https://github.com/nvm-sh/nvm curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash # 0.40.1 on 4th Nov…

Vercel

I’m exploring a new stack React / Next.js Vercel Supabase So I can work on this professionaly for a client put my company website https://hmsoftware.co.uk/ onto a TailwindCSS template which uses Next.js create marketing emails using https://react.email/ Hosting on Vercel First impressions as a ‘hobbyist’ level is that the UI is great and just works when I connected my GH account. Turn off…

Cors on digitalocean

replayweb.page is very useful for viewing wacz files. You can pass in an external file URL to read. That file server needs to trust the website to load it (cors). On digitalocean spaces you need to use a command line tool to set the correct permissions. replayweb.page test do s3cmd docs replay.web docs sudo apt-get install s3cmd s3cmd --configure # key # secret # US as default #…

Proxmox 8

These are my notes for building a new Proxmox 8 server. Proxmox 8 Server Build (PVE2) I’ve got new hardware and want to bring this server up at the same as as the original so need new IP addresses (which will become static) Use balena etcher to create a USB bootable disk Boot disks RAID1 - Mirror RAID1 (Mirror) on m.2 drives https://www.youtube.com/watch?v=lhRPhBDysVI Going to separate out boot…

Certbot auto deploy

Goal: to be able to deploy a VM running certbot many times via an Azure CLI bash script, and have the SSH cert stored somewhere. We are rate limited to only 5 duplicate certificates per week by LetsEncrypt. Deploy certs from dev and setup certbot on live I’ve got a certbot set of certs locally on my dev machine which have been issued for a few years, so lets deploy those. To get certbot running…

Rails file upload

Uploading files on any web framework can be hard. Especially if there are: multiple files, large files, network interruptions, cancellations, resumes, and the want to show nice progress bars. So lets guide the user into the pit of success. Strategy Only do file uploads after everything else is saved Allow the user a backup method of getting files to you eg https://wetransfer.com/ Allow the user an…

Sql server restore no files ready to rollforward

I’m trying to restore an MSSQL database using .bak file (800GB) .trn transaction log files And getting: Microsoft.Data.SqlClient.SqlError: The log or differential backup cannot be restored because no files are ready to rollforward. (Microsoft.SqlServer.Smo) I’m trying to figure out the timings of what has happened which could have caused this as it has worked before. I can restore all of Sunday…

Captcha

Bots have found 3 of my low traffic sites and are continually posting to pages including https://osr4rightstools.org/account/register I didn’t mind until my email transport provider Postmark blocked me due to spam compaints. The requests are all queued now as as shown above Image above shows a new user registering at 01:08:43 Headless chrome from 92.205.163.226 which according to…

LLM Open Source Image Analysis - LLaVA

Previously I’ve looked at running an LLM locally on my CPU with TextGenerationWebUI Also I’ve looked at ChatGPT-4 vision for my use case of: give a traumatic rating of 1 to 5 (so human rights investigators are warned of graphic images) describe the image in 5 words describe the image in 1 sentence in non emotional language This is an exploration into whether open source models can achieve a…

Scratch games

Kids love games, and Scratch is a good platform to play with. Lets explore some actual games which allow us to find out about Scratch. Previous post on Scratch from 6 months ago Cat Number Guess Just thinking one up. between 1 and 20 there is a timer beat the clock. the 10 number gets larger each time (so dopamine ) there is a leaderboard First try took an hour or so variables maybe do next:…

ChatGPT4 Vision

Update 15th Jan 2024 - this is a great API and describes images very well for my use case. I’m comparing it with open source - LLaVA and Mixtral 7B. Describe an Image I’m working in human rights investigations. To mitigate trauma for myself and other investigators, I want the AI to descibe in non emotional terms what is in the image. could you give a 1 sentence general description of this image…

Creating a Wordpress Website with ChatGPT4 and TailwindCSS

This post is a work in progress as I continue building theskatefarmcic.co.uk See previous post on setting up Wordpress as a vanilla install using on my Proxmox Home Lab with nginx reverse proxy and certbot for SSL. Pages I want a single page website, so in Wordpress lets set that up: Pages, Create new Page, Home Page Settings, Reading, static page, Home Page. Wordpress New Theme - disable…

Wordpress - too many redirects using nginx reverse proxy

I’m building a website for a friend for his new Skate Park theskatefarmcic.co.uk It is a Wordpress site (of which I’ve installed many times), but this post explains an interesting redirect issue. DNS handled by DNSimple with ALIAS to mateer.hopto.org which is a dynamic DNS pointing to an nginx reverse proxy on the Proxmox server. Certbot handling SSL Ubuntu 22.04 (LTS) VM Wordpress Install On…

ChatGPT-4 Create a Wordpress Website - Pressure Washer Rental

Website running Wordpress, all content generated by AI and all images. Took 1 day. Includes hambuger menu, and fully responsive with Tailwind CSS. Modal popups for larger images. Intro In my series of exploration of LLM’s / GPT, lets see if it can help me create a Wordpress website for a new business. I’ve done it very successfully with raw HTML and Tailwind CSS . Let’s assume you’ve got a new…

ChatGPT-4 Create a Website

In this article I’ll show how I used ChatGPT4 to: Get ideas for a business Create a responsive HTML website using Tailwind CSS (screenshot above) Generate very good content Generate Imaages Do in less than a day Intro In my series of exploration of LLM’s / GPT, lets see if it can help me create a website for a new business. This is really part 1, 2 and 3 of: Coding / code completion /…

Certbot on Nginx with Reverse Proxy

I use Let’s Encrypt for SSL certs for all my sites. I’ve been manually copying them in, getting them issued from DNSimple who I use for DNS. But I need to do this every 3 months, so lets automate it ChatGPT-4 on nginx webserver how can I get an automated bash script running to check SSL certificate using Lets Encrypt So it recommended using https://certbot.eff.org/ Reverse Proxy sudo snap install…