- Needs a registry hack to stop audio pops.
- Windows 11 TTS stops working randomly.
- 64-bit Windows 10 Home version 1909 build 18363.900 (and probably 11) lacks audio enhancement tab. Turns out MSI decided to change that to Realtek Audio Console, Sound Effects, Nahimic, Effects ON, Volume Stabilizer.
- Audio mixer sucks since 11. Doesn't show the Xbox game bar making noise, eg https://www.youtube.com/watch?v=uNCQzwPptbA
- Settings app fails at volume mixer and Bluetooth settings, unlike the settings popup from the systray.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -e '"$RANDOM returns a pseudorandom integer between 0 and 32767" - False.' | |
(( r = 1 )) | |
until ((r <= 0 || r >= 32767)) | |
do | |
(( r = $RANDOM )) | |
done | |
echo -e "$r.\nSemicolons replace newlines:" | |
(( r = 5)); while ((r < 10)); do echo $r; (( r ++ )); done | |
echo "Ranges include end:" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate a 440 Hz square waveform in Pygame by building an array of samples and play | |
# it for 5 seconds. Change the hard-coded 440 to another value to generate a different | |
# pitch. | |
# | |
# Run with the following command: | |
# python pygame-play-tone.py | |
from array import array | |
from time import sleep |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node { | |
echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
echo 'No quotes, pipeline command in single quotes' | |
sh 'echo $BUILD_NUMBER' // 1 | |
echo 'Double quotes are silently dropped' | |
sh 'echo "$BUILD_NUMBER"' // 1 | |
echo 'Even escaped with a single backslash they are dropped' | |
sh 'echo \"$BUILD_NUMBER\"' // 1 | |
echo 'Using two backslashes, the quotes are preserved' | |
sh 'echo \\"$BUILD_NUMBER\\"' // "1" |
If you don't learn from the past you're doomed to repeat it.
- Dell
- Latitude 5501 sounds even worse than my MSI MS-16P7 due to ratting its plastic case. Interviews sound like a poor phone connection. Iron Maiden - Can I Play With Madness on the other hand is tolerable and even has some bass, almost enough for Robbie Williams - Angels, which sounds like a not-quite-tuned FM radio for the vocals (too little power), particularly noticable on U2 - Discotheque. Without "audio enhancements" disabled, its audio jack adds a rumble to videos like this. Worst audio hardware I've ever used, especially playing this. Then again, using my
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding: utf8 | |
""" Simple debugging HTTP server | |
2020-11-20 v1.0 by Cees Timmerman | |
""" | |
import logging | |
from pprint import pformat as pf | |
from flask import Flask, request, make_response | |
app = Flask(__name__) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Euler's pentagonal formula, by Cees Timmerman, 2020-11-23. | |
https://www.youtube.com/watch?v=iJ8pnCO0nTY""" | |
import math | |
def get_lookback_index(x: int): | |
i = 0 | |
a = 0 | |
b = 1 | |
steps = [1] | |
while i < x-1: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from https://fireship.io/lessons/wasm-video-to-gif/ | |
// formatted using prettier --write "src/**/*.{js,jsx}" | |
import React, { useState, useEffect } from 'react'; | |
import './App.css'; | |
import { createFFmpeg, fetchFile } from '@ffmpeg/ffmpeg'; | |
const ffmpeg = createFFmpeg({ log: true }); | |
function App() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"key": "ctrl+f9", | |
"command": "editor.debug.action.goToNextBreakpoint" | |
}, | |
{ | |
"key": "ctrl+shift+f9", | |
"command": "editor.debug.action.goToPreviousBreakpoint" | |
}, | |
{ |
Natural uranium, in FNR 28,000,000 MJ/kg [so 28e9 J/g]
Hard black coal (IEA definition) >23.9 MJ/kg
Hard black coal (Australia & Canada) c. 25 MJ/kg [so 25e3 J/g and 207.25 g/mol according to https://pubchem.ncbi.nlm.nih.gov/compound/1-Anthrylmethanolate]
Sub-bituminous coal (IEA definition) 17.4-23.9 MJ/kg
Sub-bituminous coal (Australia & Canada) c. 18 MJ/kg
Lignite/brown coal (IEA definition) <17.4 MJ/kg