Ubuntu 21.10 Updated 2025-07-16
GDM crashes sometimes when switching windows right after opening a new window: bugs.launchpad.net/ubuntu/+source/gdm/+bug/1956299
WebGL Updated 2025-07-16
HTML snippet:
new class extends OurbigbookCanvasDemo {
init() {
super.init('webgl', {context_type: 'webgl'});
this.ctx.viewport(0, 0, this.ctx.drawingBufferWidth, this.ctx.drawingBufferHeight);
this.ctx.clearColor(0.0, 0.0, 0.0, 1.0);
this.vertexShaderSource = `
#version 100
precision highp float;
attribute float position;
void main() {
gl_Position = vec4(position, 0.0, 0.0, 1.0);
gl_PointSize = 64.0;
}
`;
this.fragmentShaderSource = `
#version 100
precision mediump float;
void main() {
gl_FragColor = vec4(0.18, 0.0, 0.34, 1.0);
}
`;
this.vertexShader = this.ctx.createShader(this.ctx.VERTEX_SHADER);
this.ctx.shaderSource(this.vertexShader, this.vertexShaderSource);
this.ctx.compileShader(this.vertexShader);
this.fragmentShader = this.ctx.createShader(this.ctx.FRAGMENT_SHADER);
this.ctx.shaderSource(this.fragmentShader, this.fragmentShaderSource);
this.ctx.compileShader(this.fragmentShader);
this.program = this.ctx.createProgram();
this.ctx.attachShader(this.program, this.vertexShader);
this.ctx.attachShader(this.program, this.fragmentShader);
this.ctx.linkProgram(this.program);
this.ctx.detachShader(this.program, this.vertexShader);
this.ctx.detachShader(this.program, this.fragmentShader);
this.ctx.deleteShader(this.vertexShader);
this.ctx.deleteShader(this.fragmentShader);
if (!this.ctx.getProgramParameter(this.program, this.ctx.LINK_STATUS)) {
console.log('error ' + this.ctx.getProgramInfoLog(this.program));
return;
}
this.ctx.enableVertexAttribArray(0);
var buffer = this.ctx.createBuffer();
this.ctx.bindBuffer(this.ctx.ARRAY_BUFFER, buffer);
this.ctx.vertexAttribPointer(0, 1, this.ctx.FLOAT, false, 0, 0);
this.ctx.useProgram(this.program);
}
draw() {
this.ctx.clear(this.ctx.COLOR_BUFFER_BIT);
this.ctx.bufferData(this.ctx.ARRAY_BUFFER, new Float32Array([Math.sin(this.time / 60.0)]), this.ctx.STATIC_DRAW);
this.ctx.drawArrays(this.ctx.POINTS, 0, 1);
}
}
webpack Updated 2025-07-16
Webpack is like a magic hydra that can eat any type of file and bundle it into a single output: .js, .ts, .ccs, .scss, .jsx, .tsx,
require
, import
, import
css from .js
, it doesn't matter at all, it just digests all into the same dump.When it works, you are just left in awe and with a single Js file. When it doesn't, you're fucked and have to debug for several hours.
Demos under: webpack/. To run all of them by default:To easily make changes and reload the .js output live let this run on a terminal:
cd webpack/min
npm install
npm run build
xdg-open index.html
npx webpack watch
Examples:
- webpack/min: minimal hello world. Doesn't do much, just copies
index.js
todist/index.js
. - webpack/require:
require
andimport
demo. Both work from the same file.dist/index.js
now contains all of:notindex.js
notindex2.js
- Lodash, a common third-party helper library specified in the package.json and installed with npm
- webpack/node: produce Node.js output, as opposed to the default web output. To test it run:Achieved simply with:
npm run build node dist/index.js
as documented at: webpack.js.org/concepts/targets/target: 'node'Fatman in Robin,
- webpack/sequelize: attempts at getting Sequelize to work with webpack. It's just not supported by Sequelize:
Power supply Updated 2025-07-16
Electric battery Updated 2025-07-16
Inductor Updated 2025-07-16
It resists to change in electric current. Well seen at: Video "LC circuit by Eugene Khutoryansky (2016)".
Website stack Updated 2025-07-16
Light-emitting diode Updated 2025-07-16
How LEDs work by VirtualBrain
. Source. 2021. Good 3d schematics clearly explaining part of the LED electronic package. Luboš Motl Updated 2025-07-16
physicist with lots of focus on politically incorrect/Right wing stuff:
- motls.blogspot.com/ his blog
- physics.stackexchange.com/users/1236/lubo%c5%a1-motl he has lots of contributions to Physics Stack Exchange
- settheory.net/crackpot-physics: some comments about him from settheory.net
Project to explain each Nobel Prize better Updated 2025-07-16
Understand and explain amazingly every single Nobel Prize in physics, chemistry and biology. Since in particular the Nobel Foundation is unable to do that for any at all, especially of the key old ones, e.g. www.nobelprize.org/prizes/physics/1965/summary/. Hopeless.
To be fair, those in theoretical physics at least basically come down to reading a bunch of books. But perhaps anything slightly more experimental could have
Argument from authority Updated 2025-07-16
Carbon-14 Updated 2025-07-16
Histone Updated 2025-07-16
These are apparenty an important part of transcriptional regulation given the number of modifications they can undergo! Quite exciting.
Open Textbook Library Updated 2025-07-16
D Updated 2025-07-16
Senior Wrangler Updated 2025-07-16
Formal system Updated 2025-07-16
Lie group bibliography Updated 2025-07-16
Wooden spoon (award) Updated 2025-07-16
x86 Paging Tutorial Intel manual Updated 2025-07-16
Although it is impossible to understand without examples in mind, try to get familiar with the manuals as soon as possible.
Intel describes paging in the Intel Manual Volume 3 System Programming Guide - 325384-056US September 2015 Chapter 4 "Paging".
Specially interesting is Figure 4-4 "Formats of CR3 and Paging-Structure Entries with 32-Bit Paging", which gives the key data structures.
There are unlisted articles, also show them or only show them.