gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
webster23 has quit [Ping timeout: 250 seconds]
<gchristensen> I wonder if there is an interesting way we could coordinate store paths across machines
<gchristensen> for example my laptop wants my server to have mosh at a location. my server expects my other server to have mbuffer at another location.
<gchristensen> colemickens: did you get anywhere with the xwayland dpi stuff?
jasongrossman has joined #nixos-chat
<colemickens> Not at all.
kisik21 has joined #nixos-chat
<kisik21> Ahhh I'm so excited I wrote my first nixos.wiki article!!! :3
<kisik21> It's about using NixOS VMs as systemd services or runnable programs from environment.systemPackages and can be found there: https://nixos.wiki/wiki/Adding_VMs_to_PATH
<samueldr> kisik21++
<{^_^}> kisik21's karma got increased to 2
<samueldr> saw the update over #nixos-wiki and looked at it briefly
<kisik21> I'm sure it needs some polish, but I captured the gist of it
<samueldr> looked okay
<kisik21> wow so cool
<kisik21> how's my Nix-fu?
<kisik21> I think it may be improved but not sure how
<samueldr> probably can, though I don't know off the top of my head
<samueldr> so I guess nothing obvious :)
<kisik21> I think it needs to be wrapped in a module like { options = {...}; config = {...}; }
<kisik21> But this is a task for future me
<samueldr> does using VMs that way make the stateful part permanent on the disk, while mounting the nix store path / system paths from the host system?
<kisik21> Indeed it does.
<samueldr> interesting
<kisik21> The stateful data is written to /var/lib/
<kisik21> I think this is an appropriate location for it
<samueldr> the only thing I guess is that on nixos-rebuild on the host, the VM wouldn't update?
<aanderse> kisik21: looking good :)
<kisik21> samueldr: It will be updated with the host!
<kisik21> The VMs are (re)deployed on each nixos-rebuild on the host
<samueldr> ah, so restarted?
<kisik21> it's like declarative containers, but for VMs
* samueldr only briefly looked
<kisik21> yes, it will be restarted
<kisik21> It can be used as a systemd service and these are restarted on configuration switchg
<samueldr> right, so running e.g. an IRC server wouldn't be viable in such a VM as it is
<samueldr> (something with long running connections)
<samueldr> though still awesome
<kisik21> Well, some services are not restarted on configuration switch, like NetworkManager, I think it can be done
<kisik21> like manual restart
<samueldr> just looking into better groking the use cases
<samueldr> yeah, it must be possible
<kisik21> systemd.services.<name>.restartIfChanged
<kisik21> I think I could expose it...
<kisik21> samueldr: done
<jasongrossman> \o/
<samueldr> dang it, just came from the hot outside and forgot I could eat an ice cream sandwich to stave off the heat
<kisik21> never ate an ice cream sandwich in my life
<kisik21> should I try finding one?
<samueldr> maybe?
<kisik21> ambiguous
<kisik21> >.<
<samueldr> I mean... I like them, though I'm a bit picky on cold stuff to eat, they're basically the only thing I get for myself
<samueldr> so it's not like they're spectacular; it's more about being cold now
<kisik21> well I like ice cream
<kisik21> so I guess I could like it too
<kisik21> is it like ice cream between two cookies?
<kisik21> or biscuits
<kisik21> whatever
<kisik21> in Russia we call it печенье
<kisik21> (pechenie)
<samueldr> yeah, ice creem, between sweet cookies
<kisik21> wow sounds great
<kisik21> I think I should try it! :3
<samueldr> I'm partial to the cheap~ish ones, with chocolate chips in the ice cream
<kisik21> looks great too :drool:
<kisik21> hm, how many people are using Emacs here?
<samueldr> absolutely none, it's forbidden
<samueldr> (I don't)
<kisik21> samueldr: why????
<kisik21> Why it's forbidden?
<samueldr> forbidden? it's a joke :)
<kisik21> Are admins all vim users?
<kisik21> Ugh vim everywhere
<kisik21> but nano
<kisik21> nano is a real abomination
<samueldr> nah, no editor is wrong
<ashkitten> gchristensen: https://github.com/ashkitten/confuse
<kisik21> they don't even include vim in gentoo's stage3 anymore :c
<samueldr> ashkitten: licensing it under an open license?
<ashkitten> license, yes. i need a license
<ashkitten> always forget with new repos
<samueldr> :)
<samueldr> I tend to forget too
noonien has quit [Quit: Connection closed for inactivity]
<kisik21> ashkitten: I think you need a README file describing what this is and how to use it. I'm no Rust girl and I don't have a clue what this thing does
<ashkitten> i will, eventually
<kisik21> yay!
<ashkitten> it's a very silly project though
<kisik21> so what does it do?
<samueldr> ashkitten: are you used to rust or is this one of your first projects?
<samueldr> (haven't looked at the code yet)
<ashkitten> samueldr: i've been working with rust for quite a while :)
<samueldr> great
<kisik21> I looked at the code and the only thing I understood is where the entry point is
<kisik21> seems like it converts a YAML file into a... filesystem? but why?
<kisik21> what's the use case?
<samueldr> will look at it, hopefully you use the normal kind of patterns with rust and this'll be useful in learning rust a bit :D
<samueldr> (I want to port the one toy fuse fs I did to rust)
<ashkitten> kisik21: because it's an interesting experiment :)
<samueldr> oh, so few lines of code
<kisik21> ok, so YAML dictionary could be a folder, how are lists represented?
<ashkitten> samueldr: i try to be as idiomatic as possible, which is easy because a lot of my personal preferences are similar to rust
<kisik21> as a folder with numbered files?
<samueldr> awesome
<kisik21> I didn't look at the code because I can't read rust
<kisik21> but I'm trying to logically guess
<ashkitten> kisik21: a directory with numbered files, but with a special `.list` file to show that it's a list
<kisik21> oh, cool!
<kisik21> seems like my logic is working
<ashkitten> yes
<ashkitten> currently it is readonly (but updates to show changes to the mounted file)
<kisik21> Yeah, I saw that bit
<ashkitten> next i'll implement creation, deletion, and writing
<ashkitten> including deleting or creating the `.list` file
<kisik21> so converting a list to set and vice versa?
<ashkitten> hmm, i need to create a new ConfuseData variant for .list
<ashkitten> kisik21: yes
<ashkitten> but it will only allow you to do that if the list or set is empty
<ashkitten> er
<ashkitten> list or map
<kisik21> set can mean a key-value object or a hashed list, so it's ambiguous
<kisik21> sets in Nix are key-value stores but in Python they're like a hashed list
<kisik21> IIRC
<ashkitten> yeah
<ashkitten> done
<gchristensen> the past week I've been using one a Dell U3818DW and I'm sorry to say it has been an incredibly positive experience
<ivan> eeh 1600 vertical
<samueldr> flipping it 90° on its side would be silly, so "meh" :)
<samueldr> though I can understand the convenience in having one large device on the desk rather than two
<gchristensen> a tall monitor hurts
<gchristensen> my neck
<samueldr> though I have a 22" 16:9, in vertical maybe I wouldn't like a 27" or even a 24"
<gchristensen> though ify ou're going that much, might as well go for the U4919dW
<gchristensen> (kidding)
<ashkitten> how do i know if a user should be allowed to know if a file exists?
<ashkitten> is it simply if any of the permission bits are set for them?
<elvishjerricco> ashkitten: As I understand it, if they have a file descriptor open on a directory and have read permissions (can you get one without them?), they can get the list of files in it or stat a file relative to it. The file descriptor on the directory usually comes from having read access to it and all its parent directories, but file descriptors can come from parent processes too I think.
<elvishjerricco> (someone double check my limited unix knowledge)
<ashkitten> okay
<gchristensen> sounds about right
<ashkitten> ugh, there's no function to figure out if $user has access to a file
<gchristensen> you're running as root?
<ashkitten> hm?
<gchristensen> your fs rogram is root?
<ashkitten> no, it's fuse
<gchristensen> ah
<gchristensen> because if it was running as root you could seteuid and check to see if the user has the ability to r/w the fil e:)
<ashkitten> i'm given a mask of things they want to know if they have access to (check if the file exists, plus read/write/exec)
<ashkitten> not sure how i'm supposed to do this
<ashkitten> actually it's not working even if i return Ok(()) for anything
<ashkitten> "this method is not called under linux kernel versions 2.4.x"
<ashkitten> i assume meaning anything after that too
<ashkitten> except it's being called
<ashkitten> oh
<ashkitten> fuse doesn't allow other users by default
<gchristensen> nice
<clever> 2 of my monitor stands support rotating the monitor sideways
<clever> so i can always twist it, if i'm doing a lot of reading of books
<clever> and its easy enough to configure xfce to understand the rotation, so it still meshes right
<gchristensen> nice
<gchristensen> unfortunately I had to switch back to x11 for this past week, but I'm back to sway again.
<jasongrossman> kisik21: I use Emacs. Why?
<clever> never tried wayland yet
<kisik21> jasongrossman: oh, another Emacs user :3
<gchristensen> it is pretty good
<kisik21> I'm using wayland because X was broken for me
<clever> gchristensen: one weird thing ive noticed, is that chrome doesnt seem to use xinerama
<clever> gchristensen: on windows, you either have window or monitor capture, and it can capture each monitor seperately
<clever> gchristensen: but on linux, you have window or whole-damn-desktop capture
<gchristensen> lol true
<clever> with 3x1, its un-usable :P
<clever> my solution lately, has been to run obs-studio
<clever> right click the preview, and you can open the composition preview in its own window
<clever> screenshare that window, and then use OBS to composite things together however you want
<jasongrossman> kisik21: \o
<clever> the remote party sees 3 windows, laid out nicely, with zero window-manager decoration
<clever> but i have 3 windows, each on their own monitor, and other stuff covering them randomly as i change focus
<clever> and nobody notices
<gchristensen> clever: oh what
<gchristensen> how do I do that
<clever> gchristensen: just run obs-studio
<clever> nix-repl> pkgs.obs-studio.meta.description
<clever> "Free and open source software for video recording and live streaming"
<clever> its meant for streaming to twitch or youtube
<samueldr> I thought about doing that, but never needed to screenshare anything in the end
<clever> but you can also just open the preview window as its own x11 window, and then have hangouts share that window
<samueldr> clever: does it have ways to share wayland windows?
<clever> samueldr: untested, you would have to run obs and see what it can capture
<clever> from what ive heard, wayland lacks monitor capture, and only has window capture
<clever> but obs would let you then composite several windows together, and share the sum in hangouts
<gchristensen> ah. does't start
<gchristensen> core dump specifically
<clever> gchristensen: backtrace that sucker!
<clever> gchristensen: xcb, i wondow if that needs x ? :P
<clever> gchristensen: oh, and nix-shell often breaks qt stuff
<clever> its hard-coded to look in ~/.nix-profile/
<clever> and /run/current-system/sw/
<gchristensen> ouch
<ashkitten> ok
<ashkitten> default_permissions makes the kernel check permissions
<clever> gchristensen: one weird/neat thing obs can do, it can accept a DISPLAY string, in the config, on what to capture from
<clever> gchristensen: so if you had x11-tcp enabled, you could capture from laptop:0
<clever> and if you have multiple local servers, :1 and :2
<clever> but obviously, thats not wayland compatible!
<gchristensen> oh cool
<gchristensen> I wonder if I could run xserver and wayland together
<samueldr> I guess we need to wrapQtHook obs too
<clever> gchristensen: one min
<gchristensen> samueldr: oh of course
<clever> gchristensen: ${pkgs.tightvnc}/bin/Xvnc is a complete X11 server, that simply doesnt touch any gfx hardware
<gchristensen> :o
<clever> it instead presents itself as a vnc server
<clever> this is a nixos module, that causes services.xserver to run Xvnc
<clever> so whatever display manager (slim) and desktop env (xfce) you enable, winds up available over vnc
<gchristensen> oh wow
<gchristensen> hmm kind of perfect!
<clever> if that was running on the local machine, after logging in, you could configure obs to capture from :0 and it would just work
<clever> if obs could actually render itself in wayland
<elvishjerricco> Anyone have any recommendations on a tool to find shows and stuff to watch?
<jasongrossman> gchristensen: I've been getting xcb errors for the last few days (only), on unstable, when trying to launch various things (qutebrowser, cool-retro-term).
<jasongrossman> elvishjerricco: Rotten Tomatoes.
<samueldr> jasongrossman: this is (supposed to) happen if you have mismatched qts in your profiles
<samueldr> so e.g. something from nix-shell ou nix-env, different than the one installed on the system
<samueldr> unless the wrapper caused bad interactions?
<samueldr> the solution is to add the wrapQtApps to those derivations that are failing
<samueldr> so they are always told (via a wrapper) where to load qt libs
<jasongrossman> samueldr: I haven't used nix-shell or nix-env recently.
<jasongrossman> samueldr: Thanks for the solution.
<gchristensen> wow, my internet at this airport is maybe better than my home internet.
<gchristensen> brb gonna plant a nix cache mirror
<samueldr> jasongrossman: yeah, "nix-env recently" could be a cause
<samueldr> if e.g. you nix-env -iA'd something with qt 5.x.y, and then your system updates to 5.x.y+1 that's a cause
<samueldr> though 5.x+1 won't cause issues
<jasongrossman> samueldr: Heavens, that's very undeclarative. I will be more wary of nix-env in future.
<gchristensen> down with the nix-env state
<PyroLagus> btw, does anyone know why `nix search -u` eats my ram?
<PyroLagus> it's kinda ridiculous
<samueldr> jasongrossman: yeah, qt is annoying due to how it loads libs
<jasongrossman> samueldr: Personally I don't rely on nix-env much, but this seems like it'll be a major problem for some people. :-(
kisik21 has quit [Ping timeout: 268 seconds]
<samueldr> it's not a new issue, has been already :/
<gchristensen> wow obs looks great
<samueldr> obs is great
<samueldr> that's what's used for nixcon!
<jasongrossman> Bye for now, while I test nixos-rebuild.
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.2)]
<gchristensen> I hope it supports wayland sometime :)
<clever> gchristensen: have fun when the security discover the un-identified box you left plugged in :P
<gchristensen> lol
<gchristensen> wow I wish I was using obs when I accidentally leaked an important api key in a recorded video call on Thursday
<clever> gchristensen: i was showing somebody how to setup oauth login on google console yesterday, and google was nice enough to show the entire api secret with zero "click to show" warning
<clever> after the call, i hit the reset key button :P
<gchristensen> :D
jasongrossman has joined #nixos-chat
<samueldr> :/
<jasongrossman> Well damn. I've removed everything I had installed using nix-env, and I still have the same problem (with xcb).
<samueldr> hmm
<jasongrossman> I haven't yet done a nixos-rebuild (because I'd like to keep skype, and the skype package can't find its server at the moment).
<samueldr> could you strace -f -o file.strace that-program and share it?
<jasongrossman> I shouldn't need to do a nixos-rebuild, should I?
<samueldr> maybe share unpublished and privately in case there's sensitive env?
<jasongrossman> samueldr: Yes, will do.
<gchristensen> neat
<samueldr> only some static?
<samueldr> oh, realized it's you
<gchristensen> there we go, that is much more nixy
<samueldr> is it only terrible on my end? never used periscope before
<gchristensen> it might be terrible overall, I am in an airport
<samueldr> that might be it
<gchristensen> yeah that is pretty horrible
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.2)]
<gchristensen> hmm this could be interesting.
jasongrossman has joined #nixos-chat
<jasongrossman> samueldr: If I reboot into a recent generation of unstable and try to run cool-retro-term I get:
<jasongrossman> qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
<jasongrossman> I have strace output which I'll upload somewhere.
<samueldr> CRT isn't wrapped (just a note)
worldofpeace has joined #nixos-chat
<samueldr> do you have any Qt app working?
<jasongrossman> samueldr: I THINK not. Can't test anything else for the next half hour or so, but I know that qutebrowser is also broken.
<samueldr> right
<samueldr> there was another issue, though with different failures, about no Qt apps working today
<samueldr> I'm almost never using unstable, so hm
<jasongrossman> samueldr: http://bunny.xeny.net/file.strace
<jasongrossman> samueldr: This is not important to me for my own work because I don't really need an updated unstable. It just seems like an important problem to know about.
<samueldr> yes, you're right
<samueldr> just saying :)
<samueldr> hmm, no mismatched qt AFAICT
<samueldr> so it's something else?
<jasongrossman> OK, cool.
<jasongrossman> Hm.
<jasongrossman> Well I guess someone else will report it, hopefully with slightly different symptoms that will help to diagnose it.
<samueldr> hmmm
<jasongrossman> Made me laugh. hmmmmmmmmm.
<samueldr> okay, so no, not qt 5.12 related
<samueldr> wondering if it's https://github.com/NixOS/nixpkgs/pull/65446
<{^_^}> #65446 (by ttuegel, 4 hours ago, open): Revert "qtbase: Fix paths returned by qmake -query"
<samueldr> (well, the one this reverts)
<samueldr> not easy to test: there's a tonne to build
<samueldr> hm, won't fail here on tip top of nixos-unstable, nix-built; running on 19.03
<samueldr> not ideal to test :/
<worldofpeace> I don't get any errors when using 'mkDerivation` https://imgur.com/a/fp5VdFe (the qt5 one)
<{^_^}> #65451 (by samueldr, 7 seconds ago, open): cool-retro-term: Wrap with wrapQtApps
<samueldr> can you test with this?
<samueldr> I don't think it'll work better
<samueldr> worldofpeace: using mkDerivation from qt automatically wraps?
<worldofpeace> samueldr: yes
<worldofpeace> be sure to ping the tracking issue so we can keep track of this
<samueldr> switched to `mkDerivation`
<jasongrossman> samueldr: Thanks! I'll test it when my computer's free (about 20 mins).
<samueldr> I might not be available anymore to help, you know, with me being in summer^W^W just past nighttime
<samueldr> though I'm curious whether it'll change anything
<jasongrossman> samueldr: Not urgent from my point of view.
<samueldr> I kinda hope it doesn't
<samueldr> because if the only change is to wrap, and it works, then something's fishy somewhere with unwrapped Qt apps on unstable
<jasongrossman> samueldr: Would you believe I don't know how to test your PR?
<samueldr> yes, though barely
<jasongrossman> LLOL
<jasongrossman> I almost never use github (or even git).
<samueldr> nix-build -A cool-retro-term; ./result/bin/cool-retro-term
<samueldr> ah
<samueldr> that bit
<jasongrossman> Right, that bit.
<samueldr> if you don't want to faff around with cloning and setting branches
<samueldr> have a nixpkgs clone ready, on the top of nixos-unstable
<samueldr> then you can cheat a bit and `curl -L https://github.com/NixOS/nixpkgs/pull/65451.patch | git apply`
<{^_^}> #65451 (by samueldr, 11 minutes ago, open): cool-retro-term: Wrap with wrapQtApps
<jasongrossman> Great. Thanks.
<jasongrossman> error: pkgs/applications/misc/cool-retro-term/default.nix: No such file or directory
<jasongrossman> I need to learn git properly. Not today though.
<jasongrossman> Maybe I need to clone nixpkgs and cd into its directory?
<samueldr> yes you would
<samueldr> I assumed you had a clone of it and mostly didn't know how to deal with the remotes to test the PR
<jasongrossman> OK, cloning nixpkgs
<jasongrossman> I almost don't know anything about git at all.
<samueldr> oh, so you're mostly a user I figure
<samueldr> nice to meet one
<jasongrossman> :-) Yes, I'm just a user. I've been a programmer, but mostly before git even existed.
<samueldr> you've been and still are or been and not anymore? :)
<jasongrossman> Have been properly, a long time ago, and now am occasionally just for fun. And NixOS is the first thing that's made me want or need github.
<samueldr> right, just better understanding who you are
<jasongrossman> :-)
* samueldr checked git's initial release
<samueldr> 2005
<jasongrossman> Almost all my professional programming experience was in the 1980s.
<samueldr> so yeah, been programming since before Git was released too, but not from that far back
<jasongrossman> :-)
<worldofpeace> samueldr: I don't think anything "fishy" would be going on with unwrapped programs. IIRC this would be the affect since nothing is propagated like it was before
<jasongrossman> It's just occurred to me that if programming was as much fun then as it is now then I might never have left. Although probably I still would have, because my main job was doing payroll systems on mainframes, and that's probably still boring.
<samueldr> worldofpeace: I haven't really checked the implementation of the wrapper; is there nothing at all being propagated without wrapping?
<samueldr> so anything not wrapped is failing?
<samueldr> (which is not necessarily bad)
<samueldr> (the big idea is to always fail, or always work, no in-betweens)
<worldofpeace> I'm pretty sure, perhaps we should get ttuegel in #nixos-dev sometime :)
<jasongrossman> I'm cloning nixpkgs from scratch, and that's taking a while, so samueldr don't wait up for me to test anything further tonight.
<samueldr> don't worry, I wouldn't wait :)
<samueldr> sometimes I just stick for longer than I wanted
<jasongrossman> That can happen.
<worldofpeace> i've probably 100% certainty that this should fix it jasongrossman
<jasongrossman> worldofpeace: Great.
<samueldr> if, as described, nothing is propagated when unwrapped, that seems likely that it would fix it
<worldofpeace> only because I've responded to soo many pm's from people asking "how do I fix this" :(
<samueldr> weird idea, but, can we assert the lack of wrapQtAppsHook when Qt is present?
<samueldr> maybe not always, but something that we could activate to eval nixpkgs and list the likely breakage
<worldofpeace> well maybe check if it has ran
<samueldr> I'm thinking eval time, so it can decisively fail, in a quicker manner, than at build time
<worldofpeace> yeah I don't think I have idea with how to do that.
<worldofpeace> Though perhaps a separate issue to the tracking issue to discuss with ttugel would help. since they're the most local to the issue
Drakonis has quit [Ping timeout: 250 seconds]
endformationage has quit [Quit: WeeChat 2.5]
<ashkitten> octal math is extremely fun
<ashkitten> perm ^= (perm & 0o111) ^ ((perm & 0o444) / 4); // r-- => r-x, r-x => r-x, --x => ---
<aria> too confusing for me
<ashkitten> octal bitwise operations are pretty straightforward. this takes perm, extracts the exec bits and xors them against the read bits. if the executable bit and read bit are both set, it does nothing. if the executable bit is set but not the read bit, the result is 1 and it flips the executable bit (1 -> 0). if the read bit is set but not the executable bit, the result is 1 and it flips the executable bit (0
<ashkitten> -> 1).
<ashkitten> a simpler equation with the same concept is `x ^= (x ^ r)` where x is the executable bit and r is the read bit
<ashkitten> if x ^ y { x = !x }
<ashkitten> i hope that helps, aria
<aria> ashkitten: ty ash
<ashkitten> aria: np!
<ashkitten> it's kinda wild how basically every number base besides decimal is really good for computing
<ashkitten> and then decimal is just...
<ashkitten> why did we all decide on that
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.2)]
<eyJhb> ashkitten: how is the yaml FS coming?
arahael1 has joined #nixos-chat
Arahael has quit [Ping timeout: 268 seconds]
__monty__ has joined #nixos-chat
<manveru> let's give computes fingers for counting in base 10...
<manveru> *computers
<__monty__> Aren't finger unary base?
<__monty__> If anything you'd give them fingers to count base 12.
<__monty__> Two hands'd be enough to count to 156.
<gchristensen> that is a big number
<__monty__> 't is indeed.
webster23 has joined #nixos-chat
magnetophon has quit [Ping timeout: 245 seconds]
magnetophon has joined #nixos-chat
magnetophon has quit [Ping timeout: 245 seconds]
<eyJhb> Basically just propped my door open with this, which as a noise when you squeze it too hard. So currently just praying that I don't scare the living hell out of the people sunbathing outside - https://trygfonden.grafisklogistik.dk/kamp/campains/pivliv/mainpicture.png
<__monty__> Hmm, I hope the sunbathers aren't english speakers?
<eyJhb> Depends if you mean native :p But might or might not be, not sure. All kind of "people" live out here
<eyJhb> Borrowered some headphones from a girl that normally lives in Cali out here
<pie_> i never used this but here's a random "why we cant have nice things" https://instaud.io/shutting-down
magnetophon has joined #nixos-chat
<joepie91> "Increased traffic and more uploads meant that costs kept going up, particularly for traffic through Amazon's S3 service, where the audio files get served from."
<joepie91> of course AWS is involved...
endformationage has joined #nixos-chat
<joepie91> and of course abusemail bullshit
<joepie91> so, once again, if you're not running a highly profitable thing, do not use AWS, especially for streaming, you will get fucked on bandwidth cost
<joepie91> use almost literally any non-cloudycloud provider and those high traffic costs will magically vanish
<joepie91> this is, I think, the third case I've personally seen? where cloudycloud bandwidth cost was a significant (or even the only) factor in a shutdown
<__monty__> non-cloudycloud providers? Packet?
<joepie91> __monty__: no, any of the thousands of normal VPS providers, or even some cheaper CDNs like BunnyCDN
<joepie91> (DigitalOcean counts as a 'normal VPS provider')
<joepie91> $1/TB is a pretty typical price for network traffic on a typical VPS service nowadays, sometimes lower than that, and that's 1/50th - 1/100th of what a cloudycloud service (AWS, Google Cloud, Azure, Bluemix, ...) charges
<joepie91> some providers even just do unmetered/free traffic
<joepie91> eg. BuyVM could be a good option here, given that they have both cheap expandable block storage and unmetered trafffic
__monty__ has quit [Ping timeout: 268 seconds]
__monty__ has joined #nixos-chat
<pie_> joepie91: huh
<pie_> joepie91: guess i need to remember to ask you about hosting stuff
<joepie91> pie_: feel free :P
Drakonis has joined #nixos-chat
<eyJhb> I somewhat feel stupid for not realising that `167.71.58.0` is a valid IP (the .0)
magnetophon has quit [Ping timeout: 245 seconds]
<pie_> eyJhb: one can do worse
<pie_> i think 127..0 is valid...or something
<pie_> idk where was some weird thing
<joepie91> drakonis: probably relevant: https://git.cryto.net/joepie91/depfish/src/master/locate.js
<pie_> also the integer address thing :D
<joepie91> hrm
<joepie91> that version is old
<joepie91> one sec
<Drakonis> would be nice.
<pie_> joepie91: crazy idea: since nixos does awah with most of FHS anyway, maybe it provides an opportunity to attempt to make everything more tags based >:D
<joepie91> there we go
<joepie91> now it's up to date
<pie_> on the other hand i havent thought through this at all and all of unix depends on paths so i have no idea :D
<pie_> joepie91: what does locate.js do
<joepie91> pie_: insert binary, receive list of dependencies needed for it, or if the --run flag is specified, auto-run the binary in a shell that has those deps available
<pie_> oh
<joepie91> it's a work in progress, only supports ldd for nwo
<joepie91> now*
<joepie91> still need to add interactive dep detection, that handles runtime dep loading
<joepie91> pie_: also, tags idea is a good idea, but requires a custom filesystem probably, and no braincycles for thinking about that atm :P
* joepie91 is refactoring a matrix client atm
<pie_> yeah i was just like wow i have this totally awesome dumb idea i should tell joepie91
<joepie91> heh
<joepie91> s/dumb//
<pie_> im reminded of samueldr
<joepie91> (that was a "strike non-applicable", right? :P)
<pie_> 's make linux look like macos thing again
<pie_> heh :P
<Drakonis> pie_: being able to run existing binaries is still nice and yes tags would also be nice
magnetophon has joined #nixos-chat
<samueldr> the context is funny
<__monty__> : D
<joepie91> lol
<samueldr> though, macOS does respect the FHS
<samueldr> it supplements it
<samueldr> and hides the legacy parts
<samueldr> (and it's what gobohide does too)
<Drakonis> gobohide but for nix?
<Drakonis> nixhide
<samueldr> no, gobohide, there's no difference in the implementation
<Drakonis> still, yay or nay?
<samueldr> I wouldn't really recommend using it since, in a way, you're basically adding a rootkit in the kernel to hide files and directories
<samueldr> though, it works fine
<manveru> pie_: should make that for ruby too :)
<samueldr> I've been using gobohide with nixos since I started using nixos
<samueldr> oh, right, there's one thing that stopped working recently; the fhs user env won't work (or only steam's chrootenv?) when gobohide is active
<samueldr> I need to figure that out some day
<pie_> manveru: hm?
<pie_> samueldr: oh what you actually use it actively? i didnt know that
<manveru> pie_: the import thing
<manveru> since you can overwrite the `require` method in ruby too, it should be possible
<samueldr> it defaults to on on my systems
<manveru> just have to get ruby.withPackages merged, will try to get that done this weekend
<eyJhb> https://i.imgur.com/6xyux6D.jpg <- pure evil
<samueldr> no need to
<pie_> manveru: sorry im lost :D
<pie_> manveru: nvm i cant read
<samueldr> (true story) Mac OS X users using apple computers (e.g. iMac) which are not supported anymore by apple
<pie_> read import as important
<samueldr> and still using the built-in safari
<pie_> manveru: have you looked at my rootedoverlay stuff?
<pie_> manveru: re: withpackages
<ashkitten> <pie_> i think 127..0 is valid...or something <-- 127.0.0.0/8 is the loopback block
<pie_> joepie91: coincidentally saw you commented on https://twitter.com/USENIXSecurity/status/1142200096542593025 , reply author wrote something interesting https://web.archive.org/save/https://twitter.com/LeaKissner/status/1136626971566149633 i should probably look at that paper later
<Drakonis> samueldr: huh welp.
<pie_> ashkitten: i was talking about weird encodings not ip values though
<ashkitten> oh rip
<ashkitten> i saw eyJhb talking about ips and thought you were
<ashkitten> btw eyJhb, you asked about my filesystem: https://github.com/ashkitten/confuse
<__monty__> pie_: What language is that twitter in? Hindi?
<__monty__> Well, anglicized hindi?
<pie_> oops the archive.org link was accidental
<pie_> __monty__: anglicised...hindi...what?
<__monty__> The footer on the archive link was in a foreign language.
<samueldr> german?
<pie_> :D
<__monty__> Not german, no.
<samueldr> weird, maybe we don't have the same archive.org contents? https://stuff.samueldr.com/screenshots/2019/07/20190727144737.png
<__monty__> samueldr: Yep, was different for me. Like turkish or something. Not anything I can understand.
<samueldr> google translate is good at detecting languages, given a big enough piece of text
<__monty__> Now it's in english...
<samueldr> oh!
<samueldr> it's a `/save/` link
<samueldr> so it ends up being geolocalized by twitter, and everyone knows every country speaks exactly one language
<__monty__> No clue what that means.
<samueldr> when you access a /save/ link on archive.org, it saves it (anew) to archive.org
<samueldr> so every time we follow that link it takes a new snapshot
<samueldr> from a diverse range of servers
<__monty__> Oh, oops.
<__monty__> Had no idea : )
<samueldr> >> and everyone knows every country speaks exactly one language
<samueldr> exactly one
<samueldr> (1)
<samueldr> well, everyone's busy not biting :)
<pie_> uno
<pie_> ?
<samueldr> this is a "falsehood every [american] developer believe about languages"
<samueldr> (american being my own judgement about that, which I think is untrue)
<__monty__> I'd expect even americans to be coming around to that by now though, given all the spanish.
<samueldr> given their country don't even have a codified official language!
<__monty__> Why codify something if there's only 1 option?
<samueldr> but wait, there's more
<samueldr> :)
<ashkitten> america sucks
<ashkitten> that's why
* ashkitten dreads the news
<samueldr> that's not what I was going for though :/ we suck here too, for orthogonal reason
<samueldr> the amount of fighting I had to do **not** to use country flags for languages on a local prodcut
<samueldr> product*
<samueldr> it's translated in english and french, the two official languages of this country, for a product that (at the time) wasn't going to have any kind of international reach
<samueldr> and they wanted to use _country flags_ to represent languages... I should have gone the malicious compliance way and just placed the canadian flag on both
<ashkitten> use the belgian flag, they speak english and french ~~and also dutch but don't worry about that it's ok~~
<manveru> hehe
<manveru> i grew up with german flags representing german... but no austrian flags :(
<samueldr> and wouldn't you believe it, they wanted to use the union jack...
<samueldr> ... which isn't even a country flag!
<manveru> languages just don't have nice icons, we should make some
<samueldr> which I said "we could use"
<samueldr> but they told me "nobody knows about that one"
<samueldr> well, sure, if nobody uses it, nobody will
<samueldr> I think they were highly annoyed by how right I was at every turn on that debate :)
<manveru> damn programmers and their idealistic ideas
<samueldr> tbf, I was already prepared for the situation, while the team I working with only had their preconception of flag==language in mind
<samueldr> it wasn't a fair fight
<manveru> yeah, it's just something you don't really think about until you're affected
<__monty__> We also speak german. English isn't an official language though.
<samueldr> unclear, but sounds like it may only affect kernel 4.4?
<samueldr> (which still needs addressing in nixpkgs, if it is the case)
aanderse has quit [Excess Flood]
aanderse has joined #nixos-chat
noonien has joined #nixos-chat
<pie_> joepie91: i feel like discourse makes it hard for people to see interesting threads but im not sure why
<pie_> hm maybe the default thread list i sway too sparse
<pie_> stiff disappears in scroll real fast
<pie_> who manages the discourse? maybe we could do something like https://meta.discourse.org/t/is-there-a-compact-option-like-gmail/76263/8 and change the default theme :P
<pie_> or maybe our categories arent good or im bad at forums...hm.
<pie_> I don't like something and I'm not sure what. It feels like stuff disappears too fast?
<pie_> and people don't go much into deeper threats. but I guess any volume of content will do that.
<samueldr> pie_: zimbatm, hosted on discourse infra
<pie_> maybe other people are too busy actually building things xD
<samueldr> though CSS-only stuff like those are doable AFAIK
<pie_> f***, I forgot my milk at the store, how do I eat my cookies now :(
<samueldr> carefully
<__monty__> Just buy actually nice cookies rather than oreos next time.
<Drakonis> so, real question, what's the point of the swiftonsecurity account on twitter?
<Drakonis> it looks like some windows fanboy that got too big for their britches
<joepie91> it's just someone's personal account?
<Drakonis> personal account?
<pie_> __monty__: i dont know why people like oreos
<pie_> i mena ok theyre not bad
<Drakonis> people take that account really serious
<joepie91> that doesn't make it not a personal account :P
<samueldr> what's the point of the drakonis account on freenode? it looks like some nix fanboy [... can't be bothered continuing the facetious comparison]
<samueldr> ;)
<Drakonis> haw haw
<Drakonis> why dont we all
<Drakonis> agree to talk about food
<samueldr> I meanm what's the point of the samueldr account on freenode? it looks like some nix fanboy that tries to be funny
<samueldr> :)
<Drakonis> yes
<pie_> whats the point of the earth account in universe???
<pie_> please remove existential dread feature
<joepie91> 👍️
<samueldr> monkey paw's wish: the past has been corrected, your wish is to be fulfilled ETA 30 years ±5 years
<pie_> (i think im missing a reference there)
<samueldr> nothing, just adding more dread, you don't know how it'll be fulfilled by about 2050
<__monty__> gchristensen: RFC39 requiring 2FA is a PITA.
__monty__ has quit [Quit: leaving]
<infinisil> pie_: (forall a . Dread a) -> Void
* infinisil hopes somebody gets this
<Drakonis> existential dread?
<eyJhb> ashkitten: Golang generally seems more readable than Rust
<ashkitten> eyJhb: my code is also certainly not the best test for readability
<ashkitten> i can write unreadable code in any language
<ashkitten> idiomatic, yes, but still unreadable
<eyJhb> ashkitten: ah but you see! That is also my general thought
<eyJhb> And then comes Ruby. I have no clue wth Ruby is doing with its syntax. Especially not after working with Gitlab sourcecode
<ashkitten> i haven't worked with golang before so i couldn't say what i think about its syntax
<samueldr> eyJhb: the general answer for ruby is "anything" :)
<ashkitten> samueldr: this is precisely true, since in ruby you can catch syntax errors
<eyJhb> ashkitten: I would send you something good, But I don't have any good examples from my own project. But you could dig in it if you wanted, lots of code, some with comments :p
<eyJhb> Catch.. Syntax Errors.
<eyJhb> Heeellll nooo
<ashkitten> you can actually do that in a lot of scripting langs
<ashkitten> python too
<samueldr> though, I think most of the time it implies loading another file or from a string
<eyJhb> ashkitten: true..
<samueldr> the file itself can't catch its own parsing errors
<eyJhb> I have just gotten to love Golangs very strict way of life/how the compiler is very very strict with you
<eyJhb> E.g. I just did that big rewrite in my project, and basically everything worked when I threw it all together... Really impressed that 7.000 changed lines of code would do that
<eyJhb> (of course this is after fixing all the compile errors, I am not superman)
<ashkitten> eyJhb: rust as well :)
<eyJhb> ashkitten: how strict is strict, e.g. unused variables?
<ashkitten> at one point i spent the better part of a day trying to figure out why the compiler wasn't spitting out errors or warnings, turns out my code just didn't have issues
<ashkitten> eyJhb: it warns by default for that, but you can make it error on lints instead
<eyJhb> Yeah, it is kinda weird when that happens!
<eyJhb> So warning, not "I will not compile this"?
<ashkitten> eyJhb: yes, but you can also make it an error not a warning
<ashkitten> eyJhb: there's also cargo-clippy which has lints for non-idiomatic code or code that might not behave how you think
<eyJhb> Ah, I like the none-optional part, as in, there is no way to get it to compile without using it. Because some might just ignore it, or not care about a warning (as they can chose to not make it a error). Which sometimes actually is the fault in the program :p
<eyJhb> I should look at Rust at some point
<eyJhb> I am just afraid of liking it too much, and wanting to replace Go with it. Then I will be a sad panda...
<eyJhb> Anyways, going to bed.. :) gn
<ashkitten> hehe
<ashkitten> nite
<pie_> infinisil: drakonish, haaa :P
<pie_> infinisil: im xposting that
<pie_> infinisil: i like how it involved the Void
<infinisil> :D
<samueldr> wow, their style guide documentation is just nifty http://www.netsurf-browser.org/developers/StyleGuide.pdf
<samueldr> (let's forget bikeshedding it to our preference)
<pie_> samueldr: the color scheme of that document isnt great
<samueldr> [...]
* samueldr searches for combining frown Unicode character, to add to 👀
<samueldr> hm, maybe not frown, the one with the eyebrows though
webster23_ has joined #nixos-chat
webster23 has quit [Ping timeout: 264 seconds]