Replace eregi() with preg_match() syntax error
How can I convert ereg expressions to preg in PHP?
Turning off and on images in figures Is it possible to prevent the contents of a figure from being rendered? I have a large book document, and to speed up compiling while working on a draft, I would like to have some way of ignoring the content of the images, but ensuring that the figure size remains.  In several cases I am using a line like:  \includegraphics[width=\linewidth]{figure.pdf}     so I do not know the actual size of the image. Badge symbol in notification is of the site you're on, not where badge was earned how to display the actual network traffic (wireless) in a terminal?  Additionally: Is it possible to add this info to the chart of top? There are lots of questions tagged  that don't have a  response.  How do we interpret this? Is it because they are declined by default? We just have to wait for a response (the team is very busy)? Is Jeff the only one that reviews this questions?  I suppose the ones that have negative votes may (or may not) be declined by default, but there are quite a few with some to a lot upvotes that should have an official answer. I unlocked the 'Files' button/icon from my unity launcher and now it disappearead and I cannot restore it or get it back I unlocked the 'Files' button for the Ubuntu file manager from the unity launcher and I cannot get it back.   When I run the file manager from the dash, the icon does not appear on the launcher like it does for all other applications while they are running. I wanted to have an empty launcher when no applications are running, and just have the icons of those I am actively using there.  Any idea why I don't see it in the launcher when its running or how to lock it back? How to optimize images to improve pagespeeds / webpage loading times? This is almost a StackOverflow question, however it's completely related to Photoshop and other tools. With every Pagespeed test I do for all my website I get the comment "Optimize images by lossless compressing image X" which often increases my page rank a lot.  I already save EVERY image with 'save for web' with Photoshop, but I was wondering how I could "Optimize images by compressing lossless" even more. As far as I know I'm already doing everything I can.   How can I optimise images to improve my webpage loading speeds? Remove specific duplicates (all but latest) When removing duplicate rows, using the below query from  tutorial, how would I go about forcing which of the found duplicates to remove?  DELETE FROM dbo.ATTENDANCE      WHERE AUTOID NOT IN (SELECT MIN(AUTOID) _ FROM dbo.ATTENDANCE      GROUP BY EMPLOYEE_ID,ATTENDANCE_DATE)    And this works great. The reason why I am using this one is because the only unique id available is one in the IDENTITY column. And to determine if there are duplicate rows I have to look at a combination of multiple columns.    But if I have a set of duplicate rows how do I / how does SQL Server decide which to remove? And how would I force it to remove all but the one with the highest IDENTITY value?  EMPLOYEE_ID     ATTENDANCE_DATE     AUTOID A001            2011-01-01          1 A001            2011-01-01          2   If I would run the query now it happens to remove the second one, with AUTOID 2. But I am trying to remove all but this one (because this is the one latest added). Black screen after installation of Ubuntu 18.04 I'm trying to prove that  $$ \left| \frac{1}{x}-\frac{1}{y} \right| $$  is a metric on $X = \mathbb R^+$.  The properties of non-negativity and symmetry are obvious (do I actually even need to prove them?), but the tricky one is, as usual the inequality property, i.e.  $$ d(x,z) \le d(x,y) + d(y,z) \text{ for any } z \in X. $$  So, ok, I have that  $$ d(x,z) \le d(x,y) + d(y,z) \\ \iff \left| \frac{1}{x}-\frac{1}{z} \right| \le \left|\frac{1}{x} - \frac{1}{y} \right| + \left|\frac{1}{y} - \frac{1}{z} \right| \\ \iff \left| \frac{1}{x} \right|- \left| \frac{1}{z} \right| \le \left| \frac{1}{x}-\frac{1}{z} \right| \le \left|\frac{1}{x} - \frac{1}{y} \right| + \left|\frac{1}{y} - \frac{1}{z} \right| $$  ...and that's about as far as I've gotten–which is to say, not very far. I also tried multiplying both sides by $ \left| \frac{1}{x}-\frac{1}{z} \right| $, but that wasn't very fruitful. If someone could point me in the right direction, it'd be greatly appreciated. Thanks. Fell for fake sugar daddy. How do I get out? I fell on hard times and for the first time I attempted to get a sugar daddy. He asked for my bank account login info and reluctantly I gave it to him even though I knew I shouldn't have. Short story, I figured out he's fake and called him out on it after he made a couple of mobile deposits. Every time he made a mobile deposit he would go in there and take a third of the money he deposited. I also noticed he somehow used an old check I deposited and changed it and used it again. I got him to admit he wasn't who he claimed to be and I changed my login info. He claimed he could still see how much money was in my account and sent me a screenshot of how much money was in the account with the amount and &quot;Chase checking&quot; before it. That was the only information in the screenshot. He also threatened to get me in trouble with the law if I didn't send him more money. I changed my login info again just in case but I could really use some advice on what should I do next. qt4 / libqt4-* in Ubuntu 20.04 What happens when a creature enchanted with Soul Link would deal lethal damage to a player? Player A has 3 life left. Player B attacks with a  that has been enchanted by Player A's . Does player B win, or does nothing happen?  On the one hand, "whenever" makes it sound like the trigger (dealing damage) and the effect (healing damage) happen simultaneously.  On the other hand, combat damage doesn't go on the stack, while most other things do. So, possibly the combat damage is dealt, state-based actions are checked, and now it's too late for the Soul Link effect to heal player A.  If anyone knows which way is correct, my thanks! Pullback of a Volume Form Under a Diffeomorphism. I have an exercise here, which I have no idea how to do.     Problem: Let $ U $ and $ V $ be open sets in $ \mathbb{R}^{n} $ and $ f: U \to V $ an orientation-preserving diffeomorphism. Then show that   $$   {f^{*}}(\text{vol}_{V}) = \sqrt{\det \! \left( \left[   \left\langle {\partial_{i} f}(\bullet),{\partial_{j} f}(\bullet) \right\rangle   \right]_{i,j = 1}^{n} \right)} \cdot   \text{vol}_{U}. $$   Notation:         $ \text{vol}_{U} $ and $ \text{vol}_{V} $ denote the volume forms on $ U $ and $ V $ respectively.   $ f^{*}: {\Lambda^{n}}(T^{*} V) \to {\Lambda^{n}}(T^{*} U) $ denotes the pullback operation on differential $ n $-forms corresponding to $ f $. How do I enter a strong (long) DKIM key into DNS? Using the validation data I'm unclear on the exact process of using the validation data.  Let's say that I fit my neural network model and adjust hyperparameters using the training set and validation set. Do I then evaluate the test set on this model? Or do I recombine the validation and training sets and fit a fresh model with the hyperparameters that I found during the validation phase, and then evaluate on the test data? I have seen a number of different notebooks and examples that do both ways.  Surely, once I've found my hyperparameters, it makes sense to fit a fresh model using the full training set (recombined with validation set), since the validation loss has no effect on the weights. Asking a question: DO or ARE? When should you ask a question with &quot;do&quot;, and when with &quot;are&quot;?  In other words,  Are you going to Spain next week?   Do you like Chinese food?  What is the rule here?  We don't say  Do you go to Spain next week?   Are you liking Chinese food?  Why is that? How can I create a new extensible symbol? Given an arbitrary thin vertical symbol, can I create a new math delimiter from it (and if so, how)?   Edit: Ideally, I would like to be able to create an extensible symbol, either built out an existing normal symbol, or even made from scratch.  Edit 2: I am pretty sure that what I am after is an explanation of how to create a .tfm file for an extensible symbol (which Werner's answer describes the general structure of, but not how to make one).    For example, let's say I wanted to use the \dagger () or \wr () symbol as a delimiter, and write expressions like    \[\left\ldagger \sum_{n=1}^\infty a_n \right\rdagger\]   where the symbol scaled appropriately. Would there be any distinction between declaring a symmetric delimiter (like \vert), as opposed to one that has inherently different "left" and "right" versions like [ and ]?  Now, even being unaware of the inner workings of TeX, I imagine that there has to be lots of information in the fonts for how a delimiter is to be scaled in different situations, and if I try to make my own delimiter, this information won't be present. Would I need to get deep into FontForge or equivalent to achieve my custom delimiters, or is there an easier way? Populating cascading dropdown lists in JSP/Servlet Polynomial contrasts for regression I cannot understand the usage of polynomial contrasts in regression fitting. In particular, I am referring to an encoding used by R in order to express an interval variable (ordinal variable with equally spaced levels), described at .  In the example of , if I understood correctly, R fits a model for an interval variable, returning some coefficients which weights its linear, quadratic, or cubic trend. Hence, the fitted model should be:  $${\rm write} = 52.7870 + 14.2587X - 0.9680X^2 - 0.1554X^3,$$  where $X$ should take values $1$, $2$, $3$, or $4$ according to the different level of the interval variable.  Is this correct? And, if so, what was the purpose of polynomial contrasts? $\forall a > 0$ $\sum_{n=1}^{\infty} f(na)$ is convergent. Prove that $\int_{0}^{\infty}f(x) dx$ is convergent.