baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.3, 2.5.5, 2.4.6: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
jottr has joined #ruby
wolfshappen_ has quit [Quit: Waffs have technical problems too]
jottr has quit [Ping timeout: 250 seconds]
wolfshappen has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
fphilipe has joined #ruby
Swyper has quit [Remote host closed the connection]
jottr has joined #ruby
orbyt_ has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
m27frogy_ has quit [Quit: ZNC - https://znc.in]
jottr has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
dsmythe_ has quit [Remote host closed the connection]
jottr has joined #ruby
dsmythe has joined #ruby
fphilipe has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 246 seconds]
noobineer has joined #ruby
ElF3rn4 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ElF3rn4 has quit [Client Quit]
jottr has joined #ruby
laaron has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 252 seconds]
laaron has joined #ruby
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
wald0 has quit [Quit: Lost terminal]
jottr has joined #ruby
gix- has quit [Ping timeout: 252 seconds]
samort7 has quit [Read error: Connection reset by peer]
bga57 has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
fphilipe has joined #ruby
jottr has joined #ruby
orbyt_ has joined #ruby
tdy has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
jottr has joined #ruby
AJA4350 has quit [Quit: AJA4350]
phs^ has quit []
jottr has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
fphilipe has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 258 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
shakes has joined #ruby
jottr has joined #ruby
skyikot has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
dsmythe has quit [Remote host closed the connection]
dsmythe has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 244 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
braincrash has quit [Quit: bye bye]
jottr has joined #ruby
zacts has quit [Quit: WeeChat 2.4]
braincrash has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
roadt_ has joined #ruby
shakes has quit [Remote host closed the connection]
roadt has quit [Ping timeout: 268 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
dar123 has joined #ruby
Code_[24]_ has joined #ruby
Milos has quit [Quit: ZNC 1.7.3 - https://znc.in]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
fphilipe has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
nomoney4u has quit [Quit: No Ping reply in 180 seconds.]
nomoney4u has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
Milos has joined #ruby
nomoney4u has quit [Quit: No Ping reply in 180 seconds.]
Milos has quit [Quit: ZNC 1.7.3 - https://znc.in]
ricekrispie has joined #ruby
nomoney4u has joined #ruby
ricekrispie2 has quit [Ping timeout: 245 seconds]
Milos has joined #ruby
fphilipe has quit [Ping timeout: 248 seconds]
sh7d has quit [Read error: Connection reset by peer]
sh7d has joined #ruby
haengma has joined #ruby
haengma has quit [Ping timeout: 250 seconds]
fphilipe has joined #ruby
rhuang has joined #ruby
m27frogy has joined #ruby
skyikot has quit [Remote host closed the connection]
fphilipe has quit [Ping timeout: 252 seconds]
u0_a238 has quit [Ping timeout: 246 seconds]
u0_a238 has joined #ruby
weteamsteve2 has quit [Read error: Connection reset by peer]
Code_[24]_ has quit [Quit: Connection closed for inactivity]
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
jenrzzz has joined #ruby
imadper has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
jottr has joined #ruby
u0_a238 has quit [Ping timeout: 245 seconds]
u0_a238 has joined #ruby
m_antis has quit [Quit: m_antis]
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
u0_a238 has quit [Ping timeout: 252 seconds]
u0_a238 has joined #ruby
imadper` has joined #ruby
imadper has quit [Read error: Connection reset by peer]
imadper` is now known as iMadper
t3hyoshi has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
iMadper` has joined #ruby
iMadper has quit [Ping timeout: 252 seconds]
iMadper`` has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
iMadper`` is now known as iMadper
iMadper` has quit [Ping timeout: 246 seconds]
def_jam has joined #ruby
eb0t_ has joined #ruby
fphilipe has joined #ruby
eb0t has quit [Ping timeout: 255 seconds]
eblip has quit [Ping timeout: 258 seconds]
u0_a238_ has joined #ruby
Inline has quit [Quit: Leaving]
u0_a238 has quit [Ping timeout: 258 seconds]
jarray52 has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
reber has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
jottr has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
jottr has quit [Ping timeout: 252 seconds]
iMadper has quit [Remote host closed the connection]
Inline has joined #ruby
jottr has joined #ruby
iMadper has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
dellavg_ has joined #ruby
claudiuinberlin has joined #ruby
ellcs has joined #ruby
kyrylo has joined #ruby
jottr has joined #ruby
lxsameer has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
tdy has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 250 seconds]
zapata has quit [Quit: WeeChat 2.4]
jottr has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
haengma has joined #ruby
jottr has joined #ruby
haengma has quit [Ping timeout: 246 seconds]
jarray52 has left #ruby [#ruby]
jottr has quit [Ping timeout: 246 seconds]
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
lypsis has quit [Quit: ZNC - https://znc.in]
Onwarion has joined #ruby
TheSpectre_ has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
cd has quit [Quit: cd]
zapata has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
gix has joined #ruby
jottr has joined #ruby
roadt_ has quit [Quit: 离开]
jottr has quit [Ping timeout: 245 seconds]
haengma has joined #ruby
m_antis has joined #ruby
jottr has joined #ruby
ellcs has quit [Ping timeout: 248 seconds]
TheSpectre has joined #ruby
haengma has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
laaron has quit [Remote host closed the connection]
nowhere_man has joined #ruby
laaron has joined #ruby
jottr has joined #ruby
Ai9zO5AP has joined #ruby
jenrzzz has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
DTZUZO has quit [Ping timeout: 250 seconds]
ellcs has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
Dbugger has joined #ruby
Dbugger has quit [Remote host closed the connection]
jottr has joined #ruby
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #ruby
cadeskywalker has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
cadeskywalker has quit [Client Quit]
cadeskywalker has joined #ruby
jottr has joined #ruby
djdduty has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 245 seconds]
djdduty has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
tsrt^ has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
AJA4350 has joined #ruby
jottr has joined #ruby
jenrzzz has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
jottr has joined #ruby
apparition has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
ellcs has quit [Ping timeout: 248 seconds]
ellcs has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
u0_a238_ has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
clemens3 has quit [Ping timeout: 248 seconds]
clemens3_ has joined #ruby
jottr has joined #ruby
clemens3_ has quit [Remote host closed the connection]
clemens3 has joined #ruby
clemens3 has quit [Client Quit]
gb_away has quit [Ping timeout: 244 seconds]
jottr has quit [Ping timeout: 268 seconds]
jottr has joined #ruby
DTZUZO has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
DTZUZO has quit [Ping timeout: 268 seconds]
nomoney4u has quit [Quit: No Ping reply in 180 seconds.]
nomoney4u has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
mikeiniowa has quit [Remote host closed the connection]
jottr has joined #ruby
u0_a238 has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
ellcs has quit [Ping timeout: 252 seconds]
mikeiniowa has joined #ruby
Swyper has joined #ruby
jottr has joined #ruby
fphilipe has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 245 seconds]
Swyper has quit [Remote host closed the connection]
claudiuinberlin has quit [Read error: Network is unreachable]
jottr has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
uranoss has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
dsmythe has quit [Remote host closed the connection]
dsmythe has joined #ruby
djdduty has quit [Ping timeout: 245 seconds]
mikecmpbll has joined #ruby
fphilipe has joined #ruby
djdduty has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
<sh7d> ahh, fuck nokogiri "output error : unknown encoding ASCII-8BIT" ;/
<sh7d> is there any way just to make it working in binary mode ?
<sh7d> or i suppose in case of html it just cannot be (urlencode attributes and shit)
jottr has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
<manveru> sh7d: there's rchardet if you don't know the real encoding
jottr has quit [Ping timeout: 245 seconds]
<sh7d> manveru, i'll give it a try, but imo for my case more elegent solution is to just dont care about badly encoded chars, and parse doc as is
<manveru> you can force encode it to ascii and replace any non-ascii chars then
<sh7d> well, i rather want to save it, but let me explain more precisely
<manveru> something like: 'what is this: わからない'.encode('ASCII', undef: :replace)
jottr has joined #ruby
Swyper has joined #ruby
<sh7d> for now, i create nokogiri doc object like that: doc = Nokogiri::HTML(file_content, nil, Encoding::BINARY.to_s)
<sh7d> and nokogiri completly ignores third argument
<sh7d> it still tries to detect encoding by self, and there are enven casesn when doc.encoding is nil
<sh7d> (aand file_content is from IO.binread, so is encodend in binary)
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
fphilipe has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 248 seconds]
conta has joined #ruby
laaron has joined #ruby
<manveru> did you try passing the IO to nokogiri directly?
fphilipe has joined #ruby
eb0t_ is now known as eb0t
<sh7d> nope, i need file_content anyway to determine if is changed after processing
<sh7d> yes, i know, i can calculate checksum but im lazy :P
jottr has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
zacts has joined #ruby
englishm has quit [Ping timeout: 250 seconds]
DTZUZO has joined #ruby
englishm has joined #ruby
def_jam is now known as eblip
jottr has joined #ruby
Swyper has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
laaron- has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
laaron has quit [Ping timeout: 256 seconds]
apparition has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jottr has joined #ruby
Ltem has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
al2o3-cr has quit [Quit: If the universe is a machine where the future is uniquely determined by its present state, it would not be possible to calculate what the future will be.]
jottr has quit [Ping timeout: 255 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
TomyLobo2 has joined #ruby
al2o3-cr has joined #ruby
TomyLobo has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
wbollui has joined #ruby
<wbollui> join #ruby
jottr has quit [Ping timeout: 258 seconds]
<wbollui> I'm trying to figure out a better way to handle a method taking an argument that could be an Integer or an Array<Integer>
<wbollui> https://dpaste.de/2QT6#L1,3,12,17
<wbollui> At the moment I have a stupid implementation that just copies the method body and then switches based on the object type passed in using #is_a?
<manveru> wbollui: something like `rooms = [*room]`, and then always iterate over `rooms`
<wbollui> What would be a more rubyish way to do this kind of dispatch that intelligently handles multiple types of object parameters?
<wbollui> at the beginning of the method body coerce an Int into an Array?
<manveru> yeah
<wbollui> thank you, great idea
<manveru> personally, i'd just pass `rooms` always, it's not really clear from the method signature that it can take multiple
<wbollui> that would be a better way to name it, I agree.
<wbollui> Never realized you could splat an array and it returns itself
jottr has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
al2o3-cr has quit [Quit: If the universe is a machine where the future is uniquely determined by its present state, it would not be possible to calculate what the future will be.]
kyrylo has joined #ruby
MuffinPimp has quit [Read error: Connection reset by peer]
al2o3-cr has joined #ruby
fphilipe_ has joined #ruby
jottr has joined #ruby
MuffinPimp has joined #ruby
zacts has quit [Ping timeout: 264 seconds]
fphilipe has quit [Ping timeout: 264 seconds]
jottr has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
dellavg_ has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
u0_a238 has quit [Ping timeout: 244 seconds]
jottr has quit [Ping timeout: 246 seconds]
u0_a238 has joined #ruby
tdy has joined #ruby
jottr has joined #ruby
jmcgnh has quit [Quit: ZNC 1.7.1 - https://znc.in]
tdy has quit [Read error: error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac]
zacts has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
jmcgnh has joined #ruby
jmcgnh has quit [Client Quit]
jmcgnh has joined #ruby
jottr has joined #ruby
jmcgnh has quit [Client Quit]
jmcgnh has joined #ruby
zacts has quit [Quit: WeeChat 2.4]
jottr has quit [Ping timeout: 245 seconds]
hightower2 has joined #ruby
jmcgnh has quit [Client Quit]
jottr has joined #ruby
jmcgnh has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
jmcgnh has quit [Quit: ZNC 1.7.1 - https://znc.in]
wbollui has quit [Remote host closed the connection]
jmcgnh has joined #ruby
blackmesa has joined #ruby
jottr has joined #ruby
druonysus has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 250 seconds]
jmcgnh has quit [Quit: ZNC 1.7.1 - https://znc.in]
jottr has joined #ruby
jmcgnh has joined #ruby
jmcgnh has quit [Client Quit]
mikecmpbll has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
Swyper has joined #ruby
fphilipe_ has quit [Ping timeout: 248 seconds]
jmcgnh has joined #ruby
jottr has joined #ruby
GodFather has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
rippa has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
al-damiri has joined #ruby
clemens3 has joined #ruby
jottr has joined #ruby
SeepingN has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
millerti has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 248 seconds]
blackmesa has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
jottr has joined #ruby
GodFather has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 252 seconds]
tdy has joined #ruby
nt80 has joined #ruby
jottr has joined #ruby
jmcgnh has quit [Quit: ZNC 1.7.1 - https://znc.in]
jmcgnh has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
jmcgnh has quit [Client Quit]
jottr has joined #ruby
conta has quit [Quit: conta]
jottr has quit [Ping timeout: 258 seconds]
yqt has joined #ruby
jottr has joined #ruby
jmcgnh has joined #ruby
Dbugger has joined #ruby
Dbugger has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 246 seconds]
jmcgnh has quit [Client Quit]
kyrylo has quit [Read error: No route to host]
kyrylo has joined #ruby
fphilipe_ has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
jmcgnh has joined #ruby
fphilipe_ has quit [Ping timeout: 248 seconds]
orbyt_ has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jmcgnh has quit [Quit: ZNC 1.7.1 - https://znc.in]
jmcgnh has joined #ruby
jottr has joined #ruby
Tharbakim has quit [Quit: Something has gone terribly wrong. Send help.]
jmcgnh has quit [Client Quit]
xdrxs has joined #ruby
jmcgnh has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
reber__ has joined #ruby
dsmythe has quit [Remote host closed the connection]
jmcgnh has quit [Quit: ZNC 1.7.1 - https://znc.in]
dsmythe has joined #ruby
jottr has joined #ruby
dsmythe has quit [Read error: Connection reset by peer]
dsmythe has joined #ruby
jmcgnh has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
TomyLobo2 has quit [Read error: Connection reset by peer]
jottr has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
cd has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
Swyper has joined #ruby
jottr has joined #ruby
nt80 has quit [Quit: Leaving]
jottr has quit [Ping timeout: 248 seconds]
u0_a238 has quit [Ping timeout: 250 seconds]
Swyper has quit [Remote host closed the connection]
u0_a238 has joined #ruby
u0_a238 has quit [Ping timeout: 252 seconds]
cthulchu_ has quit [Ping timeout: 250 seconds]
jmcgnh has quit [Quit: ZNC 1.7.1 - https://znc.in]
jottr has joined #ruby
Swyper has joined #ruby
u0_a238 has joined #ruby
jmcgnh has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
jmcgnh has quit [Client Quit]
jmcgnh has joined #ruby
yqt has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
u0_a238 has quit [Ping timeout: 248 seconds]
u0_a238 has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
orbyt_ has joined #ruby
jottr has joined #ruby
cthulchu_ has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
cthulchu_ has quit [Ping timeout: 244 seconds]
jottr has joined #ruby
xdrxs has quit [Quit: This computer has gone to sleep]
jottr has quit [Ping timeout: 248 seconds]
beeshk has joined #ruby
zacts has joined #ruby
jottr has joined #ruby
xdrxs has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
nevada1 has joined #ruby
reber has quit [Remote host closed the connection]
reber__ has quit [Remote host closed the connection]
ellcs has joined #ruby
<nevada1> Can you mimic for(int i = 2; i * i < n; i++) in Ruby's for loop?
jaequery has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
jottr has joined #ruby
u0_a238 has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 245 seconds]
u0_a238 has joined #ruby
jottr has joined #ruby
xdrxs has quit [Quit: This computer has gone to sleep]
hightower2 has quit [Ping timeout: 245 seconds]
ur5us has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
Ai9zO5AP has quit [Quit: WeeChat 2.4]
nevada1 has quit [Quit: Leaving]
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
code_zombie has joined #ruby
Swyper has quit [Remote host closed the connection]
Ltem has quit [Quit: bye]
jottr has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
cthulchu has joined #ruby
jottr has joined #ruby
beeshk has quit [Quit: beeshk]
jottr has quit [Ping timeout: 252 seconds]
Onwarion has quit [Quit: Leaving]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
beeshk has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
zacts has quit [Quit: WeeChat 2.4]
fphilipe_ has joined #ruby
jottr has joined #ruby
orbyt_ has joined #ruby
fphilipe_ has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 250 seconds]
dinfuehr has quit [Ping timeout: 248 seconds]
dinfuehr has joined #ruby
jottr has joined #ruby
dsmythe has quit [Ping timeout: 250 seconds]
clemens3 has quit [Ping timeout: 255 seconds]
dsmythe has joined #ruby
clemens3 has joined #ruby
Mike11 has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
dinfuehr has quit [Ping timeout: 246 seconds]
dinfuehr has joined #ruby
dar123 has joined #ruby
beeshk has quit [Quit: beeshk]
jottr has joined #ruby
beeshk has joined #ruby
chaus has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
ellcs has quit [Ping timeout: 248 seconds]
riceandbeans has joined #ruby
jottr has joined #ruby
<riceandbeans> What's the correct way to do this, I'm spacing, foo = ['one','two','three'] foo.each do | bar | baz = `biff -f #{bar}` end
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 245 seconds]
<riceandbeans> ugh, "#{bar}"
<riceandbeans> Couldn't focus with kids screaming in my ears
jottr has joined #ruby
nowhere_man has quit [Read error: Connection reset by peer]
<baweaver> riceandbeans: What're you trying to do?
nowhere_man has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
<baweaver> because you probably want map.
<baweaver> but placeholder names make that hard to know.
<riceandbeans> baweaver: Sorry, I'm just....going nuts from kids right now, but I'll try to explain
<riceandbeans> I have a series of hosts, I need to iterate through them to find a subset that meet a certain condition that is determined by output of a shell command
<baweaver> map then select
<riceandbeans> From those hosts I then need to do a mapping of one column to another column across the various hosts
<baweaver> If you can get an example written that'd help
<riceandbeans> Well the part here was that I needed to get info per host and so I was iterating on hosts and shoving them into the shell command
jottr has quit [Ping timeout: 252 seconds]
Mike11 has quit [Quit: Leaving.]
jottr has joined #ruby
beeshk has quit [Quit: beeshk]
jottr has quit [Ping timeout: 268 seconds]
jottr has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
batcat84 has joined #ruby
<batcat84> Hello, all! I'm fairly new to CLI/Terminal and I'm getting an error from Ruby Version Manager.
<batcat84> The error reads: Warning! PATH is not properly set up, /Users/stoney/.rvm/gems/ruby-2.6.1/bin is not at first place.
<batcat84> I'm on macOS Mojave.
jottr has quit [Ping timeout: 255 seconds]
spacesuitdiver has joined #ruby
beeshk has joined #ruby
<al2o3-cr> batcat84: add `export PATH="$GEM_HOME/bin:$PATH"` the last line of your `$HOME/.bashrc` if using bash
jottr has joined #ruby
<batcat84> al2o3-cr: Thank you. How would I do that?
<al2o3-cr> open $HOME/.bashrc in a text editor and add the line: export PATH="$GEM_HOME/bin:$PATH"
<al2o3-cr> batcat84: you are using bash right?
<al2o3-cr> batcat84: from the terminal type: printenv SHELL
<batcat84> bin/bash
nowhere_man has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 246 seconds]
<al2o3-cr> batcat84: type this: echo 'export PATH="$GEM_HOME/bin:$PATH"' >> $HOME/.bashrc
<batcat84> Ok, done.
<al2o3-cr> batcat84: should be good to go now.
orbyt_ has joined #ruby
<al2o3-cr> batcat84: make sure to restart shell session
<batcat84> Ok, thank you.
<al2o3-cr> np
jottr has joined #ruby
nowhere_man has joined #ruby
xdrxs has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 248 seconds]