Sunday, June 16, 2024

security: Passkeys, Cross-Account Protection by Google

Google shares update on passkeys and new ways to protect accounts

In less than a year, passkeys have been used to authenticate people more than 1 billion times across over 400 million Google Accounts. Passkeys are easy to use and phishing resistant, only relying on a fingerprint, face scan or a pin making them 50% faster than passwords.



Mere days before Google proudly announced that over 400 million accounts have used passkeys, William Brown (developer behind webauthn-rs) penned Passkeys: A Shattered Dream, in which he describes how corporate greed from Apple and Google destroyed our passkey future. Juxtaposition! 🙃

Thursday, June 13, 2024

Tesla: Elon Musk pay restored?

Tesla stockholders vote to restore Elon Musk's $44.9B pay package | AP News

Tesla shareholders voted Thursday to restore CEO Elon Musk’s record $44.9 billion pay package that was thrown out by a Delaware judge earlier this year, sending a strong vote of confidence in his leadership of the electric vehicle maker.

The favorable vote doesn’t necessarily mean that Musk will get the all-stock compensation anytime soon. The package is likely to remain tied up in the Delaware Chancery Court and Supreme Court for months as Tesla tries to overturn the Delaware judge’s rejection.

"Bend" a new programming language

Mind-bending new programming language for GPUs just dropped... - YouTube


HigherOrderCO/Bend: A massively parallel, high-level programming language @GitHub

(Rust, Apache license)


Bend is a massively parallel, high-level programming language.

Unlike low-level alternatives like CUDA and Metal, Bend has the feeling and features of expressive languages like Python and Haskell, including fast object allocations, higher-order functions with full closure support, unrestricted recursion, even continuations. Yet, it runs on massively parallel hardware like GPUs, with near-linear speedup based on core count, and zero explicit parallel annotations: no thread spawning, no locks, mutexes, atomics. Bend is powered by the HVM2 runtime.

Wednesday, June 12, 2024

Starbucks: incredible business story

Starbucks (with Howard Schultz) - YouTube by Acquired podcast

"Starbucks. You’d be hard pressed to name any brand that’s more ubiquitous in the world today. With nearly half a billion global customer purchases per week across its stores and 3rd party retail channels, a significant portion of the human population gets their daily fix in the green and white paper cup. 

But it wasn’t always this way. Long before the frappuccinos and the PSLs and the cake pops, Starbucks was just a small-time Seattle roaster that only sold beans — and was started not by Howard Schultz but rather the guys who later ran Peet’s (!). Starting from six tiny stores when Howard took over in 1987, this quirky coffee company named after a character from Moby Dick has scaled to nearly 40,000 locations worldwide..."

dotnet script: C# .NET CLI

dotnet-script/dotnet-script: Run C# scripts from the .NET CLI. @GitHub

hello.cs

Console.WriteLine("Hello!");


dotnet tool install -g dotnet-script
dotnet script .\hello.cs

Tuesday, June 11, 2024

Web Awesome, Shoelace web components

