Document Information Panel issue
Managed metadata columns in document information panel with multiple content types
Java; String replace (using regular expressions)? As part of a project for school, I need to replace a string from the form:  5 * x^3 - 6 * x^1 + 1   to something like:  5x&lt;sup&gt;3&lt;/sup&gt; - 6x&lt;sup&gt;1&lt;/sup&gt; + 1   I believe this can be done with regular expressions, but I don't know how to do it yet.  Can you lend me a hand?   P.S. The actual assignment is to implement a Polynomial Processing Java application, and I'm using this to pass polynomial.toString() from the model to the view, and I want do display it using html tags in a pretty way. How do I check if an array includes a value in JavaScript? What is the most concise and efficient way to find out if a JavaScript array contains a value? This is the only way I know to do it: function contains(a, obj) {     for (var i = 0; i &lt; a.length; i++) {         if (a[i] === obj) {             return true;         }     }     return false; }  Is there a better and more concise way to accomplish this? Reducibility of polynomials modulo p How to transfer between International T2 to Domestic 1B terminals in Mumbai? I will be arriving in Mumbai Terminal T2 on a Turkish Airlines international flight. I have a separately-purchased IndiGo ticket 5 hours later from Terminal 1B (Domestic). In the past I heard of a free bus to transfer.    Is that still the case and if not how do I get to Terminal 1B from Terminal 2? This is a small exercise that I just can't seem to figure out. When I see it I'll probably go 'ahhh!', but so far I haven't made any progress.  I'd like to prove that any linear functional $\phi$ on $\ell^\infty$ that is positive, i.e. for any $(x_n) \in \ell^\infty$ such that $x_n \geq 0$ for all $n \in \mathbb{N}$ we have $\phi((x_n)) \geq 0$, is a bounded linear operator and has $\|\phi \| = \phi((1,1,...))$.  Nothing I have tried worked so far, so any hints would be appreciated, thanks! Induction proof (bitstring length) Theorem : The number of bitstrings with the length $x$ that begin with $1$ and/or end with $0$ is  $3 \times 2^{x-2}$.  I know there are easier ways to prove this but I must figure out how to do it with induction. What are all the common undefined behaviours that a C++ programmer should know about?  Say, like:  a[i] = i++; Relation Between Bayesian Estimation and Maximum a posteriori estimation Is maximum a posteriori estimation some kind of Bayesian Estimation?   If yes, can you point out other Bayesian estimators?  Edit:  So I've come to know the following (don't know if they are correct):  MAP finds the mode of the posterior, and Bayesian Estimator finds the distribution of that posterior with respect to the estimating parameters. And in order for Bayesian Estimator to find the optimal parameters, some particular risk function (like Mean Squared Error, 0/1 error etc.) must be defined.  So it seems these two estimators have nothing in common except they both incorporate prior into their estimation. Or is it possible that MAP is some special case of Bayesian Estimator with some particular risk function. If $f:[a,b]\to \mathbb{R}$ is continuous and nonnegative and $\int_a^b{f}=0$, then $f(x)=0$ for all $x\in [a,b]$ inequality with three variables and condition How can I fix "unbalanced brackets" in my data tag? Often, when making a command block contraption, you need to set an entity's data tag. These tags can sometimes be very long, with many layers of nested curly and square brackets. For example, this is the command to summon a villager with a single custom trade:  /summon Villager ~ ~ ~ {Profession:3,Career:2,Offers:{Recipes:[{buy:{id:minecraft:diamond,Count:6b}},sell:{id:minecraft:diamond_hoe,tag:{ench:[{id:16s,lvl:10s}]}]}}   The single-line command block interface of Minecraft makes it incredibly difficult to find and fix errors, especially when it comes to mismatched brackets. In fact, for illustration purposes, I put an error in the above command.  What techniques can I use to find and fix unbalanced square or curly brackets when writing long and complicated data tags? Error Code: 1215. Cannot add foreign key constraint (foreign keys) Does the rank-nullity theorem hold for infinite dimensional $V$? The rank nullity theorem states that for vector spaces $V$ and $W$ with $V$ finite dimensional, and $T: V \to W$ a linear map,  $$\dim V = \dim \ker T + \dim \operatorname{im} T.$$  Does this hold for infinite dimensional $V$?  According to , the statement is false.  But according to , page 4, the statement is still true.  I'm thoroughly confused. How to align a cluster of points? If you have a cluster of points selected like this:    how do you align the points so that they create a flat plane? How do I create a file of size 10M, format it with ext3 filesystem and then mount it in /media/fuse?  I tried with  mkfs -t ext3 file   then to mount it  mount -t ext3 file /media/fuse   It didn't work because it said that file wasn't a block device. Can anybody help me? Is there a software in Ubuntu that can analyse the cross references (theorems, lemmas, equations, etc.) in a tex project? There are some software to analyse the cross references among codes (Java or C++). I used to use a software for code analysis under Windows many years before. But I can't remember the name. On linux, an example might be LXR Cross Referencer.   Is there a similar tool that can analyse the latex files to find out the cross references of theorems, lemmas, propositions and equations? I am a new user, who has just been told to run / execute a command. The answer has some text with a grey background like this text here or  sometimes this text here.   However, I don't know what "run" or "command" means in relation to Ubuntu.  How do I do this?    This is intended for use as a Q&amp;A you can link to when you tell someone to run a command. How can I know about the type of the airplane before booking How can I know the type of an airplane before reservation? I want to know if it is Boeing or Airbus and the model if it's possible. Can I use websites such as SkyScanner for this purpose? I've occasionally noticed an OP who will edit their own question and destroy it completely, always leaving some kind of graffiti-like scrawl in its place.  This seems to happen on low-quality questions by low-rep users, and the moment of self destruction tends to occur after the question is closed or otherwise devolves into a communication breakdown between the poster and the community.  Here are some examples:        It seems like the poster usually does this in anger (1st and 3rd example), or else is just confused about how to delete their question (2nd example).  My question is about how this should be handled. In the past I wasn't sure, so I always flagged for mod attention. However I notice the solution on all of these was to just do a rollback (I did this myself on the 2nd example after nothing happened). Is this a good enough approach, or should a flag be used?  What about with particularly obnoxious users like in the third example, where the guy came back to do it again? Has the Doctor’s memory been reset? At the end of The Time of the Doctor, it is shown that Matt Smith has received an entire new regeneration cycle and using it he regenerates into Peter Capaldi. Capaldi's first question to Clara is about how to fly the TARDIS. Does this mean there has been a memory reset for the Doctor?  If so, has he forgotten his true name?  If he has forgotten his true name, then he can't bring back the Time Lords now can he?