Read JSON data in a shell script
Parsing JSON with Unix tools
Why is Harry Potter a half-blood? Being born to James and Lily, how can Harry be called a half-blood?  It is said that admission in Hogwarts is given to children of Muggles when they show magical talents as a child, and Lily was no exception to this. This makes Lily a witch, so why is Harry half-blooded? Anthology for children; contains story about friendly Martian on postapocalyptic Earth I'm looking for the title of an anthology of children's science fiction stories from the 1950s. The best of the bunch involved a Martian who visited earth, and realized we'd blown ourselves up in a nuclear war and had fallen into savagery. The Martian is a vegetarian who subsists on biscuits made by a machine he brought with him, and communicates by using one of his tentacles to feed messages direction to/from the brain of the person he's talking to.  Inadvertently left behind by his expedition, he initially befriended some children, and eventually managed to rebuild civilization. Presently he dies, but when another expedition comes a generation later, they find the civilization he rebuilt.  there were other stories, but that was the best one.   If I can't find the name of the book it was in, I'd be happy to settle for the name of the author and the title of the story. sed : Ignore line starting whitespace for match I want to replace the default listening port of httpd to 9090. I can edit the line in httpd.conf file using below  sed -i "/^Listen/c\Listen 9090" /etc/httpd/conf/httpd.conf   But the line   Listen 80   may have white space before it.  How do I ignore this white space to match this line? I would like to toggle the Do Not Disturb in the notification center with a keyboard shortcut.  I am using BetterTouchTool for some extra keyboard shortcuts but it does not support enabling/disabling the notifications in the default options.  It has an option for executing a terminal command so I'm asking here how to enable/disable Do Not Disturb from the terminal?  I found  and I tried to run the commands but it didn't seem to work. Suppose that $a_1,a_2, \cdots, a_n$ are $n$ different integers. Then $[(x-a_1)(x-a_2) \cdots (x-a_n)]^2 +1$ is irreducible over $\mathbb Q$.   I've no idea why it is true. Thanks very much. t-test for partially paired and partially unpaired data An investigator wishes to produce a combined analysis of several datasets.  In some datasets there are paired observations for treatment A and B.  In others there are unpaired A and/or B data.  I am looking for a reference for an adaptation of the t-test, or for a likelihood ratio test, for such partially paired data.  I am willing to (for now) to assume normality with equal variance and that the population means for A are the same for each study (and likewise for B). Inequality $\sum\limits_{1\le k\le n}\frac{\sin kx}{k}\ge 0$ (Fejer-Jackson) Show the following inequality for any $x\in [0, \pi]$ and $n\in \mathbb{N}^*$, $$ \sum_{1\le k\le n}\frac{\sin kx}{k}\ge 0. $$  I have this question a very long time ago from a book or magazine but I cannot solve it by myself and did not know how to solve it until today.   My try: for $n=1, 2, 3$, one can check this by hand. Can someone please verify my proof?     Is the collection $\tau_\infty = \{U:X-U$ is infinite or empty or all of $X\}$ a topology on $X$?   No. Let $X = \mathbb{R}$.  Clearly, $\{x\} \in \tau_\infty$ for all $x \in X$.  Set $\displaystyle{B = \cup_{x \neq 0} \{x\}}$. Clearly, $X - B = \{0\}$, but $\{0\} \notin \tau_\infty$. Since $\tau_\infty$ is not closed under arbitrary unions, it does not define a topology on $X$. I added some extra repositories with the Software Sources program. But when I reload the package database, I get an error like the following:     W: GPG error:  trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8BAF9A6F   I know I can fix it using apt-key in a terminal, according to the official Ubuntu documentation. But I would have liked to do it graphically. Is there a way to do this without using a terminal? Password protected Visualforce Page rendered as PDF Is it possible that a Visualforce page rendered as pdf can be password protected?  I am using Messaging.SingleEmailMessage to send mail with attachment, but I need the attachment password protected. Is it appropriate to put a comma before "which"? On Server Fault, we were discussing  in chat. There are non-native speakers in the chat and somehow we got on the topic of grammar and proper use of commas.   The sentence of interest:     I have just got a new Ubuntu LAMP VPS server, which I am trying to configure.   Some people thought that the comma was superfluous. Others did not.   When is it appropriate for a comma to preceed the word which, and is the example sentence above correct?    Also, before you vote to close this question as a dupe of , please consider the differences between the two questions and ignore the similarity of the titles. The OP's example sentence was restructured in that question instead of addressing the proper use of commas. Using PTSerif-TLF for Cyrillic with TeX Gyre Pagella ICANN charges 18¢ per domain name registered regardless of its extension, but I pay $10 for a domain name per year with my registrar.   What do domain name registrars do for its customers to justify this extra $9.82?  Is there something that they do for our domain names other than registering it with ICANN?   I just read about the 7 people who hold the ICANN database key and got a little bit curious to know what the domain name servers do for us to justify this extra amount (12 times the actual fee)? Mean Squared Error (MSE) of parameter $p$ in binomial distribution: intuition I have up until Cov(X+Y,X-Y) = E[((X-E(X))+(Y-E(Y)))((X-E(X))-(Y+E(Y)))] and now I am stuck and do not know how this turns into Var(X)-Var(Y) I was working on a problem that resulted in the calculation: $20 \equiv 10x \pmod{11}$.  I got the answer $x \equiv 2 \pmod{11}$ with the thought process: Since $10$ is a factor of $20$ I can rewrite $20 \pmod{11}$ as $10x \pmod{11}$ with $x=2$. But isn't this basically the same as using division, which we aren't supposed to do in modular spaces?  If I solve by multiplying $20$ by the multiplicative inverse of $10 \pmod{11}$ which is $10$, I get $200 \pmod{11}$ which simplifies to $2 \pmod{11}$ anyway. Did these numbers just happen to be the same or is my original method valid? Post-hoc tests after Kruskal-Wallis: Dunn's test or Bonferroni corrected Mann-Whitney tests? I have some non-Gaussian distributed variable and I need to check if there are significant differences between the values of this variable in 5 different groups.  I have performed Kruskal-Wallis one-way analysis of variance (which came up significant) and after that I had to check which groups were significantly different. Since the groups are kind of sorted (the values of the variable in the first group are supposed to be lower than the values of the variable in the second group which are supposed to be lower than the values of the variable in the third group and so on) I only performed 4 tests:  Group 1 vs Group 2 Group 2 vs Group 3 Group 3 vs Group 4 Group 4 vs Group 5   I have performed this analysis with two different methods. I started by using Dunn's Multiple Comparison Test but nothing came up significant. On the other hand if I use Mann-Whitney test and correct for the number of tests (4) using Bonferroni, 3 tests come up significant.  What does it mean? Which results should I trust? What size difference is there between the PSP 1000, 2000 and 3000 for applying Skin Stickers? Attributing contributions to academic work that occur in Stack Exchange Sometimes we may ask questions on stack exchange or online forums wherein the response is helpful or even essential to a piece of work that gets published in an academic journal. If this occurs, how should credit be given to those involved in the exchange? Should they all be included as authors? Should a link to the forum be included as a reference in the paper?  Once something is in a stack exchange or forum, it's "published". Perhaps in the future, the current peer review model will transform into people writing blogs and posting in forums and databases. But for now, how might this issue be dealt with while forums, blogs, etc coexist with journals? How to record both screen and sound with Quicktime on El Capitan? I'm trying to record both what's happening on screen and the audio being played by the applications. To my surprise, QuickTime did not record the sound. I believe it worked before in previous OS X releases, but that is not something that I use often so I have not bothered to try earlier.  What is the current situation on El Capitan ? Have I messed with something that prevents QuickTime from capturing the sound, or has it never worked ?  Here is my view of Quick Time  / New Screen Recording on a Mac Mini:   On my Macbook Pro, I have the option select None or Internal Microphone. Internal microphone actually records the speakers of the Mac Book as heard from its own microphone, which obviously sounds terrible.  This is a MacMini 7,1 (late 2014) and there is nothing in Input Sources.