Questions about scaling in a 2d game in unity Okay, so:  I am making an android game. I want everything to scale to the size of the screen I'm using. Further, my static background needs to scale (as well as every other object), but if the aspect ratio is less than the AR of the background image I want the image to be cut off at the edges.  Further, I have a game object I need to always be at the corner of the screen. I'm guessing I should use a script to determine the width of the screen and place it a few coordinates up and right of that on start?  The game is only in landscape mode if that matters. How do I go about this? I previously had the background as a plane with an image on it but it didn't take up the whole screen and I think it might not be the right thing to do? Maybe use a quad?  How do I test to make sure that this works? I only have my one android phone to test it on.
How do you handle aspect ratio differences with Unity 2D? I've gotten a lot of answers to this question, but they are all generic and generally not very useful.  None of the tutorials talk about aspect ratio and dealing with mobile devices and there are a zillion ways to do it, all seem to have gotcha's and flaws.  I really would love to know what successful games have used to handle different aspect ratios on iOS and Android without making a zillion different sized assets.  I am strictly speaking mobile, not desktop, specifically with Unity and I don't care about the UI, I only care about the gameplay canvas.  Issues I have in mind is when there are key things that have to be in certain places and cannot fall off the screen.  Using black bars on top or bottom is unacceptable these days.
I am starting to see a lot of people claiming that convential current is 'wrong' because Franklin made an error when he first started investigating electrostatics, and that later scientists didn't bother correcting the mistake, but preferred to keep the 'convention' (here is a classic example: )  I always thought he didn't get it wrong. He said that current is positive in the direction that positive charge flows, and vice-versa. He of course had no way to know which side of two sticks behind rubbed actually gained or lost mass. So he wasn't wrong. What were you taught?  P.S. I can't help but feel we are lucky that he got it 'backwards', because clearly many people are confused about electrostastics (including the author of that text book!) and believe electricity has to involve electrons (an unfortunate name... why couldn't they have been named negatrons...) I have a qualifying exam coming up in a couple days and I am just trying to understand some pathological examples I have in my notes. I will list a similar problem which I know the solution to and then the question.  True or False:   let $A,B \in \mathbb{Q}^{n \times n }$  Suppose $xI-A$ and $xI-B$ are equivalent then $\det(xI-A) = \det(xI-B)$.     I wrote in my notes this is true because any two matrices are equivalent in $\mathbb{Q[x]}^{n \times n}$ if and only if they have the same invariant factors.  Since the characteristic polynomial is a product of the invariant factors it follows that $\det(xI-A) = \det(xI-B)$.        True or False:   let $A,B \in \mathbb{Q}^{n \times n }$. If $\det(xI-A) = \det(xI-B)$ (in $\mathbb{Q}[x]$) then $xI-A$ and $xI-B$ are equivalent  in $\mathbb{Q}[x]^{n \times n}$   I think this is false because of the fact that equality of determinants is not strong enough to guarantee all invariant factors are equal but I do not have an example. In the LoTR movies (not sure if the books are the same) but when Gollum lost the ring to Bilbo decades ago in The Hobbit, he appeared to look the same and even move the same in The Fellowship of the Ring. Bilbo on the other hand, seemed to have aged very rapidly when he passed the ring to Frodo. When Frodo met up with Bilbo in Rivendell shortly after his quest began, Bilbo appeared much older and even more much slower.  I realize that Gollum had the ring for much longer than Bilbo, but wouldn't him losing the ring have the same effect as it had on Bilbo? Sort Order on Close Vote Queue The Close-Vote queue is large and growing. I searched for definitive information on how that queue is sorted for reviewers, and the nearest I could find is that it is randomized - but that post was some years old.  Would it be possible to sort on order of votes already received? That is, all questions with 4 votes to close are surfaced first (in random order) to reviewers? Questions with 3 votes would come up before ones with 2, etc. In that manner a given question gets out of 'will it close?' limbo faster.   This feature request would, in my opinion, be supportable if the majority of reviewer votes were going to single-vote questions. I cannot (I think) actually find these numbers. If this is the case, the majority of the work is going to an ever-increasing queue, and proportionally fewer votes are being resolved.  Note there are other distributions that could help get in this direction without being a strict ordering, like weighting the chance a given question is surfaced to a reviewer by the number of votes. However, for discussion purposes I thought I'd keep it simple.  Usual apology if this has actually been addressed. Search is sad-making. Do paths in Adobe Photoshop have to be closed? I am working to convert a png to a vector graphic.  I am outlining the image using the pen tool.  Photoshop insists that the pen tool produce closed loops in order for me to use the "Stroke path..." tool.  Why is this? Defaults to true.  If set to true replaces all instances of known swear words with replacements (comical or * based). If false renders the content as originally presented.  Benefits:    Reduces moderation requirements necessary to ensure that people behind corporate firewalls are not blocked by an errent swear word.   Stops idiots like me complaining about it. What is a good way to draw images using pygame? Add default syntax highlighting for the [dart] tag I just approved several edits from a user adding  to questions with the  tag. Apparently , Google Code Prettify has added support for Dart.  I suggest it's time to follow suit and update the default syntax highlighting associated with the  tag. Adding it manually to every question sounds like way too much work, even if I all I have to do is click the "Approve" button. How to validate an email address in JavaScript Unable to install LanguageTool 2.5 extension for LibreOffice 4.2 on Ubuntu 14.04 I am not able to install LanguageTool extension for LibreOffice. Getting exception when I try to install it.   p.s. Somebody says that the solution is installing openoffice.org-java-common package but Ubuntu 14.04 does not have this package in its repository.  System details:  OS: Ubuntu 14.04 LTS  LibreOffice: 4.2 (4.2.3.3)  LanguageTool: 2.5  Java: Oracle JDK 1.8.0_05     Exception message: How can I disassociate an account? I want to disassociate an account from the rest of my associated accounts. How can I do that?  The information in  doesn't seem to be relevant anymore, since I can't find this thing     Click the "Clear All Associations" button on the bottom of the Accounts page on your profile.   Every time I add or remove an email or OpenID from one site it propagates to the entire network. How did this person gain possession of the Infinity Stones? Obscure fantasy movie involving flying sea-galleons and a time weapon Been trawling the internet for hours, can't find any trace or reference of this movie. Not really sure what station I saw it on (only once), but it was probably Sci-Fi Channel (mind you, a very long time ago:  Movie opens with flying ships (sailing galleons), that proceed to siege a towering city. The city fires back with its own cannons, and drives the invaders away. The main protagonist is a young boy who longs to be a knight... or this movie's equivalent thereof. He has an older brother who is already recognized as a warrior. The boy lives in the city that successfully repelled this siege.  The king of this city has some sort of wizard or wise-man as a councilor, who conceives an "ultimate weapon" against their enemies- an hourglass of sorts that accelerates time against a target. However, during the course of the movie this weapon is stolen by the city's enemies (led by an evil queen or sorceress), who proceeds to use it against the city itself and all its inhabitants.  So the king sends out his armies to retrieve the artifact, all the while everyone and everything begins aging rapidly. Our boy-hero watches his older brother (now much older) set out with other knights on the quest, and there's a token romance between the boy and the king's daughter. The knights do not return, however, and the time-curse continues to wreak havoc on the city.  Ultimately, the boy (now a man) sets out to find his brother, the hourglass, and save the day. He finds his brother at a wreckage-site (I believe of a flying galleon), and they share a brief moment before the elder brother finally succumbs to old age. I'm sure I'm forgetting some other poignant details, but that's essentially the crux of it. Ends... if I remember correctly, with  the artifact being disabled and the evil queen/sorceress defeated.  Question is: what is this movie titled? Calculating latitude and longitude of points using QGIS How do I easily calculate the lat/long of points using the QGIS Field Calculator? I saw a previous related question (), but it deals with a more advanced approach. In ArcGIS Desktop this is similar to the Calculate Geometry function; I just can't find where do this in QGIS. We get a lot of questions on Super User about Windows activation and licensing. This question is an attempt to answer the most common questions in one place with a .   When reinstalling Windows, the following questions often come up:   Can I transfer the copy of Windows from my old computer to a new one? Does the license key on the sticker on my computer work on any computer? If I have a 32-bit version, can I install a 64-bit version? I have an OEM version of Windows, but only a retail disk. Can I still use it? I want to install Windows with a different language. Do I need a new license in that language? I changed some hardware. Will I be able to reactivate my computer? Can I back up my activation before doing a reinstall? How many computers can I install my license on? Do I have to deactivate my old installation before transferring a license? If so, how? How does licensing work in Windows ? What are the restrictions on transferring, reinstalling, and changing versions of Windows? The sum of an uncountable number of positive numbers Claim: If $(x_\alpha)_{\alpha\in A}$ is a collection of real numbers $x_\alpha\in [0,\infty]$ such that $\sum_{\alpha\in A}x_\alpha&lt;\infty$, then $x_\alpha=0$ for all but at most countably many $\alpha\in A$ ($A$ need not be countable).  Proof: Let $\sum_{\alpha\in A}x_\alpha=M&lt;\infty$. Consider $S_n=\{\alpha\in A \mid x_\alpha&gt;1/n\}$.  Then $M\geq\sum_{\alpha\in S_n}x_\alpha&gt;\sum_{\alpha\in S_n}1/n=\frac{N}{n}$, where $N\in\mathbb{N}\cup\{\infty\}$ is the number of elements in $S_n$.  Thus $S_n$ has at most $Mn$ elements.   Hence $\{\alpha\in A \mid x_\alpha&gt;0\}=\bigcup_{n\in\mathbb{N}}S_n$ is countable as the countable union of finite sets. $\square$  First, is my proof correct? Second, are there more concise/elegant proofs? I would like the user to have full rights on this folder (as well as all sub-directories and files in it):  ~/.blabla   currently owned by root.  I have found numerous posts (in this forum and elsewhere) on how to do this for files but I can't find a way to do it for whole folders. Prove that for any $x_0 \in X$ and any $r&gt;0$, the open ball $B_r(x_o)$ is open.   My attempt: Let $y\in B_r(x_0)$. By definition, $d(y,x_0)&lt;r$. I want to show there exists an $r_1\in\mathbb{R^+}$ s.t. $B_{r_{1}}(y)\subseteq B_r(x_0)$. Let $a\in B_{r_{1}}(y)$. Then, $d(a,y)&lt;r_1$. For $a\in B_{r}(x_0)$, $d(a,x_0)&lt;r$. I want to show $d(a,y)&lt;r_1$ implies $d(a,x_0)&lt;r$. By triangle inequality, $d(a,y)\leq d(a,x_0) + d(y,x_0) \rightarrow$  $d(a,y)&lt;r_1\leq d(a,x_0)+d(y,x_0)&lt;2r...$  I'm a little stuck after this point. Unable to delete recup_dir.1 folder A folder was created when I used a utility to recover pictures from a cd card that I deleted by mistake.  Now I can't delete it or move it. I am told I am not the owner of it even when I am logged on as root.  How can I delete the recup_dir.1 folder from my machine? When validating a field manually from my form a error is displayed but the field doesn't get red. For the first parameter i used the name of the input element. DRUPAL 7  if($form_state['values']['panes']['webform_nid31'][0]['contact_person'] == '') {     form_set_error('panes[webform_nid31][0][contact_person]', t('You must select a name for this group of settings.'));   }