<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?
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]
<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: 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]