asterite changed the topic of #crystal-lang to: #crystal-lang The Crystal programming language | http://crystal-lang.org | Crystal 0.6.0 | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/manastech/crystal - Docs: http://crystal-lang.org/docs/ - API: http://crystal-lang.org/api/ - Logs: http://irclog.whitequark.org/crystal-lang
weskinner_mac has joined #crystal-lang
weskinner_mac has quit [Quit: weskinner_mac]
weskinner_mac has joined #crystal-lang
weskinner_work has quit [Ping timeout: 244 seconds]
weskinner_mac has quit [Quit: weskinner_mac]
waj has joined #crystal-lang
weskinner_mac has joined #crystal-lang
bcardiff has joined #crystal-lang
bcardiff has quit [Quit: Leaving.]
bcardiff has joined #crystal-lang
weskinner_mac has quit [Quit: weskinner_mac]
bcardiff has quit [Quit: Leaving.]
waj has quit [Quit: Leaving.]
bcardiff has joined #crystal-lang
bcardiff has quit [Client Quit]
bcardiff has joined #crystal-lang
bcardiff has quit [Client Quit]
havenwood has quit []
weskinner_mac has joined #crystal-lang
weskinner_mac has quit [Client Quit]
waj has joined #crystal-lang
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
knoopx has quit [Remote host closed the connection]
waj_ has joined #crystal-lang
waj_ has left #crystal-lang [#crystal-lang]
waj has quit [Quit: Leaving.]
havenwood has joined #crystal-lang
waj has joined #crystal-lang
waj has quit [Quit: Leaving.]
bcardiff has joined #crystal-lang
ismaelga has quit [Remote host closed the connection]
ismaelga has joined #crystal-lang
ismaelga has quit [Ping timeout: 264 seconds]
bcardiff has quit [Quit: Leaving.]
ismaelga has joined #crystal-lang
ismaelga has quit [Ping timeout: 256 seconds]
ismaelga has joined #crystal-lang
ismaelga has quit [Ping timeout: 264 seconds]
ismaelga has joined #crystal-lang
ismaelga has quit [Ping timeout: 250 seconds]
havenwood has quit [Remote host closed the connection]
ismaelga has joined #crystal-lang
ismaelga has quit [Ping timeout: 255 seconds]
ismaelga has joined #crystal-lang
ismaelga has quit [Ping timeout: 256 seconds]
ismaelga has joined #crystal-lang
waj has joined #crystal-lang
waj has quit [Client Quit]
ismaelga has quit [Remote host closed the connection]
weskinner_mac has joined #crystal-lang
weskinner_mac has quit [Client Quit]
ismaelga has joined #crystal-lang
havenwood has joined #crystal-lang
bcardiff has joined #crystal-lang
weskinner_work has joined #crystal-lang
asterite has joined #crystal-lang
<asterite> jhass: hey :) I have your app running on ubuntu… well, almost, it gives me "Validation failed" for my user/pass combination. Any idea?
<jhass> uh, they're wrong? :P
<jhass> granted I didn't run that code path for a while :P
<asterite> With wrong credentials it gives me "Bad credentials" so I guess there's a difference
<jhass> mmh
<jhass> API docs say I would set wrong fields in the request :/
<asterite> Strange. I get that in the "corrupted" branch. But on master I just get a segfault
<asterite> (if I cast the block given to perform… I'll fix that soon)
<jhass> you have OTP enabled?
<jhass> just tried on the corrupted branch, auth still seems to work
<asterite> What's OTP?
<asterite> Erlang? :)
<jhass> one time password
<jhass> aka two factor auth (2FA)
<jhass> (though to be picky, OTP is a variant of 2FA)
<asterite> Ah, the strange thing is that on mac it works
<asterite> Or it worked, at least. I deleted the ~/.config thing and now I get a segfault too
<asterite> I'll investigate
<jhass> thanks!
<asterite> By the way, in some previous commit when I disabled internet connection the http::client print strange chars on the console, there must be something really wrong in http::client for ssl
<jhass> yeah, I can't reproduce in a minimal example, but when reusing the same HTTP::Client with SSL for a second request to the Github API after a minute, I would all of the sudden get a failed nil assertion somewhere in it
<jhass> so for now I just recreate it for every request
<asterite> Ah, you have an infinite recursion
<jhass> oh, that one's fixed in the branch
<jhass> and I use the commented line locally
<jhass> but that's not causing it, I tested
<asterite> Ah, good
<asterite> {"message" => "Validation Failed", "errors" => [{"resource" => "OauthAccess", "code" => "already_exists", "field" => "description"}], "documentation_url" => "https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization"}
<asterite> I think you need to use that "fingerprint" param, but I'm not sure
<jhass> ah, never tried from multiple machines
<jhass> I think I just need to try to fetch the existing token
<jhass> anyway, maybe just copy ~/.config/github_desktop_notifications over
<jhass> for now
<asterite> I lost it :)
<jhass> it's in your github account settings
<jhass> you can also just delete the existing one there
<asterite> Ah!
asterite has quit [Quit: Leaving.]
havenn has joined #crystal-lang
havenwood has quit [Ping timeout: 245 seconds]
shama has joined #crystal-lang
havenn is now known as havenwood
<weskinner_work> what's the best way to print a padded binary representation of an int?
<weskinner_work> >> puts 8.to_s(2)
<DeBot> weskinner_work: 1000
<weskinner_work> I'd like to see all 32 bits
<weskinner_work> >> puts ("%032d" % 8.to_s(2))
<DeBot> weskinner_work: 00000000000000000000000000001000
waj has joined #crystal-lang
ryanf has quit [Ping timeout: 240 seconds]
ryanf has joined #crystal-lang
havenwood has quit [Ping timeout: 256 seconds]
DeBot has quit [Quit: Crystal]
waj has quit [Quit: Leaving.]
DeBot has joined #crystal-lang
DeBot has quit [Quit: Crystal]
DeBot has joined #crystal-lang
bcardiff has quit [Quit: Leaving.]
DeBot has quit [Quit: Crystal]
DeBot has joined #crystal-lang
waj has joined #crystal-lang
waj has quit [Client Quit]
bcardiff has joined #crystal-lang
havenwood has joined #crystal-lang
ismaelga has quit [Remote host closed the connection]
ismaelga has joined #crystal-lang
waj has joined #crystal-lang
weskinner_work has quit [Ping timeout: 256 seconds]
weskinner_work has joined #crystal-lang