guilleiguaran__ has quit [Ping timeout: 240 seconds]
Kilobyte22 has quit [Ping timeout: 240 seconds]
danzilio has quit [Ping timeout: 240 seconds]
RX14 has quit [Ping timeout: 240 seconds]
wminor has quit [Ping timeout: 240 seconds]
emmanueloga has quit [Ping timeout: 240 seconds]
iamstef has quit [Ping timeout: 240 seconds]
avdi has quit [Ping timeout: 240 seconds]
Dreamer3 has quit [Read error: Connection reset by peer]
Kilo`byte has joined #crystal-lang
aemadrid has quit [Ping timeout: 240 seconds]
danzilio_ is now known as danzilio
Dreamer3 has joined #crystal-lang
RX14 has joined #crystal-lang
aemadrid has joined #crystal-lang
wminor has joined #crystal-lang
sorbo_ has quit [Remote host closed the connection]
emmanueloga has joined #crystal-lang
guilleiguaran__ has joined #crystal-lang
fka has quit [Remote host closed the connection]
avdi has joined #crystal-lang
fka has joined #crystal-lang
fka has quit [Ping timeout: 272 seconds]
iamstef has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 246 seconds]
fowlduck has joined #crystal-lang
dfdfdf has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
codingcan has joined #crystal-lang
sorbo_ has joined #crystal-lang
codingcan has quit [Remote host closed the connection]
codingcan has joined #crystal-lang
codingcan has quit [Remote host closed the connection]
codingcan has joined #crystal-lang
codingcan has quit [Remote host closed the connection]
codingcan has joined #crystal-lang
badeball_ is now known as badeball
sorbo_ has quit [Remote host closed the connection]
codingcan has quit []
waterlin1 has joined #crystal-lang
waterlink has quit [Ping timeout: 265 seconds]
fowlduck has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 245 seconds]
Philpax_ has joined #crystal-lang
Philpax has quit [Ping timeout: 256 seconds]
sorbo_ has joined #crystal-lang
jiriki has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 255 seconds]
shama has quit [Remote host closed the connection]
rkeene has joined #crystal-lang
fowlduck has joined #crystal-lang
waterlin1 has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
sorbo_ has quit [Ping timeout: 265 seconds]
vikaton has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
sorbo_ has joined #crystal-lang
tremendo has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 255 seconds]
pawnbox has joined #crystal-lang
sorbo_ has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 256 seconds]
<rkeene>
Is there any hope of adding SHA256 to the OpenSSL Digests ?
tremendo has quit [Quit: Leaving]
fka has joined #crystal-lang
fka has quit [Ping timeout: 264 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
<rkeene>
Attempting to use OpenSSL::Digest.new("sha1").update("test").hexdigest gives me an error: Error in /root/crystal-0.10.0-1/src/openssl/digest/digest.cr:6: undefined constant OpenSSL::Error
<rkeene>
Seems like it should require openssl/openssl.cr ?
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 256 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
jiriki has joined #crystal-lang
<rkeene>
Had a small issue with type determination, I had: if upstreamURL === nil ... raise ... end and after the "end" upstreamURL's type was (String | Nil), changing that to if upstreamURL.is_a?(Nil) addressed it, but it was never really a problem anyway
<jhass>
rkeene: === is not special cased in the compiler, only is_a? and "if foo"/"unless foo" are
<rkeene>
My observation is merely that it could be, in this case, deduced so that could likely be added to the compiler.
<rkeene>
I do have an actual problem though... I'm trying to download a file with HTTP::Client and not being successful. I am new to Crystal (but not new to software development)
<rkeene>
The file whose name is stored in the variable "tempFileName" is created, but nothing is written to it
<jhass>
make sure to properly close the temp file
<rkeene>
That won't happen when the object goes out of scope and the program terminates ?
<jhass>
(or flush and rewind it if you want to reuse the file handle)
<jhass>
it should, but still...
<rkeene>
Closing the file wrote the contents I was expecting
<rkeene>
So something is not flushing before exit :-(
trapped has joined #crystal-lang
fka has joined #crystal-lang
fka has quit [Remote host closed the connection]
fka has joined #crystal-lang
fka_ has joined #crystal-lang
fka has quit [Read error: Connection reset by peer]
apotheon has quit [Read error: Connection reset by peer]
fka_ has quit [Ping timeout: 264 seconds]
apotheon has joined #crystal-lang
vikaton has quit [Quit: Connection closed for inactivity]
<rkeene>
I'm having another problem, this time with OpenSSL::Digest. I have the following 3 lines: checkHash = OpenSSL::Digest.new(hashMethod); checkHash.file(fileName); puts checkHash.hexdigest
<rkeene>
The output keeps changing even though the input file never does
<jhass>
atm you'll need to keep up with each new version anyhow
<rkeene>
Bug: `outputFile` at /root/stuff/hashcache.cr:132:5 has no type Error: you've found a bug in the Crystal compiler. Please open an issue, including source code that will allow us to reproduce the bug: https://github.com/manastech/crystal/issues
<jhass>
so just drop it with the next release
<jhass>
the message has it all, these should never happen. It would be awesome if you reduce the code to the minimal reproducing example, but please include at least some code to reproduce
<jhass>
fka: I would expect Process.run("tail -f ...", output: true) do |tail| loop do print tail.output.gets end end to work, but I'm getting nil for output and can't figure out why atm
<fka>
i also tried this kind of code but cannot make it run :/
<sdogruyol>
seems like we dont have multipart handling in HTTP::Request