This is a follow up of my previous question . Say we have a Python file with this content:  hello.this_is("bla bla bla") some random text hello.this_is('hello hello')  hello.this_is("bla") hello.this_is("1hello")  hello.this_is("2hello") other stuff   I want to extract all the strings within quotes in hello.this_is(, either single or double quotes, so my output is like:  bla bla bla hello hello bla 1hello 2hello   From the answers on the other question I ended up having this expression:  grep -Po '(?&lt;=hello\.this_is\((["'\''])).*(?=\1)' file   Which works well... unless there are two matches of hello.this_is() in the same line and using the same kind of quotes. In that case, the output is like:  bla bla bla hello hello bla 1hello")  hello.this_is("2hello    # this is wrong   That is, the .*(?=\1) is a greedy match, so it matches until the last occurrence of the captured group happens again, instead of matching two different patterns.  How can I change the regex in Grep so that it matches everything up to the next captured group in a non greedy way?  To have a very simplified example, it would be like if we want to get all the numbers between the "hello" text in "hello23hello24hello25". Ideally you would get "23" and "24", but instead I get:  $ grep -Po '(?&lt;=(hello)).+(?=\1)' &lt;&lt;&lt; "hello23hello24hello25" 23hello24   Using a more representative example, let's say we use the capture group to match either "hello" or "hillo" in this example:  $ grep -Po '(?&lt;=(hello|hillo)).+(?=\1)' &lt;&lt;&lt; "hello23hello24hello25hillo26hillo27" 23hello24 26   While the desired output would be "23", "24", "26".  I was thinking of replacing the .+ pattern with something like [^\1]+ so it matches everything but the captured group... but it does not work.
I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?
Is the "Final Release" a "Development Release"? Update  appear to have been updated recently (as of writing this the last update appears to have taken place on 3rd of June) to include the following statement:  The -d switch is necessary to upgrade from Ubuntu 18.04 LTS as upgrades have not yet been enabled and will only be enabled after the first point release of 20.04 LTS.  Also note that .  TLDR (as of 15 Aug 2020):   is the canonical tracking document for the first Focal Fossa point-release (20.04.1). It’s a live document. The Ubuntu release team will be updating it as we work on releasing 20.04.1. […] Upgrades from 18.04 to 20.04.1 are still disabled as we are working through a few upgrade blockers   Edit The answers (so far) do not answer the question. The question is pretty simple. Ubuntu.com points to a &quot;FinalRelease&quot;, which turns out to be a &quot;Development Release&quot;, see evidence below. I'm not asking how and when to upgrade. I'm pointing out what seems to me to be an apparent inconcistency (in semantics, linguistics, logic) in the way Ubuntu names or labels its releases. From an answer to the question I'd except someone to pick up and acknowledge this inconsistency. An answer could start with a &quot;Yes, ...&quot; or a &quot;No, ...&quot;, for starters. (Moreover, a good answer could distinguish between the release being in dev stage and/or the upgrade process (e.g. from LTS to LTS) being in dev stage, if appropriate.) This question, as I see it, is not a duplicate. Futher, I think it is a question which deserves a non-patronizing answer. Thanks.   indicates that today (23rd April 2020) the new Ubuntu 20.04 LTS is to be released.  See &quot;condensed screenshot&quot; here:  Indeed, it seems that that's what happened, see  and :  However, when following the instructions to upgrade (from 18.04 LTS to 20.04 LTS) found  and elsewhere (edit: actually , too!), even prior to the July point release, I'm a bit confused to see that the instruction is to use update-manager -d which also points to the &quot;Development Release&quot; (see screenshot below) rather than the &quot;FinalRelease&quot; (see screenshot and link above). Is the &quot;Final Release&quot; (which I'm after) the/a &quot;Development Release&quot;? Why isn't it called something like &quot;Production Release&quot; or &quot;Final Release&quot;? When will it no longer be referred to as &quot;Development Release&quot;? In July? I'm confused :( Festival stores voicepack data in the following example directory structure:  /usr/share/festival/voices/&lt;language&gt;/&lt;voicepack name&gt;  What is the simplest one-liner (preferably using ls) to print out just the &lt;voicepack name&gt;'s, in all the potentially numerous &lt;language&gt; subdirectories? Unable to install Ubuntu on Lenovo Y500 Format not available in tag wiki excerpt For example, :   Format like bold or italic are not available , so it leaves ugly text there:  **This tag is *extremely* ambiguous. Consider using other tags instead.**    Does this need to get fixed, or it's not supported and the tag-wiki needs to be format-free? $k^{\phi(l)} + l^{\phi(k)} \equiv1\pmod{lk}\,$ if $\,\gcd(l,k)=1$ I would like to prove the following equality: $$k^{\phi(l)} + l^{\phi(k)} \equiv1\pmod{lk}$$if $\gcd(l,k)=1$. What methods can I use? Thank you for your help. What if I offer a bounty and don't get any good answers? I have started a bounty:   It expires in 3 days. I don't have an appropriate answer to accept, and the only answer which it has gotten has no votes.  So am I going to simply lose 100 reputation without getting a satisfactory answer?  Or should I accept the lone inappropriate answer so that I will not lose my right to accept answers to any questions which I might ask in the future, which is what the bounty rules claim? How to disprove this fallacy that derivatives of $x^2$ and $x+x+x+\dots\quad(x\text{ times})$ are not same. Possible Duplicate:          \begin{align*} x^2 &amp;= \underbrace{x + x + x + \dots + x}_{x \text{ times}}, \\ \therefore \frac{\mathrm{d}}{\mathrm{d}x} (x^2) &amp;= \frac{\mathrm{d}}{\mathrm{d}x} (\underbrace{x + x + x + \dots + x}_{x \text{ times}}) \\ &amp;= \underbrace{1 + 1 + 1 + \dots + 1}_{x \text{ times}} \\ &amp;= x. \end{align*}  But we know that $$ \frac{\mathrm{d}}{\mathrm{d}x} (x^2) = 2x. $$  So what is the problem?  My take is that we cannot differentiate both sides because $\underbrace{{x+x+x+\cdots+x}}_{x \text{  times}}$ is not fixed and thus $1$ is not equal to $2$. How do I tell a script to wait for a process to start accepting requests on a port? I need a command that will wait for a process to start accepting requests on a specific port.    Is there something in linux that does that?  while (checkAlive -host localhost -port 13000 == false)   do some waiting  ... Conditionals (Past Tense) In terms of conditional sentences, is it correct to say:   if you knew why I WAS here, then I wouldn't need to be here.   or   If you knew why I WERE here, then I wouldn't need to be here.   Which type of conditional is this? Type 2? I was thought at school that there are three types of conditionals. Are there more of them? Neural networks output probability estimates? Suppose my training data contains ~100 variables, and each example is tagged as "success" or "failure".  I understand how a neural network can be used to try and predict success vs failure based on the variables.  However I am interested in the neural network outputting the posterior probability rather than success or failure. In fact, I evaluate the efficacy of the NN based on how accurate the probabilities are (eg. AUROC over the entire dataset) rather than % of cases with correct prediction.  Are NN's the right tool for the job here and if so how do you structure the NN to output this?  (NOTE: I'm a ML newbie!) Why do microcontrollers have so little RAM? Maybe this is more of a perceptional problem, but it seems like microcontrollers have advanced by leaps and bounds in the last 20 years, in almost all regards, higher clock speed, more peripherals, easier debugging, 32-bit cores, etc...  It is still common to see RAM in the 10's of KB (16/32&nbsp;KB).  It doesn't seem like it could be an issue of cost or size directly. Is it an issue of complexity with the RAM controller above some threshold?  Or is it just that it isn't generally required?  Looking over a parts matrix at a popular Internet supplier, I see one  with 256&nbsp;KB for less than US$8, and then for a few dollars more you can find a few more that are ROMless, but it seems pretty sparse...  I don't exactly have a need for a microcontroller with a MB of volatile storage, but it seems like somebody might... What's the most efficient way to get experience? Now that experience does something besides render regions of a server uninhabitable due to  orb lag, what's the most efficient and safe way to get those excellent enchants?  A mob farmer may rank highly, but what about without tons of setup? Workflow for converting LaTeX into Open Office / MS Word Format I often have to write up reports based on the analysis of some data. I use R to analyse the data and export tables, figures, and text. This is then included into a LaTeX document either using input or Sweave ().  However, when I collaborate with others, I sometimes need to provide a document in Open Office / MS Word format.  Question:  Thus, assume the simplest scenario   I have a LaTeX document with text, tables, and figures I need to export this reliably into Open Office or MS Word format: this includes mathematical formulas, table formatting, and quality figures) I don't need to go back from MS Word to LaTeX   What is a reliable, efficient, and preferably free process?  Initial Thoughts:   Export to HTML,  LaTeX - LyX - ODF Use odfWeave  that deals with some specific issues associated with LaTeX to Open Office conversion    I was hoping that there is an expert out there who has worked out a good system already. Cron jobs in Drupal 7 I have a PHP file that does some task in consistent intervals.   I have placed that PHP file inside a custom module folder, but I found that Drupal functions like drupal_set_message() are not available inside the PHP file.   How do I include Drupal functions inside this PHP file? How do I set up this php file to be run as a cron job? Photoelectric effect intensity I understand the PE effect quite well but I'm failing to understand one thing. Intensity is the amount of energy per second incident to a given area.   So can you can increase the intensity by either increasing the electrical energy or making the area smaller? By increasing the electrical energy, what exactly is happening?  I assume that by increasing intensity you are increasing the number of photons incident to an area of the metal thus increasing the rate of photoelectric emission. But why doesn't increasing intensity via more electrical power lead to greater energy of the electrons, if by increasing intensity you are increasing the energy of the incident waves?  I understand the results but I'm trying to understand why the intensity works the way it is thanks The basic 6T structure used for storing data is same as one used in "Positive Feedback Differential Voltage Sense Amplifier", then how come while the data is stored in SRAM memory cell it doesn't get amplified? Is there Ubuntu's analogue of snapshot.debian.org? How do I sudo a command in a script without being asked for a password? I want to turn my system on automatically every day. So I use the below code in my Python script, but sudo asks me for a password every time:  os.system('sudo sh -c "echo date \'+%s\' -d \'+ \        24 hours\' &gt; /sys/class/rtc/rtc0/wakealarm"')   How can I run this script without sudo asking for the password every time? QCompleter Custom Completion Rules Following are other questions which I think I need to know:   From a non X Session? (meaning root isn't logged into X) If multiple people were logged in on X, could I auto-detect who was on which screen, and thus programmatically detect which screen I need to launch the app on? Can I launch the app as the user? ( ok I'm 99.999% sure this is a yes ) Can I detect if users of group X are logged in to X?