I have a content which is text mixed with json  blablabla  bla bla  sdf sdfsdfsdf {     "glossary": [{         "title": "example glossary",         "GlossDiv": {             "title": "S",             "GlossList": {                 "GlossEntry": {                     "ID": "SGML",                     "SortAs": "SGML",                     "GlossTerm": "Standard Generalized Markup Language",                     "Acronym": "SGML",                     "Abbrev": "ISO 8879:1986",                     "GlossDef": {                         "para": "A meta-markup language, used to create markup languages such as DocBook.",                         "GlossSeeAlso": ["GML", "XML"]                     },                     "GlossSee": "markup"                 }             }         }     },     {         "val":2     }] } dd dfsdfsdf bla blablablabla   I want get json from the string, so I use this regexp  \{(.|\s)+\}   It gives me (checked it on ):    Full match with my correctly found json Empty group   I don't understand what causes the empty group to appear
For example, this regex  (.*)&lt;FooBar&gt;   will match:  abcde&lt;FooBar&gt;   But how do I get it to match across multiple lines?  abcde fghij&lt;FooBar&gt;
I need to get MODIS NDVI (MOD13A3), but output from EarthExplorer or Daac2Disk HDF format is a numerical range is -2000 to 9996.   But I need for futher work basic range -1 to 1.   Is there any conversion method? Prove the definitions of $e$ to be equivalent How to prove that the following definitions of $e^x$ are equivalent, with as simple tools as possible and without any knowledge of $e$ or logarithms ?  $$\sum_{n=0}^{\infty} \frac{x^n}{n!}=\lim_{n\to\infty}\left(1+\frac{x}{n}\right)^n$$  Also preferably, prove that this is $a^x$ for some real number $a&gt;0$. Let $A\neq I$ be a $5\times5$ matrix with real entries such that the sum of the entries in each row of $A$ is $1$. Then the sum of all the entries in $A^3$ is  1)$\space 3$ $\qquad $2)$\space 15$ $\qquad$ 3)$\space 5$ $\qquad$ 4)$\space 125$  Solution:  The answer is $5$ if $A = I$, but for $A \neq I$,  I found that vectors $\begin{pmatrix} 1\\ 1\\ 1\\ 1\\ 1\\ \end{pmatrix}$ and  $\begin{pmatrix} -1\\ -1\\ -1\\ -1\\ -1\\ \end{pmatrix}$  are eigen vectors for the matrix $A$ corresponding to eigen value $1$. From here, I dont know how to proceed, please help me solve the question..and if there are mistakes in my argument, please tell me.. Delete all files except files with the extension pdf in a directory Tall curly brace I would like to put a tall (long) left curly bracket on the left side of the following:  \documentclass[12pt]{article}  \begin{document}  \noindent c: $\{$1, ..., n$\}$ $\rightarrow$ $\{$1, ..., n$\}$, such that  \hspace{20 mm}  \noindent c($a_i$) = $a_{i+1}$ for 1 $\le$ $i$ &lt; $l$  \hspace{20 mm}  \noindent c($a_l$) = $a_1$   \end{document}   Please let me know if you can help. Thanks! I want to get the following:    I tried the following  \[    a(i,k) \leftarrow     \min\Big\{0, r(k,k) + \sum_{i^{'} | i^{'}\notin \{i,k\}}\max\{0, r(i{'},k)\}\Big\} \]   and got    How can I make the part under the summation extend to left and right without making a space between plus and max as in the first figure? How can I programmatically change the active theme? How can I programmatically change the active Drupal 8 theme?  In Drupal 6, we used the following code.  global $custom_theme; $custom_theme = 'garland';   In Drupal 7, we used hook_custom_theme().  In Drupal 8, what's the correct way to do this? I accidentally "always ignore"d a wrong wrong word. How do I undo it and make the old dictionary clean again? Weight Painting Won't Get Rid of Weird Protrusions What is the difference between $* and $@? What makes SHA-256 secure? For example, RSA relies on a mathematically hard problem, factoring, while ECDSA or similar rely on discrete logarithm problem.  What makes SHA-256 and similar hash functions, of the same family, secure against pre-image and collision attacks? What's the math behind it? Factors for max CP at a particular trainer level? How to run xrandr commands at startup in Ubuntu Using nohup to keep a script running indefinitely I am very new to Linux and I've only been using it to SSH to my web server using Putty. The issue I am having is this:  Basically I've got 2 php scripts. One get_tweets.php constantly listens for tweets on twitters Streaming API whilst the other - parse_tweets.php logs these into a db. In order for these to work they've to be kept running continuously.   I've been using the following commands to run them in the background and from what I've seen they run for most of the day, however whenever I log on to my computer in the morning the scripts have stopped and I've to run commands again.  nohup php my_script.php &gt; /dev/null &amp;   I'm just wondering if that is normal based on the commands I am using, should they run indefinitely when using nohup and if not what is the alternative? A CRON job?  Thanks for the help sqlite database default time value 'now' How can I adjust Cycles material displacement amount? Two-finger swipe 'breaks' heads-up notifications on Lollipop? I have a Nexus 7 (2013) and a Moto X (2014) running Lollipop. On both of these, if I get a heads-up notification (i.e., those that show up on top of the screen when the device is unlocked) and swipe down on it with 2 fingers, it 'breaks' further heads-up notifications:   I can't tap on them to open the responsible app For, e.g., an incoming phone call with 'answer' and 'dismiss' buttons, tapping the buttons does nothing. I can't answer phone calls anymore!   I can still swipe to the side to dismiss the notifications, and they still disappear on their own after a few seconds. I haven't been able to find a way to get the correct behavior back aside from a restart.  Yeah, the obvious workaround is to not two-finger swipe on them, but it's second nature as that same gesture expands notifications in other contexts.  I'm guessing the problem is generic, but I've triggered it on Hangouts and Phone notifications.  Do others experience the same thing? Any known 'fixes' aside from restarting? Last night, I migrated my MacBook's operating system from 10.10 "Yosemite" to 10.11 "El Capitan". Everything seemed to go smoothly. Happily, regarding my TeX-related work, I am able to use the GUI front ends "TeXworks" and "TeXshop" just fine since completing the OS upgrade. I use MacTeX2015, with all the latest updates installed.  Oddly, though, since completing the upgrade I can no longer run any MacTeX command-line utilities such as texdoc and kpsewhich. (Actually, as I just discovered, I can no longer run pdflatex either from a command line. However, I never do run pdflatex from a command line prompt, so that's not an urgent problem for me -- at least not for now.)  The suggestions given in the posting  do not seem to be applicable to this case, as they all seem to revolve around setting up /usr/texbin correctly -- /usr/texbin is no longer allowed under MacOSX 10.11. The document  by Herb Schulz deals in depth with adjusting settings in the GUI front ends, but it appears not to touch on what to do about /usr/texbin, which appears to be the now-missing link to TeX's command line utilities.   Pointers and solutions most welcome! What is the word for act of monotonously demanding for something (many be a toy) repeatedly? We have a view for a type of node that includes a Private File.  We cannot see a way to add an exposed filter, such as "Contains any word", and have it filter based on the file's name.  Are we missing something obvious?