Sunday, November 16, 2025

Azure OpenAI API examples

Azure AI API is complicated :) But is works.

Azure OpenAI is "legacy" only for OpenAI API
Azure AI Foundry is "generic", that also includes OpenAI
Azure AI Services, used to be "Cognitive Services", is "native" Microsoft's non-LLM AI services

Azure AI Foundry Docs

openai/openai-node: Official JavaScript / TypeScript library for the OpenAI API @GitHub

JavaScript

baseURL: "https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/"

import { OpenAI } from "openai";

const endpoint = process.env.AZURE_OPENAI_ENDPOINT
const apiKey = process.env.AZURE_OPENAI_API_KEY
const baseURL = `${endpoint}/openai/v1/`  
const model = 'gpt-4.1' // model deployment name

const client = new OpenAI({
    baseURL,
    apiKey,
    maxRetries: 0, // default is 2; Configure the default for all requests
});

// == responses ===
const response1 = await client.responses.create({
  model,
  instructions: 'You are a helpful AI agent',
  input: 'how tall is triglav?',
});
console.log(response1.output_text);

// == streaming ===
const stream = await client.responses.create({
  model,
  input: 'Provide a brief history of the attention is all you need paper.',
  stream: true,
});
for await (const event of stream) {
  if (event.type === 'response.output_text.delta' && event.delta) {
    process.stdout.write(event.delta);
  }
}

// == chat ==
const response2 = await client.chat.completions.create({
    messages: [
      { role:"system", content: "You are a helpful assistant." },
      { role:"user", content: "I am going to Paris, what should I see?" }
    ],
    max_completion_tokens: 13107,
    temperature: 1,
    top_p: 1,
    frequency_penalty: 0,
    presence_penalty: 0,
    model,
});
if (response2?.error !== undefined && response2.status !== "200") {
    throw response2.error;
}
console.log(response2.choices[0].message.content);

// == retries, configure per-request:
const response3 = await client.chat.completions.create(
    { messages: [{ role: 'user', content: 'How can I get the name of the current day in Node.js?' }], model },
    { maxRetries: 5 }
);
if (response3?.error !== undefined && response3.status !== "200") {
    console.error(response3.status, response3.error);
} else {
    console.log(response3.choices[0].message.content);
}

// == tools, use MCP server

const response4 = await client.responses.create({
  model,
  tools: [
    {
      type: "mcp",
      server_label: "microsoft_learn",
      server_description: "Microsoft Learn MCP server for searching and fetching Microsoft documentation.",
      server_url: "https://learn.microsoft.com/api/mcp",
      require_approval: "never",
    },
  ],
  input: "Search for information about Azure Functions",
});
console.log(response4.output_text);


Saturday, November 15, 2025

Google Apps Script (language)



Apps Script is a cloud-based JavaScript platform powered by Google Drive that lets you integrate with and automate tasks across Google products.

At its simplest, it's like "Macros on steroids" for Google Sheets, Docs, Gmail, and more. But it's far more powerful than that.

Google Apps Script is a cloud-based scripting platform for light-weight application development. It allows you to create new functionalities and automate tasks across Google's services. The scripts are written in a version of JavaScript, and they run on Google's servers.






Google Gemini AI API

Gemini API  |  Google AI for Developers

Gemini API quickstart  |  Google AI for Developers

free or not free, that is the question :) With Google, not easy to find...

https://aistudio.google.com/

The Google Gemini AI API offers both a free and paid tier.

For developers and smaller projects, a free tier is available to get started.[1][2]

The free tier comes with limitations on the number of requests you can make per minute and per day. For instance, you can make between 5 and 15 requests per minute and up to 1,500 requests per day with the Gemini 1.5 Flash model.[1][2] There are also limits on the number of tokens that can be processed per minute, around 250,000

Additionally, using Google AI Studio is free of charge.[2] (1M tokens each session!)





Web: HTML DOM API: tables

HTMLTableElement - Web APIs | MDN

The HTMLTableElement interface provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document.

 Abandonware of the web: do you know that there is an HTML tables API? | Christian Heilmann

