Remove punctuations in a string
Best way to strip punctuation from a string
Real-life examples of common distributions If a series converges, then the sequence of terms converges to $0$. Twice today I noticed that my reputation increases with 15 on Stack Overflow, but when I click to see my account, the change is being reverted and none of my recent answers are marked as accepted. Then why does the reputation on the top of the page change ? Is there a pronoun I can use as a gender-neutral pronoun when referring back to a singular noun phrase?  Each student should save his questions until the end. Each student should save her questions until the end. I found it in an old dictionary and I'm not sure what it means. It looks like the number &quot;3&quot;, but the top of the three has been flattened(and slightly curved). I've only seen this in three or four words. [] No notification (+15) for accepted answer Yesterday my answer was accepted, but I got no notification in top bar, moreover, top bar still shows that I earned 45 reps  while reputation tab shows right 60 rep.  Update: July, 11 Again having this problem: In the dropdown:  In the rep tab:  You see, first down votes in the drop down are missing. Solutions to the equation $ze^{a-z}=1$ Let $a \in \mathbb{R}, a&gt;1,$ and consider the equation $$ze^{a-z}=1$$ How many solutions does this equation have in the unit disk, and how many of those solutions are real?   My attempt to solve was to use the Argument Principle on the function $f(z)=ze^{a-z}-1$, in hopes of recovering the number of zeroes that way. The integral I attempted to compute for this was $$\int_{|z|=1} \frac{e^{a-z}-ze^{a-z}}{ze^{a-z}-1}dz=\int_{|z|=1}\frac{1-z}{z-e^{z-a}}dz$$  I do not know how to proceed from here, as the $e^{z-a}$ in the denominator seems problematic. Thanks for your help! Boot failure : No DEFAULT or UI configuration directive found! A normal divided by the $\sqrt{\chi^2(s)/s}$ gives you a t-distribution -- proof let $Z \sim N(0,1)$ and $W \sim \chi^2(s)$.  If $Z$ and $W$ are independently distributed then the variable $Y = \frac{Z}{\sqrt{W/s}}$ follows a $t$ distribution with degrees of freedom $s$.  I am looking for a proof of this fact, a reference is good enough if you do not want to write down the complete argument. How do I remove duplicates from a C# array? I have been working with a string[] array in C# that gets returned from a function call. I could possibly cast to a Generic collection, but I was wondering if there was a better way to do it, possibly by using a temp array.  What is the best way to remove duplicates from a C# array? Strange characters when the output of `ls` is redirected to a file I want to list the components of the current working directory in a text file  ls -1 &gt; textfile   Output looks fine with more.   1010661085645 1010729039145 1010747080245 1010849051345 1010859053445 1011046075845   However when I view this textfile with emacs, several strange characters appear  [0m[01;34m1010661085645[0m [01;34m1010729039145[0m [01;34m1010747080245[0m [01;34m1010849051345[0m [01;34m1010859053445[0m [01;34m1011046075845[0m   Can anyone explain what is going on here? Fixing a code to highlight formulas and text on several lines In  I've found the following amazing code to highlight text on several lines.  The problem is that code dosen't work well with formulas : for example, fraction using the mode display are partially out of the highlighting frame.   Here is the code with one content showing the problem.  \documentclass{article}     \usepackage{soul}     \usepackage{tikz}     \usetikzlibrary{calc}     \usepackage{amsmath}     \usepackage{xcolor}      \makeatletter         \newcommand{\defhighlighter}[3][]{%             \tikzset{every highlighter/.style={color=#2, fill opacity=#3, #1}}%         }          \defhighlighter{yellow}{.5}          \newcommand{\highlight@DoHighlight}{             \fill[                 outer sep = -15pt, inner sep = 0pt,                  every highlighter, this highlighter              ](                 $(begin highlight)+(0,8pt)$) rectangle ($(end highlight)+(0,-3pt)$             );         }          \newcommand{\highlight@BeginHighlight}{             \coordinate (begin highlight) at (0,0) ;         }          \newcommand{\highlight@EndHighlight}{             \coordinate (end highlight) at (0,0) ;         }          \newdimen\highlight@previous         \newdimen\highlight@current          \DeclareRobustCommand*\highlight[1][]{%             \tikzset{this highlighter/.style={#1}}%             \SOUL@setup             %             \def\SOUL@preamble{%                 \begin{tikzpicture}[overlay, remember picture]                     \highlight@BeginHighlight                     \highlight@EndHighlight                 \end{tikzpicture}%             }%             %             \def\SOUL@postamble{%                 \begin{tikzpicture}[overlay, remember picture]                     \highlight@EndHighlight                     \highlight@DoHighlight                 \end{tikzpicture}%             }%             %             \def\SOUL@everyhyphen{%                 \discretionary{%                     \SOUL@setkern\SOUL@hyphkern                     \SOUL@sethyphenchar                     \tikz[overlay, remember picture] \highlight@EndHighlight ;%                 }{}{%                     \SOUL@setkern\SOUL@charkern                 }%             }%             %             \def\SOUL@everyexhyphen##1{%                 \SOUL@setkern\SOUL@hyphkern                 \hbox{##1}%                 \discretionary{%                     \tikz[overlay, remember picture] \highlight@EndHighlight ;%                 }{}{%                     \SOUL@setkern\SOUL@charkern                 }%             }%             %             \def\SOUL@everysyllable{%                 \begin{tikzpicture}[overlay, remember picture]                     \path let \p0 = (begin highlight), \p1 = (0,0) in \pgfextra                     \global\highlight@previous=\y0                     \global\highlight@current =\y1                     \endpgfextra (0,0) ;                     \ifdim\highlight@current &lt; \highlight@previous                         \highlight@DoHighlight                         \highlight@BeginHighlight                     \fi                 \end{tikzpicture}%                 \the\SOUL@syllable                 \tikz[overlay, remember picture] \highlight@EndHighlight ;%             }%             \SOUL@         }     \makeatother   \begin{document}  Lorem ipsum \highlight{dolor sit amet, consectetur adipis-icing elit, sed do eiusmod tempor} incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation \highlight[red]{ullamco $laboris$ nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit} in voluptate velit esse cillum dolore eu fugiat nulla pariatur.  Excepteur sint occaecat \highlight[green, draw=blue]{cupidatat non proident  $\dfrac{789}{7889}$ % The frame is not good for that formula ! suntinculpaquiofficiadeseruntmollitanimidestlaborum. Loremipsumdolorsitametconsecteturadipisicingelitseddoeiusmodtemporincididuntutlabore-etdoloremagnaaliqua.} I suppose I could write some more text here.  \end{document}     Is someone could help me to fix it? Find $\lim_{n \to \infty} \left[\frac{(n+1)^{n + 1}}{n^n} - \frac{n^{n}}{(n-1)^{n-1}} \right]$ (a question asked at trivia) My friend's trivia league had this math question:  $$\lim_{n \to \infty} \left[\frac{(n+1)^{n + 1}}{n^n} - \frac{n^{n}}{(n-1)^{n-1}} \right]$$  After computing a few values, one could guess the answer is $e$ = 2.718...But how can we prove that is the limit?  Someone offered up a hand-wavy proof like this:  \begin{align} \lim_{n \to \infty} \left[\frac{(n+1)^{n + 1}}{n^n} - \frac{n^{n}}{(n-1)^{n-1}} \right] &amp; = \lim_{n \to \infty} \left[\frac{(n+1)(n+1)^{n}}{n^n} - \frac{n \cdot n^{n-1}}{(n-1)^{n-1}} \right] \\ &amp;= \lim_{n \to \infty} \left[(n+1)\frac{(n+1)^{n}}{n^n} - n\frac{n^{n-1}}{(n-1)^{n-1}} \right] \\ &amp;= \lim_{n \to \infty} \left[(n+1)\left(1 + \frac{1}{n} \right)^n - n\left(\frac{n - 1 + 1}{n-1} \right)^{{n-1}} \right] \\ &amp;= \lim_{n \to \infty} \left[(n+1)\left(1 + \frac{1}{n} \right)^n - n\left(1 + \frac{1}{n-1} \right)^{n-1} \right] \\ &amp;= \lim_{n \to \infty} \left[(n+1)e - n \cdot e \right] \\ &amp;= \lim_{n \to \infty} e \\ &amp;= e \end{align}  The part about substituting $e$ is hand-wavy since technically this is an indeterminate form of $\infty - \infty$. And using $e$ as as upper bound did not lead me to an easy proof either.  Is there a way to rigorously prove the limit? I tried a few approaches: (a) sandwiching the limit--I could prove $e$ was a lower bound, but I could not find a suitable upper bound converging to $e$, (b) using L'Hopital's rule with no luck, (c) using the mean value theorem--but that also got complicated.  So this is a pretty tough problem to ask at trivia! Is there a way to prove this limit formally?  Sources  Trivia question:   Thread on trivia:   Hand-wavy proof:   Idea for mean value theorem: Some observations I made is for $\frac{a}{b}+\frac{b}{a}$, is either:   the denominator has to be one, the numerator has to be a multiple of the denominator or  the numerator and denominator have to be the same.    Obviously, with the given conditions case 3 is eliminated since  $a \neq b$.  For case 1, if $b=1$, then $a=1$ which is a contradiction to the given condition that says $a \neq b$.  For case 2, I would think of examples. For example if $b=2$ then a multiple is $4$, so $a=4$. Then we have:  $$\frac{a}{b}+\frac{b}{a}=\frac{4}{2}+\frac{2}{4}=\frac{10}{4}$$  which is not an integer, but how would i proceed to show this case for all integers. DateTime.TryParse century control C# On my work computer I have two USB hard drives that I use rarely. They have a power save mode that sends them into sleep after a couple of minutes of them being idle.   Whenever I open a context menu on a file, the drives are woken up (most likely caused by the "send to" handler).  So I eject the drive, but I can't find a way to get it back, other than unplugging and replugging it in.  Is there a way to unmount the drives, and then remount them only when I actually need them? (On Windows 7 Ultimate.) Syntax error while defining an array as a property of a class QR code generation library in javascript Not getting any reading from FTDI UMFT201XB USB-to-I2C module I got the  in order to interface with an I2C peripheral through a USB port on my Windows 7 computer.  The VCP drivers seem to install correctly, and a COM port is assigned to the module, and can be opened by a terminal emulator. However, I cannot seem to get any signal in or out of the module. That is, I see no activity when I send data through the port, or receive any data when I connect an I2C device to it (this was debugged using a scope). I have also verified that the RESET isn't on.  I found very little helpful information out there on how to get this module to work, so if anyone has experience with it, or with similar FTDI modules, my question is: what are the steps that I need to take in order to get the module to communicate? Review option on mobile phone not available? The other day I was looking at Stack Overflow on my Android phone. All is made very nice and all, but I could not find the Review button/link. Is it being implemented, did I miss it, or it is not available?