jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.15.0 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
pawnbox has joined #crystal-lang
sp4rrow_ has quit [Quit: The Internet needs a break and I need a cookie]
pawnbox has quit [Ping timeout: 260 seconds]
mroth has quit [Ping timeout: 276 seconds]
Philpax has joined #crystal-lang
mroth has joined #crystal-lang
pawnbox has joined #crystal-lang
rolha_ has joined #crystal-lang
rolha has quit [Ping timeout: 244 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
ragmaanir has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 276 seconds]
ragmaanir has quit [Quit: Leaving]
Dreamer3_ has joined #crystal-lang
Dreamer3 has quit [Ping timeout: 264 seconds]
broz has quit [Remote host closed the connection]
broz has joined #crystal-lang
pawnbox has joined #crystal-lang
broz has quit [Read error: Connection reset by peer]
broz has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
broz has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Dreamer3_ has quit [Quit: Leaving...]
sandelius has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
soveran has quit [Read error: Connection reset by peer]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
rolha has joined #crystal-lang
soveran has joined #crystal-lang
rolha_ has quit [Ping timeout: 260 seconds]
soveran has quit [Ping timeout: 244 seconds]
soveran has joined #crystal-lang
<crystal-gh> [crystal] dsounded opened pull request #2462: Fix indents in spec/compiler/codegen/def_spec.cr (master...ident_fixes) https://git.io/vwLCr
rolha has quit [Read error: Connection reset by peer]
rolha has joined #crystal-lang
rolha has quit [Ping timeout: 276 seconds]
rolha has joined #crystal-lang
Ven has joined #crystal-lang
sandelius has joined #crystal-lang
Philpax has quit [Ping timeout: 260 seconds]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rolha_ has joined #crystal-lang
rolha has quit [Ping timeout: 260 seconds]
rolha has joined #crystal-lang
rolha_ has quit [Ping timeout: 260 seconds]
sp4rrow has joined #crystal-lang
<crystal-gh> [crystal] jhass pushed 2 new commits to master: https://git.io/vwL8X
<crystal-gh> crystal/master fc86d7a Kiril Dokh: Fix indents in spec/compiler/codegen/def_spec.cr
<crystal-gh> crystal/master f2dd2ff Jonne Haß: Merge pull request #2462 from dsounded/ident_fixes...
<travis-ci> crystal-lang/crystal#f2dd2ff (master - Merge pull request #2462 from dsounded/ident_fixes): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/123525768
ql6wlld has joined #crystal-lang
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
nabeelomer has joined #crystal-lang
nabeelomer has left #crystal-lang [#crystal-lang]
n has joined #crystal-lang
n is now known as Guest83882
Guest83882 has quit [Quit: Page closed]
b has joined #crystal-lang
b is now known as Guest33862
rolha_ has joined #crystal-lang
<rolha_> hi everyone
<rolha_> how do I implement my own 404 page in Kemal?
<rolha_> I couldn't find it in the docs...
sdogruyol has joined #crystal-lang
<sdogruyol> rolha_: you can redefine render_404 by yourself
<rolha_> sdogruyol: that's great! thanks
<sdogruyol> np
Guest33862 has quit [Quit: Page closed]
Ven has joined #crystal-lang
fmcevoy has quit [Quit: Lost terminal]
fmcevoy has joined #crystal-lang
rolha_ has quit [Remote host closed the connection]
rolha_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
soveran has quit [Remote host closed the connection]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pawnbox has joined #crystal-lang
rolha__ has joined #crystal-lang
rolha___ has joined #crystal-lang
rolha has quit [Ping timeout: 244 seconds]
rolha_ has quit [Ping timeout: 276 seconds]
rolha has joined #crystal-lang
rolha_ has joined #crystal-lang
rolha__ has quit [Ping timeout: 260 seconds]
rolha___ has quit [Ping timeout: 264 seconds]
rolha__ has joined #crystal-lang
rolha___ has joined #crystal-lang
Ven has joined #crystal-lang
rolha_ has quit [Ping timeout: 244 seconds]
rolha has quit [Ping timeout: 260 seconds]
rolha___ has quit [Client Quit]
trapped has joined #crystal-lang
rolha has joined #crystal-lang
Rinkana has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 260 seconds]
rolha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rinkanazu has joined #crystal-lang
trapped_ has joined #crystal-lang
trapped has quit [Disconnected by services]
trapped_ is now known as trapped
sandelius has joined #crystal-lang
Rinkana has quit [Ping timeout: 264 seconds]
rolha has joined #crystal-lang
rolha__ has quit [Ping timeout: 260 seconds]
rolha_ has joined #crystal-lang
rolha__ has joined #crystal-lang
rolha has quit [Ping timeout: 244 seconds]
rolha has joined #crystal-lang
rolha___ has joined #crystal-lang
rolha_ has quit [Ping timeout: 244 seconds]
rolha__ has quit [Ping timeout: 260 seconds]
sdogruyol has quit [Quit: Connection closed for inactivity]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
rocx has joined #crystal-lang
ql6wlld has quit [Quit: WeeChat 1.4]
Philpax has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
broz has joined #crystal-lang
Ven has joined #crystal-lang
Ven has quit [Client Quit]
rolha has quit [Remote host closed the connection]
rocx has quit [Remote host closed the connection]
rolha has joined #crystal-lang
<Rinkanazu> Hey guys, i wrote an mime type lib. While it still needs some work (and the lib just just a few types) i'd love to get some feedback on the code.
rolha_ has joined #crystal-lang
<rolha_> how can I specify it, without using StaticArray?
rolha__ has joined #crystal-lang
rolha has quit [Ping timeout: 276 seconds]
rolha___ has quit [Ping timeout: 276 seconds]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vwLPo
<crystal-gh> crystal/master 82a1df5 Ary Borenszweig: Fixed #2461: don't use `||` in Comparable
<travis-ci> crystal-lang/crystal#82a1df5 (master - Fixed #2461: don't use `||` in Comparable): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/123562612
sandelius has joined #crystal-lang
rocx has joined #crystal-lang
<BlaXpirit> Rinkanazu, I don't see much use for it
<BlaXpirit> use libmagic or its database
pawnbox has joined #crystal-lang
<rocx> 'ey. question about the syntax here. what's with the |blocks|? i notice it when dealing with iterators and that it's also from ruby. but what exactly do those do in the language?
<BlaXpirit> rocx, do you mean { } or | |
<BlaXpirit> {...} (same as do...end) is for passing code blocks, | | in them is to specify arguments
<rocx> right so eg. `puts posts.each { |p| ... }`
<BlaXpirit> rocx, well that probably doesn't do what you're thinking
rolha has joined #crystal-lang
<rocx> was trying to tinker it with this: https://play.crystal-lang.org/#/r/wqv
rolha___ has joined #crystal-lang
rolha__ has quit [Ping timeout: 244 seconds]
rolha_ has quit [Ping timeout: 264 seconds]
rocx has quit [Ping timeout: 260 seconds]
Philpax has quit [Ping timeout: 260 seconds]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
rolha___ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ragmaanir has joined #crystal-lang
<crystal-gh> [crystal] asterite closed pull request #1895: Range improvements (master...range_improvements) https://git.io/vwLS3
broz has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
rolha_ has joined #crystal-lang
rolha has quit [Ping timeout: 260 seconds]
broz has joined #crystal-lang
rolha has joined #crystal-lang
rolha_ has quit [Ping timeout: 276 seconds]
rolha_ has joined #crystal-lang
rolha__ has joined #crystal-lang
rolha___ has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
rolha_ has quit [Ping timeout: 276 seconds]
rolha has quit [Ping timeout: 276 seconds]
rok has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
rolha has joined #crystal-lang
rolha_ has joined #crystal-lang
rolha___ has quit [Ping timeout: 244 seconds]
rolha__ has quit [Ping timeout: 276 seconds]
Ven has joined #crystal-lang
rolha has quit [Remote host closed the connection]
rolha has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
sp4rrow has joined #crystal-lang
kulelu88 has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
Ven has quit [Client Quit]
pawnbox has joined #crystal-lang
<crystal-gh> [crystal] will opened pull request #2466: Adds BigRational (master...big_rational) https://git.io/vwLFj
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vwLbL
<crystal-gh> crystal/master ff65455 Ary Borenszweig: Compiler: fixed incorrect guess of nilable var. Fixes #2465
<travis-ci> crystal-lang/crystal#ff65455 (master - Compiler: fixed incorrect guess of nilable var. Fixes #2465): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/123596227
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
soveran has quit []
soveran has joined #crystal-lang
rolha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rolha has joined #crystal-lang
rolha_ has quit [Ping timeout: 264 seconds]
Ven has joined #crystal-lang
Ven has quit [Client Quit]
rolha_ has joined #crystal-lang
rolha has quit [Ping timeout: 244 seconds]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vwLxj
<crystal-gh> crystal/master 8c170b5 Ary Borenszweig: Compiler: infer type from chained assignments like `@x = x = 1`. Fixes #2467
NieaU7 has joined #crystal-lang
<travis-ci> crystal-lang/crystal#8c170b5 (master - Compiler: infer type from chained assignments like `@x = x = 1`. Fixes #2467): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/123603108
<NieaU7> Hi all. I am using the http/client to access a https API for imgur, but I am getting a weird result where a exception occurs with the message of "unexpected end of http response"
<NieaU7> the weird thing is that I am able to parse many requests perfectly fine before this happens, and it happens at the same spot each time on a specific request
<BlaXpirit> NieaU7, I hear you but what can I do?
<NieaU7> the response object from the get call is also nil, so I don't know how to specifically tell what the server is sending back to cause such an error
<NieaU7> i was wondering if anyone knew a way to debug this
<NieaU7> im willing to release the short script to reproduce it
kulelu88 has left #crystal-lang ["Leaving"]
TheLemonMan has joined #crystal-lang
<jeromegn> it sounds like an issue with SSL
Ven has joined #crystal-lang
<NieaU7> I am creating a reusable client via uri = URI.parse "https://api.imgur.com/"; client = HTTP::Client.new uri. I wonder if that has anything to do with it
<NieaU7> well that seems to be it jeromegn
<NieaU7> i just changed all my calls from client.get(..) (reusable client created via HTTP::Client.new) to HTTP::Client.get calls and I am not getting the exception any more
<jeromegn> NieaU7: I've had to do some trickery to get it to work for my experimental docker client: https://github.com/jeromegn/docker.cr/blob/master/src/core_ext/http/client.cr#L3-L5 <- like being able to set a specific ssl context for a client.
<jeromegn> need to figure out what kind of SSL that host wants
<NieaU7> well the part that I find weird is that I can do upwards of 20+ requests fine before the error occurs. unless the ssl connection closed or expired or something somehow
<jeromegn> * TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
<jeromegn> oh, weird.
rolha has joined #crystal-lang
<NieaU7> anyways thanks jeromegn for the help. seems to be working fine now, although I still don't know the cause and if it is imgurs side or crystals side which caused the problem
rolha has quit [Client Quit]
sp4rrow has joined #crystal-lang
<jhass> NieaU7: probably crystal's, you could try if it reproduces under mitmproxy
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sp4rrow has quit [Ping timeout: 276 seconds]
sp4rrow has joined #crystal-lang
broz has quit [Remote host closed the connection]
broz has joined #crystal-lang
_whitelogger has joined #crystal-lang
broz has quit [Remote host closed the connection]
broz has joined #crystal-lang
NieaU7 has quit [Quit: leaving]
Rinkanazu has quit [Read error: Connection reset by peer]
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
sp4rrow has quit [Quit: Textual]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
pawnbox has quit [Remote host closed the connection]
soveran has quit [Remote host closed the connection]
trapped has quit [Quit: 2hi]
broz has quit [Remote host closed the connection]
rok has quit [Quit: rok]
rolha has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
rolha_ has quit [Ping timeout: 244 seconds]
soveran has quit [Ping timeout: 244 seconds]
broz has joined #crystal-lang