I'm building a server for my friends and I would want items to have infinite durability on my server. How can I do that with command blocks? Please include super high unbreaking enchantments! I also do not want mending books!
In Minecraft, is there any way to make tools indestructible (without using mods)? I want to make some tools indestructible (for an adventure map). Is it possible to do this using enchantments (or a command of some kind?)
Read-only file system When I am faced with a simple linear congruence such as  $$9x \equiv 7 \pmod{13}$$ and I am working without any calculating aid handy, I tend to do something like the following:  "Notice" that adding $13$ on the right and subtracting $13x$ on the left gives: $$-4x \equiv 20 \pmod{13}$$  so that $$x \equiv -5 \equiv 8 \pmod{13}.$$  Clearly this process works and is easy to justify (apart from not having an algorithm for "noticing"), but my question is this: I have a vague recollection of reading somewhere this sort of process was the preferred method of C. F. Gauss, but I cannot find any evidence for this now, so does anyone know anything about this, or could provide a reference? (Or have I just imagined it all?)  I would also be interested to hear if anyone else does anything similar. What is needed for a game's stats to be saved? Last night I played a few games with my friend. While in the last game, I suddenly remembered something I had to do and was about to leave but my friend told me that I would lose my progress if I did so. I stayed until the end, through the scoreboard screen and quit while the next map was loading. Taking a look  now, I can't see any of yesterday's games. I don't remember how much XP I had yesterday so there is no sure way for me to check that. I had gotten a dozen ribbon and I don't see them in the feed, but there could be specific conditions to be showing them.  My questions then.   If you quit a game early, do you lose progress / XP? What if you quit on the scoreboard? Do you need to wait for the next map to load to save your progress? Any idea why the games aren't showing up? Some of them I definitely waited for the next map to load. Is there a delay for them to be shown on Battlelog?   Thanks. Why was mixing declarations and code forbidden up until C99? Prove that $T(n) = T(n/3) + T2n/3) + 5n$ is $O(n log n)$ How did the DeLorean travel to 1885? At the end of Back to the Future II, a lightning bolt hits the DeLorean which sends it back to 1885.  At the time though, the DeLorean wasn't moving; it was relatively stationary hovering in the storm.  Yet, it's emphasised repeatedly that the DeLorean must reach 88 miles per hour (which becomes a key plot point in Back to the Future III).  So, considering the DeLorean wasn't traveling at 88mph when the lightning struck the DeLorean sending it to 1885, what is the in-universe explanation of how it travelled there?  Some other factors to bear in mind:   If a lightning bolt was sufficient to send the DeLorean time traveling, then the 88mph business would be irrelevant Note that there are the firey tracks left after the DeLorean time travels in the '66' shape.  The thing to note about this though is that we never see these before the DeLorean disappears.  These tracks are always appearing after the DeLorean has traveled away.  This would seem to indicate that the DeLorean did move, but following the activation of the time circuits. Passing named arguments to shell scripts Is there any easy way to pass (receive) named parameters to a shell script?  For example,   my_script -p_out '/some/path' -arg_1 '5'   And inside my_script.sh receive them as:  # I believe this notation does not work, but is there anything close to it? p_out=$ARGUMENTS['p_out'] arg1=$ARGUMENTS['arg_1']  printf "The Argument p_out is %s" "$p_out" printf "The Argument arg_1 is %s" "$arg1"   Is this possible in Bash or Zsh? Labelled spanning trees of $K_n-e$ Let $e$ be an edge of $K_n$- the complete graph on $n$ vertices. Prove that the number of labelled spanning trees of $K_n-e$ is $(n-2)n^{n-3}$.  I think the answer lies in using some modified form of Prüfer's sequence but I can't quite nail it. jQuery: Check if image exists Use SUM In Update Statement I am attempting to use SUM() in my SET statement for my UPDATE.  When I try this, I get an error of      Msg 157, Level 15, State 1, Line 234   An aggregate may not appear in the set list of an UPDATE statement.   What should I alter in my CTE so that I can run this update?    ;WITH CTE AS  (Select EC, CN, CID, EntryDate         FROM OPENQUERY(192.55.108.214,'select                                count(es.estimatenumber) As EC                               ,cm.an CN                               ,cm.am CID                               ,es.entrydate EntryDate                               from etalac es                                INNER JOIN bacalac cm                               ON es.CID = cm.am                               GROUP BY cm.an, cm.am, es.entrydate')) UPDATE d2016 SET TotalNumber = SUM(EC) FROM CTE cte INNER JOIN datafor16 d2016 ON cte.CID = ed2016.CID WHERE CAST(entrydate As Date) BETWEEN '01/01/2016' AND '01/22/2016'; Holomorphic function has at most countably zeros SSH to open GUI on target machine? How do I get a straight quote instead of curly quotes? I’m not inside verb or listing or any other special environments, and I’m not using XeLaTeX or anything—just normal LaTeX. I don’t want to change all quotes, just get the occasional straight quote. For example, I’d like a way to get something like this in the TeX:  ... some examples of these glyphs are curly quotes (``''), straight quotes ('"), and angled quotes ($'$$"$) ...   to look like this in the output:  ... some examples of these glyphs are curly quotes (“”), straight quotes ('"), and angled quotes (′″) ...   As I’m using an academic-publisher-provided template that does its own required font setup, I’m extremely wary of changing fonts or font encodings. I think the template uses the times package, and the formatting instructions say all fonts must be Type 1. Why does cold metal seem colder than cold air? (I apologize for this elementary question. I don't know much about physics.)  Let's say that I put a metal pot in the refrigerator for several hours.  At this point, I guess, the pot and the air (in the refrigerator) have the same temperature.  Now, I touch this pot. It feels very cold. But when I "touch" the air (that is inside the fridge) it doesn't "feel" as cold. I don't feel the same "ouch!" that I feel when I touch the pot.  Why is that? Why does the metal seem colder than air although they both have the same temperature?  (I know that gas has less particles in it in one unit of volume compared to solids and liquids, but since "temperature" means "the average kinetic energy", these fewer air particles are supposed to hit my hand in a velocity that's going to compensate for their lower number, aren't they?)  A related question, for clarification:  If I use a thermometer to measure the temperature of the pot &amp; air (let's assume it's a thermometer that has a probe that can touch objects), will it show the same reading for both? If so, what makes the thermometer different than my hand? I mean, my hand is sort of a thermometer, so why would it fail whereas a non-human thermometer would work? How do you access the matched groups in a JavaScript regular expression? I want to match a portion of a string using a  and then access that parenthesized substring:  var myString = "something format_abc"; // I want "abc"  var arr = /(?:^|\s)format_(.*?)(?:\s|$)/.exec(myString);  console.log(arr);     // Prints: [" format_abc", "abc"] .. so far so good. console.log(arr[1]);  // Prints: undefined  (???) console.log(arr[0]);  // Prints: format_undefined (!!!)   What am I doing wrong?    I've discovered that there was nothing wrong with the regular expression code above: the actual string which I was testing against was this:  "date format_%A"   Reporting that "%A" is undefined seems a very strange behaviour, but it is not directly related to this question, so I've opened a new one, .    The issue was that console.log takes its parameters like a printf statement, and since the string I was logging ("%A") had a special value, it was trying to find the value of the next parameter. Is there a way to make a true toon shader material in Cycles?  Here's, in order of importance, what would be ideal to find in such a shader:   Must use Cycles Must be an actual shader Must not rely on lighting Must be independent of camera position Must react directly to lighting rather than manually having to change it to emulate it Should be easily made into a node-group Should have the following configurability:   Main color Darkness color Shadow depth (how far the shadow goes from the unlit side)    Below, I'll be listing some already-found methods and their flaws:    Cycles's Toon BDSF:  Source: Blender  Result:    Node setup:    Cons:   Not a clear-cut two-color shading Reacts to diffusion of surrounding objects      Mask &amp; Ramp:  Source:   Result:    Node setup (Compositor):    Cons:   Very grainy Does not support colour textures Not easy to change shadow depth in a nodegroup Not a material, requires compositor Requires use of object indexes     Shadeless Fresnel:  Source:   Result:    Node setup:    Cons:   Uses camera's direction Ignores lighting Not easy to change shadow depth in a nodegroup     Shadeless Normal:  Source:   Result:    Node setup:    Cons:   Ignores lighting Direction of shadow is manually changed Not easy to change shadow depth in a nodegroup   However, this one is easily the best one. It's pretty great, and would work still images very well.    That's all I've got. Does anyone else have any methods that fall under most of the criteria I listed above? Also note that OSL is totally fine, if it works. When I try to start Runescape I get an error message that says: CLassNotFoundException and lists Rs2Applet.class. How do I fix this so I can play? If an element has a unique right inverse, is it invertible? Color change of string delimiter in listings with macro What ability should be used when resisting Intimidation? During our last play session (it was our second session, so everyone is first level) my fighter dwarf had a conflict with another player's human fighter. My dwarf became annoyed at the human's dismissive reaction to a roar outside the village that sounded like ogres (my dwarf has a bad history with ogres).   So, in order to emphasize the seriousness of this situation, my dwarf grabbed the human by shirtfront and pulled him closer (done with a successful roll). Still bent double, the human drew his sword and pointed it at my dwarf's belly (dwarf wearing chainmail). At this point the DM made the other player roll an Intimidation (Charisma) check, and me a Wisdom check to resist. I lost and my dwarf, chastened, let the human go.  That was pretty funny situation, but one thing is bothering me. By using a Wisdom check against Intimidation (Charisma), my dwarf (who has &minus;1 Wisdom modifier) was at a disadvantage (literally, not in the D&amp;D disadvantage mechanic sense) against the threats. Although he is a strong and capable warrior, he is not that wise.  But I have to wonder: is willpower really represented by Wisdom in 5e? I think that many not-so-wise creatures/characters can stand bravely against threats.  What ability/skill should be used in a contest to resist intimidation?