Multiple conditions using 'or' in numpy array
How do I select elements of an array given condition?
Consider a common proof of the uncountability of $(0,1]$, as presented  for example:  We assume that the reals can be arranged in a sequence $x_k$, represent every number in $x_k$ by its nonterminating decimal expansion, use the diagonal argument to create a sequence of decimal digits that differs from the nonterminating decimal expansion of each number in $x_k$ and then claim that this sequence of digits so generated must be the decimal expansion of some number not in $x_k$.  My problem is with this last step. Could it not be the case that the new sequence of digits is just the terminating decimal expansion of some number already in $x_k$?  Would it not be more correct to use the sequence $x_k$ to generate a sequence of all (both terminating and non-terminating) decimal expansion of all numbers in $[0,1)$ and then apply the diagonal argument? I want to copy the data folders from a previous ubuntu(14.04) partition My hard drive is a mess and I want to reformat it and do a fresh install of 16.04. My problem is I only have access to the HDD via 16.04 on a USB stick and although I can navigate to the various folders, nothing I do allows me to copy to an external hard drive. The folders are not encrypted. I also have a small swap partition - I would like to preserve the data on that too if possible.  Here's a listing of the home directories on the drive:  ubuntu@ubuntu:/$ ls -l /media/*/*/home /media/ubuntu/0e228f65-dac7-435f-828b-1eb1a6c3f29a/home: total 4 drwxr-xr-x 46 1000 1000 4096 Dec 21  2015 simon  /media/ubuntu/db79a6d1-7c6c-4d8c-822b-ba6ccd1ddecd/home: total 4 drwxr-xr-x 27 1000 1000 4096 Apr 17  2014 simon  /media/ubuntu/ebe2a6ba-9cb5-4279-8352-5082b8dd4d5e/home: total 4 drwxr-xr-x 39 1000 1000 4096 Aug  3 14:21 simon Combining the entries of two lists Can I transfer Windows 10 Pro license to another computer? I'd like to create a picture like the one with TikZ:    I've already created the electrical part using circuitikz. I'd like to add the part on the right (the motor's shaft with arrows), but don't know how to start, actually. Is there a way to draw 3D shapes, maybe? Or should I draw circles and rotate them?  \documentclass{article} \usepackage{tikz} \usetikzlibrary{intersections} \usepackage{circuitikz} \usepackage{siunitx}  \begin{document}  \begin{figure} \centering \begin{circuitikz} \draw (0,0) to [V, v=$v(t)$, *-*] (0,2)      to [R, l=$R_d$] (2,2)     to [L, l=$L_d$] (4,2)     to [V, v&lt;=$e(t)$] (4,0) to [generic] (4,2) -- (4,0) -- (0,0); \end{circuitikz} \end{figure}  \end{document}   What I have now:   What I'm still missing: Determining $\lim_{n\to\infty}\left(n^{\tfrac{1}{n}}-1\right)^n$ with only elementary math I am trying to find this limit:  $$\lim_{n\to\infty}\left(n^{\tfrac{1}{n}}-1\right)^n,$$  I tried using exponential function, but I see no way at the moment. I am not allowed to use any kind of differentiation or other topics of advanced math, only induction and school math are possible. Thank you How does the Adam method of stochastic gradient descent work? I'm brand new to jQuery and have some experience using Prototype. In Prototype, there is a method to "flash" an element &mdash; ie. briefly highlight it in another color and have it fade back to normal so that the user's eye is drawn to it. Is there such a method in jQuery? I see fadeIn, fadeOut, and animate, but I don't see anything like "flash". Perhaps one of these three can be used with appropriate inputs? I'm using the caption package.  In the List-Of-Figures I get only the numbers, but I also want to have the prefix. It currently looks like that:     List of Figures   1 Caption of Figure 1........1   2 Caption of Figure 2........9     And I want it to look like:     List of Figures   Figure 1: Caption of Figure 1...1   Figure 2: Caption of Figure 2...9     The same format is already used for the captions themselves. How can I iterate, loop, process, or otherwise do something, with each element from a comma separated list of things?  This question       , and the are already lots of very good answers everywhere. However I think it would also be valuable to have a single reference point where all such alternative techniques are explained in detail, with their advantages and disadvantages discussed.  All of plain-TeX, LaTeX, LaTeX3, LuaTeX, Context, etoolbox, pgffor, etc. answers are invited. Please consider explaining, for example:   How does the command/method deal with whitespace around items? How does the command/method deal with empty/missing items? (e.g. a,b,,c) How does the command/method deal with a trailing comma? Can the command/method work of a list stored on a macro? Is each iteration evaluated globally or on a local group? (i.e., if a command is defined during an iteration, does the command survive the loop?) Do items get expanded or somehow mangled before being processed? What about lists where items are key=value or some other kind of pairs? Does the method work for lists separated with something other than a comma? Any other thing I should know before deciding to use this method? Multiple "order by" in LINQ Are keywords in URLs good SEO or needlessly redundant? A coworker and I are locked in a debate over the value of SEO keywords in the URL of a page. She wants to change all the filenames of the HTML pages of a fencing company so they look like residential-home-chicago.html, contact-chicago-contractor.html, and so on. She is convinced that because Google highlights keywords in URLs in search results, that means that putting keywords here is more valuable.  My position is that these do not improve SEO, since Google doesn't seem to give keywords in the URL any more weight than keywords in the body of the page, and . In the meantime, they make it harder for me to find the pages I want when its time to edit them, and the site as a whole looks cheap and spammy.   suggests to me that yes, keywords in URLs are useful, but not superior, and that they are more useful for human readability than search engine rankings.  I'm looking for authoritative sources that support either position, not blog articles from SEO optimization companies trying to promote themselves. What does <<-EOC means? I'd like to know what the minus (-) and the EOC in the command below means. I know some languages like Perl allows you to chose any combination of character (not bound to EOF) but is that the case here? And the minus is a complete mystery for me. Thanks in advance!  ftp -v -n $SERVER  &gt;&gt; $LOG_FILE &lt;&lt;-EOC             user $USERNAME $PWD             binary             cd $DIR1             mkdir $dir_lock             get $FILE             bye EOC How to avoid NoMethodError for nil elements when accessing nested hashes? How to exclude a package from apt-get autoremove? I'm in a situation where the list of orphaned packages to be removed by apt-get autoremove includes a package that I want to keep. Apparently I have accidentally removed a package which was depending on it. How can I now mark the package as explicitly desired, so that apt-get autoremove will not remove it? Is ignoring emails acceptable in academia? As a grad student, I just find it tremendously frustrating when emails are ignored by faculty (both at my institution and at other places). Is this acceptable? I'd be content with a simple response with one line along the lines of "I have read this email and am busy right now, will respond in X days when I can write a more detailed email." I understand that, as a first year student in my field, I'm not really in a position to request anything of anyone, but it just seems like common decency.  Instead, I never hear back, as if my email has been jettisoned off into oblivion. Is there a word that means "a span of six months"? That is, I want to connote a stretch of time that lasts half a year, not an event that happens every six months. Term for things like "naughty step" where the step is not what is naughty Can anyone remind me of the grammatical term for the apparent misapplication of an attributive adjective, as in the phrase "the naughty step" (where it is not the step itself that is naughty but the person consigned to it)? Layover at Narita, Japan. Do I need a transit visa? I have an upcoming trip where I will be flying to and from Copenhagen, through Toronto.  I notice that my departure and return gate in the Philadelphia airport is not in the international terminal.  Where will I clear customs?