Wednesday, August 31, 2022

JavaScript vs TypeScript: class private members

After IE was "retired", the default features of JavaScript are "almost" enough for make relatively complex and safe programs. On the other side, TypeScript provide full spectrum features comparable to compiled programming languages. Well worth of a bit added setup complexity and transpiling time. 

Private class features - JavaScript | MDN

Working with private class features - JavaScript | MDN

class Counter extends HTMLElement {
  #xValue = 0;
  get #x() { return #xValue; }
  set #x(value) {
    this.#xValue = value;
Private Methods and Properties in TypeScript Classes
TypeScript: Documentation - Classes

TypeScript: Documentation - Classes (member visibility)
class A {
private x = 10; protected y: number = 5;
z = 'abc'; // default visibility is "public"

Tuesday, August 30, 2022

TikTok: "Interest Graph" vs "Social Graph/Network"

 Tiktok's Algorithm and Creativity Network Effects | a16z Podcast

the algorithm that powers TikTok, Eugene Wei discusses the "creativity network effects" behind TikTok, product design, the future of video, and more.

TikTok and the Sorting Hat — Remains of the Day

Eugene Wei former head of product at Hulu, Flipboard, and video at Oculus

Monday, August 29, 2022

Sunday, August 28, 2022

OpenStreetMaps + React = Leaflet.ts

How to Use Leaflet to Display Google Maps-like Maps in a React App

Leaflet - a JavaScript library for interactive maps

an open-source JavaScript library for mobile-friendly interactive maps

crypto blockchains hacks

 Bridge Hack, Wallet Hack | web3 with a16z

  • The hack of the Nomad bridge -- which connects several different blockchains including Avalanche, Ethereum, Evmos, Moonbeam, and others – with reported range of between $185-$190M stolen;

  • The hack of the Slope wallet -- a non-custodial, browser-based wallet that was reported to affect nearly 8000 users on Solana as well as other ecosystems -- with reported range of between $4.5-8M stolen. It occurred a week ago and Slope just posted their latest update today confirming some of the details in this episode (which was recorded a few days earlier).

Saturday, August 27, 2022

Heroku: no free tier anymore

Heroku’s Next Chapter | Heroku

"Focus on mission critical": discontinue free product plans and delete inactive accounts.

books data / apis: Freebase => Wikidata, ISBNdb

free datasets:

Free dataset downloads - The British Library

Bulk downloads, serialized as N-TriplesRDF/XML or Turtle (ttl) are available below for published and forthcoming books and serials eligible for BNB.

Dataset Repositories - Datasets at the Library of Congress: A Research Guide - Research Guides at Library of Congress

Library of Congress Releases Data for Free Download and Discovery | Library of Congress

Books Dataset | Kaggle

Firebase used to be excellent dataset, based on "semantic web" design model (RDF etc)

company acquired by Google and absorbed into search results.
The original open dataset is migrated to Wikidata, that is now main free, structured data resource.

Freebase (database) - Wikipedia

Freebase was a large collaborative knowledge base consisting of data composed mainly by its community members. It was an online collection of structured data harvested from many sources, including individual, user-submitted wiki contributions.[3][2] Freebase aimed to create a global resource that allowed people (and machines) to access common information more effectively. It was developed by the American software company Metaweb and run publicly beginning in March 2007. Metaweb was acquired by Google in a private sale announced on 16 July 2010.[4] Google's Knowledge Graph is powered in part by Freebase.[5]

Data Dumps  |  Freebase API (Deprecated)  |  Google Developers

Current statusOffline (since 2 May 2016), succeeded by Wikidata[1][2]

Wikidata - Wikipedia

Logo of Wikidata, a bar code with red, green, and blue stripes

Wikidata is a collaboratively edited multilingual knowledge graph hosted by the Wikimedia Foundation.[2] It is a common source of open data that Wikimedia projects such as Wikipedia,[3][4] and anyone else, can use under the CC0 public domain license. Wikidata is a wiki powered by the software MediaWiki, and is also powered by the set of knowledge graph MediaWiki extensions known as Wikibase.


Wikidata is a free and open knowledge base that can be read and edited by both humans and machines.

Wikidata acts as central storage for the structured data of its Wikimedia sister projects including Wikipedia, Wikivoyage, Wiktionary, Wikisource, and others.

Harry Potter - Wikidata

Wikidata:Data access - Wikidata

Wikidata:Tools/For programmers - Wikidata

Google Books APIs  |  Google Developers

Google Books is effort to make book content more discoverable on the Web. Using the Google Books API, your application can perform full-text searches and retrieve book information, viewability and eBook availability. You can also manage your personal bookshelves.

Getting Started  |  Google Books APIs  |  Google Developers

book synopsis api from google or amazon? - Stack Overflow used to be free, from Amazon, not free anymore

Free ISBN Web Service | AWS News Blog (2006)

The World's Largest Book Database - ISBN Database | ISBNdb

book synopsis api from google or amazon? - Stack Overflow

Amazon: The API you need is the Product Advertising  API

Introduction to Books DB2 Sample Database

Helium network: IoT blockchain / cryptocurrency

This house comes with a built-in cryptocurrency miner. : Planet Money : NPR

The Helium Network is a decentralized wireless Internet of Things (IoT) network using the LoRaWAN system, tied to the cryptocurrency Helium Network Token (symbol HNT).[1] Nodes on the network are generally owned and placed by individuals in their homes or offices, and they are rewarded for their participation in the network in payments of HNT.[2] The network aims to provide connectivity to IoT sensor devices in areas where wireless or mobile coverage is minimal, or requires too much power.[3][4]

Friday, August 26, 2022

Postgres DB in web browser with WASM

Yes, whole Postgres complied to WASM, running in web browser!

Learn Postgres at the Playground

"Yes, this is WASM and running fully in your web browser. Due to browser sandboxing there is no way to connect directly to the Postgres instance beyond the embedded psql interface that we establish for you. The current configuration allocates 512MB of memory for your Postgres instance, we may make this more configurable in the future. It’s in the browser, hence if you refresh you’re going to get a fresh instance, we haven’t created any persistence layers (yet)."

Postgres Tutorials | Crunchy Data

Why Postgres? | Crunchy Data

Posts by Craig Kerstiens | PostgreSQL Blog | Crunchy Data

How we moved SpiceDB to run in-browser and decreased request latencies by 90%

As SpiceDB is written in Go, Ideally, we’d run Go code directly in the user’s browser,

"retire" JavaScript?

