--- Log opened Mon Dec 20 00:00:39 2021 |
01:00 | | ErikMesoy [Bruker@Nightstar-5dnqhq.bb.online.no] has quit [Connection reset by peer] |
01:02 | | gizmore [kvirc@Nightstar-r64chs.dip0.t-ipconnect.de] has joined #code |
01:03 | | Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Ping timeout: 121 seconds] |
01:05 | | gizmore|2 [kvirc@Nightstar-vrnhp5.dip0.t-ipconnect.de] has quit [Ping timeout: 121 seconds] |
01:07 | | Kimo|autojoin [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code |
01:07 | | mode/#code [+o Kimo|autojoin] by ChanServ |
01:32 | | Degi_ [Degi@Nightstar-qa9ata.pool.telefonica.de] has joined #code |
01:35 | | Degi [Degi@Nightstar-pub7al.pool.telefonica.de] has quit [Ping timeout: 121 seconds] |
01:35 | | Degi_ is now known as Degi |
02:25 | | * McMartin works through Rust docs, wonders if lifetimes will actually resolve the things he wants to resolve. |
02:25 | <&McMartin> | *inferred |
02:38 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
03:52 | < abudhabi_> | Interfered! |
04:25 | | Kizor [a@Nightstar-nfsqa7.yok.fi] has quit [[NS] Quit: ] |
05:08 | | Kizor [a@Nightstar-nfsqa7.yok.fi] has joined #code |
05:21 | | Vorntastic [uid293981@Nightstar-phvupn.irccloud.com] has joined #code |
05:21 | | mode/#code [+qo Vorntastic Vorntastic] by ChanServ |
05:47 | | abudhabi__ [abudhabi@Nightstar-4v0thu.adsl.tpnet.pl] has joined #code |
05:51 | | abudhabi_ [abudhabi@Nightstar-ifp8t2.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds] |
06:52 | | ErikMesoy [Bruker@Nightstar-5dnqhq.bb.online.no] has joined #code |
06:52 | | mode/#code [+o ErikMesoy] by ChanServ |
11:22 | <@ErikMesoy> | "Password must contain at least 1 digit, 1 lowercase letter, 1 uppercase letter, and 1 special character." raaaaaaaaaaaaaaaaaage |
11:26 | < catalyst> | and user must shout "bingo" when they've got it |
11:52 | | Kimo|autojoin is now known as Kindamoody |
12:15 | <&Reiver> | ErikMesoy: "And be 8-12 characters long" :D |
12:15 | <&Reiver> | Yes, I've actually seen that in the wild. It's... sure a thing to tell me to /shorten/ my passwords, huh |
12:16 | <@ErikMesoy> | Reiver: And be more than 8 characters, in this case. Which I was notified about *separately*. |
12:16 | <&Reiver> | Phenominal. |
12:20 | <&[R]> | My *BANK* had a maximum of 8 characters for password length forever D: |
12:20 | <&[R]> | They've since raised it to 12 |
12:20 | | * gnolam checks if his local totally-not-a-rail-monopoly has changed its password policies. |
12:20 | <@gnolam> | Nope. |
12:20 | <@gnolam> | They still, for maximum security, require you to have at least *two* digits. Because if requiring one makes a password safe, requiring two makes it twice as safe! |
12:28 | <~Vorntastic> | In the US, debit card PINs are 4-7 digits long. Most people as far as i can tell pick 4. Mine is 7. ... This has backfired once, a system at a particular grocery store would only let you put in 6 |
13:49 | | catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
13:49 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Connection closed] |
14:34 | < abudhabi__> | [R]: My bank (one of them) has 4. Digits. :V |
14:34 | < abudhabi__> | (And 2FA.) |
14:40 | | Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code |
14:40 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
16:41 | | Vorntastic [uid293981@Nightstar-phvupn.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity] |
16:58 | | Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has joined #code |
17:13 | | catalyst_ [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [[NS] Quit: -a- IRC for Android 2.1.59] |
18:35 | | catalyst [catalyst@Nightstar-058ijn.cable.virginm.net] has joined #code |
19:59 | | Kimo|autojoin [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code |
19:59 | | mode/#code [+o Kimo|autojoin] by ChanServ |
19:59 | | Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Connection reset by peer] |
20:13 | | Kimo|autojoin is now known as Kindamoody |
20:22 | | catalyst [catalyst@Nightstar-058ijn.cable.virginm.net] has quit [Ping timeout: 121 seconds] |
20:24 | | catalyst [catalyst@Nightstar-scrrsn.dab.02.net] has joined #code |
20:32 | | catalyst [catalyst@Nightstar-scrrsn.dab.02.net] has quit [Ping timeout: 121 seconds] |
20:33 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
20:36 | < abudhabi__> | ErikMesoy: Right now, I've encountered a stricture that's like that, except with a hidden requirement of "no spaces". |
21:56 | < gizmore> | <?php return preg_replace('/ /', '', $input) ?> |
21:56 | < gizmore> | no spaces :( |
21:57 | < gizmore> | space is an excellent character to separate words |
21:57 | < gizmore> | the first morsecode was a space |
21:58 | < gizmore> | which is called gap |
21:58 | < gizmore> | just kidding... how are you guys? |
21:59 | <&ToxicFrog> | Well, on the one hand, the world is a dumpster fire |
21:59 | <&ToxicFrog> | on the other hand, I've experimenting with CircuitPython and it is extremely cool |
22:03 | <@celticminstrel> | ? |
22:09 | <&ToxicFrog> | celticminstrel: python for microcontrollers, targeting stuff that's more powerful than an AVR, but not that much more powerful -- think ¼MB of ROM and 32-64K of RAM |
22:10 | <&McMartin> | Huh |
22:10 | <&McMartin> | Well, I guess that's what you hook to it |
22:10 | <&ToxicFrog> | The cool part is that the cirpy firmware comes with a nice interface: plug in a cirpy device and it shows up as a serial line (/dev/ttyUSB*) and a disk (/dev/sd*) |
22:11 | <&ToxicFrog> | connect to the serial line and you have a REPL |
22:11 | <&McMartin> | I was going to ask "what lives between an ATmega and a Cortex-M" but the question is how many address lines you expose, at that level |
22:11 | <&ToxicFrog> | mount the disk and you have what looks like a FAT filesystem containing all the code and libraries on the device |
22:11 | <&ToxicFrog> | Edit the code in-place and reload the chip and away you go |
22:12 | <&ToxicFrog> | So you can work with it with just a text editor! You don't even need a serial terminal if you don't care about the REPL. |
22:12 | <&ToxicFrog> | McMartin: yeah, I'm pretty sure most (all?) cirpy devices are actually the smallest Cortex-M0 chips |
22:14 | | * McMartin nods |
22:16 | <&ToxicFrog> | Another cool thing: the bootloader (i.e. the thing you use to reflash the entire chip from a computer without needing a JTAG or ICSP connection) lives in the USB coprocessor, rather than on the chip itself |
22:16 | <&ToxicFrog> | and when invoked (usually by pulsing RST twice rapidly), rather than putting it into a "feed me a ROM over serial" mode like an arduino, it shows up as a different block device, containing a FAT filesystem which contains a .uf2 file |
22:16 | <&ToxicFrog> | copy that file off the filesystem and you have a dump of the chip's current ROM |
22:16 | <&ToxicFrog> | copy a new .uf2 to the filesystem and it reflashes the chip |
22:16 | <&ToxicFrog> | This is how you update it to new versions of circuitpython, or reflash it with non-python firmware |
22:17 | <&ToxicFrog> | It |
22:17 | <&ToxicFrog> | s very elegant and means you do a lot with the chip without specialized software or hardware. |
22:18 | <&McMartin> | Sure beats trying to invent a Forth dialect, if you have a device you actually want to command |
22:21 | | * ToxicFrog nods |
22:21 | <&ToxicFrog> | and like, even aside from any considerations of python as a language, I'm deeply impressed by how low-friction they've made the whole process of loading code onto the MCU and debugging it |
22:21 | <&McMartin> | (This has forever been my problem with modern micro controllers and single-board computers; I have no use cases for them) |
22:21 | <&ToxicFrog> | pushing a new build is literally just "save the file in your text editor" |
22:22 | <&ToxicFrog> | you have a REPL by default if you have something that can open a 900baud tty |
22:22 | <&ToxicFrog> | *9600 |
22:22 | <&ToxicFrog> | Right, whereas in my case I have four SBCs in the house and will soon be deploying a fifth |
22:23 | <&ToxicFrog> | MCUs are less obviously useful (in part because most of the applications I have require remote communication, and it is both easier and cheaper to buy another Rpi Zero W than it is to connect an MCU to a wifi coprocessor) but are a lot of fun to tinker with. |
22:23 | <&ToxicFrog> | My current project is a magnetic field sensor using a 3-axis magnetometer and a bunch of RGBLEDs. |
22:26 | | * McMartin nods |
22:26 | <&McMartin> | At that level I guess it's that that isn't the direction my tinkering urges took me |
22:26 | | * McMartin instead went off and tried to see how much you could get away with with pre-shader 3D rendering. |
22:26 | <&ToxicFrog> | (an outgrowth of an idea from symbol: a body mod or wearable device that tells you which direction you're facing, magnetically speaking) |
22:27 | <&ToxicFrog> | (it turns out this is difficult to answer with just magnetometers, because at this latitude "magnetic north" is actually 80° downwards into the floor) |
22:28 | <&McMartin> | (This seems like a problem that a backplate can solve?) |
22:28 | <&McMartin> | My plan for the holidays is to do less tinkering and more videogames, but my next tinkering plan is "recursive data structures in Rust" |
22:29 | <&ToxicFrog> | (how?) |
22:29 | < gizmore> | Just kill some birds |
22:29 | < gizmore> | and analyze their left-overs |
22:29 | < gizmore> | then you will know |
22:30 | < gizmore> | but you have to kill to birds to know it |
22:30 | <&McMartin> | (If the needle isn't permitted to fall all the way, it should slide more slowly but give a clearer signal? I'm not *great* at mechanics and I'm further south than you but compasses obviously drag along their surface here too) |
22:30 | < gizmore> | *two |
22:31 | <&ToxicFrog> | this is a solid-state magnetometer, not a compass |
22:31 | <&ToxicFrog> | it gives me three signed 12-bit integers representing the local field strength on three axes |
22:31 | <&McMartin> | Ah. |
22:32 | <&McMartin> | So, uh, is there any reason you can't just do a projection onto the plane? (Though I guess you need something to tell you what direction down is) |
22:32 | <&McMartin> | ... and I see you did say *just* magnetometers |
22:34 | <&ToxicFrog> | Yeah |
22:35 | <&ToxicFrog> | If you also have some way of telling which direction is down (either corresponding accelerometers, or mounting the magnetometers in a way that makes down invariant, or the like) it's just a matter of math |
22:35 | <&ToxicFrog> | But if all you have is magnetic field strength you can't tell the difference between "facing grid north" and "facing grid south, but also tilted slightly forward" |
22:36 | <&ToxicFrog> | and "facing magnetic north" is lying face-down on the floor, which, while a rational response to the age we live on, is of limited use |
22:37 | <&McMartin> | With respect |
22:37 | <&McMartin> | If it's 80 degrees from the horizontal that is not lying face-down on the floor |
22:38 | <&McMartin> | That is being on the receiving end of a pile driver |
22:40 | <&ToxicFrog> | I mean, it is the season to replay Hyper Princess Pitch |
23:00 | | Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [Ping timeout: 121 seconds] |
23:00 | <&McMartin> | That's true |
--- Log closed Tue Dec 21 00:00:40 2021 |