gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
<colemickens> the flirc case for the rpi0 is unreasonably adorable. I have no reason to wear it as a pedant but darn its tempting
<samueldr> colemickens: as a pedant, how do you wear something as a pedant?
<matthewcroughan> samueldr: pedants wear pendants
<colemickens> Oops. There we go.
<samueldr> colemickens: poor access to GPIO pins, right?
<matthewcroughan> The case costs more than the Pi Zero x_x
<samueldr> I'll stick with the not-too-flimsy cheap acrylic cases I got early
<samueldr> oh
<samueldr> pi zero
<samueldr> I was looking at the pi 4 case
<colemickens> There's an optional different top/bottom piece that has a cutout for them
<matthewcroughan> It is adorable.
<matthewcroughan> I just wish they made it for a more worthy board.
<colemickens> Rpi4 case, I managed to at least snake out pins for serial debugging and the case still screwed together
<gchristensen> wow that is cute
<colemickens> Yeah, same.
<matthewcroughan> https://www.friendlyarm.com/index.php?route=product/product&path=69&product_id=244
<matthewcroughan> They're out of stock, hence the price.
<gchristensen> I caused a lot of problems once by having unlimited authority to spend money in a marketplace where they marked things as out of stock if the price was 100x usual price
<gchristensen> and I automatically "spent" a lot of "money" and mucked up ... thigns.
<samueldr> uh, not sure an H3 is that much more worth it compared to a pi zero
<matthewcroughan> I really need boards like this for a mesh network robotics project too.
<matthewcroughan> samueldr: what would you call more worth it then? rockchips? rk3399? :D
<matthewcroughan> Funny thing is, tiny phones these days have far more processing power and a case to go with them.
<samueldr> anything aarch64 would be a good start
<matthewcroughan> Yeah.. something NixOS capable.
<matthewcroughan> NixOS business card anyone?
<matthewcroughan> I want to make one now..
<matthewcroughan> Some sort of RiscV SOM on a business card PCB. That's the good stuff...
<matthewcroughan> If we could just get this thing running NixOS :D
<pie_> Hello yes my business card has more compute than the apollo mission
<cole-h> can your business card survive in space?
<aleph-> Probably
h0m1 has quit [Ping timeout: 250 seconds]
h0m1 has joined #nixos-chat
rajivr has joined #nixos-chat
Taneb has joined #nixos-chat
endformationage has quit [Quit: WeeChat 2.9]
lunc has joined #nixos-chat
cole-h has quit [Ping timeout: 252 seconds]
lunc has quit [Ping timeout: 268 seconds]
<philipp> Did I already swoon about this pi4 case here?
evanjs has quit [Read error: Connection reset by peer]
evanjs has joined #nixos-chat
<leonardp> das sexy
<joepie91> oo, nice
supersandro2000 has quit [Quit: Ping timeout (120 seconds)]
supersandro2000 has joined #nixos-chat
<philipp[m]> It's called Argon NEO, at least at berrybase.de. Don't know about international availability.
__monty__ has joined #nixos-chat
abstrn has quit [Remote host closed the connection]
abstrn has joined #nixos-chat
waleee-cl has quit [Quit: Connection closed for inactivity]
abstrn has quit [Remote host closed the connection]
abstrn has joined #nixos-chat
<gchristensen> tiktok is a pretty neat thing https://twitter.com/Big__tired/status/1391592366222544896
bqv has joined #nixos-chat
f0x2 has quit [Quit: WeeChat 2.4]
rj has joined #nixos-chat
<MichaelRaskin> Hm. I wonder if «dropping priority rules for J&J» in Germany means anything, given that they currently only allow it for 60+, and hopefully anyone in priority group 60+ & extra conditions have had a chance to get some vaccine by now, let alone by the first shipment of J&J.
rj has quit [Ping timeout: 240 seconds]
rj has joined #nixos-chat
<philipp> At this point I'm just confused what vaccine is meant for whom here.
<Taneb> I'm reasonably confident that right now, none are meant for me
rj has quit [Ping timeout: 240 seconds]
<hodapp> come to the US, we've enough people that are convinced it's either a giant hoax or 'just the flu' that a lot of areas have huge surpluses of the vaccines
endformationage has joined #nixos-chat
rj has joined #nixos-chat
<philipp> Oh, we also have a fair bunch of those people.
<adisbladis> hodapp: Someone told me that you can just go to the US and they don't even check if you're a citizen or anything
<adisbladis> Just handing out vaccines
<hodapp> adisbladis: in my own state the checks done were pretty minimal
<adisbladis> That's a good thing I think
<adisbladis> Imagine if illegals couldn't get vaccinated
<hodapp> the place I went to was mostly volunteer-run and they were far more interested in making sure vaccines didn't expire and go to waste
<hexa-> lmao here they seem to verify you are actually living or working nearby
kini has joined #nixos-chat
rj has quit [Ping timeout: 240 seconds]
rj has joined #nixos-chat
rj has quit [Remote host closed the connection]
rj has joined #nixos-chat
philipp has quit [Remote host closed the connection]
philipp has joined #nixos-chat
rj has quit [Ping timeout: 240 seconds]
rj has joined #nixos-chat
rj has quit [Ping timeout: 240 seconds]
cole-h has joined #nixos-chat
rj has joined #nixos-chat
<samueldr> here you don't need to be under the ("state") medical insurance either
rj has quit [Ping timeout: 240 seconds]
rj has joined #nixos-chat
<__monty__> Everyone flock to Dhall and Agda!
<supersandro2000> > this vulnerability has no real-world implications
<{^_^}> undefined variable 'this' at (string):494:1
<__monty__> That's obviously what someone actively exploiting a CVE would say!
<hyperfekt> i'm sure some bank still runs on that
<hodapp> only if mainframes & COBOL run it
<hodapp> can tell you at least one large bank is still on mainframes for near everything, as my wife works at one and I've seen her screen from time to time
<gchristensen> how many ping pong balls (40mm diameter) do I need to fill a ~30cm x ~60cm x ~100mm space?
<samueldr> gchristensen: no
<gchristensen> okay :(
<samueldr> packing problems are forbidden
<joepie91> lol
<gchristensen> does it help that they're floating in water and I can buy in quantities of 12?
<samueldr> I'm saying this as, according to maths people, these are hard problems
<gchristensen> that is why I'm asking some of the smartest people I know! :)
<samueldr> like writing important papers problems
<samueldr> though since it's spheres
<hodapp> pretty sure optimal packing with spheres is known
<samueldr> those might be kind of solved
<samueldr> but then "floating in water" might be causing issues?
<hodapp> then you just apply a fudge factor for edges and imperfect packing, and call it done
rj has quit [Ping timeout: 240 seconds]
<gchristensen> hodapp: so how many? :)
<hodapp> is your space definitely 100mm high, not 100cm? as you switched units at the end
<gchristensen> 100mm
rajivr has quit [Quit: Connection closed for inactivity]
<MichaelRaskin> How rigid you want the packing to be?
<MichaelRaskin> samueldr: for identical spheres you can just take the canonical optimal packing though?
<samueldr> MichaelRaskin: probably, you can probably model it off or cows
<gchristensen> hah
<philipp> I have a terrible unmathematical solution: Best you can hope for is apparently 74% volume filled. You have 18000cm^3 volume and one ball has a lolume of 33.51cm^3 so 18000/(0.74*33.51) = 725 is your upper limit.
<samueldr> but still, your follow-up question shows why it should be forbidden! it's a hard problem! :)
<MichaelRaskin> I am not sure if three layers will fit well
<philipp> Or I might be way off. I just hope that some mathematician sees this and cringes really hard.
<gchristensen> I don't know if it was on purpose, but I like the idea of "lolume" for seat-of-the-pants estimates
rj has joined #nixos-chat
<hodapp> so your area is 30*60*(100/10)=18000 cm^3, a ping-ping ball is pi*((40/10)/2)^3 ~= 33.5 cm^3; theoretical limit is that 0.74048 of your space volume is usable, thus 13,328.6 cm^3, or ~397.87 ping-pong bolls
<MichaelRaskin> philipp: not really an upper limit because three layers
<hodapp> philipp: I believe you divided the volume by the 0.74, not multiplied
<hodapp> then take my answer and do +- 50% because it pertains to the real world
<hodapp> just buy 1000 ping-pong balls and do something with the rest
<gchristensen> tragically I don't have a budget for so many, I'll use soda cans instead
<MichaelRaskin> Are you sure you cannot get smaller balls? I think I have seen a lot of various toy marble-sized stuff of empty plastics
<gchristensen> (or time to wait for delivery)
<hodapp> fill it with bitcoins instead
<MichaelRaskin> But sounds like a usecase for a can of building foam
<MichaelRaskin> Not sure how it is properly called in English
<gchristensen> building foam works for me
<philipp[m]> hodapp: yes, you are right
<gchristensen> thanks for the help y'all :) I'll have to budget for 400 ping pong balls for next month :P
<hodapp> just use golf balls
<hodapp> you can get them free if you know where to look
<gchristensen> haha
<joepie91> I am simultaneously concerned and intrigued
waleee-cl has joined #nixos-chat
<MichaelRaskin> What is the desired property set of this filling?
<abathur> if it is a contest, crush them first
<gchristensen> providing some insulation, catch evaporation and let it drip back in to the hot water bath I'm cooking pulled pork to be in
<abathur> oh, well
<MichaelRaskin> Oh. Hm
<hodapp> ...wut
<hodapp> like, sous vide?
<philipp[m]> We just got nerd sniped, didn't we?
<samueldr> that's why I said "no"!
<gchristensen> haha
<joepie91> lol
<samueldr> I'm not even a maths person and I knew the outcome
<hodapp> of course that's a thing
<MichaelRaskin> I have a feeling that insulation and condensation are a bit of at odds…
<gchristensen> last time I used a bunch of empty soda cans that worked ~okay
<MichaelRaskin> Metal sounds good, actually
<samueldr> gchristensen: maybe the article talks about it... but why not a lid?
<hodapp> why use a lid when you can use ping-pong balls?
<samueldr> right
<samueldr> right?
<joepie91> obligatory caution regarding fire safety of ping pong balls near hot objects
<gchristensen> 2 reasons: lids have to be specially made to fit the heater and are therefore special and expensive
<samueldr> oh
<joepie91> which is to say very not safe at all
<samueldr> right
<samueldr> joepie91: but there's water, right there!
<gchristensen> the second reason is there aren't many specially made lids that fit a heater stick for a 100 quart cooler
<samueldr> (/s)
<hodapp> man, I need to do some more sous vide beef of a cheap cut that I do for 24 hours at ~131 or 132 F so it still stays rare but is safe
<hodapp> or get a hold of some beef tongue again and have that with horseradish
<gchristensen> yum
<matthewcroughan> "Yum"
<matthewcroughan> Every time I see flakes in the store.
<matthewcroughan> And online.
sphalerite has joined #nixos-chat
<samueldr> hmm... sucks... it's overcast outside and I was hoping for natural light today
<adisbladis> matthewcroughan: Cadbury though :/
<matthewcroughan> adisbladis: we need a different signature candy for Nix Flakes.
<matthewcroughan> Perhaps an RFC to rename Flakes to Twix?
rj has quit [Ping timeout: 240 seconds]
<adisbladis> Twix is not vegan though, I'm opposed
<hodapp> it isn't?! has it dairy or something?
<adisbladis> Also I do seem to recall that they weren't very good to begin with
<adisbladis> hodapp: Yeah
<adisbladis> I'm always assocating the word flakes with nutritional yeast
rj has joined #nixos-chat
<matthewcroughan> So we want an RFC to change Flakes -> Yeast
<hodapp> is this part of an extended yeast -> sourdough -> sourdough starter joke?
<hexa-> remember not to throw yeast into a dumpster - https://twitter.com/Thinkwert/status/1391183719915048966
<sphalerite> matthewcroughan: could cause confusion with tvix https://cs.tvl.fyi/depot/-/blob/third_party/nix/README.md
<matthewcroughan> Tvix is the Draculian fork of Nix.. intersting.
<das_j> > In addition, the upstream Nix project is diverging from the opinions of some community members via the introduction of concepts such as Nix flakes.
<{^_^}> error: syntax error, unexpected ',', expecting ')', at (string):494:12
<das_j> that's a nice way to put it
dottedmag has joined #nixos-chat
dottedmag has joined #nixos-chat
dottedmag has quit [Changing host]
rj has quit [Ping timeout: 240 seconds]
<lovesegfault> Any ideas on how to stress test a TCP server that speaks a custom protocol?
<lovesegfault> I basically just want to send a bunch of messages and see what happens
<lovesegfault> limitation: the client sending the data needs to be reading & dumping responses
<lovesegfault> (I want to test the codepath for when clients _aren't_ too slow
<infinisil> lovesegfault: Generate a buttload of semi-random byte streams?
<infinisil> Or are you asking more concretely what tools to use for that?
<lovesegfault> infinisil: Yeah, asking about tooling
rj has joined #nixos-chat
<lovesegfault> like, I can write code to do this, but I'm sure something exists?
<lovesegfault> I looked at tcpkali, but it won't listen for replies
<MichaelRaskin> socat from whatever generator to /dev/null?
<infinisil> lovesegfault: I'm thinking that since you have all your types represented in your program already, it shouldn't be too hard to create some random generators for those types and turn them into bytestreams
<infinisil> That's probably what I'd do
<lovesegfault> I extracted the main handle_client(state: State, stream: TcpStream, addr: SocketAddr) function that gets called when a user connects and hooked it up to afl for fuzzing
<lovesegfault> but I figured it be nice to also test the server as a whole
<andi-> aflnet then. Not sure how nicely that integrates. I got it to run once after heavy refactoring of some tool.
<__monty__> Either ping pong balls are tennis ball sized nowadays or cms have shrunk. 33 cm^3 in a ping pong ball?!
<MichaelRaskin> Cubic centimeters are pretty small, though
<MichaelRaskin> 30 ping-pong ball for a liter of pure-ball volume
rj has quit [Ping timeout: 240 seconds]
<samueldr> reminder that 1cm³ is 1ml
<joepie91> human brain just cannot third dimension
<samueldr> or one 63rd of an iPhone 4
rj has joined #nixos-chat
rj has quit [Ping timeout: 240 seconds]
rj has joined #nixos-chat
<samueldr> since I'm not universally followed on Twitter (yet?) and this is somewhat relevant to NixOS, here https://samuel.dionne-riel.com/blog/2021/05/10/unveiling-tow-boot.html
<samueldr> since I can't shut up about booting on ARM, I wrote some words
<samueldr> and did some things
__monty__ has quit [Quit: leaving]
<elvishjerricco> samueldr: Very nice. So if you put it in SPI flash, then the board basically becomes a normal UEFI system?
<samueldr> yes!
<elvishjerricco> That sounds so very nice
<elvishjerricco> Also, what is SPI flash? Is it like nvram or something?
<samueldr> while I might sound like a broken record... yes!
<samueldr> SPI flash is a common misnomer for a form of SPI addressable storage
<samueldr> nvram sometimes is stored similarly
<samueldr> AFAIUI they're all a family of terminology that is wrong and right
<elvishjerricco> Does the rpi4 have anything like that to put this on? Making my cm4 use UEFI sounds cool
<samueldr> the main thing to understand from it is that it's a dedicated location for the firmware, separate from the storage where your operating system and data lives
<samueldr> elvishjerricco: you could install Tow-Boot to it
<samueldr> but it only can use the "shared media" strategy
<samueldr> ahh poo! forgot to upload a release
<elvishjerricco> So there's no on-board place to store it? I'd have to put it on external media?
<samueldr> not on the Raspberry Pi family
<samueldr> not sure about CM
<samueldr> "external" not necessarily, eMMC (for some CM4) or SD card
<elvishjerricco> samueldr: There is some firmware stored on an eeprom that can be updated by the user. Is it possible to put tow-boot there?
<samueldr> if the CM4 is like the Pi 4 family, no, it's used for their own things, and way too small
<elvishjerricco> got it
<elvishjerricco> makes sense
<samueldr> not really
<samueldr> they could have done away with their awful boot chain
<elvishjerricco> True...
bqv has quit [Ping timeout: 260 seconds]
bqv has joined #nixos-chat
lunc has joined #nixos-chat
<hodapp> is this enough EEPROM to just stick in something that behaves like a normal bootloader?
<hodapp> e.g. u-boot
<samueldr> the issue is that all the files you put on the FAT32 partitions needs to be available for the board to behave
<samueldr> and the program they put in that EEPROM is basically the firmware for USB, and the minimum required code to read that FAT32 partition on either SD or USB
<samueldr> (a bit more, since it also is used to show a minimal user interface for reporting status)
<samueldr> it would be enough for U-Boot if it wasn't for all those support files required
<hodapp> I guess it'd help if I had any clue how large u-boot is...
<clever> hodapp: the eeprom on the pi4 is 512kb, the official start4.elf is 2.2mb, u-boot is another 2.6mb
<samueldr> U-Boot's size is really variable
<clever> have fun getting over 4mb of data into half a mb of flash
<samueldr> Tow-Boot (so with more than bare U-Boot) is 610K for the pi4
<clever> when using the official firmware, you must rely on the closed start4.elf stage, so that stage is your first problem
<clever> -rw-r--r-- 1 clever users 777K Mar 15 09:02 start4cd.elf
<clever> oh wait, wow
<samueldr> but U-Boot (and thus Tow-Boot) assumes the official boot chain initialized a lot of things
<clever> this is the "cut down" firmware for the pi4
<clever> that almost fits!
<hodapp> huh
<samueldr> clever: don't forget the EEPROM must hold what already is in the EEPROM too
<clever> samueldr: yep, *looks*
<samueldr> which AFAIUI now includes the VLSI thing firmware
<clever> > 61.0 + 3.8 + (21 * 8)
<{^_^}> 232.8
<clever> samueldr: prior to that vl805 being added, you had 232kb of firmware
<hodapp> VLSI thing firmware?
<clever> > 98.0 + 7.9 + 7.5 + 3.1 + 14 + 12 + (14*5) + 13 + 1.7 + 6.9 + 59
<{^_^}> 293.1
<clever> samueldr: with the vl805 firmware, it totals to 293kb
<samueldr> vl805*
<clever> hodapp: the usb3 controller has its own firmware, held in the main 512kb flash chip
<samueldr> the vl805 is the USB3 controller IIRC
<clever> so thats 219kb remaining for the start.elf and uboot
<samueldr> not a lot of space!
<samueldr> it would have been so much more interesting if they didn't cheap out for 512kb
<clever> your loosing 7.9k + 7.5k + 1.7k to the hdmi diagnostics images
<clever> RPF is also against putting anything custom into that chip
<clever> because they have plans to shrink it further
* elvishjerricco builds the tow-boot nix expression; building util-linux :o
<clever> and they dont want to break existing setups
<samueldr> elvishjerricco: there's a fix not yet in the stable version
<{^_^}> karelzak/util-linux#1286 (by samueldr, 3 weeks ago, merged): libfdisk: Include table-length in first-lba checks
* colemickens 's laptop arrived before he finished the nix expr for it. :(
<samueldr> elvishjerricco: but I'm not overriding it outright, it's a new leaf package
<samueldr> once there's a new release for util-linux that includes my fix in NIxpkgs, I can update the default Nixpkgs release and drop that fix
<elvishjerricco> samueldr: So once I have raspberryPi-aarch64-2021.04-002-pre.tar.xz, what do I do with it?
<samueldr> note that it hasn't been tested on something else than an actual Raspberry Pi
<samueldr> flash `disk-image.img` to an SD card, then you can use this to USB boot the AArch64 NixOS iso installer
<samueldr> when you install, you make sure not to touch the existing partition
<elvishjerricco> awesome
<samueldr> btw, those instructions are the same for all boards where there is no dedicated storage
<samueldr> or if the user, for any reason, doesn't want to use dedicated storage
<elvishjerricco> I don't think u-boot works on cm4 yet, but I'll give it a shot
<samueldr> I should have just linked instead :)
<samueldr> to better test the docs
<elvishjerricco> Ah! :)
<samueldr> I intend to produce better documentation
<samueldr> as in, a site with the rendered docs
<samueldr> I also intend to ship a README.html file within the tar archive that explains things
<clever> hodapp: a second problem with custom firmware in the spi flash, is that the 1st-stage loader (brings ram up, loads second stage) cant load the 2nd-stage from spi
<clever> hodapp: so, i cant just make a custom smaller 2nd-stage, i have to start with a custom 1st-stage
lunc has quit [Ping timeout: 246 seconds]
lunc has joined #nixos-chat
supersandro2000 has quit [Killed (verne.freenode.net (Nickname regained by services))]
supersandro2000 has joined #nixos-chat