Tom Gidden

@tomgidden
47 Followers
73 Following
82 Posts
Geek. Co-edits @dailydingbats. Plays with RPi, IoT, NodeJS, Minecraft and stuff.
Bloghttps://gidden.net/
#bbcmicrobot DIMn(321),c(321),a(2):MO.1:F.Y%=0TO255:a(0)=3.4+.9*Y%/256:F.X%=0TO321:c(X%)=n(X%):n(X%)=0:N.:e=0:F.X%=0TO319:a(1)=2.5+X%/320:z=0:c=.5:R%=15:M%=8:F.J%=1TO10:r=a(R%AND1):R%=R%DIV2:M%=M%-1:IFM%=0THENR%=Q%:M%=L%
c=r*c*(1-c):r=ABS(r-2*r*c):z=z+LOG(r):N.:v=-z*1.4+3+e+c(X%):IFv<0THENv=0ELSEIFv>6THENv=6
V%=v+.5:IFV%<0THENV%=0ELSEIFV%>6THENV%=6
E=v-V%:e=E*.44:IFX%THENn(X%-1)=n(X%-1)+E*.19
n(X%)=n(X%)+E*.31:IFX%<320THENn(X%+1)=n(X%+1)+E*.06
GC.0,V%:PL.69,X%*4,Y%*4:N.:N.

Woke up with a bad headache.

Literally and apparently metaphorically.

@gingerbeardman Squishificator 2000™, surely. Some people just don't get marketing, I guess.

MacOS thing I just learned: 1 ⌥⇧1 2 : 1⁄2.

It doesn't work in all apps, but does seem to work in Chrome, Firefox, Notion. And in other apps, eg. Notes app, Mail app it returns something that when pasted into Chrome will result in the fraction. It's U+2044 FRACTION SLASH.

To answer the second part, I figured that out shortly after: MQTT. Use MQTT.js to talk to a public free MQTT test server -- as this is low bandwidth, low security, low importance -- and pass info that way.

I got it working in "multiplayer", pretty much by sharing the random number generator seed and then sharing key presses. State synchronisation's faulty, so I wouldn't call it done, but it's there.

Wondering if I should bother fixing it.

I was bored, so I ported BARRAGE from the BBC Micro to JavaScript.

http://barrage.gidden.net

(BTW, is there such a thing as a WebSocket reflector or something like that, to do cheap, lightweight comms between two browsers? Want to make this two-player online without having to setup a server...)

#retrogaming #bbcmicro

Just spent two hours troubleshooting why a Pimoroni Pico Audio + Pico Lipo set up as a BT a2dp sink (to turn my nineties boombox into a BT speaker) wasn't appearing at all.

Then I realised it's because the Pico Lipo doesn't have Wifi/BT. *thud*

Replaced with a Pico WH -- no Lipo charging :( -- and suddenly it all works... it's just the "a2dp_sink_demo" example code, unaltered.

Very low noise and no glitching.

@skjeggtroll @NanoRaptor We just cut a hole on the other side, glued a dime on the hub, filed down the corner and flipped it over. The secret Big Floppy never wanted you to know!
@NanoRaptor and ironically, quarter-inch reel-to-reel tapes were originally slot loading.
@gilest I once wrote an app called "Space Honker" that made an old-style AWOOOOGA klaxon sound at full volume every time I typed dot-space-space.