chouhoulis has quit [Remote host closed the connection]
t-recx has quit [Quit: t-recx]
jenrzzz has quit [Ping timeout: 258 seconds]
nikivi has joined #ruby
Moosashi has joined #ruby
swills has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has quit [Remote host closed the connection]
swills has quit [Ping timeout: 258 seconds]
mim1k has joined #ruby
swills has joined #ruby
swills has joined #ruby
AxelAlex has joined #ruby
alfiemax has joined #ruby
elcontrastador has joined #ruby
alfiemax has quit [Ping timeout: 255 seconds]
anuxivm has quit [Quit: Leaving.]
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elcontrastador has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 240 seconds]
Moosashi has quit [Quit: Moosashi]
astrobunny has joined #ruby
maryo has quit [Ping timeout: 240 seconds]
maryo has joined #ruby
Moosashi has joined #ruby
digitalnomad has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
meinside has quit [Quit: Connection closed for inactivity]
funkycrunchy has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
maryo has quit [Ping timeout: 240 seconds]
shwouchk has quit [Quit: Connection closed for inactivity]
maryo has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
jphase has joined #ruby
jenrzzz has joined #ruby
maryo has quit [Ping timeout: 240 seconds]
jphase has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
__Yiota has joined #ruby
frozengeek_ has quit [Quit: frozengeek_]
Mia has quit [Ping timeout: 240 seconds]
funkycrunchy has joined #ruby
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
cibs_ is now known as cibs
Emmanuel_Chanel has joined #ruby
funkycrunchy has quit [Quit: WeeChat 1.9]
funkycrunchy has joined #ruby
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Moosashi has quit [Read error: Connection reset by peer]
Moosashi has joined #ruby
hfp_work has joined #ruby
jaequery has joined #ruby
Rodya_ has quit [Remote host closed the connection]
postmodern has joined #ruby
cadillac_ has joined #ruby
alfiemax has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
gusrub has joined #ruby
phate408 has joined #ruby
brent__ has quit [Remote host closed the connection]
Phate has quit [Ping timeout: 255 seconds]
brent__ has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
Rodya_ has joined #ruby
uZiel has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
Silthias has joined #ruby
Silthias1 has quit [Ping timeout: 240 seconds]
beilabs has joined #ruby
beilabs has quit [Remote host closed the connection]
enterprisey has quit [Remote host closed the connection]
uZiel has quit [Ping timeout: 248 seconds]
jnollette has quit [Ping timeout: 260 seconds]
cadillac_ has quit [Read error: Connection reset by peer]
jnollette has joined #ruby
cadillac_ has joined #ruby
funkycru1 has joined #ruby
cagmz has quit [Quit: Leaving]
funkycrunchy has quit [Ping timeout: 240 seconds]
gix has quit [Ping timeout: 246 seconds]
ozcanesen has joined #ruby
jnollette has quit [Quit: All your IRC are belong to ZNC]
jnollette has joined #ruby
phinxy has quit [Read error: Connection reset by peer]
Dimik has joined #ruby
gix has joined #ruby
seggy has joined #ruby
Yacker has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has joined #ruby
newcoder has joined #ruby
newcoder has left #ruby [#ruby]
jinie_ has quit [Read error: Connection reset by peer]
jinie_ has joined #ruby
digitalnomad has joined #ruby
mim1k has joined #ruby
djbkd has joined #ruby
dc1 has quit [Ping timeout: 260 seconds]
dc1 has joined #ruby
wilbert has joined #ruby
wilbert_ has joined #ruby
wilbert has quit [Ping timeout: 248 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Remote host closed the connection]
brent__ has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
jaequery has joined #ruby
opekktar has joined #ruby
jaequery has quit [Client Quit]
howdoi has joined #ruby
anisha has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
govg has quit [Quit: leaving]
chouhoulis has joined #ruby
enterprisey has joined #ruby
jaequery has joined #ruby
chouhoulis has quit [Ping timeout: 255 seconds]
__Yiota has joined #ruby
opekktar has quit [Ping timeout: 255 seconds]
gusrub has quit []
kev1n has joined #ruby
enterprisey has quit [Remote host closed the connection]
kev1n has quit [Remote host closed the connection]
kev1n has joined #ruby
sp4rrow has quit [Quit: Textual]
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elcontrastador has joined #ruby
alfiemax has joined #ruby
aupadhye has joined #ruby
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
danman_ has quit [Quit: danman_]
<elcontrastador>
Hi guys...i've got a frustrating issue where pulling command output from an s ssh session is giving intermittent output results. Writing each cmd output to a file sometimes works fine (with my stupid sleep statements), other times partial outputs. Here's the source (interesting bits start at the sleep at line 39): https://gist.github.com/elcontrastador/1d798aae2b2e5e5ab8af38bd49d566c9
alfiemax has quit [Ping timeout: 276 seconds]
<elcontrastador>
the switch is local, just used for testing...so not a network issue
<elcontrastador>
was playing with $stdout.sync = true...thats not helping...
<elcontrastador>
also tried STDOUT.flush...
kev1n has quit [Read error: Connection reset by peer]
kev1n has joined #ruby
kevin has joined #ruby
kevin is now known as Guest92392
ShekharReddy has joined #ruby
<elcontrastador>
updated gist to show some garbled output...so strange...gist removed the <BS> and <CR> tags
kev1n has quit [Ping timeout: 240 seconds]
oleo has quit [Quit: irc client terminated!]
djbkd has quit [Remote host closed the connection]
uZiel has quit [Ping timeout: 248 seconds]
digitalnomad has joined #ruby
govg has joined #ruby
Moosashi has quit [Quit: Moosashi]
Tempesta has quit [Quit: See ya!]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Moosashi has joined #ruby
Tempesta has joined #ruby
Tempesta has quit [Client Quit]
Tempesta has joined #ruby
stan has quit [Ping timeout: 248 seconds]
ltem has joined #ruby
dennisvennink has joined #ruby
apostergiou has joined #ruby
apostergiou has quit [Client Quit]
shiranuidong has quit [Ping timeout: 248 seconds]
shiranuidong has joined #ruby
ur5us has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
ur5us has quit [Ping timeout: 246 seconds]
Rodya_ has quit [Quit: Leaving...]
uZiel has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Mortomes|Work has joined #ruby
Tohuw has joined #ruby
dlitvak has quit [Quit: Connection closed for inactivity]
anisha has quit [Quit: This computer has gone to sleep]
vondruch has joined #ruby
lexruee_ has joined #ruby
bweston92 has joined #ruby
lexruee has quit [Ping timeout: 240 seconds]
_aeris_ has quit [Ping timeout: 248 seconds]
aglorei1 has quit [Ping timeout: 248 seconds]
mikecmpbll has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
rabajaj has joined #ruby
MarkBilk_ has quit [Ping timeout: 258 seconds]
dc1 has quit [Ping timeout: 258 seconds]
_aeris_ has joined #ruby
aglorei1 has joined #ruby
sepp2k has joined #ruby
Moosashi has quit [Quit: Moosashi]
anisha has joined #ruby
worknick has joined #ruby
<worknick>
hi
<worknick>
how can i achive ruby mycode.rb | less functionality from inside mycodoe.rb ??
<matthewd>
worknick: Spawn less, and feed it the input you want to display?
<worknick>
something from ruby itself?
<matthewd>
huh?
FastJack has quit [Ping timeout: 258 seconds]
<worknick>
want to do this from my ruby code without using any external tool like less
high_fiver_ has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
Burgestrand has joined #ruby
high_fiver has quit [Ping timeout: 276 seconds]
<dminuoso>
worknick: Take a look at how pry uses external pagers.
<worknick>
ok
<dminuoso>
worknick: It's kind of brittle though, unless this is just for toying around I would not recommend it.
<worknick>
I see.
phatypus has joined #ruby
charliesome has joined #ruby
gregf_ has joined #ruby
lexruee_ is now known as lexruee
jaruga has joined #ruby
marr has joined #ruby
ur5us has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
high_fiver has joined #ruby
Moosashi has joined #ruby
high_fiver_ has quit [Ping timeout: 255 seconds]
jaequery has joined #ruby
ramfjord has joined #ruby
leandrobighetti has joined #ruby
rabajaj has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
j416 has quit [Ping timeout: 248 seconds]
InfinityFye has joined #ruby
A124 has quit [Ping timeout: 240 seconds]
j416 has joined #ruby
ramfjord has joined #ruby
astrobunny has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nofxxxx has joined #ruby
rabajaj has joined #ruby
Moosashi has quit [Quit: Moosashi]
dc1 has joined #ruby
dennisvennink has quit [Max SendQ exceeded]
ramfjord has quit [Ping timeout: 248 seconds]
dennisvennink has joined #ruby
nofxxx has quit [Ping timeout: 240 seconds]
lxnr has joined #ruby
phatypus has quit [Quit: phatypus]
dennisvennink has quit [Max SendQ exceeded]
dennisvennink has joined #ruby
worknick has quit [Quit: Leaving]
dennisvennink has quit [Ping timeout: 240 seconds]
apparition has quit [Quit: Bye]
workmad3 has quit [Ping timeout: 255 seconds]
dennisvennink has joined #ruby
rabajaj has quit [Quit: Leaving]
rabajaj has joined #ruby
rabajaj has quit [Client Quit]
my123 has quit [Read error: Connection reset by peer]
my123 has joined #ruby
my123 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Dimik has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
milardovich has joined #ruby
Puffball has quit [Ping timeout: 240 seconds]
Puffball has joined #ruby
bigkevmcd has quit [Ping timeout: 255 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bigkevmcd has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 260 seconds]
zapata has quit [Ping timeout: 246 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
mikecmpbll has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
asi has joined #ruby
funkycrunchy has quit [Ping timeout: 255 seconds]
hhffppff has joined #ruby
zapata has joined #ruby
Subfusc is now known as Subfuscs
Subfuscs is now known as Subfusc
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asi has quit [Quit: Leaving]
hightower3 has joined #ruby
phatypus has joined #ruby
frozengeek_ has joined #ruby
lxnr has quit [Ping timeout: 246 seconds]
apparition has joined #ruby
danman has joined #ruby
funkycrunchy has joined #ruby
danman has quit [Client Quit]
danman has joined #ruby
danman has quit [Client Quit]
danman has joined #ruby
danman has quit [Client Quit]
danman has joined #ruby
danman has quit [Client Quit]
danman has joined #ruby
danman has quit [Client Quit]
funkycrunchy has quit [Ping timeout: 255 seconds]
danman has joined #ruby
danman has quit [Client Quit]
bruno- has joined #ruby
phinxy has joined #ruby
marr has quit [Remote host closed the connection]
biberu has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 276 seconds]
roger_rabbit has quit [Quit: WeeChat 1.9-dev]
dc1 has quit [Ping timeout: 260 seconds]
roger_rabbit has joined #ruby
lxnr has joined #ruby
sami has joined #ruby
dennisvennink has quit [Ping timeout: 255 seconds]
<sami>
Hello, is there anyway to "reverse" a match? I'm currently matching .match(^10.*$), how do I make it so those are the only ones I'm not matching?
uZiel has quit [Ping timeout: 248 seconds]
<matthewd>
"those"?
ramfjord has joined #ruby
<sami>
Not sure how to explain. I have a list of ip addresses, some of them have a class c net address. I want to remove all the class c addresses
<sami>
from my match
<ljarvis>
sami: isn't class C 110 prefix?
<sami>
ljarvis: Yes, my real world problem is a class c net. In pasted match I'm matching on a A net since the list is currenly not 100% accurate
<ljarvis>
I guess I'm confused about your match code, is your list not string ip addresses?
<matthewd>
"remove" "from my match" still isn't making much sense to me
Mortomes|Work has quit [Ping timeout: 260 seconds]
<matthewd>
Do you have an array, or.. ?
ramfjord has quit [Ping timeout: 255 seconds]
<sami>
So, nevermind the previous statements I'll try to explain it again. I have a hash with tons of ip-addresses. Some are class C some are A some are B and some are public addresses. I want to create a match/something to remove/not show all the class C addresses in said hash.
JP2017ggg has joined #ruby
Mon_Ouie has joined #ruby
<matthewd>
?gist
<ruby[bot]>
https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<sami>
I thought it would be something like: .match(/^?!10.*$/) but I'm not understanding something
phatypus has quit [Quit: phatypus]
dviola has joined #ruby
dviola has quit [Changing host]
dviola has joined #ruby
<sami>
and the pasted match is "removing" class A
<sami>
sorry about that.
<sami>
Or "not matching" on.
<matthewd>
You probably just want to use a ruby-level `!` in front of your match call
<matthewd>
You *could* do it with a negative lookahead, but that seems like pointless complication
<matthewd>
JP2017ggg: Not while your code's formatted like that
<JP2017ggg>
Because someone who was trying to do the same on stackoverflow was advised to use to_sym
<tobiasvl>
JP2017ggg: if you remove .to_sym it will work using a string as the keyname
<Mon_Ouie>
It doesn't look like they were trying to do the same thing
<tobiasvl>
JP2017ggg: a symbol is not a string. you said you wanted to use a string as the keyname, so in that case don't check against a symbol?
leandrobighetti has left #ruby [#ruby]
<JP2017ggg>
Ah that's it working now. Sorry, I'm quite new to Ruby, I *have* read tutorials but I don't understand the guts of things very well yet.
<tobiasvl>
JP2017ggg: ok, nice. read up on what a symbol is, maybe. some other things: your indentation is inconsistent, you don't need double linebreaks between each line, you don't need to check whether an if statement == true
<JP2017ggg>
cheers, all noted
<lxnr>
:ls
<gr33n7007h>
sami: you could use the `ipaddress` gem for this
lxnr has quit [Quit: WeeChat 1.9]
synthroid has joined #ruby
afromankenobi has joined #ruby
beilabs has joined #ruby
<ineb>
is it right that Hash uses #eql? which then uses #hash on a key to see if it matches?
beilabs has quit [Remote host closed the connection]
<ljarvis>
yes
uZiel has joined #ruby
tvw has joined #ruby
<matthewd>
No
<matthewd>
Hash uses #hash and #eql?; #eql? doesn't use #hash
dymaxion_ has joined #ruby
<ineb>
why not
<matthewd>
I'm not sure how to answer that
<ineb>
ok stupid question. it depends on the implementation
<ineb>
but wouldnt #hash be sufficient for key lookup
<ljarvis>
o right, i misread the question
<matthewd>
It's necessary but not sufficient
<Papierkorb>
ineb: hash collisions.
<ineb>
right.
uZiel has quit [Ping timeout: 248 seconds]
dymaxion_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Yacker has joined #ruby
adlerdias has joined #ruby
ldnunes has joined #ruby
dc1 has joined #ruby
milardovich has joined #ruby
Tristan-Speccy has quit [Ping timeout: 255 seconds]
dc1 has quit [Client Quit]
adlerdias has quit [Remote host closed the connection]
uZiel has joined #ruby
ldnunes has quit [Ping timeout: 248 seconds]
gregf_ has quit [Quit: Page closed]
bmurt has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
Tristan-Speccy has joined #ruby
bweston92 has quit [Quit: Connection closed for inactivity]
Tristan-Speccy is now known as Guest7120
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gregf_ has joined #ruby
xall has joined #ruby
funkycrunchy has joined #ruby
adlerdias has joined #ruby
ldnunes has joined #ruby
postmodern has quit [Quit: Leaving]
<kitallis>
!!paste
<kitallis>
!paste
growp has joined #ruby
<matthewd>
?gist
<ruby[bot]>
https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<growp>
hello
<growp>
how does this work?
<growp>
Nokogiri::HTML(open(url))
<growp>
how does open work and where does it come from?
<matthewd>
growp: It's presumably using open-uri
ldnunes has quit [Ping timeout: 240 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
kkiero has joined #ruby
<growp>
i'm just confused because i don't see the open method
<kitallis>
and I want to uniq on it, but I would like to pick up the version where name != address
<growp>
matthewd i did ls in pry
<growp>
ls Nokogiri::HTML
adlerdias has quit [Ping timeout: 240 seconds]
<kitallis>
but uniq inherently picks off the first item
<matthewd>
growp: open isn't a method in Nokogiri; it's in Kernel
<matthewd>
growp: (so it's available on every object, but pry skips them)
ramfjord has quit [Ping timeout: 248 seconds]
bruno- has quit [Ping timeout: 260 seconds]
<matthewd>
kitallis: You may not want uniq then; it sounds like you want to separately identify the objects that are the "same", and then choose which one to keep
adlerdias has joined #ruby
<kitallis>
yeah, uniq won't work
<kitallis>
actually group_by+select should
dcunit3d has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
charliesome has joined #ruby
ldnunes has joined #ruby
xall has quit [Ping timeout: 246 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
Mon_Ouie has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
ana_ has quit [Remote host closed the connection]
ana_ has joined #ruby
xall has joined #ruby
xall has quit [Client Quit]
ldnunes has quit [Ping timeout: 255 seconds]
ramfjord has quit [Ping timeout: 255 seconds]
ekinmur has joined #ruby
chichou has joined #ruby
tacotime has quit [Remote host closed the connection]
tacotime has joined #ruby
Mon_Ouie has joined #ruby
ekinmur has quit [Client Quit]
bendyboo has joined #ruby
ldnunes has joined #ruby
bendyboo has quit [Quit: bendyboo]
catphish has joined #ruby
<catphish>
does anyone happen to know of an AMQP library that doesn't have built in threading / event driven operation? i want to do rabbitmq in my main program loop
<iomotoko>
leah2: private method means since the receiver is always(!) default object 'self' ruby won't allow me to define the object myself?
<iomotoko>
so even "forbidding" doing sth like >> self.puts "Hello."
<iomotoko>
?
kkiero has quit [Ping timeout: 255 seconds]
<Burgestrand>
iomotoko `private` prevents you from using an explicit receiver
<iomotoko>
because the receiver is defined to always be default object self no matter what?
<iomotoko>
Burgestrand: ^
milardovich has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Burgestrand>
iomotoko I don't understand what you're asking
<iomotoko>
Burgestrand: sorry, trying to clarify: puts is a private method, private means I can't use an explicit receiver, reason behind that way of doing it is because the reciever of method puts is the default object 'self' in all cases anyways?
kn-928 has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
afromankenobi has quit []
afromankenobi has joined #ruby
milardovich has quit [Ping timeout: 255 seconds]
<Burgestrand>
iomotoko I don't think many people know *why* the `private` access was created in this way, but your theory sounds plausible
jnollette has quit [Quit: All your IRC are belong to ZNC]
goyox86_ has joined #ruby
<iomotoko>
>> puts "sorry, just a test"
<ruby[bot]>
iomotoko: # => sorry, just a test ...check link for more (https://eval.in/845321)
jnollette has joined #ruby
<iomotoko>
awesome channel feature :)
<iomotoko>
Burgestrand: alright, thanks, you too leah2 :)
adlerdias has left #ruby [#ruby]
<Burgestrand>
iomotoko You're welcome, I hope you got what you asked for :)
<iomotoko>
seems like it, will be asking more dumb questions in the future :P :D
InfinityFye has quit [Quit: Leaving]
<Burgestrand>
Good! :)
goyox86_ has left #ruby [#ruby]
goyox86 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
cdg_ has joined #ruby
cdg has quit [Ping timeout: 276 seconds]
uZiel has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
rippa has joined #ruby
__Yiota has joined #ruby
ams__ has joined #ruby
charliesome has joined #ruby
polishdub has joined #ruby
dionysus69 has joined #ruby
gizmore has joined #ruby
skweek has joined #ruby
jphase has joined #ruby
<sameerynho>
hey guys, is there any XML parser shipped with Ruby ?
kn-928 has quit [Quit: WeeChat 1.9]
<apeiros>
sameerynho: Rexml ships with ruby.
<sameerynho>
apeiros: thanks
<apeiros>
most people use nokogiri, and oga is the new contender
<sameerynho>
I see, thanks man ;)
beilabs has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
uZiel has joined #ruby
frem has joined #ruby
FastJack has joined #ruby
truenito has quit [Ping timeout: 255 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
govg has quit [Ping timeout: 248 seconds]
rabajaj has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
kn-928 has joined #ruby
ana_ has quit [Ping timeout: 240 seconds]
goyox86 has quit [Quit: goyox86]
TomyWork has quit [Ping timeout: 240 seconds]
goyox86 has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
synthroid has quit [Remote host closed the connection]
karolis has joined #ruby
synthroid has joined #ruby
tristanp has joined #ruby
jphase has joined #ruby
apparition has quit [Quit: Bye]
AxelAlex has quit [Quit: AxelAlex]
dcunit3d has joined #ruby
tristanp has quit [Client Quit]
synthroid has quit [Ping timeout: 255 seconds]
synthroid has joined #ruby
kn-928 has quit [Quit: WeeChat 1.9]
milardovich has joined #ruby
chromis has joined #ruby
milardovich has quit [Ping timeout: 255 seconds]
okdas has joined #ruby
okdas has joined #ruby
okdas has quit [Changing host]
goyox86 has quit [Quit: goyox86]
conta has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<darix>
sameerynho: it depends on a) how big your documents are, b) what features you want. for basic work rexml is good enough
brent__ has joined #ruby
<leah2>
a "xml" parser ;)
ovaltine has joined #ruby
TomyLobo has joined #ruby
ovaltine has quit [Quit: WeeChat 1.7]
okdas has quit [Quit: We'll back later.]
okdas has joined #ruby
okdas has joined #ruby
funkycrunchy has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
ovaltine has joined #ruby
cadillac_ has quit [Ping timeout: 260 seconds]
jackjackdripper has joined #ruby
npgm has joined #ruby
jaequery has joined #ruby
ramfjord has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
cadillac_ has joined #ruby
[Butch] has joined #ruby
Rapture has quit [Ping timeout: 240 seconds]
anisha has quit [Ping timeout: 240 seconds]
jinie_ has quit [Read error: Connection reset by peer]
ResidentBiscuit is now known as MarioToledo
jenrzzz has quit [Ping timeout: 240 seconds]
ovaltine has left #ruby ["WeeChat 1.7"]
nobitanobi has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
z64 has quit [Quit: WeeChat 1.8]
__Yiota has joined #ruby
jinie_ has joined #ruby
synthroid has quit [Remote host closed the connection]
__Yiota has quit [Client Quit]
Burgestrand has quit [Quit: Closing time!]
goyox86 has joined #ruby
synthroid has joined #ruby
ujjain has quit [Ping timeout: 240 seconds]
cdg_ has quit [Remote host closed the connection]
milardovich has joined #ruby
MarioToledo is now known as MarioCanoli
GodFather has joined #ruby
jphase has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
aufi has quit [Quit: Leaving]
ujjain has joined #ruby
ujjain has joined #ruby
nostalgiccloud has quit [Read error: Connection reset by peer]
chichou has quit [Quit: WeeChat 1.9]
GodFather has quit [Ping timeout: 260 seconds]
kies has quit [Remote host closed the connection]
alfiemax has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
konsolebox has quit [Ping timeout: 260 seconds]
Rapture has joined #ruby
nostalgiccloud has joined #ruby
skweek has quit [Remote host closed the connection]
Silthias has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 276 seconds]
Silthias has joined #ruby
ozcanesen has joined #ruby
ycyclist has joined #ruby
onkelhotte has joined #ruby
gusrub has joined #ruby
<JP2017ggg>
If I want to have keys in a hash to represent an x,y,z coordinate, (I want to check against the hash 'does this key exist'), what is the best way to do this? Two methods I had in mind were an array [x,y,z] or a string "x-y-z"
afromankenobi has quit [Remote host closed the connection]
ovaltine has joined #ruby
afromankenobi has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
digitalnomad has joined #ruby
afromankenobi has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Ping timeout: 240 seconds]
xuanrui has quit [Ping timeout: 258 seconds]
<dminuoso>
JP2017ggg, the ideal way kind of depends on what you intend to do
mark_66 has quit [Remote host closed the connection]
konsolebox has joined #ruby
<dminuoso>
Just presence?
<dminuoso>
Or do you have to find elements? Measure distance? Find elements inside a cube?
gusrub has quit [Remote host closed the connection]
SeepingN has joined #ruby
SeepingN has quit [Client Quit]
chouhoulis has quit [Remote host closed the connection]
<JP2017ggg>
The coordinates signify that there is a boundary condition present, the value of the hash member would be the type of boundary (e.g. "reflective","scatter"). I have sound rays propagating in free space, so each iteration in effect it's checking 'is the sound ray inhabiting a boundary area'.
Mon_Ouie has joined #ruby
psychicist__ has quit [Ping timeout: 255 seconds]
kkiero has joined #ruby
<JP2017ggg>
using a hash with the coordinates as the key seemed a tidy way to do it then can just do 'does this key exist'. Other option would be an array of arrays, just loop through and check
A124 has joined #ruby
onkelhotte has quit [Quit: WeeChat 1.9]
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
perniciouscaffei has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
afromankenobi has joined #ruby
psychicist__ has joined #ruby
chouhoulis has joined #ruby
conta has joined #ruby
gregf_ has quit [Quit: Page closed]
SeepingN has joined #ruby
tvw has quit []
__Yiota has joined #ruby
vondruch has quit [Quit: vondruch]
chouhoulis has quit [Ping timeout: 255 seconds]
wilbert_ has joined #ruby
vondruch has joined #ruby
digitalnomad has joined #ruby
<dminuoso>
JP2017ggg, are they uniformly distributed?
goyox86 has quit [Quit: goyox86]
<dminuoso>
JP2017ggg, also, look into quadtrees.
chouhoulis has joined #ruby
Burgestrand has joined #ruby
username_ has joined #ruby
Burgestrand has quit [Client Quit]
anisha has joined #ruby
anisha has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
anisha has joined #ruby
conta has quit [Ping timeout: 255 seconds]
nostalgiccloud has quit [Read error: Connection reset by peer]
dionysus69 has quit [Ping timeout: 246 seconds]
JP2017ggg has quit []
jphase has joined #ruby
swills has quit [Remote host closed the connection]
swills has joined #ruby
swills has quit [Changing host]
swills has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
afromankenobi has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
afromankenobi has joined #ruby
boombox_ has joined #ruby
jphase has quit [Ping timeout: 246 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has joined #ruby
afromankenobi has quit [Ping timeout: 260 seconds]
boombox_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
alex` has joined #ruby
alex` is now known as Guest29819
jaequery has joined #ruby
Guest29819 is now known as alex``
jaequery has quit [Client Quit]
jenrzzz has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
HelloCode has joined #ruby
jaruga has quit [Quit: jaruga]
jaequery has joined #ruby
jaequery has quit [Client Quit]
quobo has quit [Quit: Connection closed for inactivity]
rabajaj has quit [Ping timeout: 248 seconds]
uZiel has quit [Remote host closed the connection]
jaequery has joined #ruby
jaequery has quit [Client Quit]
anisha has quit [Ping timeout: 248 seconds]
digitalnomad has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<HelloCode>
Your Ruby version is 2.3.1, but your Gemfile specified 2.2.4 help@help-All-Series ~/Desktop/railsprojects/c9sdk/settings/railsprojects/boo $ ruby -v ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux]
<dminuoso>
HelloCode, hash -r
<HelloCode>
oh?
<dminuoso>
HelloCode, try it and then rerun :-P
<HelloCode>
same problem :(
<dminuoso>
Okay, that had a 60% chance of working!
<HelloCode>
Well certainly worth a shot!
<dminuoso>
HelloCode, are you using rvm or rbenv?
<HelloCode>
rvm
<dminuoso>
I predict a 90% chance of truthiness.
<dminuoso>
Hah!
<HelloCode>
haha
<dminuoso>
I blame rvm.
<dminuoso>
?next
<ruby[bot]>
dminuoso: I don't know anything about next
<HelloCode>
D:
<dminuoso>
HelloCode, did you switch the ruby version recently?
<dminuoso>
if so, make sure you restart spring
<HelloCode>
yes
<HelloCode>
oh?
<dminuoso>
HelloCode, spring is that transparent application preloader that makes everything better until it doesn't, giving you cryptic problems but doing its best to stay hidden.
<dminuoso>
`spring restart` inside your rails app
<HelloCode>
How do I restart something that has not started however? {trying to start my server, I switch ruby versions because the project was on an earlier version}
<dminuoso>
HelloCode, spring is ran in the background. just type `spring restart` in the rails app directory
benjen has quit [Remote host closed the connection]
<dminuoso>
It's included by default in Rails, and the first rails command will start the spring server as a daemon
<HelloCode>
ok tried: ~/Desktop/railsprojects/c9sdk/settings/rails projects/eastcape $ spring restart
<HelloCode>
The program 'spring' can be found in the following packages: * ruby-spring* spring Try: sudo apt install <selected package>
karolis has quit [Quit: karolis]
<dminuoso>
HelloCode, `bundle exec spring restart` I guess :-P
digitalnomad has joined #ruby
<HelloCode>
hmm same problem then says i'm on a version i'm not D:
<HelloCode>
well... : Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2
<HelloCode>
Ignoring gem-wrappers-1.2.7 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.2.7
uZiel has joined #ruby
jaequery has joined #ruby
afromankenobi has joined #ruby
<dminuoso>
Any particular reason you have rvm in the first place?
savoir-faire has quit [Read error: Connection reset by peer]
<HelloCode>
hmm honestly I guess not, how would I get rid of it?
<dminuoso>
`rvm implode`
<HelloCode>
and what should I use then?
dionysus69 has joined #ruby
<dminuoso>
use ruby-install if you just want a flexible installation method, and chruby if you want version switching. Both are simple, non-intrusive and above all: not magical.
yeticry_ has quit [Read error: Connection reset by peer]
high_fiver has joined #ruby
houhoulis has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
bear_ has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ecuanaso has joined #ruby
ta_ has joined #ruby
jphase has quit [Remote host closed the connection]
nostalgiccloud has quit [Ping timeout: 260 seconds]
jphase has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
oleo has joined #ruby
bear_ has quit [Ping timeout: 246 seconds]
houhoulis has quit [Remote host closed the connection]
milardovich has joined #ruby
P_R_Deltoid has joined #ruby
xuanrui has quit [Remote host closed the connection]
lxsameer has joined #ruby
lxsameer is now known as Guest85042
ltem has quit [Quit: Leaving]
admwrd has joined #ruby
NeverTired has joined #ruby
kriskropd has joined #ruby
<admwrd>
Is there a way to get all HTTP requests that a URL will make? I know net/http and HTTParty let me make a request to a single page, but I want to see what other HTTP requests that page will make (eg - all images, CSS, JS)
<SeepingN>
load page, grep for links
<SeepingN>
granted the page makes no requests, the browser does
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
<SeepingN>
(you can curl a page (text) and load nothing else)
<admwrd>
grepping seems pretty inefficient
ta_ has quit [Remote host closed the connection]
<admwrd>
I was hoping for a Ruby gem that does this
synthroid has quit []
jphase has quit [Remote host closed the connection]
<thuryn>
grepping is extremely efficient
jphase has joined #ruby
<thuryn>
i'd be more worried that it might be *inaccurate*, in the sense that it's not going to see javascript things that load three or four more bits of data from other places.
<thuryn>
just "curl | grep" is going to give you a lower count than is probably really the case.
vondruch has quit [Quit: vondruch]
ur5us has joined #ruby
<admwrd>
that's exactly the problem I'm trying to bypass
vondruch has joined #ruby
<admwrd>
for example, CSS sheets may include background images, Javascript may throw in images from Facebook, etc
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
<admwrd>
I pretty much just want to have an Array that is equivalent to Chrome's inspect mode Network tab
kkiero_ is now known as kkiero
<matthewd>
It's also why there isn't a gem that'll just do it for you, though: you need a full browser engine. So no, there are no gems that contain a browser. (Though there are some that can help you spawn, control, and interrogate one.)
roboncloud has joined #ruby
<roboncloud>
how do you find the rdocs from gems
milardovich has quit [Remote host closed the connection]
phate408 has quit [Ping timeout: 240 seconds]
<admwrd>
matthewd: that's what I'm thinking. Unfortunately Selenium is willfully handicapped (eg - can't fetch HTTP status codes). So I was hoping someone had run into this need before
nadir has quit [Quit: Connection closed for inactivity]
<darix>
admwrd: you can checkout mechanize ... but js generated html and stuff you wont see. you can checkout capybara/poltergeist maybe.
milardovich has joined #ruby
jonjits[m] has quit [Ping timeout: 240 seconds]
heftig has quit [Ping timeout: 240 seconds]
torarne has quit [Ping timeout: 258 seconds]
aviraldg has quit [Ping timeout: 246 seconds]
Matt[m]1 has quit [Ping timeout: 240 seconds]
aagdbl[m] has quit [Ping timeout: 240 seconds]
gokul_mr[m] has quit [Ping timeout: 240 seconds]
joenas[m] has quit [Ping timeout: 240 seconds]
Giphy[m] has quit [Ping timeout: 240 seconds]
turt2live has quit [Ping timeout: 246 seconds]
Tagami[m] has quit [Ping timeout: 246 seconds]
KevinMGranger has quit [Ping timeout: 246 seconds]
velu_aon[m] has quit [Ping timeout: 258 seconds]
M107262[m] has quit [Ping timeout: 264 seconds]
aidalgol has quit [Ping timeout: 264 seconds]
lasenna[m] has quit [Ping timeout: 240 seconds]
yana[m] has quit [Ping timeout: 246 seconds]
[Butch] has quit [Quit: I'm out . . .]
dman[m] has quit [Ping timeout: 264 seconds]
haylon has joined #ruby
hightower2 has quit [Ping timeout: 248 seconds]
phate408 has joined #ruby
xuanrui has joined #ruby
high_fiver has quit [Ping timeout: 255 seconds]
P_R_Deltoid has quit [Quit: Leaving]
ldnunes has quit [Quit: Leaving]
kapil___ has quit [Quit: Connection closed for inactivity]
eckhardt has joined #ruby
milardovich has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
S007 has quit [Ping timeout: 246 seconds]
tvw has joined #ruby
Joufflu has quit [Ping timeout: 255 seconds]
S007 has joined #ruby
S007 has quit [Excess Flood]
hahuang65 has joined #ruby
S007 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<admwrd>
darix: Thanks. It looks like Phantomjs may have the ability with netlog, but I have to figure out how to take this from being done in Watir to having Phantomjs be able to see all the calls going on
jenrzzz has quit [Ping timeout: 240 seconds]
wilbert_ has quit [Ping timeout: 255 seconds]
BubonicPestilenc has joined #ruby
<BubonicPestilenc>
hey all
<BubonicPestilenc>
question: do you know any already written opensource message/notification organizer?
chouhoulis has joined #ruby
<BubonicPestilenc>
idea: we're currently sending notifications to admins through emails, but want to switch to something simpler/dynamic
Tagami[m] has joined #ruby
gusrub has joined #ruby
xuanrui has quit [Ping timeout: 248 seconds]
<darix>
i am sure there are solutions based on things like sidekiq and so on
<BubonicPestilenc>
tyvm
<BubonicPestilenc>
didn't knew what keywords to use :D
<BubonicPestilenc>
oh not for me
hahuang65 has quit [Read error: Connection reset by peer]
Silthias has quit [Ping timeout: 246 seconds]
haylon has quit [Remote host closed the connection]
Silthias has joined #ruby
brent__ has quit [Remote host closed the connection]
hahuang65 has joined #ruby
brent__ has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Fridtjof has quit [Ping timeout: 240 seconds]
code_zombie has joined #ruby
Guest14108 is now known as julian
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
Joufflu has joined #ruby
belmoussaoui has joined #ruby
BubonicPestilenc has quit [Quit: Textual IRC Client: www.textualapp.com]
Fridtjof has joined #ruby
Giphy[m] has joined #ruby
M107262[m] has joined #ruby
joenas[m] has joined #ruby
aidalgol has joined #ruby
jonjits[m] has joined #ruby
heftig has joined #ruby
aviraldg has joined #ruby
lasenna[m] has joined #ruby
torarne has joined #ruby
yana[m] has joined #ruby
turt2live has joined #ruby
dman[m] has joined #ruby
KevinMGranger has joined #ruby
gokul_mr[m] has joined #ruby
aagdbl[m] has joined #ruby
Matt[m]1 has joined #ruby
velu_aon[m] has joined #ruby
MarkBilk has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AnoHito_ has joined #ruby
beilabs has joined #ruby
cagomez has joined #ruby
s3nd1v0g1us has joined #ruby
Silthias has quit [Ping timeout: 246 seconds]
AnoHito has quit [Ping timeout: 255 seconds]
Silthias has joined #ruby
beilabs has quit [Ping timeout: 240 seconds]
MichaelBurge has quit [Remote host closed the connection]