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>
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)
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]
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.
<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.
<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>
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?
<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
<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?
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?
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…]