<BlaXpirit>
mrfoto, oops, i forgot about you. well, the problem is the page is not UTF-8 and the encoding is not specified in the HTTP headers, so Crystal assumes UTF-8
<BlaXpirit>
instead, the encoding is a bit cryptic: <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<BlaXpirit>
mrfoto, uh I don't know. try response.body_io.set_encoding
<BlaXpirit>
("windows-1250")
steenuil has quit [Ping timeout: 264 seconds]
soveran has joined #crystal-lang
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 240 seconds]
<FromGitter>
<mrfoto> nope :confused:
soveran has quit [Remote host closed the connection]
<FromGitter>
<mrfoto> so i have a nodeset and when i call [0] on it I get `'[]' for Bool (compile-time type is (Bool | Float64 | String | XML::NodeSet))` - i've now realized that i can fix it with `as` but i'm wondering why doesn't crystal look at all the types a var is in before returning undefined or, since if i type .class i get XML::NodeSet, so try the "real" class first
<BlaXpirit>
mrfoto, that's exactly what it does - it looks at all the types a var is in. and if any one of them doesn't have that method, it fails
<FromGitter>
<mrfoto> well then why does it fail?
<BlaXpirit>
fails at compile time so you don't get problems or magical error suppresion at run time
<FromGitter>
<mrfoto> XML::NodeSet has `[]`
marr has joined #crystal-lang
triangles has quit [Quit: Leaving]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 264 seconds]
mbarbar has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
rolha has joined #crystal-lang
Philpax has joined #crystal-lang
mbarbar has quit []
mbarbar has joined #crystal-lang
mbarbar has quit [Client Quit]
mbarbar has joined #crystal-lang
mbarbar has quit [Remote host closed the connection]
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 272 seconds]
mbarbar has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Philpax has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
ponga has quit []
Philpax has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
ponga has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
unshadow has joined #crystal-lang
<unshadow>
Working on a Crystal Binding for Kerberos5 MIT lib :) I added it to a git (I will make it a shard when I can get it to work) https://github.com/Safe-T/krb5_crystal
unshadow has quit [Ping timeout: 240 seconds]
unshadow has joined #crystal-lang
rolha has quit [Ping timeout: 272 seconds]
pawnbox has joined #crystal-lang
paulcsmith_ has joined #crystal-lang
ponga has quit []
fryguy9 has joined #crystal-lang
Oliphaunte has joined #crystal-lang
mbarbar has quit [Remote host closed the connection]
datanoise has joined #crystal-lang
<crystal-gh>
[crystal] bcardiff pushed 1 new commit to master: https://git.io/vopJR
<crystal-gh>
crystal/master 2260d07 Brian J. Cardiff: fix generated revision.txt file in docs
datanoise has quit [Ping timeout: 252 seconds]
Philpax has quit [Ping timeout: 246 seconds]
datanoise has joined #crystal-lang
<FromGitter>
<mrfoto> another stupid question - my googling terms came up empty :D is there a way to get user's input like `gets.chomp` in ruby
<BlaXpirit>
mrfoto, it can be nil on EOF - when there is no stdin or user presses Ctrl+D - so use gets.not_nil! if you have to
<FromGitter>
<mrfoto> yeah ok, but how do i even get there - how do i read STDIN
<BlaXpirit>
`gets`
<FromGitter>
<mrfoto> :facepalm:
<crystal-gh>
[crystal] asterite pushed 1 new commit to master: https://git.io/vopLq
<paulcsmith_>
I wonder if something like this would be possible? https://gist.github.com/paulcsmith/61f8ebf041c36c6ef09f0e9d5f30c00a I can't thin of a way to do have that raise at compile time, because I don't think the compiler could know if the association was loaded or not. Maybe with some kind of macro magic that I haven't thought of
<BlaXpirit>
paulcsmith_, problem is there is no way to save state between macro calls
<BlaXpirit>
so I would say this is impossible
<paulcsmith_>
Yeah that's what I was thinking as well. Couldn't think of a way to do it. It would have been awesome though :)
<paulcsmith_>
Thanks for the input
<crystal-gh>
[crystal] asterite pushed 1 new commit to master: https://git.io/vopGP
<crystal-gh>
[crystal] bcardiff pushed 1 new commit to master: https://git.io/vop7B
<crystal-gh>
crystal/master ed7e587 Brian J. Cardiff: fix s3 config
fryguy9 has joined #crystal-lang
matp has joined #crystal-lang
fryguy9 has quit [Quit: Leaving.]
fryguy9 has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
pawnbox_ has joined #crystal-lang
fryguy9 has quit [Quit: Leaving.]
fryguy9 has joined #crystal-lang
<FromGitter>
<bcardiff> Ladies and gentelman, api URIs are back, sorry for the delay. /api/IO.html ----permanent---> /api/latest/IO.html ---temporal---> /api/0.18.6/IO.html . The first redirect is performed on a 404, so it might lead to infinite loops until we do something with a nicer 404. But at least all links around work. But should be changed to /api/latest/ .
<crystal-gh>
[crystal] ysbaddaden pushed 2 new commits to master: https://git.io/voppE
<crystal-gh>
crystal/master cf89ce4 mosop: FileUtils#rm_r removes a symlink itself
<BlaXpirit>
bcardiff, what do you think about the idea of having just "0.18", not "0.18.6"? the API is not supposed to change much and if someone happens to be using 0.18.4 they should be fine with 0.18.6 docs
<FromGitter>
<bcardiff> I would probably need 13 bash related commits to get 0.18.6 -> 0.18 and the redirect rule in s3 ;-)
<FromGitter>
<bcardiff> But is doable.
<FromGitter>
<bcardiff> hmmm . we would need to accumulate all redirections from prior tags. 0.17 , 0.18, when commiting 0.19. That is a bit ugly. redirections are global.
<RX14>
well
<BlaXpirit>
not sure what you mean
<RX14>
we do commonly add features in point releases
<RX14>
ot change docs
<RX14>
so I would advise against it
<BlaXpirit>
no need to redirect from 0.18.6, just forget about it.
Oliphaunte has quit [Remote host closed the connection]
<BlaXpirit>
and I do suggest overwriting 0.18 docs on each point release
<RX14>
well i would just say no 0.18 docs
<RX14>
just keep each release with its own docs it's easier and i think simpler to understand
<FromGitter>
<bcardiff> or we should deploy 0.18.6/* also to 0.18/* but that is redundant. I is better to do it with redirects.
<BlaXpirit>
bcardiff, no, I do not like that. nobody's gonna use the "0.18" links then anyway. I'm saying simply remove 0.18.x docs and only keep latest 0.18 docs
<BlaXpirit>
0.19.0 gets put into /api/0.19/, 0.19.1 overwrites /api/0.19/ - but also fine as is