<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>
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
<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
<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>
,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!”"