How to replace JSON value using preg_replace?
My regex is matching too much. How do I make it stop?
Capturing speaker output in Java I'm a web developer, started to become a web designer. However, I think my understanding of colors is not practical yet. There are tools out there that can give you color harmonies, and more stuff, like , but they don't give you the start point. I mean, how should I know that for this web site, I'd better use green and for that website, choose red. How should I know that?  I think color selection is more like an art, instead of being a science, and I'm like "you should become an color artist, in order to become a web designer".  How can I improve my color selection skill? How good is it for SEO if you have a widget that lives on other sites? I made a widget that would ideally live on other sites.  Here is an example:   I guess since the widget would link back to me, it would be an SEO boost for my site.  Is that correct?  Or would it be just an SEO boost for that particular URL?  If it is just an SEO boost for the particular URL, it does me little good since that page does not link to any of my other pages.  Am I thinking about this correctly?  How are these things typically handled so that there is  a benefit to my site's SEO? I know that VARIABLE=value creates an environment variable, and export VARIABLE=value makes it available to processes created by the current shell. env shows the current environment variables, but where do they live? What comprises an environment variable (or an environment, for that matter)? Do posts have to be in English on Stack Exchange? Otherwise known as  必须用英语吗？(is English required?) ¿Necesito hablar en inglés? ?האם אני חייב לכתוב באנגלית Muss ich auf Englisch schreiben?  Do I have to use English when posting a question, an answer or a comment on a Stack Exchange site? I can't see anything - Teams banner and cookie toaster obscure my whole screen There have been  for a while, but this is ridiculous. It reminds me of , but this time it's network-wide.   The banner must be scrolled past (or dismissed) on every page unless both first-party JavaScript and first-party cookies are enabled. If first-party JavaScript is enabled, and the banner is visible, the rest of the page jumps up and down every so often.  Under certain circumstances (not quite sure what they are, yet – a direct link to an answer, maybe? I'm seeing it ) the entire page jumps up and down a line every few seconds even when the banner is off-screen.   The cookie banner keeps coming back unless both third-party JavaScript  are enabled (and  is solved). The cookie box occludes the “Learn more about Teams” link in the banner (with default Firefox window sizes) and the Job / Teams link in the sidebar.  As it stands,  – a site for hobbyists and researchers, whose audience is not very likely to purchase Teams – is much, much harder to use, for no benefit that I can see. Can you roll back this change, please? System.ListException: Before Insert or Upsert list must not have two identically equal elements - Deep Dive Hi this must be a basic question but I haven't seen an answer with cerbot considerations (if there are any considerations). How do I get https www to redirect to non-www instead of timing out?  The https www version of my site times out instead of redirecting to non-www, whereas all other versions (http and https non-www) work fine.  Preferably I would like to future proof so that I can renew the certs through certbot and not need to manually change the nginx config afterwards.  The nginx server config is shown below:  server {     listen 80 default_server;     listen [::]:80 default_server ipv6only=on;     server_name www.mydomain.com mydomain.com;      listen 443 ssl; # managed by Certbot     ssl_certificate &lt;path_to_cert&gt; # managed by Certbot     ssl_certificate_key &lt;path_to_key&gt;; # managed by Certbot     include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot     ssl_dhparam &lt;path_to_this&gt;      if ($scheme != "https") {         return 301 https://$host$request_uri;     } # managed by Certbot } Why does extended piston become stuck if air above it is powered? To reproduce this problem make layout like this and then power the piston. Once the piston is extended, removing the power source will not retract it:    Since piston head block is transparent, I see no explanation for this. Also, even if it wasn't transparent, it still wouldn't power a piston. For example this doesn't power the piston:    But if I place redstone and THEN place the piston, it's powered:    It also remains powered no matter what, as long as there isn't a block update event:    I suppose this behavior can be used to make a block update detector, but in my case this sucks. I wanted such setup for automatic smooth stone generator (without any clocks):    But due to this bug, it won't work - the piston will be always extended. Identify GoogleTv from Android app How do the PHP equality (== double equals) and identity (=== triple equals) comparison operators differ? Save an entire webpage, with all images and css, into just one folder and one file, with wget? PHP get number of week for month Hahn-Banach Theorem for separable spaces without Zorn's Lemma Travelling from London, Heathrow to Lusaka, via Jo'burg, how much time should we allow for the international connection in Jo'burg?  Is it a matter of arriving at one gate and leaving at another, or do you have to go through passport control, customs, security? What bike+equipment for a long daily urban commute? In the (distant) past I commuted 6 km (more than half an hour) each way, on a cheap bike with big knobbly tyres.  Soon I'll have a new commute: 18 km each way, daily. That's much further than I've done in the past, and I don't want it to take 2 hours each way; but  suggests that it's feasible:      Most people who reside 10 to 20 kilometres away will also find it quite easy to cycle to work, although the distance in the high end of this range will become a little more demanding.   If I can do it in 80 minutes or even less each way, that would be ideal. I'm 49 years old, 6 foot tall, and weigh 170lb, and I want to commute by bike because otherwise I'd be getting no exercise in my week at all.  I've never bought or ridden anything but a cheap bike.  What equipment should I buy then, to commute 11 miles each way through a city (Toronto) on  flat, paved roads, shared with cars:   Wheels? Tyres? Clipless pedals and shoes? Gears? Handlebars (e.g. flat or dropped)? Frame (size, shape, material)? Mud-guard/fender? What is the integral of $\int e^x\,\sin x\,\,dx$? I'm trying to solve the integral of $\left(\int e^x\,\sin x\,\,dx\right)$ (My solution):  $\int e^x\sin\left(x\right)\,\,dx=$  $\int \sin\left(x\right) \,e^x\,\,dx=$  $\left(\sin(x)\,\int e^x\right)-\left(\int\sin^{'}(x)\,\left(\int e^x\right)\right)$  $\left(\sin(x)\,e^x\right)-\left(\int\cos(x)\,e^x\right)$  $\left(\sin(x)\,e^x\right)-\left(\cos(x)\,e^x-\left(\int-\sin\left(x\right)\,e^x\right)\right)$  $\left(\sin(x)\,e^x\right)-\left(\cos(x)\,e^x-\left(-\sin\left(x\right)\,e^x-\int-\cos\left(x\right)\,e^x\right)\right)$  I don't know how to complete because the solution gonna be very complicated. Word for something sad and funny at the same time I'm using 13.04 for the first time and I am using proxy base server that's why I can't download anything while I use apt-get update then it shows this message  coolmonter@coolmonter-HP-ProBook-4431s:~$ apt-get update E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   any suggestion What is wrong with this deduction to show that within a multiplet different state has different square angular momentum? I am watching Susskinds's lecture , in which he introduced square angular momentum operator $L^2$, which can be written as $$ L^2=L_z^2+L_-L_++L_z $$ where $$ L_\pm=L_x\pm iL_y $$  Besides, he argued that the spectrum of $L$ can only be $m,m-1,\cdots,-m+1,-m$ in which $m$ is an integer or half-integer. If we denote $|m\rangle$ the eigenvector corresponds to eigenvalue $m$, we have $$ L_\pm|l\rangle=|l\pm 1\rangle\;\text{or}\;0 $$  In the lecture he showed that $L^2|m\rangle=m(m+1)|m\rangle$ for $m$ the highest eigenvalue, by $$ \begin{align*} L^2|m\rangle&amp;=L_z^2|m\rangle+L_-L_+|m\rangle+L_z|m\rangle\\ &amp;=m^2|m\rangle+0+m|m\rangle\\ &amp;=m(m+1)|m\rangle \end{align*} $$  Then he left an exercise to show that for any $-m\leqslant l&lt; m$, we also have $|l\rangle$ is an eigenvector of $L^2$ with eigenvalue $m(m+1)$.  In the lecture, he hinted by showing that it suffices to show that $L^2$ commutes with $L_i$ for $i=x,y,z$, which gives us $$ L^2|m-1\rangle=L^2L_-|m\rangle=L_-L^2|m\rangle=L_-m(m+1)|m\rangle=m(m+1)L_-|m\rangle=m(m-1)|m-1\rangle $$  I believe it is true since I find the   online.   However, my question is that, why the following proof is wrong.  I tried to mimic the proof for $|m\rangle$ to have that  $$ \begin{align*} L^2|k\rangle&amp;=L_z^2|k\rangle+L_-L_+|k\rangle+L_z|k\rangle\\ &amp;=k^2|k\rangle+L_-L_+|k+1\rangle+k|k\rangle\\ &amp;=k^2|k\rangle+|k\rangle+k|k\rangle\\ &amp;=(k^2+k+1)|k\rangle \end{align*} $$  which shows that $|k\rangle$ does not have eigenvalue $m(m+1)$ but $k^2+k+1$ for $k&lt;m$.