Wednesday, January 31, 2024

Microsoft Responsible AI practices

 Empowering responsible AI practices | Microsoft AI


Fairness

AI systems should treat all people fairly.

Reliability and safety

AI systems should perform reliably and safely.

Privacy and security

AI systems should be secure and respect privacy.

Inclusiveness

AI systems should empower everyone and engage people.

Transparency

AI systems should be understandable.

Accountability

People should be accountable for AI systems.

Tuesday, January 30, 2024

"Read Write Own": crypto internet book

with massive advertising campaign, quickly become
"#1 best seller" in Computers & Technology

Amazon.com: Read Write Own: Building the Next Era of the Internet eBook : Dixon, Chris: Kindle Store

A potent exploration of the power of blockchains to reshape the future of the internet—and how that affects us all—from influential technology entrepreneur and startup investor Chris Dixon

Chris Dixon is a general partner at the storied venture capital firm Andreessen Horowitz, which he joined in 2013. He has invested there in Oculus (later acquired by Facebook), Coinbase, and other companies. He also placed early bets on Kickstarter, Pinterest, Stack Overflow, and Stripe, all of which have products in wide use today. Dixon founded and leads a16z crypto, a division of the firm dedicated to investing in crypto and blockchain technologies



"The internet is probably the most important invention of the twentieth century. It transformed the world much as earlier technological revolutions — the printing press, the steam engine, electricity — did before."


1:38 h



Introduction

Three Eras of Networks

A New Movement

Seeing the Truth

Determining the Internet’s Future

Part One: Read. Write.

1 Why Networks Matter

2 Protocol Networks

    A Brief History of Protocol Networks

    The Benefits of Protocol Networks

    The Fall of RSS

3 Corporate Networks

    Skeuomorphic and Native Technologies

    The Rise of Corporate Networks

    The Problem with Corporate Networks: The Attract-Extract Cycle

Part Two: Own.

4 Blockchains

    Why Computers Are Special: The Platform-App Feedback Loop

    Two Paths to Adoption: “Inside Out” versus “Outside In”

    Blockchains Are a New Kind of Computer

    How Blockchains Work

    Why Blockchains Matter

5 Tokens

    Single-Player and Multiplayer Technologies

    Tokens Represent Ownership

    The Uses of Tokens

    The Importance of Digital Ownership

    The Next Big Thing Starts Out Looking Like a Toy

6 Blockchain Networks

Part Three: A New Era

7 Community-Created Software

    Modding, Remixing, and Open Source

    Composability: Software as Lego Bricks

    The Cathedral and the Bazaar

8 Take Rates

    Network Effects Drive Take Rates

    Your Take Rate Is My Opportunity

    Squeezing the Balloon

9 Building Networks with Token Incentives

    Incentivizing Software Development

    Overcoming the Bootstrap Problem

    Tokens Are Self-Marketing

    Making Users Owners

10 Tokenomics

    Faucets and Token Supply

    Sinks and Token Demand

    Tokens Can Be Valued Using Traditional Financial Methods

    Financial Cycles

11 Network Governance

    The Nonprofit Model

    Federated Networks

    Protocol Coups

    Blockchains as Network Constitutions

    Blockchain Governance

Part Four: Here and Now

12 The Computer versus the Casino

    Regulating Tokens

    Ownership and Markets Are Inextricable

    Limited Liability Corporations: A Regulatory Success Story

Part Five: What’s Next

13 The iPhone Moment: From Incubation to Growth

14 Some Promising Applications

    Social Networks: Millions of Profitable Niches

    Games and the Metaverse: Who Will Own the Virtual World?

    NFTs: Scarce Value in an Era of Abundance

    Collaborative Storytelling: Unleashing Fantasy Hollywood

    Making Financial Infrastructure a Public Good

    Artificial Intelligence: A New Economic Covenant for Creators

    Deepfakes: Moving Beyond the Turing Test

Conclusion

    Reinventing the Internet

    Cause for Optimism

Practical Go - Book

Practical Go : Book website


Using SQLite from Go

Practical Go - a book by @amitsaha @GitHub

practicalgo/go-sqlite-demo: A demo project to demo SQLite + Go

Monday, January 29, 2024

web: Massive JavaScript => performance now

The Unbearable Weight of Massive JavaScript – performance.now() - Speaker Deck

The Unbearable Weight of Massive JavaScript | Ryan Townsend | performance.now() 2023 - YouTube


how to use native web tools to improve web performance?
  • import maps
  • custom elements
  • scroll-snapping / scroll-linked animations
  • view transitions
  • navigations API

Follow Ryan on Mastodon @ https://webperf.social/@ryantownsend

