Posts

Showing posts from 2025

Sample claude-code prompts from their. npm package

Image
Anthropic released an npm package for claude-code  that acts as an LLM coding assistant. Anthropic  on their website  including sample LLM interactions. This blog article exist to make it easier to read the prompts and provides no analysis or value judgement. Claude-code Typescript source is available on the npmjs site. Their source provides some interesting examples of good prompt engineering. They show how you can create a detailed system prompt to achieve better results.  I've extracted some of the prompts here to make them easier to read.  I've wrapped some of the text to make it easier to read.  I have no idea if the extra new lines impact the results. So copiers be aware. Claude-code on npmjs https://www.npmjs.com/package/@anthropic-ai/claude-code?activeTab=code The npmjs links to the GitHub repository with the source are broken at this time (2025 02).  cli.mjs I found the following system prompts while scanning cli.mjs. systemPrompt : [ `Your ta...

Spinning up an Azure SQL always-free database

Image
I wanted to do a quick prototype with a friend and we wanted a common database so we looked for a developer-grade free cloud product that we could both reach from our developer machines Azure has a free tier or promotional program that makes it easy to learn about Azure or create prototypes and demos at a low cost. There are two levels of free.   Free for the first 12 months you have your account. Always free I've had my Azure account for a few years so I only have access to the  always free  tier.  This page lists all the always free services. Azure has two free-tier options: Cosmos DB  and Azure SQL Database .  We decided to go with the Azure SQL database because it has SQL in the name instead of using Cosmos DB and its SQL persona. Always Free Azure Databases Microsoft offers an "Always" free tier for two of their databases.  They are free below a certain level of consumption.   Cosmos DB Here are a few links that describe the ...

Protect your optical sanity with the focal length lenses in a computer work environment

Image
Protect your eyes. Stop rolling your head up and down. Get glasses fit for your work environment. Even if you don't wear glasses when you are young, you will probably be in glasses as you get older. It starts with single-vision readers and moves onto multi-focal (distance) lenses. The standard prescriptions for multifocal, bifocals or progressives, optimized distance, and reading with narrow FOV support for the midrange. Office and computer work is all about the midrange so we want a different prescription mix when we spend a lot of time on a computer or dashboard type environment. Single-vision mid-distance glasses are relatively inexpensive. In my case, I have a couple. One in my travel bag and one on my desk. Single vision glasses are limited though in that they are only good at one range, in my case monitor distance. Opticians can provide a multifocal prescription that optimizes monitor use and reading instead of distance and reading. I've got a pair of 45D bifo...

Exercising the DeskPi PicoMate - Pico 2040 kit

Image
The PicoMate is a well-thought-out experimenter's kit that provides 11 devices that can be attached and used by a Raspberry Pico 2040. It is a breadboard / clip-apart type of configuration.  The sensors and outputs come attached to the Pico as part of a snap-apart experimenter board. You can use the board as-is or break off the sensors and emitters and use them connected via JST cables.  They normally cost $40-$60.  I found mine for $15 on closeout at Microcenter. I should have bought more. This rest of this page is more of a Reference and less of User Guide The PicoMate The PicoMate includes these devices and features. All modules are pre-wired, no soldering and wiring are required and out-of-box 12 detachable and easy-to-use modules: Push Button WS2812 RGB LED Rotary Encoder Buzzer Digital Microphone (ZTS6531S) Digital PIR Sensor (AS312) 6-Axis IMU Sensor (LSM6DS3TR-C) Digital Optical Sensor (LTR-381RGB-01) 3-Axis Magnetometer (MMC5603NJ) Temperature & Humidity Sens...