let table = [
  ['one','two','three'],
  ['four','five','six']
];
let b = document.body;
let t = document.createElement('table');
b.appendChild(t);
table.forEach((row,ri) => {
  let r = t.insertRow(ri);
  row.forEach((l,i) => {
    let c = r.insertCell(i);
    c.innerText = l;  
  })
});

// You can then access each table cell with an index (with t being a reference to the table):
console.log(t.rows[1].cells[1]);
// => <td>five</td>

// You can also delete and create cells and rows, if you want to add a row to the end of the table with a cell, all you need to do is:
t.insertRow(-1);
t.rows[2].insertCell(0);
t.rows[2].cells[0].innerText = 'foo';

// here is "default alternative"... not much different... and simpler than React :)
table.forEach((row) => {
  let r = document.createElement('tr');
  t.appendChild(r);
  row.forEach((l) => {
    let c = document.createElement('td');
    c.innerText = l;
    r.appendChild(c);
  })
});


Friday, November 14, 2025

Kanban board app in 10 JS frameworks

what could be considered "industry standard" solution (React with Next.js)
is at least 5x larger and 10x slower that some other simpler frameworks!

I Built the Same App 10 Times: Evaluating Frameworks for Mobile Performance | Loren Stewart

lorenseanstewart/kanban-comparison: Comparing frontend fullstack frameworks

This project implements the same Kanban board application in 10 different frameworks to provide fair, reproducible performance comparisons. All implementations share identical functionality, database schema, and UI framework (Tailwind CSS + DaisyUI).

Frameworks Compared

  1. Next.js 16 (React 19 with built-in compiler)
  2. TanStack Start (React 19, leaner meta-framework)
  3. TanStack Start + Solid (SolidJS 1.9)
  4. Nuxt 4 (Vue 3)
  5. Analog (Angular 20)
  6. Marko (@marko/run)
  7. SolidStart (SolidJS 1.9)
  8. SvelteKit (Svelte 5)
  9. Qwik City (Resumability-based)
  10. Astro + HTMX (MPA approach)

Bundle Size Champions (Board Page):

  • Marko: 88.8 kB raw (28.8 kB compressed) - 6.36x smaller than Next.js
  • Qwik: 114.8 kB raw (58.4 kB compressed) - 4.92x smaller than Next.js
  • SvelteKit: 125.2 kB raw (54.1 kB compressed) - 4.51x smaller than Next.js
  • SolidStart: 128.6 kB raw (41.5 kB compressed) - 4.39x smaller than Next.js

Middle of the Pack:

  • TanStack Start (React): 373.6 kB raw (118.2 kB compressed) - 1.51x smaller than Next.js
  • Analog: 376.3 kB raw (103.9 kB compressed) - 1.50x smaller than Next.js

Performance Champions (First Contentful Paint):

  • SolidStart: 35ms FCP (fastest)
  • Nuxt: 38ms FCP (tied for 2nd)
  • SvelteKit: 38ms FCP (tied for 2nd)
  • Marko: 39ms FCP

Baseline:

  • Next.js 16: 564.9 kB raw (176.3 kB compressed), 444ms FCP

Thursday, November 13, 2025

Blue Origin rocket landing

SpaceX is doing this for years, but this is also a big rocket. 

Bezos' Blue Origin Successfully Lands Booster After Rocket Launch - YouTube




AI: Google "Ironwood" TPU

 Google unveils Ironwood, seventh generation TPU, competing with Nvidia

Google said it’s making Ironwood, the company’s most powerful chip yet, widely available in the coming weeks.
Ironwood, the seventh generation of Google’s Tensor Processing Unit (TPU), was initially introduced in April for testing.
Google says it’s more than four times faster than its predecessor.


Tensor Processing Unit (TPU)?

Google Cloud TPUs are custom-designed AI accelerators, which are optimized for training and inference of AI models. They are ideal for a variety of use cases, such as agents, code generation, media content generation, synthetic speech, vision services, recommendation engines, and personalization models, among others. TPUs power Gemini, and all of Google’s AI powered applications like Search, Photos, and Maps, all serving over 1 Billion users.




