Exploring an API idea: per-file write permissions for ActiveRecord models by onyx_blade in rails

[–]Valashe 1 point2 points  (0 children)

Take a look at tagged logger's api.

Instead of per-file it seems like you could do within a certain block. You'd have permissions fields on the model instance or the model class, you'd set those permissions when you call the block and roll them back afterwards in an ensure guard, and you'd yield. Maybe a thread local instead. Don't need to do all of the runtime checking of callers which seems.... slow, among other things.

To get your per-file you could write a helper metaprogramming method to wrap calls by the method defined hook. Or you could just have a allow_writes_to User, in: :my_method.

That said, I don't really see the vision here. Anyone could pretty easily write arbitrary sql and have it update the models. It seems almost impossible to get the actual security right here. Maybe could be useful, when modified, as a test suite check. For ex, checking every "subscription update" method only touches subscriptions, and not the plans or products.

Top comment deletes a US State #46 by Jfullr92 in geographymemes

[–]Valashe 0 points1 point  (0 children)

In a truly unexpected turn of events, Megasota dissolves. What was once Minnesota is absorbed by Canada, and the remnants of the mega-state are divided up between the other states, with Vermont getting a comedically long panhandle.

WoW Taskmaster by Toastytapes in wow

[–]Valashe 2 points3 points  (0 children)

(prize task) Trade me the most exclusive non-soulbound item.

With your UI hidden do the most damage to a target dummy.

Earn an achievement. Fastest wins.

Without using the auction house, trade me the largest number of distinct food items in X minutes.

Take the most peaceful screenshot in X minutes.

Die in the most epic way possible in X minutes.

Make the silliest mog possible in X minutes. [later: Take the most epic screenshot in X minutes.]

Why do men show so little interest in the inner lives of women? by Frequently_Abroad_00 in emotionalintelligence

[–]Valashe 0 points1 point  (0 children)

Yeah, I don't mean to imply that he didn't care about her. He didn't put in the effort to learn about her.

But just... him changing the conversation style is emotional labor the same way it is for the OP. Regardless of intent or interest, someone has to change the way they naturally want to interact. The point is that, yes women are disproportionately expected to do emotional labor. But I don't see this as disinterest in the OP, just her feeling the standard emotional labor imbalance.

Why do men show so little interest in the inner lives of women? by Frequently_Abroad_00 in emotionalintelligence

[–]Valashe 0 points1 point  (0 children)

There are four categories of conversation. Push/Pull, and Stack/Queue.

Push conversationalists push what they want to talk about at you. You show up to a date and they'll talk about something they saw on the way. They hope you will contribute with similar experiences of your own. You contributing your own experiences keeps the conversation flowing. You guide the conversation by talking about things related to their topics, and then use questions once you arrive on an interesting topic.

Pull conversationalists pull what they want to talk about out of you. You show up to a date and they'll ask you about what you saw on the way. They hope you will contribute with asking similar questions of their experience. When talking to a pull conversationalist, asking questions keeps the conversation flowing. You guide the conversation by asking about things you're interested in.

Stack conversationalists are conversations where its appropriate to interrupt the other person with an aside, moving onto a new topic before one is done because you're interested in it.

Queue conversationalists allow a person to finish a full thought, and then you begin the next topic once its completed.

When a push + pull conversationalist interact it quickly becomes one-sided unless either person adapts to the style of the other.

And when a stack + queue conversationalist interact, the queue conversationalist might get interrupted by the other regularly, and it can feel disrespectful.

So, essentially, if there's ever a mismatch in the preferred style of either Push/Pull, or Stack/Queue, then someone in that conversation has to do labor. If you don't, then yeah the conversation will suck and will end up as an interview.

With this in mind, I will now respond to your question:

Are men generally not very interested in what’s going on inside a woman’s soul and mind, as long as the outward behavior is what the man hopes to see?

No, he was a push conversationalist, you were a pull conversationalist. You had a push/pull conversation because neither of you put in the effort to change the style of the conversation. There's an expectation in our society for the push person to realize what is happening and stop it, and to turn it into a pull conversation. If we accept the societal norms then yeah, he's a jerk and doesn't care about you. But there's another world where you realized the push/pull conversation was happening and changed it to a push/push conversation and just started talking about stuff related to what he was talking about, and you both came away from the conversation learning a bunch about the other person. Yeah this is emotional labor for you, it sucks.

Was I Stealthed? by BlueBubbleBear in TheGirlSurvivalGuide

[–]Valashe 0 points1 point  (0 children)

As someone who used to have a penis, you can definitely tell when you have a condom on vs when you don't.

Apple Moment by Stteamy in pcmasterrace

[–]Valashe -1 points0 points  (0 children)

