havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.0-rc1, 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
dfucci has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
prion has quit [Ping timeout: 246 seconds]
dfucci has joined #ruby
prion has joined #ruby
jenrzzz has joined #ruby
ellcs has quit [Ping timeout: 268 seconds]
SuperLag has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 260 seconds]
grvgr has quit [Read error: Connection reset by peer]
en10n has quit [Ping timeout: 272 seconds]
ReinH__ has quit [Read error: Connection reset by peer]
proc has quit [Ping timeout: 264 seconds]
aphel has quit [Ping timeout: 264 seconds]
fowl has quit [Read error: Connection reset by peer]
jerme_ has quit [Read error: Connection reset by peer]
d0liver has quit [Read error: Connection reset by peer]
nickb has quit [Write error: Connection reset by peer]
dfucci has quit [Ping timeout: 260 seconds]
aphel has joined #ruby
proc has joined #ruby
grvgr has joined #ruby
fowl has joined #ruby
jerme_ has joined #ruby
d0liver has joined #ruby
en10n has joined #ruby
nickb has joined #ruby
ReinH__ has joined #ruby
TCZ has joined #ruby
bvdw has quit [*.net *.split]
sphex has quit [*.net *.split]
shaman42 has quit [*.net *.split]
thecoffemaker has quit [*.net *.split]
silviu has quit [*.net *.split]
e2 has quit [*.net *.split]
electrostat has quit [*.net *.split]
s_ has quit [*.net *.split]
Fridtjof has quit [*.net *.split]
Rounin has quit [*.net *.split]
axsuul has quit [*.net *.split]
madhatter has quit [*.net *.split]
kozowu has quit [*.net *.split]
kenichi has quit [*.net *.split]
cfjk has quit [*.net *.split]
lypsis has quit [*.net *.split]
sjums has quit [*.net *.split]
miah has quit [*.net *.split]
duderonomy has quit [Ping timeout: 246 seconds]
duderonomy has joined #ruby
dfucci has joined #ruby
aremaref has joined #ruby
aremaref has quit [Ping timeout: 264 seconds]
bvdw has joined #ruby
silviu has joined #ruby
shaman42 has joined #ruby
sphex has joined #ruby
thecoffemaker has joined #ruby
e2 has joined #ruby
electrostat has joined #ruby
Fridtjof has joined #ruby
s_ has joined #ruby
Rounin has joined #ruby
axsuul has joined #ruby
sjums has joined #ruby
kenichi has joined #ruby
madhatter has joined #ruby
kozowu has joined #ruby
cfjk has joined #ruby
miah has joined #ruby
lypsis has joined #ruby
bvdw has quit [Max SendQ exceeded]
bvdw has joined #ruby
orbyt_ has quit [Ping timeout: 264 seconds]
prion has quit [Ping timeout: 264 seconds]
duderonomy has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
dfucci has quit [Ping timeout: 264 seconds]
Azure has quit [Ping timeout: 260 seconds]
duderonomy has joined #ruby
dfucci has joined #ruby
gix- has quit [Ping timeout: 265 seconds]
chouhoulis has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
lucasb has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
dfucci has quit [Ping timeout: 256 seconds]
TCZ has quit [Quit: https://github.com/srgx]
dfucci has joined #ruby
Xiti` has quit [Ping timeout: 256 seconds]
adu has quit [Quit: adu]
Swyper_ has joined #ruby
sagax has joined #ruby
Swyper_ has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Xiti has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
dfucci has quit [Ping timeout: 272 seconds]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
NightMonkey has quit [Quit: ZNC - http://znc.in]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
chkilroy has quit [Ping timeout: 240 seconds]
pwnd_sfw7 has joined #ruby
NightMonkey has joined #ruby
Swyper has quit [Remote host closed the connection]
pwnd_sfw has quit [Read error: Connection reset by peer]
pwnd_sfw7 is now known as pwnd_sfw
Swyper has joined #ruby
ule has quit [Ping timeout: 256 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
dfucci has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
nofxx_ has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
nofxx_ has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
cliluw has quit [Ping timeout: 240 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
cliluw has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
pwnd_sfw has quit [Ping timeout: 265 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
burgestrand has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
burgestrand has quit [Client Quit]
Swyper has joined #ruby
moldorcoder7 has quit [Ping timeout: 264 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
pwnd_sfw has joined #ruby
prion has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
moldorcoder7 has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
cloud69 has quit [Quit: Connection closed for inactivity]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
chouhoulis has joined #ruby
dfucci has quit [Ping timeout: 240 seconds]
Swyper has joined #ruby
adu has joined #ruby
Swyper has quit [Ping timeout: 272 seconds]
chkilroy has joined #ruby
dfucci has joined #ruby
dfucci has quit [Ping timeout: 272 seconds]
chkilroy_ has joined #ruby
chkilroy has quit [Ping timeout: 264 seconds]
dfucci has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
prion has quit [Ping timeout: 240 seconds]
chkilroy_ has quit [Ping timeout: 260 seconds]
Tonker has joined #ruby
orbyt_ has joined #ruby
<Tonker> sup
<havenwood> Tonker: hi
<Tonker> I don't know much programming outside the very basics, but I do love the oldschool vide of IRC
<Tonker> vibe*
<havenwood> Tonker: Welcome to the #ruby channel!
<Tonker> ty :D
<Tonker> I chose Ruby simply because an old webscraper I found on GitHub was written in it
<Tonker> I had to do a little research to get it running on windows but it went alright. I even updated a few variables to suite my needs.
<havenwood> Tonker: Ruby works great on WSL2 too.
<Tonker> It def got me interested in web scraping, and Ruby seems really good at it
<Tonker> yeah, wsl2 is the ubuntu simulator sorta right? like having a unix system in your terminal
<Tonker> IIRC
<leftylink> I too, chose Ruby because a tool I wanted to use was written in it...
<havenwood> Tonker: Yeah, a nice Linux kernel setup.
<Tonker> ty for the links
<Tonker> if i remember right, the code was using nokogiri or something like that
<havenwood> Tonker: Mechanize maybe?
<havenwood> Tonker: It uses Nokogiri under the hood.
<Tonker> hold on, let me check it
<Tonker> the code has " require 'nokogiri' " in the top. Like I said, it was pretty much an old abandoned project that hadn't seen a update in years
<havenwood> Tonker: Ah, maybe it just used Nokogiri directly. Nokogiris is the most popular XML/HTML parser.
<Tonker> so i had to manually get optparse, nokogiri, open-uri, and uri if I remember right. It was a pain to figure it all out
<havenwood> mmm, yeah, that's a stdlib direction to go
dfucci has quit [Ping timeout: 260 seconds]
<Tonker> Suprisingly it all went smoothly after I updated the target url's. Although I can't figure out how to get the .sh file included in it to work nicely with windows
<Tonker> I worked around it tho, so no biggie
<Tonker> I might try and actually learn Ruby tho. For some reason, Python just bores the hell out of me haha
<Tonker> would you recommend I learn ruby for web scraping? I might need to look into whether beautiful soup or nokogiri is better
<havenwood> Tonker: Maybe JavaScript or TypeScript for headless scraping? Elixir for fault tolerant, parallel scraping? There are lots of other options. Ruby is very nice.
<havenwood> Tonker: It depends what you're scraping and why.
chkilroy has joined #ruby
burgestrand has joined #ruby
burgestrand has quit [Client Quit]
<Tonker> Basically, theres this guy named John McCrae whose written a couple Web Serials. That old web scraper I found converts it each page of the website into an html file. Then I use calibre in the cmd line to convert it.
donofrio has quit [Remote host closed the connection]
dfucci has joined #ruby
<Tonker> One of his web serials is on-going though. So if I want an updated version to put on my kindle, I gotta run the script again
<Tonker> He's also stated on his website that personal copies are OK, so long as I don't try and sell them, which I'm not. I just like reading on my kindle lol
<Tonker> I've heard web scraping can be uhh..ethically dubious, I guess?
Tonker has quit [Quit: Leaving]
Tonker has joined #ruby
nowhere_man has quit [Ping timeout: 272 seconds]
chouhoulis has quit [Remote host closed the connection]
burgestrand has joined #ruby
burgestrand has quit [Client Quit]
nofxx__ has joined #ruby
dfucci has quit [Ping timeout: 256 seconds]
nofxx_ has quit [Ping timeout: 240 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ChmEarl has quit [Quit: Leaving]
dfucci has joined #ruby
mich9x has joined #ruby
burgestrand has joined #ruby
burgestrand has quit [Client Quit]
mich9x has quit [Quit: mich9x]
dfucci has quit [Ping timeout: 260 seconds]
burgestrand has joined #ruby
burgestrand has quit [Client Quit]
fanta1 has joined #ruby
iNs has quit [Ping timeout: 240 seconds]
iNs has joined #ruby
dfucci has joined #ruby
dfucci has quit [Ping timeout: 256 seconds]
_whitelogger has joined #ruby
dfucci has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rudd0 has quit [Remote host closed the connection]
_whitelogger has joined #ruby
orbyt_ has joined #ruby
adu has quit [Quit: adu]
_whitelogger has joined #ruby
vondruch has joined #ruby
ur5us has joined #ruby
dfucci has quit [Read error: No route to host]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xiti has quit [Quit: Leaving]
zacts has joined #ruby
zacts has quit [Client Quit]
Xiti has joined #ruby
burgestrand has joined #ruby
prion has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
braincrash has joined #ruby
cuerbot has joined #ruby
ur5us has quit [Ping timeout: 268 seconds]
Technodrome has joined #ruby
elcuervo has quit [Ping timeout: 265 seconds]
jacksop has joined #ruby
Tonker has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
prion has quit [Ping timeout: 264 seconds]
Nilium has quit [Ping timeout: 256 seconds]
Emmanuel_Chanel has quit [Remote host closed the connection]
cd has quit [Quit: cd]
Nilium has joined #ruby
cognemo has quit [Quit: cognemo]
cognemo has joined #ruby
Rudd0 has joined #ruby
yxhuvud has quit [Read error: Connection reset by peer]
yxhuvud has joined #ruby
plant_enjoyer has joined #ruby
jacksop has quit [Remote host closed the connection]
jacksop has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
jacksop has quit [Ping timeout: 260 seconds]
DaRock has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
Matadoer has quit [Quit: ciao]
burgestrand has quit [Quit: burgestrand]
sleetdrop has joined #ruby
jenrzzz has joined #ruby
prion has joined #ruby
jacksop has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jacksop has quit [Remote host closed the connection]
jacksop has joined #ruby
<tempate> How exactly does Array#sum work?
<tempate> I thought it was just an alias for Array#map and reduce(:+)
cnsvc has quit [Ping timeout: 240 seconds]
burgestrand has joined #ruby
akem__ has joined #ruby
akem_ has quit [Ping timeout: 264 seconds]
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
blackmesa has joined #ruby
blackmesa has quit [Client Quit]
<leftylink> hmm... well, I would say I cannot find a time where it would be functionally different. but if the question was instead more along the lines of how it'd be implemented under the hood... the links provided by &ri have an Expand source button. it's usually C, not sure how many insight it's possible to glean
dfucci has joined #ruby
<leftylink> hmm... hashes auto-freeze their string keys. wonder if sets do the same
<leftylink> no sir they do not
<leftylink> oh wait they do
<leftylink> I think they duped it first which is why I couldn't tell!
al2o3-cr has joined #ruby
weaksauce has quit [Ping timeout: 256 seconds]
<tempate> Hmmm
<tempate> I was asking because yesterday I had problems using Array#sum for lists, but managed to solve it by using map and reduce(:+)
jacksop has quit []
phaul has quit [Ping timeout: 256 seconds]
rubydoc has quit [Ping timeout: 246 seconds]
rubydoc has joined #ruby
phaul has joined #ruby
jenrzzz has joined #ruby
Nahra has joined #ruby
nowhere_man has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
rubydoc has quit [Ping timeout: 240 seconds]
phaul has quit [Ping timeout: 260 seconds]
rubydoc has joined #ruby
phaul has joined #ruby
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akem__ is now known as akem
burgestrand has quit [Quit: burgestrand]
dfucci has quit [Ping timeout: 260 seconds]
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
sh7d has quit [Quit: meh]
burgestrand has joined #ruby
plant_enjoyer has quit [Quit: Leaving]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
braincrash has quit [Ping timeout: 260 seconds]
burgestrand has quit [Quit: burgestrand]
rubydoc has quit [Ping timeout: 246 seconds]
phaul has quit [Ping timeout: 256 seconds]
dfucci has joined #ruby
dfucci has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
hiroaki has quit [Ping timeout: 256 seconds]
rubydoc has joined #ruby
phaul has joined #ruby
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
dfucci has joined #ruby
braincrash has joined #ruby
Swyper has joined #ruby
<akem> Hey, any idea why ENV.inspect does not include $COLUMNS and $LINES (terminal screen size)?
dfucci has quit [Ping timeout: 260 seconds]
hiroaki has joined #ruby
TCZ has joined #ruby
al2o3-cr has joined #ruby
Swyper has quit [Ping timeout: 260 seconds]
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
jenrzzz has joined #ruby
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
cloud69 has joined #ruby
somazero has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
nowhere_man has quit [Ping timeout: 258 seconds]
braincrash has quit [Ping timeout: 240 seconds]
impermanence has joined #ruby
nowhere_man has joined #ruby
akem has quit [Ping timeout: 246 seconds]
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
bkuhlmann has joined #ruby
Emmanuel_Chanel has joined #ruby
waqstar has joined #ruby
<waqstar> Hi
<adam12> waqstar: hello
<waqstar> How do I install development tools for Windows? I have something called td-agent (fluentd) installed - but when I try and install a plugin I need via gem it asks me to install "development tools"
<adam12> waqstar: For Windows, they would likely come with the Ruby installer you used (vs Linux where you'd install them through it's package manager). How did you install Ruby?
<waqstar> One sec, let me get the full method I used. (it does it via ansible and was a while ago)
<waqstar> I dont install ruby myself - i install td-agent and it comes with it :)
<adam12> waqstar: What plugin are you installing?
<waqstar> Plugin is called fluent-plugin-cloudwatch-logs
<waqstar> I ran gem install fluent-plugin-cloudwatch-logs
<waqstar> I hate windows
<adam12> waqstar: They use `fluent-gem`. Is that the one you tried?
<waqstar> 1 sec let me try that
<waqstar> To see why this extension failed to compile, please check the mkmf.log which can be found here:
<waqstar> C:/opt/td-agent/embedded/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/certstore_c-0.1.7/mkmf.log
<waqstar> adam12: Same error - Full error is: "You have to install development tools first"
<waqstar> ^ Sorry about above - i meant to paste that below on one line
CrazyEdd has joined #ruby
<adam12> waqstar: is td-agent-gem a thing? Can you try running it? I'm not sure if it will help.
<adam12> I suspect you'll have to talk to Fluentd about this, since I'm not sure how they package Ruby. Ruby + Windows is somewhat weird, because AFAIK Windows never shipped a compiler out of the box like Linux always has. So the way you install Ruby on Windows generally includes a compiler of some sort.
<adam12> Actually for good measure, can you open C:/opt/td-agent/embedded/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/certstore_c-0.1.7/mkmf.log and paste the output into something like dpaste.org? I wonder what the error actually is.
<waqstar> I found a file called td-agent-gem - however it has "#!bin/sh" at the start so I am guessing its not a windows executeable file right?
<adam12> waqstar: Likely not. Was just curious.
<waqstar> Ok mate - 1 sec
<adam12> You're running an up to date version of fluentd?
<waqstar> Here is the paste of that file: https://dpaste.org/kO1q
TCZ has quit [Quit: https://github.com/srgx]
<waqstar> Ill check the version
<waqstar> This is the one I have: td-agent-3.3.0-1-x64.msi
<waqstar> Do you think I should upgrade?
<adam12> I'd probably try upgrading; and if that fails, maybe raise a bug report with fluentd (or the plugin).
<adam12> You are a few versions behind.
<waqstar> Ok sweet. I am reading this first https://docs.fluentd.org/quickstart/td-agent-v2-vs-v3-vs-v4 - then I will upgrade
<adam12> waqstar: good luck!
<waqstar> Ahh I am on old stable. Good shout, Ill upgrade now :) - no idea how this will go with windows :D
<adam12> waqstar: Hah. No idea. I run Windows as a dev machine but only because of WSL2 :P
Swyper has joined #ruby
<adam12> I die everytime I need to do anything outside of it.
<waqstar> :)
dionysus69 has joined #ruby
<dionysus69> Hey all, I suddenly started getting this weird error while installing pg gem with ruby 2.7.2 with a clean ubuntu install https://paste.ubuntu.com/p/BKTVvdkJt6/
<adam12> dionysus69: `echo $CC` from shell.
<dionysus69> it's clear
<dionysus69> blank*
<adam12> `which gcc` ?
<dionysus69> current directory: /home/devops/.rvm/gems/ruby-2.7.2/gems/pg-1.2.3/ext
<dionysus69> /home/devops/.rvm/rubies/ruby-2.7.2/bin/ruby -I /home/devops/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0 -r ./siteconf20201221-1422-19eo7no.rb extconf.rb
<dionysus69> checking for pg_config... yes
dionysus69 has quit [Excess Flood]
<dionysus69> Using config values from /usr/bin/pg_config
<dionysus69> checking for libpq-fe.h... *** extconf.rb failed ***
dionysus69 has joined #ruby
<dionysus69> lol I pasted wrong thing
<dionysus69> meant to paste this /usr/bin/gcc
<adam12> Weird.
<dionysus69> do you suggest I try with lower ruby version, to exclude version conflict?
<dionysus69> because this is the first time I am getting such error on clean debian/ubuntu system
<adam12> Try 2.7.1. You just reminded me of an issue that I read last week.
<dionysus69> ok will try in a second
<adam12> https://bugs.ruby-lang.org/issues/17337 is the bug report, but it's kind of opaque.
<dionysus69> adam12: yep, 2.7.1 worked
<adam12> dionysus69: Since you are using rvm, any idea if 2.7.2 was a binary install or source install?
<dionysus69> 2.7.1 installed in 5-10 seconds which means it just downloaded binary
<dionysus69> let me try reinstalling 2.7.2 to see
<dionysus69> I installed it using automated script so I am not sure
chouhoulis has joined #ruby
bruce_lee has joined #ruby
<dionysus69> adam12: according to logs it was not compiled locally
<adam12> dionysus69: afk for a minute.
chouhoulis has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
<adam12> dionysus69: sounds like a bad version of 2.7.2. could try compiling from source.
<dionysus69> how though, all I ever did with rvm was just rvm install 2.7.2 or any other version
<dionysus69> is there an rvm flag that force compiles?
<adam12> dionysus69: See bug I linked. Might be related.
<adam12> afk
<dionysus69> yea I read the first couple lines and it could be related, strong possiblity
akem has joined #ruby
Swyper has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 246 seconds]
Technodrome has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
akem has quit [Ping timeout: 256 seconds]
Emmanuel_Chanel has quit [Quit: Leaving]
<waqstar> adam12: So just to update you on this - I tried to install version 4 but the installer reported a "problem", with no details. So I went to the latest release in the 3x section and I was able to install it and then also download the cloudwatch plugin :D thank you!
<cloud69> how about a *song possibility*
<cloud69> lol i just thought of that joke
Swyper has joined #ruby
<adam12> waqstar: great!
<cloud69> though u meant my joke. sorry didnt mean to interject, im drunk grooving to Dagny - Somebody (Official Music Video) - https://www.youtube.com/watch?v=qO-U2WlgroQ with the sound turned off, and Slum Village- Look of Love Remix (Instrumental) - https://www.youtube.com/watch?v=lGjXg0BRsKk on instead
<cloud69> im gonna go, merry xmas y'all!
HeavenDestroyer has joined #ruby
Swyper has quit [Ping timeout: 260 seconds]
Emmanuel_Chanel has joined #ruby
woodruffw has quit [Ping timeout: 240 seconds]
DaRock has quit [Ping timeout: 260 seconds]
somazero has quit [Remote host closed the connection]
HeavenDestroyer has quit [Quit: leaving]
bvdw has quit [Quit: The Lounge - https://thelounge.chat]
ChmEarl has joined #ruby
<adam12> dionysus69: I don't use rvm so I'm not sure to be honest. But the fact that CC is empty makes me suspicious of that bug.
<adam12> dionysus69: You might be able to confirm by loading up 2.7.2 irb, require "rbconfig", then poke around RbConfig.
<dionysus69> adam12: yea I added the comment to that bug and added logs, hope it will be useful
bvdw has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 256 seconds]
<adam12> cloud69: laters!
<adam12> dionysus69: nice.
<dionysus69> it's weird, now I retried same thing and it still doesnt work with 2.7.1
GGMethos has quit [Ping timeout: 268 seconds]
GGMethos has joined #ruby
dfucci has joined #ruby
Eiam has joined #ruby
stryek has joined #ruby
dfucci has quit [Ping timeout: 240 seconds]
dfucci has joined #ruby
howdoi has joined #ruby
dfucci has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
Swyper has joined #ruby
HeavenDestroyer has joined #ruby
lucasb has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
hiroaki has quit [Ping timeout: 256 seconds]
<Eiam> okay thats new, % source ~/.zshrc zsh: command not found: rbenv rehash. Google seems to feel its related to Fish, but no fish here. Oddly, no ~/.rbenv/bin/ folder either. Related to trying to force arm64 variants via homebrew perhaps
<Eiam> ~/.rbenv/shims right there in the ole path
hsmath has left #ruby [#ruby]
gr33n7007h has joined #ruby
dfucci has joined #ruby
mozzarella has quit [Remote host closed the connection]
mozzarella has joined #ruby
al2o3-cr has quit [Disconnected by services]
gr33n7007h is now known as al2o3-cr
al2o3-cr-tmp has joined #ruby
dfucci has quit [Ping timeout: 260 seconds]
hiroaki has joined #ruby
dfucci has joined #ruby
jeromelanteri has joined #ruby
AnomalyXII has joined #ruby
al2o3-cr-tmp has quit [Ping timeout: 256 seconds]
SanguineAnomaly has quit [Ping timeout: 258 seconds]
akem has joined #ruby
probonic08 has joined #ruby
edwardly has quit [Ping timeout: 246 seconds]
Sp4rKy has quit [Ping timeout: 264 seconds]
blender has quit [Ping timeout: 246 seconds]
probonic0 has quit [Ping timeout: 246 seconds]
Sp4rKy has joined #ruby
<akem> Hey, i got a little issue with this code snippet: https://gist.github.com/akem3210/c40479d9a9fc567f2327fa5d1f1a1a05 It's a Timeout:: over a STDIN.getch, it throws me a Timeout::Error, but does not enter the associated block, any idea?
adam12 has quit [Read error: Connection reset by peer]
KramerC has quit [Ping timeout: 264 seconds]
zxq2 has quit [Ping timeout: 264 seconds]
KramerC_ has joined #ruby
adam12 has joined #ruby
KramerC_ is now known as KramerC
blender has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
<Eiam> does it enter the Exception?
dionysus69 has quit [Ping timeout: 260 seconds]
<akem> Eiam, No: ./test_timeout.rb:7:in `getc': execution expired (Timeout::Error)
<akem> But i don't see my messages that i print in the rescue Timeout::Error
<akem> I just see the trace.
<Eiam> i feel like this has something to do with how termios is implemented
<Eiam> I'd be surprised if the error returned from STDIN.getch is being mapped into Timeout::Error exception
<Eiam> but I'm flexing my ruby brain for the first time in two years ago
<Eiam> so
jenrzzz has joined #ruby
KramerC has quit [Remote host closed the connection]
KramerC has joined #ruby
<akem> Eiam, The timeout execution expired works fine, however the corresponding block is like ignored.
jenrzzz has quit [Ping timeout: 265 seconds]
<akem> Anyway thanks for the link Eiam.
<al2o3-cr> akem: try passing Timeout::Error explicitly as the second argument.
vondruch has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
coniptor has quit [Read error: Connection reset by peer]
orbyt_ has joined #ruby
cliluw has quit [Ping timeout: 260 seconds]
Swyper has quit [Remote host closed the connection]
<Eiam> well, ruby 2.7.2 arm64-darwin20 crashes immediately thats fun
ricer2 has joined #ruby
<Eiam> is there an easy way to override what rbenv builds as the architecture? I'm going to need it to build x86_64 instead of arm64
<Eiam> guess ill just try arch and see if it picks up properly
<leah2> > Pasting long code to IRB is 53 times faster than bundled with Ruby 2.7.0.
<leah2> abut time :p
coniptor has joined #ruby
ule has joined #ruby
ule has quit [Changing host]
ule has joined #ruby
waqstar has quit []
cloud69 has quit [Quit: Connection closed for inactivity]
cd has joined #ruby
hiroaki has quit [Ping timeout: 264 seconds]
nowz has quit [Quit: WeeChat 2.8]
jinie has quit [Ping timeout: 272 seconds]
jinie has joined #ruby
akem has quit [Ping timeout: 240 seconds]
hiroaki has joined #ruby
Nahra has quit [Ping timeout: 265 seconds]
Nahra has joined #ruby
woodruffw has joined #ruby
woodruffw has joined #ruby
dionysus69 has quit [Quit: dionysus69]
jenrzzz has joined #ruby
<Eiam> Why isn't initialize inside the self of a class given its a class method right? no instance exists
jenrzzz has quit [Ping timeout: 264 seconds]
<leah2> initialize is an instance method
<leah2> the empty instance is created by allocate
ur5us has joined #ruby
<Eiam> ah, new creates it first, then init acts on it, righto
gix has joined #ruby
va5c0 has joined #ruby
Nahra has quit [Quit: leaving]
<tempate> Hello. I'm having trouble running this (https://github.com/Tempate/Advent-of-Code-2020/blob/master/day19/main.rb) file. It says that Chain and OrChain do not exist, despite importing them correctly, or so I think.
<tempate> It's weird because https://github.com/Tempate/Advent-of-Code-2020/blob/master/day20/main.rb works flawlessly, despite following what I think is the same logic. What am I missing here?
jenrzzz has joined #ruby
<tempate> I realized what the problem was as soon as I finished typing the question. I'd forgotten to call .new.
ricer2 has quit [Quit: Caught SystemExit exception.]
jenrzzz has quit [Ping timeout: 264 seconds]
va5c0 has quit [Ping timeout: 246 seconds]
braincrash has joined #ruby
va5c0 has joined #ruby
jenrzzz has joined #ruby
ricer2 has joined #ruby
Tempesta has quit [Quit: See ya!]
ricer2 has quit [Quit: Caught SystemExit exception.]
orbyt_ has quit [Ping timeout: 272 seconds]
elcuervo has joined #ruby
prion has quit [Ping timeout: 240 seconds]
cuerbot has quit [Ping timeout: 260 seconds]
ttoocs has joined #ruby
zacts has joined #ruby
cnsvc has joined #ruby
weaksauce has joined #ruby
dfucci has quit [Ping timeout: 264 seconds]
kevinsjoberg has quit [Ping timeout: 244 seconds]
peteretep has quit [Ping timeout: 244 seconds]
<Eiam> Does popping into Kernel somehow change my namespacing? https://gist.github.com/Eiam8821/e05a4f41631d35bda06dea429abd07e6
peteretep has joined #ruby
kevinsjoberg has joined #ruby
<Eiam> if I manually copy and paste lines 7-9 into pry, they work fine (item is resolved)
<Eiam> but when its called via line 13 in the script, it cannot find item. doesn't make a lot of sense
<leah2> you cant access outer local variables inside def
<Eiam> its at the base level of the script, that should be 'globally' available
<Eiam> is that some new behavior change?
Swyper has joined #ruby
<Eiam> feels like I do this all the time so confusing but ok Im wrong
Tempesta has joined #ruby
<tempate> Say a class B inherits from class A. Will B b = B.new(); b.is_a? A be true or false?
cnsvc has quit [Ping timeout: 240 seconds]
<leftylink> it should be pretty easy to check that in irb yeah?
<havenwood> tempate: Yes, it is an A.
<havenwood> tempate: It isn't an instance of A.
<tempate> havenwood: Fantastic
<havenwood> tempate: b.instance_of?(A) #=> false
<havenwood> tempate: b.kind_of?(A) #=> false
<havenwood> tempate: b.kind_of?(A) #=> true # I mean >.>
<havenwood> &>> class A; end; class B < A; end; B.new.is_a? A
<rubydoc> stderr: playpen: timeout triggered! (https://carc.in/#/r/a5mj)
<havenwood> &>> class A; end; class B < A; end; B.new.kind_of? A
<rubydoc> stderr: playpen: timeout triggered! (https://carc.in/#/r/a5mk)
<leftylink> fun fact, only recently (maybe a month ago) did I understand why kind_of? is called kind_of?
<tempate> I'm facing some issues with these pair of classes: https://github.com/Tempate/Advent-of-Code-2020/blob/master/day19/chains.rb
<havenwood> tempate: +1 what leftylink said. Great to try in IRB.
<havenwood> ?irb tempate
<ruby[bot]> tempate: irb is "interactive ruby", it is part of ruby. You can run ruby code and see results immediately. it's useful for testing code. Also see ?pry, a gem which is a popular alternative to irb.
<havenwood> ?pry
<ruby[bot]> Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (http://pry.github.io/): gem install pry pry-doc
<tempate> When calling a Chain's to_s it's not recursively calling its OrChain's to_s, making the output hideous
<havenwood> tempate: Consider using `.digits.reverse` https://github.com/Tempate/Advent-of-Code-2020/blob/master/day19/chains.rb#L5
russt_ has quit [Quit: That's all, folks!]
<havenwood> tempate: Omit empty parens in Ruby.
russt has joined #ruby
<tempate> havenwood: noted and noted
russt has quit [Client Quit]
<havenwood> tempate: You can skip this one, since it''ll already fall through to a falsey `nil`.
russt has joined #ruby
<leah2> TIL digits
<havenwood> &>> 1234.digits
<rubydoc> # => [4, 3, 2, 1] (https://carc.in/#/r/a5mm)
<tempate> havenwood: is that last link correct?
<havenwood> Elixir then later added an Integer.undigits/1.
<tempate> I guess you mean L41
<havenwood> tempate: 43, 54
<havenwood> tempate: Indent with two spaces, not three or a tab.
<havenwood> tempate: Two-spaced, soft tabs.
<tempate> havenwood: I have four spaces now, don't I?
<apotheon> Two is idiomatic for Ruby.
<havenwood> tempate: Looked like three to me, but two is correct.
<tempate> noted again
cacheerror has joined #ruby
va5c0 has quit [Ping timeout: 264 seconds]
<havenwood> ?tabs
<ruby[bot]> Ruby community standards recommend using 2 spaces as indentation (see https://github.com/bbatsov/ruby-style-guide#spaces-indentation and https://ukupat.github.io/tabs-or-spaces/).
<tempate> havenwood: I guess the issue comes from OrChain inheriting from Chain itself
<tempate> havenwood: so OrChain's to_s isn't defined when Chain's to_s is
<havenwood> tempate: Yeah, you have four. I dunno why I saw three?
<tempate> havenwood: not sure; I'll use 2 from now on.
dfucci has joined #ruby
<havenwood> My counting ability falls off after two.
<havenwood> Falls off sharply.
<tempate> heh
<tempate> So what can I do to fix it?
<Eiam> pry remains my favorite thing in ruby, its the first thing I install after building ruby
<Eiam> (spoiler: I spend more time figuring out why my code doesn't work than I do writing actual code so lotta time in pry....)
<havenwood> Eiam: IRB has surely inched towards it, with binding.irb and syntax highlighting, but <3 Pry for sure.
<leftylink> need minimal reproduction. not motivated to trace through everything to figure out
<leftylink> I will provide a minimal working example as well
<leftylink> &>> class A def initialize(x = []); @x = x end; def to_s; "a#{@x.map(&:to_s)}" end end; class B
<leftylink> errr
<rubydoc> stderr: -e:6: syntax error, unexpected end-of-input, expecting `end'... check link for more (https://carc.in/#/r/a5mn)
<leftylink> that is not complte
<havenwood> Or a minimal failing example works too.
<leftylink> &>> class A def initialize(x = []); @x = x end; def to_s; "a#{@x.map(&:to_s)}" end end; class B < A; def to_s; ?b end end; puts A.new([A.new, B.new]).to_s
<rubydoc> # => a["a[]", "b"]... check link for more (https://carc.in/#/r/a5mo)
<havenwood> Minimal is the key.
<leftylink> overriding to_s worked there.
<tempate> What does ?b mean?
<leftylink> "b"
<tempate> oh
jenrzzz has quit [Ping timeout: 246 seconds]
<tempate> Hmmm
<tempate> No idea why mine is not working then
dfucci has quit [Ping timeout: 246 seconds]
astronavt has quit [Remote host closed the connection]
astronavt has joined #ruby
hramrach has quit [Ping timeout: 240 seconds]
hramrach has joined #ruby
Xiti has quit [Quit: Leaving]
SuperLag has joined #ruby
Xiti has joined #ruby
spacesuitdiver has joined #ruby
akem has joined #ruby
<akem> I got something very strange with a simple line of code in terminal mode >>> require 'io/console'; while true do c = STDIN.getch end
<akem> If i press lots of times on various keys especially the number/lines on top(french accent here) it prints some characters in my terminal.
<akem> Any idea about this issue? My terminal is urxvt.
dfucci has joined #ruby
<akem> I have this bug in real terminal mode too. Ubuntu 18.04.
<akem> This should never be able to display any character, so...What's going on?
akem has quit [Quit: Leaving]
bkuhlmann has quit []
dfucci has quit [Ping timeout: 256 seconds]
dfucci has joined #ruby
cliluw has joined #ruby
dfucci has quit [Ping timeout: 258 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
va5c0 has joined #ruby
TCZ has joined #ruby
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has joined #ruby
r3my has quit [Ping timeout: 244 seconds]
kevinsjoberg has quit [Ping timeout: 268 seconds]
afisher has quit [Ping timeout: 264 seconds]
kozowu has quit [Ping timeout: 260 seconds]
Lewix_ has quit [Ping timeout: 260 seconds]
Lewix has quit [Ping timeout: 260 seconds]
ec has quit [Ping timeout: 264 seconds]
englishm has quit [Ping timeout: 264 seconds]
manveru has quit [Ping timeout: 264 seconds]
jhill has quit [Ping timeout: 246 seconds]
stryek has quit [Ping timeout: 260 seconds]
dputtick has quit [Ping timeout: 260 seconds]
chromis has quit [Ping timeout: 264 seconds]
clinth has quit [Ping timeout: 264 seconds]
CustosLimen has quit [Ping timeout: 272 seconds]
ttoocs has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
Mia has quit [Read error: Connection reset by peer]
cnsvc has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
oneeggeach has joined #ruby
oneeggeach has quit [Client Quit]
FrankyCyborg has quit [Quit: The Sleep Monster got me!]
weaksauce has joined #ruby
jenrzzz has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
siaw23 has joined #ruby
<siaw23> hi all. does anyone know for certain if Ruby 3 will be release on 25.12.2020?
jenrzzz has quit [Ping timeout: 246 seconds]