Does a Oracle with Lich curse get a reduced cost phylactery?

One of the Oracles curses is Lich, someone with this curse is almost but not quite a Lich. Since the only way I know of creating a Lich is by constructing the 120,000 gp phylactery, since this oracle has met most conditions, do they get a discount?

Because the curse is down the page and no fast link heres most of the text

Every living spellcaster hides a secret in their flesh—a unique, personalized set of conditions that, when all are fulfilled in the correct order, can trigger the transformation into a lich. Normally, one must expend years and tens of thousands of gold pieces to research this deeply personalized method of attaining immortality. Yet, in a rare few cases, chance and ill fortune can conspire against an unsuspecting spellcaster.

You have (unknowingly) fulfilled most (but not all) of the ritualistic components to achieve lichdom. You have yet to turn into an undead creature, but you are close. You take damage from positive energy and heal from negative energy as if you were undead.

why it said the “The left recursion has been removed at the cost of an extra non-terminal symbol(E1) and a little extra complexity”?

When I read the book “A Practical approach to compiler construction” the chapter 4 “approaches to syntax analysis” and the section Left Recursion, it says:

“The left recursion has been removed at the cost of an extra non-terminal symbol”

I have no idea why say that, since $ A_1$ still contain recursion?

Possible to avoid cost increase in move to GCP MySQL Second Generation?

I was using pay-per-use with MySQL first generation. It was a website with all I was using pay-per-use with MySQL first generation. It’s for a website with all pages cached in memcached and only evicted from cache when I update content. Writes to SQL can also occur if somebody register for newsletter or similar (happens ~10 times/month). I was getting away for free with the pay-per-use model, but that model is not available in the second generation.

As far as I can understand, there is no way to get below $ 7 per month now with the new model. Is that correctly understood?

Or is there an API where I can turn on/off the SQL instance when I receive a registration or update content? It feels strange to pay so much for a service I use for less than a second 10-100 times per month.

Optimization, minimize cost

A trucking company has hired you to determine the optimal highway speed, v, they should require of their drivers to minimize cost. The decision is to be based solely on economic grounds. You only need to consider:

1) driver’s hourly wage (W) , and

2) price of fuel (P) , measured in $ per gallon.

The formula for the rate of fuel consumption is:

r = 9.34(miles/gallon) -0.0596(hours/gallon)*v

where r is in miles per gallon and v is in miles per hour.

Determine the formula that would be used to calculate the optimal speed for any values of W and P.

I have been stuck on this question for several hours now. I dont know how to get the mpg into the equation. Also do I have to use the formula for the rate of fuel consumption? Any advice on where or how to start would be great.

Finding arc length of $\begin{cases} x(t) = \cos{t} + t\sin{t} \\ y(t) = \sin{t} – t\cos{t}\end{cases}$

I need to find an arc length of the following curve:

$ \begin{cases} x(t) = \cos{t} + t\sin{t} \ y(t) = \sin{t} – t\cos{t}\end{cases} \quad \land \quad t \in <-1,1>$

$ x'(t) = -\sin{t} + \sin{t} + t\cos{t} = t\cos{t}$

$ y'(t) = \cos{t} – \cos{t} + t\sin{t} = t\sin{t}$

Not sure if worth mentioning, but I noticed the following:

$ \cos(1)+\sin(1)=x(1) = x(-1) = \cos(1) + \sin(1)$

Anyway: $ $ \int^{1}_{-1} \sqrt{(x'(t))^2 + (y'(t))^2}dt = $ $

$ $ \int^{1}_{-1} \sqrt{t^2\cos^2{t} + t^2 \sin^2{t}}dt = $ $

$ $ \int^{1}_{-1} \sqrt{t^2(\cos^2{t} + \sin^2{t})}dt = $ $

$ $ \int^{1}_{-1} \sqrt{t^2}dt = $ $

$ $ \int^{1}_{-1} |t|dt = $ $

$ $ = \frac{|t^2|}{2} = 0$ $

The result should probably be 1. So it seems I have to split the integral into two integrals: one from $ -1$ to $ 0$ and second from $ 0$ to $ 1$ . And flip the limits of integration for the first integral, I believe.

But I came to that conclusion because I have desmos, wolfram etc.

I believe that solving:

$ $ y(t) > 0$ $

$ $ \sin{t} – t\cos{t} > 0$ $

would bring me to the same conclusion. But I don’t know how to solve this simple inequality. :O

Anyway, any tips? Both regarding the inequality and the integration process itself.

Roughly how much would it cost to hire a team of dwarves to build a home in the mountainside

Since I began dnd I had an idea to try to hire dwarven miners to build it into the cliff side. I am not expecting it to be huge and extravagant but it needs to be big enough for 4 people, one of whom has a large beast companion. This is just something I would be looking for in the future but if the cost is less than I expected I’m going to build it now. Any advice would be greatly appreciated.

Would de-coupling using interfaces/templates make the system easier to maintain at the cost of over-engineering?

I have been practicing this hybrid approach for dependency injection in the last couple of days and I am wondering if it should also apply to components which are within the same package?

For example:

I have a GPIO module that uses the device chip and that required to be mocked for unit testing. I also exposed its Pins as interfaces, so their consumers would not have any coupling.

I have a Motor component that lives in another package and consumes the GPIO Pins’ interfaces.

Then a ControlAgent component that lives within the same package as the Motor component, and consumes it.

One benefit of using an interface for the Motor and a template class for its implementation seems to be making its construction a little more generic (as long as I provide what’s needed at compile time), and also makes the unit testing easier.

But I also have three more components (PID/Encoder/Odometry) and potentially more that are consumed by the ControlAgent.

Seems like a big effort in development time and complexity to setup each of those as interfaces when they are part of the same package.

What is the long term benefit (if any) in the ControlAgent consuming all of its neighboring components as std::unique_ptrs (or any pointers) to interfaces rather than friends/members?

Especially since the implementations use templates, so the types must be known at compile time.

Does the over-engineering make the implementation less readable but also more maintainable?

If I fail the check to copy a spell from a scroll is the gold cost lost?

I am playing a wizard and I was reading the PHB and saw that you could copy spells into your spellbook for a cost (50g + 2 hours of work).

My question regards when copying the spell from a scroll. There is a DC check required when copying it and the scroll is then destroyed whether the check is successful or not.

A wizard spell on a spell scroll can be copied just as spells in spellbooks can be copied. When a spell is copied from a spell scroll, the copier must succeed on an Intelligence (Arcana) check with a DC equal to 10 + the spell’s level. If the check succeeds, the spell is successfully copied. Whether the check succeeds or fails, the spell scroll is destroyed.

My question is if the cost of 50g is lost on failure of the said check ?