Posts

New Claude Code Skills

New Claude Code Skills   Overall there are 3 skills: Lightsail, Docker and Powershell. You need to put these skills into the user-level C:\Users\ericw\.claude\skills\ directory. Remember that there be a folder with the skill name and inside it will be skill.md and an optional reference.md . ============================================== Lightsail Skill.Md: --- name: aws-lightsail-container-deploy description: Hard-won operational knowledge for deploying multi-container apps to AWS Lightsail Container Service — container naming rules, image versioning, the real create-container-service-deployment API shape, pod-style shared networking, the deployment state model, and log-based debugging. Use when running `aws lightsail` container-service commands, deploying or redeploying to Lightsail, editing a Lightsail containers.json/public-endpoint.json, or debugging a Lightsail container-service error. --- # AWS Lightsail Container Service Deploy Load this before writing any `aws lightsail` c...

JWT Gotchas

JWT Gotchas        JSON Web Tokens:   You cannot just set any password value to Jwt__SigningKey, since HS256 signing needs at least 256 bits. To create a valid JWT key, open a Powershell window up and at the prompt enter the following command which will create a random 48-byte key encoded as base64: [System.Convert]::ToBase64String([System.Security.Cryptography.RandomNumberGenerator]::GetBytes(48))    

The Red Queen

The Red Queen    It is amazing what one character from a writer has inspired.  The Red Queen from Lewis Carroll’s Through the Looking-Glass talks about the paradox of constant change (as seen in the discussions of the chess promotion from pawn to queen).    In business, "Red Queen marketing" is launching new products to replace past failed launches while the overall brand sales is static or minimal.    Matt Ridley in his book, The Red Queen: Sex and the Evolution of Human Nature, says, "One of the peculiar features of history is that time always erodes advantage. Every invention sooner or later leads to a counterinvention. Every success contains the seeds of its overthrow. Every hegemony comes to an end. Evolutionary history is no different…The faster you run, the more the world moves with you and the less progress you make. Life is a chess tournament in which if you win a game, you start the next game with the handicap of a missing pawn."   ...

EmDash (WordPress successor)

EmDash  (WordPress successor) Free. Built by CloudFlare to be WordPress successor.  Applies sandboxing to plugins. https://github.com/emdash-cms/emdash Uses Astro that is a JS web framework for content-driven websites.  https://astro.build/ Interesting that EmDash is so automated in its submission process: https://github.com/emdash-cms/emdash/pull/1312 They use Vite: https://vite.dev/ They built Vinext on top of Vite to replace Next.js.  Its main advantage is traffic-aware pre-rerendering via CloudFlare web page statistics.    https://blog.cloudflare.com/vinext/

AWS Lightsail Managed DB for MySql

 AWS Lightsail Managed Database  for MySql Limitations  Lightsail Managed DB only supports MySQL and PostgreSQL, not MS SQL Server. Steps 1) Create the Lightsail DB (I assume MySql) via: https://us-east-2.console.aws.amazon.com/lightsail/webapp/us-east-2/databases/   2) After creation, you will be told the endpoint and port number with public mode and data migration mode both disabled.  The public mode will need to temporarily be turned on so we can connect via our local box.  The keep the data migration mode off unless doing massive data sets. 3) Download the MySql Database Workbench (so we have a UI to connect) from: https://dev.mysql.com/downloads/workbench/   4) Make sure you use Powershell instead of Cmd since cmd.exe's console does not correctly forward raw keystrokes through Docker's TTY allocation for a prompt that suppresses echo (which is exactly what a password prompt does). PowerShell and Windows Terminal use the newer C...

MySql for .NET 10

MySql for .NET 10    The official Pomelo.EntityFrameworkCore.MySql provider does not natively support .NET 10 in its stable branch due to recent maintenance stagnation.  However, there is a Community Drop-in Fork by Microting. Its URL is at:  https://www.nuget.org/packages/Microting.EntityFrameworkCore.MySql/

AWS Lightsail

AWS Lightsail Main console: https://us-east-2.console.aws.amazon.com/lightsail/webapp/home/instances Docker containers: You purchase a Lightsail container service (serverless option) (that can hold up to 10 containers simultaneously). This is an additional and different purchase from the Lightsail server. Next Steps: You create the Docker containers on your box.   Then install AWS CLI (purpose is to push containers to the proper spot) using commands from AWS in your Powershell. Restart your Powershell (since only really loads things on startup) aws update   aws --version   (to check all happy. I saw aws-cli/2.36.31 Python/3.14.6 Windows/11 script-exe/AMD64 ) docker images   (to get REPOSITORY names and IMAGE names for all the docker images you want to push) download and install the AWS Lightsail EXE  from https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-install-software.html  aws configure ...