<FromGitter>
<drum445> db open works perfectly, it just can't reconnect if the db connection drops and the retry time/attempts have been exceeded
<FromGitter>
<drum445> I think my `select x from dual` works for now, bit crap but hey ho
<FromGitter>
<Blacksmoke16> Right, that makes sense no?
<FromGitter>
<drum445> makes perfect sense
<FromGitter>
<drum445> ruby's mysql lib had a reconnect=true param, where it would eventually get the connection back
<FromGitter>
<drum445> I'm just mimicking that here really
ur5us has joined #crystal-lang
DTZUZU2 has joined #crystal-lang
ur5us has quit [Ping timeout: 256 seconds]
DTZUZU has quit [Ping timeout: 256 seconds]
<FromGitter>
<bcardiff> @blal
<FromGitter>
<Blacksmoke16> yes?
<FromGitter>
<bcardiff> regarding the nightly, we are stuck until there is a new release on shards. we are aware of that :-)
<FromGitter>
<Blacksmoke16> π gotcha
<FromGitter>
<bcardiff> we wanted to be have a new version but now, but the last week were a bit hectic.
<FromGitter>
<bcardiff> meanwhile most of the ecosystem is check and PRs for some frameworks and libs will be sent ones we have nightlies.
<FromGitter>
<Blacksmoke16> nice, ill have to check my stuff out in the AM then, didnt realize nightlies werent building
<FromGitter>
<bcardiff> Thanks for the headsup. I was surprised no one else complained :-P
<FromGitter>
<Blacksmoke16> i know i didnt notice, not something i check on often, i imagine others are in the same boat
<FromGitter>
<bcardiff> I'll try to comunicate better or create an issue next time. I've been aware since every night I got the broken nightly build ¬¬
<FromGitter>
<Blacksmoke16> i dont suppose some badge or something could be added to readme?
<FromGitter>
<Blacksmoke16> to make these things a bit more visible?
<FromGitter>
<bcardiff> badge or a public dashboard of activity for other metrics. β for workflow badges we need this https://ideas.circleci.com/ideas/CCI-I-322 . But maybe there is something to work on that, it triggers some ideas. thanks
<FromGitter>
<Blacksmoke16> maybe there is a docker hub approach?
<FromGitter>
<Blacksmoke16> :shrug:
_whitelogger has joined #crystal-lang
alexherbo2 has joined #crystal-lang
_whitelogger has joined #crystal-lang
rohitpaulk has joined #crystal-lang
f1refly has quit [Ping timeout: 256 seconds]
_whitelogger has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 256 seconds]
ur5us has joined #crystal-lang
Human_G33k has joined #crystal-lang
HumanG33k has quit [Ping timeout: 250 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #crystal-lang
_ht has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 256 seconds]
ur5us has quit [Ping timeout: 240 seconds]
dannyAAM has quit [Quit: znc.saru.moe : ZNC 1.6.2 - http://znc.in]
dannyAAM has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 264 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 265 seconds]
<FromGitter>
<confact> I have two different classes inheriting from same base class. And i have some others inheriting from base class as well. when i try to pass only those two classes i get this error: β β ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5e807aad8266bd21295d06b1]
dannyAAM has quit [Quit: znc.saru.moe : ZNC 1.6.2 - http://znc.in]
dannyAAM has joined #crystal-lang
dannyAAM has quit [Quit: znc.saru.moe : ZNC 1.6.2 - http://znc.in]
dannyAAM has joined #crystal-lang
dannyAAM has quit [Quit: znc.saru.moe : ZNC 1.6.2 - http://znc.in]
dannyAAM has joined #crystal-lang
dannyAAM has quit [Client Quit]
dannyAAM has joined #crystal-lang
dannyAAM has quit [Remote host closed the connection]
dannyAAM has joined #crystal-lang
dannyAAM has quit [Remote host closed the connection]
dannyAAM has joined #crystal-lang
dannyAAM has quit [Remote host closed the connection]
dannyAAM has joined #crystal-lang
dannyAAM has quit [Remote host closed the connection]
dannyAAM has joined #crystal-lang
dannyAAM has quit [Remote host closed the connection]
dannyAAM has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 252 seconds]
alexherbo29 has joined #crystal-lang
alexherbo2 has quit [Ping timeout: 250 seconds]
alexherbo29 is now known as alexherbo2
dannyAAM has quit [Remote host closed the connection]
dannyAAM has joined #crystal-lang
alexherbo2 has quit [Read error: Connection reset by peer]
alexherbo2 has joined #crystal-lang
dannyAAM has quit [Remote host closed the connection]
dannyAAM has joined #crystal-lang
dannyAAM has quit [Remote host closed the connection]
dannyAAM has joined #crystal-lang
dannyAAM has quit [Remote host closed the connection]
dannyAAM has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
<oprypin>
Stephanie, ok, apparently my amateur attempt to define personalityfunction once per module also failed. i'm getting `I-O-5858F-ileD-escriptor43.o : error LNK2005: "void * `RTTI Type Descriptor'" (??_R0PEAX@8) already defined in _main.o`
<oprypin>
wondering if i should pivot towards ensuring it has a different name or maybe it *should* be defined once after all
<Stephanie>
it should probably be defined in main as the constant and in non-main modules as external
<Stephanie>
see the external_constant method
<Stephanie>
basically, the logic would be, check if the current module has it defined, if not, check if we're the main module, if not define it in the main module and add it as an external constant
<oprypin>
hold up. it might be a different issue
<oprypin>
it never occured to me to actually try to search for `??_R0PEAX@8` in crystal source code. but it's there, wtf
<xyhuvud>
I think most definitions of what a divisor is simply define them as integers.
<FromGitter>
<drum445> Hi all, I have an array of json strings, I'm trying to turn into an array of objects, how can I get this to run please? https://play.crystal-lang.org/#/r/8se7
<FromGitter>
<drum445> Please note that I can't get around the fact it's an array of json objects
<FromGitter>
<Blacksmoke16> you're calling `.to_json` on the objects twice
<FromGitter>
<Blacksmoke16> once for each obj, then once again on the array
<FromGitter>
<drum445> cheers, I was trying to shoe-horn it into existing code, I'll stop being lazy and write it properly. Thanks
<FromGitter>
<Blacksmoke16> np
deavmi has joined #crystal-lang
<deavmi>
Little question, what langauge structure is being used on the Kemal documentation when they do `route "/"` followed by the `do` keyword: https://kemalcr.com/guide/
<deavmi>
Tryna figure it out and can't find it in the docs?
<deavmi>
Looking at kemal's docs, do they have an actual API page or just examples because I wanna see what argument gets passed in when a block is being passed in that accepts an argument
<deavmi>
But their site just shows snippets of stuff and doesn't document it all
<FromGitter>
<Blacksmoke16> you mean like when the route is like
<Stephanie>
pkg-config is wonderful and also the spawn of satan
tankf33der has joined #crystal-lang
<tankf33der>
o/
<FromGitter>
<Blacksmoke16> o/
gangstacat has quit [Quit: Δis!]
<deavmi>
I'm getting `Error: undefined method 'INET' for Socket::Family.class` when trying to access the INET enum of Family in Socket. ANy advice on how to do that properly, syntax wise.
<deavmi>
I've been doing Socket::Family.INET
<FromGitter>
<Blacksmoke16> `::INET`
<FromGitter>
<Blacksmoke16> assuming its a constant?
<FromGitter>
<Blacksmoke16> also minor, but method names should be `snake_case`
<FromGitter>
<3n-k1> ah, thank you :)
<FromGitter>
<Blacksmoke16> its a limitation in the type grammar
<FromGitter>
<Blacksmoke16> > This is because Crystal parses method_call { as passing a block to the method call, so it's expecting a block and not a tuple or a hash.
<FromGitter>
<3n-k1> ahhh that's interesting
<FromGitter>
<Blacksmoke16> heres a question, what do you think is the better design?
<FromGitter>
<Blacksmoke16> ```code paste, see link``` β β In this case, when using the annotation on a class/struct I'm able to give a compile time error that the `Range` constraint cannot be used with `Bool` properties. [https://gitter.im/crystal-lang/crystal?at=5e813247ee51f444372dde04]
<FromGitter>
<Blacksmoke16> however, if you were to use it manually like `AVD.validator.validate false, [AVD::Constraints::NotBlank.new]`, I'm not able to provide the same compile time messaging
<FromGitter>
<Blacksmoke16> so, should it noop, or result in some violation saying like `"This value should be a valid Time or Number"`?
<FromGitter>
<Blacksmoke16> if that given constraint does not support the type of the value