havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.0, 2.7.2, 2.6.6: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.org | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | BLM <3
JohanP has quit [Remote host closed the connection]
JohanP has joined #ruby
mnathani has quit []
JohanP has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
splud has quit [Quit: Leaving]
nickb has quit [Ping timeout: 260 seconds]
kwilczynski has quit [Ping timeout: 260 seconds]
fowl has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
kwilczynski has joined #ruby
fowl has joined #ruby
nickb has joined #ruby
splud has joined #ruby
JohanP has joined #ruby
JohanP has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 260 seconds]
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 264 seconds]
coniptor has quit [Read error: Connection reset by peer]
JohanP` has joined #ruby
m27frogy has quit [Read error: Connection reset by peer]
JohanP` has quit [Ping timeout: 256 seconds]
coniptor has joined #ruby
m27frogy has joined #ruby
Rudd0 has joined #ruby
chouhoul_ has quit [Quit: Leaving...]
JohanP` has joined #ruby
chouhoulis has joined #ruby
m27frogy has quit [Read error: Connection reset by peer]
JohanP` has quit [Ping timeout: 260 seconds]
m27frogy has joined #ruby
cd has quit [Quit: cd]
JohanP` has joined #ruby
gdonald has quit [Ping timeout: 264 seconds]
gdonald has joined #ruby
coniptor has quit [Ping timeout: 256 seconds]
wald0 has joined #ruby
JohanP` has quit [Ping timeout: 256 seconds]
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
coniptor has joined #ruby
queip has quit [Remote host closed the connection]
queip has joined #ruby
dasher00 has quit [Remote host closed the connection]
weaksauce has joined #ruby
JohanP` has joined #ruby
ellcs1 has quit [Ping timeout: 268 seconds]
woodruffw has quit [Ping timeout: 260 seconds]
JohanP` has quit [Ping timeout: 240 seconds]
TomyLobo2 has joined #ruby
TomyLobo2 has quit [Remote host closed the connection]
JohanP` has joined #ruby
GodFather_ has quit [Ping timeout: 240 seconds]
siaw23 has joined #ruby
GodFather has quit [Ping timeout: 272 seconds]
JohanP` has quit [Ping timeout: 256 seconds]
woodruffw has joined #ruby
woodruffw has joined #ruby
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 260 seconds]
JohanP` has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JohanP` has quit [Ping timeout: 264 seconds]
orbyt_ has joined #ruby
ur5us has joined #ruby
ChmEarl has quit [Quit: Leaving]
prion has joined #ruby
roshanavand has quit [Quit: roshanavand]
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 272 seconds]
coniptor has quit [Ping timeout: 240 seconds]
JohanP` has joined #ruby
cuerbot has quit [Read error: Connection reset by peer]
kateskips has joined #ruby
elcuervo has joined #ruby
JohanP` has quit [Ping timeout: 240 seconds]
stnly has quit [Quit: goodbye]
timhugh has joined #ruby
timhugh has quit [Client Quit]
stnly has joined #ruby
coniptor has joined #ruby
JohanP` has joined #ruby
stnly has quit [Quit: goodbye]
chouhoulis has quit [Remote host closed the connection]
stnly has joined #ruby
JohanP` has quit [Ping timeout: 246 seconds]
iNs has quit [Read error: Connection reset by peer]
iNs has joined #ruby
teardown has joined #ruby
gix has joined #ruby
JohanP` has joined #ruby
teardown_ has quit [Ping timeout: 240 seconds]
gix- has quit [Ping timeout: 264 seconds]
_aeris_ has quit [Ping timeout: 240 seconds]
_aeris has joined #ruby
_aeris is now known as _aeris_
siaw23 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
JohanP` has quit [Ping timeout: 272 seconds]
JohanP` has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
JohanP` has quit [Ping timeout: 240 seconds]
JohanP` has joined #ruby
cb- has quit [Ping timeout: 256 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cb- has joined #ruby
JohanP` has quit [Ping timeout: 264 seconds]
m27frogy has quit [Ping timeout: 256 seconds]
prion has quit [Ping timeout: 272 seconds]
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 256 seconds]
coniptor has quit [Ping timeout: 272 seconds]
priodev has quit [Ping timeout: 240 seconds]
priodev has joined #ruby
coniptor has joined #ruby
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 264 seconds]
teardown_ has joined #ruby
Technodrome has joined #ruby
teardown has quit [Ping timeout: 240 seconds]
JohanP` has joined #ruby
wald0 has quit [Ping timeout: 265 seconds]
JohanP` has quit [Ping timeout: 260 seconds]
duckpupp- has quit [Remote host closed the connection]
siaw23 has joined #ruby
siaw23 has quit [Client Quit]
duckpuppy has joined #ruby
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 256 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 246 seconds]
teardown has joined #ruby
teardown_ has quit [Ping timeout: 240 seconds]
JohanP` has joined #ruby
axsuul has quit [Ping timeout: 260 seconds]
axsuul has joined #ruby
JohanP` has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
JohanP` has joined #ruby
ltp has quit [Ping timeout: 256 seconds]
ltp has joined #ruby
schaerli has joined #ruby
ltp has quit [Ping timeout: 268 seconds]
ltp has joined #ruby
JohanP` has quit [Ping timeout: 260 seconds]
fippy has joined #ruby
yokel has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JohanP` has joined #ruby
blackmesa has joined #ruby
teardown_ has joined #ruby
yokel has joined #ruby
JohanP` has quit [Ping timeout: 272 seconds]
teardown_ has quit [Remote host closed the connection]
teardown has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
teardown has joined #ruby
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 260 seconds]
coniptor has quit [Ping timeout: 240 seconds]
yokel has quit [Ping timeout: 260 seconds]
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 272 seconds]
coniptor has joined #ruby
postmodern has joined #ruby
blackmesa has joined #ruby
chouhoulis has joined #ruby
schaerli has quit [Ping timeout: 260 seconds]
junaidnaseer2 has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
chouhoulis has quit [Ping timeout: 260 seconds]
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 256 seconds]
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
JohanP` has joined #ruby
coniptor has quit [Ping timeout: 272 seconds]
blackmesa has quit [Ping timeout: 272 seconds]
yokel has joined #ruby
schne1der has joined #ruby
coniptor has joined #ruby
ur5us has joined #ruby
JohanP` has quit [Ping timeout: 272 seconds]
JohanP` has joined #ruby
redhands has quit [Quit: Leaving]
stnly has quit [Quit: Ping timeout (120 seconds)]
gueorgui has quit [Ping timeout: 264 seconds]
stnly has joined #ruby
gueorgui has joined #ruby
coniptor has quit [Ping timeout: 256 seconds]
schaerli has joined #ruby
JohanP` has quit [Remote host closed the connection]
coniptor has joined #ruby
JohanP` has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Ping timeout: 260 seconds]
hiroaki_ has quit [Ping timeout: 240 seconds]
schne1der has quit [Ping timeout: 264 seconds]
hiroaki_ has joined #ruby
JohanP` has quit [Remote host closed the connection]
JohanP` has joined #ruby
<nakilon> the "EOFError: end of file reached" from nethttp -- when was it fixed? 2.4 or 2.5?
<nakilon> I mean the one that is with empty backtrace
<nakilon> seems like 2.5
JohanP` has quit [Ping timeout: 264 seconds]
JohanP` has joined #ruby
siaw23 has joined #ruby
JohanP` has quit [Ping timeout: 256 seconds]
coniptor has quit [Ping timeout: 272 seconds]
JohanP` has joined #ruby
eldritch has quit [Ping timeout: 272 seconds]
eldritch has joined #ruby
JohanP` has quit [Remote host closed the connection]
JohanP` has joined #ruby
coniptor has joined #ruby
extrowerk has joined #ruby
<nakilon> the third day into wembocking the tests and hoping to finish it in 2020, got stuck on a 5 years old bug, lol https://github.com/bblimke/webmock/issues/469
JohanP` has quit [Ping timeout: 272 seconds]
siaw23 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
gray_-_wolf has quit [Quit: ZNC 1.7.1 - https://znc.in]
siaw23 has joined #ruby
BSaboia has joined #ruby
JohanP` has joined #ruby
gray_-_wolf has joined #ruby
JohanP` has quit [Ping timeout: 256 seconds]
JohanP` has joined #ruby
schne1der has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
JohanP` has quit [Ping timeout: 272 seconds]
Axy has joined #ruby
schne1der has quit [Ping timeout: 265 seconds]
schne1der has joined #ruby
cd has joined #ruby
Mia has quit [Ping timeout: 260 seconds]
siaw23 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
junaidnaseer2 has quit [Ping timeout: 272 seconds]
JohanP` has joined #ruby
siaw23 has joined #ruby
JohanP` has quit [Ping timeout: 264 seconds]
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 246 seconds]
naftilos76 has joined #ruby
schaerli_ has joined #ruby
JohanP` has joined #ruby
coniptor has quit [Ping timeout: 264 seconds]
somazero has quit [Remote host closed the connection]
schaerli has quit [Ping timeout: 272 seconds]
somazero has joined #ruby
somazero has quit [Remote host closed the connection]
<naftilos76> hi i have some doubts as to how ruby threads work. Although i have been through several guides i am still having some doubts regarding the use of join. So my understanding is that creating a thread with .new in the main ruby thread does not start the thread unless the main thread finishes. Is this correct? At least this what i conclude with a sample code that i have been executing. Now, using thread.join will explicitly force the threads to suspend
<naftilos76> execution of the main thread exactly where the .join was placed and will go back to the main thread after the thread's execution is over. Am i right?
JohanP` has quit [Remote host closed the connection]
JohanP` has joined #ruby
coniptor has joined #ruby
m27frogy has joined #ruby
dionysus69 has joined #ruby
<leftylink> you may use an experiment-based approach to test whether your statement is true. `ruby -e "puts Thread.new {}.status"` . You see that the output is "run". therefore, you know now that Thread.new does start the thread.
<leftylink> for questions on what Thread#join does, I defer to the documentation, as it can surely explain it better than I can
<leftylink> &ri Thread#join
<leftylink> the significance of the main thread finishing is that all other threads are killed when the main thread finishes. if the main thread finishes before other threads have done their job, other threads will not be able to do their job
<naftilos76> thanks
JohanP` has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
JohanP has joined #ruby
prion has joined #ruby
TCZ has joined #ruby
Guest48 has joined #ruby
Guest48 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest48 has joined #ruby
Guest48 has quit [Client Quit]
JohanP has quit [Ping timeout: 256 seconds]
mconnolly has quit [Ping timeout: 264 seconds]
mconnolly has joined #ruby
JohanP has joined #ruby
JohanP has quit [Ping timeout: 240 seconds]
coniptor has quit [Ping timeout: 260 seconds]
JohanP has joined #ruby
coniptor has joined #ruby
TCZ has quit [Quit: Wawel - Czujesz sie dobrze, czynisz dobrze]
JohanP has quit [Ping timeout: 240 seconds]
JohanP has joined #ruby
fippy has quit [Ping timeout: 272 seconds]
ellcs has joined #ruby
JohanP has quit [Ping timeout: 272 seconds]
ellcs has quit [Ping timeout: 260 seconds]
JohanP has joined #ruby
JohanP has quit [Ping timeout: 256 seconds]
banisterfiend has joined #ruby
postmodern has quit [Quit: Leaving]
ellcs has joined #ruby
JohanP has joined #ruby
fanta1 has joined #ruby
schne1der has quit [Ping timeout: 272 seconds]
GodFather has joined #ruby
GodFather_ has joined #ruby
coniptor has quit [Ping timeout: 268 seconds]
wald0 has joined #ruby
banisterfiend has quit [Ping timeout: 260 seconds]
banisterfiend has joined #ruby
banisterfiend has quit [Changing host]
banisterfiend has joined #ruby
coniptor has joined #ruby
schne1der has joined #ruby
schne1der has quit [Client Quit]
GodFather_ has quit [Ping timeout: 256 seconds]
GodFather has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Ping timeout: 260 seconds]
naftilos76 has quit [Quit: Leaving]
coniptor has quit [Ping timeout: 264 seconds]
orbyt_ has joined #ruby
wald0 has quit [Ping timeout: 268 seconds]
coniptor has joined #ruby
wald0 has joined #ruby
jim has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
ellcs has quit [Ping timeout: 268 seconds]
cuerbot has joined #ruby
elcuervo has quit [Ping timeout: 240 seconds]
BSaboia has quit [Quit: This computer has gone to sleep]
blackmesa has joined #ruby
AndreYuhai has joined #ruby
<AndreYuhai> Is there any way to edit a code block within PRY? Instead of finding every line of the code block and pressing enter?
schaerli_ has quit [Ping timeout: 264 seconds]
<AndreYuhai> Something like IPython
banisterfiend has joined #ruby
banisterfiend has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
coniptor has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
Rudd0^ has joined #ruby
Rudd0 has quit [Read error: Connection reset by peer]
<adam12> AndreYuhai: `edit`?
<havenwood> AndreYuhai: See: help edit
<havenwood> AndreYuhai: Or do you want the multi-line edit style that the new irb does?
coniptor has joined #ruby
roshanavand has joined #ruby
<AndreYuhai> I've tried edit now and I don't know why but it is slow and it is doing weird things. Like I couldn't quit. I do :q! but then goes into insert mode again and bunch of other weird stuff
<AndreYuhai> Might be because of syntax checker maybe that really slows down vim
ellcs has joined #ruby
<AndreYuhai> Oh yea that was probably because of Syntastic check
<AndreYuhai> Thanks!
<AndreYuhai> multiline edit from new irb is also cool, I just checked that. Easier
schne1der has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
dhollinger has quit [Ping timeout: 260 seconds]
dhollinger has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
_aeris_ has quit [Quit: ZNC - http://znc.sourceforge.net]
_aeris_ has joined #ruby
teardown has quit [Ping timeout: 240 seconds]
iNs has quit [Quit: bubye]
teardown has joined #ruby
iNs has joined #ruby
Technodrome has joined #ruby
coniptor has quit [Ping timeout: 240 seconds]
hlm has joined #ruby
dionysus69 has joined #ruby
hlm is now known as Guest85135
<Guest85135> Hi all, I'm trying to run oxidized (https://github.com/ytti/oxidized)
<Guest85135> I'm on Debian Buster
coniptor has joined #ruby
<Guest85135> at launch I have this error message "Could not find 'net-ssh' (~> 5) - did find: [net-ssh-6.1.0] (Gem::MissingSpecVersionError)"
ropeney has quit [Read error: Connection reset by peer]
<Guest85135> As far as I understand net-ssh installed is higher than the requested one
<adam12> Guest85135: Did you install net-ssh mnaually? How did you install oxidized?
<adam12> Guest85135: and what's the command you're using to run oxidized?
ropeney has joined #ruby
Rudd0^ has quit [Ping timeout: 256 seconds]
AndreYuhai has quit [Remote host closed the connection]
<Guest85135> I followed installation instructions from here : https://github.com/ytti/oxidized#installation
AndreYuhai has joined #ruby
<adam12> Guest85135: Under Debian? ie. gem install oxidized
<Guest85135> and installed net-ssh with "gem install net-ssh"
<adam12> Guest85135: Ah ok. How about trying `gem install net-ssh -v "~> 5"` then running oxidized again?
<Guest85135> To launch oxidized : su - oxidized then #oxidized
<Guest85135> Thanks adam12, let's do a try
<Guest85135> Adam12: Many thanks ! I'm a step further now !
<adam12> Guest85135: Great!
<Guest85135> adam12: I think I have a lot of dependencies to install, do you think `gem install oxidized -include-dependencies` will do the complete job ?
<adam12> Guest85135: It should of done it the first time, to be honest.
<adam12> Guest85135: You could uninstall oxidized and re-install it. But if it didn't install the dependencies, maybe there's something wrong with your gem config or Ruby version.
<adam12> Guest85135: What's the output of `gem install --explain oxidized`? Share it in a gist or dpaste.org.
<adam12> (I'll be back in a bit. Lunchy time.)
<Guest85135> adam12: Thx !
<Guest85135> adam12: ox2:~ # gem install --explain oxidized
<Guest85135> asetus-0.3.0
<Guest85135> ed25519-1.2.4
<Guest85135> bcrypt_pbkdf-1.0.1
<Guest85135> Gems to install:
<Guest85135> net-ssh-5.2.0
<Guest85135> net-telnet-0.2.0
<Guest85135> rugged-0.28.5
<Guest85135> slop-4.8.2
<Guest85135> oxidized-0.28.0
ChmEarl has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
ellcs1 has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
ellcs has quit [Ping timeout: 268 seconds]
jinie has quit [Ping timeout: 264 seconds]
<Guest85135> adam12: I think I'm on the way, oxidized starts with root user (after de-install / re-install), let's find now why oxidized user hits an error
<banisterfiend> how to cmpare two types in rust? i.e check if one type is the same as another
jinie has joined #ruby
wald0 has quit [Ping timeout: 240 seconds]
wald0 has joined #ruby
<Guest85135> adam12: finally it works! Many thanks, I've learned lots of things about ruby ecosystem
<adam12> Guest85135: Great!
<apotheon> banisterfiend: This is not the Rust channel.
AndreYuhai has quit [Remote host closed the connection]
jinie has quit [Quit: ZNC 1.8.2 - https://znc.in]
jinie has joined #ruby
<banisterfiend> apotheon hehe, i realized i was confused by the #ru prefix in my truncated channel list
<banisterfiend> >> (1..10).map { _0.to_s }
<ruby[bot]> banisterfiend: # => undefined local variable or method `_0' for main:Object (NameError) (https://carc.in/#/r/a6wc)
<banisterfiend> what's the new syntax?
<havenwood> banisterfiend: _1
<banisterfiend> >> (1..10).map { _1.to_s }
<ruby[bot]> banisterfiend: # => ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] (https://carc.in/#/r/a6wd)
<banisterfiend> havenwood thanks
<banisterfiend> still wish they went with 'it', _1 looks kinda odd :D
<havenwood> banisterfiend: it was _0 with destructuring. yeah, I liked 'itself', personally
<havenwood> I guess 'it' is shorter
<banisterfiend> isn't 'itself' a new method/keyword too?
<havenwood> yeah
<havenwood> and 'yield_self' got then alias 'then'
<banisterfiend> what does it do? just return self?
<havenwood> yup
<banisterfiend> >> then { |x, y| x= 10; y = 20; x * y }
<ruby[bot]> banisterfiend: # => (https://carc.in/#/r/a6we)
<banisterfiend> i think we need one that just returns the resulf of the block too :)
<banisterfiend> that would be equivalent to just {} in a language like C/C++, i.e just introduces a new scope
<banisterfiend> >> def scope; yield; end; scope { |x=10, y=20| x * y }
<ruby[bot]> banisterfiend: # => 200 (https://carc.in/#/r/a6wf)
<banisterfiend> i kinda like that :)
coniptor has quit [Ping timeout: 264 seconds]
<havenwood> banisterfiend: Had some fun bending #then to work with a maybe monad https://gist.github.com/havenwood/b0c6bdd59be549a6bb701b575480e55b
<kaleido> ruby 3 was a christmas gift? :D
<havenwood> kaleido: Merry Christmas!
<kaleido> \o/
<havenwood> kaleido: 3.1 will be a Christmas gift next year.
<banisterfiend> nice, does ruby have any new error handling story other than exceptions atm? did anything like Optional or Maybe or Either make it in?
<havenwood> nope, just the lonely person operator for: nil&.blarg
<banisterfiend> havenwood would be curious if anyone can get something like do-notatoin working with ruby via fibers or so
<havenwood> lonely person staring at a dot on the floor: &.
<havenwood> banisterfiend: ioquatix did!
<banisterfiend> niice
<banisterfiend> link?
<havenwood> banisterfiend: https://github.com/socketry/async
<banisterfiend> hehe too much to read there, do you have a direct link to tihs do-notation ?
<banisterfiend> i mean something like this https://en.wikibooks.org/wiki/Haskell/do_notation
<adam12> banisterfiend: I use dry-monads in a lot of projects to get Maybe/Either/etc.
<adam12> It has do notation as well.
<havenwood> banisterfiend: ah, gotcha
<banisterfiend> adam12 can you show an example? im really curoius how they pulled it off
<adam12> banisterfiend: An example of which?
<banisterfiend> adam12 monadic do-notation
blackmesa has joined #ruby
<banisterfiend> adam12 that's pretty clever
<banisterfiend> they decorate the method and have the decorator call into the original method
<banisterfiend> only works so great due to the implicit blocks in ruby
<adam12> banisterfiend: Yeah. I think it's a loop that constantly yields, and then checks the return value. Failure() bubbles up, Success() is unwrapped and returned.
<adam12> banisterfiend: It's been a while since I looked tho.
coniptor has joined #ruby
<banisterfiend> i like it
Guest85135 has quit [Quit: Leaving]
blackmesa has quit [Ping timeout: 268 seconds]
ua has quit [Ping timeout: 264 seconds]
JohanP has quit [Remote host closed the connection]
JohanP has joined #ruby
JohanP has quit [Ping timeout: 264 seconds]
JohanP has joined #ruby
gray_-_wolf has quit [Quit: ZNC 1.7.1 - https://znc.in]
ua has joined #ruby
gray_-_wolf has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alphed- has joined #ruby
Technodrome has joined #ruby
<nakilon> 20:59:14 <havenwood> lonely person staring at a dot on the floor: &.
<nakilon> how to unsee it?
<adam12> lol
<nakilon> he's praying on a black box
roshanavand has joined #ruby
dasher00 has joined #ruby
moldorcoder7 has quit [Ping timeout: 264 seconds]
dviola has joined #ruby
moldorcoder7 has joined #ruby
<nakilon> poor dot man operator
dasher00 has quit [Quit: GTFO]
dasher00 has joined #ruby
<nakilon> dude breaks my dreams https://i.imgur.com/AnVEYlt.png
sphex has joined #ruby
<adam12> ( ͡° ͜ʖ ͡°)
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TCZ has joined #ruby
<jhass> !spam alphed-
alphed- was kicked from #ruby by ruby[bot] [spamming is a bannable offense, see http://ruby-community.com/pages/user_rules]
maryo has joined #ruby
prion has quit [Ping timeout: 256 seconds]
lucasb has joined #ruby
prion has joined #ruby
roshanavand has quit [Ping timeout: 272 seconds]
ur5us has joined #ruby
roshanavand has joined #ruby
schne1der has quit [Quit: schne1der]
dionysus69 has joined #ruby
yokel has quit [Ping timeout: 256 seconds]
yokel has joined #ruby
coniptor has quit [Ping timeout: 256 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has joined #ruby
coniptor has joined #ruby
fanta1 has quit [Quit: fanta1]
maryo has quit [Quit: Leaving]
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
ellcs1 has quit [Ping timeout: 268 seconds]
BSaboia has joined #ruby
cb- has quit [Ping timeout: 264 seconds]
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
blackmesa has joined #ruby
weaksauce has joined #ruby
zenspider has quit [Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in]
zenspider has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
coniptor has quit [Ping timeout: 256 seconds]
roshanavand1 has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
roshanavand1 is now known as roshanavand
coniptor has joined #ruby
Rudd0 has joined #ruby
apotheon has quit [Ping timeout: 240 seconds]
SuperLag has quit [Ping timeout: 246 seconds]
hiroaki_ has quit [Ping timeout: 264 seconds]
SuperLag has joined #ruby
apotheon has joined #ruby
wald0 has quit [Ping timeout: 265 seconds]
JohanP has quit [Ping timeout: 260 seconds]
roshanavand has quit [Quit: roshanavand]
hiroaki_ has joined #ruby
JohanP has joined #ruby
GodFather_ has joined #ruby
Perform has quit [Ping timeout: 268 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
TCZ has quit [Quit: Wawel - Czujesz sie dobrze, czynisz dobrze]
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
Rudd0^ has joined #ruby
Rudd0 has quit [Ping timeout: 256 seconds]
FastJack has quit [Ping timeout: 264 seconds]
JohanP has quit [Remote host closed the connection]
JohanP has joined #ruby
FastJack has joined #ruby
coniptor has quit [Ping timeout: 240 seconds]
dasher00 has quit [Quit: GTFO]
dasher00 has joined #ruby
JohanP has quit [Remote host closed the connection]
JohanP has joined #ruby
coniptor has joined #ruby
ruby[bot] has joined #ruby
ur5us_ has joined #ruby
ur5us has quit [Ping timeout: 268 seconds]
duderonomy has quit [Ping timeout: 256 seconds]
prion has quit [Ping timeout: 240 seconds]
coniptor has quit [Ping timeout: 256 seconds]
GodFather_ has quit [Ping timeout: 264 seconds]
Pierreb has joined #ruby
<Pierreb> im trying to retrieve a value from a mysql db with mysql2. The problem i have is i get way more than the actual value. {"VERSION()"=>"5.6.21"} when i only want 5.6.21. anyone got a bit of time to see what im doing wrong? https://dpaste.org/oEFb
orbyt_ has joined #ruby
coniptor has joined #ruby
<adam12> Pierreb: If you're always just retrieving this, I'd probably just do `client.query().values.first` or something.
<Pierreb> yes its static and only one "value"
<Pierreb> ill test that adam12
<adam12> Pierreb: But you could probably extract it if you wanted in the loop. `results.each do |key, value|`.
<leftylink> https://github.com/brianmario/mysql2#readme says "row is a hash" so the behaviour of {"VERSION()"=>"5.6.21"} seems to be expected. use the usual ways of retrieving information from a hash to get the 5.6.21 out of it, then.
weaksauce has joined #ruby