Wednesday, November 12, 2025

AI bubble, circular funding

The Al Bubble Is A Lot Worse Than You Think - YouTube

"AI driven stocks" hold 40% of S&P500; NVidia alone holds 7.5%!
And since most people conservatively invest in "index fund" based on S&P500,
almost everyone who invests is exposed to this "bubble"!!!



WHY Michael Burry JUST Bet $1.1 Billion Against AI (REALITY) - YouTube



 #19 Edition: We’re in an AI Bubble. But the Bubble Isn’t the Tech.

Why Jensen Huang Loves the “AI Bubble” Stories | by Devansh | Oct, 2025 | Medium



SFTPGo: file transfer tools in GoLang

 SFTPGo documentation

SFTPGo is an event-driven file transfer solution. It support multiple protocols (SFTP, SCP, FTP/S, WebDAV, HTTP/S) and multiple storage backends.




Monday, November 10, 2025

AI risks, ignored?

 'Musk will get richer, people will get unemployed': Nobel Laureate Hinton on AI - YouTube

A year after winning the Nobel Prize for his work related to machine learning, Geoffrey Hinton, the “Godfather of AI,” is sounding the alarm. He says that artificial intelligence could one day outsmart and overpower its creators. Hinton warns that tech giants are moving too fast, that global cooperation is needed, and that we may need a “Chernobyl moment” to take the danger seriously. From mass job losses to loss of control, Hinton says humanity’s survival depends on how we act now.

GoLang powered AI tools: Charm Crush, Fantasy

GitHub - charmbracelet/crush: The glamourous AI coding agent for your favourite terminal 💘

Golang Weekly Issue 576: October 29, 2025

🤖 Crush: Charm's Go-Powered AI Coding Agent — Charm (best known for Bubble Tea) has built a fleshed out, featureful alternative to tools like Claude Code or OpenAI’s Codex that’s well worth checking out, especially as it supports any OpenAI-compatible LLM API.

🤖 Fantasy: Build Flexible AI Agents with Go — It’s Charm again! Fantasy is one of the key building blocks behind Crush (mentioned above) but can be used directly to create tool-enabled agents in Go.


Sunday, November 09, 2025

AI: social revolution vs evolution?

As mentioned in this "futurist" email list:

Post-Capitalism: The End of Money - by Peter H. Diamandis

"What happens when superintelligence, humanoid robotics, and nanotechnology
drive production costs toward zero, eroding profit motives?
This is a topic discussed in The Zero Marginal Cost Society by Jeremy Rifkin."

AI related tech and investment is exploding, would this "boom" end up in "bust" as usual?
What intellectual framework can sustain this change, over longer period of time?

Jeremy Rifkin promotes concepts of "Third Industrial Revolution",
and related "Zero Marginal Cost society"
making implicit conclusions about future of society based on tech trends.

And while that new energy technology is "decentralized" by nature, 
decision-making and control is even more centralized

On the other side, historically, decentralized "Antifragile" evolution

So, here we have two influential university professors
explaining trends and historical patterns differently.

This is how AI summary of this "dialectics


Predictability vs. Uncertainty:
Rifkin often proposes large-scale, somewhat predictable shifts in civilization driven by technological change (e.g., the collapse of fossil fuels by a specific date, like 2028, in "The Green New Deal"), whereas
Taleb is a profound skeptic of such long-term, specific predictions about complex systems, viewing them as examples of the "ludic fallacy" (misusing models from simple games to understand complex reality).

Top-Down vs. Bottom-Up:
Rifkin's proposals sometimes imply coordinated, global cooperation and policy shifts to achieve the "Third Industrial Revolution."
Taleb tends to favor decentralized, bottom-up systems that are robust to failure, often expressed through his critique of large, fragile, centrally managed systems.

Economic Models:
Rifkin sees potential in a "zero marginal cost" future with a rise of a "collaborative commons" where information sharing reduces traditional profit motives.
Taleb might view such utopian economic models with skepticism, emphasizing the persistence of human behavior, risk, and power dynamics in all systems.






