Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Tunnel Master
@tunnelmaster_gitlab
[discord] <Nicd> btw do you think HEEx should go under "HTML (EEx)" like LiveEEx in :codestats: or should it go as HEEx separately? πŸ˜„
Tunnel Master
@tunnelmaster_gitlab
[discord] <dbaer> @Nicd I think it's diffed but just as a full tag. Could always test lol
[discord] <dbaer> it's outside of a tag so I think it's diffed
[discord] <dbaer> also probably whatever LEEx was under
Tunnel Master
@tunnelmaster_gitlab
[discord] <Nicd> Welcome @Jabir πŸ‘‹
Tunnel Master
@tunnelmaster_gitlab
[discord] <Nicd> Welcome @evader πŸ‘‹
Tunnel Master
@tunnelmaster_gitlab
[discord] <evader> thanks πŸ™‚ I have a question about C::S, I found this repo: https://gitlab.com/code-stats/code-stats
it's not completely clear but it seems this is what's necessary to self host an instance, right? is this the case, and is self hosting actually supported?
[discord] <evader> more generally re: self hosting support, I noticed most plugins are hardcoded to codestats url, I don't mind modifying them, but self hosting is not really mentioned on the website at all and it doesn't seem to be too "normal". will I run into weird hiccups or should it be pretty plain sailing provided I follow the repo instructions and config properly?
[discord] <Nicd> That is the code repo of the website, yes
[discord] <Nicd> There's no talk about self hosting because the codebase is not really specially geared for it in any way. It can be self hosted but some things are probably hardcoded. All the plugins I know should have a feature to change the API URL so you can use them with your own instance
[discord] <Nicd> And I mean I run that on my laptop when developing so it's possible. I haven't purposefully made it more difficult but I haven't really put resources into making it easier either
Tunnel Master
@tunnelmaster_gitlab
[discord] <evader> okay, nice. I think I will give it a shot. would you be interested in any PRs of stuff I come up with to enable easier self hosting?
[discord] <Nicd> Sure. Do you have Elixir experience?
[discord] <evader> not really πŸ™‚ I do graphics related stuff mostly, very far out of my wheelhouse, but I am always willing to learn new skills.
[discord] <Nicd> It probably requires an understanding of how Elixir projects work to really host it. The site name is configurable but the logo images, changes page, and terms of service / privacy policy are hardcoded in there and those you'd need to change if you were to run it for others than yourself
[discord] <evader> not to be reductive or dismissive, but those sound fairly greppable
[discord] <Nicd> Sure, it'll just deviate from the main codebase then. Of course the master branch is moving at a glacial pace so not that big of an issue :D
Tunnel Master
@tunnelmaster_gitlab
[discord] <Nicd> Anyway good luck
[discord] <Nicd> I can help with problems you might have, just ask here
[discord] <evader> I will see how it looks breaking them out into separate, configurable files and leave your stuff as default if it helps maintaining compatibility with the upstream. can only hope to see how it goes πŸ™‚ thanks a lot for your time, really appreciate the prompt and frank responses
[discord] <Nicd> Well, unless you have Windows...
[discord] <evader> no chance πŸ˜„
Tunnel Master
@tunnelmaster_gitlab
[discord] <Nicd> now to manage your expectations a bit, the main aim of Code::Stats and the code repo is https://codestats.net/, that is, the main site. so the repo is geared towards ease of developing the main site and I would be wary of PRs that would make it more cumbersome to work with the main site.
[discord] <Nicd> I wonder if I'll have to make any changes to the JetBrains plugin due to this: https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/
[discord] <Nicd> since it bundles the DST Root CA X3 and the ISRG Root X1
Tunnel Master
@tunnelmaster_gitlab
[discord] <Nicd> so that's 21 KB traffic every time you get new XP, that's not good
Tunnel Master
@tunnelmaster_gitlab
[discord] <> GayCookie.dev ❀🌈> ouch
[discord] <Nicd> currently seeing if I can just use the existing chartjs charts with hooks. so LiveView will just transfer the data in the DOM and chartjs will render based on that
Tunnel Master
@tunnelmaster_gitlab
[discord] <Jonathan Hacklife πŸ› > In line 17, if you get a new data and the instance of the graphic already exists, you only modify the parameters of the graphic (Line 41).
https://cdn.discordapp.com/attachments/510060567298310146/886315315376558080/SPOILER_carbon.png
[discord] <Jonathan Hacklife πŸ› > Maybe that can work. In my case it has worked correctly and the instance is created only once.
[discord] <Nicd> thanks but I'm talking about Phoenix LiveView and ContEx here πŸ™‚
Tunnel Master
@tunnelmaster_gitlab
[discord] <Nicd> reimplemented it in chartjs, just needs: setting the language colours, grouping some of them as "Other", adding back flow data…
https://cdn.discordapp.com/attachments/510060567298310146/886331921766969445/Screenshot_2021-09-11_at_22.24.34.png
[discord] <Nicd> but dataset generation is done in Elixir now so the chart code is much cleaner
[discord] <Nicd> time for some Bioshock
[discord] <Nicd> also had to update chartjs to 3.5.1 so that breaks a bunch of stuff
Tunnel Master
@tunnelmaster_gitlab
[discord] <dbaer> @Nicd hmm, at work we use a library that takes json which i just output directly to the page with eex tags
[discord] <dbaer> would that be diffable?
Tunnel Master
@tunnelmaster_gitlab
[discord] <Nicd> that output I showed is diffable and is used to feed the chart now... well, sort of diffable
[discord] <Nicd> I think I would need to make stateful components out of it to get the best diffs
[discord] <Nicd> but it's good enough for now
Tunnel Master
@tunnelmaster_gitlab
[discord] <dbaer> @Nicd doesn't pragmatic studio have a section on graphing?
[discord] <Nicd> Is that a book?
[discord] <dbaer> and yeah theyve got one called charting which looks maybe like what you want
[discord] <Nicd> Lol $129
This message was deleted
[discord] <Nicd> Let's not do that
[discord] <dbaer> its just the video notes lol
[discord] <Nicd> Anyway I'll just use chartjs so I can progress
[discord] <dbaer> Β―_(ツ)_/Β―