I need a regex that will match the following line:  {"httpStatus": "OK", "payload": {"status": "OK"}, "httpCode": 200}   but not  {"httpStatus": "OK", "payload": {"status": "OK", "config": {}}, "httpCode": 200}   So basically it should match the string if it not contains config  For checking if the string contains status the regex is:  (?=\"status\": \"OK\")
I know it's possible to match a word and then reverse the matches using other tools (e.g. grep -v). However, is it possible to match lines that do not contain a specific word, e.g. hede, using a regular expression?   Input:  hoho hihi haha hede   Code:  grep "&lt;Regex for 'doesn't contain hede'&gt;" input   Desired output:  hoho hihi haha
Why is $H(k\mathbin\Vert x)$ not a secure MAC construction? If $H(m)$ is a secure hash function, can't we implement a MAC using $H(k\mathbin\Vert m)$?  However, it seems the more widely used MACs, such as NMAC and  (both originally defined in ) use a much more complicated scheme. Why is this concatenation scheme insecure? Is there a faster way to open a process as Administrator (With UAC enabled)? Currently (In Windows 10) - if I want to open a CMD prompt, I'll hit the Windows key, type CMD and hit Enter. If I want it open as an administrator, I have to right click the item and click Run As administrator. Is there a way I can do this without using the mouse? Why there isn't any integer solutions in non-zero integers for $z^3 = 3(x^3 +y^3+2xyz)$? Consider the following Diophantine equation  $$z^3 = 3(x^3 +y^3+2xyz)$$  Is there any elementary proof for the non-solubility in non-zero integers for this  Diophantine equation, where the absolute value of $x, y$ and $z$ are pairwise coprime integers?  I have proved the impossibility of solution of this Diophantine equation in non-zero integers, but that took quite a few pages and I consider this too long. I hope for a much more elementary and shorter proof for this puzzle.  Hint: It should be noted that is also true for the non-availability of the similar form (replacing coefficient 3 by 1) as the following:   $$z^3=x^3+y^3+2xyz,$$ but this case is very simple to prove, where $x, y\;\&amp;\; z$ are nonzero integers. Simplest or nicest proof that $1+x \le e^x$ The elementary but very useful inequality that $1+x \le e^x$ for all real $x$ has a number of different proofs, some of which can be found online. But is there a particularly slick, intuitive or canonical proof? I would ideally like a proof which fits into a few lines, is accessible to students with limited calculus experience, and does not involve too much analysis of different cases. The most efficient way to implement an integer based power function pow(int, int) Desktop icons rearrange after using remote desktop connection I sometimes remote into my desktop PC (1900x1280) from my laptop (1280x900).  When I do, Windows (Vista) on the desktop PC rearranges all my desktop icons.  I could understand this if the RDP session's desktop size was too small to fit them in, but it's not.  I have about 12 icons, which do fit on the laptop's resolution (I've tried).  Why would Windows rearrange them all like this each time? I've seen the full proof of the Triangle Inequality  \begin{equation*} |x+y|\le|x|+|y|.  \end{equation*} However, I haven't seen the proof of the reverse triangle inequality:  \begin{equation*} ||x|-|y||\le|x-y|. \end{equation*} Would you please prove this using only the Triangle Inequality above?  Thank you very much. How can I add a right-click desktop menu entry to create a text file to Gnome 3 in Ubuntu 16.04.02? Why does println(array) have strange output? ("[Ljava.lang.String;@3e25a5") How to redirect a URL to a custom IP address? I have an Ubuntu machine that I'm using as my home Internet router.  It uses a USB mobile broadband modem as its Internet connection, and shares this with another router (via the router's "Internet" port) which I use as my LAN.  How do I redirect requests from within my LAN for a given URL to a custom IP address (ex have google.com redirect to x.x.x.x)? Some days I'm working with extremely large Excel files.  They have too many sheets that can't be shown in one sheet tab. (see image)      So, I'm wondering whether or not we can show Excel sheet on more than 1 row. Many tries with Google don't help much.    Many tries but I still can't make Excel show the sheet bar the way I want (≥ 2 rows), so I'm working with some VBA Scripts kopischke suggested.    FYI, right click on |&lt; &lt;&lt; &gt;&gt; &gt;| button on the bottom-right corner show you a list of up to 15 sheets.  For more, click on View more in the list appeared. Can I solve system of differential equation in a matrix form? An example to show that convergence of Cesaro sum to $0$ does not imply the original sequence converges to $0$. I'd like construct a non-negative sequence $\{a_{k}\}_{k=0}^{\infty}$ with $a_{0}=0$ such that the Cesaro sum $\frac{1}{n}\sum_{k=0}^{n-1}a_{k}\longrightarrow 0$ but $a_{n}$ does not converge to $0$.   I have a really bad attempt:  Define $a_{0}=a_{1}=0$, and $a_{k}:=\log(\log(k))$ for $k\geq 2$, then $a_{k}\longrightarrow\infty$. But $$\dfrac{1}{n}\sum_{k=0}^{n-1}a_{k}=\dfrac{\log\Big(\prod_{k=2}^{n-1}\log(k)\Big)}{n}$$ and Wolframalpha told me that this series converges to $0$ as $n\longrightarrow\infty$.  However, I have no idea about how to show this convergence to $0$. Also, I wish to have a sequence as simple as possible, since at some stage I need too how $f(k):=a_{k}$ is positive semi-definite.   Is there any simpler example?   Thank you! I registered my Stack Overflow account using the Stack Exchange OpenID provider. I later changed my e-mail, but I cannot change the e-mail address associated with my OpenID for some reason. Why is that, and how do I change it? I logged in to Stack Exchange and it lets me change my password, but never my e-mail. I have a very stupid question. I developed a website that has only one page at the public html directory(index.php).  all content are dynamically loaded as different pages.   How can i SEO my pages for google?  i mean like the what we type in this site are .............i believe stored in database and search engine find these pages like any static pages...  Just a little tip would be appreciable.......! Suppose you have an object with zero for the value of all the derivatives of position. In order to get the object moving you would need to increase the value of the velocity from zero to some finite value. A change is velocity is acceleration, so the value of the acceleration would have to increase from zero to some value. You would also need to increase the jerk from zero to some value to have a change in acceleration.  Is there an infinite series of higher derivatives of position for this to work? Or am I missing something? Evaluating $\int_0^\infty \frac{\log (1+x)}{1+x^2}dx$ Can this integral be solved with contour integral or by some application of residue theorem? $$\int_0^\infty \frac{\log (1+x)}{1+x^2}dx = \frac{\pi}{4}\log 2 + \text{Catalan constant}$$  It has two poles at $\pm i$ and  branch point of $-1$ while the integral is to be evaluated from $0\to \infty$. How to get $\text{Catalan Constant}$? Please give some hints. If a Matrix Has Only Zero as an Eigen-Value Then It Is Nilpotent What is the meaning of the third derivative of a function at a point Grey out all unused vote buttons on old elections I'm hoping this is a &quot;quick fix&quot;, but it's far from a priority. A small change might help a lot here. I got some egg on my face yesterday when I . A new user thought the same thing and had asked in chat. It turns out that's by design  Look at the candidates you voted for. The '1st', '2nd' and '3rd' choice buttons look different there; here are the buttons on the candidate I voted for as second choice:  Unless I get shown a candidate I did vote for, my screen looks like this  While voted candidates show like this (note 1st and 3rd are greyed out)  I would like to see all the buttons, save ones I used to vote for, shown as greyed out. It would make it visually obvious that one cannot cast a new vote.