For the past 10+ years, JavaScript frameworks and Single Page Applications have been marketed as the solution to all our performance, robustness and productivity problems, but things haven’t worked out the way we’d all hoped, have they?

* Simple marketing and ecommerce sites are still getting heavier and slower.

* Features fail in weird and wonderful ways meaning we need an ever-increasing array of tooling to monitor and debug problems.

* Teams armed with the latest Apple Silicon Macs, expensive CI tooling and complex build pipelines still can’t ship effectively.

But it’s not all doom-and-gloom: we live in a time of unprecedented opportunity to give our users a fantastic experience – the web platform has never been more capable than it is today.

Let’s look at what we can achieve by simplifying our web architecture, utilising new and upcoming Web Platform APIs and getting back to building fast, maintainable, user-friendly front-ends.

Saturday, January 27, 2024

Tesla Model Y: best-selling car worldwide

The Tesla Model Y now officially the best-selling car worldwide in 2023 - YouTube

not just EV, any type of car! 1.23 Millions sold


2nd: Toyota RAV4 1.07 M . 3rd: Toyota Corolla 1.01 M







VS Code extension REST client (vs Postman)

 REST Client - Visual Studio Marketplace

EST Client allows you to send HTTP request and view the response in Visual Studio Code directly.

  • Send/Cancel/Rerun HTTP request in editor and view response in a separate pane with syntax highlight
  • Send GraphQL query and author GraphQL variables in editor
  • Send cURL command in editor and copy HTTP request as cURL command
  • Auto save and view/clear request history
  • Compose MULTIPLE requests in a single file (separated by ### delimiter)
  • View image response directly in pane
  • Save raw response and response body only to local disk
  • Fold and unfold response body

...

Huachao/vscode-restclient: REST Client Extension for Visual Studio Code @GitHub


Friday, January 26, 2024

gofpdf: GoLang PDF generator

jung-kurt/gofpdf: A PDF document generator with high level support for text, drawing and images @GitHub

Package gofpdf implements a PDF document generator with high level support for text, drawing and images.

forks




null safety? Dart vs Null References: The Billion Dollar Mistake

Understanding null safety | Dart

When Dart first launched, compile-time null safety was a rare feature needing a long introduction. Today, Kotlin, Swift, Rust, and other languages all have their own answers to what has become a very familiar problem...

If you run this Dart program without null safety, it throws a NoSuchMethodError exception on the call to .length. The null value is an instance of the Null class, and Null has no “length” getter. Runtime failures suck. This is especially true in a language like Dart that is designed to run on an end-user’s device. If a server application fails, you can often restart it before anyone notices. But when a Flutter app crashes on a user’s phone, they are not happy. When your users aren’t happy, you aren’t happy.


The Dart language is type safe: it uses a combination of static type checking and runtime checks to ensure that a variable’s value always matches the variable’s static type, sometimes referred to as sound typing. Although types are mandatory, type annotations are optional because of type inference.





Speaking at a software conference in 2009, Tony Hoare hyperbolically apologized for "inventing" the null reference:[26] [27]
"I call it my billion-dollar mistake. It was the invention of the null reference in 1965. At that time, I was designing the first comprehensive type system for references in an object oriented language (ALGOL W). My goal was to ensure that all use of references should be absolutely safe, with checking performed automatically by the compiler. But I couldn't resist the temptation to put in a null reference, simply because it was so easy to implement. This has led to innumerable errors, vulnerabilities, and system crashes, which have probably caused a billion dollars of pain and damage in the last forty years.[28]"

Thursday, January 25, 2024

AI, HW: AMD stock?

I'm Buying AMD Over Nvidia Stock in 2024 (Here's Why) - YouTube

"#amd stock is setting up for a great 2024 and might even be a better buy than #nvidia ( #nvda stock ). Before the next AMD earnings call, let's compare AMD and Nvidia in terms of data center GPUs, which they both sell to power Generative AI applications like #chatgpt by #openai and then look at their automotive chips, like the kind AMD sells to #tesla ( #tsla stock ). With Nvidia facing so many supply limitations, the AI and semiconductor markets could be big enough for 2 winning stocks, potentially making AMD stock one of the best stocks to buy now!"




Windows 10 EOL: 2025-10-01

 Microsoft ending support for Windows 10 could send 240 mln PCs to landfills - report | Reuters

Microsoft aims to discontinue support for Windows 10 by October 2025. The next generation of the OS, anticipated to bring advanced artificial intelligence technology to PCs, could potentially boost the sluggish PC market.

Wednesday, January 24, 2024

US: big Solar & Wind power projects

 The US government commits 22 million acres of federal lands for solar - YouTube

