table – How can I create a list that always ends in with two 1’s but starts with a variable amount of 0’s

I want to create a variable list like this:

``````{0, 0, ..., 0, 0, 1, 1}
``````

This list would grow list this, starting with no 0’s, but then gaining more 0’s to the left the larger you want it.

``````f[0]:={1,1}

f[1]:={0,1,1}

f[2]:={0,0,1,1}

f[3]:={0,0,0,1,1}

f[4]:={0,0,0,0,1,1}
``````

I know that I can create `Table[]` to create ten `0` by doing

``````Table[0, 10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
``````

but not an efficient way to have it so that the last two digits are `1`.

Elon Musk ends up making over \$50 million from his SEC settlement

[COLOR=#000000][FONT=Roboto]In an ironic turn of events, Tesla CEO Elon Musk ends up making millions of dollars from his SEC settlement over… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1814691&goto=newpost

dnd 5e – Does a creature under the effect of Motivational Speech still get advantage on their next attack if the spell ends for them?

The spell motivational speech (Acquisitions Incorporated, pg. 77) says:

For the duration, each affected creature gains 5 temporary hit points and has advantage on Wisdom saving throws. If an affected creature is hit by an attack, it has advantage on the next attack roll it makes. Once an affected creature loses the temporary hit points granted by this spell, the spell ends for that creature.

So when the effected creature is hit by an attack, the spell grants the creature advantage on their next attack. But getting hit by an attack is going to be accompanied by damage – and 5 points seems like it will very often be gone with a single attack.

Does a creature hit by an attack still get advantage on its next attack if that attack dealt 5 or more damage? Or does the spell end for them immediately and they do not get advantage on the next attack?

It just seems like this effect is going to be self-defeating a lot of the time – the thing that grants the advantage is the thing that takes it away. Am I missing something?

Note, temporary hitpoints are always lost first, so no holding on to them while subtracting damage from your standard hitpoint pool. Sorry Jim, it was a clever thought.

like – Mysql, Getting all rows in which field ends in a specific character, and another field exists that is the same but doesn’t end in that character

I need to get all rows which end in a specific character, P for example, but in which a similar key sans the P exists. I have no idea how to approach this one in MySQL.

This is very small example, my actual data is huge with other columns also.

``````+------------+
|    key     |
+------------+
| value_100  |
| value_100P |
| value_101  |
| value_101  |
| value_102  |
| value_102P |
| value_103P |
| value_104P |
+------------+
``````

The query would output,

``````+------------+
|    key     |
+------------+
| value_100P |
| value_102P |
+------------+
``````

finite automata – NFA that ends with 0 and doesn’t have 11 after the first 0

So as the title says i m trying to find this NFA. So far i thought to make an NFA that “guesses” what comes after the first 0 and i got this:

After some time trying to get rid of all the extra (7 !) states i put in i got to this beauty:

But now i cant figure out how to get rid of the one extra state. Also if you have any tips on how to go to simpler NFA’s instead of what i did (like a thought process for this problem) i would appreciate it a lot. Thank you

Turing machine with a finite tape after the input word ends

Given the length of the input $$n$$, you can come up with a bound $$N(n)$$ on the number of configurations that the Turing machine can have. If the machine hasn’t stopped on an input within $$N(n)$$ time steps, then it will never stop (why?), and you can use this to complete the proof. Details left to you.

No

Nor can the caster “drop” the animal form although they can use an action to transform a target into a new beast. It is a concentration spell so the caster can choose to end it for everyone at any time.

There are no secret rules. If it doesn’t say it, it doesn’t do it.

Becoming unwilling

See Can you make an unwilling creature willing? In other words, what defines “willing”?

This is a DM call as to whether a “willing creature” must be willing only at the time the spell is cast or must remain willing throughout the duration to remain a valid target.

Unlike most other circumstances where a target becomes ineligible, deciding to be willing or not has no cost.

It also seems to treat “willing” as some sort of ‘active’ state that you must consciously remain willing or the spell fails – what if, momentarily, you doubt the sense of being a lobster? Does that momentary doubt make you unwilling and drop you back into your original form?

Similarly, if you are rendered unconscious or go to sleep does the spell end? The designer suggests an unconscious creature is not willing.

As a DM, I would not want to deal with all that and would rule that if you are willing to have the spell cast on you, it doesn’t matter if you change your mind later.

dnd 5e – When the Tangle spell ends, do plants disappear after they "wilt"?

The description of the tangle the spell says:

Grabbing weeds and vines sprout from the ground in a 20-foot square […]

When the spell ends, the conjured plants wilt.

Does "wither" mean they just wilt and die like normal plants, so the ground is covered in dead vegetation to mark where the spell was cast? Or do they disappear entirely, just as magically as they first appeared?