Saturday, June 13, 2026

Posgres SQL Views

 Strong views on PostgreSQL VIEWs | boringSQL

Quick Summary

The core message is that VIEWs are rewrite rules (macros), not tables. Because Postgres freezes the view's definition (including column types and OIDs) at the time of creation, any structural change to the underlying tables—like dropping a column or changing a data type—is often blocked or requires a full manual recreation of the entire view dependency chain.


Key Points

  • Views are Macros: When you query a view, the PostgreSQL rewriter literally pastes the view's SQL into your query. This makes simple views "free" in terms of performance because the planner can optimize the whole thing at once.

  • The Dependency Trap: * Columns are referenced by internal ID numbers, not names.

    • Renaming a column works, but dropping or changing a type is blocked because the view's stored parse tree is "frozen."

    • Using SELECT * in a view is a "trap" because it expands to a static list of columns at creation time and won't pick up new table columns automatically.

  • Nested View Spirals: Deeply nested views (views on top of views) create a "black box" that hides performance issues. You cannot truly know how a query will perform without unrolling every layer of the view tree.

  • Maintenance Headaches: * Using CASCADE to force a schema change is dangerous—it drops the views and deletes all associated GRANTS and RLS policies with no undo.

    • The standard fix is a manual "drop-alter-recreate" cycle, which is tedious for complex dependency trees.

  • Safety via Transactional DDL: Unlike Oracle or SQL Server, Postgres allows you to wrap the entire "drop and recreate" sequence in a single BEGIN/COMMIT block, ensuring that if the recreation fails, the database rolls back to its original state.

  • Best Practices:

    • Always use explicit column lists instead of SELECT *.

    • Keep dependency trees shallow.

    • Map your dependencies using pg_depend before attempting migrations.

Friday, June 12, 2026

SpaceX IPO

 SpaceX IPO Live Updates: SPCX Rises 20%; Musk Becomes World's First Trillionaire


SpaceX (SPCX) IPO: Live updates

SpaceX jumped 19% on Friday in its Nasdaq debut after the biggest initial public offering ever. The stock closed at around $161, valuing the company at $2.1 trillion.

AI Laptoop Googlebook = Chromebook+Android+Gemini

Microsoft tried with Windows Copilot, so far not very popular...

Would google be able to get more traction?

Introducing Googlebook, designed for Gemini Intelligence

"Googlebooks are the first laptops designed from the ground up for Gemini Intelligence, to deliver personal and proactive help when and where you need it."

Introducing Googlebook - YouTube

Googlebook.google: Designed for Gemini Intelligence | Coming Fall 2026 - Googlebook


Thursday, June 11, 2026

AI HW: Mac mini, Neo

may not be available anymore due to high demand...
but clearly Mac mini can be useful solution for some AI use-cases


How to Set Up a Headless Mac mini for AI Agents [2026 Guide]


at $599 (499 for students) for base version it was an excellent deal...
not anymore, +$200 for only 256GB SSD extra (should be $50 max)

Mac mini - Apple



Introducing Googlebook, designed for Gemini Intelligence

Wednesday, June 10, 2026

AI GitHub Copilot SDK

Copilot SDK is now generally available - GitHub Changelog

The GitHub Copilot SDK is now generally available. You can embed GitHub Copilot’s agentic engine into your own applications, services, and developer tools with a stable API and production-ready support.

The Copilot SDK gives you direct, programmatic access to the same agent runtime behind GitHub Copilot—planning, tool invocation, file edits, streaming, and multi-turn sessions, so you don’t have to build your own orchestration layer.

Since entering public preview, the SDK has been used to build everything from CI/CD assistants and internal developer tools to customer-facing AI features.

Available in six languages
  • Node.js / TypeScript: npm install @github/copilot-sdk
  • Python: pip install github-copilot-sdk
  • Go: go get github.com/github/copilot-sdk/go
  • .NET: dotnet add package GitHub.Copilot.SDK
  • Rust: cargo add github-copilot-sdk — new at General Availability
  • Java: Available via Maven and Gradle. — new at General Availability


AI: "Loop Engineering"

 Loop Engineering is the new hype ... and I hate it already - YouTube by MaxS.


