kristian_on_linu has quit [Remote host closed the connection]
duderonomy has joined #ruby
SuperLag has quit [Remote host closed the connection]
lbwski has joined #ruby
ChmEarl has quit [Quit: Leaving]
lbwski has quit [Ping timeout: 260 seconds]
jonhg has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jonhg has quit [Ping timeout: 245 seconds]
lbwski has joined #ruby
jenrzzz has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lbwski has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
cow[moo] has joined #ruby
ByronJohnson has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
lbwski has joined #ruby
langulo has joined #ruby
<langulo>
Hi, I haven't been on irc in decades
andremedeiros has quit [Read error: Connection reset by peer]
<langulo>
I found this channel via the official ruby page
trautwein has joined #ruby
andremedeiros has joined #ruby
ByronJohnson has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
trautwein has quit [Ping timeout: 246 seconds]
<mozzarella>
langulo: welcome back to irc
<langulo>
@mozzarella : thank you
<langulo>
I thought there was nobody actually here for awhile
<mozzarella>
I guess everyone is asleep
<langulo>
Or out. It's friday 9:18 pm where I am
<langulo>
anyway I came here because I've trying to run a project with an older version of ruby in it. Installing ruby and rails plus all dependencies on my OS proved to be a bit of a challenge
<langulo>
so from what I've read online I want to use some sort of ruby version managing tool, like rbenv or rvm
jenrzzz has joined #ruby
<langulo>
but I was wondering if there's a way to avoid doing that and just use an older ruby version
<langulo>
also wanted to ask if bundler refusing to install dependencies on a rails project because ruby version specified in the gemfile is 2.7.0 but mine is 2.7.2
<mozzarella>
that's fine if your program will be the only one using ruby, I guess
<langulo>
it does not make sense to me that there would be a problem with being versions ahead
lbwski has quit [Ping timeout: 260 seconds]
<langulo>
*wanted to ask if it's normal
<mozzarella>
what's the exact error message?
<langulo>
"Your Ruby version is 2.7.2, but your Gemfile specified 2.7.0"
<langulo>
that's what shows when I run bundle install within the project
<langulo>
I used rails new to create a dummy project to test if there was something wrong with ruby, rails, gem, etc. but nope, the project is created and run fine and I can hit it from localhost on firefox
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 276 seconds]
elcuervo has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jla has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jonhg has joined #ruby
jonhg has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
naftilos76 has joined #ruby
lbwski has joined #ruby
jenrzzz has joined #ruby
lbwski has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
lbwski has joined #ruby
romanlevin333236 has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
jetchisel has joined #ruby
lbwski has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
hiroaki_ has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
lbwski has joined #ruby
hiroaki_ has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
hiroaki_ has joined #ruby
lbwski has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
Emmanuel_Chanel has joined #ruby
nofxx__ has quit [Read error: Connection reset by peer]
nofxx__ has joined #ruby
jenrzzz has joined #ruby
jonhg has joined #ruby
lbwski has joined #ruby
jonhg has quit [Ping timeout: 245 seconds]
cd has quit [Quit: cd]
jenrzzz has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jetchisel has quit [Ping timeout: 260 seconds]
jetchisel has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
lbwski has quit [Ping timeout: 276 seconds]
ur5us_ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
Rudd0 has quit [Remote host closed the connection]
Rudd0 has joined #ruby
ur5us_ has quit [Ping timeout: 240 seconds]
AndreYuhai has joined #ruby
<AndreYuhai>
How can I make a thread pool with some object? For example a pool of threads with Mechanize agent. So I don't have to call Mechanize.new everytime
<AndreYuhai>
Not sure which library has that, if any
Rudd0 has quit [Ping timeout: 245 seconds]
Rudd0^ has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
<siery>
AndreYuhai: What do you mean by agent?
<AndreYuhai>
siery, oh just a Mechanize.new
jenrzzz has joined #ruby
<siery>
AndreYuhai: I have never written a thread pool in ruby so far, but I have to do it for my multichannel bot soon :). Anyways, I would not use a class for that but a static module that generates threads at the program start. Then maintain tasks execution assigned by something like `Mechanize.accept_task(method)`
akem is now known as ChewbakaJones
<AndreYuhai>
I think instead of threads I might as well use an http library that supports parallellism
Rudd0^ has quit [Ping timeout: 246 seconds]
<AndreYuhai>
I've just checked typhoeus but I couldn't configure it for Crawlera proxy
zacts has joined #ruby
zacts has quit [Client Quit]
<siery>
AndreYuhai: I just get curious how ruby does with vertical scaling. I will post my code when I'm done then
Rudd0 has joined #ruby
jonhg has joined #ruby
jonhg has quit [Ping timeout: 245 seconds]
al2o3-cr has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
Rounin has joined #ruby
jenrzzz has joined #ruby
<adam12>
AndreYuhai: Maybe one of the Async gems will help. But I’m not sure any of them will drive a real browser using CDP so beware if you need to scale to that type of integration (real browser).
lbwski has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
_whitelogger has joined #ruby
lbwski has quit [Ping timeout: 256 seconds]
shtirlic_ has quit [Quit: Lost terminal]
shtirlic has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
m27frogy has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
shtirlic has quit [Remote host closed the connection]
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
lbwski has quit [Ping timeout: 260 seconds]
dka has joined #ruby
matthewd has joined #ruby
yann-kaelig has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
lbwski has joined #ruby
Swyper has joined #ruby
lipoqil_ has quit [Quit: ZNC 1.6.5+deb1+deb9u2 - http://znc.in]
lipoqil has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
jonhg has joined #ruby
lbwski has quit [Ping timeout: 256 seconds]
jonhg has quit [Ping timeout: 245 seconds]
TCZ has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
gueorgui has quit [Ping timeout: 276 seconds]
TCZ has quit [Quit: Apophis sie oddala]
lbwski has joined #ruby
robotmay has quit [Quit: Be excellent to each other]
lbwski has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
<AndreYuhai>
I just need to make simple GET requests to an API
lbwski has joined #ruby
robotmay has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
<AndreYuhai>
When I use Typhoeus I can do 100 requests in 7 secs. That's still a lot of time. Not sure whether I can improve that. Also I don't know how the inner workings of Typhoeus is. Especially Typhoeus::Hydra. Will need to read the docs.
jenrzzz has joined #ruby
lbwski has quit [Ping timeout: 256 seconds]
postmodern has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 260 seconds]
<siery>
I have a weird bug, at appending content to the file, when file is not empty, my program is trailing some bytes from the top of the file. Any idea what can coas that?