The US government opens 22 million acres of federal lands to solar | Electrek


The SunZia Wind Farm: How To Do Greentech Well || Peter Zeihan - YouTube

The largest Greentech power generation system in the hemisphere is under construction in New Mexico. SunZia has raised $11 billion for this project and aims to generate 3.5 gigawatts of wind power for the NM, AZ, and CA energy markets.



SunZia, a massive clean energy project in the US Southwest, has closed $11 billion non-recourse financing and launched full construction.

SunZia Transmission is a 550-mile ± 525 kV high-voltage direct current (HVDC) transmission line between central New Mexico and south-central Arizona. When complete, it will have the capacity to transport 3,000 MW of clean energy.

SunZia Transmission will enable SunZia Wind to supply customers in Arizona and California during early evening hours when demand is high but available renewable energy supply is low.


web: tailwindcss: CSS framework

tailwindlabs/tailwindcss: A utility-first CSS framework for rapid UI development.


A utility-first CSS framework for rapidly building custom user interfaces.



















Tuesday, January 23, 2024

Monday, January 22, 2024

web Tetris vs. trauma

from book: Hidden Potential by Adam Grant 

"After people watch an especially upsetting film clip, over the next week they typically have six or seven disturbing flashbacks. But if they’re randomly assigned to play a few rounds of Tetris right after watching the scene, it cuts their flashbacks in half over the next week. Somehow, the act of rotating, moving, and dropping geometric blocks shields us from intrusive thoughts and aversive emotions"

the Tetris effect illustrates key features of scaffolding
Tetris... changes how your brain constructs mental imagery.
Tetris is effective scaffolding because it helps you bypass a particular challenge
to be effective, the critical period seems to be the next 24 hours

science article @Nature

"...reductions in symptoms of PTSD, depression and anxiety between completion of therapy and follow-up in the Tetris group, but not the control group"


Tetris online: 

