Regex Matching ok with Rubular but not with Python re.sub()
How to print without newline or space?
I've never really thought about how the shell actually executes piped commands. I've always been told that the "stdout of one program gets piped into the stdin of another," as a way of thinking about pipes. So naturally, I thought that in the case of say, A | B, A would run first, then B gets the stdout of A, and uses the stdout of A as its input.    But I've noticed that when people search for a particular process in ps, they'd include grep -v "grep" at the end of the command to make sure that grep doesn't appear in the final output. This means that in the command ps aux | grep "bash" | grep -v "grep" it is implied that ps knew that grep was running and therefore is in the output of ps. But if ps finishes running before its output gets piped to grep, how did it know that grep was running?   flamingtoast@FTOAST-UBUNTU: ~$ ps | grep ".*" PID TTY          TIME CMD 3773 pts/0    00:00:00 bash 3784 pts/0    00:00:00 ps 3785 pts/0    00:00:00 grep Windows 7 msconfig lets users select the options No GUI boot and OS boot information to have a list of drivers being loaded during boot. Is it possible to have similar detailed messages during shutting down/restarting/logging off? Here's the screen I want disable or give me more details: Update statement with inner join on Oracle Rest mass of the photon Why is the rest mass of the photon is taken to be zero?  If rest mass of the photon is non zero, then it leads to infinite energy of the photon (by $E=mc^2$ equation) and there is a violation of conservation of energy. Is this a reason?  Also, is there any thing called the relativistic mass of the photon? No room for a new \dimen 1970s scifi/horror novel where protagonist is used by a crablike creature to feed its larvae, goes mad, and is defeated by retraumatising him Other than looking at the profile, is there a way to find out someone's real name? A user on SO, Abhijit, referred to the OP of a question, acpigeon, as "he" (and then Aaron) .  I didn't see the name on the question page, nor on . Is there a way to look this up that I missed? Alternatives are Abhijit knows acpigeon, or maybe Abhijit was just making things up.  I'm still relatively new to these sites, so I'm still learning my way around. Is there a way short of the two alternatives above to know the OP's name? If so, how? The full question: suppose N is normal in G and $[G:N]=p$ is a prime. Prove that for any $K \leq G$, either (1) $K \leq N$ or (2)$KN=G$ and $[K:K \cap N]=p$.  Since $N,K \leq G$, it is of course possible that $K \leq N$ could happen.  but for (2), we can show $KN \subseteq G$  but how can we show $KN=G$?  And what information does "$[G:N]=p$" give us? How to choose the right bean scope? Finding a research group where I can work remotely? Every infinite subset of a countable set is countable. Here is the proof I tried to weave while trying to prove this theorem:     Theorem. Every infinite subset of a countable set is countable.      Proof. Let $A$ be a countable set and $E\subset A$ be infinite. Then $A\thicksim\mathbb{N}$. This implies that there is a sequence $\left\{x_{n}\right\}_{n\in\mathbb{N}}$ where $x_{n}\in A$. Construct a sequence $\left\{n_{k}\right\}_{k\in\mathbb{N}}$ where $x_{n_{k}}\in A$, $n_{1}$ is the smallest positive integer such that $x_{n_{1}}\in A$, and $n_{k+1}&gt;n_{k}$. Then      $$ E=\bigcup_{k=1}^{\infty}x_{n_{k}}, $$      and $E$ is countable, because $E\thicksim\mathbb{N}$. $\blacksquare$   Is it convincing? how to hide files from package explorer Generating DLL assembly dynamically at run time Currently I have some code that is being generated dynamically.  In other words, a C# .cs file is created dynamically by the program, and the intention is to include this C# file in another project.  The challenge is that I would like to generate a .DLL file instead of generating a C# .cs file so that it could be referenced by any kind of .NET application (not only C#) and therefore be more useful. I’m reading Shakespeare’s Henry IV (Part 1) right now and I’m noticing that Sir John Falstaff has a propensity of saying “If this, then I’m a this” sort of statements. A few examples to clarify:     … An I   have not ballads made on you all and sung to filthy   tunes, let a cup of sack be my poison      An I have not   forgotten what the inside of a church is made of, I   am a peppercorn, a brewer’s horse      if manhood, good manhood, be   not forgot upon the face of the earth, then am I a shotten herring      If I do not beat thee out of thy   kingdom with a dagger of lath, and drive all thy   subjects afore thee like a flock of wild-geese,   I’ll never wear hair on my face more   Is there a particular literary term for these sort of sentences? The command history between sessions is not getting saved. I'm using guake and the history for the session is working fine. I noticed that .bash_history had some commands I executed in sudo -s mode and tried the same again and all the commands while in the session got saved so I tried: chmod 777 .bash_history  Now the old commands appear at the start of a session but no new commands are getting saved. I have seen some hypotheses that the recent series corporate actions and statements are a sign of SO/SE being in the process of being, or about to be, sold. Arguments cited include the corp statements being made in paywalled areas and addressed to an audience that seems very distinct from the community, the choice of CEO, the push for a 'service sector' flavour of tensely smiling hospitality, and surely some more I can't recall in a coherent form.   Just how plausible and implausible, and how founded or unfounded, is such a hypothesis? Is it, as far as people more knowledgeable either about business in general or about the specific case of SE/SO, strategically consistent or even outright connected with the corp's behaviour (and a likely cause thereof)? Prevent users from submitting a form by hitting Enter How do I handle partially correct edits in the Suggested Edits review queue? Contradicting Instructions While going through the suggested edits review queue, one sometimes stumbles upon partially useful edits like . Trying to follow the instructions listed in the descriptions doesn't lead to a conclusive answer. Considering our example:   Approve edits that clearly improve the post ↳ No, not *clearly* Improve Edit when you can make additional improvements to the post ↳ I most definitively can Reject and Edit to replace an ineffective edit with your own substantive changes ↳ It is ineffective in the sense that it made the post worse overall (imho) Reject edits that fail to improve the post or that make it worse ↳ Like the last option: yes Skip if you are not sure and want to go to the next suggested edit ↳ Well, yes. But that is really why I am here, asking this question   Reasoning about the remaining Choices This leaves us with three choices: Improve Edit, Reject and Edit and Reject (the last one slightly modified):  Improve Edit  + Acknowledges that some things in the edit where correct - Learning effect for author might vanish, as the improvement might get overlooked - Can't leave a custom message for edit author (except in comments, which pollutes the thread) - Doesn't trigger the system which &quot;punishes&quot; users who repeatedly have their edits rejected - Rewards the edit author with reputation for a poor edit   Reject and Edit  + Clearly shows the author that there were problems with the edit - Still can't leave a custom message explaining the problems of the original post. - One has to partially redo parts of the edit that have just been rejected, which might feel unjust to the original editor   Reject with a custom note and come back immediately to make a good Edit  + Clearly shows the author that there were problems with the edit + Possibility to leave an explanation as to what was wrong with the edit - One still has to redo parts of the edit that has just been rejected - Seems to be a weird workaround for Reject and Edit   Something else?   Each of the three options come with their distinct advantages/disadvantages making it non trivial to decide which one to pick.  Or does the answer simply depend on the quality of the edit? Like:  Improve Edit for subjectively slightly positive edits Reject and Edit (Or Reject and Edit) for subjectively slightly negative edits Verify my proof of the irrationality of $\sqrt{6}$. What is the agreed upon definition of a "positive definite matrix"?