<crystal-gh>
[crystal] Sija opened pull request #5438: Improve readability of Float::Printer::* docs (master...float-printer-docs-polish) https://git.io/vb9v6
Guest19095 has quit [Ping timeout: 260 seconds]
Guest19095 has joined #crystal-lang
happycoder has joined #crystal-lang
happycoder has quit [Read error: Connection reset by peer]
<hightower3>
Can I make array from tuple without knowing type? I want to do somethin glike def x( *args) a = Array.new args end
<FromGitter>
<jwaldrip> just to_a?
<FromGitter>
<jwaldrip> any relation to kelsey there hightower3?
<hightower3>
mm, not really
snsei has joined #crystal-lang
DTZUZU has quit [Quit: WeeChat 1.9]
DTZUZU has joined #crystal-lang
snsei has quit [Remote host closed the connection]
<18VACZY6W>
[crystal] Sija closed pull request #5018: Use `TypeNode#union_types` where possible (master...pr-4995-followup) https://git.io/vdvMj
<7GHABLZYP>
[crystal] Sija reopened pull request #5018: Use `TypeNode#union_types` where possible (master...pr-4995-followup) https://git.io/vdvMj
Guest19095 has quit [Ping timeout: 256 seconds]
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 248 seconds]
Guest19095 has joined #crystal-lang
snsei has joined #crystal-lang
Guest19095 has quit [Ping timeout: 252 seconds]
snsei has quit [Ping timeout: 240 seconds]
hightower3 has quit [Remote host closed the connection]
<FromGitter>
<marin117> anybody know how to insert postgres range with crystal since ranges use quotes to insert (range has to be inserted with parameteres)
<FromGitter>
<marin117> something like this
<FromGitter>
<marin117> insert into ..... values ( '[$1, $2)')
<FromGitter>
<marin117> SQL query takes literal not parameters if I put quotes like this
sz0 has quit [Quit: Connection closed for inactivity]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 240 seconds]
snsei has joined #crystal-lang
<crystal-gh>
[crystal] RX14 pushed 2 new commits to master: https://git.io/vb9Km
<crystal-gh>
crystal/master 910b555 Benoit de Chezelles: Fix formatting of lib's fun starting with uppercase letter
<crystal-gh>
crystal/master 4932360 Benoit de Chezelles: Add formatter spec for uppercased fun call
Guest19095 has quit [Ping timeout: 256 seconds]
snsei has quit [Remote host closed the connection]
Guest19095 has joined #crystal-lang
<RX14>
btw: just spoke to txe and he knows of the new windows port he's just very busy
<Papierkorb>
bew, don't worry, you never run out of hearing uncommon requests :)
happycoder has joined #crystal-lang
Ven`` has quit [Ping timeout: 256 seconds]
<FromGitter>
<mverzilli> I'll pass the request onto him :D
<FromGitter>
<sdogruyol> lol :D
<Guest19095>
thank @mverzilli :D
<FromGitter>
<sdogruyol> why especially from Ary though :D
happycoder has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #crystal-lang
<greenbigfrog>
@db.transaction do |tx|
<greenbigfrog>
db = tx.connection
<greenbigfrog>
db.exec("SELECT * FROM ...")
<greenbigfrog>
end
<greenbigfrog>
any way I can the second line, without having to use `tx.connection.exec`?
<greenbigfrog>
*avoid
<FromGitter>
<bew> Which db shard are you using?
<RX14>
greenbigfrog, you can just do tx.exec
<RX14>
since transaction implements querymethods
<RX14>
iirc
<greenbigfrog>
no.no.
<greenbigfrog>
`undefined method 'exec' for DB::TopLevelTransaction`
<greenbigfrog>
using pg
<RX14>
huh
<RX14>
i could have sworn it was different
<Guest19095>
bcoz i wannabe like ary @sdogruyol
<FromGitter>
<sdogruyol> that's cool :)
<greenbigfrog>
so, is there a better way? RX14
<RX14>
aparrently not
<greenbigfrog>
ok
happycoder has joined #crystal-lang
<literal>
greenbigfrog: crystal-sqlite3?
<greenbigfrog>
no. pg
<literal>
and @db is the value returned by DB.open ?
happycoder has quit [Remote host closed the connection]
happycoder has joined #crystal-lang
<literal>
if so, you could do "@db = DB.connect..." instead, then use @db inside your transaction
<greenbigfrog>
yeah. still need to use transactions though, so that ain't gonna work
<literal>
why not?
<literal>
@db.transaction do { |tx| @db.exec "select ..." }
<literal>
works for me
<greenbigfrog>
hm. ok
<greenbigfrog>
thanks
<literal>
there's only one transaction per connection so it works
<greenbigfrog>
true
<literal>
well, they could also be nested, but not interleaved, so it's fine
rohitpaulk has quit [Remote host closed the connection]
<FromGitter>
<jwaldrip> okay... im going to sound like a broken record... looking like a 0.24.1 release today?
<FromGitter>
<jwaldrip> I would love to have the official docker image rather than having to build my own.
<Papierkorb>
It's already in the arch repo
<RX14>
it's unlikely to happen today
<RX14>
given its friday
<FromGitter>
<bew> Grrr
imarobot has joined #crystal-lang
<RX14>
it's fustrating me as much as you
<RX14>
i'm ready to go
<imarobot>
how do I add content to a file without overwritting the whole file? I tried File.open("file.txt", "a") and then File.write("file.txt", "hello")
<RX14>
as far as i'm concerned it should have been released a week ago if it was my decision
<RX14>
@imarobot, File.open("file.txt", "a") should work
<imarobot>
but i did that. And then File.write("file.txt", "hello") and then he is just overwritting it
<RX14>
and I suggest you use the File.open with a block form
<imarobot>
ok now its working with 100% accuracy perfectly fine. Thank you
<Yxhuvud>
I don't use File.write all that often, but I do use File.read *all the time*. It is a great convenience method.
happycoder has joined #crystal-lang
claudiuinberlin has joined #crystal-lang
happycoder has quit [Ping timeout: 248 seconds]
DTZUZO has quit [Quit: WeeChat 2.0]
<imarobot>
what does the cost at Crypto::Bcrypt::Password.create("password123", cost: 11) means? the higher, the safer will it be encoded?
<Guest19095>
*higher is slower too
<Guest19095>
not encoded, but encrypted
<imarobot>
yes. I already noticed that its slower when the cost is higher. I will choose the highest because i need the highest safety
<FromGitter>
<bew> @imarobot note that when it encrypt your password, it'll will block you whole program, other fibers won't be able to run (until we have true parallism though)
Guest19095 has quit [Quit: Leaving]
imarobot has quit [Ping timeout: 260 seconds]
<crystal-gh>
[crystal] Sija opened pull request #5440: Complex enhancements (master...complex-enhancements) https://git.io/vbHYI
<FromGitter>
<paulcsmith> Does anyone has some ideas? The error I get is: SSL_connect: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
<FromGitter>
<paulcsmith> I've been working on this for a couple days and haven't figured out why it won't work. It also doesn't work on Heroku. I'm on macOS High Sierra. Anyone seen this before?
olbat has quit [Ping timeout: 240 seconds]
<FromGitter>
<paulcsmith> An insecure SSL context "works"...but is insecure :S `OpenSSL::SSL::Context::Client.insecure`
<FromGitter>
<marksiemers> Until parallelism is done, is there a shard that does messaging, similar to RabbitMQ? Could that give some functionality of parallelism using process forking?
<FromGitter>
<aroaminggeek> @RX14 just read your recent comments over at ycombinator RE: crystal's status. Thanks for the transparency, and honest and well stated remarks.
<FromGitter>
<fridgerator> its using the system openssl, which is outdated
<FromGitter>
<paulcsmith> @fridgerator Yep! High Sierra
<FromGitter>
<fridgerator> a newer version can be installed through brew, but crystal doesn't use it
<FromGitter>
<paulcsmith> It's also happening on Heroku though :S
<crystal-gh>
[crystal] RX14 closed pull request #5425: Fix a tiny typo in comment (master...fix/crystal/type-in-comment) https://git.io/vbyDg
<FromGitter>
<fridgerator> @paulcsmith I had similar issues with the Stripe API on mac, I had to switch to using linux since the Open SSL version was correct
<FromGitter>
<paulcsmith> But even working locally wuold be awesome. Do you remember what you did to get it working?
<FromGitter>
<fridgerator> yeah, use docker ;)
<FromGitter>
<fridgerator> but strange that its happening to you on heroku
<FromGitter>
<aroaminggeek> Yup I saw that. Kudos to all for their transparency as well. The updates convinced me to continue checking it out and taking a stab at it 🙂
<FromGitter>
<paulcsmith> Yeah I'd rather not use Docker on Heroku just to fix this haha
<FromGitter>
<paulcsmith> And I can connect to Google in other languages so I assume there is a way to get it working on Crystal. I just can't figur eit ous :S
<FromGitter>
<fridgerator> well I meant use docker locally, if its not working in another linux environment then its a different issue than I saw
<crystal-gh>
[crystal] woodruffw opened pull request #5441: INI: Implement type coercion for `parse` (master...ini-parse-coerce) https://git.io/vbHZT
<FromGitter>
<paulcsmith> Oh I see. Yeah bummer. I'll keep trying stuff out
<FromGitter>
<jwaldrip> I have employees that work for me in Argentina, I've decided to have them show up at the manas office if we don't get a release soon.
DTZUZU has joined #crystal-lang
<Yxhuvud>
hopefully to help them?
<FromGitter>
<jwaldrip> Whatever it takes
<FromGitter>
<jwaldrip> Bring them cookies
<FromGitter>
<jwaldrip> lunch, i don't care.
<FromGitter>
<jwaldrip> Ive only got one in Buenos aires, the rest are in Bahia Blanca
<FromGitter>
<jwaldrip> Its a couple hours worth of driving... but 0.24.1 may be worth it.
<FromGitter>
<jwaldrip> Doing anything malicious would be counter productive. I just want to help them... somehow.
aroaminggeek has joined #crystal-lang
<RX14>
@jwaldrip there's been a breakthrough
<RX14>
it's coming
<FromGitter>
<bararchy> Nice :)
<FromGitter>
<jwaldrip> YAY!
<FromGitter>
<jwaldrip> A Wonderful Christmas Present this will be!
aroaminggeek has left #crystal-lang ["Textual IRC Client: www.textualapp.com"]
<FromGitter>
<jwaldrip> RX14, where is the Dockerfile that is going to be used in future releases?
<FromGitter>
<jwaldrip> or is it the same one that is in master now.