havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.1, 2.6.6, 2.5.8: 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!
gitter1234 has quit [Quit: Connection closed for inactivity]
darkstardevx has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
braj has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
wymillerlinux has quit [Quit: wymillerlinux]
wymillerlinux has joined #ruby
d3bug has joined #ruby
impermanence has joined #ruby
impermanence has quit [Quit: Connection closed]
drincruz has quit [Ping timeout: 265 seconds]
xco has joined #ruby
ChmEarl has quit [Quit: Leaving]
ur5us has quit [Ping timeout: 260 seconds]
fredolinhares has joined #ruby
jinmiaoluo has joined #ruby
Xiti has quit [Quit: Leaving]
ur5us has joined #ruby
drincruz has joined #ruby
gitter1234 has joined #ruby
jinmiaoluo has quit [Ping timeout: 265 seconds]
Xiti has joined #ruby
jinmiaoluo has joined #ruby
drincruz has quit [Ping timeout: 256 seconds]
jinmiaoluo has quit [Ping timeout: 246 seconds]
lucianp has quit [Ping timeout: 246 seconds]
jinmiaoluo has joined #ruby
lucianp has joined #ruby
fredolinhares has quit [Read error: Connection reset by peer]
fredolinhares has joined #ruby
jinmiaoluo has quit [Remote host closed the connection]
jinmiaoluo has joined #ruby
jinmiaoluo has quit [Ping timeout: 246 seconds]
jinmiaoluo has joined #ruby
braj has quit []
jinmiaoluo has quit [Ping timeout: 256 seconds]
braj has joined #ruby
jinmiaoluo has joined #ruby
kristian_on_linu has quit [Remote host closed the connection]
fredolinhares has quit [Read error: Connection reset by peer]
<sparr> how should I set a hash key iff it's not already set?
<sparr> hash[key] = hash.fetch(key,newval) # seems awkward
<havenwood> sparr: hash[key] ||= new_val
wymillerlinux has quit [Ping timeout: 240 seconds]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sparr> thanks
lxsameer has quit [Ping timeout: 256 seconds]
lxsameer has joined #ruby
renich has quit [Quit: renich]
LenPayne has quit [Quit: ZNC 1.7.5 - https://znc.in]
LenPayne has joined #ruby
jinmiaoluo has quit [Quit: WeeChat 2.8]
jinmiaoluo has joined #ruby
cliluw has quit [Ping timeout: 265 seconds]
cthulchu_ has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 260 seconds]
gitter1234 has quit [Quit: Connection closed for inactivity]
jinmiaoluo has quit [Ping timeout: 256 seconds]
jinmiaoluo has joined #ruby
braj has quit []
jinmiaoluo has quit [Ping timeout: 256 seconds]
sauvin has joined #ruby
xco has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sauvin is now known as Sauvin
ldepandis has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jinmiaoluo has joined #ruby
grimgnr has joined #ruby
venmx has joined #ruby
jinmiaoluo has quit [Ping timeout: 264 seconds]
conta has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
romanlevin has joined #ruby
vondruch has joined #ruby
Emmanuel_Chanel has joined #ruby
d3bug has quit [Quit: Connection closed for inactivity]
howdoi has quit [Quit: Connection closed for inactivity]
jinmiaoluo has joined #ruby
conta has quit [Quit: conta]
mikecmpbll has joined #ruby
cd has quit [Quit: cd]
gato has joined #ruby
ur5us has joined #ruby
xco has joined #ruby
cnsvc_ has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
<sol_> im on windows 7 ruby 2.6.6 x64: "rubocop --help" needs ower 7 seconds to execute
<sol_> any ideas?
Pascal is now known as r3m
r3m has quit [Quit: WeeChat 2.9-dev]
r3m has joined #ruby
imode has quit [Ping timeout: 272 seconds]
darkstardevx has quit [Ping timeout: 260 seconds]
gix has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chalkmonster has joined #ruby
roadie has joined #ruby
xco has joined #ruby
gato has quit [Quit: Connection closed]
akem has quit [Ping timeout: 272 seconds]
ur5us has quit [Ping timeout: 260 seconds]
cnsvc_ has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cnsvc_ has quit [Ping timeout: 240 seconds]
FastJack has quit [Ping timeout: 256 seconds]
FastJack has joined #ruby
jinmiaoluo has quit [Ping timeout: 260 seconds]
kinduff has quit [Read error: Connection reset by peer]
xco has joined #ruby
kinduff has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
drincruz has joined #ruby
TCZ has joined #ruby
drincruz has quit [Ping timeout: 240 seconds]
akem has joined #ruby
TCZ has quit [Quit: Leaving]
burningserenity has joined #ruby
akem has quit [Ping timeout: 256 seconds]
akem has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
infinityfye has joined #ruby
drincruz has joined #ruby
gix has quit [Quit: Client exiting]
gix has joined #ruby
roadie has quit [Ping timeout: 260 seconds]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
<ule> sol_: throw your Windows away
<ule> :P
cow[moo] has joined #ruby
cnsvc_ has joined #ruby
burningserenity has quit [Remote host closed the connection]
venmx has quit [Quit: leaving]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
jinmiaoluo has joined #ruby
venmx_ has joined #ruby
roadie has joined #ruby
<sol_> ule: i think we should slap the devs instead, rubocop is generally slow =)
<sol_> i mean also on linux
roadie has quit [Ping timeout: 246 seconds]
TCZ has joined #ruby
troulouliou_div2 has quit [Ping timeout: 260 seconds]
<adam12> sparr & havenwood I'd probably reach for ||= too but beware boolean values.
ldepandis has quit [Ping timeout: 256 seconds]
jinmiaoluo has quit [Remote host closed the connection]
TCZ has quit [Quit: Leaving]
cnsvc_ has quit [Ping timeout: 240 seconds]
clemens3 has joined #ruby
troulouliou_div2 has joined #ruby
mikecmpbll has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
venmx_ has quit [Quit: leaving]
jinmiaoluo has joined #ruby
TCZ has joined #ruby
<ule> sol_: An alternative is just enable Rubocop lint in your IDE, this way, it catches things in real time
wogi has joined #ruby
<havenwood> adam12 Good point! That pesky false.
jinmiaoluo has quit [Ping timeout: 246 seconds]
jinmiaoluo has joined #ruby
roadie has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
roadie has quit [Ping timeout: 252 seconds]
cd has joined #ruby
TCZ has quit [Quit: Leaving]
roadie has joined #ruby
jinmiaoluo has quit [Ping timeout: 260 seconds]
ChmEarl has joined #ruby
jinmiaoluo has joined #ruby
brendan- has quit [Read error: Connection reset by peer]
imode has joined #ruby
brendan- has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
Treehouse has joined #ruby
yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
jinmiaoluo has quit [Ping timeout: 246 seconds]
yxhuvud has joined #ruby
jinmiaoluo has joined #ruby
Emmanuel_Chanel has joined #ruby
cahoots has joined #ruby
wilhelm418 has joined #ruby
wilhelm418 has quit [Quit: WeeChat 2.8]
conta has joined #ruby
davispuh has joined #ruby
howdoi has joined #ruby
troulouliou_div2 has quit [Ping timeout: 256 seconds]
roadie has quit [Ping timeout: 246 seconds]
roadie has joined #ruby
jinmiaoluo has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
troulouliou_div2 has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
codefriar has quit [Quit: Textual IRC Client: www.textualapp.com]
wymillerlinux has joined #ruby
impermanence has joined #ruby
troulouliou_div2 has quit [Ping timeout: 265 seconds]
mibr has joined #ruby
venmx has joined #ruby
xco has joined #ruby
venmx has quit [Quit: leaving]
venmx has joined #ruby
troulouliou_div2 has joined #ruby
dionysus69 has joined #ruby
cliluw has joined #ruby
<kaleido> anyone use/recommend a gem to work with opentsdb?
mikecmpbll has quit [Ping timeout: 260 seconds]
venmx_ has joined #ruby
venmx_ has quit [Client Quit]
venmx_ has joined #ruby
venmx_ has quit [Client Quit]
mikecmpbll has joined #ruby
cliluw has quit [Ping timeout: 260 seconds]
conta has quit [Quit: conta]
cliluw has joined #ruby
venmx has quit [Ping timeout: 265 seconds]
cliluw has quit [Ping timeout: 260 seconds]
<havenwood> kaleido: What are you trying to do with it? Integrating with a service like Logstash or Metriks or something else?
<kaleido> havenwood: yeah im grabbing route table values and sending them to opentsdb to create graphs in vmware wavefront
<kaleido> there is an opentsdb gem that seems to work just fine, it's just older.
venmx has joined #ruby
johnny56 has quit [Remote host closed the connection]
<kaleido> also need to find a more efficient way to run the same script against 92 devices every 60 seconds, given that 92 can always grow.
<havenwood> kaleido: If you mean the opentsdb gem, it's a quite minimalist wrapper around the HTTP API: https://github.com/johnewart/ruby-opentsdb/blob/master/lib/opentsdb/client.rb
<havenwood> kaleido: For better or worse, the opentsdb-ruby gem uses Faraday rather than a raw Socket and has a bunch more helper code. https://github.com/cloudinsight/opentsdb-ruby
<kaleido> yeah thts what i found, just curious if there was something a little more modern. but it works fine so i may stick with it.
<havenwood> kaleido: You're using the former?
<kaleido> yessir
<havenwood> kaleido: This file is really the whole gem.
<havenwood> kaleido: Without understanding the domain, I'd suggest using a gem like Typhoeus or async-http to make the requests in parallel.
<havenwood> kaleido: Or you could use async-io yourself to get parallel I/O with raw Sockets.
<kaleido> havenwood: thanks i'll investigate those as well
<havenwood> kaleido: Typhoeus is battle tested FFI bindings to libcurl. The Async libraries are Fiber backed futuristic I/O for Ruby.
<kaleido> essentially i am using net/ssh to login to X number of network devices, run about 3 dozen commands on each device, then feed the output of each command to the opentsdb server.
<kaleido> and i'm still very much learning ruby :)
cnsvc_ has joined #ruby
<havenwood> kaleido: Have you considered SSHKit? https://github.com/capistrano/sshkit
<kaleido> oh wow, no but this looks like a good fit
cnsvc_ has quit [Ping timeout: 240 seconds]
robotmay has quit [Remote host closed the connection]
chalkmonster has quit [Quit: WeeChat 2.8]
robotmay has joined #ruby
Sauvin has quit [Read error: Connection reset by peer]
cliluw has joined #ruby
lucasb has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
lightstalker has quit [Ping timeout: 256 seconds]
venmx has quit [Quit: leaving]
akem has quit [Quit: Leaving]
lightstalker has joined #ruby
<kaleido> i assume with this sshkit i could of course list a variable in place of the array. so instead of "on ["host1", "host2"]" i could have an array defined somewhere and do "on array"
mibr has quit [Quit: mibr]
wymillerlinux has quit [Ping timeout: 256 seconds]
mikecmpbll has quit [Quit: inabit.]
renich has joined #ruby
<kaleido> this opentsdb gem doesn't seem to let me specify a source, so i suspect all my data would appear from the source of my host. hmm, that would be not so good.
wymillerlinux has joined #ruby
roadie has quit [Ping timeout: 260 seconds]
gato has joined #ruby
akem has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
roadie has joined #ruby
roadie has quit [Remote host closed the connection]
va5c0 has joined #ruby
vondruch has quit [Ping timeout: 260 seconds]
gato60 has joined #ruby
va5c0 has quit [Quit: WeeChat 2.8]
cnsvc_ has joined #ruby
gato has quit [Ping timeout: 264 seconds]
code_zombie has joined #ruby
cnsvc_ has quit [Ping timeout: 240 seconds]
kristian_on_linu has joined #ruby
troulouliou_div2 has quit [Ping timeout: 256 seconds]
gato60 has quit [Quit: Connection closed]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Arahael has quit [Ping timeout: 260 seconds]
Arahael has joined #ruby
troulouliou_div2 has joined #ruby
kristian_on_linu has quit [Remote host closed the connection]
TCZ has joined #ruby
sagax has quit [Remote host closed the connection]
darkstardevx has joined #ruby
pwnd_nsfw has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
ur5us has joined #ruby
wogi has quit [Read error: Connection reset by peer]
renich has quit [Read error: Connection reset by peer]
roadie has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akem has quit [Ping timeout: 264 seconds]
TCZ has quit [Quit: Leaving]
roadie has quit [Ping timeout: 260 seconds]
havenwood has quit [Quit: ZNC 1.7.5 - https://znc.in]
havenwood has joined #ruby
cnsvc has quit [Quit: WeeChat 2.8]
cnsvc has joined #ruby
cnsvc has quit [Client Quit]
cnsvc has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
havenwood has quit [Quit: ZNC 1.7.5 - https://znc.in]
venmx has joined #ruby
havenwood has joined #ruby
gavlee has quit []
havenwood has quit [Quit: ZNC 1.7.5 - https://znc.in]
havenwood has joined #ruby
havenwood has quit [Quit: ZNC 1.7.5 - https://znc.in]
havenwood has joined #ruby
infinityfye has quit [Ping timeout: 265 seconds]
havenwood has quit [Client Quit]
havenwood has joined #ruby
havenwood has quit [Client Quit]
havenwood has joined #ruby
drincruz has quit [Ping timeout: 260 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
drincruz has joined #ruby
sagax has joined #ruby
dionysus69 has quit [Ping timeout: 258 seconds]