Pulling words that are numbers from a string
Is there a way to convert number words to Integers?
I was recently reading some Lord of the Rings/Stargate SG-1 crossover fanfiction. It is a guilty pleasure, I admit :) In this story, it was suggested by Col. O'Neill to destroy the Ring using a nuclear device. Truth be told I stopped reading at this point, as it was getting to be a little much even for me.  Obviously, this is not canonical in either universe, but it made me wonder: When Elrond said that "only in the fires of Mt. Doom may it be unmade," was he speaking literally? Or was this merely the only known active volcano in Middle Earth? In other words, was whatever magic that protected the One Ring from damage location-based or did it just make it very resistant to destructive force, and Mt. Doom just happened to be hot enough to do this? I know there is (understandably) little information about such technicalities of how magic works in Middle Earth, but I'll accept any reasonable conjecture/consensus as an answer. Using Unicode Zero Width Spaces allows all space comments Is it possible to take an image from the clipboard and output it to a file (using X)?  I can do this with text easily:  $ xclip -selection c -o &gt; file.text   But when I try the above with an image nothing is written.    The reason I want to do this is I don't have an image editor installed, and it got me thinking whether I could do this without installing one. How do you transpose tensors? We transpose a matrix $A$ by replacing $A_{ij}$ with $A_{ji}$, for all $i$ and $j$.  However, in case $A$ has more than two dimensions (that is, it is a tensor), I don't know how to apply the transpose operation.   If A has dimensions $3\times 3 \times 8$, then what will replace $A_{ijk}$?  If $A$ has shape $3\times 3\times 8\times 8$, then what will replace $A_{ijkl}$? Error Code: 1215. Cannot add foreign key constraint (foreign keys) what are all the open subgroups of $(\mathbb{R},+)$ Prove $\mathbb{Z}$ is not a vector space over a field This is an exercise from Chapter 3 of Golan's linear algebra book.  Problem: Show $\mathbb{Z}$ is not a vector space over a field.  Solution attempt:  Suppose there is a such a field and proceed by contradiction. I will write multiplication $FV$, where $F$ is in the field and $V$ is an element of $\mathbb{Z}$.   First we rule out the case where the field has characteristic 2. We would have   $$0=(1_F+1_F)1=1_F1+1_F1=2$$  a contradiction.  Now, consider the case where the field does not have characteristic 2. Then there is an element $2^{-1}_F$ in the field, and   $1=2_F(2^{-1}_F1)=2^{-1}_F1+2^{-1}_F1$  Now $2^{-1}_F1\in\mathbb{Z}$ as it is an element of the vector space, but there is no element $a\in\mathbb{Z}$ with $2a=1$, so we have a contradiction.  Is this correct? CPU Speed stuck at 0.78 GHz, How do I increase it to its base speed of 2.30 GHz? My 1yr old laptop, HP Pavilion 15 has it's CPU, Intel i5-8300H stuck at 0.78 GHz whenever it's plugged and charging, and the moment I remove the charger plug or switch it off, it increases suddenly and keep fluctuating freely, with good utilisation percentage more than 1-2GHz or more as I experience Thermal Throttling. I tried sneaking into the BIOS to see if I can do anything, but found nothing. I also downloaded Intel Extreme Tuning Utility (XTU) but couldn't control it. My question is how do I increase the speed to say atleast 2 GHz (fixed, not fluctuating) when it's charging, irrespective of getting thermal throttle, and also maybe even control the fan speed if it does get hot? Limits involving factorials $\lim_{N\to\infty} \frac{N!}{(N-k)!N^{k}}$ I am trying to calculate the following limit  $$\lim_{N\to\infty} \frac{N!}{(N-k)!N^{k}}$$ where $k$ can be any number between $0$ and $N$.  I thought of the following:  If I take the logarithm of the expression then I get:  $$\lim_{N\to\infty} \left(\log(N!)-\log((N-k)!)-k\log N\right)$$    Using the Stirling formula this can be approximated as:  $$\lim_{N\to\infty} \left(N\log(N)-(N-k)\log(N-k)-k\log N\right)$$  Now there are two cases: If $k$ is $N$, then the second term vanishes and the remaining terms cancel. If $k$ is smaller than $N$, then I can drop the $k$ inside the second logarithm and all the terms cancel. So the limit $$\lim_{N\to\infty} \log\left(\frac{N!}{(N-k)!N^{k}}\right)=0$$ Which means that: $$\lim_{N\to\infty} \frac{N!}{(N-k)!N^{k}}=1$$ I don't know if this is mathematically rigorous. Would like some help. Thanks I noticed that, for each research project, there comes a point where I have to consult the literature, and find all the previous research related to the current project.  Unfortunately, I seem to be very inefficient in my approach. I spend a lot of time digging through papers that are really interesting, but only of tangential importance to my current work, just to find the few papers that actually do similar things. (The pile of "cool paper, read when time" just keeps growing.)  Hence, I'm wondering: What is the most time efficient way to get a thorough overview of the literature in a specific niche of a field?    While searching for an answer I came across these questions:   - This question is quite similar and I liked the approach. I debated with myself if this is a duplicate, but I think it is focused more on how to be sure the search was exhaustive, whereas I'm worried about time efficiency. (Also, I'm a bit curious if things have changed since 2012.)   - The answer provides tips on how to identify what literature generally is important in a field, but I am looking for the most cost effective (least time consuming) way to do it in an area, where I know the broad literature, but not the specifics. Management of fruit bowls on the Enterprise D I have noticed that guest quarters on the Enterprise D have fruit bowls on their tables.  A prominent instance is the fruit bowl in Berlinghoff Rasmussen's quarters in "".  The first thing that Rasmussen does when Data takes him to his guest quarters is take a piece of fruit and shove it in his pocket.  Who replicates fruit for these fruit bowls before guests arrive?  More generally, who removes unused fruit and tidies quarters after guests leave?  Is there a ship hospitality staff, perhaps including Guinan's wait staff in Ten Forward? Moment of inertia: why $\mathrm{dI}=r^2\mathrm{dm}$ instead of $\mathrm{dI}=m\mathrm{dr^2}$? I was wondering what might be making my questions less attractive to users?  I get very low views most of the time. What should be done to increase a question's popularity? Add a duplicate:0|1 search operator This question led to a new package:      I'm trying to make some good-looking numbers in a circle, using the simple command:  \textcircled{1}   However, the circle is misaligned vertically with the number, and look a bit sloppy:    Any suggestions how can I adjust the vertical alignment so that the numbers look more centered w.r.t to the circles? Or, if that's not an option, what other ways to achieve the same results are possible?  I will use those only for numbers, and in very few places, so manual adjustment per glyph is an option.  I'm using pdfLaTeX with Computer Modern, if that matters. Sending Email via gmail smtp server in JAVA Great Expectations [is written vs has been written] by Charles Dickens How do I get the title of a .pdf document to appear as the page title? Remove Gnome Notifications or set Permanent Do not Disturb How to solve configure: error: readline library not found? I have an Ubuntu 10.04 LTS server with a minimal install that I want to compile postgres on. With the minimal install the server did not have gcc so I had to do an apt-get install gcc but now I keep getting this error from the postgres ./configure.  configure: error: readline library not found   I can't seem to find the name of the package that contains the readline library. So I have two questions.   What is the name of the package that contains readline? Is there some way given the error message above for me to find the associated package from its standard name?