gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
jasongrossman has joined #nixos-chat
<infinisil> Gosh, I have an assignment for a seminar at my university
<infinisil> I need to answer certain questions and send them in (due in 1 month)
<infinisil> They send a PDF and a Microsoft Word document. PDF it is
<infinisil> But the PDF doesn't contain enough space to insert the answers..
<samueldr> write smaller
<infinisil> So now I'm complaining to them
<infinisil> samueldr: I'd have to use font size ~3 to make it work lol
<infinisil> Oh my god, I just got a reply
<infinisil> "You are welcome to copy and paste questions to your favorite editor, insert your anwsers, and then submit a final PDF."
<infinisil> Really??
<samueldr> "Never, ever expect hackers to be able to read closed proprietary document formats like Microsoft Word or Excel. Most hackers react to these about as well as you would to having a pile of steaming pig manure dumped on your doorstep."
<infinisil> Exactly..
<infinisil> There's 3 pages of questions..
<infinisil> It will take me an hour to copy and paste everything and make it look acceptable
<infinisil> While it would take them 5 minutes to insert a couple spaces into the PDF..
<infinisil> Holy hell
<MichaelRaskin> Just open PDF in Inkscape and move parts around?
<infinisil> If that works that's nice
<infinisil> But I'm disappointed by them, it's such a simple request
<MichaelRaskin> Well, GIMP definitely works
<MichaelRaskin> But will rasterise
<MichaelRaskin> But maybe you don't care enough
<MichaelRaskin> LibreOffice might succeed in doing the right thing directly on a PDF
<jasongrossman> I recommend that you don't worry about making it "look acceptable". Just make it legible. (I speak as a professor.)
<infinisil> Even better: The person answering me is the professor of the course, who is known for putting up tons of work for his students, I've received multiple complaints already, and I've complained to others that this seminar is too much work for just 2 credit points
<samueldr> xournal is great to move parts around of PDFs, but it rasterizes them IIRC
<samueldr> well, to make space mainly
<infinisil> Well I'm using xournal now and I can't do that
<samueldr> oh, the vertical space tool doesn't work on tha layer I see
<samueldr> (xournal treats the PDF as a background layer I think)
<infinisil> I should write a LaTeX document replicating the question sheet and publish that to all participants of the seminar with the comment "For everybody who likes non-proprietary formats"
<infinisil> Along with a nix file for building it with the required packages haha
<infinisil> But then again, I don't wanna spend more time on this than necessary, I'll just dump Q/A it into an org document and export it as PDF
<jasongrossman> Good plan.
<infinisil> I guess I could also try using the Word document with Libreoffice and hope my machine doesn't reject the proprietary format
<MichaelRaskin> pdftotext sounds simpler
jasongrossman has quit [Ping timeout: 250 seconds]
jasongrossman has joined #nixos-chat
lassulus_ has joined #nixos-chat
lassulus has quit [Ping timeout: 268 seconds]
lassulus_ is now known as lassulus
infinisil[m] has joined #nixos-chat
siraben has joined #nixos-chat
<infinisil[m]> dtz: Hmm, I don't think I'll use fractal, the message density is way lower than in my IRC client
<infinisil[m]> The profile pic + name takes up so much space
<siraben> infinisil: is it just Matrix users that can see the icon on #nixos ?
<infinisil> Heh, most certainly, didn't notice #nixos had an icon on matrix
iqubic has joined #nixos-chat
<iqubic> I am here.
<siraben> Oh hi iqubic
<iqubic> Hey.
<infinisil> I have like 30-40 messages on one page in weechat
<iqubic> So for some reason I can't create a matrix account with the username `iqubic`
<infinisil> Only like 10-20 in fractal
<iqubic> What the heck is life???
<siraben> iqubic: So make it something iqubic2 or something :P
<infinisil> And I can resize weechat easily by just increasing the terminal size, which I often need because the text is so small
<siraben> Don't worry IRC users won't notice a thing
<siraben> because you can reuse your credentials for freenode
<siraben> infinisil: what do you use to connecto to Matrix?
<iqubic> I see.
<siraben> I'd use the Emacs Matrix Client but there's some strange bugs/appearance annoyances that detract me
<infinisil> siraben: The fresh #53106
<{^_^}> https://github.com/NixOS/nixpkgs/pull/53106 (by dtzWill, 1 hour ago, open): fractal: init at 4.0.0 !
<siraben> So I have to use the web-based Riot for now, em.
<siraben> infinisil: how would I install that?
<siraben> iqubic: you might want to look into Fractal, looks promising
<iqubic> What is wrong with the Emacs Matrix Client?
<siraben> It connects fine, well maybe because I'm not used to it
* siraben should try it again
<siraben> In any case, iqubic did you get it registered?
<infinisil> siraben: In your nixpkgs checkout: `git fetch upstream refs/pull/53106/head:pr/53106 && git checkout pr/53106 && nix-build -A fractal`
<infinisil> I'm just running it with result/bin/fractal then
<iqubic> I haven't registered an account yet
<iqubic> I just found this though: https://github.com/jgkamat/matrix-client-el
<siraben> iqubic: Yep. The quelpa snippet should be fixed
<infinisil> It will take a while to compile though, it's built with rust and there's currently no caching whatsoever with rust deps
<siraben> I chatted with the maintainers and fixed it
<iqubic> Well, it wants to do some 2 factor authenitication.
<siraben> Hm, how so?
<siraben> infinisil: cloning nixpkgs now
<siraben> iqubic: speaking of Emacs, found anything new recently? My config has been unchanged for a couple of months now
<siraben> Finally getting to use magit more, it's great.
<iqubic> Which I'm fine with, except for the fact that it sent a code to my cellphone which is currently off, and out of power. I'll need to plug it in. It's going to take about 5-10 minutes before I can get that code.
<iqubic> So it's going to take a while.
<siraben> Oh beacuse you added a cellphone number
<siraben> it's optional, btw
<iqubic> Yeah. I didn't know that.
<siraben> iqubic: let me know when you're logged in
<iqubic> you know what, I can just reload the page, enter only an email, and then it doesn't want to do any sort of 2 factor
<siraben> Sure
<siraben> Hm this clone is taking quite a bit
<iqubic> Account made.
<infinisil> siraben: --depth=1 would make it fast
* siraben wonders how to do --depth=1 with magit
<iqubic> Currently looking at the riot.im interface.
<infinisil> Not sure how that's gonna interact with the PR git fetch though
<siraben> iqubic: So on the bottom let click the + and type in @appservice-irc:matrix.org
<infinisil> Ohh it's a magit user, I've been wanting to get into magit
<siraben> oops I mean
<iqubic> It wants a room name.
<siraben> iqubic: the "person" icon
<siraben> which is a start chat
<siraben> So make a chat with @appservice-irc:matrix.org
<siraben> Open that new chat and type in !nick iqubic
<iqubic> I see a thing called @freenode_appservice...
<iqubic> is that what I want?
<siraben> Which should open a chat with NickServ at which point you go over there and identify <password>
<siraben> Yes
<iqubic> Alright... Now what?
<iqubic> IDK what is going on right now.
<siraben> Type in !nick iqubix
<siraben> I mean !nick iqubic
<siraben> Then a new chat with NickServ should be opened
<siraben> At which point you type in identify <your password>
<siraben> And you'll be authenticated into freenode, well assuming you log out before you try to log in
<iqubic> I'm not sure what I should be doing here. I'm so gosh darn confused.
<siraben> Did you try !nick iqubic ?
<siraben> Type that to the appservice bot
<siraben> What comes up?
<siraben> iqubic: don't worry it may be a little disorienting the first time
<siraben> Esp. When you've been using ERC the whole time, like I was
<iqubic> I'm not sure how this works.
<siraben> What are you trying to do?
<siraben> Oh right look in the left sidebar for the appservice bot
<iqubic> I'm trying to link this matrix account with my irc account.
<siraben> Make sure it's selected and you say !nick iqubic to it
<siraben> Yep these are the steps
<iqubic> Alright... What room do I want to be in?
<siraben> With appservice?
<iqubic> Huh???
<siraben> Once you type that to it and hit enter
<siraben> Sorry where are you right now?
<iqubic> I have this room called "appservice-irc_p"
<iqubic> And I'm not sure where to go from there.
<siraben> You type in !nick iqubic and hit return
<siraben> Type it in the chat dialog
<iqubic> That did nothing.
<siraben> Hm?
<siraben> Can you screenshot?
<iqubic> Okay... Grey text on a white background is the hardest thing to look at.
<iqubic> siraben: ^^^
<siraben> You can change the color theme to dark by going into the settings
<iqubic> see that image.
<iqubic> Not sure what to there.
<iqubic> s/to/to do/
<iqubic> siraben: Can you help me?
<siraben> Are you sure it's the right bot?
<siraben> @appservice-irc:matrix.org
<iqubic> I don't think it's the right bot.
<siraben> Then add it again
<siraben> Then in the chat window type !nick iqubic
<iqubic> Didn't work.
<iqubic> Oh, wait... Yes it did.
<iqubic> Now what do I do?
iqubic has left #nixos-chat ["ERC (IRC client for Emacs 26.1)"]
iqubic has joined #nixos-chat
<iqubic> siraben: What the actual heck do I do?
<siraben> iqubic: ok then do you see NickServ?
<iqubic> nope.
<siraben> On the left?
<siraben> What's the screenshot now?
<siraben> Once you get NickServ it's smooth sailing because you'll be connected to IRC, and it's just the channels after.
<iqubic> Yeah.
<siraben> Let me know what the status is
<iqubic> I can't even get to NickServ.
<siraben> What does it look like?
<siraben> Hm weird
iqubic has quit [Quit: Page closed]
<siraben> Oh, maybe it's working.
<siraben> Crap does he know how to join IRC channels
<dmc> lol
<siraben> That or the internet cut out
<siraben> We'll see soon enough.
iqubi4 has joined #nixos-chat
qualiaqq has joined #nixos-chat
<siraben> Yay!
<siraben> Oh and there's also markdown support, which should be compatible with IRC clients using some sort of rich text
<siraben> *italics* **bold** `code`
<iqubi4> I see.
<iqubi4> So I notice that when I scroll all the way up the the top of the messages, I see a loading symbol there.
<iqubi4> It's weird.
<siraben> Huh I do too for this channel
<iqubi4> I see it for like several channels.
<iqubi4> Basically everything except for #nixos
<siraben> I think #nixos has some sort of matrix compatibility thing
<siraben> Because it has a logo too
<iqubi4> Weird. IDK how that works.
<siraben> Same, it's the only channel I have that does that
<siraben> So there's also iOS and Android apps
<iqubi4> I did not know that.
<siraben> Now you know :)
* siraben uploaded an image: Henri_Rousseau_010.jpg (9808KB) < https://matrix.org/_matrix/media/v1/download/matrix.org/ASaQNUoYutZlVckXrEXexlCv >
<siraben> And you can drag and drop images
<siraben> Which also appear something like a /me to IRC users
<siraben> like "siraben uploaded a file <link>"
<iqubi4> See, I was completely stumped by matrix until I found this article: https://opensource.com/article/17/5/introducing-riot-IRC
<siraben> Ah I should save that link somewhere
<iqubi4> Yeah, it was instrumental in getting riot.im to work.
<siraben> Managed to convert over a few friends to join IRC
<siraben> Because obviously not everyone is going to want to use weechat or ERC outside of a technical audience
<siraben> Join IRC via Riot*
<iqubi4> Well, I'm not sure if I want to stay with matrix.
<siraben> That's fine, try it and see.
<iqubi4> I don't really like the riot client very much.
<siraben> Oh yeah there's that fractal client
<iqubi4> Haven't looked at that.
<siraben> On a pull request right now, I'll try building it
<iqubi4> Yeah. I think infinisil or someone in #nixos built it properly.
<siraben> infinisil: I'm getting error: cannot auto-call a function that has an argument without a default value ('stdenv')
<iqubi4> {^_^} {`-`} {`-`}_
<siraben> iqubic: seems garbled?
<iqubi4> Wht do we have three different bots in here.
<iqubi4> {^_^}:
<siraben> Ah hm that might be a Riot bug
<jasongrossman> I sometimes get non-technical friends to use the IRC interface at https://kiwiirc.com
<iqubi4> Yeah, that's what happens when I type "{" then hit <Tab>
<jasongrossman> Oh, yeah, that example's not going to work because of the spam thing.
<iqubi4> Also, I don't think I can log into any other IRC client while my matrix bridge is running.
<siraben> Yeah
jasongrossman has quit [Remote host closed the connection]
<iqubi4> Does that mean I can do that, or that I can't do that?
<siraben> You can't. At least that means you don't need to pray the internet cuts anymore
<iqubi4> My internet cuts out like, once a month
<siraben> Well of course you could create another IRC account, for only matrix
<iqubi4> I have one IRC account.
jD91mZM2 has joined #nixos-chat
<siraben> Right.
<siraben> Well like I said, try it for a while
<siraben> It's easy to switch out again
<iqubi4> I know
<siraben> Find any interesting Emacs packages lately?
<siraben> Haha I found "fireplace"
<siraben> I've been reading about projectile, seems interesting.
<iqubi4> So anyways. I just screwed that up.
<iqubi4> Didn't mean to put that image in that channel
<siraben> Don't worry
<siraben> I should read more Emacs configurations for inspiration
hedning has quit [Remote host closed the connection]
<iqubi4> That's a list of different packages that exists.
jasongrossman has joined #nixos-chat
<siraben> Cool thanks
<etu> Oh, haven't seen that list but one of my packages is in there :-)
<etu> (webpaste.el)
<etu> Didn't know that :D
<iqubi4> I use webpaste.el
<siraben> What's it do?
<jasongrossman> It "allows to paste whole buffers or parts of buffers to pastebin-like services."
<siraben> Ah makes sense
<siraben> iqubic: do you use M-x shell?
<iqubi4> yes.
jasongrossman has quit [Remote host closed the connection]
jasongrossman has joined #nixos-chat
qualiaqq has quit [Quit: ERC (IRC client for Emacs 26.1)]
emily has joined #nixos-chat
endformationage has quit [Ping timeout: 240 seconds]
MichaelRaskin has quit [Quit: MichaelRaskin]
jD91mZM2 has quit [Quit: WeeChat 2.2]
<adisbladis> I'm not sure it's a good idea
<adisbladis> But it feels pretty neat
__monty__ has joined #nixos-chat
<gchristensen> omg adisbladis nice
* etu is planning to migrate to that some day soon
* etu and adisbladis had a discussion about how to do that at 35c3
<etu> But then he pushed exwm on me as well, so now I run exwm :p
<adisbladis> gchristensen: I'm moving it to a NUR repo soon-ish
<adisbladis> etu: It feels like a lot of nix peeps are using exwm now
<gchristensen> oh man, that is too far for me
obadz has quit [Ping timeout: 250 seconds]
obadz has joined #nixos-chat
<etu> gchristensen: "a lot" like you converted 3 people? :)
<etu> adisbladis ^
<etu> gchristensen: We also built a nice self-updating overlay repo for exwm that tracks master automatically :p
<adisbladis> etu: There are dozens of us!
<infinisil> adisbladis: I've done somthing similar before: parsing "; foo bar" at the top of every emacs file into a list of packages [foo bar]
<adisbladis> infinisil: Cool, just some special comment?
<adisbladis> And did you stop using this for some reason?
<iqubi4> I use EXWM.
<iqubi4> In fact I created an overlay that fetches the latest commit to the stable brance.
<iqubi4> *branch
<adisbladis> iqubi4: Oh. Did you publish this somewhere? Me and etu made https://github.com/adisbladis/exwm-overlay
<infinisil> adisbladis: I think I stopped because I wanted nix interpolation for certain emacs config bits
<etu> It updates by cron in travis daily :)
<iqubi4> No, I haven't published my thing anywhere.
<infinisil> Hmm maybe there was something else too though
<etu> And grabs the latest master of exwm and xelb
<adisbladis> infinisil: Right, I don't see these things as mutually exclusive :)
<infinisil> adisbladis: how would you combine them?
<infinisil> Nix interpolation in elisp files
<iqubi4> Oh, I don't grab the latest version of xelb.
<etu> adisbladis: I should add a readme with example to that repo some day
<iqubi4> And I just looked at my overlay, and I don't think it does what I want it too.
<etu> iqubi4: https://github.com/etu/nixconfig/blob/master/overlays/local/modules/my-exwm.nix#L66-L70 -- This is how I import mine and adisbladis overlay to get exwm from master :)
<iqubi4> In fact, I'm not sure what that overlay is doing.
<iqubi4> Can someone help me figure out what my overlay is doing?
<iqubi4> etu: How do I use that thing?
<adisbladis> iqubi4: I don't know where self.unstable is coming from
<adisbladis> But I'm guessing there is another overlay pulling down the unstable nixpkgs somewhere
<iqubi4> Yeah, niether do I.
<iqubi4> adisbladis: Actually, yeah. Unstable is being pulled in as an import in my configuration.nix.
<jasongrossman> I've been having trouble with exwm configuration - I can't get the simplest of the examples from the exwm readme to work.
<etu> iqubi4: That overlay that I linked would pull down our overlay that would provide you the latest daily master of exwm/xelb in the emacsPackages. So you just install exwm as an emacs package and get the latest master.
<adisbladis> jasongrossman: What kind of issues are you having?
<jasongrossman> So grr. Although I'm going to bed now, so don't try to help me straight away. Happy 2019 by the way!
<adisbladis> Happy counter increment day!
<iqubi4> Cool.
<jasongrossman> adisbladis: Thank you!
<iqubi4> etu: I literally have no idea what my overlay is doing.
* infinisil is still in 2018
<jasongrossman> adisbladis: Some of the simplest examples from the user guide at https://github.com/ch11ng/exwm/wiki don't work, even with a minimal config. I'll look up the error messages I get another time.
<iqubi4> I think I'm going to switch to your overlay.
<etu> infinisil: Me as well:)
<jasongrossman> infinisil is so 2018.
<etu> But our iOS app skipped a year today. It went to 2019-12-31 when it did searches :D
<adisbladis> jasongrossman: Sure thing, ping me if you need any help (:
<jasongrossman> etu: Oh dear.
<jasongrossman> adisbladis: That would be great! Thank you!
<jasongrossman> ,night
<{^_^}> Night!
* etu did an ugly hotfix with if(current_year == 2018) s/2019/2018/
__monty__ has quit [Ping timeout: 246 seconds]
<infinisil> etu: lol, are you using a homebrewn date library or what?
<etu> infinisil: Nope, from iOS according to our iOS lead :p
<infinisil> Why did it mess up the date though??
__monty__ has joined #nixos-chat
<etu> Well, I dunno. I'm not an iOS developer. I just fixed our backend to return the expected data and the iOS devs have to get their shit together after the vacation :p
__monty__ has quit [Quit: leaving]
<samueldr> yyyy vs YYYY probably
<samueldr> Or G vs Y off the top of my head
<samueldr> Like twitter did. Was it 2 years ago?
tilpner has quit [Quit: WeeChat 2.3]
tilpner has joined #nixos-chat
tilpner has quit [Quit: WeeChat 2.3]
tilpner has joined #nixos-chat
endformationage has joined #nixos-chat
<infinisil> etu: Oh yeah, actually there was just a blog post by a known iOS developer recently about exactly that: https://ericasadun.com/2018/12/25/iso-8601-yyyy-yyyy-and-why-your-year-may-be-wrong/
<infinisil> samueldr: ^
<samueldr> there were a couple posts during the month about that
<samueldr> dates is hard
<etu> oh
<etu> I'm gonna give that to our ios developers after the vacations
<etu> They don't have the time to release anything now anyways
<samueldr> eh
<samueldr> they have all of 2019 already
boredom101 has joined #nixos-chat
boredom101 has quit [Quit: Page closed]
<gchristensen> it is a bummer that fish doesn't support posix shell at all
infinisil is now known as https
https is now known as infinisil
<infinisil> gchristensen: Can't you just run a posix shell when you need it?
<gchristensen> no
<gchristensen> I'm working on a thing, and it involves spawning an interactive shell. all the shell scripts are written in posix shell, so it can support many shells -- but not fish
<adisbladis> gchristensen: You may be able to get away with fenv?
<gchristensen> link?
pie_ has joined #nixos-chat
drakonis has joined #nixos-chat
<ldlework> just use zsh like everyone else
* samueldr is no one else
drakonis has quit [Read error: Connection reset by peer]
<adisbladis> gchristensen: It's packaged as fish-foreign-env in nixpkgs
<gchristensen> samueldr: I went back to zsh, unhappy with bash's history options
<samueldr> yeah, I read that, I was mostly responding fadcetiously to "like everyone else" :)
<samueldr> facetiously*
<gchristensen> I know
<elvishjerricco> I need to give ZSH a shot. I've heard nothing but wonderful things about it, and I like that it's mostly compatible with bash.
<gchristensen> I didn't like zsh until I deleted oh-my-zsh
<gchristensen> (I'm a fan of less-is-more)
pie_ has quit [Ping timeout: 250 seconds]
<adisbladis> Fish ftw imho
<adisbladis> I don't think bash compat is much of a selling point for interactive use
<ldlework> i used some things from oh-my-zsh that have nix modules because I figured... it's nix, why do I care beyond that? :P
sir_guy_carleton has joined #nixos-chat
pie_ has joined #nixos-chat
<jasongrossman> adisbladis: I have the same feeling as you, but I guess it's different for different people, not because fish isn't objectively better (it is) but because some people HAVE to use something sh-compatible.
<jasongrossman> adisbladis: Also, I'm going to ask you properly about exwm later, but for the moment could you please show me the exwm part of your emacs config?
<jasongrossman> THIS is what's so good about fish, IMO ... in fact, this is a wonderful document even for people who don't like fish. https://fishshell.com/docs/current/design.html
<jasongrossman> And especially "Configurability is the root of all evil".
<iqubi4> jasongrossman: This is the EXWM config that adisbladis uses: https://github.com/etu/nixconfig/blob/master/overlays/local/modules/my-exwm.nix#L9-L49
<dtz> so I don't have any better options but zsh is... a crazy mess lol
<dtz> `man zshall` wheeeee
<gchristensen> lol
<dtz> clearly we all should extend `nix repl` to fit our needs
<dtz> nixsh
<ldlework> With zsh I managed to figure out how to do this, http://logos.ldlework.com/caps/2018-12-31-23-10-28.mp4
<jasongrossman> iqubi4++
<{^_^}> iqubi4's karma got increased to 1
<ldlework> which i find very very useful all day
<adisbladis> I sort of like the idea of xonsh but I cant reconcile the syntax choices
<ldlework> I'm double tapping caps-lock in the video btw
<ldlework> to toggle between zsh and ranger
<adisbladis> Happy counter increment CET!
<ldlework> lol
<jasongrossman> It's already 2020 here in Australia.
<jasongrossman> ldlework: I like the double tap idea.
<gchristensen> jasongrossman: impressive
<sir_guy_carleton> dtz: i've decided to switch back to bash because i find zsh too hard to really configure down pat
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos-chat
<adisbladis> Why fish is awesome: I've been using it for ~10 years and still only have a few lines of custom config
<adisbladis> jasongrossman: That document is awesome
<jasongrossman> Yes!
<pie_> i dont like that fish has pascal-like scopey things :c
avn has quit [Remote host closed the connection]
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos-chat
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos-chat
<jasongrossman> pie_: I agree with you about that.
<pie_> "A program should be designed to make its features as easy as possible to discover for the user." i only found psub by googling, but maybe i was missing something
<pie_> gonna read the doc a bit more thoroughly in a few minutes
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos-chat