Locage.getCountry() not returning exact locale
Retrieve active locale in Grails application
Why does Java have an "unreachable statement" compiler error? How can I combine hashes in Perl? What is the best way to combine both hashes into %hash1?  I always know that %hash2 and %hash1 always have unique keys.  I would also prefer a single line of code if possible.    $hash1{'1'} = 'red'; $hash1{'2'} = 'blue'; $hash2{'3'} = 'green'; $hash2{'4'} = 'yellow'; 1 Plot, 2 Scale/Axis Exclude property from serialization via custom attribute (json.net) Since the version of the word "that" might matter to the correct answer, I'll provide the actual title in question:  Title:  Existing Solutions that Didn't Work  If someone could explain the why of the answer, I would be appreciative.  EDIT:  It has been suggested that this is a duplicate, and that may be, in a sense.  However, the after reading the suggested prior question, I'm no closer to my answer.  I think it may have to do with my use of the word "that."  Perhaps it is incorrect?  Using these definitions of the word "that:" I'm having trouble figuring out which definition of that matches my title.  Am I even using it correctly?  Perhaps I should use which instead:  Possible Title:  Existing Solutions which Didn't Work  If my original usage is incorrect, and I should use which, then the answer is simple since which is always a pronoun or adjective, and those are both capitalized in a title.  However, I'm having difficulty understanding which part of speech that is in my original title. Role of dependencies while installing software?? What is the role of dependencies while installing any software?I was installing vlc player and it were closed by giving me error something like check dependency .  What is to solution of this and how i'll get these dependencies??  Thanks in Advance. Why catch Exceptions in Java, when you can catch Throwables? We recently had a problem with a Java server application where the application was throwing Errors which were not caught because Error is a separate subclass of Throwable and we were only catching Exceptions.  We solved the immediate problem by catching Throwables rather than Exceptions, but this got me thinking as to why you would ever want to catch Exceptions, rather than Throwables, because you would then miss the Errors.  So, why would you want to catch Exceptions, when you can catch Throwables? Automorphisms of the complex plane How can it be shown that $$Aut(\mathbb{C})=\{f|f(z)=az+b,a\neq 0\},$$ where an automorphism of $\mathbb{C}$ is defined as a bijective entire function with entire inverse?  If $f$ is of the form $f(z)=az+b$, with $a\neq 0$, then obviously $f$ is in $Aut(\mathbb{C})$. How can I prove the converse? Show that $E(XE[X|G])=E[(E[X|G)^2]$ How to recreate subpixel anti-aliasing like Windows Command Prompt I want to be able to create a anti-aliasing effect as shown in windows command prompt with any text or vector I'd like without having to screenshot it within the program. How could I go about doing this? UK visa refusal on V 4.2 a + c (and sometimes 'e') Many of the UK visa refusals we see here share a common pattern and the prevailing reasons refer to V 4.2 (a) and (c).    I do understand that, while the applicants may describe very different individual circumstances, there's a consistent pattern and, broadly, fall into specific categories:    Credibility (lifestyle, lack of ties, visit history, lies &amp; omissions) Funding (insufficient funds, provenance of funds, funds parking) Sponsorship (family, friends, employer)   Question: What most commonly triggers a UK visa refusal where V 4.2 (a) and (c) are given as the grounds?  Secondarily: Given that there is a clear pattern, to what extent are these refusals predictable? Does sponsorship make a difference? Is there a set of personal circumstances, however abstract, where a refusal is all but guaranteed? For example, why do those we see here on TSE who sought entry for the PLAB or British Army appear to be refused with a common theme? Is there a uniform shortcoming or is it just discrimination?   PLAB: What is about applications for a visa, for the purpose of sitting the Professional and Linguistic Assessments Board (PLAB) exam, that seem to invite refusals. After all, the test is given so that international medical graduates can show that they qualify to practise medicine in the UK. The first part, PLAB 1, can be taken in centres outside of the UK. However, PLAB 2 can be taken only in the UK. Why can't you can't get a visa just to sit the exam, promising that you'll leave immediately after?    British Army: Since Commonwealth citizens are eligible to apply online to join, even those who don't reside in the UK, why is it so difficult to get a visa just to attend an interview to see whether you are suitable? Even with an invitation from the Army, such visa applications seem to be unsuccessful. Isn't a career in the British Army a valid reason?     Lastly:  After such a refusal, what approaches would increase the chance of a successful application? Prevent mail being marked as spam I'm an elected diamond moderator on one site, and a user of several others. I think it would be extremely helpful for our flagging process if users had the option to enter freeform text explaining their flag on types of flags other than the "in need of moderator attention" flag.  An example of when this is relevant: Sometimes posts have had rude/abusive flags, but the rude/abusive part might be difficult to notice, or it might be a single word or sentence buried somewhere in the middle of the post. Users have to choose between "flag it as rude with no explanation" or "flag it as misc and explain what's going on". Often they'll pick the first because of course it seems like what they should do (e.g. they know the system has special handling attached to rude/abusive flags) but it means they can't explain what's going on to us, so we have to reach out directly in private to find out.  Sometimes it also helps to be able to explain why a comment is no longer needed, because past experience tells me the "no longer needed" flag on its own might be declined on a particular site -- so I pick the custom reason instead of "no longer needed" just so I can provide explanation.  I'd prefer users be able to understand they can pick the appropriate reason and be able to attach any explanation they deem necessary to further direct moderators to the issue. If not for all kinds of flags, then at least for spam or rude/abusive flags. Difference between "git add -A" and "git add ." The command git add [--all|-A] appears to be identical to git add .. Is this correct? If not, how do they differ? How to graphical remote control an Ubuntu server? I've tried googling and .  I'm connecting my Windows 7 SP1 machine to an Amazon EC2 Ubuntu cloud server, Ubuntu 10.04 LTS. What I have done is   Enabling Remote Desktop in Ubuntu (, ) Connect to my server using 1)  and 2)  &ndash; I don't use  since it contains viruses.   But all of those result in Connection failed. I'm giving up!  More Detail Ubuntu server to remote to: Ubuntu 10.04 LTS (codename lucid)  My Windows: Windows 7 SP1 I'm about to use this diagram to make computing 3x3 determinants clear and easy for my students. I tried to add this picture to my lecture but it's blurred due to the bad quality of the picture. So i want to create exactly the same figure using latex.  I've searched and read a few topics about highlighting elements and diagonals in matrix but it does not work in this case. I want to add plus signs and minus signs as in the picture, and highlight elements in the matrice with elements outside the matrice.  I appreciate all your help and your advice. Thank you in advance ! How to Flatten a Multidimensional Array? Do photons truly exist in a physical sense or are they just a useful concept like $i = \sqrt{-1}$? Reading about photons I hear different explanations like "elementary particle", "probability cloud", "energy quanta" and so forth. Since probably no one has ever seen a photon (if "seen" it supposedly - and rather conveniently - ceases to exist) but many experiments seem to verify its properties (or are they maybe adjusted to fit the experiment). I thus can't help wondering if the "photon" is then just a physical/mathematical tool with inexplicable properties (like zero mass - but affected by gravity fields - and constant speed c in space) invented to explain some otherwise unexplainable phenomem and to supplement the elementary particles and their interactions. In short: Are they real or imaginary!  Does anybody know? Or maybe the answer is "blowing in the wind" because to most physicist it probably just does'nt matter as long as it works (as the alternative healers say). Sorry if I seem a little sarcastic here and there. Scenario (Ubuntu 16.04):  I compile and run a C program (with -g, I get the traditional Segmentation Fault (core dumped), and then (of course) there is no mythical "core" file to be found. Some digging says to modify /proc/sys/kernel/core_pattern with a command to the effect of: echo '|tee /home/me/my_core_folder/my_core_file' | sudo tee /proc/sys/kernel/core_pattern, and after doing this, I stop getting (core dumped) and start only getting the plain Segmentation Fault. I try things like gdb ./program_object_file.out core.pid which obviously doesn't exist (I was getting desperate), and of course try the plain gdb ./a.out followed by (gdb) core core.pid and variants of the commands where I spam the tab key desperately trying to get auto-completion to get me to where I need to be.  Question:  Is there a generalized way I can get to core dumps? I recognize that every machine that I touch seems to have a Michael Bay's Transformers-esque ability to reconfigure hardware and software such that no device I own can be expected to work normally out-of-the-box. Is there a simple algorithm/recipe I can follow to locate core dumps on my own machine as well as on other peoples' machines? I always find myself tutoring friends on stuff like this after no small amount of  work to get things working for myself and it would be nice to be able to run a command or something to get core files dumped to the directory which the executable was run from... is there any way to do this that should work on most (I would settle for "some") Linux/Unix machines? Explicit example of a compact manifold of dimension $>2$ with strictly negative sectional curvature I am looking for examples of compact manifold of dimension $&gt;2$ with strictly negative sectional curvature (for dimension 2 it is well-known). Can anybody please help?