
Episode 32: Jeff's Spygames... and more...
Jeff finds a spycam in his house...
March 15, 202150m 57s
Audio is streamed directly from the publisher (aphid.fireside.fm) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.
Show Notes
Jeff finds a spycam in his house...
Pics:
https://photos.smugmug.com/photos/i-3TNJDdR/0/7a1c0f79/4K/i-3TNJDdR-4K.jpg
https://photos.smugmug.com/photos/i-2XkJcGL/0/a4e69b53/4K/i-2XkJcGL-4K.jpg
https://photos.smugmug.com/photos/i-kf4ngmC/0/413f7fb1/4K/i-kf4ngmC-4K.jpg
https://photos.smugmug.com/photos/i-W7H5TwT/0/ae6d64ab/4K/i-W7H5TwT-4K.jpg
https://photos.smugmug.com/photos/i-QFBh738/0/00fd0296/4K/i-QFBh738-4K.jpg
Ulfnic's JS Code information:
What is 0.1 + 0.2? Wrong! It's 0.30000000000000004.
Getting JS to evaluate basic decimal math is a StackOverflow greasy rabbit hole of hacky solutions guaranteed to work for at least a week.
JavaScript needs a 3rd-party 24KB library to accomplish basic decimal math(1), alternatively you can use the new (and not well supported) BigInt() to pretend you're doing decimal math by
string hacking decimal points into super long integers.
(1) https://github.com/MikeMcl/big.js/blob/master/big.js
(2) https://dustinpfister.github.io/2019/09/06/js-bigint/
(3) https://javascriptinfo.com/view/3760151/native-bigint-and-intl-numberformat-for-accurate-currency-calculations-and-display
Steps to to reproduce 0.1 + 0.2:
# Option 1: https://jsconsole.com/
console.log(0.1 + 0.2)
# Option 2: In browser
# ctrl + shift + j # Chromium
# ctrl + shift + k # Firefox
# click on "Console" tab
console.log(0.1 + 0.2)
# Option 3: NodeJS
nodejs -e "console.log(0.1 + 0.2)"
Topics
spy camerasurveillancejavascriptfeedback386486286pentiumold hardwareecmascriptretroelectronvscodeopen sourcelinuxbsdunixdecalphasparcsun