Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 16:20
    HertzDevil unlabeled #13013
  • 14:24
    renovate[bot] edited #12735
  • 14:22
    straight-shoota milestoned #13048
  • 14:22
    straight-shoota milestoned #13048
  • 13:24
    HertzDevil labeled #13048
  • 13:24
    HertzDevil labeled #13048
  • 13:24
    HertzDevil labeled #13048
  • 13:24
    HertzDevil opened #13048
  • 12:32
    straight-shoota closed #12924
  • 12:32
    straight-shoota closed #12921
  • 12:31
    straight-shoota closed #12983
  • 12:24
    straight-shoota closed #13045
  • Feb 05 15:55
    Blacksmoke16 closed #13047
  • Feb 05 15:53
    serge-hulne closed #13047
  • Feb 05 15:45
    Blacksmoke16 edited #13047
  • Feb 05 15:42
    serge-hulne labeled #13047
  • Feb 05 15:42
    serge-hulne opened #13047
  • Feb 05 02:16
    renovate[bot] edited #12735
  • Feb 04 23:27
    straight-shoota milestoned #12966
  • Feb 04 23:27
    straight-shoota milestoned #12966
From IRC (bridge bot)
@FromIRC
<postmodern> oprypin, just trying to format a README so that crystal doc renders the proper html
<postmodern> oprypin, unfortunately all of the markdown parsers (github, ruby's kramdowm, and crystal's) all disagree on how to escape within a...or <code></code> element.
<postmodern> oprypin, this actually renders correctly locally using ruby yard+kramdown, but screws up on github: https://github.com/postmodern/chars.rb#features
<postmodern> oprypin, https://github.com/postmodern/chars.cr#features different issues here with escaping inside of a `
<postmodern> i fear this is an unwinnable battle between the doc generator markdown implementation, and whatever werid version github is using to render markdown.
oprypin
@oprypin:matrix.org
[m]
postmodern, prior to me abandoning the use of that generator, i always used to rip out that generated readme. nobody needs it there. and no, GitHub Markdown is most definitely not the weird one of the two.
i used to put a redirect to the main module's page.
and yes it's an unwinnable battle, but also a pointless battle
From IRC (bridge bot)
@FromIRC
<postmodern> oprypin, the README is important as it's the first thing people see. it's the landing page. GitHub just needs to fix their unpredictable markdown generator...
oprypin
@oprypin:matrix.org
[m]
GitHub has the best markdown generator I know. and crystal's one never really reached completeness
From IRC (bridge bot)
@FromIRC
<postmodern> i'm personally not a fan of how dry-rb projects have an almost empty README that just links to some external web page. I don't want to have to clink through links, just tell me what the project is, how to use it, etc
oprypin
@oprypin:matrix.org
[m]
postmodern, people can see the readme on github
From IRC (bridge bot)
@FromIRC
<postmodern> oprypin, check out kramdown. it. just. works.
oprypin
@oprypin:matrix.org
[m]
why would i, if no system uses it
for me github just works
From IRC (bridge bot)
@FromIRC
<jhass[m]> problem is we all should be using commonmark and not markdown
<postmodern> oprypin, github does not work for me. it's markdown rendering does not seem render ` or `\ or <code>`</code> correctly causing a cascading effect https://github.com/postmodern/chars.rb#features if i work around said issies, then i break commonmark or ruby's kramdown (which is pretty much bullet proof)
oprypin
@oprypin:matrix.org
[m]
postmodern, anyway if you want good Markdown rendering and well integrated text+API docs, just use https://mkdocstrings.github.io/crystal/
From IRC (bridge bot)
@FromIRC
<postmodern> oprypin, and does that work for the README.md on github as well :⁠)
<jhass[m]> maybe it likes it as an entity? &
<jhass[m]> &#96;
<postmodern> see i want both proper documentation generation and a README which renders correctly on GitHub
<jhass[m]> probably not inside code tags
oprypin
@oprypin:matrix.org
[m]
eh there are definitely differences in Markdown rendering but much much fewer of them
From IRC (bridge bot)
@FromIRC
<jhass[m]> GFM seems to be a commonmark derivative these days FWIW https://github.github.com/gfm/
oprypin
@oprypin:matrix.org
[m]
or i think this one is more convincing because it's more complicated html inside markdown
From IRC (bridge bot)
@FromIRC
<postmodern> sorry to drag you all into this trivial and stupid problem, the day before the Crystal Conf
<postmodern> but "<code></code>" worked in kramdown, doesn't seem to work incrystal doc`, so that seems like an issue
oprypin
@oprypin:matrix.org
[m]
again, crystal doc's Markdown is completely broken. that i would say is a waste of time
nanobowers
@nanobowers

I've run into an issue where Crystal's Array#fill doesnt work the same as Ruby's (it doesnt allocate additional space, but throws an IndexError), but not sure if this is intentional.

a=[10]
a.fill(9,1,2)
Unhandled exception: Index out of bounds (IndexError)

Ruby returns [10,9,9]

Unsure if the correct course of action is to file an issue, or manage this myself, though i havent seen a non-private method to increase capacity prior to running the #fill
George Dietrich
@Blacksmoke16
it should prob result in you not trying to overfill an array
nanobowers
@nanobowers
not sure I grok your statement, are you suggesting this is an intentional safety feature to prevent me from overfilling the Array?
nanobowers
@nanobowers
I just found that indexing w/ the range operator works, but this is arguably a little uglier:
a = [10]
# a.fill(9,1,2) # doesnt work
a[1..2]=[9] * 2
George Dietrich
@Blacksmoke16
i imagine its the same sort of idea as why you can do a[3] = 1
nanobowers
@nanobowers
I suppose it's the consistency part of it that's throwing me
E.g.
a=[10]
a[1] = 0 # IndexError
a[1..1] = 0  # => [10, 0]
Benjamin Wade
@RespiteSage
Is @redcodefinal around?
oprypin
@oprypin:matrix.org
[m]
@RespiteSage: sadly only on discord. "sol.vin"
Benjamin Wade
@RespiteSage
Alright, thank you. I'll hop over there, then.
Benjamin Wade
@RespiteSage
Wait, is the conference not actually happening on Discord?
Or is that where the side discussions will be?
Krzysztof K.
@krzyczak
Hello. Can I have a question about the conference. I would like to attend but I won't be able to be on all sessions. Will the conference be recorded?
Benjamin Wade
@RespiteSage
Yes, I believe they've said that everything will be recorded and publicly available afterward.
Krzysztof K.
@krzyczak
Thanks.
Rishav Sharan
@rishavs
Anyone here knows how to generate a public key using RS256 given the modulus and exponent? I am at the end of my rope now, trying to verify the Google IdToken with their public key.
https://www.googleapis.com/oauth2/v1/certs
https://www.googleapis.com/oauth2/v3/certs