gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
<elvishjerricco> samueldr: I understand that set -e isn't inherited by certain things now. But what continues to baffle me is that I can't set it at all within those things
<elvishjerricco> Agh
<elvishjerricco> So dumb
<elvishjerricco> Guess `|| return 1` is gonna be it
<elvishjerricco> TIL never EVER rely on -e
<elvishjerricco> I'm just gonna use a different language
<cole-h> RiiR? ;))))
<elvishjerricco> Any suggestions for a language to execute shell commands without a bunch of boiler plate code?
<infinisil> elvishjerricco: bqv and others have said some good things about execline
<elvishjerricco> Never heard of that. Looking...
<samueldr> elvishjerricco: from my link, and quote, "explains" that latter bit, there is no way to re-enable it and they decided to not allow it for compatibility
<elvishjerricco> samueldr: Yea I glossed over that bit
<samueldr> I just use ruby whenever I need to, since the boilerplate is quite minimal, and not even required
<samueldr> I have grown tired of bash
aleph- has joined #nixos-chat
<elvishjerricco> Haskell has been my goto. But some of the basics lack lightweight libraries for scripting purposes
<samueldr> I end up making a small boilerplatey bit to print exec'd commands like "set -x" and that's it
<bqv> Can confirm, I do say good things about execline
<samueldr> require "shellwords"; def run(*cmd); puts " $ " + cmd.shelljoin; system(*cmd); end # though I forget the bit about return values
<samueldr> what's more ergonomic with a real programming language is manipulating file contents though
<elvishjerricco> That chainloading concept of execline seems entirely unnecessary, based on the blurb at the beginning of http://www.skarnet.org/software/execline/grammar.html :P
<elvishjerricco> But I'm sure that has little to do with how nice it is to use
<samueldr> every time I've tried to look at execline I was faced with that impenetrable examples-free website
<samueldr> it's like they try REALLY HARD not to present any example
<elvishjerricco> Yea i was looking for some...
<elvishjerricco> The only example they give doesn't seem to match the grammar they define above?? `foreground { sleep 1 } echo blah`
<elvishjerricco> `foreground` is either an external or a builtin, but then what follows is an arglist, not an options
<infinisil> I also just looked through the website, and yup, also disappointed by no examples
<infinisil> The concept seems interesting
<bqv> infinisil: you have my nixus port as a demo :p
<infinisil> Hehe yeah just looked at that
<bqv> the interesting thing is i find myself using execline stuff more and more during normal shell stuff because it's just so much more convenient
<bqv> this morning i was tempted to just alias cd to execline-cd
<cole-h> What's the difference
<bqv> execline-cd does chainloading and is a convenient way to drop into an execline scope
<bqv> posix-cd changes the parent shell's cwd
<bqv> e.g. i can cd /tmp and `execline-cd /home/cole-h touch hello` and i will end up in directory /tmp but i will have made the file /home/cole-h/hello
<cole-h> I see
<bqv> ends up being like a "with-current-directory" function, for those of you more emacs inclined
<cole-h> That's what I was imagining, OK.
<bqv> (as for the latter part, some keywords collide outside execline scopes (like cd!) so `execline-cd .` is a cheap way i use to ensure i'm in one if i want to use `if` or something
<bqv> )
<elvishjerricco> This seems... like more to learn than I want to get into right now :P I can see the appeal though.
<elvishjerricco> infinisil, samueldr: Btw I did find this: https://danyspin97.org/blog/getting-started-with-execline-scripting/
<bqv> another useful example might be a situation where some program/service requires an absolute path to a binary for something to execute, and you need a conditional. you *could* do `bash -c "thing1 && thing2"`, or you could do `if thing` '' thing2` with execline and skip the unnecessary layer
<samueldr> AFAIUI this limits an execline to ARG_MAX maximum tokens?
<bqv> that value, in any modern linux, is over a million
<samueldr> ridiculous
<bqv> though, i think there is some other limiting factor somewhere so i do try and keep things modular
<samueldr> how can I implement anything in such limited constraints?
<cole-h> Heh
<cransom> 'this is not web scale'
<bqv> lmao
<elvishjerricco> Guess I'll just do my stuff in Haskell tonight. *sigh* I have to write a whole import statement and use a bunch of annoying apis in System.Process
<cole-h> :D
<samueldr> see, there's this thing that would have been useful on execline's website... explaining that this is "one big command" and that parts of it have the "prog..." argument that ends up basically being "execing" into the those at the end (or other conditions)
<cole-h> elvishjerricco: What *are* you writing? Just out of curiosity
<bqv> elvishjerricco: if you do want to do it in execline, you can ping me and use me as a dictionary, i'll be up a good few hours and i respond well to pings
<elvishjerricco> cole-h: Just a script to automate the testing of some OTHER Thing
<samueldr> now that I know about the fact that it's really "one process which execs into the next part" I grok better how it's supposed to work, but it seems to not be explained
<cole-h> elvishjerricco: Ah, the legendary art of Yak Shaving
<elvishjerricco> samueldr: I think that's well explained in the grammar page of the site. But the grammar is terribly described there
<samueldr> serious question: how is that well explained if terribly described? :)
<samueldr> yes, it's part of that page, but nowhere is it "pictured"
<elvishjerricco> samueldr: Oh I just meant the idea of one process that repeatedly chainloads :P
<samueldr> even the first "straightfowrard" example is definitely not straighforward since it doesn't look like anything useful without the grammar stating that basic fact beforehand :/
<elvishjerricco> samueldr: That one example doesn't even parse with the grammar on that page lol
<elvishjerricco> At least not in the grammar syntax I've seen used by everyone else in the world
<infinisil> I guess I might consider using execline for scripting, it's probably better than bash at least in theory
<elvishjerricco> Ok, time for a food break
rajivr has joined #nixos-chat
<bqv> ,locate fakepty
<{^_^}> Couldn't find in any packages
<bqv> ,locate faketty
<{^_^}> Couldn't find in any packages
<bqv> ,locate bin pty
<{^_^}> Found in packages: haskellPackages.vk-posix-pty
<bqv> ffs
<bqv> i'm sure that's a thing, somewhere
<bqv> there's a way to create a fake pty without using screen/tmux or something
<bqv> i used it long ago, but the code is long deleted
* cole-h wishes git:// inputs would keep the .git intact
<samueldr> with all your mistakes?
<drakonis> hmm
<drakonis> positive words there i suppose
<drakonis> might bring in some newbies
<bqv> ,locate windows.h
<{^_^}> Found in packages: zig, dlib, lldb, wine, root5, swift, vigra, z88dk, lldb_8, lldb_9, cmdstan, freerdp, groonga, lldb_10, msgpack, cdrtools, directfb, boomerang, boost.dev, qtcreator, wineMinimal, wineStaging, boost155.dev, boost159.dev, boost160.dev, boost162.dev, boost163.dev, boost164.dev, boost165.dev, boost166.dev, boost167.dev, boost168.dev, boost170.dev, boost171.dev, rPackages.BH, winePackages.base, winePackages.staging, and 8 more
<bqv> > pkgs.vigra.meta.description
<{^_^}> "Novel computer vision C++ library with customizable algorithms and data structures"
<bqv> PR blunder
<drakonis> i tried to use gentoo once
<drakonis> i didnt like it
<drakonis> it is too goddamn high maintenance
<drakonis> in two hours i did basically nothing of value while wrestling with the convoluted mess that is portage
<drakonis> it kills me
<drakonis> hmmm
<drakonis> the whole post deals with the present of nix and not soon to be present
<drakonis> which is entirely okay
<cole-h> emily, lovesegfault, gchristensen, tilpner: Just going back through logs for an unrelated reason and found I was talking to you guys about "elevator=noop" for ZFS -- I found out how to do it using services.udev.extraRule: https://github.com/cole-h/nixos-config/blob/3589d53515921772867065150c6b5a500a5b9a6b/hosts/scadrial/modules/services.nix#L70
<cole-h> (Since elevator=noop doesn't work anymore)
<cole-h> (I think some people have said it doesn't matter, I've read in other places that it does, etc... so I'm just reporting back with what I found)
<elvishjerricco> cole-h: I thought I heard somewhere that ZFS sets the scheduler correctly on its own... or something... I haven't researched the topic at all :P
<cole-h> elvishjerricco: If it has control of the disk
<cole-h> I've partitioned mine, with sda1 being boot, sda2 being swap, and sda3 being ZFS
<elvishjerricco> Oh I see
<cole-h> Before that change, my scheduler was `mq-deadline`, but now it's `none`
<cole-h> So it does change the scheduler. Now, if that helps anything? Who knows :D
<elvishjerricco> cole-h: How do you check that? I'm guessing LUKS would also not get the automatic treatment from ZFS?
<cole-h> I checked it with `udevadm info -a --name /dev/sda3 | rg scheduler`
<cole-h> But I think the scheduler is for the whole block device, so you can also check with `cat /sys/block/sda/queue/scheduler`
<elvishjerricco> Hm ok. Gotta go check some disks :P
<cole-h> (I dunno about LUKS, never used it before)
<elvishjerricco> cole-h: I used the /sys/block command and got `[mq-deadline] kyber none` What are these words? :P
<cole-h> The schedulers
<cole-h> lol
<elvishjerricco> Why are there three?
<cole-h> From what I've read/remember reading/remember remembering, you want it to be none. But I was also linked to a comment from behlendorf (a main dude of ZFS I guess) recently, that made it sound not really important?
<cole-h> idk, I think those are the 3 default schedulers in the kernel?
<elvishjerricco> cole-h: Oh, wait, is that indicating that mq-deadline is the one in use?
<cole-h> yeah
<cole-h> And the others are "available"
<elvishjerricco> Got it. Ok so I want that to be none for ZFS.
<elvishjerricco> Though
<elvishjerricco> Doing the same command for the luks volume instead of the physical disk said `none`
<elvishjerricco> I guess because LUKS probably just delegates to the one selected by the underlying device?
<cole-h> This is what I was linked to before
<samueldr> anyone knows of an open source firmware for mice like QMK is for keyboards?
<samueldr> ideally something you can run on your own hardware
<elvishjerricco> cole-h: Wait, that link seems to imply all the schedulers are fine to use, doesn't it?
<cole-h> samueldr: QMK ;)
<samueldr> I see a 3D printed shell, no firmware :)
<cole-h> elvishjerricco: Yeah
<elvishjerricco> So I won't bother then :P
<cole-h> samueldr: ^ Soon™ 👀
<cole-h> (Nothing that I've seen, yet, unfortunately)
<samueldr> curious about what hardware there will be for the tracking
<samueldr> I'm getting frustrated at mice
<samueldr> it seems everything is a downgrade or the same
<cole-h> I like Logitech's G903, but it's also kinda expensive
<samueldr> like logitech's latest mx anywhere, which *DOESN'T SUPPORT MIDDLE CLICKING*
<samueldr> meh, 130$ is the target price range, but I'm not looking into the gamer section :)
<samueldr> I'm also scared at needing software for mice
<samueldr> since no one makes software for linux, that's another variable in the equation
<samueldr> I have a neat logitech bluetooth keyboard... which saves no settings (other than pairings) so if you want to switch some settings you need software for it
<samueldr> which doesn't exist on many platforms including the target mobile devices :|
<cole-h> I used the software exactly once (in a Windows VM) to change my DPI... That's still once more than you'd like, I guess.
<samueldr> it's like no one at logitech uses the hardware they make
<samueldr> yeah
<cole-h> samueldr: https://github.com/libratbag/piper Haven't ever used it, but this looks promising for that, though
<samueldr> yeah, I know of third party efforts, and it's neat
<samueldr> but it's fatigue
<cole-h> Oh, OK.
<samueldr> nothing works ever on anything these days
<samueldr> even things designed to work
<samueldr> just 10 minutes ago
<samueldr> <button /> is seemingly broken in HTML
<samueldr> as mdn states and the spec states, if they have a value/name pair they are sent as form data
<samueldr> except they seem to not be on either chrome or firefox
<samueldr> didn't investigate much more, but it's grating to see some basic stuff like that not work
<samueldr> and not only not work, but silently without explanation not work
<samueldr> I'm so glad that web dev is not my area of work anymore
* cole-h shudders
<samueldr> oh, right, it's also mixed with my extreme fatigue at trashable EVERYTHING these days
<samueldr> logitech once had great warranties
<samueldr> but right now they are, according to their website, ONE YEAR long
<samueldr> I'd much rather invest 5× the cost in something repairable and hackable
<cole-h> samueldr++
<{^_^}> samueldr was put on Santa's "nice" list
<cole-h> Nice
<samueldr> I *already* am on that list
<samueldr> never left!
<samueldr> also tried looking at other manufacturers, and either they didn't list much information about warranty, or the same 1 year
<cole-h> samueldr: Let's make a startup. I'll do nothing, while you do everything. Profits split 50/50. Sound good?
<cole-h> :P
<samueldr> I don't think you understand how the world works
<cole-h> What is this "world" you speak of
<samueldr> *I* do the "nothing" business, and you mind the actual business :)
<samueldr> and profits are not split
<cole-h> lmao
<samueldr> imagine this guy... *splitting* profits
jared-w_ has quit [Ping timeout: 258 seconds]
<cole-h> It was a special, one-time deal because you also like to hack on NixOS
jared-w_ has joined #nixos-chat
<samueldr> oh, I'm also looking for open hardware, repairable, and hackable, for everything btw
<cole-h> Let me know if you find it; I'm also interested
<samueldr> well... open hardware might be a bonus thing, it could be not-open but still repairable and hackable
<samueldr> I said everything, as including my oven, microwave, dishwasher, anything of the sort
<cole-h> I feel like open hardware is a long way off from being commercially viable... but I'm only 21 with no business knowledge, so what do I know.
<samueldr> errrr
<samueldr> help
<samueldr> rofi's not feeling well either
<cole-h> rofl
<cole-h> fontconfig x)
waleee-cl has quit [Quit: Connection closed for inactivity]
<samueldr> but I didn't upgrade on this machine!
<cole-h> One of the most important pieces of software is also the most brittle
<samueldr> I think I didn't upgrade
<cole-h> Also, totally unrelated to anything, but I'm a little miffed that new Firefox mobile doesn't have this feature yet: https://github.com/mozilla-mobile/fenix/issues/1523
<{^_^}> mozilla-mobile/fenix#1523 (by jonalmeida, 1 year ago, open): Send tab to device without opening the browser
<cole-h> It was quite literally the only reason I still had the old Firefox still installed
<cole-h> and I accidentally updated it the other day
<samueldr> yeah, still on 20.03
<samueldr> >> could not get height for 'Go Mono 12' (likely missing font), using 12.
<samueldr> welp
<samueldr> guess I'll reboot?
<samueldr> and even the previous generation is broken
<cole-h> Ouch
<samueldr> I uh... will continue in #nixos
cjpbirkbeck has quit [Quit: Goodbye, take care]
iqubic has joined #nixos-chat
koh has joined #nixos-chat
<samueldr> (about to look at github if there are existing issues, otherwise open one)
<samueldr> oops
<abathur> like a tennis match :]
<samueldr> well, I'm the one always reminding peeps not to be on topic here
<abathur> > spongebobify "maybe we just set the bot up to do this any time someone mentions Nix in here...?"
<{^_^}> "MaYbe we JUst seT THE Bot UP to dO tHIS aNy TiMe SOMEonE meNtioNS niX in HeRE...?"
<samueldr> but discussions about non-nixos uses of nix can fit here
<samueldr> or even circlejerking about NixOS!
<abathur> hehe
<samueldr> but only wholesome jerkings!
<abathur> PG
<ldlework> "electron", rip
<samueldr> it's apparently hashtag Linux
<samueldr> so you can have it
<ldlework> i thought electron was borked on nixos right now
<samueldr> I don't know
<ldlework> p sure
<abathur> heheh
<samueldr> oh, it's a bit more subtle than that... most of the time the main issue comes from having weird electrons, or having hard to build js-side deps
<samueldr> but AFAIK electron itself, the runtime, works just fine
<samueldr> $ nix-shell -p electron --run electron
<abathur> hmm
<samueldr> I think the side-eye is waranted though, as it becomes quite a hard topic to solve, because many electron apps are not simple sample apps
<cole-h> Ahhh, finally
<abathur> assuming two electron apps with the same electron runtime, can Nix de-duplicate the runtime, or does it get baked into both outputs?
<cole-h> I finally got around to using .gitattributes to change the language stats on my nixos-config (since I have my weechat config stored in it...) :D
<cole-h> That looks better: https://i.imgur.com/9Pd6wHG.png
<samueldr> firefox crashed
<samueldr> probably because I reproduced the problem
<samueldr> but I was writing up the bug report
<samueldr> and now it's gone
<samueldr> GONE
<cole-h> F
<samueldr> oh, no, it's there, only the title is missing
<cole-h> Less F
<samueldr> #97418
<{^_^}> https://github.com/NixOS/nixpkgs/issues/97418 (by samueldr, 14 seconds ago, open): Running unstable apps on 20.03 can corrupt the font cache
<samueldr> it feels like I've sprung a trap because of the application I ended up reproducing with
<cole-h> Hahaha
<samueldr> not sure what other more "hello-like" fontconfig-using app I can use
<cole-h> samueldr: pango-view from pango maybe
* samueldr thinks
<samueldr> I don't want to accidentally my whole firefox again
<cole-h> (That's what jt*jnar suggested when testing color emoji woes)
<samueldr> I should do that on another machine
<cole-h> lol
<samueldr> where I'm running less firefoxens
<ldlework> When in doubt, use the appimage: http://logos.ldlework.com/caps/2020-09-08-04-25-00.png
<ldlework> :)
<aleph-> samueldr: This is why I write browser bug reports up in vim first. :)
<samueldr> aleph-: I have this bad habit of wanting and assuming things work
<aleph-> Heh, well hope for the best, prepare for the worst, something, something
<aleph-> Just a habit from browser crashes. Used to get them a ton with my old plugin setup
xd1le has quit [Remote host closed the connection]
<ldlework> one nice thing about applications being electron based, is that you can easily just throw down some javascript to script them
<ldlework> I don't hate that.
nly has joined #nixos-chat
<etu> oooh, new unstable <3
<ldlework> With a bit of javascript I was able to add some keyboard bindings for Lepton, an electron Gist client. http://logos.ldlework.com/caps/2020-09-08-05-17-16.mp4
jared-w_ is now known as jared-w
<cole-h> omg no way
<cole-h> we have linux_zen again
<etu> We got the new htop in unstable now! :)
<etu> With ZFS things
<cole-h> oooh
<cole-h> How do I get said ZFS things
<etu> You press F2 and you get to setup, there you can add Meters
<etu> And there's a ZFS ARC and ZFS CARC that can be added
<cole-h> Ooooooooooooh
<cole-h> Fancy shmancy
nly has left #nixos-chat ["ERC (IRC client for Emacs 26.3)"]
buckley310 has joined #nixos-chat
<ldlework> I got mark selection and asynchronous multi-delete working: http://ldlework.ddns.net/caps/2020-09-08-06-09-24.mp4
<cole-h> https://i.imgur.com/VtXPQLx.png OK, thanks nix.conf
<ashkitten> i wonder if i can get firenvim to recover text input if firefox crashes...
aleph- has quit [Ping timeout: 240 seconds]
cole-h has quit [Ping timeout: 258 seconds]
<ldlework> I improved the mark selection, http://logos.ldlework.com/caps/2020-09-08-06-59-21.mp4
maxdevjs has quit [Ping timeout: 244 seconds]
<bqv> aleph-: hey, it was you toying with pleroma, right? i'm wondering if i should keep any of my derivations in my repo in case anyone wants something to start from, or just nuke them?
<bqv> or maybe have a bit bucket dir, for stuff that i don't care about but people might want to look at
<johanot> so proud of my company that I have to "brag" here. :) finally on the contribution list: https://opencollective.com/dbc <3
<Valodim> etu: whoa. that's pretty nice
<Valodim> johanot: 👍️
__monty__ has joined #nixos-chat
<johanot> etu Valodim I'm curious, which zfs things in htop? :)
<johanot> ah.. zfs arc and carc. Cool! :)
karolus has quit [Ping timeout: 265 seconds]
<etu> johanot: Recent home-managers also have support to configure htop with those https://github.com/etu/nixconfig/commit/4b5e857f9a37bf2e77077622bdba0fb3069fdeef
parsley936 has joined #nixos-chat
FRidh has joined #nixos-chat
koh has quit [Ping timeout: 240 seconds]
aleph- has joined #nixos-chat
jasongrossman has joined #nixos-chat
jasongrossman has quit [Read error: Connection reset by peer]
<eyJhb> johanot: finally some danish!
FRidh has quit [Quit: Konversation terminated!]
<pie_> ...why does google have info on which apps im opening when.
<pie_> tbh i shouldnt be surprise
<pie_> i hate android
<elvishjerricco> I've got an old broken AIO cpu liquid cooler I need to get rid of. Can I just like... throw that in the recycling bin?
<__monty__> Recycle it where you'd usually recycle electronics?
<__monty__> We have free (i.e., pre-paid) recycling of all electronics here.
<drakonis> gonna spring for a redmi note 7 or a pixel 4
<drakonis> 4a
<drakonis> stereo audio...
<drakonis> finally...
waleee-cl has joined #nixos-chat
evanjs has quit [Quit: ZNC 1.8.1 - https://znc.in]
evanjs has joined #nixos-chat
liff has quit [Quit: leaving]
liff has joined #nixos-chat
liff has quit [Client Quit]
liff has joined #nixos-chat
maxdevjs has joined #nixos-chat
<colemickens> Does anyone use Eternal Terminal? It was brought up recently in response to mosh not having a release in a while.
cole-h has joined #nixos-chat
<srk> yup, it's pretty cool
<srk> with systemd.services.eternal-terminal.serviceConfig.OOMScoreAdjust = "-999"; :)
<aterius> ET doesn't address latency issues though
<srk> I think I've started using it because scrolling works
evanjs has quit [Quit: ZNC 1.8.1 - https://znc.in]
evanjs has joined #nixos-chat
endformationage has joined #nixos-chat
<lovesegfault> colemickens: IME ZFS will correctly set the scheduler these days
<colemickens> 0_0, wrong cole maybe? Or a conversation I've forgotten, sorry
evanjs has quit [Quit: ZNC 1.8.1 - https://znc.in]
evanjs has joined #nixos-chat
<cole-h> Yeah, wrong cole :D I was talking about the ZFS scheduler yesterday
<cole-h> lovesegfault: That is true -- but only when ZFS has control of the whole disk, IIRC. I know for a fact my scheduler was not `none` before that change.
<cole-h> lovesegfault: I've partitioned my disk -- sda1 -> boot, sda2 -> swap, sda3 -> zfs
<lovesegfault> colemickens: Oops, my autocomplete got trigger happy. Indeed it was aimed at cole-h
<eyJhb> I should really put my /nix onto my mSATA SSD (but it is slower than my current one)
<manveru> does zfs still need ECC? i'm planning to build a new box and use it this time...
<eyJhb> manveru: not really
<eyJhb> But adisbladis , etu might have some more
<eyJhb> ,mrworldwide
<{^_^}> adisbladis
<eyJhb> :D
<adisbladis> Huh?
<adisbladis> I was summoned?
<adisbladis> manveru: ZFS never _needed_ ECC
<adisbladis> God I'm tired of that meme :P
<manveru> :)
<adisbladis> Of course it's better if you have ECC, but that's applicable to any file system
<adisbladis> The main point is that ZFS won't protect you from memory corruption
<adisbladis> It will still have the same on-disk checksumming guarantees
<manveru> cool
<manveru> that's all i ask for... ECC is of questionable utility for me anyway
<leons> manveru: I'd say ECC is never of questionable utility, except when you can risk your OS kernel wreaking havoc and overwriting all of your files ^^ it's all just a single bitflip away :D
<leons> (although very unlikely + sometimes worth taking when long-term reliability doesn't matter)
<leons> I do run ZFS without ECC because of budget reasons though and it's really unlikely that something will go wrong this terribly
<leons> Oh and running ZFS without ECC is only "worse" in the way that _if_ there actually is a bitflip in memory while writing data & checksum, and hence those deviate, ZFS will refuse to read that file back if no intact copies exist. Whereas on other filesystems you'll be potentially reading garbage
<leons> adisbladis: fact check please :P
<adisbladis> Umm, makes sense but I don't exactly know
<leons> That appears to be the general ZFS spirit so it's probably fine ^^
<cole-h> heh
<danderson> I use ECC in all my NASen since a scare about 10 years ago where a bad stick of ram started corrupting my ext4
<danderson> a single bitflip can do way more damage than just borking one file. It can damage a block near the root of the FS, and make a large chunk of it inaccessible
<adisbladis> The key takeaway is use ZFS no matter what RAM you have ^_^
<cole-h> um
<adisbladis> ECC and ZFS are orthogonal
<cole-h> since when has `head -1 dir/*` had a header for every file in the dir?!
<danderson> ZFS will be better at detecting the bitflip, but bitflips are still real bad.
<danderson> ECC will reduce the probability of an undetected bitflip, which is very valuable.
<adisbladis> danderson: Indeed. I'm not arguing against ECC. :)
<danderson> but ECC is valuable no matter what filesystem you're using
<danderson> "don't randomly flip bits in my data" is a valuable property of computers in general :P
<__monty__> cole-h: Doesn't that always happen for multiple files? I use it to create concatenated pastes with embedded filenames : )
<cole-h> __monty__: wtf maybe I've just never used `head` on a wildcard before
<cole-h> Because I've never ever seen `==> filename <==` before
<__monty__> Yep. (I actually use tail because it's easier to specify "all the lines")
<leons> Also bitflips in a video file are bad, bitflips in an executable / running program are worse, bitflips in the loaded kernel code in RAM insanely dangerous. Hence ECC helps also when not dealing with files
galagora has joined #nixos-chat
<eyJhb> adisbladis: Do you enjoy the alias?
<elvishjerricco> manveru: Agreed with others; ZFS never needed ECC anymore than any other FS. And it's nice that in some cases, ZFS will actually save you from bitflips, unlike non-checksummed file systems.
galagora has quit [Remote host closed the connection]
rajivr has quit [Quit: Connection closed for inactivity]
cjpbirkbeck has joined #nixos-chat
<__monty__> Anyone have an url to the parser combinators in nix? Google is failing me.
<cole-h> __monty__: wdym?
<danderson> My take: ZFS doesn't need ECC more than other filesystems, but IMO for a *storage server* ECC is a must-have.
<danderson> a machine purpose-built for keeping bytes safe should take out as much corruption insurance as it can :)
<__monty__> cole-h: I remember seeing parser combinators implemented in nix. (Though this might've been in a dream.)
<__monty__> I need to do some parsing so I want to steal ideas^W^Wtake inspiration from that project, if it exists that is.
<__monty__> Nah, need to do this *in* nix.
<__monty__> For some definition of "need." : )
<cole-h> Ah
<cole-h> Found it I think
<__monty__> You madlad!
<cole-h> __monty__: FWIW, here's how I found it: https://github.com/search?utf8=%E2%9C%93&q=language%3Anix%20parse
<cole-h> lol
<cole-h> First result :P
<__monty__> ✨cole-h
<__monty__> ✨ cole-h
<{^_^}> cole-h's karma got increased to 90
<__monty__> Thank you. I've been conditioned to dislike github's search (by github) so I didn't think to try. Google seriously failed me in this though, even when using the project's name.
<cole-h> GitHub's search is pretty crap. It just worked out this time :P
<__monty__> Hmm, impressed enough to be reluctant to rewrite a bad version of this now >.<
<drakonis> hmm
<drakonis> android 11 is finally here
<joepie91> did you mean: android 11 will finally be here in 4 years when the manufacturers catch up
<joepie91> :P
<drakonis> i'm getting a pixel tho
<drakonis> if its available anyways
<drakonis> i wonder when google's going to finish including tasker into android's baseline
<drakonis> i want to automate all my things
<joepie91> twitter.gif
<samueldr> joepie91: you seem a bit web-savvy... I hit some kind of wall yesterday doing something that's basically a thing since HTML 4... and surprised me quite a bit... seemingly <button type="submit" name="something" value="somevalue">[...]</button> doesn't send the name/value pair as form data, and couldn't seem to find much information about that... clues?
<samueldr> (I haven't tried reducing the example yet)
<joepie91> samueldr: it should
<samueldr> I know!
<joepie91> my first suspicion would be some JS interfering with it
<joepie91> eg. someone's homegrown "make a HTTP request" thing that incorrectly serializes a form
<samueldr> there's no specific JS plugged at that location, and only jQuery ambient
<samueldr> my first suspicion is maybe GET isn't a form data?
<joepie91> how are you determining that it isn't sending it?
<samueldr> but that kind of wouldn't make sense
<joepie91> oh, GET. hm.
<samueldr> isn't in the query string
<samueldr> I got so frustrated that I dropped the idea instead of investigating :)
<joepie91> samueldr: I'd suggest reducing it to a simple repro case, because this sounds like something else is going on
<joepie91> not immediately sure what
<samueldr> yeah
<joepie91> but many production things are built on submit button behaviour
<samueldr> yeap
<joepie91> so it seems like something that is unlikely to break unnoticed
<samueldr> all search results were hopelessly useless, all assuming mounds of JS or "fixing" with
<drakonis> a flexible moose
<drakonis> hmmm
<samueldr> I was just asking in case you had a specific clue about what is *seemingly* (but shouldn't be) a dark corner of the spec :)
<joepie91> samueldr: I'm not aware of any such dark corners
<adisbladis> eyJhb: Yeah :D It's a badge I wear with honour
<samueldr> :/ it was js, joepie91, should have looked more carefully at the selector in use by the (probably highly useless) code that basically does what a form does already
<joepie91> samueldr: ha, called it :D
<joepie91> "it's not JS, it can't be JS... it was JS"
<samueldr> I looked, that was my first thing in mind too
<samueldr> though I was already highly frustrated with something else initially so it clouded my judgement
<joepie91> heh
<joepie91> oh well, solved now :)
<drakonis> hmm
__monty__ has quit [Quit: leaving]
parsley936 has quit [Remote host closed the connection]
W1lkins has joined #nixos-chat
viric has quit [Ping timeout: 256 seconds]
kalbasit_ has joined #nixos-chat
viric has joined #nixos-chat
disasm has quit [Ping timeout: 240 seconds]
disasm has joined #nixos-chat
<ldlework> Anyone know how unity-hub is supposed to work from nixpkgs?
<ldlework> It installs unity-hub, but, you can't create any projects as it fails with some error about there being no appimage env