What does arr[i],i mean?
What does the comma operator , do?
How to code an automated bot that can browse and do operations on a webpage Google is counting the domain home page ("/") as a duplicate of "/index.html" For only my index pages, I am receiving this warning in Google Search Console:     Duplicate, submitted URL not selected as canonical   I know that this occurs because Google is attempting to track both the default landing "page" (i.e. www.domain.example/) and the page to which to which DirectoryIndex points (i.e. www.domain.example/index.html). They are, in fact, the same page, and so the warning is the result of a false positive.  Two questions for our community:   Why does Google not conflate these and count them as a single page? Alternately, is there something wrong with my set up if this has happened? I can easily force both pages to point to a single canonical URL. But which is preferable, "/" or "index.html"? filling an occluded plane with the smallest number of rectangles I've got a specific problem which I'll try to describe as clearly as possible.   I have a defined rectangular region on a cartesian plane, and within that region there are other given rectangular sub-regions that are described in terms of their 4 vertices, ie {(x1, y1), (x1, y2), (x2, y1), (x2, y2)}, so that these regions form 'occlusions' on the plane. These regions don't overlap, but they can form more complex polygons when different-sized rectangles adjacent to each other appear joined.  here's an illustration:   I am interested in the space between these shapes, and how to define the space in the same way the occlusions are defined, that is as a set of rectangles. In particular I want the definition optimised so that the space is described using the smallest possible number of rectangles. For example, an incomplete rendering might look like this:   Can anyone suggest a way forward with this? How can I have the original set of vertices (describing the black rectangles) generate the 'complementary' set of vertices (red rectangles) such that the number of red rectangles is minimal?  I suspect it's a variation of a 'packing problem', but I have a feeling it might be fairly simple... Why do we say "last night" and not "yesterday night"? As from object, is there a rational reason for saying "last night" rather than  "yesterday night", though you would say "yesterday morning" and "yesterday afternoon"? How to make mesh lights work in Blender Eevee? The closest I can get to making mesh lights affect their environment in Blender Eevee is giving them an Emission material and turning on "Bloom". But this isn't emitting proper light, it just looks like it is, but it doesn't light the surroundings whatsoever.     I would like to be able to light a scene with meshes without having to put point lamps everywhere just to make them emit light. Normal distribution tail probability inequality I am trying to show that $$P(X&gt;t)\leq \frac{1}{2}e^\frac{-t^2}{2}$$ for $t&gt;0$ where $X$ is a standard normal random variable.  Perhaps this is simple.  I have been starting with  $$ \int_{t}^{\infty} \frac{1}{\sqrt{2\pi}} e^\frac{-x^2}{2}dx \leq \int_{t}^{\infty}\frac{x}{t}\frac{1}{\sqrt{2\pi}}e^\frac{-x^2}{2}dx = \frac{1}{t\sqrt{2\pi}}e^\frac{-t^2}{2}$$  but this is not what I want...I am looking for a much stronger inequality.   Any help in the direction of getting the $1/2$? Not enough memory to load specified image I built a computer recently and I've tried to use Ubuntu and Linux Mint, both trying to install from a 32gb USB 2.0 flash drive, without success. There is no other operating system on the computer and with each OS I get the same error:  Not enough memory to load specified image. boot: _   I'm new to Linux, so I don't know whether this is related to the OS.  Hardware details:   Ryzen 3 1300x   MSI x370 gaming plus motherboard   8g Kingston hyper fury x black ddr4   nvidia gtx 760   evga 500w b psu   toshiba 500gb ssd     I need to resolve this quickly if possible Can I run PC steam games on a Mac? Bash Script if condition is always true How can I change media volume when no media is being played? Sometimes I want to play games in (near) silence, and don't like the background music to disturb people. If I use the volume buttons, the ringtone volume is changed instead of media volume. When I'm already in the game, the volume buttons do change the volume of background music, but it's kinda too late.  Is there a way for me to change the media volume to a level I like, from the home screen, before starting apps/games? Why doesn't my command work when aliased? I use ps -ef | grep catalina | grep -v grep to print the tomcat process running on the system:  kshitiz   7099     1  0 May11 ?        00:02:29 /usr/lib/jvm/jdk1.8.0/bin/java -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:38156 -Dcatalina.base=/home/kshitiz/Documents/workspaces/ggts/.metadata/.plugins/org.eclipse.wst.server.core/tmp1 -Dcatalina.home=/opt/tomcat-7.0.42 -Dwtp.deploy=/home/kshitiz/Documents/workspaces/ggts/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps -Djava.endorsed.dirs=/opt/tomcat-7.0.42/endorsed -Dfile.encoding=UTF-8 -classpath /opt/tomcat-7.0.42/bin/bootstrap.jar:/opt/tomcat-7.0.42/bin/tomcat-juli.jar:/usr/lib/jvm/jdk1.8.0/lib/tools.jar org.apache.catalina.startup.Bootstrap start   Then I use ps -ef | grep catalina | grep -v grep | awk -F' ' '{print $2}' to extract the process id:  7099   But when I alias the whole command alias tomcat_id="ps -ef | grep catalina | grep -v grep | awk -F' ' '{print $2}'" and use it via alias, it prints the whole text and awk doesn't seem to work.  type tomcat_id gives:  tomcat_id is aliased to `ps -ef | grep catalina | grep -v grep | awk -F' ' '{print }'' Prove $\int_0^\infty \frac{\sin^4x}{x^4}dx = \frac{\pi}{3}$ json parse error with double quotes I have often wondered at the practice on Stack&nbsp;Overflow, Server&nbsp;Fault, and the other sites where someone will ask a question and an answer will come in that says Look here: http://link elsewhere. Rarely will the link have exactly the answer necessary -- often it's an entire article -- yet these answers get voted up.  Why is that, exactly? I realize this is subjective, but my own thoughts are that one should try and give the answer (even if the answer is 'no, it can't be done' or 'no, I don't think it can be done' -- very different answers) and then if you have a link that explains it, go ahead and post it within the answer.  What does the community think about this?     For more information, see  in the . Lets say I have a domain already, for example www.automobile4u.com (not mine), with a website fully running and all.  The title of my "Website" says:    &lt;title&gt;Used cars - buy and sell your used cars here&lt;/title&gt;   Also, lets say I have fully SEO the website so when people searching for the term buy used cars, I end up on the second or first page.  Now, I want to end up higher, so I go to the google adwords page where you can check how many searches are made on specific terms.  Lets say the term "used cars" has 20 million searches each month.  Here comes the question, could I just go and buy that domain with the search terms adress, in this case www.usedcars.com and make a redirect to my original page, and this way when people search for "used cars", my newly bought domain name comes up redirecting people to my original website (www.automobile4u.com)?  The reason I believe this benefits me is because it seems search engines first of all check website adresses matching the search, so the query "used cars" would automatically bring www.usedcars.com to the first result right?  What are the downsides for this?  I already know about google spiders not liking redirects, but there are many methods of redirecting...  Is this a good idea generally? Consider the brief passage:     "I love your work, but calling you 'the artist' {1} just doesn't seem to be   cutting it anymore. What shall I call you?"      "OK. Call me George." {2}   So my instincts tell me to put {1} in single quotes as opposed to no punctuation (or perhaps even italics) but to do the opposite for {2}. Is this right? Why?  Let me expand this one further iteration:     "Wow, that's a great name, especially with this crowd. Maybe for your next book    you should call yourself Ringo."{3} Limit $\frac{x^2y}{x^4+y^2}$ is found using polar coordinates but it is not supposed to exist. Where to put my code: plugin or functions.php? Is there an easy to understand scheme to decide what kind of code belongs to a plugin or the theme’s functions.php?  There    and many  about that topic, mostly because there are some misconceptions about the inner workings of WordPress. I am asking for an answer based on facts, not on opinions.  It should explain how to handle these points (and probably more):   custom post types and taxonomies contact forms shortcodes custom widgets  SEO functions like custom meta elements theme switch   There are often pros and cons for both sides. Our most popular question  got a lot of code snippets as answers that are at least debatable. We need criteria a beginner can understand, maybe a check list – with reasons.  See also the related question by Chip Bennett on our meta site:   Related: Using awk to sum the values of a column, based on the values of another column One confusion over conditional expectation Suppose for two random variables $X_1$ and $X_2$ $\sigma(X_1) = \sigma(X_2)$. Why $E[Y | X_1] = E[Y | X_2]$ a.e. ?  the set where $X_1= X_1(\omega)$ can be different from the set $X_2= X_2(\omega) $. How can then conditional expectation conditioned on the event can be equal ?