To share the code of 2 landing pages (ex. footer, newsletter subscription) I need to be able to redirect http://page1.company.com to the Index() method of Page1Controller and http://page2.company.com to Index() method of Page2Controller. How can I do this in a MVC C# Web Application with IIS7?  Is this a good practice or should I create 2 diferent Web Aplications? In this solution, how could I share a common view like a footer?
Is it possible to have an ASP.NET MVC route that uses subdomain information to determine its route?  For example:   user1.domain.com goes to one place user2.domain.com goes to another?   Or, can I make it so both of these go to the same controller/action with a username parameter?
In  as well as on Wikipedia the radial coordinate of the Schwarzschild metric is described as follows:     ...the r co-ordinate is the value you get by dividing the circumference of the circle by 2π.   This circumvents (no pun intended) the problem of talking about the path outwards from the singularity, but what about the circle itself: does it have the length we would measure when flying around it (however this is done) or is it a virtual circle assuming flat space, i.e. no mass at the center. My question is simple, why do we believe  to be absurd? Is the Ultra-violet catastrophe incorrect or is it only because we can not create or know of a perfect emitter? I am a bit confused as to why Quanta was necessary. When saving a .qgs file in QGIS, another appears. Is this a backup? When saving a project file (.qgs), which when executed is automatically loaded with qgis.bat, there's another .qgs file which appears in the same directory of the original project file, although this one is not loaded with the qgis.bat file:    This is just out of curiosity but is the latter designed to be a backup of the original .qgs file? Does anybody of a way to access files and directories that have a % in their name (which is valid) from the command-line? Specifically, if there are two %’s and the text between them happens to correspond to an environment variable.  For example, if there is a file called C:\blah\%temp%.txt or a folder called C:\Program Files\%temp%\, none of the following will work because the variable gets expanded:  &gt; dir "c:\blah\%temp%.txt" &gt; dir "c:\blah\^%temp^%.txt" &gt; dir "c:\blah\%%temp%%.txt" &gt; dir "c:\blah\\%temp\%.txt"  &gt; dir "c:\program files\%temp%" &gt; dir "c:\program files\^%temp^%" &gt; dir "c:\program files\%%temp%%" &gt; dir "c:\program files\\%temp\%"    Using wildcards will work, but does not uniquely select the file/folder and may include others:  &gt; dir "c:\blah\?temp?.txt"        (also shows ztempz.temp, 1tempa.txt, etc.) &gt; dir "c:\program files\?temp?"   (likewise)    (This is frustrating because every now and then—usually when Explorer is restarted for whatever reason—the environment variables stop expanding and some places where they are used end up creating files or directories with the environment variable in it. For example, because I configured Chromium to store its cache in a subdirectory of %temp%, if the variable expands, it is fine, but when it doesn’t, Chromium creates a directory called %temp% under its own directory and stores the cache—which can get large—there. I want to add a line to my temp-/junk-file cleaning script to automatically delete that folder if it exists, but I cannot figure out how to access it from the command-line without resorting to wildcards.) How can I "grep" patterns across multiple lines? It seems I am misusing grep/egrep.   I was trying to search for strings in multiple line and could not find a match while I know that what I'm looking for should match. Originally I thought that my regexes were wrong but I eventually read that these tools operate per line (also my regexes were so trivial it could not be the issue).  So which tool would one use to search patterns across multiple lines? Can I use SPI for asynchronous serial output? I need a second serial async output channel on the MSP430G2553 and would like to use the SPI USCI to do this.  Is the USCI SPI baud rate stable enough to do this at 300 baud, 2400 baud or 9600 baud? I am currently using the 8 MHz clock.  Is there any other option that can save me from bit-banging?  My current thinking for 300 bd Tx is as follows:   set prescaler to 26666 LSB first load byte into Txbuf load 0x7F into Txbuf to generate stop and start bits repeat 2-3 send final stop bits 0xFF   It might also be possible to send ten bits of data on other members of the MSP430 family that contains a SPI.  Thanks for your responses. So people have had similar problems showing colors on .ply files  and   but I don't think this is the same case.  I've exported a .ply file from a program called paraview with color info on it.  I've uploaded the file  and as you can see, the color info came with it.  But for whatever reason when I import it into blender and go look for the per-vertex color info where I would expect to find it, its empty:   Am I doing something wrong?  It seems like there had been a problem with impo but this is 2.81.  I would assume it was fixed? How do I use Conditional Formatting based on due dates in Excel 2013? I am trying to format cells in Excel 2013. I want the cells to get colored as green, yellow, and red based on how close they are with the target date (January 13, 2015 in this case).  I am unable to use conditional formatting as Excel says that relative formatting is not permitted within conditional formatting.   Target:   06-01-2015  01-01-2015 02-01-2015 03-01-2015 04-01-2015 05-01-2015 06-01-2015 07-01-2015 08-01-2015 09-01-2015 10-01-2015   If the date in the cell is more than 2 days of the target date, I want the cell to change color to Green. I used =DATEDIF($N12,$N$9,"d")&gt;=3 and the format changed to green.  If the date in the cell is exactly 2 days near the target date, I want the cell to change color to yellow. I used =DATEDIF($N12,$N$9,"d")=2 and the format changed to yellow.  If the date in the cell is within 2 days of the target date, I want the cell to change color to red. I used =DATEDIF($N12,$N$9,"d")&lt;2 and the format changed to red only for 5th and 6th January. Apparently, it does not recognize negative values.  How can I get this to match the required colors? "Put me in touch with whomever created it"? He created it.  Put me in touch with him.   So which is correct and why:   Put me in touch with whomever created it. Put me in touch with whoever created it. Why is there a big delay after entering a wrong password? What is the maximum number of people that will join a settlement? I've got two settlements on the go that I'm paying attention to - Sanctuary and the Starlight Drive In. Both of these settlements have radio towers and beds and all resources in the green however they appear to have stopped growing at 10 people in each settlement even though happiness is above 80 and I've got 15+ beds at each location.  What is the maximum number of people that will join a settlement? What does the "bugs" section of /proc/cpuinfo actually show? On a Debian Stretch and testing/Buster system with a current kernel and installed microcode I still see meltdown and spectre listed as bugs in /proc/cpuinfo.  However, running the spectre-meltdown-checker shows not vulnerable.   So I'm wondering what /proc/cpuinfo does show. Are these just the vulnerabilities for this cpu and will those always be listed despite having a patched system? Manually Installed new Python to /usr/bin, how to get Repo version back? Yes, I'm a moron, and I tried to manually install a higher point release of python 2.7.16 to /usr/bin/  (i did ./configure --prefix=/usr) on my Ubuntu 16.04 machine. It seems to work fine EXCEPT for packages that depended on python, like apt-listchanges, which fails with messages like ImportError: No module named apt_pkg  there's no make uninstall available, I've tried manually removing files, and still when I try apt --reinstall install python, Nothing gets overwritten and the python executable still gives the new 2.7.16 version...   Any idea how to get the official repository version back?? Old fantasy book with a party finding coloured stones having powers over fire, water, mood I'm trying to remember the name of a book series of which I remember only the following, with Google yielding no results.   the name of the author starts with a Z   the main character is a knight in an household with a name sounding like Malachai who goes on a quest with six others guys and girls (a bard, another knight, a priest, etc.) and each of them finds a stone of colour which has a power on various things (like fire, their mood or water) and then they set toward a quest to beat some ancient evil. I used to find the book at the local library 10 years ago in France (but it was translated). The following code gives me an error:  \documentclass[12pt]{article} \usepackage[margin=2cm]{geometry} \usepackage [english]{babel} \usepackage{amsmath, amssymb} \usepackage{enumitem, array} \begin{document} {\begin{minipage}[t]{\textwidth} \begin{enumerate}[label=(\roman*)] {\setlength\itemindent{10pt}\item  \begin{equation*} \begin{array}{&gt;{\centering\arraybackslash}m{1.5cm}&gt;{\centering\arraybackslash}m{1.5cm}&gt;{\centering\arraybackslash}m{1.5cm}&gt;{\centering\arraybackslash}m{1.5cm}&gt;{\centering\arraybackslash}m{1.5cm}}  \hline x &amp; l_{[x]} &amp; d_{[x]} &amp; l_{x+1} &amp; \mathring{e}_{[x]} \\ \hline \end{array} \end{equation*}} \end{enumerate} \end{minipage}} \end{document}   Note: for various reasons, I have to keep minipage there. For some reason, this code gives me an error when it compiles. It gives the following output:     The errors either say there is a } missing or a $ missing. My eyes don't see such a thing! Tangential component of Electric field The above question i'm trying for so long but failed. This is from my class $12$ book(india).First of all i'm confused with tangential component of electric field, I mean why this? So far I've studied that electric field(Whether its own or someone's else) is always perpendicular to a charged body. So, there shouldn't be any tangential component. Could someone please explain me visually what's happening?  Strict Note: A class $12$ answer required. No complex statements please. Only for school childs. passing values between forms (winforms) I just stumbled upon a :     My wife and I's seafood collaboration dinner. How does it look?   Sure enough, the top comment immediately points out that it should be "my wife's and my". However, a cross-post to the Grammar subreddit produced :     It's fine as it is written. "my wife and I" is a noun phrase, functioning as a subjective pronoun in the singular and made possessive with the apostrophe. It is exactly the same as "our".      It seems weird because you would never use "I's" on its own but it is not on its own here - it is part of a noun phrase.   That's a rather intriguing argument. Does it hold any water? What is the world's biggest Schrodinger cat? Are there ways to determine if a wall is load bearing? Other than looking up blue prints, which many homeowners may not have, are there ways to determine if a wall is load bearing?  Methods I can think of might include:   Going up in the attic to check if ceiling trusses run perpendicular to the wall If the wall is an exterior wall   Any others?