gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
cole-h has quit [Ping timeout: 272 seconds]
<lovesegfault> makefu: it really was indigestible
<lovesegfault> I met it again this morning, if you catch my drift
<lovesegfault> and it was horrible
<lovesegfault> I really outdid myself
<samueldr> without filesystem access (so no /proc), anyone knows a way in C to get the uptime of the Linux kernel with more precision than at the second%
<samueldr> sysinfo is unhelpfully at the second https://man7.org/linux/man-pages/man2/sysinfo.2.html
<samueldr> everyone, and their cat, seems to just read from /proc/uptime
<samueldr> ooh, might be clock_gettime() and CLOCK_BOOTTIME
<ajs124> > A nonsettable system-wide clock that is identical to CLOCK_MONOTONIC, except that it also includes any time that the system is suspended
<{^_^}> error: syntax error, unexpected ',', expecting ')', at (string):345:69
<samueldr> yes
<ajs124> oops, didn't mean to trigger the bot
<samueldr> that's what I wanted
<samueldr> just tested it
<samueldr> and what's worse is that it seems to be much better and easier than reading /proc !
rajivr has joined #nixos-chat
bridge[evilred] has joined #nixos-chat
endformationage has quit [Quit: WeeChat 2.9]
cjpbirkbeck has quit [Quit: Goodbye, take care]
<samueldr> thinking about using zeromq for some kind of IPC, anyone has bad experiences they want to share? (though you can share good experiences too)
<samueldr> also interested in if you have strong opinion in something you think is better
<samueldr> though a requirement is minimal dependencies, ideally self-contained, as it's going to go in stage-1 (initrd) for Mobile NixOS
maxdevjs has quit [Read error: Connection reset by peer]
cole-h has joined #nixos-chat
hmpffff has joined #nixos-chat
<eyJhb> cole-h: What timezone are you in?
<cole-h> eyJhb: Pacific. I think it's PDT right now.
<sphalerite> samueldr: something like protobuf over unix sockets? I have neither bad nor good experiences with that, but it's probably what I'd try first.
abathur has quit [Ping timeout: 264 seconds]
abathur has joined #nixos-chat
<eyJhb> cole-h: Then it is a little late :p
<cole-h> Indeed it is x)
<adisbladis> samueldr: I can't recommend zmq highly enough
<adisbladis> sphalerite: ZMQ is not enforcing any message encapsulation. You could easily chuck protobuf over ZMQ.
<cole-h> :o
<cole-h> adisbladis: :oooo
<cole-h> Long time no see :D
<eyJhb> ,mrworldwide
<{^_^}> adisbladis
<eyJhb> :D
<adisbladis> cole-h: o/
<eyJhb> adisbladis: are you feeling refreshed?
<adisbladis> Not really tbh
<cole-h> :(
<eyJhb> cole-h: Don't you have uni as well tomorrow?
<cole-h> Yep :)
<sphalerite> adisbladis: noted :)
<eyJhb> ANd did you look at any of the challenges? :p They are not the best atm. :p And there need to be a lot more
<cole-h> Not yet.
lovesegfault has quit [Ping timeout: 260 seconds]
lovesegfault has joined #nixos-chat
<ashkitten> augh why are so many soundtracks not available as digital downloads
<ashkitten> my computer doesn't even have a disk drive
cole-h has quit [Ping timeout: 240 seconds]
<sphalerite> What's everyone's preferred way to stream audio via LAN? I want to set up a pi connected to my amplifier as a sound sink, and am wondering how best to implement that on the software side…
<sphalerite> I think I will have multiple things, because I want pulseaudio for convenience and something low-latency for synchronisation with video on the source machine…
<ashkitten> sphalerite: if you get snapcast working lmk
<ashkitten> i want to use it myself
<ashkitten> but couldn't make it work
<adisbladis> sphalerite: It's built-in to pulseaudio
<adisbladis> module-native-protocol-tcp
<adisbladis> It can even integrate nicely with avahi (I've only done this on non-nixos before so ymmv)
<adisbladis> And that one is called module-zeroconf-discover
<adisbladis> & module-zeroconf-publish
<adisbladis> Re video syncing I think you can forget about it without something like a casting protocol
<sphalerite> adisbladis: yeah I'm planning to use module-native-protocol-tcp, but I want something in addition to that which can do low latency :)
<adisbladis> I think you'll be hard pressed to find something with lower latency
__monty__ has joined #nixos-chat
Jackneilll has quit [Ping timeout: 246 seconds]
Jackneill has joined #nixos-chat
<ajs124> netjack maybe?
<gchristensen> is there a tool for progressively, interactively, filtering lines out of a big text document?
<gchristensen> I'm exploring a huge log file, and want to explore it by looking for or excluding things as I go, and adding more | grep's in the chain is tiresome :P
<eyJhb> gchristensen: filtering with regex?
<eyJhb> Ahh
<infinisil> Ohh there was something exactly for that
<infinisil> Ah actually no
<infinisil> Was something a bit different (it would preview the result of shell commands as you type them)
<sphalerite> gchristensen: do you use emacs?
<sphalerite> gchristensen: I wrote a little hack for ~live-previewing jq expressions recently, it should be easy to adapt for grep
<sphalerite> gchristensen: alternatively, lnav
<tilpner> gchristensen: less with consecutive &/?
<tilpner> It does not have live-preview, if you mean that by interactive. But it's more interactive than | grep
<eyJhb> among-sus if anyone wants it (text based) https://termbin.com/b5fz :p
<gchristensen> nice ideas everyone, thanks :D
<etu> eyJhb: haha, I've been thinking of packaging that to run it on a server, gonna save that down and just paste into the right config
<eyJhb> The joys of Nix! Took no time
<eyJhb> Only missed some key points of my lecture! *cries*
<viric> what lecture?
<eyJhb> Stochastic Proceses, so the wrong one to do it in viric
<FireFly> I saw eyJhb vent from the lecture hall,
__monty__ has quit [Quit: leaving]
<viric> the stochastic process of covering the keypoints of the lecture
<eyJhb> FireFly is lying! :(
<eyJhb> etu: made a PR for it :p Not sure if that is a good idea however
hmpffff has quit [Ping timeout: 272 seconds]
hmpffff has joined #nixos-chat
<sphalerite> why is rendering HTML so complicated? :(
<sphalerite> s/HTML/websites/;s/rendering/running/
<eyJhb> sphalerite: building a HTML rendererrerere?
<sphalerite> yes, chromium
<eyJhb> Ah
<eyJhb> JS is like the thing that takes the longest I think?
<joepie91> IIRC V8 isn't that hard to compile
<joepie91> think my Node.js builds in the past (which AFAIK do a from-source V8 build) were half an hour or so
<eyJhb> Takes forever on my little laptop
<eyJhb> But I am quite certain (!!!) that sphalerite has something more powerfull :P
<gchristensen> [98262.610966] alacritty[28620]: segfault at 8 ip 00007f6fc4fc6ab0 sp 00007ffd920df8a8 error 4 in libwayland-client.so.0.3.0[7f6fc4fc2000+6000]
<gchristensen> wooo
<eyJhb> Your terminal just ate the dirt?
<sphalerite> gchristensen: did this happen while pasting?
kini has quit [Remote host closed the connection]
<gchristensen> it just happened while I was looking at another window on another workspace
<sphalerite> my alacritties like crashing when the monitor configuration changes
<sphalerite> but I always have tmuxes in them so I don't care enough to investigate further x)
kini has joined #nixos-chat
<sphalerite> joepie91: hm, I wonder if it's the DOM API then? Or the HTML/CSS rendering and layout engine…
<joepie91> sphalerite: who knows, it's a google project :P
<joepie91> I would be 0% surprised if it turns out to be some really dumb unoptimized thing that noone ever bothered to optimize because Google has a buildfarm anyway
<gchristensen> tfw "security" software's included bash script has dozens of serious problems caught by shellcheck
<gchristensen> isn't a listen on '[::]' supposed to by default listen on ipv4 too?
<NinjaTrappeur> gchristensen: I think it depends on the OS.
<NinjaTrappeur> I think it is the case for Linux though.
<gchristensen> mysterious ...
<sphalerite> gchristensen: yes, it is. Some software obnoxiously sets it to listen on IPv6 only though.
<LnL> there's a kernel setting for it IIRC
maxdevjs has joined #nixos-chat
<sphalerite> gchristensen: try stracing the process for setsockopt, and see if it sets IPV6_V6ONLY
<NinjaTrappeur> If you have access to the source, you can also double check :: is used as INADDR6_ANY under the hood.
<NinjaTrappeur> +1 for strace
<sphalerite> gchristensen: iirc openvpn is one such software
cole-h has joined #nixos-chat
<eyJhb> Translating stuff from Matlab to Python is... OK and hell at the same time
<eyJhb> Especially when written by academic people
<gchristensen> abathur: I wonder if resholved should check that a substituted program is executable
<abathur> seems reasonable
maxdevjs has quit [Remote host closed the connection]
maxdevjs has joined #nixos-chat
<samueldr> sphalerite: one thing is I don't want to have something that's too much to implement, already zeromq gives me the framework for making the connections in one function
<samueldr> and then, more importantly, it gives me the ability to pub/sub with multiple clients
<samueldr> without having to do anything special!
<samueldr> but yeah, on the wire, I still need _something_... for now it'll probably be json, just because I don't have to add anything to get it, but it'll clearly be documented that on the wire the format is not final
<samueldr> I don't think I need any speed for now, just a way to get data out between independent processes
ixxie has joined #nixos-chat
<sphalerite> fair enough
<samueldr> since no one seemed to have negative points about it, I'm sure to go for it, and there's already mruby bindings even
endformationage has joined #nixos-chat
<cole-h> colemickens: ping
<eyJhb> cole-h: time for uni again?
<cole-h> Nah, I got ~an hour before lecture, but currently working on my essay x)
<eyJhb> PST time, right?
<eyJhb> What are you studying btw?
<cole-h> I think it's PDT
<cole-h> compsci major
<samueldr> want to go for compsci colonel and compsci general?
<cole-h> Hmmm, maybe.
<aanderse> as mentioned earlier: anyone here running 20.09 + X11 + plasma, can you please run okteta and see if it crashes on startup
<aanderse> it does for me, but I'm not 100% convinced i didn't introduce this problem myself yet
<eyJhb> cole-h: 11:59?
<cole-h> Indeed
<eyJhb> Wait. Essays in compsci?
<cole-h> No, this is for my last general ed course :P
<eyJhb> Ahh....
<eyJhb> Do some ML that does it for you!
<cole-h> oh no
<eyJhb> \s :D
<cole-h> Heheh
<eyJhb> Also, stopping the lab today :p
<eyJhb> Completely forgot. But I am paying for it myself :(
<cole-h> RIP :(
<cole-h> Ping me next time
<cole-h> Unless it's near the end of December (finals), I should have more free time :)
<eyJhb> I found a bug, so it doensn't work after 5 hours :p Damn it
<eyJhb> Will do!
<eyJhb> I have finals around there as well. Or, the start of january.. Christmas/New Years have not been fun or that hyggelige for 3 years
<eyJhb> Hmm
<eyJhb> ,hygge test
<eyJhb> Never can remember how to define stuff
<eyJhb> ,hygge = "something"
<{^_^}> hygge defined
<eyJhb> ,hygge
<{^_^}> "something"
<eyJhb> ,hygge = a Danish word for a quality of cosiness (= feeling warm, comfortable, and safe) that comes from doing simple things such as lighting candles, baking, or spending time at home with your family
<{^_^}> hygge redefined, was defined as "something"
<eyJhb> ,hygge
<{^_^}> a Danish word for a quality of cosiness (= feeling warm, comfortable, and safe) that comes from doing simple things such as lighting candles, baking, or spending time at home with your family
<eyJhb> Perfect, night :)
<cole-h> o/
<cransom> it's daniel ricciardos favorite (only?) known dutch word, no?
<elvishjerricco> Can anyone explain to me how VLC resolved its conflict between GPL and the App Store? The app was taken down in 2011 because of it, but a new app was released years ago.
rajivr has quit [Quit: Connection closed for inactivity]
<infinisil> "President Trump’s Twitter accessed by security expert who guessed password “maga2020!”"
<infinisil> LMAO
<cole-h> no way
<cole-h> ...
<aanderse> my favourite part is that this is the second time that person has guessed trumps password
<aanderse> lol
<cole-h> lol
<abathur> oof
<samueldr> mine is that it was a password he openly suggested using
<infinisil> ^
<aanderse> well i mean, he's in his 70s and probably not that tech savvy, it happens
<aanderse> but yeah...
<aanderse> ha ha ha
<aanderse> the whole story is gold
<aanderse> :D
<cransom> if only he knew someone that would help him out with his twitter security
<clever> what other secure systems are using equally "secure" passwords? .....
<cole-h> Missile launch password is also "maga2020!"
<joepie91> no, that's just 0000
<joepie91> default manufacturer setting
<cole-h> No, that's the launch *code*
<cole-h> The password is different
<cole-h> :P
cjpbirkbeck has joined #nixos-chat
<abathur> wonder how many other people are now frustrated that they'll have to guess his new password...
<samueldr> POTUS2021!
<gchristensen> 2024...
<samueldr> gchristensen: shhh, that's the one for three years down the road
<joepie91> I'm mostly wishing for him to have become utterly irrelevant in three years
<cole-h> I'm hoping for one
mog has joined #nixos-chat
tilpner has quit [Remote host closed the connection]
<abathur> I suspect a lifetime ambassadorship that rotates to whoever is at the top of our, er, "list"
tilpner has joined #nixos-chat
<cole-h> colemickens: https://github.com/cole-h/flake-alacritty :eyes: Totally not based off of your flake-firefox-nightly...
<colemickens> cranston, was that a Giulani joke? Lmao
<cole-h> woah
<cole-h> that was fast
ky0ko has quit [Ping timeout: 265 seconds]
ky0ko has joined #nixos-chat
ixxie has quit [Remote host closed the connection]
<energizer> "Kindle Cloud Reader can't open this book, but you can read it with our free Kindle app." Can I run a kindle app on nixos?
<samueldr> maybe anbox, but I wouldn't necessarily hold my breath
<colemickens> cole-h: nice! Is alacritty under that active-of development?
<cole-h> colemickens: Not really, I just wanted to move it out of my config :P
<colemickens> I've decided to embrace it. My nixcfg has a pkgs/ dir now of these types of packages. I mostly care about neovim and cchat-gtk.
* cole-h was also planning to make a neovim-nightly flake
<cole-h> :P
<adisbladis> cole-h: A la the emacs overlay?
<cole-h> Maybe. Haven't looked there in a while. More a la colemickens's flake-firefox-nightly / nixpkgs-wayland
<cole-h> Or rather, directly inspired by ^
hmpffff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]