Translate

Monday, August 24, 2026

Generative AI recipes

Introduced idea am calling generative recipes which are easy to follow instructions to give AI for vibe coding. Is simpler to give one than explain further. Got Grok through SuperGrok access to graciously make me one for here! Quite grateful.

-----

**Generative Recipe: Local Station Weather Blend**

A small public-service experiment in getting weather data closer to the ground.

Most weather apps give you a single number. That number usually comes from a model that has already decided which stations matter and how to smooth them. You rarely see the stations themselves.

This generative recipe does the opposite. It finds the three nearest public weather observation stations to your location, pulls their latest readings, and blends them with a simple inverse-distance weighting. You get both the blended result and the individual station data so you can judge it yourself.

It uses only free, public U.S. National Weather Service data. No API key. No commercial weather provider in the middle.

### The Recipe

**Goal**  
Build a lightweight web page that:
- Asks for (or detects) your location
- Finds the three nearest NWS observation stations with recent data
- Fetches their latest observations
- Computes a distance-weighted blend of temperature, humidity, and wind
- Shows the blend plus the raw station readings for transparency

**Data source**  
National Weather Service API (`https://api.weather.gov`). Public domain. Requires only a descriptive User-Agent header.

**Core steps an AI coding assistant should follow**

1. Get the user’s coordinates (browser geolocation with a manual lat/lon fallback).
2. Call `/points/{lat},{lon}` to obtain the list of nearby observation stations.
3. Take the closest stations that have a recent temperature reading (ideally under two hours old).
4. For each station, fetch `/stations/{id}/observations/latest`.
5. Calculate inverse-distance weights: weight = 1 / distance^p (p = 1 or 2 works well).
6. Produce a blended temperature, humidity, and wind speed. Show wind direction from the nearest station or a simple vector average.
7. Display:
   - The blended values clearly
   - Each station’s name, distance, observation age, and raw values
   - A refresh button

**Constraints for a clean public version**
- Prefer a single HTML file or very small set of files so anyone can save and run it locally.
- No backend required.
- Clear unit toggles (°C/°F, m/s or mph).
- Graceful handling when fewer than three good stations are available.
- Always send a proper User-Agent string.

**Optional but useful**
- Side-by-side comparison with a model-based value (for example from Open-Meteo) so readers can see the difference.
- Simple confidence note based on station distance and observation age.

### Why this is worth publishing

It is deliberately modest. It does not claim to be more accurate than every commercial product. It simply makes the underlying public observations visible and lets the user see how a blend is constructed. That transparency is the point.

It also serves as a concrete example of a **generative recipe**: a short, reusable set of instructions written so that an AI coding tool (or a human following carefully) can produce a working result with minimal extra decision-making. The recipe itself is the artifact.

Anyone interested can take the recipe above, paste it into an AI coding assistant, and generate their own version. The resulting page can be saved and used offline or hosted anywhere.

This is a small proof of concept for making public data more directly usable, and for treating clear instructions as a shareable product in their own right.

Monday, August 17, 2026

My modular inverse calculation method

In 2017 figured out my own way to find a modular inverse. Is recursive and fast.


Friday, August 07, 2026

Leveraging few ideas

Have TONS of ideas which just keep coming. So I get puzzled by people who focus on just a few for all they're worth.

Now though with AI revolution we can ponder people who got quick advantage especially am personally interested in tech. As watch them now? Flopping all over the place.

Will shade for basic reason--why name those fading from social stature?

Am noting cases where really there was one tech thing that was used and now? They got nothing.

Me? Got so many ideas just give them away. And they just keep coming.

Sunday, August 02, 2026

Cooking with AI explains much

Can get very counter-intuitive results like rapid adoption of modern AI where I say: unlike with pc's and web? Most people learn AI as useful with help with cooking.

Know my cooking confidence has soared as can talk to AI where who else can guide me on say slow cooker baking a peach upside down cake? (Was delish.)

Is thinking outside box but getting cooking guidance actually helps people learn to prompt AI well. And gives them needed familiarity with most advanced technology on planet now.

Where conversational access to computing power? Finally comes home where we all live as yeah everybody eats.

Friday, July 24, 2026

Blogs return

Finally returned here as cannot move just yet despite my disappointment with Blogger. Yeah. But turns out? Is ok, for now while I architect another solution as AI can really help!

Here Kimi has done a great job with I think useful posts including one where AI extended from my genre schemas and I was blown away.

AI just give more options to add content value. And now? Blogs return I think to full force independent of platforms.