How to get ViewResult as a string?
How to render an ASP.NET MVC view as a string?
How many possible Enigma machine settings? I'm trying to calculate the amount of settings the enigma machine has. I have found several sites regarding this topic, but it seems like there are two answers to my question. The first answer is 158,962,555,217,826,360,000 and the second is 107,458,687,327,250,619,360,000. Where the difference is that in the second answer, it has been taken into account that the notched rings on the enigma could be set as well, giving 26 * 26 = 676 more settings than the first answer.   But which answer is the right one, and why? How many possible different Enigma machine settings are there and how can one determine this number? I recentely tried to log-in / sign-up for  using my SE account (which works on ,  and sign-up here) but it showed me an OpenID related error. (See below)  I could reproduce this error across multiple days and browser refreshes and using my other OpenID provider.  Error message (shown in red, obfuscated my e-mail address):  Unable to log in with your OpenID provider:  The openid.return_to parameter (http://area51.stackexchange.com/users/authenticate/?s=bd394805-cf55-4e8e-ad73-21485a09a989&amp;dnoa.userSuppliedIdentifier=https%3A%2F%2Fopenid.stackexchange.com%2Fuser%2F642b1038-5c91-40d4-83ab-eb92db46c3d1) does not match the actual URL (https://area51.stackexchange.com/users/authenticate/?s=bd394805-cf55-4e8e-ad73-21485a09a989&amp;dnoa.userSuppliedIdentifier=https%3A%2F%2Fopenid.stackexchange.com%2Fuser%2F642b1038-5c91-40d4-83ab-eb92db46c3d1&amp;openid.claimed_id=https%3A%2F%2Fopenid.stackexchange.com%2Fuser%2F642b1038-5c91-40d4-83ab-eb92db46c3d1&amp;openid.identity=https%3A%2F%2Fopenid.stackexchange.com%2Fuser%2F642b1038-5c91-40d4-83ab-eb92db46c3d1&amp;openid.sig=4emyzuA31ChHU0LabPGJXldbN8GeKN%2FFBJXJy69yD10%3D&amp;openid.signed=claimed_id%2Cidentity%2Cassoc_handle%2Cop_endpoint%2Creturn_to%2Cresponse_nonce%2Cns.alias3%2Calias3.mode%2Calias3.type.alias1%2Calias3.value.alias1%2Calias3.type.alias2%2Calias3.value.alias2&amp;openid.assoc_handle=hrQL%21IAAAAGzBtFeNGBLU2o04XSWr7ISRAbO-B2tZCK3L61IzAsuQQQAAAAEdoTN6rf9fqaP1oekJGXGXJeB8fNSVuByptp5yx1VpQbAzQwF6HJzh6a0DwedydNJ-wwpJQoN5dOLEFmndZt-L&amp;openid.op_endpoint=https%3A%2F%2Fopenid.stackexchange.com%2Fopenid%2Fprovider&amp;openid.return_to=http%3A%2F%2Farea51.stackexchange.com%2Fusers%2Fauthenticate%2F%3Fs%3Dbd394805-cf55-4e8e-ad73-21485a09a989%26dnoa.userSuppliedIdentifier%3Dhttps%253A%252F%252Fopenid.stackexchange.com%252Fuser%252F642b1038-5c91-40d4-83ab-eb92db46c3d1&amp;openid.response_nonce=2015-06-12T12%3A30%3A42Z7tADDeYZ&amp;openid.mode=id_res&amp;openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&amp;openid.ns.alias3=http%3A%2F%2Fopenid.net%2Fsrv%2Fax%2F1.0&amp;openid.alias3.mode=fetch_response&amp;openid.alias3.type.alias1=http%3A%2F%2Faxschema.org%2Fcontact%2Femail&amp;openid.alias3.value.alias1=mycorrectaddress%40web.de&amp;openid.alias3.type.alias2=http%3A%2F%2Faxschema.org%2FnamePerson&amp;openid.alias3.value.alias2=SOJPM) the request was made with.    As noted in the comments I'm not the only one, so I'd guess it may be not something I can fix. So will this be fixed?  Repro steps (using SE OpenID):   Get an Stackexchange OpenID account (like I have) (optional?) Add other OpenID providers and check they're working (StartSSL in my case) Please note: "You" don't have an "account" for the Area 51 subpage yet and still need to do the initial sign-in. Go to the Area 51 SE page Hit "Log-in" in the top-bar Hit the "log-in using stackexchange" button Enter your e-mail and password and submit Get the above error   Repro steps (using other OpenID)   Perform as above (until step 4), but this time step 2 is mandatory Hit "more OpenID options" Provide your OpenID link XXX.provider.com (works on crypto, server fault, ...) Authenticate against your provider Receive a variation of the above error (can be included if needed) SUID-bit not working for executables within /tmp directory Printing the value of getuid() and geteuid() from an executable with SUID-bit (chmod +s) turned-on, seems to result with the original caller ID instead of the owner id if the executable is located within the /tmp directory.  When compiling the exact same code to home directory (and executing chmod +s), this seems to work as expected.  I've searched a lot and could not find any reference to such behavior.  Does anybody know why is this happening?  this source is simple as that:  #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &lt;sys/types.h&gt; #include &lt;unistd.h&gt;  int main(){     printf("%d\n%d\n", getuid(), geteuid());     return 0; } The editor asked me to use the following format.      Reference   1. Author, blah blah   Instead of      Reference   [1] Author, blah blah ...   Even though in the main text, [1] style has been used.   For example,        Smith [1] has proposed ...      Reference   1. Smith,      This is what I want.   Could you please advise how I can do the above?  Thanks in advance. Suppose $u\in W^{1,1}$ and $\partial u$ is $C^1$. I want to prove the following: $$\int_{\partial\Omega}|u-\bar u|\leq A\int_{\Omega}|\nabla u|$$ where $\bar u=\frac{1}{|\Omega|}\int_{\Omega}u$ and $A&gt;0$. Note that unlike Poincar&eacute; inequality, the left integral is over $\partial\Omega$ and not $\Omega$. How can I do that?  I tried to prove in a similar way to Poincare inequality proof (arguing by contradiction), but with no success. I think I am missing something because of the  $\partial\Omega$ issue. Should I be worried about electro-static discharge? Doing mostly micro-controller work, I have never bothered with grounding myself with a wrist-strap or any other implementation. Should I be worried about this? How serious is ESD when working at my workbench on projects? Thanking users who answered my question Quite often a number of users will give similar answers to one of my questions. Sometimes someone will give an answer that is interesting, but does not really help with my question.  In all cases, I feel a need to thank the people who answered my question. It isn't always appropriate for me to upvote every answer, and I can only accept one answer. Giving a "thanks" comment on every answer appears to be frowned upon.  So, what's the etiquette? Remove Background in Inkscape Error on \usepackage {geometry} text property I'm looking for a library in Python which will provide at and cron like functionality.  I'd quite like have a pure Python solution, rather than relying on tools installed on the box; this way I run on machines with no cron.  For those unfamiliar with cron: you can schedule tasks based upon an expression like:    0 2 * * 7 /usr/bin/run-backup # run the backups at 0200 on Every Sunday  0 9-17/2 * * 1-5 /usr/bin/purge-temps # run the purge temps command, every 2 hours between 9am and 5pm on Mondays to Fridays.   The cron time expression syntax is less important, but I would like to have something with this sort of flexibility.   If there isn't something that does this for me out-the-box, any suggestions for the building blocks to make something like this would be gratefully received.  Edit I'm not interested in launching processes, just "jobs" also written in Python - python functions. By necessity I think this would be a different thread, but not in a different process.  To this end, I'm looking for the expressivity of the cron time expression, but in Python.   Cron has been around for years, but I'm trying to be as portable as possible. I cannot rely on its presence. In MK (Morse-Kelley) set theory life is easy: $\forall X\forall y\left(y\in\bigcap X\leftrightarrow\forall x\left(x\in X\rightarrow y\in x\right)\right)$. If $X=\left\{\right\}$ then $\bigcap X=U$, where $U$ is the universal class. So the (unary) intersection of the empty set is the class that contains all sets as elements. In ZF (Zermelo-Fraenkel) set theory, instead, proper classes are not allowed. So, how can I define $\bigcap X$ in ZF? I tried with the following definitions:   $\forall X\left(X\not=\left\{\right\}\rightarrow\forall y\left(y\in\bigcap X\leftrightarrow\forall x\left(x\in X\rightarrow y\in x\right)\right)\right)$. This means that $\bigcap\left\{\right\}$ is undefined, which is not that good. $\forall X\forall y\left(y\in\bigcap X\leftrightarrow X\not=\left\{\right\}\land\forall x\left(x\in X\rightarrow y\in x\right)\right)$. This means that $\bigcap\left\{\right\}=\left\{\right\}$, which is the opposite of MK.   I couldn't find any other valuable definition. Any ideas? Thank you. I installed Oneiric as a guest OS in VirtualBox using the Mini CD. I installed the ubuntu-desktop package and everything seems to work fine - well, except for a font issue with the terminal:    As you can see, some of the letters overlap and it's difficult to read. I checked the settings and it the checkbox "Use the system fixed width font" is checked with "Monospace | 12" selected underneath it.    Edit: running the commands mentioned in the comments:  $ fc-match "Monospace" DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book" $ gconftool --get /desktop/gnome/interface/monospace_font_name Monospace 10 $ debsums ttf-dejavu-core /usr/share/doc/ttf-dejavu-core/AUTHORS                                        OK /usr/share/doc/ttf-dejavu-core/BUGS                                           OK /usr/share/doc/ttf-dejavu-core/NEWS.gz                                        OK /usr/share/doc/ttf-dejavu-core/README                                         OK /usr/share/doc/ttf-dejavu-core/changelog.Debian.gz                            OK /usr/share/doc/ttf-dejavu-core/copyright                                      OK /usr/share/doc/ttf-dejavu-core/langcover.txt.gz                               OK /usr/share/doc/ttf-dejavu-core/status.txt.gz                                  OK /usr/share/doc/ttf-dejavu-core/unicover.txt.gz                                OK /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf                      OK /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf                           OK /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf                  OK /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf                       OK /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Bold.ttf                     OK /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf                          OK I am currently using Ubuntu 10.04. I know there is a 10.10 release, but can I upgrade directly to 11.04? Could you walk me through the steps please? I have a computer with a video card that has no Linux support.  I discovered this issue while trying to use a persistent usb to boot from.   I found that I can boot like that if I change options and edit so as to add nomodeset there (see ).  Also, editing the syslinux.cfg file from my live persistent USB and adding nomodeset in a line there made this setting automatic for booting from the persistent USB.  Can I make a similar edit for proper install from the same live USB?  Is it possible to edit something on the live USB in order to install the SO from it,  -- that is: having automatically the nomodeset setting already there when the installation starts?  My problem is that in order to install I think I already have to have added nomodeset or I'll see nothing on my display. I need a way to be sure that nomodeset it's permanent from the start. Force Messages to use SMS for specific contact rather than iMessage? Essentially, I would like to set my phone so that all my outgoing messages to a specific friend, with whom I currently text back and forth over iMessage, are sent out over SMS, never iMessage. Additionally, I would like to block any incoming iMessage texts of his and (hopefully) they'll fail and be resent via SMS.  Let me restate that: I would like to force SMS for both parties, going both ways, for a specific individual contact.   Is this possible? Blocking any usage of iMessage between myself and this other individual, so they must either send and receive any texts to or from me via SMS (or the texts fail/never arrive). Currently, the only way to ask for something to be migrated to a site that isn't part of the standard migration path is through a custom mod note.  I currently have two active custom mod notes on Stack Overflow that ask for migration that are not standard targets for SO.  I believe the questions could be better answered on another site.  Fortunately, or unfortunately, the questions have been answered, and answers have been up voted and accepted. At this point, a week and a half later, migrating either of the questions would be disruptive to both communities and not necessarily produce a better answer (they've got accepted answers).  The unfortunate part is I really do believe that both questions could have gotten better answers and more attention on another site.  What I would like to see is a more streamlined way to flag for moderator attention for migrations.  The UI would look something like this:    This would allow people to find the proper site easily.  No more "Migrate this to Mathamatica.SE" because, well, that doesn't exist.  Something that I didn't do on this mock up is add a link to the corresponding help/on-topic page for the target site.  Something people could check and click before hitting the submit button.  I don't have this quite right again, because while that shows a "closing for off topic", this is a flag and not a vote to close.    The "flag for migration" is only one part of this though.  The other part would be to make another flag queue style thingy for moderators in which they could look at just migration flags created through the above interface.  By providing the mods with a "just migration" view into the flags, questions that should be migrated can be quickly identified from the multitude of existing flags and handled promptly before the migration would be disruptive. This is a really trivial question, but I've seen different conventions and some edits regarding which is correct, so I'm curious:  Should question titles be title-cased or sentence-cased? How do I dynamically invoke a class method in PHP? How can I dynamically invoke a class method in PHP? The class method is not static. It appears that   call_user_func(...)   only works with static functions?  Thanks. Ubuntu with spyware? Richard Stallman states that Ubuntu "has installed surveillance code". See:   Is this true?   I agree with him that "Any excuse Canonical offers is inadequate....". I've heard that you should use \[ ... \] for displayed equations instead of  $$ ... $$, but why is that?  I'd assumed that it's so that you can more easily tell which are starting and which are ending delimiters, but if I always use a syntax-highlighting text editor, I can see that easily based on the color of the symbols.  Is there any reason for this suggestion?