The video discusses the emergence of "Loop Engineering" as a new AI buzzword (0:00 - 0:26), highlighting the following key points:

  • Context vs. Prompt Engineering: The creator argues that terms like "prompt engineering" and "context engineering" are essentially the same thing: providing LLMs with the right information to achieve better results (0:28 - 1:24).
  • Evolution of AI Tools: Tools like Claude Code and Codeex have integrated features (e.g., /loop or /goal) that allow agents to autonomously reprompt themselves until a task is finished, a concept previously seen in the "Ralph Loop" (2:35 - 3:58).
  • The Limits of Autonomous Loops: While these agents are efficient at achieving a specific goal, the creator warns that they prioritize "getting it done" over software quality. Relying solely on these loops can lead to code that lacks maintainability, extensibility, and security (4:27 - 7:25).
  • Developer Perspective: The creator emphasizes that these agents are helpful assistants, not replacements for developers, and stresses that true software engineering requires patterns and practices that go beyond simple task completion (2:17 - 2:32, 5:43 - 7:03).


The video discusses a shift in AI coding from direct prompting to designing "loops" that autonomously manage agents to achieve a specific goal (0:00-0:37).

Key takeaways:

  • What is a loop? It is an autonomous system consisting of a trigger (e.g., a PR opening, a schedule, or manual start) and a verifiable goal (e.g., tests passing or an LLM confirming completion) (1:47-2:39).
  • Core Concept: Instead of manually prompting an agent step-by-step, you set an end state, and the agent iterates until that goal is reached (1:23-1:41).
  • Difference from Automation: While automations execute a set sequence, loops involve decision-making—the agent must determine if the goal has been achieved before stopping (11:20-11:46).
  • Challenges: Implementing loops effectively is difficult, and they are currently very expensive in terms of token usage (8:13-9:00).
  • The Future: This approach represents the future of software engineering, where humans design "factories" that allow agents to operate autonomously, potentially leading to recursive self-improvement (10:54-12:48).


Auth tools: better-auth.ts, Authelia

 better-auth - npm

Better Auth is a framework-agnostic authentication (and authorization) framework for TypeScript. It provides a comprehensive set of features out of the box and includes a plugin ecosystem that simplifies adding advanced functionalities with minimal code in a short amount of time. Whether you need 2FA, multi-tenant support, or other complex features, it lets you focus on building your actual application instead of reinventing the wheel.



TS, MIT





Authelia is an open-source authentication and authorization server and portal fulfilling the identity and access management (IAM) role of information security in providing multi-factor authentication and single sign-on (SSO) for your applications via a web portal. Authelia is an OpenID Connect 1.0 Provider which is OpenID Certified™ allowing comprehensive integrations, and acts as a companion for common reverse proxies.

Go, React, Apache



Authelia can be installed as a standalone service from the AUR, APT, FreeBSD Ports, or using a static binary, .deb package, as a container on Docker or Kubernetes.

Tuesday, June 09, 2026

AI: Anthropic Claude Fable 5 & Mythos 5

 Claude Fable 5 and Claude Mythos 5 \ Anthropic


"...launching Claude Fable 5: a Mythos-class1 model that we’ve made safe for general use.

Fable 5’s capabilities exceed those of any model we’ve ever made generally available. It is state-of-the-art on nearly all tested benchmarks of AI capability, showing exceptional performance in software engineering, knowledge work, vision, scientific research, and many other areas. The longer and more complex the task, the larger Fable 5’s lead over other models."


In order to access Claude Fable 5 model, you must opt into data sharing by using the Data Retention API and setting provider_data_share before you can invoke the models. There is no console user interface for this setting at launch.
This mode allows Amazon Bedrock to retain and share your inference data with model providers per their requirements. Anthropic requires 30-day inputs and outputs retention, as well as human review. To learn more, visit the Amazon Bedrock abuse detection.

Amazon AI enabled warehouse robots

Amazon unveils latest warehouse robot as tech giants do AI layoffs


Amazon has unveiled its latest warehouse robot that can take commands in conversational language, underscoring how AI-powered automation


401K => AI IPOs (SpaceX, Anthropic, OpenAI)

 Your 401K Is Their Exit Strategy - YouTube

