Minecraft 1.13.1 Inventory Count NBT Tag
How can I filter items with a certain enchantement?
Generating random points uniformly on a disk I have to randomly generate 1000 points over a unit disk such that are uniformly distributed on this disk. Now, for that, I select a radius $r$ and angular orientation $\alpha$ such that the radius $r$ is a uniformly distributed variate from $r \in [0,1]$ while $\alpha$ is a uniformly distributed variate from $\alpha \in [0, 2\pi]$ using the following code r &lt;- runif(1000, min=0, max=1)  alpha &lt;- runif(1000, min=0, max=2*pi) x &lt;- r*cos(alpha) y &lt;- r*sin(alpha) plot(x,y, pch=19, col=rgb(0,0,0,0.05), asp=1)  Then I look at my sample space and it looks like this:  This obviously doesn't look like a sample with uniform distribution over the disk. Hence, I guessed that the problem might be occurring as a result of a lack of independence between the variables $r$ and $\alpha$ in contingency to how they've been linked computationally. To take care of that I wrote a new code. rm(list=ls()) r &lt;- runif(32, min=0, max=1) df_res &lt;- data.frame(matrix(c(-Inf, Inf), byrow = T, nrow = 1)) for (i in 1:32) {   for (j in 1:32) {     alpha &lt;- runif(32, min=0, max=2*pi)     r &lt;- runif(32, min=0, max=1)     df &lt;- data.frame(matrix(c(r[i],alpha[j]), byrow = T, nrow = 1))     df_res &lt;- rbind(df_res,df)   } } df_res &lt;- subset(df_res, df_res$X1 != -Inf) x&lt;- df_res$X1 *cos(df_res$X2) y &lt;- df_res$X1 *sin(df_res$X2) plot(x,y, pch=19, col=rgb(0,0,0,0.05), asp=1)  And, yet again the sample looks non-uniformly distributed over the disk  I'm starting to suspect that there is a deeper mathematical problem going on in the vicinity. Could someone help me write code that would create a sample space uniformly distributed over the disk, or explain the mathematical fallacy if any in my reasoning? I've been struggling with this all day today. I imagine it's not very hard, but my algebra skills are terrible. So, how can I show that if $m&gt;n$ and $a$ is a positive integer, then $$a^{2^n}+1 \mid a^{2^m}-1.$$ I just can't get a coherent picture of what I'm supposed to do. If this too (see yesterday's question) boils down to the Unique Factorization Theorem, I would be very grateful for any intuition on how to think about this! Over on another network site, a helpful user corrected the grammar of .  The answer now says     I believe it's valid.   where I originally wrote     I believe it valid.   Is the original sentence gramamatically (or at least idiomatically) correct or do I absolutely need a form of 'to be' here? (What's more, is 'to be' a copula or an auxiliary verb if used like this?)  I am quite certain that I have seen sentences like the original one in the past, but I am uncertain where. Given that I am frequently exposed to the somewhat made-up English of authors in the fields of sci-fi and fantasy, I might have fallen into a trap here.  Edit: I don't doubt that the correction is valid and enhances readability. How do I reset GNOME to the defaults? I was playing around with some settings, and now I need to reset GNOME to it's defaults - how do I do that? The question of whether P=NP is perhaps the most famous in all of Computer Science. What does it mean? And why is it so interesting?  Oh, and for extra credit, please post a proof of the statement's truth or falsehood. :) Summarizing flatness of county with statistic Elevation variance per square mile I need to classify every county in the US as either hilly, moderately hilly, or flat. Accuracy is not critical, just a rough classification. I used R and followed the advice in  answer to import elevation and counties and calculated the zonal variance. This was inherently biased towards larger counties since they have more surface for hills, so I need to divide by area. If I divide variance by square miles does that reasonably represent hilliness? The preliminary results seem decent, with the highest values being places like Colorado, Hawaii, Montana, etc. Solving the complex equation $\sin(z) = \cos(z)$ To find the complex numbers z satisfying $\sin(z) = \cos(z)$, can I say: $$\sin(z) = \frac{(e^{iz}-e^{-iz})}{2i}=\frac{(e^{iz}+e^{-iz})}{2}$$   and solve for z? So we then reduce this to $$-e^{-iz} = e^{-iz}$$ but this doesn't look right I need to find the closure of these sets on the ordered square: $$A = \{(1/n)\times 0 | n\in \mathbb{Z}_+\}$$ $$B = \{(1-1/n)\times \frac{1}{2}| n\in \mathbb{Z}_+\}$$ $$C = \{x\times 0 | 0&lt;x&lt;1\}$$ $$D = \{x\times \frac{1}{2}| 0&lt;x&lt;1\}$$ $$E = \{\frac{1}{2}\times y | 0&lt;y&lt;1\}$$ I know that the closure is just the set itself united with its limit points. For $A$, the set of limit points, I imagine, are $\{&lt;1,0&gt;\}$, that is, the $x$ coordinate is $1$ and the $y$ is $0$. But  is says the reverse. What am I getting wrong? Following the same reasoning, $B' = \{&lt;1,\frac{1}{2}&gt;\}$ $C' = \{&lt;0,0&gt;,&lt;0,1&gt;\}$ What am I doing wrong? "Dark L" is "L" at the end of the word or after a vowel sound. Example: ball, pull.  "Light L" is "L" at the beginning or before a vowel sound. Example: light, love.  There are 4 explanations of how to pronounce "dark L":   1st explanation: the tongue tip must contact the ridge right behind the upper teeth. 2nd explanation: before the tongue tip must contact the ridge right behind the upper teeth, you must curl the tongue and make sound like /r/ before make the /l/ as in the 1st explanation. 3rd explanation: just put the tongue between upper and lower teeth is enough to make the dark L 4th explanation: the tongue tip must contact the ridge right behind the upper teeth &amp; the back of the tongue raises up (a British teacher teaches that).   see this vid:  and  for more info  So what is the correct way to make the "dark L"? Can you help me decide, what type of transport can I use to travel from one US town to another (it will be a big journey), without flying?  Are buses available, and is there any more suitable method of traveling? When does SQLiteOpenHelper onCreate() / onUpgrade() run? How to show hidden folders in File Manager (Nautilus) on Ubuntu? How do you show a hidden folder (whose name starts with .) in File Manager a.k.a. Nautilus on Ubuntu?  I am somewhat new to Ubuntu and can't seem to find the "view" menu. Missing return statement in a non-void method compiles I'm sure this is a newbie question, but I can't figure this out. I have tried to follow the advice here:  and here:   But I can not seem to be able to generate any font change. I either get no change or error messages.  Here is the output of one failed attempt to change the font to Times using this command:  \rmfamily \renewcommand{\rmdefault}{ptm}     Apparently I either don't have a correct package installed or...  The output says " Metric (TFM) file not found." but I am not sure where to go from there. How do I get permissions to edit system configuration files? I can't seem to edit and save config files in the root system (eg: /etc/dhcp/dhcpd.config); it just says "permission denied" or the save option is blocked in the text editor.  I'm pretty sure I'm a root user, but how do I make sure? If I am a root user, how do I fix this? Is it possible to use text-overflow:ellipsis on multiline text? Redirect non-www requests to www on Amazon Route 53 I want to redirect all requests from example.com to www.example.com.   Preferably, this should happen at DNS level. I tried using PTR records, but that simply fails, returning a 404.  wwww.example.com is an ALIAS for an Elastic Load Balancer.  What’s the simplest way to achieve this? Solving $\sin x\cos3x+\cos x\sin3x=\sqrt{3}/2$ in the interval $[0,2\pi]$ Solve the following trig equation: $$\sin(x)\cos(3x)+\cos(x)\sin(3x)=\frac{\sqrt{3}}{2}$$ in the interval $[0,2\pi]$.  Using trig identities, it is now at $$\sin(x+3x)=\sqrt{3}/2 \tag{1}$$ Next, it has become $$\sin(x+3x)=\sin 60^\circ \tag{2}$$ leading to $$\sin(x+3x)-\sin60^\circ=0 \tag{3}$$ From there, it is unclear what to do. Changing text applied when duplicating file in Finder When duplicating files in the finder, OS X attaches a space followed by 'copy' to the file name. This can lead to some file alphabetizing problems and the copies may appear out of order (not directly subsequent to the original). Is there a way to change the appended text? I would prefer that it says '_1' or _copy. Thanks. I want to know how to get size of objects like a string, integer, etc. in Python.  Related question:   I am using an XML file which contains size fields that specify the size of value. I must parse this XML and do my coding. When I want to change the value of a particular field, I will check the size field of that value. Here I want to compare whether the new value that I'm gong to enter is of the same size as in XML. I need to check the size of new value. In case of a string I can say its the length. But in case of int, float, etc. I am confused.