Shoelace is an evolved tool from super-popular Bootstrap tool (name-play: Shoelaces / Bootstrap)
Now it is evolving again, along with also super-popular Font Awesome, that is also often combined with Bootstrap.

 From Shoelace to Web Awesome featuring Cory LaViska (JS Party #322)

  • Shoelace.style

  • Thanks to the popularity of frameworks such as Angular, Vue, and React, component-driven development has become a part of our every day lives. Components help us encapsulate styles and behaviors into reusable building blocks. They make a lot of sense in terms of design, development, and testing.

    Unfortunately, framework-specific components fail us in a number of ways:You can only use them in the framework they’re designed for 🔒
    Their lifespan is limited to that of the framework’s ⏳
    New frameworks/versions can lead to breaking changes, requiring substantial effort to update components 😭

    Web components solve these problems. They’re supported by all modern browsers, they’re framework-agnostic, and they’re part of the standard, so we know they’ll be supported for many years to come.

    This is the technology that Shoelace is built on.



  • Font Awesome


  • Web Awesome

    Web Awesome is the fancy pants new name for Shoelace,
    the most popular free and open source library of web components




Monday, June 10, 2024

AI courses @ Udemy

The Complete OPENAI JS APIs Course - Build 15 Projects | Udemy


All of AI: ChatGPT, Midjourney, Stable Diffusion & App Dev | Udemy


Generative AI for NodeJs: OpenAI, LangChain - TypeScript | Udemy


Practical AI | Udemy


Master Vector Databases | Udemy


Machine Learning in Python (Data Science and Deep Learning) | Udemy


ChatGPT/AI for Finance Professionals: Investing & Analysis | Udemy


Artificial Intelligence A-Z 2024: Build 7 AI + LLM & ChatGPT | Udemy



Apple Intelligence @ WWDC

smart marketing! Not "Artificial", just "Intelligence"!


 Apple Intelligence Preview - Apple

Apple Intelligence powers new Writing Tools, which help you find just the right words virtually everywhere you write. With enhanced language capabilities, you can summarize an entire lecture in seconds, get the short version of a long group thread, and minimize unnecessary distractions with prioritized notifications.

WWDC 2024 — June 10 | Apple - YouTube full event


Apple WWDC 2024 keynote in 18 minutes - YouTube


Apple WWDC 2024: Everything Revealed in 12 Minutes - YouTube


Apple Intelligence: every new AI feature coming to the iPhone and Mac - The Verge


Here’s everything Apple announced at the WWDC 2024 keynote, including Apple Intelligence, Siri makeover | TechCrunch

It’s WWDC 2024 keynote time! Each year Apple kicks off its Worldwide Developers Conference with a few hours of just straight announcements, like the long-awaited Apple Intelligence and a makeover for smart AI assistant, Siri. We expected much of them to revolve around the company’s artificial intelligence ambitions (and here), and Apple didn’t disappoint. We also bring you news about Vision Pro and lots of feature refreshes.

Here’s how to watch the archive of WWDC 2024.


Saturday, June 08, 2024

VS Code: open new window

 Visual Studio Code open tab in new window on another screen (floating) - Stack Overflow

On Windows and Linux, press CTRL+K, then release the keys and press O (the letter O, not Zero).


On macOS, press CMD+K, then O (without holding CMD).

Windows 11 File Explorer: show more options

Recent versions of Windows do not provide "file rename" and other options in context menu by default.

There is a "shortcut" for multiple clicks, as well as "hack" by Windows Registry edit.

Disable "Show more options" context menu in Windows 11 Tutorial | Windows 11 Forum

Starting with Windows 11 build 22572, you can now also press Shift + right click in File Explorer and the Desktop to be the same as click/tap on the “Show more options” context menu item.

  • Option One: Enable or Disable "Show more options" context menu for Current User using REG file
  • Option Two: Enable or Disable "Show more options" context menu for Current User using Command
  • Option Three: Enable or Disable "Show more options" context menu for All Users in Registry Editor



Go, TinyGo & WASM

 What if Google lays off the Go team? (Go Time #315)




TinyGo is very useful for compiling programs both for use in browsers (WASM) as well as for use on servers and other edge devices (WASI).

TinyGo programs can run in Fastly Compute@Edge (https://developer.fastly.com/learning/compute/go/), Fermyon Spin (https://developer.fermyon.com/spin/go-components), wazero (https://wazero.io/languages/tinygo/) and many other WebAssembly runtimes.

Thursday, June 06, 2024

Kubernetes 10 Years






Kubernetes 10 Year Video - full length version - YouTube


10 Years of Kubernetes | Kubernetes

Ten (10) years ago, on June 6th, 2014, the first commit of Kubernetes was pushed to GitHub. That first commit with 250 files and 47,501 lines of go, bash and markdown kicked off the project we have today.

In March of 2013, a 5-minute lightning talk called "The future of Linux Containers," presented by Solomon Hykes at PyCon, introduced an upcoming open source tool called "Docker" for creating and using Linux Containers. Docker introduced a level of usability to Linux Containers that made them accessible to more users than ever before, and the popularity of Docker, and thus of Linux Containers, skyrocketed. With Docker making the abstraction of Linux Containers accessible to all, running applications in much more portable and repeatable ways was suddenly possible, but the question of scale remained.

Google's Borg system for managing application orchestration at scale had adopted Linux containers as they were developed in the mid-2000s. Since then, the company had also started working on a new version of the system called "Omega." Engineers at Google who were familiar with the Borg and Omega systems saw the popularity of containerization driven by Docker. They recognized not only the need for an open source container orchestration system but its "inevitability," as described by Brendan Burns in this blog post. That realization in the fall of 2013 inspired a small team to start working on a project that would later become Kubernetes. That team included Joe Beda, Brendan Burns, Craig McLuckie, Ville Aikas, Tim Hockin, Dawn Chen, Brian Grant, and Daniel Smith.

Go, Apache2 license





SpaceX Starship launch 4

What time is SpaceX's Starship Flight 4 launch test today? | Space


Watch Live! SpaceX Starship launches on 4th test flight - YouTube




SpaceX's Starship 4th flight test looks epic in these stunning photos | Space


SpaceX's Starship Literally Melted! But It Kept Flying To A Miraculous Landing! - YouTube


SpaceX launches Super Heavy-Starship test flight - YouTube





Wednesday, June 05, 2024

TypeORM raw sql query

  import { Connection } from 'typeorm';
  export class SomeService {
    constructor(private readonly connection: Connection) {}
    async runRawQuery(sql, params) {
        return this.connection.query(sql, params)
    }
  }

as of TypeORM v0.3.0, the @InjectConnection() decorator is deprecated
and @InjectDataSource() should be used instead

import { DataSource } from 'typeorm';
export class SomeService { // using Dependency Injection (DI)
  constructor(@InjectDataSource() private dataSource: DataSource) {}
  async runRawQuery(sql, params) {
    return this.dataSource.query(sql, params);
  }
}
// simplest solution

import { getManager } from 'typeorm';
async function runRawQuery(sql, params) {
  return getManager().query(sql, params);
}


Tuesday, June 04, 2024

Mermaid Charts: "Open Core", with AI chat

Hanselminutes Technology Podcast - Fresh Air and Fresh Perspectives for Developers - Open Core Open Source with Mermaid Chart's Knut Sveidqvist

Knut is the creator of the award-winning Mermaid open-source project, but he’s also the CTO at Mermaid Chart, the powerful JavaScript-based diagramming and charting tool that is building their business on an Open Core Business Model.




$6.67/month ($80/year)

✓ All Free features
✓ Unlimited storage
✓ Visual editor (NEW)
✓ ChatGPT editor
✓ AI diagram repair
✓ AI diagram generator
✓ Teams, folders, & sharing
✓ Multi-user editing
✓ Version history
...