havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 2.7.2, 2.6.6, 3.0.0-preview1: 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 | Can't talk? Register/identify with NickServ
roshanavand has joined #ruby
roshanavand_ has joined #ruby
roshanavand has quit [Ping timeout: 260 seconds]
roshanavand_ is now known as roshanavand
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
akem_ has joined #ruby
al2o3-cr has joined #ruby
akem has quit [Ping timeout: 260 seconds]
Esa__ has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 240 seconds]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
jottr has joined #ruby
meinside has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
dfucci has joined #ruby
dfucci has quit [Ping timeout: 256 seconds]
drincruz has joined #ruby
drincruz has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
RickHull has joined #ruby
PlanetaryAnnihil is now known as TCZ
<RickHull> Hi, I'm working a (mostly-2D) physical simulation of car driving. F=ma and static/kinetic friction and angular velocity, etc. I've kind of hit a wall in terms of making progress in pulling all the functionality together into a cohesive simulation. I'm looking for guidance in dealing with Vectors (from stdlib's Matrix) as well as summing forces
<RickHull> and torques, etc
<RickHull> there are lots of tests, and they pass, and some demo scripts that show some functionality. I've got a good handle on how to do what I want with ruby. I'm looking for guidance from someone with a physics / mechanical engineering background
<RickHull> mostly having to do with summing forces and torques with tire/wheel and the car body (rigid body)
elcontrastador has quit [Quit: Textual IRC Client: www.textualapp.com]
lucasb has quit [Quit: Connection closed for inactivity]
<RickHull> as it stands, the car simulation ignores wheel forces and handwaves over them, just considering thrust force and resistance forces like drag / friction / brakes
<RickHull> I've separately implemented the wheel forces, and I'm trying to integrate them with the car forces, but with concerns about Vector representations , particularly 2D vs 3D, particularly as regards torque and angular stuff, which necessarily introduces a 3rd dimension into a nominally 2D simulation
gix has quit [Ping timeout: 246 seconds]
sagax has joined #ruby
<RickHull> I suspect that I can simplify some implementation details greatly if I "pick an orientation", for example x is L-R and y is up-down, or E-W and N-S, but I think this will also complicate and limit some things later
jottr has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
DaRock has quit [Remote host closed the connection]
jenrzzz has joined #ruby
al2o3-cr has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
dfucci has joined #ruby
ChmEarl has quit [Quit: Leaving]
roshanavand has quit [Ping timeout: 256 seconds]
jottr has quit [Ping timeout: 272 seconds]
TCZ has quit [Remote host closed the connection]
Swyper has quit [Remote host closed the connection]
jottr has joined #ruby
Swyper has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
Swyper has quit [Read error: Connection reset by peer]
Swyper has joined #ruby
Swyper has quit [Remote host closed the connection]
dfucci has quit [Ping timeout: 256 seconds]
ur5us has quit [Ping timeout: 240 seconds]
dfucci has joined #ruby
ZeroFreak has joined #ruby
dfucci has quit [Ping timeout: 272 seconds]
dcunit3d has quit [Ping timeout: 260 seconds]
RickHull has quit [Ping timeout: 245 seconds]
ur5us has joined #ruby
donofrio__ has quit [Remote host closed the connection]
LtHummus_ has quit [Quit: ZNC 1.8.2 - https://znc.in]
ur5us has quit [Ping timeout: 240 seconds]
LtHummus has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ZeroFreak has quit [Quit: Leaving]
jottr has quit [Ping timeout: 240 seconds]
dfucci has joined #ruby
roshanavand has joined #ruby
dfucci has quit [Ping timeout: 240 seconds]
cliluw has quit [Read error: Connection reset by peer]
cliluw has joined #ruby
dfucci has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
postmodern has quit [Quit: Leaving]
Swyper has joined #ruby
Glumetu has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
Swyper has quit [Remote host closed the connection]
hiroaki has quit [Ping timeout: 256 seconds]
ur5us has joined #ruby
Swyper has joined #ruby
vondruch has joined #ruby
Swyper has quit [Remote host closed the connection]
ua has quit [Ping timeout: 256 seconds]
vondruch has quit [Client Quit]
vondruch has joined #ruby
aloy has quit [Remote host closed the connection]
aloy has joined #ruby
Swyper has joined #ruby
akem_ is now known as akem
ua has joined #ruby
Swyper has quit [Ping timeout: 260 seconds]
jottr has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 264 seconds]
jottr has joined #ruby
pwl has joined #ruby
ignorand has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
Swyper has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
Swyper has quit [Remote host closed the connection]
baojg_ has quit [Remote host closed the connection]
baojg has joined #ruby
jinie has quit [Quit: ZNC 1.8.2 - https://znc.in]
jinie has joined #ruby
pwl has quit [Ping timeout: 256 seconds]
ignorand has quit [Ping timeout: 256 seconds]
Swyper has joined #ruby
Swyper has quit [Ping timeout: 260 seconds]
Swyper has joined #ruby
royo25 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
fippy has quit [Quit: Leaving]
TCZ has joined #ruby
roshanavand has joined #ruby
royo25 has quit [Quit: Bye...]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
donofrio has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
Mrgoose has quit [Ping timeout: 256 seconds]
TCZ has quit [Quit: Diabe? tkwi w szczegó?ach]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
drincruz has joined #ruby
gueorgui has quit [Remote host closed the connection]
gueorgui has joined #ruby
drincruz has quit [Ping timeout: 256 seconds]
phaul has quit [Ping timeout: 240 seconds]
rubydoc has quit [Ping timeout: 256 seconds]
phaul has joined #ruby
jottr has quit [Quit: WeeChat 3.0]
rubydoc has joined #ruby
akem_ has joined #ruby
akem__ has joined #ruby
akem has quit [Ping timeout: 240 seconds]
akem_ has quit [Ping timeout: 256 seconds]
drincruz has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
ule has quit [Quit: WeeChat 2.4]
roshanavand has quit [Ping timeout: 264 seconds]
lucasb has joined #ruby
pwnd_sfw has quit [Ping timeout: 240 seconds]
meinside has quit [Quit: Connection closed for inactivity]
Rudd0^ has quit [Ping timeout: 260 seconds]
jmcgnh has quit [Ping timeout: 240 seconds]
Esa__ has joined #ruby
Mrgoose has joined #ruby
jmcgnh has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
con3 has quit [Remote host closed the connection]
akem__ has quit [Ping timeout: 256 seconds]
_aeris has joined #ruby
_aeris_ has quit [Ping timeout: 240 seconds]
_aeris is now known as _aeris_
TCZ has joined #ruby
CrazyEdd has quit [Ping timeout: 246 seconds]
orbyt_ has joined #ruby
queip is now known as CobraKai
al2o3-cr has joined #ruby
CobraKai is now known as queip
roshanavand has joined #ruby
Technodrome has joined #ruby
TCZ is now known as KillYourselfNoP
KillYourselfNoP is now known as TCZ
TCZ has quit [Remote host closed the connection]
akem has joined #ruby
rubydoc has quit [Ping timeout: 240 seconds]
rubydoc has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
queip has quit [Ping timeout: 272 seconds]
Rudd0 has joined #ruby
lightstalker has quit [Ping timeout: 272 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
cloud69 has joined #ruby
SeepingN has joined #ruby
CrazyEdd has joined #ruby
Mrgoose has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
queip has joined #ruby
lightstalker has joined #ruby
Mrgoose has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Glumetu has quit [Read error: Connection reset by peer]
CrazyEdd has quit [Remote host closed the connection]
CrazyEdd has joined #ruby
CrazyEdd has quit [Changing host]
CrazyEdd has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
pwnd_sfw has joined #ruby
vondruch has quit [Quit: vondruch]
rubydoc has quit [Remote host closed the connection]
vondruch has joined #ruby
rubydoc has joined #ruby
phaul has quit [Ping timeout: 264 seconds]
phaul has joined #ruby
cthu| has joined #ruby
baojg_ has joined #ruby
baojg has quit [Ping timeout: 260 seconds]
rubydoc has quit [Ping timeout: 265 seconds]
phaul has quit [Ping timeout: 256 seconds]
Swyper has quit [Remote host closed the connection]
phaul has joined #ruby
rubydoc has joined #ruby
ule has joined #ruby
ule has quit [Changing host]
ule has joined #ruby
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
vondruch has quit [Quit: vondruch]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has joined #ruby
duderonomy has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
rubydoc has quit [Ping timeout: 256 seconds]
Esa__ has quit [Remote host closed the connection]
chalkmonster has joined #ruby
phaul has joined #ruby
rubydoc has joined #ruby
ChmEarl has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
dviola has quit [Ping timeout: 272 seconds]
rubydoc has quit [Ping timeout: 246 seconds]
phaul has quit [Ping timeout: 246 seconds]
rubydoc has joined #ruby
phaul has joined #ruby
jenrzzz has joined #ruby
vondruch has quit [Read error: Connection reset by peer]
pwl has joined #ruby
vondruch has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
htmnc has joined #ruby
<htmnc> is yield syntactic sugar for Proc#yield? I'm trying to find yield's documentation in the ruby docs but it's not a Kernel method so I'm wondering where I can find explicit documentation for a given ruby version about such keywords
jenrzzz has joined #ruby
<htmnc> so twofold question, where can I find the documentation for the yield keyword? and, related, for keywords in general (return/etc) where can I find the documentation that's valid for a specific version of the language (ie. 2.5.1)
<htmnc> s/ie./ex./
<htmnc> escape the ., naturally
<adam12> htmnc: Best bet is probably just the rdoc generated for that release. I think this is one area where Ruby could _probably_ be improved.
Hess has joined #ruby
<htmnc> makes sense! I'll have to read the docs on rdoc to figure out how to access the docs outside of pry, lol
<adam12> but then it links to method docs, which is here: https://docs.ruby-lang.org/en/2.7.0/doc/syntax/methods_rdoc.html
Hess has left #ruby [#ruby]
<adam12> htmnc: Ruby docs is one of my personal pain points. There was initiative a while back to improve them (ie. using YARD, etc) but there was little buy-in. Anything that's a keyword likely has very little docs. If it's in C it probably has OK docs but queryable from pry is anybody's guess (without pry-doc)
<htmnc> yeah. it's interesting, but at least the docs as they are exist
<adam12> A great example of how we've ended up with so many doc sites. docs.ruby-lang.org, rubyapi.org, rubydoc.info (for stdlib + gems), ruby-doc.org.
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
<htmnc> having had to pair program with a lot of people who aren't familiar with Ruby and are having to learn as they go along, it's been pretty frustrating that the standard way of creating class (vs instance) methods is now def self.method instead of def Class::method
<htmnc> well not frustrating, it just seems to be a uniformly alien-and-strange thing to the people who are trying to learn the language
<htmnc> pretty anecdotal as far as comments go
<adam12> htmnc: You find that? I've noticed the opposite, where it's easier to explain `self` to someone and they get it from there.
<htmnc> yeah what I might be encountering is just that the underlying concept ('what is `self` here?') is difficult
<adam12> htmnc: That said, there's no reason they couldn't just do `def Class.method` if it makes more sense in their head. For the most part, the `::` method of calling methods is more the deprecated aspect.
<adam12> Yeah. Knowing where the scope switches can be a challenge, but also handy when it comes to understanding scope against blocks vs scope against keyword blocks (def, class, etc).
<adam12> I have a harder time explaining the eigenclass to most new developers.
<htmnc> also https://docs.ruby-lang.org/en/2.7.0/doc/syntax/literals_rdoc.html#label-Procs says it creates a proc but in both 2.7.2 and in 2.5 it creates a lambda so ex: ->(x) { x }.call(2,3) raises an exception
<htmnc> it says it creates a proc as far back as 2.5 but I haven't gone earlier than that
<htmnc> idk where I'd submit a bug report or whatever on that
<htmnc> or pull request
dionysus69 has joined #ruby
Eiam has joined #ruby
roshanavand has joined #ruby
<htmnc> oh it's in the source for ruby, yeah I'll make a pull request and then email the mailing list about it
dan64- has joined #ruby
Swyper has joined #ruby
gix has joined #ruby
dan64 has quit [Ping timeout: 265 seconds]
Minall has joined #ruby
ur5us has joined #ruby
Minall has left #ruby ["ERC (IRC client for Emacs 27.1)"]
Minall has joined #ruby
<adam12> htmnc: Yeah! Interesting find.
boc_tothefuture has joined #ruby
<boc_tothefuture> Hi there.. Had a question about ruby integers ranges and coerce.. I have been playing around and trying to understand something. I created an object and a coerce method within that object. When I create a range and compare with === I see it calls coerce once with the start of the range and returns false even though when I respond to coerce I s
<boc_tothefuture> end back an array of integers (the value provided and another integer that is i the range). Is that the expected behavior? Is there a way to make a number like object that works when being compared to integer like ranges?
davispuh has joined #ruby
algun has joined #ruby
<algun> Hi. Found this random script. Can anyone tell me what this line means? https://gist.github.com/xijo/d4bad3953f7b9979dd91#file-encoding_repairer-rb-L30
<algun> (I am familiar with regex)
<leftylink> &ri Array#*
<leftylink> that is important to udnerstand that line
<algun> That much I know as well
<leftylink> great
con3 has joined #ruby
<algun> So what is the question mark and the pipe?
<leftylink> ah
<adam12> algun: Character literal
<adam12> ?| == "|"
<algun> weren't they used to be prefixed with a colon?
<leftylink> no, colon means symbol
<adam12> Save a character at the expense of abiguity :P
<algun> ah right
<algun> thanks
roshanavand has quit [Quit: Quitting...]
<algun> been a while since i've done ruby
<adam12> algun: If you're gonna use that snippet, I'd 100% generate that regexp to a constant and just re-use it.
<adam12> boc_tothefuture: Can you show some code? Easier to follow.
<algun> that optimization would be way premature this is just a script i wanted to try out locally
<adam12> ¯\_(ツ)_/¯
<leftylink> huh, first time I'm learning about coerce. interestingly I also cannot get it to work with a range
<leftylink> weird
<algun> also heads up: i have no idea how extensive or even useful that script is. I noticed that if it doesn't match it won't print out the original string
algun has quit [Quit: Peace be with you]
<boc_tothefuture> adam12: https://gist.github.com/boc-tothefuture/48d87ada10e0bb8efa144df9693089d6 I would expect that range test to return true.
Minall has left #ruby ["ERC (IRC client for Emacs 27.1)"]
<boc_tothefuture> But I am guessing I expect that because I don't understand what coerce is really doing.
<leftylink> hmm, well at least the comparison works, but I guess === is also doing some extra
<leftylink> observe...
<leftylink> &>> 1 < (Object.new.tap { |x| def x.coerce(i); puts "coercing #{i}"; [i, 3] end })
<rubydoc> # => coercing 1... check link for more (https://carc.in/#/r/a0y2)
<leftylink> so the comparison works, but not ===
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
<leftylink> oh I should make it all appear on one line, then people don't have to click
<leftylink> &>> 1 < (Object.new.tap { |x| def x.coerce(i); print "coercing #{i} and comparison result is... "; [i, 3] end })
<rubydoc> # => coercing 1 and comparison result is... true (https://carc.in/#/r/a0y7)
<leftylink> huh? why did I put unnecesary parens
<leftylink> not sure what I was thinking honestly...
chalkmonster has quit [Quit: WeeChat 2.9]
<boc_tothefuture> so it works with comparison.. but I think === calls spaceship
<boc_tothefuture> which also works on one line, but not in a range.
weaksauce has joined #ruby
<htmnc> I get "Bad digest specifier: Mailing" when I try to use the mailing list link from ruby's Readme.md as a reply, anyone know what I can do from here?
dionysus69 has quit [Ping timeout: 260 seconds]
cloud69 has quit [Quit: Connection closed for inactivity]
TCZ has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
Netto has joined #ruby
<Netto> Hello folks. I'm some RoR apps with Docker. but when I run docker-compose up my app doesnt start and thrown an error saying that some lib on Gemfile is not installed. Looks like they looks first to my initializer before installing the gems. So that way I never get my app started. Any clue about what can be wrong?
boc_tothefuture has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dfucci has quit [Ping timeout: 260 seconds]
<summerisle> what image?
<summerisle> Netto:
<summerisle> if you're just working off an official ruby image or a vanilla distro image, it should be pretty simple
fippy has joined #ruby
<summerisle> run bundle install during the container build or during startup, use bundle exec to start the entrypoint
<Netto> I can check that on Dockerfile or docker-compose.yml?
<summerisle> well, your docker build would be in the Dockerfile - as well as the default entrypoint
roshanavand has joined #ruby
dfucci has joined #ruby
<summerisle> That's a compose file
fippy_ has joined #ruby
fippy has quit [Ping timeout: 240 seconds]
GodFather has quit [Remote host closed the connection]
GodFather_ has quit [Remote host closed the connection]
GodFather has joined #ruby
GodFather_ has joined #ruby
TCZ has quit [Remote host closed the connection]
pwl has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
pwl has joined #ruby
jenrzzz has joined #ruby
dfucci has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
pwl has quit [Ping timeout: 240 seconds]
Flonk has quit [Ping timeout: 260 seconds]
Flonk has joined #ruby
roshanavand has quit [Quit: Quitting...]
ellcs has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
ellcs has quit [Ping timeout: 240 seconds]
<htmnc> adam12, omg I got Error: We are currently unable to download the log. Please try again later. for one of the unit tests on the pull request ;_;
AndreYuhai has joined #ruby
<AndreYuhai> Hey there, I am using 'slack-notifier' gem and I trying to send a message to a slack channel.
<AndreYuhai> from /home/bkaymakci/.rbenv/versions/2.6.5/lib/ruby/2.6.0/net/protocol.rb:44:in `connect_nonblock'"
<AndreYuhai> This perfectly works on my laptop but when I run the same thing on a server I get the error saying "OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)
<AndreYuhai> What could be wrong? I mean the same thing works on my laptop but not on the server. Moreover, I already have another script running on the server which is also sending a message to a slack channel daily.
duderonomy has quit [Ping timeout: 256 seconds]
duderonomy has joined #ruby
ur5us has joined #ruby
jenrzzz has joined #ruby
AndreYuhai has quit [Remote host closed the connection]
AndreYuhai has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]