DeltaCoderr/Tetris-Game: A Basic Tetris Game made from JavaScript & HTML. @GitHub (MIT)
A Tetris Game made from JavaScript & HTML. Play the game Here.

  • left and right arrow keys: move
  • up arrow key: rotate
  • down arrow key: drop
  • space or digit 2: hard drop
  • SVG Filter — Pixelate

    "retro look"

     SVG Filter — Pixelate


    SVG Pixel Filter

    css - Can one pixelate images with an SVG filter? - Stack Overflow

    Sunday, January 21, 2024

    Preact: mini React

    Learn Preact | Preact: Fast 3kb React alternative with the same ES6 API. Components & Virtual DOM.

    The simplest answer is that Preact provides the tools needed to construct complex web applications out of small reusable pieces called Components. What makes Preact unique is that it provides these tools in a uniquely small package: just 3kb of JavaScript code,

    preactjs/preact: ⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM. @GitHub (MIT license)

    Getting Started | Preact: Fast 3kb React alternative with the same ES6 API. Components & Virtual DOM.


    Preact vs. React | Syncfusion Blogs

    If performance, speed, and size of the application are important factors to you, Preact is the ideal option. It is mainly utilized to create advanced web apps. For instance, Uber moved to Preact in production to make its PWA lightweight and powerful.

    The primary difference between React and Preact is that React uses synthetic events, which are wrapped around the actual events that React has added to make all the events work seamlessly across all browsers.
    Preact has discarded these for their performance and code-size issues.
    It registers event handlers using the browser’s standard addEventListener. Event nomenclature and behavior are identical to those of simple JavaScript/DOM.


    Saturday, January 20, 2024

    Cloudflare workers + AI: the next "Heroku"?

    Heroku was "famous" for enabling developers to deploy apps in minutes.
    With tech changes and re-focus to (parent comp) Salesforce's needs,
    now new platforms are emerging, in particular Cloudflare "workers"

    Optimizing for "time to first byte" (app response), 
    as well as "time to first dopamine" (developer reward). 

    There is also "free tier"!

    Clever marketing, as well as good tech, as described in this great interview

    Hanselminutes Technology Podcast - Fresh Air and Fresh Perspectives for Developers - Building a better internet with Cloudflare's Rita Kozlov


    Cloudflare - The Web Performance & Security Company | Cloudflare

    Cloudflare Developer Platform Product Offering | Cloudflare

    Cloudflare Workers | Build and deploy code with Easy-to Use Developer Tools | Cloudflare

    Cloudflare Workers® (based on JS V8 engine)

    Write in JS, Rust, C, and C++

    Cloudflare + AI

    Our Plans | Pricing | Cloudflare


    Rita Kozlov | LinkedIn


    Friday, January 19, 2024

    Amazon to sell Hyundai vehicles online

     Can Amazon And Hyundai Solve Online Car Sales? - YouTube

    Amazon to sell Hyundai vehicles online starting in 2024 | Reuters

    Hyundai set up its first digital showroom on Amazon in 2018.

    The latest version was announced at the Los Angeles Auto Show.
    The new agreement also will enable buyers of new Hyundai vehicles in 2025 to access Amazon's Alexa voice assistant from their cars.







    VS Code with Docker container

    Containers are very convenient way to package "standardized" development environment, 
    and to speed up process of configuring dev environment.  
    Just pull and run image from docker hub!

    In particular on Windows this is helpful, since some of dev tools are only available on Linux.
    And Docker containers are based on Linux most of the time.

    With minimum setup the container could be used directly from VS Code,
    looking and working same as "native" OS environment, and more secure, too!

     Developing inside a Container using Visual Studio Code Remote Development

    The Visual Studio Code Dev Containers extension lets you use a container as a full-featured development environment. It allows you to open any folder inside (or mounted into) a container and take advantage of Visual Studio Code's full feature set.

    Wednesday, January 17, 2024

    htmx, web platform?

    many good links from podcast

    htmx: a new old way to build the web with Carson Gross & Alex Russell (JS Party #307) |> Changelog

    </> htmx - high power tools for html (htmx.org)

    Previous Changelog interviews with Carson Gross on htmx:


     </> htmx ~ Is htmx Just Another JavaScript Framework?

    "while htmx can be used as a framework, it’s a framework that deviates far less from the web’s semantics than the JavaScript frameworks do, and will benefit from improvements in those semantics with no additional work from the user, thanks to the web’s excellent backwards compatibility guarantees. If you want to build a website that lasts for a long time, these qualities make htmx a substantially better bet than many of its contemporaries."

    Getting Started With HTMX: A Comprehensive Guide for Beginners – 7.dev

    htmx in 100 seconds - YouTube

    The Most Important Lesson From HTMX - YouTube

    GoLang + SQLite, without CGo

     Zombie Zen - zombiezen.com/go/sqlite reaches 1.0

    CGo-less SQLite Go package, zombiezen.com/go/sqlite, has finally reached version 1.0

    This package provides a low-level Go interface to SQLite 3. It is a fork of crawshaw.io/sqlite that uses modernc.org/sqlite, a CGo-free SQLite package. It aims to be a mostly drop-in replacement for crawshaw.io/sqlite.

    This package deliberately does not provide a database/sql driver. See David Crawshaw's rationale for an in-depth explanation. If you want to use database/sql with SQLite without CGo, use modernc.org/sqlite directly.

    pure Go, no C

    • Full SQLite functionality via modernc.org/sqlite, an automatically generated translation of the original C source code of SQLite into Go


    Package sqlite is a cgo-free port of SQLite. Although you could see mattn's driver (github.com/mattn/go-sqlite3) in go.mod file, we import it for tests only.

    SQLite is an in-process implementation of a self-contained, serverless, zero-configuration, transactional SQL database engine.




    Most people use the mattn/go-sqlite3 package to interact with SQLite in Go. This package uses cgo and bundles the SQLite C amalgamation files with the Go source.

    But Go developers often prefer not to use cgo (see for example cgo is not go). I mention this because there happens to be an underrated translation of SQLite's C source code to Go. Since it is a translation of C to Go, you don't need to use cgo to call into it. Some developers find this idea compelling. And this Go translation is an impressive work in and of itself.



    Package sqlite is a cgo-free port of SQLite. Although you could see mattn's driver (github.com/mattn/go-sqlite3) in go.mod file, we import it for tests only.

    SQLite is an in-process implementation of a self-contained, serverless, zero-configuration, transactional SQL database engine.

    Go and SQLite: when database/sql chafes
     2018-04-02, David Crawshaw

    The Go standard library includes database/sql, a generic SQL interface. It does a good job of doing exactly what it says it does, providing a generic interface to various SQL database servers. Sometimes that is what you want. Sometimes it is not.

    Generic and simple usually means lowest-common-denominator. Fancy database features, or even relatively common but not widely used features, like nested transactions, are not well supported. And if your SQL database is conceptually different from the norm, it can get awkward.


    Using SQLite from Go

    • pkg.go.dev/modernc.org/sqlite: I choose this package because it’s a cgo-free Go implementation of SQLite. Thus, installing it doesn’t require you to have a working C compiler, to start with. What’s interesting is this bit of text from the sqlite website:

      SQLite is a C-language library …

      Thus, modernc.org/sqlite is a Go implementation of SQLite.

    ISC vs. MIT license