havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.7.0, 2.6.5, 2.5.7: 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!
spiette has quit [Quit: ZNC 1.7.5 - https://znc.in]
ua has joined #ruby
spiette has joined #ruby
coniptor has joined #ruby
GodFather has joined #ruby
TCZ has joined #ruby
FastJack has quit [Ping timeout: 260 seconds]
GodFather has quit [Ping timeout: 264 seconds]
GodFather has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
ur5us has quit [Ping timeout: 246 seconds]
wildtrees has quit [Remote host closed the connection]
wildtrees has joined #ruby
gitter1234 has quit [Quit: Connection closed for inactivity]
ur5us has joined #ruby
yokel has quit [Ping timeout: 246 seconds]
yokel has joined #ruby
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
GodFather has quit [Ping timeout: 264 seconds]
thecoffemaker has quit [Ping timeout: 246 seconds]
gix has quit [Ping timeout: 256 seconds]
thecoffemaker has joined #ruby
markoong has joined #ruby
markoong has quit [Client Quit]
wildtrees has quit [Quit: Leaving]
d3bug has joined #ruby
v1sage has joined #ruby
dasher00 has quit [Ping timeout: 246 seconds]
pyrmont_ has quit [Quit: Disconnecting...]
pyrmont-alt is now known as pyrmont
cschneid_ has joined #ruby
cschneid has quit [Ping timeout: 264 seconds]
postmodern has joined #ruby
troulouliou_dev has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
TCZ has quit [Quit: Leaving]
cliluw has quit [Ping timeout: 256 seconds]
lxsameer has quit [Ping timeout: 240 seconds]
ChmEarl has quit [Quit: Leaving]
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
v1sage has quit [Quit: v1sage]
alfiemax has joined #ruby
v1sage has joined #ruby
trouloulioud_dev has joined #ruby
trouloulioud_dev has quit [Remote host closed the connection]
cschneid has joined #ruby
cschneid_ has quit [Ping timeout: 264 seconds]
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
v1sage has quit [Quit: v1sage]
polishdub has joined #ruby
alfiemax has quit [Remote host closed the connection]
aldodelgado has joined #ruby
aldodelgado has quit [Ping timeout: 250 seconds]
cthulchu_ has quit [Ping timeout: 250 seconds]
aldodelgado has joined #ruby
Secret-Fire has joined #ruby
ur5us has quit [Ping timeout: 246 seconds]
mheld has quit [Quit: Connection closed for inactivity]
chalkmonster has joined #ruby
polishdub has quit [Remote host closed the connection]
sauvin has joined #ruby
SanguineAnomaly has quit [Ping timeout: 260 seconds]
dinfuehr has quit [Ping timeout: 250 seconds]
dinfuehr has joined #ruby
rcs has quit [Ping timeout: 268 seconds]
arooni has quit [Ping timeout: 268 seconds]
arooni_team_b has joined #ruby
cschneid_ has joined #ruby
cschneid has quit [Ping timeout: 264 seconds]
gix has joined #ruby
SanguineAnomaly has joined #ruby
gix has quit [Ping timeout: 246 seconds]
alexherbo2 has joined #ruby
markopasha has joined #ruby
roadie has joined #ruby
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
cschneid_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
cschneid has joined #ruby
aldodelgado has quit [Quit: aldodelgado]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
cschneid has quit [Quit: ZNC 1.7.5 - https://znc.in]
cschneid has joined #ruby
d3bug has quit [Quit: Connection closed for inactivity]
TzilTzal has joined #ruby
ur5us has joined #ruby
TzilTzal has quit [Client Quit]
code_zombie has quit [Quit: Leaving]
schne1der has joined #ruby
conta1 has joined #ruby
rmnull has joined #ruby
rmnull has left #ruby [#ruby]
akem_ has joined #ruby
akem has quit [Ping timeout: 246 seconds]
baojg has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
balo has joined #ruby
thejunkjon has quit [Ping timeout: 240 seconds]
sergioro has quit [Quit: leaving]
cschneid has quit [Quit: ZNC 1.7.5 - https://znc.in]
ur5us has quit [Ping timeout: 246 seconds]
yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
nibbo has quit [Ping timeout: 258 seconds]
jetchisel has quit [Read error: Connection reset by peer]
jetchisel has joined #ruby
yxhuvud has joined #ruby
dasher00 has joined #ruby
cschneid has joined #ruby
GodFather has joined #ruby
lxsameer has joined #ruby
GodFather has quit [Ping timeout: 246 seconds]
stdedos has joined #ruby
mayurvpatil has joined #ruby
conta1 has quit [Quit: conta1]
mayurvpatil has quit [Quit: Leaving]
dionysus69 has joined #ruby
rubydoc has quit [Remote host closed the connection]
rubydoc has joined #ruby
_phaul is now known as phaul
_whitelogger has joined #ruby
leitz has joined #ruby
robotmay has quit [Remote host closed the connection]
robotmay has joined #ruby
sdu has joined #ruby
gitter1234 has joined #ruby
rmnull has joined #ruby
rmnull has left #ruby [#ruby]
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
donofrio__ has quit [Remote host closed the connection]
donofrio has joined #ruby
Intelo has joined #ruby
<Intelo> Hi
<Intelo> havenwood, ?^
cschneid_ has joined #ruby
cschneid has quit [Ping timeout: 250 seconds]
<leitz> Intelo, I'm not nearly as skilled as havenwood, but I'd ask if you have any auth based connections working. If not, maybe what you're doing for auth isn't correct?
Intelo has quit [Ping timeout: 246 seconds]
kristian_on_linu has joined #ruby
Intelo has joined #ruby
tungki has joined #ruby
stampylongr has joined #ruby
stampylongr has left #ruby [#ruby]
postmodern has quit [Quit: Leaving]
alfiemax has joined #ruby
jmcgnh has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 264 seconds]
jmcgnh has joined #ruby
<leitz> Intelo, have you tried setting up a local auth based webserver, and trying to connect? That might give you some server error information.
<Intelo> leitz, I have control on live. So I have error info
drincruz has joined #ruby
<leitz> Intelo, is the server log giving you anything on auth failures? Is the auth working?
_phaul has joined #ruby
phaul has quit [Ping timeout: 246 seconds]
galaxie has quit [Ping timeout: 240 seconds]
lineus has quit [Ping timeout: 240 seconds]
iNs_ has quit [Quit: bubye]
galaxie has joined #ruby
iNs has joined #ruby
lineus has joined #ruby
<Intelo> leitz, it says The value of the 'Access-Control-Allow-Credentials' header in the response is '' which must be 'true' despite its set add_header 'Access-Control-Allow-Credentials' 'true';
gitter1234 has quit [Quit: Connection closed for inactivity]
TCZ has joined #ruby
<leitz> Note that I'm not very skilled at webdev stuff.
Secret-Fire has quit [Ping timeout: 246 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
jhass has quit [Quit: Bye]
Technodrome has quit [Quit: Textual IRC Client: www.textualapp.com]
sdu has quit [Read error: Connection reset by peer]
jhass has joined #ruby
cschneid has joined #ruby
lucasb has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.7.1]
cschneid_ has quit [Ping timeout: 256 seconds]
al2o3-cr has joined #ruby
impermanence has quit [Remote host closed the connection]
<adam12> Intelo: I'm just guessing but you might have to move the CORS settings up to nginx or the basic auth settings down to your app.
<Intelo> app already has it
<adam12> Intelo: basic auth?
<Intelo> headers
<adam12> Intelo: I know. I'm saying, either the CORS headers have to be with nginx, or the basic auth has to be moved to the app.
<Intelo> Yes, how to set those?
<adam12> Intelo: The pre-flight request is being sent but never hitting your app
<adam12> Intelo: Simplest solution might be to eliminate basic auth on OPTIONS
fernando_ has joined #ruby
<adam12> Intelo: Can you wrap your basic auth stuff in a limit_except
<adam12> limit_except OPTIONS { auth_basic ...; auth_basic_user_file ...; }
chalkmonster has quit [Quit: WeeChat 2.7.1]
fernando_ has quit [Quit: fernando_]
fernando_ has joined #ruby
<Intelo> adam12, funny, when I add location / {}, I get 404
<adam12> Intelo: Not sure of your setup but might make sense if you haven't set `root`
<adam12> Intelo: `try_files` might matter here too..
<adam12> Intelo: But likely not for your original CORS issue :)
<adam12> Intelo: Are you still trying to solve CORS or something else?
<Intelo> adam12, yes, in order to solve cors, I have to add location /.
<Intelo> 2020/03/17 13:57:46 [error] 9655#9655: *5 open() "/home/deployer/athena/current/public/dashboard" failed (2: No such file or directory), client: 88.244.90.32, server: stage.wordapp.com, request: "GET /dashboard HTTP/1.1", host: "stage.wordapp.com"
<Intelo> this happens if I add location / {}. Else works fine
<Intelo> So I am stuck
<adam12> Hmm?
<adam12> Inside @app, I'd probably take your basic auth settings and wrap them with the limit_except OPTIONS {} line I put above.
<adam12> Presumably / goes to @app by default through `try_files`
<Intelo> so I should put add hearders inside location @app?
<adam12> Intelo: No. I'd leave everything else the same but prevent basic auth on OPTIONS requests.
<Intelo> what exact syntax?
<Intelo> if options are bypassed even, i will still need to add CORs headers
<Intelo> adam12, what is the syntax to exclude preflight?
<adam12> Intelo: limit_except OPTIONS { auth_basic ...; auth_basic_user_file ...; }
<adam12> Intelo: Obviously replace ... with the full options. I left them out for brevity.
<Intelo> limit_except OPTIONS {
<Intelo> auth_basic "Restricted access zone";
<Intelo> auth_basic_user_file /etc/nginx/pass/protected;
<Intelo> why not just disable it?
<adam12> Intelo: That would probably be fine too; you had repeated the settings and I didn't know at the time.
<Intelo> adam12, why do you think I get error if I add location / {
<Intelo> And adding anything in location @app does not seem to take effect
<adam12> Intelo: I'm not sure. I rarely use nginx anymore; you should maybe try the #nginx channel.
<Intelo> ok
<Intelo> thanks!
<Intelo> adam12, try files solved it
gendarme has joined #ruby
<adam12> Intelo: OK cool.
gendarme has left #ruby [#ruby]
roadie has quit [Ping timeout: 250 seconds]
dionysus69 has quit [Ping timeout: 246 seconds]
tsujp has joined #ruby
markopasha has quit [Remote host closed the connection]
jjongMcCarthy has joined #ruby
schne1der has quit [Remote host closed the connection]
alfiemax has joined #ruby
d3bug has joined #ruby
chalkmonster has joined #ruby
alfiemax has quit [Remote host closed the connection]
tsujp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
roadie has joined #ruby
dinfuehr has quit [Ping timeout: 246 seconds]
dinfuehr has joined #ruby
ChmEarl has joined #ruby
markopasha has joined #ruby
fernando_ has quit [Quit: fernando_]
cthulchu_ has joined #ruby
jjongMcCarthy has quit [Remote host closed the connection]
chalkmonster has quit [Quit: WeeChat 2.7.1]
wildtrees has joined #ruby
<cschneid> There's .all?, .any?, .none?, and .... what's the fourth. Check if every element comes out false
<cschneid> wait, if any item is false, sorry.
<cschneid> clearly you can write it w/ .any? but feels like that's missing for symmetry purposes
<al2o3-cr> cschneid: one?
<cschneid> > [false, false].one?
<cschneid> doesn't match the "is any item in this array false" I was thinking
<cschneid> although I did not know about one?, that's handy
<al2o3-cr> cschneid: i was just pointing out the missing one ;)
<cschneid> lol
phaul has joined #ruby
akem_ has quit [Ping timeout: 264 seconds]
akem has joined #ruby
akem has quit [Max SendQ exceeded]
akem has joined #ruby
_phaul has quit [Ping timeout: 256 seconds]
ellcs has joined #ruby
noboruma has joined #ruby
FastJack has joined #ruby
chalkmonster has joined #ruby
jintseng has joined #ruby
TCZ has quit [Quit: Leaving]
noboruma has quit [Remote host closed the connection]
davispuh has joined #ruby
beard_33 has joined #ruby
sergioro has joined #ruby
beard_33 has left #ruby [#ruby]
SuperLag has quit [Ping timeout: 250 seconds]
SuperLag has joined #ruby
cliluw has joined #ruby
TCZ has joined #ruby
dinfuehr has quit [Ping timeout: 250 seconds]
dinfuehr has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
SeepingN has joined #ruby
ellcs has quit [Remote host closed the connection]
dinfuehr has quit [Ping timeout: 256 seconds]
dinfuehr has joined #ruby
gix has joined #ruby
ellcs has joined #ruby
jintseng has quit [Ping timeout: 246 seconds]
cschneid- has joined #ruby
cschneid has quit [Ping timeout: 264 seconds]
Technodrome has joined #ruby
jintseng has joined #ruby
<leitz> Anyone heard from havenwood, on how the new one is doing? And if he's gotten any sleep? :P
<apotheon> I haven't.
<jintseng> has anyone been working on event driven Ruby similar to uvloop?
Intelo has quit [Ping timeout: 256 seconds]
<ytti> personally, not a fan
<ytti> i find event driven programming flow hard to rationale about
<apotheon> s/rationale/reason/
<apotheon> It turns out I'm better at English than at Ruby, which is probably why I wrote professionally about programming for a while.
sauvin has quit [Read error: Connection reset by peer]
cliluw has quit [Read error: Connection reset by peer]
cliluw has joined #ruby
TCZ has quit [Ping timeout: 264 seconds]
howdoi has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.7.1]
<ytti> i meant rationalize but reason works too
fluxAeon has joined #ruby
fluxAeon has quit [Ping timeout: 264 seconds]
yasumi2136 has joined #ruby
<baweaver> Going to be streaming a lemur talk from inception to finalization - https://twitter.com/keystonelemur/status/1239980961573584899
ellcs has quit [Ping timeout: 246 seconds]
cloaked1 has joined #ruby
<apotheon> ytti: . . . so trying to justify it after the fact?
<apotheon> (or maybe explain)
bvdw has quit [Read error: Connection reset by peer]
caterfxo has quit [Quit: leaving]
bvdw has joined #ruby
<ytti> apotheon, yes that is how typos work
<ytti> apotheon, you fix them after making them, not before
<apotheon> No, I mean "rationalize" in your usage would mean "justify event driven programming flow after the fact".
kinduff has quit [Read error: Connection reset by peer]
tris has quit [Ping timeout: 265 seconds]
kinduff has joined #ruby
<ytti> apotheon, more that if try to understand behaviour in non event driven programming, the flow is quite clear, as i
<ytti> apotheon, as i have clear callee/caller
<galaxie> jintseng: I personally love EM.
<ytti> apotheon, but with event driven, the logic is quite hidden from me, as i'd need to study every call site if or not they may enter state where they'll emit the event
<ytti> apotheon, but i suppose you are right, reason would have been better choise
ellcs has joined #ruby
code_zombie has joined #ruby
<apotheon> One of these days, I'll finish writing a book about pointer-oriented programming.
tris has joined #ruby
cliluw has quit [Read error: Connection reset by peer]
cliluw has joined #ruby
yasumi2136 has quit [Quit: Leaving]
troulouliou_dev has quit [Remote host closed the connection]
troulouliou_dev has joined #ruby
ellcs has quit [Ping timeout: 246 seconds]
<adam12> baweaver: wrt your tweet; I'm using Twirp from the Twitch folks and enjoy it much more than gRPC.
<baweaver> Unfortunately Square is stacked on it
<baweaver> So need to make that work somehow
ellcs has joined #ruby
<adam12> baweaver: Ah bummer :\
<baweaver> and considering I'm in complete lockdown for the next few weeks I'm all onboard to try and wreck some stupidly convoluted problems
<adam12> baweaver: I think this is the project that tenderlove mentioned. I saw it scroll past a few weeks ago: https://github.com/cookpad/grpc_kit
<adam12> baweaver: If you make grpc on Ruby better, props to ya :)
<baweaver> It's a combination of several factors
<baweaver> First being we use it for so danged much
<baweaver> Second that it seems perpetually broken
cschneid_ has joined #ruby
<baweaver> and Third I need something stupidly hard and considered impossible to go heads down hackity hack on for a while
<adam12> I dread any and all interactions with grpc and in some cases, protobuf.
cschneid- has quit [Ping timeout: 250 seconds]
<baweaver> Same, honestly
<baweaver> The more I avoid it the more it circles back to kick me
<baweaver> So this time i do the kicking
<adam12> lol
<baweaver> Ah Cookpad
<adam12> Definitely check out twirp; maybe even the docs around their tooling for protobuf. It's made the experience _nicer_. But it's still a dumpsterfire imho.
<baweaver> I know quite a few people over there
<baweaver> adam12: For the record this is for mental health in isolation
<baweaver> Also for the record I have a really screwed idea of mental health
<adam12> Hah
<adam12> Best of luck to you.
ellcs has quit [Ping timeout: 246 seconds]
<baweaver> Also going to be livestreaming the entire lemur talk prep
<baweaver> So that'll be fun
<adam12> baweaver: When's that starting? I just went to your twitch page and it showed you as 'Not Live'. For some reason I thought you were doing that now.
<baweaver> Ah, later tonight probably
<adam12> Ah OK
<baweaver> Need to test the setup first too
ellcs has joined #ruby
akem has quit [Ping timeout: 264 seconds]
akem has joined #ruby
ellcs has quit [Ping timeout: 246 seconds]
jintseng has quit [Quit: Leaving]
drincruz has quit [Read error: Connection reset by peer]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drincruz has joined #ruby
cd has joined #ruby
postmodern has joined #ruby
ur5us has joined #ruby
tungki has quit [Ping timeout: 240 seconds]
ellcs has joined #ruby
wildtrees has quit [Remote host closed the connection]
wildtrees has joined #ruby
markopasha has quit [Ping timeout: 246 seconds]
wildtrees has quit [Remote host closed the connection]
wildtrees has joined #ruby
yelloB has joined #ruby
yelloB has quit [Remote host closed the connection]
ellcs has quit [Ping timeout: 246 seconds]
ellcs has joined #ruby
TCZ has joined #ruby
cschneid_ has quit [Ping timeout: 250 seconds]
cschneid_ has joined #ruby
buzzkill has joined #ruby
<buzzkill> hello all. I am _very_ new to ruby and I am trying to solve an issue. I have some 'CONSTANTS' that need to be defined. But, I need to define them based off of which group they belong to... Group A would have OWNER='steve' and Group B would have OWNER='david'. I have tried using a function call, but I get 'dynamic constant assignment' errors. Can someone help me understand how to solve this issue? I cannot be the first.
<adam12> buzzkill: show code
<buzzkill> adam12: I wish I could... this is a work project, and it is in an isolated network.
<adam12> buzzkill: Maybe you can use `const_set` to work around the warnings...
<cloaked1> anyone played with crystal lang in here?
<buzzkill> adam12: effectively what I am trying to do: http://rubyfiddle.com/riddles/1950f
<buzzkill> adam12: in irb, I get "def get_group_owner(group)
<buzzkill> case group
<buzzkill> when 'smallgrp'
<buzzkill> OWNER='steve'
<buzzkill> when 'bigdept'
<buzzkill> OWNER='david'
<buzzkill> end
<buzzkill> end
<buzzkill> get_group_owner('bigdept')"
<buzzkill> d'oh! sorry guys.
<buzzkill> I get 'SyntaxError: (irb):4: dynamic constant assignment'
<kaleido> does it work if you just use a variable?
<phaul> this feels more like a design issue than anything else. Or it shouldn't be a constant.Hard to tell without seeing the rest of the code
<kaleido> it works when you dont use a constant
<kaleido> go with that
<phaul> constant is unique in the given module nesting. They are looked up in module nesting, so having a method that like that would try to manipulate the same 1 constant which doesn't make sense.. hence the warning
<buzzkill> so, again, I am new... and trying to understand what we do at work... anyway, we use constants.rb files and helper.rb files. since we are writing code for different areas, I want to set the constant so it can be used throughout.
<buzzkill> and these constants are spread out into about 70 other files.
SeepingN has quit [Quit: The system is going down for reboot NOW!]
budonyc has joined #ruby
<kaleido> buzzkill: i'm a rookie myself but constants can't change.
<kaleido> phaul: i assume you can have a constsnt within a class and the same cnstant in another class?
<kaleido> and damn i can't type
<kaleido> "same" constant, i guess
<phaul> when you have module A; class B; ... X = 13; .. end; end ; X is 1 and it belonges under the nesting A::B. In fact it's accessible under A::B::X from anywhere.. class instances don't play a role here. It's how you nest classes and modules.
alfiemax has joined #ruby
<kaleido> interesting
<phaul> if you set it first in an instance method, stilll doesn't matter. It just belongs under A::B
<phaul> also constants are supposed to point to the same object throughout the lifetime of the process, but they give no guarantee that they point to an object that can't change
<phaul> this is perfectly valid:
<phaul> X = 'a'; X << 'b'
alfiemax has quit [Ping timeout: 264 seconds]
lucasb has quit [Quit: Connection closed for inactivity]
pupsikov has joined #ruby
jcalla has quit [Ping timeout: 256 seconds]
<phaul> buzzkill: this is what I found for you, https://cirw.in/blog/constant-lookup, have a read, hopefully it helps
leitz has quit [Quit: Leaving]
zlogan has joined #ruby
fercell has quit [Quit: WeeChat 2.7]
alexherbo2 has quit [Ping timeout: 250 seconds]
zlogan2003 has joined #ruby
zlogan2003 has quit [Read error: Connection reset by peer]
zlogan2003 has joined #ruby
zlogan has quit [Ping timeout: 272 seconds]
kinduff has quit [Read error: Connection reset by peer]
kinduff has joined #ruby
<havenwood> jint, ah, they left. I was going to recommend socketry/async-io.
<havenwood> leitz, they left too. Everything is perfect!
<havenwood> cloaked1: Yup, many folk here have.
<apotheon> How's the new-parenting experience?
plutes has joined #ruby
<havenwood> I'm on track for all my OKRs so far!
plutes has quit [Remote host closed the connection]
plutes has joined #ruby
<havenwood> She hasn't learned any Ruby yet but she's super sweet.
<phaul> havenwood: \o/
<phaul> she's going to be on irc in no time :)
<apotheon> havenwood: Did you name her Ruby?
<apotheon> havenwood: Congrats.
drincruz has quit [Ping timeout: 250 seconds]
TCZ has quit [Quit: Leaving]
dinfuehr has quit [Ping timeout: 246 seconds]
Technodrome has joined #ruby
dinfuehr has joined #ruby
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
<havenwood> apotheon: Nope, Andromeda.
<havenwood> apotheon: Thanks!
cd has quit [Quit: cd]
jetchisel has joined #ruby