I'm writing a manual for a class, and I never liked add images as files in my tex, so I'm drawning the logo with this code:   \documentclass{article} \usepackage{tikz} \begin{document} \definecolor{xdxdff}{rgb}{0.5,0.5,1.} \definecolor{qqqqff}{rgb}{0.,0.,1.} \definecolor{cqcqcq}{rgb}{0.75,0.75,0.75} \begin{tikzpicture} \clip(-4.42,-1.90) rectangle (8.03,4.69); \draw [color=red,fill=red,fill opacity=1.0] (-0.67,1.06) circle (2.41cm); \draw [color=white,fill=white,fill opacity=1.0] (-0.66,1.71) circle (1.92cm); \draw [shift={(-0.05,2.21)},color=red]  plot[domain=2.01:4.03,variable=\t]({1.*1.40*cos(\t r)+0.*1.40*sin(\t r)},{0.*1.40*cos(\t r)+1.*1.40*sin(\t r)}); \draw [shift={(-1.60,0.27)},color=red]  plot[domain=-0.48:0.92,variable=\t]({1.*1.08*cos(\t r)+0.*1.08*sin(\t r)},{0.*1.08*cos(\t r)+1.*1.08*sin(\t r)}); \draw [shift={(-1.26,1.06)},color=red]  plot[domain=-1.12:0.68,variable=\t]({1.*1.43*cos(\t r)+0.*1.43*sin(\t r)},{0.*1.43*cos(\t r)+1.*1.43*sin(\t r)}); \draw [shift={(0.42,3.0)},color=red] plot[domain=2.72:4.22,variable=\t]({1.*1.18*cos(\t r)+0.*1.18*sin(\t r)},{0.*1.18*cos(\t r)+1.*1.18*sin(\t r)}); \end{tikzpicture} \end{document}   which gives me this image   How can I color red the thing in middle?


this is my first time here.  So the problem is, i have an object with all my variables like this:  app.Variables = {     var1: 0,     var2: 0,     var3: 0 }   And i want to store this values in a object called Defaults like this:  app.Defaults = app.Variables   But the problem now is, in my code, app.Variables.var1 e.g. get incremented like this:  app.Variables.var1++   And this means, that app.Defaults.var1 get also incremented equal to app.Variables.var1.  What shall i do here?


Solution(s) to $f(x + y) = f(x) + f(y)$ (and miscellaneous questions...)

My lecturer was talking today (in the context of probability, more specifically Kolmogorov's axioms) about the additive property of functions, namely that:  $$f(x+y) = f(x) + f(y)$$  I've been trying to find what functions satisfy this. Intuition says that, for functions over $\mathbb{R}$, the only functions should be of the form $f(x) = ax$ for some real a. Unfortunately I've only shown this is true when the domain of the function is the rational multiples of a given real number.   My question is if it is possible to extend this result (that $f(x) = ax$ given additivity) to the real numbers, possibly without assuming the continuity of f. It seems to me that additivity introduces so many constrains on a function that nothing but the trivial case would be able to sneak through. The following is a summary of my thoughts to date, though they're obviously long and not 'compulsory reading'. :)  When x is rational - Preliminary Investigation  It is not hard to see that:  $$f(x + x + x) = 3f(x)$$  and more generally, for $a\in \mathbb{N}$,  $$f(ax) = af(x)$$ It is not too hard to prove (well, it took half a bus trip ... ) that this also applies first for $a\in \mathbb{Z}$ and then for $a\in \mathbb{Q}$, (for the latter you just need to consider $a=m/n$ and then note that:  $$f\Big(\frac{m}{n}x\Big)=mf\Big(\frac{x}{n}\Big)=\frac{m}{n}\cdot nf\Big(\frac{x}{n}\Big)=\frac{m}{n}\cdot f\Big(n\frac{x}{n}\Big)=\frac{m}{n}\cdot f(x)$$   The reason this little equation is cool is that we can set $x = 1$ and get:  $$f(a)=a\cdot f(1)$$  which is equivalent to what was expected intuitively, namely (after changing $a$ to $y$ and $f(1)$ to $a$)  $$f(y) = a\cdot y$$  as long as y is rational   $y$ is a rational multiple of a real number  But we can do a bit better than that. If we substitute in $x = \sqrt{2}$ or any other real number in $f(ax) = af(x)$ (which we know for rational $a$), you can conduct the exact same argument above and show that, for instance   $$f(y) =  \Big(\frac{f(\sqrt{2})}{\sqrt{2}}\Big)\cdot y=a\cdot y$$  Whenever $y = \frac{m}{n}\sqrt{2}$ i.e. whenever $y$ is a rational multiple of $\sqrt{2}$. Note however, that the value of the coefficient $a$ (i.e. the slope of the line) is apparently completely unrelated to the value taken in the case where $y$ is purely rational.   What I'm actually asking  We still haven't shown that $$f(x) = ax$$ for all $x \in \mathbb{R}$, as the slope of the line may change depending on what real number we are taking rational multiples of. As far as I've shown now, we might have $f(x) = x$ when $x$ is rational, $f(x) = 3x$ when $x$ is a rational multiple of $\sqrt{2}$, etc.  I still feel that $f(x) = ax$ for all $x \in \mathbb{R}$. One reason for thinking this comes from noting that $$f(2) = f(2-\sqrt{2})+f(\sqrt{2})$$  $2$, $2-\sqrt{2}$ and $\sqrt{2}$ are not rational multiples of each other, however the equation above gives a restraint on the slopes of the lines formed by their rational multiples (which we'll call $a_1, a_2$ and $a_3$ for the slopes on the rational multiples of $2, 2-\sqrt{2}$ and $\sqrt{2}$ respectively). We have $2a_1 = (2-\sqrt{2}) a_2 + \sqrt{2} a_3$  There's so many constraints here - all the rational multipes have the same coefficient, whenever 2 (or more) numbers which aren't rational multiples of each other are added together we get another constraint on their coefficients. The trivial solution is just that$$f(x) = ax$$  over $x \in \mathbb{R}$ and I really struggle to see how any other solution could possible squeeze through all these constraints.   Is there an additive function on $\mathbb{R}$ not of the form $f(x) = ax$?


How to grep lines which does not begin with "#" or ";"?

I want to grep smb.conf and see only lines which are not commented.


Visa-free travel: no entry or exit stamp given between UK and French border?

I'm a US citizen traveling through Europe visa-free. I started my trip in Spain and got an entry stamp there. Later, I took the IDBUS from France to the UK and got an exit stamp from France and an entry stamp from the UK. (They made us all get out and go through two separate passport checkpoints.) Yesterday I took the night IDBUS bus back from the UK to Amsterdam. This time, we didn't have to get off the bus for passport checks: a UK official and a French official got on the bus and quickly checked everyone's passports, but no stamps were given. The last stamp in my passport is now my entry stamp into the UK, even though I'm in the Schengen Area again.  I'm confused: at the very least, shouldn't I have gotten an entry stamp from the French official? Is this common? What does this mean in practice? Will the burden of proof be on me to show that I haven't overstayed my 6-month period in the UK or my 3-month period in the Schengen region whenever I go through another border checkpoint?


Can you break the daily rep limit by deleting posts?

Suppose you've hit the daily rep limit with two answers, each earning you 10 upvotes (so, 100 rep from each). Say, you delete one of those two posts, and then the remaining one gets 10 more upvotes. Then, tomorrow, you undelete the one with the +100. Would you get back that +100? If so, you've effectively received 300 points yesterday. Anybody ever tried this or heard about it? I know I'm not the first person to think of this...  p.s. I'm a regular poster on the statistics stackexchange, which is a relatively low-key site, so it's not easy to reach the daily rep limit, so I wouldn't be worried about stapling 100 points onto another day and potentially pushing myself over the limit on that day.


How to extend the text under summation symbol without making extra space

