gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
<jasongrossman> joepie91: Explicating good stuff about the GDPR.
<jasongrossman> I don't know whether karma is ambiguous IRL as it were. Need to read more Hindu theology.
<joepie91> ahhh, right :)
aanderse has joined #nixos-chat
<gchristensen> I can't read JWT without thinking James Webb (space) Telescope
qyliss^work has quit [Quit: bye]
qyliss has quit [Quit: bye]
qyliss has joined #nixos-chat
qyliss^work has joined #nixos-chat
<colemickens> This was disappointing to encounter: https://bbs.archlinux.org/viewtopic.php?id=244728
<colemickens> Actually, if anything, that makes me think maybe I need to change my nixos samba config, or we should change it in nixpkgs to use the newer security version?
drakonis has joined #nixos-chat
ninjin has quit [Remote host closed the connection]
ninjin has joined #nixos-chat
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
tilpner_ has joined #nixos-chat
tilpner has quit [Remote host closed the connection]
<infinisil> Ugh, this C++ project at my university uses real network interfaces to test our implementation of a congestion algorithm
<infinisil> Resulting in non-determinism.. Meaning you can get a better score if you run it on a more powerful machine and run it a couple times to get a bit lucky
jasongrossman has joined #nixos-chat
<clever> infinisil: if you run it on something like the vif used by containers, it may have 0% packet loss
<clever> because all tx is directly fed into the rx handling, and there is no buffer or bandwidth
<infinisil> It's all local, there's no packet loss
<clever> ah, lo then?
<infinisil> Nah the test sets up its own interface with the special property of it delaying everything by 20ms
<clever> ah
<infinisil> clever: We use this: http://mahimahi.mit.edu/
<infinisil> (Well a fork of it probably, they have mahimahi's source included in our project)
<clever> ahh
<clever> its just creating a tun interface
<clever> any time you try to transmit a packet, the read() on the tun will return that packet
<clever> and any time the program write()'s to the tun fd, the kernel will treat it as a packet it just received
<clever> you are then free to do whatever you want with the packet bytes
<clever> in this case, shove them into another tun after 20ms?
<clever> but, you can also do silly things like PM the bytes to a user over an instant messaging library
<clever> and then the remote user shoves them into their own tun device
* infinisil nods
<clever> boom, you now have a vpn!
tilpner_ has quit [Ping timeout: 245 seconds]
<clever> of note, if you have retry on these packets, tcp will lag like heck
<clever> infinisil: you can probably guess why, given what your working on
<infinisil> It's not tcp we're using
<clever> but your own custom thing? which may have similar bugs
<clever> tcp's congestion control system uses packet loss to detect when its going too fast, and to throttle itself to avoid packet loss
<clever> but, if you tunnel tcp over a lossless channel (like tcp), you get 0% packet loss, and the inner tcp will never back off
<clever> then the buffers bloat to hell, and your latency goes to crap
<infinisil> That's exactly how our setup works
<infinisil> Infinite buffer size, no packet loss
<infinisil> We need to minimize delay and maximize throughput over an ever-changing connection
<clever> then you have no real way to detect when your reaching the bandwidth limits (if it even has limits), and you cant really throttle to stay under them
<clever> if you have 0% packet loss, why cant you just blindly shove bytes out non-stop?
<infinisil> We do get acks back from the receiver
<infinisil> Uh it's complicated
<infinisil> Well not too complicated
<infinisil> But too complicated to explain at 5:30am :)
<clever> ah, 1:25 am here, dang
<clever> i should get to bed, lol
<infinisil> What are you doing clever, that's like an almost reasonable time!
<clever> lol
pie___ has joined #nixos-chat
pie__ has quit [Ping timeout: 246 seconds]
endformationage has quit [Ping timeout: 250 seconds]
drakonis has quit [Quit: WeeChat 2.3]
tilpner has joined #nixos-chat
MichaelRaskin has joined #nixos-chat
__monty__ has joined #nixos-chat
jasongrossman has quit [Ping timeout: 268 seconds]
jasongrossman has joined #nixos-chat
jackdk_ has joined #nixos-chat
<joepie91> welp, so after a week of painful debugging without any direct hardware access, I've concluded that a particular Logitech camera has a bug where it will sometimes get stuck right after initialization, and any attempt to get a frame from it will hang indefinitely
<joepie91> it's sure fun to figure this out remotely... halfway across the world...
<joepie91> without proper shell access to the system...
<__monty__> Sounds like a pretty impressive episode of digital sleuthing.
jasongrossman has quit [Read error: Connection reset by peer]
jasongrossman has joined #nixos-chat
jasongrossman has quit [Remote host closed the connection]
vasarmilan has joined #nixos-chat
jasongrossman has joined #nixos-chat
<joepie91> __monty__: mostly just required a lot of time and frustration :D
<joepie91> ot
<joepie91> oops
<joepie91> it's used as a barcode scanner in an embedded system
<joepie91> so I've just been spending upwards of a week trying to figure out why the software is magically breaking, and eventually narrowed it down to the above
<joepie91> of course it's not a reproducible issue, so it was a testing cycle of >1 day...
<joepie91> deploy change with more logging, wait for new failures
<joepie91> anyway, now that I've figured it out, I've just added a watchdog that kills the process when the camera doesn't hand in a frame for >1 second, which triggers a restart, which reinitializes the USB device
<joepie91> crude, but it works
<__monty__> Hmm, edited libraries/base/includes/ieee-flpt.h, a hadrian --flavour=quickest didn't seem to pick up the change, running hadrian without a flavour resulted in a new error I haven't encountered before. http://ix.io/1Ehf
<__monty__> Woops.
jackdk_ has quit [Remote host closed the connection]
vasarmilan has quit [Ping timeout: 256 seconds]
drakonis has joined #nixos-chat
endformationage has joined #nixos-chat
drakonis_ has joined #nixos-chat
drakonis has quit [Ping timeout: 250 seconds]
ninjin has quit [Remote host closed the connection]
ninjin has joined #nixos-chat
__monty__ has quit [Quit: leaving]
drakonis has joined #nixos-chat
drakonis has quit [Ping timeout: 250 seconds]
drakonis has joined #nixos-chat
drakonis_ has quit [Ping timeout: 250 seconds]
lassulus has quit [Ping timeout: 246 seconds]
drakonis1 has joined #nixos-chat
<infinisil> Twitch, would you stop showing me the same horror trailer every time? I'm trying to find a chill stream, not appropriate
<ldlework> that dude who plays the drums to video game music is pretty chill
<infinisil> Think I've seen that guy, not my thing though
<ldlework> me either
<MichaelRaskin> Give up on Twitch and just watch Black MIDI videos
<infinisil> Ehhh
<gchristensen> yay nixos wiki, saving me time https://nixos.wiki/wiki/Linux_Kernel#make_xconfig
drakonis_ has joined #nixos-chat
drakonis has quit [Ping timeout: 250 seconds]
drakonis_ has quit [Remote host closed the connection]
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
<infinisil> Why is there a huge ass spider in my room?!?
<drakonis1> quick, feed it a lizard
<drakonis1> pet the spider and make it your friend (no dont do that)
<infinisil> I hate spiders so much
Zer000 has joined #nixos-chat
<gchristensen> I often had a huge wolf spider in the bathroom / shower growing up. the wolf spider was always named frank.
<infinisil> Wow, you must be lucky to have survived
<infinisil> I hate how I only occasionally see spiders in my room, because I just know there are more hiding somewhere