<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0"><channel><title>C[omp]ute</title><link>https://www.acooke.org/cute/</link><description>Andrew Cooke's blog</description><lastBuildDate>Sat, 04 Apr 2026 18:30:03 GMT</lastBuildDate><generator>PyRSS2Gen-1.1.0</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Bread Recipe
</title><link>https://www.acooke.org/cute/BreadRecip0.html
</link><description>
This is for the Moulinex bread machine.  It makes a light, "french"
loaf.  Writing it down here mainly for my own reference.

* Heat water to 40C

* Add 300ml warm water to bread tank

* Add 2tbsp olive oil (gives good taste) and 2tsp salt to tank.

* Mix 2tsp dried yeast and 2tsp sugar with a little water (tbsp or so)
  in a jug and leave to bubble a little while sieving flour.

* Sieve 500g of ...</description><guid isPermaLink="true">BreadRecip0.html
</guid><pubDate>Sat, 04 Apr 2026 18:28:00 GMT</pubDate></item><item><title>a gringo goes to lo vasquez
</title><link>https://www.acooke.org/cute/agringogoe0.html
</link><description>
i'm writing this note partly as a diary, and partly as a guide for
gringos thinking about cycling from santiago to valparaíso when the
roads are closed for the pilgrimage.  i am likely going to describe
things that are really obvious to locals, but might not be as clear to
foreigners.

it is based on my experience riding the route (for the first time) on
december 7, 2025.  here's my strava record...</description><guid isPermaLink="true">agringogoe0.html
</guid><pubDate>Mon, 08 Dec 2025 13:34:00 GMT</pubDate></item><item><title>Simple, Fast Integer-Based Compression Of Digital Audio Signals
</title><link>https://www.acooke.org/cute/SimpleFast0.html
</link><description>
[Maybe this is already known, but I failed to turn up anything with
Google and am pretty pleased with what I dreamt on my own.]

I'm writing software to generate audio signals with an 8 bit DAC and a
relatively weak CPU.  I wanted to add a compressor to the audio chain,
but my initial attempts used slow floating point arithmentic.  Then I
came up with this:

    def compress(n, depth):
      for ...</description><guid isPermaLink="true">SimpleFast0.html
</guid><pubDate>Thu, 02 Oct 2025 18:13:00 GMT</pubDate></item><item><title>Using __not_in_flash_func with templates (pico SDK)
</title><link>https://www.acooke.org/cute/Usingnotin0.html
</link><description>
An obscure fix that maybe google will pick up and pass on to help out
a poor lost soul...

If you're using __not_in_flash_func with multi argument templates then
why the hell are you using templates in an embedded system?  Lol.  But
some of us enjoy a challenge so...

   template&lt;uint A, uint B&gt; void __not_in_flash_func(Class&lt;A, B&gt;func(int p))() {
     ...
   }

does not work.  It does not work b...</description><guid isPermaLink="true">Usingnotin0.html
</guid><pubDate>Thu, 24 Jul 2025 20:12:00 GMT</pubDate></item><item><title>Raspberry Pico 2040 ADC - Take Two
</title><link>https://www.acooke.org/cute/RaspberryP1.html
</link><description>
I've gone down something of a rabbit hole with the corrections for the
Raspberry Pico RP2040 (see the poor DNL data at
https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf for
context).

My initial steps are described in previous posts here that I won't
link to immediately because they were, in retrospect, very
superficial.  Although they did serve to get me to the point where I
had to ...</description><guid isPermaLink="true">RaspberryP1.html
</guid><pubDate>Wed, 23 Jul 2025 21:58:00 GMT</pubDate></item><item><title>Testing Raspberry Pico 2040 ADC Corrections
</title><link>https://www.acooke.org/cute/TestingRas0.html
</link><description>
I previously discussed corrections to improve the ADC of the Raspberry
Pico at https://acooke.org/cute/DNLINLandR0.html

The last few days I've been working on comparing the two corrections
directly, using the Modular System hardware.

More exactly, I am comparing the two corrections with linear trends
removed.  I didn't show these together in the previous post, so look
here to see the expected e...</description><guid isPermaLink="true">TestingRas0.html
</guid><pubDate>Sun, 20 Jul 2025 18:09:00 GMT</pubDate></item><item><title>DNL/INL and Raspberry Pico 2040
</title><link>https://www.acooke.org/cute/DNLINLandR0.html
</link><description>
The Raspberry Pico 2040 has a problem with the ADC.  It's described in
https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf
(see section 4.9.4 and the worrying low ENOB just before).

The DNL and INL in that datasheet are explained at
https://www.allaboutcircuits.com/technical-articles/understanding-analog-to-digital-converter-differential-nonlinearity-dnl-error/

If I've understood cor...</description><guid isPermaLink="true">DNLINLandR0.html
</guid><pubDate>Thu, 10 Jul 2025 20:02:00 GMT</pubDate></item><item><title>Fast integer &amp;lt;-&amp;gt; float conversion
</title><link>https://www.acooke.org/cute/Fastintege0.html
</link><description>
I am writing some (audio) synthesis code for a CPU without fast
division.  Internally, amplitude is described with int16_t, but for
some processes (eg wavefolding) it's useful to switch to floats.
Without fast division this switch could be expensive.  So I started to
prematurely optimize...

I realised that one way to convert between the two was to directly
write to the mantissa part of an IEEE f...</description><guid isPermaLink="true">Fastintege0.html
</guid><pubDate>Tue, 01 Jul 2025 15:27:00 GMT</pubDate></item><item><title>Hello World on Music Thing Modular (from Linux)
</title><link>https://www.acooke.org/cute/HelloWorld0.html
</link><description>
I've just got "hello world" working on the Music Thing Modular (MTM).
Here are a few notes:

- I didn't really follow anyone's instructions or project layout,
  which in retrospect would have made things simpler.

- Instead, I started writing the code I wanted to deploy long before I
  got the machine.  I wrote in emacs and called g++ via a shell script
  to compile.  This worked fine for develop...</description><guid isPermaLink="true">HelloWorld0.html
</guid><pubDate>Thu, 26 Jun 2025 18:11:00 GMT</pubDate></item><item><title>Cycling Mirror
</title><link>https://www.acooke.org/cute/CyclingMir0.html
</link><description>
i bought a cycling mirror (the "take a look" compact model that is
sold on amazon) and tried it today.  here are my first impressions (i
am trying to order them from specific to general):

- it's very well made for something so light and seemingly delicate.
  the mount on my glasses was secure, the adjustments easy, nothing
  moved out of adjustment (even on a road bike on santiago's bumpy
  road...</description><guid isPermaLink="true">CyclingMir0.html
</guid><pubDate>Thu, 10 Apr 2025 19:36:00 GMT</pubDate></item><item><title>Reddit Comment on Fascism + Trump
</title><link>https://www.acooke.org/cute/RedditComm0.html
</link><description>
Loved this and wanted to record it here in case it's deleted later.
Also, I need to sort out this place and get rid of all the spam, I
know.

https://www.reddit.com/r/Professors/comments/1iuqq6y/what_is_the_line_between_paranoia_and_preparedness/me0ejh0/

Credit to DerProfessor https://www.reddit.com/user/DerProfessor


[In response to an acacdemic worrying about the future]

Honestly, I would sa...</description><guid isPermaLink="true">RedditComm0.html
</guid><pubDate>Fri, 21 Feb 2025 16:03:00 GMT</pubDate></item></channel></rss>