so I made this command to test for if a player has a $50 dollar check on my minecraft server so i can then link that up to a command that will clear the check and pay them. My issue is I can't seem to figure out how to add an enchant to the command. The checks are all enchanted with Unbreaking 10 but I can't seem to figure out how to add that constraint in the command. The command (so far) is:  /testfor @p {Inventory:[{id:"minecraft:paper",tag:{display:{Name:"$50 Check"}}}]}   If anyone would be willing to help me add an enchant constrain so players can't just use anvils to forge checks that would be awesome. (It is a 1.12.2 server btw)  EDIT This question has changed to combining my command   /testfor @p {Inventory:[{id:"minecraft:paper",tag:{display:{Name:"$50 Check"}}}]}    and the enchantment constraint, [{id:34s,lvl:10s}. If someone could help me I've searched to try to find how to do this but I really can't find a way that works.
What I have now is:  /testfor @a {SelectedItemSlot:0,Inventory:[{Slot:0b,id:"diamond_pickaxe"}]}   How can I use the /testfor command to test a specific slot for a specific item that is enchanted?
Can someone please give me the prerequisites and mathematics required for string theory? Are there some good references to study it, both online and in a book? Please consider I am a newbie in string theory, and only about up to the level explained in Hawking's Brief History of Time and Penrose's Road to Reality. I would prefer something which does not omit rigor, but builds it up.Also, are there good online lectures on this?  (I have covered most of GR, but I am not really comfortable with advanced Quantum mechanics. I have studied QM only from Griffith's book, and a few McGraw hill lecture notes.) How do you check for whether a device is in a wifi deadzone? For creating the graphics for my thesis (function graphs, flow charts, line art sketches) I've chosen to use the sans serif font by  \renewcommand\familydefault{\sfdefault}    However when I use mathematical symbols like $p_{s}$, they are still typeset in roman font and that looks weird:    So I wonder:   how could I force mathematical expressions also be typeset in \sfdefault if I do, are there any negative sideeffects to expect (with greek signs or other special symbols?) OR should I typeset all "mathematical" graphs (axis labels etc.) in roman font, and only make the other graphics like flow charts and sketches with sans serif font? I am looking for QGIS function to extract (or detect) edge from a raster, which was referred in here,  as answer by @MappaGnosis.  The name could have changed since then, or it may have been integrated into other tool... I cannot find it in my QGIS Processing Toolbox (2.14.10 and 2.18.2).  There are similar tools such as GRASS "i.zc Zero-crossing" and SAGA "Gaussian filter", but I am hoping to find this QGIS geoalgorithm. Why is it possible to conclude everything from a false statement? Possible Duplicates:             I heard a professor of mathematics explaining that the following conslusions are true.   $\textrm{False}\Rightarrow \textrm{True}$ $\textrm{False}\Rightarrow \textrm{False}$   Could someone please explain to me why both conclusions are true? I am especially interested in the first case. I'd like to hear two explanations if possible: One for mathematicians and one for non-mathematicians. :-) How to replace whitespaces in a filename? i tried it the following way:  rename 'bla bla .txt' blabla.txt   But this doesn't work, what's the correct syntax for this case? Is it possible to prevent LUDecomposition from pivoting? How to add sysadmin to user in SQL Server 2008 when no sysadmin accounts exist I have a SQL server 2008 instance running. Unfortunately during testing I deselected the sysadmin rights for my login and now can't readd it (because I don't have sysadmin rights).  There are no other sysadmin accounts for the instance except SA.  I was set up for just Windows Authentication so I hacked the LoginMode in the registry to 2 so I could login as SA using Sql Authentication. This does indeed set the login mode to Mixed, however the SA user is disabled by default and I can't reenable it because I am don't have sysadmin rights.  How do I enable the SA login so I can get in and reassign the sysadmin to my normal account? Is there a registry setting for this too or is it stored in the master database? right (opposite of left) connected to right (legal term)? I own a notebook running Ubuntu 16.04 with Unity DE that does not have any keyboard LEDs to indicate NUM-Lock or CAPS-Lock states.  It would be useful for me to see them anyway, ideally through an indicator in Unity's panel.   Please note that I only want to see the states of NUM-Lock, CAPS-Lock and optionally Scroll-Lock. I do not want to see whether any other modifier keys like Shift, Ctrl, Alt, Super etc. are currently pressed. I only want a replacement for my missing LEDs.  Are there any working indicators available?    I already have read , but it does not suit my needs. indicator-xkbmod only displays a wrong icon but does not react on keyboard NUM-/CAPS-Lock status changes, kbstate is for KDE only and key-mon does not show the NUM-/CAPS-Lock states but indicates key presses to modifier keys. How can I find such a $z$? (Injectivity of $T(z) = \lambda z + \mu\bar{z}$) We consider $T:\mathbb{C}\to\mathbb{C}$ defined by $T(z)=\lambda z+\mu\overline{z}$, where $\lambda ,\mu\in\mathbb{C}$. I want to prove that if $T$ is injective, then $\lambda\cdot\overline{\lambda}\neq\mu\cdot\overline{\mu}$.  Clearly, if $\mu =0$, then $\lambda\neq 0$ because $T$ is injective.  Now, if $\lambda\cdot\overline{\lambda}=\mu\cdot\overline{\mu}$ and $\mu\neq 0$, then I wanted to find a $z\in\mathbb{C}\setminus\{0\}$ such that $z=-\dfrac{\overline{\lambda}}{\overline{\mu}}\overline{z}$, because we would have that:  $T(z)=-\lambda\dfrac{\overline{\lambda}}{\overline{\mu}}\overline{z}+\mu\overline{z}=\overline{z}(-\lambda\dfrac{\overline{\lambda}}{\overline{\mu}}+\mu)=0$  ('Cause this would prove that $\lambda\cdot\overline{\lambda}=\mu\cdot\overline{\mu}$ implies $T$ is not injective.)  So, the question is, can we always find such a $z\in\mathbb{C}\setminus\{0\}$? How to change from csh to bash as default shell I have csh as my default shell, as shown by echo $SHELL. I want to switch to bash as my default shell. I tried the following approaches to no avail:   With chsh I get:  chsh: can only change local entries; use ypchsh instead.  With ypchsh I get:  ypchsh: yppasswdd not running on NIS master host ("dcsun2").    I only have .chsrc in my home directory and I cannot find any .profile files in /etc. How can I change my default shell to bash? Prove by induction that $$(a_{1}+a_{2}+\cdots+a_{n})\left(\frac{1}{a_{1}}+\frac{1}{a_{2}}+\cdots+\frac{1}{a_{n}}\right)\geq n^{2}$$  where $n$ is a positive integer and $a_1, a_2,\dots, a_n$ are real positive numbers   Hence, show that  $$\csc^{2}\theta +\sec^{2}\theta +\cot^{2}\theta \geq 9\cos^{2}\theta$$  Please help me.  Thank you! I'm running tests of a variable-size-and-contents test set. Data files are added and removed frequently. I'm looking for an automated way of gathering a file list.  All files are in subdirectories of D; I need the full directory and name added to a text file. However, I only need those files that have a "paired" file, which has the same filename but a different extension (so... different filename, but in a structured way). So, if there is a MyFileName.A and MyFileName.B, then I want D/.../MyFileName added to the file list.  There are .A files without .B files, but no .B files without .A files. If a .A has a .B file, then both files are in the same directory.   Any advice? 2D Integration With Quadratic Arg. of Delta Function centering column headers in siunitx table column How can I evaluate $\sum_{n=0}^\infty(n+1)x^n$? How can I evaluate $$\sum_{n=1}^\infty\frac{2n}{3^{n+1}}$$? I know the answer thanks to , but I'm more concerned with how I can derive that answer. It cites tests to prove that it is convergent, but my class has never learned these before. So I feel that there must be a simpler method.  In general, how can I evaluate $$\sum_{n=0}^\infty (n+1)x^n?$$ SQL Server - Best way to get identity of inserted row? What is the best way to get IDENTITY of inserted row?  I know about @@IDENTITY and IDENT_CURRENT and SCOPE_IDENTITY but don't understand the pros and cons attached to each.  Can someone please explain the differences and when I should be using each? I'm using Python, and would like to insert a string into a text file without deleting or copying the file. How can I do that? Why does a helium filled balloon move forward in a car when the car is accelerating? I noticed that when I had a helium filled, latex balloon inside of my car, it moved forward in the cabin as I accelerated forward. The faster I accelerated forward, the faster the balloon went from the back of the car to the front of the car. The balloon didn't have a string.  This became a game with my 4 year old as we drove home. We figured out where the balloon would go based on how fast I accelerated, turned corners etc.  I expected that it would act a lot like the water in a cup does, but it was the total opposite it seemed.  What forces caused this behavior?  I assumed it has something to do with the fluid dynamics in the closed cabin, but I can't figure it out.