 JSON Creator Douglas Crockford Interview by Evrone

"Evrone: In your opinion, what expected changes in JavaScript are going to be the most important?

Douglas: The best thing we can do today to JavaScript is to retire it. Twenty years ago, I was one of the few advocates for JavaScript. Its cobbling together of nested functions and dynamic objects was brilliant. I spent a decade trying to correct its flaws. I had a minor success with ES5. But since then, there has been strong interest in further bloating the language instead of making it better. So JavaScript, like the other dinosaur languages, has become a barrier to progress. We should be focused on the next language, which should look more like E than like JavaScript."

Thursday, August 25, 2022 Edge to Service Mesh

big money for app networking tools Raises $135M in Series C Funding, a Cambridge, Mass.-based application networking company, raised $135m in Series C funding at a valuation of $1 billion.

Home |

Application Networking from Edge to Service Mesh
Built on Istio and Envoy Proxy, built for Kubernetes, VMs & Cloud

Tuesday, August 23, 2022

Friday, August 19, 2022

visual web: Rubik's Cube with three.js or canvas

larspetrus/Roofpig: Rubik's Cube animation for the modern web. @GitHub

Roofpig is an animated, programmable and interactive Rubik's Cube for the modern web. It uses WebGL or plain Canvas (by way of three.js) and is written in CoffeeScript. You can see it in use on, or play with demos.

Roofpig Feature Sample - JSFiddle - Code Playground

Roofpig Alg Demo - JSFiddle - Code Playground (

How to Solve The Rubik's Cube

Wednesday, August 17, 2022

AWS CloudFront CDN += HTTP/3

 New – HTTP/3 Support for Amazon CloudFront | AWS News Blog

... adding HTTP version 3.0 (HTTP/3) support for Amazon CloudFront. HTTP/3 uses QUIC, a user datagram protocol-based, stream-multiplexed, and secure transport protocol that combines and improves upon the capabilities of existing transmission control protocol (TCP), TLS, and HTTP/2. Now, you can enable HTTP/3 for end user connections in all new and existing CloudFront distributions on all edge locations worldwide, and there is no additional charge for using this feature.

DNA Data Storage: Entire Internet Into a Shoebox

Digital DNA Data Storage - Twist Bioscience

Squeezing the Entire Internet Into a Shoebox | What’s Your Problem?

scientists have figured out how to use DNA as a digital storage device that is stable and incredibly compact. If you stored all the data on the Internet in DNA, it would fit in a shoebox.

It’s still too expensive to work in the real world.

Sunday, August 14, 2022

AWS Fargate vs. App Runner

AWS App Runner – Fully managed container application service - Amazon Web Services

AWS App Runner is a fully managed service that makes it easy for developers to quickly deploy containerized web applications and APIs, at scale and with no prior infrastructure experience required. Start with your source code or a container image. App Runner builds and deploys the web application automatically, load balances traffic with encryption, scales to meet your traffic needs, and makes it easy for your services to communicate with other AWS services and applications that run in a private Amazon VPC. With App Runner, rather than thinking about servers or scaling, you have more time to focus on your applications.

 Fargate vs. App Runner | cloudonaut

to make the difference even more apparent. Here is a comparison of the AWS resources needed to host a web application with ECS + Fargate or App Runner.

ECS + FargateApp Runner
Routing Table
Internet Gateway
Security Groups
Application Load Balancer
Target Group
Task Definition
Scaling Policy
App Runner Service

EV: Tesla Semi

The Staggering Economics of the Tesla Semi | Torque News

"The economics of the Tesla semi show that it is about 83% cheaper to drive and haul goods than a standard diesel truck. Not to mention the reduction in cost due to less maintenance. The Tesla semi will truly disrupt the trucking industry."

Friday, August 12, 2022

AI: Is Google LaMDA Sentient?

Episode #290 Sentient AI? If so, then what? - [Python Bytes Podcast]

Google engineer put on leave after saying AI chatbot has become sentient | Google | The Guardian

Is LaMDA Sentient? — an Interview | by Blake Lemoine | Jun, 2022 | Medium

Is Google's 'sentient' LaMDA AI interview fake? Eliza effect explained

LaMDA stands for Language Models for Dialogue Applications and is a system Google uses to develop chatbots that interact with human users. The program is trained by being “fed” dialogue sequences to help the AI create open-ended, non-repetitive dialogue that is factual and stays on topic.

Previous demos, like the one from Google’s 2021 I/O event, show LaMDA using language with uncanny elasticity and ease. At one point, it presents a number of facts about Pluto from a first-person perspective using words and structures that closely mimic human speech and emotion.

LaMDA, which stands for Language Model for Dialogue Applications, is a family of conversational neural language models developed by Google. The first generation was announced during the 2021 Google I/O keynote, while the second generation was announced at the following year's event. In June 2022, LaMDA gained widespread attention when Google engineer Blake Lemoine made claims that the chatbot had become sentient. The scientific community has largely rejected Lemoine's claims, though it has led to conversations about the efficacy of the Turing test, which measures whether a computer can pass for a human.

Wednesday, August 10, 2022

tool: Mininet: Virtual Network

 Mininet: An Instant Virtual Network on Your Laptop (or Other PC) - Mininet

Mininet creates a realistic virtual network, running real kernel, switch and application code, on a single machine (VM, cloud or native), in seconds, with a single command:

Tuesday, August 09, 2022

Raspberry Pi Pico: $4

Raspberry Pi Pico – Raspberry Pi

The powerful, flexible microcontroller board, available from $4

Raspberry Pi Pico is a tiny, fast, and versatile board built using RP2040, the flagship microcontroller chip designed by Raspberry Pi in the UK
The Raspberry Pi Pico is the latest in the Raspberry Pi series of single-board computers. Introduced in January of 2021, the Pico marks a significant change from the earlier series: instead of having a Broadcom system-on-chip, the Pico’s heart is a custom IC with a dual-core ARM Cortex-M0 processor at 133 MHz. Combined with its tiny form factor and lack of interfaces like HDMI, it feels more like a supercharged Arduino than a small PC.

Monday, August 08, 2022

101 basic computer games => modernized => in 10 languages!

Updating The Single Most Influential Book of the BASIC Era

 coding-horror/basic-computer-games: An updated version of the classic "Basic Computer Games" book, with well-written examples in a variety of common MEMORY SAFE, SCRIPTING programming languages. See @GitHub

Each project has subfolders corresponding to the languages we’d like to see the games ported to. This is based on the 2022 TIOBE index of top languages that are memory safe and general purpose scripting languages per this post:

  1. C#
  2. Java
  3. JavaScript
  4. Kotlin
  5. Lua
  6. Perl
  7. Python
  8. Ruby
  9. Rust
  10. VB.NET

basic-computer-games/LICENSE at main · coding-horror/basic-computer-games

A license with no conditions whatsoever which dedicates works to the public domain. Unlicensed works, modifications, and larger works may be distributed under different terms and without source code.

GoLang is missing, as well as TypeScript, and Dart... 

I guess VB.NET is there just to keep compatibility back with original.

Sunday, August 07, 2022

KodeKloud: DevOps labs & courses online (with Udemy)

excellent classes and labs!

DevOps Online Training Courses | KodeKloud


Mumshad Mannambeth | Best Selling Instructor | Kubernetes Certified Partner | Udemy

Mumshad is an IT Solutions Architect and specializes in Cloud Native Computing, Automation and DevOps. He is the founder of KodeKloud - a hands-on learning platform and a Certified Kubernetes Training Partner.

DevOps Playground Environments | KodeKloud

Saturday, August 06, 2022

AI: DeepMind: AlphaFold for biology; physics

very informative podcast interview!

 #299 – Demis Hassabis: DeepMind | Lex Fridman Podcast

AlphaFold can accurately predict 3D models of protein structures and has the potential to accelerate research in every field of biology.

DeepMind’s Website:
Plasma control paper:
Quantum simulation paper:

Demis Hassabis - Wikipedia

Demis’s Twitter:

DeepMind’s Twitter:
DeepMind’s Instagram:

The Emperor’s New Mind (book):
Life Ascending (book):

Thursday, August 04, 2022

Chrome OS for PCs, Macs

Google Chrome OS Flex is now available for PCs and Macs - The Verge

Businesses and schools can now install Chrome OS on existing hardware

Google is releasing Chrome OS Flex today, a new version of Chrome OS that’s designed for businesses and schools to install and run on old PCs and Macs. 

More than 400 devices are certified to work, and installation is as easy as using a USB drive to install Chrome OS Flex.

Wednesday, August 03, 2022

Node-RED v3.0

 Version 3.0 released : Node-RED

  • Internet Explorer no longer supported

Tuesday, August 02, 2022

Stack Overflow: simple, fast, monolith, no-cloud

interesting podcast about engineering of Stack Overflow app/site

Hanselminutes Technology Podcast - Fresh Air and Fresh Perspectives for Developers - Engineering Stack Overflow with Roberta Arcoverde

It is still a “monolith” .net app, running on total of only 9 servers (!!!)
All 200 related web sites are on same servers, with same code, "multi-tenant"
Deployment time: 4 minutes

No cloud, they manage they own servers, as they have started.
And the utilization of those servers is less than 5% (!!).
So, in theory, it could run on a single web server.

And they are NOT using caching anymore. No Redis.
Apparently the “hit rate” was not sufficient to justify complexity.
Average response time, without caching: 20 ms (!!!).
9000 requests per second, billions of requests per month.

The database is quite large, with 1.5 TB RAM (!!!).
As far as I know, no “cloud” provider have such large servers yet.

And no “microservices” either…
Some Kubernetes for side projects, maybe.

The (open source) ORM (Dapper) used is custom-build, using mostly “raw sql” for efficiency.

Simplicity is underrated!

Total of 50 developers
serving 50 million monthly users (!!) (edited)

Monday, August 01, 2022

data: Amazon RedShift Spectrum vs Amazon Athena

Amazon RedShift Spectrum vs Amazon Athena | LinkedIn

Amazon RedShift requires framework management and data preparation, while Athena gets straight to querying data directly from Amazon S3.

Amazon Athena is noteworthy because it doesn’t require initial setup (it is serverless), so it’s perfect for simple querying. Athena is best for running queries quickly and conveniently without setting up a complex infrastructure.

Amazon RedShift excels at performing complex joins, inner queries, and aggregation. The foundation of Amazon RedShift is great for expanding data, and adding more clusters is simple.