<arne>
resulting in "rvwigGSb1u8wc05TXYi1YCyVsaRsV3cLESVR", which would be a pretty ugly subdomain
dmgk has joined #ruby
<dminuoso>
arne: But SPF? ..
cadillac_ has joined #ruby
<arne>
sure, user has to set spf, too
<arne>
but i can't use that for authentication
<dminuoso>
Just curious.. why not?
<arne>
uhm... well the spf value is pretty fixed
<arne>
it has to be a list of ips/hosts that is allowed to send mails for that domain
<dminuoso>
I mean isn't that the entire purpose of SPF?
<arne>
i can't put the information in there which user added that domain
<arne>
so if you add your superawesomedomain.de to my software
BloopMonsterOMG has joined #ruby
<dminuoso>
Fair enough well at any rate
dionysus69 has joined #ruby
<arne>
you might add the right spf key, which i use for authentication. Then another malicious user comes.. add superawesomedomain.de
<arne>
and it's valid
<dminuoso>
wait a sec
<dminuoso>
arne: the authorization step happens by virtue of adding the SPF record
<dminuoso>
not by adding things to your software.
<arne>
right now i have no authorization, and i start to get big companies as customers
<dminuoso>
but I get the idea
<dminuoso>
arne: how do hash functions come into play?
<arne>
and if someone else comes, and adds quelle.de to my software, he might be able to send emails for that domain
<arne>
dminuoso: you can have multiple (named) dkim keys per domain
chouhoulis has joined #ruby
<arne>
so i can define name and value of the domainkey
dr3w_ has joined #ruby
jrafanie has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<dminuoso>
arne: so essentially the domain things are just authentiation
<arne>
if the second malicous user comes, he can add the domain.. but he will never be able to add #{hash}._domainkey.quelle.de
<dminuoso>
fair enough
chouhoulis has joined #ruby
<arne>
so hash has to be short enough for subdomain, and only contain chars allowed in subdomains
<arne>
so, as an input for my hash-function i would have [user_id,domain_id(in case of deletion & reinsert),domain(as string)]
cadillac_ has quit [Ping timeout: 256 seconds]
bmurt has joined #ruby
<dminuoso>
arne: here's a silly thought.. but why not use something else.. like...
cadillac_ has joined #ruby
<dminuoso>
a timestamp?
catphish has joined #ruby
<dminuoso>
why does it have to be a hash?
<catphish>
does ruby cache references to classes? in particular does it cache them inside other classes?
<arne>
no, that is not silly but minimal less secure than a hash
<arne>
by a My
<catphish>
i have an odd situation where 2 different classes are both calling "User" but are referencing different classes
<arne>
catphish could be namespacing, do you have 2 classes named User?
<catphish>
no, it's the same class, but a different version of it, it was releaded at some point
<catphish>
but different parts of the code are now seeing different versions of it
<arne>
well, why would you do that
<catphish>
"because rails"
<arne>
well, i am sorry
<catphish>
rails has some magic that reloads classes between requests, but i'm trying to work out why some old versions are still being referenced
<catphish>
i am also sorry :)
kapil___ has joined #ruby
<arne>
that sounds awful
<arne>
fuck rails
<catphish>
so i suppose my question is why in one class, User would reference one class and on another it would reference a different class, i assime there's a leven of caching somewhere that rails isn't invalidating
dogweath_ has quit [Remote host closed the connection]
ElFerna has quit [Ping timeout: 260 seconds]
<arne>
well there might be code that does something like
<arne>
something = Model::SomeClass
<arne>
i guess that would not dereference that class, no matter how many times u overload Model::SomeClass
<catphish>
that would be correct
konsolebox has joined #ruby
<catphish>
except that even referencing it as SomeClass i get different results depending on where it's called
<catphish>
it's very odd
<arne>
are those in the same namespace?
<catphish>
no, i suppose they're not
<catphish>
but they should end up looking in the "root" namespace i thought
<arne>
is there a possibility that those worked their way down in the namespace?
<catphish>
i'm not sure how to tell
<catphish>
but yes, it certainly seems like that's what's happened
dogweather has joined #ruby
mrBen2k2k2k has joined #ruby
<arne>
lul rails
<catphish>
i'll ask the rails channel i guess
Mike11 has joined #ruby
faces has joined #ruby
apparition has quit [Quit: Bye]
micutzu has joined #ruby
cadillac_ has quit [Ping timeout: 276 seconds]
mtkd has quit [Read error: Connection reset by peer]
chouhoul_ has joined #ruby
^mtkd has joined #ruby
face has quit [Ping timeout: 240 seconds]
megamos has quit [Quit: Leaving]
karapetyan has joined #ruby
agent_white has joined #ruby
Burgestrand has quit [Quit: Closing time!]
cadillac_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 248 seconds]
cadillac__ has joined #ruby
<arne>
dminuoso: thanks for the timestamp approach, i guess that would be enough
karapetyan has quit [Ping timeout: 256 seconds]
cadillac_ has quit [Read error: Connection reset by peer]
aupadhye has quit [Ping timeout: 260 seconds]
<arne>
putting a sleep in there for security :>
<dminuoso>
o_o
<arne>
dminuoso: when 2 people add quelle.de at the same time :D
<arne>
"same time"
ElFerna has joined #ruby
<dminuoso>
arne: why not simply use a UUID/GUID then.
<dminuoso>
And be done with this circus.
<arne>
BUT COLLISIONS, jk
<dminuoso>
arne: USE A UNIQUE CONSTRAINT IN YOUR DATABASE.
<arne>
you don't want to know what makes that impossible for me
<arne>
please sit down and i tell you
<dminuoso>
Sitting.
<arne>
i have a one-database-per-user sharding-model
cadillac__ has quit [Read error: Connection reset by peer]
<arne>
long story short, not a good idea
<dminuoso>
And what stops you from having some other database to orchestrate things?
<arne>
well, would be more work, i guess
gizmore has joined #ruby
<arne>
and very bug-prone
<arne>
having transactions on 2 datbases.. one fails.. the other one commits, yaddayadda
<dminuoso>
saga pattern.
<dminuoso>
but ah well
<dminuoso>
The quality of these ideas..
<dminuoso>
You wouldnt happen to be working on beA would you?
<arne>
i don't know any of these words
<dminuoso>
arne: You are German, are you not?
<arne>
yes
lxsameer has quit [Ping timeout: 248 seconds]
<arne>
bundesrechtsanwaltskammer?
<dminuoso>
That's the one.
<arne>
thatgermanword.jpg
<arne>
well, no that would be no business for me
bak1an has joined #ruby
<arne>
law, ewww
<arne>
that one-database-per-user thing was not a requirement, that was my own shitty idea
<dminuoso>
gizmore: Here's some fun fact, I just flowtyped a legacy JS project. Found 20 lingering bugs within the first 30 minutes by just throwing // @flow on each file =)
<havenwood>
gizmore: what you're looking for seems a lot like what sorbet does
<gizmore>
havenwood: yeah.... but what is sorbet?
<gizmore>
i dont want to add to the toolchain
<gizmore>
have you seen my rdocs?
<havenwood>
gizmore: do you or do you not want static type checking? ;-P
<gizmore>
i am not sure :)
<havenwood>
gizmore: docs aside
<havenwood>
¯\_(ツ)_/¯
<gizmore>
i think my new (today) rdocs idea is better
<dminuoso>
havenwood: I was so sad btw when I saw that :(
<gizmore>
it adds complexity to the IDE and docs, not ruby
roamingdog has joined #ruby
<havenwood>
dminuoso: which part made you sad?
<havenwood>
i'm not rushing to annotate all my code
<dminuoso>
havenwood: That types are being added as an afterthought.
<havenwood>
dminuoso: ah, right
<havenwood>
gizmore: RubyMine supports YARD type annotations, afaik
<dminuoso>
havenwood: Especially because implementing a type system is rather simple once you have the semantics and rules laid out. But it requires the language design to be tied into the type system. :(
<dminuoso>
The actual hard part of a language is writing the parser... :P
<dminuoso>
havenwood: The things Matz have shown about types for Ruby3 are not promising
<gizmore>
havenwood: thank you
<dminuoso>
And if you check out the issue about typing you will, hilariously, see that 90% of the talk is dedicating to just "how should it look", rather than "what should it be"
<havenwood>
dminuoso: i think that talk was just an interesting aside, nothing considered for Ruby3
<havenwood>
dminuoso: Matz wants analysis tools built into Ruby that can be exposed to editors, if i recall. We've not seen anything relating to it yet.
<havenwood>
It might still disappoint you. ;-P
roamingdog has quit [Remote host closed the connection]
<dminuoso>
havenwood: Well I should just stop complaining and start using Crystal. ;)
<havenwood>
haha
roamingdog has joined #ruby
ellcs has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
<dminuoso>
It's what Ruby would have been if it had been designed from first principles, as opposed to just cloning perl. :)
<dminuoso>
And Ive liked Ruby enough to critize it. :P
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
matyf has quit []
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 268 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Eiam>
wow I really want to stab docker in the face
<Eiam>
what horror have I inflicted onto my repo
karapetyan has joined #ruby
Beams has quit [Quit: .]
amar has joined #ruby
<baweaver>
Eiam: Would you call it cargo container culting? XD
<Eiam>
I dont get why people are in their dockerfile copying the gemfile and gemfile.lock over; its a part of your /app anyway and would be copied over
<Eiam>
why copy . /app then copy gemfile too, I must be missing something obvious. I guess thats a #docker question
<Eiam>
baweaver: ugh, I just wanted to split out the place I do work from the OS I'm currently running, so that where I develop is as close as possible to where it runs. Thats not too much to ask right?
<Eiam>
5 containers later, docker composing my docker instances runnning my docker containers trying to alias these 500 word long docker calls fml
<Eiam>
fuck it, ill just dev on 10.14 and deploy on ubuntu and deal with the difference that crop up
<gizmore>
i once wrote a game with docker spawning abusing configs to detect running gameservers and proxy them around :)
<gizmore>
well.... someone else wrote the game... i dockerized it and built a swarm master
<Eiam>
I *think* docker-compose is just a more complicated iteration of the Procfile
AJA4350 has quit [Quit: AJA4350]
<gizmore>
my boss later agreed when i told him to use my non-docker swarmed version (less overhead)
amar has quit [Ping timeout: 265 seconds]
<gizmore>
only advantage would be easier deployment on some special stacks (hopefully)
<gizmore>
GDO::User::GDO_User.blank(user_name: Eiam).insert .... what is the equivalent in ActiveRecord?
<gizmore>
adding own column types is not easy there
<gizmore>
which makes you write a lot of validators for columns you would want to re-use
<gizmore>
and write more dup code for your "wanted to reuse fields"
p4p0l0 has joined #ruby
<Eiam>
hmm maybe jruby
synthroid has quit []
<Eiam>
anything I should watch out for if I chase down moving from ruby to jruby?
<Eiam>
looks like just some gems might not work
<gizmore>
the toolchain is different too, i guess
<gizmore>
in ruby it is almost F5 to try again :)
<gizmore>
jruby needs to setup some things and the toolchain is maybe more complicated? --- share your exp
ElFerna has quit [Ping timeout: 240 seconds]
<hightower2>
Eiam, some things might not be atomic in jruby like they are in ruby
psychicist__ has quit [Quit: Lost terminal]
r29v has joined #ruby
biberu has quit []
Guest58336 has joined #ruby
hightower2 has quit [Ping timeout: 265 seconds]
ams__ has joined #ruby
ElFerna has joined #ruby
ta_ has joined #ruby
herbmillerjr has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
grilix has quit [Ping timeout: 260 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Guest58336 has quit [Ping timeout: 240 seconds]
Guest58336 has joined #ruby
karapety_ has joined #ruby
dionysus70 has joined #ruby
workmad3 has joined #ruby
lytol has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 268 seconds]
dionysus70 is now known as dionysus69
karapetyan has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has quit [Quit: Leaving...]
cb_ has joined #ruby
<starseed0000>
Eiam, the idea is that if you copy the gemfile over first, then gem install, that whole process can be cached
Guest58336 has quit [Ping timeout: 256 seconds]
<starseed0000>
Eiam, since it's less common that you will be modifying gems, it just makes development that much faster. I have projects that take 5 minutes to install all the gems, I don't want to wait around for that every time I want to build my image
t0xik has joined #ruby
roamingdog has quit [Remote host closed the connection]
<starseed0000>
If you're not interested in that then copying the whole application in one swoop is perfectly fine.
roamingdog has joined #ruby
p4p0l0 has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
cyberg has quit [Ping timeout: 248 seconds]
p4p0l0 has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
cyberg has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
mzo has quit [Ping timeout: 256 seconds]
Azure has joined #ruby
schleppel has quit [Quit: Konversation terminated!]
postmodern has joined #ruby
ElFerna has quit [Ping timeout: 248 seconds]
dhollinger has quit [Remote host closed the connection]
jottr has joined #ruby
the_f0ster has joined #ruby
LFF^ has quit [Ping timeout: 245 seconds]
dionysus69 has quit [Ping timeout: 256 seconds]
jottr has quit [Ping timeout: 240 seconds]
ElFerna has joined #ruby
Guest58336 has joined #ruby
<cthulchu_>
hey folks, can I pass a regular expression as an argument into a function that then will .test() it?
<cthulchu_>
against something
<cthulchu_>
or better yet... can I pass a string OR a regex into a method. And that method will check if they .type_of() is not string then .test() it
<gizmore>
cthulchu_: usually the answer to _can_ questions in ruby yield 'yes' :P
<cthulchu_>
hehehehe, I noticed that :)
<cthulchu_>
it's just in JS it's difficult to test against a regex that is in a variable
<gizmore>
>>/hey/.class.name
<cthulchu_>
one has to create a regex object first, using new
<gizmore>
my eval no work?
<gizmore>
<< /hey/.class.name
<gizmore>
>> /hey/.class.name
<gizmore>
:(
<cthulchu_>
just .class
<gizmore>
try my code
<elomatreb>
You need to be authenticated to IRC to use the bot
<elomatreb>
Mh, I think I misremembered that, passing false there does something slightly different
<elomatreb>
It's both a blessing and a curse, anyone and any random gem can come and modify core classes which may or may not break other gems down the line
<elomatreb>
And only convention protects against this
<cthulchu_>
that's why I would never use it for serious projects
<cthulchu_>
also any dev can come and break random stuff
<cthulchu_>
I prefer strictness
<cthulchu_>
when it's reasonable
Guest58336 has quit [Ping timeout: 248 seconds]
ElFerna has joined #ruby
ElFerna has quit [Ping timeout: 268 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
KeyJoo has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
p4p0l0 has quit [Remote host closed the connection]
p4p0l0 has joined #ruby
orbyt_ has joined #ruby
p4p0l0 has quit [Ping timeout: 240 seconds]
cschneid has quit [Remote host closed the connection]
venmx has joined #ruby
cschnei__ has joined #ruby
Guest58336 has joined #ruby
cschnei__ has quit [Ping timeout: 264 seconds]
Xeago_ has joined #ruby
clemens3 has quit [Ping timeout: 264 seconds]
venmx has quit [Ping timeout: 260 seconds]
Xeago has quit [Ping timeout: 264 seconds]
Xeago_ is now known as Xeago
<Eiam>
starseed0000: ah, I see, I guess that does make sense
<Eiam>
starseed0000: I think I am going to try to avoid docker and instead just target the jvm using JRuby so my distribution is a .jar and I don't need to worry a bout what platform I'm on for development
ElFerna has joined #ruby
<Eiam>
that requires some other changes to my project, like removing thin and so on, but thats all stuff I've done before and isn't shoving some whole new huge stack onto my applications in a sort of node.js/module manner I guess. just feels not as heavy, setting aside "jvm" for a minute =)
<Eiam>
from a deployment standpoint my endpoint is very JVM focused and .jars are more of a blessed path than any thing else so it elevates me to first class support to provide a .jar
Guest58336 has quit [Ping timeout: 264 seconds]
dendazen has joined #ruby
ellcs has quit [Ping timeout: 276 seconds]
roamingdog has joined #ruby
dogweather has joined #ruby
<Eiam>
oh boy sure hope I can still use pry on jrub
<Zarthus>
if you couldn't use pry on jruby i'd wonder what the appeal to jruby would be :P
ElFerna has quit [Ping timeout: 264 seconds]
<Zarthus>
I couldn't think of a more useful gem.
<Eiam>
i know hence my moment of panic
<Eiam>
the googles show someone updated it in 2016
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
dogweather has quit [Ping timeout: 260 seconds]
chouhoul_ has joined #ruby
chouhou__ has joined #ruby
chouho___ has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
chouh____ has joined #ruby
chouhoul_ has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
chouhoul_ has joined #ruby
chouhou__ has quit [Ping timeout: 265 seconds]
chouhou__ has joined #ruby
chouho___ has quit [Ping timeout: 260 seconds]
chouho___ has joined #ruby
chouhoulis has quit [Ping timeout: 264 seconds]
weaksauce has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
dogweather has joined #ruby
chouh____ has quit [Ping timeout: 260 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
chouh____ has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
chouhoul_ has quit [Ping timeout: 264 seconds]
chouhoul_ has joined #ruby
chouhou__ has quit [Ping timeout: 264 seconds]
chouhou__ has joined #ruby
chouho___ has quit [Ping timeout: 260 seconds]
chouho___ has joined #ruby
chouhoulis has quit [Ping timeout: 248 seconds]
chamar has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
chouh____ has quit [Ping timeout: 245 seconds]
chouh____ has joined #ruby
chouhoul_ has quit [Ping timeout: 260 seconds]
chouhoul_ has joined #ruby
chouhou__ has quit [Ping timeout: 260 seconds]
cloaked1 has joined #ruby
chouhou__ has joined #ruby
chouho___ has quit [Ping timeout: 240 seconds]
dogweather has quit [Ping timeout: 248 seconds]
Guest58336 has joined #ruby
chouho___ has joined #ruby
chouhoulis has quit [Ping timeout: 248 seconds]
chouhoulis has joined #ruby
chouh____ has quit [Ping timeout: 248 seconds]
chouhoul_ has quit [Ping timeout: 240 seconds]
chouh____ has joined #ruby
chouhoul_ has joined #ruby
chouhou__ has quit [Ping timeout: 240 seconds]
dogweather has joined #ruby
chouhou__ has joined #ruby
chouho___ has quit [Ping timeout: 240 seconds]
ElFerna has joined #ruby
c0ncealed2 has quit [Read error: Connection reset by peer]
chouho___ has joined #ruby
<cjohnson>
jrub, that's a brand of lubricant right
chouhoulis has quit [Ping timeout: 256 seconds]
chouhoulis has joined #ruby
c0ncealed2 has joined #ruby
knight33 has joined #ruby
chouh____ has quit [Ping timeout: 268 seconds]
chouhoul_ has quit [Ping timeout: 240 seconds]
chouh____ has joined #ruby
chouhoul_ has joined #ruby
Guest58336 has quit [Ping timeout: 240 seconds]
<Zarthus>
chouh____, chouhou__, chouhoulis: fix your connection.
chouhou__ has quit [Ping timeout: 268 seconds]
chouhou__ has joined #ruby
Guest58336 has joined #ruby
cb__ has joined #ruby
<Radar>
!connection chouh____
chouhoulis was kicked from #ruby by ruby[bot] [repeated join/part detected]
chouho___ was kicked from #ruby by ruby[bot] [repeated join/part detected]
chouh____ was kicked from #ruby by ruby[bot] [repeated join/part detected]
chouhoul_ was kicked from #ruby by ruby[bot] [repeated join/part detected]
chouhou__ was kicked from #ruby by ruby[bot] [repeated join/part detected]
<Radar>
!connection chouhoul_
agent_white has quit [Quit: leaving]
cb_ has quit [Ping timeout: 265 seconds]
postmodern has quit [Quit: Leaving]
chouho___ has quit [Ping timeout: 264 seconds]
<Radar>
Thanks Zarthus.
<Zarthus>
thanks
chouhoulis has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 260 seconds]
chouh____ has quit [Ping timeout: 240 seconds]
chouhoul_ has quit [Ping timeout: 240 seconds]
ElFerna has quit [Ping timeout: 240 seconds]
Guest58336 has quit [Ping timeout: 240 seconds]
chouhou__ has quit [Ping timeout: 268 seconds]
Guest58336 has joined #ruby
ldnunes has quit [Quit: Leaving]
dogweather has quit [Ping timeout: 268 seconds]
nickjj has quit [Read error: Connection reset by peer]
ElFerna has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
anjen has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
dogweather has joined #ruby
roamingdog has joined #ruby
nickjj has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
Guest58336 has quit [Ping timeout: 264 seconds]
starseed0000 has quit [Ping timeout: 240 seconds]
ElFerna has quit [Ping timeout: 260 seconds]
ElFerna has joined #ruby
k0mpa has quit [Ping timeout: 250 seconds]
r29v has quit [Quit: r29v]
Eiam_ has joined #ruby
r29v has joined #ruby
<Eiam_>
hmm, okay so pry does need a special thing =/
jzhu has joined #ruby
<Eiam_>
byebug doesn't work
<Eiam_>
$ gem install pry-debugger-jruby; installs the gem... Successfully installed pry-debugger-jruby-1.2.1-java but then in bundle install, it fails what....
<Eiam_>
Could not find gem 'pry-debugger-jruby' in rubygems repository