havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rcvalle has quit [Quit: rcvalle]
djbkd has joined #ruby
jancel_ has quit []
surrounder has quit [Quit: WeeChat 1.4]
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
surrounder has joined #ruby
nk121 has joined #ruby
cyclonis_ has quit [Ping timeout: 260 seconds]
stannard has joined #ruby
mistermocha has quit [Remote host closed the connection]
jancel has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jancel has quit [Remote host closed the connection]
moeabdol has quit [Ping timeout: 240 seconds]
gtsai_ has quit [Remote host closed the connection]
bmurt has joined #ruby
strigon33 is now known as strigonLeader
tax has joined #ruby
echosystm has joined #ruby
<echosystm> if a ruby program creates some threads
<echosystm> and then i kill the app
<echosystm> are the threads automatically killed?
whathapp_ has quit [Remote host closed the connection]
stannard has quit [Ping timeout: 272 seconds]
kubunto has joined #ruby
User458764 has joined #ruby
gtsai has joined #ruby
jaguarmagenta has joined #ruby
tristanp has joined #ruby
jaguarma_ has joined #ruby
tacit7 has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
djbkd has quit [Quit: My people need me...]
<havenwood> echosystm: a process takes its own threads down with it
charliesome has joined #ruby
gtsai has quit [Remote host closed the connection]
gtsai has joined #ruby
jaguarma_ has quit [Remote host closed the connection]
jaguarmagenta has quit [Ping timeout: 240 seconds]
<havenwood> echosystm: it's not like processes where you need to reap children or risk zombie processes
tristanp_ has joined #ruby
jaguarmagenta has joined #ruby
kubunto has left #ruby [#ruby]
frem_ has quit [Quit: Connection closed for inactivity]
aupadhye has joined #ruby
<echosystm> ok thanks havenwood
tristanp has quit [Ping timeout: 272 seconds]
nankyokusei has joined #ruby
tristanp has joined #ruby
ksmutthu has joined #ruby
tacit7 has quit [Ping timeout: 244 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
cdg has quit [Remote host closed the connection]
yfeldblum has joined #ruby
tristanp_ has joined #ruby
snath has joined #ruby
trista___ has joined #ruby
daftdolphin has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 252 seconds]
Elvin has joined #ruby
cyclonis_ has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
daftdolphin has joined #ruby
blaxter has quit [Read error: Connection reset by peer]
tristanp has quit [Ping timeout: 252 seconds]
tristanp_ has quit [Ping timeout: 252 seconds]
hahuang65 has quit [Ping timeout: 260 seconds]
jaguarma_ has joined #ruby
jaguarmagenta has quit [Ping timeout: 244 seconds]
centrx has quit [Quit: centrx]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trista___ has quit [Read error: Connection reset by peer]
jhack has quit [Quit: jhack]
tristanp has joined #ruby
jaguarma_ has quit [Read error: Connection reset by peer]
donske has joined #ruby
aupadhye has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
finisherr has quit [Quit: finisherr]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tristanp has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tristanp has joined #ruby
roamingdog has joined #ruby
snath has left #ruby ["Leaving"]
mleung has joined #ruby
jaguarmagenta has joined #ruby
tristanp_ has joined #ruby
daftdolphin has quit [Remote host closed the connection]
jaguarma_ has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
thejamespinto has joined #ruby
daftdolphin has joined #ruby
chopin has quit [Remote host closed the connection]
ramfjord has joined #ruby
davedev2_ has quit []
elementaru has quit [Ping timeout: 258 seconds]
tristanp has joined #ruby
hfp_work has quit [Ping timeout: 240 seconds]
hfp has quit [Ping timeout: 244 seconds]
jaguarmagenta has quit [Ping timeout: 244 seconds]
hfp_work has joined #ruby
hfp has joined #ruby
trista___ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
tristanp_ has quit [Ping timeout: 252 seconds]
dhk has quit [Ping timeout: 252 seconds]
gtsai has quit [Remote host closed the connection]
daftdolphin has quit [Ping timeout: 260 seconds]
weemsledeux has joined #ruby
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
rkazak has quit [Quit: Sleep.....ing....]
tristanp has quit [Ping timeout: 252 seconds]
paradisaeidae_ has joined #ruby
daftdolphin has joined #ruby
tristanp has joined #ruby
dangeranger has joined #ruby
rkazak has joined #ruby
freerobby has joined #ruby
trista___ has quit [Ping timeout: 252 seconds]
gfvcastro has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skweek has joined #ruby
Tohuw has joined #ruby
mleung has quit [Quit: mleung]
finisherr has joined #ruby
Alazoral has joined #ruby
ryan_notabot has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
gnufied has quit [Quit: Leaving]
sneakersec has joined #ruby
mistermocha has joined #ruby
daftdolphin has quit []
GodFather_ has quit [Ping timeout: 272 seconds]
dhk has joined #ruby
tacit7 has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
chopin has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JoshGlzBrk has joined #ruby
banister has joined #ruby
arescorpio has joined #ruby
Coldblackice_ has quit [Ping timeout: 240 seconds]
lukec has quit [Quit: lukec]
rkazak has joined #ruby
tacit7 has quit [Ping timeout: 244 seconds]
crystal77 has joined #ruby
ropeney has joined #ruby
paradisaeidae_ has quit [Quit: ChatZilla 0.9.92 [Firefox 46.0.1/20160502172042]]
dangeranger has quit [Quit: Textual IRC Client: www.textualapp.com]
paradisaeidae has joined #ruby
dangeranger has joined #ruby
ramfjord_ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
norc__ has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
ramfjord_ has quit [Ping timeout: 260 seconds]
gfvcastro has joined #ruby
tristanp has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
rbennacer has joined #ruby
SilverKey has joined #ruby
norc_ has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Remote host closed the connection]
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 46.0.1/20160502172042]]
Vingador has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
tristanp_ has joined #ruby
craigp has quit [Ping timeout: 260 seconds]
kies has joined #ruby
rbennacer has quit [Remote host closed the connection]
tristanp has quit [Ping timeout: 252 seconds]
VeryBewitching has quit [Quit: Konversation terminated!]
B1n4r10 has joined #ruby
paradisaeidae_ has joined #ruby
tristanp has joined #ruby
smathy has joined #ruby
Dimik has quit [Ping timeout: 246 seconds]
dangeranger has quit [Quit: Textual IRC Client: www.textualapp.com]
paradisaeidae_ has quit [Client Quit]
tristanp_ has quit [Ping timeout: 272 seconds]
Dios has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Dios has quit [Max SendQ exceeded]
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
s00pcan has joined #ruby
jaguarma_ has quit [Ping timeout: 272 seconds]
rkazak has joined #ruby
moeabdol has joined #ruby
sfmk has quit [Quit: Connection closed for inactivity]
bronson has joined #ruby
FooMunki has quit [Quit: FooMunki]
rbennacer has joined #ruby
charliesome has joined #ruby
joskei has joined #ruby
ptx0 has quit [Ping timeout: 260 seconds]
bronson has quit [Ping timeout: 252 seconds]
moeabdol has quit [Ping timeout: 260 seconds]
rkazak has quit [Quit: Sleep.....ing....]
jnoob22 has quit [Quit: Leaving]
Vingador has quit [Read error: Connection reset by peer]
Biopandemic has quit [Remote host closed the connection]
coto has joined #ruby
<coto> hi
<havenwood> coto: hi
<coto> anyone has experience usin DES cipher?
<coto> i have a problem trying to convert a parser from C to Ruby
<havenwood> coto: what problem are you running into?
<coto> i do it in python, but for the life of me i can't make it work in ruby
<coto> i have a old C program that is used to generate encrypted strings for saving data
<havenwood> coto: link to the code?
Coldblackice has joined #ruby
chipotle has joined #ruby
<havenwood> coto: getting an error or just not working as expected?
<coto> im trying to automate the process in puppet, so i try to convert the code to ruby, but i can't
<coto> work, but the resulting hash is not the expected
<havenwood> gotcha
jancel has joined #ruby
<ruby[bot]> coto: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/96bae068016ecce928b40edde4c1b59d
<ruby[bot]> coto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
blackmesa has quit [Ping timeout: 272 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
Vingador has joined #ruby
<havenwood> coto: the first two lines don't appear to be Ruby
skolman has quit [Remote host closed the connection]
<coto> that is not Ruby, that is the working version in Python
skolman has joined #ruby
B1n4r10 has quit [Ping timeout: 244 seconds]
<havenwood> >> require 'openssl'; OpenSSL::Cipher.ciphers.grep /\Ades/i
<ruby[bot]> havenwood: # => ["DES", "DES-CBC", "DES-CFB", "DES-CFB1", "DES-CFB8", "DES-ECB", "DES-EDE", "DES-EDE-CBC", "DES-EDE- ...check link for more (https://eval.in/576692)
craigp has joined #ruby
<havenwood> coto: So you're not looking for a pure Ruby implementation of DES so much as to use the Ruby stdlib?
genpaku has quit [Remote host closed the connection]
<coto> the problem is the C version of the encrypter and decrupter, use fixed var size, 8 for the key and 64 for the string to encrypt, so if the key is shorter put a binary null in it.
<coto> i replicate this in python using "key.ljust(8 '\x00')"
ryan_notabot has quit [Remote host closed the connection]
Dios has joined #ruby
tristanp_ has joined #ruby
skolman has quit [Ping timeout: 260 seconds]
<havenwood> >> 'hrm'.ljust 8, "\x00"
<ruby[bot]> havenwood: # => "hrm\u0000\u0000\u0000\u0000\u0000" (https://eval.in/576693)
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
<havenwood> >> '\x00' == "\x00"
<havenwood> #=> false
<ruby[bot]> havenwood: # => false (https://eval.in/576694)
ptx0 has joined #ruby
<coto> ...
<coto> ty
<havenwood> np
<coto> That worked perfect
<havenwood> :-)
robbyoconnor has joined #ruby
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby
tristanp_ has quit [Ping timeout: 250 seconds]
tristanp_ has joined #ruby
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
yfeldblu_ has joined #ruby
mozzarel1 is now known as mozzarella
tristanp has quit [Read error: Connection reset by peer]
yfeldblu_ has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
lukebyrne has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
SilverKey has quit [Quit: Halted.]
chopin has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 272 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
Eiam_ has joined #ruby
skalfyfan has joined #ruby
SilverKey has joined #ruby
ensyde has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
postmodern has quit [Quit: Leaving]
roamingdog has quit [Remote host closed the connection]
tristanp has quit [Read error: Connection reset by peer]
snguyen has joined #ruby
tristanp has joined #ruby
gfvcastro has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
adkjsfhd has joined #ruby
SilverKey has quit [Quit: Cheerio!]
|2701 has quit [Quit: Connection closed for inactivity]
mleung has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mleung has quit [Client Quit]
gfvcastro has joined #ruby
charliesome has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
benlieb has quit [Quit: benlieb]
Es0teric has joined #ruby
roamingdog has joined #ruby
Es0teric has quit [Max SendQ exceeded]
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Es0teric has joined #ruby
PaulCapestany has quit [Quit: .]
PaulCapestany has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
ensyde has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
echosystm has quit [Quit: leaving]
braincra- has quit [Quit: bye bye]
tristanp has joined #ruby
arescorpio has quit [Excess Flood]
tristanp_ has quit [Ping timeout: 252 seconds]
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PaulCapestany has quit [Quit: .]
blackmesa has joined #ruby
Devalo has quit [Ping timeout: 264 seconds]
PaulCapestany has joined #ruby
tristanp_ has joined #ruby
jackjackdripper1 has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
jackjackdripper has quit [Ping timeout: 246 seconds]
yfeldblu_ has quit [Ping timeout: 258 seconds]
tristanp has joined #ruby
mistermocha has joined #ruby
adkjsfhd has quit [Ping timeout: 260 seconds]
braincrash has joined #ruby
benlieb has joined #ruby
lukebyrne has quit [Quit: lukebyrne]
blackmesa has quit [Ping timeout: 260 seconds]
kriskropd has quit [Quit: WeeChat 0.4.2]
tristanp_ has quit [Ping timeout: 276 seconds]
mistermocha has quit [Ping timeout: 244 seconds]
Water_4 has joined #ruby
mleung has joined #ruby
Dios has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
k3rn31 has joined #ruby
skalfyfan has joined #ruby
d0lph1n98 has joined #ruby
PaulCapestany has quit [Quit: .]
xlegoman has quit [Quit: Textual IRC Client: www.textualapp.com]
tacit7 has joined #ruby
PaulCapestany has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 264 seconds]
mleung has quit [Quit: mleung]
rbennacer has quit [Remote host closed the connection]
Vingador has quit [Remote host closed the connection]
tacit7 has quit [Ping timeout: 244 seconds]
rbennacer has joined #ruby
Elvin has quit [Quit: Textual IRC Client: www.textualapp.com]
bmurt has joined #ruby
Water_4 has quit [Remote host closed the connection]
jancel has quit [Remote host closed the connection]
kgrz has joined #ruby
tristanp_ has joined #ruby
LoneHerm_ has joined #ruby
moeabdol has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
finisherr has quit [Quit: finisherr]
finisherr has joined #ruby
PaulCapestany has quit [Quit: .]
tristanp has joined #ruby
lukec has joined #ruby
PaulCapestany has joined #ruby
freerobby has quit [Quit: Leaving.]
tristanp_ has quit [Ping timeout: 252 seconds]
tristanp_ has joined #ruby
dhk has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
rbennacer has quit [Remote host closed the connection]
tristanp has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tristanp_ has quit [Read error: Connection reset by peer]
moeabdol has quit [Ping timeout: 260 seconds]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snockerton has joined #ruby
pabloh has joined #ruby
adkjsfhd has joined #ruby
benlieb has quit [Quit: benlieb]
bmurt has joined #ruby
paradisaeidae_ has joined #ruby
rkazak has joined #ruby
ramfjord has joined #ruby
coto has quit [Quit: Leaving]
Es0teric has quit [Quit: Computer has gone to sleep.]
craigp has quit [Ping timeout: 272 seconds]
gix has quit [Ping timeout: 276 seconds]
ksmutthu has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
jaguarmagenta has joined #ruby
kareeoleez has joined #ruby
kareeole_ has joined #ruby
benlieb has joined #ruby
pabloh has quit [Quit: This computer has gone to sleep]
gix has joined #ruby
PaulCapestany has quit [Quit: .]
kfpratt has quit [Remote host closed the connection]
kareeole_ is now known as kareeoleez_
pawnbox has joined #ruby
djbkd has joined #ruby
kareeoleez_ is now known as kareeoleez__
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
nullFxn has quit [Quit: leaving]
mistermocha has quit [Ping timeout: 272 seconds]
PaulCapestany has joined #ruby
nullFxn has joined #ruby
kareeoleez has quit [Ping timeout: 264 seconds]
kareeoleez__ is now known as kareeoleez
mistermocha has joined #ruby
jancel has joined #ruby
jancel has quit [Remote host closed the connection]
tristanp has joined #ruby
blackmesa has joined #ruby
tristanp_ has quit [Ping timeout: 250 seconds]
mistermocha has quit [Read error: Connection reset by peer]
mistermo_ has joined #ruby
pabloh has joined #ruby
Water-4 has joined #ruby
mistermocha has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
echosystm has joined #ruby
<echosystm> if you have a thread waiting on socket.accet
<echosystm> how do you shut down the socket?
mistermo_ has quit [Ping timeout: 260 seconds]
<echosystm> i mean, gracefully kill the thread it's running in?
pabloh has quit [Client Quit]
blackmesa has quit [Ping timeout: 250 seconds]
tristanp has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
zast has joined #ruby
giz|work has quit [Ping timeout: 258 seconds]
dhk has joined #ruby
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp_ has joined #ruby
benlieb has quit [Quit: benlieb]
tacit7 has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
dhk has quit [Ping timeout: 260 seconds]
hk238 has joined #ruby
nankyokusei has joined #ruby
tacit7 has quit [Ping timeout: 244 seconds]
RobertBirnie has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
zenlot has quit [Ping timeout: 244 seconds]
snockerton has quit [Quit: Leaving.]
zenlot has joined #ruby
mistermocha has joined #ruby
wilbert has joined #ruby
wilbert has quit [Client Quit]
Coldblackice has quit [Ping timeout: 240 seconds]
cyclonis_ has quit [Ping timeout: 260 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
paradisaeidae_ has quit [Quit: ChatZilla 0.9.92 [Firefox 46.0.1/20160502172042]]
ksmutthu has joined #ruby
mistermocha has joined #ruby
zacts has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
paradisaeidae_ has joined #ruby
pawnbox has joined #ruby
cesar_ has joined #ruby
cesar_ is now known as Guest99369
tildes_ has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
Guest99369 has quit [Client Quit]
tristanp_ has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cheerio]
tristanp has joined #ruby
Orphen has joined #ruby
Orphen is now known as Guest99369
echosystm has quit [Quit: leaving]
Guest99369 has quit [Client Quit]
Orphen has joined #ruby
Orphen is now known as Guest99369
chopin has joined #ruby
Guest99369 has quit [Client Quit]
Devalo has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
Corrosive_ has joined #ruby
zacts has joined #ruby
CorOne has quit [Ping timeout: 276 seconds]
blingrang has quit [Quit: WeeChat 1.3]
tristanp has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
blingrang has joined #ruby
blingrang has quit [Client Quit]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duncannz has joined #ruby
kristofferR has joined #ruby
duncannz has quit [Max SendQ exceeded]
pawnbox has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Remote host closed the connection]
duncannz has joined #ruby
mistermocha has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
pawnbox has joined #ruby
netcho has left #ruby [#ruby]
duncannz has quit [Max SendQ exceeded]
mistermo_ has joined #ruby
duncannz has joined #ruby
mistermocha has quit [Ping timeout: 258 seconds]
mistermo_ has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
jancel has joined #ruby
sauvin has joined #ruby
mistermocha has joined #ruby
blackmesa has joined #ruby
dionysus69 has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Ping timeout: 258 seconds]
chouhoulis has quit [Ping timeout: 276 seconds]
kareeoleez has quit [Remote host closed the connection]
jancel has quit [Ping timeout: 276 seconds]
mistermocha has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 264 seconds]
amclain has quit [Quit: Leaving]
tristanp has quit [Ping timeout: 258 seconds]
tristanp has joined #ruby
d0lph1n98 has quit [Ping timeout: 252 seconds]
tristanp_ has joined #ruby
chopin has quit [Remote host closed the connection]
chopin has joined #ruby
Devalo has quit [Remote host closed the connection]
trista___ has joined #ruby
bobbycvi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp has quit [Ping timeout: 252 seconds]
tristanp_ has quit [Ping timeout: 252 seconds]
chopin has quit [Ping timeout: 264 seconds]
e4xit has quit [Quit: Right I'm out!]
Dimik has joined #ruby
d0lph1n98 has joined #ruby
daniel_ has joined #ruby
daniel_ has quit [Client Quit]
Gv3s7 has joined #ruby
Arcaire has quit [Ping timeout: 250 seconds]
<Gv3s7> Hello friends
<havenwood> Gv3s7: hi
tristanp has joined #ruby
trista___ has quit [Read error: Connection reset by peer]
zast has quit [Remote host closed the connection]
youch has quit [Ping timeout: 244 seconds]
Coldblackice has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
adkjsfhd has quit [Ping timeout: 250 seconds]
pwnd_nsfw has joined #ruby
<Gv3s7> I'm beginning on Ruby, moreover it's my first language and complete all related to object-oriented programming. Now, where should i continue? Thanks guys
youch has joined #ruby
tristanp_ has joined #ruby
gfvcastro has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp has quit [Ping timeout: 258 seconds]
Eiam_ has quit [Ping timeout: 244 seconds]
norc-2 has joined #ruby
<Gv3s7> Thanks guys
stardiviner has joined #ruby
moeabdol has joined #ruby
tristanp has joined #ruby
ta_ has joined #ruby
last_staff has joined #ruby
norc-2 has quit [Ping timeout: 244 seconds]
tristanp_ has quit [Ping timeout: 252 seconds]
rkazak has quit [Quit: Sleep.....ing....]
moeabdol has quit [Quit: WeeChat 1.4]
ta_ has quit [Ping timeout: 264 seconds]
tildes_ has quit [Ping timeout: 244 seconds]
lukec has quit [Quit: lukec]
moeabdol has joined #ruby
zapata has quit [Ping timeout: 260 seconds]
d0lph1n98 has quit [Ping timeout: 260 seconds]
elaptics`away is now known as elaptics
<Gv3s7> Where are you from?
<Radar> Australia.
kareeoleez has joined #ruby
Gv3s7 has quit [Quit: Leaving]
KnownSyntax has joined #ruby
KnownSyntax has quit [Excess Flood]
jaruga___ has joined #ruby
e4xit has joined #ruby
KnownSyntax has joined #ruby
KnownSyntax has quit [Excess Flood]
fenre has joined #ruby
djbkd has quit []
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zapata has joined #ruby
blackmesa has joined #ruby
paradisaeidae_ has quit [Remote host closed the connection]
tvw has joined #ruby
CloCkWeRX has quit [Ping timeout: 244 seconds]
Macaveli has joined #ruby
Macaveli has quit [Max SendQ exceeded]
Macaveli has joined #ruby
mistermocha has joined #ruby
<A124> hey. I got nested structs and need nested hash, how do I convert that?
<apeiros> manually
symm- has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
codecop has joined #ruby
<apeiros> I'd add a to_h method to your struct classes and call the toplevel struct's to_h
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
<A124> Well, they do implement to_h, but not recrsively.
djbkd has joined #ruby
<apeiros> then change it?
<apeiros> or add a recursive variant
blackmesa has quit [Ping timeout: 272 seconds]
mistermocha has quit [Ping timeout: 258 seconds]
tacit7 has joined #ruby
jaguarma_ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
tristanp_ has quit [Ping timeout: 252 seconds]
solars has joined #ruby
Devalo has joined #ruby
nankyokusei has joined #ruby
benlieb has joined #ruby
aufi has joined #ruby
jaguarmagenta has quit [Ping timeout: 258 seconds]
tacit7 has quit [Ping timeout: 244 seconds]
phredus has quit [Read error: Connection reset by peer]
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 244 seconds]
roamingdog has quit [Remote host closed the connection]
tristanp has joined #ruby
d0lph1n98 has joined #ruby
roamingdog has joined #ruby
jenrzzz has joined #ruby
DanKnox_ is now known as DanKnox
n1x-nz has joined #ruby
n1x-nz has quit [Max SendQ exceeded]
firstdayonthejob has joined #ruby
roamingdog has quit [Ping timeout: 244 seconds]
n1x-nz has joined #ruby
snguyen has joined #ruby
conta has joined #ruby
troulouliou_div2 has joined #ruby
anisha has joined #ruby
giz|work has joined #ruby
CausaMortis has joined #ruby
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
jackjackdripper1 has quit [Quit: Leaving.]
bigkevmcd has joined #ruby
jaguarma_ has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 276 seconds]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
k3rn31 has quit [Quit: Computer has gone to sleep.]
janno has joined #ruby
aries_liuxueyang has joined #ruby
kies has quit [Ping timeout: 264 seconds]
fenre has quit []
donske has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
giz|work has quit [Ping timeout: 252 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lxsameer has quit [Quit: WeeChat 1.5]
tristanp has quit [Read error: Connection reset by peer]
CausaMortis has quit [Ping timeout: 244 seconds]
tristanp has joined #ruby
fenre has joined #ruby
lxsameer has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elaptics is now known as elaptics`away
craigp has joined #ruby
ta_ has joined #ruby
tristanp_ has joined #ruby
biberu has joined #ruby
fenre has quit [Remote host closed the connection]
platzhirsch has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
Macaveli has joined #ruby
fenre has joined #ruby
ur5us has joined #ruby
sesquipedalian has quit [Ping timeout: 244 seconds]
tristanp has joined #ruby
TomyWork has joined #ruby
sesquipedalian has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
mark_66 has joined #ruby
platzhirsch has quit [Ping timeout: 252 seconds]
Couch has joined #ruby
dudepare has joined #ruby
ferr has joined #ruby
Cohedrin has joined #ruby
n1x-nz has quit [Ping timeout: 240 seconds]
SilverKey has joined #ruby
blackmesa has joined #ruby
futilegames has quit [Quit: futilegames]
UKn0Me has quit [Quit: Gone shopping.]
UKn0Me has joined #ruby
blackgoat has quit [Quit: WeeChat 1.4]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
snguyen has quit [Ping timeout: 244 seconds]
tacit7 has joined #ruby
troulouliou_div2 has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
tacit7 has quit [Ping timeout: 244 seconds]
dudepare has quit [Quit: Leaving]
tristanp_ has joined #ruby
madgen has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
stardiviner has joined #ruby
Dimik has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
benlieb has quit [Quit: benlieb]
tristanp_ has quit [Read error: Connection reset by peer]
djbkd has quit []
madgen has quit [Ping timeout: 264 seconds]
tristanp has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
tristanp has joined #ruby
n1x-nz has joined #ruby
n1x-nz has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Max SendQ exceeded]
mikecmpbll has joined #ruby
tvw has quit [Ping timeout: 264 seconds]
SilverKey has quit [Quit: Halted.]
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
UKn0Me is now known as testymctesto
testymctesto is now known as UKn0Me
pawnbox has joined #ruby
trista___ has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
Caerusz is now known as Caerus
<Caerus> hello #ruby
LoneHerm_ has quit [Remote host closed the connection]
<UKn0Me> hi Caerus
alfie_max15 has quit [Ping timeout: 276 seconds]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n1x-nz has joined #ruby
trista___ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
elaptics`away is now known as elaptics
mikecmpbll has joined #ruby
nobitanobi has joined #ruby
joonty has joined #ruby
madgen has joined #ruby
alfie_max15 has joined #ruby
charliesome has joined #ruby
edwinvdgraaf has joined #ruby
edwinvdgraaf has quit [Client Quit]
rkoller has joined #ruby
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
thejamespinto has quit []
postmodern has joined #ruby
skade has joined #ruby
zacts has quit [Ping timeout: 272 seconds]
tomphp has joined #ruby
edwinvdgraaf has joined #ruby
blackmesa has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
stardiviner has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
terlar has joined #ruby
platzhirsch has joined #ruby
nankyokusei has joined #ruby
Devalo has joined #ruby
p0p0pr37_ has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
alfie_max15 has quit [Ping timeout: 244 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
evidex has joined #ruby
Devalo has quit [Ping timeout: 264 seconds]
p0p0pr37 has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
p0p0pr37_ is now known as p0p0pr37
Caerus is now known as Caerus|Away
Caerus|Away is now known as Caerus
flopsec has quit [Quit: https://fnordserver.eu]
blaxter has joined #ruby
startupality has joined #ruby
zacts has joined #ruby
FooMunki has joined #ruby
neanderslob has joined #ruby
norc has joined #ruby
phredus_ has joined #ruby
<norc> Why the heck are ivar tables for a class initialized the first time any object of that class defines an ivar..
* norc sighs
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Shashikant86 has joined #ruby
madgen has quit [Ping timeout: 244 seconds]
Shashikant86 has quit [Max SendQ exceeded]
duncannz has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
<norc> Considering a class only makes sense if you want to instantiate it, and that is only useful if you want to carry state..
flopsec has joined #ruby
Shashikant86 has joined #ruby
saneax_AFK is now known as saneax
alfie_max15 has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
Ballo has quit [Ping timeout: 250 seconds]
jancel has joined #ruby
hightower3 has joined #ruby
jaguarmagenta has joined #ruby
<hightower3> Hey what is a double-quoted variant of %w() ?
<Caerus> 1.5gbs of ram make a whole lot of difference, now i can get back to studying ruby :)
<hightower3> found it, %W
<Caerus> %W
<Caerus> beat me :P
kareeoleez has quit [Remote host closed the connection]
<alfie_max15> Caerus, what's that?
<alfie_max15> what's diff btw %w & %W ?
tristanp has quit [Ping timeout: 258 seconds]
<Caerus> you cant insert variables with single quoted strings
<norc> Interesting, %W seems not to be documented
jancel has quit [Ping timeout: 240 seconds]
<Caerus> namely 'variable interpolation'
kareeoleez has joined #ruby
<norc> Oh no it is.
<alfie_max15> oh, ok... thanks Caerus :)
<norc> alfie_max15: It is the same difference between '' and "". Interpolation *and* escaped characters.
<alfie_max15> got it, didn't know %W even existed
jaguarmagenta has quit [Ping timeout: 260 seconds]
Gasher has joined #ruby
<Caerus> >> a = "A"; puts %w{ this is a #{a} }
<ruby[bot]> Caerus: # => this ...check link for more (https://eval.in/576807)
<Caerus> >> a = "A"; puts %W{ this is a #{a} }
<ruby[bot]> Caerus: # => this ...check link for more (https://eval.in/576808)
jaguarmagenta has joined #ruby
tristanp has joined #ruby
eGGshke has joined #ruby
mymosh has joined #ruby
jaguarmagenta has quit [Ping timeout: 276 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
startupality has joined #ruby
asktodd has joined #ruby
vdamewood has joined #ruby
madgen has joined #ruby
Snowy has joined #ruby
mymosh has left #ruby [#ruby]
troulouliou_div2 has joined #ruby
DaniG2k has joined #ruby
Macaveli has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
blackmesa has joined #ruby
goeast has joined #ruby
elementaru has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
c355e3b has joined #ruby
workmad3 has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
giz|work has joined #ruby
startupality has quit [Quit: startupality]
<jhass> spare the puts and would've shown inline ;)
weckl has joined #ruby
pawnbox has quit [Remote host closed the connection]
Snowy_ has joined #ruby
startupality has joined #ruby
GarethAdams has joined #ruby
GarethAdams has quit [Changing host]
GarethAdams has joined #ruby
evidex has quit [Remote host closed the connection]
evidex has joined #ruby
Snowy has quit [Ping timeout: 240 seconds]
tacit7 has joined #ruby
adac has joined #ruby
pawnbox has joined #ruby
alfie_max15 has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
tacit7 has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
tristanp has quit [Ping timeout: 258 seconds]
pawnbox has joined #ruby
GeekNerd has joined #ruby
GeekNerd has left #ruby ["Leaving"]
tristanp_ has quit [Read error: Connection reset by peer]
joonty has quit [Ping timeout: 264 seconds]
tristanp has joined #ruby
aupadhye has quit [Ping timeout: 246 seconds]
solars has quit [Ping timeout: 246 seconds]
joonty has joined #ruby
evidex has quit [Remote host closed the connection]
evidex has joined #ruby
Snowy_ has quit [Quit: ragequit]
LoneHermit has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
d0lph1n98 has quit [Ping timeout: 260 seconds]
alfie_max15 has joined #ruby
yude has joined #ruby
yude has quit [Client Quit]
yude_ has joined #ruby
Shashikant86 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHermit has quit [Ping timeout: 252 seconds]
antgel has joined #ruby
jenrzzz has joined #ruby
Shashikant86 has joined #ruby
blaxter has quit [Read error: Connection reset by peer]
Shashikant86 has quit [Client Quit]
ishe has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
dANOKELOFF has joined #ruby
allcentury has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
|ifei5good has joined #ruby
Macaveli has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
Macaveli has quit [Client Quit]
bluOxigen has joined #ruby
ocbtec has joined #ruby
diegoaguilar has joined #ruby
|ifei5g00d has quit [Ping timeout: 260 seconds]
startupality has quit [Quit: startupality]
Shashikant86 has joined #ruby
Water-4` has joined #ruby
Water-4 has quit [Ping timeout: 276 seconds]
mdw has joined #ruby
Anuj__ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
<Anuj__> Hey Guys
tristanp has joined #ruby
<jhass> hey lad
Anuj__ has quit [Client Quit]
Ishido has joined #ruby
DaniG2k has quit [Quit: leaving]
ishe has quit [Remote host closed the connection]
startupality has joined #ruby
conta has quit [Ping timeout: 260 seconds]
stannard has joined #ruby
n1x-nz has quit [Quit: Computer says no]
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
jeanlinux has joined #ruby
tristanp has joined #ruby
finisherr has quit [Quit: finisherr]
egglo has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
skade has quit [Quit: Computer has gone to sleep.]
davedev24 has joined #ruby
stannard has quit [Ping timeout: 244 seconds]
craigp_ has joined #ruby
blackgoat has joined #ruby
tristanp_ has joined #ruby
kareeoleez has quit [Remote host closed the connection]
craigp has quit [Ping timeout: 260 seconds]
tristanp has quit [Read error: Connection reset by peer]
jeanlinux has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
kareeoleez has joined #ruby
cyclonis_ has joined #ruby
jeanlinux has joined #ruby
jeanlinux has quit [Remote host closed the connection]
bronson has joined #ruby
tristanp_ has quit [Ping timeout: 264 seconds]
startupality has joined #ruby
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
Water-4` has quit [Remote host closed the connection]
tristanp has joined #ruby
bluOxigen has quit [Ping timeout: 276 seconds]
andikr has joined #ruby
nobitanobi has quit []
DoubleMalt has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
nankyokusei has joined #ruby
startupality has quit [Quit: startupality]
hk238 has joined #ruby
sdothum has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 240 seconds]
tristanp has joined #ruby
neanderslob has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 250 seconds]
CausaMortis has joined #ruby
diegoaguilar has quit [Read error: Connection reset by peer]
jeanlinux has joined #ruby
GodFather_ has joined #ruby
troulouliou_divn has joined #ruby
Azure has joined #ruby
jenrzzz has joined #ruby
diegoaguilar has joined #ruby
startupality has joined #ruby
skingsbu has joined #ruby
skingsbu has quit [Client Quit]
Shashikant86 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tristanp_ has joined #ruby
CausaMortis has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
tristanp has quit [Read error: Connection reset by peer]
Shashikant86 has joined #ruby
Azure has quit [Remote host closed the connection]
LinuxHippie has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
vondruch_ has joined #ruby
<rubirc> how do i create a hash from another hash?
<alfie_max15> rubirc, can you be more specific??
<rubirc> I have a 'special' hash class, i want to create an instance and pass just a normal hash
tristanp_ has joined #ruby
<rubirc> it should take the value of it and apply it to itself
startupality has quit [Quit: startupality]
conta has joined #ruby
<alfie_max15> what do you have so far??
<alfie_max15> code?
vondruch has quit [Ping timeout: 244 seconds]
jmignault has joined #ruby
tvw has joined #ruby
trista___ has joined #ruby
sepp2k has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
<rubirc> alfie_max15: http://pastebin.com/x7rTDWR8
<ruby[bot]> rubirc: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/2c130c56b1ec5b7200c088b9aecbe656
<ruby[bot]> rubirc: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
tristanp has quit [Ping timeout: 252 seconds]
_deadnull is now known as deadnull_
deadnull_ is now known as _deadnull
_deadnull is now known as deadnull_
<rubirc> handy bot
tristanp has joined #ruby
<lxsameer> is there any solution to run a piece of code when inheriting from a class on the child class?
<Caerus> rubirc, you're using the hash class as parent. you should be able to .new() like any other hash
trista___ has quit [Ping timeout: 252 seconds]
<Caerus> rubirc, with the code you gave you're just extending hash so might as well do that instead of renaming :)
freerobby has joined #ruby
tristanp_ has joined #ruby
beilabs has joined #ruby
beilabs has quit [Client Quit]
tristanp has quit [Read error: Connection reset by peer]
fenre has quit [Remote host closed the connection]
raz has joined #ruby
beilabs has joined #ruby
<raz> yay, rubocop -a just broke my code
fenre has joined #ruby
beilabs has quit [Client Quit]
Macaveli has joined #ruby
beilabs has joined #ruby
craigp_ has quit [Quit: WeeChat 1.5]
blingrang has joined #ruby
craigp has joined #ruby
beilabs has quit [Client Quit]
beilabs has joined #ruby
blingrang has quit [Client Quit]
<apeiros> rubirc: don't implement respond_to, implement respond_to_missing
ur5us has quit [Remote host closed the connection]
<apeiros> rubirc: and you can convert your hash to a normal hash by calling .to_h on it
<Zarthus> raz: luckily version control unbreaks everything!
Guest-ru has joined #ruby
rodfersou has joined #ruby
<raz> yep, curiously i can not reproduce it with a simple test-case, though. maybe they fixed that in rubocop in the past few days.
<raz> it changed $? != 0 into $CHILD_STATUS != 0
<apeiros> >> class Y < Hash; end; Y.new.to_h.class # @rubirc
<ruby[bot]> apeiros: # => Hash (https://eval.in/576887)
<raz> but the two are not the same
tessi_zz has quit [Ping timeout: 260 seconds]
<Zarthus> https://github.com/ruby/ruby/blob/trunk/lib/English.rb#L40 they sort of are - did you misconfigure a cop?
jrafanie_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tessi_zz has joined #ruby
startupality has joined #ruby
AlexJakeGreen has joined #ruby
startupality has quit [Client Quit]
blaxter has joined #ruby
<Caerus> oh hai apeiros
Snowy has joined #ruby
kies has joined #ruby
GodFather__ has joined #ruby
nhhc has joined #ruby
GodFather_ has quit [Ping timeout: 272 seconds]
craigp has quit [Ping timeout: 250 seconds]
griffindy has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
tristanp_ has quit [Read error: Connection reset by peer]
Biopandemic has joined #ruby
Ishido has quit [Ping timeout: 272 seconds]
Fernando-Basso has joined #ruby
LoneHermit has joined #ruby
tacit7 has joined #ruby
jnoob22 has joined #ruby
blackmesa has joined #ruby
tristanp has joined #ruby
ldnunes has joined #ruby
Biopandemic has quit [Max SendQ exceeded]
johnmilton has joined #ruby
Biopandemic has joined #ruby
d0lph1n98 has joined #ruby
rabbel has left #ruby [#ruby]
tacit7 has quit [Ping timeout: 244 seconds]
LoneHermit has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
blingrang has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
AlexJakeGreen has quit [Ping timeout: 276 seconds]
stardiviner has joined #ruby
k3rn31 has joined #ruby
mistermocha has quit [Ping timeout: 258 seconds]
AlexJakeGreen has joined #ruby
zotherstupidguy has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beilabs has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
giz|work has quit [Ping timeout: 258 seconds]
diegoaguilar has quit [Ping timeout: 240 seconds]
beilabs has joined #ruby
jmignault has quit [Quit: rcirc on GNU Emacs 24.5.1]
Biopandemic has quit [Ping timeout: 244 seconds]
jmignault has joined #ruby
<apeiros> ohai Caerus
Shashikant86 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackgoat has quit [Quit: WeeChat 1.4]
nadir has quit [Quit: Connection closed for inactivity]
nchambers is now known as MorganFreeman
wpp has joined #ruby
<Caerus> had to take a break while the ram was on its way
maatt83 has joined #ruby
MorganFreeman is now known as nchambers
zotherstupidguy has quit [Ping timeout: 240 seconds]
ropeney has joined #ruby
binaryplease has joined #ruby
Laos has joined #ruby
CloCkWeRX has quit [Ping timeout: 276 seconds]
giz|work has joined #ruby
<maatt83> Why do I get this :table key when converting OpenStruct in to json? http://pastebin.com/1ewgSi8H
<ruby[bot]> maatt83: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/711f3f37fb45eec799d17267302a0eaf
<ruby[bot]> maatt83: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
GodFather__ has quit [Ping timeout: 272 seconds]
k3rn31 has quit [Quit: Computer has gone to sleep.]
<maatt83> Why do I get this :table key when converting OpenStruct to json? https://gist.github.com/anonymous/711f3f37fb45eec799d17267302a0eaf
solars has joined #ruby
hanmac has quit [Ping timeout: 250 seconds]
blackgoat has joined #ruby
nadir has joined #ruby
eGGshke has quit [Remote host closed the connection]
k3rn31 has joined #ruby
jenrzzz has joined #ruby
tristanp_ has joined #ruby
auwooo-0x71 has joined #ruby
<apeiros> maatt83: using rails?
ta_ has quit [Remote host closed the connection]
tristanp has quit [Ping timeout: 272 seconds]
<maatt83> apeiros: yes. wrong channel?! :)
ta_ has joined #ruby
<apeiros> yes. at the very least omitted important context.
Gasher has quit [Ping timeout: 260 seconds]
Gasher has joined #ruby
<apeiros> but for the question you asked I can give you an answer: because that's how rails' to_json is defined for OpenStruct
postmodern has quit [Quit: Leaving]
ishe has joined #ruby
chouhoulis has joined #ruby
eGGshke has joined #ruby
AlexJakeGreen has quit [Ping timeout: 260 seconds]
solars has quit [Remote host closed the connection]
platzhirsch has quit [Read error: Connection reset by peer]
Shashikant86 has joined #ruby
solars has joined #ruby
tristanp_ has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
Biopandemic has joined #ruby
Shashikant86 has quit [Max SendQ exceeded]
<maatt83> apeiros: thanks
tristanp_ has joined #ruby
Guest-ru has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
ishe has quit [Remote host closed the connection]
GodFather__ has joined #ruby
hanmac has joined #ruby
<norc> apeiros: Not rails but ruby.
dionysus69 has quit [Ping timeout: 276 seconds]
<apeiros> norc: no
<apeiros> ruby's to_json differs
<apeiros> OpenStruct.new(foo: 'bar').to_json # => "\"#<OpenStruct foo=\\\"bar\\\">\""
<norc> apeiros: Oh well I should have corrected more precisely. The important bit is Object#to_json, as it iterates over instance variables (which @table is)
<apeiros> correct. but that's rails' behavior ;-)
<apeiros> and now would be a good time to point out that maatt83 cross posted without announcing
startupality has joined #ruby
auwooo-0x71 has quit [K-Lined]
<apeiros> and maatt83, ^ is the reason why it's considered rude to not announce cross-posts in all affected channels.
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
madgen has quit [Ping timeout: 276 seconds]
ksmutthu has quit [Ping timeout: 252 seconds]
AlexJakeGreen has joined #ruby
maucar has joined #ruby
maucar has quit [Max SendQ exceeded]
<maatt83> well, sorry about that!!
ishe has joined #ruby
startupality has quit [Client Quit]
startupality has joined #ruby
Macaveli has joined #ruby
solars has quit [Remote host closed the connection]
skalfyfan has joined #ruby
solars has joined #ruby
GBrawl has joined #ruby
jaguarmagenta has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
wpp has quit [Quit: Textual IRC Client: www.textualapp.com]
mdw has quit [Quit: Sleeping Zzzzz]
synthroid has joined #ruby
GarethAdams has quit [Quit: Leaving...]
startupality has quit [Client Quit]
symm- has joined #ruby
banister has joined #ruby
jaguarmagenta has quit [Ping timeout: 240 seconds]
cyclonis_ has quit [Quit: Lost terminal]
Laos has quit [Ping timeout: 264 seconds]
GarethAdams has joined #ruby
zenlot6 has joined #ruby
startupality has joined #ruby
wolfedale has joined #ruby
zenlot has quit [Ping timeout: 260 seconds]
<wolfedale> Hi
m_antis has quit [Ping timeout: 244 seconds]
startupality has quit [Client Quit]
crystal77 has quit [Quit: Textual IRC Client: www.textualapp.com]
gfvcastro has joined #ruby
Laos has joined #ruby
gfvcastro has quit [Client Quit]
mdw has joined #ruby
tristanp has joined #ruby
fmcgeough has joined #ruby
jancel has joined #ruby
elementaru has quit [Ping timeout: 250 seconds]
wolfedale has quit [Ping timeout: 258 seconds]
Biopandemic has quit [Ping timeout: 244 seconds]
tristanp_ has quit [Ping timeout: 250 seconds]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
crystal77 has joined #ruby
platzhirsch has joined #ruby
kristoff_ has joined #ruby
gfvcastro has joined #ruby
startupality has joined #ruby
kristoff_ has quit [Client Quit]
tacit7 has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
gfvcastro has quit [Client Quit]
jancel has quit [Ping timeout: 250 seconds]
Laos has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
kristofferR has quit [Ping timeout: 260 seconds]
dANOKELOFF has quit [Quit: Ex-Chat]
nankyokusei has joined #ruby
banister is now known as Kiev
tacit7 has quit [Ping timeout: 244 seconds]
Arcaire has joined #ruby
AlexJakeGreen has quit [Ping timeout: 252 seconds]
Kiev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
donske has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
GBrawl has quit [Quit: (null)]
startupality has quit [Quit: startupality]
startupality has joined #ruby
maucar has joined #ruby
jessu has joined #ruby
swills has quit [Remote host closed the connection]
vondruch_ has quit [Ping timeout: 244 seconds]
stardiviner has joined #ruby
Biopandemic has joined #ruby
craigp has joined #ruby
tuelz has joined #ruby
<Caerus> see ya later #ruby
Caerus is now known as Caerus|Away
vondruch has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
Snowy has quit [Quit: ragequit]
tristanp_ has joined #ruby
Laos has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
donske has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
banister has joined #ruby
tristanp has joined #ruby
stardiviner has quit [Ping timeout: 260 seconds]
stardiviner has joined #ruby
malconis has joined #ruby
Laos has quit [Client Quit]
tristanp_ has quit [Ping timeout: 250 seconds]
yude_ has quit [Read error: Connection timed out]
malconis has quit [Remote host closed the connection]
tristanp_ has joined #ruby
eGGshke has quit [Quit: Leaving...]
malconis has joined #ruby
banister has quit [Client Quit]
AlexJakeGreen has joined #ruby
jenrzzz has joined #ruby
yude has joined #ruby
gfvcastro has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
tristanp has joined #ruby
z4phod has quit [Ping timeout: 244 seconds]
c0mrad3 has joined #ruby
tristanp_ has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
tristanp_ has joined #ruby
Gasher has quit [Quit: Leaving]
hutch34 has joined #ruby
ChiefAlexander has joined #ruby
ramortegui has joined #ruby
gfvcastro has quit [Client Quit]
egglo has quit [Ping timeout: 276 seconds]
tristanp has quit [Ping timeout: 252 seconds]
alfie_max15 has quit [Remote host closed the connection]
tristanp has joined #ruby
mtkd has quit [Ping timeout: 246 seconds]
stardiviner has quit [Ping timeout: 272 seconds]
mtkd has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
banister has joined #ruby
fenre has quit [Remote host closed the connection]
fenre has joined #ruby
alfie_max15 has joined #ruby
giz|work has quit [Ping timeout: 264 seconds]
tacit7 has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Alazoral has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
strigon33 has joined #ruby
ptx0 has quit [Quit: leaving]
strigonLeader has quit [Ping timeout: 252 seconds]
moos3_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
aegis3121 has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
deadnull_ is now known as _deadnull
moos3 has quit [Ping timeout: 260 seconds]
ptx0 has joined #ruby
LoneHerm_ has joined #ruby
alfie_max15 has quit [Ping timeout: 258 seconds]
strigon33 has quit [Ping timeout: 246 seconds]
Coldblackice has quit [Ping timeout: 246 seconds]
wolfedale has joined #ruby
<wolfedale> Hi :-)
LoneHerm_ has quit [Ping timeout: 240 seconds]
<apeiros> hi wolfedale
tessi_zz has quit [Ping timeout: 258 seconds]
<wolfedale> There is a simply way to send an e-mail from ruby using mail-source-file ?
<apeiros> the mail gem can do that
tristanp_ has joined #ruby
<wolfedale> I did few tests with mikel/mail gem but it's changing my headers.
<wolfedale> So I cannot really use it now.
freerobby has quit [Quit: Leaving.]
<apeiros> do you have an example demonstrating said change of headers?
<wolfedale> apeiros: yes, just added comment to the bug list: https://github.com/mikel/mail/issues/919
joonty has quit [Read error: Connection reset by peer]
tessi_zz has joined #ruby
pawnbox has joined #ruby
joonty has joined #ruby
blackgoat has quit [Quit: WeeChat 1.5]
<apeiros> ok, that sounds like an actual issue and not just a misunderstanding of how the gem or mail in general works
<wolfedale> And I'm trying to avoid of saving each STDIN content of my e-mail to the temp file and use sendmail for it :(
<apeiros> I guess you could use Net::SMTP, but I don't think that's going to be simple
tristanp has quit [Ping timeout: 252 seconds]
<wolfedale> is it possible to use sendmail from ruby like: IO.popen('sendmail') { |proc| ... ?
<apeiros> should be, yes
<wolfedale> if I have my e-mail in STDIN.read, well some variable?
skade has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
gareth_ has joined #ruby
GarethAdams has quit [Read error: Connection reset by peer]
tristanp_ has quit [Ping timeout: 250 seconds]
mikar has quit [Quit: Connection closed for inactivity]
bronson has joined #ruby
gareth_ has quit [Client Quit]
gareth_ has joined #ruby
hightower3 has quit [Ping timeout: 244 seconds]
gareth_ has quit [Client Quit]
tristanp has joined #ruby
GarethAdams has joined #ruby
kobain has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
vondruch has quit [Ping timeout: 260 seconds]
jrafanie has joined #ruby
gfvcastro has joined #ruby
gfvcastro has quit [Client Quit]
superlou has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
gfvcastro has joined #ruby
solars has quit [Remote host closed the connection]
solars has joined #ruby
jrafanie_ has joined #ruby
duckpuppy has joined #ruby
NorthernHorse has joined #ruby
lxsameer has joined #ruby
jrafanie has quit [Read error: Connection reset by peer]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dhk has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
stardiviner has joined #ruby
<Cork> hmm running fork in a thin server causes the pid file for the server to be removed when the fork ends
<Cork> anyone have an idea how to get around that?
codecop has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
maatt83 has quit [Ping timeout: 250 seconds]
tristanp_ has joined #ruby
vondruch has joined #ruby
swills has joined #ruby
<jhass> probably and at_exit handler
<jhass> try quitting the fork with Kernel#exit!
k3rn31 has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
marr has joined #ruby
tristanp has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
SilverKey has joined #ruby
adac has quit [Ping timeout: 244 seconds]
diegoviola has joined #ruby
jenrzzz has joined #ruby
chouhoulis has quit [Remote host closed the connection]
tristanp_ has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby
<Cork> jhass: yup that worked
<Cork> jhass: is there a way to remove the at_exit hook?
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
eGGshke has joined #ruby
rbennacer has joined #ruby
<jhass> didn't notice any obvious one
tristanp_ has joined #ruby
watersoul_ has quit [Ping timeout: 240 seconds]
ramortegui has joined #ruby
stardiviner has quit [Ping timeout: 246 seconds]
jaruga___ has quit [Read error: Connection reset by peer]
lxsameer has quit [Ping timeout: 276 seconds]
jaruga___ has joined #ruby
<Cork> jhass: ok, this works so thx for the help
stannard has joined #ruby
<wolfedale> apeiros: ok I did it :P
jenrzzz has quit [Ping timeout: 272 seconds]
<wolfedale> that was actually easy.
cdg has joined #ruby
startupality has joined #ruby
binaryplease1 has joined #ruby
S01780_ has quit []
bluOxigen has joined #ruby
S01780_ has joined #ruby
startupality has quit [Client Quit]
S01780_ is now known as S01780
gnufied has joined #ruby
ta_ has quit [Remote host closed the connection]
karmatr0n has joined #ruby
asktodd has quit [Quit: Goodbye]
freerobby has joined #ruby
binaryplease has quit [Ping timeout: 246 seconds]
startupality has joined #ruby
jeanlinux has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
<NorthernHorse> hello - when using associative arrays what is the following symbol called? "=>"
<NorthernHorse> Eg:grades = { "Jane Doe" => 10, "Jim Doe" => 6 }
k3rn31_ has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
threh has joined #ruby
k3rn31 has quit [Read error: Connection reset by peer]
startupality has quit [Client Quit]
binaryplease1 is now known as binaryplease
<havenwood> NorthernHorse: It's called a "Hash" in Ruby and those are "Hash rockets"
_deadnull is now known as deadnull_
<A124> Is that a rocket in my pocket?
<NorthernHorse> havenwood: thank you!
<NorthernHorse> +1
SilverKey has joined #ruby
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
Couch has quit [Ping timeout: 244 seconds]
dopamean_ has joined #ruby
kareeoleez has quit [Remote host closed the connection]
banister has joined #ruby
axl_ has joined #ruby
kareeoleez has joined #ruby
Es0teric has joined #ruby
fenre has quit [Ping timeout: 272 seconds]
stannard has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 252 seconds]
stannard has joined #ruby
ocbtec has quit [Quit: leaving]
vondruch has quit [Quit: Ex-Chat]
vondruch has joined #ruby
tristanp has joined #ruby
nando293921 has joined #ruby
axl__ has joined #ruby
tristanp_ has quit [Ping timeout: 260 seconds]
solars has quit [Remote host closed the connection]
axl_ has quit [Ping timeout: 276 seconds]
tristanp_ has joined #ruby
stannard has quit [Remote host closed the connection]
solars has joined #ruby
<shevy> A124 no it is a socket in your pocket
TomyWork has quit [Ping timeout: 244 seconds]
trista___ has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
axl_ has joined #ruby
gfvcastro has quit [Quit: Textual IRC Client: www.textualapp.com]
gfvcastro has joined #ruby
<agent_white> Moin
axl__ has quit [Ping timeout: 246 seconds]
roamingdog has joined #ruby
zhunting has quit [Quit: WeeChat 1.4]
hutch34_ has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
allcentury has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
tristanp_ has joined #ruby
trista___ has quit [Ping timeout: 252 seconds]
Es0teric has quit [Ping timeout: 258 seconds]
norc has quit [Ping timeout: 250 seconds]
Es0teric has joined #ruby
nankyokusei has joined #ruby
SilverKey has quit [Quit: Halted.]
kareeoleez has quit [Remote host closed the connection]
tristanp_ has quit [Read error: Connection reset by peer]
dhollinger has joined #ruby
maloik has quit [Remote host closed the connection]
tristanp has joined #ruby
maloik has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
alfie_max15 has joined #ruby
nando293921 has quit [Ping timeout: 276 seconds]
tacit7` has joined #ruby
madgen has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
k3rn31_ has quit [Quit: Computer has gone to sleep.]
cdg_ has joined #ruby
tacit7 has quit [Ping timeout: 244 seconds]
xue_ has joined #ruby
cdg has quit [Ping timeout: 272 seconds]
xue_ has quit [Max SendQ exceeded]
tuelz has quit [Ping timeout: 264 seconds]
mdw has joined #ruby
<A124> apeiros I am out of luck trying to do the recursive conversion to hash.
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kgrz has quit [Ping timeout: 258 seconds]
<apeiros> A124: gist your current approach then
tristanp has quit [Read error: Connection reset by peer]
tacit7`` has joined #ruby
tristanp has joined #ruby
<A124> apeiros I tried more approaches so not sure if worthy, also do not have gist.
nettoweb has joined #ruby
<apeiros> um, you have a browser I supposed? gist.github.com
<apeiros> *suppose
jeanlinux has joined #ruby
rippa has joined #ruby
<apeiros> and if you have multiple approaches - gist the one you thought was the best. or gist multiple.
jenrzzz has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
last_staff has quit [Quit: last_staff]
tacit7` has quit [Ping timeout: 244 seconds]
binaryplease has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
Devalo has joined #ruby
<apeiros> no need for send there, unless you're using an outdated ruby
<A124> OpenStruct to Hash recursively would help also.
<A124> I am using 1.8 upwards, depends on environment
<apeiros> 1.8?
nettoweb has quit [Client Quit]
idefine has joined #ruby
<apeiros> you're aware that 1.8 and 1.9 are beyond EOL?
eGGshke_ has joined #ruby
threh has quit [Ping timeout: 260 seconds]
jeanlinux has quit [Ping timeout: 258 seconds]
<A124> Currently 2.2.1, but certain situations yes. I am
idefine has quit [Read error: Connection reset by peer]
<jhass> and 2.0
<apeiros> can you add a small piece of data to reproduce your problem?
idefine has joined #ruby
tuelz has joined #ruby
<A124> Let me make that generic then.
SilverKey has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
pandaant has joined #ruby
anisha_ has joined #ruby
habitullence has quit [Ping timeout: 276 seconds]
flughafen_ has joined #ruby
stannard has joined #ruby
Coldblackice has joined #ruby
anisha has quit [Ping timeout: 276 seconds]
v1n has quit [Quit: WeeChat 1.0.1]
tacit7`` has quit [Remote host closed the connection]
habitullence has joined #ruby
v0n has joined #ruby
tacit7`` has joined #ruby
jaruga___ has quit [Quit: jaruga___]
madgen has quit [Ping timeout: 252 seconds]
snockerton has joined #ruby
imperator has joined #ruby
xue_ has joined #ruby
hutch34_ has quit [Ping timeout: 272 seconds]
<apeiros> personally I'd use refinements, but that won't work on ruby <2.1
jeanlinux has joined #ruby
ocbtec has joined #ruby
<A124> apeiros Object.send(:include, ToHash) makes havoc on classes like string
moeabdol has quit [Ping timeout: 276 seconds]
<apeiros> it does not
<apeiros> but if it would, refinements would help
<A124> ruby-2.2.1/lib/ruby/2.2.0/irb/workspace.rb:106:in `sub': can't convert String to Hash (String#to_hash gives String) (TypeError)
<A124> Test data :https://paste.fedoraproject.org/370733/88610146/
Es0teric has quit [Ping timeout: 252 seconds]
<apeiros> um, you did notice that I didn't call my method "to_hash", yes?
aegis3121 has quit [Ping timeout: 244 seconds]
<apeiros> if you don't want to patch Object, you'll have to replace every v.to_recursive_hash with `if v.respond_to?(:to_recursive_hash) then v.to_recursive_hash elsif v.respond_to?(:to_h) then v.to_h else v end`
<apeiros> up to you
tvw has quit [Ping timeout: 276 seconds]
theunraveler has joined #ruby
zast has joined #ruby
pandaant has quit [Remote host closed the connection]
<apeiros> you can also always make it a pseudo-function and not patch any class. but then you'll have to handle the recursion within that method. e.g. ToHash.convert(value)
<A124> Yeah, I missed that, too much open stuff. But still does not work, as it is not generic struct. But when I convert to openstruct then to hash gives empty output.
futilegames has joined #ruby
beilabs has quit [Read error: Connection reset by peer]
lukec has joined #ruby
ferr has quit [Quit: WeeChat 1.5]
Es0teric has joined #ruby
beilabs has joined #ruby
Es0teric has quit [Max SendQ exceeded]
<apeiros> what?
weemsledeux has joined #ruby
Es0teric has joined #ruby
v0n has quit [Quit: WeeChat 1.0.1]
v0n has joined #ruby
frem_ has joined #ruby
chopin has joined #ruby
lxsameer has joined #ruby
<A124> The bottom is converted to ostruct, calling upon to_recursive_hash gives nil. Will look into refinements, thanks for tip.
terlar has quit [Ping timeout: 260 seconds]
aufi has quit [Ping timeout: 260 seconds]
aegis3121 has joined #ruby
sneakersec has quit [Ping timeout: 276 seconds]
<apeiros> your problem is with your open windows I think
kgrz has joined #ruby
<apeiros> because none of your examples gives nil with my code.
AlexJakeGreen has quit [Remote host closed the connection]
idefine has quit [Remote host closed the connection]
gheegh has joined #ruby
idefine has joined #ruby
rodfersou has quit [Quit: leaving]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
blackmesa has joined #ruby
deadnull_ has quit [Quit: Bye]
<apeiros> no patching. and works with both of your examples.
yardenbar has joined #ruby
<apeiros> only tested with ruby 2.3, I don't do old rubies.
<apeiros> A124: ^
futilegames has quit [Quit: futilegames]
tvw has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
lagweezle has quit [Quit: leaving]
wolfedale has quit [Ping timeout: 258 seconds]
tristanp has joined #ruby
kareeoleez has joined #ruby
andikr has quit [Remote host closed the connection]
<A124> apeiros You are right, no idea where the problem was, but with clean irb it works! And the second one also, Ruby 2.2.1
flughafen_ has quit [Ping timeout: 246 seconds]
DoubleMalt has quit [Remote host closed the connection]
superlou has quit [Quit: Leaving]
kam270 has joined #ruby
jinie_ is now known as jinie
symm- has quit [Quit: Leaving...]
NorthernHorse has quit [Quit: ChatZilla 0.9.92 [Firefox 46.0.1/20160511224154]]
<A124> Thank you very much. Refinements are handy to know, I missed them, did not use >= 2.1 recently more.
scottschecter has quit [Remote host closed the connection]
scottschecter has joined #ruby
stardiviner has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
codecop has joined #ruby
gregf has quit [Quit: WeeChat 1.5]
Es0teric_ has joined #ruby
yardenbar has quit [Ping timeout: 272 seconds]
Cohedrin has joined #ruby
Es0teric has quit [Ping timeout: 264 seconds]
JesseH has joined #ruby
codecop has quit [Remote host closed the connection]
smathy has joined #ruby
antgel has quit [Ping timeout: 260 seconds]
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gfvcastro has quit [Ping timeout: 244 seconds]
kareeoleez has quit [Remote host closed the connection]
symm- has joined #ruby
phutchins has joined #ruby
<phutchins> Hi
RobertBirnie has joined #ruby
<phutchins> I'm trying to do something like.... if var['bleh']['myarg'] then mystring += "-" + var['bleh']['myarg']
<phutchins> But, if var['bleh']['myarg'] is nil, it fails saying undefined method + for nilclass... What is the proper way to do that?
edwinvdgraaf has quit [Ping timeout: 244 seconds]
<gregf_> mystring += "-" + (var['bleh']['myarg'] ||'')?
ponga has joined #ruby
nettoweb has joined #ruby
<phutchins> gregf_: ahhhh, thanks
<gregf_> tias :)
dopamean_ has quit [Quit: WeeChat 1.3]
<A124> phutchins << is faster then concatenation.
watersoul has joined #ruby
troulouliou_divn has quit [Quit: Leaving]
<A124> gregf_ you missed one thing, if it is nil, it is never evaluated.
jancel has joined #ruby
<phutchins> gregf_: actually in that case it still adds the '-' tho, which I only want to add if the variable is defined... so could I do mystring += ("-" + var['bleh']['myarg'] || '')?
<A124> phutchins You provided wrong example or I missed something.
<gregf_> >> a = "foo"; puts a.__id__; b = nil; a << "-" << ( b || "" ); puts a.__id__, a
<ruby[bot]> gregf_: # => 547122410 ...check link for more (https://eval.in/577154)
nettoweb has quit [Client Quit]
kam270 has quit [Ping timeout: 250 seconds]
<phutchins> A124: How so?
skalfyfan has joined #ruby
<gregf_> phutchins: ah - ok
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<phutchins> A124: So basically, I have a version string. Something like "v0.7.3". If another attribute is set, I want to add a dash and then that attribute on to the end of the version string
<phutchins> So... If no attribute is set, it would be v0.7.3. If the attribute is set to STAGING, it would end up giving me v0.7.3-STAGING
<phutchins> The key is that I don't want the dash if the attribute is not set.
hobodave has joined #ruby
<phutchins> A124: and yeah, << is faster but not extremely worried about that atm.
<gregf_> phutchins: a << (!b.nil? ? "-" : "")
<norc__> >> str = "ab"; if a = [?c]; str << a; end
<ruby[bot]> norc__: # => /tmp/execpad-300189f52f4c/source-300189f52f4c:2: warning: found = in conditional, should be == ...check link for more (https://eval.in/577156)
ishe has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
<norc__> ^- phutchins
<phutchins> gregf_: Ah, yeah that looks like it might work. let me give it a shot
<norc__> Ops
<norc__> >> str = "ab"; if a = [?c][0]; str << a; end # phutchins
<ruby[bot]> norc__: # => "abc" (https://eval.in/577157)
idefine_ has joined #ruby
<norc__> That is at least readable.
<phutchins> norc__: yeah, typo on m y part.
<norc__> Any attempt to mess with ternary or binary operators might be a bit more compact but ultimately hides your intent and makes it really hard to read.
Corrosive_ is now known as CorOne
weemsledeux has quit [Ping timeout: 260 seconds]
mradmacher has joined #ruby
amclain has joined #ruby
<hobodave> hi guys, I'm having trouble figuring out how to clean up after using ActiveSupport::Subscriber.attach_to in a spec. The attachment (understandably) persists across tests and causes test pollution.
<norc__> ?rubyonrails
<ruby[bot]> norc__: I don't know anything about rubyonrails
<hobodave> gist inbound
<aegis3121> ?rails
<norc__> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<A124> phutchins So your example was wrong, it did use twice the same value, both in conditional and later.
<hobodave> duh :)
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<hobodave> clicked wrong room, thanks!
blackmesa has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
conta has quit [Ping timeout: 276 seconds]
aegis3121 has quit [Quit: Textual IRC Client: www.textualapp.com]
<gregf_> >> [nil, 100].map { |b| a = "foo"; a << ("-" << (!b.nil? ? b : "")); p a } # phutchins: got that so wrong :|. *been writing some php* :|.
<ruby[bot]> gregf_: # => "foo-" ...check link for more (https://eval.in/577158)
idefine has quit [Ping timeout: 260 seconds]
Guest38 has joined #ruby
hutch34_ has joined #ruby
dionysus69 has joined #ruby
jancel has quit [Remote host closed the connection]
<phutchins> gregf_: haha :)
binaryplease has joined #ruby
kgrz has quit [Quit: leaving]
<phutchins> gregf_: storj_protocol << (!node['bridge-api']['protocol'].nil? ? "-" : "")
terminalrecluse has joined #ruby
<gregf_> there even ("-" << b || '')
<phutchins> That gives me undefined method << for nilclass
kgrz has joined #ruby
idefine_ has quit [Ping timeout: 260 seconds]
lukec has quit [Quit: lukec]
hobodave_ has joined #ruby
idefine has joined #ruby
synthroid has quit [Remote host closed the connection]
dopie has quit [Quit: Leaving]
<gregf_> >> [nil, 100].each { |b| p b ;a = "foo"; a << "- #{b || ""}"; p a }
<ruby[bot]> gregf_: # => nil ...check link for more (https://eval.in/577159)
kgrz has quit [Client Quit]
craigp has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
tristanp has left #ruby [#ruby]
kgrz has joined #ruby
kgrz has quit [Client Quit]
gtsai has joined #ruby
kgrz has joined #ruby
whathappens has joined #ruby
tristanp has joined #ruby
hutch34_ has quit [Ping timeout: 264 seconds]
hobodave has quit [Ping timeout: 246 seconds]
LoneHermit has joined #ruby
<gregf_> phutchins: sorry, what you want is : if node['bridge-api']['protocol'] is set return "- node['bridge-api']['protocol']" else "" ?
hobodave_ is now known as hobodave
<phutchins> gregf_: so if node['bridge-api']['protocol'] is set, return "-" + node['bridge-api']['protocol']. If it's not set, dont' return anything (or blank string)
<gregf_> sure
binaryplease has quit [Ping timeout: 272 seconds]
kareeoleez has joined #ruby
<phutchins> >> version = "v0.7.3"; env = "STAGING"; protocol = version << ("-" << env || '')
<ruby[bot]> phutchins: # => "v0.7.3-STAGING" (https://eval.in/577170)
kgrz has quit [Client Quit]
<smathy> >> var = {}; "-#{var.dig "bleh", "myarg"}"
<phutchins> >> version = "v0.7.3"; env = nil; protocol = version << ("-" << env || '')
<ruby[bot]> smathy: # => "-" (https://eval.in/577171)
<ruby[bot]> phutchins: # => no implicit conversion of nil into String (TypeError) ...check link for more (https://eval.in/577172)
<phutchins> ^ Thats my problem :)
stannard has quit [Remote host closed the connection]
kgrz has joined #ruby
<gregf_> aha
[Butch] has joined #ruby
kgrz has quit [Client Quit]
<phutchins> I could just set env to "" if I don't want to have it set but still would have to do an if env == "" or something...
<gregf_> >> version = "v0.7.3"; env = nil; protocol = version << ("-" << (env || ''))
<ruby[bot]> gregf_: # => "v0.7.3-" (https://eval.in/577175)
kgrz has joined #ruby
<gregf_> *note the parens*
<phutchins> But it's still got the - , dont' want the -
<gregf_> sure
idefine has quit [Remote host closed the connection]
<smathy> protocol += "-#{env}" if env
<gregf_> >> version = "v0.7.3"; env = nil; protocol = version << (env ? "-" << env : ''))
<ruby[bot]> gregf_: # => /tmp/execpad-0f6dd60707d5/source-0f6dd60707d5:2: syntax error, unexpected ')', expecting keyword_end ...check link for more (https://eval.in/577177)
joonty has quit [Ping timeout: 272 seconds]
LoneHermit has quit [Ping timeout: 276 seconds]
dopamean_ has joined #ruby
hutch34_ has joined #ruby
fenre has joined #ruby
benlieb has joined #ruby
senayar has quit []
evidex has quit [Remote host closed the connection]
<phutchins> gregf_: An yeah, that seems to work!
<gregf_> >> [nil, 100].each{ |env| version = "v0.7.3";protocol = version << (!env.nil? ? ( "-" << env.to_s ) : ""); p protocol }
<ruby[bot]> gregf_: # => "v0.7.3" ...check link for more (https://eval.in/577181)
<phutchins> >> version = "v0.7.3"; env2 = nil; protocol = version << (env2 ? "-" << env2 : '')
<ruby[bot]> phutchins: # => "v0.7.3" (https://eval.in/577182)
<gregf_> *weeps*
<phutchins> >> version = "v0.7.3"; env2 = "STAGING"; protocol = version << (env2 ? "-" << env2 : '')
<ruby[bot]> phutchins: # => "v0.7.3-STAGING" (https://eval.in/577183)
<phutchins> :D
gtsai_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
<phutchins> gregf_ & norc__ thanks a ton :)
I has joined #ruby
hutch34_ has quit [Ping timeout: 244 seconds]
I is now known as Guest16410
gtsai has quit [Ping timeout: 240 seconds]
mistermocha has quit [Remote host closed the connection]
gheegh has quit [Ping timeout: 276 seconds]
blackmesa has joined #ruby
Guest16410 has quit [Client Quit]
dopie has joined #ruby
skolman_ has joined #ruby
ICantCook has quit [Ping timeout: 276 seconds]
ICantCook has joined #ruby
ICantCook has quit [Max SendQ exceeded]
ICantCook has joined #ruby
skolman_ has quit [Remote host closed the connection]
skolman_ has joined #ruby
mark_66 has quit [Remote host closed the connection]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
idefine has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tewlmidget has joined #ruby
tewlmidget has quit [Client Quit]
d0lph1n98 has quit [Ping timeout: 240 seconds]
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
kgrz has quit [Quit: leaving]
synthroid has joined #ruby
kgrz has joined #ruby
ramfjord has joined #ruby
idefine has quit [Remote host closed the connection]
ponga has quit []
tristanp_ has joined #ruby
tildes_ has joined #ruby
[Butch] has quit [Read error: Connection reset by peer]
tristanp has quit [Ping timeout: 250 seconds]
[Butch] has joined #ruby
tristanp has joined #ruby
nankyokusei has joined #ruby
vdamewood has quit [Quit: Life beckons.]
tristanp_ has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
moeabdol has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
chopin has quit []
nettoweb has joined #ruby
idefine has joined #ruby
goeast has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
kgrz has quit [Quit: leaving]
moeabdol has quit [Client Quit]
jackjackdripper has quit [Client Quit]
anisha_ has quit [Quit: Leaving]
kgrz has joined #ruby
zenlot has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
zenlot6 has quit [Ping timeout: 264 seconds]
cdg_ has quit [Remote host closed the connection]
idefine has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 276 seconds]
moeabdol has joined #ruby
eGGshke has quit [Ping timeout: 240 seconds]
ponga has joined #ruby
gregf has joined #ruby
idefine has joined #ruby
skalfyfan has quit [Ping timeout: 260 seconds]
bensarz has joined #ruby
tomphp has joined #ruby
ferr has joined #ruby
zacsek_ has joined #ruby
mistermocha has joined #ruby
zacsek has joined #ruby
jenrzzz has joined #ruby
zacsek_ has quit [Client Quit]
idefine has quit [Ping timeout: 240 seconds]
alfie_max15 has quit [Ping timeout: 252 seconds]
whathappens has quit [Remote host closed the connection]
mleung has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
SilverKey has quit [Quit: Halted.]
goeast has joined #ruby
idefine has joined #ruby
adac has joined #ruby
tristanp_ has joined #ruby
mistermo_ has joined #ruby
Es0teric_ has quit [Quit: Nigga, im OUTIE 5000]
Es0teric has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
aegis3121 has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
hahuang65 has joined #ruby
stannard has joined #ruby
zacsek has quit [Quit: Leaving]
jancel has joined #ruby
zacsek has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
mistermocha has quit [Ping timeout: 260 seconds]
tristanp has joined #ruby
tristanp_ has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
nando293921 has joined #ruby
idefine has quit [Ping timeout: 264 seconds]
Asher has quit [Quit: Leaving.]
egglo has joined #ruby
chipotle has joined #ruby
tristanp_ has joined #ruby
mikecmpbll has joined #ruby
tristanp has quit [Ping timeout: 276 seconds]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
hutch34_ has joined #ruby
stannard has quit []
aswen has joined #ruby
gtsai_ has quit [Ping timeout: 272 seconds]
miqlas-H has joined #ruby
<miqlas-H> Hi Guys!
blackmesa has quit [Ping timeout: 258 seconds]
ChiefAlexander has quit [Remote host closed the connection]
<miqlas-H> I'm trying to compile the latest Ruby stable for Haiku with gcc5, but it cannot find out the size of "long long". Can somebody help me, where is the problem? I got this config.log: http://termbin.com/2rl4
CloCkWeRX has quit [Ping timeout: 260 seconds]
|2701 has joined #ruby
whathappens has joined #ruby
platzhirsch has quit [Quit: WeeChat 1.4]
axl_ has quit [Ping timeout: 260 seconds]
whathapp_ has joined #ruby
moredhel has joined #ruby
solars has quit [Remote host closed the connection]
kgrz has quit [Ping timeout: 250 seconds]
rcvalle has joined #ruby
rbennacer has joined #ruby
jeanlinu_ has joined #ruby
griffindy has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<imperator> miqlas-H, not sure, I think you might have better luck in #haiku
axl_ has joined #ruby
<miqlas-H> imperator: tried, no luck yet
last_staff has joined #ruby
jeanlinux has quit [Ping timeout: 260 seconds]
whathappens has quit [Ping timeout: 276 seconds]
chey has joined #ruby
* imperator hasn't tried haiku in a while, should look at it again
solars has joined #ruby
tildes_ has quit [Ping timeout: 272 seconds]
synthroid has quit [Remote host closed the connection]
<chey> Some interpreters for android suck
<miqlas-H> imperator: i see this in the config.log:
<miqlas-H> configure:11616: ./conftest
<miqlas-H> runtime_loader: Cannot open file libssp.so.0: No such file or directory
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<chey> Code that works on pc dont work for android
<miqlas-H> Maybe it tries to link with a lib, what not available....
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
hightower3 has joined #ruby
m_antis has joined #ruby
<jhass> miqlas-H: can you show the regular configure output too? that is a bit much to go through if you don't know what you're looking for...
jhack has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
<miqlas-H> jhass: give me a second...
tristanp has joined #ruby
mikecmpbll has joined #ruby
GodFather__ has quit [Ping timeout: 272 seconds]
<miqlas-H> jhass: here is it: http://termbin.com/ngr3
<chey> Guys is puts "My name is ", FirstName right?
djbkd has joined #ruby
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
<miqlas-H> It looks like libssp is a part of gcc. Maybe the gcc for Haiku doesn't have this lib.
conta has joined #ruby
<miqlas-H> I'm grepping the whole source tree for it
<chey> *stress
ljames has quit []
<jhass> ?try chey
<ruby[bot]> chey: Why don't you try it and see for yourself?
Gasher has joined #ruby
solars has quit [Remote host closed the connection]
<chey> It works on my pc just saying
<miqlas-H> No, i actually have libssp.so.0
solars has joined #ruby
edwinvdgraaf has joined #ruby
m_antis has quit [Ping timeout: 250 seconds]
bmurt has joined #ruby
<chey> Cheers though guys
<miqlas-H> chey: Thank you, now I'm sure that my IRC UTF-8 Ready (TM)
conta has quit [Ping timeout: 272 seconds]
Asher has joined #ruby
<chey> Cool
<chey> Im using AndChat it gives UTF-8 option
CloCkWeRX has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
whathapp_ has quit [Remote host closed the connection]
bronson has joined #ruby
symm- has quit [Quit: Leaving...]
<chey> Getting a job using ruby is next to nill here sucks hu
<imperator> miqlas-H, quite old, but perhaps relevant? https://dev.haiku-os.org/ticket/6661
xue_ has quit [Ping timeout: 244 seconds]
mordocai has joined #ruby
<miqlas-H> chey: sucks hu?
quarcu has quit [Quit: Peace.]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwinvdgraaf has quit [Read error: Connection reset by peer]
<chey> Yea well people dont seem to know the potential
edwinvdgraaf has joined #ruby
<miqlas-H> but what do you mean with "hu"?
craigp has joined #ruby
synthroid has joined #ruby
<mordocai> Anyone have a project they know of with lots of rspec tests I can run? I'm looking for a quick test trying to narrow down why our rspec tests are super slow on one machine and not on others (and yes, i've checked the obvious things. It doesn't appear to be CPU, disk, or memory bottlenecks so...)
Asher has quit [Quit: Leaving.]
<chey> Sorry thats my accent "Hu" means dont you think?
Asher has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
<miqlas-H> Hungary?
skweek has quit [Ping timeout: 240 seconds]
<chey> No Guernsey
mikecmpbll has joined #ruby
<miqlas-H> Szia chey!
<chey> Guernsey uk
<miqlas-H> I don't care :)
<miqlas-H> I know yust Scarfolk, UK.
<chey> Ok
<miqlas-H> just...
<chey> Near france anyways...
<chey> At least coding is in english
SilverKey has joined #ruby
<chey> Well as we say "chow f nw"
machinewar has joined #ruby
chey has left #ruby ["Leaving"]
<machinewar> anyone know if can create Tempfile where uniq_id is only integers?
<machinewar> or if maybe it does only use numbers?
solars has quit [Remote host closed the connection]
solars has joined #ruby
<miqlas-H> imperator: this ticket looks relevant. Thank you, i reported it again with all the required info.
morochena has joined #ruby
ChiefAlexander has joined #ruby
morochena has quit [Client Quit]
hobodave has joined #ruby
shinnya has joined #ruby
tildes_ has joined #ruby
tristanp_ has joined #ruby
nando293921 has quit [Quit: Lost terminal]
chipotle has quit [Ping timeout: 246 seconds]
nando293921 has joined #ruby
machinewar has quit []
tristanp has quit [Ping timeout: 260 seconds]
<miqlas-H> imperator: it surely relevant bugreport, because i added the folder of the missing lib to the LD_PATH, and it works now.
solars has quit [Remote host closed the connection]
jancel has quit [Remote host closed the connection]
joes has quit [Remote host closed the connection]
chipotle has joined #ruby
jancel has joined #ruby
jhack has quit [Quit: jhack]
axl_ has quit [Quit: axl_]
solars has joined #ruby
<miqlas-H> Guys, is there any way to colorize the other configure scripts output, like the ruby configure doing it? Something, what not depends on autoconf... I mean something in bash or like that.
LoneHerm_ has joined #ruby
ishe has joined #ruby
jenrzzz has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
tildes_ has quit [Ping timeout: 246 seconds]
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoaguilar has joined #ruby
<miqlas-H> OMG, now during the make: ld: miniruby: hidden symbol `__stack_chk_fail_local' isn't defined
diegoaguilar has quit [Max SendQ exceeded]
diegoaguilar has joined #ruby
saneax is now known as saneax_AFK
LoneHerm_ has quit [Ping timeout: 276 seconds]
spider-mario has joined #ruby
mordocai has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
<jhass> smells like a libc incompatibility
<miqlas-H> jhass: yep, i need to report it also
jenrzzz has quit [Ping timeout: 246 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> people seem to workaround it by turning the stack protector off
<jhass> CFLAGS="-fno-stack-protector -fno-stack-protector-all"
<miqlas-H> jhass: i'm out of ideas, what kind of programs should i try to port for Haiku. Can you tell me, what is your favorite CLI or QT4 programs?
<jhass> miqlas-H: Crystal :P
<miqlas-H> Is it depend on Ruby? Because we have just 2.2.2.
<jhass> nope, llvm 3.5 or 3.6 atm
<jhass> probably llvm 3.7 and/or 3.8 soonish
<miqlas-H> any URL for Crystal? It is not so unique...
dmr8 has joined #ruby
yfeldblum has joined #ruby
FooMunki has quit [Quit: FooMunki]
<miqlas-H> jhass: thanks, downloading...
<jhass> you need crystal to compile crystal, so that should give you some challenge :P
<miqlas-H> jhass: ummm, your tip isn't work for Haiku: "checking whether the C compiler works... no"
<jhass> (let's move that to #crystal-lang btw)
yfeldblum has quit [Remote host closed the connection]
<jhass> too bad
<jhass> was just oracled out of the first google result anyway
whathapp_ has joined #ruby
whathapp_ has quit [Read error: Connection reset by peer]
<imperator> miqlas-H, great, glad it worked!
axl_ has joined #ruby
B1n4r10 has joined #ruby
<miqlas-H> imperator: you can tell me too your favorite cli or qt tool, and i try to compile and pakage it for Haiku
<miqlas-H> jhass: OMG! I hate the circualr dependecies.
synthroid has quit [Remote host closed the connection]
<imperator> hm, don't really have one for qt
<imperator> for cli, dunno that i have a favorite, so much as what i'm using right now
<imperator> azure cli maybe?
synthroid has joined #ruby
flughafen_ has joined #ruby
zacsek has quit [Quit: Leaving]
Helheim has quit [Remote host closed the connection]
gizmore has joined #ruby
FooMunki has joined #ruby
Puffball has quit [Quit: Puffball]
ramfjord has joined #ruby
ChiefAlexander has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
ChiefAlexander has joined #ruby
<miqlas-H> imperator and jhass: i look into them, and we'll see what can i do.
tacit7`` has quit [Ping timeout: 244 seconds]
<miqlas-H> racket made me a big pain in the as*, so i cannot guarantee anything.
tristanp has joined #ruby
whathapp_ has joined #ruby
<A124> What is the best way to recursively (inplace, but not requirement) modify strings in nested struct/hash/array ?
<miqlas-H> We got llvm, i just instaling it now.
tacit7`` has joined #ruby
whathapp_ has quit [Remote host closed the connection]
tristanp_ has quit [Ping timeout: 260 seconds]
kirun has joined #ruby
<miqlas-H> jhass: does crystal require docker?
<jhass> no
<miqlas-H> te .travis.yml defining it
<jhass> yeah, we're using docker to run in a 32bit environment on Travis
<jhass> easier than trying to use the lib32- madness
ishe has quit [Remote host closed the connection]
Cohedrin has joined #ruby
<miqlas-H> jhass: ok, thanks. We doesn't have docker, so i had fear...
tristanp_ has joined #ruby
Certainty has joined #ruby
<Certainty> evening
jancel has quit [Remote host closed the connection]
hazelux has joined #ruby
tristanp has quit [Ping timeout: 250 seconds]
jancel has joined #ruby
jancel has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 258 seconds]
<miqlas-H> certainty: tell me what is your favorite cli or qt programs
sauvin has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
t0rc has joined #ruby
<Certainty> miqlas-H: hmm let me think. Favorite cli could be hmm, ghci
zast has quit [Remote host closed the connection]
joes has joined #ruby
<miqlas-H> lemme see that...
joes has quit [Client Quit]
<miqlas-H> I'm porting things to Haiku, but i'm out of ideas, that's why i need inputs.
bmurt has joined #ruby
<miqlas-H> certainty: we already got a Haskell compiler i think
joes has joined #ruby
<Certainty> miqlas-H: ah ok. Well let me think again. What about tcpdump?
<Certainty> or ngrep
prestorium has quit [Ping timeout: 244 seconds]
<Certainty> or sl
jenrzzz has quit [Ping timeout: 264 seconds]
<miqlas-H> certainty: tcpdump i think depend on pcap, right? We don't support pcap yet
goeast has quit [Remote host closed the connection]
<Certainty> yep it does
<miqlas-H> that's why we don't have nmap yet
CloCkWeRX has quit [Quit: Leaving.]
diegoviola has quit [Ping timeout: 240 seconds]
<miqlas-H> any link to sl except second life or daimler.com?
<jhass> steam locomotive ;)
<norc__> jhass, am I right in assuming that you are somehow involved with crystal?
<jhass> I do have commit rights, yeah
zeroDi has joined #ruby
<norc__> I was talking about the drug, but we can also work with this topic.
tildes_ has joined #ruby
<miqlas-H> norc, it is not normal, but on meth it is.
<miqlas-H> jhass: nobody mistyping things on Haiku. It is suicidal, because everybody have root rights.
whathappens has joined #ruby
<jhass> heh, really?
roamingdog has quit [Remote host closed the connection]
t0rc has quit [Quit: WeeChat 1.5]
<miqlas-H> yeah, if you mistype something, your system will die. so better not mistype.
<miqlas-H> ~> id
<miqlas-H> uid=0(user) gid=0(root) groups=0(root),101(party)
whathappens has quit [Remote host closed the connection]
<Certainty> miqlas-H: https://github.com/mtoyoda/sl
whathappens has joined #ruby
prestorium has joined #ruby
<miqlas-H> certainty: nobody makes mistakes in Haiku worlds. We don't need this utility.
whathappens has quit [Remote host closed the connection]
<jhass> also you're too slow :P
<Certainty> then, I don't know. What about tr?
<Certainty> seems so :S
<miqlas-H> we are root, if we make a mistake, the whole system will die.
<miqlas-H> certainty: any url for that?
nankyokusei has joined #ruby
siovene has quit [Quit: Connection closed for inactivity]
<jhass> it's a Gnu coreutil ...
idefine has joined #ruby
<jhass> or in any coreutil collection really
<miqlas-H> we have gnu coreutils package already.
<Certainty> netcat?
whathappens has joined #ruby
idefine has quit [Ping timeout: 250 seconds]
<miqlas-H> depend on pcap?
nankyokusei has quit [Ping timeout: 272 seconds]
mtkd has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dhollinger has quit [Read error: Connection reset by peer]
<jhass> I hope not
<jhass> I think there's 2-3 netcat's though, so you'd have to pick one
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beilabs has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
beilabs has joined #ruby
mtkd has joined #ruby
mradmacher has quit [Ping timeout: 264 seconds]
banister has joined #ruby
elaptics is now known as elaptics`away
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
jenrzzz has joined #ruby
eGGshke_ has quit [Remote host closed the connection]
bensarz has quit [Quit: Textual IRC Client: www.textualapp.com]
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
whathappens has quit [Remote host closed the connection]
agent_white has quit [Quit: brb]
whathappens has joined #ruby
maucar has quit [Quit: Leaving]
duckpupp1 has joined #ruby
solars has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 244 seconds]
whathappens has quit [Ping timeout: 246 seconds]
B1n4r10 has quit [Ping timeout: 264 seconds]
Ishido has joined #ruby
tacit7``` has joined #ruby
alfie_max15 has joined #ruby
madgen has joined #ruby
illusionmedic has joined #ruby
Dimik has joined #ruby
tacit7`` has quit [Ping timeout: 244 seconds]
giraffe has quit [Quit: bye]
idefine has joined #ruby
archaic has quit [Quit: bye]
idefine has quit [Read error: Connection reset by peer]
tristanp_ has joined #ruby
idefine has joined #ruby
sneakersec has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
GarethAdams has quit [Quit: Leaving...]
tristanp has quit [Read error: Connection reset by peer]
jessu has quit [Remote host closed the connection]
blackmesa has joined #ruby
RegulationD has quit [Remote host closed the connection]
tildes_ has quit [Ping timeout: 260 seconds]
jaequery has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
whathappens has joined #ruby
blackmesa has joined #ruby
elementaru has joined #ruby
tacit7``` has quit [Ping timeout: 244 seconds]
phutchins has quit [Ping timeout: 260 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
duckpupp1 has quit [Ping timeout: 264 seconds]
shinnya has quit [Ping timeout: 264 seconds]
tristanp has joined #ruby
soud has quit [Quit: cya]
ta_ has joined #ruby
soud has joined #ruby
nhhc has quit [Quit: Leaving]
karmatr0n has quit [Ping timeout: 250 seconds]
skolman_ has quit [Remote host closed the connection]
curses has joined #ruby
skolman_ has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
tristanp has quit [Read error: Connection reset by peer]
nando293921 has quit [Ping timeout: 244 seconds]
robbyoconnor has joined #ruby
tristanp has joined #ruby
norc has joined #ruby
flughafen_ has quit [Quit: WeeChat 1.3]
hazelux has quit [Remote host closed the connection]
diegoaguilar has quit [Ping timeout: 276 seconds]
cschneid has joined #ruby
norc__ has quit [Ping timeout: 260 seconds]
<cschneid> I have a checkout of a gem, that includes a native extension, I want to build the extension right in the tree, without installing the gem to the current gemset/system. Is there a command to do that?
jeanlinu_ has quit [Remote host closed the connection]
tristanp_ has joined #ruby
n_blownapart has joined #ruby
tildes_ has joined #ruby
tristanp has quit [Ping timeout: 272 seconds]
roamingdog has joined #ruby
nadir is now known as Periapsis
axl_ has quit [Quit: axl_]
swills has quit [Quit: Leaving]
Devalo has quit [Remote host closed the connection]
<tubbo> well you could do gem build but that will also build the .gem file
<tubbo> although it won't install to your system
ferr has quit [Quit: WeeChat 1.5]
tristanp_ has quit [Read error: Connection reset by peer]
giz|work has joined #ruby
tristanp has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
centrx has joined #ruby
roamingdog has quit [Ping timeout: 276 seconds]
imperator has left #ruby ["Leaving"]
tvw has quit [Remote host closed the connection]
roamingdog has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Periapsis is now known as nadir
freerobby has quit [Read error: Connection reset by peer]
Travis-42 has joined #ruby
<cschneid> tubbo: that doesn't compile though, that just assembles the .c code into a .gem file
<cschneid> I need to build the C code so the require in the gem works.
freerobby has joined #ruby
<tubbo> isn't there an extconf.rb jawn
<cschneid> yeah, can I just use that directly?
<Travis-42> In recent versions of ruby, is there a difference between declaring module myModule; class myClass; vs class myModule::myClass ? Some sources I found seemed to indicate yes, others no
roamingdog has quit [Remote host closed the connection]
tristanp_ has joined #ruby
tildes_ has quit [Ping timeout: 276 seconds]
tristanp has quit [Ping timeout: 250 seconds]
roamingdog has joined #ruby
<cschneid> Travis-42: I thought those were different with regards to how it does method/constant lookups. I'd have to find docs on the exact thing
<Travis-42> I saw in the rails source that all modules were explicitly declared on a separate line, but that didn't seem to be the case for some other popular ruby projects I found
daftdolphin has joined #ruby
ramfjord_ has joined #ruby
duckpupp1 has joined #ruby
<jhass> Travis-42: there hasn't been a change, it's the same for a long time
<jhass> constant lookup is one thing as cschneid mentioned (compare Module.nesting inside either variant)
<jhass> more importantly the latter variant does _not_ define a module/class if not already defined
<cschneid> class Foo::Bar also crashes if Foo doesn't exist.
<cschneid> right?
<jhass> so it'll error out if it's not already defined
<cschneid> jhass: yeah, that
ramfjord has quit [Read error: Connection reset by peer]
<cschneid> s/crashes/throws an exception which is likely to break your app/
<Travis-42> yea ok, that's kind of what I thought, but I couldn't find any consistent answers
curses has left #ruby [#ruby]
<Travis-42> thank you
diegoaguilar has joined #ruby
weckl has quit [Quit: Leaving]
firstdayonthejob has joined #ruby
DoubleMalt has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
am55 has quit [Quit: Leaving]
diegoaguilar has quit [Max SendQ exceeded]
djbkd has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
djbkd has joined #ruby
karmatr0n has joined #ruby
freerobby has quit [Quit: Leaving.]
whathappens has quit [Remote host closed the connection]
n_blownapart has quit []
djbkd has quit [Ping timeout: 244 seconds]
febuiles has joined #ruby
SilverKey has quit [Quit: Halted.]
RegulationD has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
giz|work has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 246 seconds]
zeroDi has quit [Quit: WeeChat 1.5]
cdg has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
SilverKey has joined #ruby
aegis3121 has quit [Ping timeout: 252 seconds]
tildes_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
allcentu1 has joined #ruby
tristanp has joined #ruby
<miqlas-H> Bye Guys!
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
gizmore has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
kgrz has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
Certainty has quit [Ping timeout: 276 seconds]
allcentury has quit [Ping timeout: 276 seconds]
giz|work has joined #ruby
mdw has joined #ruby
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dmr8 has quit [Quit: Leaving]
kgrz has quit [Ping timeout: 250 seconds]
tildes_ has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
neanderslob has joined #ruby
nando293921 has joined #ruby
adac has quit [Ping timeout: 244 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
skolman_ has quit [Remote host closed the connection]
skolman has joined #ruby
Gasher has quit [Quit: Leaving]
<shevy> code code code!
dsea has joined #ruby
Guest43 has joined #ruby
Guest43 has quit [Changing host]
Guest43 has joined #ruby
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
<shevy> "class.c (rb_scan_args): merge code for n_trail"
<shevy> anyone knows what n_trail is?
phutchins has joined #ruby
skolman has quit [Ping timeout: 252 seconds]
fmcgeough has quit [Quit: fmcgeough]
aegis3121 has joined #ruby
dhollinger has joined #ruby
johnmilton has quit [Quit: Namaste]
blackgoat has joined #ruby
skolman_ has joined #ruby
phutchins has quit [Ping timeout: 250 seconds]
tristanp has joined #ruby
<norc> shevy, do you really want someone else git-blame for you?
paultreny has joined #ruby
paultreny is now known as Guest89085
<shevy> norc so you can't answer
Devalo has joined #ruby
<norc> shevy, sure I can but I do not see what good can come out of it.
kirun has quit [Quit: Client exiting]
<shevy> norc ok great
tristanp_ has quit [Read error: Connection reset by peer]
Guest89085 has quit [Changing host]
Guest89085 has joined #ruby
nankyokusei has joined #ruby
Guest89085 has quit [Client Quit]
<norc> shevy, on that note click the "blame" button on top, find the change log entry and find out which commit introduced it. That way you get to immediately see what the patch actually did.
<havenwood> shevy: n_trail = n_mand - n_lead
<shevy> havenwood thanks!
B1n4r10 has joined #ruby
mattwashere has joined #ruby
mattwashere has quit [Client Quit]
tristanp_ has joined #ruby
<norc> havenwood, are you in the slightest familiar with the implementation of ivars?
<havenwood> I'm enjoying on trunk: 42.class #=> Integer
<norc> What is that? o.o
oncall-pokemon has quit [Quit: Connection closed for inactivity]
genpaku has joined #ruby
<havenwood> norc: fixnum/bignum are implementation detail in 2.4-dev
Devalo has quit [Ping timeout: 272 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<norc> havenwood, ah. That is actually neat.
<dreinull> did I mention I love sinatra and rack?
skade has joined #ruby
<havenwood> norc: i know more than none of the things but less than all of the things
nankyokusei has quit [Ping timeout: 276 seconds]
<havenwood> dreinull: <3 have you tried Roda? it's fantastic!
jancel has joined #ruby
<dreinull> havenwood no, looked at it for a couple of times and then went back to sinatra
<havenwood> dreinull: like Sinatra but you compose your framework from teh addons: https://github.com/jeremyevans/roda/tree/master/lib/roda/plugins
<norc> havenwood, based on fiddle hackery I did the other day I found out that apparently the ivar table of the _class_ does not get initialized until the first time an ivar is set. (Havent found the related code yet)
<havenwood> dreinull: aha, yeah Sinatra is nice as well
<norc> That confused the hell out of me.
tristanp has quit [Ping timeout: 258 seconds]
<dreinull> havenwood it's more the stuff I can do with rack that amazes me. the routing stuff and so is just sugar.
<havenwood> dreinull: give to Rack what is Rack's
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
<dreinull> havenwood will have to look into roda at some point too.
DevastatingDave has joined #ruby
mattwashere has joined #ruby
<dreinull> I like the routing idea better in roda.
<dreinull> cleaner
phutchins has joined #ruby
mleung has quit [Quit: mleung]
freerobby has joined #ruby
<norc> havenwood, okay a quick look actually revealed the code, but it makes even less sense now. :(
pidu has joined #ruby
<norc> (Or even why the class maintains an ivar table)
art-solopov has joined #ruby
mleung has joined #ruby
jancel_ has joined #ruby
jancel has quit [Ping timeout: 272 seconds]
<havenwood> norc: and oddball exceptions like generic_iv_tbl
<norc> That global monsterous beast just popped out of my screen.
<havenwood> "Internally, Ruby uses a bit of a hack to save instance variables for generic objects—that is, for objects that don’t use an RObject structure. When you save an instance variable in a generic object, Ruby saves it in a special hash called generic_iv_tbl." ~Excerpt From: Pat Shaughnessy's Ruby Under a Microscope
eGGshke has joined #ruby
<norc> Oh. I read that, it sounds familiar now that you mention it.
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<norc> So this would be the case for intance variables for Fixnums for example (soon to be Integers!) I guess.
pidu has left #ruby ["ERC (IRC client for Emacs 25.1.50.2)"]
ocbtec has quit [Quit: leaving]
tfitts has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jancel_ has quit [Remote host closed the connection]
<norc> havenwood, oh. ROBJECT_EMBED seems to be the interesting bit here, which explains why there is ivar tables in both objects and classes.
agent_white has joined #ruby
m8 has joined #ruby
codecop has joined #ruby
eGGshke has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
jancel has joined #ruby
jancel has quit [Remote host closed the connection]
jancel has joined #ruby
<norc> havenwood, Either way, your pointer made me grab the book again. I already found the relevant section that sheds some light on this.
skade has quit [Read error: Connection reset by peer]
synthroid has quit []
skade has joined #ruby
SilverKey has quit [Quit: Halted.]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
renier has joined #ruby
rbennacer has quit [Ping timeout: 246 seconds]
Voker57|2 has joined #ruby
ur5us has joined #ruby
renier has quit [Client Quit]
Voker57|2 has quit [Client Quit]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
workmad3 has joined #ruby
blackmesa has joined #ruby
roamingdog has quit []
codecop has quit [Remote host closed the connection]
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
jaequery has joined #ruby
Macaveli has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
BTRE has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
dhk has quit [Quit: Leaving]
hobodave has quit [Quit: Computer has gone to sleep.]
moeabdol has quit [Ping timeout: 258 seconds]
skweek has joined #ruby
BTRE has joined #ruby
ta_ has quit [Remote host closed the connection]
mhib has joined #ruby
skade has quit [Read error: Connection reset by peer]
<dreinull> is this a good idea? There are eiter no files a or b or there is one of the two: File.exist?('a.rb') && require('./a') or File.exist?('b.rb') && require('./b')
duckpupp1 has quit [Ping timeout: 260 seconds]
<dreinull> didn't like rescue in this case.
<centrx> dreinull: I would just use a regular if-statement
<norc> dreinull, begin require 'a1'; rescue LoadError; require 'a2'; end is the common pattern though.
<norc> (Exceptions in Ruby really are not that bad)
<dreinull> norc there might not be a2
<dreinull> centrx don't see how if would make a difference here
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
B1n4r10 has quit [Ping timeout: 240 seconds]
idefine_ has joined #ruby
<norc> dreinull, what if both files exist, would you want to only load a?
<dreinull> norc just one, the first. That would be a bug.
<norc> dreinull, then its fine though I would still use an explicit if/elsif for readability.
<norc> Like centrx said.
hahuang65 has quit [Ping timeout: 260 seconds]
JoshGlzBrk has joined #ruby
<centrx> dreinull: It’s so the code is clear and avoids potential future bugs
jero_ has joined #ruby
freerobby has quit [Quit: Leaving.]
<centrx> dreinull: Even if you are the only person who is going to be programming on this code, you want it to be clear when you read it a month from now or whenever
<dreinull> centrx norc ok, I can see what you mean.
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
<dreinull> I find ifs confusing. Usually more difficult to read than complex true/false evaluations
idefine has quit [Ping timeout: 240 seconds]
<norc> dreinull, for simple things you could use modifier_if
ldnunes has quit [Quit: Leaving]
j3r0 has quit [Ping timeout: 246 seconds]
<centrx> (inline if)
<norc> it just reads a bit more natural "require(something) if condition"
ixti has joined #ruby
tomphp has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
postmodern has joined #ruby
allcentu1 has quit [Ping timeout: 246 seconds]
aswen has quit [Quit: WeeChat 1.4]
devyn has quit [Ping timeout: 272 seconds]
kareeoleez has quit [Remote host closed the connection]
jud has quit [Read error: Connection reset by peer]
devyn has joined #ruby
jud has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
Ebok has joined #ruby
<Ebok> When is the -> operator useful in ruby?
<adaedra> it's not really an operator, it's the "stabby" lambda syntax
<adaedra> >> -> { stab stab }
<ruby[bot]> adaedra: # => #<Proc:0x40e9db40@/tmp/execpad-bb81e9f13174/source-bb81e9f13174:2 (lambda)> (https://eval.in/577246)
<tgeeky> Ebok: when you want to specify the need for (or later, call) a function with specified paramters
<Ebok> Cool.
<tgeeky> as opposed to a proc (which can have unspecified paramters)
<Ebok> Does it have a specific term?
<tgeeky> lambda
<Ebok> Oh I men, the ->
<Ebok> If that is what you meant
<tgeeky> lambda arrow
<norc> Ebok, or when you cannot be arsed to create a proc because boy that is just cumbersome.
<Ebok> lol
<tgeeky> it's almost exactly lke the lambda syntax of other langauges (haskell, lisp, etc)
<tgeeky> \(x,y) -> x + y
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra> it's a shortened version of the ruby lambda syntax, actually.
<Ebok> Yeah. I know how lambads work, I just hadnt ever needed to use one. I couldnt think of a good reason to need it.
<tgeeky> >> a = ->(x,y) { x + y };
<ruby[bot]> tgeeky: # => #<Proc:0x41055adc@/tmp/execpad-0811eaaa0e86/source-0811eaaa0e86:2 (lambda)> (https://eval.in/577247)
<norc> Ebok, closures are one of core things in Ruby.
<Ebok> But yeah, I also wanted to make sure it didnt have any hidden extras. Like in rails -> is used to define scope
bollullera has joined #ruby
<tgeeky> >> a = ->(x,y) { x + y }; a.call(2,2)
<ruby[bot]> tgeeky: # => 4 (https://eval.in/577248)
<norc> Ebok, no, it is still a lambda.
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adaedra> Ebok: scope is defined with lambdas, actually.
<Ebok> Cool
<norc> Ebok, that lambda gets executed when the scope is resolved.
<Ebok> Yup
<adaedra> scope :foo, lambda { bar } # works too
<Ebok> I know how scope plays inside.
<Ebok> Oh
<Ebok> OH
<norc> Ebok, it is one of many examples of WHY they are so useful.
<Ebok> lol very cool
<Ebok> I didnt realize.
madgen has quit [Ping timeout: 246 seconds]
<tgeeky> the main reason they are useful, is because they are incredibly lightweight
allcentu1 has joined #ruby
whathappens has joined #ruby
<norc> Ebok, just keep in mind the difference between procs and lambdas (under the hood they are virtually identical except for a flag)
ChiefAlexander has quit [Ping timeout: 244 seconds]
<Ebok> Yeah.
<Ebok> Thanks for the feedback
<norc> But to me the main motivator is saving 2 characters. After 20 years of Ruby I will have saved so much time over those Proc fanboys.
<Ebok> xD
tristanp has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
kareeoleez has joined #ruby
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
jancel has quit [Read error: Connection reset by peer]
idefine_ has quit [Remote host closed the connection]
johnmilton has joined #ruby
mynameisbrian has joined #ruby
<mynameisbrian> Hey guys. I finished the begginer course for Ruby Monk. What resource do you recommend from here? I want an advanced book on Ruby
<mynameisbrian> A book for someone who already programs
centrx has quit [Quit: centrx]
<norc> ?books
<ruby[bot]> You can find a list of recommended books at http://ruby-community.com/pages/links
bmurt has joined #ruby
<mynameisbrian> tanks
<mynameisbrian> thans
<Ebok> almost got it
<mynameisbrian> TANKS!!!!! TANKS U VRY MUCH
<norc> mynameisbrian, you should hang around for people to make suggestions thoguh.
<norc> Last I heard that particular page hasnt been updated in.. quite a while...
<norc> But it should give you a good start anyway.
<alfie_max15> mynameisbrian, you could continue with Ruby Mont
<mynameisbrian> yeah I know I can google it, but people in here usually have good advice so I figured I'd ask
<alfie_max15> Monk*
nettoweb has joined #ruby
kareeoleez has quit [Ping timeout: 258 seconds]
<alfie_max15> i believe there are advanced chapters in there
<mynameisbrian> alfie I'm a bit bored with it. It's nice, but I want to try something else
<norc> mynameisbrian, how advanced do you want it to be?
<alfie_max15> mynameisbrian, :D
<mynameisbrian> I don't know, I just don't want a begginers book. like "variables store data..... 1+1 = 2"
bronson has joined #ruby
<alfie_max15> won't blame you.. i too stopped after the first
<norc> Oh I got an idea.
<mynameisbrian> *beginners
<Ebok> I had a good one I read a few months ago when I was picking ruby up. Lemmie see if I can find the title
jancel has joined #ruby
<norc> mynameisbrian, "Eloquent Ruby" is a book mentioned quite often in here. Or "Effective Ruby"
<mynameisbrian> yeah I keep seeing Eloquent Ruby. Isn't it old though? Looks like it was last published 2010
<norc> mynameisbrian, not much has changed since then honestly.
<mynameisbrian> okay, that's what I thought
<mynameisbrian> I'll check that one out then. That was my only concern
<mynameisbrian> thanks
kareeoleez has joined #ruby
<mynameisbrian> Now I just have to find it free online I mean buy it on amazon
<mynameisbrian> or do I.....
charliesome has joined #ruby
<mynameisbrian> "Design patterns in Ruby" looks nice too, by same author
<Ebok> http://peterc.org/beginningruby/ <== This book was the one I used. It helped clear a lot up and get me really on my feet with the language.
donske has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
<mynameisbrian> thanks, I'll take a look
<Ebok> I went from that into reading the style guide and some algorithm books, and then into rails
<norc> mynameisbrian, Ive been didgging through the logs. And Eloquent Ruby really seems to be the staple book on common Ruby idioms.
<Ebok> I fully recommend reading the ruby style guide as you're learning.
<Ebok> It'll make sure you learn the standards that will be expected of you when it comes to spacing, format, etc.
<mynameisbrian> cool. is that on github?
bigkevmcd has quit [Ping timeout: 264 seconds]
<mynameisbrian> okay, that's what came up. ill star it
<mynameisbrian> im out of here, thanks for all the info guys!
mynameisbrian has quit []
hazelux has joined #ruby
malconis has quit [Ping timeout: 244 seconds]
shinnya has joined #ruby
nando293921 has quit [Read error: No route to host]
workmad3 has joined #ruby
idefine has joined #ruby
fenre has quit [Remote host closed the connection]
allcentu1 has quit [Ping timeout: 246 seconds]
idefine has quit [Read error: Connection reset by peer]
idefine_ has joined #ruby
mhib has quit [Remote host closed the connection]
xall has joined #ruby
Vingador has joined #ruby
yfeldblum has joined #ruby
|ifei5g00d has joined #ruby
tristanp_ has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
tristanp has quit [Read error: Connection reset by peer]
mattwashere has quit [Remote host closed the connection]
bluOxigen has joined #ruby
hazelux has quit [Remote host closed the connection]
kareeole_ has joined #ruby
|ifei5good has quit [Ping timeout: 260 seconds]
Azure has joined #ruby
xall has quit [Client Quit]
idefine_ has quit [Remote host closed the connection]
aegis3121 has quit [Quit: Textual IRC Client: www.textualapp.com]
nando293921 has joined #ruby
theunraveler has quit []
AnoHito_ has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Remote host closed the connection]
B1n4r10 has joined #ruby
m8 has quit [Quit: Sto andando via]
AnoHito has quit [Ping timeout: 260 seconds]
moeabdol has joined #ruby
matp has quit [Remote host closed the connection]
egglo has quit [Remote host closed the connection]
blackmesa has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
sneakersec has quit [Ping timeout: 260 seconds]
DoubleMalt has quit [Remote host closed the connection]
nando293921 has quit [Ping timeout: 276 seconds]
Ebok has quit [Quit: This computer has gone to sleep]
idefine has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
jenrzzz_ has joined #ruby
dhollinger has quit [Quit: WeeChat 1.4]
idefine has quit [Remote host closed the connection]
Vingador has quit [Remote host closed the connection]
nando293921 has joined #ruby
Vingador has joined #ruby
jrafanie_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PlasmaStar has quit [Ping timeout: 272 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
bobbycvi has joined #ruby
Vingador has quit [Client Quit]
last_staff has quit [Quit: last_staff]
jenrzzz has quit [Ping timeout: 276 seconds]
PlasmaStar has joined #ruby
zenlot has quit [Ping timeout: 260 seconds]
allcentu1 has joined #ruby
jrafanie has quit [Client Quit]
swills has joined #ruby
allcentu1 has quit [Client Quit]
rkazak has joined #ruby
malconis has joined #ruby
Vingador has joined #ruby
JoshGlzBrk has joined #ruby
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
sdothum has quit [Read error: Connection reset by peer]
phredus_ has quit [Remote host closed the connection]
prestorium has quit [Quit: Leaving]
phredus_ has joined #ruby
sdothum has joined #ruby
CJKinni` has quit [Ping timeout: 264 seconds]
lukec has joined #ruby
jancel has quit [Read error: Connection reset by peer]
jancel has joined #ruby
beilabs has quit [Read error: Connection reset by peer]
JoshGlzBrk has quit [Client Quit]
beilabs has joined #ruby
JoshGlzBrk has joined #ruby
<A124> Cannot figure out another recursive thing, done well. I suck I became bad, physical health translates to mind. Would like to in-place modify strings in Hash, Struct, Array nested combo. ... Not sure if I got it working before and screwed another variant, but here is what I got: https://gist.github.com/anonymous/376548d11ecb4060e88d51e40f7043e5
jenrzzz_ has quit [Ping timeout: 272 seconds]
idefine has joined #ruby
patrick_star_3 has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
mesamoo has quit [Quit: Konversation terminated!]
Vingador has quit [Quit: http://quassel-irc.org - Bate-papo confortável em qualquer lugar.]
helpa has quit [Remote host closed the connection]
tristanp_ has joined #ruby
malconis has quit [Ping timeout: 252 seconds]
helpa has joined #ruby
Vingador has joined #ruby
<norc> A124, hiding code from us? :)
n_blownapart has joined #ruby
rarruda_ has quit [Ping timeout: 260 seconds]
<A124> norc I just did paste code
<norc> A124, some code.
JoshGlzBrk has quit [Client Quit]
<A124> Did I miss anything?
tristanp has quit [Ping timeout: 252 seconds]
<norc> You tell me.
dopamean1 has joined #ruby
<A124> Yeah I did, third line should be data = Oj.load()
rarruda has joined #ruby
<norc> A124, for the test case please just use JSON, so I can quickly plug this in. :)
dopamean_ has quit [Ping timeout: 252 seconds]
<A124> In this case it should be equivalent, it is just Hash, but in previous internal json was incapable.
<norc> A124, also your implementation of to_recursive_hash is missing.
<A124> Man, I am really sorry, I screwed up, I will post fixed.
<norc> All good.
<norc> A124, just a quick hint by the way. The line where you recurse into Array, you invoke each_with_parent(k, &blk)
<norc> A124, that will effectively pass nil.
rkazak has quit [Ping timeout: 244 seconds]
<norc> (Since Ruby has seen k before it knows its a variable but its never assigned to by anything)
JoshGlzBrk has joined #ruby
patrick_star_3 has joined #ruby
<norc> I am expecting this to be (one of) your problem(s)
DevastatingDave has quit [Ping timeout: 258 seconds]
dopamean1 has quit [Ping timeout: 272 seconds]
<norc> It will force the next recursion to immediately yield the parent, which however is nil.
djbkd has quit [Remote host closed the connection]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
rarruda has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
rarruda has joined #ruby
tristanp has joined #ruby
<norc> A124, next you need to recurse when the current object responds to each_with_parent
tristanp_ has quit [Ping timeout: 250 seconds]
nando293921 has quit [Quit: Lost terminal]
nankyokusei has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
hypercube32 has quit [Quit: Ex-Chat]
tercenya_ has joined #ruby
lipoqil has quit [Ping timeout: 240 seconds]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
lipoqil has joined #ruby
bollullera has quit [Excess Flood]
jancel has quit [Ping timeout: 252 seconds]
<norc> A124, also your initial call passes no argument to the function, so the first thing it does is yield the block with parent, which earlier defaulted to nil.
statelesscode has quit [Quit: statelesscode]
<norc> That is the cause for you seeing nil.
nankyokusei has quit [Ping timeout: 240 seconds]
chipotle has quit [Remote host closed the connection]
matp has joined #ruby
tercenya has quit [Ping timeout: 276 seconds]
diegoaguilar has joined #ruby
phredus_ has quit [Remote host closed the connection]
binaryplease has joined #ruby
Vingador has quit [Quit: http://quassel-irc.org - Bate-papo confortável em qualquer lugar.]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
<Radar> Hey, can someone here please gist me the Quit message of Vingador?
<Radar> it's crashing helpa and I want to find out why.
Vingador has joined #ruby
AnoHito_ has quit [Quit: Leaving]
eGGshke has joined #ruby
nando293921 has joined #ruby
<A124> norc Yes, you are right about that, though after solving that the output is just the keys of the first Hash. So totally wrong anyway.
<norc> A124, guess you were too quick to copy and paste this from stackoverflow.
<norc> :o)
<Radar> norc or A124: do either of you see Quit messages in this channel?
<norc> Radar, * Vingador has quit (Quit: http://quassel-irc.org - Bate-papo confortável em qualquer lugar.)
<Radar> Danke.
<norc> Cheerio.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
biberu has quit [Read error: Connection reset by peer]
AnoHito has joined #ruby
nando293921 has quit [Client Quit]
<mozzarella> ááááá
<A124> Radar No else I would already responded :)
<A124> norc I wrote that ehm.
SilverKey has joined #ruby
B1n4r10 has quit [Ping timeout: 276 seconds]
<Radar> mozzarella: only in quit messages apparently.
kareeole_ has quit [Remote host closed the connection]
helpa has quit [Remote host closed the connection]
<Radar> helpa: bang you're dead
helpa has joined #ruby
eGGshke has quit [Ping timeout: 240 seconds]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
nando293921 has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
norc has quit [Ping timeout: 260 seconds]
agent_white has quit [Quit: lol]
nando293921 has quit [Ping timeout: 258 seconds]
nando293921 has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
c0mrad3 has quit [Quit: Connection closed for inactivity]
mattwashere has joined #ruby
idefine has quit [Read error: Connection reset by peer]
JesseH has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
<havenwood> excerpt from my znc.conf: QuitMsg = mIRC 5.91 (16 bit) for Microsoft © Windows For WorkGroups 3.11®
charliesome has joined #ruby
kam270 has joined #ruby
cschneid has quit [Remote host closed the connection]
art-solopov has quit [Quit: Konversation terminated!]
paul_ has joined #ruby
youch has quit [Ping timeout: 244 seconds]
elementaru has quit [Ping timeout: 276 seconds]
Kero has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
djbkd has joined #ruby
<benzrf> nice
firstdayonthejob has quit [Ping timeout: 276 seconds]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
neanderslob has quit [Remote host closed the connection]
jaiks has quit [Ping timeout: 240 seconds]
benlieb has quit [Quit: benlieb]
djbkd has quit [Ping timeout: 260 seconds]
jhass has quit [Ping timeout: 260 seconds]
Kero has joined #ruby
Vingador has quit [Ping timeout: 252 seconds]
moos3_ has quit [Ping timeout: 260 seconds]
jhass has joined #ruby
<hightower3> havenwood, impressive :)
exadeci has joined #ruby
kappy has quit [Quit: Lost terminal]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
jancel has joined #ruby
mleung_ has joined #ruby
ICantCook has quit [Quit: bye]
mleung has quit [Ping timeout: 246 seconds]
mleung_ is now known as mleung
mattwashere has quit [Remote host closed the connection]
skolman_ has quit [Remote host closed the connection]
Coldblackice has quit [Ping timeout: 252 seconds]
Coldblackice has joined #ruby
ICantCook has joined #ruby
Omni_ has quit [Ping timeout: 260 seconds]
mattwashere has joined #ruby
ICantCook has quit [Read error: Connection reset by peer]
Omni has joined #ruby
Omni is now known as Guest19700
ICantCook has joined #ruby
RegulationD has quit [Remote host closed the connection]
skolman_ has joined #ruby
whathappens has quit [Quit: Leaving...]
RegulationD has joined #ruby
jancel has quit [Remote host closed the connection]
rkazak has joined #ruby
n_blownapart has quit []
RegulationD has quit [Ping timeout: 240 seconds]
minimalism has quit [Read error: Connection reset by peer]
johnny56 has quit [Read error: Connection reset by peer]
framlinqp has quit [Read error: Connection reset by peer]
johnny56 has joined #ruby
framlinqp has joined #ruby
Ebok has joined #ruby
tristanp has quit [Ping timeout: 258 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
moos3 has joined #ruby
tristanp has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilverKey has quit [Quit: Halted.]
rkazak has quit [Quit: Sleep.....ing....]
moos3 has quit [Ping timeout: 252 seconds]
Vingador has joined #ruby
koooge has quit [Quit: Leaving...]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cdg has quit [Remote host closed the connection]
paul__ has joined #ruby
paul_ has quit [Read error: Connection reset by peer]
cdg has joined #ruby
anna` has joined #ruby
koooge has joined #ruby
moeabdol has joined #ruby
tuelz has quit [Ping timeout: 258 seconds]
rbennacer has joined #ruby
fooledyou has joined #ruby
hutch34_ has quit [Ping timeout: 264 seconds]
Madplatypus has joined #ruby
cdg has quit [Ping timeout: 260 seconds]
moeabdol has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
idefine has joined #ruby
fooledyou has left #ruby [#ruby]
bronson has joined #ruby
tristanp has quit [Ping timeout: 272 seconds]
hahuang65 has joined #ruby
tuelz has joined #ruby
bronson_ has joined #ruby
djbkd has joined #ruby
pietr0 has quit [Quit: pietr0]
statelesscode has joined #ruby
smathy is now known as smathy_afk
minimalism has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 252 seconds]
mattwashere has quit []