This video discusses concerns that retirement funds (401ks) are being positioned as exit liquidity for major AI-related companies. Key takeaways include:

  • Forced Investment via Index Changes: The NASDAQ and other index providers have implemented new "fast entry" rules (0:02:00-0:02:25, 0:05:05-0:06:40), lowering waiting periods and float requirements. This forces passive investment funds to automatically purchase shares of upcoming mega-IPOs like SpaceX, OpenAI, and Anthropic.
  • The AI Earnings Bubble: The video argues that the current AI boom is an "earnings bubble" rather than just a valuation bubble (0:20:25-0:21:25). It highlights an accounting cycle where big tech companies invest in AI startups, which then use that capital to pay for computing services from those same big tech companies, artificially inflating reported profits (0:12:40-0:17:45).
  • Macroeconomic Pressure: Rising geopolitical tensions and potential oil price spikes (impacting Exxon Mobil projections) threaten to increase interest rates, which would raise borrowing costs and potentially collapse the "circular" funding model supporting current AI valuations (0:26:15-0:29:30).
  • Historical Context: Similar to the railroad and fiber-optic booms, the video suggests that while the underlying technology is revolutionary, the initial investors often face significant losses before the industry matures and becomes profitable for later investors (0:30:15-0:32:00).
  • Actionable Advice: The creator emphasizes understanding what your specific index funds own to avoid being caught in unfavorable entry points during these massive IPOs (0:32:05-0:32:45).










related, even more details of circular deals


DO NOT BUY STOCKS! (Michael Burry’s Final Warning) - YouTube

This video examines allegations made by Michael Burry regarding complex financial structures involving Nvidia, X.AI, and Apollo Global Management:


  • Algegation: Nvidia allegedly used a shell company (Veiler) to sell $5.4 billion in GPUs to X.AI, moving the assets off-balance sheet to inflate revenue reports (1:00-2:35).
  • Funding Structure: Apollo reportedly packaged $3.5 billion in debt for this deal into securities sold to Athene, an insurance company, potentially exposing retail investors and retirees to high-risk AI data center financing (3:12-4:07).
  • Expert Rebuttal: An auditor notes that while the transaction appears technically legal, Nvidia's $1.9 billion investment into the same middleman entity may lead to overstated revenue, as it essentially functions as self-financing (8:38-9:53).
  • Risk Assessment: The main risk is that AI hardware depreciates rapidly (like an iPhone), and if X.AI stops renting these chips, the underlying value of the assets backing the insurance products could decline, though a total loss is viewed as unlikely (10:10-14:54).

SpaceX and Growth (02:45 - 07:26)

  • Why go public? SpaceX is entering a massive capital-intensive growth phase to deploy over 100,000 Starlink V3 satellites, which are 10-20 times more capable than previous versions.
  • Energy Vision: Elon Musk emphasizes the potential to harness vast amounts of energy in space, noting that current human civilization uses less than a trillionth of the Sun's output.
...

The reality is that investments are VERY large and big revenue is projected, not current... 
Becoming NASA-style society level investment... maybe some some "secret design/conspiracy?"


RoundAbouts vs Traffic-lights

a bit surprising stats... 

Are Roundabouts Actually Better Than Traffic Lights? - YouTube

This video tests whether roundabouts are superior to traffic lights by comparing two 10-mile routes in Carmel, Indiana. The experiment evaluates time efficiency, fuel consumption, safety, and pedestrian accessibility.

Key Findings & Statistics

  • Travel Time: The roundabout route was significantly faster, taking approximately 34% less time to complete than the traffic light route.
  • Consistency: Roundabouts provide a more stable travel experience. The difference in travel time between daytime and nighttime was negligible (only 2 seconds), whereas the traffic light route fluctuated by about 4 minutes based on signal timing and traffic volume.
  • Fuel Efficiency: The roundabout route achieved 3.2 MPG better fuel economy due to reduced idling and stop-and-go driving. Carmel estimates savings of 24,000 gallons of gas per year for each converted intersection.
  • Safety: Roundabouts drastically reduce conflict points. Data indicates they can reduce injury crashes by approximately 75% and fatalities by up to 90% by shifting the nature of accidents from high-speed, sharp-angle collisions to slower-speed sideswipes.

