How many surjective functions?
Number of surjective functions from A to B
The distance between touching objects What is the distance between, say, a cup of coffee and the table it rests on? What is the distance between two touching hands? Etymological origin of "deosil" and "widdershins" SciFi movie (or miniseries) of the afterlife I am trying to find the name of a direct to TV movie, possibly a 2-3 part miniseries which I believe aired on the SciFi channel in the 90s. I don't remember who starred in it, but the movie opened with an astronaut attempting reentry whose shuttle ends up exploding. He awakes in a large bubble of air in a river and after reaching the surface and swimming to shore, meets several other people, from seemingly many different times throughout history (including one alien, who died on Earth).  Over the course of the movie, we learn the world is the afterlife, where everyone goes when they die. The major plot involves launching a steamboat (built by Mark Twain, no less) to travel up a river to the mountains, where the beings responsible for bringing everyone to this world are.  Does anyone know what the title of this movie/miniseries is? Which of the following two sentences is correct?  He must decide who to be. He must decide whom to be.  I can think of arguments for both sides, but I'm not sure. To elaborate, is who(m) the object of decide, the subject of be, or the object of be? Does the infinitive form of be have any bearing on the answer? And is there anything else to consider about the position or role of who(m) in this particular sentence that would inform the answer? The answers to the linked question  say to &quot;substitute he and him for who and whom.&quot; However, that doesn't give a clear answer in this context, because neither of those pronouns sounds right: &quot;He must decide to be he&quot;? &quot;He must decide to be him&quot;? Normally we'd use a reflexive pronoun here (&quot;He must decide to be himself&quot;) and it's not clear what case that corresponds to. She put forward two proposals, .......... of which didn’t make any sense to the participants in the summit.  The answer for this question in grammar exercises is ‘either’. I am doubtful whether to use either or neither. Can any one clarify this with reason. Find the set of $x>0$ such that the series $\sum\limits_n x^{\ln{n}}$ converges If $x&gt;0$, find the set of all values of $x$ such that series is convergent$$\sum_{n=1}^{\infty} x^{\ln{n}}$$   My attempt:- I used Ratio test for finding the set of all values of $x$ such that series is convergent.   $$\lim_{x\to\infty}\frac{x^{\ln{n+1}}}{x^{\ln{n}}}$$  $$=\lim_{x\to\infty}x^{\ln\frac{n+1}{n}}$$ This quantity must be less than one for getting a convergent series, I am not able to judge. Can you please help me to find the interval of convergence? How to close ports / disable services? I just portscanned my system with nmap and got the following result:  PORT    STATE SERVICE 25/tcp  open  smtp 631/tcp open  ipp   what are these services and how i do disable them? probably i don't need them. Within a custom command, I'm doing the following to write to a file:  \newcommand\mycommand[1]{   \newwrite\file   \immediate\openout\file=foobar.tex   \immediate\write\file{     foo     bar     #1     blarg   }   \immediate\closeout\file }   Of course when I invoke it as \mycommand{baz}, I get the following contents in foobar.tex:  foo bar baz blarg   with all new lines turned into spaces by LaTeX. My question is, is there a way to output these lines into the file "as expected", i.e. with real new lines at the end of each line instead of a space? I'm thinking some \catcode wizardry should do the trick, but I'm not sure which character I need to redefine and to what category code.  Update  The solution in  works perfectly. The only problem is when #1 contains embedded newlines. I can of course send it to mycommand with its own slew of ^^J, I was wondering if there is a way to avoid this. When should we use "can", "could", "will", "would"? Most people say I wish I could, I wish you would.    Can we use I wish I can, I wish you will?    I'd like to know what the main differences between the usage of can/will and could/would are when wishing.  Is it related to the subjunctive? Because one says “I wish I were”, not “I wish I am”, so are would and could the subjunctive forms of can and will?  Or is it something else entirely? How to force a table into page width? Does $A$ a UFD imply that  $A[T]$ is also a UFD? I'm trying to prove that $A$ a UFD implies that $A[T]$ is a UFD.   The only thing I am sure I could try to use is Gauss's lemma.  Also, how can we deduce that the polynomial rings $\mathbb{Z}[x_1,\ldots,x_n]$ and $k[x_1,\ldots,x_n]$ are UFDs? identity element of $(D_n ,\gcd)$ Ubuntu has been crashing on me recently. I think its because it runs out of memory so I ran the free -m command and found that my memory usage was really high. So then, i ran top to find the culprit, but the displayed processes were using less than 1.5% of memory. How do I know which program is making ubuntu crash/run out of memory? Below is the output:  shafee@shafee-pc:~$ free -m              total       used       free     shared    buffers     cached Mem:          3824       3714        110          0        978       1954 -/+ buffers/cache:        780       3044 Swap:           99          0         99  shafee@shafee-pc:~$ top top - 02:12:14 up  1:24,  2 users,  load average: 0.16, 0.42, 1.49 Tasks: 182 total,   1 running, 181 sleeping,   0 stopped,   0 zombie Cpu(s):  2.9%us,  1.9%sy,  0.3%ni, 79.3%id, 15.5%wa,  0.0%hi,  0.2%si,  0.0%st Mem:   3916708k total,  3803848k used,   112860k free,  1002308k buffers Swap:   102396k total,        0k used,   102396k free,  2001852k cached    PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND              4200 root      20   0  289m  53m  38m S    2  1.4   1:06.45 Xorg                 5590 shafee    20   0 19348 1368  956 R    2  0.0   0:00.01 top                     1 root      20   0 24124 2136 1264 S    0  0.1   0:02.05 init                    2 root      20   0     0    0    0 S    0  0.0   0:00.00 kthreadd                3 root      20   0     0    0    0 S    0  0.0   0:24.23 ksoftirqd/0             6 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/0             7 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/1             9 root      20   0     0    0    0 S    0  0.0   0:00.11 ksoftirqd/1            11 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/2            13 root      20   0     0    0    0 S    0  0.0   0:03.89 ksoftirqd/2            14 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/3            16 root      20   0     0    0    0 S    0  0.0   0:00.16 ksoftirqd/3            17 root       0 -20     0    0    0 S    0  0.0   0:00.00 cpuset                 18 root       0 -20     0    0    0 S    0  0.0   0:00.00 khelper                19 root       0 -20     0    0    0 S    0  0.0   0:00.00 netns                  21 root      20   0     0    0    0 S    0  0.0   0:00.01 sync_supers         shafee@shafee-pc:~$   Or is it normal to have 110mb of free memory and is my issue related to something else? Why do modern mountain bike forks no longer use boots on fork stanchions? Older mountain bikes used to have them on the forks, and lefty and headshocks still do. Why have these fallen out of fashion and would putting aftermarket fork boots on your stanchions be productive or not? Native Youtube app suddenly stopped working on iPad 1 It's been some weeks now, whenever I try to used my Youtube app, it tells me it's impossible to connect to Youtube. Since it's an iPad 1, I have had trouble finding information online.  Did Google or Apple stop supporting the app? Is it finally obsolete? Is there another app I could use that works on iOS 5?  Just to be clear, I did not tinker with my device. I did not change its parameters, I did not jailbreak it, it connects to the Internet just fine and I've tried the app on different Internet connections. Also, this is not a login problem, the app just refuses to let me browse videos, whether I'm logged in or not.  Thanks for your help. How to prove that the center of the dihedral group $D_{2n}$ is $\{1,r^{n}\}$ and the center of $D_{2n-1}$ is $\{1\}$?  I don't know how to prove it in this general case. Splitting all lines in layer at vertices using QGIS I want to automatically split all lines in a QGIS layer at their vertices (). I've done a Google search and found , which is quite close but the workflow is complicated. Because I'll have to train my co-workers (who are unfamiliar with GIS) to use this tool, I want something as simple as a plugin or something that doesn't require GRASS. Since it's been a long time from 2010 - the time of , I wonder if there is any better way to achieve the same result? Why won't this ocelot do anything but breed? Why was C-3PO's memory wiped, but not R2-D2's? In Revenge of the Sith after Luke and Leia are born, they are sent to separate parts of the galaxy. The droids are given to Captain Antilles, with the instructions to clean them up, and have C-3PO's memory wiped. Why just C-3PO's and not also R2-D2's?   Initially I thought it was due to R2-D2's inability to communicate verbally, but he not only can communicate via text message (as seen in The Empire Strikes Back I believe), but we see other characters understanding his blips and bleeps as well. How to create a table with long text and which packages use