Is there currently a generic command that will "pivot" input.  e.g.  #labeled.file name: bob title: code monkey  name: joe title: pointy haired   is converted to:  name title bob  code monkey joe  pointy haired   and vice-versa
I have a file with the lines like below.  title1:A1 title2:A2 title3:A3 title4:A4 title5:A5  title1:B1 title2:B2 title3:B3 title4:B4 title5:B5  title1:C1 title2:C2 title3:C3 title4:C4 title5:C5  title1:D1 title2:D2 title3:D3 title4:D4 title5:D5  How can I achieve this?   title1    title2     title3    title4 A1         A2         A3         A4 B1         B2         B3         B4 C1         C2         C3         C4 D1         D2         D3         D4
Normality of dependent variable = normality of residuals? How do I move child windows without moving or minimizing parent in GNOME 3? Implied string comparison, 0=='', but 1=='1' How do Horcruxes work? A few questions regarding the Horcruxes.   Had Voldemort actually succeeded in using a Horcrux, would he come back the same age (biologically and/or aesthetically) he was when he made the Horcrux, or the age he would biologically be if he had never died (half died)? If Harry was a Horcrux, then in the graveyard, when Wormtail added Harry's blood to the potion to bring Voldemort back, didn't that technically use up the Horcrux inside of Harry? So in Deathly Hallows when Voldemort kills Harry, shouldn't Harry have actually died rather than just have the Horcrux inside him destroyed, seeing as it was technically used in the Goblet of Fire? How can we do pagination in datagridview in winform cin and getline skipping input MicroSD card is set to Read-only state. How can I write data on it? I have a MicroSD card reader in my notebook. When I insert a MicroSD memory card into it, I can't write any data on it - it's read-only. The same thing happens when I try to do it under root. And I can't change the permission policy for it. This problem happens for all microSD cards (I've tested 2 cards). I've encountered it on Ubuntu 12.04 LTS, now I'm on Ubuntu 12.10, the problem is still on it's place. When I try to insert such a "read-only" card in my mobile phone, everything's OK and I can write data on it. So, can anybody tell me, how can I write a data onto the card?  UPD: here's fdisk -l output:  Disk /dev/sdc1: 2013 MB, 2013135360 bytes 62 heads, 62 sectors/track, 1022 cylinders, total 3931905 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000   Device Boot      Start         End      Blocks   Id  System   The file system of the card is msdos. As to me it's weird.   UPD2: I've found a small "lock" switch on my card adapter, and it turns out, that when I insert it in my notebook, it switches on. Perhaps, I have to find some glue or something to get that switch stuck...  UPD3: There was no glue near me, so I've decided to buy another card-reader. Background process of subshell strange behaviour I wonder why some similar bash commands behave the way they do.  I have a bash script foo:  #!/usr/bin/env bash  while true do     echo "reading"     read data     echo $data     echo "stderr msg" &gt;&amp;2     sleep 1 done   It's an infinite loop which reads one line at a time from stdin and outputs that same line. I also have a bash script bar:  #!/usr/bin/env bash  ./foo &amp;   The following commands were run in bash (v. 4.4.19) in a terminal on Ubuntu 18.04 (let's assume the scripts reside in the working directory):   ./foo &amp;   Stops when it tries to read from stdin, in accordance with . Killed when controlling terminal is killed, as expected.  (./foo &amp;)   Appears to be automagically continuously fed with new input from stdin. Shouldn't it too stop when attempting to read from stdin? Whatever it's getting it doesn't show when echoed, thus I'm guessing it's EOF characters.  Continues running even after the controlling terminal is killed. Looking at the output of ps, the controlling terminal changes from pts/x to ?. How did this happen without the use of either disown or nohup? (However, after killing the originally controlling terminal, it yields a "write error: Input/output error" on every write, which I suppose is because its stdout was tied to the now closed terminal. Correct?)  bash -c "./foo &amp;"  Appears to behave exactly like 2). ./bar  Appears to behave exactly like 2) and 3). Adding bash -c "~/foo" (no &amp;) as a startup application  Behaves similarly to 2), 3) and 4), with the differences:   Its controlling terminal is the desktop ttyx. You can't (can you?) kill its controlling terminal.   None of those differences seem odd to me, just the fact that it's continuously fed with new input.   My guess is that 2) - 5) all use a subshell of sorts whose stdin is redirected to something like /dev/null, though I'm very unsure and seek a more exact answer. How can I add "page # of ##" on my document? I want to add a footer to my document displaying the current number out of total number of pages. How do I do that? Why only 1 public class in Java file VSE isn't multi-threading Whenever I render a video using the blender video editor only one core is ever used at any time. I have an 8 core CPU(FX-9590) yet regardless of whether blender is set to auto detect or a fixed 8 threads only one core ever sits at 100% at any given time. The rest of the cores sit and really low usage as if blender is completely ignoring them. I'm running blender 2.77a on Linux. I'm using Theora as the codec with an ogg container and Vorbis audio. How do I get blender to use all my cores? Possible Duplicate:          On Windows I am able to switch between keyboard layouts by pressing Alt+Shift. Is there a similar keyboard shortcut in Ubuntu? Why do paintbrush loops get thicker at the top in Illustrator? When I do swirls in Illustrator with the paintbrush tool I often get this result (see image).    The loops doesn't get perfectly rounded, instead sometimes some of them gets thicker at the top of the loop... It tends to happen more if I paint small with low brush sizes. Why is this happening? Does $x^2 - y^2 = 12345678$ (x,y are integers) have any solutions? This question appeared in KVPY online exam held on Nov 5. This equation is the equation of a hyperbola so any solution must be of the form $a\sec(k),a\tan(k)$. So no solutions. What are the prerequisites to studying general relativity? This question recently appeared :     Slashdot posts a fair number of physics stories. Many of us, myself included, don't have the background to understand them. So I'd like to ask the Slashdot math/physics community to construct a curriculum that gets me, an average college grad with two semesters of chemistry, one of calculus, and maybe 2-3 applied statistics courses, all the way to understanding the mathematics of general relativity. What would I need to learn, in what order, and what texts should I use? Before I get killed here, I know this isn't a weekend project, but it seems like it could be fun to do in my spare time for the next ... decade.   It seems like something that would be a good addition to this site: I think it's specific enough to be answerable but still generally useful. The textbook aspect is covered pretty well by , but beyond that: What college-level subjects in physics and math are prerequisites to studying general relativity in mathematical detail? How do I prompt users with a GUI dialog box to choose file/directory path, via the command-line? I've been studying the Huddleston and Pullum book for four months now. So far only one thing confuses me: the identity of gerund. Is it a noun or a verb?        His constant smoking upset me.  smoking seems  noun because of adjective constant.   Him/His constantly smoking upset me. smoking seems to be verb because of adverb constantly.   Him/His smoking cigars upset me. smoking seems to be a verb because of object cigars.      "His smoking upset me." So is this smoking gerund a noun or verb? Because there is no differentiation, is it both verb and noun? Maybe it's new word category?  Also his seems to be both  sometimes a subject and at other times a possessive determiner. Is that correct? Do you "gain" your 1st level? Connectivity, Path Connectivity and Differentiability I have two questions which pertain to differentiability, connectivity and path connectivity. Ocasionally, I will encounter an author who defines connectivity in the following way:   An open subset $U$ of $\mathbb{R}^n$ is said to be connected if and only if given two points $a$ and $b$ of $U$ there exists a differentiable mapping $\phi: \mathbb{R} \rightarrow U$ such that $\phi(0) = a$ and $\phi(1) = b$.   This particular example is from Edward's Advanced Calculus of Several Variables p 84. Now, this is obviously not the standard definition we learn from topology which has nothing to do with differentiability but rather whether there exists two nonempty open subsets that comprise a separation. It also seems to me that what the author is really defining what it means for a space to be "smoothly path connected", which of course implies connectivity and, it seems to me, considerably more.  My first question is: Is "smoothly path connected", as defined above actually equivalent to "connected", in the topological sense, in $\mathbb{R}^n$?  Next, in Vector Calculus by Baxandall and Liebeck on p 150 the authors state the existence of a continuous path $\alpha$ from the closed interval $[0,1]$ to an open subset $D$ of $\mathbb{R}^n$ where $\alpha (0) = a \in D$ and $\alpha(1) = b \in D$ guarantees the existence of a differentiable path with the same properties. This claim is stated without proof.   My second question is: Can someone provide a reference to a proof of the above claim or explain why it is so? I'm loading elements via AJAX. Some of them are only visible if you scroll down the page. Is there any way I can know if an element is now in the visible part of the page?