Key Conclusions

  • Driving Experience: Roundabouts force greater driver engagement, which paradoxically leads to safer road conditions






Monday, June 08, 2026

Apple WWDC 2026

WWDC 2026 Impressions: Yeah, That's About Right - YouTube

WWDC 2026: Everything Revealed in 13 Minutes - YouTube

Apple WWDC 2026 keynote in 25 minutes - YouTube

The WWDC 2026 keynote introduced major updates across Apple's software ecosystem, anchored by the introduction of Apple Intelligence and Siri AI. Here are the key points:

Operating System Updates:

  • macOS Golden Gate: Features an updated Liquid Glass UI with a global slider for opacity adjustment, more uniform toolbars, and refined sidebar transparency (0:00 - 1:28).
  • System Performance: Across iOS and iPadOS, system animations are smoother, app launch speeds have improved by up to 30%, and photo loading and file transfers (via AirDrop/external drives) are significantly faster (1:28 - 2:11).
  • iPhone 11 CPU Scheduler: System-wide responsiveness improvements are now extended to devices as old as the iPhone 11 (2:11 - 2:55).

Apple Intelligence & Siri AI:

  • Siri AI: A profoundly more capable assistant that is more conversational, context-aware, and can perform cross-app actions (e.g., planning a dinner party or writing emails) (9:22 - 16:15).
  • Visual Intelligence: Allows users to point their iPhone camera or use specific shortcuts on macOS/visionOS to get information about their surroundings, such as nutritional data or schedule management (16:36 - 17:46).
  • Writing Tools: Integrated system-wide features that offer proofreading, tone adjustment, and draft generation based on personal communication styles (17:46 - 18:44).

Privacy and Safety:

  • Child Safety: New Ask To Browse and Ask To Approve features give parents more control over web and app access, along with expanded Communication Safety that detects violent or graphic content (5:10 - 6:40).
  • Data Privacy: Features emphasize on-device processing and Private Cloud Compute to ensure data remains secure and inaccessible to Apple (9:04 - 9:22).

Other Notable Announcements:

  • Health: New support for menopause and perimenopause tracking in the Health app (4:19).
  • Photos: Powerful new AI tools like Clean Up (distraction removal), Spatial Reframing, and Image Playground for creative generation (21:41 - 23:50).
  • Availability: Developer betas are available today, with a public beta coming next month and a full release this fall (24:56 - 25:13).

SpaceX AI EWS for Google

so called "EWS: Elon's Web Services" giga-deals

Google will pay SpaceX $920M per month for compute | TechCrunch

SpaceX has lined up another compute deal ahead of its historic IPO, this time with Google. The company announced the deal in a regulatory filing on Friday.

Under the terms of the deal, Google will pay SpaceX $920 million per month from October 2026 through June 2029 for access to “approximately 110,000 NVIDIA GPUs, CPUs, memory, and other related components.”
 
“Google Cloud and SpaceX are long-time partners,” Google said in a statement. “This is a short-term, timely agreement to ensure we have bridge capacity to meet surging customer demand for our agent platform, Gemini Enterprise, which has been even higher than we expected.”

... parent company Alphabet is on a spending spree. Alphabet has already committed to more than $180 billion in capital expenditures this year and has said it expects that to “significantly increase” in 2027... 


Google to pay SpaceX $920 million a month for xAI compute capacity

business: Kodak sad story

what will be "Kodak-like" AI affected companies? 

Google fits almost exact same patten: "invented" much of modern AI but didn't use
until being forced by competition... Microsoft, Salesforce, leveraging but not really driving new solutions, incremental vs exponential improvements. Market and business can be brutal even on best of companies... 


Kodak - Wikipedia

digital reality... 

How Just One Camera Destroyed Kodak Forever - YouTube

The Rise and Fall of Eastman Kodak

This documentary explores the spectacular collapse of Eastman Kodak, once a global titan that dominated the photography industry for most of the 20th century.

