## StringTrim differently from left and right

Is there a function to trim a string with a different pattern for the left and right side? (I seem to remember it but perhaps I am thinking of another language because I can’t find it in the documentation.)

## Unity 2d…Bullet Intantiate on left….but instantiate on right but not showing in game mode

I am using unity 2d engine…I instantiate a bullet from a weapon…and put speed of bullet in start method as…. rb.velocity =transform.right * _speed;…..but the problem is bullet when fire in left then it shows the bullet in game mode but when firing right the bullet intantiate and shows the bullet in hierarcy but it is not showing in scene mode nor in game mode

## How do I give the right amount of treasure without going overboard, like my last DM did?

I am trying to find a good model for how much treasure and money to give my players in order not to make items too difficult to buy, or too cheap to buy.

In my last game, which ran for 6 months, our DM ended up so freely giving us gold that everything was trivial for us. Our characters at level 6 were so rich, we could afford any comfort and travel as kings. This was not because we found a treasure hoard, but because our DM had accidentally been giving us too much treasure for our encounters.

For example, every time we would fight something, they would reward us with 1-2 Platinum, sometimes more. They also used in-game currency for out of game creativity. If you made them laugh, you got another Platinum or like 100 Gold.

Nearing the end of the campaign, everything was so cheap that it wasn’t fun anymore to even buy anything or save up for fancy lodgings. We could afford hundreds of potions, countless trips to the local temple, resurrections…etc. There was no threat of dying, no challenge in earning, and the game lost steam fast.

I am not good with math. I am nowhere near an economist, but when I run my campaign I don’t want to end up with the same problem.

Are there any charts or rules of thumb for making a balanced, long-term economy in D&D 5th?

How do I assign treasure in a way that doesn’t inflate to worthlessness down the line?

I am looking for charts, guides or tables ideally. I would really appreciate the help.

## How do i calculate the Forward, Up, Right vectors using the rotation angles?

As the title says, I have the pitch and the yaw of an object, How do i use them to calculate the forward, up, right vectors (like the ones in unity), I’ve searched everywhere and only could find the forward vector.

## Was I right to leave my rp group after feeling like my player agency was violated?

Everyone. I was apart of a discord RP group but I recently left after this incident. To give some background. I was being repeatedly belittled OOC by other members and was being made to walk on egg shells around everyone. I was already Abit on edge the whole time I had been apart of this group which was for around six months. So this event starts and we find this group of nineteen children who had survived a horrific attack. They end up being affected by some unknown disease so we are all in quarantine with them.

This whole time my Character gravitates to this one little girl and makes sure to dote on her. Several of the children including her are confirmed to be orphans. My character is in her 30’s and I thought I would be given the chance to adopt her. Well the GM barely rped as her because they could not handle dealing with multiple players and scenes very well. They give us permission to just npc the children to an extent because they can’t keep up. So I am just writting scene after scene the whole time of cuteness. I am ignored by most the players and the GM even when I try to interact with others but I just play it off and try not to let it bother me.

So after the event ends the GM announces that the particular little girl I was taking care of was adopted by another player who hadn’t even met her. Needless to say I was very livid. I ended up leaving because I felt like no one was taking me into consideration or even allowing me to really interact with the events. Two players reached out to me to try and get me to come back even though in there own words the mods were "Cold hearted." I didn’t talk to the GMs about it because I was so mad and hurt to be stepped on like that, nor did they ever try to reach out to me. Am I just being childish here or am I in the right?

## What is the right way to add PHP code to a certain part of a page

I know I can add PHP to the functions file. And I know I can make a plugin.

I basically need to make a calculator of sorts and send the values to an email signup.

What is the best way to achieve this. I think a plugin, but then how would I position the plugin at a place on an already existing page?

Sorry if this is a noob question, I really want to understand the correct way to achieve this before starting.

## Does the distinction between left and right hand matter when making an off-hand attack? [duplicate]

Clara the Fighter finds herself facing a huge undead, the Frost Giant Skeleton. She attacks twice with her scimitar, and again with her light hammer! The undead reels back as it takes bludgeoning damage, which it is vulnerable to!
On her next turn, can Clara make the Attack Action using her light hammer instead of her scimitar without switching hands?
Here’s the breakdown (assuming all attacks hit):

Turn 1
Action: Attack (scimitar, right hand) = 2 x (1d6 + Str) slashing
Bonus: Off-hand attack (light hammer, left hand) = 1d4 bludgeoning, x2 because of vunlerability

Turn 2
Action: Attack (light hammer, left hand) = 2 x (1d4 + Str) bludgeoning, x2 because of vulnerability
Bonus: Off-hand attack (scimitar, right hand) = 1d6 slashing

Is the above allowed?

## Is the DM Always Right?

I recently got into a disagreement with my DM for a DND 5E game regarding a use of Prestidigitation.

The argument was that since it could create a Non-Magical Trinket, and Music Boxes are specifically listed in the Trinket section of the book, I should be able to make one, even if it is only temporary.

Her argument was that a music box did not fall under her definition of a trinket.

I’ve asked about the D&D 5e rules for that situation already, but now I’m asking whether the DM has the authority to change that rule in our game if she wants.

## Evaluate the limit of a subsequence: Compute the limit $\lim_{n\to\infty} \cos\left( \pi \sqrt{4n^2 + 5n + 1} \right)$ Integer $n$ on Mathematica

I want to compute the limit $$\lim \limits_{n\to\infty} \cos\left( \pi \sqrt{4n^2 + 5n + 1} \right)$$for integer $$n$$. By completing the square, we can determine that this limit is equal to $$– \tfrac1{\sqrt2} \approx -0.7071$$.

But if we don’t restrict $$n$$ to an integer, then the limit is indeterminate / does not exist. And can be easily found by typing it on WolframAlpha. Or in Mathematica:

However, I do not know how to compute the limit (on Mathematica) with the original constraint that $$n$$ must be an integer.

I know that we can plot a graph on Mathematica:

The graph suggests that the limit is equal to $$-\tfrac1{\sqrt2}$$. However, this doesn’t look like a convincing result because we can’t know that the limit is exactly equal to $$-\tfrac1{\sqrt2}$$.

Question: Is there a way to compute this limit in Mathematica where it spits out a single numerical value (of $$-1/{\sqrt2}$$)?

## which text captcha service is most effective right now?

Hey guys,

I tried searching forum, but found very little info. Saw people mentioning 2captcha, whose website doesn’t open for me, and textcaptchasolver which was noted has limited effectiveness in range of questions it can answer.

If anyone is using such service successfully please share