I want to get the following:    I tried the following  \[    a(i,k) \leftarrow     \min\Big\{0, r(k,k) + \sum_{i^{'} | i^{'}\notin \{i,k\}}\max\{0, r(i{'},k)\}\Big\} \]   and got    How can I make the part under the summation extend to left and right without making a space between plus and max as in the first figure?


Converting string to float - java vs javascript

I am trying to correctly convert (parse) a string to float in java, for the number 5755.1115, example:  float fl = new BigDecimal("5755.1115").floatValue(); float fl = (float)5755.1115d;   The issue is that it always prints 5755.1113. It seems it loses precision (I also tried using MathcContext(10) for example but didn't work)  But if I try this in javascript it seems it is working:  var fl = parseFloat('5755.1115'); var str = "" + fl.toPrecision(8); console.log("number: " + str);   It prints the number correctly even if I don't use toPrecision() function.  Can anyone explain how can I achieve this also in Java?  EDIT: My mistake, I forgot to specify that I do not want to use double because I need to keep the data transmission at minimum.


I have this demo  but i dont know how to center this div and inside it to put this text align left. Any suggestion?

BAVARIA 31

(ID : 1021)

            <fieldset class="rating">             <input type="radio" id="star5" name="rating" value="5" />5 stars             <input type="radio" id="star4" name="rating" value="4" />4 stars             <input type="radio" id="star3" name="rating" value="3" />3 stars             <input type="radio" id="star2" name="rating" value="2" />2 stars             <input type="radio" id="star1" name="rating" value="1" />1 star          </fieldset>


Using Newton's Law of Universal Gravitation to find distance, with the question not giving sufficient information to substitute into the equation.

Problem:  $F = \frac{(G m_1 m_2)}{r^2}$  An object of unknown mass is placed directly between the Earth and the Moon such that the forces of gravity acting on the object are equal from both the Earth and the Moon. The distance from the Moon to the object is exactly one-tenth of the distance from the Moon to Earth. Using the above formula, determine the distance from the Moon to the Earth.  Given is:  The factor $G≈6.67∙10−11\mathbf{N(\frac{m^2}{kg^2})}$ is a universal constant.  Mass of Earth $≈5.972∙10^{24}\mathbf{kg}$   Mass of the Moon as $≈7.348∙10^{22}\mathbf{kg}$  Mass of unknown object = $m$  My solution:  $F = \frac{(6.67 *10^-11) m (7.348*10^{24})}{R^2}$  $F = \frac{(6.67 *10^-11) (5.92* 10^22) m}{10R^2}$  As gravitational force acting on the object is equal   $\frac{(5.92\cdot 10^22)}{100r^2} = \frac{(7.348*10^{24})}{r^2}$  $R = 1.24 \cdot 10^4 KM$  Is this a viable solution to the problem? Please provide feedback. Thank you!


bind a click event to a div block generated on the fly using jquery

I have a div which completely created on the fly when the page is loaded and this div is visible to the user and in firebug but when i view the page source its not available.. the content within the div changes dynamically.  im trying to bind a click event to it so when someone clicks on that div to alert a message..  i have go through almost all the suggestions but none of them work  my dynamic div
Hello this a mootoo test
   Tested JQuery functions  $(document).on('click', ".mootoo", function() {       alert("clicked"); });    $('.mootoo').on('click',function() {    alert("clicked");     });    $('.mootoo').live('click',function() {    alert("clicked");     });   Can someone please tell me what am i doing wrong?    actually i cant find the JQ code where it generates the div But im having the exact same problem with this    if you see when i click it doesnt alert "chosen-choices" is the dynamically created class..  in that case i when a user selects and or clicks on that div or box i need to put an alert


Surjective Homomorphisms of Isomorphic Abelian Groups

Is a surjective homomorphism between two (abstractly) isomorphic finitely generated abelian groups necessarily an isomorphism? I know this is true if the groups are torsion (finite) or torsion-free. What about for rings?   The question I really care about is the following.  I have a deg 1 map $f: X \rightarrow Y$, where $X,Y$ are oriented manifolds,  so that $f_*: H_*(X; \mathbb{Z}) \rightarrow H_*(Y; \mathbb{Z})$ is a surjective map. I also know that  $H_*(X; \mathbb{Z}) \cong H_*(Y; \mathbb{Z})$. So I am wondering whether this implies that $f_*$ is an isomorphism.


How does sql server agent access the azure storage blob

Good morning all , I must configure an automated backup to an azure blob storage in the backup script I have correctly configured the credential now what right is needed for the sql server agent startup account to access the storage azure blob thank you for your help


Error Message on Desktop about malformed entry 52 in line file

I am new user to this forum and ubuntu as well. Have used windows only and I am not a coder or programmer, have a very limited knowledge.  My query refers to the error flag on my desktop. A day before Firefox & Tor browsers were running and my system hanged all of a sudden. I didn't think much about it and after a while I just closed it and later on power went off. Afterwards when I started my system, a red flag kind of mark appeared on my desktop at the top which mentioned about "....malformed entry 52 in list file" I have gone through  and tried applying it to resolve but the red flag didn't disappear which means it didn't help. I do not know what all other information will be required, hence kindly let me know. I am using Ubuntu 18.04.  PS: The error message mentioned to run 'Package Manager' but I have been unable to locate it. I appreciate all the help you are offering.  Below is the output obtained using "cat /etc/apt/sources.list"  # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://in.archive.ubuntu.com/ubuntu/ bionic main restricted # deb-src http://in.archive.ubuntu.com/ubuntu/ bionic main restricted  ## Major bug fix updates produced after the final release of the ## distribution. deb http://in.archive.ubuntu.com/ubuntu/ bionic-updates main restricted # deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-updates main restricted  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://in.archive.ubuntu.com/ubuntu/ bionic universe # deb-src http://in.archive.ubuntu.com/ubuntu/ bionic universe deb http://in.archive.ubuntu.com/ubuntu/ bionic-updates universe # deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-updates universe  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu  ## team, and may not be under a free licence. Please satisfy yourself as to  ## your rights to use the software. Also, please note that software in  ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://in.archive.ubuntu.com/ubuntu/ bionic multiverse # deb-src http://in.archive.ubuntu.com/ubuntu/ bionic multiverse deb http://in.archive.ubuntu.com/ubuntu/ bionic-updates multiverse # deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-updates multiverse  ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://in.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse # deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse  ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. deb http://archive.canonical.com/ubuntu bionic partner # deb-src http://archive.canonical.com/ubuntu bionic partner  deb http://security.ubuntu.com/ubuntu bionic-security main restricted # deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted deb http://security.ubuntu.com/ubuntu bionic-security universe # deb-src http://security.ubuntu.com/ubuntu bionic-security universe deb http://security.ubuntu.com/ubuntu bionic-security multiverse # deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse deb https://deb.torproject.org/torproject.org bionic main deb [arch=i386,amd64] https://deb.opera.com/opera-stable/stable non-free # deb-src [arch=i386,amd64] https://deb.opera.com/opera-stable/stable non-free   Update 1:  (A) screenprint of desktop to read the error message correctly   (B) screenprint from terminal, it is in two parts


Hide disk information displayed on boot?

I was wondering if there was any way to hide the disc information message (the one that says X blocks available, X blocks safe or something to that effect. Not sure what that's called.) that I get on start-up. Not that the information isn't helpful, it's just a message which causes unnecessary worry by reminding me of when my previous hard drive was failing. So, like, is there a way to either hide this behind a fancy start-up animation, or even have it buried within the wall of text that just confirms the computer's capabilities (again, not sure what it's called. It's the one that just says [OK] USB Keyboard and stuff like that).


Can I use 3.5 expansions for pathfinder?

Can I use 3.5 expansion books for pathfinder?? I want to because I want to use different things I read in 3.5 expanisions. Also tell me in your answer which are compatible and which aren't. I'm reading up on pathfinder a bit and am curious of how it would play out.  I haven't gotten to play either yet and wanted an outside opinion.  Thank you in advance


NullPointerException when trying to call paint method

I am making a game and it should draw rectangles, so I created a method that draws rectangles. But I don't want just one rectangle, but many. So in a for-loop I try to call the paint method I created. And that is where it gives a NullPointerException.  Method:  public void paint(Graphics g, int i) {      super.paint(g);     g.drawRect(i * 30, 0, 30, 30); }  for-loop:  for(int i = 0; i < (ScreenSize.screenwidth); i++) {              paint(null, i); }   Whole class:  public class World extends JPanel {  public void World() {      // Venster     JFrame World = new JFrame("World");     World.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     World.setUndecorated(true);     World.setLayout(null);      // Objecten aanmaken     JPanel panel = new JPanel();      // Objecten toevoegen     World.add(panel);      // Teken vierkantjes     for(int i = 0; i < (ScreenSize.screenwidth); i++) {         paint(null, i);     }      World.setVisible(true);      // Fullscreen, moet als laatste!     GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().setFullScreenWindow(World); } // Functie om vierkantjes te tekenen public void paint(Graphics g, int i) {     super.paint(g);     g.drawRect(i * 30, 0, 30, 30); }  }


When can a (finite) group be written as the quotient of some other group by its center?

So if I'm given $H$, when I can conclude there is a group $G$ such that $H\cong G/Z(G)$? It's easy to show that non-trivial cyclic groups are not of this form. More generally, any group with the property that all finitely generated subgroups are cyclic (e.g. $\mathbb{Q},\mathbb{Q}/\mathbb{Z}$) cannot be of this form. Are there are any others?


Are there any holidays in Middle Earth, except Yule, Lithe, New Year in Gondor and Durin's Day?

Does any species, in any age, in any of the works by Tolkien have designated days of celebration, except birthdays, besides the holidays mentioned in the  on Wikipedia?


Delete specific or selected property from json data .I do not want to delete all key value pairs just those with Category :null

This is my json data and i wanted to remove the category with null value from my json.   I mean not to delete the "Category":"start" but delete "Category":null. I have seen some answers regarding this but it deletes all the category including "Category":"start" which I do not want.  "First": [{         "category": "Start",         "name": "Start",         "key": 1,         "lastname": "xyz"     }, {         "category": null,         "text": "Step",         "key": 2,         "lastname": "xyz"     }, {         "category": null,         "text": "Condition",         "key": 3,         "loc": "xyz"     }


Script for executing command for a list of files

I need to execute a command for a list of files that convert them from one format to another, say:  conv -option MYOPTION file1 > file1.output   However, I have a list of files in a folder, say:     file1, file2, …, fileN   I need a script that runs such command for each and every file, something like:     script.sh MYOPTION *.TXT   I did some research and found something like:  for f in *; do   echo "$f" done   Now the problems are:   How do I get the "list of files", in my example, *.TXT, into the script so it's mapped to the list of files? (ie. no hardcoded * in the script, it should work also if I only specify one single file) How do I invoke system command in a script? Something like conv -option $1?   Thanks!


I tried to use java.io.FileReader to read some text files and convert them into a string, but I found the result is wrongly encoded and not readable at all.  Here's my environment:   Windows 2003, OS encoding: CP1252 Java 5.0   My files are UTF-8 encoded or CP1252 encoded, and some of them (UTF-8 encoded files)  may contain Chinese (non-Latin) characters.  I use the following code to do my work:     private static String readFileAsString(String filePath)     throws java.io.IOException{         StringBuffer fileData = new StringBuffer(1000);         FileReader reader = new FileReader(filePath);         //System.out.println(reader.getEncoding());         BufferedReader reader = new BufferedReader(reader);         char[] buf = new char[1024];         int numRead=0;         while((numRead=reader.read(buf)) != -1){             String readData = String.valueOf(buf, 0, numRead);             fileData.append(readData);             buf = new char[1024];         }         reader.close();         return fileData.toString();     }   The above code doesn't work. I found the FileReader's encoding is CP1252 even if the text is UTF-8 encoded. But the JavaDoc of java.io.FileReader says that:     The constructors of this class assume   that the default character encoding   and the default byte-buffer size are   appropriate.   Does this mean that I am not required to set character encoding by myself if I am using FileReader? But I did get wrongly encoded data currently, what's the correct way to deal with my situtaion? Thanks.


How can I upload a YouTube video in terminal on Ubuntu 16.04?

How can I upload a YouTube video in terminal on Ubuntu 16.04 64-bit? I'm asking for a complete tutorial.


Prove that $n!=\prod_{k=1}^n \operatorname{lcm}(1,2,...,\lfloor n/k \rfloor)$ for any $n \in \mathbb N$

I try to prove the following formula:  $$n!=\prod_{k=1}^n \operatorname{lcm}(1,2,...,\lfloor n/k \rfloor)$$  I noticed that  $\upsilon_{p}(\operatorname{lcm}(1,2,...,\lfloor n/k \rfloor)) = s$ iff $\lfloor n/(p^{s+1}) \rfloor < k \leq \lfloor n/(p^{s}) \rfloor $


How to detect whether a string is present in stdout without affecting the output?

I have a program called my_program that prints diagnostic message to stdout  I want to detect if the diagnostic messages includes string "TEST FAILURE" and if it does, execute some command after the program is done.   The closest answer I have found is  if [ !my_program | grep "TEST FAILURE" ] then some_cmd fi   However this method will silent all the diagnostic messages. I still want the messages to be shown on the stdout. Some suggest first run the program without using grep, then execute the program the second time and pipe to grep, however my program takes 1 hour to run, I want to avoid running a large program twice.   Any thoughts?


Do I, a Ghana citizen, need a transit visa for transferring between flights at Dubai International Airport?

I’m a citizen of Ghana, and I will be landing at Dubai International Airport, where I will need to switch airlines. Do I have to get a transit visa?


How to output a counter with leading zeros?

I can output the value of a counter in a LaTeX document via:  \setcounter{mycounter}{1} \arabic{mycounter}   Which inserts a 1. But how do I format the output by, for example, adding a leading zero if mycounter is less than 10 in a way similar to what  lets you do by specifying %02d as your format string?


Square of angular momentum operator in spherical coordinates

I want to compute the square of the angular momentum operator in spherical coordinates. I already know how the cartesian components look like:  \begin{align} L_x &= -i\hbar \left(-\sin\phi\,\partial_{\theta} - \cos\phi\,\cot\theta \,\partial_{\phi}\right)\\ L_y &= -i\hbar \left(\cos\phi\,\partial_{\theta} - \sin\phi\,\cot\theta \,\partial_{\phi}\right)\\ L_z &= -i\hbar\,\partial_{\phi} \end{align} The square should then be given by: $L^2 = L_x^2 + L_y^2 + L_z^2$  With that, what I would get is this:   $$L^2 = -\hbar^2 \left(\partial_{\theta}^2 + \cot^2\theta\,\partial_{\phi}^2 +\partial_{\phi}^2 \right) = -\hbar^2 \left(\partial_{\theta}^2 + (\cot^2\theta + 1)\partial_{\phi}^2\right) = -\hbar^2\left(\partial_{\theta}^2 + \frac{1}{\sin^2\theta}\partial_{\phi}^2\right)$$  From the 3 terms in the bracket, the first term comes from $\cos^2\phi + \sin^2\phi = 1$, the second term from the same rule, and the 3rd term is the square of the $L_z$ component. The mixed terms you get, when you square $L_x$ and $L_y$ should cancel:   $$2\,\sin\phi\,\partial_{\theta}\,\cos\phi\,\cot\theta\,\partial_{\phi} - 2\,\cos\phi\,\partial_{\theta}\,\sin\phi\,\cot\theta\,\partial_{\phi} = 0 $$  However, the solution I find everywhere is:   $$L^2 = \left(\partial_{\theta}^2 + \cot\theta\,\partial_{\theta} + \frac{1}{\sin^2\theta}\partial_{\phi}^2\right)$$  I can't find where the error is.


I define a node Q in TikZ:  \node (Q) at (1,1) {};  Now I want to draw a line to the point (2,2) by doing something like (Q) + (1,1). Doing that I got an error. What is the correct way to do that?


I can't insert article with character and programing language script into databse

I have project of create something like blog.  The problem am facing now.  trying to post articles within there are php, html code and contain some character keep failed. later on  it try to use htmlspecialchars($_POST['body']). it change but in frontend the results is dont ' me i s't (opsdd) &lt;====&gt; saya whatis ? ! ---  My code: session_start(); include('../../conn/connect.php'); if (isset($_POST["submit"])) {     $for_query = '';     if (!empty($_POST["sub"])) {         $subject = $_POST['subject'];         $body = htmlspecialchars($_POST['body']);         $menu = $_POST['menu'];          foreach ($_POST["sub"] as $language) {             $for_query .= $language . ',';         }          $year = date("Y");         foreach ($_FILES['file']['name'] as $key => $name) {             $size = $_FILES['file']['size'][$key];             $file = $_FILES['file']['name'][$key];             $extension = explode('.', $name);             $extension = end($extension);             $extension = strtolower($extension);             $random_name = rand();              $images = $subject . "." . $extension;             $save =  $_SESSION['folder'] . '/' . $images;              $url = $images;             if (                 $_FILES['file']['error'][$key] == 0 &&                 move_uploaded_file($_FILES['file']['tmp_name'][$key], "../users/{$_SESSION['folder']}/{$images}")             ) {                 $uploaded[]=$images;                  $for_query = substr($for_query, 0, -2);                 $query = "INSERT INTO content (subject,body,menu,sub,files) VALUES ('$subject','$body','$menu','$for_query','$save')";                 $q = $db->prepare($query);                 $q->execute();             } else {             echo "<label class='text-danger'>* Please Select Atleast one</label>";             }         }     } }


Is there a difference in Ubuntu OS when I buy it on Amazon and the free version available in Ubuntu official site?


I wonder what the correct question form of the following sentence is:     Diet Coke has been made since 1982.   Is it correct to say "How long has Diet Coke been made for?" And should we use the preposition "for" or not? Or is there a better way to form a question?


Sometimes I find native speakers use "have got" and other times "have". I want to know what "have got" here is? an auxiliary verb or what?


If we define a curve as a continuos image of the (unit) interval then one can construct example of so called Peano curve which is the whole square. However if our curve is homeomorphic to the (unit) interval (let us call such a curve by arc) then such situation cannot occur-the dimension is the topological invariant. However recently I've heard that still one can construct arcs of positive measure. How those "big" arcs are constructed?


How do i get the low battery warning back on my MacBook?

I have a MacBook and I did not take care of the battery properly. It started to shut down unexpectedly at around 20% and then even at 30%. I got a new battery and it seems to work fine; it lets me get down to 6%. The only problem is that even with the new battery, a warning does not pop up telling me that it is time to plug in my computer. I was waiting for it to come up when my computer was at 6%, and instead it just died. I don't know if I need to change some kind of setting or what. Any ideas on how to fix this?


Why does $f(z) = z^n$ have no antiderivative only for $n=-1$?

The complex valued function $f(z) = z^n$ has an analytic antiderivative on $\mathbb{C} \setminus \{0 \}$ for every $n$ except for $n=-1$. What is so special about $-1$?   To show why this is such an anomaly, imagine if $z^n$ had an analytic antiderivative on $\mathbb{C} \setminus \{0 \}$ for every $n$ except for $n=3456$. People would demand to know what is so special about $3456$. However, it seems like no one feels the need to explain the anomaly at $n = -1$. What is going on at $-1$?


A bag contains 19 blue balls and 11 red balls. 8 balls are drawn from the bag one by one without replacement. What is the probability that the 8th ball drawn is red?  I am a bit confused so as to how to approach this problem. Bcoz I think, how can i calculate what is going to happen 8th draw, unless I have information about what has happen in the last 7 draws...? Plz explain it ...


Show that a proper continuous map from $X$ to locally compact $Y$ is closed

Let $f: X \to Y$ be continuous and proper (a map is proper iff the preimage of a compact set is compact). Furthermore, assume that $Y$ is locally compact and Hausdorff (there are various ways of defining local compactness in Hausdorff spaces, but let's say this means each point $y \in Y$ has a local basis of compact neighborhoods).  Prove that $f$ is a closed map.  I know that this proof cannot require much more than a basic topological argument. But there's just something that I'm missing.   We can start with $C \subseteq X$ closed, and then try to show that $Y \setminus F(C)$ is open (for each $q \in Y \setminus F(C)$, we would want to find an open set $V_q$ with $q \in V_q \subseteq Y \setminus F(C)$).   Hints or solutions are greatly appreciated.


For reasons beyond my control I need to upgrade a 14.04 release to 16.04 release and no further. Is this possible?   Im sure that sudo apt-get dist-upgrade will just update to the latest.


What are the hexagonal jump point walls?

In Guardians of the Galaxy, Vol 2,        Space travel is accelerated by passing through jump points.  The jump points are illustrated as hexagon-shaped opening in walls that are comprised of hexagon-shaped pieces.     What is the back story of the walls?


Voting a second time on a post after migration

Yesterday I was reading a question on  which I upvoted. While I still had that question open in my browser it was migrated to here. I instantly switched to the migrated question which at that time had as much votes as it had on MSO. I noticed however that there was no more indication that I have voted. So out of curiosity I clicked the upvote button again and to my surprise this did result in an upvote wich allowed me to effectively vote twice on one post. Is this intentional?


Is it ok to say "good morning" at anytime?

A friend of mine told me that you can say "good morning" to a person at any time, if you are seeing him/her for the first time on that day. Is this true?


Dependency is not satisfiable: libtiff4 when trying to install Lightworks on Ubuntu 14.04

I was trying to install Lightworks 11.5.1 (amd64) on Ubuntu 14.04(amd64) but there's a notice: Dependency is not satisfiable: libtiff4. Is there anyway to solve this dependency issue?  Thanks in advance.


For given $k,N\in\mathbb{N}$, how to compute $\sum_{i=0}^Ni^k$?

For given $k$ and $N$, $k,N\in\mathbb{N}$, how to compute $\sum_{i=0}^Ni^k$?  We have: $\sum^N_{i=0}i=\frac{N(N+1)}2$  Also according to what I found in the Internet we have $\sum^N_{i=0}i^2=\frac{n(n+1)(2n+1)}{6}$ (I can prove this formula by induction, but I couldn't obtain it myself)  But how to generalize this for any $k$?


Which past tense of "to light" should I use here?

I know that there are two ways to form the past tense of to light (i.e. lit/lighted). Which one is appropriate for the sentence below?     His thoughts lighted our way.   or     His thoughts lit our way.


If $|z_{1}|=2,|z_{2}|=3,|z_{3}|=4$,then find maximum value of $|z_{1}-z_{2}|^2+|z_{2}-z_{3}|^2+|z_{3}-z_{1}|^2$.  My attempt:I considered 3 circles having centre origin and radii as $2,3,4$. Then I tried invoking the triangle inequality $|z_{1}-z_{2}|\leq|z_{1}|+|z_{2}|$ where equality occurs if origin,$z_{1},z_{2}$ are collinear with origin lying between $z_{1}$ and $z_{2}$. This means that $z_{1}$ and $z_{2}$ lie lie on a common diameter with origin lying between $z_{1}$ and $z_{2}$ and thus maximum value of $|z_{1}-z_{2}|$ will be $2+3=5$. If I apply the same reasoning to $|z_{2}-z_{3}|$, I get $3+4=7$.  So now I have  $|z_{1}-z_{2}|^2+|z_{2}-z_{3}|^2+|z_{3}-z_{1}|^2$.  $\leq 5^2+7^2+|z_{3}-z_{1}|^2$.  Not able to proceed from here bcoz if I apply the same logic it will put $z_{1}$ and $z_{3}$ on different sides of origin due to which $z_{1}$ and $z_{2}$ will lie on same side of origin wich is in contradiction to the very first assumption that origin,$z_{1},z_{2}$ are collinear with origin lying between $z_{1}$ and $z_{2}$.


What would be the Slater's determinant representation for an excited state?

Setup  Introducing this spinorbital notation:  \begin{align} \Psi_1=\chi_{(r1)}\alpha_{(\omega1)}  = 1 \\ \Psi_1=\chi_{(r1)}\beta_{(\omega1)}  = \bar{1} \end{align}  and the Slater's determinant, for a system of two electrons, is:  \begin{align} |\Psi\rangle = \frac{1}{\sqrt{2}} \Big|  \begin{array}{cc} 1 & \bar{1}  \\ 2 & \bar{2}  \\ \end{array}  \Big| = \frac{|1\bar{2}\rangle-|\bar{1}2\rangle}{\sqrt2} \end{align}  Question  Based on the example, what would be the Slater's determinant representation for an excited state like $\Psi_a^r$ (i.e. with parallel spins like: $|\bar{1}\bar{2}\rangle$) and $\Psi_{ab}^{rs}$ (feel free to use any number) ?


I have a  laptop with Win10(Barebones).  Downloaded Ubuntu and copied to a flash drive.  I cannot get it to install.


Received an email saying "A decision has been made on your UK Visa application". What does it mean?

I applied for a UK visa for work 3 weeks ago and received an email (see below) saying that a decision has been made. But I don't know what exactly it means. I called them and they say that they can't retrieve the result. My friend who got her visa approved said that her email didn't look like this. So I was wondering whether this foreshadows an unsuccessful application?     Dear XXXXX      Regarding Visa Application: GWFXXXXXX                For: XXXXX      A decision has been made on your UK Visa application.      If you applied via a US Dept. of Homeland Security Application Support Centre or a VFS Premium Application Centre and chose to have your passport mailed back to you directly, that will take place shortly.      If you submitted your application via a VFS Premium Application Centre and chose to collect your passport in person at the end of the process, they will be in contact with you to provide further guidance.       If anyone contacts you advising that your application is still under consideration or that they can influence the outcome of your application in any way, they cannot - please report any such approach to VisaSheffield@homeoffice.gov.uk.       You should not expect to receive any further emails from this office.      Regards      Sheffield Visa Section      This is an automated message - please do not respond to this email address as incoming mail is not answered. UKVI contact details can be found at www.gov.uk/contact-ukvi-outside-uk      This email is intended for the addressee(s) only.  All messages sent and received by the Foreign & Commonwealth Office may be monitored in line with relevant UK legislation    available at


Can't find wifi drivers for 0bda:a192 Realtek Semiconductor Corp

I bought a Wireless USB Adapter TL-WN823N v2.0 for raspberrypi, but i cant find the corrent driver for it, The output of lsusb is:  0bda:a192 Realtek Semiconductor Corp  i have searched a lot about 0bda:a192, but cant get any information about it.Any help?  Thanks


I was looking at the question "what feedback exactly means"(applied in Op-amps). In the negative feedback even though there is a decrease in the op-amps overall gain, it's widely used because it improves the frequency response of the operational amplifier. So what does this mean exactly?


After spending quite a lot at understanding ,I could still not help myself in clearing this doubt-In free electron sea model used in electrodynamics the actual motion of electrons causes current to flow but as we move to band theory how the simple jump causes current to flow?Simply put, why an electron jump from valence to conduction band causes a current to flow?


Difference between `nmap local-IP-address` and `nmap localhost`

The following IP address is for my network interface  $ nmap 192.168.0.142  Starting Nmap 7.60 ( https://nmap.org ) at 2019-03-09 11:33 EST Nmap scan report for ocean (192.168.0.142) Host is up (0.00047s latency). Not shown: 996 closed ports PORT     STATE SERVICE 22/tcp   open  ssh 80/tcp   open  http 111/tcp  open  rpcbind 3306/tcp open  mysql  Nmap done: 1 IP address (1 host up) scanned in 0.97 seconds   Are those services shown below but not above exactly those that are closed to the outside but open within my local machine?   Are the services whose security that I should worry about exactly those listed above?  Thanks.  $ nmap localhost  Starting Nmap 7.60 ( https://nmap.org ) at 2019-03-09 11:34 EST Nmap scan report for localhost (127.0.0.1) Host is up (0.00046s latency). Other addresses for localhost (not scanned): Not shown: 993 closed ports PORT     STATE SERVICE 22/tcp   open  ssh 80/tcp   open  http 111/tcp  open  rpcbind 631/tcp  open  ipp 3306/tcp open  mysql 5432/tcp open  postgresql 9050/tcp open  tor-socks  Nmap done: 1 IP address (1 host up) scanned in 0.16 seconds


How do I perform a Perl substitution on a string while keeping the original?

In Perl, what is a good way to perform a replacement on a string using a regular expression and store the value in a different variable, without changing the original?  I usually just copy the string to a new variable then bind it to the s/// regex that does the replacement on the new string, but I was wondering if there is a better way to do this?  $newstring = $oldstring; $newstring =~ s/foo/bar/g;


If I execute the following in the terminal it works:  screen -dmS tt-rss-daemon sudo -u www-data /usr/bin/php /usr/share/nginx/www/tt-rss/update.php --feeds --daemon   If I write the following in a Crontab (crontab -e) and restart the machine nothing happens.  @reboot screen -dmS tt-rss-daemon sudo -u www-data /usr/bin/php /usr/share/nginx/www/tt-rss/update.php --feeds --daemon   Have anyone an idea how to correct this?


Is there a standard definition of $\sum_{-\infty}^{+\infty} a_n$?

In my class of Time Series, the professor mentioned about the sequence of real numbers $(a_n)_{n \in \mathbb Z}$ and the sum $$\sum_{-\infty}^{+\infty} a_n$$  I've searched on the Internet but could not find a definition for the sum from $-\infty$ to $+\infty$. Is there a standard definition for this kind of sum?


Where would I get a symbol for a spiral galaxy?

I was hoping there was some astronomy or astrology symbol for the Milky Way, but no luck so far. Anyone have a clever way I could make such a symbol, perhaps one that resembles a spiral galaxy?  Some people have taken this question to be about printing a simple spiral in LaTeX. But most spiral galaxies do not resemble spirals. The Milky Way, for example, has quite a few arms.  One might argue that it resembles an asterisk whose pixels undergo a rotation about the asterisk center, where the angle of rotation is proportional to the pixel radius. But I'm not sure how one would accomplish that kind of rotation in LaTeX — it's just the best thought I've had so far.  I've also looked through the comprehensive list of LaTeX symbols, and I do not see one which resembles a spiral galaxy.


Is convex surface normal in cast iron skillet?

I am new to cast iron skillet. I have cooked with it several times and found the Lodge 12" cast iron skillet has a convex surface which is not observable unless you pour oil on it.  When I cook, the oil move to rim of the skillet and makes the center short of oil. Is it normal?  EDIT: I added the photo of the stove and skillet for reference


Problems with recognizing Ubuntu after Windows 10 Dual-Boot Installation

I have a Dell Inspiron 17-5767 Laptop with Windows 10 home edition. I am trying to make it a Dual-Boot with Ubuntu 16.04.3 LTS Desktop. I installed Ubuntu using Rufus on a 32 GB USB.  When I plug in the USB and start with F12 option, it works fine and recognizes and runs Ubuntu from the USB drive. Then I installed Ubuntu on the hard disk letting Ubuntu split the hard disk and install alongside Windows 10.  Installation shows as successful, and hard disk space is broken up almost equally between two OS's.  When I reboot after installing by hitting power button, a screen pops up (Magenta colored offering Ubuntu, advanced Ubuntu and Windows Server as options).  Select Ubuntu, it starts up.  Shut down, then restart with power, and the Magenta screen comes up again.  Shutdown, select Windows, and Windows 10 pops up.  Shutdown, Startup again, and this time you get no magenta screen offering options, only Windows 10 startup.  If you restart using F12 repeatedly to activate BIOS settings, etc., only Windows 10 shows up as Boot system option.  Run with Ubuntu USB drive in, and rerun F12 option, and it will recognize both Ubuntu and Windows.  If I use Disk Manager to review partitioning, it shows 16 GB  swap and 868 GB other as main region for files under Ubuntu. If you reinstall Ubuntu, it seems to recognizes these partitions as previous Ubuntu installation, and will remove and reinstall at these locations successfully.  So, problem seems to be after installation and startup with Windows, it no longer recognizes Ubuntu installation.  This is with UEFI and Secure Boot disabled, including throughout installation.  What else can I do or what might be the problem?


I have run a simple test.      public static void main (String[] args) throws java.lang.Throwable     {         //Field field = Unsafe.class.getDeclaredField("theUnsafe");         //field.setAccessible(true);         //Unsafe unsafe = (Unsafe) field.get(null);         long start1 = System.nanoTime();         new Main();         System.out.println(System.nanoTime() - start1);         //long start2 = System.nanoTime();         //unsafe.allocateInstance(Main.class);         //System.out.println(System.nanoTime() - start2);         long start3 = System.nanoTime();         MethodHandles.publicLookup().findConstructor(Main.class, MethodType.methodType(void.class)).invoke();         System.out.println(System.nanoTime() - start3);         long start4 = System.nanoTime();         Main.class.getConstructor().newInstance();         System.out.println(System.nanoTime() - start4);     } }   But it appears the following result.  8493 249473724 121496   Why is MethodHandle much slower than Reflection? Since Javadoc said MethodHandle should be faster, is there a way to fix this?


Is it right to use the word "Collapse" to describe what this button do or "Minimize" is more correct?    What the difference in meanings of words "collapse" and "minimize" in context of computer program interfaces?


How do I install Ubuntu on a computer that has a faulty version of Windows XP

How do I install Ubuntu on my old desktop which functioned perfectly well till I got problems with Windows XP? At the moment all I can do is open a few of the files I saved to my USB. All my Excel and Word files on it cannot be opened though because my trying to improve XP by reinstalling it using the original cd resulted in all the programs I had including Office vanishing.   I cannot go to any webpages either as essential files are missing. My desktop only has 256 MB of RAM. My technical skills are zero unfortunately.


I want to draw a table and i used the following code  \begin{table}[htbp]  \centering \caption{Ship simulator required inputs} \begin{tabular}{|c|c|} \hline L_{PP},  L_{WL}, L_{OS}, B, T, T_{a}, T_{f}, C_{B}, D_{P}, `\\` Bulbous bow, Number of bosses, brackets, thrusters. & ship particulars `\\` \hline Required speed or propeller rpm, ship course angle & Mission data \\ \hline BN, weather angle, water temperature & Environment \\  \hline \end{tabular}% \label{inputs}% \end{table}%`   the result of this is as shown in figure    How can i complete the right border of the table ??? I used \\ to break the line of first row


Windows 7 won't boot after installing Ubuntu

I set up a dual boot of Ubuntu with my previous OS Windows 7. But since Ubuntu installation whenever I choose Windows 7 from the OS selection menu I only get a blank screen.   I tried "recommended repairs" in the boot repair tool but it's still showing that blank screen whenever I choose Windows 7. I also tried the update-grub command from terminal but it's still the same. I installed Ubuntu on an unallocated space in my PC.


One of my players is too passive and uninterested

Game is DnD 3.5, not that it matters.   So, yeah, she is playing an Elf Rogue and she is like a ghost during the game.   In the last session, the party was searching for a guy and some Halfling told them that they can meet at midnight and he will take them to this guy. They went to the tavern and waited until it's midnight. The Ranger went early and climbed a tall building to check the surroundings. Wizard and Druid went to the meeting point, and when I asked Rogue what she wanted to do, she said "I go to sleep". I was like "Okay, you go to sleep" and then she literally went to sleep. LARPing at it's finest.  It happened one more time too. There was a lot of talking going on for some time, with PCs tying up two suspected Necromancers and trying to figure out who was the bad guy, and she just went to sleep.  While talking on our Whatsapp group, I was telling the players that I thought of something new. After each session, every player will award someone XP for good roleplaying, being active, etc. And I joked about trying not to award those who fall asleep during play. She suddenly got sensitive about my joke. Anyway, after that, I told the group to throw the old character sheets to garbage because there was a lot of stuff to update. and she said "I don't want XP. I'm sleeping during play anyway. I also lost my old character sheet."  Even when she plays, she is pretty much disinterested all the time. During combat, when she rolls one or two bad attack rolls, she is like "Well, I can't hit anyone anyway" and it's like we almost force her to roll the die. Then she starts playing with her phone while others make their move.  That's pretty much it. She still cares to come to the sessions at least. I'm setting up a quest about her character's background. If that doesn't work, I don't know what else I can do. I don't want to kick her out of the group but things are going in that way. It just downs everyone else in the group and kills the mood.  So, how do engage an uninterested player? If all fails, how do you deal with her?


Does Magic Lantern support the Canon 80D?

It seems that Magic Lantern has several features that is very handy for a photographer, i.e. Focus Peaking and Zebra (which Canon sadly left out in its latest mid-range DSLR) but after searching for compatibility online, I couldn't find any result.


Is there a way to use a WORLD MATERIAL for lighting, and have another WORLD MATERIAL for visuals?

I just can't get the scene to work properly with a single HDR texture. Spent 3 days on this, playing with the material, curves, input, photshop, etc. No way to obtain what I want from a single material. The background is always off in respect to the illumination. In example, if the sky is correctly rendered, like this:  Then the lighting in the scene is far too low. If the sky is wrongfully rendered, like this:  Then the scene is lighted correctly, but the sky looks like s**t. I tried to multiply using FACTOR, the curves, etc. No way. The power coming from the sun (if it's "small" in the sky) is always far less than what I want, and linking the image to FACTOR also changes its visual appearance. My solution Use one material to show the surroundings EXACTLY as one wants, and another material to light the scene so to match the visuals. I am too much noob to get how to do this without spending another week on it, so I'm asking here. My fastest, dirty solution would be:  Make the WORLD MATERIAL with the LIGHTING texture to light the scene the correct way. Cover the world texture by adding a 1 km sphere with the VISUAL texture mapped on it, making it unshaded (i.e.: just render the exact texture color without any other interaction with the ligthing, exactly like the WORLD MATERIAL does), and disabling casting shadows and any other interaction with the scene.  But I am sure there's some cleaner method to do it, probably all inside the SHADER EDITOR. Edit For anyone interested, the additional sphere solution works perfectly. Here below you can see an image from inside the room, and you can see the outside green textured plane blends quite well with the world sphere:  And I have some decent shadows coming in from the windows, as expected. Not perfect, but I still need to work a bit on the lighting texture, that has a too widespread emissive area. Here you can see that the sky looks quite well, almost exactly as I want it:  And this below is the actual WORLD MATERIAL, that gives the lighting to the scene (I just disabled the sphere visibility for this):  And here below is the material used for the sphere:  Don't forget to align the sphere with the world material, and you will probably also need to scale it to -1 on the Y axis, if you keep the default UV. You also need to set the object render options like this:


Give a concrete sequence of rationals which converges to an irrational number and vice versa....  My work  I could give a sequence of irrationals which converges to a rational number...  Let $r\in \mathbb Q,$ $$a_n=\frac {\sqrt 2} n+r$$ But I couldn't give a sequence of rationals which converges to an irrational.. Help me to work out.....


Can a person in the USA fly with an expired driving license?

The company I work for has asked me to attend a training class on the other side of the country.  However my situation is my drivers license expired a few days ago. I do however have a separate printed email stating that the license has been renewed.  This drivers license is my only ID that shows both my name & photo.  Is it possible to be able to board a flight with the expired drivers license and the printed email showing that it was renewed?


Hi  Thanks to people that responded my first question, but now I’m going to elaborate more about my problem.  So, I switched from canon (EOS 600d) to Sony (a7ii) two weeks ago, I gotta say the transition is quite hard since i used canon for like 1 year.  One thing that is quite problematic on sony is that it always washes out the highlight, as you can see on the first picture, the cloud was supposed to be seen but somehow, sony washed it over and it looks bad, meanwhile on canon, and and also my phone, the highlight is not blown out, it is visible, as you can see on the second picture, it’s just fine.  I did check the settings on my camera, and I believe I don’t change that much from default in both camera, i use manual mode, set the white balance on auto, JPEG, and the rest is all just on default, so I don’t really know what is wrong on sony.  If you guys know what the problem is, than your help is needed, if you need to know about certain settings just tell me and I’ll check the setting.  Thank you. And have a great day everyone


Help me, I have installed C drive Windows 10, I want to install this C drive format and install Ubuntu.


In my system i have install noth windows and Ubuntu. After installation of some software it shows unmet dependencies.i Just restart the computer.While log in to the Ubuntu it just showing the login page to type password of the system.After given the password it doesn't go inside it stays in log in page only.I want to recover my Ubuntu data through windows.So help me to recover this problem


Unawarded bounty goes to highest voted answer if accepted answer is from before the bounty?

This strikes me as strange... there's a ... and then a bounty was offered. (as my answer was submitted before, I understand it was ineligible for auto-selection)  However, then my answer was accepted, and the bounty seems to have not been awarded, and thus the bounty went to another answer.  This seems unusual to me. Not that I mind - I'm not going to lose sleep over 100 rep - but it struck me as flat out confusing.  Even if the accepted answer is from before the time the bounty was offered, in the event of an un-awarded bounty, shouldn't the accepted answer take precedence? Or is this by design, and I'm just missing something?   suggests that "the assumption is that the bounty owner was not satisfied with any of the existing answers at the time the bounty was started" but I can't help but wonder that if that's the case... why would they accept one?  (or am I completely misinterpreting everything, and that bounty was in fact not auto-awarded?)


"What is your name and address" - why "is" instead of "are"?

We use "is" with singular but here we use "is" with two things: "name and address". Why?


Prove the following inequality for $a,b,c,d \in (0,1)$:   $$(1-a)(1-b)(1-c)(1-d) > 1-a-b-c-d$$   I have a problem. I don't know if my idea is good  $a=b=c=d $  $(1-a)^4 > 1- 4a $  So, this is true..


What's the anatomy of a columnstore index?

One of the new features in SQL Server 2012 codenamed Denali is the   I know a good bit about regular old row-store indexes, like the b-tree structure, differences in storage between the leaf level and b-tree pages, affects of included fields, optimizing to use them, order of keys, etc.  I'm having difficulty getting any good info on the internals of a columnstore index.     How is it structured? Is there a b-tree?  Some other structure in place? How is data organized? What sorts of specific operators are best suited to use it? Any other anti-patterns to be avoided when using them?   A lot of what I can find out about them are basically the exact opposite of a "normal" index, i.e. no ordering of keys, no included fields, nonclustered ONLY.  Any insights are appreciated.


What are the alternative Android app markets?

How many competing Android markets (other than the Play Store itself) are there and are they any good?  Which ones do you use and why?


Moving a site from a temporary domain to the live domain

So I have been working with Wordpress for almost a year now, almost all of the times i get stuck with the same problem.  When you purchase a hosting you need to give it the domain of the website, now if the domain dont have A record to your host you won't be able to view your website, so you must edit your local hosts file to view it with this domain.  The other option is to work with a sub-domain, which here starts my problem. when you are working with Wordpress it's creating the pages with the Url on the database and than when you finish the website and want to connect to the main domain you need to edit the whole database. (Lets say the wanted domain is xxx.net, and the temp/subdomain is yyy.net)  What are the best ways of moving and connecting the website to the domain after using a sub/temp domain?


How are we able to sort a HashMap<key, ArrayList>?  I want to sort on the basis of a value in the ArrayList.


$\vec{P}=\int \frac{d^3p}{(2\pi)^2}\vec{p}a_\vec{p}^{\dagger}a_\vec{p}$ is the total momentum operator.  How does this operator act on the state $\lvert\vec{p}\rangle=a_\vec{p}^\dagger \lvert0\rangle$?  Note: I know that this should give $P \lvert \vec{p} \rangle = \vec{p} \lvert \vec{p}\rangle$, but I don't see how this should follow.


Show that the group $G$ is abelian if $G/Z(G)$ is cyclic

I have problems doing this exercise:     Let $G$ be a group and $Z(G)$ the center of $G$.      Prove: If $G/Z(G)$ is cyclic, then $G$ is an abelian group.   My attempt:  I think that I have to show $G/Z(G) = \{G\}$, since from this it follows $Z(G) = G$, and so $G$ is abelian. Maybe one way of proving that $G/Z(G) = \{G\}$ is by showing $|G/Z(G)|=1$.   $G/Z(G) \neq \emptyset$ should be clear. Now let's take $g_1Z(G), g_2Z(G) \in G/Z(G)$ aribtrary, and show that they are equal.   Since $G/Z(G)$ is cyclic, I know that there is a $k \in \mathbb{N}$ so that $g_1Z(G) = (g_2Z(G))^k = g_2^kZ(G)$. Since $Z(G)$ is the center, I think I should use that the elements of $Z(G)$ commutate with the elements of $G$. But I have no idea, how I can continue now.  Tank you for your help.  Regards,  S. M. Roch


I'd really appreciate some help in regards to this situation:   "I was lucky enough to see the One Direction in concert".   As native English speakers we know that the "the" is superfluous in this sentence, but I'd really appreciate the rules around the omission of it in some contexts.   For example, It's perfectly fine to say: "I was lucky enough to see the Red Hot Chili Peppers in concert" +the. However: "I was lucky enough to see Take That in concert" -the.  I would love for someone to give me the general rule here. I'm sure the answer is staring me  right in the face!


Consider the following:  $$[ \hat H, \hat x]=\left[-\frac{\hbar^2 \hat p^2}{2m}+V,\hat x\right]\ne0 \text{ in general}$$ But  $$[ \hat H, \hat x]=\left[i\hbar \frac{\partial }{\partial t},\hat x\right]=0 $$ Why are these not in contradiction?


I have a text file somewhere on the SD card.  How can I create a shortcut to this file on the "desktop" to open it immediately?  (HTC Wildfire)


I entered sudo su and I am root now. Is it because my files are on NTFS partition? Despite any numbers I enter the file permission is 777  chmod 644 index.php


How to create very very simple GUI application for Ubuntu?

I want to make a simple GUI Application. Can anybody give me source code of a simple GUI Application? So far, I have been competing in Programming Competitions (I have been using C++ for it) and now I want to get started with Application Development.


Is it possible to install Steam games to two different locations?

I want to build a new PC with a smallish SSD.  I'd like to be able to install some of my games onto the drive (those I care about loading quickly or I play frequently), but have the rest of them on a larger, slower drive.  Anybody know if this is possible?  I'm kind of guessing it's not, but figured I'd ask anyway.


Help text for editing tag-wiki excerpts gives bad advice

The  on tag-wiki excerpts says amongst others:     Avoid generically defining the concept behind a tag, unless it is highly specialized. The “email” tag, for example, does not need to explain what email is. I think we can safely assume most internet users know what email is; there’s no value in a boilerplate explanation of email to anyone.   Also, a possible reason for rejecting tag-wiki edits is:     Simply defining what a [tag] is rarely helps those using it unless the tag's name itself is ambiguous. Excerpts should describe why and when a tag should be used. See the help center for more guidance.   However, when you try to edit a tag wiki, there is a help text on the right-hand side which begins with:     The tag wiki excerpt is a brief plain text introduction to the topic that the tag represents.   This is almost a direct contradiction to the above and at the very least bad advice. I therefore suggest to change this text to something more helpful like:     The tag wiki excerpt is a brief plain text introduction to why and when a tag should be used. It should resolve ambiguities and avoid other common misuses of the tag.


Find the elements of $S_6$ that commute with $(1234)$.

Let $\sigma = (1234) \in S_6$. List all elements in $N(\sigma) = \{\alpha\in S_6 \mid \sigma\alpha=\alpha\sigma\}$.   I know this relates to cycles and orders, but I am having trouble finding the order of $N(\sigma)$ and then the list of elements.


make a script that open two terminal and start projects

I would like to create a script that navigate to 2 project folder, and execute 2 terminal that remain open, so that I don't have to do it everyday. I tried the following : #!/bin/bash cd Repository/project1/ && npm run start:debug cd Repository/project2/local && chmod -x already_made_script.sh  but nothing happen. I did :  Create file with script chmod u+x myscript.sh tried to call the script or double click on it.  what can I fix. Sorry.


Can a character add enhancements to named weapons and armor?

Through standard crafting can enhancements be added to named weapons and armor (like Holy Avenger or Banded Mail of Luck) or do those items stay as they are and are unenchantable?  I see text that says 'usually are preconstructed with exactly the qualities as described here.' (DMG p219,226) but didn't see textual evidence otherwise to answer my question.  My suspicion was that they can be enhanced further because non-magical items are included in the DMG such as Mithril Shirt and Dwarven Plate.  However, I further noticed in table 7-7 (DMG p220) the non-magical items are not italic making me wonder if this means they are further enhanceable and not the others.  The one exception to this is "Mithril Full plate of Speed" where 'speed' is on the list of enhancements making me further wonder if I was right.  But I also see no text defining what italic means in that and other similar tables.  Further unhelpfully, table 7-2 (DMG p216) shows everything italic.  I realize that "A GM can allow anything they want" could be an answer, but I'm looking for book or FAQ cited text for my answer.  Thanks!


If A is an arbitrary 3x3 orthogonal matrix with det(A)=1, then how do I show that the eigenvalues are 1, cos(x)+i sin(x), and cos(x)-i sin(X), where cos(x)=(tr(A)-1)/2. I was thinking that maybe tr(A) equals det(A), and that gives a value for x, but I'm not sure if thats right


I have been sent a 3-fold (4 facet, double-sided so 8 page per sheet) leaflet as a PDF. I'd like to print it but none of the Okular print options offer sticking 4 sides next to each other. It's always a grid.  The PDF is currently presented as one long and thin portrait page per page. I would like to merge these so that the pages are combined in sets of 4 side-by side, leaving a landscape document that I can easily send to the printer.  Just to clarify, there are a lot of questions about merging multiple documents into one. I have no interest in that. I have one document whose pages I wish to merge down.


Prove that $(x^n - 1)$ can divide $(x^{kn} - 1)$ without any remainder.

I would like your help with proving that $(x^n - 1)$ can divide $(x^{kn} - 1)$ without any remainder. I understand that both of these functions can be translated to a similar form such as $(x^2-1)=(x-1)(x+1)$. But I'm not really sure how to do so. Thank you.


How do you validate a binary search tree?

I read on here of an exercise in interviews known as validating a binary search tree.  How exactly does this work? What would one be looking for in validating a binary search tree? I have written a basic search tree, but never heard of this concept.


Expanding electromagnetic field Lagrangian in terms of gauge field

The electromagnetic field tensor is given by $F_{\mu \nu} = \partial_{\mu}A_{\nu} - \partial_{\nu}A_{\mu}$, and it appears in the Lagrangian as  $$L = -\frac{1}{4}F_{\mu\nu}^2 - A_{\mu}J_{\mu}.$$ Schwartz's QFT textbook says that (chapter 8, page 116) $$F_{\mu\nu}^2 = 2(\partial_{\mu}A_{\nu})^2 - 2(\partial_{\mu}A_{\mu})^2,$$ but I do not see how that is correct.   The first step of the expansion gives $F_{\mu\nu}^2 = (\partial_{\mu}A_{\nu})^2 - \partial_{\mu}A_{\nu}\partial_{\nu}A_{\mu} - \partial_{\nu}A_{\mu}\partial_{\mu}A_{\nu} + (\partial_{\nu}A_{\mu})^2$, and I see that the first and last term add up to produce $2(\partial_{\mu}A_{\nu})^2$. However, the second term $\partial_{\mu}A_{\nu}\partial_{\nu}A_{\mu}$ when expanded has a term like $\partial_{0}A_{1}\partial_{1}A_{0}$, and I don't see how this is present in $(\partial_{\mu}A_{\mu})^2 = (\partial_{0}A_{0} + \partial_{1}A_{1} + \partial_{2}A_{2} + \partial_{3}A_{3})^2$.


I'm trying to add an "add more" field to a form in my custom module. I've been looking at the examples module, with no luck.   Here's what I have so far:  $form['#tree'] = TRUE;   $form['names_fieldset'] = array(   '#type' => 'fieldset',   '#title' => t('People coming to the picnic'),   // Set up the wrapper so that AJAX will be able to replace the fieldset.   '#prefix' => '
',   '#suffix' => '
', );  if (empty($form_state['num_names'])) {   $form_state['num_names'] = 1; }  for ($i = 0; $i < $form_state['num_names']; $i++) {   $form['names_fieldset']['name'][$i] = array(     '#type' => 'textfield',     '#title' => t('Name'),   ); }  $form['names_fieldset']['add_name'] = array(   '#type' => 'submit',   '#value' => t('Add one more'),   '#submit' => array('spower_add_more_add_one'),   // See the examples in ajax_example.module for more details on the   // properties of #ajax.   '#ajax' => array(     'callback' => 'spower_add_more_callback',     'wrapper' => 'names-fieldset-wrapper',   ), );  if ($form_state['num_names'] > 1) {   $form['names_fieldset']['remove_name'] = array(     '#type' => 'submit',     '#value' => t('Remove one'),     '#submit' => array('spower_add_more_remove_one'),     '#ajax' => array(       'callback' => 'spower_add_more_callback',       'wrapper' => 'names-fieldset-wrapper',     ),   ); }     function spower_theme($existing, $type, $theme, $path) {   $base = array(     'render element' => 'form',   );    return array(     'spower_my_form' => $base + array(       'template' => 'spower',     ),   ); }  function spower_add_more_callback($form, $form_state) {   return $form['names_fieldset']; }  /**  * Submit handler for the "add-one-more" button.  *  * Increments the max counter and causes a rebuild.  */ function spower_add_more_add_one($form, &$form_state) {   $form_state['num_names']++;   $form_state['rebuild'] = TRUE; }  /**  * Submit handler for the "remove one" button.  *  * Decrements the max counter and causes a form rebuild.  */ function spower_add_more_remove_one($form, &$form_state) {   if ($form_state['num_names'] > 1) {     $form_state['num_names']--;   }   $form_state['rebuild'] = TRUE; }   The problem is that when I click "add more", the entire form is submitted.   If the above isn't clear, I've added the module at  and the spower_elements.inc at .  Thanks for the help.


How to (properly) remove the parentheses around the year in authoryear style? (v3)

I have a question that has been answered a few times, but does not work for me (and also not for another commenter in a previously asked question).   I want to remove the parenthesis around the yead in the bibliography with biblatex style authoryear, and ideally also add a comma and space before it. I have looked at the following questions:        I use biber 2.10 and TexLive 2017/W32Tex.  This MWE should work according to the question v2 above, but does not work for me, i.e. the output is still Author, Anne (2001a). Alpha. The output I need is Author, Anne, 2001a. Alpha.  \documentclass{article}  \usepackage[style=authoryear,dashed=false]{biblatex} \usepackage{xpatch,filecontents}  \begin{filecontents}{\jobname.bib} @misc{A01,author={Author, Anne},year={2001},title={Alpha}} @misc{A02,author={Author, Anne},year={2001},title={Beta}} \end{filecontents} \addbibresource{\jobname.bib}  \xpatchbibmacro{date+extrayear}{%   \printtext[parens]% }{%   \setunit*{\addperiod\space}%   \printtext% }{}{}   \begin{document} \nocite{*} \printbibliography \end{document}


PHp/Apache server side settings that affect encoding

All things being equal, i.e. same code base, same LAMP setup (identical versions too), what server side settings affect charset encoding? I have a problem where the euro sign is displaying correctly locally (€) and incorrectly (as â�¬) on a remote server. I've checked the response headers both locally and remotely and they both return 'Content-Type text/html; charset=UTF-8' and as they are both using the exact same code base they also both have the relevant 'content="text/html; charset=UTF-8"' meta and php header() calls. I'm presuming it's possible an httpd or php.ini setting somewhere but I'm struggling to see it?  Thanks in advance.


Are "start" and "begin" always interchangeable?

I would like to know if "start" and "begin" are always interchangeable in sentences similar to the one below? I know that "begins" is more formal, but other than that is there examples where one of them would sound awkward to use? I know you can't list examples, but I just want to know if it's something I should be aware of when writing.  Suddenly the tree starts/begins to move violently from side to side.  Are "start" and "begin" both completely natural here?


Prove that $\limsup\left(b_{n}a_{n}\right)=\limsup\left(a_{n}\right) $ when $\lim_{n\rightarrow\infty}\left(b_{n}\right)=1$

I'm having trouble with this homework question:  "Let there be a sequence $\left(b_{n}\right)_{n=1}^{\infty}  $ such that $\lim_{n\rightarrow\infty}\left(b_{n}\right)=1$. Let there also be some bounded sequence  $\left(a_{n}\right)_{n=1}^{\infty}$  Prove that the following statement is correct: $\limsup\left(b_{n}a_{n}\right)=\limsup\left(a_{n}\right)  $"  Alright so I sat a good two hours on this question with no major breakthroughs as of yet. I have some semi-proofs all of which use some arbitrary assumptions which I can't make.    Any hints?  Thank you!


Riesz's lemma:  Let $Y$ and $Z$ be subspaces of a normed space $X$ and suppose $Y\neq Z$. Then for every $\theta\in (0,1)$ there is $z\in Z$ such that $\|z\|=1$ and $\|z-y\|\geq\theta$ for all $y$.  Using Riesz lemma prove that   A normed space is locally compact iff it is finite dimensional.  How to proceed ? Should I use the fact that    The unit ball is compact in a normed linear space iff the space is finite-dimensional.


How do i find top journals in my area of interest?

How can you find the top journals in a scientific field? I am an HCI graduate student, but I sometimes write to industrial engineering articles if it involves ergonomics. Right now, I'm trying to understand what standing the journal "IIE Transactions" has compared to other journals in the field of industrial engineering.   I was told that the impact factor is not a good indicator to find top journals. What other indicators are useful for identifing top journals within specific fields, like industrial engineering?


I am trying to install Ubuntu 13.10 on my PC through a USB Flash Drive.  I get to a screen that asks if I want to try Ubuntu without installing it, another option that asks if I want to install it, download some OEM thing and if I want to check for errors in the Ubuntu files.   I try all of them and end up on the Ubuntu loading window and then the screen turns black. Nothing happens after. I have not found a fix for this at all.   Here are my PC Specs:   Model: Lenovo G505   Processor : AMD A6-5200 APU with Radeon HD Graphics 2.00 GHz   Ram : 4.00GB   Operating System : Windows 8.1 64 Bit   Please Help me I really want to install Ubuntu because I have never used it and I would like to experiment with it :D:D:D:D And also, I am a noob with technology so please put your answer as simple as possible so I can understand it :D:D::D


How does Latex compilers integrate packages into its existing core functions?

An example:  If I don't want to number an equation within the equation environment, I need to do two things:   Load the amsmath package at the preamble. Use the command \nonumber at the end of the equation.   Without the amsmath package, the compiler would not recognize the \nonumber command. As far as my understanding goes:   The equation environment is part of Latex's core functions, and there is no package needed to call the environment. Its code specifies that it will always number the equation within. The amsmath package allows the use of the command '\nonumber'.   My confusion is that it seems like the \nonumber command has interfered with the equation environment.  More specifically, the \nonumber command must somehow have communicated with the equation environment because once a \nonumber command is executed, the next equation environment automatically adjusts the numbering.  I find this hard to understand because loading a package doesn't mean erasing the existing commands. Moreover, it doesn't seem to me that the \nonumber command could have modified the code of the equation environment.  My question is: How could the equation environment recognize an unnumbered equation, which was done by a separate package, and adjust its numbering accordingly? More generally, how are packages integrated into existing LaTeX core functionalities?  My question might not have expresses fully my confusion so any additional information would be appreciated.


How do I backup my Ubuntu Phone so I can restore it to the same state after a factory reset? To specify, I'm looking for the following:   Backup configuration Backup apps Backup app configuration Backup files   Copying the /home/phablet/ folder will save the files, but does this also save all the config files and programs?


How to change the font size only in one column of a table/tabular?

Is there any way to reduce the font size in a table/tabular but only in one of its columns without repeating the size command in each cell of that column?  Thanks.


In the review queue, audits should only fail (or pass) you once you actually would take action

I just had a review queue audit question "fail" because I clicked "Close" on a post that the community felt should be left open. This particular meta question is about the close vote review queue, but the same principle should apply elsewhere.  Audits are good. I see what the idea behind them is, and for the very most part I agree wholeheartedly. However, just clicking "Close" in the review queue doesn't actually do anything. All it does is bring up a dialog box with a bunch of options for how to close the question. Nothing of significance happens until you actually vote to close.  I often pull up that dialog box to refresh my memory if I am uncertain what is considered on topic by the community on various sites. For example, product recommendation questions are off topic on SuperUser but not on Unix & Linux. On the other hand, on Unix & Linux non-reproducible problems are specifically off topic, which they are not on SuperUser (though posts about nonreproducible problems may be off topic for other reasons). Since there can be quite a bit of overlap between the sites, sometimes I'd rather just check to be sure before deciding to leave a question open. There have been a number of times when actually checking has made me decide that a question really is not off topic where it was posted; it might have been off topic on a different site, but it's fine on this one according to the earlier judgement of the community.  However, unless you really go out of your way, before you're able to make that determination you have already failed the audit.  If the issue at stake is (as has been indicated previously) that  in voting, that can easily be detected (handled, mitigated, fixed, ...) by putting in some random votes in the audit "close" dialog box, or not displaying any votes at all in the case of audits. Or even possibly showing exactly such a set of "wrong reason" votes. The reason for that being that what one should be trying to catch is people taking action based on incorrect judgment, which is quite different from just clicking on the "Close" button quite possibly without even a clear intention (see above about the memory refresher).  Hence:  In a review queue audit, only actually doing something that would ordinarily result in taking action should cause you to pass or fail the audit. That is, for example, clicking "Close" in the outer view shouldn't fail you even if the question should be left open, although clicking "Vote To Close" in the resultant dialog box should.


How can i remove duplicates from the output of tshark output

sudo tshark -i ppp0 'tcp port 80   \ and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)'   \ -R'http.request.method == "GET" && http.request.uri contains "/ABC/XYZ"' \ -T fields -e http.host -e http.request.uri   I am using the above lines of tshark filtering the output based on /ABC/XYZ. it outputs dynamically random data for example like where i find duplicate lines  example :  1bcdJOSHhijklmnopqrstuvwxyz 1bcdefghijklmnopqrstuvwxyz 1bcdefghijklmnopqrstuvwxyz 3bcdefghijklmnopqrstuvwxyz 2bcdefghijklmnopqrstuvwxyz 1bcdJOSHhijklmnopqrstuvwxyz 3bcdefghijklmnopqrstuvwxyz   Is there any way to remove the duplicates without creating any file may be using some kind of buffer or pipe.  or can tshark itself do it  EDIT : I am not sure why but i get what i want after i prefix tshark with stdbuf -o L as suggested by meuh


How to get date using timezone saved in options?

This code does not work correctly and returns time using timezone from computer and ignoring timezone stored in WordPress options:  date_default_timezone_set( get_option( 'timezone_string' ) ); $hours = date( 'H', strtotime( $timestamp ) ); date_default_timezone_set(@date_default_timezone_get());   WordPress saves timezone in options section but 'timezone_string' option in wp_options table is empty. Also the code generates warnings.  How to get date using timezone saved in options correctly?  Where does WordPress store an Timezone which can be edited in options section?


The square roots of different primes are linearly independent over the field of rationals

I need to find a way of proving that the square roots of a finite set    of different primes are linearly independent over the field of    rationals.    I've tried to solve the problem using elementary algebra  and also using the theory of field extensions, without success. To  prove linear independence of two primes is easy but then my problems  arise. I would be very thankful for an answer to this question.


Converting mathematical LaTeX to basic text

I am in need of a way to parse math equations written in latex to plain text. Is there any way to do this through a website or through a program?  For example, I need \frac{b}{c} to just be b/c and \lim _{n\to \infty \:}\left(1\right) as whatever the text equivalent is, perhaps lim as n->oo 1


Is this condition for the union of a collection of subspaces to be a subspace?

Let $X$ be a vector space over a field $F$, let $$\left\{ \  Y_j \ \colon \ j \in J \ \right\}$$ be a non-empty collection of (vector) subspaces of $X$. Then the intersection  $$ \bigcap_{j \in J} Y_j$$ is indeed a subspace of $X$, but the union $$ \bigcup_{j \in J} Y_j$$ is not necessarily a subspace of $X$.   However, if, for some $j_0 \in J$, we have $$ Y_j \subset Y_{j_0} \text{ for all } j \in J, $$ then of course $$ \bigcup_{j \in J} Y_j = Y_{j_0}$$ and is thus also a subspace of $X$.   Now let's suppose that  $$ \bigcup_{j \in J} Y_j$$ is a subspace of $X$. Then can we prove that, for some $j_0 \in J$,  $$ Y_j \subset Y_{j_0} \ \mbox{ for all } j \in J?$$  I know that the answer is in the affirmative if the collection consists of only two subspaces.   What is the situation in general?   A rigorous proof will be appreciated.


Can a Counterspell basically counter more than one spell?

I'm on my main phase.  I cast a 2/2 creature, and want to enchant it in the same phase.   I cast the creature - no counterspell.  I then want to cast a +3/+3 Aura enchantment on that creature, and then a second +2+2 enchantment on it.  My opponent then casts Counterspell on my creature as his spell goes on the stack.  Are the enchantments also gone to the graveyard or were they not able to be cast in the first place?  My way of seeing it was they couldn't have been cast because there was no creature to cast them on.  Otherwise, a counterspell basically counters three spells.  I sense I'm probably wrong but this seems broken.


I'm certain plurals are discussed endlessly, but I haven't located an answer to this specific usage:  In the following sentences I believe the first one is correct because it discusses a singular list or group containing multiple names, where the second one treats the group as if it is "multiple groups." Which sentence is correct?   Once you get the software set up, here is our names: Bob, Joe, Sam. Once you get the software set up, here are our names: Bob, Joe, Sam.   Thank you and kind regards!  Edited to add the list after the colon. So now that the singular "list" is shown do the answers below still apply? Is "2" still correct?


How to measure the mass of a probability distribution?

If I generate a Normal and leptokurtotic continuous probability distribution (pdf), how can I measure the mass of these pdf's? If both pdf's have the same number of sample observations, but obviously have different statistical moments, can we expect that the area/mass that these two distributions enclose be different or identical to one another? How does the concept of pdf mass compare to the concepts and estimation of pdf moments and shape?


Can CGI elements emit light when in real video?

Blender super noob here.   Is it feasible to have, lets say, a neon sign made in Blender, emit light onto its surroundings when placed in a real life video?


I want to know the octal expression of the linux file permission command:  -rwxr-xr-t


Where's the definitive list of "Stack Overflow spawn"?

I'm looking for the financial/money site based on SO software, but cannot for the life of me find it. Then I remembered there used to be a list of these sites somewhere. Where is the definitive list? I don't mean the one at the bottom of SO because that's a tight group focused on computers and not the entire picture.


How do software versions are ported (or not) in a LTS version?

I run 18.04 on my main server and I have a hard time to exactly understand what "LTS" means:   does "Long Time Support" mean that whatever software is installed on day one, at that "version", will be supported together with all the upgrades of this software? or that whatever is installed on day one will stay at that "version" ?   When running an apt list --upgradable I see, among others  python3-distupgrade/bionic-updates,bionic-updates 1:18.04.24 all [upgradable from: 1:18.04.21]   This means that the version moves from 18.04.21 to 18.04.24, therefore it changes - at least for the most minor part.  What exactly (from software version perspective) changes in time with the LTS?  Note about "marked as duplicate": my question is not about  (which is the essence of the other answer) but about the versions of the software which make an LTS.   As an example, python on my 18.04 servers is 3.6.5. The current stable version is 3.7. Will I get it? Or only updates of 3.6? Is there a rule which states how the evolving versions of a program will or will not be ported to an LTS?


JAVA if statements logic or syntax error?

I getting the wrong result every time I run this program and I feel like an extra pair of eyes would be helpful at 4 in the morning. Can someone please help find where my curly braces or parentheses are off because I cannot find it for the life of me.  System.out.println("Please enter your guess") ;     userGuess = kbd.next() ;     if( userGuess != "a" || userGuess != "b" || userGuess != "c" ||          userGuess != "d" || userGuess != "e" || userGuess != "f" || userGuess != "g" ||         userGuess != "h" || userGuess != "i" || userGuess != "j" || userGuess != "k" ||         userGuess != "l" || userGuess != "m" || userGuess != "n" || userGuess != "o" ||          userGuess != "p" || userGuess != "q" || userGuess != "r" || userGuess != "s" ||          userGuess != "t" || userGuess != "u" || userGuess != "v" || userGuess != "w" ||          userGuess != "x" || userGuess != "y" || userGuess != "z" ||  userGuess!= "A" ||          userGuess != "B" || userGuess != "C" || userGuess != "D" || userGuess != "E" ||          userGuess != "F" || userGuess != "G" ||userGuess  != "H" || userGuess != "I" ||          userGuess != "J" || userGuess != "K" ||userGuess  != "L" || userGuess != "M" ||          userGuess != "N" || userGuess != "O" || userGuess != "P" || userGuess != "Q" ||          userGuess != "R" || userGuess != "S" || userGuess != "T" || userGuess != "U" ||          userGuess != "V" || userGuess != "W" || userGuess != "X" || userGuess != "Y" ||          userGuess != "Z" ) {         System.out.println("Invalid character, please enter your guess") ;     }userGuess = kbd.next() ;


Normal approximation to the Poisson distribution

in Wikipedia it says:  For sufficiently large values of $λ$, (say $λ>1000$), the normal distribution with mean $λ$ and variance $λ$ (standard deviation $\sqrt{\lambda}$), is an excellent approximation to the Poisson distribution. If $λ$ is greater than about 10, then the normal distribution is a good approximation if an appropriate continuity correction is performed, i.e., $P(X ≤ x),$ where (lower-case) $x$ is a non-negative integer, is replaced by $P(X ≤ x + 0.5).$ $F_\mathrm{Poisson}(x;\lambda) \approx F_\mathrm{normal}(x;\mu=\lambda,\sigma^2=\lambda)$  Unfortunately this isn't cited. I want to be able to show / prove this with some rigour. How can you actually say the normal distribution is a good approximation when $\lambda > 1000$, how do you quantify this 'excellent' approximation, what measures were used? The furthest I've got with this is  where John talks about using the Berry–Esseen theorem and approximates the error in the two CDFs. From what I can see he does not try any values of $\lambda \geq 1000$.


Faces look inverted like incorrect normals, but normals are fine. Please Help

The faces when I'm in Object/Edit mode look... messed up, like half of the normals are facing the wrong way. I checked the normals and they are all facing out like they should be. I was messing with some camera settings when I pulled out of the camera view. When I render the scene, everything looks normal. Let me know if you need more info on anything. Any help is much appreciated.  I apologize if this has been asked before, but I really don't know what to call this conundrum in order to search for it.  Uploaded:


Why can't I link my Stack Overflow profile with Careers

It says in my profile that I do not have a Careers account, but I do.


which version i should choose the 12.04 LTS or 13.04?

I'm confused that which version should install, 12.04 LTS or 13.04? What i'm missing in 12.04?


Print composer messes up layout of different maps

I made a map including 3 levels of zoom as shown in the screenshot. The problem is that whenever I save the map to a PDF, the layout of these maps is changed seemingly random.     I have a hunch that it has to do something with 'Lock layers' or 'Lock styles for layers' functions, but they don't really seem to work. Right now, I have the lock layers box checked on all maps and Lock styles for layers unchecked.


How to make changes in the Ubuntu interface?

Suppose I want to make a change  I want to change the interfaces ( battery status bar time display and username) to the left side  So how can we edit them. How are they programmed?  What programming language is used to built the interfaces?


Why are real symmetric matrices diagonalizable?

A matrix is diagonalizable iff it has a basis of eigenvectors. Now, why is this satisfied in case of a real symmetric matrix ?


Tikz children of two sibling nodes overlap

I am working on a homework assignment that requires me to draw a tree diagram using LaTeX, and I have such a frustrating problem right now.I tried to manually adjust the distance between siblings, but doing so does not work well. As you can see, the children of <S> and <D> overlap, but I don't know how to separate them. Please teach me how to solve this. Thanks a lot    \documentclass[letterpaper,11pt]{article} \usepackage[T1]{fontenc} \usepackage{tikz,forest} \usepackage[margin=1in]{geometry}  \begin{document}  \begin{tikzpicture}[ level distance=2cm, level 1/.style={sibling distance=8em}, level 2/.style={sibling distance=6em}, level 3/.style={sibling distance=3em}] \node {<S>} child { node { if }} child { node { <E> }      child { node { 0 }} } child { node { then }}           child { node { <S> }      child { node { \{ }}     child { node { <S> }          child { node { if }}         child { node { <E> }              child { node { 0 }}         }         child { node { then }}         child { node { <S> }              child{ node { print }}             child{ node { <E> }                  child { node { 0 }}              }          }         child { node { else }}         child { node { <S> }              child{node {print} }             child{node {<E>}                  child { node { 0 }}              }          }     }     child { node { <D> }          child { node { ; }}         child { node { <S> }}         child { node { <D> }}     } } child { node { else }} child { node { <S> }      child { node { \{ }}     child { node { <S> }}     child { node { <D> }} }; \end{tikzpicture}  \end{document}


$\displaystyle \int e^{-2x^2-5x-3} \mathrm dx$ with seemingly inescapable trap

This integral I got from an MIT Bee Integral contest. The actual question is:     $$\displaystyle \int_{-\infty}^{\infty} e^{-2x^2-5x-3} \mathrm dx$$   So I look at the exponent and I see the factors so why not?  $\displaystyle \int e^{-(x+1)(2x+3)} \mathrm dx$  Then I go for the substitution:  $\begin{align}u&=x+1 \\ \mathrm du&=\mathrm dx \end{align}$  So we turn this into:  $\displaystyle \int e^{-u(2u+1)} \mathrm du$  $\displaystyle \int e^{-u} \cdot e^{-2u^2} \mathrm du$  So far so good. Yet another substitution because of some potential I saw.  $\begin{align} v&=e^{-u} \\ u&=-\ln v \\ \mathrm du&= -\dfrac{1}{v} \mathrm dv \end{align}$  The next transformation is:  $\displaystyle \int v \cdot e^{-2\ln^2 v} \cdot -\dfrac{1}{v} \mathrm dv$  $=\displaystyle \int -e^{-2\ln^2 v} \mathrm dv$  This is where I saw blanks. My question is: is this even the right way to go about this? If so please help out from here, otherwise any recommendations or ideas would be appreciated.   Lastly, if the method is easy for someone with scraps of Calc 2 knowledge just leave a hint because I want to own this thing. Thanks :)


What to do if I have different title and description for the same URLin SERP?

I am facing a similar problem. I have to snippet details for the same URL means different title and different description for search keyword "PPC agency Dubai" and "pay per click" for the keyword search "Pay per click Dubai" 1.) Pay Per Click(PPC) - Example https://www.example.ae/pay-per-click.php PPC Agency Dubai: Example is one of the famous digital marketing agency in Dubai for pay per click & google Ads services. Call @ <number redacted>. for keyword search "PPC agency Dubai" 1.) PPC agency Dubai: Digital marketing agency Dubai - google ads https://www.example.ae/pay-per-click.php PPC Agency Dubai: Example is one of the famous digital marketing agency in Dubai for pay per click & google Ads services. Call @ <number redacted>. Plz, guide me on what I should do.


If $(X, \Gamma)$ is a cell complex and $e \in \Gamma$, then the image of a characteristic map for $e$ equals $\bar{e}$   I'm trying to prove the above which is a statement in Introduction to Topological Manifolds by John Lee  My Attempted Proof: Let $(X, \Gamma)$ be a cell complex and choose an open $n$-cell $e \in \Gamma$ of dimension $n \geq 1$. Let $\phi$ denote the characteristic map for $e$. Since $\phi$ is a characteristic map we have $\phi : D \to X$ for some closed $n$-cell $D \subseteq Y$ (where $Y$ could be any topological space) with the properties that $\phi' : \operatorname{Int}(D) \to e$ which is the restriction of $\phi$ to $\operatorname{Int}(D)$ is a homeomorphism and the restriction of $\phi$ to $\operatorname{Bd}(D)$ denoted by  $\phi|_{\operatorname{Bd}(D)}$ maps $\operatorname{Bd}(D)$ into the union of all cells of $\Gamma$ of dimensions strictly less than $n$.  We need to show that $\phi[D] = \bar{e} = \operatorname{Cl}_X(e)$. By continuity of $\phi$ we have $\phi[\operatorname{Cl}_Y(D)] \subseteq \operatorname{Cl}_X(\phi[D])$ and since $\phi$ is a map from a compact space to a Haursdoff space we have that $\phi$ is a closed map and hence $  \operatorname{Cl}_X(\phi[D]) \subseteq \phi[\operatorname{Cl}_Y(D)]$ so we have $  \operatorname{Cl}_X(\phi[D]) =\phi[\operatorname{Cl}_Y(D)]$. Now if $D = \operatorname{Cl}_Y(D)$ (****) and hence $D$ is a closed set in $Y$ we can go ahead and say that $\phi[D] = \operatorname{Cl}_X(\phi[D])$.   Now note that we have $\phi[\operatorname{Int}(D)] =\phi'[\operatorname{Int}(D)] = e$. Observe that by continuity of $\phi$ we have $\phi[\operatorname{Cl}_Y(\operatorname{Int}(D))] \subseteq \operatorname{Cl}_X(\phi[\operatorname{Int}(D)]) = \operatorname{Cl}_X(e) $. Assuming our above assertion holds since $D$ is homeomorphic to $\overline{\mathbb{B}^n} \subseteq \mathbb{R}^n$ with $\operatorname{Int}(D)$ homeomorphic to $\operatorname{Int}(\overline{\mathbb{B}^n}) = \mathbb{B}^n$ and $\operatorname{Cl}_{\mathbb{R}^n}(\mathbb{B}^n) = \overline{\mathbb{B}^n}$ we have $\operatorname{Cl}_Y(\operatorname{Int}(D)) = D$. Now since $\phi$ is a closed map (by the argument in the above paragraph) we have $ \operatorname{Cl}_X(\phi[\operatorname{Int}(D)]) = \operatorname{Cl}_X(e) \subseteq \phi[\operatorname{Cl}_Y(\operatorname{Int}(D))] $, hence we have $\operatorname{Cl}_X(e) =\bar{e} = \phi[\operatorname{Cl}_Y(\operatorname{Int}(D))] = \phi[D]$ as desired.     Now there is a huge flaw in this proof I think at the (****) part as we have no idea that $D = \operatorname{Cl}_Y(D)$ so we can't conclude that $D$ is an closed set in $Y$. Sure $D$ is homoemorphic to a closed subspace of $\mathbb{R}^n$, but homeomorphisms don't preserve closures of improper subspaces.   For example define $f : [0, 1] \to (0, 1)$ by  $$ f(x) = \begin{cases}     x & \text{if} \ \ x \in (0, 1) \\     0  & \text{if} \ \ x = 1 \ \ \text{or}\ \ x = 0 \\   \end{cases}$$  Then the restriction of the domain of $f$ to $(0, 1)$ is a homeomorphism, however $\operatorname{Cl}_{[0, 1]} \left((0, 1)\right) = [0, 1]$ but $\operatorname{Cl}_{(0, 1)}((0, 1)) = (0,1)$.  So how can I rectify this into a correct proof? I believe that I may have made this a bit too complicated and the proof is probably a lot simpler.    Side note: The book that I am using Introduction to Topological Manifolds by John Lee does not assume the closed $n$-cell $D$ is embedded in a parent topological space, so there isn't any mention of a topological space $Y$ for which $D \subseteq Y$, however if we don't have such a topological space $Y$, then we'd have $\operatorname{Int}(D) = D = \operatorname{Cl}_D(D)$ because we'd be taking the interior of $D$ in the topological space $D$ as opposed to $Y$, and the largest open set in $D$ is obviously $D$. And we'd arrive at contrdictory stuff like $D$ is homeomorphic to both $\overline{\mathbb{B}^n}$ and $\mathbb{B}^n$.


trying to use methods from another class from a main java class

We have to create a choose your own adventure game and I chose to do a biome survival game. Right off the bat, I had some difficulty calling the class in which the methods are stored. I prompt for the biomeAns but it reads it and it seems to immediately quit without reading and printing the contents of the method in the other class. What am I missing?   `package com.company; import java.util.*; public class Main {  public static void main(String[] args) {     Scanner scan = new Scanner(System.in);     System.out.println("What up, Bitch?");     //String congrats = "Congratulations";      Biomes biomeObj = new Biomes();  //Turned in a zip file w/README file containing a description of the  project, instructions for compilation, and (sample input w/expected output) //includes appropriate Javadoc comments //includes at least 2 classes //contains at least one constructor //Program contains 2 methods //Program includes a try...catch block //includes a loop //Program includes conditional statement  //intro System.out.println("Welcome to the Biome \nYou will be prompted to choose  between two biomes"); System.out.println("This will determine which biome you will attempt to  survive for the next 7 days"); System.out.println(" ");  //choose biome System.out.println("?Tundra or Desert?"); String biomeAns = scan.nextLine(); if(biomeAns == "tundra" || biomeAns == "Tundra"){ biomeObj.tundra(); }if(biomeAns == "desert" || biomeAns == "Desert"){ biomeObj.desert(); } } }//END MAIN`   and my class and methods that I'm trying to call but failing too, considering it isn't reading into the methods at all:  package com.company;  public class Biomes {  public void tundra(){//send user to tundra     System.out.println("Welcome to the Tundra");  }  public void desert(){//send user to desert     System.out.println("Welcome to the Desert");  }  }


I love the interesting tags feature on the site.  It really helps me see questions on the site that I can answer.  I do wish that I had a bit more power though.  I would like to be able to set up and relationships for interesting tags.    For example, I might be interested in questions tagged  and .  I can't answer all C# questions, and I can't answer all regex questions, but I could probably answer almost all  questions.