Peak Dominance

  • In 1976, Kodak controlled 90% of the film market and 85% of the camera market in the United States.
  • The company was a Dow Jones Industrial Average component for 74 consecutive years.
  • At its peak, it employed 145,000 people globally, with 60,000 workers concentrated in its base city of Rochester, New York.
  • The company enjoyed a massive 70% gross margin on film products, which created a powerful disincentive to innovate away from their core revenue stream.

The Missed Future

  • In 1975, Kodak engineer Steven Sasson invented the world's first digital camera. Despite filing a patent for the technology, management famously dismissed the invention as "cute" and prioritized protecting their lucrative film business.
  • Internal reports as early as 1979 and 1981 correctly predicted that digital photography would eventually render film obsolete, but these warnings were largely ignored by leadership.

Strategic Missteps and Bankruptcy

  • Kodak attempted to diversify into pharmaceuticals with the $5.1 billion acquisition of Sterling Drug, which resulted in a massive loss of value.
  • The company suffered a major legal blow in 1991 when it lost a patent battle against Polaroid, forcing it to recall millions of instant cameras.
  • By the time Kodak pivoted to digital cameras, they were decades behind competitors. Even when their "EasyShare" cameras became best-sellers, the company lost money on each unit sold.
  • In 2012, Kodak filed for Chapter 11 bankruptcy, causing thousands of retirees to lose their healthcare benefits and leading to the demolition of historic manufacturing plants in Rochester.

The Aftermath

  • The company famously sold its groundbreaking OLED patent portfolio for $100 million in 2009—a technology now powering nearly every modern smartphone and television screen worth billions annually.
  • While Fujifilm successfully navigated the digital transition by pivoting into cosmetics and healthcare, Kodak's rigid adherence to its original business model ultimately led to its historic industrial decline.

Sunday, June 07, 2026

AI Busyness Singularity: Pseudo vs Slow productivity

excellent podcast episode!

How Do I Become AI-Proof? - YouTube by Cal Newport + 7 Best Ideas About The Deep Life

In this episode of Deep Questions, Cal Newport discusses the threat that AI poses to knowledge work, arguing that it may make jobs more miserable rather than just automating them away. Here are the key takeaways:

The "Busyness Singularity" (0:00 - 11:18):

  • Pseudo-Productivity: For decades, knowledge work has relied on "visible activity" as a proxy for useful effort.
  • The Impact of Technology: The introduction of digital tools (email, Slack, mobile) only accelerated this, leading to a state of constant, frantic busyness.
  • The AI Acceleration: AI tools (LLMs) are currently being used primarily to automate these "pseudo-productive" tasks—like writing emails, summarizing reports, and creating slide decks. By making these tasks essentially free, AI is pushing the workplace toward a "busyness singularity," where employees perform a performative dash of digital busywork that lacks real value.

Five Ways to Escape the Trap (14:14 - 22:42):

  1. Plan Weekly (14:34): Protect time on your calendar for high-value tasks, rather than just reacting to the immediate demands of the day.
  2. Maintain a Portfolio (15:49): Keep a documented record of your actual, value-producing accomplishments to show your worth, rather than relying on visible busyness.
  3. Avoid What AI Can Do (17:31): Identify tasks that an AI can easily perform (e.g., basic summaries or automated responses) and shift your focus toward work that requires your unique skills and human perspective.
  4. Pursue Upskill Projects (19:32): Dedicate time to learning rare and valuable skills that are difficult for AI to replicate, making yourself more valuable.
  5. Write Well (20:38): Prioritize clear, concise, and well-crafted writing. In a world of AI-generated content, human-authored, high-quality communication stands out.

Additional Insights:

  • The Sacredness of Speech (29:03 - 33:00): Cal reflects on his recent newsletter, arguing that speech is a core component of the human experience and there is an ethical tension in treating AI-generated text as equivalent to human expression.
  • Slow Productivity for Managers (33:35 - 37:26): To foster a better team environment, Cal suggests making workloads transparent, holding "docket-clearing" meetings, and establishing specific office hours.

Slow Productivity: The Lost Art of Accomplishment Without Burnout: Newport, Cal: 9780593544853: Amazon.com: Books


Why Isn’t AI Taking Our Jobs? - Cal Newport