pgib has joined #ruby
postmodern has joined #ruby
postmodern_ has quit [Read error: Connection reset by peer]
d0htem has quit [Ping timeout: 245 seconds]
d0htem has joined #ruby
bastienleonard has quit [Ping timeout: 268 seconds]
pgib has quit [*.net *.split]
jhass[m] has quit [*.net *.split]
Rounin has quit [Ping timeout: 264 seconds]
pgib has joined #ruby
jetchisel has quit [Ping timeout: 268 seconds]
jetchisel has joined #ruby
jetchisel has quit [Ping timeout: 265 seconds]
jetchisel has joined #ruby
jetchisel has quit [Client Quit]
pgib has quit [*.net *.split]
pgib has joined #ruby
pgib has quit [*.net *.split]
jhass[m] has joined #ruby
lfalcao has joined #ruby
aighearach has joined #ruby
swaggboi has quit [Quit: C-x C-c]
swaggboi has joined #ruby
lfalcao has quit [Ping timeout: 264 seconds]
jetchisel has joined #ruby
jetchisel has quit [Client Quit]
gr33n7007h has joined #ruby
postmodern has quit [Quit: Leaving]
jetchisel has joined #ruby
<rapha> done, lunarkitty
jhass[m] has quit [Quit: node-irc says goodbye]
jhass[m] has joined #ruby
involans has joined #ruby
Garb0 has joined #ruby
<lunarkitty> 👍
Rounin has joined #ruby
aighearach_ has joined #ruby
aighearach has quit [Ping timeout: 268 seconds]
nyuszika7h has quit [Read error: Connection reset by peer]
nyuszika7h has joined #ruby
Garb0 has quit [Ping timeout: 268 seconds]
jhass[m] has quit [Ping timeout: 268 seconds]
jhass[m] has joined #ruby
Garb0 has joined #ruby
weyhmueller has joined #ruby
Garb00 has joined #ruby
Garb0 has quit [Ping timeout: 268 seconds]
Garb00 has quit [Ping timeout: 264 seconds]
Garb0 has joined #ruby
JayDoubleu has joined #ruby
seabre has quit [Ping timeout: 264 seconds]
pgib has joined #ruby
glider has quit [Quit: ZNC 1.9.x-git-111-f2cdc3db - https://znc.in]
Garb0 has quit [Ping timeout: 252 seconds]
Garb0 has joined #ruby
AndyFromSpace has joined #ruby
rodd has quit [Changing host]
rodd has joined #ruby
AndyFromSpace has quit [Quit: WeeChat 3.1]
Garb0 has quit [Ping timeout: 265 seconds]
jmcgnh has quit [Remote host closed the connection]
jmcgnh has joined #ruby
Qchmqs has joined #ruby
Qchmqs has quit [Client Quit]
Qchmqs has joined #ruby
Qchmqs has quit [Client Quit]
Qchmqs has joined #ruby
Qchmqs has quit [Changing host]
Qchmqs has joined #ruby
henninb has joined #ruby
bastienleonard has joined #ruby
henninb has quit [Quit: leaving]
Garb0 has joined #ruby
Garb0 has quit [Quit: Garb0]
Garb0 has joined #ruby
legahc has joined #ruby
cnsvc has joined #ruby
Qchmqs has quit [Remote host closed the connection]
gr33n7007h has quit [Quit: WeeChat 3.1]
gr33n7007h has joined #ruby
jmcgnh has quit [Ping timeout: 268 seconds]
jmcgnh has joined #ruby
aighearach_ has quit [Quit: Leaving]
aighearach_ has joined #ruby
aighearach_ has quit [Remote host closed the connection]
aighearach has joined #ruby
Garb00 has joined #ruby
Garb0 has quit [Ping timeout: 268 seconds]
uplime has joined #ruby
<uplime> I'm receiving 2 bytes from a socket that represent an integer, and trying to convert it to the actual integer value. I've verified I'm getting the proper data ( "\x01\x00" ) but how do I conver that to an integer? I thought .unpack("I*") would do it but that looks to give me an empty array
<havenwood> uplime: What's the expected Integer value for `"\x01\x00"`?
Rounin has quit [Ping timeout: 268 seconds]
<uplime> just 1
<havenwood> >> "\x01\x00".bytes
<ruby[bot]> havenwood: # => [1, 0] (https://carc.in/#/r/b8xv)
<uplime> i managed to get it with: str.chars.map &:ord bytes[0] | (bytes[1] << 8)
<uplime> oh neat