RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.25.1 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
return0e has quit [Ping timeout: 260 seconds]
return0e has joined #crystal-lang
DTZUZO has quit [Ping timeout: 244 seconds]
vikaton has quit [Quit: Connection closed for inactivity]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 264 seconds]
Raimondii is now known as Raimondi
j75 has joined #crystal-lang
<j75> Hello, when attemping to run (File.info "NameOfLargeFile").size on a large file (over 2 GB) I get an error Value too large for defined data type (Errno)
vikaton has joined #crystal-lang
<FromGitter> <bew> j75: Looks like it's your system's fault, not Crystal: https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Value-too-large-for-defined-data-type
<FromGitter> <bew> Well not your system, but your libraries
<FromGitter> <bew> *the libraries in your system x)
return0e has quit [Ping timeout: 268 seconds]
akaiiro has quit [Ping timeout: 244 seconds]
akaiiro has joined #crystal-lang
<j75> Thanks FromGitter I will look into it
<j75> FromGitter it's weird, similar code in Ruby doesn't give the Value too large error
return0e has joined #crystal-lang
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
Raimondii is now known as Raimondi
<FromGitter> <newtonapple> Hi there, does anyone know why `HTTP::Client#exec` is giving me a 400 status_code here? ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5b651febe9ab53770c88a6a3]
<FromGitter> <newtonapple> the `HTTP::Client#exec` code is basically the code sample in the doc: https://crystal-lang.org/api/0.25.1/HTTP/Client.html#exec%28request%3AHTTP%3A%3ARequest%29%3AHTTP%3A%3AClient%3A%3AResponse-instance-method
<j75> bew: I tried to computers one x86 and the other x64 same message hmmm
<j75> two*
<FromGitter> <Timbus> @newtonapple it looks like the only difference is that.. the standard path exec is setting the HTTP 'Host' header
<FromGitter> <Timbus> which is admittedly a super important header
<FromGitter> <Timbus> Yeah, guess that's it ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5b6526ade8698a2dca060546]
<FromGitter> <newtonapple> I see. So, is this a bug? Or, maybe the doc should be updated?
<FromGitter> <Timbus> I'd assume bug. Maybe report it
<FromGitter> <newtonapple> Actually, I was reusing the same request object across multiple clients / hosts. This will imply that I cannot reuse the request across multiple hosts. Is this correct?
<FromGitter> <newtonapple> OK, I’ll file a bug.
akaiiro has quit [Ping timeout: 248 seconds]
akaiiro has joined #crystal-lang
bmcginty has quit [Ping timeout: 240 seconds]
bmcginty has joined #crystal-lang
akaiiro has quit [Ping timeout: 268 seconds]
akaiiro has joined #crystal-lang
akaiiro has quit [Ping timeout: 240 seconds]
ua_ has quit [Ping timeout: 240 seconds]
akaiiro has joined #crystal-lang
ua has joined #crystal-lang
akaiiro has quit [Remote host closed the connection]
DTZUZO has joined #crystal-lang
<FromGitter> <MrSorcus> https://play.crystal-lang.org/#/r/4o7b - possible something like this? :-D
ua has quit [Quit: Leaving]
hightower4 has joined #crystal-lang
<oprypin> no
<oprypin> MrSorcus, you can make the method return a custom wrapper object which can in turn produce those other things
ua has joined #crystal-lang
DTZUZO has quit [Ping timeout: 244 seconds]
<hightower4> How do I check environment vars from within macros?
<oprypin> https://crystal-lang.org/api/0.25.1/Crystal/Macros.html#env%28name%29%3AStringLiteral%7CNilLiteral-instance-method
<hightower4> oh thanks!
ashirase has quit [Ping timeout: 265 seconds]
return0e_ has joined #crystal-lang
ashirase has joined #crystal-lang
return0e has quit [Ping timeout: 248 seconds]
return0e has joined #crystal-lang
return0e_ has quit [Ping timeout: 260 seconds]
vikaton has quit [Quit: Connection closed for inactivity]
j75 has quit [Ping timeout: 252 seconds]
sagax has quit [Quit: Konversation terminated!]
DTZUZO has joined #crystal-lang
vegai has left #crystal-lang [#crystal-lang]
akaiiro has joined #crystal-lang
akaiiro has quit [Ping timeout: 244 seconds]
return0e has quit [Read error: Connection reset by peer]
FromGitter has quit [Remote host closed the connection]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
Raimondii is now known as Raimondi
return0e has joined #crystal-lang
<hightower4> @sdogruyol: how can I do env.redirect in Kemal with the ability to specify a different HTTP method. I use DELETE action, and after it completes I want to redirect user to some other GET page, not the way redirect() currently does it (it keeps DELETE as action)
<hightower4> Ah I see, I need status 303 instead of 302
nathanj has quit [Ping timeout: 256 seconds]
SijmenSchoon[m] has quit [Ping timeout: 256 seconds]
jokke1 has quit [Ping timeout: 256 seconds]
alex`` has joined #crystal-lang
alex`` has quit [Client Quit]
alex`` has joined #crystal-lang
jokke__ has joined #crystal-lang
BlaXpirit has joined #crystal-lang
oprypin has quit [Ping timeout: 256 seconds]
BlaXpirit is now known as oprypin
vikaton has joined #crystal-lang
alex`` has quit [Quit: WeeChat 2.2]
alex`` has joined #crystal-lang
FromGitter has joined #crystal-lang
vikaton has quit [Quit: Connection closed for inactivity]
return0e_ has joined #crystal-lang
return0e has quit [Ping timeout: 260 seconds]
DTZUZO has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 260 seconds]
hightower4 has quit [Ping timeout: 260 seconds]
return0e_ has quit [Read error: Connection reset by peer]
return0e has joined #crystal-lang