I want to make a special villager that will trade a custom structure block upon the given items. I don't know how to get a villager to trade items with NBT tags though. What would I do with this example:  /summon Villager ~ ~ ~ {Profession:0,CustomName:"Carpenter",CustomNameVisible:0,Career:4,CareerLevel:42,CanPickUpLoot:0,PersistenceRequired:1,Silent:1,Invulnerable:1,Attributes:[{Name:"generic.knockbackResistance",Base:"1f"},{Name:"generic.movementSpeed",Base:"0f"}],Offers:{Recipes:[{buy:{id:"stick",Count:8},buyB:{id:"wooden_pressure_plate",Count:1},maxUses:9999999,sell:{id:"structure_block",Count:1},rewardExp:false}]}}
I am making a Minecraft Mini Game adventure map, and one of the levels has a /setblock command, I am using the command in a way to spawn an item in a chest (Wooden Button) I need the wooden button to have CanPlaceOn tag so it can be placed on a log. I have tried this command: setblock 294 5 -1251 minecraft:chest 0 replace {Items:[{Count:1,Slot:0,id:minecraft:wooden_button,CanPlaceOn:[log]}]}`
Firstly, I apologise that this question is specific to two polynomials. I understand that this post will not help a lot of people, and for that I am sorry. I will make it up to you all by anwsering lots more questions in the future! However, as my lecturers enjoy time off on the weekend, I am unable to ask this to anyone else who would know what the heck I'm talking about. Sorry if my notation is not widely used, I can elaborate more if required. Please excuse my poor Latex too.  Let:  $B = Y^2 - X^3 + X$, and   $F = (X^2 + Y^2)^3 - 4X^2Y^2$.  I wish to find the intersection number of $B$ and $F$ at $P = (0,0)$  i.e $I(P,F \cap B). $  However, I want to use the following proposition to do this:  If $P$ is simple on $B$ then $I(P,F \cap B) = ord_P^B(F) $.  I will omit proving that $P$ is simple on $B$ as I hope it is clear to see it is.  I know that $I(P,F \cap B) &gt; M_p(F) * M_p(B) = 1 * 4 $, where $M_P(G)$ is the multiplicity of $P$ on $G$.  Now, consider the Image of $X$ and $Y$:  $K[X,Y] \longrightarrow \frac{K[X,Y]}{Y^2 - X^3 + X} \longrightarrow O_P(Y^2 - X^3 + X)$  $X \longrightarrow x$  $Y \longrightarrow y$  Where lower case denotes the image.  Then $ord_P^{Y^2 - X^3 + X}((X^2 + Y^2)^3 - 4X^2Y^2)$  Can be found by substituting $y^2 = x^3 - x$ into $(x^2 + y^2)^3 - 4x^2y^2$  Which gives:  $ord_P^{Y^2 - X^3 + X}(x^9+3x^8 -5x^6 -4x^5 +3x^4 +3x^3)=3$  i.e $I(P,F \cap B) = 3$, a contradiction to  $I(P,F \cap B) &gt; 4$ as above.  The correct answer I know is 6, so where have I gone wrong? Escaping regex string I want to use input from a user as a regex pattern for a search over some text.  It works, but how I can handle cases where user puts characters that have meaning in regex? For example, the user wants to search for Word (s): regex engine will take the (s) as a group.  I want it to treat it like a string &quot;(s)&quot; .  I can run replace on user input and replace the ( with \( and the ) with \) but the problem is I will need to do replace for every possible regex symbol. Do you know some better way ? . If you filter out a range of wavelengths, how can you calculate the energy from the remaining wavelengths?   To make it concrete, say we filter everything below 450nm or alternatively above 700nm. I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working. Natbib In-Text Citation displays (author?) I have taken a look through many other questions on this subject but cannot seem to fix my issue. Essentially while references display correctly I cannot get the author citation to appear in my text despite running pdflatex followed by bibtex followed by two more runs of pdflatex. Any help would be appreciated.  Sample tex file:  \documentclass{article} \usepackage{natbib}  \begin{document}  Blahblahblah \citet*{Test12}.  \bibliographystyle{plain} \bibliography{refs}  \end{document}   refs.bib:  @article{Test12, author = "John Smith", title = "Test Article", year = "2012", journal = "The Test Journal" }   Output: Case-sensitive Google search Is there any way to make a Google search case-sensitive? Wifi doesnt work on fresh ubuntu 16.04 So, the question pretty much says it all. I'm on Snow Leopard, and I do a lot of web development, particularly in Rails 3 which makes heavy use of the console.  I've seen some notable bloggers etc. mention Zsh as their preference over Bash, but I don't know what difference it would make.  Could anyone give me a good comparison of what difference there is and what might make one prefer one option or the other? Using Model to equally distribute points, spatially within known geometry using ArcGIS ModelBuilder? Is it possible to create a model in ArcGIS ModelBuilder where you simply state number of points and an area in the form of a polygon to get the model to try and equally space out the points based on the geometry of the polygon and number of points? How can I create an AddIn to ArcGIS Pro and where can I find it from ArcGIS Pro application? "Reality" of EM waves vs. wavefunction of individual photons - why not treat the wave function as equally "Real"? In thinking how to ask this question (somewhat) succinctly, I keep coming back to a Microwave Oven.  A Microwave Oven has a grid of holes over the window specifically designed to be smaller in diameter than the wavelength of the microwaves it produces, yet larger than the wavelengths of the visible light spectrum - this is so you can watch your food being heated without getting an eye full of microwaves.  The "realness" of electromagnetic waves seems indisputable - both from the microwave example above, and also because if I want to broadcast a radio wave with a certain wavelength, then I need to make sure I have an antenna of corresponding length to produce the wave I'm looking for.  Furthermore, we discuss and treat these waves as real, measurable "objects" that exist and can be manipulated.     Now, if I want to describe the behavior of my Microwave Oven in the framework of QM (let's pretend my oven is going to only produce 1 photon of energy corresponding to a wavelength of the microwave spectrum for simplicity) then I'll describe the behavior of that photon as a wavefunction that evolves over time and gives a probability distribution within my microwave that similarly does not allow the photon to pass through the safety grid and exit the oven cavity giving me a retinal burn.  The difference is, the wavefunction is never treated as something "real" in this description.  When the safety grid is described as working to protect you because it has holes smaller than the wavelength of the classical waves it's blocking, this is a useful description that seems to describe "real" objects/be-ables.  While it is possible to describe why an individual photon has low probability of passing through the same grid but extended physical properties such as wavelength (in space) are treated as non-real because we're dealing with a point particle and with behavior described by something we also treat as non-real (the wavefunction); it seems unclear to me why we insist this wave function which predicts behavior of physical measurements so well is somehow "non-real."    Put another way, if we have no problem treating EM waves as "Real," then why do we insist on treating the wavefunction that describes the same behavior as "unreal?"  I understand there is recent research (Eric Cavalcanti and his group for one) trying to argue this point, but as every respectable physics professor, I've ever encountered, has treated the wavefunction as an indisputably non-real mathematical tool, I needed to ask this community for an answer. I've run across the following snippet in themes from time to time:  if ( ! defined('ABSPATH')) exit('restricted access');   It's at the beginning of some (all?) PHP files in a theme and it's supposed to prevent direct access of the file by nefarious sources.  I see that this isn't included in Twenty Ten or Eleven and I've never seen it recommended in official WordPress documentation. It seems like a good idea to me, but I also don't know enough about security to judge it and can't find much with Google.  Is this something I should have in my custom themes? If so, should it be in all PHP files or just some? d'Alembert-like functional equation: $f(x+y)+g(x-y)=\lambda f(x)g(y)$ Inner border over images with CSS? Why do I get "Required key not available" when install 3rd party kernel modules or after a kernel upgrade? This issue happens only on UEFI systems with enabled Secure Boot.  When I try to install DKMS modules like VirtualBox, Nvidia, or Broadcom drivers, they do not install and I get Required key not available when I try to modprobe them.  VirtualBox complains that vboxdrv is not loaded.  Broadcom wl driver is shown in lspci -k as a kernel module but is not in use. sudo modprobe wl throws Required key not available.  Also this issue may happen when I install some kernel modules from git sources.  This issue may appear after a kernel update as disabled wireless adapter, black screen after a reboot, etc.   How can I fix it? I'm looking for a short story whose title I can't remember.  In it a wealthy man practices cloning and consciousness transfer to achieve immortality, often parading older bodies around his estate naked (not a nice guy). The story follows a final transplant, which doesn't go as expected. The man is left trapped with his memories and no ability to speak, while the clone walks off behaving exactly as he would. Do Mandalorians truly never remove their helmets? In episode 3 of The Mandalorian, it is said that Mandalorians never remove their helmets for any reason. Really? Not even to sleep or bathe? Is there any canonical source for this idea? I’m going to assume that the “never” implies “Never removes their helmets in public…” right?  But in flashback scenes to the Mandalorian’s childhood, nobody is really pictured wearing Mandalorian armor let alone helmets. They simply seemed like basic humans who might just be unified by wearing maroon wardrobes all the time.  So what is the deal with this claim? What is the canonical context of the claim?      Looking for in-universe, canonical explanations; not armchair speculation and theories. If none (currently) exist, legends explanation would suffice. Regardless, please provide references and context. I have been trying to install a fresh copy of Ubuntu 14.04 (64 bit version) on my desktop PC from a USB memory stick, but I'm experiencing a problem.  Each time I attempt an install I received an  "[Errno 5] Input/output error", followed by the following message before the installer exits:  "The installer encountered an error copying files to the hard disk: [Errno 5] Input/output error This is often due to a faulty CD/DVD disk or drive, or a faulty hard disk. It may help to clean the CD/DVD, to burn the CD/DVD at a lower speed, to clean the CD/DVD drive lens (cleaning kits are often available from electronics suppliers), to check whether the hard disk is old and in need of replacement, or to move the system to a cooler environment."  In order to attempt to remedy this I have so far tried installing Ubuntu to two different hard disks, one of which is brand new, and each time I have received the same error "Errno 5" message. I have also tried installing from 3 different USB sticks using torrent and Ubuntu site iso images burned using both Unetbootin and Startup Disk Creator.  Again, these measures have proved fruitless.  The installation process varies depending of the iso I use, with the Ubuntu download page iso exiting at an earlier stage compared to the torrented iso.  The later torrent iso returns an error and exits when I am prompted for my name, computer's ID and password.  I've never experienced anything like this when installing previous versions of Ubuntu.  I'm absolutely stumped!  Does anyone have any more ideas? Sequence of a product of functions in $L^p. L^q$ with $p,q$ conjugate The question is: if $f_i$ is a sequence of functions in $L^p$ converging to $f$ and $g_i$ a sequence in $L^q$ converging to $g$ show that $f_ig_i$ converges to $fg$ in $L^1$ for $p,q$ finite and $\frac{1}{p}+\frac{1}{q}=1$. Does this result hold if $p=1, q=\infty$?  So I think I showed the first part. $||f_ig_i-fg||_1=||f_ig_i-f_ig+f_ig-fg||_1\leq||f_ig_i-f_ig||_1+||f_ig-fg||_1 = ||f_i(g_i-g)||_1+||g(f_i-f)||_1\leq||f_i||_p||g_i-g||_q+||g||_q||f_i-f||_p$   (by Holder's inequality) which goes to $0$ as $i\rightarrow\infty$.  However the second part of the question throws me off because I don't see why this proof doesn't work just as well for $p=1,q=\infty$.  Am I missing something? Does the second part also hold? How to solve the equation $\phi(n) = k$? Let $\phi(n) $ is the numbers of number that are relatively prime to n.   Then, how could we solve the equation $\phi(n) = k, k &gt; 0?$   For example:    $\phi(n) = 8 $  I can use computer program to check all numbers that are relatively prime to $n$, but I think there must be an easier way to approach this problem.    Base on this formula: $$\prod_{i=0}^{k} p_{i}a^{a_i} $$ The only thing I can see is n must not have a prime factor > 9, otherwise $\phi(n) &gt; 8 $. I really don't know where to start :( ? A hint would be greatly appreciated.