GoLang => WASM => Vite plugin => JS

 vite-plugin-use-golang - npm

Write Go code in JavaScript files. It compiles to WebAssembly. Actually works.

You drop "use golang" at the top of a JS file, write Go code, and Vite compiles it to WASM at build time. The compiled functions show up on window like any other JavaScript function. It's absurd, but it's real.

// vite.config.js
import { defineConfig } from "vite";
import golangPlugin from "vite-plugin-use-golang";

export default defineConfig({
  plugins: [golangPlugin()],
});


Write Go in a JS file:

"use golang"

import (
  "fmt"
  "syscall/js"
)

func greet(this js.Value, args []js.Value) interface{} {
  return fmt.Sprintf("Hello from Go, %s!", args[0].String())
}

func main() {
  js.Global().Set("greet", js.FuncOf(greet))
  select {}
}


Use it in JavaScript:
console.log(window.greet("world")); // "Hello from Go, world!"

Saturday, November 08, 2025

AI tool: "memory" @ Claude

The Claude memory tool is a feature that allows Claude to learn and remember information across different conversations by storing and retrieving it from files on your system. Instead of starting each new chat from scratch, Claude uses this memory to maintain context, improve productivity, and build on previous interactions. This enables it to learn your workflows, remember project details, and act as a more knowledgeable collaborator over time.

Using Claude’s chat search and memory to build on previous context | Claude Help Center

You can now prompt Claude to search through your previous conversations to find and reference relevant information in new chats. Additionally, Claude can remember context from previous chats, creating continuity across your conversations. 

Node-RED.js: "low code" vs "AI vibe code"?

 Low-code programming for event-driven applications : Node-RED


Node-RED's goal is to enable anyone to build applications that collect, transform and visualize their data; building flows that can automate their world. Its low-code nature makes it accessible to users of any background, whether for home automation, industrial control systems or anything in between.


"AI changes the way coding is done, it doesn’t kill it. It can’t ‘vibe’ on its own, it still needs to be promoted and promoted well , it also needs to be quality assured, tested and proved, if anything that side of coding will become critically more important as humans want to make ensure what the intelligence has made is fit for our purpose."

Friday, November 07, 2025

Tesla "moonshot goals" = $1T reward

Walter Isaacson: Musk needs Tesla’s stock not just for the money, but also to control the company - YouTube


Elon Musk Got His $1 Trillion Pay Package. Now Tesla's Moonshot Goals Are In Focus.

  • Tesla shareholders yesterday approved a pay package for CEO Elon Musk that could be worth $1 trillion if the company and its stock hit certain goals.
  • One of the pay plan's performance targets is to expand Tesla's stock market valuation to $8.5 trillion from its current $1.4 trillion.
The pay package stands to give the CEO the control he sought, with as much as a 25% stake in the company. Unlocking all 12 tranches of Tesla stock, for the largest possible financial reward, will require
  • the company's market cap to reach at least $8.5 trillion and 
  • profits of $400 billion, and for the company to meet product goals including 
  • 20 million car deliveries, 
  • 1 million robots sold, and 
  • 1 million robotaxis in operation.

AI Voice OS: Humain One

 Saudi startup Humain to launch new AI-based operating system | Reuters

Saudi-based AI startup Humain, set up by the kingdom's sovereign wealth fund, plans to launch a computer operating system this week that enables users to speak to a computer to tell it to perform tasks, the company said.

It sees systems such as its new product, Humain One, as an eventual alternative to icon-based systems like Windows or macOS that have dominated personal computer operating systems since the mid-1980s, a company spokesperson said.


THE OPERATING SYSTEM FOR ENTERPRISE INTELLIGENCE

Stop chasing data. Start directing outcomes. HUMAIN ONE uses AI agents to connect your systems, automate tasks, and run your entire business from a single interface


Thursday, November 06, 2025

NVIDIA $5T AI: USA vs China?

A good salesman need to keep attention, best by Fear (F in FOMO)

$5T NVidia valuation will need a lot of such attention to stay there...

But he has some good points, about China electric energy advantage

Nvidia CEO: China on track to win AI race

Nvidia becomes the world's first $5 trillion company

