Converting a specific JSON to java object format?
How to parse JSON in Java
Is my Geoserver "Direct WMS Integration" working? GNU find and masking the {} for some shells - which? The man page for GNU find states:    -exec command ;     [...] The  string `{}'  is  replaced  by the current      file name being processed everywhere it occurs in the      arguments to the command, not just in arguments where      it is alone, as in some  versions  of  find.     Both  of  these  constructions might need to be escaped      (with a `\') or quoted to protect them from expansion      by the shell.     That's from the man to find (GNU findutils) 4.4.2.   Now I tested this with bash and dash, and both don't need to have the {} being masked. Here is a simple test:  find /etc -name "hosts" -exec md5sum {} \;    Is there a shell, for which I really need to mask the braces? Note, that it doesn't depend upon whether the file found contains a blank (invoked from bash):   find ~ -maxdepth 1 -type d -name "U*" -exec ls -d {} \;  /home/stefan/Ubuntu One   This changes if the found file is passed to a subshell:  find ~ -maxdepth 3 -type d -name "U*" -exec bash -c 'ls -d {}' \;  ls: cannot access /home/stefan/Ubuntu: No such file or directory ls: cannot access One: No such file or directory   which can be solved by:  find ~ -maxdepth 3 -type d -name "U*" -exec bash -c 'ls -d "$0"' {} \;   in contrast to:   find ~ -maxdepth 3 -type d -name "U*" -exec bash -c 'ls -d "{}"' \;  /home/stefan/Ubuntu One   but that's not what the man page is talking about, is it? So which shell treats {} in a different way? How to redirect output to screen as well as a file? How exactly is Arda supposed to be an ancient Earth? As most Tolkien fans know, Arda (Tolkien's world) is supposed to be Earth in its past, and all its stories are supposed to have happened long ago on this very same planet. Of course, this is fiction, so this is not supposed to be actually true.  But, if one wanted to roll with it... how could it possibly make sense from a geographical standpoint? All maps of Middle Earth (before or after the destruction of Beleriand and Numenor) just don't match anything on Earth, even when considering continental drift.  Of course, one could simply say "the Valar reshaped it (again)", but not only this is a bit unsatisfactory, it also doesn't make much sense in context, as Valar are well known for not wanting to meddle with Arda unless absolutely needed, and even then, as little as possible.    Update:  Hey, please calm down, guys. Mine was not a rant at all. And I know perfectly well this is fiction (and I've stated it plainly). The sense of my question was: "If one wanted to follow this line of thought and assume Arda should be related to Earth as Tolkien said, then how could this relationship be explained?". Proving that the tangent to a convex function is always below the function Flag counter is missing sporadically I noticed that on both sites where I am a moderator the flag counter is occasionally not showing any flags even when there are flags in the queue. A refresh of the page leads to the correct flag count to be displayed. I noticed this happening when I visited the site for the first time in a few hours, when I was recently active on the site the counter seems to stay accurate. Windows 10 changes UEFI boot order every time I have an HP 500-413nl (a desktop) and Windows 10 keeps changing the boot order in UEFI/BIOS every time, so that if I want to boot Ubuntu 16.10 (64-bit) I always have to press F10, thus entering the BIOS setup and changing boot order…  Is there a workaround for my PC? What should I do? I'm a little desperate.  P.S.: I have already disabled "Secure boot" and "Fast/quick boot" in the BIOS and "Fast startup" in Windows options / Control panel. What are the difference between the following sentence?    I ate apples. I have eaten apples.    When should we use simple past tense? When should we use perfect past tense? Problem 4.6, I. Martin Isaacs' Character Theory I installed Ubuntu 14.04 onto my Acer Aspire E15. The PC has a 500 Gigabyte HDD.   During the installation it divided the HDD into separate partitions. However every time I turn on the PC it goes directly into Windows 8.1. It doesn't allow you the opportunity to select which OS you want to use.   Question 1: How do I set the PC so it will allow me to select the OS?  Question 2: And if #1 isn't possible. How to I remove Ubuntu from the PC and recover the partition for Windows In what situations is octal base used? Using the itemize environment inside a caption The following example must be compiled with XeLaTeX to reproduce the issue.  % arara: xelatex \documentclass{article} \usepackage{fontawesome} \begin{document} Text Text \faMobilePhone\ Text Text \end{document}   Normally I am using TeXworks to compile and view the output. With the internal viewer I am getting the desired result. The following image demonstrates it:    However if I open the pdf with Preview (viewer of Mac) the scaling of the icon fails.     If I open the pdf file with Adobe Acrobat Reader the icon is still scaled correctly. If I print the page my printer is also not able to scale the icons correctly.   If I use LuaLaTeX everything seems to work correctly.   Can you reproduce the issue and do you know a solution? Which shell interpreter runs a script with no shebang? Suppose the default shell for my account is zsh but I opened the terminal and fired up bash and executed a script named prac002.sh, which shell interpreter would be used to execute the script, zsh or bash? Consider the following example:  papagolf@Sierra ~/My Files/My Programs/Learning/Shell % sudo cat /etc/passwd | grep papagolf [sudo] password for papagolf:  papagolf:x:1000:1001:Rex,,,:/home/papagolf:/usr/bin/zsh # papagolf's default shell is zsh  papagolf@Sierra ~/My Files/My Programs/Learning/Shell % bash # I fired up bash. (See that '%' prompt in zsh changes to '$' prompt, indicating bash.)  papagolf@Sierra:~/My Files/My Programs/Learning/Shell$ ./prac002.sh  Enter username : Rex Rex # Which interpreter did it just use?   **EDIT : ** Here's the content of the script  papagolf@Sierra ~/My Files/My Programs/Learning/Shell % cat ./prac002.sh  read -p "Enter username : " uname echo $uname For each positive even integer $n$, set   $$P_n = \displaystyle {{n} \choose {\frac{n}{2}}}\frac{1}{2^n}.$$  Show that $\displaystyle \lim_{n \to \infty} P_n$ exists and determine its value.   Here's what I have so far: each $P_n$ can be thought of as the probability of tossing a fair coin $n$ times, and obtaining exactly $\frac{n}{2}$ heads. My expectation is that $P_n \to 1$, since in any large trial, one would expect to record just about as many heads as tails. But I'm not sure how to mathematically justify this hunch.  Hints or solutions are greatly appreciated. Math Induction Proof: $(1+\frac1n)^n < n$ So I have to prove:      For each natural number greater than or equal to 3,   $$(1+\frac1n)^n&lt;n$$   My work: Basis step: $n=3$ $$\left(1+\frac13\right)^3&lt;3$$ $$\left(\frac43\right)^3&lt;3$$ $$\left(\frac{64}{27}\right)&lt;3$$ which is true.  Now the inductive step, assume $P(k)=\left(1+\frac1k\right)^k&lt;k$ to be true and prove $P(k+1)=\left(1+\frac1{k+1}\right)^{k+1}&lt;k+1$.   This is where I am stuck because usually you add or multiply by $k+1$ or some similar term. Resistors in series vs parallel Asymptotic expansion of $u_{n + 1} = \frac12 \arctan(u_n)$ How to watch live youtube stream using vlc? Is it possible for now to watch live youtube video streams using vlc? I just don't want to use flash player. I know that vlc can play youtube videos using link for the page where that video is located, but how about live youtube videos? I won a Samsung Galaxy S6 Edge, signed into it with my Google account, played around with it, wiped it, and sold it.  Now the person can't get past setup because it's saying he must login with an account previously synced to the phone.   Is there anything I can do from my side to remove this lock?