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!
greypack_1 has quit [Ping timeout: 258 seconds]
m27frogy has joined #ruby
greypack has joined #ruby
<havenwood> siery: Do you want to hack around with that hint, or just want the solution? :P
<havenwood> siery: AFK, but check my gists for spoiler cURL and Ruby code.
drincruz has quit [Ping timeout: 256 seconds]
drincruz has joined #ruby
<siery> havenwood: I will try to get it, what's your github name?
greypack has quit [Quit: All your IRC are belong to ZNC]
sarmiena_ has quit [Remote host closed the connection]
darkstardev13 has quit [Remote host closed the connection]
darkstardev13 has joined #ruby
greypack has joined #ruby
jinmiaol1 has joined #ruby
<havenwood> siery: havenwood
<siery> havenwood: Thank you ^^
<havenwood> siery: You're welcome
inanepenguin has quit [Quit: inanepenguin]
_whitelogger has joined #ruby
braj has joined #ruby
jinmiaol1 has quit [Remote host closed the connection]
bruce_lee has quit [Ping timeout: 260 seconds]
kristian_on_linu has quit [Remote host closed the connection]
kinduff has quit [Read error: Connection reset by peer]
rcvalle_ has quit [Ping timeout: 244 seconds]
kinduff has joined #ruby
ur5us_ has quit [Ping timeout: 244 seconds]
drincruz has quit [Ping timeout: 256 seconds]
oneeggeach has joined #ruby
jingjinghack has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
jinmiaol1 has joined #ruby
oneeggeach has quit [Remote host closed the connection]
oneeggeach has joined #ruby
oneeggeach has quit [Remote host closed the connection]
oneeggeach has joined #ruby
oneeggeach has quit [Remote host closed the connection]
oneeggeach has joined #ruby
oneeggeach has quit [Remote host closed the connection]
oneeggeach has joined #ruby
oneeggeach has quit [Remote host closed the connection]
oneeggeach has joined #ruby
fratis has joined #ruby
oneeggeach has quit [Remote host closed the connection]
jingjing1 has joined #ruby
jingjinghack has quit [Ping timeout: 264 seconds]
fratis has quit [Remote host closed the connection]
ur5us_ has joined #ruby
_whitelogger has joined #ruby
gix has quit [Ping timeout: 272 seconds]
dviola has quit [Quit: WeeChat 2.8]
_whitelogger has joined #ruby
shakes has joined #ruby
inanepenguin has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
howdoi has quit [Quit: Connection closed for inactivity]
jetchisel has quit [Ping timeout: 258 seconds]
shakes has quit [Quit: Leaving]
jetchisel has joined #ruby
cow[moo] has quit [Ping timeout: 256 seconds]
rcvalle_ has joined #ruby
bandithijo has joined #ruby
ChmEarl has quit [Quit: Leaving]
crankharder has quit [Ping timeout: 258 seconds]
greypack has quit [Ping timeout: 256 seconds]
inanepenguin has quit [Quit: inanepenguin]
greypack has joined #ruby
bruce_lee has joined #ruby
ur5us_ has quit [Ping timeout: 260 seconds]
sauvin has joined #ruby
crankharder has joined #ruby
dfucci has quit [Ping timeout: 256 seconds]
greypack_1 has joined #ruby
greypack has quit [Read error: Connection reset by peer]
Archenoth has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
jinmiaol1 has quit [Ping timeout: 265 seconds]
pwl has joined #ruby
braj has quit []
jinmiaol1 has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 265 seconds]
Emmanuel_Chanel has joined #ruby
burgestrand has joined #ruby
chouhoulis has quit [Remote host closed the connection]
burgestrand has quit [Quit: burgestrand]
bandithijo has quit [Quit: WeeChat 2.8]
bandithijo has joined #ruby
bandithijo has quit [Quit: WeeChat 2.8]
bandithijo has joined #ruby
ged has quit [Ping timeout: 260 seconds]
ged_ has joined #ruby
ged_ is now known as ged
DTZUZU has quit [Ping timeout: 260 seconds]
ua has quit [Ping timeout: 240 seconds]
schne1der has joined #ruby
alexherbo2 has joined #ruby
code_zombie has quit [Quit: Leaving]
ldepandis has joined #ruby
ua has joined #ruby
bandithijo has quit [Quit: WeeChat 2.8]
bandithijo has joined #ruby
yxhuvud has quit [Remote host closed the connection]
bandithijo has quit [Quit: WeeChat 2.8]
bandithijo has joined #ruby
TomyWork has joined #ruby
vondruch has joined #ruby
yxhuvud has joined #ruby
<jhass> siery: please always include html_link in the output <3
<jhass> eh, html_url
<jhass> havenwood: that eval seems a little bit of a terrible example :D
chalkmonster has joined #ruby
jetchisel has quit [Ping timeout: 258 seconds]
trautwein has joined #ruby
kristian_on_linu has joined #ruby
trautwein has quit [Client Quit]
trautwein has joined #ruby
trautwein has quit [Client Quit]
va5c0 has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.8]
alexherbo22 has joined #ruby
alexherbo2 has quit [Ping timeout: 265 seconds]
alexherbo22 is now known as alexherbo2
jetchisel has joined #ruby
trautwein has joined #ruby
trautwein has quit [Quit: WeeChat 2.8]
trautwein has joined #ruby
bandithijo has quit [Quit: WeeChat 2.8]
vqrs has quit [Ping timeout: 260 seconds]
bandithijo has joined #ruby
bandithijo has quit [Client Quit]
grimgnr has joined #ruby
cnsvc has joined #ruby
vqrs has joined #ruby
bandithijo has joined #ruby
bandithijo has quit [Client Quit]
bandithijo has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
darkstardev13 has quit [Ping timeout: 272 seconds]
<al2o3-cr> looks like real keyword args have been postponed for ruby 3 https://discuss.rubyonrails.org/t/new-2-7-3-0-keyword-argument-pain-point/74980
ur5us_ has joined #ruby
jinmiaol1 has quit [Ping timeout: 258 seconds]
infinityfye has joined #ruby
jinmiaol1 has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.8]
al2o3-cr has joined #ruby
b10n1k has joined #ruby
alexherbo21 has joined #ruby
alexherbo2 has quit [Ping timeout: 256 seconds]
alexherbo21 is now known as alexherbo2
ur5us_ has quit [Ping timeout: 265 seconds]
infinityfye has quit [Ping timeout: 265 seconds]
imode has quit [Ping timeout: 246 seconds]
kristian_on_linu has quit [Remote host closed the connection]
bandithijo has quit [Quit: WeeChat 2.8]
infinityfye has joined #ruby
darkstardev13 has joined #ruby
jingjing1 has quit [Quit: WeeChat 2.1]
DTZUZU has joined #ruby
darkstardev13 has quit [Remote host closed the connection]
conta has joined #ruby
jinmiaol1 has quit [Ping timeout: 256 seconds]
darkstardev13 has joined #ruby
conta has quit [Ping timeout: 256 seconds]
conta has joined #ruby
oneeggeach has joined #ruby
TCZ has joined #ruby
darkstardev13 has quit [Ping timeout: 258 seconds]
drincruz has joined #ruby
DTZUZU has quit [Ping timeout: 256 seconds]
chalkmonster has joined #ruby
DTZUZU has joined #ruby
oneeggeach has quit [Quit: Leaving...]
leitz has joined #ruby
drincruz has quit [Ping timeout: 256 seconds]
jacksop has joined #ruby
jacksop has quit [Client Quit]
brendan- has joined #ruby
drincruz has joined #ruby
nowhere_man has joined #ruby
va5c0_ has joined #ruby
va5c0 has quit [Ping timeout: 265 seconds]
TCZ has quit [Quit: Leaving]
crankharder has quit [Ping timeout: 272 seconds]
troulouliou_div2 has joined #ruby
va5c0 has joined #ruby
va5c0_ has quit [Ping timeout: 272 seconds]
burgestrand has joined #ruby
crankharder has joined #ruby
trautwein has quit [Ping timeout: 260 seconds]
trautwein has joined #ruby
jingjinghack has joined #ruby
va5c0_ has joined #ruby
va5c0 has quit [Ping timeout: 256 seconds]
RiPuk has quit [Ping timeout: 256 seconds]
va5c0 has joined #ruby
grimgnr has quit [Ping timeout: 264 seconds]
va5c0_ has quit [Ping timeout: 246 seconds]
RiPuk has joined #ruby
<havenwood> jhass: ;)
RiPuk has quit [Read error: Connection reset by peer]
bodqhrohro has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
<adam12> al2o3-cr: Not sure what to make of that just yet.
pwnd__ has joined #ruby
pwnd_nsfw` has quit [Read error: Connection reset by peer]
bodqhrohro has joined #ruby
<adam12> The new thread scheduler went in recently too. Interesting to see what comes from that. https://github.com/ruby/ruby/pull/3032
<havenwood> adam12: I'm excited about that onne.
<adam12> havenwood: A little sad your rename proposal didn't seem to be moving. There's a few things in stdlib where I notice juniors get hung up on.
<havenwood> adam12: We could add it to the devs meeting. I just wanted to get it on the books since I agree it does hang up new folk, who we could just be kind to with conventions.
<havenwood> adam12: I remember the names to require, *usually*, but it's something I've long wished just worked as anticipated.
<adam12> There's another good issue that looks interesting and it's callable objects in $LOAD_PATH
jingjinghack has quit [Quit: WeeChat 2.1]
<adam12> Ooh, caching instruction ssequences is getting visibility again too. I wonder if it's gonna go anywhere since normalperson has been absent. https://bugs.ruby-lang.org/issues/16847
stryek has joined #ruby
bkuhlmann has joined #ruby
dorian has joined #ruby
<dorian> hey question about rack: what is the convention for signalling that a request is a subrequest? i want to leave like an easter egg in the env so that a middleware can detect it and not run
<dorian> i realize i can make that be anything, i'm trying to figure out if there is a convention though
impermanence has quit [Quit: Connection closed]
<adam12> dorian: I'm not sure I've seen a convention. Maybe just namespace it to avoid a collision.
<dorian> word
<dorian> i mean there is `rack.recursive.include`
<dorian> but i haven't tested whether that's there unconditionally
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
orbyt_ has joined #ruby
trautwein has quit [Ping timeout: 240 seconds]
greypack_1 is now known as greypack
darkstardev13 has joined #ruby
<havenwood> adam12: And the first Rack web server using it. :D https://github.com/socketry/async/commit/5104a808630a52d7225389d87a90e9b331bc677e
<havenwood> Well, primative used upstream by a web server.
<havenwood> downstream*
<havenwood> Which way is the stream going?!
SeepingN has joined #ruby
<havenwood> Yeah, down.
rippa has joined #ruby
burgestrand has quit [Quit: burgestrand]
amerlin has joined #ruby
amerlin has left #ruby ["leaving"]
TomyWork has quit [Remote host closed the connection]
pwnd__ is now known as pwnd_nsfw
ellcs has joined #ruby
tpanarch1st_ has joined #ruby
ChmEarl has joined #ruby
pwl has quit [Ping timeout: 260 seconds]
yxhuvud has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
donofrio has quit [Remote host closed the connection]
TCZ has joined #ruby
jinmiaol1 has joined #ruby
davispuh has joined #ruby
xco has joined #ruby
bandithijo has joined #ruby
yxhuvud has joined #ruby
bandithijo has quit [Client Quit]
crankharder has quit [Ping timeout: 258 seconds]
Lachezar has joined #ruby
<Lachezar> Hey all. I have the task to integrate with an existing Ruby application that has a Web-Socket server (Cable?). I do not understand the protocol that is being used. Where can I find th eprotocol definition?
<havenwood> Lachezar: Is it ActionCable or what?
<Lachezar> havenwood: How would I tell?
<havenwood> Lachezar: Do you have the code?
<havenwood> Lachezar: Is it a Rails app?
<Lachezar> I see messages like this: 0{"sid":"23SmlIu0glscvrs7ADFi","upgrades":[],"pingInterval":25000,"pingTimeout":60000}
<havenwood> Lachezar: What leads you to believe Ruby is involved?
<havenwood> Lachezar: Looks like a Socket.IO payload.
<Lachezar> havenwood: Hm. Yes. The URL is .../socket.io/?EIO=3&transport=websocket
inanepenguin has joined #ruby
<havenwood> Lachezar: It's a JavaScript library: https://github.com/socketio/socket.io
<Lachezar> havenwood: Seems that the app is Ruby (probably Rails), but the WebSocket connection is served by a different component. I suspect it's a node.js application.
<havenwood> Lachezar: The modern Rails option for WebSockets is Action Cable, which I linked above.
chalkmonster has quit [Quit: WeeChat 2.8]
crankharder has joined #ruby
<havenwood> Lachezar: So you want to use Socket.IO from Ruby? That's what your goal is here?
<Lachezar> havenwood: Thanks for the help. It turns out the Cable *is* used but not for the component that I'm trying to integrate with.
DTZUZU has quit [Quit: WeeChat 2.8]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bandithijo has joined #ruby
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
imode has joined #ruby
cd has joined #ruby
chalkmonster has joined #ruby
bandithijo has quit [Quit: WeeChat 2.8]
impermanence has joined #ruby
bandithijo has joined #ruby
bandithijo has quit [Client Quit]
bandithijo has joined #ruby
va5c0 has quit [Ping timeout: 260 seconds]
bandithijo has quit [Client Quit]
bandithijo has joined #ruby
chouhoulis has joined #ruby
Dreamer3 has joined #ruby
codefriar has quit [Quit: Textual IRC Client: www.textualapp.com]
chouhoulis has quit [Ping timeout: 260 seconds]
r3my has joined #ruby
crisfm has joined #ruby
jinmiaol1 has quit [Ping timeout: 265 seconds]
Rakko has joined #ruby
r29v has joined #ruby
bandithijo has quit [Ping timeout: 256 seconds]
conta has quit [Ping timeout: 240 seconds]
schne1der has quit [Ping timeout: 256 seconds]
conta has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 264 seconds]
DTZUZU has joined #ruby
conta has quit [Quit: conta]
crankharder has quit [Ping timeout: 256 seconds]
kristian_on_linu has joined #ruby
crankharder has joined #ruby
TCZ has quit [Quit: Leaving]
sepp2k1 has joined #ruby
maxxx888_ has joined #ruby
segnet has quit [Quit: Leaving]
Emmanuel_Chanel has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
code_zombie has joined #ruby
Lachezar has quit [Quit: leaving]
sauvin has quit [Read error: Connection reset by peer]
spiette has quit [Quit: ZNC 1.7.5 - https://znc.in]
crisfm has quit [Read error: Connection reset by peer]
spiette has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
ldepandis has quit [Ping timeout: 265 seconds]
howdoi has joined #ruby
maxxx888_ has quit [Read error: Connection reset by peer]
maxxx888 has joined #ruby
gix has joined #ruby
infinityfye has quit [Quit: Leaving]
pwnd_nsfw has quit [Quit: Leaving]
pwnd_nsfw has joined #ruby
nowhere_man has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
TCZ has joined #ruby
s2013 has joined #ruby
Minall has joined #ruby
snickers has joined #ruby
davispuh has quit [Ping timeout: 265 seconds]
<Minall> Hello ruby community! anyone know what dependencies are in rvm?, I'm trying to install it but it doesn't recognize my system, so it can't install dependencies, I'm at clear linux
inanepenguin has quit [Quit: inanepenguin]
<gueorgui> Minall: What errors are you getting?
<gueorgui> Also are you installing from a clear linux package or from source?
maxxx888 has quit [Remote host closed the connection]
<Minall> RVM was not able to detect your system type and does not know how to load extra library paths for your system (if it's needed), read:
<Minall> > rvm help autolibs
davispuh has joined #ruby
maxxx888 has joined #ruby
maxxx888 has quit [Read error: Connection reset by peer]
<gueorgui> And when are you getting this error?
<Minall> When trying to run the command to install rvm with rails: curl -sSL https://get.rvm.io | bash -s stable --rails
maxxx888 has joined #ruby
<gueorgui> Ah, did you look at this? https://rvm.io/rvm/autolibs
<gueorgui> It's possible they didn't test it with the clear linux package manager or something, and so can't autodetect what they need
<jhass> yeah it should have installed RVM successfully
<jhass> it just failed at installing ruby
<jhass> try to disable autolibs and then just rvm install ruby
<Minall> You're right, it installed rvm, but not ruby...
<Minall> Ok, I'm on it, thanks
<Minall> I'm trying to install ruby now,
maxxx888 has quit [Remote host closed the connection]
maxxx888 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<Minall> Installing ruby fails, the first line of the error is /home/Minall/.rvm/src/ruby-2.7.0/lib/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- openssl (LoadError)
<jhass> do you have openssl including development headers available?
<Minall> So I assume that those dependencies that rvm wanted to install on my system were necessary, so I need to know what those dependencies are in order to install them manually
<Minall> jhass: I'm installing openssl now
<jhass> https://github.com/rbenv/ruby-build/wiki documents the dependencies somewhat
<jhass> a clearer alternative might digging out the build scripts for your distros official ruby package
<Minall> Wow... Ok let me see if I can find all those dependencies on clear linux, I'm installing a bundle of dev packages
<gueorgui> clear's package management is interesting
<gueorgui> it's bundles rather than individual packages?
<Minall> Yes, ruby-basic bundle, ruby-dev, desktop-gnome, desktop-kde... I can't give any details since I just started 2 hours ago with this new system... I only installed some bundles like this dev bundle...
<Minall> But for individual apps, we use flatpak, I installed steam, discord, gnome maps and boxes...
schne1der has joined #ruby
<Minall> Also java-basic as bundle, which worked perfectly for booting minecraft, lol
<jhass> fwiw I'm sure somebody made a ruby flatpak
<gueorgui> out of curiosity, why did you choose Clear over another distro? I've got to admit I've never even heard of Clear until today
<jhass> also what's wrong with the ruby bundle they provide that you're already installing RVM?
<jhass> fame opportunity right there!
<Minall> gueorgui: They focus on performance, and have amazing performance over intel architecture that supports the system... Also some AMD CPUs seem to go great with it... Some benchmarks against Ubuntu, my OS of choise before installing Clear Linux, showed that Clear Linux beat Ubuntu in the majority of the benchmarks... So I'm here to see if that affects every day usage, and gaming, 3D or when compiling
<gueorgui> Minall: gotcha, thanks for explaining!
<xco> greetings
<Minall> jhass: I could install that package with I assume is the latest ruby, but rvm gives developers more control over their versions, for example, I work with rails, and some projects are in an old version
<xco> any idea where/how i can find all the methods that were added to Ruby 2.0.0? the changelog isn't helping https://www.ruby-lang.org/en/news/2013/02/24/ruby-2-0-0-p0-is-released/
<Minall> jhass: That's basically why, with rvm I can install any ruby version I want, and it has very good support, even integration with emacs
<gueorgui> Minall: if you struggle with rvm, take a look at rbenv as well. It's a good alternative. Might be included in the ruby-dev group?
<Minall> gueorgui: Let me check that project, it may be a good alternative, Thanks!
<jhass> xco: dig out whatever serves the index on https://ruby-doc.org/core-2.0.0/ and run git diff on it? :D
snickers has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<xco> jhass that's hardcore but good idea! :D
<jhass> Minall: I know what RVM is, just curious as I prefer to just use packages for multiple versions
<jhass> I never need one than more patch level per minor
<jhass> eh, more than one even
<Minall> jhass: Lol that's nuts
<Minall> jhass: Mh... Maybe I could just install the bundle but, my team does use a lot rvm
<jhass> looking at the history of https://gist.github.com/jhass/8839655bb038e829fba1 I'm okay with that for at least five years :D
<Minall> I'm also asking this at #clearlinux
<gueorgui> Minall: there might be a rvm channel too
<Minall> Not sure, I didn't saw it on the official page, let me check
inanepenguin has joined #ruby
<Minall> Lol there is, thanks! I'm asking there
<jhass> xco: looks like it's embedded into the HTML, so it'll require some nokogiri xpath dancing
<jhass> I know devdocs.io has a json index but it only goes back to 2.2
<xco> jhass devdocs.io is waaay off on what i want
<xco> :D
<xco> it's documenting everything
<xco> i just want only new method in 2.0 compared to 1.9
<gueorgui> I think downloading the docs for both versions and diff'ing the method index is the way to go
<jhass> yeah I mean if it would have an 1.9 and 2.0 index we could save the parsing
<xco> yeah looks like my best shot at this gueorgui
<gueorgui> Nice!!
<gueorgui> I didn't know about `methods`
<jhass> it's a pry sesssion and local variables in it :D
<jhass> require "open-uri"; require "nokogiri"; methodsNN = Nokogiri::HTML(open("https://ruby-doc.org/core-NN/", &:read)).css("#method-index p > a").map(&:text)
<gueorgui> Very nice
maxxx888 has quit [Read error: Connection reset by peer]
maxxx888 has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.8]
chouhoulis has joined #ruby
comet23 has joined #ruby
Minall_ has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
Minall has quit [Ping timeout: 258 seconds]
Minall_ is now known as Minall
<jhass> and apparently in 1.9 you could compare procs, but 2.0 lost Proc#== and Proc#eql?
<jhass> also no more marshalling Time!
<jhass> xco: what kind of archeology is this for btw?
<xco> gueorgui
<xco> jhass i'm trying to study the history of Ruby
<xco> I'm happy with 2.7.0 for all my projects :D
<xco> just digging around to see what's changed
<comet23> ruby 4 is out
<gueorgui> hi
<xco> gueorgui sorry called you out with the wrong key press
<jhass> heh, fair. I guess generating a little website listing the added and removed methods per ruby minor version could be nice thing
<xco> jhass that's ACTUALLY what i'm doing
<jhass> haha <3
<jhass> well stuff the above in a loop and you're basically done :D
<xco> are you telepathic? jhass :D
<jhass> sometimes :D
<xco> haha
vondruch has quit [Ping timeout: 272 seconds]
ellcs has quit [Ping timeout: 260 seconds]
CrazyEddy has quit [Ping timeout: 256 seconds]
<jhass> the sad part is only ever know after the fact :(
<jhass> comet23: what's new in Ruby 4?
<gueorgui> static typing, one would hope
<gueorgui> *ducks*
<xco> gueorgui no please
<jhass> static typing is great. Don't confuse it with mandatory type annotations :D
<jhass> doesn't ruby 3 actually want to implement gradual typing? I don't follow it so closely
arekushi has joined #ruby
crankharder has joined #ruby
Minall has quit [Ping timeout: 256 seconds]
<Scriptonaut> do you guys recommend using God to spawn resque workers in production, or is there an easier way?
<Scriptonaut> not sure I want to go through the process of learning God, or creating a big monit config for this project just so my resque workers are spawned in their own processes instead of threads
<jhass> what OS are you deploying on?
Dreamer3 has quit [Quit: Leaving...]
kristian_on_linu has quit [Remote host closed the connection]
djdduty has joined #ruby
<Scriptonaut> jhass: ubuntu 18.04 I think
<Scriptonaut> couldn't I just make a ruby script that calls the resque:work rake task in a loop?
<jhass> so, just write a systemd unit?
maxxx888 has quit [Read error: Connection reset by peer]
<Scriptonaut> I could do that ya
<jhass> why in a loop?
pwnd_nsfw has quit [Read error: Connection reset by peer]
<Scriptonaut> jhass: I'm having an issue with resque. The rake resque:workers rake task spawns each worker in a thread. I need them in separate processes for production
maxxx888 has joined #ruby
<jhass> since when is resque thread based oO
<Scriptonaut> it's thread based if you use that rake task apparently
<Scriptonaut> I just found out
<jhass> I think you're misunderstanding something
<Scriptonaut> yes, exactly
<Scriptonaut> so I'm opting to not use the COUNT env var
<jhass> look the body closer
<jhass> system("rake")
<Scriptonaut> ya, but it's spawning that inside a thread
<jhass> and that thread is spawning a new processs
<Scriptonaut> what's the point of using a thread at all then?
<Scriptonaut> just for feedback on the parent process?
<jhass> because they were too lazy to use spawn and waitpid
<Scriptonaut> ah ok
pwnd_nsfw has joined #ruby
<Scriptonaut> the first answer*
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> yes it's kinda misleading
<jhass> the readme was fixed since
<Scriptonaut> another issue with that is the PIDFILE= env var. If you have COUNT=5 PIDFILE=/path/to/file.pid rake resque:workers, it will create a single pid file for the first worker
<Scriptonaut> which makes killing the other ones hard
<Scriptonaut> so I was thinking of just writing a rake task, that called rake resque:work multiple times, with PIDFILE=resque-#{app_environment}-#{i}
<Scriptonaut> and wanted to see how y'all felt about that
<jhass> I mean for production just make a systemd template unit and instantiate as many as you need
<Scriptonaut> ah ok, so just call the rake task multiple times in the system d template
schne1der has quit [Ping timeout: 256 seconds]
<jhass> yeah, ExecStart=/your/ruby/env/stuff/bundle exec rake resque:work, save it as resque_worker@.service and start/enable resque_worker@one, resque_worker@two as many times as you want
<jhass> dead simple really
leitz has quit [Quit: Leaving]
<Scriptonaut> alright thanks
<comet23> jhass: ruby 4 has a tell me feature where you speak to it
<comet23> Just kidding that's siri
<comet23> But ruby 4 has intelligent code completion. Write something that makes sort of sense and it will rewrite your logic so that your code passes all the edge cases
drincruz has quit [Ping timeout: 256 seconds]
bkuhlmann has quit []
<comet23> This begs the question why can't there be a feature where you're just focused on writing test cases and the computer writes the most optimized code that is secure and free of bugs?
<comet23> And if we're working on a rails app we'll have to write the HTML and say where everything goes and ruby will handle the logic for us
<comet23> Automatically installing and configuring databases and redesigning architecture to automatically scale as the need arises
Rakko has quit [Ping timeout: 265 seconds]
Rakko has joined #ruby
TCZ has quit [Quit: Leaving]
ldepandis has joined #ruby
BTRE has quit [Ping timeout: 264 seconds]
Rakko^ has joined #ruby
bambanx has joined #ruby
Rakko has quit [Ping timeout: 265 seconds]
elcuervo has quit [Read error: Connection reset by peer]
masticass has joined #ruby
BTRE has joined #ruby
maxxx888 has quit [Read error: Connection reset by peer]
maxxx888 has joined #ruby
Rakko^ has quit [Quit: Leaving]
DTZUZU has quit [Quit: WeeChat 2.8]
<adam12> Wow, Resque and God. Haven't heard either of those in ages.
entel has quit [Quit: Connection closed for inactivity]
TCZ has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
evdubs has quit [Remote host closed the connection]
evdubs has joined #ruby
asuper has joined #ruby