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!
cnsvc has quit [Remote host closed the connection]
cnsvc has joined #ruby
cahoots has quit [Ping timeout: 258 seconds]
pwnd_nsfw` has joined #ruby
SeepingN has joined #ruby
falconfox has quit [Ping timeout: 250 seconds]
pwnd_nsfw has quit [Ping timeout: 256 seconds]
pwnd_nsfw has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
ur5us has joined #ruby
falconfox has joined #ruby
ChmEarl has quit [Quit: Leaving]
Xiti has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
alexherbo2 has quit [Ping timeout: 240 seconds]
jinmiaoluo has joined #ruby
jinmiaol2 has quit [Ping timeout: 264 seconds]
jinmiaoluo has quit [Remote host closed the connection]
brool has quit [Ping timeout: 272 seconds]
jinmiaoluo has joined #ruby
olspookishmagus has quit [Quit: All for nothing]
Rudd0 has quit [Ping timeout: 256 seconds]
cnsvc has quit [Ping timeout: 240 seconds]
sergioro has quit [Read error: Connection reset by peer]
sergioro has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pwnd_nsfw has quit [Remote host closed the connection]
olspookishmagus has joined #ruby
davor has quit [Ping timeout: 256 seconds]
davor has joined #ruby
Rudd0 has joined #ruby
cnsvc has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
jinmiaol2 has joined #ruby
jinmiaoluo has quit [Ping timeout: 258 seconds]
brool has joined #ruby
Fridtjof has quit [Ping timeout: 260 seconds]
bhaak has quit [Ping timeout: 265 seconds]
jinmiaoluo has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
jinmiaol2 has quit [Ping timeout: 256 seconds]
Fridtjof has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
oncall-pokemon has quit [Quit: Connection closed for inactivity]
banisterfiend has quit [Quit: banisterfiend]
fratis has joined #ruby
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
fratis has quit [Read error: Connection reset by peer]
cnsvc has joined #ruby
hassox has quit [Remote host closed the connection]
rmnull has quit [Quit: WeeChat 2.8]
jinmiaoluo has quit [Remote host closed the connection]
cd has quit [Quit: cd]
jinmiaoluo has joined #ruby
alfiemax has joined #ruby
rmnull has joined #ruby
pandakekok9 has joined #ruby
chalkmonster has joined #ruby
gix has quit [Ping timeout: 250 seconds]
alfiemax has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
cliluw has quit [Ping timeout: 250 seconds]
pandakekok9 has quit [Ping timeout: 265 seconds]
careta has joined #ruby
<careta> hi guys
<careta> if I use rbenv uninstall, will it also uninstall the gems installed by rbenv to that ruby version?
SuperL4g has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
sergioro has quit [Quit: leaving]
SuperLag has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
sergioro has joined #ruby
rmnull has quit [Ping timeout: 265 seconds]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
jinmiaoluo has quit [Ping timeout: 256 seconds]
jinmiaoluo has joined #ruby
caterfxo has quit [Ping timeout: 264 seconds]
jinmiaol2 has joined #ruby
jinmiaoluo has quit [Ping timeout: 256 seconds]
beilabs has quit [Ping timeout: 260 seconds]
SeepingN has joined #ruby
SeepingN has quit [Client Quit]
jinmiaoluo has joined #ruby
jinmiaol2 has quit [Remote host closed the connection]
jinmiaol2 has joined #ruby
jinmiaoluo has quit [Ping timeout: 256 seconds]
arahael1 has joined #ruby
arahael has quit [Ping timeout: 256 seconds]
jinmiaol2 has quit [Remote host closed the connection]
jinmiaoluo has joined #ruby
jinmiaoluo has quit [Remote host closed the connection]
jinmiaoluo has joined #ruby
jinmiaol2 has joined #ruby
jinmiaoluo has quit [Ping timeout: 240 seconds]
alfiemax has quit [Remote host closed the connection]
<apotheon> careta: It should.
brool has quit [Ping timeout: 272 seconds]
chalkmonster has quit [Quit: WeeChat 2.8]
alfiemax_ has joined #ruby
falconfox has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
alfiemax_ has quit [Ping timeout: 240 seconds]
sauvin has joined #ruby
<careta> apotheon, thanks
<careta> it seems so
charrit69 has joined #ruby
jinmiaol2 has quit [Ping timeout: 240 seconds]
jinmiaoluo has joined #ruby
fercell has quit [Quit: WeeChat 2.8]
ur5us has quit [Ping timeout: 256 seconds]
_whitelogger has joined #ruby
chalkmonster has joined #ruby
fercell has joined #ruby
markopasha has joined #ruby
markopasha has quit [Max SendQ exceeded]
jinmiaoluo has quit [Remote host closed the connection]
cthu| has quit [Ping timeout: 256 seconds]
jinmiaoluo has joined #ruby
jinmiaoluo has quit [Remote host closed the connection]
jinmiaoluo has joined #ruby
cliluw has joined #ruby
cliluw has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby
alfiemax has joined #ruby
hiroaki has quit [Ping timeout: 250 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
davor has quit [Ping timeout: 260 seconds]
davor_ has joined #ruby
davor_ is now known as davor
bhaak has joined #ruby
conta has joined #ruby
Mikaela_ has joined #ruby
burgestrand has joined #ruby
conta has quit [Quit: conta]
schne1der has joined #ruby
akem has quit [Quit: Leaving]
PaulePanter has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.8]
gitter1234 has quit [Quit: Connection closed for inactivity]
jacksop has joined #ruby
alexherbo29 has joined #ruby
alexherbo2 has quit [Ping timeout: 256 seconds]
alexherbo29 is now known as alexherbo2
imode has quit [Ping timeout: 265 seconds]
burgestrand has quit [Quit: burgestrand]
burgestrand has joined #ruby
conta has joined #ruby
MuffinPimp has quit [Ping timeout: 265 seconds]
TomyWork has joined #ruby
akem has joined #ruby
burgestrand has quit [Quit: burgestrand]
vondruch has joined #ruby
burgestrand has joined #ruby
burgestrand has quit [Client Quit]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
jinie has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
jacksop has quit [Remote host closed the connection]
jacksop has joined #ruby
giorgian has quit [Ping timeout: 256 seconds]
giorgian has joined #ruby
jinmiaoluo has quit [Ping timeout: 256 seconds]
jinmiaoluo has joined #ruby
jacksop has quit [Ping timeout: 240 seconds]
jacksop has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
roadie has quit [Read error: Connection reset by peer]
conta has quit [Quit: conta]
jinmiaoluo has quit [Ping timeout: 264 seconds]
jinmiaoluo has joined #ruby
Exagone313 has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby
arahael1 is now known as Arahael
Exagone313 has joined #ruby
charrit69 has quit [Ping timeout: 256 seconds]
barg has joined #ruby
alfiemax has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
cnsvc has joined #ruby
stdedos has joined #ruby
Exagone313 has quit [Quit: see ya!]
Exagone313 has joined #ruby
charrit69 has joined #ruby
<barg> how long would brew update typically take?
akem has quit [Remote host closed the connection]
akem has joined #ruby
<jhass> 10s - a day if you're rebuilding LLVM from source? idk
rikkipitt has joined #ruby
chalkmonster has joined #ruby
d3bug has quit [Quit: Connection closed for inactivity]
cnsvc has quit [Ping timeout: 240 seconds]
pandakekok9 has joined #ruby
jinmiaoluo has quit [Ping timeout: 240 seconds]
<barg> ok thanks
TCZ has joined #ruby
burgestrand has joined #ruby
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
rikkipitt has quit [Quit: Leaving...]
vondruch has quit [Ping timeout: 265 seconds]
conta has joined #ruby
akem has quit [Read error: Connection reset by peer]
chalkmonster has quit [Quit: WeeChat 2.8]
alexherbo2 has joined #ruby
alfiemax has quit [Remote host closed the connection]
bhaak has quit [Ping timeout: 256 seconds]
jacksop has quit [Remote host closed the connection]
uplime has quit [Remote host closed the connection]
uplime has joined #ruby
stdedos has quit [Quit: Connection closed]
sergioro has quit [Quit: leaving]
bhaak has joined #ruby
uplime- has joined #ruby
careta has quit [Ping timeout: 264 seconds]
uplime has quit [Read error: Connection reset by peer]
gitter1234 has joined #ruby
cnsvc has joined #ruby
dionysus69 has joined #ruby
burgestrand has quit [Quit: burgestrand]
careta has joined #ruby
burgestrand has joined #ruby
caterfxo has joined #ruby
jinmiaoluo has joined #ruby
cd has joined #ruby
foxxx0 has quit [Quit: foxxx0]
foxxx0 has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
burningserenity has joined #ruby
burningserenity has quit [Client Quit]
burningserenity has joined #ruby
drincruz has joined #ruby
pandakekok9 has quit [Ping timeout: 260 seconds]
pandakekok9 has joined #ruby
uplime- has quit [Read error: Connection reset by peer]
uplime has joined #ruby
Mikaela_ has quit [Quit: Mikaela_]
quintasan has joined #ruby
cnsvc has joined #ruby
conta has quit [Quit: conta]
jacksop has joined #ruby
impermanence has joined #ruby
vondruch has joined #ruby
jacksop has quit [Ping timeout: 264 seconds]
alfiemax has joined #ruby
jinmiaoluo has quit [Ping timeout: 240 seconds]
jinmiaoluo has joined #ruby
banisterfiend has joined #ruby
Secret-Fire has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
Secret-Fire has quit [Remote host closed the connection]
charrit69 has quit [Quit: Konversation terminated!]
burningserenity has quit [Remote host closed the connection]
gitter1234 has quit [Quit: Connection closed for inactivity]
d3bug has joined #ruby
TCZ has quit [Quit: Leaving]
<en10n> Hello. I'm trying to query an instance variable of a class, stored in an array in an instance variable in another class.
<en10n> Was thinking I could use a method from Enumerable to drill into it, but am not having any success getting beyond just returning the full instance of the class object.
<en10n> Also, apologies if I'm not describing this in the correct vernacular. I'm new, trying to learn more.
pandakekok9 has quit [Ping timeout: 260 seconds]
alfiemax has quit [Remote host closed the connection]
cnsvc has joined #ruby
jinmiaoluo has quit [Ping timeout: 250 seconds]
jinmiaoluo has joined #ruby
pandakekok9 has joined #ruby
burgestrand has quit [Quit: burgestrand]
<jhass> en10n: what do you want cheapest to return, an instance of a Product or the name field inside that Product?
<jhass> the given answer should work for the latter, maybe you changed your test code from what you posted in the question in the mean time?
<en10n> @jhass Thanks for the reply. The latter, the name field inside the Product.
<en10n> @jhass When I tried the suggested code, I was getting a NoMethodError for "name".
<jhass> which shouldn't happen in case your test code is unaltered from the one in the question
<en10n> I will double-check.
careta has quit [Ping timeout: 256 seconds]
<jhass> or maybe you have more tests than you showed?
<jhass> lot's of guessing here :D
<en10n> @jhass Yes, I see that is exactly the issue. The error is from another test. Thank you very much for helping me figure that out.
cnsvc has quit [Ping timeout: 240 seconds]
<jhass> always good to double check the backtrace going through the code you think the error is coming from :)
TCZ has joined #ruby
burningserenity has joined #ruby
<en10n> Yes, glossed over and assumed. 🤦‍♂️
<en10n> Thanks again.
cd has quit [Quit: cd]
cliluw has joined #ruby
hutch has joined #ruby
<adam12> Doh. Looks like havenwood will be disappointed. No RH assignment in endless methods :) https://github.com/ruby/ruby/pull/3051/files
careta has joined #ruby
pandakekok9 has quit [Quit: good night]
drincruz has quit [Read error: Connection reset by peer]
cliluw has quit [Ping timeout: 256 seconds]
fanta1 has joined #ruby
drincruz has joined #ruby
akem has joined #ruby
akem has quit [Max SendQ exceeded]
akem has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
brool has joined #ruby
conta has joined #ruby
Emmanuel_Chanel has joined #ruby
SuperLag has joined #ruby
alfiemax has joined #ruby
SuperL4g has quit [Ping timeout: 240 seconds]
TCZ has quit [Quit: Leaving]
TCZ has joined #ruby
TCZ has quit [Remote host closed the connection]
TCZ has joined #ruby
jinmiaoluo has quit [Ping timeout: 265 seconds]
aesthe has joined #ruby
burningserenity has quit [Remote host closed the connection]
rippa has joined #ruby
<jhass> honestly I don't like the whole idea
ritalinona has quit [Ping timeout: 240 seconds]
Ai9zO5AP has quit [Ping timeout: 240 seconds]
iNs_ has quit [Ping timeout: 240 seconds]
_aeris_ has quit [Ping timeout: 240 seconds]
leitz has joined #ruby
hassox has joined #ruby
ellcs has joined #ruby
hassox has quit [Ping timeout: 264 seconds]
fercell has quit [Quit: WeeChat 2.8]
<apotheon> Is "endless methods" some kind of reference to the idea of defining methods without the "end" keyword?
<al2o3-cr> apotheon: yes.
_aeris_ has joined #ruby
Ai9zO5AP has joined #ruby
iNs has joined #ruby
ritalinona has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
<apotheon> I see.
<apotheon> I'm not entirely enthused by the idea so far, but so far that's all I know about the idea.
<apotheon> al2o3-cr: Thanks.
<al2o3-cr> apotheon: np :)
<leitz> I'm enthused, the half-dozen "end" statements looks odd. To me, anyway. That's why I use {} where possible.
<leitz> That, and vim matches for me, when I get lost...
hassox has joined #ruby
lucasb has joined #ruby
<apotheon> I do wish Vim would match end using %, but otherwise I think that for any multiline method definition using end is better than braces.
hassox has quit [Remote host closed the connection]
<apotheon> (or other multiline blocks of code, in the non-Ruby sense of a block of code)
<apotheon> What do we call a block of code that isn't a Ruby block? I'm still not sure, after fifteen years of familiarity with Ruby.
<apotheon> A conditional block, a class definition, a ruby definition, and a Ruby block are all examples of that superset of the non-Ruby-terminology block.
<apotheon> s/ruby definition/method definition/
<apotheon> not sure how I typed "ruby" there
<leitz> If a yaml and json file are built from the same data (Using perl), and then slurped into Ruby, how do I find the differences? There seems to be a lot of them, but the hashes seem similar from a surface level. https://gist.github.com/LeamHall/9a6d6f80f5a56a67d35552279be81540
<leitz> apothon, I found myself typing "exit" when I meant something totally different, the other night. I took that as a sign for a nap. :)
<apotheon> oops
Ai9zO5AP has quit [Ping timeout: 240 seconds]
al2o3-cr has quit [Quit: WeeChat 2.8]
<apotheon> In addition to not liking multiline brace-enclosed blocks, I wonder what happened to your indentation on that File.open.
<leitz> apotheon, and, how are you doing today?
<apotheon> I didn't get enough sleep.
<apotheon> Something woke me up early, and I didn't get back to sleep. My brain is probably full of failure today.
<leitz> I had that problem the other night. I took yesterday easy...
al2o3-cr has joined #ruby
conta has quit [Read error: Connection reset by peer]
<apotheon> So . . . I think you need to sort your keys before performing the == test.
conta has joined #ruby
<apotheon> . . . if you want a "true" result.
<leitz> I thought hashes compared out of order?
<apotheon> I don't recall.
<apotheon> Oh, yeah, that's right, they do.
<apotheon> hmm
fercell has joined #ruby
<apotheon> erm
TCZ has quit [Quit: Leaving]
<leitz> I get ~1700 differences if I compare them.
TCZ has joined #ruby
<apotheon> You might try comparing a sorted list of keys first to see if there's a difference, then (if not) iterating over a sorted list of values.
<apotheon> . . . or key-value pairs.
<apotheon> wow
alfiemax has quit [Remote host closed the connection]
<apotheon> Did you say this was the same data?
<apotheon> (initially)
<apotheon> I might not understand what you're trying to do. I wouldn't want to have to sift through 1700 identified differences.
<leitz> Yup. And the keys are the same, it looks like. Line 23 has no output.
<leitz> Half the time I don't understand what I'm trying to do...
<apotheon> same initial data, turned by Perl's serialization and Ruby's deserialization into different data
<apotheon> That seems awful.
<apotheon> It might be worth trying different JSON and YAML libs to see if one of the libraries you used is buggy.
<apotheon> f'rinstance, I wonder if Syck produces the same hash as Psych with your data
burningserenity has joined #ruby
alfiemax has joined #ruby
sergioro has joined #ruby
TCZ has quit [Quit: Leaving]
gitter1234 has joined #ruby
Xiti` has joined #ruby
SeepingN has joined #ruby
Ai9zO5AP has joined #ruby
<leitz> Okay...looks like it's stupid. One version quotes a 0 and another doesn't. That level of difference, since "0" is a string in ruby, and 0 is not.
<leitz> That was the first error I found, there are likely others.
Xiti has quit [Ping timeout: 260 seconds]
Xiti` has quit [Max SendQ exceeded]
Xiti` has joined #ruby
alfiemax_ has joined #ruby
Xiti` has quit [Max SendQ exceeded]
Xiti` has joined #ruby
Xiti` has quit [Read error: Connection reset by peer]
Xiti` has joined #ruby
alfiemax has quit [Ping timeout: 265 seconds]
Xiti has joined #ruby
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
jinie has joined #ruby
cnsvc has joined #ruby
Xiti` has quit [Ping timeout: 260 seconds]
Xiti` has joined #ruby
Pixi__ has joined #ruby
d3bug has quit [Quit: Connection closed for inactivity]
<apotheon> Perl should differentiate between numbers and numeric strings, too, though in practice it doesn't feel like it does.
<apotheon> Does JSON not differentiate between strings and numbers as datums? I don't recall.
Xiti has quit [Ping timeout: 256 seconds]
<apotheon> ah
alfiemax_ has quit [Ping timeout: 256 seconds]
<apotheon> I just checked. Apparently, JSON is supposed to differentiate.
<apotheon> . . . so there's definitely a bug somewhere.
Xiti` has quit [Ping timeout: 256 seconds]
<apotheon> In YAML, I know that unquoted numeric strings are actually just numbers, and not strings (though quoted numeric strings *are* actual string data).
cnsvc has quit [Ping timeout: 240 seconds]
ellcs has quit [Ping timeout: 256 seconds]
Esa__ has joined #ruby
arekushi has quit [Quit: Gateway shutdown]
jinmiaoluo has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
ChmEarl has joined #ruby
cthu| has joined #ruby
alfiemax has quit [Remote host closed the connection]
imode has joined #ruby
cd has joined #ruby
TomyWork has quit [Remote host closed the connection]
hiroaki has joined #ruby
cnsvc has joined #ruby
vondruch has quit [Ping timeout: 250 seconds]
SeepingN has joined #ruby
Xiti has joined #ruby
<SeepingN> as should always be
Pixi__ has quit [Ping timeout: 256 seconds]
fanta1 has quit [Quit: fanta1]
Xiti has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
<leitz> Perl tends to transmute, behind the scenes, IIUC.
schne1der has quit [Ping timeout: 264 seconds]
conta has quit [Quit: conta]
<phaul> apotheon: nvim matches ends with %, for normal vim you need pkgadd! matchit (which ships with vim anyway)
<apotheon> phaul: I see. I don't use any plugins for Vim, so I hadn't noticed it shipped with that.
<apotheon> I'm not sure what you mean by "pkgadd!" though.
jinmiaoluo has quit [Ping timeout: 246 seconds]
<phaul> I remembered pkgadd but looks like I was wrong. I moved over to nvim a while ago though
d3bug has joined #ruby
<apotheon> The last time I tried using nvim, it failed to work for me.
<apotheon> That was some time ago, but I haven't bothered to try again since.
<apotheon> phaul: Thanks for that.
Xiti` has joined #ruby
Xiti has quit [Ping timeout: 264 seconds]
jobewan has quit [Quit: jobewan]
Ai9zO5AP has quit [Ping timeout: 240 seconds]
cnsvc has quit [Ping timeout: 240 seconds]
stdedos has joined #ruby
Ai9zO5AP has joined #ruby
Ai9zO5AP has quit [Client Quit]
Pixi__ has joined #ruby
Xiti` has quit [Ping timeout: 265 seconds]
m27frogy has quit [Ping timeout: 256 seconds]
m27frogy has joined #ruby
imode has quit [Ping timeout: 260 seconds]
arcaos has joined #ruby
troulouliou_dev has joined #ruby
wildtrees has joined #ruby
Ai9zO5AP has joined #ruby
imode has joined #ruby
wildtrees has quit [Max SendQ exceeded]
DTZUZU has quit [Quit: WeeChat 2.7]
troulouliou_dev has quit [Max SendQ exceeded]
troulouliou_dev has joined #ruby
wildtrees_ has joined #ruby
troulouliou_dev has quit [Max SendQ exceeded]
troulouliou_dev has joined #ruby
wildtrees_ has quit [Max SendQ exceeded]
wildtrees_ has joined #ruby
DTZUZU has joined #ruby
cnsvc has joined #ruby
golevka has joined #ruby
cliluw has joined #ruby
cd has quit [Quit: cd]
howdoi has joined #ruby
burgestrand has joined #ruby
careta has quit [Ping timeout: 256 seconds]
cliluw has quit [Ping timeout: 256 seconds]
cliluw has joined #ruby
cd has joined #ruby
stdedos has quit [Quit: Connection closed]
roadie has joined #ruby
cd has quit [Quit: cd]
ellcs has joined #ruby
burgestrand has quit [Quit: burgestrand]
wildtrees_ has quit [Ping timeout: 250 seconds]
hiroaki has quit [Ping timeout: 264 seconds]
sauvin has quit [Read error: Connection reset by peer]
ldepandis has joined #ruby
cd has joined #ruby
<al2o3-cr> &>> require 'openssl'; OpenSSL.constants.grep(/VERSION\z/).map &OpenSSL.method(:const_get)
<rubydoc> stderr: playpen: application terminated abnormally with signal 31 (Bad system call) (https://carc.in/#/r/8xqk)
hutch has quit [Ping timeout: 256 seconds]
troulouliou_dev has quit [Ping timeout: 240 seconds]
<jhass> hah
<jhass> thiss is curious, no output as such on the site
<jhass> looks like I'm surpressing that one somehow 😅
<jhass> anyway, makes you wonder what kind of syscalls require "openssl" would do
troulouliou_dev has joined #ruby
<al2o3-cr> jhass: haha, didn't even think about this.
<jhass> sysinfo(2) apparently
<jhass> there you go
<jhass> now why openssl would need to know the current memory utilization 🤷‍♀️
aesthe has quit [Remote host closed the connection]
<jhass> oh, maybe for the uptime
<jhass> PRNG seeding, could make sense
<jhass> so what, it's a sandbox
<al2o3-cr> jhass: i mean on your system ;)
<jhass> it's a sandbox...
troulouliou_dev has quit [Ping timeout: 256 seconds]
<jhass> 26>> OpenSSSL::VERSION
davispuh has joined #ruby
<jhass> &26>> OpenSSSL::VERSION
<rubydoc> stderr: -e:4:in `<main>': uninitialized constant OpenSSSL (NameError)... check link for more (https://carc.in/#/r/8xqs)
<jhass> duh
<al2o3-cr> yup, for anyone else out there, update.
<jhass> &26>> require "openssl"; OpenSSSL::VERSION
<rubydoc> stderr: playpen: application terminated abnormally with signal 31 (Bad system call) (https://carc.in/#/r/8xqt)
<jhass> duh, yeah that makes sense :D
<al2o3-cr> :P
Cork has quit [Quit: .]
<jhass> &26>> require "openssl"; OpenSSSL::VERSION
<rubydoc> stderr: -e:4:in `<main>': uninitialized constant OpenSSSL (NameError)... check link for more (https://carc.in/#/r/8xqu)
<jhass> I'm sorry m(
<jhass> &26>> require "openssl"; OpenSSL::VERSION
<rubydoc> # => "2.1.2" (https://carc.in/#/r/8xqv)
<al2o3-cr> haha ;)
<jhass> jeez
<jhass> &26>> require "openssl"; OpenSSL::OPENSSL_VERSION
<rubydoc> # => "OpenSSL 1.1.1a 20 Nov 2018" (https://carc.in/#/r/8xqx)
<jhass> there, look
<jhass> even older
<jhass> why would I care about updating a sandbox :P
<al2o3-cr> don't forget to gem update openssl
<al2o3-cr> jhass: i get that it's sandboxed, the intent was to show if people are using an vulnerable version.
<al2o3-cr> should be fixed on most OS'es now.
<jhass> well I sure hope they don't deploy their apps to carc.in :D
<al2o3-cr> jhass: haha ;)
<al2o3-cr> anyway, update lastest openssl 1.1.1g and make sure ruby linked against the fixed version. gem update openssl.
Cork has joined #ruby
troulouliou_dev has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
ur5us has joined #ruby
<al2o3-cr> &>> require 'fiddle'; Fiddle::Function.new(Handle::DEFAULT["OpenSSL_version"], [Fiddle::TYPE_INT], Fiddle::TYPE_VOIDP).(0).to_s
<rubydoc> stderr: -e:4:in `<main>': uninitialized constant Handle (NameError)... check link for more (https://carc.in/#/r/8xqy)
<al2o3-cr> &>> require 'fiddle'; Fiddle::Function.new(Fiddle::Handle::DEFAULT["OpenSSL_version"], [Fiddle::TYPE_INT], Fiddle::TYPE_VOIDP).(0).to_s
<rubydoc> stderr: -e:4:in `[]': unknown symbol "OpenSSL_version" (Fiddle::DLError)... check link for more (https://carc.in/#/r/8xqz)
schne1der has joined #ruby
<al2o3-cr> &>> require 'fiddle'; Fiddle::Function.new(Fiddle::Handle::DEFAULT["SSLeay_version"], [Fiddle::TYPE_INT], Fiddle::TYPE_VOIDP).(0).to_s
<rubydoc> stderr: -e:4:in `[]': unknown symbol "SSLeay_version" (Fiddle::DLError)... check link for more (https://carc.in/#/r/8xr0)
<al2o3-cr> what's going on?
hiroaki has joined #ruby
<al2o3-cr> i'll stop polluting the feed.
cd has quit [Ping timeout: 256 seconds]
ur5us has quit [Ping timeout: 256 seconds]
burningserenity has quit [Ping timeout: 265 seconds]
burningserenity has joined #ruby
leitz has quit [Quit: Leaving]
burningserenity has quit [Ping timeout: 256 seconds]
leah2 has quit [Ping timeout: 265 seconds]
leah2 has joined #ruby
<al2o3-cr> i think apeiros has been taken off the channel access list due to freenode sweep.
<al2o3-cr> where has he dissapeared to?
hutch has joined #ruby
<al2o3-cr> he better of not gone to python undercover :P
roadie has quit [Ping timeout: 256 seconds]
ur5us has joined #ruby
brool has quit [Quit: WeeChat 2.8]
gray_-_wolf has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
sergioro has quit [Quit: Lost terminal]
gray_-_wolf has quit [Quit: WeeChat 2.8]
sergioro has joined #ruby
gray_-_wolf has joined #ruby
alfiemax has joined #ruby
gray_-_wolf has quit [Client Quit]
gray_-_wolf has joined #ruby
felix_221986 has joined #ruby
gray_-_wolf has quit [Client Quit]
gray_-_wolf has joined #ruby
alfiemax has quit [Ping timeout: 250 seconds]
gray_-_wolf has quit [Client Quit]
gray_-_wolf has joined #ruby
gray_-_wolf has quit [Client Quit]
greypack has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
greypack has joined #ruby
TCZ has joined #ruby
cnsvc has joined #ruby
chalkmonster has joined #ruby
rmnull has joined #ruby
rmnull has quit [Client Quit]
rmnull has joined #ruby
impermanence has quit [Quit: Connection closed]
rikkipitt has joined #ruby
m27frogy has quit [Read error: Connection reset by peer]
hiroaki has quit [Ping timeout: 256 seconds]
rmnull has quit [Quit: WeeChat 2.8]
cd has joined #ruby
roadie has joined #ruby
m27frogy has joined #ruby
barg has quit []
ur5us has quit [Ping timeout: 256 seconds]
roadie has quit [Ping timeout: 260 seconds]
duderono_ has quit [Read error: Connection reset by peer]
rikkipitt has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby
SeepingN has quit [Read error: Connection reset by peer]
rikkipitt has joined #ruby
SeepingN has joined #ruby
kaleido has quit [Quit: ZNC 1.7.4+deb7 - https://znc.in]
Cork has quit [Quit: .]
davor has quit [Quit: Bye]
Liothen has quit [Read error: Connection reset by peer]
linuus has quit [Quit: ZNC 1.7.2 - https://znc.in]
kaleido has joined #ruby
Liothen has joined #ruby
c0san0stra has quit [Ping timeout: 265 seconds]
davor has joined #ruby
linuus has joined #ruby
hramrach has quit [Ping timeout: 265 seconds]
felix_221986 has quit [Ping timeout: 265 seconds]
neot1 has quit [Ping timeout: 265 seconds]
Sp4rKy has quit [Ping timeout: 265 seconds]
Sp4rKy has joined #ruby
r3m has quit [Ping timeout: 265 seconds]
apoc has quit [Ping timeout: 265 seconds]
neot1 has joined #ruby
r3m has joined #ruby
rubydoc has quit [Ping timeout: 265 seconds]
Cork has joined #ruby
c0san0stra has joined #ruby
hramrach has joined #ruby
apoc has joined #ruby
cahoots has joined #ruby
<cahoots> hi, what's the nicest way to do a mapping on a hash's values, i.e. from k => v to k => f(v)
<cahoots> with the final result being a new hash
<jhass> &ri Hash#transform_values
<jhass> ah I cannot remember bot commands today
ur5us has joined #ruby
ritalinona has quit [Ping timeout: 240 seconds]
<jhass> no actually that should've worked 🤔
<jhass> well, whatever
<cahoots> jhass, ty
ritalinona has joined #ruby
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby
rikkipitt has quit [Read error: Connection reset by peer]
rikkipitt has joined #ruby
rikkipitt has quit [Remote host closed the connection]
rikkipitt has joined #ruby
rikkipitt has quit [Remote host closed the connection]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pixi__ has quit [Quit: Leaving]
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.8]
d3bug has quit [Quit: Connection closed for inactivity]
<deimos_> i think i'm not understanding something with sequel gem and postgres. I thought DB[:table2].import([:field2], DB[:table1].distinct(:field1)) equals "INSERT INTO table2 ("field2") SELECT DISTINCT field1 FROM table1" what am I missing?
<deimos_> the db returns an error, "Sequel::DatabaseError (PG::SyntaxError: ERROR: INSERT has more expressions than target columns)"
<deimos_> it appears Sequel puts a * in the DISTINCT statement
<deimos_> which causes all 30 columns of table1 to be returned
ellcs has quit [Ping timeout: 256 seconds]
<deimos_> the raw sql runs and completes fine without error
m27frogy has quit [Read error: Connection reset by peer]
TCZ has quit [Quit: Leaving]
cahoots has quit [Ping timeout: 265 seconds]
<deimos_> DB.run "raw sql here" just works too
rmnull has joined #ruby
cd has quit [Quit: cd]
schne1der has quit [Ping timeout: 258 seconds]
troulouliou_dev has quit [Quit: Leaving]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sergioro has quit [Quit: Lost terminal]
sergioro has joined #ruby
Xiti has joined #ruby
rmnull has quit [Ping timeout: 272 seconds]
drincruz has quit [Ping timeout: 240 seconds]
m27frogy has joined #ruby
Ai9zO5AP has quit [Ping timeout: 240 seconds]
alexherbo2 has quit [Remote host closed the connection]
<adam12> deimos_: Don't forget there's a #sequel channel too.
<adam12> deimos_: DB[:table1].distinct.select(:field1) will get you want you want if you're looking to use the Sequel builder syntax.
Ai9zO5AP has joined #ruby
m27frogy has quit [Read error: Connection reset by peer]
drincruz has joined #ruby