Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 15 08:43
    r00ster91 closed #7318
  • May 15 08:17
    r00ster91 closed #7690
  • May 14 17:01
    Blacksmoke16 labeled #11995
  • May 14 13:03
    webhive closed #12055
  • May 14 10:19
    straight-shoota milestoned #12051
  • May 14 10:00
    I3oris edited #12051
  • May 14 08:45
    oprypin review_requested #11977
  • May 13 23:29
    Blacksmoke16 unlabeled #12061
  • May 13 22:56
    Blacksmoke16 edited #12061
  • May 13 22:56
    Blacksmoke16 edited #12061
  • May 13 22:54
    Blacksmoke16 labeled #12061
  • May 13 22:54
    Blacksmoke16 labeled #12061
  • May 13 22:54
    Blacksmoke16 labeled #12061
  • May 13 22:54
    Blacksmoke16 opened #12061
  • May 13 20:14
    straight-shoota labeled #12060
  • May 13 20:14
    straight-shoota labeled #12060
  • May 13 20:14
    straight-shoota opened #12060
  • May 13 19:55
    straight-shoota demilestoned #12051
  • May 13 19:55
    straight-shoota closed #12049
  • May 13 19:54
    straight-shoota closed #12053
George Dietrich
@Blacksmoke16
pretty no one is using travis anymore and just switched to GH Actions
From IRC (bridge bot)
@FromIRC
<jhass> or whatever else, just stopped using travis. They got bought out and basically none of the original open source folks is there anymore
Benjamin Clos
@ondreian
I see. crystal init still generates a .travis.yml file
George Dietrich
@Blacksmoke16
it wont starting next release
Benjamin Clos
@ondreian
cool deal, it had been awhile since I needed to init a new project but was kind of :corn: fused about what was going on. Thanks.
Gabor Szabo
@szabgab
@ondreian , there is this nice form that helps generating a minimal config file for GitHub Actions: https://crystal-lang.github.io/install-crystal/configurator.html
From IRC (bridge bot)
@FromIRC
<straight-shoota> Great to have you here, szabgab =)
Rishav Sharan
@rishavs
Has anyone here used google sign in for their sites? Would you know what "data-nonce" is?
Is it the secret string that we need to match with the google response to make sure it is our own request?
Gabor Szabo
@szabgab
When I run "crystal spec" is there a way to tell it to stop on the first error?
From IRC (bridge bot)
@FromIRC
<straight-shoota> @szabgab Yes --fail-fast
<straight-shoota> In 1.1 this will actually be in the output of crystal spec --help. Because it's a runtime option, you currently only get the help by building and runnning the spec (crystal spec -- --help)
From IRC (bridge bot)
@FromIRC
<hightower2> Are there some articles on multitenant http-based apps with Crystal?
Gabor Szabo
@szabgab
@straight-shoota thanks
Gabor Szabo
@szabgab
Is there a web site collecting videos about Crystal? Similar (or not) to https://pyvideo.org/ ?
George Dietrich
@Blacksmoke16
i doubt it
Taupiqueur
@alexherbo2
is there an equivalent to File.fnmatch from Ruby?
I want to test a glob string matches a file
Taupiqueur
@alexherbo2
thanks o/
George Dietrich
@Blacksmoke16
is there a way to call a parent classes implementation of a method from a different method and when that parent method is also redefined in the child?
i.e. cant just do self.parent_method and super wont work because its not the same method
maybe ::parent_method would do it?
George Dietrich
@Blacksmoke16
nope
super.parent_method doesnt work either
George Dietrich
@Blacksmoke16
Jonathan Silverman
@mixflame
I have a problem with a bridge bot i'm trying to add SSL to
```
one sec
```
Unhandled exception in spawn: Closed stream (IO::Error)
  from /home/jonathan/.asdf/installs/crystal/1.0.0/share/crystal/src/io.cr:118:5 in 'check_open'
  from /home/jonathan/.asdf/installs/crystal/1.0.0/share/crystal/src/io/buffered.cr:100:5 in 'peek'
  from /home/jonathan/.asdf/installs/crystal/1.0.0/share/crystal/src/io.cr:622:37 in 'gets'
  from /home/jonathan/.asdf/installs/crystal/1.0.0/share/crystal/src/io.cr:595:5 in 'gets'
  from /home/jonathan/.asdf/installs/crystal/1.0.0/share/crystal/src/io.cr:565:5 in 'gets'
  from /home/jonathan/.asdf/installs/crystal/1.0.0/share/crystal/src/io.cr:564:3 in 'gets'
  from src/lib/irc.cr:160:5 in 'get_response'
  from src/lib/irc.cr:33:9 in 'initialize'
  from src/lib/irc.cr:22:3 in 'new'
  from config/application.cr:83:3 in '->'
  from /home/jonathan/.asdf/installs/crystal/1.0.0/share/crystal/src/primitives.cr:255:3 in 'run'
  from /home/jonathan/.asdf/installs/crystal/1.0.0/share/crystal/src/fiber.cr:92:34 in '->'
  from ???
any ideas would be appreciated
George Dietrich
@Blacksmoke16
looks like you're trying to read from a closed IO
Jonathan Silverman
@mixflame
before, it was nil errors
alright, i got it to connect, now im just back to the refusal to send bug
Jonathan Silverman
@mixflame
ERROR :Closing link: (97KAAAAEC@c-107-2-145-228.hsd1.co.comcast.net) [Registration timeout]
something to do with flush()?
George Dietrich
@Blacksmoke16
https://gist.github.com/mixflame/4e81d9083a02c9859ccc59c623b4d3c9#file-irc-cr-L79 is prob closing the socket so that when the other fibers execute it's closed
would be my guess without actually trying it
Chris Watson
@watzon
Seems likely. The code inside of the spawn is going to run asynchronously, so the .close is going to happen while the socket is still being accessed.
Jonathan Silverman
@mixflame
whoa thx
George Dietrich
@Blacksmoke16
looks like you got some non-ideal concurrency code going on
Jonathan Silverman
@mixflame
sorry guys even with that close disable the server still closes the link, there's a fail to write... i'll show the current code
the code has worked fine before without the SSL stuff bolted on...
trying to get it onto my irc network
George Dietrich
@Blacksmoke16
whats the error exactly again?
Jonathan Silverman
@mixflame
i'm back to this IRC based error, "ERROR :Closing link: (97KAAAAEC@c-107-2-145-228.hsd1.co.comcast.net) [Registration timeout]"
it happens when you don't do this fast enough: