havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
jrabe has quit []
nostalgiccloud has quit [Read error: Connection reset by peer]
jrabe has joined #ruby
knight33 has joined #ruby
MagePsycho_ has quit [Ping timeout: 240 seconds]
rabajaj has quit [Remote host closed the connection]
joenas[m] has joined #ruby
aidalgol has joined #ruby
M107262[m] has joined #ruby
jonjits[m] has joined #ruby
Giphy[m] has joined #ruby
lasenna[m] has joined #ruby
aviraldg has joined #ruby
dman[m] has joined #ruby
torarne has joined #ruby
heftig has joined #ruby
yana[m] has joined #ruby
turt2live has joined #ruby
KevinMGranger has joined #ruby
gokul_mr[m] has joined #ruby
Matt[m]1 has joined #ruby
velu_aon[m] has joined #ruby
aagdbl[m] has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
beilabs has joined #ruby
beilabs has quit [Ping timeout: 240 seconds]
beilabs has joined #ruby
ramfjord has joined #ruby
Guest41613 has quit [Ping timeout: 276 seconds]
autumncode has joined #ruby
joenas[m] has quit [Ping timeout: 240 seconds]
Matt[m]1 has quit [Ping timeout: 246 seconds]
M107262[m] has quit [Ping timeout: 246 seconds]
aagdbl[m] has quit [Ping timeout: 240 seconds]
KevinMGranger has quit [Ping timeout: 240 seconds]
velu_aon[m] has quit [Ping timeout: 255 seconds]
lasenna[m] has quit [Ping timeout: 255 seconds]
yana[m] has quit [Ping timeout: 258 seconds]
aidalgol has quit [Ping timeout: 276 seconds]
aviraldg has quit [Ping timeout: 240 seconds]
turt2live has quit [Ping timeout: 240 seconds]
gokul_mr[m] has quit [Ping timeout: 264 seconds]
Tagami[m] has quit [Ping timeout: 264 seconds]
jonjits[m] has quit [Ping timeout: 264 seconds]
funkytwig has joined #ruby
torarne has quit [Ping timeout: 246 seconds]
dman[m] has quit [Ping timeout: 255 seconds]
Giphy[m] has quit [Ping timeout: 276 seconds]
heftig has quit [Ping timeout: 276 seconds]
elcontrastador has joined #ruby
eventpuddle has quit [Ping timeout: 276 seconds]
<elcontrastador> I'm struggling with Net::SSH on, I'm sure, a simple problem. Here's a pastie showing the two command script and output vs output with interactive: https://pastebin.com/E6XMqeBf
<ruby[bot]> elcontrastador: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/15f7c8f7dc593d130f1a467a413f1257
<ruby[bot]> elcontrastador: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
dc1 has joined #ruby
<elcontrastador> Any help would be appreciated, i'm under pressure...
MagePsycho_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
sp4rrow has quit [Ping timeout: 246 seconds]
Rodya_ has quit [Remote host closed the connection]
opekktar has quit [Remote host closed the connection]
Guest69369 has quit [Ping timeout: 246 seconds]
sp4rrow has joined #ruby
sp4rrow_ has joined #ruby
sp4rrow_ has quit [Client Quit]
MagePsycho_ has quit [Read error: Connection timed out]
sp4rrow has quit [Ping timeout: 258 seconds]
HTTP_____GK1wmSU has joined #ruby
HTTP_____GK1wmSU has quit [K-Lined]
bladdezz has joined #ruby
Rodya_ has joined #ruby
sneakerhax has joined #ruby
MrBusiness has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 255 seconds]
MrBusiness has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
m27frogy has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jphase has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
chouhoulis has joined #ruby
<baweaver> Thought it might be something like that. Junos doesn't drop you into a straight shell so you need to throw some other stuff through it
<baweaver> Read that for more details
TomyLobo has joined #ruby
ftwig has joined #ruby
jphase has quit [Ping timeout: 258 seconds]
sp4rrow has joined #ruby
Rodya_ has quit [Remote host closed the connection]
lupine has quit [Remote host closed the connection]
funkytwig has quit [Ping timeout: 246 seconds]
dc1 has quit [Ping timeout: 248 seconds]
mim1k has joined #ruby
lupine has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
noname1 has joined #ruby
ftwig has quit [Quit: Leaving]
dc1 has joined #ruby
paradisaeidae has joined #ruby
paradisaeidae_ has joined #ruby
alfiemax has joined #ruby
knight33 has quit [Ping timeout: 258 seconds]
phinxy has quit [Read error: Connection reset by peer]
phinxy has joined #ruby
phinxy has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 240 seconds]
gizmore|2 has joined #ruby
<elcontrastador> baweaver: hey, thx man...had to step away (kid issues)...back to try this now
<baweaver> It's either that or some garbage with "expect". Temperamental proprietary tech
gizmore has quit [Ping timeout: 255 seconds]
paradisaeidae has quit [Quit: ChatZilla 0.9.93 [Firefox 54.0.1/20170628145605]]
paradisaeidae_ has quit [Quit: ChatZilla 0.9.93 [Firefox 54.0.1/20170628145605]]
boombox_ has joined #ruby
charlenopires has joined #ruby
charlenopires has quit [Client Quit]
Tagami[m] has joined #ruby
<darix> elcontrastador: depending on your version there might also be an api on the router that you can use
<darix> and there are python libraries for it e.g.
dc1 has quit [Ping timeout: 255 seconds]
<elcontrastador> yeah...i'll get into NetConf later...that's the way to go. Tonight i have about 100 switches i need to change voice vlans and dhcp option 150's on...this is just a Get this shit done and get back to my voice project kinda night
<elcontrastador> huge weekend cutover
boombox_ has quit [Remote host closed the connection]
armyriad has quit [Quit: Leaving]
<elcontrastador> Throwing some errors for me...trying to figure it out...deprecation warning for Net::SSH.start and internal to Net::SSH::Telnet, like the library is stale
wilbert has joined #ruby
charlenopires has joined #ruby
charlenopires has left #ruby [#ruby]
milardovich has joined #ruby
armyriad has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
Tempesta has quit [Read error: Connection reset by peer]
Tempesta has joined #ruby
Tempesta has joined #ruby
Tempesta has quit [Changing host]
aidalgol has joined #ruby
aviraldg has joined #ruby
Giphy[m] has joined #ruby
yana[m] has joined #ruby
M107262[m] has joined #ruby
joenas[m] has joined #ruby
torarne has joined #ruby
jonjits[m] has joined #ruby
heftig has joined #ruby
KevinMGranger has joined #ruby
lasenna[m] has joined #ruby
turt2live has joined #ruby
dman[m] has joined #ruby
gokul_mr[m] has joined #ruby
velu_aon[m] has joined #ruby
aagdbl[m] has joined #ruby
Matt[m]1 has joined #ruby
boombox_ has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
sp4rrow has joined #ruby
sp4rrow has quit [Client Quit]
<elcontrastador> I get this Net::ReadTimeout error on every option... notice how falling back to Net::SSH exec! comand works but will not let me switch to edit mode... https://gist.github.com/elcontrastador/c4bcaea6c1db23c30060a2fc96a474a6
boombox_ has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
jenrzzz has joined #ruby
boombox_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Bhootrk_ has joined #ruby
boombox_ has quit [Remote host closed the connection]
milardovich has joined #ruby
boombox_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
boombox_ has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
<baweaver> elcontrastador: what version of ruby do you have?
<baweaver> and have you tried require 'net/timeout' ?
<baweaver> Ruby 1.9.x and below don't have it.
<elcontrastador> 2.4.0
digitalnomad has joined #ruby
alfiemax has joined #ruby
<baweaver> So that should work fine. Looking about
<elcontrastador> i'll try require'ing net/timeout
alfiemax has quit [Remote host closed the connection]
<elcontrastador> net::telnet works so smoothly and easily
<elcontrastador> i'd have to manually ssh and turn it on to each switch tho...ugh...then turn it off via code...lol
<elcontrastador> `require': cannot load such file -- net/timeout (LoadError)
<elcontrastador> not in stdlib and not a gem
__Yiota has joined #ruby
frozengeek_ has quit [Quit: frozengeek_]
chouhoulis has quit [Remote host closed the connection]
<elcontrastador> this script will literally save me 15hrs work...if i just get past this prob very trivial hurdle...
KeyJoo has quit [Quit: Good luck! Have a nice Day!]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
jinie_ has quit [Ping timeout: 246 seconds]
jinie_ has joined #ruby
Antiarc has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
noname1 has quit [Ping timeout: 255 seconds]
alfiemax has quit [Remote host closed the connection]
agent_white has joined #ruby
<agent_white> Evenin' folks
sepp2k has quit [Ping timeout: 240 seconds]
sp4rrow has joined #ruby
enterprisey has joined #ruby
enterprisey has quit [Max SendQ exceeded]
enterprisey has joined #ruby
bmurt has joined #ruby
paradisaeidae has joined #ruby
paradisaeidae_ has joined #ruby
enterprisey has quit [Max SendQ exceeded]
enterprisey has joined #ruby
joast has quit [Ping timeout: 246 seconds]
herbmillerjr has joined #ruby
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
goyox86_ has joined #ruby
K3rber0s has quit []
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ocpysh has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
mim1k has joined #ruby
Silthias has joined #ruby
Silthias1 has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
t-recx has quit [Quit: t-recx]
joast has joined #ruby
Puffball has quit [Read error: Connection reset by peer]
Puffball has joined #ruby
s1kx has joined #ruby
goyox86_ has quit [Ping timeout: 240 seconds]
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 246 seconds]
dc1 has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
dymaxion has joined #ruby
dymaxion is now known as Guest45716
claw has quit [Ping timeout: 255 seconds]
Guest45716 is now known as dymaxion_
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
herbmillerjr has quit [Quit: Konversation terminated!]
smulverine has joined #ruby
gix has quit [Ping timeout: 240 seconds]
herbmillerjr has joined #ruby
claw has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
gix has joined #ruby
paradisaeidae has quit [Quit: ChatZilla 0.9.93 [Firefox 54.0.1/20170628145605]]
paradisaeidae_ has quit [Quit: ChatZilla 0.9.93 [Firefox 54.0.1/20170628145605]]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
em_ has joined #ruby
tomdickharry has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 255 seconds]
chouhoulis has joined #ruby
s1kx has quit [Ping timeout: 240 seconds]
digitalnomad has joined #ruby
brent__ has quit [Ping timeout: 246 seconds]
chouhoulis has quit [Remote host closed the connection]
s1kx has joined #ruby
Antiarc has joined #ruby
beilabs has quit [Remote host closed the connection]
millerti has joined #ruby
Bhootrk_ has quit [Read error: Connection reset by peer]
juggler has joined #ruby
jphase has joined #ruby
dymaxion_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dymaxion_ has joined #ruby
jphase has quit [Ping timeout: 246 seconds]
sylario has quit [Quit: Connection closed for inactivity]
runescape07rsps has quit [Quit: Leaving]
sp4rrow has joined #ruby
dviola has quit [Quit: WeeChat 1.9]
kies has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
sp4rrow has joined #ruby
sp4rrow has quit [Client Quit]
opekktar has joined #ruby
sp4rrow has joined #ruby
sp4rrow has quit [Client Quit]
ryzokuken has joined #ruby
sp4rrow has joined #ruby
dymaxion_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sp4rrow has quit [Client Quit]
sp4rrow has joined #ruby
sp4rrow has quit [Client Quit]
sp4rrow has joined #ruby
sp4rrow has quit [Client Quit]
alfiemax has joined #ruby
alfiemax_ has joined #ruby
dymaxion_ has joined #ruby
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 240 seconds]
digitalnomad has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
dymaxion_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
knight33 has joined #ruby
Dimik has joined #ruby
mjolnird has quit [Quit: Leaving]
mjolnird has joined #ruby
digitalnomad has quit [Ping timeout: 248 seconds]
autumncode has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
autumncode has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beilabs has joined #ruby
s1kx has quit [Remote host closed the connection]
opekktar has quit []
autumncode has quit [Ping timeout: 246 seconds]
endemic has quit [Quit: Leaving.]
weems|laptop has quit [Ping timeout: 240 seconds]
beilabs has quit [Ping timeout: 255 seconds]
high_fiver has joined #ruby
maryo has joined #ruby
solrize has quit [Ping timeout: 246 seconds]
dymaxion_ has joined #ruby
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
minimalism has quit [Ping timeout: 258 seconds]
enterprisey has quit [Quit: Leaving]
elcontrastador has quit [Ping timeout: 246 seconds]
nOwz has quit [Quit: WeeChat 1.7]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
dymaxion_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest41613 has joined #ruby
harfangk has joined #ruby
nofxxx has joined #ruby
nofxx has quit [Ping timeout: 246 seconds]
jphase has joined #ruby
jphase has quit [Ping timeout: 246 seconds]
s1kx has joined #ruby
high_fiver has quit [Ping timeout: 246 seconds]
maryo has quit [Ping timeout: 260 seconds]
maryo has joined #ruby
runescape07rsps has joined #ruby
sp4rrow has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
sp4rrow has quit [Ping timeout: 246 seconds]
ryzokuken has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
charliesome has quit [Client Quit]
dennisvennink has joined #ruby
InfinityFye has joined #ruby
ryzokuken has joined #ruby
mathys has joined #ruby
beilabs has joined #ruby
alfiemax has quit [Remote host closed the connection]
DTZUZO has quit [Ping timeout: 240 seconds]
beilabs_ has joined #ruby
conta has joined #ruby
beilabs has quit [Ping timeout: 240 seconds]
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dimik has quit [Ping timeout: 240 seconds]
NeverTired has joined #ruby
alfiemax has joined #ruby
wilbert has quit [Ping timeout: 246 seconds]
dennisvennink has joined #ruby
hurricanehrndz has quit [Quit: Goodbye]
hurricanehrndz has joined #ruby
VladGh_ has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
VladGh has quit [Ping timeout: 248 seconds]
yqt has joined #ruby
vuoto has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
cadillac_ has joined #ruby
phatypus has joined #ruby
ltem has joined #ruby
marr has joined #ruby
rippa has joined #ruby
helpa-bot has joined #ruby
helpa has quit [Remote host closed the connection]
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
conta has quit [Quit: conta]
charliesome has joined #ruby
biberu has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MichaelBurge has quit [Remote host closed the connection]
chmuri has quit [Ping timeout: 240 seconds]
KeyJoo has joined #ruby
Guest69369 has joined #ruby
chmurifree has joined #ruby
alfiemax has joined #ruby
harfangk has quit [Remote host closed the connection]
Guest69369 is now known as lxsameer
alfiemax has quit [Remote host closed the connection]
lxsameer has quit [Changing host]
lxsameer has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
naprimer3 has quit [Read error: Connection reset by peer]
ryzokuken has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby
maryo has quit [Ping timeout: 255 seconds]
InfinityFye has quit [Quit: Leaving]
charliesome has joined #ruby
nowhere_man has joined #ruby
naprimer has joined #ruby
frozengeek_ has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.9]
InfinityFye has joined #ruby
sp4rrow has joined #ruby
sp4rrow has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
milardovich has quit [Ping timeout: 246 seconds]
juggler has quit [Remote host closed the connection]
NeverTired has quit [Quit: Connection closed for inactivity]
mim1k has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
uZiel has quit [Ping timeout: 248 seconds]
Mon_Ouie has joined #ruby
phatypus has quit [Quit: phatypus]
DTZUZO has joined #ruby
uZiel has joined #ruby
vuoto has quit [Quit: Lost terminal]
vuoto has joined #ruby
vuoto has quit [Client Quit]
em_ has left #ruby ["Closing Window"]
marchi has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
tirej has joined #ruby
harfangk has joined #ruby
tirej has quit [Client Quit]
Guest41613 is now known as alex``
alex`` has quit [Quit: WeeChat 1.9]
ltem has quit [Quit: Leaving]
funkycrunchy has joined #ruby
Mia has quit [Ping timeout: 276 seconds]
KeyJoo has quit [Ping timeout: 258 seconds]
harfangk has quit [Quit: No Ping reply in 180 seconds.]
harfangk has joined #ruby
funkycrunchy has quit [Quit: WeeChat 1.9]
funkycrunchy has joined #ruby
dennisvennink has quit [Max SendQ exceeded]
dennisvennink has joined #ruby
dennisvennink has quit [Ping timeout: 255 seconds]
dennisvennink has joined #ruby
jenrzzz has joined #ruby
dennisvennink has quit [Excess Flood]
dennisvennink has joined #ruby
kapil___ has joined #ruby
gr33n7007h has quit [Quit: WeeChat 1.9]
VladGh_ has quit [Remote host closed the connection]
VladGh has joined #ruby
ShekharReddy has joined #ruby
harfangk has quit [Quit: No Ping reply in 180 seconds.]
harfangk has joined #ruby
gr33n7007h has joined #ruby
nowhere_man has quit [Quit: Konversation terminated!]
nowhere_man has joined #ruby
funkycrunchy has quit [Quit: WeeChat 1.9]
funkycrunchy has joined #ruby
wkoszek_ has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Ping timeout: 255 seconds]
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
bruno- has joined #ruby
mim1k has joined #ruby
quobo has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
mim1k has quit [Ping timeout: 255 seconds]
sp4rrow has joined #ruby
InfinityFye has quit [Ping timeout: 255 seconds]
uZiel has quit [Remote host closed the connection]
InfinityFye has joined #ruby
sp4rrow has quit [Ping timeout: 246 seconds]
Mon_Ouie has joined #ruby
uZiel has joined #ruby
ledestin has joined #ruby
feles has joined #ruby
jinie_ has quit [Ping timeout: 260 seconds]
jinie_ has joined #ruby
yqt has quit [Ping timeout: 258 seconds]
milardovich has joined #ruby
dlitvak has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
oleo has quit [Quit: irc client terminated!]
maryo has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Morrolan has quit [Quit: Goodbye]
Morrolan has joined #ruby
chouhoulis has joined #ruby
faces has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
milardovich has quit [Client Quit]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FernandoBasso has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
maryo_ has joined #ruby
faces has joined #ruby
maryo has quit [Ping timeout: 258 seconds]
HTTP_____GK1wmSU has joined #ruby
HTTP_____GK1wmSU has quit [K-Lined]
marchi has quit [Ping timeout: 248 seconds]
oleo has joined #ruby
smulverine has quit [Read error: Connection reset by peer]
millerti has joined #ruby
belmoussaoui_ has joined #ruby
belmoussaoui_ has quit [Remote host closed the connection]
belmoussaoui_ has joined #ruby
feles has quit [Quit: Leaving]
belmoussaoui_ has quit [Client Quit]
belmoussaoui_ has joined #ruby
sepp2k has joined #ruby
cagmz has joined #ruby
FernandoBasso has quit [Quit: Leaving]
maryo_ has quit [Ping timeout: 260 seconds]
FernandoBasso has joined #ruby
FernandoBasso has quit [Max SendQ exceeded]
__Yiota has joined #ruby
FernandoBasso has joined #ruby
digitalnomad has joined #ruby
dennisvennink has quit [Read error: Connection reset by peer]
dennisvennink has joined #ruby
runescape07rsps has quit [Quit: Leaving]
bruno- has joined #ruby
dennisvennink has quit [Max SendQ exceeded]
dennisvennink has joined #ruby
harfangk has quit [Ping timeout: 255 seconds]
knight33 has joined #ruby
Dry_Lips has quit [Read error: Connection reset by peer]
ocpysh has joined #ruby
DLSteve has joined #ruby
Jack_Ryan has joined #ruby
maryo has joined #ruby
Jack_Ryan has quit [Read error: Connection reset by peer]
dennisvennink has quit [Max SendQ exceeded]
govg has joined #ruby
phinxy has joined #ruby
dennisvennink has joined #ruby
Dry_Lips has joined #ruby
Dry_Lips has joined #ruby
Dry_Lips has quit [Changing host]
mim1k has joined #ruby
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
dennisvennink has quit [Max SendQ exceeded]
dennisvennink has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
klaas has joined #ruby
goyox86_ has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
dennisvennink has quit [Ping timeout: 260 seconds]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ocpysh has quit [Quit: ...]
Mon_Ouie has quit [Quit: WeeChat 1.9]
MichaelBurge has joined #ruby
konsolebox has joined #ruby
xuanrui has quit [Ping timeout: 246 seconds]
<roboncloud> is there an open source community for designers... or somewhere where developers & designers can meet to collaborate.
<roboncloud> open source software would be so much better if that happened more often -_-
kent\n has quit [Remote host closed the connection]
jphase has joined #ruby
goyox86_ has quit [Quit: goyox86_]
kent\n has joined #ruby
goyox86 has joined #ruby
goyox86 has quit [Remote host closed the connection]
HTTP_____GK1wmSU has joined #ruby
HTTP_____GK1wmSU has quit [K-Lined]
alex` has joined #ruby
alex` is now known as Guest53406
goyox86_ has joined #ruby
uZiel has joined #ruby
leah2 has quit [Quit: trotz alledem!]
xuanrui has joined #ruby
HTTP_____GK1wmSU has joined #ruby
nowhere_man has joined #ruby
epistrephein has joined #ruby
HTTP_____GK1wmSU has left #ruby [#ruby]
maryo_ has joined #ruby
leah2 has joined #ruby
dennisvennink has joined #ruby
knight33 has joined #ruby
Mon_Ouie has joined #ruby
funkycrunchy has quit [Ping timeout: 246 seconds]
maryo has quit [Ping timeout: 246 seconds]
bruno-_ has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
danman has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
Dump_not has joined #ruby
FernandoBasso has quit [Quit: Leaving]
nowhere_man has quit [Ping timeout: 255 seconds]
ltem has joined #ruby
Tralin has quit [Quit: ZNC 1.6.2 - http://znc.in]
InfinityFye has quit [Quit: Leaving]
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
danman has quit [Quit: danman]
marr has quit [Ping timeout: 246 seconds]
epistrephein has quit [Quit: Textual IRC Client: www.textualapp.com]
digitalnomad has joined #ruby
dlitvak has quit [Quit: Connection closed for inactivity]
rtj has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
nowayoutofthis1 has joined #ruby
Guest53406 has quit [Quit: WeeChat 1.9]
danman has joined #ruby
maryo_ has quit [Ping timeout: 260 seconds]
MWM has joined #ruby
<MWM> Anyone home?
<roboncloud> ye[
<MWM> I am tryin to figure out why a script wont work... the error directs to a .mkmf to diagnose the issue, but I am not sure how to read it
<havenwood> MWM: Gist the error and paste us a link to it?
<MWM> nokogiri failed to compile check blah/path/to.mkmf to see why
alex` has joined #ruby
alex` is now known as Guest10468
<ruby[bot]> MWM: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/e35d84d01c60c7d1c2346109590a1b1e
<ruby[bot]> MWM: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<adaedra> The interesting bit here is line 47, "conftest.c:3:18: fatal error: zlib.h: No such file or directory"
<MWM> Sorry 'bout the pastebin, I thought you meant give you the "gist" of the situation an then a pastebin
<adaedra> means you don't have zlib development headers
<adaedra> look for a package named zlib-devel or something similar
<havenwood> MWM: What os/distro? How'd you install Ruby?
t-recx has joined #ruby
<MWM> havenwood: Ubuntu. apt-get install ruby-bundler and bundle installl is all I have done so far.
cadillac_ has quit [Ping timeout: 260 seconds]
<MWM> I gotta say I am definately poking around in the dark here, I am just trying to get one ruby script running for a 1-offf project.
<havenwood> MWM: sudo apt-get install ruby-dev
cadillac_ has joined #ruby
<havenwood> MWM: or is it ruby-devel on apt? I can't recall
jphase has quit [Remote host closed the connection]
<havenwood> MWM: sudo apt-get install ruby-full
<havenwood> yeah, ruby-dev or ruby-full
<MWM> apt-cache search shows some sort of zlib package: libghc-zlib-dev - Compression and decompression in the gzip and zlib formats
jphase has joined #ruby
<MWM> there is another one that refers to lua and something about pipes streams
HTTP_____GK1wmSU has joined #ruby
<matthewd> It's definitely not the ghc one
<havenwood> MWM: how about? zlib1g-dev
rtj has quit [K-Lined]
HTTP_____GK1wmSU has quit [K-Lined]
<MWM> installed ruby-full and still get the same error. not certain of the mkmf contains the same info though
<havenwood> sudo apt-get install zlib1g-dev
<havenwood> MWM: Gist us the new error if it's still borked.
jphase has quit [Ping timeout: 246 seconds]
<MWM> the error file matched with my previous paste and after installing the zlib seems like its going to compile. says it "may take awhile" :D
<jokke> hey
<jokke> i'm trying to pipe the output of one command to another command
<MWM> gem installed! Thanks guys :D
<jokke> so i do IO.popen(['first', 'cmd']) { |first| IO.popen(['second', 'cmd'], 'w+') { |second| IO.copy_stream(first, second) } }
<jokke> but this raises 'IOError: not opened for writing'
<jokke> i tried writing to second with second.puts 'foo' and that works
bruno-_ has quit [Ping timeout: 240 seconds]
<jokke> any ideas?
sp4rrow has joined #ruby
gizmore|2 is now known as gizmore
sp4rrow has quit [Ping timeout: 246 seconds]
MWM has quit [Quit: Page closed]
<konsolebox> jokke: you might have forgotten 'w+'. aslo, it's 'w' that's works for me.
<jokke> konsolebox: awesome! it works with w
<jokke> thanks!
high_fiver has joined #ruby
govg has quit [Ping timeout: 240 seconds]
high_fiver_ has joined #ruby
govg has joined #ruby
high_fiver has quit [Ping timeout: 240 seconds]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gr33n7007h> jokke: there is also Open3.pipeline_rw :)
<jokke> oh cool
<jokke> thans
<jokke> thanks
<gr33n7007h> np :)
sonOfRa has quit [Remote host closed the connection]
mathys has quit [Quit: Leaving]
sonOfRa has joined #ruby
alfiemax has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
dlitvak has joined #ruby
funkycrunchy has joined #ruby
jinie_ has quit [Remote host closed the connection]
weems|laptop has joined #ruby
maryo has joined #ruby
jinie_ has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
xuanrui has quit [Ping timeout: 248 seconds]
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fghjb3567 has joined #ruby
ledestin has joined #ruby
goyox86_ has quit [Quit: goyox86_]
fghjb3567 has quit [Remote host closed the connection]
high_fiver_ has quit [Ping timeout: 240 seconds]
sp4rrow has joined #ruby
bruno- has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno- has quit [Read error: Connection reset by peer]
yqt has joined #ruby
pavelz has joined #ruby
sp4rrow has quit [Ping timeout: 276 seconds]
<pavelz> should i use ctags ir rtags to get tags from my project
nobitanobi has joined #ruby
bruno- has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
xuanrui has joined #ruby
chouhoulis has quit []
chouhoulis has joined #ruby
bruno- has joined #ruby
beilabs has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
beilabs_ has quit [Ping timeout: 258 seconds]
knight33 has quit [Ping timeout: 276 seconds]
<konsolebox> pavelz: what tags?
bruno- has joined #ruby
cdg has joined #ruby
kn-928 has joined #ruby
cdg has quit [Remote host closed the connection]
chouhoulis has quit []
cdg has joined #ruby
Mon_Ouie has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
opekktar has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
Nutzer has joined #ruby
opekktar has quit [Client Quit]
bruno- has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
goyox86_ has joined #ruby
chouhoulis has joined #ruby
bruno- has joined #ruby
Rodya_ has joined #ruby
funkycrunchy has quit [Ping timeout: 260 seconds]
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dviola has joined #ruby
<Nutzer> hi
belmoussaoui_ has quit [Quit: belmoussaoui_]
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
kapil___ has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
kn-928 has quit [Ping timeout: 240 seconds]
phinxy has quit [Read error: Connection reset by peer]
Azure has quit [Read error: Connection reset by peer]
phinxy has joined #ruby
Dimik has joined #ruby
Nutzer has quit [Ping timeout: 260 seconds]
phinxy has quit [Max SendQ exceeded]
phinxy has joined #ruby
<pavelz> ctags seems to work ok
kkiero has joined #ruby
bruno- has joined #ruby
<pavelz> the kind that index your code so you can zoom right to definion righth awat
Azure has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
jinie_ has quit [Remote host closed the connection]
digitalnomad has joined #ruby
sp4rrow has joined #ruby
GodFather has joined #ruby
maryo has quit [Ping timeout: 255 seconds]
sp4rrow has quit [Ping timeout: 276 seconds]
jinie_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
dennisvennink has joined #ruby
Dump_not has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
phinxy has quit [Read error: Connection reset by peer]
phinxy has joined #ruby
hanmac has joined #ruby
Rodya_ has quit [Remote host closed the connection]
ruby-lang393 has joined #ruby
phinxy has quit [Max SendQ exceeded]
psychicist__ has quit [Ping timeout: 240 seconds]
phinxy has joined #ruby
<ruby-lang393> help
weems|laptop has quit [Ping timeout: 260 seconds]
ruby-lang393 has quit [Client Quit]
ruby-lang826 has joined #ruby
jinie_ has quit [Read error: Connection reset by peer]
GodFather has quit [Ping timeout: 246 seconds]
danman_ has joined #ruby
mikecmpbll has joined #ruby
danman has quit [Ping timeout: 246 seconds]
danman_ is now known as danman
Rodya_ has joined #ruby
shwouchk has joined #ruby
nowayoutofthis1 has quit [Quit: Leaving.]
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
jinie_ has joined #ruby
marr has joined #ruby
bruno- has joined #ruby
psychicist__ has joined #ruby
jinie_ has quit [Client Quit]
Rodya_ has quit [Remote host closed the connection]
danman has quit [Ping timeout: 260 seconds]
danman_ has joined #ruby
jinie_ has joined #ruby
ruby-lang826 has quit [Quit: Page closed]
Rodya_ has joined #ruby
username1 has joined #ruby
weems|laptop has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
Moosashi has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
weems|laptop has quit [Ping timeout: 240 seconds]
harfangk has joined #ruby
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nobitanobi has quit [Remote host closed the connection]
username1 has quit [Ping timeout: 240 seconds]
Henry151 has joined #ruby
<Henry151> heya #ruby. First time in here! :) I've heard that ruby is amazing, but I've never really played with it at all. However I just downloaded it and installed my first gem, to run wayback_machine_downloader
_sfiguser has joined #ruby
<Henry151> however, when I run http://termbin.com/gq94 instead of downloading http://web.archive.org/web/20030215163744/http://www.rompfamily.com/page2.html it downloads a blank page -- I'd love some help figuring this out, even though it may not be a ruby problem; I came here only because the wayback_machine_downloader is written in ruby and thought you guys might be best able to help
sp4rrow has joined #ruby
<Papierkorb> Henry151: Welcome! That issue looks more specific to that program than ruby. Have you tried contacting its maintainers and/or community?
milardovich has joined #ruby
<Henry151> Papierkorb: Thanks for the welcome! I haven't been able to find much community for it, but I haven't yet reached out to the maintainers; I think it is likely more user error than "bug report" material (though I could be wrong!). The program is seen here https://github.com/hartator/wayback-machine-downloader
watersoul has quit [Ping timeout: 240 seconds]
sp4rrow has quit [Ping timeout: 240 seconds]
<Henry151> I certainly acknowledge that it's not exactly a ruby question. I did also ask in ##linux where I often find help; though I realize it's not really a linux problem either, even though I happen to be encountering it while using linux... So I get it, but if you or anybody can help me figure it out anyway, I'd sure appreciate the assistance. If I can't find any help, I will eventually move on to filing a bug
<Henry151> report and waiting for a response from the creator of the project.
nowhere_man has joined #ruby
<Papierkorb> Henry151: Yup, I'd open a github issue, or try contacting (one of) the main contributors. What you're facing is a end-user problem for a very specific program. Though that github project looks healthy, you should be able to get hold of someone
watersoul has joined #ruby
<Papierkorb> Henry151: The wayback community may also be able to help, and they should have a community - Though I don't know, never did anything with it
Moosashi has quit [Quit: Moosashi]
<Henry151> Papierkorb: thanks anyway :) I will look in those directions.
milardovich has quit [Remote host closed the connection]
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has quit [Quit: Konversation terminated!]
nowhere_man has joined #ruby
moei has quit [Quit: Leaving...]
beilabs has quit [Remote host closed the connection]
high_fiver_ has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
opekktar has joined #ruby
boombox_ has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
lexruee has quit [Quit: Leaving]
Moosashi has joined #ruby
marchi has joined #ruby
lexruee has joined #ruby
boombox_ has quit [Ping timeout: 246 seconds]
Moosashi has quit [Client Quit]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
sneakerhax has quit [Ping timeout: 258 seconds]
kies has quit [Ping timeout: 248 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
gusrub has joined #ruby
cdg has quit [Remote host closed the connection]
nobitanobi has joined #ruby
kies has joined #ruby
nobitanobi has quit [Remote host closed the connection]
digitalnomad has joined #ruby
elcontrastador has joined #ruby
Guest7569 has quit [Ping timeout: 240 seconds]
qwagawaga has joined #ruby
<qwagawaga> Hi Everyone, I'm starting to learn ruby, and I can't figure out what does `:@foo` do. Could anyone please explain me?
alamar has joined #ruby
<adaedra> Do you know what :foo is?
alamar is now known as Guest14108
<qwagawaga> a symbol, yes.
<adaedra> :@foo is, too.
<adaedra> The @ is part of the symbol.
<qwagawaga> so :@foo has nothing to do with :foo?
<qwagawaga> sorry, with @foo
<adaedra> it's just a symbol
kapil___ has quit [Quit: Connection closed for inactivity]
sp4rrow has joined #ruby
<adaedra> You can use this symbol with instance_variable_get / _set to reference @foo, however
nikivi has quit [Quit: ZNC 1.6.5 - http://znc.in]
Moosashi has joined #ruby
Murda has joined #ruby
Fridtjof has joined #ruby
ahrs has quit [Remote host closed the connection]
<qwagawaga> adaedra: could you ellaborate please? I did not understand
ahrs has joined #ruby
skweek has joined #ruby
<adaedra> `instance_variable_get :@foo` would get you the value of @foo in the current context
dennisvennink has joined #ruby
roboncloud has left #ruby [#ruby]
opekktar has quit [Ping timeout: 240 seconds]
enterprisey has joined #ruby
<qwagawaga> adaedra: how is ``instance_variable_get :@foo` different from writing @foo? why do both exist?
opekktar has joined #ruby
opekktar has quit [Remote host closed the connection]
<adaedra> one is dynamic
<adaedra> instance_variable_get is a method, so you can pass it what you want, including a variable
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adaedra> but that's not used so often, just ignore it for now
JP2017ggg has joined #ruby
<JP2017ggg> Heyloo. Can anyone help me with an issue around multi-level arrays?
enterprisey has quit [Quit: Leaving]
username has joined #ruby
<adaedra> Just state your problem
phinxy has quit [Quit: Leaving]
ur5us has joined #ruby
<apeiros> qwagawaga: @foo and :@foo do have something to do with each other, though. ruby uses :@foo internally to represent the human readable name of @foo
jenrzzz has joined #ruby
<JP2017ggg> E.g. array = [[],[]] array[0].push([data]) results in every position in the subarray of array[0] being overwritten. How can I get around this? At minimum I need an array with arrays e.g. [[res11,res12],[res21,res22]] What happens is res[[res21,res22],[res21,res22]]
<apeiros> same for all other things with human readable names. if you have a local variable `bar`, a Symbol :bar will start to exist. same for a global $baz, will make :$baz to start existing
<apeiros> JP2017ggg: you probably don't have `array = [[], []]` but instead `subarray = []; array = [subarray, subarray]`
<apeiros> i.e. you don't have different subarrays, but the same array in multiple positions as subarray
<apeiros> but that's just an educated guess. please show us a reproducible example case. paste it on gist.github.com
psychicist__ has quit [Read error: Connection reset by peer]
gusrub has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 248 seconds]
Dimik has quit [Ping timeout: 240 seconds]
<apeiros> if you give the gist a filename ending in .rb, you get syntax highlighting ;-)
<JP2017ggg> Sorry, that's wrong snippet
<JP2017ggg> two seconds.
<JP2017ggg> It's part of an enormous process, will have to unravel a good example
<apeiros> 👍🏻
Phate has joined #ruby
phate408 has quit [Ping timeout: 276 seconds]
kn-928 has joined #ruby
<konsolebox> apeiros: a local variable is also presented internally with a symbol?
<apeiros> as said, everything with a human readable name
Moosashi has quit [Quit: Moosashi]
<konsolebox> i just kind of doubt it
<apeiros> symbols are rubys internal naming system exposed as a runtime accessible construct
<konsolebox> i know symbols, but i just local variables are also presented with such
<apeiros> that's why they exist at all :)
<konsolebox> *i just doubt
psychicist__ has joined #ruby
<matthewd> konsolebox: How do you think it works then?
<apeiros> they are not presented, they're identified
<apeiros> I haven't read that much of the source, but I certainly hope that internal access in execution doesn't happen by name
<konsolebox> i know how instance variables, classes, etc. are identified with and ID. but i doubt it's true for local variables
<adaedra> >> foo = 1; binding.local_variables
<ruby[bot]> adaedra: # => [:foo] (https://eval.in/844951)
<adaedra> tada
<apeiros> I'd expect it to be used with things like eval, though
tacotime has joined #ruby
<konsolebox> i thought i what read somewhere that describes local variables to be "opaque"
<apeiros> you can use Symbol.all_symbols. be careful though, the interpreter might read ahead :)
<matthewd> I'll grant that "identified with" is a stretch... but they're definitely linked
<konsolebox> *i thought i read
high_fiver_ has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<konsolebox> matthewd: yeah maybe that
<JP2017ggg> ah can't believe it, just found a solution, but it's not nice programming (imo)
high_fiver_ has joined #ruby
kn-928 has quit [Quit: WeeChat 1.9]
kn-928 has joined #ruby
<JP2017ggg> if I define the subarray within the loop level where it is used to plonk data on end of the perpetual results array, it *then* stops being overwritten in every position
digitalnomad has joined #ruby
gusrub has joined #ruby
sneakerhax has joined #ruby
high_fiver has joined #ruby
harfangk has quit [Ping timeout: 240 seconds]
high_fiver_ has quit [Ping timeout: 255 seconds]
Moosashi has joined #ruby
herwin has quit [Ping timeout: 240 seconds]
herwin has joined #ruby
jaequery has joined #ruby
yottanami_ has joined #ruby
<yottanami_> I am trying to bundle install but I got this error http://dpaste.com/3R7SYC1
<yottanami_> How should I fix it?
marchi has left #ruby [#ruby]
Moosashi_ has joined #ruby
<yottanami_> lxsameer, ping
<apeiros> yottanami_: use a non-EOL ruby version
Moosashi has quit [Ping timeout: 260 seconds]
Moosashi_ is now known as Moosashi
<apeiros> and if you insist on using an EOL ruby version, at least use the last patch release
<konsolebox> also, do you really have to use a non-system version? (looks at local)
marchi has joined #ruby
ltem has quit [Quit: Leaving]
marchi has quit [Client Quit]
marchi has joined #ruby
<konsolebox> since when has 2.1 EOL'd? (i'm glad it already did.)
* DLSteve looks at his Python 2.7.13 with 3 more years till EoL :(
Henry151 has quit [Ping timeout: 276 seconds]
marchi has quit [Ping timeout: 240 seconds]
Henry151 has joined #ruby
<apeiros> konsolebox: I think when 2.4 was released
t-recx has quit [Quit: t-recx]
<yottanami_> apeiros, I also tried to install 2.0.0-p648 but I got `Segmentation fault (core dumped)`
high_fiver has quit [Ping timeout: 248 seconds]
<yottanami_> I have to use 2.0
<apeiros> hm, well, segmentation faults are as far as I see it necessarily bugs in ruby itself or one of the linked libraries. since 2.0 is EOL, you're probably out of luck for getting a fix.
quobo has quit [Quit: Connection closed for inactivity]
<apeiros> though… I think there's some 3rd parties which maintain patches for EOLd rubies. don't know names or urls, though :-/
<yottanami_> apeiros, It was working but after updating my OS ot happens
<lxsameer> yottanami_: pong
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
nikivi has joined #ruby
jackjackdripper has joined #ruby
Moosashi_ has joined #ruby
yottanami_ has quit [Ping timeout: 248 seconds]
username has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
Moosashi has quit [Ping timeout: 260 seconds]
Moosashi_ is now known as Moosashi
kn-928 has quit [Quit: WeeChat 1.9]
kn-928 has joined #ruby
qwagawaga has quit [Quit: Page closed]
kn-928 has quit [Client Quit]
kn-928 has joined #ruby
Moosashi has quit [Quit: Moosashi]
jenrzzz has quit [Ping timeout: 240 seconds]
kn-928 has quit [Quit: WeeChat 1.9]
kn-928 has joined #ruby
JP2017ggg has quit []
chouhoulis has quit [Remote host closed the connection]
moei has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
gusrub has quit [Remote host closed the connection]
knight33 has joined #ruby
konsolebox has quit [Ping timeout: 255 seconds]
mtkd has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qwagawaga has joined #ruby
konsolebox has joined #ruby
<qwagawaga> Could someone please help me understand what does the following line do and what is the order of execution in it:
s3nd1v0g1us has quit [Quit: tempusfugit]
<qwagawaga> block or return enum_for(__method__) { size }
patr0clus has joined #ruby
patr0clus has quit [Max SendQ exceeded]
<apeiros> ew, people really use `cond or return`?
patr0clus has joined #ruby
patr0clus has quit [Max SendQ exceeded]
<apeiros> qwagawaga: if no block is given, it'll return an Enumerator. see Object#enum_for
<qwagawaga> this is taken from csv.rb of ruby github repo
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
nobitanobi has joined #ruby
digitalnomad has joined #ruby
<qwagawaga> apeiros: could you explain me what is the order of operations here?
<apeiros> `a or b` executes a first, if it's non-nil/false, execution stops and the expression evaluates to a
<apeiros> otherwise b is executed and the expression evaluates to b
<apeiros> b here is `return enum_for(__method__) { size }`
<apeiros> do you need the order of execution of that part too?
<qwagawaga> I guess it is return (((enum_for(__method__))(size)). Am I right?
<apeiros> blocks are not evaluated, no
<apeiros> they're passed as-is to the method
<apeiros> and evaluated on demand by the method (possibly never)
<apeiros> other than that, yes.
<qwagawaga> { size} is a block?
<apeiros> yes
<qwagawaga> is enum_for(__method__) { size } two function calls or one with two arguments?
<qwagawaga> is enum_for(__method__) { size } making two function calls or one with two arguments?
<apeiros> __method__ is the first method call
<apeiros> the result of which is passed to the method enum_for as argument, along with the special block arg.
<apeiros> so it's two method calls. the block itself is not called. it is passed as is.
<apeiros> try it yourself: `def foo; end; foo do puts "hi" end`
<qwagawaga> isn't __method__ a local variable? you say it's a function call
<apeiros> this will not print anything since the method does not invoke the block.
<apeiros> s/function/method/
<apeiros> I asked ruby. I thought it might be syntax.
<apeiros> >> defined? __method__
<ruby[bot]> apeiros: # => "method" (https://eval.in/844975)
ramfjord has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
ramfjord has joined #ruby
<qwagawaga> why does `def foo; end; foo do puts "hi" end` execute in the first place? shouldn't it fail as foo takes 0 arguments?
<apeiros> though it might still be syntax and `defined?` just doesn't distinguish.
<apeiros> as said, blocks are special arguments. you don't have to name them.
<apeiros> and if you do name them, it's with a & in front: `def foo(&block); …; end`
<qwagawaga> if I don't name them, they can't be invoked?
<apeiros> they can. by using the keyword `yield`
<elomatreb> You can give a block to any method, butyou can also call methods that would take one without it, they will only fail once they try to execute it
<apeiros> and you can test whether one was provided using `block_given?`
<matthewd> >> def foo; 123.send :__method__; end; foo
<ruby[bot]> matthewd: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<apeiros> if you use &block, you can invoke it using block.call(), and test for presence by testing block for not being nil
<elomatreb> >> def test(do_yield); yield if do_yield; end; test(false) { puts "asdf"; }; test(true)
<ruby[bot]> elomatreb: # => no block given (yield) (LocalJumpError) ...check link for more (https://eval.in/844983)
<qwagawaga> apeiros: thanks for clarifications! You're helping a lot
gusrub has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<qwagawaga> elomatreb: thank you for your example.
<qwagawaga> Is there any place where syntax and evaluation order of ruby is specified? a more recent version of http://docs.huihoo.com/ruby/ruby-man-1.4/yacc.html for example
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<qwagawaga> the yacc code in ruby uses multiple hacks with mutable state that are tricky to follow
<matthewd> I imagine that's still fairly accurate, if missing newer features
TomyLobo has quit [Ping timeout: 255 seconds]
<apeiros> funny, I use ruby for over a decade now and still don't know the order of a couple of things. e.g. arguments passed to methods. I'd just assume LTR.
chouhoulis has joined #ruby
tacotime has quit [Remote host closed the connection]
<qwagawaga> matthewd: I've been following it originally, but unfortunatelly it misses a lot. It does not have symbols, does not have ternary operator. Those so far were the most tricky to me, as they are ambigous
tacotime has joined #ruby
<qwagawaga> It also does not have HereDocs, which are ambigous with left shift.
<elomatreb> >> def test(*args); args; end; a = 0; test(a += 1, a += 1)
<ruby[bot]> elomatreb: # => [1, 2] (https://eval.in/844987)
<qwagawaga> Either it didn't exist back then or the grammar conviniently didn't cover tricky cases
<elomatreb> The sqiggly ones were new in 2.3 IIRC
biberu has quit []
<matthewd> Those are precisely the things that make it too complex to present (or implement) as BNF, though ¯\_(ツ)_/¯
<qwagawaga> yup :-), but is there any other presentation then yacc code?
<matthewd> There's https://ruby-doc.org/core/doc/syntax_rdoc.html & friends -- there's an operator precedence table there
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Remote host closed the connection]
<qwagawaga> matthewd: it also does not cover symbols or herdocs...
<matthewd> If there were a legible precise full description of the language, surely that'd be used to derive the parser
<apeiros> the iso spec probably contains it
<apeiros> but the iso spec is for 1.8.6 iirc and costs money
<matthewd> They're both covered under literals
<apeiros> though the draft is freely available
<qwagawaga> apeiros: thanks for telling it exists.
<matthewd> At a certain point, though, unless you're writing a parser (don't write a parser), I'd say it boils down to some combination of 1) experiment in irb, and 2) don't nest things that are particularly ambiguous
<apeiros> I'd not use irb. not that you happen to run into one of its quirks.
<qwagawaga> matthewd: I am writing a parser, indeed. I actually already wrote one and now I'm debugging inconsitencies
<apeiros> they're very rare, but if you test for such things, you might just run into one :)
<matthewd> Wait, you're writing a ruby parser?
alfiemax has joined #ruby
<qwagawaga> apeiros: thanks for saying this, I didn't know
<apeiros> qwagawaga: might want to talk to whitequark
<matthewd> And you just learned how block parameters work?
<apeiros> he's even online
<matthewd> *Why*?!
<qwagawaga> matthewd: yes. I'm going to be working a ruby company soon, and I have background in compilers. I didn't like error messages that I saw from ruby, so I've started implementing my own parser.
<apeiros> and from what he told me and wrote on twitter, you may want to stop :D
<apeiros> ruby is terrible with consistency of syntax across versions
<apeiros> according to whitequark, they've changes to the syntax even in patch-level releases
<qwagawaga> yes, I've already learned it. Though I don't like this situation, one way to improve it is to make a better parser
Yacker has joined #ruby
<qwagawaga> is this the right person?
<qwagawaga> The current state is: I took the biggest file in ruby distribution (markdown.rb). On it my parser is consistent with ruby parser, is ~10 times faster and the new design can provide nice error messages.
<elomatreb> That's the right whitequark, yes
<qwagawaga> But yes, this file does not use some of the features of ruby language, so I'm going through all other ruby files to find where I'm inconsistent
<apeiros> qwagawaga: yupp. they're on irc as whitequark as well.
<qwagawaga> so far, I'm having a lot of head-ache with operator precedence
<apeiros> qwagawaga: https://github.com/whitequark/parser relevant
<matthewd> Operator precedence should be the easy part: that, you should be able to copy straight from yacc
<qwagawaga> matthewd: not really. As I intentionally try to work without global mode bits that alter behavior.
<qwagawaga> matthewd: here is an example that was hard to get right
<qwagawaga> (header_or_index.is_a?(Integer) || header_or_index.is_a?(Range)) ? :[] : :assoc
<matthewd> How is that relevant to operator precedence?
alfiemax has quit [Remote host closed the connection]
<qwagawaga> because you have to decide which : is part of the ternary
<qwagawaga> normally this would be easy as you'll treat : as an unary operator, but that's not how its done
boombox_ has joined #ruby
<matthewd> I'm pretty sure the only thing you need global state for is heredocs
<qwagawaga> ruby parsser has 13 bits that alter it's behavior
<qwagawaga> it frequently checks multiple at once
<qwagawaga> EXPR_BEG_bit, /* ignore newline, +/- is a sign. EXPR_END_bit, /* newline significant, +/- is an operator. EXPR_ENDARG_bit, /* ditto, and unbound braces. EXPR_ENDFN_bit, /* ditto, and unbound braces. EXPR_ARG_bit, /* newline significant, +/- is an operator. EXPR_CMDARG_bit, /* newline significant, +/- is an operator. EXPR_MID_bit,
Murda has quit [Quit: Murda]
<qwagawaga> ouch...
<matthewd> https://github.com/matthewd/adelaide/blob/master/adelaide.kpeg -- horribly outdated now (only handled 1.8 syntax), and I haven't touched it in ages, but it definitely worked
<qwagawaga> here are those bits
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
boombox_ has quit [Ping timeout: 260 seconds]
<matthewd> IIRC most of those are about where the lexer/parser split sits
Henry151 has quit [Ping timeout: 276 seconds]
Henry151 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jphase has joined #ruby
m27frogy has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Quit: WeeChat 1.9]
jphase has quit [Ping timeout: 276 seconds]
digitalnomad has joined #ruby
jaequery has joined #ruby
Moosashi has joined #ruby
laphoraig75 has joined #ruby
hightower2 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
goyox86_ has quit [Quit: goyox86_]
m27frogy has joined #ruby
sp4rrow has joined #ruby
Guest10468 has quit [Quit: WeeChat 1.9]
nobitanobi has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
alfiemax has joined #ruby
Moosashi has quit [Quit: Moosashi]
goyox86_ has joined #ruby
goyox86_ has quit [Client Quit]
Tohuw has left #ruby ["Textual IRC Client: www.textualapp.com"]
alfiemax has quit [Ping timeout: 248 seconds]
gizmore has quit [Ping timeout: 246 seconds]
qwagawaga has quit [Quit: Page closed]
laphoraig75 has quit [Remote host closed the connection]
laphoraig75 has joined #ruby
enterprisey has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
jaequery has quit [Remote host closed the connection]
jaequery has joined #ruby
m27frogy has quit [Ping timeout: 255 seconds]
m27frogy has joined #ruby
Henry151 has quit [Quit: Lost terminal]
anuxivm has joined #ruby
kev1n has joined #ruby
milardovich has quit []
kev1n has quit [Remote host closed the connection]
kev1n has joined #ruby
kkiero has quit [Read error: Connection reset by peer]
kev1n has quit [Remote host closed the connection]
kev1n has joined #ruby