gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos-chat
obadz- has joined #nixos-chat
obadz has quit [Ping timeout: 260 seconds]
obadz- is now known as obadz
sir_guy_carleton has joined #nixos-chat
Ericson2314 has quit [Ping timeout: 276 seconds]
sir_guy_carleton has quit [Quit: WeeChat 2.0]
disasm has joined #nixos-chat
Lisanna_ has quit [Quit: Lisanna_]
Drakonis has joined #nixos-chat
lassulus_ has joined #nixos-chat
lassulus has quit [Ping timeout: 264 seconds]
lassulus_ is now known as lassulus
benkolera_ has joined #nixos-chat
benkolera has quit [*.net *.split]
capisce has quit [*.net *.split]
benkolera_ is now known as benkolera
Drakonis has quit [Remote host closed the connection]
Guanin_ has quit [Ping timeout: 252 seconds]
Guanin_ has joined #nixos-chat
<andi-> running nixos builds in gitlab ci wasn't my brightest idea.. 2GB of RAM on each of the runners used to be enough for everything. By including `pandoc` in the build I blew that limit.. Would be great if not everything that is downloaded must fit in RAM :/
<LnL> wasn't that fixed?
<LnL> only copy has memory issues now AFAIK
<andi-> I re-read some issues on GH just now. 2.1ish should have that fixed. Lets see what nix version is in that image I am using
<andi-> 2.0.4. Guess it is time to update that then
<LnL> yeah I think 2.1 also improved copy, but I'm pretty sure the rest is in 2.0.4
__monty__ has joined #nixos-chat
lassulus has quit [Ping timeout: 240 seconds]
lassulus has joined #nixos-chat
<samueldr> andi-: for the copy-must-fit-in-ram issue there's a patch with a workaround if desired meanwhile https://github.com/NixOS/nix/pull/2206
<{^_^}> nix#2206 (by nh2, 11 weeks ago, open): importPaths: Don't copy imported NAR into memory.
<samueldr> (and yeah, as stated on that PR, there's a different fix for 2.1)
<andi-> samueldr: thanks, I'll try to use that after work hours :)
Drakonis has joined #nixos-chat
jD91mZM2 has joined #nixos-chat
Drakonis has quit [Ping timeout: 256 seconds]
Lisanna_ has joined #nixos-chat
{`-`}_ has joined #nixos-chat
{`-`} has joined #nixos-chat
Lisanna_ has quit [Quit: Lisanna_]
<gchristensen> https://turbo.fish/
<jD91mZM2> gchristensen++
<{^_^}> gchristensen's karma got increased to 19
<dmc> gchristensen++
<{^_^}> gchristensen's karma got increased to 20
<gchristensen> for _me_? *blushes*
<jD91mZM2> oh and the "random" button
<jD91mZM2> i love this
<gchristensen> I should probably not have learned all the stuff I can do with the turbofish
<__monty__> Awww, the random doesn't work in safari : (
<infinisil> ldlework: I'm jealous, my ISP doesn't let me have a public ip
Myrl-saki has joined #nixos-chat
<infinisil> I went through the trouble of being on the phone for like a total of 30 minutes, being forwarded about 6 times
<Myrl-saki> infinisil: You just recently got IPv6, right?
<infinisil> I ended up at some person high up, usually responsible for doing big contracts
<infinisil> (nope)
<infinisil> And he finally understood what a public ip was..
<clever> lol
<Myrl-saki> being (port) forwarded? :D
<infinisil> And then told me that I can't have that, only small business can get that
<infinisil> Hehe
<clever> with my isp, about a week ago, the fiber service entirely died
<clever> no internet, tv, or phone (or 911 service!)
<clever> we called them up over the cellphone, and the first thing they asked was to unplug and replug the router
<Myrl-saki> With my ISP, the fiber service doesn't exist(in my place) :x
<clever> a: the router is not the problem
<infinisil> clever: Lol
<clever> b: i already did exactly that with the modem, before calling, it didnt help :P
<infinisil> Well can't blame them, first line of defense
<infinisil> Helps in probably 60% of instancens
<clever> which is why i did it before calling :P
<clever> then they ask for the model# of the modem, and get confused, until we give the model# of the router instead :P
* infinisil doesn't know the difference anymore, but did at some point
<clever> then they run out of ideas, claim there is no problem in the area, and schedule to send a tech out
<infinisil> Oh, modem is the hardware, router is the thing that routes traffic, software usually
<clever> about half an hour later, with no sign of the tech, the service just comes back online "by itself"
<Myrl-saki> infinisil: One is a thingy, and the other is something that people often mispronounce.
<Myrl-saki> Jokes aside.
<Myrl-saki> Modem is to WAN, Router is to LAN, kinda
<ldlework> infinisil: i have nixos now calling into noip.net to update a dynamic dns, and I have a subdomain on my real DNS name web redirecting to my dynamic one
<clever> 10 minutes after it "fixes itself", the tech calls to confirm its fixed, and reports that there was a local outage
<ldlework> so now I have proper DNS pointing to my laptop at all times :)
<infinisil> Gotta love tech support <3
<ldlework> I am using that to be my own image/video/pastebin
<clever> infinisil: in general, the modem is the device that converts between different media/protocols, and the router is what takes a single public ip, and creates a private lan to share it
<infinisil> ldlework: I do too, even though I don't have a public ip :D
<clever> infinisil: but some ISP's have jammed both devices into a single box to save costs :P
<ldlework> infinisil: heh right
<infinisil> (it's going through a server to get to my local machine)
<ldlework> ah
<clever> which complicates the question
<ldlework> somehow i only have a router
<ldlework> and no modem
<infinisil> Huh
<Myrl-saki> clever: I'm curious, how does a modem work without a router, like something that doesn't require port forwarding and all that shit.
<clever> ldlework: what is on the WAN side of the router? an ethernet cord?
<ldlework> yeah
<ldlework> into the wall
<clever> ah
<clever> ldlework: apartment building or house?
<ldlework> the router might have a modem but it is a netgear wireless thing so i'd be surprised
<ldlework> apartment
<ldlework> but i did buy the most expensive one
<ldlework> oh yeah
<ldlework> it does
<clever> ldlework: there is probably a 2nd router, for the entire apartment building, with its own modem
<ldlework> i specifically bought this one because comcast's modem was terrible
<clever> Myrl-saki: with my ISP, if i plug a computer directly into the modem and run dhcp, i get a public ip
<ldlework> maybe, but i remember now it does have a modem
<clever> Myrl-saki: only one computer can do that, and it will ignore all other dhcp requests
<ldlework> i remember our internet in SF was going out like multiple times a day just for a few minutes
<ldlework> bought a router with its own modem and the problem went away
drakonis__ has joined #nixos-chat
<Myrl-saki> clever: Ohhh okay.
<ldlework> i remember we had to tell comcast about the modem bits
<Myrl-saki> clever: How do you access the modem?
<ldlework> i don't remember if I had to tell the new isp about it
<clever> Myrl-saki: the modem is a box in my furnace room, with 1 fiber port, 2 phone ports, and 4 ethernet ports
<clever> Myrl-saki: only 1 phone and 1 ethernet work at all
<Myrl-saki> clever: I mean like, the modem settings.
<clever> i suspect that its a combo modem+voip+router unit, but it lacks wifi, and the ISP neutered the firmware
<clever> Myrl-saki: i cant access any config on that box
<Myrl-saki> clever: Ah. Weird. :/
<Myrl-saki> Oh yeah. I see what you mean.
<clever> the ISP neutered the firmware, reducing it down to a dumb modem, and then slapped an external modem with wifi on the side
<Myrl-saki> On our modem, we get to be able to manually tweak the protocol, etc..
<Myrl-saki> (It's an off-the-shelf modem instead of one provided by the ISP.)
<Myrl-saki> OTOH, even the one provided by the ISP allows it. THat's where I got the config for the off-the-shelf router.
<clever> yeah, id expect an off-the-shelf one to have more flexibility, just so you can configure it to match your ISP
<clever> that is basically what my setup looks like, but the 3 boxes are slightly different looking
<Myrl-saki> Oh. :P
<clever> top right is a 12v lead-acid battery/PSU for the modem
<clever> top-left is the "modem+router+voip" box, that has had all the router features disabled
<clever> bottom is a normal router
<clever> the 12v battery allows the voip and phones to continue working during a power outage, because 911 is important
<clever> the modem is even smart enough to disable the ethernet ports when the battery gets low
<clever> so you cant youtube hard enough to kill 911, during an outage
<Myrl-saki> Millenials: "Try me"
<clever> i put the UPS on a UPS, to keep the battery topped up :P
<Myrl-saki> clever: Put it on the cloud for safe measure? :P
<clever> alcatel lucent ont I-240G-A
<clever> i think this is the model i have
<clever> lol
<clever> a 2 page pdf, with a link to a website, that wants to install a chrome extension
<Myrl-saki> God, time for me to do my assignments, again. ; ~ ;
<Myrl-saki> BLAAAAA
<clever> and the extnesion claims to be security tools!
<Myrl-saki> lmao
<Myrl-saki> clever: What if you open it on Firefox?
<clever> "fun safe tab"
<Myrl-saki> Or IE?
<clever> Alcatel-Lucent I-240G-D IP Addresses
<clever> 192.168.70.254
<clever> does not respond
<clever> this one looks like an actual manua, 448 pages
<joepie91> clever: the link sends me to usenet.nl
<joepie91> just a generic affiliate marketing link I think
<joepie91> through clickbank or w/e
<joepie91> oh yeah, was just remarking on the link :)
<joepie91> what was the chrome extension URL?
<joepie91> curious what's in it
<joepie91> ... FunSafeTab, lol
<Myrl-saki> god, this is so sad. ; ~ ;
<joepie91> that practically _screams_ "I'm malware"
<clever> yeah
<joepie91> let's have a look-see at what's inside...
<clever> after 30 pages of safety warnings, i'm finaly at the index, lol
* Myrl-saki waits for joepie91 has quit (Ping timeout: 264 seconds)
<joepie91> haha
<joepie91> nah
<joepie91> I'm not going to install it :)
<joepie91> anyway, all it does is redirect the 'new tab' page to http://search.funsafetabsearch.com with some seemingly randomly-generated(?) affiliate ID
<clever> ah
<joepie91> " "Secure Notes" widget enables you to write notes that can only be opened only using a password. "
<jD91mZM2> clever: Relevant XKCD: https://www.xkcd.com/806/
<Myrl-saki> Where's the fun in that? ; ~ ;
<joepie91> ""
<joepie91> " * Note that we can not guarantee the notes safety in case of an attempt to hack it. "
<joepie91> YES VERY USEFUL
<joepie91> MUCH SECURE
<infinisil> Lol
<Myrl-saki> joepie91: They're the only one who'll be trying to hack it too. :P
<jD91mZM2> joepie91: Lemme guess, plain text
<joepie91> oh fun, obfuscated JS loaded on the page
<joepie91> jD91mZM2: they claim AES
<joepie91> emphasis on 'claim'
<joepie91> it does use CryptoJS it seems
<jD91mZM2> joepie91: For the password or for the content?
<joepie91> content
<clever> section 12-30 of the pdf in the above filebin, how to identify every bloody model!
* clever drools
<joepie91> anyway, I suspect this is hiding some cookie stuffing in the obfuscated JS
<clever> dang, its just text descriptions of the features
<joepie91> so not exactly outright malicious
<clever> it looks like the hardware i have can support up to 2.488 Gb/s downstream, and 1.244 Gb/sec upstream!!
<clever> 1490 nm dosnstream, 1310 nm upstream
<clever> single mode fiber
lassulus has quit [Ping timeout: 240 seconds]
<clever> I-240G-U
<clever> 2 pots, 4 ethernet, 0 rf!
<clever> the G states that the ethernet is gigabit
<clever> I means its an indoor unit
lassulus has joined #nixos-chat
<gchristensen> very interesting: "WARNING: These exhibits have been provided by the applicant. Exhibits filed in accordance with 47CFR 0.457(d) are not available. The FCC does not guarantee the exhibits displayed on this site are virus-free. It is strongly recommended that any computer viewing these images have virus-protection software installed. Proceed in viewing this exhibit?"
<clever> section 4.1, my modem is running linux!
<Myrl-saki> Imagine a modem running Windows.
<Myrl-saki> Imagine if your modem requires a system update.
<Myrl-saki> An uninterruptable system update.
<clever> Myrl-saki: heh, a few pages back, it detailed some of the update procedure
<clever> how it can do a passive download, that will not activate itself on restart
<clever> and will only activate when the planned time occurs
<Myrl-saki> clever: `sudo nixos-rebuild build`? :P
<clever> Myrl-saki: more like `nixops deploy --copy-only` plus a timer to auto-activate at a set time
<Myrl-saki> A few years of using NixOS, and I still haven't used that command.
<Myrl-saki> Anyways, time for me to sleep. Night everyone. ; ~ ;
<clever> nn
clever has quit [Disconnected by services]
clever has joined #nixos-chat
<clever> lol, i was going to comment on how my public ip is abnormaly static
<clever> and it just changed, to an entirely different subnet
sir_guy_carleton has joined #nixos-chat
<infinisil> Is there a way I can make the cabal new-style commands use nix dependencies?
<__monty__> That'd be cool.
<disasm> gchristensen, clever: PM your usernames on plex and I'll share my library :)
<gchristensen> that doesn't sound legal ^.^
jD91mZM2 has quit [Ping timeout: 272 seconds]
<joepie91> I mean, all of Plex is basically "we've wrapped it in enough disclaimers and subtleties that we could argue it to be legal, but realistically..."
<joepie91> I'm surprised they haven't been sued yet
<clever> yeah
<gchristensen> everything I've put onto my plex is media I've purchased and ripped, which even that is a violation of the license of the media but is less bad I guess?
<clever> i choose not to comment, lol
<infinisil> __monty__: Yeah, not possible as of now from what I can understand
<LnL> clever: same :p
<infinisil> Oh wait
* clever hides the 224gig mythbusters torrent, that has had all the garbage edited out
<infinisil> __monty__: Actually, apparently just nix-shelling into a haskellPackages.callPackage's .env works
<infinisil> Then cabal new-build
<clever> infinisil: also of note, nix provides a cabal library, not a cabal executable
<clever> infinisil: you must compile Setup.hs to get the cabal binary
<clever> and if you just nix-env -iA a random cabal, i can cause problems down the road
<infinisil> Huh, I've been using a systemwide cabal-install without problems though
<clever> infinisil: i think it can cause problems if it gets too out of sync with the nixpkgs you used for the haskellPackages
<clever> but if its in systemPackages and you always import <nixpkgs> they will remain in sync
<clever> but thats not pure!!
<infinisil> clever: Hmm yeah, so what do you recommend instead? Just add cabal to the nix-shell for the pinned nixpkgs?
<clever> infinisil: compile Setup.hs to get a cabal binary
<infinisil> Sooo, ghc Setup.hs??
<clever> either `ghc Setup.hs -o Setup` and `./Setup new-build` or just `runhaskell Setup.hs new-build`
<__monty__> Any disadvantages to sticking with Setup.hs v. cabal? I guess you don't get cabal init.
<infinisil> clever: What's the advantage of that over just using cabal-install with the cabal binary?
<clever> infinisil: the cabal binary will ignore any hooks the project added in Setup.hs, and there may be conflicts if the versions of ghc differ enough
* infinisil never used Setup.hs for anything
<LnL> I should find something to do some haskell again, the last time I built something new-build wasn't a thing yet I think
<infinisil> clever: So I'll just keep using cabal, this Setup.hs seems kinda complicated and unnecessery, especially if I don't need it for my own projects
<infinisil> Also, a default ghc doesn't have Distribution.Simple, so I'll have to add that too somehow
<infinisil> s/I'll/I'd
<clever> infinisil: the .env that nixpkgs provides always includes that
<clever> 2018-08-23 16:39:00 < clever> infinisil: also of note, nix provides a cabal library, not a cabal executable
<infinisil> I am using that but I don't have it, hmm..
<infinisil> I am using callCabal2nix if that matters
<clever> *looks*
<LnL> that's almost black magic
<clever> [clever@amd-nixos:~/iohk/extra-statsd]$ nix-shell default.nix -A normal.env
<clever> [nix-shell:~/iohk/extra-statsd]$ ghc-pkg list | grep -i caba Cabal-2.0.1.0
<clever> infinisil: there is no trace of cabal in the inputs anywhere, yet it still winds up in ghc-pkg
<infinisil> clever: I too have that library with ghc-pkg list
<infinisil> But it still doesn't compile
<clever> infinisil: what does `type ghc` return?
<infinisil> ghc is /nix/store/mv1brczg4rrrgj5f6kby78jqi5wl2dvw-ghc-8.2.2-with-packages/bin/ghc
<clever> and what cmd are you using to compile Setup.hs?
<clever> [nix-shell:~/iohk/extra-statsd]$ ghc Setup.hs -o Setup
<clever> [nix-shell:~/iohk/extra-statsd]$ ./Setup new-build
<clever> unrecognised command: new-build (try --help)
<clever> Cabal 2.0.1.0 doesnt seem to contain new-build
<infinisil> ghc Setup.hs -o Setup
<clever> which version does your ghc-pkg list?
<infinisil> Same as you
<infinisil> 2010
<infinisil> Weird
<infinisil> Also weird: All my other binaries aren't available in that nix-shell
<infinisil> Even though I didn't pass --pure
<clever> if you exit the nix-shell, what does `type ghc` say?
<infinisil> And PATH does contain my system and user profiles... WHAT
<infinisil> clever: That would be my global ghc in /run/current-system/sw/bin/ghc
<clever> what is worth a wat
<infinisil> Heh yeah know that one
<clever> i also refuse to install ghc globally
<clever> it makes mistakes easier to miss
<infinisil> Yeah, I should maybe do that too
<clever> https://www.youtube.com/watch?v=eOyp0yGwJZ0 Google Maps Made A HUGE Change - Mercator Projection Is Dead?
<gchristensen> "it isn't"
<drakonis__> well, google maps shows the globe
<__monty__> Tbh, it's kinda weird digital maps stick to the flat projections considering the major flaws they all have.
<gchristensen> yea
__monty__ has quit [Quit: leaving]
drakonis__ has quit [Remote host closed the connection]
<gchristensen> "We found a minor issue around integer handling when getting started with Dgraph: when Dgraph first encounters a new attribute on a record, it infers the schema for that attribute based on the submitted value. Notably, integers are inferred to be floats, which means that a user could write 0 without a schema, and when trying to read it back, obtain 0.0 instead. Large integer values which are not
<gchristensen> representable as floats could be silently coerced to different values: 9007199254740993 becomes 9007199254740992.0. 27670116110564327426, at the upper end of the signed 64-bit integer range, comes back as 2.7670116110564327E19: 426 fewer." minor :$
lassulus has quit [Ping timeout: 264 seconds]
<simpson> gchristensen: This popped up when I was interoperating with Prometheus, also written in Go, a few days ago: https://github.com/monte-language/typhon/blob/master/mast/lib/prom.mt.md#preamble
<simpson> I am planning to add in Kahan summation in order to be able to more gracefully decay in precision.
lassulus has joined #nixos-chat
tertle||eltret has joined #nixos-chat
<gchristensen> hmm neat
<gchristensen> I have a bunch of files and directories in a specific structure and I'd like to read it all in to a datastructure. is there a nice way to do this that isn't muddled by badly done graph code?
dmc has quit [Quit: WeeChat 2.2]