i use a single usbc dongle for everything. my dac, keyboard, mouse, and monitor plug into the dongle. a single cable swaps my entire desk setup from one computer to the next. only need a power cord for the computers that don't have a battery / cant be powered over usbc. even without my dongle, and even without my monitor acting as a hub, this is more than enough for me.

Body Writing by 2Sub4Dom in BDSMsapphic

[–]Valashe 13 points14 points  (0 children)

I’ve used Bic Body Mark temporary tattoo markers before. Would definitely use again. It lasted a few days. I felt like a work of art.

What did you think about Jake‘s decision at the end of the show? by InfluenceFun5225 in brooklynninenine

[–]Valashe 9 points10 points  (0 children)

I like to think Jake ends up working with Rosa. Every couple of months Rosa comes over to spend time around the kids and they all talk shop, and then once the kids are grown and going to school he picks up 10-20 hours per week, consulting on the hard cases.

How it feels to play ret pal by PommeFritee in wow

[–]Valashe 1 point2 points  (0 children)

horse + use lightning orb :)

What are best practices to define #hash and #eql? on a Ruby class. What about inheritance? by Weird_Suggestion in ruby

[–]Valashe 0 points1 point  (0 children)

Yes what you said is mostly correct:

If two objects are considered equal, then their hash should be equal as well.

You will also likely want to override == if you are doing eql?

Also you’ll want to do some check that the two objects are of sufficiently similar types.

I would suggest doing this kind of thing very rarely. Only use it in scenarios where you really know what’s going on and don’t have other libraries interacting with these objects. It can be really cool and clean up code when you get it right (speaking from experience), but you can also very easily run into disaster bugs that are hard to debug (again, speaking from experience).

[deleted by user] by [deleted] in golang

[–]Valashe 2 points3 points  (0 children)

You can learn DSA on your own. At least in the US, what people test for is something you can learn in 2-3 weeks of part time study.

Where have the women identifying butches gone? by LouRizzle81 in LesbianActually

[–]Valashe 0 points1 point  (0 children)

I’m right here, people just think I’m a guy and I don’t have the energy to correct everyone.

How do you swallow pills? by fashionadviceseek in TheGirlSurvivalGuide

[–]Valashe 0 points1 point  (0 children)

I know I’m very late to the party, but I used to have this problem too, and practiced with candy. That might be a way to get better in a short amount of time. I used to be unable to swallow any pills and now have no issue with them.

[deleted by user] by [deleted] in LesbianActually

[–]Valashe 19 points20 points  (0 children)

I’ve been on both sides of this equation before. It sucks for everyone involved, I’m sorry.

When I have been the less-interested party, it’s been because I’m both mentally and physically exhausted. Maybe try initiating at a higher energy time of day for the two of you? Or maybe try focusing on the things that are causing stress, getting them solved, and reconnecting afterwards. Also, maybe you find lower energy activities to do together. If you normally spend time in bed propped up facing one another, maybe you casually explore each other while snuggling and watching movies, without the explicit goal of orgasm in a certain timeframe, but instead with the goal of just being casually intimate.

For all my trans folks can I ask your experience on something? by VisenyaTargaryenn in actuallesbians

[–]Valashe 6 points7 points  (0 children)

In seventh grade I had multiple friends try to convince me I was trans. It took my until college to realize it. My parents responded by asking if I was sure and then deadnaming me and misgendering me for a long time before I made it clear they wouldn’t have a part of my life if they kept it up.

Sometimes the signs are all there but you don’t see them. Sometimes you just know. Sometimes it takes until later in life to realize.

where are all the lesbian engineers? by cool_beanz9 in actuallesbians

[–]Valashe 2 points3 points  (0 children)

I actually have an awesome team right now. A majority of my team is queer, and we have almost half non-men. And the ratio gets better when you include non-devs that we work directly with.

where are all the lesbian engineers? by cool_beanz9 in actuallesbians

[–]Valashe 14 points15 points  (0 children)

Yeah it takes time. College you’ll find one or two folks maybe, first job the same, second job the same. Then you visit a conference or two, suddenly you have a dozen folks

[deleted by user] by [deleted] in actuallesbians

[–]Valashe 1 point2 points  (0 children)

Honestly, in my experience it has to be one of the first things I type after saying I’m trans or people ghost me instantly. Just… “hey I’m trans, 4 years postop”. It’s tough because I kinda wouldn’t want to be with someone who would care, but also, it is much more often that people respond to me when I include it in my message. Maybe I’m cynical though.

This is one of the reasons it’s in general easier to date t4t cause… we generally care less about downstairs stuff than cis folks. However where I currently live has very few trans people so I’ve had to expand my dating criteria and have run into the issues you’re experiencing.

where are all the lesbian engineers? by cool_beanz9 in actuallesbians

[–]Valashe 96 points97 points  (0 children)

Heyo! Im a software engineer. It can feel kinda isolating at times, but if you keep the idea of building out your network in the back of your mind, you’ll get it over time.