gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
<samueldr> it's too power hungry to have running on the same circuit and the air con, and there is no usable electrical circuit in reach
<c74d> are there such things as extension cables for computer peripherals? if so, that seems like it would be a lower-latency solution than going through the network
<c74d> unless you're contemplating Mosh-style prediction in the client software
<samueldr> steam in-home streaming is supposedly usable
<samueldr> so I guess that's the baseline
<samueldr> I can't drill through walls, and it's far enough that I believe it goes way out of spec for HDMI
<c74d> ah
<colemickens> I wanted to Steam streaming, but even when there was a gaming PC on both ends, the latency annoyed me (even on a forgiving, racing style). I didn't spend a lot of time trying to optimize it though.
<colemickens> (I thought/think it would be cute to have a central beefy gaming PCs and then rpi4's running Steam Link)
<samueldr> I never tried steam's streaming, so I don't even know if it's good
<samueldr> and yeah, it's also a worthwhile goal imo
<samueldr> the hardware solution (a video capture device) added what was around 200-500ms of latency, variable at times, hard to gauge why
<samueldr> this was tested with different video players, including mpv with its low latency profile
<samueldr> an important detail is that the GPU I'm using is old, so no NVENC
<samueldr> pretty sure there is no accelerated encoding on it
cole-h has joined #nixos-chat
cole-h has quit [Client Quit]
evanjs has quit [Read error: Connection reset by peer]
evanjs has joined #nixos-chat
das_j has quit [Quit: killed]
ajs124 has quit [Quit: killed]
ajs124 has joined #nixos-chat
das_j has joined #nixos-chat
cole-h has joined #nixos-chat
rajivr has joined #nixos-chat
slack1256 has quit [Remote host closed the connection]
waleee-cl has quit [Quit: Connection closed for inactivity]
drakonis has quit [Quit: WeeChat 2.8]
<ashkitten> how does using kde instead of sway slow down my entire computer including everything running on it
<ashkitten> how does it manage to do that
<ashkitten> it's absurd how much slower my computer is running kde lol
<bkv> by being an order of magnitude larger in disk size, ram usage, and idle cpu behaviour?
<samueldr> ashkitten: it's just that good
<ashkitten> ;-;
<ashkitten> i thought it would be easier than i3 so i could get vr working quickly without patching all of sway, wlroots, and xorg
<ashkitten> but i don't actually know how to use a stacking window manager
<ashkitten> and not being able to center my mouse by moving it between my 2 monitors is really messing with my brain
<samueldr> oh my, mediatek has special casing for verizon wireless in their source tree https://github.com/DhirajMS/kernel-mediatek/blob/283846e211bd54b46e1130fabde55ef9e51f35df/net/ipv6/Kconfig#L266-L273
<ashkitten> baloo
<ashkitten> aaaaaaaa
<ashkitten> why kde try to index my files
<samueldr> ashkitten: refer to my previous command
<samueldr> (sorry)
<samueldr> comment*
<ashkitten> lol
<ashkitten> i disabled baloo
<samueldr> I think it's done with the assumption every Plasma desktop starts new
<samueldr> so no indexing for a gazillion year
<samueldr> which is probably a bad assumption?
<ashkitten> it should be faster now but im not getting up from the couch to check
<ashkitten> now i just have to be sad about how stacking window managers are awful
<ashkitten> but it was easier than making i3 work i guess
<ashkitten> how do you use a computer when opening new windows hides other windovs behind them
FRidh has joined #nixos-chat
<ashkitten> honestly not so interested in customizing kde much
<ashkitten> it's just a stopgap until i get steamvr working in sway
<ashkitten> which should just involve a few patches
<ar> ashkitten: if you have a working sway config, i'd imagine porting that to i3 shouldn't be too difficult
ixxie has joined #nixos-chat
FRidh has quit [Ping timeout: 260 seconds]
<ar> when i last tried sway, i just copied my i3 config and worked from there
FRidh has joined #nixos-chat
* JJJollyjim uploaded an image: 2020-07-01-183624_578x260_scrot.png (36KB) < https://matrix.org/_matrix/media/r0/download/johnguant.com/hihOTmogyizQiZmxTKUxvNRf >
<JJJollyjim> it's beautiful
<eyJhb> JJJollyjim: <3 <3 it really is
<ashkitten> hmmmmm
<ashkitten> sometimes things seem too easy in nix
<ashkitten> i can't test until i get my vr headset though
<ashkitten> but i might have successfully applied the patches needed to get steamvr working in sway
<ar> also, last time i tried to get steamvr working under i3, the steamvr compositor was crashing on startup for some reason…
<ar> but that was about 3 months ago
<ashkitten> not sure
<ashkitten> i hope it doesn't
<ashkitten> but that's why i have kde set up, in case it does have issues on sway
<etu> Happy channels are happy :)
<srk> \o/
<eyJhb> Anybody else that has a cat, that will place your cat onto your lap because it is doing stuff it isn't allowed to do? And then it starts doing stuff that it isn't allowed to do in your lap?
<eyJhb> Damn kitty
<ashkitten> :<
<JJJollyjim> :3
<srk> hard to reason with cats .. :D <3
<eyJhb> She has something about cables, on the desk... And she has something about eating plants in the window
<srk> plant some grass for her and ropes instead of cables
<eyJhb> And I know her "mom" is not happy with her poking holes with her tiny teeth, in the plants..
<ashkitten> cats are the reason i have a wireless headset
<eyJhb> She do not care about the grass :p
<ashkitten> though, i wouldn't have gotten a wireless headset if not for cats so it's overall improvement
<eyJhb> I have one as well, but I get a headache from them :(
<eyJhb> Also... She is obsessed with the advocado plant... Which, is not cat friendly
<eyJhb> Damn it.. Just pushed the cat into the other room, got her right back from my girlfriend because she was annoying in there
<ashkitten> rip
dadada_ has quit [Ping timeout: 256 seconds]
dadada_ has joined #nixos-chat
cole-h has quit [Quit: Goodbye]
ixxie has quit [Ping timeout: 246 seconds]
parsley936 has joined #nixos-chat
Jackneill has quit [Read error: Connection reset by peer]
Jackneilll has joined #nixos-chat
<Taneb> I found out recently that GitHub provides an RSS feed of commits to a branch
<Philipp[m]1> Github provides feeds to a lot of content when you add .atom to an url. It's always worth a try.
<etu> That's how the emacs overlay update some of their repos :)
<etu> It started out with the github api to find the latest commits, but that is very rate limited. So we parse the atom feed of commits instead :p
<Taneb> :D
<Philipp[m]1> I'm doing the same with some setup I have for prefetching nextcloud upgrades at work.
<Philipp[m]1> Also all the packages I'm maintaining in nixpkgs that have a github have their releases in my feedreader.
ar has joined #nixos-chat
raboof has quit [Ping timeout: 260 seconds]
raboof has joined #nixos-chat
monsieurp has joined #nixos-chat
monsieurp has joined #nixos-chat
monsieurp has quit [Changing host]
<jw358> and it seems fine but im also trying to find something that works just with direnv in general?
<jw358> afaik this does not load my direnv env vars
slack1256 has joined #nixos-chat
<slack1256> Is there a command like mktemp but for FIFOs?
<slack1256> The fish shell has a `psub -F` that does something like that but restricted to 4kb of data.
<JJJollyjim> mkfifo $(mktemp -u)? :p
<JJJollyjim> The man page says -u is unsafe, idk why :/
<qyliss> JJJollyjim: TOCTOU
<etu> JJJollyjim: I guess because mktemp checks that it doesn't exist and then if you use it later it may be created by something else.
<JJJollyjim> Yeah, I was imaging something like that
<JJJollyjim> Trying to work out of it could be security-unsafe though
<JJJollyjim> Or just might-fail unsafe
<etu> But I guess using it with mkfifo like that is "fairly safe" since it will return that string and fairly soon use that filename
<slack1256> Ooh I see.
<infinisil> slack1256: You could just do mktemp -d and make the fifo as a file in that dir
<qyliss> infinisil++
<{^_^}> infinisil's karma got increased to 317
FRidh has quit [Ping timeout: 265 seconds]
<JJJollyjim> Like, if it could be security-unsafe, someone could just make a file in your directory right?
<qyliss> JJJollyjim: If I create a FIFO from my unpriveleged process, and you don't check for errors from mkfifo (as is the default in a shell script), now you're talking to me and I might be able to escalate
<JJJollyjim> I guess not if you set the permissions right
<qyliss> JJJollyjim: unpriveleged processes (traditionally) have access to /tmp, but not to program/user directories
<JJJollyjim> Hmm right
FRidh has joined #nixos-chat
<qyliss> This being the reason for the invention of the sticky bit, so that those unpriveleged processes could create files in /tmp but not delete other people's
<JJJollyjim> Forgot about set -e -_-
<JJJollyjim> Ah nice
<qyliss> If you check for errors from mkfifo it's probably safe
<JJJollyjim> yeah makes sense
<qyliss> But the main problem the man page is warning against is because of how open(2) works
<qyliss> If I use mktemp(3) to generate me a file name, and then I try to create that file with open(2), passing O_CREAT, if that file already exists it'll just open the existing file instead of creating it.
<JJJollyjim> Ahh yeah
<qyliss> Nowadays we have O_TMPFILE and O_EXCL, and mkstemp(3), which will handle the creation for you
<JJJollyjim> oo neat
<qyliss> mkfifo(3) will fail if the path exists, too, so not a concern for fifos in C either since if it fails you don't get the fd. But in a shell script you'd have to remember to check for mkfifo(1) failing
<JJJollyjim> You also have to remember to check it in c :P
<JJJollyjim> It just returns 0 or -1
<JJJollyjim> And sets errno
<qyliss> Whoops you're right
<qyliss> I assumed it gave you the fd
<JJJollyjim> luv 2 point this gun directly and my foot
<JJJollyjim> *directly at
waleee-cl has joined #nixos-chat
__monty__ has joined #nixos-chat
AluisioASG has quit [Read error: Connection reset by peer]
AluisioASG has joined #nixos-chat
ajs124 has quit [Quit: killed]
das_j has quit [Quit: killed]
ajs124 has joined #nixos-chat
das_j has joined #nixos-chat
<adisbladis> etu: More than one person has approached me and thought the atom approach was really fugly :P
<adisbladis> Until I told them why it's there
<adisbladis> Then it's suddenly brilliant ^_^
<gchristensen> what is fugly brilliant?
<adisbladis> This stuff
<gchristensen> ahh
<adisbladis> I think it's right up your alley
<gchristensen> xmlstarlet
<gchristensen> that is definitely some code
<gchristensen> haha awesome
neeasade has quit [Remote host closed the connection]
<bkv> adisbladis: thats what comments are for :p
FRidh has quit [Ping timeout: 260 seconds]
FRidh has joined #nixos-chat
evanjs has quit [Quit: ZNC 1.8.0 - https://znc.in]
evanjs has joined #nixos-chat
<Philipp[m]1> I'm getting sporadic rate limits in the webui now since the redesign, so the atom feeds seem to be the last reliable way to communicate with github.
<Philipp[m]1> wgeeeeeeet! Why do you set the default depth to 5 on -r?
FRidh has quit [Ping timeout: 256 seconds]
FRidh has joined #nixos-chat
drakonis has joined #nixos-chat
monsieurp has quit [*.net *.split]
evax has quit [*.net *.split]
monsieurp has joined #nixos-chat
evax has joined #nixos-chat
lejonet has quit [*.net *.split]
jrobeson has quit [*.net *.split]
jrobeson has joined #nixos-chat
arianvp has joined #nixos-chat
lejonet has joined #nixos-chat
endformationage has joined #nixos-chat
cole-h has joined #nixos-chat
<etu> gchristensen: Yeah, I wrote that bit on ccc a couple of years back :p
endformationage has quit [Quit: WeeChat 2.6]
leonardp has quit [*.net *.split]
aterius has quit [*.net *.split]
balsoft has quit [*.net *.split]
jneplokh has quit [*.net *.split]
<bkv> Oh, sneaky. This app sneaks sqlite databases into an apk by using a .jpg extension
<bkv> At least, I'm assuming thats why I'm staring at an sqlite db ending in .jpg
leonardp has joined #nixos-chat
balsoft has joined #nixos-chat
aterius has joined #nixos-chat
aterius has joined #nixos-chat
aterius has quit [Changing host]
jneplokh has joined #nixos-chat
<samueldr> wow, the streaming "guide" on the ffmpeg wiki is not good
<samueldr> not a guide, but a hodge podge of lack of information about some snippets useful at some point for some people
<samueldr> I (dis)like how with "point to point streaming" they don't show the commands to run on the receiving side for udp https://trac.ffmpeg.org/wiki/StreamingGuide#Pointtopointstreaming
<samueldr> and looking at man ffmpeg, --f is... non-existant?
<samueldr> speaking of, if I wanted to stream a UVC video device's audio+video on the network with the lowest latency possible, how would *you* do it?
<samueldr> I have no real limitations AFAIK, and it's for a local network
<samueldr> hopefully I can just copy the stream without re-encoding
* samueldr has a bad idea
<samueldr> how about sharing the usb device over the network?
evanjs has quit [Quit: ZNC 1.8.1 - https://znc.in]
evanjs has joined #nixos-chat
cjpbirkbeck has joined #nixos-chat
<samueldr> it seems to be working just fine
aleph- has quit [Ping timeout: 256 seconds]
monsieurp has quit [Quit: Lost terminal]
monsieurp has joined #nixos-chat
<waleee-cl> samueldr: https://www.nginx.com/blog/video-streaming-for-remote-learning-with-nginx/ (haven't tried it, may turn your computer into flaming wreck &c &c disclaimers)
<samueldr> turns out usbip has AFAICT no added visible latency
FRidh has quit [Quit: Konversation terminated!]
<samueldr> and I can use the exact same methods whether I intend to do local or remote capture!
<gchristensen> I feel a little bad about this being the top comment: https://lobste.rs/s/chxutg/recommendations_for_running_rack_mount#c_nfswc8 b/c I understand the draw to having fancypants server grade toys at home but also
<samueldr> heh
<etu> gchristensen: But it's correct, server grade is not human friendly.
<samueldr> at the very least, workstation-class that uses server-type parts can be more liveable
<etu> Indeed
<gchristensen> yeah
<etu> I have a rack at home
<etu> I don't have it for computers
<etu> I picked it up from adisbladis's house a bit more than 8 years ago I think. I've kept it safe ever since :)
<gchristensen> hah
<samueldr> one thing I was interested in doing was to use the server form factor, with a custom build in a case, so it can be racked
<gchristensen> I have one of those but I regret it, I can't put it anywhere but in my basement
<samueldr> most likely 4U because the size would work well with everything intended for a computer case
<__monty__> How about a rack with 4U boxes just so you don't have a bunch of cases lying around.
<__monty__> ?
<samueldr> I was thinking half a rack to fit under my desk in fact
<__monty__> Yeah, basically what samueldr said.
<samueldr> and possibly shelves + drawers to fill the rest
<samueldr> maybe one networking doodad
<gchristensen> they're just so awkwardly shaped you can't really hold them very easily with one person
<gchristensen> vs. even a largeish ATX case is fairly easy to carry
<__monty__> Because of the depth?
<gchristensen> just harder to get your hands around it overall
leah2 has quit [Ping timeout: 265 seconds]
leah2 has joined #nixos-chat
<ashkitten> samueldr: usbip is great
<samueldr> with a cheap uvc capture card I'll be able to stream in-home
<samueldr> I figured out yesterday why the perfs were terrible
<samueldr> sure, it's not a quality stream, but the main goal is to get some gaming time without having the machine close to me
<ashkitten> speaking of uvc capture cards, https://www.cloner-alliance.com/store/ these all look great
<ashkitten> i kinda regret paying twice as much for a magewell card before finding out about these
<samueldr> but I was playing super mario odyssey on the switch earlier as a local test, and in-game it doesn't matter as much
<ashkitten> though magewell is a really well regarded brand
<samueldr> when I say cheap, I mean 18$USD cheap
<samueldr> and I ordered a second one so I can use it as an HDMI input for e.g. a raspberry pi
<ashkitten> nice
<joepie91> today, I've been torture-testing my validation library in an SQL query builder project: https://twitter.com/joepie91/status/1278396935024660482
<joepie91> pretty happy with the results \o/
<ashkitten> i got a $360 magewell usb capture card because i didn't know of any cheaper options that supported uvc >>
<samueldr> sorry, USD$13.34, CAD$18.17
<ashkitten> (aside from really cheap ones)
<ashkitten> i wanted something decent
<samueldr> it has some warts and quirks though
<samueldr> yeah, that's not it, that's passable
<samueldr> though the latency is quite good
<samueldr> with added networked latency (but input native to the switch) it felt as if there was no input lag
<ashkitten> honestly i sorta wish i'd gone with magewell's pcie ones. cheaper, supports analog, low enough latency i'd probably be able to play smash still
<samueldr> well, there *was* no input lags, but you know what I mean
<ashkitten> i went with the usb one because of loop-thru for latency reasons
<ashkitten> 1080p 60fps YV12 works great
<ashkitten> anything more than YV12 gives errors in the kernel log
<ashkitten> but YV12 is what mp4 uses iirc so it's not like it's actually reducing my potential stream quality
__monty__ has quit [Quit: leaving]
<Philipp[m]1> Can anybody here reccomend me a tool to archive and tag bookmarks of relevant articles I might want to link in a few years time?
<Philipp[m]1> Bonus points for having a way to archive the article directly.
<gchristensen> archive.org's wayback machine?
parsley936 has quit [Remote host closed the connection]
parsley936 has joined #nixos-chat
cjpbirkbeck has quit [Quit: cjpbirkbeck]
<Philipp[m]1> Does it have a tigging feature for my personal use when I logged in?
endformationage has joined #nixos-chat
<ashkitten> ugh, intel wifi cards don't support 5GHz ap mode. forgot.
parsley936 has quit [Remote host closed the connection]
<joepie91> philipp[m]1: only thing I can immediately think of is pinboard
<samueldr> hmmm... this inexpensive uvc card, with an arm board that can do usb gadget mode could be interesting as a generic remote console thing
<samueldr> though the board would have to support gadget mode when also doing host mode, so no raspberry pi zero I think
<ashkitten> wtf is "wifi 5"
<samueldr> the new naming scheme
<ashkitten> i hate this rebrand
<samueldr> there is also wifi 6
<samueldr> which is one better
<samueldr> apparently
<ashkitten> seems like 5 is ac and 6 is ax
<gchristensen> nice!
neeasade has joined #nixos-chat
<colemickens> philipp: I've seen this popup the usual places lately: https://github.com/jarun/buku
<ashkitten> ordered a qualcomm m.2 wifi card, i guess the positive side is now we can have dual band in the router
<colemickens> Idk if it supports snapshotting but it seems like it'd be in scope.
<colemickens> actually, I need to check this out soon, I didn't realize there were already other apps that use buku...
<samueldr> if anyone was interested in my saga of getting the far-away computer's display onto my nearby one, it seems to work fine
<samueldr> and I simplified it even a bit more by using synergy instead of sending full usb devices, especially more simple to go back and forth
<samueldr> the latency is good enough that for what I intend to do I don't think it'll keep me back
<samueldr> and since it's a video stream I can cheat in caves! https://stuff.samueldr.com/screenshots/2020/07/20200701194341_5buyxsb9fcnrt0c6sjx.png
<ashkitten> nice
<ashkitten> sigh, vr stuff didn't come today
<ashkitten> was really hoping for it, but i guess it'll be here tomorrow
<samueldr> it's a federal holiday, there is no mail service today!
<ashkitten> it's a what
<samueldr> it's canada day
<ashkitten> oh
<ashkitten> i don't live in canada
<samueldr> (I know, teasing)
<ashkitten> lol
<samueldr> it's a holiday in canada, therefore the world!
<ashkitten> if i had any energy in my body i would celebrate canada day
<ashkitten> but unfortunately i wore myself out with ambient anxiety from awaiting the vr stuff
<ashkitten> how do canadians celebrate it anyways
<samueldr> I don't exactly know
<samueldr> here it's not really celebrated
<ashkitten> ah
<samueldr> it is, but to a much lesser extent than the rest of Canada
<samueldr> especially given ours is literally a week before
<samueldr> our national holiday, to the province of Québec