Find the number of ways to launch satellites in space?
Counting the number of surjections.
How to pass argument to script which is input to bash "some " vs. "some of " Some of rules can be the same for most websites.   vs.     Some rules can be the same for most websites.   I think I want to say     Some of these rules can be the same for most websites. I often find that I can zoom in to a point, but then cannot zoom any more, even when there is a lot of room to zoom to the meshes on the scene.   This is particularly annoying in the following scenario:  I often land up left clicking on the scene and the 3D cursor shifts there. I use Shift+C to shift the 3D cursor back to the origin. However, this also centers the view on the cursor and shifts the view to show all objects, and sometimes this zooms things way out &ndash; at this point, if I try to zoom in, I can zoom in to a point (using the pinch/zoom on trackpad), but then it stops zooming in.   How do I zoom in after that? Is there anything else I am doing wrong in this case? Has anyone had any success using twitters typeahead.js within visualforce pages? GOTO still considered harmful? Everyone is aware of Dijkstra's  (also  .html transcript and  .pdf) and there has been a formidable push since that time to eschew the goto statement whenever possible. While it's possible to use goto to produce unmaintainable, sprawling code, it nevertheless remains in . Even the advanced  control structure in Scheme can be described as a sophisticated goto.  What circumstances warrant the use of goto? When is it best to avoid?  As a followup question: C provides a pair of functions, setjmp and longjmp, that provide the ability to goto not just within the current stack frame but within any of the calling frames. Should these be considered as dangerous as goto? More dangerous?    Dijkstra himself regretted that title, for which he was not responsible. At the end of  (also  .pdf) he wrote:     Finally a short story for the record.   In 1968, the Communications of the ACM   published a text of mine under the   title "The goto statement considered   harmful", which in later years would   be most frequently referenced,   regrettably, however, often by authors   who had seen no more of it than its   title, which became a cornerstone of   my fame by becoming a template: we   would see all sorts of articles under   the title "X considered harmful" for   almost any X, including one titled   "Dijkstra considered harmful". But   what had happened? I had submitted a   paper under the title "A case against   the goto statement", which, in order   to speed up its publication, the   editor had changed into a "letter to   the Editor", and in the process he had   given it a new title of his own   invention! The editor was Niklaus   Wirth.   A well thought out classic paper about this topic, to be matched to that of Dijkstra, is , by Donald E. Knuth. Reading both helps to reestablish context and a non-dogmatic understanding of the subject. In this paper, Dijkstra's opinion on this case is reported and is even more strong:     Donald E. Knuth: I believe that by presenting such a   view I am not in fact disagreeing   sharply with Dijkstra's ideas, since   he recently wrote the following:   "Please don't fall into the trap of   believing that I am terribly   dogmatical about [the go to   statement]. I have the uncomfortable   feeling that others are making a   religion out of it, as if the   conceptual problems of programming   could be solved by a single trick, by   a simple form of coding discipline!" Is it common to use "where" after "a time" as a relative? I heard the following comment of Mr. Marco Rubio about Mr. Donald Trump on CBS’s “Face the Nation” in a clip in February 29th AP Radio News:  “There is never gonna be a time where the Republican Party rallies around and says you have to get out or anyone has to get out for purposes of rallying around Donald Trump. Donald Trump is not Republican Conservative. Donald Trump is trying to pull off the biggest scam in American political history.”  I thought I misheard “There is never gonna be a time where –“ for “There is never gonna be a time when –“ at first, because I was in understanding that time should be trailed by “when” as a relative noun or adverb. An English Japanese dictionary at hand (Readers English Japanese Dictionary published by Kenkyusha) provides “where” singly as a relative to refer the ‘place.’ However, my lookup of the following two sources endorsed that I heard it right:  Here is what is never going to happen in this race. There's never going to be a time where the Republican Party rallies around and says you have to get out or anyone has to get out for purposes of rallying around Donald..  “Here is what is never going to happen,” Rubio continued. “There's never going to be a time where the Republican Party rallies around and says you have to get out or anyone has to ...   Is it common, at least not uncommon to use “where” after “time” as a relative? On approving an edit, I just get this pop up since morning. At first I thought there might be some internet connection issue, but this is now the 3rd to 4th time I got the same error; also, the review is accepted because on refresh I can see my name with approved text beside, but it still throws this error.    I am on a Windows 7 machine, running Firefox 24 (Icognito/Private Mode)    Also, this happens only when edit(1) is written on an question/answer, I don't go to review queue and approve, these reviews were directly loaded from the notification beneath the question/answer.  Martijn Pieters reproduced the problem from the review queue three times; each time the improve option was picked, accepting the suggested edit but editing the post some more. The network console shows that posting to https://stackoverflow.com/review/task-reviewed fails, the server responds with a 404 error:  Request headers: POST /review/task-reviewed HTTP/1.1 Host: stackoverflow.com Connection: keep-alive Content-Length: 137 Accept: application/json, text/javascript, */*; q=0.01 Origin: http://stackoverflow.com X-Requested-With: XMLHttpRequest User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36 Content-Type: application/x-www-form-urlencoded DNT: 1 Referer: https://stackoverflow.com/review/suggested-edits/3575396 Accept-Encoding: gzip,deflate,sdch Accept-Language: en,en-US;q=0.8,nl;q=0.6,nb;q=0.4,no;q=0.2,de;q=0.2,fr;q=0.2 Cookie: &lt;redacted&gt;  POST data: taskTypeId=1&amp;reviewTaskId=3575396&amp;taskResultTypeId=5&amp;fkey=f8791a329b445b658876f4d3afe7961e&amp;postCommentId=null&amp;taskResultSubtypeFlags=null  Response headers: HTTP/1.1 404 Not Found Cache-Control: private Pragma: no-cache Content-Type: application/json X-Frame-Options: SAMEORIGIN Date: Fri, 13 Dec 2013 12:04:53 GMT Content-Length: 0   On the  itself, no record is made of the accept; instead the suggested edit is recorded as approved by 3 people not including Martijn Pieters. In this case the improve review arrived too late.  In , improve again resulted in the error, but the Community account is shown rejecting the edit. Question about $\lim _{q \rightarrow \infty}\|f\|_{q}=\|f\|_{\infty}$ Let $(X,B,\mu)$ be a complete measure space,Show that $$\lim _{q \rightarrow \infty}\|f\|_{q}=\|f\|_{\infty}, \quad \forall f \in \bigcup_{p} \bigcap_{p \leqslant q&lt;\infty} L^{q}$$ So,$\lim _{q \rightarrow \infty}\|f\|_{q}$ , $\|f\|_{\infty}$ are equal-norm with space $ L^{\infty} \cap\left(\bigcup_{p} \bigcap_{p \leqslant q} L^{q}\right)$. Case 1: $m(X)&lt;\infty $.It's easy to prove that. Case 2: $m(X)=\infty $. I have no idea about it,And I started to doubt the correctness of this conclusion. Can somebody give me a hint for this problem or just give an example to prove that this is a wrong conclusion when $m(X)=\infty $. Thanks in advance. With powershell get exactly the same application list as in Add/Remove programms There are various methods to find installed applications on the system but to my knowledge none returns exactly the same list as control panel item Add Remove Programs. Some of the ways I tried are:   WMI via Win32_Product and Win32Reg_AddRemovePrograms Registry, both x32 and x64 branches   For instance, I have 217 entries in AR and   gwmi  Win32_Product   returns 261 items.  gp HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*, HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | ? {![string]::IsNullOrWhiteSpace($_.DisplayName) } | select DisplayName   returns 119 items.   (gwmi Win32Reg_AddRemovePrograms) + (gwmi Win32Reg_AddRemovePrograms64) | sort DisplayName -Unique    returns 107 items.  I tried to nail it down with more complex filter that included InstallLocation, InstallSource, InstallDate etc without success. What was Tauriel doing during the events of The Lord of the Rings movies? [Yes, The Hobbit movies are nonsense. But how could I call myself a fantasy fan if I didn't demand my nonsense be as logical as possible?]  Tauriel is presented as a highly-skilled fighter and a combatant for the side of good. Despite this, she apparently did nothing during Sauron's war on the free peoples.  Was she somehow     still mourning Killi, after all these decades?   Was she dead? Or is there another reason she didn't participate? Show $\inf_f\int_0^1|f'(x)-f(x)|dx=1/e$ for continuously differentiable functions with $f(0)=0$, $f(1)=1$. Let $C$ be the class of all real-valued continuously differentiable functions $f$ on the interval $[0,1]$ with $f(0)=0$ and $f(1)=1$. How to show that $$\inf_{f\in C}\int_0^1|f'(x)-f(x)|dx=\frac{1}{e}?$$  I have been able to show that $1/e$ is a lower bound. Indeed, $$\begin{align*} \int_0^1|f'(x)-f(x)|dx &amp;= \int_0^1|f'(x)e^{-x}-f(x)e^{-x}|e^xdx \\ &amp;\geq \int_0^1\left(f'(x)e^{-x}-f(x)e^{-x}\right) dx \\ &amp;= \int_0^1 \frac{d\left(f(x)e^{-x}\right)}{dx}dx  \\ &amp;= f(1)e^{-1}-f(0)e^{0}\\ &amp;=\frac{1}{e}. \end{align*}$$ But how to show this is the infimum? Is there a function $f\in C$ such that we get $\int_0^1|f'(x)-f(x)|dx=1/e$? Inequality $\sum\limits_{1\le k\le n}\frac{\sin kx}{k}\ge 0$ (Fejer-Jackson) Show the following inequality for any $x\in [0, \pi]$ and $n\in \mathbb{N}^*$, $$ \sum_{1\le k\le n}\frac{\sin kx}{k}\ge 0. $$  I have this question a very long time ago from a book or magazine but I cannot solve it by myself and did not know how to solve it until today.   My try: for $n=1, 2, 3$, one can check this by hand. Show that any set of 7 distinct integers includes two integers $x$ and $y$, such that either $x-y$ or $x+y$ is divisible by 10 Show that any set of 7 distinct integers includes two integers $x$ and $y$, such that either $x-y$ or $x+y$ is divisible by 10. I'm trying to apply the pigeonhole principle, but haven't been able to come up with a convincing argument.   Though similar to , I think the difference between the two is enough to warrant a second post. How to allow non-superusers to mount any filesystem? Is it possible to allow some particular users (e.g. members of a group) to mount any filesystem without superuser privileges on Linux?  Another question might have been "in what ways a user can harm a system by mounting filesystems?" OpenVPN restriction Ive set up an OpenVPN server at my place and handed out a certificate to a client who has an openvpn client at his place.  I need require that he should be able to connect to the vpn server only from one IP address (his current one).  How can I do this? How can I get the Ubuntu shell on Windows 10 to recognize a connected android device? I'm trying to connect adb to my Android device in the Windows 10 Ubuntu shell, but it doesn't seem to be working:    adb does work normally on Windows, so it's not a problem with the phone or the connection.  Do I have to do something like mount the port in the Ubuntu shell?  How?  (The goal is to pass logcat to grep, which would obviously work better in Ubuntu.) Dumbed-down explanation how scientists know the number of atoms in the universe? It is often quoted that the number of atoms in the universe is 10$^{70}$ or 10$^{80}$.  How do scientists determine this number?   And how accurate is it (how strong is the supporting evidences for it)?  Is it more likely (logically >50% chance) that the numbers are right, or is it more likely that the numbers are wrong? Usage of "they" / "them" / "their" when the person's gender is not known Showing that a sequence is monotone and thus convergent Here's the original question:     Let $(a_n)$ be bounded. Assume that $a_{n+1} \ge a_{n} - 2^{-n}$. Show   that $(a_n)$ is convergent.   Okay, I know that if I can show that if the sequence is monotone, I can conclude that it is convergent. But I am not sure how to show that it is monotone.  I know that  $$a_n \le a_{n+1} + \frac{1}{2^n} &lt; a_{n+1} + \frac{1}{n}$$  It looks to me as if it is monotonically increasing but I'm quite not sure how to prove my claim. Any hints would be appreciated. Evaluation of $\int_{-\infty}^\infty \frac{\sin(at)}t\ dt$ I just need to know if this integral converges.  If it does, what is the value?  If not can anyone tell me what is the value of the $$ \int_{-\infty}^\infty 2\,\frac{\cos(w)\sin(w)}{w}\ dw ? $$