SeepingN has quit [Quit: The system is going down for reboot NOW!]
ramfjord has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
kies has quit [Ping timeout: 260 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
ramfjord has joined #ruby
infernix has quit [Ping timeout: 240 seconds]
Vivekananda has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
cagomez has quit [Ping timeout: 240 seconds]
gusrub has quit []
Vivekananda has quit [Read error: Connection reset by peer]
pb122-two has joined #ruby
cdg has joined #ruby
pb122 has quit [Ping timeout: 276 seconds]
__Yiota has joined #ruby
ascarter has joined #ruby
funkycrunchy has joined #ruby
elcontrastador has quit [Ping timeout: 240 seconds]
funkycrunchy has left #ruby ["WeeChat 1.9"]
jenrzzz has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
BSAlb has joined #ruby
BSAlb has quit [Max SendQ exceeded]
BSAlb has joined #ruby
BSAlb has quit [Client Quit]
chimkan has joined #ruby
<chimkan>
Hey
BSaboia has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
cdg has quit [Remote host closed the connection]
ascarter has quit [Ping timeout: 260 seconds]
K3rber0s has joined #ruby
chouhoulis has joined #ruby
cadillac_ has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
benlieb has quit [Client Quit]
cadillac_ has joined #ruby
funkycrunchy has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
logicscience has quit [Ping timeout: 246 seconds]
phinxy has joined #ruby
chimkan has quit [Ping timeout: 240 seconds]
jphase has quit [Remote host closed the connection]
infernix has joined #ruby
jphase has joined #ruby
jack298 has joined #ruby
Moosashi has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
jack298 has quit [Ping timeout: 248 seconds]
rahult has joined #ruby
Moosashi has quit [Client Quit]
brent__ has quit [Remote host closed the connection]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Client Quit]
vondruch has joined #ruby
jphase has quit [Remote host closed the connection]
kies has joined #ruby
jphase has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has quit [Ping timeout: 255 seconds]
<quuxman>
Does anyone have a reasonable implementation of ctags for Ruby? Simple class definitions like "module Foo \n class Bar" don't create a "Foo::Bar" tag with universal-ctags and even ruby gem ripper-tags
samlisl_ has joined #ruby
kies has quit [Ping timeout: 276 seconds]
radial has joined #ruby
GodFather has quit [Remote host closed the connection]
<radial>
it comes from the 7'44" mark in this video: https://www.youtube.com/watch?v=4DqzaqeeMgY where the author describes it as: "A global variable that's an array that contains a list of directories, and then you would loop over the list of directories, seeing if the file being required is present in any of those directories"
<radial>
but i don't see a loop over the parts of $LOAD_PATH, since he uses $LOAD_PATH.first
<radial>
but i'm probably missing something, as i'm new to ruby
<law>
can I do iterators in a heredoc?
<quuxman>
seems ruby syntax is just too complex for reasonable implementation with ctags
<dminuoso>
amosbird: That is basically a continuation object.
alamar is now known as Guest7569
<amosbird>
so rb_jmpbuf_t is all we need
jinie_ has quit [Ping timeout: 240 seconds]
andking has joined #ruby
<dminuoso>
need what for?
andking has left #ruby [#ruby]
<amosbird>
to restore the suspension
<dminuoso>
amosbird: No.
<dminuoso>
amosbird: Ruby operates on an abstract stack machine, and the entire state of that stack machine has to be captured.
eregon has joined #ruby
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jinie_ has joined #ruby
<dminuoso>
amosbird: I mean just as a random example, "self" is part of that context
<amosbird>
"the entire state of that stack machine" . is that equal to all registers?
<dminuoso>
amosbird: Ruby does not have registers
<amosbird>
ok
<matthewd>
amosbird: Do you have an objective you're trying to decide whether callcc fits, or just wanting to learn out of interest?
<amosbird>
matthewd: the latter
jinie- has joined #ruby
<dminuoso>
amosbird: I recommend you check out Ruby under a Microscope. It doesn't go too much into those specific details, but it gives an accurate picture of lots of Ruby internals.
<dminuoso>
including the Ruby VM
<dminuoso>
Well. YARV. :-)
<amosbird>
ok, thanks!
<dminuoso>
matthewd: Though I'm surprised that continuations are not used that widely.
<dminuoso>
Especially in algorithms or parsers I could see their use.
cdg has quit [Remote host closed the connection]
jinie_ has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
sameerynho is now known as lxsameer
lxsameer is now known as sameerynho
sameerynho is now known as lxsameer
lxsameer has quit [Quit: WeeChat 1.4]
lxsameer has joined #ruby
lxsameer is now known as Guest57856
<dminuoso>
amosbird: Actually the more I think, python generators could be pretty helpful to understand what they are about. In python `yield` basically captures the execution context, and `next` resumes right at that previously stored context.
<dminuoso>
Though the better abstract term is `coroutines` rather than `generators`
<matthewd>
dminuoso: I think they're fairly incompatible with block-based resource management -- as soon as blocks can be entered/exited an unequal number of times, things get unpleasant
uZiel has joined #ruby
Guest57856 is now known as sameerynho
cdg has quit [Ping timeout: 255 seconds]
careta has joined #ruby
jinie- has quit [Ping timeout: 260 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jinie_ has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Bhootrk_ has quit [Read error: Connection reset by peer]
conta has quit [Ping timeout: 248 seconds]
ur5us has quit [Remote host closed the connection]
Ishido has joined #ruby
cdg has joined #ruby
ur5us has joined #ruby
rgtk has joined #ruby
ur5us has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
jinie- has joined #ruby
cdg has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
jinie_ has quit [Ping timeout: 260 seconds]
cdg has quit [Ping timeout: 276 seconds]
apparition has joined #ruby
ryzokuken has quit [Remote host closed the connection]
ropeney has joined #ruby
ryzokuken has joined #ruby
sepp2k has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
aupadhye has quit [Remote host closed the connection]
aupadhye has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mooser has joined #ruby
ldnunes has joined #ruby
ascarter has quit [Ping timeout: 240 seconds]
qsx has joined #ruby
uZiel has joined #ruby
leandrobighetti has quit [Remote host closed the connection]
mooser has quit [Remote host closed the connection]
leandrobighetti has joined #ruby
chouhoulis has joined #ruby
high_fiver has quit [Ping timeout: 260 seconds]
aupadhye has quit [Ping timeout: 240 seconds]
leandrobighetti has quit [Ping timeout: 240 seconds]
aupadhye has joined #ruby
leandrobighetti has joined #ruby
evie_hammond has quit [Quit: WeeChat 1.9]
govg has quit [Ping timeout: 258 seconds]
eightlimbed has joined #ruby
nowhere_man has joined #ruby
TomyWork has quit [Quit: Leaving]
TomyWork has joined #ruby
sylario has joined #ruby
<sylario>
I am trying to undestand a line of ruby :
<sylario>
ignore %r{^ignored/path/}, /public/
<sylario>
first, is it two argumets, or one, I am not sure to really understand the regex
<dminuoso>
sylario: %r{} is just a different way of writing // (except you don't have to escape slashes)
<Papierkorb>
sylario: That line calls a method called `ignore` with two arguments. Both are regular expressions. The first one matches `ignored/path/` only at the start of whatever it is matched against, and the second regular expression matches the string `public` anywhere
<sylario>
ok thank you both
InfinityFye has joined #ruby
chmurifree is now known as chmuri
govg has joined #ruby
tobiasvl has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
cadillac_ has quit [Ping timeout: 248 seconds]
cadillac_ has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
aupadhye has joined #ruby
ta_ has quit [Remote host closed the connection]
marr has joined #ruby
spiette has joined #ruby
eightlimbed has quit [Ping timeout: 260 seconds]
ascarter has quit [Ping timeout: 255 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
crankharder has joined #ruby
goyox86 has joined #ruby
rgtk has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
cdg has joined #ruby
t-recx has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
jphase has joined #ruby
cdg_ has joined #ruby
funkycrunchy has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
cdg has quit [Ping timeout: 248 seconds]
K3rber0s has joined #ruby
K3rber0s_ has quit [Ping timeout: 248 seconds]
eightlimbed has joined #ruby
mim1k has joined #ruby
belmoussaoui has quit [Quit: belmoussaoui]
goyox86 has quit [Ping timeout: 240 seconds]
InfinityFye has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
K3rber0s has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
bruno- has quit [Ping timeout: 240 seconds]
InfinityFye has joined #ruby
DLSteve has joined #ruby
K3rber0s_ has joined #ruby
kapil___ has joined #ruby
Dump_not has joined #ruby
_sfiguser has quit [Ping timeout: 240 seconds]
uZiel has joined #ruby
jenrzzz has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
greister has quit [Read error: Connection reset by peer]
high_fiver has joined #ruby
jespada has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
funkycrunchy has quit [Read error: Connection reset by peer]
_sfiguser has joined #ruby
oleo has joined #ruby
eightlimbed has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
imperator has joined #ruby
mooser has joined #ruby
mooser has quit [Ping timeout: 240 seconds]
jolamb has joined #ruby
swills has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
ascarter has joined #ruby
Dump_not has quit [Remote host closed the connection]
Dump_not has joined #ruby
swills has joined #ruby
mwlang has joined #ruby
apparition47 has joined #ruby
swills has quit [Read error: Connection reset by peer]
ascarter has quit [Ping timeout: 248 seconds]
chouhoulis has joined #ruby
bruno- has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
Rapture has joined #ruby
high_fiver has quit [Ping timeout: 260 seconds]
bruno- has joined #ruby
funkycrunchy has joined #ruby
sleepee has quit [Ping timeout: 248 seconds]
beilabs has quit [Remote host closed the connection]
bruno- has quit [Read error: Connection reset by peer]
mooser has joined #ruby
beilabs has joined #ruby
swills has joined #ruby
<jtperreault>
6
<jtperreault>
^ mistype, sorry.
bruno- has joined #ruby
savoir-faire is now known as linuxdood
bruno- has quit [Read error: Connection reset by peer]
swills has quit [Excess Flood]
swills has joined #ruby
swills has joined #ruby
mooser has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
chouhoul_ has joined #ruby
reber has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
swills has quit [Ping timeout: 240 seconds]
chouhoul_ has joined #ruby
rgtk has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
cdg_ has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
dlitvak has joined #ruby
kculpis has joined #ruby
bruno-_ has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
linuxdood is now known as linuxdood__
bruno-_ has quit [Read error: Connection reset by peer]
gibranlp has joined #ruby
<gizmore|2>
what is an easy proof for unlimited prime numbers?
bruno- has joined #ruby
aupadhye has quit [Ping timeout: 240 seconds]
linuxdood__ is now known as savoir-faire
rabajaj has quit [Quit: Leaving]
[Butch] has joined #ruby
Chef3000 has joined #ruby
swills has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
swills has joined #ruby
swills has quit [Changing host]
bruno- has joined #ruby
rabajaj has joined #ruby
<Chef3000>
I need to take part of a hostname and make it a variable. I need the 4th character to the 5th from last for example abcSTRING12345 is the hostname and I just want to get STRING out. Not sure if .split or regex is the best approach.
bruno- has quit [Read error: Connection reset by peer]
vondruch has quit [Ping timeout: 260 seconds]
PsionTheory has joined #ruby
bruno- has joined #ruby
Dump_not has quit [Remote host closed the connection]
bruno- has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
Dump_not has joined #ruby
bruno- has joined #ruby
Dump_not has quit [Remote host closed the connection]
cam27 has joined #ruby
swills has quit [Read error: Connection reset by peer]
beilabs_ has joined #ruby
high_fiver has joined #ruby
swills has joined #ruby
swills has joined #ruby
beilabs has quit [Ping timeout: 255 seconds]
polishdub has joined #ruby
guacamole has joined #ruby
<Papierkorb>
Chef3000: So the format is, lower case characters (you don't care about), then upper case characters (which you do care about), and then some decimals?
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Mrgoose2>
ah, maybe slight confusion. results is an object. results.{wan}.interface_address.ip . I wanted to dynamically replace the part inside the { }
<Mrgoose2>
if that makes sense
eputnam has joined #ruby
OINK has quit [Read error: Connection reset by peer]
polysics_ has joined #ruby
dmtd has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Hypercube32 has joined #ruby
wilbert has quit [Ping timeout: 255 seconds]
s1kx has quit [Quit: s1kx]
<havenwood>
Mrgoose2: Do you mean?: results.wan.interface_address.ip
oleo has quit [Ping timeout: 255 seconds]
nofxxx has quit [Read error: Connection reset by peer]
<havenwood>
Mrgoose2: Just add the #interface_address to the code I showed you above. You didn't mention that previously.
polysics has quit [Ping timeout: 255 seconds]
<SeepingN>
>> %w(words in parens not brackets)
<ruby[bot]>
SeepingN: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<SeepingN>
huh?
<SeepingN>
>> puts %w(words in parens not brackets)
<havenwood>
Mrgoose2: `results.public_send word` is the part where #word is called on `results`
<ruby[bot]>
SeepingN: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<havenwood>
SeepingN: Bot eval is down.
<SeepingN>
oh sorry
nofxx has joined #ruby
eckhardt has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 240 seconds]
eckhardt has joined #ruby
spheric has joined #ruby
_sfiguser has quit [Ping timeout: 276 seconds]
Joufflu has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mooser has quit [Read error: Connection reset by peer]
goyox86 has joined #ruby
mooser has joined #ruby
goyox86 has quit [Client Quit]
digitalnomad has joined #ruby
digitalnomad has quit [Client Quit]
hutch34 has quit [Ping timeout: 240 seconds]
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
digitalnomad has joined #ruby
_sfiguser has joined #ruby
rgtk has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
mwlang has quit [Quit: mwlang]
Rodya_ has joined #ruby
hutch34 has joined #ruby
ltem has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 255 seconds]
ramfjord has quit [Ping timeout: 255 seconds]
hutch34 has joined #ruby
rikkipitt has joined #ruby
ramfjord has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
TomyLobo has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
cdg_ has joined #ruby
hutch34 has joined #ruby
reber has quit [Remote host closed the connection]
ltem has quit [Quit: Leaving]
ramfjord has quit [Ping timeout: 255 seconds]
ascarter_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
cdg_ has quit [Ping timeout: 276 seconds]
hutch34 has quit [Ping timeout: 255 seconds]
alfiemax has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
ramfjord has joined #ruby
hutch34 has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
alfiemax has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
leandrobighetti has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
Pisuke has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
jphase has quit [Remote host closed the connection]
funburn has joined #ruby
jphase has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
hutch34 has joined #ruby
ramfjord has joined #ruby
ur5us has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 255 seconds]
polishdub has quit [Remote host closed the connection]
Cohedrin_ has quit [Ping timeout: 255 seconds]
patr0clus has joined #ruby
patr0clus has quit [Max SendQ exceeded]
ramfjord has quit [Ping timeout: 260 seconds]
<Mrgoose2>
havenwood: still around? one more question
patr0clus has joined #ruby
patr0clus has quit [Max SendQ exceeded]
ramfjord has joined #ruby
hutch34 has joined #ruby
<havenwood>
Mrgoose2: yup
mtkd has quit [Ping timeout: 240 seconds]
<havenwood>
Mrgoose2: At this time of day there're lots of folk to answer.