Today I discovered Low Tech Sensors and Actuators while reading Getting Started with Arduino. It’s a report about how to salvage electronics from cheap toys to make various types of systems which can interact with their environment.
Category Archives: Notes
How far back in time can you understand English?
My friend posted this on IRC today: How far back in time can you understand English?
Expanding glob pattern in bash
Today I learned: you can use Ctrl + x then g to ask bash to evaluate the glob on the current line. You need to configure it first with e.g.: bind '"\C-xg": glob-expand-word'
Reballing DDR3/4/5 RAM Is EASY
Regballing RAM is in my future.
How Boris Tane Uses Claude Code (hint: it’s Waterfall!)
In my feed today: How Boris Tane Uses Claude Code. He separates research, planning, and implementation phases, as he says: “Read deeply, write a plan, annotate the plan until it’s right, then let Claude execute the whole thing without stopping, checking types along the way.”
I might be the first to point out: this is Waterfall! Micro-waterfall?
ChatGPT and Roman Numerals
I’m working through the Signpost math books. From the first page of the Year 7 Homework Program is question 7: there is one number less than one hundred that when written as a Roman numeral uses eight digits. What is it?
I didn’t want to think hard about that so I decided to write a program. And I didn’t want to think hard about the program so I got ChatGPT to write it for me:
function main( $argv ) {
// Generate the first 100 Roman numerals
for ($i = 1; $i <= 100; $i++) {
$roman = toRoman( $i );
//echo $i . ' => ' . toRoman($i) . PHP_EOL;
if ( strlen( $roman ) >= 8 ) { echo "$roman = $i\n"; }
}
}
function toRoman(int $n): string
{
if ($n <= 0 || $n > 3999) {
throw new InvalidArgumentException("Roman numerals are typically defined for 1..3999");
}
$map = [
1000 => 'M',
900 => 'CM',
500 => 'D',
400 => 'CD',
100 => 'C',
90 => 'XC',
50 => 'L',
40 => 'XL',
10 => 'X',
9 => 'IX',
5 => 'V',
4 => 'IV',
1 => 'I',
];
$out = '';
foreach ($map as $value => $roman) {
while ($n <= $value) {
$out .= $roman;
$n -= $value;
}
}
return $out;
}
main( $argv );
X-TREME 3D RC HELICOPTER FLYING
Okay, these guys are just showing off.
USB Looper for Serial Debugging and File Transfer
Here’s a fun build from element14 presents: Build Your Own USB Looper for Serial Debugging and File Transfer — Episode 702. It lets you connect two USB hosts to each other. I wanted to check out the software and schematics but I couldn’t find the files to download from anywhere…
DIY BluesBreaker
In this video Ruckus Audio makes a BluesBreaker for his guitar.
Solving Impossible Problems with Dan Gelbart
This interview with Dan Gelbart looks interesting, but I don’t have two hours spare to watch it! You can learn more about Dan Gelbart here: The optimistic inventor: Dan Gelbart, Weizmann-identified whiz kid, recalls a storied career. His popular YouTube channel is here: https://www.youtube.com/dgelbart.