gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
<aleph-> gchristensen: zoneminder set up to stream it's videos to a facial recognition daemon when it pings a person on it's cameras which does facial recognition and then after getting a match hits a personal info/social graph daemon to throw up info on a person
<aleph-> Social graph one has been fun, just need a way to get around being able to scrape data without having to just create fake accounts and use a headless browser to scrape data
<samueldr> gnome-disks is actually quite useful in mounting a disk image's partitions, it can handle the commands I never remember to attach /dev/loopXp* from the image file
<gchristensen> nice
<aleph-> Hmm I need to go learn some sql
<aleph-> I figure sqlite will work for a db
<gchristensen> sqlite is great if you have one reader/writer
<gchristensen> <3 sqlite
<aleph-> gchristensen: Yeah trying to think of a better way to scrape data off social media and I figure I should finally store it in a proper db
<gchristensen> yes though if you want a *graph* you should probably use a graph database
<aleph-> Probably. Realistically, I should split it into a few dbs. One for general info on a person/node. A second for the social graph itself
<aleph-> Hmm, maybe instead I should just create a fb app and get folks to install it.
<aleph-> Eh could just go with a headless browser scraper still...
<aleph-> But that's slow.
<clever> samueldr: `man losetup`
<samueldr> clever: right, and if I don't remember that it's named man^W losetup?
<samueldr> :)
<samueldr> used too infrequently
<clever> samueldr: my memory is just weird, i use it less then once a year, yet i can remember the cmd
<samueldr> there are things I can remember flawlessly, but dang it if losetup is not one of those :)
<clever> samueldr: ive read enough kernel source code, that i can instantly identify parts of the linux kernel, when a tv show flashes it as an example of "hacking"
<drakonis1> after amd, there's intel
<drakonis1> gonna be good.
<Shados> aleph-: Although, given infinisil's article link earlier, perhaps storing graphs in a relational db wouldn't be so odd ;).
<aleph-> Hmm why? algebra maps well to relational dbs?
<aleph-> I forget if they have an algebra to them
<aleph-> I think theres a relation algebra?
drakonis has quit [Ping timeout: 245 seconds]
drakonis has joined #nixos-chat
{`-`} has joined #nixos-chat
endformationage has quit [Quit: WeeChat 2.4]
<Shados> aleph-: Both it and relational algebra are built on top of set operators (with some restrictions in the relational case)... although on further thought, in practice sql has enough differences that it might not be that viable
<aleph-> Nod nod
Myhlamaeus has joined #nixos-chat
MichaelRaskin has quit [Quit: MichaelRaskin]
<kalbasit> I'm curious, what's the size of cache.nixos.org?
<kalbasit> I'm able to pull from the cache for nixos-15.09, so I'm expecting some really large size :O
Myhlamaeus has quit [Ping timeout: 250 seconds]
drakonis1 has quit [Quit: WeeChat 2.4]
averell has quit [Ping timeout: 252 seconds]
pie_ has quit [Remote host closed the connection]
drakonis has quit [Quit: WeeChat 2.4]
<clever> kalbasit: it has no GC at all
<andi-> kalbasit: https://nixos.org/nixos/foundation.html says 120TB and it has been a bit since that was updated
pie_ has joined #nixos-chat
pie___ has joined #nixos-chat
pie_ has quit [Ping timeout: 252 seconds]
<joepie91[m]> hmmm. that donations graph is outdated
<manveru> yeah... i asked about that a few months ago when i started donating :|
<manveru> but seems it's a manual process nobody wants to do
waleee has joined #nixos-chat
<pie___> im somewhat confused, how does nix know if somethng in buildinputs is a runtime dependency?
<pie___> aleph-, i might ask you for references later because ill want to have something for aggregating certain feeds off twitter
<srhb> pie___: It's a runtime dependency if the store path is in the output path.
<srhb> (That is, /nix/store/aaa...-dependent/somefile contains /nix/store/bbb...-dependency)
<pie___> srhb, that seems...sketchy
<pie___> what if you have a dependency that shows up nontrivially
<srhb> pie___: Then it's not a dependency!
<srhb> pie___: :-P
<pie___> uh
<pie___> this makes me uncomfortable
<srhb> pie___: It may seem sketchy but it works really really well in practice.
<pie___> ...apparently...i await the day i get shot in the foot
<srhb> Most foot-shootings here happen to be the "safe kind" -- accidentally too large closures rather than the other way around.
<gchristensen> pie___: what kind of "nontrivially" are you wanting?
<pie___> gchristensen, no idea. whatever is "does not show up as a plain string"
<pie___> well not that i would want that, but rather , it could happen
<gchristensen> right, so that means whatever is doing it would have to take a given input path and split it up and reconstruct it at runtime
<pie___> (on closure size note, would be nice if we could have a headless jdk variant that didnt pull in CUPS and half of x11 or i dont even know... )
talyz has joined #nixos-chat
Synthetica has joined #nixos-chat
<gchristensen> samueldr: I suppose you don't have today off
<samueldr> nope
<samueldr> we had a day off one week ago exactly though
<gchristensen> ah :)
<samueldr> it's those weird US holidays, almost always lagging behind
<flokli> gchristensen: one 'non-triviality' might be store path inside some compressed output
<flokli> like .jar files shelling out to nix-store paths maybe
<flokli> but so far, it seems to work pretty good :-)
<gchristensen> yeah
endformationage has joined #nixos-chat
arguser has joined #nixos-chat
<etu> Some people here going to the cccamp 2019? :)
<lassulus> yes
<lassulus> we are currently in the planning phase (what do bring, if we want to have talks at the village, if they are streamed/saved, if we want a big tent, etc...)
<etu> lassulus: Cool, I have my own village that I go with
<etu> lassulus: You should add a tag to the village (nixos)
nckx has quit [Ping timeout: 248 seconds]
nckx has joined #nixos-chat
__monty__ has joined #nixos-chat
drakonis has joined #nixos-chat
<joepie91[m]> I made flatbread
<joepie91[m]> it's nice
<samueldr> .o( is tortilla a flat bread? )
<Taneb> (is pizza?)
<joepie91[m]> samueldr: yes, actually!
<joepie91[m]> but in my case, it was icelandic flatbread
<joepie91[m]> or well, a variant
<joepie91[m]> second recipe here, 'modern flatbread'
<joepie91[m]> modified to use spelt bread baking mix instead of rye flour (since that's what I could get my hands on quickly)
<joepie91[m]> and accordingly a little less salt
<joepie91[m]> otherwise the sqme
<joepie91[m]> same*
<joepie91[m]> oh, and I skipped the 'dip in water' step
pie_ has joined #nixos-chat
pie___ has quit [Ping timeout: 258 seconds]
pie___ has joined #nixos-chat
pie_ has quit [Ping timeout: 258 seconds]
drakonis has quit [Quit: WeeChat 2.4]
pie___ has quit [Ping timeout: 246 seconds]
pie_ has joined #nixos-chat
<pie_> wow my tmux terminal somehow managed to get its size stuck to that of a smaller window even though nothing else is attached anymore
<pie_> against all my googlings of "tmux force resize"
<ar> pie_: detach and tmux a -d?
<pie_> i dont remember, but i didnt see any clients attached in the list
<pie_> so i did tmux attach -dt
waleee has quit [Quit: WeeChat 2.4]
drakonis has joined #nixos-chat
<drakonis> so, i've noticed that guix has better marketing than nix
<infinisil> It does?
<samueldr> what can anyone do to help? what do they do better that we could improve on?
<drakonis> now, they have blog posts covering features
<drakonis> the post regarding guix 1.0 is a strong example of their marketing being better
<drakonis> they point out use cases in a compelling way
<__monty__> Marketing's only effective if it gets eyeballs.
<drakonis> they're getting more eyeballs
<__monty__> I don't mind though, I see guix marketing as surrogate nix marketing : )
Myhlamaeus has joined #nixos-chat
<__monty__> Are they?
<drakonis> well, they have been posting more often
<__monty__> I know they were a lot more present at FOSDEM this year for example. But a couple years back it was nix.
<drakonis> at a rate of two articles a month
<__monty__> You can post twice a day. Doesn't mean you're getting eyeballs.
<drakonis> on average
<drakonis> i'd suggest a nix in a nutshell post covering the use cases
<drakonis> for when flakes comes out
pie_ has quit [Ping timeout: 272 seconds]
<drakonis> the big new feature that's likely to bring more attention to nix
<drakonis> __monty__, they keep getting posted to other websites
<__monty__> I'd be sad if people started focusing on nix v. guix. It should be nix+guix v. the world.
<eyJhb> Anybody know of a nice way, to execute multiple commands in e.g. vim/ranger, something? E.g. I wnat to make a file with one command for each line, and then execute them
<__monty__> Sounds like a shell script?
<samueldr> maybe :source for vim
<samueldr> ranger seems to also have source
<samueldr> (if it is vim/ranger commands you want to run, and not system commands)
<__monty__> Maybe you're looking for a way to edit the current command in an editor? Fish does that with `alt-e`.
<eyJhb> Might need to switch to fish at some point
<eyJhb> Now I am having trouble with vim not replacing in the visual selected block, bur rather the selected lines
<__monty__> Substitute's syntax is line based. I run into this frequently too.
<__monty__> Work around this by adding `\%V` to the search pattern of your substitute command.
<__monty__> `:s/\%Vmatch/replacement/flags`
<eyJhb> Fixed it! - But I was really hoping for something like :bulkrename, but just for commands... Endeed up creating a .sh script to do it
<eyJhb> If anybody have a nice and sleak solution for copying files in the format <folder-name>/writeup.md , to <folder-name>-writeup.md, would be nice
<__monty__> eyJhb: You could try ranger's :flat 2?
<__monty__> You can abuse :bulkrename to execute a random script btw. Just edit/erase all the mv commands you get for confirmation.
endformationage has quit [Ping timeout: 272 seconds]
manveru has quit [Ping timeout: 252 seconds]
pie_ has joined #nixos-chat
manveru has joined #nixos-chat
arguser has quit [Ping timeout: 256 seconds]
Guanin has joined #nixos-chat
endformationage has joined #nixos-chat
drakonis has quit [Read error: Connection reset by peer]
__monty__ has quit [Quit: leaving]
<Shados> eyJhb: nixpkgs.file-rename (perl-rename elsewhere, usually)! Lets you do 'mv' operations by regex.
<Shados> So something like `rename -v 's|^([^/])+/(writeup.md)$|\1-\2|' */*` would do what you want (not that I've tested it; -n for a dry run).