"Huang's warning reflected an apparent frustration with mounting calls for regulation in the U.S.
...
China is nanoseconds behind America in AI. It's vital that America wins by racing ahead and winning developers worldwide.
...
Huang called for policies to increase energy production and attract AI developers with the goal of the U.S. winning 80% of the global AI market"


China vs US Energy : r/economy


“the economy is energy transformed”


or even better

“the economy is intelligence transformed”



AI Advantage Summit by Tony Robbins

online free event: AI tools and techniques for self-improvement

AI Advantage Summit - Hosted by Tony Robbins & Dean Graziosi

November 6–8 | 3 Hrs/day | 100% Virtual & Free

3-Day Virtual Event
Free AI event for Entrepreneurs, small business owners & Professionals
Looking To Get Ahead

Tony Robbins
Dean graziosi
Allie k. miller
Rachel woods
Sabrina ramonov
Igor pogany
Marc Benioff
Arthur Brooks
AMJAD MASAD
Zack Kass



Zack Kass is a prominent AI expert, keynote speaker, and advisor, known for his role as the former Head of Go-to-Market at OpenAI




Book - Zack Kass | Al Keynote Speaker | Al Consulting
The Next Renaissance: AI and the Expansion of Human Potential


Practice of "Mastery"... domain does not matter that much










complicated: hard, but solvable by more "thinking" = left side of brain + AI
once solved, easy to replicate

complex: beyond complicated, nature, requires "intuition" = right side of brain
impossible to solve, easy to understand, like "love", "happiness", "meaning of life"

never use complicated solution for complex problem!

life is not predictable!


Replit Agent uses AI to set up and create apps from scratch.
Describe your app in everyday language, and it can set up and create your Replit App in minutes.
Pricing - Replit ($240/year) 30 days free trial?


Wednesday, November 05, 2025

Azure AI Agents for .NET

Azure AI Persistent Agents client library for .NET - Azure for .NET Developers | Microsoft Learn

Develop Agents using the Azure AI Agents Service, leveraging an extensive ecosystem of models, tools, and capabilities from OpenAI, Microsoft, and other LLM providers. The Azure AI Agents Service enables the building of Agents for a wide range of generative AI use cases.




Tuesday, November 04, 2025

$38B OpenAI & AWS Compute Partnership

 AWS announces new partnership to power OpenAI's AI workloads

OpenAI and AWS announced a multi-year partnership committing $38 billion for AWS compute. AWS will provide EC2 UltraServers with hundreds of thousands of NVIDIA GPUs, including GB200/GB300 chips. OpenAI will use the clusters for model training and serving, with capacity targeted by end of 2026.

Solar EV: Aptera

 The Weirdest "Car" I've Ever Driven - YouTube
by Auto Focus - YouTube /  (MKBHD!)



Aptera Motors

"driven by the sun"



Saturday, November 01, 2025

AI Exponential: Moore's Law

Usually Moore's law, a foundation of AI and computing progress,
is represented in logarithmic scale: and that is not intuitive for most people.
It is a challenge even for AI :)

Moore's Law from 1947 (when the transistor was invented)
to 2030 on a linear scale:
doubling every 2 years
By 2020: 2^36.5 ≈ 92 billion transistors
By 2030: 2^41.5 ≈ 3 TRILLION transistors

correct, exponential chart:


first AI chart with bug: “overflow” (wrong chart)


For commercial GPUs: Nvidia's Blackwell-based B100 accelerator has 208 billion transistors, 2024
GB200 = 2xB100

For the absolute largest chip (wafer-scale): Cerebras's Wafer Scale Engine (WSE) has 2.6 trillion transistors with 850,000 cores 

Interestingly, this means the Cerebras chip already exceeds the 2030 projection from Moore's Law that we charted! However, it's a specialized wafer-scale design rather than a conventional chip, which is why the industry still talks about reaching 1 trillion transistors for traditional multi-chiplet GPUs by 2030-2034.

GB200 NVL72 | NVIDIA

The Engine Behind AI Factories | NVIDIA Blackwell Architecture

Cerebras